Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for krb5-sync 3.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and [email protected]
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='krb5-sync'
592 PACKAGE_TARNAME='krb5-sync'
593 PACKAGE_VERSION='3.1'
594 PACKAGE_STRING='krb5-sync 3.1'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_config_libobj_dir=portable
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 DL_LIBS
639 LDAP_LIBS
640 LDAP_LDFLAGS
641 LDAP_CPPFLAGS
642 KADM5SRV_LIBS
643 KADM5SRV_LDFLAGS
644 KADM5SRV_CPPFLAGS
645 LIBOBJS
646 KRB5_USES_COM_ERR_FALSE
647 KRB5_USES_COM_ERR_TRUE
648 PATH_KRB5_CONFIG
649 KRB5_LIBS
650 KRB5_LDFLAGS
651 KRB5_CPPFLAGS_GCC
652 KRB5_CPPFLAGS
653 OTOOL64
654 OTOOL
655 LIPO
656 NMEDIT
657 DSYMUTIL
658 MANIFEST_TOOL
659 RANLIB
660 DLLTOOL
661 OBJDUMP
662 LN_S
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 SED
669 host_os
670 host_vendor
671 host_cpu
672 host
673 build_os
674 build_vendor
675 build_cpu
676 build
677 LIBTOOL
678 ac_ct_AR
679 AR
680 EGREP
681 GREP
682 CPP
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 am__nodep
687 AMDEPBACKSLASH
688 AMDEP_FALSE
689 AMDEP_TRUE
690 am__quote
691 am__include
692 DEPDIR
693 OBJEXT
694 EXEEXT
695 ac_ct_CC
696 CPPFLAGS
697 LDFLAGS
698 CFLAGS
699 CC
700 MAINT
701 MAINTAINER_MODE_FALSE
702 MAINTAINER_MODE_TRUE
703 AM_BACKSLASH
704 AM_DEFAULT_VERBOSITY
705 AM_DEFAULT_V
706 AM_V
707 am__untar
708 am__tar
709 AMTAR
710 am__leading_dot
711 SET_MAKE
712 AWK
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 STRIP
717 install_sh
718 MAKEINFO
719 AUTOHEADER
720 AUTOMAKE
721 AUTOCONF
722 ACLOCAL
723 VERSION
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL'
768 ac_subst_files=''
769 ac_user_opts='
770 enable_option_checking
771 enable_silent_rules
772 enable_maintainer_mode
773 enable_dependency_tracking
774 enable_largefile
775 enable_static
776 enable_shared
777 with_pic
778 enable_fast_install
779 with_gnu_ld
780 with_sysroot
781 enable_libtool_lock
782 with_krb5
783 with_krb5_include
784 with_krb5_lib
785 enable_reduced_depends
786 with_kadm_server
787 with_kadm_server_include
788 with_kadm_server_lib
789 with_ldap
790 with_ldap_include
791 with_ldap_lib
792 '
793 ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
801 CPP
802 PATH_KRB5_CONFIG'
803
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
826
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
845 htmldir='${docdir}'
846 dvidir='${docdir}'
847 pdfdir='${docdir}'
848 psdir='${docdir}'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
852
853 ac_prev=
854 ac_dashdash=
855 for ac_option
856 do
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
860 ac_prev=
861 continue
862 fi
863
864 case $ac_option in
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *=) ac_optarg= ;;
867 *) ac_optarg=yes ;;
868 esac
869
870 # Accept the important Cygnus configure options, so we can diagnose typos.
871
872 case $ac_dashdash$ac_option in
873 --)
874 ac_dashdash=yes ;;
875
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
880
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
885
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
892
893 --config-cache | -C)
894 cache_file=config.cache ;;
895
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
900
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
907
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
923
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
928
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
933
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=\$ac_optarg ;;
949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1098
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1126
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137
1138 -with-* | --with-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=\$ac_optarg ;;
1153
1154 -without-* | --without-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=no ;;
1169
1170 --x)
1171 # Obsolete; use --with-x.
1172 with_x=yes ;;
1173
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1180
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1187
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1190 ;;
1191
1192 *=*)
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 case $ac_envvar in #(
1196 '' | [0-9]* | *[!_$as_cr_alnum]* )
1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198 esac
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1201
1202 *)
1203 # FIXME: should be removed in autoconf 3.0.
1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208 ;;
1209
1210 esac
1211 done
1212
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 as_fn_error $? "missing argument to $ac_option"
1216 fi
1217
1218 if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1220 no) ;;
1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223 esac
1224 fi
1225
1226 # Check all directory arguments for consistency.
1227 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir
1231 do
1232 eval ac_val=\$$ac_var
1233 # Remove trailing slashes.
1234 case $ac_val in
1235 */ )
1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\$ac_val;;
1238 esac
1239 # Be sure to have absolute directory names.
1240 case $ac_val in
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243 esac
1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245 done
1246
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1250 build=$build_alias
1251 host=$host_alias
1252 target=$target_alias
1253
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
1258 elif test "x$build_alias" != "x$host_alias"; then
1259 cross_compiling=yes
1260 fi
1261 fi
1262
1263 ac_tool_prefix=
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266 test "$silent" = yes && exec 6>/dev/null
1267
1268
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error $? "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)[^/].*/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\).*/{
1300 s//\1/
1301 q
1302 }
1303 s/.*/./; q'`
1304 srcdir=$ac_confdir
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 srcdir=..
1307 fi
1308 else
1309 ac_srcdir_defaulted=no
1310 fi
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314 fi
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 ac_abs_confdir=`(
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318 pwd)`
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 srcdir=.
1322 fi
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1326 case $srcdir in
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328 esac
1329 for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334 done
1335
1336 #
1337 # Report the --help message.
1338 #
1339 if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1342 cat <<_ACEOF
1343 \`configure' configures krb5-sync 3.1 to adapt to many kinds of systems.
1344
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE. See below for descriptions of some of the useful variables.
1349
1350 Defaults for the options are specified in brackets.
1351
1352 Configuration:
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking ...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1362
1363 Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1367 [PREFIX]
1368
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1373
1374 For better control, use the options below.
1375
1376 Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/krb5-sync]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1396 _ACEOF
1397
1398 cat <<\_ACEOF
1399
1400 Program names:
1401 --program-prefix=PREFIX prepend PREFIX to installed program names
1402 --program-suffix=SUFFIX append SUFFIX to installed program names
1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404
1405 System types:
1406 --build=BUILD configure for building on BUILD [guessed]
1407 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408 _ACEOF
1409 fi
1410
1411 if test -n "$ac_init_help"; then
1412 case $ac_init_help in
1413 short | recursive ) echo "Configuration of krb5-sync 3.1:";;
1414 esac
1415 cat <<\_ACEOF
1416
1417 Optional Features:
1418 --disable-option-checking ignore unrecognized --enable/--with options
1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1421 --enable-silent-rules less verbose build output (undo: "make V=1")
1422 --disable-silent-rules verbose build output (undo: "make V=0")
1423 --enable-maintainer-mode
1424 enable make rules and dependencies not useful (and
1425 sometimes confusing) to the casual installer
1426 --enable-dependency-tracking
1427 do not reject slow dependency extractors
1428 --disable-dependency-tracking
1429 speeds up one-time build
1430 --disable-largefile omit support for large files
1431 --enable-static[=PKGS] build static libraries [default=no]
1432 --enable-shared[=PKGS] build shared libraries [default=yes]
1433 --enable-fast-install[=PKGS]
1434 optimize for fast installation [default=yes]
1435 --disable-libtool-lock avoid locking (might break parallel builds)
1436 --enable-reduced-depends
1437 Try to minimize shared library dependencies
1438
1439 Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1443 both]
1444 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1445 --with-sysroot=DIR Search for dependent libraries within DIR
1446 (or the compiler's sysroot if not specified).
1447 --with-krb5=DIR Location of Kerberos headers and libraries
1448 --with-krb5-include=DIR Location of Kerberos headers
1449 --with-krb5-lib=DIR Location of Kerberos libraries
1450 --with-kadm-server=DIR Location of kadmin server headers and libraries
1451 --with-kadm-server-include=DIR
1452 Location of kadmin server headers
1453 --with-kadm-server-lib=DIR
1454 Location of kadmin server libraries
1455 --with-ldap=DIR Location of LDAP headers and libraries
1456 --with-ldap-include=DIR Location of LDAP headers
1457 --with-ldap-lib=DIR Location of LDAP libraries
1458
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 LIBS libraries to pass to the linker, e.g. -l<library>
1465 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
1467 CPP C preprocessor
1468 PATH_KRB5_CONFIG
1469 Path to krb5-config
1470
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to <[email protected]>.
1475 _ACEOF
1476 ac_status=$?
1477 fi
1478
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 continue
1485 ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1527 else
1528 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1531 done
1532 fi
1533
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536 cat <<\_ACEOF
1537 krb5-sync configure 3.1
1538 generated by GNU Autoconf 2.69
1539
1540 Copyright (C) 2012 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543 _ACEOF
1544 exit
1545 fi
1546
1547 ## ------------------------ ##
1548 ## Autoconf initialization. ##
1549 ## ------------------------ ##
1550
1551 # ac_fn_c_try_compile LINENO
1552 # --------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_compile ()
1555 {
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext
1558 if { { ac_try="$ac_compile"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext; then :
1577 ac_retval=0
1578 else
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1581
1582 ac_retval=1
1583 fi
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1586
1587 } # ac_fn_c_try_compile
1588
1589 # ac_fn_c_try_cpp LINENO
1590 # ----------------------
1591 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_cpp ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 if { { ac_try="$ac_cpp conftest.$ac_ext"
1596 case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } > conftest.i && {
1611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 }; then :
1614 ac_retval=0
1615 else
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1618
1619 ac_retval=1
1620 fi
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1623
1624 } # ac_fn_c_try_cpp
1625
1626 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1627 # -------------------------------------------------------
1628 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1629 # the include files in INCLUDES and setting the cache variable VAR
1630 # accordingly.
1631 ac_fn_c_check_header_mongrel ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if eval \${$3+:} false; then :
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval \${$3+:} false; then :
1638 $as_echo_n "(cached) " >&6
1639 fi
1640 eval ac_res=\$$3
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1643 else
1644 # Is the header compilable?
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1646 $as_echo_n "checking $2 usability... " >&6; }
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1649 $4
1650 #include <$2>
1651 _ACEOF
1652 if ac_fn_c_try_compile "$LINENO"; then :
1653 ac_header_compiler=yes
1654 else
1655 ac_header_compiler=no
1656 fi
1657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1659 $as_echo "$ac_header_compiler" >&6; }
1660
1661 # Is the header present?
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1663 $as_echo_n "checking $2 presence... " >&6; }
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_cpp "$LINENO"; then :
1669 ac_header_preproc=yes
1670 else
1671 ac_header_preproc=no
1672 fi
1673 rm -f conftest.err conftest.i conftest.$ac_ext
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1675 $as_echo "$ac_header_preproc" >&6; }
1676
1677 # So? What about this header?
1678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1679 yes:no: )
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1681 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1684 ;;
1685 no:yes:* )
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1687 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1689 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1691 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1693 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1695 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1696 ( $as_echo "## ------------------------------ ##
1697 ## Report this to [email protected] ##
1698 ## ------------------------------ ##"
1699 ) | sed "s/^/$as_me: WARNING: /" >&2
1700 ;;
1701 esac
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1706 else
1707 eval "$3=\$ac_header_compiler"
1708 fi
1709 eval ac_res=\$$3
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1712 fi
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714
1715 } # ac_fn_c_check_header_mongrel
1716
1717 # ac_fn_c_try_run LINENO
1718 # ----------------------
1719 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1720 # that executables *can* be run.
1721 ac_fn_c_try_run ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 if { { ac_try="$ac_link"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_link") 2>&5
1732 ac_status=$?
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1735 { { case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_try") 2>&5
1742 ac_status=$?
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; }; }; then :
1745 ac_retval=0
1746 else
1747 $as_echo "$as_me: program exited with status $ac_status" >&5
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=$ac_status
1752 fi
1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status $ac_retval
1756
1757 } # ac_fn_c_try_run
1758
1759 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1760 # -------------------------------------------------------
1761 # Tests whether HEADER exists and can be compiled using the include files in
1762 # INCLUDES, setting the cache variable VAR accordingly.
1763 ac_fn_c_check_header_compile ()
1764 {
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if eval \${$3+:} false; then :
1769 $as_echo_n "(cached) " >&6
1770 else
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1773 $4
1774 #include <$2>
1775 _ACEOF
1776 if ac_fn_c_try_compile "$LINENO"; then :
1777 eval "$3=yes"
1778 else
1779 eval "$3=no"
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 fi
1783 eval ac_res=\$$3
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785 $as_echo "$ac_res" >&6; }
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787
1788 } # ac_fn_c_check_header_compile
1789
1790 # ac_fn_c_try_link LINENO
1791 # -----------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_c_try_link ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext conftest$ac_exeext
1797 if { { ac_try="$ac_link"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1810 fi
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest$ac_exeext && {
1816 test "$cross_compiling" = yes ||
1817 test -x conftest$ac_exeext
1818 }; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1823
1824 ac_retval=1
1825 fi
1826 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828 # interfere with the next link command; also delete a directory that is
1829 # left behind by Apple's compiler. We do this before executing the actions.
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_link
1835
1836 # ac_fn_c_check_func LINENO FUNC VAR
1837 # ----------------------------------
1838 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1839 ac_fn_c_check_func ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1846 else
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1849 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1851 #define $2 innocuous_$2
1852
1853 /* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $2 (); below.
1855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1856 <limits.h> exists even on freestanding compilers. */
1857
1858 #ifdef __STDC__
1859 # include <limits.h>
1860 #else
1861 # include <assert.h>
1862 #endif
1863
1864 #undef $2
1865
1866 /* Override any GCC internal prototype to avoid an error.
1867 Use char because int might match the return type of a GCC
1868 builtin and then its argument prototype would still apply. */
1869 #ifdef __cplusplus
1870 extern "C"
1871 #endif
1872 char $2 ();
1873 /* The GNU C library defines this for functions which it implements
1874 to always fail with ENOSYS. Some functions are actually named
1875 something starting with __ and the normal name is an alias. */
1876 #if defined __stub_$2 || defined __stub___$2
1877 choke me
1878 #endif
1879
1880 int
1881 main ()
1882 {
1883 return $2 ();
1884 ;
1885 return 0;
1886 }
1887 _ACEOF
1888 if ac_fn_c_try_link "$LINENO"; then :
1889 eval "$3=yes"
1890 else
1891 eval "$3=no"
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext \
1894 conftest$ac_exeext conftest.$ac_ext
1895 fi
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901 } # ac_fn_c_check_func
1902
1903 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1904 # --------------------------------------------
1905 # Tries to find the compile-time value of EXPR in a program that includes
1906 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1907 # computed
1908 ac_fn_c_compute_int ()
1909 {
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if test "$cross_compiling" = yes; then
1912 # Depending upon the size, compute the lo and hi bounds.
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 $4
1916 int
1917 main ()
1918 {
1919 static int test_array [1 - 2 * !(($2) >= 0)];
1920 test_array [0] = 0;
1921 return test_array [0];
1922
1923 ;
1924 return 0;
1925 }
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928 ac_lo=0 ac_mid=0
1929 while :; do
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1932 $4
1933 int
1934 main ()
1935 {
1936 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1937 test_array [0] = 0;
1938 return test_array [0];
1939
1940 ;
1941 return 0;
1942 }
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945 ac_hi=$ac_mid; break
1946 else
1947 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1948 if test $ac_lo -le $ac_mid; then
1949 ac_lo= ac_hi=
1950 break
1951 fi
1952 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1953 fi
1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 done
1956 else
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 $4
1960 int
1961 main ()
1962 {
1963 static int test_array [1 - 2 * !(($2) < 0)];
1964 test_array [0] = 0;
1965 return test_array [0];
1966
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 ac_hi=-1 ac_mid=-1
1973 while :; do
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 $4
1977 int
1978 main ()
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"; then :
1989 ac_lo=$ac_mid; break
1990 else
1991 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1992 if test $ac_mid -le $ac_hi; then
1993 ac_lo= ac_hi=
1994 break
1995 fi
1996 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 done
2000 else
2001 ac_lo= ac_hi=
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 # Binary search between lo and hi bounds.
2007 while test "x$ac_lo" != "x$ac_hi"; do
2008 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 $4
2012 int
2013 main ()
2014 {
2015 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2016 test_array [0] = 0;
2017 return test_array [0];
2018
2019 ;
2020 return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 ac_hi=$ac_mid
2025 else
2026 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2027 fi
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 done
2030 case $ac_lo in #((
2031 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2032 '') ac_retval=1 ;;
2033 esac
2034 else
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2037 $4
2038 static long int longval () { return $2; }
2039 static unsigned long int ulongval () { return $2; }
2040 #include <stdio.h>
2041 #include <stdlib.h>
2042 int
2043 main ()
2044 {
2045
2046 FILE *f = fopen ("conftest.val", "w");
2047 if (! f)
2048 return 1;
2049 if (($2) < 0)
2050 {
2051 long int i = longval ();
2052 if (i != ($2))
2053 return 1;
2054 fprintf (f, "%ld", i);
2055 }
2056 else
2057 {
2058 unsigned long int i = ulongval ();
2059 if (i != ($2))
2060 return 1;
2061 fprintf (f, "%lu", i);
2062 }
2063 /* Do not output a trailing newline, as this causes \r\n confusion
2064 on some platforms. */
2065 return ferror (f) || fclose (f) != 0;
2066
2067 ;
2068 return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_run "$LINENO"; then :
2072 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2073 else
2074 ac_retval=1
2075 fi
2076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2077 conftest.$ac_objext conftest.beam conftest.$ac_ext
2078 rm -f conftest.val
2079
2080 fi
2081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082 as_fn_set_status $ac_retval
2083
2084 } # ac_fn_c_compute_int
2085
2086 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2087 # -------------------------------------------
2088 # Tests whether TYPE exists after having included INCLUDES, setting cache
2089 # variable VAR accordingly.
2090 ac_fn_c_check_type ()
2091 {
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if eval \${$3+:} false; then :
2096 $as_echo_n "(cached) " >&6
2097 else
2098 eval "$3=no"
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2101 $4
2102 int
2103 main ()
2104 {
2105 if (sizeof ($2))
2106 return 0;
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2114 $4
2115 int
2116 main ()
2117 {
2118 if (sizeof (($2)))
2119 return 0;
2120 ;
2121 return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125
2126 else
2127 eval "$3=yes"
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 eval ac_res=\$$3
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137
2138 } # ac_fn_c_check_type
2139
2140 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2141 # ---------------------------------------------
2142 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2143 # accordingly.
2144 ac_fn_c_check_decl ()
2145 {
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 as_decl_name=`echo $2|sed 's/ *(.*//'`
2148 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2150 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2151 if eval \${$3+:} false; then :
2152 $as_echo_n "(cached) " >&6
2153 else
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2156 $4
2157 int
2158 main ()
2159 {
2160 #ifndef $as_decl_name
2161 #ifdef __cplusplus
2162 (void) $as_decl_use;
2163 #else
2164 (void) $as_decl_name;
2165 #endif
2166 #endif
2167
2168 ;
2169 return 0;
2170 }
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 eval "$3=yes"
2174 else
2175 eval "$3=no"
2176 fi
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 fi
2179 eval ac_res=\$$3
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183
2184 } # ac_fn_c_check_decl
2185
2186 # ac_fn_c_find_uintX_t LINENO BITS VAR
2187 # ------------------------------------
2188 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2189 # accordingly.
2190 ac_fn_c_find_uintX_t ()
2191 {
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2194 $as_echo_n "checking for uint$2_t... " >&6; }
2195 if eval \${$3+:} false; then :
2196 $as_echo_n "(cached) " >&6
2197 else
2198 eval "$3=no"
2199 # Order is important - never check a type that is potentially smaller
2200 # than half of the expected target width.
2201 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2202 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2205 $ac_includes_default
2206 int
2207 main ()
2208 {
2209 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2210 test_array [0] = 0;
2211 return test_array [0];
2212
2213 ;
2214 return 0;
2215 }
2216 _ACEOF
2217 if ac_fn_c_try_compile "$LINENO"; then :
2218 case $ac_type in #(
2219 uint$2_t) :
2220 eval "$3=yes" ;; #(
2221 *) :
2222 eval "$3=\$ac_type" ;;
2223 esac
2224 fi
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 if eval test \"x\$"$3"\" = x"no"; then :
2227
2228 else
2229 break
2230 fi
2231 done
2232 fi
2233 eval ac_res=\$$3
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237
2238 } # ac_fn_c_find_uintX_t
2239 cat >config.log <<_ACEOF
2240 This file contains any messages produced by compilers while
2241 running configure, to aid debugging if configure makes a mistake.
2242
2243 It was created by krb5-sync $as_me 3.1, which was
2244 generated by GNU Autoconf 2.69. Invocation command line was
2245
2246 $ $0 $@
2247
2248 _ACEOF
2249 exec 5>>config.log
2250 {
2251 cat <<_ASUNAME
2252 ## --------- ##
2253 ## Platform. ##
2254 ## --------- ##
2255
2256 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2257 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2258 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2259 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2260 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2261
2262 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2263 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2264
2265 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2266 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2267 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2268 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2269 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2270 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2271 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2272
2273 _ASUNAME
2274
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 $as_echo "PATH: $as_dir"
2281 done
2282 IFS=$as_save_IFS
2283
2284 } >&5
2285
2286 cat >&5 <<_ACEOF
2287
2288
2289 ## ----------- ##
2290 ## Core tests. ##
2291 ## ----------- ##
2292
2293 _ACEOF
2294
2295
2296 # Keep a trace of the command line.
2297 # Strip out --no-create and --no-recursion so they do not pile up.
2298 # Strip out --silent because we don't want to record it for future runs.
2299 # Also quote any args containing shell meta-characters.
2300 # Make two passes to allow for proper duplicate-argument suppression.
2301 ac_configure_args=
2302 ac_configure_args0=
2303 ac_configure_args1=
2304 ac_must_keep_next=false
2305 for ac_pass in 1 2
2306 do
2307 for ac_arg
2308 do
2309 case $ac_arg in
2310 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2312 | -silent | --silent | --silen | --sile | --sil)
2313 continue ;;
2314 *\'*)
2315 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2316 esac
2317 case $ac_pass in
2318 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2319 2)
2320 as_fn_append ac_configure_args1 " '$ac_arg'"
2321 if test $ac_must_keep_next = true; then
2322 ac_must_keep_next=false # Got value, back to normal.
2323 else
2324 case $ac_arg in
2325 *=* | --config-cache | -C | -disable-* | --disable-* \
2326 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2327 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2328 | -with-* | --with-* | -without-* | --without-* | --x)
2329 case "$ac_configure_args0 " in
2330 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2331 esac
2332 ;;
2333 -* ) ac_must_keep_next=true ;;
2334 esac
2335 fi
2336 as_fn_append ac_configure_args " '$ac_arg'"
2337 ;;
2338 esac
2339 done
2340 done
2341 { ac_configure_args0=; unset ac_configure_args0;}
2342 { ac_configure_args1=; unset ac_configure_args1;}
2343
2344 # When interrupted or exit'd, cleanup temporary files, and complete
2345 # config.log. We remove comments because anyway the quotes in there
2346 # would cause problems or look ugly.
2347 # WARNING: Use '\'' to represent an apostrophe within the trap.
2348 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2349 trap 'exit_status=$?
2350 # Save into config.log some information that might help in debugging.
2351 {
2352 echo
2353
2354 $as_echo "## ---------------- ##
2355 ## Cache variables. ##
2356 ## ---------------- ##"
2357 echo
2358 # The following way of writing the cache mishandles newlines in values,
2359 (
2360 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2361 eval ac_val=\$$ac_var
2362 case $ac_val in #(
2363 *${as_nl}*)
2364 case $ac_var in #(
2365 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2366 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2367 esac
2368 case $ac_var in #(
2369 _ | IFS | as_nl) ;; #(
2370 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2371 *) { eval $ac_var=; unset $ac_var;} ;;
2372 esac ;;
2373 esac
2374 done
2375 (set) 2>&1 |
2376 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2377 *${as_nl}ac_space=\ *)
2378 sed -n \
2379 "s/'\''/'\''\\\\'\'''\''/g;
2380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2381 ;; #(
2382 *)
2383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2384 ;;
2385 esac |
2386 sort
2387 )
2388 echo
2389
2390 $as_echo "## ----------------- ##
2391 ## Output variables. ##
2392 ## ----------------- ##"
2393 echo
2394 for ac_var in $ac_subst_vars
2395 do
2396 eval ac_val=\$$ac_var
2397 case $ac_val in
2398 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2399 esac
2400 $as_echo "$ac_var='\''$ac_val'\''"
2401 done | sort
2402 echo
2403
2404 if test -n "$ac_subst_files"; then
2405 $as_echo "## ------------------- ##
2406 ## File substitutions. ##
2407 ## ------------------- ##"
2408 echo
2409 for ac_var in $ac_subst_files
2410 do
2411 eval ac_val=\$$ac_var
2412 case $ac_val in
2413 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414 esac
2415 $as_echo "$ac_var='\''$ac_val'\''"
2416 done | sort
2417 echo
2418 fi
2419
2420 if test -s confdefs.h; then
2421 $as_echo "## ----------- ##
2422 ## confdefs.h. ##
2423 ## ----------- ##"
2424 echo
2425 cat confdefs.h
2426 echo
2427 fi
2428 test "$ac_signal" != 0 &&
2429 $as_echo "$as_me: caught signal $ac_signal"
2430 $as_echo "$as_me: exit $exit_status"
2431 } >&5
2432 rm -f core *.core core.conftest.* &&
2433 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2434 exit $exit_status
2435 ' 0
2436 for ac_signal in 1 2 13 15; do
2437 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2438 done
2439 ac_signal=0
2440
2441 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2442 rm -f -r conftest* confdefs.h
2443
2444 $as_echo "/* confdefs.h */" > confdefs.h
2445
2446 # Predefined preprocessor variables.
2447
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_NAME "$PACKAGE_NAME"
2450 _ACEOF
2451
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2454 _ACEOF
2455
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2458 _ACEOF
2459
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_STRING "$PACKAGE_STRING"
2462 _ACEOF
2463
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2466 _ACEOF
2467
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_URL "$PACKAGE_URL"
2470 _ACEOF
2471
2472
2473 # Let the site file select an alternate cache file if it wants to.
2474 # Prefer an explicitly selected file to automatically selected ones.
2475 ac_site_file1=NONE
2476 ac_site_file2=NONE
2477 if test -n "$CONFIG_SITE"; then
2478 # We do not want a PATH search for config.site.
2479 case $CONFIG_SITE in #((
2480 -*) ac_site_file1=./$CONFIG_SITE;;
2481 */*) ac_site_file1=$CONFIG_SITE;;
2482 *) ac_site_file1=./$CONFIG_SITE;;
2483 esac
2484 elif test "x$prefix" != xNONE; then
2485 ac_site_file1=$prefix/share/config.site
2486 ac_site_file2=$prefix/etc/config.site
2487 else
2488 ac_site_file1=$ac_default_prefix/share/config.site
2489 ac_site_file2=$ac_default_prefix/etc/config.site
2490 fi
2491 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2492 do
2493 test "x$ac_site_file" = xNONE && continue
2494 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2496 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2497 sed 's/^/| /' "$ac_site_file" >&5
2498 . "$ac_site_file" \
2499 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501 as_fn_error $? "failed to load site script $ac_site_file
2502 See \`config.log' for more details" "$LINENO" 5; }
2503 fi
2504 done
2505
2506 if test -r "$cache_file"; then
2507 # Some versions of bash will fail to source /dev/null (special files
2508 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2509 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2511 $as_echo "$as_me: loading cache $cache_file" >&6;}
2512 case $cache_file in
2513 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2514 *) . "./$cache_file";;
2515 esac
2516 fi
2517 else
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2519 $as_echo "$as_me: creating cache $cache_file" >&6;}
2520 >$cache_file
2521 fi
2522
2523 # Check that the precious variables saved in the cache have kept the same
2524 # value.
2525 ac_cache_corrupted=false
2526 for ac_var in $ac_precious_vars; do
2527 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2528 eval ac_new_set=\$ac_env_${ac_var}_set
2529 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2530 eval ac_new_val=\$ac_env_${ac_var}_value
2531 case $ac_old_set,$ac_new_set in
2532 set,)
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2534 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2535 ac_cache_corrupted=: ;;
2536 ,set)
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2538 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2539 ac_cache_corrupted=: ;;
2540 ,);;
2541 *)
2542 if test "x$ac_old_val" != "x$ac_new_val"; then
2543 # differences in whitespace do not lead to failure.
2544 ac_old_val_w=`echo x $ac_old_val`
2545 ac_new_val_w=`echo x $ac_new_val`
2546 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2548 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2549 ac_cache_corrupted=:
2550 else
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2552 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2553 eval $ac_var=\$ac_old_val
2554 fi
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2556 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2558 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2559 fi;;
2560 esac
2561 # Pass precious variables to config.status.
2562 if test "$ac_new_set" = set; then
2563 case $ac_new_val in
2564 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2565 *) ac_arg=$ac_var=$ac_new_val ;;
2566 esac
2567 case " $ac_configure_args " in
2568 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2569 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2570 esac
2571 fi
2572 done
2573 if $ac_cache_corrupted; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2577 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2578 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2579 fi
2580 ## -------------------- ##
2581 ## Main body of script. ##
2582 ## -------------------- ##
2583
2584 ac_ext=c
2585 ac_cpp='$CPP $CPPFLAGS'
2586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2589
2590
2591 ac_aux_dir=
2592 for ac_dir in build-aux "$srcdir"/build-aux; do
2593 if test -f "$ac_dir/install-sh"; then
2594 ac_aux_dir=$ac_dir
2595 ac_install_sh="$ac_aux_dir/install-sh -c"
2596 break
2597 elif test -f "$ac_dir/install.sh"; then
2598 ac_aux_dir=$ac_dir
2599 ac_install_sh="$ac_aux_dir/install.sh -c"
2600 break
2601 elif test -f "$ac_dir/shtool"; then
2602 ac_aux_dir=$ac_dir
2603 ac_install_sh="$ac_aux_dir/shtool install -c"
2604 break
2605 fi
2606 done
2607 if test -z "$ac_aux_dir"; then
2608 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2609 fi
2610
2611 # These three variables are undocumented and unsupported,
2612 # and are intended to be withdrawn in a future Autoconf release.
2613 # They can cause serious problems if a builder's source tree is in a directory
2614 # whose full name contains unusual characters.
2615 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2616 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2617 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2618
2619
2620
2621
2622 am__api_version='1.15'
2623
2624 # Find a good install program. We prefer a C program (faster),
2625 # so one script is as good as another. But avoid the broken or
2626 # incompatible versions:
2627 # SysV /etc/install, /usr/sbin/install
2628 # SunOS /usr/etc/install
2629 # IRIX /sbin/install
2630 # AIX /bin/install
2631 # AmigaOS /C/install, which installs bootblocks on floppy discs
2632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2635 # OS/2's system install, which has a completely different semantic
2636 # ./install, which can be erroneously created by make from ./install.sh.
2637 # Reject install programs that cannot install multiple files.
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2639 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2640 if test -z "$INSTALL"; then
2641 if ${ac_cv_path_install+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 # Account for people who put trailing slashes in PATH elements.
2650 case $as_dir/ in #((
2651 ./ | .// | /[cC]/* | \
2652 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2653 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2654 /usr/ucb/* ) ;;
2655 *)
2656 # OSF1 and SCO ODT 3.0 have their own names for install.
2657 # Don't use installbsd from OSF since it installs stuff as root
2658 # by default.
2659 for ac_prog in ginstall scoinst install; do
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2662 if test $ac_prog = install &&
2663 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2664 # AIX install. It has an incompatible calling convention.
2665 :
2666 elif test $ac_prog = install &&
2667 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2668 # program-specific install script used by HP pwplus--don't use.
2669 :
2670 else
2671 rm -rf conftest.one conftest.two conftest.dir
2672 echo one > conftest.one
2673 echo two > conftest.two
2674 mkdir conftest.dir
2675 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2676 test -s conftest.one && test -s conftest.two &&
2677 test -s conftest.dir/conftest.one &&
2678 test -s conftest.dir/conftest.two
2679 then
2680 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2681 break 3
2682 fi
2683 fi
2684 fi
2685 done
2686 done
2687 ;;
2688 esac
2689
2690 done
2691 IFS=$as_save_IFS
2692
2693 rm -rf conftest.one conftest.two conftest.dir
2694
2695 fi
2696 if test "${ac_cv_path_install+set}" = set; then
2697 INSTALL=$ac_cv_path_install
2698 else
2699 # As a last resort, use the slow shell script. Don't cache a
2700 # value for INSTALL within a source directory, because that will
2701 # break other packages using the cache if that directory is
2702 # removed, or if the value is a relative name.
2703 INSTALL=$ac_install_sh
2704 fi
2705 fi
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2707 $as_echo "$INSTALL" >&6; }
2708
2709 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2710 # It thinks the first close brace ends the variable substitution.
2711 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2712
2713 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2714
2715 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2716
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2718 $as_echo_n "checking whether build environment is sane... " >&6; }
2719 # Reject unsafe characters in $srcdir or the absolute working directory
2720 # name. Accept space and tab only in the latter.
2721 am_lf='
2722 '
2723 case `pwd` in
2724 *[\\\"\#\$\&\'\`$am_lf]*)
2725 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2726 esac
2727 case $srcdir in
2728 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2729 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2730 esac
2731
2732 # Do 'set' in a subshell so we don't clobber the current shell's
2733 # arguments. Must try -L first in case configure is actually a
2734 # symlink; some systems play weird games with the mod time of symlinks
2735 # (eg FreeBSD returns the mod time of the symlink's containing
2736 # directory).
2737 if (
2738 am_has_slept=no
2739 for am_try in 1 2; do
2740 echo "timestamp, slept: $am_has_slept" > conftest.file
2741 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2742 if test "$*" = "X"; then
2743 # -L didn't work.
2744 set X `ls -t "$srcdir/configure" conftest.file`
2745 fi
2746 if test "$*" != "X $srcdir/configure conftest.file" \
2747 && test "$*" != "X conftest.file $srcdir/configure"; then
2748
2749 # If neither matched, then we have a broken ls. This can happen
2750 # if, for instance, CONFIG_SHELL is bash and it inherits a
2751 # broken ls alias from the environment. This has actually
2752 # happened. Such a system could not be considered "sane".
2753 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2754 alias in your environment" "$LINENO" 5
2755 fi
2756 if test "$2" = conftest.file || test $am_try -eq 2; then
2757 break
2758 fi
2759 # Just in case.
2760 sleep 1
2761 am_has_slept=yes
2762 done
2763 test "$2" = conftest.file
2764 )
2765 then
2766 # Ok.
2767 :
2768 else
2769 as_fn_error $? "newly created file is older than distributed files!
2770 Check your system clock" "$LINENO" 5
2771 fi
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2773 $as_echo "yes" >&6; }
2774 # If we didn't sleep, we still need to ensure time stamps of config.status and
2775 # generated files are strictly newer.
2776 am_sleep_pid=
2777 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2778 ( sleep 1 ) &
2779 am_sleep_pid=$!
2780 fi
2781
2782 rm -f conftest.file
2783
2784 test "$program_prefix" != NONE &&
2785 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2786 # Use a double $ so make ignores it.
2787 test "$program_suffix" != NONE &&
2788 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2789 # Double any \ or $.
2790 # By default was `s,x,x', remove it if useless.
2791 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2792 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2793
2794 # Expand $ac_aux_dir to an absolute path.
2795 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2796
2797 if test x"${MISSING+set}" != xset; then
2798 case $am_aux_dir in
2799 *\ * | *\ *)
2800 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2801 *)
2802 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2803 esac
2804 fi
2805 # Use eval to expand $SHELL
2806 if eval "$MISSING --is-lightweight"; then
2807 am_missing_run="$MISSING "
2808 else
2809 am_missing_run=
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2811 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2812 fi
2813
2814 if test x"${install_sh+set}" != xset; then
2815 case $am_aux_dir in
2816 *\ * | *\ *)
2817 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2818 *)
2819 install_sh="\${SHELL} $am_aux_dir/install-sh"
2820 esac
2821 fi
2822
2823 # Installed binaries are usually stripped using 'strip' when the user
2824 # run "make install-strip". However 'strip' might not be the right
2825 # tool to use in cross-compilation environments, therefore Automake
2826 # will honor the 'STRIP' environment variable to overrule this program.
2827 if test "$cross_compiling" != no; then
2828 if test -n "$ac_tool_prefix"; then
2829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2830 set dummy ${ac_tool_prefix}strip; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_STRIP+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test -n "$STRIP"; then
2837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 STRIP=$ac_cv_prog_STRIP
2857 if test -n "$STRIP"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2859 $as_echo "$STRIP" >&6; }
2860 else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2863 fi
2864
2865
2866 fi
2867 if test -z "$ac_cv_prog_STRIP"; then
2868 ac_ct_STRIP=$STRIP
2869 # Extract the first word of "strip", so it can be a program name with args.
2870 set dummy strip; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test -n "$ac_ct_STRIP"; then
2877 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_ac_ct_STRIP="strip"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2897 if test -n "$ac_ct_STRIP"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2899 $as_echo "$ac_ct_STRIP" >&6; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905 if test "x$ac_ct_STRIP" = x; then
2906 STRIP=":"
2907 else
2908 case $cross_compiling:$ac_tool_warned in
2909 yes:)
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2912 ac_tool_warned=yes ;;
2913 esac
2914 STRIP=$ac_ct_STRIP
2915 fi
2916 else
2917 STRIP="$ac_cv_prog_STRIP"
2918 fi
2919
2920 fi
2921 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2922
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2924 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2925 if test -z "$MKDIR_P"; then
2926 if ${ac_cv_path_mkdir+:} false; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2931 do
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_prog in mkdir gmkdir; do
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2937 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2938 'mkdir (GNU coreutils) '* | \
2939 'mkdir (coreutils) '* | \
2940 'mkdir (fileutils) '4.1*)
2941 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2942 break 3;;
2943 esac
2944 done
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950
2951 test -d ./--version && rmdir ./--version
2952 if test "${ac_cv_path_mkdir+set}" = set; then
2953 MKDIR_P="$ac_cv_path_mkdir -p"
2954 else
2955 # As a last resort, use the slow shell script. Don't cache a
2956 # value for MKDIR_P within a source directory, because that will
2957 # break other packages using the cache if that directory is
2958 # removed, or if the value is a relative name.
2959 MKDIR_P="$ac_install_sh -d"
2960 fi
2961 fi
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2963 $as_echo "$MKDIR_P" >&6; }
2964
2965 for ac_prog in gawk mawk nawk awk
2966 do
2967 # Extract the first word of "$ac_prog", so it can be a program name with args.
2968 set dummy $ac_prog; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_AWK+:} false; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 if test -n "$AWK"; then
2975 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_AWK="$ac_prog"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 AWK=$ac_cv_prog_AWK
2995 if test -n "$AWK"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2997 $as_echo "$AWK" >&6; }
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 fi
3002
3003
3004 test -n "$AWK" && break
3005 done
3006
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3008 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3009 set x ${MAKE-make}
3010 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3011 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 cat >conftest.make <<\_ACEOF
3015 SHELL = /bin/sh
3016 all:
3017 @echo '@@@%%%=$(MAKE)=@@@%%%'
3018 _ACEOF
3019 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3020 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3021 *@@@%%%=?*=@@@%%%*)
3022 eval ac_cv_prog_make_${ac_make}_set=yes;;
3023 *)
3024 eval ac_cv_prog_make_${ac_make}_set=no;;
3025 esac
3026 rm -f conftest.make
3027 fi
3028 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3030 $as_echo "yes" >&6; }
3031 SET_MAKE=
3032 else
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 SET_MAKE="MAKE=${MAKE-make}"
3036 fi
3037
3038 rm -rf .tst 2>/dev/null
3039 mkdir .tst 2>/dev/null
3040 if test -d .tst; then
3041 am__leading_dot=.
3042 else
3043 am__leading_dot=_
3044 fi
3045 rmdir .tst 2>/dev/null
3046
3047 # Check whether --enable-silent-rules was given.
3048 if test "${enable_silent_rules+set}" = set; then :
3049 enableval=$enable_silent_rules;
3050 fi
3051
3052 case $enable_silent_rules in # (((
3053 yes) AM_DEFAULT_VERBOSITY=0;;
3054 no) AM_DEFAULT_VERBOSITY=1;;
3055 *) AM_DEFAULT_VERBOSITY=1;;
3056 esac
3057 am_make=${MAKE-make}
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3059 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3060 if ${am_cv_make_support_nested_variables+:} false; then :
3061 $as_echo_n "(cached) " >&6
3062 else
3063 if $as_echo 'TRUE=$(BAR$(V))
3064 BAR0=false
3065 BAR1=true
3066 V=1
3067 am__doit:
3068 @$(TRUE)
3069 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3070 am_cv_make_support_nested_variables=yes
3071 else
3072 am_cv_make_support_nested_variables=no
3073 fi
3074 fi
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3076 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3077 if test $am_cv_make_support_nested_variables = yes; then
3078 AM_V='$(V)'
3079 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3080 else
3081 AM_V=$AM_DEFAULT_VERBOSITY
3082 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3083 fi
3084 AM_BACKSLASH='\'
3085
3086 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3087 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3088 # is not polluted with repeated "-I."
3089 am__isrc=' -I$(srcdir)'
3090 # test to see if srcdir already configured
3091 if test -f $srcdir/config.status; then
3092 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3093 fi
3094 fi
3095
3096 # test whether we have cygpath
3097 if test -z "$CYGPATH_W"; then
3098 if (cygpath --version) >/dev/null 2>/dev/null; then
3099 CYGPATH_W='cygpath -w'
3100 else
3101 CYGPATH_W=echo
3102 fi
3103 fi
3104
3105
3106 # Define the identity of the package.
3107 PACKAGE='krb5-sync'
3108 VERSION='3.1'
3109
3110
3111 cat >>confdefs.h <<_ACEOF
3112 #define PACKAGE "$PACKAGE"
3113 _ACEOF
3114
3115
3116 cat >>confdefs.h <<_ACEOF
3117 #define VERSION "$VERSION"
3118 _ACEOF
3119
3120 # Some tools Automake needs.
3121
3122 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3123
3124
3125 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3126
3127
3128 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3129
3130
3131 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3132
3133
3134 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3135
3136 # For better backward compatibility. To be removed once Automake 1.9.x
3137 # dies out for good. For more background, see:
3138 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3139 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3140 mkdir_p='$(MKDIR_P)'
3141
3142 # We need awk for the "check" target (and possibly the TAP driver). The
3143 # system "awk" is bad on some platforms.
3144 # Always define AMTAR for backward compatibility. Yes, it's still used
3145 # in the wild :-( We should find a proper way to deprecate it ...
3146 AMTAR='$${TAR-tar}'
3147
3148
3149 # We'll loop over all known methods to create a tar archive until one works.
3150 _am_tools='gnutar pax cpio none'
3151
3152 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3153
3154
3155
3156
3157
3158
3159 # POSIX will say in a future version that running "rm -f" with no argument
3160 # is OK; and we want to be able to make that assumption in our Makefile
3161 # recipes. So use an aggressive probe to check that the usage we want is
3162 # actually supported "in the wild" to an acceptable degree.
3163 # See automake bug#10828.
3164 # To make any issue more visible, cause the running configure to be aborted
3165 # by default if the 'rm' program in use doesn't match our expectations; the
3166 # user can still override this though.
3167 if rm -f && rm -fr && rm -rf; then : OK; else
3168 cat >&2 <<'END'
3169 Oops!
3170
3171 Your 'rm' program seems unable to run without file operands specified
3172 on the command line, even when the '-f' option is present. This is contrary
3173 to the behaviour of most rm programs out there, and not conforming with
3174 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3175
3176 Please tell [email protected] about your system, including the value
3177 of your $PATH and any error possibly output before this message. This
3178 can help us improve future automake versions.
3179
3180 END
3181 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3182 echo 'Configuration will proceed anyway, since you have set the' >&2
3183 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3184 echo >&2
3185 else
3186 cat >&2 <<'END'
3187 Aborting the configuration process, to ensure you take notice of the issue.
3188
3189 You can download and install GNU coreutils to get an 'rm' implementation
3190 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3191
3192 If you want to complete the configuration process using your problematic
3193 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3194 to "yes", and re-run configure.
3195
3196 END
3197 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3198 fi
3199 fi
3200
3201
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3203 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3204 # Check whether --enable-maintainer-mode was given.
3205 if test "${enable_maintainer_mode+set}" = set; then :
3206 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3207 else
3208 USE_MAINTAINER_MODE=no
3209 fi
3210
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3212 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3213 if test $USE_MAINTAINER_MODE = yes; then
3214 MAINTAINER_MODE_TRUE=
3215 MAINTAINER_MODE_FALSE='#'
3216 else
3217 MAINTAINER_MODE_TRUE='#'
3218 MAINTAINER_MODE_FALSE=
3219 fi
3220
3221 MAINT=$MAINTAINER_MODE_TRUE
3222
3223
3224
3225
3226
3227 ac_ext=c
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3253 fi
3254 done
3255 done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 CC=$ac_cv_prog_CC
3261 if test -n "$CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269
3270 fi
3271 if test -z "$ac_cv_prog_CC"; then
3272 ac_ct_CC=$CC
3273 # Extract the first word of "gcc", so it can be a program name with args.
3274 set dummy gcc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$ac_ct_CC"; then
3281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_ac_ct_CC="gcc"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301 if test -n "$ac_ct_CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303 $as_echo "$ac_ct_CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309 if test "x$ac_ct_CC" = x; then
3310 CC=""
3311 else
3312 case $cross_compiling:$ac_tool_warned in
3313 yes:)
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316 ac_tool_warned=yes ;;
3317 esac
3318 CC=$ac_ct_CC
3319 fi
3320 else
3321 CC="$ac_cv_prog_CC"
3322 fi
3323
3324 if test -z "$CC"; then
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}cc; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if ${ac_cv_prog_CC+:} false; then :
3331 $as_echo_n "(cached) " >&6
3332 else
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC="$CC" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_CC="${ac_tool_prefix}cc"
3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 break 2
3346 fi
3347 done
3348 done
3349 IFS=$as_save_IFS
3350
3351 fi
3352 fi
3353 CC=$ac_cv_prog_CC
3354 if test -n "$CC"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356 $as_echo "$CC" >&6; }
3357 else
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 fi
3361
3362
3363 fi
3364 fi
3365 if test -z "$CC"; then
3366 # Extract the first word of "cc", so it can be a program name with args.
3367 set dummy cc; ac_word=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if ${ac_cv_prog_CC+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 if test -n "$CC"; then
3374 ac_cv_prog_CC="$CC" # Let the user override the test.
3375 else
3376 ac_prog_rejected=no
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3385 ac_prog_rejected=yes
3386 continue
3387 fi
3388 ac_cv_prog_CC="cc"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 break 2
3391 fi
3392 done
3393 done
3394 IFS=$as_save_IFS
3395
3396 if test $ac_prog_rejected = yes; then
3397 # We found a bogon in the path, so make sure we never use it.
3398 set dummy $ac_cv_prog_CC
3399 shift
3400 if test $# != 0; then
3401 # We chose a different compiler from the bogus one.
3402 # However, it has the same basename, so the bogon will be chosen
3403 # first if we set CC to just the basename; use the full file name.
3404 shift
3405 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3406 fi
3407 fi
3408 fi
3409 fi
3410 CC=$ac_cv_prog_CC
3411 if test -n "$CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413 $as_echo "$CC" >&6; }
3414 else
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3417 fi
3418
3419
3420 fi
3421 if test -z "$CC"; then
3422 if test -n "$ac_tool_prefix"; then
3423 for ac_prog in cl.exe
3424 do
3425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if ${ac_cv_prog_CC+:} false; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 if test -n "$CC"; then
3433 ac_cv_prog_CC="$CC" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3437 do
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 break 2
3445 fi
3446 done
3447 done
3448 IFS=$as_save_IFS
3449
3450 fi
3451 fi
3452 CC=$ac_cv_prog_CC
3453 if test -n "$CC"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455 $as_echo "$CC" >&6; }
3456 else
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3459 fi
3460
3461
3462 test -n "$CC" && break
3463 done
3464 fi
3465 if test -z "$CC"; then
3466 ac_ct_CC=$CC
3467 for ac_prog in cl.exe
3468 do
3469 # Extract the first word of "$ac_prog", so it can be a program name with args.
3470 set dummy $ac_prog; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if test -n "$ac_ct_CC"; then
3477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486 ac_cv_prog_ac_ct_CC="$ac_prog"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490 done
3491 done
3492 IFS=$as_save_IFS
3493
3494 fi
3495 fi
3496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3497 if test -n "$ac_ct_CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3499 $as_echo "$ac_ct_CC" >&6; }
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3503 fi
3504
3505
3506 test -n "$ac_ct_CC" && break
3507 done
3508
3509 if test "x$ac_ct_CC" = x; then
3510 CC=""
3511 else
3512 case $cross_compiling:$ac_tool_warned in
3513 yes:)
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3516 ac_tool_warned=yes ;;
3517 esac
3518 CC=$ac_ct_CC
3519 fi
3520 fi
3521
3522 fi
3523
3524
3525 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "no acceptable C compiler found in \$PATH
3528 See \`config.log' for more details" "$LINENO" 5; }
3529
3530 # Provide some information about the compiler.
3531 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3532 set X $ac_compile
3533 ac_compiler=$2
3534 for ac_option in --version -v -V -qversion; do
3535 { { ac_try="$ac_compiler $ac_option >&5"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3543 ac_status=$?
3544 if test -s conftest.err; then
3545 sed '10a\
3546 ... rest of stderr output deleted ...
3547 10q' conftest.err >conftest.er1
3548 cat conftest.er1 >&5
3549 fi
3550 rm -f conftest.er1 conftest.err
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }
3553 done
3554
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557
3558 int
3559 main ()
3560 {
3561
3562 ;
3563 return 0;
3564 }
3565 _ACEOF
3566 ac_clean_files_save=$ac_clean_files
3567 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3568 # Try to create an executable without -o first, disregard a.out.
3569 # It will help us diagnose broken compilers, and finding out an intuition
3570 # of exeext.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3572 $as_echo_n "checking whether the C compiler works... " >&6; }
3573 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3574
3575 # The possible output files:
3576 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3577
3578 ac_rmfiles=
3579 for ac_file in $ac_files
3580 do
3581 case $ac_file in
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3583 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3584 esac
3585 done
3586 rm -f $ac_rmfiles
3587
3588 if { { ac_try="$ac_link_default"
3589 case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592 esac
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_link_default") 2>&5
3596 ac_status=$?
3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598 test $ac_status = 0; }; then :
3599 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3600 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3601 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3602 # so that the user can short-circuit this test for compilers unknown to
3603 # Autoconf.
3604 for ac_file in $ac_files ''
3605 do
3606 test -f "$ac_file" || continue
3607 case $ac_file in
3608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3609 ;;
3610 [ab].out )
3611 # We found the default executable, but exeext='' is most
3612 # certainly right.
3613 break;;
3614 *.* )
3615 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3616 then :; else
3617 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3618 fi
3619 # We set ac_cv_exeext here because the later test for it is not
3620 # safe: cross compilers may not add the suffix if given an `-o'
3621 # argument, so we may need to know it at that point already.
3622 # Even if this section looks crufty: it has the advantage of
3623 # actually working.
3624 break;;
3625 * )
3626 break;;
3627 esac
3628 done
3629 test "$ac_cv_exeext" = no && ac_cv_exeext=
3630
3631 else
3632 ac_file=''
3633 fi
3634 if test -z "$ac_file"; then :
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3637 $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642 as_fn_error 77 "C compiler cannot create executables
3643 See \`config.log' for more details" "$LINENO" 5; }
3644 else
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3646 $as_echo "yes" >&6; }
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3649 $as_echo_n "checking for C compiler default output file name... " >&6; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3651 $as_echo "$ac_file" >&6; }
3652 ac_exeext=$ac_cv_exeext
3653
3654 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3655 ac_clean_files=$ac_clean_files_save
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3657 $as_echo_n "checking for suffix of executables... " >&6; }
3658 if { { ac_try="$ac_link"
3659 case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_link") 2>&5
3666 ac_status=$?
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }; then :
3669 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3670 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3671 # work properly (i.e., refer to `conftest.exe'), while it won't with
3672 # `rm'.
3673 for ac_file in conftest.exe conftest conftest.*; do
3674 test -f "$ac_file" || continue
3675 case $ac_file in
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3678 break;;
3679 * ) break;;
3680 esac
3681 done
3682 else
3683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3686 See \`config.log' for more details" "$LINENO" 5; }
3687 fi
3688 rm -f conftest conftest$ac_cv_exeext
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3690 $as_echo "$ac_cv_exeext" >&6; }
3691
3692 rm -f conftest.$ac_ext
3693 EXEEXT=$ac_cv_exeext
3694 ac_exeext=$EXEEXT
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697 #include <stdio.h>
3698 int
3699 main ()
3700 {
3701 FILE *f = fopen ("conftest.out", "w");
3702 return ferror (f) || fclose (f) != 0;
3703
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 ac_clean_files="$ac_clean_files conftest.out"
3709 # Check that the compiler produces executables we can run. If not, either
3710 # the compiler is broken, or we cross compile.
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3712 $as_echo_n "checking whether we are cross compiling... " >&6; }
3713 if test "$cross_compiling" != yes; then
3714 { { ac_try="$ac_link"
3715 case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718 esac
3719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720 $as_echo "$ac_try_echo"; } >&5
3721 (eval "$ac_link") 2>&5
3722 ac_status=$?
3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724 test $ac_status = 0; }
3725 if { ac_try='./conftest$ac_cv_exeext'
3726 { { case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3729 esac
3730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731 $as_echo "$ac_try_echo"; } >&5
3732 (eval "$ac_try") 2>&5
3733 ac_status=$?
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }; }; then
3736 cross_compiling=no
3737 else
3738 if test "$cross_compiling" = maybe; then
3739 cross_compiling=yes
3740 else
3741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error $? "cannot run C compiled programs.
3744 If you meant to cross compile, use \`--host'.
3745 See \`config.log' for more details" "$LINENO" 5; }
3746 fi
3747 fi
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3750 $as_echo "$cross_compiling" >&6; }
3751
3752 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3753 ac_clean_files=$ac_clean_files_save
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3755 $as_echo_n "checking for suffix of object files... " >&6; }
3756 if ${ac_cv_objext+:} false; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761
3762 int
3763 main ()
3764 {
3765
3766 ;
3767 return 0;
3768 }
3769 _ACEOF
3770 rm -f conftest.o conftest.obj
3771 if { { ac_try="$ac_compile"
3772 case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778 (eval "$ac_compile") 2>&5
3779 ac_status=$?
3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781 test $ac_status = 0; }; then :
3782 for ac_file in conftest.o conftest.obj conftest.*; do
3783 test -f "$ac_file" || continue;
3784 case $ac_file in
3785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3786 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3787 break;;
3788 esac
3789 done
3790 else
3791 $as_echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796 as_fn_error $? "cannot compute suffix of object files: cannot compile
3797 See \`config.log' for more details" "$LINENO" 5; }
3798 fi
3799 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3802 $as_echo "$ac_cv_objext" >&6; }
3803 OBJEXT=$ac_cv_objext
3804 ac_objext=$OBJEXT
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3806 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3807 if ${ac_cv_c_compiler_gnu+:} false; then :
3808 $as_echo_n "(cached) " >&6
3809 else
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812
3813 int
3814 main ()
3815 {
3816 #ifndef __GNUC__
3817 choke me
3818 #endif
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825 ac_compiler_gnu=yes
3826 else
3827 ac_compiler_gnu=no
3828 fi
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3831
3832 fi
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3834 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3835 if test $ac_compiler_gnu = yes; then
3836 GCC=yes
3837 else
3838 GCC=
3839 fi
3840 ac_test_CFLAGS=${CFLAGS+set}
3841 ac_save_CFLAGS=$CFLAGS
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3843 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3844 if ${ac_cv_prog_cc_g+:} false; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 ac_save_c_werror_flag=$ac_c_werror_flag
3848 ac_c_werror_flag=yes
3849 ac_cv_prog_cc_g=no
3850 CFLAGS="-g"
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3853
3854 int
3855 main ()
3856 {
3857
3858 ;
3859 return 0;
3860 }
3861 _ACEOF
3862 if ac_fn_c_try_compile "$LINENO"; then :
3863 ac_cv_prog_cc_g=yes
3864 else
3865 CFLAGS=""
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868
3869 int
3870 main ()
3871 {
3872
3873 ;
3874 return 0;
3875 }
3876 _ACEOF
3877 if ac_fn_c_try_compile "$LINENO"; then :
3878
3879 else
3880 ac_c_werror_flag=$ac_save_c_werror_flag
3881 CFLAGS="-g"
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884
3885 int
3886 main ()
3887 {
3888
3889 ;
3890 return 0;
3891 }
3892 _ACEOF
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_cv_prog_cc_g=yes
3895 fi
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 fi
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3904 $as_echo "$ac_cv_prog_cc_g" >&6; }
3905 if test "$ac_test_CFLAGS" = set; then
3906 CFLAGS=$ac_save_CFLAGS
3907 elif test $ac_cv_prog_cc_g = yes; then
3908 if test "$GCC" = yes; then
3909 CFLAGS="-g -O2"
3910 else
3911 CFLAGS="-g"
3912 fi
3913 else
3914 if test "$GCC" = yes; then
3915 CFLAGS="-O2"
3916 else
3917 CFLAGS=
3918 fi
3919 fi
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3921 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3922 if ${ac_cv_prog_cc_c89+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 ac_cv_prog_cc_c89=no
3926 ac_save_CC=$CC
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929 #include <stdarg.h>
3930 #include <stdio.h>
3931 struct stat;
3932 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3933 struct buf { int x; };
3934 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3935 static char *e (p, i)
3936 char **p;
3937 int i;
3938 {
3939 return p[i];
3940 }
3941 static char *f (char * (*g) (char **, int), char **p, ...)
3942 {
3943 char *s;
3944 va_list v;
3945 va_start (v,p);
3946 s = g (p, va_arg (v,int));
3947 va_end (v);
3948 return s;
3949 }
3950
3951 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3952 function prototypes and stuff, but not '\xHH' hex character constants.
3953 These don't provoke an error unfortunately, instead are silently treated
3954 as 'x'. The following induces an error, until -std is added to get
3955 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3956 array size at least. It's necessary to write '\x00'==0 to get something
3957 that's true only with -std. */
3958 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3959
3960 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3961 inside strings and character constants. */
3962 #define FOO(x) 'x'
3963 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3964
3965 int test (int i, double x);
3966 struct s1 {int (*f) (int a);};
3967 struct s2 {int (*f) (double a);};
3968 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3969 int argc;
3970 char **argv;
3971 int
3972 main ()
3973 {
3974 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3975 ;
3976 return 0;
3977 }
3978 _ACEOF
3979 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3980 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3981 do
3982 CC="$ac_save_CC $ac_arg"
3983 if ac_fn_c_try_compile "$LINENO"; then :
3984 ac_cv_prog_cc_c89=$ac_arg
3985 fi
3986 rm -f core conftest.err conftest.$ac_objext
3987 test "x$ac_cv_prog_cc_c89" != "xno" && break
3988 done
3989 rm -f conftest.$ac_ext
3990 CC=$ac_save_CC
3991
3992 fi
3993 # AC_CACHE_VAL
3994 case "x$ac_cv_prog_cc_c89" in
3995 x)
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3997 $as_echo "none needed" >&6; } ;;
3998 xno)
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4000 $as_echo "unsupported" >&6; } ;;
4001 *)
4002 CC="$CC $ac_cv_prog_cc_c89"
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4004 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4005 esac
4006 if test "x$ac_cv_prog_cc_c89" != xno; then :
4007
4008 fi
4009
4010 ac_ext=c
4011 ac_cpp='$CPP $CPPFLAGS'
4012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015
4016 ac_ext=c
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4022 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4023 if ${am_cv_prog_cc_c_o+:} false; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028
4029 int
4030 main ()
4031 {
4032
4033 ;
4034 return 0;
4035 }
4036 _ACEOF
4037 # Make sure it works both with $CC and with simple cc.
4038 # Following AC_PROG_CC_C_O, we do the test twice because some
4039 # compilers refuse to overwrite an existing .o file with -o,
4040 # though they will create one.
4041 am_cv_prog_cc_c_o=yes
4042 for am_i in 1 2; do
4043 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4044 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } \
4048 && test -f conftest2.$ac_objext; then
4049 : OK
4050 else
4051 am_cv_prog_cc_c_o=no
4052 break
4053 fi
4054 done
4055 rm -f core conftest*
4056 unset am_i
4057 fi
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4059 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4060 if test "$am_cv_prog_cc_c_o" != yes; then
4061 # Losing compiler, so override with the script.
4062 # FIXME: It is wrong to rewrite CC.
4063 # But if we don't then we get into trouble of one sort or another.
4064 # A longer-term fix would be to have automake use am__CC in this case,
4065 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4066 CC="$am_aux_dir/compile $CC"
4067 fi
4068 ac_ext=c
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073
4074 DEPDIR="${am__leading_dot}deps"
4075
4076 ac_config_commands="$ac_config_commands depfiles"
4077
4078
4079 am_make=${MAKE-make}
4080 cat > confinc << 'END'
4081 am__doit:
4082 @echo this is the am__doit target
4083 .PHONY: am__doit
4084 END
4085 # If we don't find an include directive, just comment out the code.
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4087 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4088 am__include="#"
4089 am__quote=
4090 _am_result=none
4091 # First try GNU make style include.
4092 echo "include confinc" > confmf
4093 # Ignore all kinds of additional output from 'make'.
4094 case `$am_make -s -f confmf 2> /dev/null` in #(
4095 *the\ am__doit\ target*)
4096 am__include=include
4097 am__quote=
4098 _am_result=GNU
4099 ;;
4100 esac
4101 # Now try BSD make style include.
4102 if test "$am__include" = "#"; then
4103 echo '.include "confinc"' > confmf
4104 case `$am_make -s -f confmf 2> /dev/null` in #(
4105 *the\ am__doit\ target*)
4106 am__include=.include
4107 am__quote="\""
4108 _am_result=BSD
4109 ;;
4110 esac
4111 fi
4112
4113
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4115 $as_echo "$_am_result" >&6; }
4116 rm -f confinc confmf
4117
4118 # Check whether --enable-dependency-tracking was given.
4119 if test "${enable_dependency_tracking+set}" = set; then :
4120 enableval=$enable_dependency_tracking;
4121 fi
4122
4123 if test "x$enable_dependency_tracking" != xno; then
4124 am_depcomp="$ac_aux_dir/depcomp"
4125 AMDEPBACKSLASH='\'
4126 am__nodep='_no'
4127 fi
4128 if test "x$enable_dependency_tracking" != xno; then
4129 AMDEP_TRUE=
4130 AMDEP_FALSE='#'
4131 else
4132 AMDEP_TRUE='#'
4133 AMDEP_FALSE=
4134 fi
4135
4136
4137
4138 depcc="$CC" am_compiler_list=
4139
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4141 $as_echo_n "checking dependency style of $depcc... " >&6; }
4142 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4146 # We make a subdir and do the tests there. Otherwise we can end up
4147 # making bogus files that we don't know about and never remove. For
4148 # instance it was reported that on HP-UX the gcc test will end up
4149 # making a dummy file named 'D' -- because '-MD' means "put the output
4150 # in D".
4151 rm -rf conftest.dir
4152 mkdir conftest.dir
4153 # Copy depcomp to subdir because otherwise we won't find it if we're
4154 # using a relative directory.
4155 cp "$am_depcomp" conftest.dir
4156 cd conftest.dir
4157 # We will build objects and dependencies in a subdirectory because
4158 # it helps to detect inapplicable dependency modes. For instance
4159 # both Tru64's cc and ICC support -MD to output dependencies as a
4160 # side effect of compilation, but ICC will put the dependencies in
4161 # the current directory while Tru64 will put them in the object
4162 # directory.
4163 mkdir sub
4164
4165 am_cv_CC_dependencies_compiler_type=none
4166 if test "$am_compiler_list" = ""; then
4167 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4168 fi
4169 am__universal=false
4170 case " $depcc " in #(
4171 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4172 esac
4173
4174 for depmode in $am_compiler_list; do
4175 # Setup a source with many dependencies, because some compilers
4176 # like to wrap large dependency lists on column 80 (with \), and
4177 # we should not choose a depcomp mode which is confused by this.
4178 #
4179 # We need to recreate these files for each test, as the compiler may
4180 # overwrite some of them when testing with obscure command lines.
4181 # This happens at least with the AIX C compiler.
4182 : > sub/conftest.c
4183 for i in 1 2 3 4 5 6; do
4184 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4185 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4186 # Solaris 10 /bin/sh.
4187 echo '/* dummy */' > sub/conftst$i.h
4188 done
4189 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4190
4191 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4192 # mode. It turns out that the SunPro C++ compiler does not properly
4193 # handle '-M -o', and we need to detect this. Also, some Intel
4194 # versions had trouble with output in subdirs.
4195 am__obj=sub/conftest.${OBJEXT-o}
4196 am__minus_obj="-o $am__obj"
4197 case $depmode in
4198 gcc)
4199 # This depmode causes a compiler race in universal mode.
4200 test "$am__universal" = false || continue
4201 ;;
4202 nosideeffect)
4203 # After this tag, mechanisms are not by side-effect, so they'll
4204 # only be used when explicitly requested.
4205 if test "x$enable_dependency_tracking" = xyes; then
4206 continue
4207 else
4208 break
4209 fi
4210 ;;
4211 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4212 # This compiler won't grok '-c -o', but also, the minuso test has
4213 # not run yet. These depmodes are late enough in the game, and
4214 # so weak that their functioning should not be impacted.
4215 am__obj=conftest.${OBJEXT-o}
4216 am__minus_obj=
4217 ;;
4218 none) break ;;
4219 esac
4220 if depmode=$depmode \
4221 source=sub/conftest.c object=$am__obj \
4222 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4223 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4224 >/dev/null 2>conftest.err &&
4225 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4226 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4227 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4228 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4229 # icc doesn't choke on unknown options, it will just issue warnings
4230 # or remarks (even with -Werror). So we grep stderr for any message
4231 # that says an option was ignored or not supported.
4232 # When given -MP, icc 7.0 and 7.1 complain thusly:
4233 # icc: Command line warning: ignoring option '-M'; no argument required
4234 # The diagnosis changed in icc 8.0:
4235 # icc: Command line remark: option '-MP' not supported
4236 if (grep 'ignoring option' conftest.err ||
4237 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4238 am_cv_CC_dependencies_compiler_type=$depmode
4239 break
4240 fi
4241 fi
4242 done
4243
4244 cd ..
4245 rm -rf conftest.dir
4246 else
4247 am_cv_CC_dependencies_compiler_type=none
4248 fi
4249
4250 fi
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4252 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4253 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4254
4255 if
4256 test "x$enable_dependency_tracking" != xno \
4257 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4258 am__fastdepCC_TRUE=
4259 am__fastdepCC_FALSE='#'
4260 else
4261 am__fastdepCC_TRUE='#'
4262 am__fastdepCC_FALSE=
4263 fi
4264
4265
4266
4267 ac_ext=c
4268 ac_cpp='$CPP $CPPFLAGS'
4269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4273 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4274 # On Suns, sometimes $CPP names a directory.
4275 if test -n "$CPP" && test -d "$CPP"; then
4276 CPP=
4277 fi
4278 if test -z "$CPP"; then
4279 if ${ac_cv_prog_CPP+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 # Double quotes because CPP needs to be expanded
4283 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4284 do
4285 ac_preproc_ok=false
4286 for ac_c_preproc_warn_flag in '' yes
4287 do
4288 # Use a header file that comes with gcc, so configuring glibc
4289 # with a fresh cross-compiler works.
4290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4291 # <limits.h> exists even on freestanding compilers.
4292 # On the NeXT, cc -E runs the code through the compiler's parser,
4293 # not just through cpp. "Syntax error" is here to catch this case.
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296 #ifdef __STDC__
4297 # include <limits.h>
4298 #else
4299 # include <assert.h>
4300 #endif
4301 Syntax error
4302 _ACEOF
4303 if ac_fn_c_try_cpp "$LINENO"; then :
4304
4305 else
4306 # Broken: fails on valid input.
4307 continue
4308 fi
4309 rm -f conftest.err conftest.i conftest.$ac_ext
4310
4311 # OK, works on sane cases. Now check whether nonexistent headers
4312 # can be detected and how.
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4315 #include <ac_nonexistent.h>
4316 _ACEOF
4317 if ac_fn_c_try_cpp "$LINENO"; then :
4318 # Broken: success on invalid input.
4319 continue
4320 else
4321 # Passes both tests.
4322 ac_preproc_ok=:
4323 break
4324 fi
4325 rm -f conftest.err conftest.i conftest.$ac_ext
4326
4327 done
4328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4329 rm -f conftest.i conftest.err conftest.$ac_ext
4330 if $ac_preproc_ok; then :
4331 break
4332 fi
4333
4334 done
4335 ac_cv_prog_CPP=$CPP
4336
4337 fi
4338 CPP=$ac_cv_prog_CPP
4339 else
4340 ac_cv_prog_CPP=$CPP
4341 fi
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4343 $as_echo "$CPP" >&6; }
4344 ac_preproc_ok=false
4345 for ac_c_preproc_warn_flag in '' yes
4346 do
4347 # Use a header file that comes with gcc, so configuring glibc
4348 # with a fresh cross-compiler works.
4349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4350 # <limits.h> exists even on freestanding compilers.
4351 # On the NeXT, cc -E runs the code through the compiler's parser,
4352 # not just through cpp. "Syntax error" is here to catch this case.
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4355 #ifdef __STDC__
4356 # include <limits.h>
4357 #else
4358 # include <assert.h>
4359 #endif
4360 Syntax error
4361 _ACEOF
4362 if ac_fn_c_try_cpp "$LINENO"; then :
4363
4364 else
4365 # Broken: fails on valid input.
4366 continue
4367 fi
4368 rm -f conftest.err conftest.i conftest.$ac_ext
4369
4370 # OK, works on sane cases. Now check whether nonexistent headers
4371 # can be detected and how.
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374 #include <ac_nonexistent.h>
4375 _ACEOF
4376 if ac_fn_c_try_cpp "$LINENO"; then :
4377 # Broken: success on invalid input.
4378 continue
4379 else
4380 # Passes both tests.
4381 ac_preproc_ok=:
4382 break
4383 fi
4384 rm -f conftest.err conftest.i conftest.$ac_ext
4385
4386 done
4387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4388 rm -f conftest.i conftest.err conftest.$ac_ext
4389 if $ac_preproc_ok; then :
4390
4391 else
4392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4394 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4395 See \`config.log' for more details" "$LINENO" 5; }
4396 fi
4397
4398 ac_ext=c
4399 ac_cpp='$CPP $CPPFLAGS'
4400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403
4404
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4406 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4407 if ${ac_cv_path_GREP+:} false; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -z "$GREP"; then
4411 ac_path_GREP_found=false
4412 # Loop through the user's path and test for each of PROGNAME-LIST
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4415 do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_prog in grep ggrep; do
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4421 as_fn_executable_p "$ac_path_GREP" || continue
4422 # Check for GNU ac_path_GREP and select it if it is found.
4423 # Check for GNU $ac_path_GREP
4424 case `"$ac_path_GREP" --version 2>&1` in
4425 *GNU*)
4426 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4427 *)
4428 ac_count=0
4429 $as_echo_n 0123456789 >"conftest.in"
4430 while :
4431 do
4432 cat "conftest.in" "conftest.in" >"conftest.tmp"
4433 mv "conftest.tmp" "conftest.in"
4434 cp "conftest.in" "conftest.nl"
4435 $as_echo 'GREP' >> "conftest.nl"
4436 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4438 as_fn_arith $ac_count + 1 && ac_count=$as_val
4439 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4440 # Best one so far, save it but keep looking for a better one
4441 ac_cv_path_GREP="$ac_path_GREP"
4442 ac_path_GREP_max=$ac_count
4443 fi
4444 # 10*(2^10) chars as input seems more than enough
4445 test $ac_count -gt 10 && break
4446 done
4447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4448 esac
4449
4450 $ac_path_GREP_found && break 3
4451 done
4452 done
4453 done
4454 IFS=$as_save_IFS
4455 if test -z "$ac_cv_path_GREP"; then
4456 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4457 fi
4458 else
4459 ac_cv_path_GREP=$GREP
4460 fi
4461
4462 fi
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4464 $as_echo "$ac_cv_path_GREP" >&6; }
4465 GREP="$ac_cv_path_GREP"
4466
4467
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4469 $as_echo_n "checking for egrep... " >&6; }
4470 if ${ac_cv_path_EGREP+:} false; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4474 then ac_cv_path_EGREP="$GREP -E"
4475 else
4476 if test -z "$EGREP"; then
4477 ac_path_EGREP_found=false
4478 # Loop through the user's path and test for each of PROGNAME-LIST
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4481 do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_prog in egrep; do
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4487 as_fn_executable_p "$ac_path_EGREP" || continue
4488 # Check for GNU ac_path_EGREP and select it if it is found.
4489 # Check for GNU $ac_path_EGREP
4490 case `"$ac_path_EGREP" --version 2>&1` in
4491 *GNU*)
4492 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4493 *)
4494 ac_count=0
4495 $as_echo_n 0123456789 >"conftest.in"
4496 while :
4497 do
4498 cat "conftest.in" "conftest.in" >"conftest.tmp"
4499 mv "conftest.tmp" "conftest.in"
4500 cp "conftest.in" "conftest.nl"
4501 $as_echo 'EGREP' >> "conftest.nl"
4502 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4504 as_fn_arith $ac_count + 1 && ac_count=$as_val
4505 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4506 # Best one so far, save it but keep looking for a better one
4507 ac_cv_path_EGREP="$ac_path_EGREP"
4508 ac_path_EGREP_max=$ac_count
4509 fi
4510 # 10*(2^10) chars as input seems more than enough
4511 test $ac_count -gt 10 && break
4512 done
4513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4514 esac
4515
4516 $ac_path_EGREP_found && break 3
4517 done
4518 done
4519 done
4520 IFS=$as_save_IFS
4521 if test -z "$ac_cv_path_EGREP"; then
4522 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4523 fi
4524 else
4525 ac_cv_path_EGREP=$EGREP
4526 fi
4527
4528 fi
4529 fi
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4531 $as_echo "$ac_cv_path_EGREP" >&6; }
4532 EGREP="$ac_cv_path_EGREP"
4533
4534
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4536 $as_echo_n "checking for ANSI C header files... " >&6; }
4537 if ${ac_cv_header_stdc+:} false; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542 #include <stdlib.h>
4543 #include <stdarg.h>
4544 #include <string.h>
4545 #include <float.h>
4546
4547 int
4548 main ()
4549 {
4550
4551 ;
4552 return 0;
4553 }
4554 _ACEOF
4555 if ac_fn_c_try_compile "$LINENO"; then :
4556 ac_cv_header_stdc=yes
4557 else
4558 ac_cv_header_stdc=no
4559 fi
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561
4562 if test $ac_cv_header_stdc = yes; then
4563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566 #include <string.h>
4567
4568 _ACEOF
4569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4570 $EGREP "memchr" >/dev/null 2>&1; then :
4571
4572 else
4573 ac_cv_header_stdc=no
4574 fi
4575 rm -f conftest*
4576
4577 fi
4578
4579 if test $ac_cv_header_stdc = yes; then
4580 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4583 #include <stdlib.h>
4584
4585 _ACEOF
4586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4587 $EGREP "free" >/dev/null 2>&1; then :
4588
4589 else
4590 ac_cv_header_stdc=no
4591 fi
4592 rm -f conftest*
4593
4594 fi
4595
4596 if test $ac_cv_header_stdc = yes; then
4597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4598 if test "$cross_compiling" = yes; then :
4599 :
4600 else
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603 #include <ctype.h>
4604 #include <stdlib.h>
4605 #if ((' ' & 0x0FF) == 0x020)
4606 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4607 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4608 #else
4609 # define ISLOWER(c) \
4610 (('a' <= (c) && (c) <= 'i') \
4611 || ('j' <= (c) && (c) <= 'r') \
4612 || ('s' <= (c) && (c) <= 'z'))
4613 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4614 #endif
4615
4616 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4617 int
4618 main ()
4619 {
4620 int i;
4621 for (i = 0; i < 256; i++)
4622 if (XOR (islower (i), ISLOWER (i))
4623 || toupper (i) != TOUPPER (i))
4624 return 2;
4625 return 0;
4626 }
4627 _ACEOF
4628 if ac_fn_c_try_run "$LINENO"; then :
4629
4630 else
4631 ac_cv_header_stdc=no
4632 fi
4633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4634 conftest.$ac_objext conftest.beam conftest.$ac_ext
4635 fi
4636
4637 fi
4638 fi
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4640 $as_echo "$ac_cv_header_stdc" >&6; }
4641 if test $ac_cv_header_stdc = yes; then
4642
4643 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4644
4645 fi
4646
4647 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4648 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4649 inttypes.h stdint.h unistd.h
4650 do :
4651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4652 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4653 "
4654 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4655 cat >>confdefs.h <<_ACEOF
4656 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4657 _ACEOF
4658
4659 fi
4660
4661 done
4662
4663
4664
4665 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4666 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4667 MINIX=yes
4668 else
4669 MINIX=
4670 fi
4671
4672
4673 if test "$MINIX" = yes; then
4674
4675 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4676
4677
4678 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4679
4680
4681 $as_echo "#define _MINIX 1" >>confdefs.h
4682
4683 fi
4684
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4687 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4688 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4693
4694 # define __EXTENSIONS__ 1
4695 $ac_includes_default
4696 int
4697 main ()
4698 {
4699
4700 ;
4701 return 0;
4702 }
4703 _ACEOF
4704 if ac_fn_c_try_compile "$LINENO"; then :
4705 ac_cv_safe_to_define___extensions__=yes
4706 else
4707 ac_cv_safe_to_define___extensions__=no
4708 fi
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 fi
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4712 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4713 test $ac_cv_safe_to_define___extensions__ = yes &&
4714 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4715
4716 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4717
4718 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4719
4720 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4721
4722 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4723
4724
4725 # Check whether --enable-largefile was given.
4726 if test "${enable_largefile+set}" = set; then :
4727 enableval=$enable_largefile;
4728 fi
4729
4730 if test "$enable_largefile" != no; then
4731
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4733 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4734 if ${ac_cv_sys_largefile_CC+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 ac_cv_sys_largefile_CC=no
4738 if test "$GCC" != yes; then
4739 ac_save_CC=$CC
4740 while :; do
4741 # IRIX 6.2 and later do not support large files by default,
4742 # so use the C compiler's -n32 option if that helps.
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 #include <sys/types.h>
4746 /* Check that off_t can represent 2**63 - 1 correctly.
4747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4748 since some C++ compilers masquerading as C compilers
4749 incorrectly reject 9223372036854775807. */
4750 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4752 && LARGE_OFF_T % 2147483647 == 1)
4753 ? 1 : -1];
4754 int
4755 main ()
4756 {
4757
4758 ;
4759 return 0;
4760 }
4761 _ACEOF
4762 if ac_fn_c_try_compile "$LINENO"; then :
4763 break
4764 fi
4765 rm -f core conftest.err conftest.$ac_objext
4766 CC="$CC -n32"
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 ac_cv_sys_largefile_CC=' -n32'; break
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext
4771 break
4772 done
4773 CC=$ac_save_CC
4774 rm -f conftest.$ac_ext
4775 fi
4776 fi
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4778 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4779 if test "$ac_cv_sys_largefile_CC" != no; then
4780 CC=$CC$ac_cv_sys_largefile_CC
4781 fi
4782
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4784 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4785 if ${ac_cv_sys_file_offset_bits+:} false; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 while :; do
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4791 #include <sys/types.h>
4792 /* Check that off_t can represent 2**63 - 1 correctly.
4793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4794 since some C++ compilers masquerading as C compilers
4795 incorrectly reject 9223372036854775807. */
4796 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4798 && LARGE_OFF_T % 2147483647 == 1)
4799 ? 1 : -1];
4800 int
4801 main ()
4802 {
4803
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_sys_file_offset_bits=no; break
4810 fi
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4814 #define _FILE_OFFSET_BITS 64
4815 #include <sys/types.h>
4816 /* Check that off_t can represent 2**63 - 1 correctly.
4817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4818 since some C++ compilers masquerading as C compilers
4819 incorrectly reject 9223372036854775807. */
4820 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4822 && LARGE_OFF_T % 2147483647 == 1)
4823 ? 1 : -1];
4824 int
4825 main ()
4826 {
4827
4828 ;
4829 return 0;
4830 }
4831 _ACEOF
4832 if ac_fn_c_try_compile "$LINENO"; then :
4833 ac_cv_sys_file_offset_bits=64; break
4834 fi
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 ac_cv_sys_file_offset_bits=unknown
4837 break
4838 done
4839 fi
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4841 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4842 case $ac_cv_sys_file_offset_bits in #(
4843 no | unknown) ;;
4844 *)
4845 cat >>confdefs.h <<_ACEOF
4846 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4847 _ACEOF
4848 ;;
4849 esac
4850 rm -rf conftest*
4851 if test $ac_cv_sys_file_offset_bits = unknown; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4853 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4854 if ${ac_cv_sys_large_files+:} false; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 while :; do
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4860 #include <sys/types.h>
4861 /* Check that off_t can represent 2**63 - 1 correctly.
4862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4863 since some C++ compilers masquerading as C compilers
4864 incorrectly reject 9223372036854775807. */
4865 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4867 && LARGE_OFF_T % 2147483647 == 1)
4868 ? 1 : -1];
4869 int
4870 main ()
4871 {
4872
4873 ;
4874 return 0;
4875 }
4876 _ACEOF
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 ac_cv_sys_large_files=no; break
4879 fi
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883 #define _LARGE_FILES 1
4884 #include <sys/types.h>
4885 /* Check that off_t can represent 2**63 - 1 correctly.
4886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4887 since some C++ compilers masquerading as C compilers
4888 incorrectly reject 9223372036854775807. */
4889 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4891 && LARGE_OFF_T % 2147483647 == 1)
4892 ? 1 : -1];
4893 int
4894 main ()
4895 {
4896
4897 ;
4898 return 0;
4899 }
4900 _ACEOF
4901 if ac_fn_c_try_compile "$LINENO"; then :
4902 ac_cv_sys_large_files=1; break
4903 fi
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905 ac_cv_sys_large_files=unknown
4906 break
4907 done
4908 fi
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4910 $as_echo "$ac_cv_sys_large_files" >&6; }
4911 case $ac_cv_sys_large_files in #(
4912 no | unknown) ;;
4913 *)
4914 cat >>confdefs.h <<_ACEOF
4915 #define _LARGE_FILES $ac_cv_sys_large_files
4916 _ACEOF
4917 ;;
4918 esac
4919 rm -rf conftest*
4920 fi
4921
4922
4923 fi
4924
4925
4926 if test -n "$ac_tool_prefix"; then
4927 for ac_prog in ar lib "link -lib"
4928 do
4929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if ${ac_cv_prog_AR+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 if test -n "$AR"; then
4937 ac_cv_prog_AR="$AR" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4949 fi
4950 done
4951 done
4952 IFS=$as_save_IFS
4953
4954 fi
4955 fi
4956 AR=$ac_cv_prog_AR
4957 if test -n "$AR"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4959 $as_echo "$AR" >&6; }
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4963 fi
4964
4965
4966 test -n "$AR" && break
4967 done
4968 fi
4969 if test -z "$AR"; then
4970 ac_ct_AR=$AR
4971 for ac_prog in ar lib "link -lib"
4972 do
4973 # Extract the first word of "$ac_prog", so it can be a program name with args.
4974 set dummy $ac_prog; ac_word=$2
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976 $as_echo_n "checking for $ac_word... " >&6; }
4977 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 if test -n "$ac_ct_AR"; then
4981 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4982 else
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4985 do
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4990 ac_cv_prog_ac_ct_AR="$ac_prog"
4991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 break 2
4993 fi
4994 done
4995 done
4996 IFS=$as_save_IFS
4997
4998 fi
4999 fi
5000 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5001 if test -n "$ac_ct_AR"; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5003 $as_echo "$ac_ct_AR" >&6; }
5004 else
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5007 fi
5008
5009
5010 test -n "$ac_ct_AR" && break
5011 done
5012
5013 if test "x$ac_ct_AR" = x; then
5014 AR="false"
5015 else
5016 case $cross_compiling:$ac_tool_warned in
5017 yes:)
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5020 ac_tool_warned=yes ;;
5021 esac
5022 AR=$ac_ct_AR
5023 fi
5024 fi
5025
5026 : ${AR=ar}
5027
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5029 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5030 if ${am_cv_ar_interface+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 ac_ext=c
5034 ac_cpp='$CPP $CPPFLAGS'
5035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5038
5039 am_cv_ar_interface=ar
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5042 int some_variable = 0;
5043 _ACEOF
5044 if ac_fn_c_try_compile "$LINENO"; then :
5045 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5047 (eval $am_ar_try) 2>&5
5048 ac_status=$?
5049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5050 test $ac_status = 0; }
5051 if test "$ac_status" -eq 0; then
5052 am_cv_ar_interface=ar
5053 else
5054 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5056 (eval $am_ar_try) 2>&5
5057 ac_status=$?
5058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5059 test $ac_status = 0; }
5060 if test "$ac_status" -eq 0; then
5061 am_cv_ar_interface=lib
5062 else
5063 am_cv_ar_interface=unknown
5064 fi
5065 fi
5066 rm -f conftest.lib libconftest.a
5067
5068 fi
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 ac_ext=c
5071 ac_cpp='$CPP $CPPFLAGS'
5072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5075
5076 fi
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5078 $as_echo "$am_cv_ar_interface" >&6; }
5079
5080 case $am_cv_ar_interface in
5081 ar)
5082 ;;
5083 lib)
5084 # Microsoft lib, so override with the ar-lib wrapper script.
5085 # FIXME: It is wrong to rewrite AR.
5086 # But if we don't then we get into trouble of one sort or another.
5087 # A longer-term fix would be to have automake use am__AR in this case,
5088 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5089 # similar.
5090 AR="$am_aux_dir/ar-lib $AR"
5091 ;;
5092 unknown)
5093 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5094 ;;
5095 esac
5096
5097
5098 # Check whether --enable-static was given.
5099 if test "${enable_static+set}" = set; then :
5100 enableval=$enable_static; p=${PACKAGE-default}
5101 case $enableval in
5102 yes) enable_static=yes ;;
5103 no) enable_static=no ;;
5104 *)
5105 enable_static=no
5106 # Look at the argument we got. We use all the common list separators.
5107 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5108 for pkg in $enableval; do
5109 IFS="$lt_save_ifs"
5110 if test "X$pkg" = "X$p"; then
5111 enable_static=yes
5112 fi
5113 done
5114 IFS="$lt_save_ifs"
5115 ;;
5116 esac
5117 else
5118 enable_static=no
5119 fi
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129 case `pwd` in
5130 *\ * | *\ *)
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5132 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5133 esac
5134
5135
5136
5137 macro_version='2.4.2'
5138 macro_revision='1.3337'
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152 ltmain="$ac_aux_dir/ltmain.sh"
5153
5154 # Make sure we can run config.sub.
5155 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5156 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5159 $as_echo_n "checking build system type... " >&6; }
5160 if ${ac_cv_build+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 ac_build_alias=$build_alias
5164 test "x$ac_build_alias" = x &&
5165 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5166 test "x$ac_build_alias" = x &&
5167 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5168 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5169 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5170
5171 fi
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5173 $as_echo "$ac_cv_build" >&6; }
5174 case $ac_cv_build in
5175 *-*-*) ;;
5176 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5177 esac
5178 build=$ac_cv_build
5179 ac_save_IFS=$IFS; IFS='-'
5180 set x $ac_cv_build
5181 shift
5182 build_cpu=$1
5183 build_vendor=$2
5184 shift; shift
5185 # Remember, the first character of IFS is used to create $*,
5186 # except with old shells:
5187 build_os=$*
5188 IFS=$ac_save_IFS
5189 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5190
5191
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5193 $as_echo_n "checking host system type... " >&6; }
5194 if ${ac_cv_host+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if test "x$host_alias" = x; then
5198 ac_cv_host=$ac_cv_build
5199 else
5200 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5201 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5202 fi
5203
5204 fi
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5206 $as_echo "$ac_cv_host" >&6; }
5207 case $ac_cv_host in
5208 *-*-*) ;;
5209 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5210 esac
5211 host=$ac_cv_host
5212 ac_save_IFS=$IFS; IFS='-'
5213 set x $ac_cv_host
5214 shift
5215 host_cpu=$1
5216 host_vendor=$2
5217 shift; shift
5218 # Remember, the first character of IFS is used to create $*,
5219 # except with old shells:
5220 host_os=$*
5221 IFS=$ac_save_IFS
5222 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5223
5224
5225 # Backslashify metacharacters that are still active within
5226 # double-quoted strings.
5227 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5228
5229 # Same as above, but do not quote variable references.
5230 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5231
5232 # Sed substitution to delay expansion of an escaped shell variable in a
5233 # double_quote_subst'ed string.
5234 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5235
5236 # Sed substitution to delay expansion of an escaped single quote.
5237 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5238
5239 # Sed substitution to avoid accidental globbing in evaled expressions
5240 no_glob_subst='s/\*/\\\*/g'
5241
5242 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5243 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5244 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5245
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5247 $as_echo_n "checking how to print strings... " >&6; }
5248 # Test print first, because it will be a builtin if present.
5249 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5250 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5251 ECHO='print -r --'
5252 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5253 ECHO='printf %s\n'
5254 else
5255 # Use this function as a fallback that always works.
5256 func_fallback_echo ()
5257 {
5258 eval 'cat <<_LTECHO_EOF
5259 $1
5260 _LTECHO_EOF'
5261 }
5262 ECHO='func_fallback_echo'
5263 fi
5264
5265 # func_echo_all arg...
5266 # Invoke $ECHO with all args, space-separated.
5267 func_echo_all ()
5268 {
5269 $ECHO ""
5270 }
5271
5272 case "$ECHO" in
5273 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5274 $as_echo "printf" >&6; } ;;
5275 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5276 $as_echo "print -r" >&6; } ;;
5277 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5278 $as_echo "cat" >&6; } ;;
5279 esac
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5295 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5296 if ${ac_cv_path_SED+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5300 for ac_i in 1 2 3 4 5 6 7; do
5301 ac_script="$ac_script$as_nl$ac_script"
5302 done
5303 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5304 { ac_script=; unset ac_script;}
5305 if test -z "$SED"; then
5306 ac_path_SED_found=false
5307 # Loop through the user's path and test for each of PROGNAME-LIST
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5310 do
5311 IFS=$as_save_IFS
5312 test -z "$as_dir" && as_dir=.
5313 for ac_prog in sed gsed; do
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5316 as_fn_executable_p "$ac_path_SED" || continue
5317 # Check for GNU ac_path_SED and select it if it is found.
5318 # Check for GNU $ac_path_SED
5319 case `"$ac_path_SED" --version 2>&1` in
5320 *GNU*)
5321 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5322 *)
5323 ac_count=0
5324 $as_echo_n 0123456789 >"conftest.in"
5325 while :
5326 do
5327 cat "conftest.in" "conftest.in" >"conftest.tmp"
5328 mv "conftest.tmp" "conftest.in"
5329 cp "conftest.in" "conftest.nl"
5330 $as_echo '' >> "conftest.nl"
5331 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5333 as_fn_arith $ac_count + 1 && ac_count=$as_val
5334 if test $ac_count -gt ${ac_path_SED_max-0}; then
5335 # Best one so far, save it but keep looking for a better one
5336 ac_cv_path_SED="$ac_path_SED"
5337 ac_path_SED_max=$ac_count
5338 fi
5339 # 10*(2^10) chars as input seems more than enough
5340 test $ac_count -gt 10 && break
5341 done
5342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5343 esac
5344
5345 $ac_path_SED_found && break 3
5346 done
5347 done
5348 done
5349 IFS=$as_save_IFS
5350 if test -z "$ac_cv_path_SED"; then
5351 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5352 fi
5353 else
5354 ac_cv_path_SED=$SED
5355 fi
5356
5357 fi
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5359 $as_echo "$ac_cv_path_SED" >&6; }
5360 SED="$ac_cv_path_SED"
5361 rm -f conftest.sed
5362
5363 test -z "$SED" && SED=sed
5364 Xsed="$SED -e 1s/^X//"
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5377 $as_echo_n "checking for fgrep... " >&6; }
5378 if ${ac_cv_path_FGREP+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5382 then ac_cv_path_FGREP="$GREP -F"
5383 else
5384 if test -z "$FGREP"; then
5385 ac_path_FGREP_found=false
5386 # Loop through the user's path and test for each of PROGNAME-LIST
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5389 do
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_prog in fgrep; do
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5395 as_fn_executable_p "$ac_path_FGREP" || continue
5396 # Check for GNU ac_path_FGREP and select it if it is found.
5397 # Check for GNU $ac_path_FGREP
5398 case `"$ac_path_FGREP" --version 2>&1` in
5399 *GNU*)
5400 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5401 *)
5402 ac_count=0
5403 $as_echo_n 0123456789 >"conftest.in"
5404 while :
5405 do
5406 cat "conftest.in" "conftest.in" >"conftest.tmp"
5407 mv "conftest.tmp" "conftest.in"
5408 cp "conftest.in" "conftest.nl"
5409 $as_echo 'FGREP' >> "conftest.nl"
5410 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5412 as_fn_arith $ac_count + 1 && ac_count=$as_val
5413 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5414 # Best one so far, save it but keep looking for a better one
5415 ac_cv_path_FGREP="$ac_path_FGREP"
5416 ac_path_FGREP_max=$ac_count
5417 fi
5418 # 10*(2^10) chars as input seems more than enough
5419 test $ac_count -gt 10 && break
5420 done
5421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5422 esac
5423
5424 $ac_path_FGREP_found && break 3
5425 done
5426 done
5427 done
5428 IFS=$as_save_IFS
5429 if test -z "$ac_cv_path_FGREP"; then
5430 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5431 fi
5432 else
5433 ac_cv_path_FGREP=$FGREP
5434 fi
5435
5436 fi
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5439 $as_echo "$ac_cv_path_FGREP" >&6; }
5440 FGREP="$ac_cv_path_FGREP"
5441
5442
5443 test -z "$GREP" && GREP=grep
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463 # Check whether --with-gnu-ld was given.
5464 if test "${with_gnu_ld+set}" = set; then :
5465 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5466 else
5467 with_gnu_ld=no
5468 fi
5469
5470 ac_prog=ld
5471 if test "$GCC" = yes; then
5472 # Check if gcc -print-prog-name=ld gives a path.
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5474 $as_echo_n "checking for ld used by $CC... " >&6; }
5475 case $host in
5476 *-*-mingw*)
5477 # gcc leaves a trailing carriage return which upsets mingw
5478 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5479 *)
5480 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5481 esac
5482 case $ac_prog in
5483 # Accept absolute paths.
5484 [\\/]* | ?:[\\/]*)
5485 re_direlt='/[^/][^/]*/\.\./'
5486 # Canonicalize the pathname of ld
5487 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5488 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5489 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5490 done
5491 test -z "$LD" && LD="$ac_prog"
5492 ;;
5493 "")
5494 # If it fails, then pretend we aren't using GCC.
5495 ac_prog=ld
5496 ;;
5497 *)
5498 # If it is relative, then search for the first ld in PATH.
5499 with_gnu_ld=unknown
5500 ;;
5501 esac
5502 elif test "$with_gnu_ld" = yes; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5504 $as_echo_n "checking for GNU ld... " >&6; }
5505 else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5507 $as_echo_n "checking for non-GNU ld... " >&6; }
5508 fi
5509 if ${lt_cv_path_LD+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 if test -z "$LD"; then
5513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5514 for ac_dir in $PATH; do
5515 IFS="$lt_save_ifs"
5516 test -z "$ac_dir" && ac_dir=.
5517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5518 lt_cv_path_LD="$ac_dir/$ac_prog"
5519 # Check to see if the program is GNU ld. I'd rather use --version,
5520 # but apparently some variants of GNU ld only accept -v.
5521 # Break only if it was the GNU/non-GNU ld that we prefer.
5522 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5523 *GNU* | *'with BFD'*)
5524 test "$with_gnu_ld" != no && break
5525 ;;
5526 *)
5527 test "$with_gnu_ld" != yes && break
5528 ;;
5529 esac
5530 fi
5531 done
5532 IFS="$lt_save_ifs"
5533 else
5534 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5535 fi
5536 fi
5537
5538 LD="$lt_cv_path_LD"
5539 if test -n "$LD"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5541 $as_echo "$LD" >&6; }
5542 else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5545 fi
5546 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5548 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5549 if ${lt_cv_prog_gnu_ld+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5553 case `$LD -v 2>&1 </dev/null` in
5554 *GNU* | *'with BFD'*)
5555 lt_cv_prog_gnu_ld=yes
5556 ;;
5557 *)
5558 lt_cv_prog_gnu_ld=no
5559 ;;
5560 esac
5561 fi
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5563 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5564 with_gnu_ld=$lt_cv_prog_gnu_ld
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5575 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5576 if ${lt_cv_path_NM+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 if test -n "$NM"; then
5580 # Let the user override the test.
5581 lt_cv_path_NM="$NM"
5582 else
5583 lt_nm_to_check="${ac_tool_prefix}nm"
5584 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5585 lt_nm_to_check="$lt_nm_to_check nm"
5586 fi
5587 for lt_tmp_nm in $lt_nm_to_check; do
5588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5589 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5590 IFS="$lt_save_ifs"
5591 test -z "$ac_dir" && ac_dir=.
5592 tmp_nm="$ac_dir/$lt_tmp_nm"
5593 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5594 # Check to see if the nm accepts a BSD-compat flag.
5595 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5596 # nm: unknown option "B" ignored
5597 # Tru64's nm complains that /dev/null is an invalid object file
5598 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5599 */dev/null* | *'Invalid file or object type'*)
5600 lt_cv_path_NM="$tmp_nm -B"
5601 break
5602 ;;
5603 *)
5604 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5605 */dev/null*)
5606 lt_cv_path_NM="$tmp_nm -p"
5607 break
5608 ;;
5609 *)
5610 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5611 continue # so that we can try to find one that supports BSD flags
5612 ;;
5613 esac
5614 ;;
5615 esac
5616 fi
5617 done
5618 IFS="$lt_save_ifs"
5619 done
5620 : ${lt_cv_path_NM=no}
5621 fi
5622 fi
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5624 $as_echo "$lt_cv_path_NM" >&6; }
5625 if test "$lt_cv_path_NM" != "no"; then
5626 NM="$lt_cv_path_NM"
5627 else
5628 # Didn't find any BSD compatible name lister, look for dumpbin.
5629 if test -n "$DUMPBIN"; then :
5630 # Let the user override the test.
5631 else
5632 if test -n "$ac_tool_prefix"; then
5633 for ac_prog in dumpbin "link -dump"
5634 do
5635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 $as_echo_n "checking for $ac_word... " >&6; }
5639 if ${ac_cv_prog_DUMPBIN+:} false; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 if test -n "$DUMPBIN"; then
5643 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 break 2
5655 fi
5656 done
5657 done
5658 IFS=$as_save_IFS
5659
5660 fi
5661 fi
5662 DUMPBIN=$ac_cv_prog_DUMPBIN
5663 if test -n "$DUMPBIN"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5665 $as_echo "$DUMPBIN" >&6; }
5666 else
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5669 fi
5670
5671
5672 test -n "$DUMPBIN" && break
5673 done
5674 fi
5675 if test -z "$DUMPBIN"; then
5676 ac_ct_DUMPBIN=$DUMPBIN
5677 for ac_prog in dumpbin "link -dump"
5678 do
5679 # Extract the first word of "$ac_prog", so it can be a program name with args.
5680 set dummy $ac_prog; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 if test -n "$ac_ct_DUMPBIN"; then
5687 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 break 2
5699 fi
5700 done
5701 done
5702 IFS=$as_save_IFS
5703
5704 fi
5705 fi
5706 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5707 if test -n "$ac_ct_DUMPBIN"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5709 $as_echo "$ac_ct_DUMPBIN" >&6; }
5710 else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5713 fi
5714
5715
5716 test -n "$ac_ct_DUMPBIN" && break
5717 done
5718
5719 if test "x$ac_ct_DUMPBIN" = x; then
5720 DUMPBIN=":"
5721 else
5722 case $cross_compiling:$ac_tool_warned in
5723 yes:)
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5726 ac_tool_warned=yes ;;
5727 esac
5728 DUMPBIN=$ac_ct_DUMPBIN
5729 fi
5730 fi
5731
5732 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5733 *COFF*)
5734 DUMPBIN="$DUMPBIN -symbols"
5735 ;;
5736 *)
5737 DUMPBIN=:
5738 ;;
5739 esac
5740 fi
5741
5742 if test "$DUMPBIN" != ":"; then
5743 NM="$DUMPBIN"
5744 fi
5745 fi
5746 test -z "$NM" && NM=nm
5747
5748
5749
5750
5751
5752
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5754 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5755 if ${lt_cv_nm_interface+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 lt_cv_nm_interface="BSD nm"
5759 echo "int some_variable = 0;" > conftest.$ac_ext
5760 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5761 (eval "$ac_compile" 2>conftest.err)
5762 cat conftest.err >&5
5763 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5764 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5765 cat conftest.err >&5
5766 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5767 cat conftest.out >&5
5768 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5769 lt_cv_nm_interface="MS dumpbin"
5770 fi
5771 rm -f conftest*
5772 fi
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5774 $as_echo "$lt_cv_nm_interface" >&6; }
5775
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5777 $as_echo_n "checking whether ln -s works... " >&6; }
5778 LN_S=$as_ln_s
5779 if test "$LN_S" = "ln -s"; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5781 $as_echo "yes" >&6; }
5782 else
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5784 $as_echo "no, using $LN_S" >&6; }
5785 fi
5786
5787 # find the maximum length of command line arguments
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5789 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5790 if ${lt_cv_sys_max_cmd_len+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 i=0
5794 teststring="ABCD"
5795
5796 case $build_os in
5797 msdosdjgpp*)
5798 # On DJGPP, this test can blow up pretty badly due to problems in libc
5799 # (any single argument exceeding 2000 bytes causes a buffer overrun
5800 # during glob expansion). Even if it were fixed, the result of this
5801 # check would be larger than it should be.
5802 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5803 ;;
5804
5805 gnu*)
5806 # Under GNU Hurd, this test is not required because there is
5807 # no limit to the length of command line arguments.
5808 # Libtool will interpret -1 as no limit whatsoever
5809 lt_cv_sys_max_cmd_len=-1;
5810 ;;
5811
5812 cygwin* | mingw* | cegcc*)
5813 # On Win9x/ME, this test blows up -- it succeeds, but takes
5814 # about 5 minutes as the teststring grows exponentially.
5815 # Worse, since 9x/ME are not pre-emptively multitasking,
5816 # you end up with a "frozen" computer, even though with patience
5817 # the test eventually succeeds (with a max line length of 256k).
5818 # Instead, let's just punt: use the minimum linelength reported by
5819 # all of the supported platforms: 8192 (on NT/2K/XP).
5820 lt_cv_sys_max_cmd_len=8192;
5821 ;;
5822
5823 mint*)
5824 # On MiNT this can take a long time and run out of memory.
5825 lt_cv_sys_max_cmd_len=8192;
5826 ;;
5827
5828 amigaos*)
5829 # On AmigaOS with pdksh, this test takes hours, literally.
5830 # So we just punt and use a minimum line length of 8192.
5831 lt_cv_sys_max_cmd_len=8192;
5832 ;;
5833
5834 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5835 # This has been around since 386BSD, at least. Likely further.
5836 if test -x /sbin/sysctl; then
5837 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5838 elif test -x /usr/sbin/sysctl; then
5839 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5840 else
5841 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5842 fi
5843 # And add a safety zone
5844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5846 ;;
5847
5848 interix*)
5849 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5850 lt_cv_sys_max_cmd_len=196608
5851 ;;
5852
5853 os2*)
5854 # The test takes a long time on OS/2.
5855 lt_cv_sys_max_cmd_len=8192
5856 ;;
5857
5858 osf*)
5859 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5860 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5861 # nice to cause kernel panics so lets avoid the loop below.
5862 # First set a reasonable default.
5863 lt_cv_sys_max_cmd_len=16384
5864 #
5865 if test -x /sbin/sysconfig; then
5866 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5867 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5868 esac
5869 fi
5870 ;;
5871 sco3.2v5*)
5872 lt_cv_sys_max_cmd_len=102400
5873 ;;
5874 sysv5* | sco5v6* | sysv4.2uw2*)
5875 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5876 if test -n "$kargmax"; then
5877 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5878 else
5879 lt_cv_sys_max_cmd_len=32768
5880 fi
5881 ;;
5882 *)
5883 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5884 if test -n "$lt_cv_sys_max_cmd_len" && \
5885 test undefined != "$lt_cv_sys_max_cmd_len"; then
5886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5887 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5888 else
5889 # Make teststring a little bigger before we do anything with it.
5890 # a 1K string should be a reasonable start.
5891 for i in 1 2 3 4 5 6 7 8 ; do
5892 teststring=$teststring$teststring
5893 done
5894 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5895 # If test is not a shell built-in, we'll probably end up computing a
5896 # maximum length that is only half of the actual maximum length, but
5897 # we can't tell.
5898 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5899 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5900 test $i != 17 # 1/2 MB should be enough
5901 do
5902 i=`expr $i + 1`
5903 teststring=$teststring$teststring
5904 done
5905 # Only check the string length outside the loop.
5906 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5907 teststring=
5908 # Add a significant safety factor because C++ compilers can tack on
5909 # massive amounts of additional arguments before passing them to the
5910 # linker. It appears as though 1/2 is a usable value.
5911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5912 fi
5913 ;;
5914 esac
5915
5916 fi
5917
5918 if test -n $lt_cv_sys_max_cmd_len ; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5920 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5921 else
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5923 $as_echo "none" >&6; }
5924 fi
5925 max_cmd_len=$lt_cv_sys_max_cmd_len
5926
5927
5928
5929
5930
5931
5932 : ${CP="cp -f"}
5933 : ${MV="mv -f"}
5934 : ${RM="rm -f"}
5935
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5937 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5938 # Try some XSI features
5939 xsi_shell=no
5940 ( _lt_dummy="a/b/c"
5941 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5942 = c,a/b,b/c, \
5943 && eval 'test $(( 1 + 1 )) -eq 2 \
5944 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5945 && xsi_shell=yes
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5947 $as_echo "$xsi_shell" >&6; }
5948
5949
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5951 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5952 lt_shell_append=no
5953 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5954 >/dev/null 2>&1 \
5955 && lt_shell_append=yes
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5957 $as_echo "$lt_shell_append" >&6; }
5958
5959
5960 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5961 lt_unset=unset
5962 else
5963 lt_unset=false
5964 fi
5965
5966
5967
5968
5969
5970 # test EBCDIC or ASCII
5971 case `echo X|tr X '\101'` in
5972 A) # ASCII based system
5973 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5974 lt_SP2NL='tr \040 \012'
5975 lt_NL2SP='tr \015\012 \040\040'
5976 ;;
5977 *) # EBCDIC based system
5978 lt_SP2NL='tr \100 \n'
5979 lt_NL2SP='tr \r\n \100\100'
5980 ;;
5981 esac
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5992 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5993 if ${lt_cv_to_host_file_cmd+:} false; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 case $host in
5997 *-*-mingw* )
5998 case $build in
5999 *-*-mingw* ) # actually msys
6000 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6001 ;;
6002 *-*-cygwin* )
6003 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6004 ;;
6005 * ) # otherwise, assume *nix
6006 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6007 ;;
6008 esac
6009 ;;
6010 *-*-cygwin* )
6011 case $build in
6012 *-*-mingw* ) # actually msys
6013 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6014 ;;
6015 *-*-cygwin* )
6016 lt_cv_to_host_file_cmd=func_convert_file_noop
6017 ;;
6018 * ) # otherwise, assume *nix
6019 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6020 ;;
6021 esac
6022 ;;
6023 * ) # unhandled hosts (and "normal" native builds)
6024 lt_cv_to_host_file_cmd=func_convert_file_noop
6025 ;;
6026 esac
6027
6028 fi
6029
6030 to_host_file_cmd=$lt_cv_to_host_file_cmd
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6032 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6033
6034
6035
6036
6037
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6039 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6040 if ${lt_cv_to_tool_file_cmd+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 #assume ordinary cross tools, or native build.
6044 lt_cv_to_tool_file_cmd=func_convert_file_noop
6045 case $host in
6046 *-*-mingw* )
6047 case $build in
6048 *-*-mingw* ) # actually msys
6049 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6050 ;;
6051 esac
6052 ;;
6053 esac
6054
6055 fi
6056
6057 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6059 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6060
6061
6062
6063
6064
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6066 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6067 if ${lt_cv_ld_reload_flag+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 lt_cv_ld_reload_flag='-r'
6071 fi
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6073 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6074 reload_flag=$lt_cv_ld_reload_flag
6075 case $reload_flag in
6076 "" | " "*) ;;
6077 *) reload_flag=" $reload_flag" ;;
6078 esac
6079 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6080 case $host_os in
6081 cygwin* | mingw* | pw32* | cegcc*)
6082 if test "$GCC" != yes; then
6083 reload_cmds=false
6084 fi
6085 ;;
6086 darwin*)
6087 if test "$GCC" = yes; then
6088 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6089 else
6090 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6091 fi
6092 ;;
6093 esac
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103 if test -n "$ac_tool_prefix"; then
6104 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6105 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_prog_OBJDUMP+:} false; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 if test -n "$OBJDUMP"; then
6112 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 OBJDUMP=$ac_cv_prog_OBJDUMP
6132 if test -n "$OBJDUMP"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6134 $as_echo "$OBJDUMP" >&6; }
6135 else
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6138 fi
6139
6140
6141 fi
6142 if test -z "$ac_cv_prog_OBJDUMP"; then
6143 ac_ct_OBJDUMP=$OBJDUMP
6144 # Extract the first word of "objdump", so it can be a program name with args.
6145 set dummy objdump; ac_word=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 if test -n "$ac_ct_OBJDUMP"; then
6152 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157 IFS=$as_save_IFS
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6161 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 break 2
6164 fi
6165 done
6166 done
6167 IFS=$as_save_IFS
6168
6169 fi
6170 fi
6171 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6172 if test -n "$ac_ct_OBJDUMP"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6174 $as_echo "$ac_ct_OBJDUMP" >&6; }
6175 else
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6178 fi
6179
6180 if test "x$ac_ct_OBJDUMP" = x; then
6181 OBJDUMP="false"
6182 else
6183 case $cross_compiling:$ac_tool_warned in
6184 yes:)
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6187 ac_tool_warned=yes ;;
6188 esac
6189 OBJDUMP=$ac_ct_OBJDUMP
6190 fi
6191 else
6192 OBJDUMP="$ac_cv_prog_OBJDUMP"
6193 fi
6194
6195 test -z "$OBJDUMP" && OBJDUMP=objdump
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6206 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6207 if ${lt_cv_deplibs_check_method+:} false; then :
6208 $as_echo_n "(cached) " >&6
6209 else
6210 lt_cv_file_magic_cmd='$MAGIC_CMD'
6211 lt_cv_file_magic_test_file=
6212 lt_cv_deplibs_check_method='unknown'
6213 # Need to set the preceding variable on all platforms that support
6214 # interlibrary dependencies.
6215 # 'none' -- dependencies not supported.
6216 # `unknown' -- same as none, but documents that we really don't know.
6217 # 'pass_all' -- all dependencies passed with no checks.
6218 # 'test_compile' -- check by making test program.
6219 # 'file_magic [[regex]]' -- check by looking for files in library path
6220 # which responds to the $file_magic_cmd with a given extended regex.
6221 # If you have `file' or equivalent on your system and you're not sure
6222 # whether `pass_all' will *always* work, you probably want this one.
6223
6224 case $host_os in
6225 aix[4-9]*)
6226 lt_cv_deplibs_check_method=pass_all
6227 ;;
6228
6229 beos*)
6230 lt_cv_deplibs_check_method=pass_all
6231 ;;
6232
6233 bsdi[45]*)
6234 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6235 lt_cv_file_magic_cmd='/usr/bin/file -L'
6236 lt_cv_file_magic_test_file=/shlib/libc.so
6237 ;;
6238
6239 cygwin*)
6240 # func_win32_libid is a shell function defined in ltmain.sh
6241 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6242 lt_cv_file_magic_cmd='func_win32_libid'
6243 ;;
6244
6245 mingw* | pw32*)
6246 # Base MSYS/MinGW do not provide the 'file' command needed by
6247 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6248 # unless we find 'file', for example because we are cross-compiling.
6249 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6250 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6251 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6252 lt_cv_file_magic_cmd='func_win32_libid'
6253 else
6254 # Keep this pattern in sync with the one in func_win32_libid.
6255 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6256 lt_cv_file_magic_cmd='$OBJDUMP -f'
6257 fi
6258 ;;
6259
6260 cegcc*)
6261 # use the weaker test based on 'objdump'. See mingw*.
6262 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6263 lt_cv_file_magic_cmd='$OBJDUMP -f'
6264 ;;
6265
6266 darwin* | rhapsody*)
6267 lt_cv_deplibs_check_method=pass_all
6268 ;;
6269
6270 freebsd* | dragonfly*)
6271 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6272 case $host_cpu in
6273 i*86 )
6274 # Not sure whether the presence of OpenBSD here was a mistake.
6275 # Let's accept both of them until this is cleared up.
6276 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6277 lt_cv_file_magic_cmd=/usr/bin/file
6278 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6279 ;;
6280 esac
6281 else
6282 lt_cv_deplibs_check_method=pass_all
6283 fi
6284 ;;
6285
6286 haiku*)
6287 lt_cv_deplibs_check_method=pass_all
6288 ;;
6289
6290 hpux10.20* | hpux11*)
6291 lt_cv_file_magic_cmd=/usr/bin/file
6292 case $host_cpu in
6293 ia64*)
6294 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6295 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6296 ;;
6297 hppa*64*)
6298 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]'
6299 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6300 ;;
6301 *)
6302 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6303 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6304 ;;
6305 esac
6306 ;;
6307
6308 interix[3-9]*)
6309 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6311 ;;
6312
6313 irix5* | irix6* | nonstopux*)
6314 case $LD in
6315 *-32|*"-32 ") libmagic=32-bit;;
6316 *-n32|*"-n32 ") libmagic=N32;;
6317 *-64|*"-64 ") libmagic=64-bit;;
6318 *) libmagic=never-match;;
6319 esac
6320 lt_cv_deplibs_check_method=pass_all
6321 ;;
6322
6323 # This must be glibc/ELF.
6324 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6325 lt_cv_deplibs_check_method=pass_all
6326 ;;
6327
6328 netbsd* | netbsdelf*-gnu)
6329 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6331 else
6332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6333 fi
6334 ;;
6335
6336 newos6*)
6337 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6338 lt_cv_file_magic_cmd=/usr/bin/file
6339 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6340 ;;
6341
6342 *nto* | *qnx*)
6343 lt_cv_deplibs_check_method=pass_all
6344 ;;
6345
6346 openbsd*)
6347 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6349 else
6350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6351 fi
6352 ;;
6353
6354 osf3* | osf4* | osf5*)
6355 lt_cv_deplibs_check_method=pass_all
6356 ;;
6357
6358 rdos*)
6359 lt_cv_deplibs_check_method=pass_all
6360 ;;
6361
6362 solaris*)
6363 lt_cv_deplibs_check_method=pass_all
6364 ;;
6365
6366 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6367 lt_cv_deplibs_check_method=pass_all
6368 ;;
6369
6370 sysv4 | sysv4.3*)
6371 case $host_vendor in
6372 motorola)
6373 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]'
6374 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6375 ;;
6376 ncr)
6377 lt_cv_deplibs_check_method=pass_all
6378 ;;
6379 sequent)
6380 lt_cv_file_magic_cmd='/bin/file'
6381 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6382 ;;
6383 sni)
6384 lt_cv_file_magic_cmd='/bin/file'
6385 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6386 lt_cv_file_magic_test_file=/lib/libc.so
6387 ;;
6388 siemens)
6389 lt_cv_deplibs_check_method=pass_all
6390 ;;
6391 pc)
6392 lt_cv_deplibs_check_method=pass_all
6393 ;;
6394 esac
6395 ;;
6396
6397 tpf*)
6398 lt_cv_deplibs_check_method=pass_all
6399 ;;
6400 esac
6401
6402 fi
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6404 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6405
6406 file_magic_glob=
6407 want_nocaseglob=no
6408 if test "$build" = "$host"; then
6409 case $host_os in
6410 mingw* | pw32*)
6411 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6412 want_nocaseglob=yes
6413 else
6414 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6415 fi
6416 ;;
6417 esac
6418 fi
6419
6420 file_magic_cmd=$lt_cv_file_magic_cmd
6421 deplibs_check_method=$lt_cv_deplibs_check_method
6422 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445 if test -n "$ac_tool_prefix"; then
6446 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6447 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if ${ac_cv_prog_DLLTOOL+:} false; then :
6451 $as_echo_n "(cached) " >&6
6452 else
6453 if test -n "$DLLTOOL"; then
6454 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6455 else
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6458 do
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6463 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 break 2
6466 fi
6467 done
6468 done
6469 IFS=$as_save_IFS
6470
6471 fi
6472 fi
6473 DLLTOOL=$ac_cv_prog_DLLTOOL
6474 if test -n "$DLLTOOL"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6476 $as_echo "$DLLTOOL" >&6; }
6477 else
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481
6482
6483 fi
6484 if test -z "$ac_cv_prog_DLLTOOL"; then
6485 ac_ct_DLLTOOL=$DLLTOOL
6486 # Extract the first word of "dlltool", so it can be a program name with args.
6487 set dummy dlltool; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 if test -n "$ac_ct_DLLTOOL"; then
6494 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6506 fi
6507 done
6508 done
6509 IFS=$as_save_IFS
6510
6511 fi
6512 fi
6513 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6514 if test -n "$ac_ct_DLLTOOL"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6516 $as_echo "$ac_ct_DLLTOOL" >&6; }
6517 else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6520 fi
6521
6522 if test "x$ac_ct_DLLTOOL" = x; then
6523 DLLTOOL="false"
6524 else
6525 case $cross_compiling:$ac_tool_warned in
6526 yes:)
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529 ac_tool_warned=yes ;;
6530 esac
6531 DLLTOOL=$ac_ct_DLLTOOL
6532 fi
6533 else
6534 DLLTOOL="$ac_cv_prog_DLLTOOL"
6535 fi
6536
6537 test -z "$DLLTOOL" && DLLTOOL=dlltool
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6549 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6550 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 lt_cv_sharedlib_from_linklib_cmd='unknown'
6554
6555 case $host_os in
6556 cygwin* | mingw* | pw32* | cegcc*)
6557 # two different shell functions defined in ltmain.sh
6558 # decide which to use based on capabilities of $DLLTOOL
6559 case `$DLLTOOL --help 2>&1` in
6560 *--identify-strict*)
6561 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6562 ;;
6563 *)
6564 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6565 ;;
6566 esac
6567 ;;
6568 *)
6569 # fallback: assume linklib IS sharedlib
6570 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6571 ;;
6572 esac
6573
6574 fi
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6576 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6577 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6578 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6579
6580
6581
6582
6583
6584
6585
6586 if test -n "$ac_tool_prefix"; then
6587 for ac_prog in ar
6588 do
6589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if ${ac_cv_prog_AR+:} false; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 if test -n "$AR"; then
6597 ac_cv_prog_AR="$AR" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610 done
6611 done
6612 IFS=$as_save_IFS
6613
6614 fi
6615 fi
6616 AR=$ac_cv_prog_AR
6617 if test -n "$AR"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6619 $as_echo "$AR" >&6; }
6620 else
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6623 fi
6624
6625
6626 test -n "$AR" && break
6627 done
6628 fi
6629 if test -z "$AR"; then
6630 ac_ct_AR=$AR
6631 for ac_prog in ar
6632 do
6633 # Extract the first word of "$ac_prog", so it can be a program name with args.
6634 set dummy $ac_prog; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 if test -n "$ac_ct_AR"; then
6641 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_ac_ct_AR="$ac_prog"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6661 if test -n "$ac_ct_AR"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6663 $as_echo "$ac_ct_AR" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669
6670 test -n "$ac_ct_AR" && break
6671 done
6672
6673 if test "x$ac_ct_AR" = x; then
6674 AR="false"
6675 else
6676 case $cross_compiling:$ac_tool_warned in
6677 yes:)
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6680 ac_tool_warned=yes ;;
6681 esac
6682 AR=$ac_ct_AR
6683 fi
6684 fi
6685
6686 : ${AR=ar}
6687 : ${AR_FLAGS=cru}
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6700 $as_echo_n "checking for archiver @FILE support... " >&6; }
6701 if ${lt_cv_ar_at_file+:} false; then :
6702 $as_echo_n "(cached) " >&6
6703 else
6704 lt_cv_ar_at_file=no
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707
6708 int
6709 main ()
6710 {
6711
6712 ;
6713 return 0;
6714 }
6715 _ACEOF
6716 if ac_fn_c_try_compile "$LINENO"; then :
6717 echo conftest.$ac_objext > conftest.lst
6718 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6720 (eval $lt_ar_try) 2>&5
6721 ac_status=$?
6722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6723 test $ac_status = 0; }
6724 if test "$ac_status" -eq 0; then
6725 # Ensure the archiver fails upon bogus file names.
6726 rm -f conftest.$ac_objext libconftest.a
6727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6728 (eval $lt_ar_try) 2>&5
6729 ac_status=$?
6730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6731 test $ac_status = 0; }
6732 if test "$ac_status" -ne 0; then
6733 lt_cv_ar_at_file=@
6734 fi
6735 fi
6736 rm -f conftest.* libconftest.a
6737
6738 fi
6739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740
6741 fi
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6743 $as_echo "$lt_cv_ar_at_file" >&6; }
6744
6745 if test "x$lt_cv_ar_at_file" = xno; then
6746 archiver_list_spec=
6747 else
6748 archiver_list_spec=$lt_cv_ar_at_file
6749 fi
6750
6751
6752
6753
6754
6755
6756
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}strip; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_STRIP+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 if test -n "$STRIP"; then
6766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6778 fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 STRIP=$ac_cv_prog_STRIP
6786 if test -n "$STRIP"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6788 $as_echo "$STRIP" >&6; }
6789 else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6792 fi
6793
6794
6795 fi
6796 if test -z "$ac_cv_prog_STRIP"; then
6797 ac_ct_STRIP=$STRIP
6798 # Extract the first word of "strip", so it can be a program name with args.
6799 set dummy strip; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -n "$ac_ct_STRIP"; then
6806 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815 ac_cv_prog_ac_ct_STRIP="strip"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6818 fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6826 if test -n "$ac_ct_STRIP"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6828 $as_echo "$ac_ct_STRIP" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834 if test "x$ac_ct_STRIP" = x; then
6835 STRIP=":"
6836 else
6837 case $cross_compiling:$ac_tool_warned in
6838 yes:)
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6842 esac
6843 STRIP=$ac_ct_STRIP
6844 fi
6845 else
6846 STRIP="$ac_cv_prog_STRIP"
6847 fi
6848
6849 test -z "$STRIP" && STRIP=:
6850
6851
6852
6853
6854
6855
6856 if test -n "$ac_tool_prefix"; then
6857 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6858 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if ${ac_cv_prog_RANLIB+:} false; then :
6862 $as_echo_n "(cached) " >&6
6863 else
6864 if test -n "$RANLIB"; then
6865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882 fi
6883 fi
6884 RANLIB=$ac_cv_prog_RANLIB
6885 if test -n "$RANLIB"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6887 $as_echo "$RANLIB" >&6; }
6888 else
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6891 fi
6892
6893
6894 fi
6895 if test -z "$ac_cv_prog_RANLIB"; then
6896 ac_ct_RANLIB=$RANLIB
6897 # Extract the first word of "ranlib", so it can be a program name with args.
6898 set dummy ranlib; ac_word=$2
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900 $as_echo_n "checking for $ac_word... " >&6; }
6901 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 if test -n "$ac_ct_RANLIB"; then
6905 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6906 else
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6909 do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6914 ac_cv_prog_ac_ct_RANLIB="ranlib"
6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918 done
6919 done
6920 IFS=$as_save_IFS
6921
6922 fi
6923 fi
6924 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6925 if test -n "$ac_ct_RANLIB"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6927 $as_echo "$ac_ct_RANLIB" >&6; }
6928 else
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6931 fi
6932
6933 if test "x$ac_ct_RANLIB" = x; then
6934 RANLIB=":"
6935 else
6936 case $cross_compiling:$ac_tool_warned in
6937 yes:)
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6940 ac_tool_warned=yes ;;
6941 esac
6942 RANLIB=$ac_ct_RANLIB
6943 fi
6944 else
6945 RANLIB="$ac_cv_prog_RANLIB"
6946 fi
6947
6948 test -z "$RANLIB" && RANLIB=:
6949
6950
6951
6952
6953
6954
6955 # Determine commands to create old-style static archives.
6956 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6957 old_postinstall_cmds='chmod 644 $oldlib'
6958 old_postuninstall_cmds=
6959
6960 if test -n "$RANLIB"; then
6961 case $host_os in
6962 openbsd*)
6963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6964 ;;
6965 *)
6966 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6967 ;;
6968 esac
6969 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6970 fi
6971
6972 case $host_os in
6973 darwin*)
6974 lock_old_archive_extraction=yes ;;
6975 *)
6976 lock_old_archive_extraction=no ;;
6977 esac
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017 # If no C compiler was specified, use CC.
7018 LTCC=${LTCC-"$CC"}
7019
7020 # If no C compiler flags were specified, use CFLAGS.
7021 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7022
7023 # Allow CC to be a program name with arguments.
7024 compiler=$CC
7025
7026
7027 # Check for command to grab the raw symbol name followed by C symbol from nm.
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7029 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7030 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033
7034 # These are sane defaults that work on at least a few old systems.
7035 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7036
7037 # Character class describing NM global symbol codes.
7038 symcode='[BCDEGRST]'
7039
7040 # Regexp to match symbols that can be accessed directly from C.
7041 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7042
7043 # Define system-specific variables.
7044 case $host_os in
7045 aix*)
7046 symcode='[BCDT]'
7047 ;;
7048 cygwin* | mingw* | pw32* | cegcc*)
7049 symcode='[ABCDGISTW]'
7050 ;;
7051 hpux*)
7052 if test "$host_cpu" = ia64; then
7053 symcode='[ABCDEGRST]'
7054 fi
7055 ;;
7056 irix* | nonstopux*)
7057 symcode='[BCDEGRST]'
7058 ;;
7059 osf*)
7060 symcode='[BCDEGQRST]'
7061 ;;
7062 solaris*)
7063 symcode='[BDRT]'
7064 ;;
7065 sco3.2v5*)
7066 symcode='[DT]'
7067 ;;
7068 sysv4.2uw2*)
7069 symcode='[DT]'
7070 ;;
7071 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7072 symcode='[ABDT]'
7073 ;;
7074 sysv4)
7075 symcode='[DFNSTU]'
7076 ;;
7077 esac
7078
7079 # If we're using GNU nm, then use its standard symbol codes.
7080 case `$NM -V 2>&1` in
7081 *GNU* | *'with BFD'*)
7082 symcode='[ABCDGIRSTW]' ;;
7083 esac
7084
7085 # Transform an extracted symbol line into a proper C declaration.
7086 # Some systems (esp. on ia64) link data and code symbols differently,
7087 # so use this general approach.
7088 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7089
7090 # Transform an extracted symbol line into symbol name and symbol address
7091 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7092 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7093
7094 # Handle CRLF in mingw tool chain
7095 opt_cr=
7096 case $build_os in
7097 mingw*)
7098 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7099 ;;
7100 esac
7101
7102 # Try without a prefix underscore, then with it.
7103 for ac_symprfx in "" "_"; do
7104
7105 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7106 symxfrm="\\1 $ac_symprfx\\2 \\2"
7107
7108 # Write the raw and C identifiers.
7109 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7110 # Fake it for dumpbin and say T for any non-static function
7111 # and D for any global variable.
7112 # Also find C++ and __fastcall symbols from MSVC++,
7113 # which start with @ or ?.
7114 lt_cv_sys_global_symbol_pipe="$AWK '"\
7115 " {last_section=section; section=\$ 3};"\
7116 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7117 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7118 " \$ 0!~/External *\|/{next};"\
7119 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7120 " {if(hide[section]) next};"\
7121 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7122 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7123 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7124 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7125 " ' prfx=^$ac_symprfx"
7126 else
7127 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7128 fi
7129 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7130
7131 # Check to see that the pipe works correctly.
7132 pipe_works=no
7133
7134 rm -f conftest*
7135 cat > conftest.$ac_ext <<_LT_EOF
7136 #ifdef __cplusplus
7137 extern "C" {
7138 #endif
7139 char nm_test_var;
7140 void nm_test_func(void);
7141 void nm_test_func(void){}
7142 #ifdef __cplusplus
7143 }
7144 #endif
7145 int main(){nm_test_var='a';nm_test_func();return(0);}
7146 _LT_EOF
7147
7148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7149 (eval $ac_compile) 2>&5
7150 ac_status=$?
7151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7152 test $ac_status = 0; }; then
7153 # Now try to grab the symbols.
7154 nlist=conftest.nm
7155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7156 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7157 ac_status=$?
7158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7159 test $ac_status = 0; } && test -s "$nlist"; then
7160 # Try sorting and uniquifying the output.
7161 if sort "$nlist" | uniq > "$nlist"T; then
7162 mv -f "$nlist"T "$nlist"
7163 else
7164 rm -f "$nlist"T
7165 fi
7166
7167 # Make sure that we snagged all the symbols we need.
7168 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7169 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7170 cat <<_LT_EOF > conftest.$ac_ext
7171 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7172 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7173 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7174 relocations are performed -- see ld's documentation on pseudo-relocs. */
7175 # define LT_DLSYM_CONST
7176 #elif defined(__osf__)
7177 /* This system does not cope well with relocations in const data. */
7178 # define LT_DLSYM_CONST
7179 #else
7180 # define LT_DLSYM_CONST const
7181 #endif
7182
7183 #ifdef __cplusplus
7184 extern "C" {
7185 #endif
7186
7187 _LT_EOF
7188 # Now generate the symbol file.
7189 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7190
7191 cat <<_LT_EOF >> conftest.$ac_ext
7192
7193 /* The mapping between symbol names and symbols. */
7194 LT_DLSYM_CONST struct {
7195 const char *name;
7196 void *address;
7197 }
7198 lt__PROGRAM__LTX_preloaded_symbols[] =
7199 {
7200 { "@PROGRAM@", (void *) 0 },
7201 _LT_EOF
7202 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7203 cat <<\_LT_EOF >> conftest.$ac_ext
7204 {0, (void *) 0}
7205 };
7206
7207 /* This works around a problem in FreeBSD linker */
7208 #ifdef FREEBSD_WORKAROUND
7209 static const void *lt_preloaded_setup() {
7210 return lt__PROGRAM__LTX_preloaded_symbols;
7211 }
7212 #endif
7213
7214 #ifdef __cplusplus
7215 }
7216 #endif
7217 _LT_EOF
7218 # Now try linking the two files.
7219 mv conftest.$ac_objext conftstm.$ac_objext
7220 lt_globsym_save_LIBS=$LIBS
7221 lt_globsym_save_CFLAGS=$CFLAGS
7222 LIBS="conftstm.$ac_objext"
7223 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7225 (eval $ac_link) 2>&5
7226 ac_status=$?
7227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7228 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7229 pipe_works=yes
7230 fi
7231 LIBS=$lt_globsym_save_LIBS
7232 CFLAGS=$lt_globsym_save_CFLAGS
7233 else
7234 echo "cannot find nm_test_func in $nlist" >&5
7235 fi
7236 else
7237 echo "cannot find nm_test_var in $nlist" >&5
7238 fi
7239 else
7240 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7241 fi
7242 else
7243 echo "$progname: failed program was:" >&5
7244 cat conftest.$ac_ext >&5
7245 fi
7246 rm -rf conftest* conftst*
7247
7248 # Do not use the global_symbol_pipe unless it works.
7249 if test "$pipe_works" = yes; then
7250 break
7251 else
7252 lt_cv_sys_global_symbol_pipe=
7253 fi
7254 done
7255
7256 fi
7257
7258 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7259 lt_cv_sys_global_symbol_to_cdecl=
7260 fi
7261 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7263 $as_echo "failed" >&6; }
7264 else
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7266 $as_echo "ok" >&6; }
7267 fi
7268
7269 # Response file support.
7270 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7271 nm_file_list_spec='@'
7272 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7273 nm_file_list_spec='@'
7274 fi
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7303 $as_echo_n "checking for sysroot... " >&6; }
7304
7305 # Check whether --with-sysroot was given.
7306 if test "${with_sysroot+set}" = set; then :
7307 withval=$with_sysroot;
7308 else
7309 with_sysroot=no
7310 fi
7311
7312
7313 lt_sysroot=
7314 case ${with_sysroot} in #(
7315 yes)
7316 if test "$GCC" = yes; then
7317 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7318 fi
7319 ;; #(
7320 /*)
7321 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7322 ;; #(
7323 no|'')
7324 ;; #(
7325 *)
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7327 $as_echo "${with_sysroot}" >&6; }
7328 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7329 ;;
7330 esac
7331
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7333 $as_echo "${lt_sysroot:-no}" >&6; }
7334
7335
7336
7337
7338
7339 # Check whether --enable-libtool-lock was given.
7340 if test "${enable_libtool_lock+set}" = set; then :
7341 enableval=$enable_libtool_lock;
7342 fi
7343
7344 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7345
7346 # Some flags need to be propagated to the compiler or linker for good
7347 # libtool support.
7348 case $host in
7349 ia64-*-hpux*)
7350 # Find out which ABI we are using.
7351 echo 'int i;' > conftest.$ac_ext
7352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7353 (eval $ac_compile) 2>&5
7354 ac_status=$?
7355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7356 test $ac_status = 0; }; then
7357 case `/usr/bin/file conftest.$ac_objext` in
7358 *ELF-32*)
7359 HPUX_IA64_MODE="32"
7360 ;;
7361 *ELF-64*)
7362 HPUX_IA64_MODE="64"
7363 ;;
7364 esac
7365 fi
7366 rm -rf conftest*
7367 ;;
7368 *-*-irix6*)
7369 # Find out which ABI we are using.
7370 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7372 (eval $ac_compile) 2>&5
7373 ac_status=$?
7374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7375 test $ac_status = 0; }; then
7376 if test "$lt_cv_prog_gnu_ld" = yes; then
7377 case `/usr/bin/file conftest.$ac_objext` in
7378 *32-bit*)
7379 LD="${LD-ld} -melf32bsmip"
7380 ;;
7381 *N32*)
7382 LD="${LD-ld} -melf32bmipn32"
7383 ;;
7384 *64-bit*)
7385 LD="${LD-ld} -melf64bmip"
7386 ;;
7387 esac
7388 else
7389 case `/usr/bin/file conftest.$ac_objext` in
7390 *32-bit*)
7391 LD="${LD-ld} -32"
7392 ;;
7393 *N32*)
7394 LD="${LD-ld} -n32"
7395 ;;
7396 *64-bit*)
7397 LD="${LD-ld} -64"
7398 ;;
7399 esac
7400 fi
7401 fi
7402 rm -rf conftest*
7403 ;;
7404
7405 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7406 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7407 # Find out which ABI we are using.
7408 echo 'int i;' > conftest.$ac_ext
7409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7410 (eval $ac_compile) 2>&5
7411 ac_status=$?
7412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7413 test $ac_status = 0; }; then
7414 case `/usr/bin/file conftest.o` in
7415 *32-bit*)
7416 case $host in
7417 x86_64-*kfreebsd*-gnu)
7418 LD="${LD-ld} -m elf_i386_fbsd"
7419 ;;
7420 x86_64-*linux*)
7421 case `/usr/bin/file conftest.o` in
7422 *x86-64*)
7423 LD="${LD-ld} -m elf32_x86_64"
7424 ;;
7425 *)
7426 LD="${LD-ld} -m elf_i386"
7427 ;;
7428 esac
7429 ;;
7430 powerpc64le-*)
7431 LD="${LD-ld} -m elf32lppclinux"
7432 ;;
7433 powerpc64-*)
7434 LD="${LD-ld} -m elf32ppclinux"
7435 ;;
7436 s390x-*linux*)
7437 LD="${LD-ld} -m elf_s390"
7438 ;;
7439 sparc64-*linux*)
7440 LD="${LD-ld} -m elf32_sparc"
7441 ;;
7442 esac
7443 ;;
7444 *64-bit*)
7445 case $host in
7446 x86_64-*kfreebsd*-gnu)
7447 LD="${LD-ld} -m elf_x86_64_fbsd"
7448 ;;
7449 x86_64-*linux*)
7450 LD="${LD-ld} -m elf_x86_64"
7451 ;;
7452 powerpcle-*)
7453 LD="${LD-ld} -m elf64lppc"
7454 ;;
7455 powerpc-*)
7456 LD="${LD-ld} -m elf64ppc"
7457 ;;
7458 s390*-*linux*|s390*-*tpf*)
7459 LD="${LD-ld} -m elf64_s390"
7460 ;;
7461 sparc*-*linux*)
7462 LD="${LD-ld} -m elf64_sparc"
7463 ;;
7464 esac
7465 ;;
7466 esac
7467 fi
7468 rm -rf conftest*
7469 ;;
7470
7471 *-*-sco3.2v5*)
7472 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7473 SAVE_CFLAGS="$CFLAGS"
7474 CFLAGS="$CFLAGS -belf"
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7476 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7477 if ${lt_cv_cc_needs_belf+:} false; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 ac_ext=c
7481 ac_cpp='$CPP $CPPFLAGS'
7482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7485
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7488
7489 int
7490 main ()
7491 {
7492
7493 ;
7494 return 0;
7495 }
7496 _ACEOF
7497 if ac_fn_c_try_link "$LINENO"; then :
7498 lt_cv_cc_needs_belf=yes
7499 else
7500 lt_cv_cc_needs_belf=no
7501 fi
7502 rm -f core conftest.err conftest.$ac_objext \
7503 conftest$ac_exeext conftest.$ac_ext
7504 ac_ext=c
7505 ac_cpp='$CPP $CPPFLAGS'
7506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7509
7510 fi
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7512 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7513 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7514 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7515 CFLAGS="$SAVE_CFLAGS"
7516 fi
7517 ;;
7518 *-*solaris*)
7519 # Find out which ABI we are using.
7520 echo 'int i;' > conftest.$ac_ext
7521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7522 (eval $ac_compile) 2>&5
7523 ac_status=$?
7524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7525 test $ac_status = 0; }; then
7526 case `/usr/bin/file conftest.o` in
7527 *64-bit*)
7528 case $lt_cv_prog_gnu_ld in
7529 yes*)
7530 case $host in
7531 i?86-*-solaris*)
7532 LD="${LD-ld} -m elf_x86_64"
7533 ;;
7534 sparc*-*-solaris*)
7535 LD="${LD-ld} -m elf64_sparc"
7536 ;;
7537 esac
7538 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7539 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7540 LD="${LD-ld}_sol2"
7541 fi
7542 ;;
7543 *)
7544 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7545 LD="${LD-ld} -64"
7546 fi
7547 ;;
7548 esac
7549 ;;
7550 esac
7551 fi
7552 rm -rf conftest*
7553 ;;
7554 esac
7555
7556 need_locks="$enable_libtool_lock"
7557
7558 if test -n "$ac_tool_prefix"; then
7559 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7560 set dummy ${ac_tool_prefix}mt; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 if test -n "$MANIFEST_TOOL"; then
7567 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7568 else
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7571 do
7572 IFS=$as_save_IFS
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7576 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 break 2
7579 fi
7580 done
7581 done
7582 IFS=$as_save_IFS
7583
7584 fi
7585 fi
7586 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7587 if test -n "$MANIFEST_TOOL"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7589 $as_echo "$MANIFEST_TOOL" >&6; }
7590 else
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7593 fi
7594
7595
7596 fi
7597 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7598 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7599 # Extract the first word of "mt", so it can be a program name with args.
7600 set dummy mt; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 if test -n "$ac_ct_MANIFEST_TOOL"; then
7607 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620 done
7621 done
7622 IFS=$as_save_IFS
7623
7624 fi
7625 fi
7626 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7627 if test -n "$ac_ct_MANIFEST_TOOL"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7629 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7630 else
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7633 fi
7634
7635 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7636 MANIFEST_TOOL=":"
7637 else
7638 case $cross_compiling:$ac_tool_warned in
7639 yes:)
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7642 ac_tool_warned=yes ;;
7643 esac
7644 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7645 fi
7646 else
7647 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7648 fi
7649
7650 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7652 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7653 if ${lt_cv_path_mainfest_tool+:} false; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 lt_cv_path_mainfest_tool=no
7657 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7658 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7659 cat conftest.err >&5
7660 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7661 lt_cv_path_mainfest_tool=yes
7662 fi
7663 rm -f conftest*
7664 fi
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7666 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7667 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7668 MANIFEST_TOOL=:
7669 fi
7670
7671
7672
7673
7674
7675
7676 case $host_os in
7677 rhapsody* | darwin*)
7678 if test -n "$ac_tool_prefix"; then
7679 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7680 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 if test -n "$DSYMUTIL"; then
7687 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7691 do
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7699 fi
7700 done
7701 done
7702 IFS=$as_save_IFS
7703
7704 fi
7705 fi
7706 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7707 if test -n "$DSYMUTIL"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7709 $as_echo "$DSYMUTIL" >&6; }
7710 else
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7713 fi
7714
7715
7716 fi
7717 if test -z "$ac_cv_prog_DSYMUTIL"; then
7718 ac_ct_DSYMUTIL=$DSYMUTIL
7719 # Extract the first word of "dsymutil", so it can be a program name with args.
7720 set dummy dsymutil; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 if test -n "$ac_ct_DSYMUTIL"; then
7727 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7731 do
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7736 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 break 2
7739 fi
7740 done
7741 done
7742 IFS=$as_save_IFS
7743
7744 fi
7745 fi
7746 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7747 if test -n "$ac_ct_DSYMUTIL"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7749 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7750 else
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7753 fi
7754
7755 if test "x$ac_ct_DSYMUTIL" = x; then
7756 DSYMUTIL=":"
7757 else
7758 case $cross_compiling:$ac_tool_warned in
7759 yes:)
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7762 ac_tool_warned=yes ;;
7763 esac
7764 DSYMUTIL=$ac_ct_DSYMUTIL
7765 fi
7766 else
7767 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7768 fi
7769
7770 if test -n "$ac_tool_prefix"; then
7771 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7772 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 $as_echo_n "checking for $ac_word... " >&6; }
7775 if ${ac_cv_prog_NMEDIT+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 if test -n "$NMEDIT"; then
7779 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7780 else
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7783 do
7784 IFS=$as_save_IFS
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7788 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 break 2
7791 fi
7792 done
7793 done
7794 IFS=$as_save_IFS
7795
7796 fi
7797 fi
7798 NMEDIT=$ac_cv_prog_NMEDIT
7799 if test -n "$NMEDIT"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7801 $as_echo "$NMEDIT" >&6; }
7802 else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7805 fi
7806
7807
7808 fi
7809 if test -z "$ac_cv_prog_NMEDIT"; then
7810 ac_ct_NMEDIT=$NMEDIT
7811 # Extract the first word of "nmedit", so it can be a program name with args.
7812 set dummy nmedit; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 if test -n "$ac_ct_NMEDIT"; then
7819 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7831 fi
7832 done
7833 done
7834 IFS=$as_save_IFS
7835
7836 fi
7837 fi
7838 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7839 if test -n "$ac_ct_NMEDIT"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7841 $as_echo "$ac_ct_NMEDIT" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845 fi
7846
7847 if test "x$ac_ct_NMEDIT" = x; then
7848 NMEDIT=":"
7849 else
7850 case $cross_compiling:$ac_tool_warned in
7851 yes:)
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7854 ac_tool_warned=yes ;;
7855 esac
7856 NMEDIT=$ac_ct_NMEDIT
7857 fi
7858 else
7859 NMEDIT="$ac_cv_prog_NMEDIT"
7860 fi
7861
7862 if test -n "$ac_tool_prefix"; then
7863 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7864 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866 $as_echo_n "checking for $ac_word... " >&6; }
7867 if ${ac_cv_prog_LIPO+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 if test -n "$LIPO"; then
7871 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7872 else
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7875 do
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7880 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 break 2
7883 fi
7884 done
7885 done
7886 IFS=$as_save_IFS
7887
7888 fi
7889 fi
7890 LIPO=$ac_cv_prog_LIPO
7891 if test -n "$LIPO"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7893 $as_echo "$LIPO" >&6; }
7894 else
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7897 fi
7898
7899
7900 fi
7901 if test -z "$ac_cv_prog_LIPO"; then
7902 ac_ct_LIPO=$LIPO
7903 # Extract the first word of "lipo", so it can be a program name with args.
7904 set dummy lipo; ac_word=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 if test -n "$ac_ct_LIPO"; then
7911 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7912 else
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 for as_dir in $PATH
7915 do
7916 IFS=$as_save_IFS
7917 test -z "$as_dir" && as_dir=.
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7920 ac_cv_prog_ac_ct_LIPO="lipo"
7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922 break 2
7923 fi
7924 done
7925 done
7926 IFS=$as_save_IFS
7927
7928 fi
7929 fi
7930 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7931 if test -n "$ac_ct_LIPO"; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7933 $as_echo "$ac_ct_LIPO" >&6; }
7934 else
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7937 fi
7938
7939 if test "x$ac_ct_LIPO" = x; then
7940 LIPO=":"
7941 else
7942 case $cross_compiling:$ac_tool_warned in
7943 yes:)
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7946 ac_tool_warned=yes ;;
7947 esac
7948 LIPO=$ac_ct_LIPO
7949 fi
7950 else
7951 LIPO="$ac_cv_prog_LIPO"
7952 fi
7953
7954 if test -n "$ac_tool_prefix"; then
7955 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7956 set dummy ${ac_tool_prefix}otool; ac_word=$2
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958 $as_echo_n "checking for $ac_word... " >&6; }
7959 if ${ac_cv_prog_OTOOL+:} false; then :
7960 $as_echo_n "(cached) " >&6
7961 else
7962 if test -n "$OTOOL"; then
7963 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7964 else
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 for as_dir in $PATH
7967 do
7968 IFS=$as_save_IFS
7969 test -z "$as_dir" && as_dir=.
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7972 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7974 break 2
7975 fi
7976 done
7977 done
7978 IFS=$as_save_IFS
7979
7980 fi
7981 fi
7982 OTOOL=$ac_cv_prog_OTOOL
7983 if test -n "$OTOOL"; then
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7985 $as_echo "$OTOOL" >&6; }
7986 else
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988 $as_echo "no" >&6; }
7989 fi
7990
7991
7992 fi
7993 if test -z "$ac_cv_prog_OTOOL"; then
7994 ac_ct_OTOOL=$OTOOL
7995 # Extract the first word of "otool", so it can be a program name with args.
7996 set dummy otool; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8000 $as_echo_n "(cached) " >&6
8001 else
8002 if test -n "$ac_ct_OTOOL"; then
8003 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8007 do
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8012 ac_cv_prog_ac_ct_OTOOL="otool"
8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 break 2
8015 fi
8016 done
8017 done
8018 IFS=$as_save_IFS
8019
8020 fi
8021 fi
8022 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8023 if test -n "$ac_ct_OTOOL"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8025 $as_echo "$ac_ct_OTOOL" >&6; }
8026 else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8029 fi
8030
8031 if test "x$ac_ct_OTOOL" = x; then
8032 OTOOL=":"
8033 else
8034 case $cross_compiling:$ac_tool_warned in
8035 yes:)
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8038 ac_tool_warned=yes ;;
8039 esac
8040 OTOOL=$ac_ct_OTOOL
8041 fi
8042 else
8043 OTOOL="$ac_cv_prog_OTOOL"
8044 fi
8045
8046 if test -n "$ac_tool_prefix"; then
8047 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8048 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if ${ac_cv_prog_OTOOL64+:} false; then :
8052 $as_echo_n "(cached) " >&6
8053 else
8054 if test -n "$OTOOL64"; then
8055 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8056 else
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 for as_dir in $PATH
8059 do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068 done
8069 done
8070 IFS=$as_save_IFS
8071
8072 fi
8073 fi
8074 OTOOL64=$ac_cv_prog_OTOOL64
8075 if test -n "$OTOOL64"; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8077 $as_echo "$OTOOL64" >&6; }
8078 else
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080 $as_echo "no" >&6; }
8081 fi
8082
8083
8084 fi
8085 if test -z "$ac_cv_prog_OTOOL64"; then
8086 ac_ct_OTOOL64=$OTOOL64
8087 # Extract the first word of "otool64", so it can be a program name with args.
8088 set dummy otool64; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8094 if test -n "$ac_ct_OTOOL64"; then
8095 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8096 else
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 for as_dir in $PATH
8099 do
8100 IFS=$as_save_IFS
8101 test -z "$as_dir" && as_dir=.
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8104 ac_cv_prog_ac_ct_OTOOL64="otool64"
8105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8106 break 2
8107 fi
8108 done
8109 done
8110 IFS=$as_save_IFS
8111
8112 fi
8113 fi
8114 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8115 if test -n "$ac_ct_OTOOL64"; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8117 $as_echo "$ac_ct_OTOOL64" >&6; }
8118 else
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8121 fi
8122
8123 if test "x$ac_ct_OTOOL64" = x; then
8124 OTOOL64=":"
8125 else
8126 case $cross_compiling:$ac_tool_warned in
8127 yes:)
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8130 ac_tool_warned=yes ;;
8131 esac
8132 OTOOL64=$ac_ct_OTOOL64
8133 fi
8134 else
8135 OTOOL64="$ac_cv_prog_OTOOL64"
8136 fi
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8165 $as_echo_n "checking for -single_module linker flag... " >&6; }
8166 if ${lt_cv_apple_cc_single_mod+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 lt_cv_apple_cc_single_mod=no
8170 if test -z "${LT_MULTI_MODULE}"; then
8171 # By default we will add the -single_module flag. You can override
8172 # by either setting the environment variable LT_MULTI_MODULE
8173 # non-empty at configure time, or by adding -multi_module to the
8174 # link flags.
8175 rm -rf libconftest.dylib*
8176 echo "int foo(void){return 1;}" > conftest.c
8177 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8178 -dynamiclib -Wl,-single_module conftest.c" >&5
8179 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8180 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8181 _lt_result=$?
8182 # If there is a non-empty error log, and "single_module"
8183 # appears in it, assume the flag caused a linker warning
8184 if test -s conftest.err && $GREP single_module conftest.err; then
8185 cat conftest.err >&5
8186 # Otherwise, if the output was created with a 0 exit code from
8187 # the compiler, it worked.
8188 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8189 lt_cv_apple_cc_single_mod=yes
8190 else
8191 cat conftest.err >&5
8192 fi
8193 rm -rf libconftest.dylib*
8194 rm -f conftest.*
8195 fi
8196 fi
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8198 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8199
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8201 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8202 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 lt_cv_ld_exported_symbols_list=no
8206 save_LDFLAGS=$LDFLAGS
8207 echo "_main" > conftest.sym
8208 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8211
8212 int
8213 main ()
8214 {
8215
8216 ;
8217 return 0;
8218 }
8219 _ACEOF
8220 if ac_fn_c_try_link "$LINENO"; then :
8221 lt_cv_ld_exported_symbols_list=yes
8222 else
8223 lt_cv_ld_exported_symbols_list=no
8224 fi
8225 rm -f core conftest.err conftest.$ac_objext \
8226 conftest$ac_exeext conftest.$ac_ext
8227 LDFLAGS="$save_LDFLAGS"
8228
8229 fi
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8231 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8232
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8234 $as_echo_n "checking for -force_load linker flag... " >&6; }
8235 if ${lt_cv_ld_force_load+:} false; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 lt_cv_ld_force_load=no
8239 cat > conftest.c << _LT_EOF
8240 int forced_loaded() { return 2;}
8241 _LT_EOF
8242 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8243 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8244 echo "$AR cru libconftest.a conftest.o" >&5
8245 $AR cru libconftest.a conftest.o 2>&5
8246 echo "$RANLIB libconftest.a" >&5
8247 $RANLIB libconftest.a 2>&5
8248 cat > conftest.c << _LT_EOF
8249 int main() { return 0;}
8250 _LT_EOF
8251 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8252 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8253 _lt_result=$?
8254 if test -s conftest.err && $GREP force_load conftest.err; then
8255 cat conftest.err >&5
8256 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8257 lt_cv_ld_force_load=yes
8258 else
8259 cat conftest.err >&5
8260 fi
8261 rm -f conftest.err libconftest.a conftest conftest.c
8262 rm -rf conftest.dSYM
8263
8264 fi
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8266 $as_echo "$lt_cv_ld_force_load" >&6; }
8267 case $host_os in
8268 rhapsody* | darwin1.[012])
8269 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8270 darwin1.*)
8271 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8272 darwin*) # darwin 5.x on
8273 # if running on 10.5 or later, the deployment target defaults
8274 # to the OS version, if on x86, and 10.4, the deployment
8275 # target defaults to 10.4. Don't you love it?
8276 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8277 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8278 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8279 10.[012]*)
8280 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8281 10.*)
8282 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8283 esac
8284 ;;
8285 esac
8286 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8287 _lt_dar_single_mod='$single_module'
8288 fi
8289 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8290 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8291 else
8292 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8293 fi
8294 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8295 _lt_dsymutil='~$DSYMUTIL $lib || :'
8296 else
8297 _lt_dsymutil=
8298 fi
8299 ;;
8300 esac
8301
8302 for ac_header in dlfcn.h
8303 do :
8304 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8305 "
8306 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8307 cat >>confdefs.h <<_ACEOF
8308 #define HAVE_DLFCN_H 1
8309 _ACEOF
8310
8311 fi
8312
8313 done
8314
8315
8316
8317
8318
8319 # Set options
8320
8321
8322
8323 enable_dlopen=no
8324
8325
8326 enable_win32_dll=no
8327
8328
8329 # Check whether --enable-shared was given.
8330 if test "${enable_shared+set}" = set; then :
8331 enableval=$enable_shared; p=${PACKAGE-default}
8332 case $enableval in
8333 yes) enable_shared=yes ;;
8334 no) enable_shared=no ;;
8335 *)
8336 enable_shared=no
8337 # Look at the argument we got. We use all the common list separators.
8338 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8339 for pkg in $enableval; do
8340 IFS="$lt_save_ifs"
8341 if test "X$pkg" = "X$p"; then
8342 enable_shared=yes
8343 fi
8344 done
8345 IFS="$lt_save_ifs"
8346 ;;
8347 esac
8348 else
8349 enable_shared=yes
8350 fi
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362 # Check whether --with-pic was given.
8363 if test "${with_pic+set}" = set; then :
8364 withval=$with_pic; lt_p=${PACKAGE-default}
8365 case $withval in
8366 yes|no) pic_mode=$withval ;;
8367 *)
8368 pic_mode=default
8369 # Look at the argument we got. We use all the common list separators.
8370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8371 for lt_pkg in $withval; do
8372 IFS="$lt_save_ifs"
8373 if test "X$lt_pkg" = "X$lt_p"; then
8374 pic_mode=yes
8375 fi
8376 done
8377 IFS="$lt_save_ifs"
8378 ;;
8379 esac
8380 else
8381 pic_mode=default
8382 fi
8383
8384
8385 test -z "$pic_mode" && pic_mode=default
8386
8387
8388
8389
8390
8391
8392
8393 # Check whether --enable-fast-install was given.
8394 if test "${enable_fast_install+set}" = set; then :
8395 enableval=$enable_fast_install; p=${PACKAGE-default}
8396 case $enableval in
8397 yes) enable_fast_install=yes ;;
8398 no) enable_fast_install=no ;;
8399 *)
8400 enable_fast_install=no
8401 # Look at the argument we got. We use all the common list separators.
8402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8403 for pkg in $enableval; do
8404 IFS="$lt_save_ifs"
8405 if test "X$pkg" = "X$p"; then
8406 enable_fast_install=yes
8407 fi
8408 done
8409 IFS="$lt_save_ifs"
8410 ;;
8411 esac
8412 else
8413 enable_fast_install=yes
8414 fi
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426 # This can be used to rebuild libtool when needed
8427 LIBTOOL_DEPS="$ltmain"
8428
8429 # Always use our own libtool.
8430 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461 test -z "$LN_S" && LN_S="ln -s"
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476 if test -n "${ZSH_VERSION+set}" ; then
8477 setopt NO_GLOB_SUBST
8478 fi
8479
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8481 $as_echo_n "checking for objdir... " >&6; }
8482 if ${lt_cv_objdir+:} false; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 rm -f .libs 2>/dev/null
8486 mkdir .libs 2>/dev/null
8487 if test -d .libs; then
8488 lt_cv_objdir=.libs
8489 else
8490 # MS-DOS does not allow filenames that begin with a dot.
8491 lt_cv_objdir=_libs
8492 fi
8493 rmdir .libs 2>/dev/null
8494 fi
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8496 $as_echo "$lt_cv_objdir" >&6; }
8497 objdir=$lt_cv_objdir
8498
8499
8500
8501
8502
8503 cat >>confdefs.h <<_ACEOF
8504 #define LT_OBJDIR "$lt_cv_objdir/"
8505 _ACEOF
8506
8507
8508
8509
8510 case $host_os in
8511 aix3*)
8512 # AIX sometimes has problems with the GCC collect2 program. For some
8513 # reason, if we set the COLLECT_NAMES environment variable, the problems
8514 # vanish in a puff of smoke.
8515 if test "X${COLLECT_NAMES+set}" != Xset; then
8516 COLLECT_NAMES=
8517 export COLLECT_NAMES
8518 fi
8519 ;;
8520 esac
8521
8522 # Global variables:
8523 ofile=libtool
8524 can_build_shared=yes
8525
8526 # All known linkers require a `.a' archive for static linking (except MSVC,
8527 # which needs '.lib').
8528 libext=a
8529
8530 with_gnu_ld="$lt_cv_prog_gnu_ld"
8531
8532 old_CC="$CC"
8533 old_CFLAGS="$CFLAGS"
8534
8535 # Set sane defaults for various variables
8536 test -z "$CC" && CC=cc
8537 test -z "$LTCC" && LTCC=$CC
8538 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8539 test -z "$LD" && LD=ld
8540 test -z "$ac_objext" && ac_objext=o
8541
8542 for cc_temp in $compiler""; do
8543 case $cc_temp in
8544 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8545 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8546 \-*) ;;
8547 *) break;;
8548 esac
8549 done
8550 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8551
8552
8553 # Only perform the check for file, if the check method requires it
8554 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8555 case $deplibs_check_method in
8556 file_magic*)
8557 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8559 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8560 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8561 $as_echo_n "(cached) " >&6
8562 else
8563 case $MAGIC_CMD in
8564 [\\/*] | ?:[\\/]*)
8565 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8566 ;;
8567 *)
8568 lt_save_MAGIC_CMD="$MAGIC_CMD"
8569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8570 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8571 for ac_dir in $ac_dummy; do
8572 IFS="$lt_save_ifs"
8573 test -z "$ac_dir" && ac_dir=.
8574 if test -f $ac_dir/${ac_tool_prefix}file; then
8575 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8576 if test -n "$file_magic_test_file"; then
8577 case $deplibs_check_method in
8578 "file_magic "*)
8579 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8581 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8582 $EGREP "$file_magic_regex" > /dev/null; then
8583 :
8584 else
8585 cat <<_LT_EOF 1>&2
8586
8587 *** Warning: the command libtool uses to detect shared libraries,
8588 *** $file_magic_cmd, produces output that libtool cannot recognize.
8589 *** The result is that libtool may fail to recognize shared libraries
8590 *** as such. This will affect the creation of libtool libraries that
8591 *** depend on shared libraries, but programs linked with such libtool
8592 *** libraries will work regardless of this problem. Nevertheless, you
8593 *** may want to report the problem to your system manager and/or to
8594 *** [email protected]
8595
8596 _LT_EOF
8597 fi ;;
8598 esac
8599 fi
8600 break
8601 fi
8602 done
8603 IFS="$lt_save_ifs"
8604 MAGIC_CMD="$lt_save_MAGIC_CMD"
8605 ;;
8606 esac
8607 fi
8608
8609 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8610 if test -n "$MAGIC_CMD"; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8612 $as_echo "$MAGIC_CMD" >&6; }
8613 else
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }
8616 fi
8617
8618
8619
8620
8621
8622 if test -z "$lt_cv_path_MAGIC_CMD"; then
8623 if test -n "$ac_tool_prefix"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8625 $as_echo_n "checking for file... " >&6; }
8626 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 case $MAGIC_CMD in
8630 [\\/*] | ?:[\\/]*)
8631 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8632 ;;
8633 *)
8634 lt_save_MAGIC_CMD="$MAGIC_CMD"
8635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8636 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8637 for ac_dir in $ac_dummy; do
8638 IFS="$lt_save_ifs"
8639 test -z "$ac_dir" && ac_dir=.
8640 if test -f $ac_dir/file; then
8641 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8642 if test -n "$file_magic_test_file"; then
8643 case $deplibs_check_method in
8644 "file_magic "*)
8645 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8646 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8647 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8648 $EGREP "$file_magic_regex" > /dev/null; then
8649 :
8650 else
8651 cat <<_LT_EOF 1>&2
8652
8653 *** Warning: the command libtool uses to detect shared libraries,
8654 *** $file_magic_cmd, produces output that libtool cannot recognize.
8655 *** The result is that libtool may fail to recognize shared libraries
8656 *** as such. This will affect the creation of libtool libraries that
8657 *** depend on shared libraries, but programs linked with such libtool
8658 *** libraries will work regardless of this problem. Nevertheless, you
8659 *** may want to report the problem to your system manager and/or to
8660 *** [email protected]
8661
8662 _LT_EOF
8663 fi ;;
8664 esac
8665 fi
8666 break
8667 fi
8668 done
8669 IFS="$lt_save_ifs"
8670 MAGIC_CMD="$lt_save_MAGIC_CMD"
8671 ;;
8672 esac
8673 fi
8674
8675 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8676 if test -n "$MAGIC_CMD"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8678 $as_echo "$MAGIC_CMD" >&6; }
8679 else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8682 fi
8683
8684
8685 else
8686 MAGIC_CMD=:
8687 fi
8688 fi
8689
8690 fi
8691 ;;
8692 esac
8693
8694 # Use C for the default configuration in the libtool script
8695
8696 lt_save_CC="$CC"
8697 ac_ext=c
8698 ac_cpp='$CPP $CPPFLAGS'
8699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8702
8703
8704 # Source file extension for C test sources.
8705 ac_ext=c
8706
8707 # Object file extension for compiled C test sources.
8708 objext=o
8709 objext=$objext
8710
8711 # Code to be used in simple compile tests
8712 lt_simple_compile_test_code="int some_variable = 0;"
8713
8714 # Code to be used in simple link tests
8715 lt_simple_link_test_code='int main(){return(0);}'
8716
8717
8718
8719
8720
8721
8722
8723 # If no C compiler was specified, use CC.
8724 LTCC=${LTCC-"$CC"}
8725
8726 # If no C compiler flags were specified, use CFLAGS.
8727 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8728
8729 # Allow CC to be a program name with arguments.
8730 compiler=$CC
8731
8732 # Save the default compiler, since it gets overwritten when the other
8733 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8734 compiler_DEFAULT=$CC
8735
8736 # save warnings/boilerplate of simple test code
8737 ac_outfile=conftest.$ac_objext
8738 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8739 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8740 _lt_compiler_boilerplate=`cat conftest.err`
8741 $RM conftest*
8742
8743 ac_outfile=conftest.$ac_objext
8744 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8745 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8746 _lt_linker_boilerplate=`cat conftest.err`
8747 $RM -r conftest*
8748
8749
8750 ## CAVEAT EMPTOR:
8751 ## There is no encapsulation within the following macros, do not change
8752 ## the running order or otherwise move them around unless you know exactly
8753 ## what you are doing...
8754 if test -n "$compiler"; then
8755
8756 lt_prog_compiler_no_builtin_flag=
8757
8758 if test "$GCC" = yes; then
8759 case $cc_basename in
8760 nvcc*)
8761 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8762 *)
8763 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8764 esac
8765
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8767 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8768 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 lt_cv_prog_compiler_rtti_exceptions=no
8772 ac_outfile=conftest.$ac_objext
8773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8774 lt_compiler_flag="-fno-rtti -fno-exceptions"
8775 # Insert the option either (1) after the last *FLAGS variable, or
8776 # (2) before a word containing "conftest.", or (3) at the end.
8777 # Note that $ac_compile itself does not contain backslashes and begins
8778 # with a dollar sign (not a hyphen), so the echo should work correctly.
8779 # The option is referenced via a variable to avoid confusing sed.
8780 lt_compile=`echo "$ac_compile" | $SED \
8781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8783 -e 's:$: $lt_compiler_flag:'`
8784 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8785 (eval "$lt_compile" 2>conftest.err)
8786 ac_status=$?
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 if (exit $ac_status) && test -s "$ac_outfile"; then
8790 # The compiler can only warn and ignore the option if not recognized
8791 # So say no if there are warnings other than the usual output.
8792 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8795 lt_cv_prog_compiler_rtti_exceptions=yes
8796 fi
8797 fi
8798 $RM conftest*
8799
8800 fi
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8802 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8803
8804 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8805 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8806 else
8807 :
8808 fi
8809
8810 fi
8811
8812
8813
8814
8815
8816
8817 lt_prog_compiler_wl=
8818 lt_prog_compiler_pic=
8819 lt_prog_compiler_static=
8820
8821
8822 if test "$GCC" = yes; then
8823 lt_prog_compiler_wl='-Wl,'
8824 lt_prog_compiler_static='-static'
8825
8826 case $host_os in
8827 aix*)
8828 # All AIX code is PIC.
8829 if test "$host_cpu" = ia64; then
8830 # AIX 5 now supports IA64 processor
8831 lt_prog_compiler_static='-Bstatic'
8832 fi
8833 ;;
8834
8835 amigaos*)
8836 case $host_cpu in
8837 powerpc)
8838 # see comment about AmigaOS4 .so support
8839 lt_prog_compiler_pic='-fPIC'
8840 ;;
8841 m68k)
8842 # FIXME: we need at least 68020 code to build shared libraries, but
8843 # adding the `-m68020' flag to GCC prevents building anything better,
8844 # like `-m68040'.
8845 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8846 ;;
8847 esac
8848 ;;
8849
8850 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8851 # PIC is the default for these OSes.
8852 ;;
8853
8854 mingw* | cygwin* | pw32* | os2* | cegcc*)
8855 # This hack is so that the source file can tell whether it is being
8856 # built for inclusion in a dll (and should export symbols for example).
8857 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8858 # (--disable-auto-import) libraries
8859 lt_prog_compiler_pic='-DDLL_EXPORT'
8860 ;;
8861
8862 darwin* | rhapsody*)
8863 # PIC is the default on this platform
8864 # Common symbols not allowed in MH_DYLIB files
8865 lt_prog_compiler_pic='-fno-common'
8866 ;;
8867
8868 haiku*)
8869 # PIC is the default for Haiku.
8870 # The "-static" flag exists, but is broken.
8871 lt_prog_compiler_static=
8872 ;;
8873
8874 hpux*)
8875 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8876 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8877 # sets the default TLS model and affects inlining.
8878 case $host_cpu in
8879 hppa*64*)
8880 # +Z the default
8881 ;;
8882 *)
8883 lt_prog_compiler_pic='-fPIC'
8884 ;;
8885 esac
8886 ;;
8887
8888 interix[3-9]*)
8889 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8890 # Instead, we relocate shared libraries at runtime.
8891 ;;
8892
8893 msdosdjgpp*)
8894 # Just because we use GCC doesn't mean we suddenly get shared libraries
8895 # on systems that don't support them.
8896 lt_prog_compiler_can_build_shared=no
8897 enable_shared=no
8898 ;;
8899
8900 *nto* | *qnx*)
8901 # QNX uses GNU C++, but need to define -shared option too, otherwise
8902 # it will coredump.
8903 lt_prog_compiler_pic='-fPIC -shared'
8904 ;;
8905
8906 sysv4*MP*)
8907 if test -d /usr/nec; then
8908 lt_prog_compiler_pic=-Kconform_pic
8909 fi
8910 ;;
8911
8912 *)
8913 lt_prog_compiler_pic='-fPIC'
8914 ;;
8915 esac
8916
8917 case $cc_basename in
8918 nvcc*) # Cuda Compiler Driver 2.2
8919 lt_prog_compiler_wl='-Xlinker '
8920 if test -n "$lt_prog_compiler_pic"; then
8921 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8922 fi
8923 ;;
8924 esac
8925 else
8926 # PORTME Check for flag to pass linker flags through the system compiler.
8927 case $host_os in
8928 aix*)
8929 lt_prog_compiler_wl='-Wl,'
8930 if test "$host_cpu" = ia64; then
8931 # AIX 5 now supports IA64 processor
8932 lt_prog_compiler_static='-Bstatic'
8933 else
8934 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8935 fi
8936 ;;
8937
8938 mingw* | cygwin* | pw32* | os2* | cegcc*)
8939 # This hack is so that the source file can tell whether it is being
8940 # built for inclusion in a dll (and should export symbols for example).
8941 lt_prog_compiler_pic='-DDLL_EXPORT'
8942 ;;
8943
8944 hpux9* | hpux10* | hpux11*)
8945 lt_prog_compiler_wl='-Wl,'
8946 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8947 # not for PA HP-UX.
8948 case $host_cpu in
8949 hppa*64*|ia64*)
8950 # +Z the default
8951 ;;
8952 *)
8953 lt_prog_compiler_pic='+Z'
8954 ;;
8955 esac
8956 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8957 lt_prog_compiler_static='${wl}-a ${wl}archive'
8958 ;;
8959
8960 irix5* | irix6* | nonstopux*)
8961 lt_prog_compiler_wl='-Wl,'
8962 # PIC (with -KPIC) is the default.
8963 lt_prog_compiler_static='-non_shared'
8964 ;;
8965
8966 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8967 case $cc_basename in
8968 # old Intel for x86_64 which still supported -KPIC.
8969 ecc*)
8970 lt_prog_compiler_wl='-Wl,'
8971 lt_prog_compiler_pic='-KPIC'
8972 lt_prog_compiler_static='-static'
8973 ;;
8974 # icc used to be incompatible with GCC.
8975 # ICC 10 doesn't accept -KPIC any more.
8976 icc* | ifort*)
8977 lt_prog_compiler_wl='-Wl,'
8978 lt_prog_compiler_pic='-fPIC'
8979 lt_prog_compiler_static='-static'
8980 ;;
8981 # Lahey Fortran 8.1.
8982 lf95*)
8983 lt_prog_compiler_wl='-Wl,'
8984 lt_prog_compiler_pic='--shared'
8985 lt_prog_compiler_static='--static'
8986 ;;
8987 nagfor*)
8988 # NAG Fortran compiler
8989 lt_prog_compiler_wl='-Wl,-Wl,,'
8990 lt_prog_compiler_pic='-PIC'
8991 lt_prog_compiler_static='-Bstatic'
8992 ;;
8993 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8994 # Portland Group compilers (*not* the Pentium gcc compiler,
8995 # which looks to be a dead project)
8996 lt_prog_compiler_wl='-Wl,'
8997 lt_prog_compiler_pic='-fpic'
8998 lt_prog_compiler_static='-Bstatic'
8999 ;;
9000 ccc*)
9001 lt_prog_compiler_wl='-Wl,'
9002 # All Alpha code is PIC.
9003 lt_prog_compiler_static='-non_shared'
9004 ;;
9005 xl* | bgxl* | bgf* | mpixl*)
9006 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9007 lt_prog_compiler_wl='-Wl,'
9008 lt_prog_compiler_pic='-qpic'
9009 lt_prog_compiler_static='-qstaticlink'
9010 ;;
9011 *)
9012 case `$CC -V 2>&1 | sed 5q` in
9013 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9014 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9015 lt_prog_compiler_pic='-KPIC'
9016 lt_prog_compiler_static='-Bstatic'
9017 lt_prog_compiler_wl=''
9018 ;;
9019 *Sun\ F* | *Sun*Fortran*)
9020 lt_prog_compiler_pic='-KPIC'
9021 lt_prog_compiler_static='-Bstatic'
9022 lt_prog_compiler_wl='-Qoption ld '
9023 ;;
9024 *Sun\ C*)
9025 # Sun C 5.9
9026 lt_prog_compiler_pic='-KPIC'
9027 lt_prog_compiler_static='-Bstatic'
9028 lt_prog_compiler_wl='-Wl,'
9029 ;;
9030 *Intel*\ [CF]*Compiler*)
9031 lt_prog_compiler_wl='-Wl,'
9032 lt_prog_compiler_pic='-fPIC'
9033 lt_prog_compiler_static='-static'
9034 ;;
9035 *Portland\ Group*)
9036 lt_prog_compiler_wl='-Wl,'
9037 lt_prog_compiler_pic='-fpic'
9038 lt_prog_compiler_static='-Bstatic'
9039 ;;
9040 esac
9041 ;;
9042 esac
9043 ;;
9044
9045 newsos6)
9046 lt_prog_compiler_pic='-KPIC'
9047 lt_prog_compiler_static='-Bstatic'
9048 ;;
9049
9050 *nto* | *qnx*)
9051 # QNX uses GNU C++, but need to define -shared option too, otherwise
9052 # it will coredump.
9053 lt_prog_compiler_pic='-fPIC -shared'
9054 ;;
9055
9056 osf3* | osf4* | osf5*)
9057 lt_prog_compiler_wl='-Wl,'
9058 # All OSF/1 code is PIC.
9059 lt_prog_compiler_static='-non_shared'
9060 ;;
9061
9062 rdos*)
9063 lt_prog_compiler_static='-non_shared'
9064 ;;
9065
9066 solaris*)
9067 lt_prog_compiler_pic='-KPIC'
9068 lt_prog_compiler_static='-Bstatic'
9069 case $cc_basename in
9070 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9071 lt_prog_compiler_wl='-Qoption ld ';;
9072 *)
9073 lt_prog_compiler_wl='-Wl,';;
9074 esac
9075 ;;
9076
9077 sunos4*)
9078 lt_prog_compiler_wl='-Qoption ld '
9079 lt_prog_compiler_pic='-PIC'
9080 lt_prog_compiler_static='-Bstatic'
9081 ;;
9082
9083 sysv4 | sysv4.2uw2* | sysv4.3*)
9084 lt_prog_compiler_wl='-Wl,'
9085 lt_prog_compiler_pic='-KPIC'
9086 lt_prog_compiler_static='-Bstatic'
9087 ;;
9088
9089 sysv4*MP*)
9090 if test -d /usr/nec ;then
9091 lt_prog_compiler_pic='-Kconform_pic'
9092 lt_prog_compiler_static='-Bstatic'
9093 fi
9094 ;;
9095
9096 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9097 lt_prog_compiler_wl='-Wl,'
9098 lt_prog_compiler_pic='-KPIC'
9099 lt_prog_compiler_static='-Bstatic'
9100 ;;
9101
9102 unicos*)
9103 lt_prog_compiler_wl='-Wl,'
9104 lt_prog_compiler_can_build_shared=no
9105 ;;
9106
9107 uts4*)
9108 lt_prog_compiler_pic='-pic'
9109 lt_prog_compiler_static='-Bstatic'
9110 ;;
9111
9112 *)
9113 lt_prog_compiler_can_build_shared=no
9114 ;;
9115 esac
9116 fi
9117
9118 case $host_os in
9119 # For platforms which do not support PIC, -DPIC is meaningless:
9120 *djgpp*)
9121 lt_prog_compiler_pic=
9122 ;;
9123 *)
9124 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9125 ;;
9126 esac
9127
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9129 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9130 if ${lt_cv_prog_compiler_pic+:} false; then :
9131 $as_echo_n "(cached) " >&6
9132 else
9133 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9134 fi
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9136 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9137 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9138
9139 #
9140 # Check to make sure the PIC flag actually works.
9141 #
9142 if test -n "$lt_prog_compiler_pic"; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9144 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9145 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 lt_cv_prog_compiler_pic_works=no
9149 ac_outfile=conftest.$ac_objext
9150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9151 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9152 # Insert the option either (1) after the last *FLAGS variable, or
9153 # (2) before a word containing "conftest.", or (3) at the end.
9154 # Note that $ac_compile itself does not contain backslashes and begins
9155 # with a dollar sign (not a hyphen), so the echo should work correctly.
9156 # The option is referenced via a variable to avoid confusing sed.
9157 lt_compile=`echo "$ac_compile" | $SED \
9158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9160 -e 's:$: $lt_compiler_flag:'`
9161 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9162 (eval "$lt_compile" 2>conftest.err)
9163 ac_status=$?
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 if (exit $ac_status) && test -s "$ac_outfile"; then
9167 # The compiler can only warn and ignore the option if not recognized
9168 # So say no if there are warnings other than the usual output.
9169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9171 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9172 lt_cv_prog_compiler_pic_works=yes
9173 fi
9174 fi
9175 $RM conftest*
9176
9177 fi
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9179 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9180
9181 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9182 case $lt_prog_compiler_pic in
9183 "" | " "*) ;;
9184 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9185 esac
9186 else
9187 lt_prog_compiler_pic=
9188 lt_prog_compiler_can_build_shared=no
9189 fi
9190
9191 fi
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203 #
9204 # Check to make sure the static flag actually works.
9205 #
9206 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9208 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9209 if ${lt_cv_prog_compiler_static_works+:} false; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9212 lt_cv_prog_compiler_static_works=no
9213 save_LDFLAGS="$LDFLAGS"
9214 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9215 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9216 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9217 # The linker can only warn and ignore the option if not recognized
9218 # So say no if there are warnings
9219 if test -s conftest.err; then
9220 # Append any errors to the config.log.
9221 cat conftest.err 1>&5
9222 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9224 if diff conftest.exp conftest.er2 >/dev/null; then
9225 lt_cv_prog_compiler_static_works=yes
9226 fi
9227 else
9228 lt_cv_prog_compiler_static_works=yes
9229 fi
9230 fi
9231 $RM -r conftest*
9232 LDFLAGS="$save_LDFLAGS"
9233
9234 fi
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9236 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9237
9238 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9239 :
9240 else
9241 lt_prog_compiler_static=
9242 fi
9243
9244
9245
9246
9247
9248
9249
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9251 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9252 if ${lt_cv_prog_compiler_c_o+:} false; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255 lt_cv_prog_compiler_c_o=no
9256 $RM -r conftest 2>/dev/null
9257 mkdir conftest
9258 cd conftest
9259 mkdir out
9260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9261
9262 lt_compiler_flag="-o out/conftest2.$ac_objext"
9263 # Insert the option either (1) after the last *FLAGS variable, or
9264 # (2) before a word containing "conftest.", or (3) at the end.
9265 # Note that $ac_compile itself does not contain backslashes and begins
9266 # with a dollar sign (not a hyphen), so the echo should work correctly.
9267 lt_compile=`echo "$ac_compile" | $SED \
9268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9270 -e 's:$: $lt_compiler_flag:'`
9271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9272 (eval "$lt_compile" 2>out/conftest.err)
9273 ac_status=$?
9274 cat out/conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9277 then
9278 # The compiler can only warn and ignore the option if not recognized
9279 # So say no if there are warnings
9280 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9283 lt_cv_prog_compiler_c_o=yes
9284 fi
9285 fi
9286 chmod u+w . 2>&5
9287 $RM conftest*
9288 # SGI C++ compiler will create directory out/ii_files/ for
9289 # template instantiation
9290 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9291 $RM out/* && rmdir out
9292 cd ..
9293 $RM -r conftest
9294 $RM conftest*
9295
9296 fi
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9298 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9299
9300
9301
9302
9303
9304
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9306 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9307 if ${lt_cv_prog_compiler_c_o+:} false; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 lt_cv_prog_compiler_c_o=no
9311 $RM -r conftest 2>/dev/null
9312 mkdir conftest
9313 cd conftest
9314 mkdir out
9315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9316
9317 lt_compiler_flag="-o out/conftest2.$ac_objext"
9318 # Insert the option either (1) after the last *FLAGS variable, or
9319 # (2) before a word containing "conftest.", or (3) at the end.
9320 # Note that $ac_compile itself does not contain backslashes and begins
9321 # with a dollar sign (not a hyphen), so the echo should work correctly.
9322 lt_compile=`echo "$ac_compile" | $SED \
9323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9325 -e 's:$: $lt_compiler_flag:'`
9326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9327 (eval "$lt_compile" 2>out/conftest.err)
9328 ac_status=$?
9329 cat out/conftest.err >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9332 then
9333 # The compiler can only warn and ignore the option if not recognized
9334 # So say no if there are warnings
9335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9336 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9337 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9338 lt_cv_prog_compiler_c_o=yes
9339 fi
9340 fi
9341 chmod u+w . 2>&5
9342 $RM conftest*
9343 # SGI C++ compiler will create directory out/ii_files/ for
9344 # template instantiation
9345 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9346 $RM out/* && rmdir out
9347 cd ..
9348 $RM -r conftest
9349 $RM conftest*
9350
9351 fi
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9353 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9354
9355
9356
9357
9358 hard_links="nottested"
9359 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9360 # do not overwrite the value of need_locks provided by the user
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9362 $as_echo_n "checking if we can lock with hard links... " >&6; }
9363 hard_links=yes
9364 $RM conftest*
9365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9366 touch conftest.a
9367 ln conftest.a conftest.b 2>&5 || hard_links=no
9368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9370 $as_echo "$hard_links" >&6; }
9371 if test "$hard_links" = no; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9373 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9374 need_locks=warn
9375 fi
9376 else
9377 need_locks=no
9378 fi
9379
9380
9381
9382
9383
9384
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9386 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9387
9388 runpath_var=
9389 allow_undefined_flag=
9390 always_export_symbols=no
9391 archive_cmds=
9392 archive_expsym_cmds=
9393 compiler_needs_object=no
9394 enable_shared_with_static_runtimes=no
9395 export_dynamic_flag_spec=
9396 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9397 hardcode_automatic=no
9398 hardcode_direct=no
9399 hardcode_direct_absolute=no
9400 hardcode_libdir_flag_spec=
9401 hardcode_libdir_separator=
9402 hardcode_minus_L=no
9403 hardcode_shlibpath_var=unsupported
9404 inherit_rpath=no
9405 link_all_deplibs=unknown
9406 module_cmds=
9407 module_expsym_cmds=
9408 old_archive_from_new_cmds=
9409 old_archive_from_expsyms_cmds=
9410 thread_safe_flag_spec=
9411 whole_archive_flag_spec=
9412 # include_expsyms should be a list of space-separated symbols to be *always*
9413 # included in the symbol list
9414 include_expsyms=
9415 # exclude_expsyms can be an extended regexp of symbols to exclude
9416 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9417 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9418 # as well as any symbol that contains `d'.
9419 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9420 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9421 # platforms (ab)use it in PIC code, but their linkers get confused if
9422 # the symbol is explicitly referenced. Since portable code cannot
9423 # rely on this symbol name, it's probably fine to never include it in
9424 # preloaded symbol tables.
9425 # Exclude shared library initialization/finalization symbols.
9426 extract_expsyms_cmds=
9427
9428 case $host_os in
9429 cygwin* | mingw* | pw32* | cegcc*)
9430 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9431 # When not using gcc, we currently assume that we are using
9432 # Microsoft Visual C++.
9433 if test "$GCC" != yes; then
9434 with_gnu_ld=no
9435 fi
9436 ;;
9437 interix*)
9438 # we just hope/assume this is gcc and not c89 (= MSVC++)
9439 with_gnu_ld=yes
9440 ;;
9441 openbsd*)
9442 with_gnu_ld=no
9443 ;;
9444 linux* | k*bsd*-gnu | gnu*)
9445 link_all_deplibs=no
9446 ;;
9447 esac
9448
9449 ld_shlibs=yes
9450
9451 # On some targets, GNU ld is compatible enough with the native linker
9452 # that we're better off using the native interface for both.
9453 lt_use_gnu_ld_interface=no
9454 if test "$with_gnu_ld" = yes; then
9455 case $host_os in
9456 aix*)
9457 # The AIX port of GNU ld has always aspired to compatibility
9458 # with the native linker. However, as the warning in the GNU ld
9459 # block says, versions before 2.19.5* couldn't really create working
9460 # shared libraries, regardless of the interface used.
9461 case `$LD -v 2>&1` in
9462 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9463 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9464 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9465 *)
9466 lt_use_gnu_ld_interface=yes
9467 ;;
9468 esac
9469 ;;
9470 *)
9471 lt_use_gnu_ld_interface=yes
9472 ;;
9473 esac
9474 fi
9475
9476 if test "$lt_use_gnu_ld_interface" = yes; then
9477 # If archive_cmds runs LD, not CC, wlarc should be empty
9478 wlarc='${wl}'
9479
9480 # Set some defaults for GNU ld with shared library support. These
9481 # are reset later if shared libraries are not supported. Putting them
9482 # here allows them to be overridden if necessary.
9483 runpath_var=LD_RUN_PATH
9484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9485 export_dynamic_flag_spec='${wl}--export-dynamic'
9486 # ancient GNU ld didn't support --whole-archive et. al.
9487 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9488 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9489 else
9490 whole_archive_flag_spec=
9491 fi
9492 supports_anon_versioning=no
9493 case `$LD -v 2>&1` in
9494 *GNU\ gold*) supports_anon_versioning=yes ;;
9495 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9496 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9497 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9498 *\ 2.11.*) ;; # other 2.11 versions
9499 *) supports_anon_versioning=yes ;;
9500 esac
9501
9502 # See if GNU ld supports shared libraries.
9503 case $host_os in
9504 aix[3-9]*)
9505 # On AIX/PPC, the GNU linker is very broken
9506 if test "$host_cpu" != ia64; then
9507 ld_shlibs=no
9508 cat <<_LT_EOF 1>&2
9509
9510 *** Warning: the GNU linker, at least up to release 2.19, is reported
9511 *** to be unable to reliably create shared libraries on AIX.
9512 *** Therefore, libtool is disabling shared libraries support. If you
9513 *** really care for shared libraries, you may want to install binutils
9514 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9515 *** You will then need to restart the configuration process.
9516
9517 _LT_EOF
9518 fi
9519 ;;
9520
9521 amigaos*)
9522 case $host_cpu in
9523 powerpc)
9524 # see comment about AmigaOS4 .so support
9525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9526 archive_expsym_cmds=''
9527 ;;
9528 m68k)
9529 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)'
9530 hardcode_libdir_flag_spec='-L$libdir'
9531 hardcode_minus_L=yes
9532 ;;
9533 esac
9534 ;;
9535
9536 beos*)
9537 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9538 allow_undefined_flag=unsupported
9539 # Joseph Beckenbach <[email protected]> says some releases of gcc
9540 # support --undefined. This deserves some investigation. FIXME
9541 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9542 else
9543 ld_shlibs=no
9544 fi
9545 ;;
9546
9547 cygwin* | mingw* | pw32* | cegcc*)
9548 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9549 # as there is no search path for DLLs.
9550 hardcode_libdir_flag_spec='-L$libdir'
9551 export_dynamic_flag_spec='${wl}--export-all-symbols'
9552 allow_undefined_flag=unsupported
9553 always_export_symbols=no
9554 enable_shared_with_static_runtimes=yes
9555 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'
9556 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9557
9558 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9560 # If the export-symbols file already is a .def file (1st line
9561 # is EXPORTS), use it as is; otherwise, prepend...
9562 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9563 cp $export_symbols $output_objdir/$soname.def;
9564 else
9565 echo EXPORTS > $output_objdir/$soname.def;
9566 cat $export_symbols >> $output_objdir/$soname.def;
9567 fi~
9568 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9569 else
9570 ld_shlibs=no
9571 fi
9572 ;;
9573
9574 haiku*)
9575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576 link_all_deplibs=yes
9577 ;;
9578
9579 interix[3-9]*)
9580 hardcode_direct=no
9581 hardcode_shlibpath_var=no
9582 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9583 export_dynamic_flag_spec='${wl}-E'
9584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9585 # Instead, shared libraries are loaded at an image base (0x10000000 by
9586 # default) and relocated if they conflict, which is a slow very memory
9587 # consuming and fragmenting process. To avoid this, we pick a random,
9588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9590 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9591 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'
9592 ;;
9593
9594 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9595 tmp_diet=no
9596 if test "$host_os" = linux-dietlibc; then
9597 case $cc_basename in
9598 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9599 esac
9600 fi
9601 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9602 && test "$tmp_diet" = no
9603 then
9604 tmp_addflag=' $pic_flag'
9605 tmp_sharedflag='-shared'
9606 case $cc_basename,$host_cpu in
9607 pgcc*) # Portland Group C compiler
9608 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'
9609 tmp_addflag=' $pic_flag'
9610 ;;
9611 pgf77* | pgf90* | pgf95* | pgfortran*)
9612 # Portland Group f77 and f90 compilers
9613 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'
9614 tmp_addflag=' $pic_flag -Mnomain' ;;
9615 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9616 tmp_addflag=' -i_dynamic' ;;
9617 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9618 tmp_addflag=' -i_dynamic -nofor_main' ;;
9619 ifc* | ifort*) # Intel Fortran compiler
9620 tmp_addflag=' -nofor_main' ;;
9621 lf95*) # Lahey Fortran 8.1
9622 whole_archive_flag_spec=
9623 tmp_sharedflag='--shared' ;;
9624 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9625 tmp_sharedflag='-qmkshrobj'
9626 tmp_addflag= ;;
9627 nvcc*) # Cuda Compiler Driver 2.2
9628 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'
9629 compiler_needs_object=yes
9630 ;;
9631 esac
9632 case `$CC -V 2>&1 | sed 5q` in
9633 *Sun\ C*) # Sun C 5.9
9634 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'
9635 compiler_needs_object=yes
9636 tmp_sharedflag='-G' ;;
9637 *Sun\ F*) # Sun Fortran 8.3
9638 tmp_sharedflag='-G' ;;
9639 esac
9640 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9641
9642 if test "x$supports_anon_versioning" = xyes; then
9643 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9645 echo "local: *; };" >> $output_objdir/$libname.ver~
9646 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9647 fi
9648
9649 case $cc_basename in
9650 xlf* | bgf* | bgxlf* | mpixlf*)
9651 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9652 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9654 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9655 if test "x$supports_anon_versioning" = xyes; then
9656 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9657 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9658 echo "local: *; };" >> $output_objdir/$libname.ver~
9659 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9660 fi
9661 ;;
9662 esac
9663 else
9664 ld_shlibs=no
9665 fi
9666 ;;
9667
9668 netbsd* | netbsdelf*-gnu)
9669 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9670 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9671 wlarc=
9672 else
9673 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9674 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9675 fi
9676 ;;
9677
9678 solaris*)
9679 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9680 ld_shlibs=no
9681 cat <<_LT_EOF 1>&2
9682
9683 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9684 *** create shared libraries on Solaris systems. Therefore, libtool
9685 *** is disabling shared libraries support. We urge you to upgrade GNU
9686 *** binutils to release 2.9.1 or newer. Another option is to modify
9687 *** your PATH or compiler configuration so that the native linker is
9688 *** used, and then restart.
9689
9690 _LT_EOF
9691 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9692 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9693 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9694 else
9695 ld_shlibs=no
9696 fi
9697 ;;
9698
9699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9700 case `$LD -v 2>&1` in
9701 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9702 ld_shlibs=no
9703 cat <<_LT_EOF 1>&2
9704
9705 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9706 *** reliably create shared libraries on SCO systems. Therefore, libtool
9707 *** is disabling shared libraries support. We urge you to upgrade GNU
9708 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9709 *** your PATH or compiler configuration so that the native linker is
9710 *** used, and then restart.
9711
9712 _LT_EOF
9713 ;;
9714 *)
9715 # For security reasons, it is highly recommended that you always
9716 # use absolute paths for naming shared libraries, and exclude the
9717 # DT_RUNPATH tag from executables and libraries. But doing so
9718 # requires that you compile everything twice, which is a pain.
9719 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9723 else
9724 ld_shlibs=no
9725 fi
9726 ;;
9727 esac
9728 ;;
9729
9730 sunos4*)
9731 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9732 wlarc=
9733 hardcode_direct=yes
9734 hardcode_shlibpath_var=no
9735 ;;
9736
9737 *)
9738 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9739 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9740 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9741 else
9742 ld_shlibs=no
9743 fi
9744 ;;
9745 esac
9746
9747 if test "$ld_shlibs" = no; then
9748 runpath_var=
9749 hardcode_libdir_flag_spec=
9750 export_dynamic_flag_spec=
9751 whole_archive_flag_spec=
9752 fi
9753 else
9754 # PORTME fill in a description of your system's linker (not GNU ld)
9755 case $host_os in
9756 aix3*)
9757 allow_undefined_flag=unsupported
9758 always_export_symbols=yes
9759 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'
9760 # Note: this linker hardcodes the directories in LIBPATH if there
9761 # are no directories specified by -L.
9762 hardcode_minus_L=yes
9763 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9764 # Neither direct hardcoding nor static linking is supported with a
9765 # broken collect2.
9766 hardcode_direct=unsupported
9767 fi
9768 ;;
9769
9770 aix[4-9]*)
9771 if test "$host_cpu" = ia64; then
9772 # On IA64, the linker does run time linking by default, so we don't
9773 # have to do anything special.
9774 aix_use_runtimelinking=no
9775 exp_sym_flag='-Bexport'
9776 no_entry_flag=""
9777 else
9778 # If we're using GNU nm, then we don't want the "-C" option.
9779 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9780 # Also, AIX nm treats weak defined symbols like other global
9781 # defined symbols, whereas GNU nm marks them as "W".
9782 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9783 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9784 else
9785 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9786 fi
9787 aix_use_runtimelinking=no
9788
9789 # Test if we are trying to use run time linking or normal
9790 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9791 # need to do runtime linking.
9792 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9793 for ld_flag in $LDFLAGS; do
9794 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9795 aix_use_runtimelinking=yes
9796 break
9797 fi
9798 done
9799 ;;
9800 esac
9801
9802 exp_sym_flag='-bexport'
9803 no_entry_flag='-bnoentry'
9804 fi
9805
9806 # When large executables or shared objects are built, AIX ld can
9807 # have problems creating the table of contents. If linking a library
9808 # or program results in "error TOC overflow" add -mminimal-toc to
9809 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9810 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9811
9812 archive_cmds=''
9813 hardcode_direct=yes
9814 hardcode_direct_absolute=yes
9815 hardcode_libdir_separator=':'
9816 link_all_deplibs=yes
9817 file_list_spec='${wl}-f,'
9818
9819 if test "$GCC" = yes; then
9820 case $host_os in aix4.[012]|aix4.[012].*)
9821 # We only want to do this on AIX 4.2 and lower, the check
9822 # below for broken collect2 doesn't work under 4.3+
9823 collect2name=`${CC} -print-prog-name=collect2`
9824 if test -f "$collect2name" &&
9825 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9826 then
9827 # We have reworked collect2
9828 :
9829 else
9830 # We have old collect2
9831 hardcode_direct=unsupported
9832 # It fails to find uninstalled libraries when the uninstalled
9833 # path is not listed in the libpath. Setting hardcode_minus_L
9834 # to unsupported forces relinking
9835 hardcode_minus_L=yes
9836 hardcode_libdir_flag_spec='-L$libdir'
9837 hardcode_libdir_separator=
9838 fi
9839 ;;
9840 esac
9841 shared_flag='-shared'
9842 if test "$aix_use_runtimelinking" = yes; then
9843 shared_flag="$shared_flag "'${wl}-G'
9844 fi
9845 link_all_deplibs=no
9846 else
9847 # not using gcc
9848 if test "$host_cpu" = ia64; then
9849 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9850 # chokes on -Wl,-G. The following line is correct:
9851 shared_flag='-G'
9852 else
9853 if test "$aix_use_runtimelinking" = yes; then
9854 shared_flag='${wl}-G'
9855 else
9856 shared_flag='${wl}-bM:SRE'
9857 fi
9858 fi
9859 fi
9860
9861 export_dynamic_flag_spec='${wl}-bexpall'
9862 # It seems that -bexpall does not export symbols beginning with
9863 # underscore (_), so it is better to generate a list of symbols to export.
9864 always_export_symbols=yes
9865 if test "$aix_use_runtimelinking" = yes; then
9866 # Warning - without using the other runtime loading flags (-brtl),
9867 # -berok will link without error, but may produce a broken library.
9868 allow_undefined_flag='-berok'
9869 # Determine the default libpath from the value encoded in an
9870 # empty executable.
9871 if test "${lt_cv_aix_libpath+set}" = set; then
9872 aix_libpath=$lt_cv_aix_libpath
9873 else
9874 if ${lt_cv_aix_libpath_+:} false; then :
9875 $as_echo_n "(cached) " >&6
9876 else
9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878 /* end confdefs.h. */
9879
9880 int
9881 main ()
9882 {
9883
9884 ;
9885 return 0;
9886 }
9887 _ACEOF
9888 if ac_fn_c_try_link "$LINENO"; then :
9889
9890 lt_aix_libpath_sed='
9891 /Import File Strings/,/^$/ {
9892 /^0/ {
9893 s/^0 *\([^ ]*\) *$/\1/
9894 p
9895 }
9896 }'
9897 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9898 # Check for a 64-bit object if we didn't find anything.
9899 if test -z "$lt_cv_aix_libpath_"; then
9900 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9901 fi
9902 fi
9903 rm -f core conftest.err conftest.$ac_objext \
9904 conftest$ac_exeext conftest.$ac_ext
9905 if test -z "$lt_cv_aix_libpath_"; then
9906 lt_cv_aix_libpath_="/usr/lib:/lib"
9907 fi
9908
9909 fi
9910
9911 aix_libpath=$lt_cv_aix_libpath_
9912 fi
9913
9914 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9915 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9916 else
9917 if test "$host_cpu" = ia64; then
9918 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9919 allow_undefined_flag="-z nodefs"
9920 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"
9921 else
9922 # Determine the default libpath from the value encoded in an
9923 # empty executable.
9924 if test "${lt_cv_aix_libpath+set}" = set; then
9925 aix_libpath=$lt_cv_aix_libpath
9926 else
9927 if ${lt_cv_aix_libpath_+:} false; then :
9928 $as_echo_n "(cached) " >&6
9929 else
9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h. */
9932
9933 int
9934 main ()
9935 {
9936
9937 ;
9938 return 0;
9939 }
9940 _ACEOF
9941 if ac_fn_c_try_link "$LINENO"; then :
9942
9943 lt_aix_libpath_sed='
9944 /Import File Strings/,/^$/ {
9945 /^0/ {
9946 s/^0 *\([^ ]*\) *$/\1/
9947 p
9948 }
9949 }'
9950 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9951 # Check for a 64-bit object if we didn't find anything.
9952 if test -z "$lt_cv_aix_libpath_"; then
9953 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9954 fi
9955 fi
9956 rm -f core conftest.err conftest.$ac_objext \
9957 conftest$ac_exeext conftest.$ac_ext
9958 if test -z "$lt_cv_aix_libpath_"; then
9959 lt_cv_aix_libpath_="/usr/lib:/lib"
9960 fi
9961
9962 fi
9963
9964 aix_libpath=$lt_cv_aix_libpath_
9965 fi
9966
9967 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9968 # Warning - without using the other run time loading flags,
9969 # -berok will link without error, but may produce a broken library.
9970 no_undefined_flag=' ${wl}-bernotok'
9971 allow_undefined_flag=' ${wl}-berok'
9972 if test "$with_gnu_ld" = yes; then
9973 # We only use this code for GNU lds that support --whole-archive.
9974 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9975 else
9976 # Exported symbols can be pulled into shared objects from archives
9977 whole_archive_flag_spec='$convenience'
9978 fi
9979 archive_cmds_need_lc=yes
9980 # This is similar to how AIX traditionally builds its shared libraries.
9981 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9982 fi
9983 fi
9984 ;;
9985
9986 amigaos*)
9987 case $host_cpu in
9988 powerpc)
9989 # see comment about AmigaOS4 .so support
9990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9991 archive_expsym_cmds=''
9992 ;;
9993 m68k)
9994 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)'
9995 hardcode_libdir_flag_spec='-L$libdir'
9996 hardcode_minus_L=yes
9997 ;;
9998 esac
9999 ;;
10000
10001 bsdi[45]*)
10002 export_dynamic_flag_spec=-rdynamic
10003 ;;
10004
10005 cygwin* | mingw* | pw32* | cegcc*)
10006 # When not using gcc, we currently assume that we are using
10007 # Microsoft Visual C++.
10008 # hardcode_libdir_flag_spec is actually meaningless, as there is
10009 # no search path for DLLs.
10010 case $cc_basename in
10011 cl*)
10012 # Native MSVC
10013 hardcode_libdir_flag_spec=' '
10014 allow_undefined_flag=unsupported
10015 always_export_symbols=yes
10016 file_list_spec='@'
10017 # Tell ltmain to make .lib files, not .a files.
10018 libext=lib
10019 # Tell ltmain to make .dll files, not .so files.
10020 shrext_cmds=".dll"
10021 # FIXME: Setting linknames here is a bad hack.
10022 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10023 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10024 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10025 else
10026 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10027 fi~
10028 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10029 linknames='
10030 # The linker will not automatically build a static lib if we build a DLL.
10031 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10032 enable_shared_with_static_runtimes=yes
10033 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10034 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10035 # Don't use ranlib
10036 old_postinstall_cmds='chmod 644 $oldlib'
10037 postlink_cmds='lt_outputfile="@OUTPUT@"~
10038 lt_tool_outputfile="@TOOL_OUTPUT@"~
10039 case $lt_outputfile in
10040 *.exe|*.EXE) ;;
10041 *)
10042 lt_outputfile="$lt_outputfile.exe"
10043 lt_tool_outputfile="$lt_tool_outputfile.exe"
10044 ;;
10045 esac~
10046 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10047 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10048 $RM "$lt_outputfile.manifest";
10049 fi'
10050 ;;
10051 *)
10052 # Assume MSVC wrapper
10053 hardcode_libdir_flag_spec=' '
10054 allow_undefined_flag=unsupported
10055 # Tell ltmain to make .lib files, not .a files.
10056 libext=lib
10057 # Tell ltmain to make .dll files, not .so files.
10058 shrext_cmds=".dll"
10059 # FIXME: Setting linknames here is a bad hack.
10060 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10061 # The linker will automatically build a .lib file if we build a DLL.
10062 old_archive_from_new_cmds='true'
10063 # FIXME: Should let the user specify the lib program.
10064 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10065 enable_shared_with_static_runtimes=yes
10066 ;;
10067 esac
10068 ;;
10069
10070 darwin* | rhapsody*)
10071
10072
10073 archive_cmds_need_lc=no
10074 hardcode_direct=no
10075 hardcode_automatic=yes
10076 hardcode_shlibpath_var=unsupported
10077 if test "$lt_cv_ld_force_load" = "yes"; then
10078 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\"`'
10079
10080 else
10081 whole_archive_flag_spec=''
10082 fi
10083 link_all_deplibs=yes
10084 allow_undefined_flag="$_lt_dar_allow_undefined"
10085 case $cc_basename in
10086 ifort*) _lt_dar_can_shared=yes ;;
10087 *) _lt_dar_can_shared=$GCC ;;
10088 esac
10089 if test "$_lt_dar_can_shared" = "yes"; then
10090 output_verbose_link_cmd=func_echo_all
10091 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10092 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10093 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}"
10094 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}"
10095
10096 else
10097 ld_shlibs=no
10098 fi
10099
10100 ;;
10101
10102 dgux*)
10103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10104 hardcode_libdir_flag_spec='-L$libdir'
10105 hardcode_shlibpath_var=no
10106 ;;
10107
10108 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10109 # support. Future versions do this automatically, but an explicit c++rt0.o
10110 # does not break anything, and helps significantly (at the cost of a little
10111 # extra space).
10112 freebsd2.2*)
10113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10114 hardcode_libdir_flag_spec='-R$libdir'
10115 hardcode_direct=yes
10116 hardcode_shlibpath_var=no
10117 ;;
10118
10119 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10120 freebsd2.*)
10121 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10122 hardcode_direct=yes
10123 hardcode_minus_L=yes
10124 hardcode_shlibpath_var=no
10125 ;;
10126
10127 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10128 freebsd* | dragonfly*)
10129 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10130 hardcode_libdir_flag_spec='-R$libdir'
10131 hardcode_direct=yes
10132 hardcode_shlibpath_var=no
10133 ;;
10134
10135 hpux9*)
10136 if test "$GCC" = yes; then
10137 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10138 else
10139 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10140 fi
10141 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10142 hardcode_libdir_separator=:
10143 hardcode_direct=yes
10144
10145 # hardcode_minus_L: Not really in the search PATH,
10146 # but as the default location of the library.
10147 hardcode_minus_L=yes
10148 export_dynamic_flag_spec='${wl}-E'
10149 ;;
10150
10151 hpux10*)
10152 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10153 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10154 else
10155 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10156 fi
10157 if test "$with_gnu_ld" = no; then
10158 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10159 hardcode_libdir_separator=:
10160 hardcode_direct=yes
10161 hardcode_direct_absolute=yes
10162 export_dynamic_flag_spec='${wl}-E'
10163 # hardcode_minus_L: Not really in the search PATH,
10164 # but as the default location of the library.
10165 hardcode_minus_L=yes
10166 fi
10167 ;;
10168
10169 hpux11*)
10170 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10171 case $host_cpu in
10172 hppa*64*)
10173 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10174 ;;
10175 ia64*)
10176 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10177 ;;
10178 *)
10179 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10180 ;;
10181 esac
10182 else
10183 case $host_cpu in
10184 hppa*64*)
10185 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10186 ;;
10187 ia64*)
10188 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10189 ;;
10190 *)
10191
10192 # Older versions of the 11.00 compiler do not understand -b yet
10193 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10195 $as_echo_n "checking if $CC understands -b... " >&6; }
10196 if ${lt_cv_prog_compiler__b+:} false; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10199 lt_cv_prog_compiler__b=no
10200 save_LDFLAGS="$LDFLAGS"
10201 LDFLAGS="$LDFLAGS -b"
10202 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10203 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10204 # The linker can only warn and ignore the option if not recognized
10205 # So say no if there are warnings
10206 if test -s conftest.err; then
10207 # Append any errors to the config.log.
10208 cat conftest.err 1>&5
10209 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10210 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10211 if diff conftest.exp conftest.er2 >/dev/null; then
10212 lt_cv_prog_compiler__b=yes
10213 fi
10214 else
10215 lt_cv_prog_compiler__b=yes
10216 fi
10217 fi
10218 $RM -r conftest*
10219 LDFLAGS="$save_LDFLAGS"
10220
10221 fi
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10223 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10224
10225 if test x"$lt_cv_prog_compiler__b" = xyes; then
10226 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10227 else
10228 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10229 fi
10230
10231 ;;
10232 esac
10233 fi
10234 if test "$with_gnu_ld" = no; then
10235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10236 hardcode_libdir_separator=:
10237
10238 case $host_cpu in
10239 hppa*64*|ia64*)
10240 hardcode_direct=no
10241 hardcode_shlibpath_var=no
10242 ;;
10243 *)
10244 hardcode_direct=yes
10245 hardcode_direct_absolute=yes
10246 export_dynamic_flag_spec='${wl}-E'
10247
10248 # hardcode_minus_L: Not really in the search PATH,
10249 # but as the default location of the library.
10250 hardcode_minus_L=yes
10251 ;;
10252 esac
10253 fi
10254 ;;
10255
10256 irix5* | irix6* | nonstopux*)
10257 if test "$GCC" = yes; then
10258 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'
10259 # Try to use the -exported_symbol ld option, if it does not
10260 # work, assume that -exports_file does not work either and
10261 # implicitly export all symbols.
10262 # This should be the same for all languages, so no per-tag cache variable.
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10264 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10265 if ${lt_cv_irix_exported_symbol+:} false; then :
10266 $as_echo_n "(cached) " >&6
10267 else
10268 save_LDFLAGS="$LDFLAGS"
10269 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271 /* end confdefs.h. */
10272 int foo (void) { return 0; }
10273 _ACEOF
10274 if ac_fn_c_try_link "$LINENO"; then :
10275 lt_cv_irix_exported_symbol=yes
10276 else
10277 lt_cv_irix_exported_symbol=no
10278 fi
10279 rm -f core conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10281 LDFLAGS="$save_LDFLAGS"
10282 fi
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10284 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10285 if test "$lt_cv_irix_exported_symbol" = yes; then
10286 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'
10287 fi
10288 else
10289 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'
10290 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'
10291 fi
10292 archive_cmds_need_lc='no'
10293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10294 hardcode_libdir_separator=:
10295 inherit_rpath=yes
10296 link_all_deplibs=yes
10297 ;;
10298
10299 netbsd* | netbsdelf*-gnu)
10300 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10302 else
10303 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10304 fi
10305 hardcode_libdir_flag_spec='-R$libdir'
10306 hardcode_direct=yes
10307 hardcode_shlibpath_var=no
10308 ;;
10309
10310 newsos6)
10311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10312 hardcode_direct=yes
10313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10314 hardcode_libdir_separator=:
10315 hardcode_shlibpath_var=no
10316 ;;
10317
10318 *nto* | *qnx*)
10319 ;;
10320
10321 openbsd*)
10322 if test -f /usr/libexec/ld.so; then
10323 hardcode_direct=yes
10324 hardcode_shlibpath_var=no
10325 hardcode_direct_absolute=yes
10326 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10327 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10328 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10329 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10330 export_dynamic_flag_spec='${wl}-E'
10331 else
10332 case $host_os in
10333 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10335 hardcode_libdir_flag_spec='-R$libdir'
10336 ;;
10337 *)
10338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10339 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10340 ;;
10341 esac
10342 fi
10343 else
10344 ld_shlibs=no
10345 fi
10346 ;;
10347
10348 os2*)
10349 hardcode_libdir_flag_spec='-L$libdir'
10350 hardcode_minus_L=yes
10351 allow_undefined_flag=unsupported
10352 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10353 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10354 ;;
10355
10356 osf3*)
10357 if test "$GCC" = yes; then
10358 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10359 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'
10360 else
10361 allow_undefined_flag=' -expect_unresolved \*'
10362 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'
10363 fi
10364 archive_cmds_need_lc='no'
10365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10366 hardcode_libdir_separator=:
10367 ;;
10368
10369 osf4* | osf5*) # as osf3* with the addition of -msym flag
10370 if test "$GCC" = yes; then
10371 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10372 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'
10373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10374 else
10375 allow_undefined_flag=' -expect_unresolved \*'
10376 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'
10377 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~
10378 $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'
10379
10380 # Both c and cxx compiler support -rpath directly
10381 hardcode_libdir_flag_spec='-rpath $libdir'
10382 fi
10383 archive_cmds_need_lc='no'
10384 hardcode_libdir_separator=:
10385 ;;
10386
10387 solaris*)
10388 no_undefined_flag=' -z defs'
10389 if test "$GCC" = yes; then
10390 wlarc='${wl}'
10391 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10393 $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'
10394 else
10395 case `$CC -V 2>&1` in
10396 *"Compilers 5.0"*)
10397 wlarc=''
10398 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10399 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10400 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10401 ;;
10402 *)
10403 wlarc='${wl}'
10404 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10405 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10406 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10407 ;;
10408 esac
10409 fi
10410 hardcode_libdir_flag_spec='-R$libdir'
10411 hardcode_shlibpath_var=no
10412 case $host_os in
10413 solaris2.[0-5] | solaris2.[0-5].*) ;;
10414 *)
10415 # The compiler driver will combine and reorder linker options,
10416 # but understands `-z linker_flag'. GCC discards it without `$wl',
10417 # but is careful enough not to reorder.
10418 # Supported since Solaris 2.6 (maybe 2.5.1?)
10419 if test "$GCC" = yes; then
10420 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10421 else
10422 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10423 fi
10424 ;;
10425 esac
10426 link_all_deplibs=yes
10427 ;;
10428
10429 sunos4*)
10430 if test "x$host_vendor" = xsequent; then
10431 # Use $CC to link under sequent, because it throws in some extra .o
10432 # files that make .init and .fini sections work.
10433 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10434 else
10435 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10436 fi
10437 hardcode_libdir_flag_spec='-L$libdir'
10438 hardcode_direct=yes
10439 hardcode_minus_L=yes
10440 hardcode_shlibpath_var=no
10441 ;;
10442
10443 sysv4)
10444 case $host_vendor in
10445 sni)
10446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10447 hardcode_direct=yes # is this really true???
10448 ;;
10449 siemens)
10450 ## LD is ld it makes a PLAMLIB
10451 ## CC just makes a GrossModule.
10452 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10453 reload_cmds='$CC -r -o $output$reload_objs'
10454 hardcode_direct=no
10455 ;;
10456 motorola)
10457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10458 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10459 ;;
10460 esac
10461 runpath_var='LD_RUN_PATH'
10462 hardcode_shlibpath_var=no
10463 ;;
10464
10465 sysv4.3*)
10466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10467 hardcode_shlibpath_var=no
10468 export_dynamic_flag_spec='-Bexport'
10469 ;;
10470
10471 sysv4*MP*)
10472 if test -d /usr/nec; then
10473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10474 hardcode_shlibpath_var=no
10475 runpath_var=LD_RUN_PATH
10476 hardcode_runpath_var=yes
10477 ld_shlibs=yes
10478 fi
10479 ;;
10480
10481 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10482 no_undefined_flag='${wl}-z,text'
10483 archive_cmds_need_lc=no
10484 hardcode_shlibpath_var=no
10485 runpath_var='LD_RUN_PATH'
10486
10487 if test "$GCC" = yes; then
10488 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10489 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10490 else
10491 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10492 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10493 fi
10494 ;;
10495
10496 sysv5* | sco3.2v5* | sco5v6*)
10497 # Note: We can NOT use -z defs as we might desire, because we do not
10498 # link with -lc, and that would cause any symbols used from libc to
10499 # always be unresolved, which means just about no library would
10500 # ever link correctly. If we're not using GNU ld we use -z text
10501 # though, which does catch some bad symbols but isn't as heavy-handed
10502 # as -z defs.
10503 no_undefined_flag='${wl}-z,text'
10504 allow_undefined_flag='${wl}-z,nodefs'
10505 archive_cmds_need_lc=no
10506 hardcode_shlibpath_var=no
10507 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10508 hardcode_libdir_separator=':'
10509 link_all_deplibs=yes
10510 export_dynamic_flag_spec='${wl}-Bexport'
10511 runpath_var='LD_RUN_PATH'
10512
10513 if test "$GCC" = yes; then
10514 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10515 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10516 else
10517 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10518 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10519 fi
10520 ;;
10521
10522 uts4*)
10523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10524 hardcode_libdir_flag_spec='-L$libdir'
10525 hardcode_shlibpath_var=no
10526 ;;
10527
10528 *)
10529 ld_shlibs=no
10530 ;;
10531 esac
10532
10533 if test x$host_vendor = xsni; then
10534 case $host in
10535 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10536 export_dynamic_flag_spec='${wl}-Blargedynsym'
10537 ;;
10538 esac
10539 fi
10540 fi
10541
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10543 $as_echo "$ld_shlibs" >&6; }
10544 test "$ld_shlibs" = no && can_build_shared=no
10545
10546 with_gnu_ld=$with_gnu_ld
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562 #
10563 # Do we need to explicitly link libc?
10564 #
10565 case "x$archive_cmds_need_lc" in
10566 x|xyes)
10567 # Assume -lc should be added
10568 archive_cmds_need_lc=yes
10569
10570 if test "$enable_shared" = yes && test "$GCC" = yes; then
10571 case $archive_cmds in
10572 *'~'*)
10573 # FIXME: we may have to deal with multi-command sequences.
10574 ;;
10575 '$CC '*)
10576 # Test whether the compiler implicitly links with -lc since on some
10577 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10578 # to ld, don't add -lc before -lgcc.
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10580 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10581 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10582 $as_echo_n "(cached) " >&6
10583 else
10584 $RM conftest*
10585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10586
10587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10588 (eval $ac_compile) 2>&5
10589 ac_status=$?
10590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10591 test $ac_status = 0; } 2>conftest.err; then
10592 soname=conftest
10593 lib=conftest
10594 libobjs=conftest.$ac_objext
10595 deplibs=
10596 wl=$lt_prog_compiler_wl
10597 pic_flag=$lt_prog_compiler_pic
10598 compiler_flags=-v
10599 linker_flags=-v
10600 verstring=
10601 output_objdir=.
10602 libname=conftest
10603 lt_save_allow_undefined_flag=$allow_undefined_flag
10604 allow_undefined_flag=
10605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10606 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10607 ac_status=$?
10608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10609 test $ac_status = 0; }
10610 then
10611 lt_cv_archive_cmds_need_lc=no
10612 else
10613 lt_cv_archive_cmds_need_lc=yes
10614 fi
10615 allow_undefined_flag=$lt_save_allow_undefined_flag
10616 else
10617 cat conftest.err 1>&5
10618 fi
10619 $RM conftest*
10620
10621 fi
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10623 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10624 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10625 ;;
10626 esac
10627 fi
10628 ;;
10629 esac
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10783 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10784
10785 if test "$GCC" = yes; then
10786 case $host_os in
10787 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10788 *) lt_awk_arg="/^libraries:/" ;;
10789 esac
10790 case $host_os in
10791 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10792 *) lt_sed_strip_eq="s,=/,/,g" ;;
10793 esac
10794 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10795 case $lt_search_path_spec in
10796 *\;*)
10797 # if the path contains ";" then we assume it to be the separator
10798 # otherwise default to the standard path separator (i.e. ":") - it is
10799 # assumed that no part of a normal pathname contains ";" but that should
10800 # okay in the real world where ";" in dirpaths is itself problematic.
10801 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10802 ;;
10803 *)
10804 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10805 ;;
10806 esac
10807 # Ok, now we have the path, separated by spaces, we can step through it
10808 # and add multilib dir if necessary.
10809 lt_tmp_lt_search_path_spec=
10810 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10811 for lt_sys_path in $lt_search_path_spec; do
10812 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10813 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10814 else
10815 test -d "$lt_sys_path" && \
10816 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10817 fi
10818 done
10819 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10820 BEGIN {RS=" "; FS="/|\n";} {
10821 lt_foo="";
10822 lt_count=0;
10823 for (lt_i = NF; lt_i > 0; lt_i--) {
10824 if ($lt_i != "" && $lt_i != ".") {
10825 if ($lt_i == "..") {
10826 lt_count++;
10827 } else {
10828 if (lt_count == 0) {
10829 lt_foo="/" $lt_i lt_foo;
10830 } else {
10831 lt_count--;
10832 }
10833 }
10834 }
10835 }
10836 if (lt_foo != "") { lt_freq[lt_foo]++; }
10837 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10838 }'`
10839 # AWK program above erroneously prepends '/' to C:/dos/paths
10840 # for these hosts.
10841 case $host_os in
10842 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10843 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10844 esac
10845 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10846 else
10847 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10848 fi
10849 library_names_spec=
10850 libname_spec='lib$name'
10851 soname_spec=
10852 shrext_cmds=".so"
10853 postinstall_cmds=
10854 postuninstall_cmds=
10855 finish_cmds=
10856 finish_eval=
10857 shlibpath_var=
10858 shlibpath_overrides_runpath=unknown
10859 version_type=none
10860 dynamic_linker="$host_os ld.so"
10861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10862 need_lib_prefix=unknown
10863 hardcode_into_libs=no
10864
10865 # when you set need_version to no, make sure it does not cause -set_version
10866 # flags to be left without arguments
10867 need_version=unknown
10868
10869 case $host_os in
10870 aix3*)
10871 version_type=linux # correct to gnu/linux during the next big refactor
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10873 shlibpath_var=LIBPATH
10874
10875 # AIX 3 has no versioning support, so we append a major version to the name.
10876 soname_spec='${libname}${release}${shared_ext}$major'
10877 ;;
10878
10879 aix[4-9]*)
10880 version_type=linux # correct to gnu/linux during the next big refactor
10881 need_lib_prefix=no
10882 need_version=no
10883 hardcode_into_libs=yes
10884 if test "$host_cpu" = ia64; then
10885 # AIX 5 supports IA64
10886 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10887 shlibpath_var=LD_LIBRARY_PATH
10888 else
10889 # With GCC up to 2.95.x, collect2 would create an import file
10890 # for dependence libraries. The import file would start with
10891 # the line `#! .'. This would cause the generated library to
10892 # depend on `.', always an invalid library. This was fixed in
10893 # development snapshots of GCC prior to 3.0.
10894 case $host_os in
10895 aix4 | aix4.[01] | aix4.[01].*)
10896 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10897 echo ' yes '
10898 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10899 :
10900 else
10901 can_build_shared=no
10902 fi
10903 ;;
10904 esac
10905 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10906 # soname into executable. Probably we can add versioning support to
10907 # collect2, so additional links can be useful in future.
10908 if test "$aix_use_runtimelinking" = yes; then
10909 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10910 # instead of lib<name>.a to let people know that these are not
10911 # typical AIX shared libraries.
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10913 else
10914 # We preserve .a as extension for shared libraries through AIX4.2
10915 # and later when we are not doing run time linking.
10916 library_names_spec='${libname}${release}.a $libname.a'
10917 soname_spec='${libname}${release}${shared_ext}$major'
10918 fi
10919 shlibpath_var=LIBPATH
10920 fi
10921 ;;
10922
10923 amigaos*)
10924 case $host_cpu in
10925 powerpc)
10926 # Since July 2007 AmigaOS4 officially supports .so libraries.
10927 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10929 ;;
10930 m68k)
10931 library_names_spec='$libname.ixlibrary $libname.a'
10932 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10933 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10934 ;;
10935 esac
10936 ;;
10937
10938 beos*)
10939 library_names_spec='${libname}${shared_ext}'
10940 dynamic_linker="$host_os ld.so"
10941 shlibpath_var=LIBRARY_PATH
10942 ;;
10943
10944 bsdi[45]*)
10945 version_type=linux # correct to gnu/linux during the next big refactor
10946 need_version=no
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10952 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10953 # the default ld.so.conf also contains /usr/contrib/lib and
10954 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10955 # libtool to hard-code these into programs
10956 ;;
10957
10958 cygwin* | mingw* | pw32* | cegcc*)
10959 version_type=windows
10960 shrext_cmds=".dll"
10961 need_version=no
10962 need_lib_prefix=no
10963
10964 case $GCC,$cc_basename in
10965 yes,*)
10966 # gcc
10967 library_names_spec='$libname.dll.a'
10968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10969 postinstall_cmds='base_file=`basename \${file}`~
10970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10971 dldir=$destdir/`dirname \$dlpath`~
10972 test -d \$dldir || mkdir -p \$dldir~
10973 $install_prog $dir/$dlname \$dldir/$dlname~
10974 chmod a+x \$dldir/$dlname~
10975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10977 fi'
10978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10979 dlpath=$dir/\$dldll~
10980 $RM \$dlpath'
10981 shlibpath_overrides_runpath=yes
10982
10983 case $host_os in
10984 cygwin*)
10985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10987
10988 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10989 ;;
10990 mingw* | cegcc*)
10991 # MinGW DLLs use traditional 'lib' prefix
10992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10993 ;;
10994 pw32*)
10995 # pw32 DLLs use 'pw' prefix rather than 'lib'
10996 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10997 ;;
10998 esac
10999 dynamic_linker='Win32 ld.exe'
11000 ;;
11001
11002 *,cl*)
11003 # Native MSVC
11004 libname_spec='$name'
11005 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11006 library_names_spec='${libname}.dll.lib'
11007
11008 case $build_os in
11009 mingw*)
11010 sys_lib_search_path_spec=
11011 lt_save_ifs=$IFS
11012 IFS=';'
11013 for lt_path in $LIB
11014 do
11015 IFS=$lt_save_ifs
11016 # Let DOS variable expansion print the short 8.3 style file name.
11017 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11018 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11019 done
11020 IFS=$lt_save_ifs
11021 # Convert to MSYS style.
11022 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11023 ;;
11024 cygwin*)
11025 # Convert to unix form, then to dos form, then back to unix form
11026 # but this time dos style (no spaces!) so that the unix form looks
11027 # like /cygdrive/c/PROGRA~1:/cygdr...
11028 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11029 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11030 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11031 ;;
11032 *)
11033 sys_lib_search_path_spec="$LIB"
11034 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11035 # It is most probably a Windows format PATH.
11036 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11037 else
11038 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11039 fi
11040 # FIXME: find the short name or the path components, as spaces are
11041 # common. (e.g. "Program Files" -> "PROGRA~1")
11042 ;;
11043 esac
11044
11045 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11046 postinstall_cmds='base_file=`basename \${file}`~
11047 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11048 dldir=$destdir/`dirname \$dlpath`~
11049 test -d \$dldir || mkdir -p \$dldir~
11050 $install_prog $dir/$dlname \$dldir/$dlname'
11051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11052 dlpath=$dir/\$dldll~
11053 $RM \$dlpath'
11054 shlibpath_overrides_runpath=yes
11055 dynamic_linker='Win32 link.exe'
11056 ;;
11057
11058 *)
11059 # Assume MSVC wrapper
11060 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11061 dynamic_linker='Win32 ld.exe'
11062 ;;
11063 esac
11064 # FIXME: first we should search . and the directory the executable is in
11065 shlibpath_var=PATH
11066 ;;
11067
11068 darwin* | rhapsody*)
11069 dynamic_linker="$host_os dyld"
11070 version_type=darwin
11071 need_lib_prefix=no
11072 need_version=no
11073 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11074 soname_spec='${libname}${release}${major}$shared_ext'
11075 shlibpath_overrides_runpath=yes
11076 shlibpath_var=DYLD_LIBRARY_PATH
11077 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11078
11079 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11080 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11081 ;;
11082
11083 dgux*)
11084 version_type=linux # correct to gnu/linux during the next big refactor
11085 need_lib_prefix=no
11086 need_version=no
11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11088 soname_spec='${libname}${release}${shared_ext}$major'
11089 shlibpath_var=LD_LIBRARY_PATH
11090 ;;
11091
11092 freebsd* | dragonfly*)
11093 # DragonFly does not have aout. When/if they implement a new
11094 # versioning mechanism, adjust this.
11095 if test -x /usr/bin/objformat; then
11096 objformat=`/usr/bin/objformat`
11097 else
11098 case $host_os in
11099 freebsd[23].*) objformat=aout ;;
11100 *) objformat=elf ;;
11101 esac
11102 fi
11103 version_type=freebsd-$objformat
11104 case $version_type in
11105 freebsd-elf*)
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11107 need_version=no
11108 need_lib_prefix=no
11109 ;;
11110 freebsd-*)
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11112 need_version=yes
11113 ;;
11114 esac
11115 shlibpath_var=LD_LIBRARY_PATH
11116 case $host_os in
11117 freebsd2.*)
11118 shlibpath_overrides_runpath=yes
11119 ;;
11120 freebsd3.[01]* | freebsdelf3.[01]*)
11121 shlibpath_overrides_runpath=yes
11122 hardcode_into_libs=yes
11123 ;;
11124 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11125 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11126 shlibpath_overrides_runpath=no
11127 hardcode_into_libs=yes
11128 ;;
11129 *) # from 4.6 on, and DragonFly
11130 shlibpath_overrides_runpath=yes
11131 hardcode_into_libs=yes
11132 ;;
11133 esac
11134 ;;
11135
11136 haiku*)
11137 version_type=linux # correct to gnu/linux during the next big refactor
11138 need_lib_prefix=no
11139 need_version=no
11140 dynamic_linker="$host_os runtime_loader"
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 shlibpath_var=LIBRARY_PATH
11144 shlibpath_overrides_runpath=yes
11145 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11146 hardcode_into_libs=yes
11147 ;;
11148
11149 hpux9* | hpux10* | hpux11*)
11150 # Give a soname corresponding to the major version so that dld.sl refuses to
11151 # link against other versions.
11152 version_type=sunos
11153 need_lib_prefix=no
11154 need_version=no
11155 case $host_cpu in
11156 ia64*)
11157 shrext_cmds='.so'
11158 hardcode_into_libs=yes
11159 dynamic_linker="$host_os dld.so"
11160 shlibpath_var=LD_LIBRARY_PATH
11161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163 soname_spec='${libname}${release}${shared_ext}$major'
11164 if test "X$HPUX_IA64_MODE" = X32; then
11165 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11166 else
11167 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11168 fi
11169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11170 ;;
11171 hppa*64*)
11172 shrext_cmds='.sl'
11173 hardcode_into_libs=yes
11174 dynamic_linker="$host_os dld.sl"
11175 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11181 ;;
11182 *)
11183 shrext_cmds='.sl'
11184 dynamic_linker="$host_os dld.sl"
11185 shlibpath_var=SHLIB_PATH
11186 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 soname_spec='${libname}${release}${shared_ext}$major'
11189 ;;
11190 esac
11191 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11192 postinstall_cmds='chmod 555 $lib'
11193 # or fails outright, so override atomically:
11194 install_override_mode=555
11195 ;;
11196
11197 interix[3-9]*)
11198 version_type=linux # correct to gnu/linux during the next big refactor
11199 need_lib_prefix=no
11200 need_version=no
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11202 soname_spec='${libname}${release}${shared_ext}$major'
11203 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11204 shlibpath_var=LD_LIBRARY_PATH
11205 shlibpath_overrides_runpath=no
11206 hardcode_into_libs=yes
11207 ;;
11208
11209 irix5* | irix6* | nonstopux*)
11210 case $host_os in
11211 nonstopux*) version_type=nonstopux ;;
11212 *)
11213 if test "$lt_cv_prog_gnu_ld" = yes; then
11214 version_type=linux # correct to gnu/linux during the next big refactor
11215 else
11216 version_type=irix
11217 fi ;;
11218 esac
11219 need_lib_prefix=no
11220 need_version=no
11221 soname_spec='${libname}${release}${shared_ext}$major'
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11223 case $host_os in
11224 irix5* | nonstopux*)
11225 libsuff= shlibsuff=
11226 ;;
11227 *)
11228 case $LD in # libtool.m4 will add one of these switches to LD
11229 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11230 libsuff= shlibsuff= libmagic=32-bit;;
11231 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11232 libsuff=32 shlibsuff=N32 libmagic=N32;;
11233 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11234 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11235 *) libsuff= shlibsuff= libmagic=never-match;;
11236 esac
11237 ;;
11238 esac
11239 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11240 shlibpath_overrides_runpath=no
11241 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11242 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11243 hardcode_into_libs=yes
11244 ;;
11245
11246 # No shared lib support for Linux oldld, aout, or coff.
11247 linux*oldld* | linux*aout* | linux*coff*)
11248 dynamic_linker=no
11249 ;;
11250
11251 # This must be glibc/ELF.
11252 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11253 version_type=linux # correct to gnu/linux during the next big refactor
11254 need_lib_prefix=no
11255 need_version=no
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11259 shlibpath_var=LD_LIBRARY_PATH
11260 shlibpath_overrides_runpath=no
11261
11262 # Some binutils ld are patched to set DT_RUNPATH
11263 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11264 $as_echo_n "(cached) " >&6
11265 else
11266 lt_cv_shlibpath_overrides_runpath=no
11267 save_LDFLAGS=$LDFLAGS
11268 save_libdir=$libdir
11269 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11270 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11273
11274 int
11275 main ()
11276 {
11277
11278 ;
11279 return 0;
11280 }
11281 _ACEOF
11282 if ac_fn_c_try_link "$LINENO"; then :
11283 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11284 lt_cv_shlibpath_overrides_runpath=yes
11285 fi
11286 fi
11287 rm -f core conftest.err conftest.$ac_objext \
11288 conftest$ac_exeext conftest.$ac_ext
11289 LDFLAGS=$save_LDFLAGS
11290 libdir=$save_libdir
11291
11292 fi
11293
11294 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11295
11296 # This implies no fast_install, which is unacceptable.
11297 # Some rework will be needed to allow for fast_install
11298 # before this can be enabled.
11299 hardcode_into_libs=yes
11300
11301 # Append ld.so.conf contents to the search path
11302 if test -f /etc/ld.so.conf; then
11303 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' ' '`
11304 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11305 fi
11306
11307 # We used to test for /lib/ld.so.1 and disable shared libraries on
11308 # powerpc, because MkLinux only supported shared libraries with the
11309 # GNU dynamic linker. Since this was broken with cross compilers,
11310 # most powerpc-linux boxes support dynamic linking these days and
11311 # people can always --disable-shared, the test was removed, and we
11312 # assume the GNU/Linux dynamic linker is in use.
11313 dynamic_linker='GNU/Linux ld.so'
11314 ;;
11315
11316 netbsdelf*-gnu)
11317 version_type=linux
11318 need_lib_prefix=no
11319 need_version=no
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11321 soname_spec='${libname}${release}${shared_ext}$major'
11322 shlibpath_var=LD_LIBRARY_PATH
11323 shlibpath_overrides_runpath=no
11324 hardcode_into_libs=yes
11325 dynamic_linker='NetBSD ld.elf_so'
11326 ;;
11327
11328 netbsd*)
11329 version_type=sunos
11330 need_lib_prefix=no
11331 need_version=no
11332 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11335 dynamic_linker='NetBSD (a.out) ld.so'
11336 else
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11338 soname_spec='${libname}${release}${shared_ext}$major'
11339 dynamic_linker='NetBSD ld.elf_so'
11340 fi
11341 shlibpath_var=LD_LIBRARY_PATH
11342 shlibpath_overrides_runpath=yes
11343 hardcode_into_libs=yes
11344 ;;
11345
11346 newsos6)
11347 version_type=linux # correct to gnu/linux during the next big refactor
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349 shlibpath_var=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath=yes
11351 ;;
11352
11353 *nto* | *qnx*)
11354 version_type=qnx
11355 need_lib_prefix=no
11356 need_version=no
11357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358 soname_spec='${libname}${release}${shared_ext}$major'
11359 shlibpath_var=LD_LIBRARY_PATH
11360 shlibpath_overrides_runpath=no
11361 hardcode_into_libs=yes
11362 dynamic_linker='ldqnx.so'
11363 ;;
11364
11365 openbsd*)
11366 version_type=sunos
11367 sys_lib_dlsearch_path_spec="/usr/lib"
11368 need_lib_prefix=no
11369 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11370 case $host_os in
11371 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11372 *) need_version=no ;;
11373 esac
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11376 shlibpath_var=LD_LIBRARY_PATH
11377 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11378 case $host_os in
11379 openbsd2.[89] | openbsd2.[89].*)
11380 shlibpath_overrides_runpath=no
11381 ;;
11382 *)
11383 shlibpath_overrides_runpath=yes
11384 ;;
11385 esac
11386 else
11387 shlibpath_overrides_runpath=yes
11388 fi
11389 ;;
11390
11391 os2*)
11392 libname_spec='$name'
11393 shrext_cmds=".dll"
11394 need_lib_prefix=no
11395 library_names_spec='$libname${shared_ext} $libname.a'
11396 dynamic_linker='OS/2 ld.exe'
11397 shlibpath_var=LIBPATH
11398 ;;
11399
11400 osf3* | osf4* | osf5*)
11401 version_type=osf
11402 need_lib_prefix=no
11403 need_version=no
11404 soname_spec='${libname}${release}${shared_ext}$major'
11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406 shlibpath_var=LD_LIBRARY_PATH
11407 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11408 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11409 ;;
11410
11411 rdos*)
11412 dynamic_linker=no
11413 ;;
11414
11415 solaris*)
11416 version_type=linux # correct to gnu/linux during the next big refactor
11417 need_lib_prefix=no
11418 need_version=no
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420 soname_spec='${libname}${release}${shared_ext}$major'
11421 shlibpath_var=LD_LIBRARY_PATH
11422 shlibpath_overrides_runpath=yes
11423 hardcode_into_libs=yes
11424 # ldd complains unless libraries are executable
11425 postinstall_cmds='chmod +x $lib'
11426 ;;
11427
11428 sunos4*)
11429 version_type=sunos
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11431 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11432 shlibpath_var=LD_LIBRARY_PATH
11433 shlibpath_overrides_runpath=yes
11434 if test "$with_gnu_ld" = yes; then
11435 need_lib_prefix=no
11436 fi
11437 need_version=yes
11438 ;;
11439
11440 sysv4 | sysv4.3*)
11441 version_type=linux # correct to gnu/linux during the next big refactor
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 shlibpath_var=LD_LIBRARY_PATH
11445 case $host_vendor in
11446 sni)
11447 shlibpath_overrides_runpath=no
11448 need_lib_prefix=no
11449 runpath_var=LD_RUN_PATH
11450 ;;
11451 siemens)
11452 need_lib_prefix=no
11453 ;;
11454 motorola)
11455 need_lib_prefix=no
11456 need_version=no
11457 shlibpath_overrides_runpath=no
11458 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11459 ;;
11460 esac
11461 ;;
11462
11463 sysv4*MP*)
11464 if test -d /usr/nec ;then
11465 version_type=linux # correct to gnu/linux during the next big refactor
11466 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11467 soname_spec='$libname${shared_ext}.$major'
11468 shlibpath_var=LD_LIBRARY_PATH
11469 fi
11470 ;;
11471
11472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11473 version_type=freebsd-elf
11474 need_lib_prefix=no
11475 need_version=no
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11477 soname_spec='${libname}${release}${shared_ext}$major'
11478 shlibpath_var=LD_LIBRARY_PATH
11479 shlibpath_overrides_runpath=yes
11480 hardcode_into_libs=yes
11481 if test "$with_gnu_ld" = yes; then
11482 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11483 else
11484 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11485 case $host_os in
11486 sco3.2v5*)
11487 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11488 ;;
11489 esac
11490 fi
11491 sys_lib_dlsearch_path_spec='/usr/lib'
11492 ;;
11493
11494 tpf*)
11495 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11496 version_type=linux # correct to gnu/linux during the next big refactor
11497 need_lib_prefix=no
11498 need_version=no
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500 shlibpath_var=LD_LIBRARY_PATH
11501 shlibpath_overrides_runpath=no
11502 hardcode_into_libs=yes
11503 ;;
11504
11505 uts4*)
11506 version_type=linux # correct to gnu/linux during the next big refactor
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508 soname_spec='${libname}${release}${shared_ext}$major'
11509 shlibpath_var=LD_LIBRARY_PATH
11510 ;;
11511
11512 *)
11513 dynamic_linker=no
11514 ;;
11515 esac
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11517 $as_echo "$dynamic_linker" >&6; }
11518 test "$dynamic_linker" = no && can_build_shared=no
11519
11520 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11521 if test "$GCC" = yes; then
11522 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11523 fi
11524
11525 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11526 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11527 fi
11528 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11529 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11530 fi
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
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
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11624 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11625 hardcode_action=
11626 if test -n "$hardcode_libdir_flag_spec" ||
11627 test -n "$runpath_var" ||
11628 test "X$hardcode_automatic" = "Xyes" ; then
11629
11630 # We can hardcode non-existent directories.
11631 if test "$hardcode_direct" != no &&
11632 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11633 # have to relink, otherwise we might link with an installed library
11634 # when we should be linking with a yet-to-be-installed one
11635 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11636 test "$hardcode_minus_L" != no; then
11637 # Linking always hardcodes the temporary library directory.
11638 hardcode_action=relink
11639 else
11640 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11641 hardcode_action=immediate
11642 fi
11643 else
11644 # We cannot hardcode anything, or else we can only hardcode existing
11645 # directories.
11646 hardcode_action=unsupported
11647 fi
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11649 $as_echo "$hardcode_action" >&6; }
11650
11651 if test "$hardcode_action" = relink ||
11652 test "$inherit_rpath" = yes; then
11653 # Fast installation is not supported
11654 enable_fast_install=no
11655 elif test "$shlibpath_overrides_runpath" = yes ||
11656 test "$enable_shared" = no; then
11657 # Fast installation is not necessary
11658 enable_fast_install=needless
11659 fi
11660
11661
11662
11663
11664
11665
11666 if test "x$enable_dlopen" != xyes; then
11667 enable_dlopen=unknown
11668 enable_dlopen_self=unknown
11669 enable_dlopen_self_static=unknown
11670 else
11671 lt_cv_dlopen=no
11672 lt_cv_dlopen_libs=
11673
11674 case $host_os in
11675 beos*)
11676 lt_cv_dlopen="load_add_on"
11677 lt_cv_dlopen_libs=
11678 lt_cv_dlopen_self=yes
11679 ;;
11680
11681 mingw* | pw32* | cegcc*)
11682 lt_cv_dlopen="LoadLibrary"
11683 lt_cv_dlopen_libs=
11684 ;;
11685
11686 cygwin*)
11687 lt_cv_dlopen="dlopen"
11688 lt_cv_dlopen_libs=
11689 ;;
11690
11691 darwin*)
11692 # if libdl is installed we need to link against it
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11694 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11695 if ${ac_cv_lib_dl_dlopen+:} false; then :
11696 $as_echo_n "(cached) " >&6
11697 else
11698 ac_check_lib_save_LIBS=$LIBS
11699 LIBS="-ldl $LIBS"
11700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11701 /* end confdefs.h. */
11702
11703 /* Override any GCC internal prototype to avoid an error.
11704 Use char because int might match the return type of a GCC
11705 builtin and then its argument prototype would still apply. */
11706 #ifdef __cplusplus
11707 extern "C"
11708 #endif
11709 char dlopen ();
11710 int
11711 main ()
11712 {
11713 return dlopen ();
11714 ;
11715 return 0;
11716 }
11717 _ACEOF
11718 if ac_fn_c_try_link "$LINENO"; then :
11719 ac_cv_lib_dl_dlopen=yes
11720 else
11721 ac_cv_lib_dl_dlopen=no
11722 fi
11723 rm -f core conftest.err conftest.$ac_objext \
11724 conftest$ac_exeext conftest.$ac_ext
11725 LIBS=$ac_check_lib_save_LIBS
11726 fi
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11728 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11729 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11731 else
11732
11733 lt_cv_dlopen="dyld"
11734 lt_cv_dlopen_libs=
11735 lt_cv_dlopen_self=yes
11736
11737 fi
11738
11739 ;;
11740
11741 *)
11742 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11743 if test "x$ac_cv_func_shl_load" = xyes; then :
11744 lt_cv_dlopen="shl_load"
11745 else
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11747 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11748 if ${ac_cv_lib_dld_shl_load+:} false; then :
11749 $as_echo_n "(cached) " >&6
11750 else
11751 ac_check_lib_save_LIBS=$LIBS
11752 LIBS="-ldld $LIBS"
11753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754 /* end confdefs.h. */
11755
11756 /* Override any GCC internal prototype to avoid an error.
11757 Use char because int might match the return type of a GCC
11758 builtin and then its argument prototype would still apply. */
11759 #ifdef __cplusplus
11760 extern "C"
11761 #endif
11762 char shl_load ();
11763 int
11764 main ()
11765 {
11766 return shl_load ();
11767 ;
11768 return 0;
11769 }
11770 _ACEOF
11771 if ac_fn_c_try_link "$LINENO"; then :
11772 ac_cv_lib_dld_shl_load=yes
11773 else
11774 ac_cv_lib_dld_shl_load=no
11775 fi
11776 rm -f core conftest.err conftest.$ac_objext \
11777 conftest$ac_exeext conftest.$ac_ext
11778 LIBS=$ac_check_lib_save_LIBS
11779 fi
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11781 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11782 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11783 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11784 else
11785 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11786 if test "x$ac_cv_func_dlopen" = xyes; then :
11787 lt_cv_dlopen="dlopen"
11788 else
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11790 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11791 if ${ac_cv_lib_dl_dlopen+:} false; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 ac_check_lib_save_LIBS=$LIBS
11795 LIBS="-ldl $LIBS"
11796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797 /* end confdefs.h. */
11798
11799 /* Override any GCC internal prototype to avoid an error.
11800 Use char because int might match the return type of a GCC
11801 builtin and then its argument prototype would still apply. */
11802 #ifdef __cplusplus
11803 extern "C"
11804 #endif
11805 char dlopen ();
11806 int
11807 main ()
11808 {
11809 return dlopen ();
11810 ;
11811 return 0;
11812 }
11813 _ACEOF
11814 if ac_fn_c_try_link "$LINENO"; then :
11815 ac_cv_lib_dl_dlopen=yes
11816 else
11817 ac_cv_lib_dl_dlopen=no
11818 fi
11819 rm -f core conftest.err conftest.$ac_objext \
11820 conftest$ac_exeext conftest.$ac_ext
11821 LIBS=$ac_check_lib_save_LIBS
11822 fi
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11824 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11825 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11826 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11827 else
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11829 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11830 if ${ac_cv_lib_svld_dlopen+:} false; then :
11831 $as_echo_n "(cached) " >&6
11832 else
11833 ac_check_lib_save_LIBS=$LIBS
11834 LIBS="-lsvld $LIBS"
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11837
11838 /* Override any GCC internal prototype to avoid an error.
11839 Use char because int might match the return type of a GCC
11840 builtin and then its argument prototype would still apply. */
11841 #ifdef __cplusplus
11842 extern "C"
11843 #endif
11844 char dlopen ();
11845 int
11846 main ()
11847 {
11848 return dlopen ();
11849 ;
11850 return 0;
11851 }
11852 _ACEOF
11853 if ac_fn_c_try_link "$LINENO"; then :
11854 ac_cv_lib_svld_dlopen=yes
11855 else
11856 ac_cv_lib_svld_dlopen=no
11857 fi
11858 rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
11860 LIBS=$ac_check_lib_save_LIBS
11861 fi
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11863 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11864 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11865 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11866 else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11868 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11869 if ${ac_cv_lib_dld_dld_link+:} false; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 ac_check_lib_save_LIBS=$LIBS
11873 LIBS="-ldld $LIBS"
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11876
11877 /* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 char dld_link ();
11884 int
11885 main ()
11886 {
11887 return dld_link ();
11888 ;
11889 return 0;
11890 }
11891 _ACEOF
11892 if ac_fn_c_try_link "$LINENO"; then :
11893 ac_cv_lib_dld_dld_link=yes
11894 else
11895 ac_cv_lib_dld_dld_link=no
11896 fi
11897 rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11899 LIBS=$ac_check_lib_save_LIBS
11900 fi
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11902 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11903 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11904 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11905 fi
11906
11907
11908 fi
11909
11910
11911 fi
11912
11913
11914 fi
11915
11916
11917 fi
11918
11919
11920 fi
11921
11922 ;;
11923 esac
11924
11925 if test "x$lt_cv_dlopen" != xno; then
11926 enable_dlopen=yes
11927 else
11928 enable_dlopen=no
11929 fi
11930
11931 case $lt_cv_dlopen in
11932 dlopen)
11933 save_CPPFLAGS="$CPPFLAGS"
11934 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11935
11936 save_LDFLAGS="$LDFLAGS"
11937 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11938
11939 save_LIBS="$LIBS"
11940 LIBS="$lt_cv_dlopen_libs $LIBS"
11941
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11943 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11944 if ${lt_cv_dlopen_self+:} false; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 if test "$cross_compiling" = yes; then :
11948 lt_cv_dlopen_self=cross
11949 else
11950 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11951 lt_status=$lt_dlunknown
11952 cat > conftest.$ac_ext <<_LT_EOF
11953 #line $LINENO "configure"
11954 #include "confdefs.h"
11955
11956 #if HAVE_DLFCN_H
11957 #include <dlfcn.h>
11958 #endif
11959
11960 #include <stdio.h>
11961
11962 #ifdef RTLD_GLOBAL
11963 # define LT_DLGLOBAL RTLD_GLOBAL
11964 #else
11965 # ifdef DL_GLOBAL
11966 # define LT_DLGLOBAL DL_GLOBAL
11967 # else
11968 # define LT_DLGLOBAL 0
11969 # endif
11970 #endif
11971
11972 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11973 find out it does not work in some platform. */
11974 #ifndef LT_DLLAZY_OR_NOW
11975 # ifdef RTLD_LAZY
11976 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11977 # else
11978 # ifdef DL_LAZY
11979 # define LT_DLLAZY_OR_NOW DL_LAZY
11980 # else
11981 # ifdef RTLD_NOW
11982 # define LT_DLLAZY_OR_NOW RTLD_NOW
11983 # else
11984 # ifdef DL_NOW
11985 # define LT_DLLAZY_OR_NOW DL_NOW
11986 # else
11987 # define LT_DLLAZY_OR_NOW 0
11988 # endif
11989 # endif
11990 # endif
11991 # endif
11992 #endif
11993
11994 /* When -fvisbility=hidden is used, assume the code has been annotated
11995 correspondingly for the symbols needed. */
11996 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11997 int fnord () __attribute__((visibility("default")));
11998 #endif
11999
12000 int fnord () { return 42; }
12001 int main ()
12002 {
12003 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12004 int status = $lt_dlunknown;
12005
12006 if (self)
12007 {
12008 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12009 else
12010 {
12011 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12012 else puts (dlerror ());
12013 }
12014 /* dlclose (self); */
12015 }
12016 else
12017 puts (dlerror ());
12018
12019 return status;
12020 }
12021 _LT_EOF
12022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12023 (eval $ac_link) 2>&5
12024 ac_status=$?
12025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12026 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12027 (./conftest; exit; ) >&5 2>/dev/null
12028 lt_status=$?
12029 case x$lt_status in
12030 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12031 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12032 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12033 esac
12034 else :
12035 # compilation failed
12036 lt_cv_dlopen_self=no
12037 fi
12038 fi
12039 rm -fr conftest*
12040
12041
12042 fi
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12044 $as_echo "$lt_cv_dlopen_self" >&6; }
12045
12046 if test "x$lt_cv_dlopen_self" = xyes; then
12047 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12049 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12050 if ${lt_cv_dlopen_self_static+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 if test "$cross_compiling" = yes; then :
12054 lt_cv_dlopen_self_static=cross
12055 else
12056 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12057 lt_status=$lt_dlunknown
12058 cat > conftest.$ac_ext <<_LT_EOF
12059 #line $LINENO "configure"
12060 #include "confdefs.h"
12061
12062 #if HAVE_DLFCN_H
12063 #include <dlfcn.h>
12064 #endif
12065
12066 #include <stdio.h>
12067
12068 #ifdef RTLD_GLOBAL
12069 # define LT_DLGLOBAL RTLD_GLOBAL
12070 #else
12071 # ifdef DL_GLOBAL
12072 # define LT_DLGLOBAL DL_GLOBAL
12073 # else
12074 # define LT_DLGLOBAL 0
12075 # endif
12076 #endif
12077
12078 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12079 find out it does not work in some platform. */
12080 #ifndef LT_DLLAZY_OR_NOW
12081 # ifdef RTLD_LAZY
12082 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12083 # else
12084 # ifdef DL_LAZY
12085 # define LT_DLLAZY_OR_NOW DL_LAZY
12086 # else
12087 # ifdef RTLD_NOW
12088 # define LT_DLLAZY_OR_NOW RTLD_NOW
12089 # else
12090 # ifdef DL_NOW
12091 # define LT_DLLAZY_OR_NOW DL_NOW
12092 # else
12093 # define LT_DLLAZY_OR_NOW 0
12094 # endif
12095 # endif
12096 # endif
12097 # endif
12098 #endif
12099
12100 /* When -fvisbility=hidden is used, assume the code has been annotated
12101 correspondingly for the symbols needed. */
12102 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12103 int fnord () __attribute__((visibility("default")));
12104 #endif
12105
12106 int fnord () { return 42; }
12107 int main ()
12108 {
12109 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12110 int status = $lt_dlunknown;
12111
12112 if (self)
12113 {
12114 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12115 else
12116 {
12117 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12118 else puts (dlerror ());
12119 }
12120 /* dlclose (self); */
12121 }
12122 else
12123 puts (dlerror ());
12124
12125 return status;
12126 }
12127 _LT_EOF
12128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12129 (eval $ac_link) 2>&5
12130 ac_status=$?
12131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12132 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12133 (./conftest; exit; ) >&5 2>/dev/null
12134 lt_status=$?
12135 case x$lt_status in
12136 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12137 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12138 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12139 esac
12140 else :
12141 # compilation failed
12142 lt_cv_dlopen_self_static=no
12143 fi
12144 fi
12145 rm -fr conftest*
12146
12147
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12150 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12151 fi
12152
12153 CPPFLAGS="$save_CPPFLAGS"
12154 LDFLAGS="$save_LDFLAGS"
12155 LIBS="$save_LIBS"
12156 ;;
12157 esac
12158
12159 case $lt_cv_dlopen_self in
12160 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12161 *) enable_dlopen_self=unknown ;;
12162 esac
12163
12164 case $lt_cv_dlopen_self_static in
12165 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12166 *) enable_dlopen_self_static=unknown ;;
12167 esac
12168 fi
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186 striplib=
12187 old_striplib=
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12189 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12190 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12191 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12192 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12194 $as_echo "yes" >&6; }
12195 else
12196 # FIXME - insert some real tests, host_os isn't really good enough
12197 case $host_os in
12198 darwin*)
12199 if test -n "$STRIP" ; then
12200 striplib="$STRIP -x"
12201 old_striplib="$STRIP -S"
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12203 $as_echo "yes" >&6; }
12204 else
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 $as_echo "no" >&6; }
12207 fi
12208 ;;
12209 *)
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12212 ;;
12213 esac
12214 fi
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227 # Report which library types will actually be built
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12229 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12231 $as_echo "$can_build_shared" >&6; }
12232
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12234 $as_echo_n "checking whether to build shared libraries... " >&6; }
12235 test "$can_build_shared" = "no" && enable_shared=no
12236
12237 # On AIX, shared libraries and static libraries use the same namespace, and
12238 # are all built from PIC.
12239 case $host_os in
12240 aix3*)
12241 test "$enable_shared" = yes && enable_static=no
12242 if test -n "$RANLIB"; then
12243 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12244 postinstall_cmds='$RANLIB $lib'
12245 fi
12246 ;;
12247
12248 aix[4-9]*)
12249 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12250 test "$enable_shared" = yes && enable_static=no
12251 fi
12252 ;;
12253 esac
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12255 $as_echo "$enable_shared" >&6; }
12256
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12258 $as_echo_n "checking whether to build static libraries... " >&6; }
12259 # Make sure either enable_shared or enable_static is yes.
12260 test "$enable_shared" = yes || enable_static=yes
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12262 $as_echo "$enable_static" >&6; }
12263
12264
12265
12266
12267 fi
12268 ac_ext=c
12269 ac_cpp='$CPP $CPPFLAGS'
12270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12273
12274 CC="$lt_save_CC"
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290 ac_config_commands="$ac_config_commands libtool"
12291
12292
12293
12294
12295 # Only expand once:
12296
12297
12298
12299 rra_reduced_depends=false
12300 # Check whether --enable-reduced-depends was given.
12301 if test "${enable_reduced_depends+set}" = set; then :
12302 enableval=$enable_reduced_depends; if test x"$enableval" = xyes; then :
12303 rra_reduced_depends=true
12304 fi
12305 fi
12306
12307 rra_lib_arch_name=lib
12308 # The cast to long int works around a bug in the HP C Compiler
12309 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12310 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12311 # This bug is HP SR number 8606223364.
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12313 $as_echo_n "checking size of long... " >&6; }
12314 if ${ac_cv_sizeof_long+:} false; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12318
12319 else
12320 if test "$ac_cv_type_long" = yes; then
12321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12323 as_fn_error 77 "cannot compute sizeof (long)
12324 See \`config.log' for more details" "$LINENO" 5; }
12325 else
12326 ac_cv_sizeof_long=0
12327 fi
12328 fi
12329
12330 fi
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12332 $as_echo "$ac_cv_sizeof_long" >&6; }
12333
12334
12335
12336 cat >>confdefs.h <<_ACEOF
12337 #define SIZEOF_LONG $ac_cv_sizeof_long
12338 _ACEOF
12339
12340
12341 if test "$ac_cv_sizeof_long" -eq 4 && test -d /usr/lib32; then :
12342 rra_lib_arch_name=lib32
12343 else
12344 if test "$ac_cv_sizeof_long" -eq 8 && test -d /usr/lib64; then :
12345 rra_lib_arch_name=lib64
12346 fi
12347 fi
12348
12349 # Extract the first word of "krb5-config", so it can be a program name with args.
12350 set dummy krb5-config; ac_word=$2
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352 $as_echo_n "checking for $ac_word... " >&6; }
12353 if ${ac_cv_path_PATH_KRB5_CONFIG+:} false; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 case $PATH_KRB5_CONFIG in
12357 [\\/]* | ?:[\\/]*)
12358 ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path.
12359 ;;
12360 *)
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 as_dummy="${PATH}:/usr/kerberos/bin"
12363 for as_dir in $as_dummy
12364 do
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12369 ac_cv_path_PATH_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 break 2
12372 fi
12373 done
12374 done
12375 IFS=$as_save_IFS
12376
12377 ;;
12378 esac
12379 fi
12380 PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG
12381 if test -n "$PATH_KRB5_CONFIG"; then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5
12383 $as_echo "$PATH_KRB5_CONFIG" >&6; }
12384 else
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386 $as_echo "no" >&6; }
12387 fi
12388
12389
12390 rra_krb5_root=
12391 rra_krb5_libdir=
12392 rra_krb5_includedir=
12393 rra_use_KRB5=true
12394
12395
12396 # Check whether --with-krb5 was given.
12397 if test "${with_krb5+set}" = set; then :
12398 withval=$with_krb5; if test x"$withval" != xyes && test x"$withval" != xno; then :
12399 rra_krb5_root="$withval"
12400 fi
12401 fi
12402
12403
12404 # Check whether --with-krb5-include was given.
12405 if test "${with_krb5_include+set}" = set; then :
12406 withval=$with_krb5_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
12407 rra_krb5_includedir="$withval"
12408 fi
12409 fi
12410
12411
12412 # Check whether --with-krb5-lib was given.
12413 if test "${with_krb5_lib+set}" = set; then :
12414 withval=$with_krb5_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
12415 rra_krb5_libdir="$withval"
12416 fi
12417 fi
12418
12419
12420 rra_krb5_incroot=
12421
12422
12423
12424
12425 if test x"$rra_krb5_includedir" != x; then :
12426 rra_krb5_incroot="$rra_krb5_includedir"
12427 else
12428 if test x"$rra_krb5_root" != x; then :
12429 rra_krb5_incroot="${rra_krb5_root}/include"
12430 fi
12431 fi
12432 if test x"$rra_reduced_depends" = xtrue; then :
12433 if test x"$rra_krb5_libdir" != x; then :
12434 KRB5_LDFLAGS="-L$rra_krb5_libdir"
12435 else
12436 if test x"$rra_krb5_root" != x; then :
12437
12438 if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
12439 if test x"" = x; then :
12440 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
12441 else
12442 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
12443 fi
12444 else
12445 if test x"" = x; then :
12446 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
12447 else
12448 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
12449 fi
12450 fi
12451 KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
12452 fi
12453 fi
12454 if test x"$rra_krb5_includedir" != x; then :
12455 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
12456 else
12457 if test x"$rra_krb5_root" != x; then :
12458 if test x"$rra_krb5_root" != x/usr; then :
12459 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
12460 fi
12461 fi
12462 fi
12463 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
12464 rra_krb5_save_LDFLAGS="$LDFLAGS"
12465 rra_krb5_save_LIBS="$LIBS"
12466 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
12467 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
12468 LIBS="$KRB5_LIBS $LIBS"
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12470 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12471 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
12472 $as_echo_n "(cached) " >&6
12473 else
12474 ac_check_lib_save_LIBS=$LIBS
12475 LIBS="-lkrb5 $LIBS"
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12478
12479 /* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
12482 #ifdef __cplusplus
12483 extern "C"
12484 #endif
12485 char krb5_init_context ();
12486 int
12487 main ()
12488 {
12489 return krb5_init_context ();
12490 ;
12491 return 0;
12492 }
12493 _ACEOF
12494 if ac_fn_c_try_link "$LINENO"; then :
12495 ac_cv_lib_krb5_krb5_init_context=yes
12496 else
12497 ac_cv_lib_krb5_krb5_init_context=no
12498 fi
12499 rm -f core conftest.err conftest.$ac_objext \
12500 conftest$ac_exeext conftest.$ac_ext
12501 LIBS=$ac_check_lib_save_LIBS
12502 fi
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12504 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12505 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
12506 KRB5_LIBS="-lkrb5"
12507 else
12508 if test x"true" = xtrue; then :
12509 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
12510 fi
12511 fi
12512
12513 LIBS="$KRB5_LIBS $LIBS"
12514 if test x"$rra_krb5_incroot" = x; then :
12515 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
12516 do :
12517 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12518 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12519 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12520 cat >>confdefs.h <<_ACEOF
12521 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12522 _ACEOF
12523
12524 fi
12525
12526 done
12527
12528 else
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
12530 $as_echo_n "checking for krb5.h... " >&6; }
12531 if test -f "${rra_krb5_incroot}/krb5.h"; then :
12532
12533 cat >>confdefs.h <<_ACEOF
12534 #define HAVE_KRB5_H 1
12535 _ACEOF
12536
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12538 $as_echo "yes" >&6; }
12539 else
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12542 fi
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
12544 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
12545 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
12546
12547 cat >>confdefs.h <<_ACEOF
12548 #define HAVE_KERBEROSV5_KRB5_H 1
12549 _ACEOF
12550
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12552 $as_echo "yes" >&6; }
12553 else
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555 $as_echo "no" >&6; }
12556 fi
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
12558 $as_echo_n "checking for krb5/krb5.h... " >&6; }
12559 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
12560
12561 cat >>confdefs.h <<_ACEOF
12562 #define HAVE_KRB5_KRB5_H 1
12563 _ACEOF
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12566 $as_echo "yes" >&6; }
12567 else
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569 $as_echo "no" >&6; }
12570 fi
12571 fi
12572 for ac_func in krb5_get_error_message
12573 do :
12574 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
12575 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
12576 cat >>confdefs.h <<_ACEOF
12577 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
12578 _ACEOF
12579 for ac_func in krb5_free_error_message
12580 do :
12581 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
12582 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
12583 cat >>confdefs.h <<_ACEOF
12584 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
12585 _ACEOF
12586
12587 fi
12588 done
12589
12590 else
12591 for ac_func in krb5_get_error_string
12592 do :
12593 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
12594 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
12595 cat >>confdefs.h <<_ACEOF
12596 #define HAVE_KRB5_GET_ERROR_STRING 1
12597 _ACEOF
12598
12599 else
12600 for ac_func in krb5_get_err_txt
12601 do :
12602 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
12603 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
12604 cat >>confdefs.h <<_ACEOF
12605 #define HAVE_KRB5_GET_ERR_TXT 1
12606 _ACEOF
12607
12608 else
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
12610 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
12611 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
12612 $as_echo_n "(cached) " >&6
12613 else
12614 ac_check_lib_save_LIBS=$LIBS
12615 LIBS="-lksvc $LIBS"
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12618
12619 /* Override any GCC internal prototype to avoid an error.
12620 Use char because int might match the return type of a GCC
12621 builtin and then its argument prototype would still apply. */
12622 #ifdef __cplusplus
12623 extern "C"
12624 #endif
12625 char krb5_svc_get_msg ();
12626 int
12627 main ()
12628 {
12629 return krb5_svc_get_msg ();
12630 ;
12631 return 0;
12632 }
12633 _ACEOF
12634 if ac_fn_c_try_link "$LINENO"; then :
12635 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
12636 else
12637 ac_cv_lib_ksvc_krb5_svc_get_msg=no
12638 fi
12639 rm -f core conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12641 LIBS=$ac_check_lib_save_LIBS
12642 fi
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
12644 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
12645 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
12646 KRB5_LIBS="$KRB5_LIBS -lksvc"
12647 $as_echo "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
12648
12649 for ac_header in ibm_svc/krb5_svc.h
12650 do :
12651 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
12652 #if HAVE_KRB5_H
12653 # include <krb5.h>
12654 #elif HAVE_KERBEROSV5_KRB5_H
12655 # include <kerberosv5/krb5.h>
12656 #else
12657 # include <krb5/krb5.h>
12658 #endif
12659
12660 "
12661 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
12662 cat >>confdefs.h <<_ACEOF
12663 #define HAVE_IBM_SVC_KRB5_SVC_H 1
12664 _ACEOF
12665
12666 fi
12667
12668 done
12669
12670 else
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12672 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12673 if ${ac_cv_lib_com_err_com_err+:} false; then :
12674 $as_echo_n "(cached) " >&6
12675 else
12676 ac_check_lib_save_LIBS=$LIBS
12677 LIBS="-lcom_err $LIBS"
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12680
12681 /* Override any GCC internal prototype to avoid an error.
12682 Use char because int might match the return type of a GCC
12683 builtin and then its argument prototype would still apply. */
12684 #ifdef __cplusplus
12685 extern "C"
12686 #endif
12687 char com_err ();
12688 int
12689 main ()
12690 {
12691 return com_err ();
12692 ;
12693 return 0;
12694 }
12695 _ACEOF
12696 if ac_fn_c_try_link "$LINENO"; then :
12697 ac_cv_lib_com_err_com_err=yes
12698 else
12699 ac_cv_lib_com_err_com_err=no
12700 fi
12701 rm -f core conftest.err conftest.$ac_objext \
12702 conftest$ac_exeext conftest.$ac_ext
12703 LIBS=$ac_check_lib_save_LIBS
12704 fi
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12706 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12707 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
12708 KRB5_LIBS="$KRB5_LIBS -lcom_err"
12709 else
12710 if test x"true" = xtrue; then :
12711 as_fn_error $? "cannot find usable com_err library" "$LINENO" 5
12712 else
12713 KRB5_LIBS=""
12714 fi
12715 fi
12716
12717 if test x"$rra_krb5_incroot" = x; then :
12718 for ac_header in et/com_err.h kerberosv5/com_err.h
12719 do :
12720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12721 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12722 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12723 cat >>confdefs.h <<_ACEOF
12724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12725 _ACEOF
12726
12727 fi
12728
12729 done
12730
12731 else
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
12733 $as_echo_n "checking for et/com_err.h... " >&6; }
12734 if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
12735
12736 cat >>confdefs.h <<_ACEOF
12737 #define HAVE_ET_COM_ERR_H 1
12738 _ACEOF
12739
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12741 $as_echo "yes" >&6; }
12742 else
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12744 $as_echo "no" >&6; }
12745 fi
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
12747 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
12748 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
12749
12750 cat >>confdefs.h <<_ACEOF
12751 #define HAVE_KERBEROSV5_COM_ERR_H 1
12752 _ACEOF
12753
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12755 $as_echo "yes" >&6; }
12756 else
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758 $as_echo "no" >&6; }
12759 fi
12760 fi
12761 fi
12762
12763 fi
12764 done
12765
12766 fi
12767 done
12768
12769 fi
12770 done
12771
12772 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
12773 LDFLAGS="$rra_krb5_save_LDFLAGS"
12774 LIBS="$rra_krb5_save_LIBS"
12775 else
12776 if test x"$rra_krb5_includedir" = x && test x"$rra_krb5_libdir" = x; then :
12777
12778 rra_krb5_config_KRB5=
12779 rra_krb5_config_KRB5_ok=
12780 if test x"${rra_krb5_root}" != x && test -x "${rra_krb5_root}/bin/krb5-config"; then :
12781 rra_krb5_config_KRB5="${rra_krb5_root}/bin/krb5-config"
12782 else
12783 rra_krb5_config_KRB5="$PATH_KRB5_CONFIG"
12784 fi
12785 if test x"$rra_krb5_config_KRB5" != x && test -x "$rra_krb5_config_KRB5"; then :
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5 support in krb5-config" >&5
12787 $as_echo_n "checking for krb5 support in krb5-config... " >&6; }
12788 if ${rra_cv_lib_KRB5_config+:} false; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12791 if "$rra_krb5_config_KRB5" 2>&1 | grep krb5 >/dev/null 2>&1; then :
12792 rra_cv_lib_KRB5_config=yes
12793 else
12794 rra_cv_lib_KRB5_config=no
12795 fi
12796 fi
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_KRB5_config" >&5
12798 $as_echo "$rra_cv_lib_KRB5_config" >&6; }
12799 if test "$rra_cv_lib_KRB5_config" = yes; then :
12800 KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags krb5 2>/dev/null`
12801
12802
12803
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5
12805 $as_echo_n "checking for --deps support in krb5-config... " >&6; }
12806 if ${rra_cv_krb5_config_deps+:} false; then :
12807 $as_echo_n "(cached) " >&6
12808 else
12809 if "$rra_krb5_config_KRB5" 2>&1 | grep deps >/dev/null 2>&1; then :
12810 rra_cv_krb5_config_deps=yes
12811 else
12812 rra_cv_krb5_config_deps=no
12813 fi
12814 fi
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5
12816 $as_echo "$rra_cv_krb5_config_deps" >&6; }
12817 if test x"$rra_reduced_depends" = xfalse \
12818 && test x"$rra_cv_krb5_config_deps" = xyes; then :
12819 KRB5_LIBS=`"$rra_krb5_config_KRB5" --deps --libs krb5 2>/dev/null`
12820 else
12821 KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
12822 fi
12823 rra_krb5_config_KRB5_ok=yes
12824 else
12825 if test x"krb5" = xkrb5; then :
12826 KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags 2>/dev/null`
12827 KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
12828 rra_krb5_config_KRB5_ok=yes
12829 fi
12830 fi
12831 fi
12832 if test x"$rra_krb5_config_KRB5_ok" = xyes; then :
12833 KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include %%'`
12834 KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include$%%'`
12835 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
12836 rra_krb5_save_LDFLAGS="$LDFLAGS"
12837 rra_krb5_save_LIBS="$LIBS"
12838 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
12839 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
12840 LIBS="$KRB5_LIBS $LIBS"
12841 ac_fn_c_check_func "$LINENO" "krb5_init_context" "ac_cv_func_krb5_init_context"
12842 if test "x$ac_cv_func_krb5_init_context" = xyes; then :
12843 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
12844 LDFLAGS="$rra_krb5_save_LDFLAGS"
12845 LIBS="$rra_krb5_save_LIBS"
12846 else
12847 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
12848 LDFLAGS="$rra_krb5_save_LDFLAGS"
12849 LIBS="$rra_krb5_save_LIBS"
12850 KRB5_CPPFLAGS=
12851 KRB5_LIBS=
12852 if test x"$rra_krb5_libdir" != x; then :
12853 KRB5_LDFLAGS="-L$rra_krb5_libdir"
12854 else
12855 if test x"$rra_krb5_root" != x; then :
12856
12857 if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
12858 if test x"" = x; then :
12859 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
12860 else
12861 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
12862 fi
12863 else
12864 if test x"" = x; then :
12865 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
12866 else
12867 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
12868 fi
12869 fi
12870 KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
12871 fi
12872 fi
12873 if test x"$rra_krb5_includedir" != x; then :
12874 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
12875 else
12876 if test x"$rra_krb5_root" != x; then :
12877 if test x"$rra_krb5_root" != x/usr; then :
12878 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
12879 fi
12880 fi
12881 fi
12882 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
12883 rra_krb5_save_LDFLAGS="$LDFLAGS"
12884 rra_krb5_save_LIBS="$LIBS"
12885 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
12886 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
12887 LIBS="$KRB5_LIBS $LIBS"
12888 rra_krb5_extra=
12889 LIBS=
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
12891 $as_echo_n "checking for library containing res_search... " >&6; }
12892 if ${ac_cv_search_res_search+:} false; then :
12893 $as_echo_n "(cached) " >&6
12894 else
12895 ac_func_search_save_LIBS=$LIBS
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h. */
12898
12899 /* Override any GCC internal prototype to avoid an error.
12900 Use char because int might match the return type of a GCC
12901 builtin and then its argument prototype would still apply. */
12902 #ifdef __cplusplus
12903 extern "C"
12904 #endif
12905 char res_search ();
12906 int
12907 main ()
12908 {
12909 return res_search ();
12910 ;
12911 return 0;
12912 }
12913 _ACEOF
12914 for ac_lib in '' resolv; do
12915 if test -z "$ac_lib"; then
12916 ac_res="none required"
12917 else
12918 ac_res=-l$ac_lib
12919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12920 fi
12921 if ac_fn_c_try_link "$LINENO"; then :
12922 ac_cv_search_res_search=$ac_res
12923 fi
12924 rm -f core conftest.err conftest.$ac_objext \
12925 conftest$ac_exeext
12926 if ${ac_cv_search_res_search+:} false; then :
12927 break
12928 fi
12929 done
12930 if ${ac_cv_search_res_search+:} false; then :
12931
12932 else
12933 ac_cv_search_res_search=no
12934 fi
12935 rm conftest.$ac_ext
12936 LIBS=$ac_func_search_save_LIBS
12937 fi
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
12939 $as_echo "$ac_cv_search_res_search" >&6; }
12940 ac_res=$ac_cv_search_res_search
12941 if test "$ac_res" != no; then :
12942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12943
12944 else
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
12946 $as_echo_n "checking for library containing __res_search... " >&6; }
12947 if ${ac_cv_search___res_search+:} false; then :
12948 $as_echo_n "(cached) " >&6
12949 else
12950 ac_func_search_save_LIBS=$LIBS
12951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952 /* end confdefs.h. */
12953
12954 /* Override any GCC internal prototype to avoid an error.
12955 Use char because int might match the return type of a GCC
12956 builtin and then its argument prototype would still apply. */
12957 #ifdef __cplusplus
12958 extern "C"
12959 #endif
12960 char __res_search ();
12961 int
12962 main ()
12963 {
12964 return __res_search ();
12965 ;
12966 return 0;
12967 }
12968 _ACEOF
12969 for ac_lib in '' resolv; do
12970 if test -z "$ac_lib"; then
12971 ac_res="none required"
12972 else
12973 ac_res=-l$ac_lib
12974 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12975 fi
12976 if ac_fn_c_try_link "$LINENO"; then :
12977 ac_cv_search___res_search=$ac_res
12978 fi
12979 rm -f core conftest.err conftest.$ac_objext \
12980 conftest$ac_exeext
12981 if ${ac_cv_search___res_search+:} false; then :
12982 break
12983 fi
12984 done
12985 if ${ac_cv_search___res_search+:} false; then :
12986
12987 else
12988 ac_cv_search___res_search=no
12989 fi
12990 rm conftest.$ac_ext
12991 LIBS=$ac_func_search_save_LIBS
12992 fi
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
12994 $as_echo "$ac_cv_search___res_search" >&6; }
12995 ac_res=$ac_cv_search___res_search
12996 if test "$ac_res" != no; then :
12997 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12998
12999 fi
13000
13001 fi
13002
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13004 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13005 if ${ac_cv_search_gethostbyname+:} false; then :
13006 $as_echo_n "(cached) " >&6
13007 else
13008 ac_func_search_save_LIBS=$LIBS
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13011
13012 /* Override any GCC internal prototype to avoid an error.
13013 Use char because int might match the return type of a GCC
13014 builtin and then its argument prototype would still apply. */
13015 #ifdef __cplusplus
13016 extern "C"
13017 #endif
13018 char gethostbyname ();
13019 int
13020 main ()
13021 {
13022 return gethostbyname ();
13023 ;
13024 return 0;
13025 }
13026 _ACEOF
13027 for ac_lib in '' nsl; do
13028 if test -z "$ac_lib"; then
13029 ac_res="none required"
13030 else
13031 ac_res=-l$ac_lib
13032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13033 fi
13034 if ac_fn_c_try_link "$LINENO"; then :
13035 ac_cv_search_gethostbyname=$ac_res
13036 fi
13037 rm -f core conftest.err conftest.$ac_objext \
13038 conftest$ac_exeext
13039 if ${ac_cv_search_gethostbyname+:} false; then :
13040 break
13041 fi
13042 done
13043 if ${ac_cv_search_gethostbyname+:} false; then :
13044
13045 else
13046 ac_cv_search_gethostbyname=no
13047 fi
13048 rm conftest.$ac_ext
13049 LIBS=$ac_func_search_save_LIBS
13050 fi
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13052 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13053 ac_res=$ac_cv_search_gethostbyname
13054 if test "$ac_res" != no; then :
13055 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13056
13057 fi
13058
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13060 $as_echo_n "checking for library containing socket... " >&6; }
13061 if ${ac_cv_search_socket+:} false; then :
13062 $as_echo_n "(cached) " >&6
13063 else
13064 ac_func_search_save_LIBS=$LIBS
13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h. */
13067
13068 /* Override any GCC internal prototype to avoid an error.
13069 Use char because int might match the return type of a GCC
13070 builtin and then its argument prototype would still apply. */
13071 #ifdef __cplusplus
13072 extern "C"
13073 #endif
13074 char socket ();
13075 int
13076 main ()
13077 {
13078 return socket ();
13079 ;
13080 return 0;
13081 }
13082 _ACEOF
13083 for ac_lib in '' socket; do
13084 if test -z "$ac_lib"; then
13085 ac_res="none required"
13086 else
13087 ac_res=-l$ac_lib
13088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13089 fi
13090 if ac_fn_c_try_link "$LINENO"; then :
13091 ac_cv_search_socket=$ac_res
13092 fi
13093 rm -f core conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext
13095 if ${ac_cv_search_socket+:} false; then :
13096 break
13097 fi
13098 done
13099 if ${ac_cv_search_socket+:} false; then :
13100
13101 else
13102 ac_cv_search_socket=no
13103 fi
13104 rm conftest.$ac_ext
13105 LIBS=$ac_func_search_save_LIBS
13106 fi
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13108 $as_echo "$ac_cv_search_socket" >&6; }
13109 ac_res=$ac_cv_search_socket
13110 if test "$ac_res" != no; then :
13111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13112
13113 else
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
13115 $as_echo_n "checking for socket in -lnsl... " >&6; }
13116 if ${ac_cv_lib_nsl_socket+:} false; then :
13117 $as_echo_n "(cached) " >&6
13118 else
13119 ac_check_lib_save_LIBS=$LIBS
13120 LIBS="-lnsl -lsocket $LIBS"
13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122 /* end confdefs.h. */
13123
13124 /* Override any GCC internal prototype to avoid an error.
13125 Use char because int might match the return type of a GCC
13126 builtin and then its argument prototype would still apply. */
13127 #ifdef __cplusplus
13128 extern "C"
13129 #endif
13130 char socket ();
13131 int
13132 main ()
13133 {
13134 return socket ();
13135 ;
13136 return 0;
13137 }
13138 _ACEOF
13139 if ac_fn_c_try_link "$LINENO"; then :
13140 ac_cv_lib_nsl_socket=yes
13141 else
13142 ac_cv_lib_nsl_socket=no
13143 fi
13144 rm -f core conftest.err conftest.$ac_objext \
13145 conftest$ac_exeext conftest.$ac_ext
13146 LIBS=$ac_check_lib_save_LIBS
13147 fi
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
13149 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
13150 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
13151 LIBS="-lnsl -lsocket $LIBS"
13152 fi
13153
13154 fi
13155
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13157 $as_echo_n "checking for library containing crypt... " >&6; }
13158 if ${ac_cv_search_crypt+:} false; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 ac_func_search_save_LIBS=$LIBS
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13164
13165 /* Override any GCC internal prototype to avoid an error.
13166 Use char because int might match the return type of a GCC
13167 builtin and then its argument prototype would still apply. */
13168 #ifdef __cplusplus
13169 extern "C"
13170 #endif
13171 char crypt ();
13172 int
13173 main ()
13174 {
13175 return crypt ();
13176 ;
13177 return 0;
13178 }
13179 _ACEOF
13180 for ac_lib in '' crypt; do
13181 if test -z "$ac_lib"; then
13182 ac_res="none required"
13183 else
13184 ac_res=-l$ac_lib
13185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13186 fi
13187 if ac_fn_c_try_link "$LINENO"; then :
13188 ac_cv_search_crypt=$ac_res
13189 fi
13190 rm -f core conftest.err conftest.$ac_objext \
13191 conftest$ac_exeext
13192 if ${ac_cv_search_crypt+:} false; then :
13193 break
13194 fi
13195 done
13196 if ${ac_cv_search_crypt+:} false; then :
13197
13198 else
13199 ac_cv_search_crypt=no
13200 fi
13201 rm conftest.$ac_ext
13202 LIBS=$ac_func_search_save_LIBS
13203 fi
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13205 $as_echo "$ac_cv_search_crypt" >&6; }
13206 ac_res=$ac_cv_search_crypt
13207 if test "$ac_res" != no; then :
13208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13209
13210 fi
13211
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
13213 $as_echo_n "checking for library containing roken_concat... " >&6; }
13214 if ${ac_cv_search_roken_concat+:} false; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217 ac_func_search_save_LIBS=$LIBS
13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13219 /* end confdefs.h. */
13220
13221 /* Override any GCC internal prototype to avoid an error.
13222 Use char because int might match the return type of a GCC
13223 builtin and then its argument prototype would still apply. */
13224 #ifdef __cplusplus
13225 extern "C"
13226 #endif
13227 char roken_concat ();
13228 int
13229 main ()
13230 {
13231 return roken_concat ();
13232 ;
13233 return 0;
13234 }
13235 _ACEOF
13236 for ac_lib in '' roken; do
13237 if test -z "$ac_lib"; then
13238 ac_res="none required"
13239 else
13240 ac_res=-l$ac_lib
13241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13242 fi
13243 if ac_fn_c_try_link "$LINENO"; then :
13244 ac_cv_search_roken_concat=$ac_res
13245 fi
13246 rm -f core conftest.err conftest.$ac_objext \
13247 conftest$ac_exeext
13248 if ${ac_cv_search_roken_concat+:} false; then :
13249 break
13250 fi
13251 done
13252 if ${ac_cv_search_roken_concat+:} false; then :
13253
13254 else
13255 ac_cv_search_roken_concat=no
13256 fi
13257 rm conftest.$ac_ext
13258 LIBS=$ac_func_search_save_LIBS
13259 fi
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
13261 $as_echo "$ac_cv_search_roken_concat" >&6; }
13262 ac_res=$ac_cv_search_roken_concat
13263 if test "$ac_res" != no; then :
13264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13265
13266 fi
13267
13268 rra_krb5_extra="$LIBS"
13269 LIBS="$rra_krb5_save_LIBS"
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13271 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13272 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 ac_check_lib_save_LIBS=$LIBS
13276 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279
13280 /* Override any GCC internal prototype to avoid an error.
13281 Use char because int might match the return type of a GCC
13282 builtin and then its argument prototype would still apply. */
13283 #ifdef __cplusplus
13284 extern "C"
13285 #endif
13286 char krb5_init_context ();
13287 int
13288 main ()
13289 {
13290 return krb5_init_context ();
13291 ;
13292 return 0;
13293 }
13294 _ACEOF
13295 if ac_fn_c_try_link "$LINENO"; then :
13296 ac_cv_lib_krb5_krb5_init_context=yes
13297 else
13298 ac_cv_lib_krb5_krb5_init_context=no
13299 fi
13300 rm -f core conftest.err conftest.$ac_objext \
13301 conftest$ac_exeext conftest.$ac_ext
13302 LIBS=$ac_check_lib_save_LIBS
13303 fi
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13305 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13306 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
13307 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
13308 else
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
13310 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
13311 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
13312 $as_echo_n "(cached) " >&6
13313 else
13314 ac_check_lib_save_LIBS=$LIBS
13315 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13318
13319 /* Override any GCC internal prototype to avoid an error.
13320 Use char because int might match the return type of a GCC
13321 builtin and then its argument prototype would still apply. */
13322 #ifdef __cplusplus
13323 extern "C"
13324 #endif
13325 char krb5int_getspecific ();
13326 int
13327 main ()
13328 {
13329 return krb5int_getspecific ();
13330 ;
13331 return 0;
13332 }
13333 _ACEOF
13334 if ac_fn_c_try_link "$LINENO"; then :
13335 ac_cv_lib_krb5support_krb5int_getspecific=yes
13336 else
13337 ac_cv_lib_krb5support_krb5int_getspecific=no
13338 fi
13339 rm -f core conftest.err conftest.$ac_objext \
13340 conftest$ac_exeext conftest.$ac_ext
13341 LIBS=$ac_check_lib_save_LIBS
13342 fi
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
13344 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
13345 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
13346 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
13347 else
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
13349 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
13350 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
13351 $as_echo_n "(cached) " >&6
13352 else
13353 ac_check_lib_save_LIBS=$LIBS
13354 LIBS="-lpthreads $LIBS"
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13357
13358 /* Override any GCC internal prototype to avoid an error.
13359 Use char because int might match the return type of a GCC
13360 builtin and then its argument prototype would still apply. */
13361 #ifdef __cplusplus
13362 extern "C"
13363 #endif
13364 char pthread_setspecific ();
13365 int
13366 main ()
13367 {
13368 return pthread_setspecific ();
13369 ;
13370 return 0;
13371 }
13372 _ACEOF
13373 if ac_fn_c_try_link "$LINENO"; then :
13374 ac_cv_lib_pthreads_pthread_setspecific=yes
13375 else
13376 ac_cv_lib_pthreads_pthread_setspecific=no
13377 fi
13378 rm -f core conftest.err conftest.$ac_objext \
13379 conftest$ac_exeext conftest.$ac_ext
13380 LIBS=$ac_check_lib_save_LIBS
13381 fi
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
13383 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
13384 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
13385 rra_krb5_pthread="-lpthreads"
13386 else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
13388 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
13389 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 ac_check_lib_save_LIBS=$LIBS
13393 LIBS="-lpthread $LIBS"
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13396
13397 /* Override any GCC internal prototype to avoid an error.
13398 Use char because int might match the return type of a GCC
13399 builtin and then its argument prototype would still apply. */
13400 #ifdef __cplusplus
13401 extern "C"
13402 #endif
13403 char pthread_setspecific ();
13404 int
13405 main ()
13406 {
13407 return pthread_setspecific ();
13408 ;
13409 return 0;
13410 }
13411 _ACEOF
13412 if ac_fn_c_try_link "$LINENO"; then :
13413 ac_cv_lib_pthread_pthread_setspecific=yes
13414 else
13415 ac_cv_lib_pthread_pthread_setspecific=no
13416 fi
13417 rm -f core conftest.err conftest.$ac_objext \
13418 conftest$ac_exeext conftest.$ac_ext
13419 LIBS=$ac_check_lib_save_LIBS
13420 fi
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
13422 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
13423 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
13424 rra_krb5_pthread="-lpthread"
13425 fi
13426
13427 fi
13428
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
13430 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
13431 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
13432 $as_echo_n "(cached) " >&6
13433 else
13434 ac_check_lib_save_LIBS=$LIBS
13435 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13438
13439 /* Override any GCC internal prototype to avoid an error.
13440 Use char because int might match the return type of a GCC
13441 builtin and then its argument prototype would still apply. */
13442 #ifdef __cplusplus
13443 extern "C"
13444 #endif
13445 char krb5int_setspecific ();
13446 int
13447 main ()
13448 {
13449 return krb5int_setspecific ();
13450 ;
13451 return 0;
13452 }
13453 _ACEOF
13454 if ac_fn_c_try_link "$LINENO"; then :
13455 ac_cv_lib_krb5support_krb5int_setspecific=yes
13456 else
13457 ac_cv_lib_krb5support_krb5int_setspecific=no
13458 fi
13459 rm -f core conftest.err conftest.$ac_objext \
13460 conftest$ac_exeext conftest.$ac_ext
13461 LIBS=$ac_check_lib_save_LIBS
13462 fi
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
13464 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
13465 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
13466 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
13467 fi
13468
13469 fi
13470
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
13472 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
13473 if ${ac_cv_lib_com_err_error_message+:} false; then :
13474 $as_echo_n "(cached) " >&6
13475 else
13476 ac_check_lib_save_LIBS=$LIBS
13477 LIBS="-lcom_err $rra_krb5_extra $LIBS"
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13480
13481 /* Override any GCC internal prototype to avoid an error.
13482 Use char because int might match the return type of a GCC
13483 builtin and then its argument prototype would still apply. */
13484 #ifdef __cplusplus
13485 extern "C"
13486 #endif
13487 char error_message ();
13488 int
13489 main ()
13490 {
13491 return error_message ();
13492 ;
13493 return 0;
13494 }
13495 _ACEOF
13496 if ac_fn_c_try_link "$LINENO"; then :
13497 ac_cv_lib_com_err_error_message=yes
13498 else
13499 ac_cv_lib_com_err_error_message=no
13500 fi
13501 rm -f core conftest.err conftest.$ac_objext \
13502 conftest$ac_exeext conftest.$ac_ext
13503 LIBS=$ac_check_lib_save_LIBS
13504 fi
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
13506 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
13507 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
13508 rra_krb5_extra="-lcom_err $rra_krb5_extra"
13509 fi
13510
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
13512 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
13513 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
13514 $as_echo_n "(cached) " >&6
13515 else
13516 ac_check_lib_save_LIBS=$LIBS
13517 LIBS="-lksvc $rra_krb5_extra $LIBS"
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13520
13521 /* Override any GCC internal prototype to avoid an error.
13522 Use char because int might match the return type of a GCC
13523 builtin and then its argument prototype would still apply. */
13524 #ifdef __cplusplus
13525 extern "C"
13526 #endif
13527 char krb5_svc_get_msg ();
13528 int
13529 main ()
13530 {
13531 return krb5_svc_get_msg ();
13532 ;
13533 return 0;
13534 }
13535 _ACEOF
13536 if ac_fn_c_try_link "$LINENO"; then :
13537 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
13538 else
13539 ac_cv_lib_ksvc_krb5_svc_get_msg=no
13540 fi
13541 rm -f core conftest.err conftest.$ac_objext \
13542 conftest$ac_exeext conftest.$ac_ext
13543 LIBS=$ac_check_lib_save_LIBS
13544 fi
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
13546 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
13547 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
13548 rra_krb5_extra="-lksvc $rra_krb5_extra"
13549 fi
13550
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
13552 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
13553 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
13554 $as_echo_n "(cached) " >&6
13555 else
13556 ac_check_lib_save_LIBS=$LIBS
13557 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h. */
13560
13561 /* Override any GCC internal prototype to avoid an error.
13562 Use char because int might match the return type of a GCC
13563 builtin and then its argument prototype would still apply. */
13564 #ifdef __cplusplus
13565 extern "C"
13566 #endif
13567 char krb5int_hash_md5 ();
13568 int
13569 main ()
13570 {
13571 return krb5int_hash_md5 ();
13572 ;
13573 return 0;
13574 }
13575 _ACEOF
13576 if ac_fn_c_try_link "$LINENO"; then :
13577 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
13578 else
13579 ac_cv_lib_k5crypto_krb5int_hash_md5=no
13580 fi
13581 rm -f core conftest.err conftest.$ac_objext \
13582 conftest$ac_exeext conftest.$ac_ext
13583 LIBS=$ac_check_lib_save_LIBS
13584 fi
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
13586 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
13587 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
13588 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
13589 fi
13590
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
13592 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
13593 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
13594 $as_echo_n "(cached) " >&6
13595 else
13596 ac_check_lib_save_LIBS=$LIBS
13597 LIBS="-lk5profile $rra_krb5_extra $LIBS"
13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h. */
13600
13601 /* Override any GCC internal prototype to avoid an error.
13602 Use char because int might match the return type of a GCC
13603 builtin and then its argument prototype would still apply. */
13604 #ifdef __cplusplus
13605 extern "C"
13606 #endif
13607 char profile_get_values ();
13608 int
13609 main ()
13610 {
13611 return profile_get_values ();
13612 ;
13613 return 0;
13614 }
13615 _ACEOF
13616 if ac_fn_c_try_link "$LINENO"; then :
13617 ac_cv_lib_k5profile_profile_get_values=yes
13618 else
13619 ac_cv_lib_k5profile_profile_get_values=no
13620 fi
13621 rm -f core conftest.err conftest.$ac_objext \
13622 conftest$ac_exeext conftest.$ac_ext
13623 LIBS=$ac_check_lib_save_LIBS
13624 fi
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
13626 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
13627 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
13628 rra_krb5_extra="-lk5profile $rra_krb5_extra"
13629 fi
13630
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
13632 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
13633 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
13634 $as_echo_n "(cached) " >&6
13635 else
13636 ac_check_lib_save_LIBS=$LIBS
13637 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13639 /* end confdefs.h. */
13640
13641 /* Override any GCC internal prototype to avoid an error.
13642 Use char because int might match the return type of a GCC
13643 builtin and then its argument prototype would still apply. */
13644 #ifdef __cplusplus
13645 extern "C"
13646 #endif
13647 char krb5_cc_default ();
13648 int
13649 main ()
13650 {
13651 return krb5_cc_default ();
13652 ;
13653 return 0;
13654 }
13655 _ACEOF
13656 if ac_fn_c_try_link "$LINENO"; then :
13657 ac_cv_lib_krb5_krb5_cc_default=yes
13658 else
13659 ac_cv_lib_krb5_krb5_cc_default=no
13660 fi
13661 rm -f core conftest.err conftest.$ac_objext \
13662 conftest$ac_exeext conftest.$ac_ext
13663 LIBS=$ac_check_lib_save_LIBS
13664 fi
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
13666 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
13667 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
13668 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
13669 else
13670 if test x"true" = xtrue; then :
13671 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
13672 fi
13673 fi
13674
13675 fi
13676
13677 LIBS="$KRB5_LIBS $LIBS"
13678 if test x"$rra_krb5_incroot" = x; then :
13679 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
13680 do :
13681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13682 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13683 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13684 cat >>confdefs.h <<_ACEOF
13685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13686 _ACEOF
13687
13688 fi
13689
13690 done
13691
13692 else
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
13694 $as_echo_n "checking for krb5.h... " >&6; }
13695 if test -f "${rra_krb5_incroot}/krb5.h"; then :
13696
13697 cat >>confdefs.h <<_ACEOF
13698 #define HAVE_KRB5_H 1
13699 _ACEOF
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13702 $as_echo "yes" >&6; }
13703 else
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13705 $as_echo "no" >&6; }
13706 fi
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
13708 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
13709 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
13710
13711 cat >>confdefs.h <<_ACEOF
13712 #define HAVE_KERBEROSV5_KRB5_H 1
13713 _ACEOF
13714
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13716 $as_echo "yes" >&6; }
13717 else
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719 $as_echo "no" >&6; }
13720 fi
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
13722 $as_echo_n "checking for krb5/krb5.h... " >&6; }
13723 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
13724
13725 cat >>confdefs.h <<_ACEOF
13726 #define HAVE_KRB5_KRB5_H 1
13727 _ACEOF
13728
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13730 $as_echo "yes" >&6; }
13731 else
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13733 $as_echo "no" >&6; }
13734 fi
13735 fi
13736 for ac_func in krb5_get_error_message
13737 do :
13738 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
13739 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
13740 cat >>confdefs.h <<_ACEOF
13741 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
13742 _ACEOF
13743 for ac_func in krb5_free_error_message
13744 do :
13745 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
13746 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
13747 cat >>confdefs.h <<_ACEOF
13748 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
13749 _ACEOF
13750
13751 fi
13752 done
13753
13754 else
13755 for ac_func in krb5_get_error_string
13756 do :
13757 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
13758 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
13759 cat >>confdefs.h <<_ACEOF
13760 #define HAVE_KRB5_GET_ERROR_STRING 1
13761 _ACEOF
13762
13763 else
13764 for ac_func in krb5_get_err_txt
13765 do :
13766 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
13767 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
13768 cat >>confdefs.h <<_ACEOF
13769 #define HAVE_KRB5_GET_ERR_TXT 1
13770 _ACEOF
13771
13772 else
13773 for ac_func in krb5_svc_get_msg
13774 do :
13775 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
13776 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
13777 cat >>confdefs.h <<_ACEOF
13778 #define HAVE_KRB5_SVC_GET_MSG 1
13779 _ACEOF
13780 for ac_header in ibm_svc/krb5_svc.h
13781 do :
13782 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
13783 #if HAVE_KRB5_H
13784 # include <krb5.h>
13785 #elif HAVE_KERBEROSV5_KRB5_H
13786 # include <kerberosv5/krb5.h>
13787 #else
13788 # include <krb5/krb5.h>
13789 #endif
13790
13791 "
13792 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
13793 cat >>confdefs.h <<_ACEOF
13794 #define HAVE_IBM_SVC_KRB5_SVC_H 1
13795 _ACEOF
13796
13797 fi
13798
13799 done
13800
13801 else
13802 if test x"$rra_krb5_incroot" = x; then :
13803 for ac_header in et/com_err.h kerberosv5/com_err.h
13804 do :
13805 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13806 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13807 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13808 cat >>confdefs.h <<_ACEOF
13809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13810 _ACEOF
13811
13812 fi
13813
13814 done
13815
13816 else
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
13818 $as_echo_n "checking for et/com_err.h... " >&6; }
13819 if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
13820
13821 cat >>confdefs.h <<_ACEOF
13822 #define HAVE_ET_COM_ERR_H 1
13823 _ACEOF
13824
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13826 $as_echo "yes" >&6; }
13827 else
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13829 $as_echo "no" >&6; }
13830 fi
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
13832 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
13833 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
13834
13835 cat >>confdefs.h <<_ACEOF
13836 #define HAVE_KERBEROSV5_COM_ERR_H 1
13837 _ACEOF
13838
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13840 $as_echo "yes" >&6; }
13841 else
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13844 fi
13845 fi
13846 fi
13847 done
13848
13849 fi
13850 done
13851
13852 fi
13853 done
13854
13855 fi
13856 done
13857
13858 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
13859 LDFLAGS="$rra_krb5_save_LDFLAGS"
13860 LIBS="$rra_krb5_save_LIBS"
13861 fi
13862
13863 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
13864 rra_krb5_save_LDFLAGS="$LDFLAGS"
13865 rra_krb5_save_LIBS="$LIBS"
13866 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
13867 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
13868 LIBS="$KRB5_LIBS $LIBS"
13869 if test x"$rra_krb5_incroot" = x; then :
13870 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
13871 do :
13872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13873 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13874 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13875 cat >>confdefs.h <<_ACEOF
13876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13877 _ACEOF
13878
13879 fi
13880
13881 done
13882
13883 else
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
13885 $as_echo_n "checking for krb5.h... " >&6; }
13886 if test -f "${rra_krb5_incroot}/krb5.h"; then :
13887
13888 cat >>confdefs.h <<_ACEOF
13889 #define HAVE_KRB5_H 1
13890 _ACEOF
13891
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13893 $as_echo "yes" >&6; }
13894 else
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13896 $as_echo "no" >&6; }
13897 fi
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
13899 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
13900 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
13901
13902 cat >>confdefs.h <<_ACEOF
13903 #define HAVE_KERBEROSV5_KRB5_H 1
13904 _ACEOF
13905
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13907 $as_echo "yes" >&6; }
13908 else
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13910 $as_echo "no" >&6; }
13911 fi
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
13913 $as_echo_n "checking for krb5/krb5.h... " >&6; }
13914 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
13915
13916 cat >>confdefs.h <<_ACEOF
13917 #define HAVE_KRB5_KRB5_H 1
13918 _ACEOF
13919
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13921 $as_echo "yes" >&6; }
13922 else
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13924 $as_echo "no" >&6; }
13925 fi
13926 fi
13927 for ac_func in krb5_get_error_message
13928 do :
13929 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
13930 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
13931 cat >>confdefs.h <<_ACEOF
13932 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
13933 _ACEOF
13934 for ac_func in krb5_free_error_message
13935 do :
13936 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
13937 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
13938 cat >>confdefs.h <<_ACEOF
13939 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
13940 _ACEOF
13941
13942 fi
13943 done
13944
13945 else
13946 for ac_func in krb5_get_error_string
13947 do :
13948 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
13949 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
13950 cat >>confdefs.h <<_ACEOF
13951 #define HAVE_KRB5_GET_ERROR_STRING 1
13952 _ACEOF
13953
13954 else
13955 for ac_func in krb5_get_err_txt
13956 do :
13957 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
13958 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
13959 cat >>confdefs.h <<_ACEOF
13960 #define HAVE_KRB5_GET_ERR_TXT 1
13961 _ACEOF
13962
13963 else
13964 for ac_func in krb5_svc_get_msg
13965 do :
13966 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
13967 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
13968 cat >>confdefs.h <<_ACEOF
13969 #define HAVE_KRB5_SVC_GET_MSG 1
13970 _ACEOF
13971 for ac_header in ibm_svc/krb5_svc.h
13972 do :
13973 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
13974 #if HAVE_KRB5_H
13975 # include <krb5.h>
13976 #elif HAVE_KERBEROSV5_KRB5_H
13977 # include <kerberosv5/krb5.h>
13978 #else
13979 # include <krb5/krb5.h>
13980 #endif
13981
13982 "
13983 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
13984 cat >>confdefs.h <<_ACEOF
13985 #define HAVE_IBM_SVC_KRB5_SVC_H 1
13986 _ACEOF
13987
13988 fi
13989
13990 done
13991
13992 else
13993 if test x"$rra_krb5_incroot" = x; then :
13994 for ac_header in et/com_err.h kerberosv5/com_err.h
13995 do :
13996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13997 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13998 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13999 cat >>confdefs.h <<_ACEOF
14000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14001 _ACEOF
14002
14003 fi
14004
14005 done
14006
14007 else
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
14009 $as_echo_n "checking for et/com_err.h... " >&6; }
14010 if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
14011
14012 cat >>confdefs.h <<_ACEOF
14013 #define HAVE_ET_COM_ERR_H 1
14014 _ACEOF
14015
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14017 $as_echo "yes" >&6; }
14018 else
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14020 $as_echo "no" >&6; }
14021 fi
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
14023 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
14024 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
14025
14026 cat >>confdefs.h <<_ACEOF
14027 #define HAVE_KERBEROSV5_COM_ERR_H 1
14028 _ACEOF
14029
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14031 $as_echo "yes" >&6; }
14032 else
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14034 $as_echo "no" >&6; }
14035 fi
14036 fi
14037 fi
14038 done
14039
14040 fi
14041 done
14042
14043 fi
14044 done
14045
14046 fi
14047 done
14048
14049 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
14050 LDFLAGS="$rra_krb5_save_LDFLAGS"
14051 LIBS="$rra_krb5_save_LIBS"
14052 else
14053 if test x"$rra_krb5_libdir" != x; then :
14054 KRB5_LDFLAGS="-L$rra_krb5_libdir"
14055 else
14056 if test x"$rra_krb5_root" != x; then :
14057
14058 if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
14059 if test x"" = x; then :
14060 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
14061 else
14062 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
14063 fi
14064 else
14065 if test x"" = x; then :
14066 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
14067 else
14068 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
14069 fi
14070 fi
14071 KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
14072 fi
14073 fi
14074 if test x"$rra_krb5_includedir" != x; then :
14075 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
14076 else
14077 if test x"$rra_krb5_root" != x; then :
14078 if test x"$rra_krb5_root" != x/usr; then :
14079 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
14080 fi
14081 fi
14082 fi
14083 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
14084 rra_krb5_save_LDFLAGS="$LDFLAGS"
14085 rra_krb5_save_LIBS="$LIBS"
14086 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
14087 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
14088 LIBS="$KRB5_LIBS $LIBS"
14089 rra_krb5_extra=
14090 LIBS=
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
14092 $as_echo_n "checking for library containing res_search... " >&6; }
14093 if ${ac_cv_search_res_search+:} false; then :
14094 $as_echo_n "(cached) " >&6
14095 else
14096 ac_func_search_save_LIBS=$LIBS
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14099
14100 /* Override any GCC internal prototype to avoid an error.
14101 Use char because int might match the return type of a GCC
14102 builtin and then its argument prototype would still apply. */
14103 #ifdef __cplusplus
14104 extern "C"
14105 #endif
14106 char res_search ();
14107 int
14108 main ()
14109 {
14110 return res_search ();
14111 ;
14112 return 0;
14113 }
14114 _ACEOF
14115 for ac_lib in '' resolv; do
14116 if test -z "$ac_lib"; then
14117 ac_res="none required"
14118 else
14119 ac_res=-l$ac_lib
14120 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14121 fi
14122 if ac_fn_c_try_link "$LINENO"; then :
14123 ac_cv_search_res_search=$ac_res
14124 fi
14125 rm -f core conftest.err conftest.$ac_objext \
14126 conftest$ac_exeext
14127 if ${ac_cv_search_res_search+:} false; then :
14128 break
14129 fi
14130 done
14131 if ${ac_cv_search_res_search+:} false; then :
14132
14133 else
14134 ac_cv_search_res_search=no
14135 fi
14136 rm conftest.$ac_ext
14137 LIBS=$ac_func_search_save_LIBS
14138 fi
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
14140 $as_echo "$ac_cv_search_res_search" >&6; }
14141 ac_res=$ac_cv_search_res_search
14142 if test "$ac_res" != no; then :
14143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14144
14145 else
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
14147 $as_echo_n "checking for library containing __res_search... " >&6; }
14148 if ${ac_cv_search___res_search+:} false; then :
14149 $as_echo_n "(cached) " >&6
14150 else
14151 ac_func_search_save_LIBS=$LIBS
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14154
14155 /* Override any GCC internal prototype to avoid an error.
14156 Use char because int might match the return type of a GCC
14157 builtin and then its argument prototype would still apply. */
14158 #ifdef __cplusplus
14159 extern "C"
14160 #endif
14161 char __res_search ();
14162 int
14163 main ()
14164 {
14165 return __res_search ();
14166 ;
14167 return 0;
14168 }
14169 _ACEOF
14170 for ac_lib in '' resolv; do
14171 if test -z "$ac_lib"; then
14172 ac_res="none required"
14173 else
14174 ac_res=-l$ac_lib
14175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14176 fi
14177 if ac_fn_c_try_link "$LINENO"; then :
14178 ac_cv_search___res_search=$ac_res
14179 fi
14180 rm -f core conftest.err conftest.$ac_objext \
14181 conftest$ac_exeext
14182 if ${ac_cv_search___res_search+:} false; then :
14183 break
14184 fi
14185 done
14186 if ${ac_cv_search___res_search+:} false; then :
14187
14188 else
14189 ac_cv_search___res_search=no
14190 fi
14191 rm conftest.$ac_ext
14192 LIBS=$ac_func_search_save_LIBS
14193 fi
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
14195 $as_echo "$ac_cv_search___res_search" >&6; }
14196 ac_res=$ac_cv_search___res_search
14197 if test "$ac_res" != no; then :
14198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14199
14200 fi
14201
14202 fi
14203
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14205 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14206 if ${ac_cv_search_gethostbyname+:} false; then :
14207 $as_echo_n "(cached) " >&6
14208 else
14209 ac_func_search_save_LIBS=$LIBS
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14212
14213 /* Override any GCC internal prototype to avoid an error.
14214 Use char because int might match the return type of a GCC
14215 builtin and then its argument prototype would still apply. */
14216 #ifdef __cplusplus
14217 extern "C"
14218 #endif
14219 char gethostbyname ();
14220 int
14221 main ()
14222 {
14223 return gethostbyname ();
14224 ;
14225 return 0;
14226 }
14227 _ACEOF
14228 for ac_lib in '' nsl; do
14229 if test -z "$ac_lib"; then
14230 ac_res="none required"
14231 else
14232 ac_res=-l$ac_lib
14233 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14234 fi
14235 if ac_fn_c_try_link "$LINENO"; then :
14236 ac_cv_search_gethostbyname=$ac_res
14237 fi
14238 rm -f core conftest.err conftest.$ac_objext \
14239 conftest$ac_exeext
14240 if ${ac_cv_search_gethostbyname+:} false; then :
14241 break
14242 fi
14243 done
14244 if ${ac_cv_search_gethostbyname+:} false; then :
14245
14246 else
14247 ac_cv_search_gethostbyname=no
14248 fi
14249 rm conftest.$ac_ext
14250 LIBS=$ac_func_search_save_LIBS
14251 fi
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14253 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14254 ac_res=$ac_cv_search_gethostbyname
14255 if test "$ac_res" != no; then :
14256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14257
14258 fi
14259
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14261 $as_echo_n "checking for library containing socket... " >&6; }
14262 if ${ac_cv_search_socket+:} false; then :
14263 $as_echo_n "(cached) " >&6
14264 else
14265 ac_func_search_save_LIBS=$LIBS
14266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14267 /* end confdefs.h. */
14268
14269 /* Override any GCC internal prototype to avoid an error.
14270 Use char because int might match the return type of a GCC
14271 builtin and then its argument prototype would still apply. */
14272 #ifdef __cplusplus
14273 extern "C"
14274 #endif
14275 char socket ();
14276 int
14277 main ()
14278 {
14279 return socket ();
14280 ;
14281 return 0;
14282 }
14283 _ACEOF
14284 for ac_lib in '' socket; do
14285 if test -z "$ac_lib"; then
14286 ac_res="none required"
14287 else
14288 ac_res=-l$ac_lib
14289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14290 fi
14291 if ac_fn_c_try_link "$LINENO"; then :
14292 ac_cv_search_socket=$ac_res
14293 fi
14294 rm -f core conftest.err conftest.$ac_objext \
14295 conftest$ac_exeext
14296 if ${ac_cv_search_socket+:} false; then :
14297 break
14298 fi
14299 done
14300 if ${ac_cv_search_socket+:} false; then :
14301
14302 else
14303 ac_cv_search_socket=no
14304 fi
14305 rm conftest.$ac_ext
14306 LIBS=$ac_func_search_save_LIBS
14307 fi
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14309 $as_echo "$ac_cv_search_socket" >&6; }
14310 ac_res=$ac_cv_search_socket
14311 if test "$ac_res" != no; then :
14312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14313
14314 else
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
14316 $as_echo_n "checking for socket in -lnsl... " >&6; }
14317 if ${ac_cv_lib_nsl_socket+:} false; then :
14318 $as_echo_n "(cached) " >&6
14319 else
14320 ac_check_lib_save_LIBS=$LIBS
14321 LIBS="-lnsl -lsocket $LIBS"
14322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h. */
14324
14325 /* Override any GCC internal prototype to avoid an error.
14326 Use char because int might match the return type of a GCC
14327 builtin and then its argument prototype would still apply. */
14328 #ifdef __cplusplus
14329 extern "C"
14330 #endif
14331 char socket ();
14332 int
14333 main ()
14334 {
14335 return socket ();
14336 ;
14337 return 0;
14338 }
14339 _ACEOF
14340 if ac_fn_c_try_link "$LINENO"; then :
14341 ac_cv_lib_nsl_socket=yes
14342 else
14343 ac_cv_lib_nsl_socket=no
14344 fi
14345 rm -f core conftest.err conftest.$ac_objext \
14346 conftest$ac_exeext conftest.$ac_ext
14347 LIBS=$ac_check_lib_save_LIBS
14348 fi
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
14350 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
14351 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
14352 LIBS="-lnsl -lsocket $LIBS"
14353 fi
14354
14355 fi
14356
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14358 $as_echo_n "checking for library containing crypt... " >&6; }
14359 if ${ac_cv_search_crypt+:} false; then :
14360 $as_echo_n "(cached) " >&6
14361 else
14362 ac_func_search_save_LIBS=$LIBS
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14365
14366 /* Override any GCC internal prototype to avoid an error.
14367 Use char because int might match the return type of a GCC
14368 builtin and then its argument prototype would still apply. */
14369 #ifdef __cplusplus
14370 extern "C"
14371 #endif
14372 char crypt ();
14373 int
14374 main ()
14375 {
14376 return crypt ();
14377 ;
14378 return 0;
14379 }
14380 _ACEOF
14381 for ac_lib in '' crypt; do
14382 if test -z "$ac_lib"; then
14383 ac_res="none required"
14384 else
14385 ac_res=-l$ac_lib
14386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14387 fi
14388 if ac_fn_c_try_link "$LINENO"; then :
14389 ac_cv_search_crypt=$ac_res
14390 fi
14391 rm -f core conftest.err conftest.$ac_objext \
14392 conftest$ac_exeext
14393 if ${ac_cv_search_crypt+:} false; then :
14394 break
14395 fi
14396 done
14397 if ${ac_cv_search_crypt+:} false; then :
14398
14399 else
14400 ac_cv_search_crypt=no
14401 fi
14402 rm conftest.$ac_ext
14403 LIBS=$ac_func_search_save_LIBS
14404 fi
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
14406 $as_echo "$ac_cv_search_crypt" >&6; }
14407 ac_res=$ac_cv_search_crypt
14408 if test "$ac_res" != no; then :
14409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14410
14411 fi
14412
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
14414 $as_echo_n "checking for library containing roken_concat... " >&6; }
14415 if ${ac_cv_search_roken_concat+:} false; then :
14416 $as_echo_n "(cached) " >&6
14417 else
14418 ac_func_search_save_LIBS=$LIBS
14419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420 /* end confdefs.h. */
14421
14422 /* Override any GCC internal prototype to avoid an error.
14423 Use char because int might match the return type of a GCC
14424 builtin and then its argument prototype would still apply. */
14425 #ifdef __cplusplus
14426 extern "C"
14427 #endif
14428 char roken_concat ();
14429 int
14430 main ()
14431 {
14432 return roken_concat ();
14433 ;
14434 return 0;
14435 }
14436 _ACEOF
14437 for ac_lib in '' roken; do
14438 if test -z "$ac_lib"; then
14439 ac_res="none required"
14440 else
14441 ac_res=-l$ac_lib
14442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14443 fi
14444 if ac_fn_c_try_link "$LINENO"; then :
14445 ac_cv_search_roken_concat=$ac_res
14446 fi
14447 rm -f core conftest.err conftest.$ac_objext \
14448 conftest$ac_exeext
14449 if ${ac_cv_search_roken_concat+:} false; then :
14450 break
14451 fi
14452 done
14453 if ${ac_cv_search_roken_concat+:} false; then :
14454
14455 else
14456 ac_cv_search_roken_concat=no
14457 fi
14458 rm conftest.$ac_ext
14459 LIBS=$ac_func_search_save_LIBS
14460 fi
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
14462 $as_echo "$ac_cv_search_roken_concat" >&6; }
14463 ac_res=$ac_cv_search_roken_concat
14464 if test "$ac_res" != no; then :
14465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14466
14467 fi
14468
14469 rra_krb5_extra="$LIBS"
14470 LIBS="$rra_krb5_save_LIBS"
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14472 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14473 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
14474 $as_echo_n "(cached) " >&6
14475 else
14476 ac_check_lib_save_LIBS=$LIBS
14477 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14480
14481 /* Override any GCC internal prototype to avoid an error.
14482 Use char because int might match the return type of a GCC
14483 builtin and then its argument prototype would still apply. */
14484 #ifdef __cplusplus
14485 extern "C"
14486 #endif
14487 char krb5_init_context ();
14488 int
14489 main ()
14490 {
14491 return krb5_init_context ();
14492 ;
14493 return 0;
14494 }
14495 _ACEOF
14496 if ac_fn_c_try_link "$LINENO"; then :
14497 ac_cv_lib_krb5_krb5_init_context=yes
14498 else
14499 ac_cv_lib_krb5_krb5_init_context=no
14500 fi
14501 rm -f core conftest.err conftest.$ac_objext \
14502 conftest$ac_exeext conftest.$ac_ext
14503 LIBS=$ac_check_lib_save_LIBS
14504 fi
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14506 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14507 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
14508 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
14509 else
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
14511 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
14512 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
14513 $as_echo_n "(cached) " >&6
14514 else
14515 ac_check_lib_save_LIBS=$LIBS
14516 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
14517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h. */
14519
14520 /* Override any GCC internal prototype to avoid an error.
14521 Use char because int might match the return type of a GCC
14522 builtin and then its argument prototype would still apply. */
14523 #ifdef __cplusplus
14524 extern "C"
14525 #endif
14526 char krb5int_getspecific ();
14527 int
14528 main ()
14529 {
14530 return krb5int_getspecific ();
14531 ;
14532 return 0;
14533 }
14534 _ACEOF
14535 if ac_fn_c_try_link "$LINENO"; then :
14536 ac_cv_lib_krb5support_krb5int_getspecific=yes
14537 else
14538 ac_cv_lib_krb5support_krb5int_getspecific=no
14539 fi
14540 rm -f core conftest.err conftest.$ac_objext \
14541 conftest$ac_exeext conftest.$ac_ext
14542 LIBS=$ac_check_lib_save_LIBS
14543 fi
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
14545 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
14546 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
14547 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
14548 else
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
14550 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
14551 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14554 ac_check_lib_save_LIBS=$LIBS
14555 LIBS="-lpthreads $LIBS"
14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14557 /* end confdefs.h. */
14558
14559 /* Override any GCC internal prototype to avoid an error.
14560 Use char because int might match the return type of a GCC
14561 builtin and then its argument prototype would still apply. */
14562 #ifdef __cplusplus
14563 extern "C"
14564 #endif
14565 char pthread_setspecific ();
14566 int
14567 main ()
14568 {
14569 return pthread_setspecific ();
14570 ;
14571 return 0;
14572 }
14573 _ACEOF
14574 if ac_fn_c_try_link "$LINENO"; then :
14575 ac_cv_lib_pthreads_pthread_setspecific=yes
14576 else
14577 ac_cv_lib_pthreads_pthread_setspecific=no
14578 fi
14579 rm -f core conftest.err conftest.$ac_objext \
14580 conftest$ac_exeext conftest.$ac_ext
14581 LIBS=$ac_check_lib_save_LIBS
14582 fi
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
14584 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
14585 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
14586 rra_krb5_pthread="-lpthreads"
14587 else
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
14589 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
14590 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
14591 $as_echo_n "(cached) " >&6
14592 else
14593 ac_check_lib_save_LIBS=$LIBS
14594 LIBS="-lpthread $LIBS"
14595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14596 /* end confdefs.h. */
14597
14598 /* Override any GCC internal prototype to avoid an error.
14599 Use char because int might match the return type of a GCC
14600 builtin and then its argument prototype would still apply. */
14601 #ifdef __cplusplus
14602 extern "C"
14603 #endif
14604 char pthread_setspecific ();
14605 int
14606 main ()
14607 {
14608 return pthread_setspecific ();
14609 ;
14610 return 0;
14611 }
14612 _ACEOF
14613 if ac_fn_c_try_link "$LINENO"; then :
14614 ac_cv_lib_pthread_pthread_setspecific=yes
14615 else
14616 ac_cv_lib_pthread_pthread_setspecific=no
14617 fi
14618 rm -f core conftest.err conftest.$ac_objext \
14619 conftest$ac_exeext conftest.$ac_ext
14620 LIBS=$ac_check_lib_save_LIBS
14621 fi
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
14623 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
14624 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
14625 rra_krb5_pthread="-lpthread"
14626 fi
14627
14628 fi
14629
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
14631 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
14632 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
14633 $as_echo_n "(cached) " >&6
14634 else
14635 ac_check_lib_save_LIBS=$LIBS
14636 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14639
14640 /* Override any GCC internal prototype to avoid an error.
14641 Use char because int might match the return type of a GCC
14642 builtin and then its argument prototype would still apply. */
14643 #ifdef __cplusplus
14644 extern "C"
14645 #endif
14646 char krb5int_setspecific ();
14647 int
14648 main ()
14649 {
14650 return krb5int_setspecific ();
14651 ;
14652 return 0;
14653 }
14654 _ACEOF
14655 if ac_fn_c_try_link "$LINENO"; then :
14656 ac_cv_lib_krb5support_krb5int_setspecific=yes
14657 else
14658 ac_cv_lib_krb5support_krb5int_setspecific=no
14659 fi
14660 rm -f core conftest.err conftest.$ac_objext \
14661 conftest$ac_exeext conftest.$ac_ext
14662 LIBS=$ac_check_lib_save_LIBS
14663 fi
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
14665 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
14666 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
14667 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
14668 fi
14669
14670 fi
14671
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
14673 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
14674 if ${ac_cv_lib_com_err_error_message+:} false; then :
14675 $as_echo_n "(cached) " >&6
14676 else
14677 ac_check_lib_save_LIBS=$LIBS
14678 LIBS="-lcom_err $rra_krb5_extra $LIBS"
14679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h. */
14681
14682 /* Override any GCC internal prototype to avoid an error.
14683 Use char because int might match the return type of a GCC
14684 builtin and then its argument prototype would still apply. */
14685 #ifdef __cplusplus
14686 extern "C"
14687 #endif
14688 char error_message ();
14689 int
14690 main ()
14691 {
14692 return error_message ();
14693 ;
14694 return 0;
14695 }
14696 _ACEOF
14697 if ac_fn_c_try_link "$LINENO"; then :
14698 ac_cv_lib_com_err_error_message=yes
14699 else
14700 ac_cv_lib_com_err_error_message=no
14701 fi
14702 rm -f core conftest.err conftest.$ac_objext \
14703 conftest$ac_exeext conftest.$ac_ext
14704 LIBS=$ac_check_lib_save_LIBS
14705 fi
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
14707 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
14708 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
14709 rra_krb5_extra="-lcom_err $rra_krb5_extra"
14710 fi
14711
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
14713 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
14714 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
14715 $as_echo_n "(cached) " >&6
14716 else
14717 ac_check_lib_save_LIBS=$LIBS
14718 LIBS="-lksvc $rra_krb5_extra $LIBS"
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14721
14722 /* Override any GCC internal prototype to avoid an error.
14723 Use char because int might match the return type of a GCC
14724 builtin and then its argument prototype would still apply. */
14725 #ifdef __cplusplus
14726 extern "C"
14727 #endif
14728 char krb5_svc_get_msg ();
14729 int
14730 main ()
14731 {
14732 return krb5_svc_get_msg ();
14733 ;
14734 return 0;
14735 }
14736 _ACEOF
14737 if ac_fn_c_try_link "$LINENO"; then :
14738 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
14739 else
14740 ac_cv_lib_ksvc_krb5_svc_get_msg=no
14741 fi
14742 rm -f core conftest.err conftest.$ac_objext \
14743 conftest$ac_exeext conftest.$ac_ext
14744 LIBS=$ac_check_lib_save_LIBS
14745 fi
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
14747 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
14748 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
14749 rra_krb5_extra="-lksvc $rra_krb5_extra"
14750 fi
14751
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
14753 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
14754 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 ac_check_lib_save_LIBS=$LIBS
14758 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14761
14762 /* Override any GCC internal prototype to avoid an error.
14763 Use char because int might match the return type of a GCC
14764 builtin and then its argument prototype would still apply. */
14765 #ifdef __cplusplus
14766 extern "C"
14767 #endif
14768 char krb5int_hash_md5 ();
14769 int
14770 main ()
14771 {
14772 return krb5int_hash_md5 ();
14773 ;
14774 return 0;
14775 }
14776 _ACEOF
14777 if ac_fn_c_try_link "$LINENO"; then :
14778 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
14779 else
14780 ac_cv_lib_k5crypto_krb5int_hash_md5=no
14781 fi
14782 rm -f core conftest.err conftest.$ac_objext \
14783 conftest$ac_exeext conftest.$ac_ext
14784 LIBS=$ac_check_lib_save_LIBS
14785 fi
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
14787 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
14788 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
14789 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
14790 fi
14791
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
14793 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
14794 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
14795 $as_echo_n "(cached) " >&6
14796 else
14797 ac_check_lib_save_LIBS=$LIBS
14798 LIBS="-lk5profile $rra_krb5_extra $LIBS"
14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h. */
14801
14802 /* Override any GCC internal prototype to avoid an error.
14803 Use char because int might match the return type of a GCC
14804 builtin and then its argument prototype would still apply. */
14805 #ifdef __cplusplus
14806 extern "C"
14807 #endif
14808 char profile_get_values ();
14809 int
14810 main ()
14811 {
14812 return profile_get_values ();
14813 ;
14814 return 0;
14815 }
14816 _ACEOF
14817 if ac_fn_c_try_link "$LINENO"; then :
14818 ac_cv_lib_k5profile_profile_get_values=yes
14819 else
14820 ac_cv_lib_k5profile_profile_get_values=no
14821 fi
14822 rm -f core conftest.err conftest.$ac_objext \
14823 conftest$ac_exeext conftest.$ac_ext
14824 LIBS=$ac_check_lib_save_LIBS
14825 fi
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
14827 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
14828 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
14829 rra_krb5_extra="-lk5profile $rra_krb5_extra"
14830 fi
14831
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
14833 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
14834 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
14835 $as_echo_n "(cached) " >&6
14836 else
14837 ac_check_lib_save_LIBS=$LIBS
14838 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14841
14842 /* Override any GCC internal prototype to avoid an error.
14843 Use char because int might match the return type of a GCC
14844 builtin and then its argument prototype would still apply. */
14845 #ifdef __cplusplus
14846 extern "C"
14847 #endif
14848 char krb5_cc_default ();
14849 int
14850 main ()
14851 {
14852 return krb5_cc_default ();
14853 ;
14854 return 0;
14855 }
14856 _ACEOF
14857 if ac_fn_c_try_link "$LINENO"; then :
14858 ac_cv_lib_krb5_krb5_cc_default=yes
14859 else
14860 ac_cv_lib_krb5_krb5_cc_default=no
14861 fi
14862 rm -f core conftest.err conftest.$ac_objext \
14863 conftest$ac_exeext conftest.$ac_ext
14864 LIBS=$ac_check_lib_save_LIBS
14865 fi
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
14867 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
14868 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
14869 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
14870 else
14871 if test x"true" = xtrue; then :
14872 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
14873 fi
14874 fi
14875
14876 fi
14877
14878 LIBS="$KRB5_LIBS $LIBS"
14879 if test x"$rra_krb5_incroot" = x; then :
14880 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
14881 do :
14882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14883 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14884 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14885 cat >>confdefs.h <<_ACEOF
14886 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14887 _ACEOF
14888
14889 fi
14890
14891 done
14892
14893 else
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
14895 $as_echo_n "checking for krb5.h... " >&6; }
14896 if test -f "${rra_krb5_incroot}/krb5.h"; then :
14897
14898 cat >>confdefs.h <<_ACEOF
14899 #define HAVE_KRB5_H 1
14900 _ACEOF
14901
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14903 $as_echo "yes" >&6; }
14904 else
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14906 $as_echo "no" >&6; }
14907 fi
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
14909 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
14910 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
14911
14912 cat >>confdefs.h <<_ACEOF
14913 #define HAVE_KERBEROSV5_KRB5_H 1
14914 _ACEOF
14915
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14917 $as_echo "yes" >&6; }
14918 else
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14920 $as_echo "no" >&6; }
14921 fi
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
14923 $as_echo_n "checking for krb5/krb5.h... " >&6; }
14924 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
14925
14926 cat >>confdefs.h <<_ACEOF
14927 #define HAVE_KRB5_KRB5_H 1
14928 _ACEOF
14929
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14931 $as_echo "yes" >&6; }
14932 else
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14934 $as_echo "no" >&6; }
14935 fi
14936 fi
14937 for ac_func in krb5_get_error_message
14938 do :
14939 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
14940 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
14941 cat >>confdefs.h <<_ACEOF
14942 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
14943 _ACEOF
14944 for ac_func in krb5_free_error_message
14945 do :
14946 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
14947 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
14948 cat >>confdefs.h <<_ACEOF
14949 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
14950 _ACEOF
14951
14952 fi
14953 done
14954
14955 else
14956 for ac_func in krb5_get_error_string
14957 do :
14958 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
14959 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
14960 cat >>confdefs.h <<_ACEOF
14961 #define HAVE_KRB5_GET_ERROR_STRING 1
14962 _ACEOF
14963
14964 else
14965 for ac_func in krb5_get_err_txt
14966 do :
14967 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
14968 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
14969 cat >>confdefs.h <<_ACEOF
14970 #define HAVE_KRB5_GET_ERR_TXT 1
14971 _ACEOF
14972
14973 else
14974 for ac_func in krb5_svc_get_msg
14975 do :
14976 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
14977 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
14978 cat >>confdefs.h <<_ACEOF
14979 #define HAVE_KRB5_SVC_GET_MSG 1
14980 _ACEOF
14981 for ac_header in ibm_svc/krb5_svc.h
14982 do :
14983 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
14984 #if HAVE_KRB5_H
14985 # include <krb5.h>
14986 #elif HAVE_KERBEROSV5_KRB5_H
14987 # include <kerberosv5/krb5.h>
14988 #else
14989 # include <krb5/krb5.h>
14990 #endif
14991
14992 "
14993 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
14994 cat >>confdefs.h <<_ACEOF
14995 #define HAVE_IBM_SVC_KRB5_SVC_H 1
14996 _ACEOF
14997
14998 fi
14999
15000 done
15001
15002 else
15003 if test x"$rra_krb5_incroot" = x; then :
15004 for ac_header in et/com_err.h kerberosv5/com_err.h
15005 do :
15006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15007 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15009 cat >>confdefs.h <<_ACEOF
15010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15011 _ACEOF
15012
15013 fi
15014
15015 done
15016
15017 else
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
15019 $as_echo_n "checking for et/com_err.h... " >&6; }
15020 if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
15021
15022 cat >>confdefs.h <<_ACEOF
15023 #define HAVE_ET_COM_ERR_H 1
15024 _ACEOF
15025
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15027 $as_echo "yes" >&6; }
15028 else
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15030 $as_echo "no" >&6; }
15031 fi
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
15033 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
15034 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
15035
15036 cat >>confdefs.h <<_ACEOF
15037 #define HAVE_KERBEROSV5_COM_ERR_H 1
15038 _ACEOF
15039
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15041 $as_echo "yes" >&6; }
15042 else
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15044 $as_echo "no" >&6; }
15045 fi
15046 fi
15047 fi
15048 done
15049
15050 fi
15051 done
15052
15053 fi
15054 done
15055
15056 fi
15057 done
15058
15059 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
15060 LDFLAGS="$rra_krb5_save_LDFLAGS"
15061 LIBS="$rra_krb5_save_LIBS"
15062 fi
15063 else
15064 if test x"$rra_krb5_libdir" != x; then :
15065 KRB5_LDFLAGS="-L$rra_krb5_libdir"
15066 else
15067 if test x"$rra_krb5_root" != x; then :
15068
15069 if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
15070 if test x"" = x; then :
15071 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
15072 else
15073 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
15074 fi
15075 else
15076 if test x"" = x; then :
15077 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
15078 else
15079 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
15080 fi
15081 fi
15082 KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
15083 fi
15084 fi
15085 if test x"$rra_krb5_includedir" != x; then :
15086 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
15087 else
15088 if test x"$rra_krb5_root" != x; then :
15089 if test x"$rra_krb5_root" != x/usr; then :
15090 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
15091 fi
15092 fi
15093 fi
15094 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
15095 rra_krb5_save_LDFLAGS="$LDFLAGS"
15096 rra_krb5_save_LIBS="$LIBS"
15097 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
15098 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
15099 LIBS="$KRB5_LIBS $LIBS"
15100 rra_krb5_extra=
15101 LIBS=
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
15103 $as_echo_n "checking for library containing res_search... " >&6; }
15104 if ${ac_cv_search_res_search+:} false; then :
15105 $as_echo_n "(cached) " >&6
15106 else
15107 ac_func_search_save_LIBS=$LIBS
15108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15109 /* end confdefs.h. */
15110
15111 /* Override any GCC internal prototype to avoid an error.
15112 Use char because int might match the return type of a GCC
15113 builtin and then its argument prototype would still apply. */
15114 #ifdef __cplusplus
15115 extern "C"
15116 #endif
15117 char res_search ();
15118 int
15119 main ()
15120 {
15121 return res_search ();
15122 ;
15123 return 0;
15124 }
15125 _ACEOF
15126 for ac_lib in '' resolv; do
15127 if test -z "$ac_lib"; then
15128 ac_res="none required"
15129 else
15130 ac_res=-l$ac_lib
15131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15132 fi
15133 if ac_fn_c_try_link "$LINENO"; then :
15134 ac_cv_search_res_search=$ac_res
15135 fi
15136 rm -f core conftest.err conftest.$ac_objext \
15137 conftest$ac_exeext
15138 if ${ac_cv_search_res_search+:} false; then :
15139 break
15140 fi
15141 done
15142 if ${ac_cv_search_res_search+:} false; then :
15143
15144 else
15145 ac_cv_search_res_search=no
15146 fi
15147 rm conftest.$ac_ext
15148 LIBS=$ac_func_search_save_LIBS
15149 fi
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
15151 $as_echo "$ac_cv_search_res_search" >&6; }
15152 ac_res=$ac_cv_search_res_search
15153 if test "$ac_res" != no; then :
15154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15155
15156 else
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
15158 $as_echo_n "checking for library containing __res_search... " >&6; }
15159 if ${ac_cv_search___res_search+:} false; then :
15160 $as_echo_n "(cached) " >&6
15161 else
15162 ac_func_search_save_LIBS=$LIBS
15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15165
15166 /* Override any GCC internal prototype to avoid an error.
15167 Use char because int might match the return type of a GCC
15168 builtin and then its argument prototype would still apply. */
15169 #ifdef __cplusplus
15170 extern "C"
15171 #endif
15172 char __res_search ();
15173 int
15174 main ()
15175 {
15176 return __res_search ();
15177 ;
15178 return 0;
15179 }
15180 _ACEOF
15181 for ac_lib in '' resolv; do
15182 if test -z "$ac_lib"; then
15183 ac_res="none required"
15184 else
15185 ac_res=-l$ac_lib
15186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15187 fi
15188 if ac_fn_c_try_link "$LINENO"; then :
15189 ac_cv_search___res_search=$ac_res
15190 fi
15191 rm -f core conftest.err conftest.$ac_objext \
15192 conftest$ac_exeext
15193 if ${ac_cv_search___res_search+:} false; then :
15194 break
15195 fi
15196 done
15197 if ${ac_cv_search___res_search+:} false; then :
15198
15199 else
15200 ac_cv_search___res_search=no
15201 fi
15202 rm conftest.$ac_ext
15203 LIBS=$ac_func_search_save_LIBS
15204 fi
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
15206 $as_echo "$ac_cv_search___res_search" >&6; }
15207 ac_res=$ac_cv_search___res_search
15208 if test "$ac_res" != no; then :
15209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15210
15211 fi
15212
15213 fi
15214
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
15216 $as_echo_n "checking for library containing gethostbyname... " >&6; }
15217 if ${ac_cv_search_gethostbyname+:} false; then :
15218 $as_echo_n "(cached) " >&6
15219 else
15220 ac_func_search_save_LIBS=$LIBS
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15223
15224 /* Override any GCC internal prototype to avoid an error.
15225 Use char because int might match the return type of a GCC
15226 builtin and then its argument prototype would still apply. */
15227 #ifdef __cplusplus
15228 extern "C"
15229 #endif
15230 char gethostbyname ();
15231 int
15232 main ()
15233 {
15234 return gethostbyname ();
15235 ;
15236 return 0;
15237 }
15238 _ACEOF
15239 for ac_lib in '' nsl; do
15240 if test -z "$ac_lib"; then
15241 ac_res="none required"
15242 else
15243 ac_res=-l$ac_lib
15244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15245 fi
15246 if ac_fn_c_try_link "$LINENO"; then :
15247 ac_cv_search_gethostbyname=$ac_res
15248 fi
15249 rm -f core conftest.err conftest.$ac_objext \
15250 conftest$ac_exeext
15251 if ${ac_cv_search_gethostbyname+:} false; then :
15252 break
15253 fi
15254 done
15255 if ${ac_cv_search_gethostbyname+:} false; then :
15256
15257 else
15258 ac_cv_search_gethostbyname=no
15259 fi
15260 rm conftest.$ac_ext
15261 LIBS=$ac_func_search_save_LIBS
15262 fi
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
15264 $as_echo "$ac_cv_search_gethostbyname" >&6; }
15265 ac_res=$ac_cv_search_gethostbyname
15266 if test "$ac_res" != no; then :
15267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15268
15269 fi
15270
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15272 $as_echo_n "checking for library containing socket... " >&6; }
15273 if ${ac_cv_search_socket+:} false; then :
15274 $as_echo_n "(cached) " >&6
15275 else
15276 ac_func_search_save_LIBS=$LIBS
15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h. */
15279
15280 /* Override any GCC internal prototype to avoid an error.
15281 Use char because int might match the return type of a GCC
15282 builtin and then its argument prototype would still apply. */
15283 #ifdef __cplusplus
15284 extern "C"
15285 #endif
15286 char socket ();
15287 int
15288 main ()
15289 {
15290 return socket ();
15291 ;
15292 return 0;
15293 }
15294 _ACEOF
15295 for ac_lib in '' socket; do
15296 if test -z "$ac_lib"; then
15297 ac_res="none required"
15298 else
15299 ac_res=-l$ac_lib
15300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15301 fi
15302 if ac_fn_c_try_link "$LINENO"; then :
15303 ac_cv_search_socket=$ac_res
15304 fi
15305 rm -f core conftest.err conftest.$ac_objext \
15306 conftest$ac_exeext
15307 if ${ac_cv_search_socket+:} false; then :
15308 break
15309 fi
15310 done
15311 if ${ac_cv_search_socket+:} false; then :
15312
15313 else
15314 ac_cv_search_socket=no
15315 fi
15316 rm conftest.$ac_ext
15317 LIBS=$ac_func_search_save_LIBS
15318 fi
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15320 $as_echo "$ac_cv_search_socket" >&6; }
15321 ac_res=$ac_cv_search_socket
15322 if test "$ac_res" != no; then :
15323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15324
15325 else
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
15327 $as_echo_n "checking for socket in -lnsl... " >&6; }
15328 if ${ac_cv_lib_nsl_socket+:} false; then :
15329 $as_echo_n "(cached) " >&6
15330 else
15331 ac_check_lib_save_LIBS=$LIBS
15332 LIBS="-lnsl -lsocket $LIBS"
15333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334 /* end confdefs.h. */
15335
15336 /* Override any GCC internal prototype to avoid an error.
15337 Use char because int might match the return type of a GCC
15338 builtin and then its argument prototype would still apply. */
15339 #ifdef __cplusplus
15340 extern "C"
15341 #endif
15342 char socket ();
15343 int
15344 main ()
15345 {
15346 return socket ();
15347 ;
15348 return 0;
15349 }
15350 _ACEOF
15351 if ac_fn_c_try_link "$LINENO"; then :
15352 ac_cv_lib_nsl_socket=yes
15353 else
15354 ac_cv_lib_nsl_socket=no
15355 fi
15356 rm -f core conftest.err conftest.$ac_objext \
15357 conftest$ac_exeext conftest.$ac_ext
15358 LIBS=$ac_check_lib_save_LIBS
15359 fi
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
15361 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
15362 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
15363 LIBS="-lnsl -lsocket $LIBS"
15364 fi
15365
15366 fi
15367
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
15369 $as_echo_n "checking for library containing crypt... " >&6; }
15370 if ${ac_cv_search_crypt+:} false; then :
15371 $as_echo_n "(cached) " >&6
15372 else
15373 ac_func_search_save_LIBS=$LIBS
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15376
15377 /* Override any GCC internal prototype to avoid an error.
15378 Use char because int might match the return type of a GCC
15379 builtin and then its argument prototype would still apply. */
15380 #ifdef __cplusplus
15381 extern "C"
15382 #endif
15383 char crypt ();
15384 int
15385 main ()
15386 {
15387 return crypt ();
15388 ;
15389 return 0;
15390 }
15391 _ACEOF
15392 for ac_lib in '' crypt; do
15393 if test -z "$ac_lib"; then
15394 ac_res="none required"
15395 else
15396 ac_res=-l$ac_lib
15397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15398 fi
15399 if ac_fn_c_try_link "$LINENO"; then :
15400 ac_cv_search_crypt=$ac_res
15401 fi
15402 rm -f core conftest.err conftest.$ac_objext \
15403 conftest$ac_exeext
15404 if ${ac_cv_search_crypt+:} false; then :
15405 break
15406 fi
15407 done
15408 if ${ac_cv_search_crypt+:} false; then :
15409
15410 else
15411 ac_cv_search_crypt=no
15412 fi
15413 rm conftest.$ac_ext
15414 LIBS=$ac_func_search_save_LIBS
15415 fi
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
15417 $as_echo "$ac_cv_search_crypt" >&6; }
15418 ac_res=$ac_cv_search_crypt
15419 if test "$ac_res" != no; then :
15420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15421
15422 fi
15423
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
15425 $as_echo_n "checking for library containing roken_concat... " >&6; }
15426 if ${ac_cv_search_roken_concat+:} false; then :
15427 $as_echo_n "(cached) " >&6
15428 else
15429 ac_func_search_save_LIBS=$LIBS
15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h. */
15432
15433 /* Override any GCC internal prototype to avoid an error.
15434 Use char because int might match the return type of a GCC
15435 builtin and then its argument prototype would still apply. */
15436 #ifdef __cplusplus
15437 extern "C"
15438 #endif
15439 char roken_concat ();
15440 int
15441 main ()
15442 {
15443 return roken_concat ();
15444 ;
15445 return 0;
15446 }
15447 _ACEOF
15448 for ac_lib in '' roken; do
15449 if test -z "$ac_lib"; then
15450 ac_res="none required"
15451 else
15452 ac_res=-l$ac_lib
15453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15454 fi
15455 if ac_fn_c_try_link "$LINENO"; then :
15456 ac_cv_search_roken_concat=$ac_res
15457 fi
15458 rm -f core conftest.err conftest.$ac_objext \
15459 conftest$ac_exeext
15460 if ${ac_cv_search_roken_concat+:} false; then :
15461 break
15462 fi
15463 done
15464 if ${ac_cv_search_roken_concat+:} false; then :
15465
15466 else
15467 ac_cv_search_roken_concat=no
15468 fi
15469 rm conftest.$ac_ext
15470 LIBS=$ac_func_search_save_LIBS
15471 fi
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
15473 $as_echo "$ac_cv_search_roken_concat" >&6; }
15474 ac_res=$ac_cv_search_roken_concat
15475 if test "$ac_res" != no; then :
15476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15477
15478 fi
15479
15480 rra_krb5_extra="$LIBS"
15481 LIBS="$rra_krb5_save_LIBS"
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15483 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15484 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
15485 $as_echo_n "(cached) " >&6
15486 else
15487 ac_check_lib_save_LIBS=$LIBS
15488 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
15489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15490 /* end confdefs.h. */
15491
15492 /* Override any GCC internal prototype to avoid an error.
15493 Use char because int might match the return type of a GCC
15494 builtin and then its argument prototype would still apply. */
15495 #ifdef __cplusplus
15496 extern "C"
15497 #endif
15498 char krb5_init_context ();
15499 int
15500 main ()
15501 {
15502 return krb5_init_context ();
15503 ;
15504 return 0;
15505 }
15506 _ACEOF
15507 if ac_fn_c_try_link "$LINENO"; then :
15508 ac_cv_lib_krb5_krb5_init_context=yes
15509 else
15510 ac_cv_lib_krb5_krb5_init_context=no
15511 fi
15512 rm -f core conftest.err conftest.$ac_objext \
15513 conftest$ac_exeext conftest.$ac_ext
15514 LIBS=$ac_check_lib_save_LIBS
15515 fi
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15517 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15518 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
15519 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
15520 else
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
15522 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
15523 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
15524 $as_echo_n "(cached) " >&6
15525 else
15526 ac_check_lib_save_LIBS=$LIBS
15527 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
15528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h. */
15530
15531 /* Override any GCC internal prototype to avoid an error.
15532 Use char because int might match the return type of a GCC
15533 builtin and then its argument prototype would still apply. */
15534 #ifdef __cplusplus
15535 extern "C"
15536 #endif
15537 char krb5int_getspecific ();
15538 int
15539 main ()
15540 {
15541 return krb5int_getspecific ();
15542 ;
15543 return 0;
15544 }
15545 _ACEOF
15546 if ac_fn_c_try_link "$LINENO"; then :
15547 ac_cv_lib_krb5support_krb5int_getspecific=yes
15548 else
15549 ac_cv_lib_krb5support_krb5int_getspecific=no
15550 fi
15551 rm -f core conftest.err conftest.$ac_objext \
15552 conftest$ac_exeext conftest.$ac_ext
15553 LIBS=$ac_check_lib_save_LIBS
15554 fi
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
15556 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
15557 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
15558 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
15559 else
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
15561 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
15562 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
15563 $as_echo_n "(cached) " >&6
15564 else
15565 ac_check_lib_save_LIBS=$LIBS
15566 LIBS="-lpthreads $LIBS"
15567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15568 /* end confdefs.h. */
15569
15570 /* Override any GCC internal prototype to avoid an error.
15571 Use char because int might match the return type of a GCC
15572 builtin and then its argument prototype would still apply. */
15573 #ifdef __cplusplus
15574 extern "C"
15575 #endif
15576 char pthread_setspecific ();
15577 int
15578 main ()
15579 {
15580 return pthread_setspecific ();
15581 ;
15582 return 0;
15583 }
15584 _ACEOF
15585 if ac_fn_c_try_link "$LINENO"; then :
15586 ac_cv_lib_pthreads_pthread_setspecific=yes
15587 else
15588 ac_cv_lib_pthreads_pthread_setspecific=no
15589 fi
15590 rm -f core conftest.err conftest.$ac_objext \
15591 conftest$ac_exeext conftest.$ac_ext
15592 LIBS=$ac_check_lib_save_LIBS
15593 fi
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
15595 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
15596 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
15597 rra_krb5_pthread="-lpthreads"
15598 else
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
15600 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
15601 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
15602 $as_echo_n "(cached) " >&6
15603 else
15604 ac_check_lib_save_LIBS=$LIBS
15605 LIBS="-lpthread $LIBS"
15606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607 /* end confdefs.h. */
15608
15609 /* Override any GCC internal prototype to avoid an error.
15610 Use char because int might match the return type of a GCC
15611 builtin and then its argument prototype would still apply. */
15612 #ifdef __cplusplus
15613 extern "C"
15614 #endif
15615 char pthread_setspecific ();
15616 int
15617 main ()
15618 {
15619 return pthread_setspecific ();
15620 ;
15621 return 0;
15622 }
15623 _ACEOF
15624 if ac_fn_c_try_link "$LINENO"; then :
15625 ac_cv_lib_pthread_pthread_setspecific=yes
15626 else
15627 ac_cv_lib_pthread_pthread_setspecific=no
15628 fi
15629 rm -f core conftest.err conftest.$ac_objext \
15630 conftest$ac_exeext conftest.$ac_ext
15631 LIBS=$ac_check_lib_save_LIBS
15632 fi
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
15634 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
15635 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
15636 rra_krb5_pthread="-lpthread"
15637 fi
15638
15639 fi
15640
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
15642 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
15643 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
15644 $as_echo_n "(cached) " >&6
15645 else
15646 ac_check_lib_save_LIBS=$LIBS
15647 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
15648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15649 /* end confdefs.h. */
15650
15651 /* Override any GCC internal prototype to avoid an error.
15652 Use char because int might match the return type of a GCC
15653 builtin and then its argument prototype would still apply. */
15654 #ifdef __cplusplus
15655 extern "C"
15656 #endif
15657 char krb5int_setspecific ();
15658 int
15659 main ()
15660 {
15661 return krb5int_setspecific ();
15662 ;
15663 return 0;
15664 }
15665 _ACEOF
15666 if ac_fn_c_try_link "$LINENO"; then :
15667 ac_cv_lib_krb5support_krb5int_setspecific=yes
15668 else
15669 ac_cv_lib_krb5support_krb5int_setspecific=no
15670 fi
15671 rm -f core conftest.err conftest.$ac_objext \
15672 conftest$ac_exeext conftest.$ac_ext
15673 LIBS=$ac_check_lib_save_LIBS
15674 fi
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
15676 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
15677 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
15678 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
15679 fi
15680
15681 fi
15682
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
15684 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
15685 if ${ac_cv_lib_com_err_error_message+:} false; then :
15686 $as_echo_n "(cached) " >&6
15687 else
15688 ac_check_lib_save_LIBS=$LIBS
15689 LIBS="-lcom_err $rra_krb5_extra $LIBS"
15690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691 /* end confdefs.h. */
15692
15693 /* Override any GCC internal prototype to avoid an error.
15694 Use char because int might match the return type of a GCC
15695 builtin and then its argument prototype would still apply. */
15696 #ifdef __cplusplus
15697 extern "C"
15698 #endif
15699 char error_message ();
15700 int
15701 main ()
15702 {
15703 return error_message ();
15704 ;
15705 return 0;
15706 }
15707 _ACEOF
15708 if ac_fn_c_try_link "$LINENO"; then :
15709 ac_cv_lib_com_err_error_message=yes
15710 else
15711 ac_cv_lib_com_err_error_message=no
15712 fi
15713 rm -f core conftest.err conftest.$ac_objext \
15714 conftest$ac_exeext conftest.$ac_ext
15715 LIBS=$ac_check_lib_save_LIBS
15716 fi
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
15718 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
15719 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
15720 rra_krb5_extra="-lcom_err $rra_krb5_extra"
15721 fi
15722
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
15724 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
15725 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
15726 $as_echo_n "(cached) " >&6
15727 else
15728 ac_check_lib_save_LIBS=$LIBS
15729 LIBS="-lksvc $rra_krb5_extra $LIBS"
15730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15731 /* end confdefs.h. */
15732
15733 /* Override any GCC internal prototype to avoid an error.
15734 Use char because int might match the return type of a GCC
15735 builtin and then its argument prototype would still apply. */
15736 #ifdef __cplusplus
15737 extern "C"
15738 #endif
15739 char krb5_svc_get_msg ();
15740 int
15741 main ()
15742 {
15743 return krb5_svc_get_msg ();
15744 ;
15745 return 0;
15746 }
15747 _ACEOF
15748 if ac_fn_c_try_link "$LINENO"; then :
15749 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
15750 else
15751 ac_cv_lib_ksvc_krb5_svc_get_msg=no
15752 fi
15753 rm -f core conftest.err conftest.$ac_objext \
15754 conftest$ac_exeext conftest.$ac_ext
15755 LIBS=$ac_check_lib_save_LIBS
15756 fi
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
15758 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
15759 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
15760 rra_krb5_extra="-lksvc $rra_krb5_extra"
15761 fi
15762
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
15764 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
15765 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
15766 $as_echo_n "(cached) " >&6
15767 else
15768 ac_check_lib_save_LIBS=$LIBS
15769 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h. */
15772
15773 /* Override any GCC internal prototype to avoid an error.
15774 Use char because int might match the return type of a GCC
15775 builtin and then its argument prototype would still apply. */
15776 #ifdef __cplusplus
15777 extern "C"
15778 #endif
15779 char krb5int_hash_md5 ();
15780 int
15781 main ()
15782 {
15783 return krb5int_hash_md5 ();
15784 ;
15785 return 0;
15786 }
15787 _ACEOF
15788 if ac_fn_c_try_link "$LINENO"; then :
15789 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
15790 else
15791 ac_cv_lib_k5crypto_krb5int_hash_md5=no
15792 fi
15793 rm -f core conftest.err conftest.$ac_objext \
15794 conftest$ac_exeext conftest.$ac_ext
15795 LIBS=$ac_check_lib_save_LIBS
15796 fi
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
15798 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
15799 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
15800 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
15801 fi
15802
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
15804 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
15805 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
15806 $as_echo_n "(cached) " >&6
15807 else
15808 ac_check_lib_save_LIBS=$LIBS
15809 LIBS="-lk5profile $rra_krb5_extra $LIBS"
15810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15811 /* end confdefs.h. */
15812
15813 /* Override any GCC internal prototype to avoid an error.
15814 Use char because int might match the return type of a GCC
15815 builtin and then its argument prototype would still apply. */
15816 #ifdef __cplusplus
15817 extern "C"
15818 #endif
15819 char profile_get_values ();
15820 int
15821 main ()
15822 {
15823 return profile_get_values ();
15824 ;
15825 return 0;
15826 }
15827 _ACEOF
15828 if ac_fn_c_try_link "$LINENO"; then :
15829 ac_cv_lib_k5profile_profile_get_values=yes
15830 else
15831 ac_cv_lib_k5profile_profile_get_values=no
15832 fi
15833 rm -f core conftest.err conftest.$ac_objext \
15834 conftest$ac_exeext conftest.$ac_ext
15835 LIBS=$ac_check_lib_save_LIBS
15836 fi
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
15838 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
15839 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
15840 rra_krb5_extra="-lk5profile $rra_krb5_extra"
15841 fi
15842
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
15844 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
15845 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
15846 $as_echo_n "(cached) " >&6
15847 else
15848 ac_check_lib_save_LIBS=$LIBS
15849 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h. */
15852
15853 /* Override any GCC internal prototype to avoid an error.
15854 Use char because int might match the return type of a GCC
15855 builtin and then its argument prototype would still apply. */
15856 #ifdef __cplusplus
15857 extern "C"
15858 #endif
15859 char krb5_cc_default ();
15860 int
15861 main ()
15862 {
15863 return krb5_cc_default ();
15864 ;
15865 return 0;
15866 }
15867 _ACEOF
15868 if ac_fn_c_try_link "$LINENO"; then :
15869 ac_cv_lib_krb5_krb5_cc_default=yes
15870 else
15871 ac_cv_lib_krb5_krb5_cc_default=no
15872 fi
15873 rm -f core conftest.err conftest.$ac_objext \
15874 conftest$ac_exeext conftest.$ac_ext
15875 LIBS=$ac_check_lib_save_LIBS
15876 fi
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
15878 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
15879 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
15880 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
15881 else
15882 if test x"true" = xtrue; then :
15883 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
15884 fi
15885 fi
15886
15887 fi
15888
15889 LIBS="$KRB5_LIBS $LIBS"
15890 if test x"$rra_krb5_incroot" = x; then :
15891 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
15892 do :
15893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15894 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15895 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15896 cat >>confdefs.h <<_ACEOF
15897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15898 _ACEOF
15899
15900 fi
15901
15902 done
15903
15904 else
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
15906 $as_echo_n "checking for krb5.h... " >&6; }
15907 if test -f "${rra_krb5_incroot}/krb5.h"; then :
15908
15909 cat >>confdefs.h <<_ACEOF
15910 #define HAVE_KRB5_H 1
15911 _ACEOF
15912
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15914 $as_echo "yes" >&6; }
15915 else
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15917 $as_echo "no" >&6; }
15918 fi
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
15920 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
15921 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
15922
15923 cat >>confdefs.h <<_ACEOF
15924 #define HAVE_KERBEROSV5_KRB5_H 1
15925 _ACEOF
15926
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15928 $as_echo "yes" >&6; }
15929 else
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15931 $as_echo "no" >&6; }
15932 fi
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
15934 $as_echo_n "checking for krb5/krb5.h... " >&6; }
15935 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
15936
15937 cat >>confdefs.h <<_ACEOF
15938 #define HAVE_KRB5_KRB5_H 1
15939 _ACEOF
15940
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15942 $as_echo "yes" >&6; }
15943 else
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15945 $as_echo "no" >&6; }
15946 fi
15947 fi
15948 for ac_func in krb5_get_error_message
15949 do :
15950 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
15951 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
15952 cat >>confdefs.h <<_ACEOF
15953 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
15954 _ACEOF
15955 for ac_func in krb5_free_error_message
15956 do :
15957 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
15958 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
15959 cat >>confdefs.h <<_ACEOF
15960 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
15961 _ACEOF
15962
15963 fi
15964 done
15965
15966 else
15967 for ac_func in krb5_get_error_string
15968 do :
15969 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
15970 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
15971 cat >>confdefs.h <<_ACEOF
15972 #define HAVE_KRB5_GET_ERROR_STRING 1
15973 _ACEOF
15974
15975 else
15976 for ac_func in krb5_get_err_txt
15977 do :
15978 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
15979 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
15980 cat >>confdefs.h <<_ACEOF
15981 #define HAVE_KRB5_GET_ERR_TXT 1
15982 _ACEOF
15983
15984 else
15985 for ac_func in krb5_svc_get_msg
15986 do :
15987 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
15988 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
15989 cat >>confdefs.h <<_ACEOF
15990 #define HAVE_KRB5_SVC_GET_MSG 1
15991 _ACEOF
15992 for ac_header in ibm_svc/krb5_svc.h
15993 do :
15994 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
15995 #if HAVE_KRB5_H
15996 # include <krb5.h>
15997 #elif HAVE_KERBEROSV5_KRB5_H
15998 # include <kerberosv5/krb5.h>
15999 #else
16000 # include <krb5/krb5.h>
16001 #endif
16002
16003 "
16004 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
16005 cat >>confdefs.h <<_ACEOF
16006 #define HAVE_IBM_SVC_KRB5_SVC_H 1
16007 _ACEOF
16008
16009 fi
16010
16011 done
16012
16013 else
16014 if test x"$rra_krb5_incroot" = x; then :
16015 for ac_header in et/com_err.h kerberosv5/com_err.h
16016 do :
16017 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16018 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16019 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16020 cat >>confdefs.h <<_ACEOF
16021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16022 _ACEOF
16023
16024 fi
16025
16026 done
16027
16028 else
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
16030 $as_echo_n "checking for et/com_err.h... " >&6; }
16031 if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
16032
16033 cat >>confdefs.h <<_ACEOF
16034 #define HAVE_ET_COM_ERR_H 1
16035 _ACEOF
16036
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16038 $as_echo "yes" >&6; }
16039 else
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16041 $as_echo "no" >&6; }
16042 fi
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
16044 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
16045 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
16046
16047 cat >>confdefs.h <<_ACEOF
16048 #define HAVE_KERBEROSV5_COM_ERR_H 1
16049 _ACEOF
16050
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16052 $as_echo "yes" >&6; }
16053 else
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16055 $as_echo "no" >&6; }
16056 fi
16057 fi
16058 fi
16059 done
16060
16061 fi
16062 done
16063
16064 fi
16065 done
16066
16067 fi
16068 done
16069
16070 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16071 LDFLAGS="$rra_krb5_save_LDFLAGS"
16072 LIBS="$rra_krb5_save_LIBS"
16073 fi
16074 fi
16075 rra_krb5_uses_com_err=false
16076 case $KRB5_LIBS in #(
16077 *-lcom_err*) :
16078 rra_krb5_uses_com_err=true ;; #(
16079 *) :
16080 ;;
16081 esac
16082 if test x"$rra_krb5_uses_com_err" = xtrue; then
16083 KRB5_USES_COM_ERR_TRUE=
16084 KRB5_USES_COM_ERR_FALSE='#'
16085 else
16086 KRB5_USES_COM_ERR_TRUE='#'
16087 KRB5_USES_COM_ERR_FALSE=
16088 fi
16089
16090 KRB5_CPPFLAGS_GCC=`echo "$KRB5_CPPFLAGS" | sed -e 's/-I/-isystem /g'`
16091
16092 $as_echo "#define HAVE_KRB5 1" >>confdefs.h
16093
16094 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
16095 rra_krb5_save_LDFLAGS="$LDFLAGS"
16096 rra_krb5_save_LIBS="$LIBS"
16097 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
16098 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
16099 LIBS="$KRB5_LIBS $LIBS"
16100 for ac_header in kadm5/kadm5_err.h
16101 do :
16102 ac_fn_c_check_header_mongrel "$LINENO" "kadm5/kadm5_err.h" "ac_cv_header_kadm5_kadm5_err_h" "$ac_includes_default"
16103 if test "x$ac_cv_header_kadm5_kadm5_err_h" = xyes; then :
16104 cat >>confdefs.h <<_ACEOF
16105 #define HAVE_KADM5_KADM5_ERR_H 1
16106 _ACEOF
16107
16108 fi
16109
16110 done
16111
16112 for ac_func in krb5_free_default_realm \
16113 krb5_free_string \
16114 krb5_get_init_creds_opt_alloc \
16115 krb5_get_init_creds_opt_set_default_flags \
16116 krb5_principal_get_comp_string \
16117 krb5_principal_get_num_comp \
16118 krb5_principal_get_realm \
16119 krb5_principal_set_realm \
16120 krb5_xfree
16121 do :
16122 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16123 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16124 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16125 cat >>confdefs.h <<_ACEOF
16126 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16127 _ACEOF
16128
16129 fi
16130 done
16131
16132 ac_fn_c_check_type "$LINENO" "krb5_realm" "ac_cv_type_krb5_realm" "
16133 #if HAVE_KRB5_H
16134 # include <krb5.h>
16135 #elif HAVE_KERBEROSV5_KRB5_H
16136 # include <kerberosv5/krb5.h>
16137 #else
16138 # include <krb5/krb5.h>
16139 #endif
16140
16141 "
16142 if test "x$ac_cv_type_krb5_realm" = xyes; then :
16143
16144 cat >>confdefs.h <<_ACEOF
16145 #define HAVE_KRB5_REALM 1
16146 _ACEOF
16147
16148
16149 else
16150 for ac_header in krb5/kadm5_hook_plugin.h
16151 do :
16152 ac_fn_c_check_header_mongrel "$LINENO" "krb5/kadm5_hook_plugin.h" "ac_cv_header_krb5_kadm5_hook_plugin_h" "$ac_includes_default"
16153 if test "x$ac_cv_header_krb5_kadm5_hook_plugin_h" = xyes; then :
16154 cat >>confdefs.h <<_ACEOF
16155 #define HAVE_KRB5_KADM5_HOOK_PLUGIN_H 1
16156 _ACEOF
16157
16158 fi
16159
16160 done
16161
16162 fi
16163
16164 for ac_func in krb5_get_init_creds_opt_free
16165 do :
16166 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_free" "ac_cv_func_krb5_get_init_creds_opt_free"
16167 if test "x$ac_cv_func_krb5_get_init_creds_opt_free" = xyes; then :
16168 cat >>confdefs.h <<_ACEOF
16169 #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE 1
16170 _ACEOF
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if krb5_get_init_creds_opt_free takes two arguments" >&5
16172 $as_echo_n "checking if krb5_get_init_creds_opt_free takes two arguments... " >&6; }
16173 if ${rra_cv_func_krb5_get_init_creds_opt_free_args+:} false; then :
16174 $as_echo_n "(cached) " >&6
16175 else
16176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16177 /* end confdefs.h. */
16178
16179 #if HAVE_KRB5_H
16180 # include <krb5.h>
16181 #elif HAVE_KERBEROSV5_KRB5_H
16182 # include <kerberosv5/krb5.h>
16183 #else
16184 # include <krb5/krb5.h>
16185 #endif
16186
16187 int
16188 main(void)
16189 {
16190 krb5_get_init_creds_opt *opts;
16191 krb5_context c;
16192 krb5_get_init_creds_opt_free(c, opts);
16193 }
16194
16195 _ACEOF
16196 if ac_fn_c_try_compile "$LINENO"; then :
16197 rra_cv_func_krb5_get_init_creds_opt_free_args=yes
16198 else
16199 rra_cv_func_krb5_get_init_creds_opt_free_args=no
16200 fi
16201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16202 fi
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_krb5_get_init_creds_opt_free_args" >&5
16204 $as_echo "$rra_cv_func_krb5_get_init_creds_opt_free_args" >&6; }
16205 if test $rra_cv_func_krb5_get_init_creds_opt_free_args = yes; then :
16206
16207 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_2_ARGS 1" >>confdefs.h
16208
16209 fi
16210 fi
16211 done
16212
16213 for ac_func in krb5_appdefault_string
16214 do :
16215 ac_fn_c_check_func "$LINENO" "krb5_appdefault_string" "ac_cv_func_krb5_appdefault_string"
16216 if test "x$ac_cv_func_krb5_appdefault_string" = xyes; then :
16217 cat >>confdefs.h <<_ACEOF
16218 #define HAVE_KRB5_APPDEFAULT_STRING 1
16219 _ACEOF
16220
16221 else
16222 for ac_func in krb5_get_profile
16223 do :
16224 ac_fn_c_check_func "$LINENO" "krb5_get_profile" "ac_cv_func_krb5_get_profile"
16225 if test "x$ac_cv_func_krb5_get_profile" = xyes; then :
16226 cat >>confdefs.h <<_ACEOF
16227 #define HAVE_KRB5_GET_PROFILE 1
16228 _ACEOF
16229
16230 fi
16231 done
16232
16233 for ac_header in k5profile.h profile.h
16234 do :
16235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16236 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16237 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16238 cat >>confdefs.h <<_ACEOF
16239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16240 _ACEOF
16241
16242 fi
16243
16244 done
16245
16246 case " $LIBOBJS " in
16247 *" krb5-profile.$ac_objext "* ) ;;
16248 *) LIBOBJS="$LIBOBJS krb5-profile.$ac_objext"
16249 ;;
16250 esac
16251
16252 fi
16253 done
16254
16255 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16256 LDFLAGS="$rra_krb5_save_LDFLAGS"
16257 LIBS="$rra_krb5_save_LIBS"
16258
16259 rra_KADM5SRV_root=
16260 rra_KADM5SRV_libdir=
16261 rra_KADM5SRV_includedir=
16262 rra_use_KADM5SRV=
16263 KADM5SRV_CPPFLAGS=
16264 KADM5SRV_LDFLAGS=
16265 KADM5SRV_LIBS=
16266
16267
16268
16269
16270 # Check whether --with-kadm-server was given.
16271 if test "${with_kadm_server+set}" = set; then :
16272 withval=$with_kadm_server; if test x"$withval" != xyes && test x"$withval" != xno; then :
16273 rra_KADM5SRV_root="$withval"
16274 fi
16275 fi
16276
16277
16278 # Check whether --with-kadm-server-include was given.
16279 if test "${with_kadm_server_include+set}" = set; then :
16280 withval=$with_kadm_server_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
16281 rra_KADM5SRV_includedir="$withval"
16282 fi
16283 fi
16284
16285
16286 # Check whether --with-kadm-server-lib was given.
16287 if test "${with_kadm_server_lib+set}" = set; then :
16288 withval=$with_kadm_server_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
16289 rra_KADM5SRV_libdir="$withval"
16290 fi
16291 fi
16292
16293
16294 if test x"$rra_reduced_depends" = xtrue; then :
16295 if test x"$rra_KADM5SRV_libdir" != x; then :
16296 KADM5SRV_LDFLAGS="-L$rra_KADM5SRV_libdir"
16297 else
16298 if test x"$rra_KADM5SRV_root" != x; then :
16299
16300 if test -d "${rra_KADM5SRV_root}/$rra_lib_arch_name"; then :
16301 if test x"" = x; then :
16302 KADM5SRV_LDFLAGS="$KADM5SRV_LDFLAGS -L${rra_KADM5SRV_root}/${rra_lib_arch_name}"
16303 else
16304 KADM5SRV_LDFLAGS="$KADM5SRV_LDFLAGS -L${rra_KADM5SRV_root}/${rra_lib_arch_name}/"
16305 fi
16306 else
16307 if test x"" = x; then :
16308 KADM5SRV_LDFLAGS="$KADM5SRV_LDFLAGS -L${rra_KADM5SRV_root}/lib"
16309 else
16310 KADM5SRV_LDFLAGS="$KADM5SRV_LDFLAGS -L${rra_KADM5SRV_root}/lib/"
16311 fi
16312 fi
16313 KADM5SRV_LDFLAGS=`echo "$KADM5SRV_LDFLAGS" | sed -e 's/^ *//'`
16314 fi
16315 fi
16316 if test x"$rra_KADM5SRV_includedir" != x; then :
16317 KADM5SRV_CPPFLAGS="-I$rra_KADM5SRV_includedir"
16318 else
16319 if test x"$rra_KADM5SRV_root" != x; then :
16320 if test x"$rra_KADM5SRV_root" != x/usr; then :
16321 KADM5SRV_CPPFLAGS="-I${rra_KADM5SRV_root}/include"
16322 fi
16323 fi
16324 fi
16325 rra_KADM5SRV_save_CPPFLAGS="$CPPFLAGS"
16326 rra_KADM5SRV_save_LDFLAGS="$LDFLAGS"
16327 rra_KADM5SRV_save_LIBS="$LIBS"
16328 CPPFLAGS="$KADM5SRV_CPPFLAGS $CPPFLAGS"
16329 LDFLAGS="$KADM5SRV_LDFLAGS $LDFLAGS"
16330 LIBS="$KADM5SRV_LIBS $LIBS"
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kadm5_init_with_password in -lkadm5srv" >&5
16332 $as_echo_n "checking for kadm5_init_with_password in -lkadm5srv... " >&6; }
16333 if ${ac_cv_lib_kadm5srv_kadm5_init_with_password+:} false; then :
16334 $as_echo_n "(cached) " >&6
16335 else
16336 ac_check_lib_save_LIBS=$LIBS
16337 LIBS="-lkadm5srv $LIBS"
16338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16339 /* end confdefs.h. */
16340
16341 /* Override any GCC internal prototype to avoid an error.
16342 Use char because int might match the return type of a GCC
16343 builtin and then its argument prototype would still apply. */
16344 #ifdef __cplusplus
16345 extern "C"
16346 #endif
16347 char kadm5_init_with_password ();
16348 int
16349 main ()
16350 {
16351 return kadm5_init_with_password ();
16352 ;
16353 return 0;
16354 }
16355 _ACEOF
16356 if ac_fn_c_try_link "$LINENO"; then :
16357 ac_cv_lib_kadm5srv_kadm5_init_with_password=yes
16358 else
16359 ac_cv_lib_kadm5srv_kadm5_init_with_password=no
16360 fi
16361 rm -f core conftest.err conftest.$ac_objext \
16362 conftest$ac_exeext conftest.$ac_ext
16363 LIBS=$ac_check_lib_save_LIBS
16364 fi
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kadm5srv_kadm5_init_with_password" >&5
16366 $as_echo "$ac_cv_lib_kadm5srv_kadm5_init_with_password" >&6; }
16367 if test "x$ac_cv_lib_kadm5srv_kadm5_init_with_password" = xyes; then :
16368 KADM5SRV_LIBS=-lkadm5srv
16369 else
16370 if test x"true" = xtrue; then :
16371 as_fn_error $? "cannot find usable kadmin server library" "$LINENO" 5
16372 fi
16373 fi
16374
16375 CPPFLAGS="$rra_KADM5SRV_save_CPPFLAGS"
16376 LDFLAGS="$rra_KADM5SRV_save_LDFLAGS"
16377 LIBS="$rra_KADM5SRV_save_LIBS"
16378 else
16379 if test x"$rra_KADM5SRV_includedir" = x \
16380 && test x"$rra_KADM5SRV_libdir" = x; then :
16381
16382 rra_krb5_config_KADM5SRV=
16383 rra_krb5_config_KADM5SRV_ok=
16384 if test x"${rra_KADM5SRV_root}" != x && test -x "${rra_KADM5SRV_root}/bin/krb5-config"; then :
16385 rra_krb5_config_KADM5SRV="${rra_KADM5SRV_root}/bin/krb5-config"
16386 else
16387 rra_krb5_config_KADM5SRV="$PATH_KRB5_CONFIG"
16388 fi
16389 if test x"$rra_krb5_config_KADM5SRV" != x && test -x "$rra_krb5_config_KADM5SRV"; then :
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kadm-server support in krb5-config" >&5
16391 $as_echo_n "checking for kadm-server support in krb5-config... " >&6; }
16392 if ${rra_cv_lib_KADM5SRV_config+:} false; then :
16393 $as_echo_n "(cached) " >&6
16394 else
16395 if "$rra_krb5_config_KADM5SRV" 2>&1 | grep kadm-server >/dev/null 2>&1; then :
16396 rra_cv_lib_KADM5SRV_config=yes
16397 else
16398 rra_cv_lib_KADM5SRV_config=no
16399 fi
16400 fi
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_KADM5SRV_config" >&5
16402 $as_echo "$rra_cv_lib_KADM5SRV_config" >&6; }
16403 if test "$rra_cv_lib_KADM5SRV_config" = yes; then :
16404 KADM5SRV_CPPFLAGS=`"$rra_krb5_config_KADM5SRV" --cflags kadm-server 2>/dev/null`
16405
16406
16407
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5
16409 $as_echo_n "checking for --deps support in krb5-config... " >&6; }
16410 if ${rra_cv_krb5_config_deps+:} false; then :
16411 $as_echo_n "(cached) " >&6
16412 else
16413 if "$rra_krb5_config_KADM5SRV" 2>&1 | grep deps >/dev/null 2>&1; then :
16414 rra_cv_krb5_config_deps=yes
16415 else
16416 rra_cv_krb5_config_deps=no
16417 fi
16418 fi
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5
16420 $as_echo "$rra_cv_krb5_config_deps" >&6; }
16421 if test x"$rra_reduced_depends" = xfalse \
16422 && test x"$rra_cv_krb5_config_deps" = xyes; then :
16423 KADM5SRV_LIBS=`"$rra_krb5_config_KADM5SRV" --deps --libs kadm-server 2>/dev/null`
16424 else
16425 KADM5SRV_LIBS=`"$rra_krb5_config_KADM5SRV" --libs kadm-server 2>/dev/null`
16426 fi
16427 rra_krb5_config_KADM5SRV_ok=yes
16428 else
16429 if test x"kadm-server" = xkrb5; then :
16430 KADM5SRV_CPPFLAGS=`"$rra_krb5_config_KADM5SRV" --cflags 2>/dev/null`
16431 KADM5SRV_LIBS=`"$rra_krb5_config_KADM5SRV" --libs kadm-server 2>/dev/null`
16432 rra_krb5_config_KADM5SRV_ok=yes
16433 fi
16434 fi
16435 fi
16436 if test x"$rra_krb5_config_KADM5SRV_ok" = xyes; then :
16437 KADM5SRV_CPPFLAGS=`echo "$KADM5SRV_CPPFLAGS" | sed 's%-I/usr/include %%'`
16438 KADM5SRV_CPPFLAGS=`echo "$KADM5SRV_CPPFLAGS" | sed 's%-I/usr/include$%%'`
16439 rra_KADM5SRV_save_CPPFLAGS="$CPPFLAGS"
16440 rra_KADM5SRV_save_LDFLAGS="$LDFLAGS"
16441 rra_KADM5SRV_save_LIBS="$LIBS"
16442 CPPFLAGS="$KADM5SRV_CPPFLAGS $CPPFLAGS"
16443 LDFLAGS="$KADM5SRV_LDFLAGS $LDFLAGS"
16444 LIBS="$KADM5SRV_LIBS $LIBS"
16445 ac_fn_c_check_func "$LINENO" "kadm5_init_with_password" "ac_cv_func_kadm5_init_with_password"
16446 if test "x$ac_cv_func_kadm5_init_with_password" = xyes; then :
16447
16448 else
16449 if test x"true" = xtrue; then :
16450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16452 as_fn_error $? "unable to link with kadmin server library
16453 See \`config.log' for more details" "$LINENO" 5; }
16454 fi
16455 KADM5SRV_CPPFLAGS=
16456 KADM5SRV_LDFLAGS=
16457 KADM5SRV_LIBS=
16458 fi
16459
16460 CPPFLAGS="$rra_KADM5SRV_save_CPPFLAGS"
16461 LDFLAGS="$rra_KADM5SRV_save_LDFLAGS"
16462 LIBS="$rra_KADM5SRV_save_LIBS"
16463 else
16464 if test x"$rra_KADM5SRV_libdir" != x; then :
16465 KADM5SRV_LDFLAGS="-L$rra_KADM5SRV_libdir"
16466 else
16467 if test x"$rra_KADM5SRV_root" != x; then :
16468
16469 if test -d "${rra_KADM5SRV_root}/$rra_lib_arch_name"; then :
16470 if test x"" = x; then :
16471 KADM5SRV_LDFLAGS="$KADM5SRV_LDFLAGS -L${rra_KADM5SRV_root}/${rra_lib_arch_name}"
16472 else
16473 KADM5SRV_LDFLAGS="$KADM5SRV_LDFLAGS -L${rra_KADM5SRV_root}/${rra_lib_arch_name}/"
16474 fi
16475 else
16476 if test x"" = x; then :
16477 KADM5SRV_LDFLAGS="$KADM5SRV_LDFLAGS -L${rra_KADM5SRV_root}/lib"
16478 else
16479 KADM5SRV_LDFLAGS="$KADM5SRV_LDFLAGS -L${rra_KADM5SRV_root}/lib/"
16480 fi
16481 fi
16482 KADM5SRV_LDFLAGS=`echo "$KADM5SRV_LDFLAGS" | sed -e 's/^ *//'`
16483 fi
16484 fi
16485 if test x"$rra_KADM5SRV_includedir" != x; then :
16486 KADM5SRV_CPPFLAGS="-I$rra_KADM5SRV_includedir"
16487 else
16488 if test x"$rra_KADM5SRV_root" != x; then :
16489 if test x"$rra_KADM5SRV_root" != x/usr; then :
16490 KADM5SRV_CPPFLAGS="-I${rra_KADM5SRV_root}/include"
16491 fi
16492 fi
16493 fi
16494 rra_KADM5SRV_save_CPPFLAGS="$CPPFLAGS"
16495 rra_KADM5SRV_save_LDFLAGS="$LDFLAGS"
16496 rra_KADM5SRV_save_LIBS="$LIBS"
16497 CPPFLAGS="$KADM5SRV_CPPFLAGS $CPPFLAGS"
16498 LDFLAGS="$KADM5SRV_LDFLAGS $LDFLAGS"
16499 LIBS="$KADM5SRV_LIBS $LIBS"
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kadm5_init_with_password in -lkadm5srv" >&5
16501 $as_echo_n "checking for kadm5_init_with_password in -lkadm5srv... " >&6; }
16502 if ${ac_cv_lib_kadm5srv_kadm5_init_with_password+:} false; then :
16503 $as_echo_n "(cached) " >&6
16504 else
16505 ac_check_lib_save_LIBS=$LIBS
16506 LIBS="-lkadm5srv $LIBS"
16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h. */
16509
16510 /* Override any GCC internal prototype to avoid an error.
16511 Use char because int might match the return type of a GCC
16512 builtin and then its argument prototype would still apply. */
16513 #ifdef __cplusplus
16514 extern "C"
16515 #endif
16516 char kadm5_init_with_password ();
16517 int
16518 main ()
16519 {
16520 return kadm5_init_with_password ();
16521 ;
16522 return 0;
16523 }
16524 _ACEOF
16525 if ac_fn_c_try_link "$LINENO"; then :
16526 ac_cv_lib_kadm5srv_kadm5_init_with_password=yes
16527 else
16528 ac_cv_lib_kadm5srv_kadm5_init_with_password=no
16529 fi
16530 rm -f core conftest.err conftest.$ac_objext \
16531 conftest$ac_exeext conftest.$ac_ext
16532 LIBS=$ac_check_lib_save_LIBS
16533 fi
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kadm5srv_kadm5_init_with_password" >&5
16535 $as_echo "$ac_cv_lib_kadm5srv_kadm5_init_with_password" >&6; }
16536 if test "x$ac_cv_lib_kadm5srv_kadm5_init_with_password" = xyes; then :
16537 KADM5SRV_LIBS=-lkadm5srv
16538 else
16539 if test x"true" = xtrue; then :
16540 as_fn_error $? "cannot find usable kadmin server library" "$LINENO" 5
16541 fi
16542 fi
16543
16544 CPPFLAGS="$rra_KADM5SRV_save_CPPFLAGS"
16545 LDFLAGS="$rra_KADM5SRV_save_LDFLAGS"
16546 LIBS="$rra_KADM5SRV_save_LIBS"
16547 fi
16548 else
16549 if test x"$rra_KADM5SRV_libdir" != x; then :
16550 KADM5SRV_LDFLAGS="-L$rra_KADM5SRV_libdir"
16551 else
16552 if test x"$rra_KADM5SRV_root" != x; then :
16553
16554 if test -d "${rra_KADM5SRV_root}/$rra_lib_arch_name"; then :
16555 if test x"" = x; then :
16556 KADM5SRV_LDFLAGS="$KADM5SRV_LDFLAGS -L${rra_KADM5SRV_root}/${rra_lib_arch_name}"
16557 else
16558 KADM5SRV_LDFLAGS="$KADM5SRV_LDFLAGS -L${rra_KADM5SRV_root}/${rra_lib_arch_name}/"
16559 fi
16560 else
16561 if test x"" = x; then :
16562 KADM5SRV_LDFLAGS="$KADM5SRV_LDFLAGS -L${rra_KADM5SRV_root}/lib"
16563 else
16564 KADM5SRV_LDFLAGS="$KADM5SRV_LDFLAGS -L${rra_KADM5SRV_root}/lib/"
16565 fi
16566 fi
16567 KADM5SRV_LDFLAGS=`echo "$KADM5SRV_LDFLAGS" | sed -e 's/^ *//'`
16568 fi
16569 fi
16570 if test x"$rra_KADM5SRV_includedir" != x; then :
16571 KADM5SRV_CPPFLAGS="-I$rra_KADM5SRV_includedir"
16572 else
16573 if test x"$rra_KADM5SRV_root" != x; then :
16574 if test x"$rra_KADM5SRV_root" != x/usr; then :
16575 KADM5SRV_CPPFLAGS="-I${rra_KADM5SRV_root}/include"
16576 fi
16577 fi
16578 fi
16579 rra_KADM5SRV_save_CPPFLAGS="$CPPFLAGS"
16580 rra_KADM5SRV_save_LDFLAGS="$LDFLAGS"
16581 rra_KADM5SRV_save_LIBS="$LIBS"
16582 CPPFLAGS="$KADM5SRV_CPPFLAGS $CPPFLAGS"
16583 LDFLAGS="$KADM5SRV_LDFLAGS $LDFLAGS"
16584 LIBS="$KADM5SRV_LIBS $LIBS"
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kadm5_init_with_password in -lkadm5srv" >&5
16586 $as_echo_n "checking for kadm5_init_with_password in -lkadm5srv... " >&6; }
16587 if ${ac_cv_lib_kadm5srv_kadm5_init_with_password+:} false; then :
16588 $as_echo_n "(cached) " >&6
16589 else
16590 ac_check_lib_save_LIBS=$LIBS
16591 LIBS="-lkadm5srv $LIBS"
16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593 /* end confdefs.h. */
16594
16595 /* Override any GCC internal prototype to avoid an error.
16596 Use char because int might match the return type of a GCC
16597 builtin and then its argument prototype would still apply. */
16598 #ifdef __cplusplus
16599 extern "C"
16600 #endif
16601 char kadm5_init_with_password ();
16602 int
16603 main ()
16604 {
16605 return kadm5_init_with_password ();
16606 ;
16607 return 0;
16608 }
16609 _ACEOF
16610 if ac_fn_c_try_link "$LINENO"; then :
16611 ac_cv_lib_kadm5srv_kadm5_init_with_password=yes
16612 else
16613 ac_cv_lib_kadm5srv_kadm5_init_with_password=no
16614 fi
16615 rm -f core conftest.err conftest.$ac_objext \
16616 conftest$ac_exeext conftest.$ac_ext
16617 LIBS=$ac_check_lib_save_LIBS
16618 fi
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kadm5srv_kadm5_init_with_password" >&5
16620 $as_echo "$ac_cv_lib_kadm5srv_kadm5_init_with_password" >&6; }
16621 if test "x$ac_cv_lib_kadm5srv_kadm5_init_with_password" = xyes; then :
16622 KADM5SRV_LIBS=-lkadm5srv
16623 else
16624 if test x"true" = xtrue; then :
16625 as_fn_error $? "cannot find usable kadmin server library" "$LINENO" 5
16626 fi
16627 fi
16628
16629 CPPFLAGS="$rra_KADM5SRV_save_CPPFLAGS"
16630 LDFLAGS="$rra_KADM5SRV_save_LDFLAGS"
16631 LIBS="$rra_KADM5SRV_save_LIBS"
16632 fi
16633 fi
16634 rra_use_KADM5SRV=true
16635
16636 $as_echo "#define HAVE_KADM5SRV 1" >>confdefs.h
16637
16638 rra_KADM5SRV_save_CPPFLAGS="$CPPFLAGS"
16639 rra_KADM5SRV_save_LDFLAGS="$LDFLAGS"
16640 rra_KADM5SRV_save_LIBS="$LIBS"
16641 CPPFLAGS="$KADM5SRV_CPPFLAGS $CPPFLAGS"
16642 LDFLAGS="$KADM5SRV_LDFLAGS $LDFLAGS"
16643 LIBS="$KADM5SRV_LIBS $LIBS"
16644 for ac_func in kadm5_init_krb5_context kadm5_init_with_skey_ctx
16645 do :
16646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16647 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16648 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16649 cat >>confdefs.h <<_ACEOF
16650 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16651 _ACEOF
16652
16653 fi
16654 done
16655
16656 CPPFLAGS="$rra_KADM5SRV_save_CPPFLAGS"
16657 LDFLAGS="$rra_KADM5SRV_save_LDFLAGS"
16658 LIBS="$rra_KADM5SRV_save_LIBS"
16659
16660
16661 rra_ldap_root=
16662 rra_ldap_libdir=
16663 rra_ldap_includedir=
16664 LDAP_CPPFLAGS=
16665 LDAP_LDFLAGS=
16666 LDAP_LIBS=
16667
16668
16669
16670
16671
16672 # Check whether --with-ldap was given.
16673 if test "${with_ldap+set}" = set; then :
16674 withval=$with_ldap; if test x"$withval" != xyes && test x"$withval" != xno; then :
16675 rra_ldap_root="$withval"
16676 fi
16677 fi
16678
16679
16680 # Check whether --with-ldap-include was given.
16681 if test "${with_ldap_include+set}" = set; then :
16682 withval=$with_ldap_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
16683 rra_ldap_includedir="$withval"
16684 fi
16685 fi
16686
16687
16688 # Check whether --with-ldap-lib was given.
16689 if test "${with_ldap_lib+set}" = set; then :
16690 withval=$with_ldap_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
16691 rra_ldap_libdir="$withval"
16692 fi
16693 fi
16694
16695
16696 if test x"$rra_ldap_libdir" != x; then :
16697 LDAP_LDFLAGS="-L$rra_ldap_libdir"
16698 else
16699 if test x"$rra_ldap_root" != x; then :
16700
16701 if test -d "$rra_ldap_root/$rra_lib_arch_name"; then :
16702 if test x"" = x; then :
16703 LDAP_LDFLAGS="$LDAP_LDFLAGS -L$rra_ldap_root/${rra_lib_arch_name}"
16704 else
16705 LDAP_LDFLAGS="$LDAP_LDFLAGS -L$rra_ldap_root/${rra_lib_arch_name}/"
16706 fi
16707 else
16708 if test x"" = x; then :
16709 LDAP_LDFLAGS="$LDAP_LDFLAGS -L$rra_ldap_root/lib"
16710 else
16711 LDAP_LDFLAGS="$LDAP_LDFLAGS -L$rra_ldap_root/lib/"
16712 fi
16713 fi
16714 LDAP_LDFLAGS=`echo "$LDAP_LDFLAGS" | sed -e 's/^ *//'`
16715 fi
16716 fi
16717 if test x"$rra_ldap_includedir" != x; then :
16718 LDAP_CPPFLAGS="-I$rra_ldap_includedir"
16719 else
16720 if test x"$rra_ldap_root" != x; then :
16721 if test x"$rra_ldap_root" != x/usr; then :
16722 LDAP_CPPFLAGS="-I${rra_ldap_root}/include"
16723 fi
16724 fi
16725 fi
16726 rra_ldap_save_CPPFLAGS="$CPPFLAGS"
16727 rra_ldap_save_LDFLAGS="$LDFLAGS"
16728 rra_ldap_save_LIBS="$LIBS"
16729 CPPFLAGS="$LDAP_CPPFLAGS $CPPFLAGS"
16730 LDFLAGS="$LDAP_LDFLAGS $LDFLAGS"
16731 LIBS="$LDAP_LIBS $LIBS"
16732 if test x"$rra_reduced_depends" != xtrue; then :
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_dump in -llber" >&5
16734 $as_echo_n "checking for ber_dump in -llber... " >&6; }
16735 if ${ac_cv_lib_lber_ber_dump+:} false; then :
16736 $as_echo_n "(cached) " >&6
16737 else
16738 ac_check_lib_save_LIBS=$LIBS
16739 LIBS="-llber $LIBS"
16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h. */
16742
16743 /* Override any GCC internal prototype to avoid an error.
16744 Use char because int might match the return type of a GCC
16745 builtin and then its argument prototype would still apply. */
16746 #ifdef __cplusplus
16747 extern "C"
16748 #endif
16749 char ber_dump ();
16750 int
16751 main ()
16752 {
16753 return ber_dump ();
16754 ;
16755 return 0;
16756 }
16757 _ACEOF
16758 if ac_fn_c_try_link "$LINENO"; then :
16759 ac_cv_lib_lber_ber_dump=yes
16760 else
16761 ac_cv_lib_lber_ber_dump=no
16762 fi
16763 rm -f core conftest.err conftest.$ac_objext \
16764 conftest$ac_exeext conftest.$ac_ext
16765 LIBS=$ac_check_lib_save_LIBS
16766 fi
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_dump" >&5
16768 $as_echo "$ac_cv_lib_lber_ber_dump" >&6; }
16769 if test "x$ac_cv_lib_lber_ber_dump" = xyes; then :
16770 LDAP_LIBS=-llber
16771 fi
16772
16773 fi
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5
16775 $as_echo_n "checking for ldap_open in -lldap... " >&6; }
16776 if ${ac_cv_lib_ldap_ldap_open+:} false; then :
16777 $as_echo_n "(cached) " >&6
16778 else
16779 ac_check_lib_save_LIBS=$LIBS
16780 LIBS="-lldap $LDAP_LIBS $LIBS"
16781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16782 /* end confdefs.h. */
16783
16784 /* Override any GCC internal prototype to avoid an error.
16785 Use char because int might match the return type of a GCC
16786 builtin and then its argument prototype would still apply. */
16787 #ifdef __cplusplus
16788 extern "C"
16789 #endif
16790 char ldap_open ();
16791 int
16792 main ()
16793 {
16794 return ldap_open ();
16795 ;
16796 return 0;
16797 }
16798 _ACEOF
16799 if ac_fn_c_try_link "$LINENO"; then :
16800 ac_cv_lib_ldap_ldap_open=yes
16801 else
16802 ac_cv_lib_ldap_ldap_open=no
16803 fi
16804 rm -f core conftest.err conftest.$ac_objext \
16805 conftest$ac_exeext conftest.$ac_ext
16806 LIBS=$ac_check_lib_save_LIBS
16807 fi
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5
16809 $as_echo "$ac_cv_lib_ldap_ldap_open" >&6; }
16810 if test "x$ac_cv_lib_ldap_ldap_open" = xyes; then :
16811 LDAP_LIBS="-lldap $LDAP_LIBS"
16812 else
16813 as_fn_error $? "cannot find usable LDAP library" "$LINENO" 5
16814 fi
16815
16816 CPPFLAGS="$rra_ldap_save_CPPFLAGS"
16817 LDFLAGS="$rra_ldap_save_LDFLAGS"
16818 LIBS="$rra_ldap_save_LIBS"
16819
16820 save_LIBS="$LIBS"
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16822 $as_echo_n "checking for library containing dlopen... " >&6; }
16823 if ${ac_cv_search_dlopen+:} false; then :
16824 $as_echo_n "(cached) " >&6
16825 else
16826 ac_func_search_save_LIBS=$LIBS
16827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16828 /* end confdefs.h. */
16829
16830 /* Override any GCC internal prototype to avoid an error.
16831 Use char because int might match the return type of a GCC
16832 builtin and then its argument prototype would still apply. */
16833 #ifdef __cplusplus
16834 extern "C"
16835 #endif
16836 char dlopen ();
16837 int
16838 main ()
16839 {
16840 return dlopen ();
16841 ;
16842 return 0;
16843 }
16844 _ACEOF
16845 for ac_lib in '' dl; do
16846 if test -z "$ac_lib"; then
16847 ac_res="none required"
16848 else
16849 ac_res=-l$ac_lib
16850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16851 fi
16852 if ac_fn_c_try_link "$LINENO"; then :
16853 ac_cv_search_dlopen=$ac_res
16854 fi
16855 rm -f core conftest.err conftest.$ac_objext \
16856 conftest$ac_exeext
16857 if ${ac_cv_search_dlopen+:} false; then :
16858 break
16859 fi
16860 done
16861 if ${ac_cv_search_dlopen+:} false; then :
16862
16863 else
16864 ac_cv_search_dlopen=no
16865 fi
16866 rm conftest.$ac_ext
16867 LIBS=$ac_func_search_save_LIBS
16868 fi
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16870 $as_echo "$ac_cv_search_dlopen" >&6; }
16871 ac_res=$ac_cv_search_dlopen
16872 if test "$ac_res" != no; then :
16873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16874 DL_LIBS="$LIBS"
16875 fi
16876
16877 LIBS="$save_LIBS"
16878
16879
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16881 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16882 if ${ac_cv_header_stdbool_h+:} false; then :
16883 $as_echo_n "(cached) " >&6
16884 else
16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h. */
16887
16888 #include <stdbool.h>
16889 #ifndef bool
16890 "error: bool is not defined"
16891 #endif
16892 #ifndef false
16893 "error: false is not defined"
16894 #endif
16895 #if false
16896 "error: false is not 0"
16897 #endif
16898 #ifndef true
16899 "error: true is not defined"
16900 #endif
16901 #if true != 1
16902 "error: true is not 1"
16903 #endif
16904 #ifndef __bool_true_false_are_defined
16905 "error: __bool_true_false_are_defined is not defined"
16906 #endif
16907
16908 struct s { _Bool s: 1; _Bool t; } s;
16909
16910 char a[true == 1 ? 1 : -1];
16911 char b[false == 0 ? 1 : -1];
16912 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16913 char d[(bool) 0.5 == true ? 1 : -1];
16914 /* See body of main program for 'e'. */
16915 char f[(_Bool) 0.0 == false ? 1 : -1];
16916 char g[true];
16917 char h[sizeof (_Bool)];
16918 char i[sizeof s.t];
16919 enum { j = false, k = true, l = false * true, m = true * 256 };
16920 /* The following fails for
16921 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16922 _Bool n[m];
16923 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16924 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16925 /* Catch a bug in an HP-UX C compiler. See
16926 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16927 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16928 */
16929 _Bool q = true;
16930 _Bool *pq = &q;
16931
16932 int
16933 main ()
16934 {
16935
16936 bool e = &s;
16937 *pq |= q;
16938 *pq |= ! q;
16939 /* Refer to every declared value, to avoid compiler optimizations. */
16940 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16941 + !m + !n + !o + !p + !q + !pq);
16942
16943 ;
16944 return 0;
16945 }
16946 _ACEOF
16947 if ac_fn_c_try_compile "$LINENO"; then :
16948 ac_cv_header_stdbool_h=yes
16949 else
16950 ac_cv_header_stdbool_h=no
16951 fi
16952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16953 fi
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16955 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16956 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16957 if test "x$ac_cv_type__Bool" = xyes; then :
16958
16959 cat >>confdefs.h <<_ACEOF
16960 #define HAVE__BOOL 1
16961 _ACEOF
16962
16963
16964 fi
16965
16966
16967 if test $ac_cv_header_stdbool_h = yes; then
16968
16969 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
16970
16971 fi
16972
16973 for ac_header in sys/bittypes.h sys/select.h sys/time.h syslog.h
16974 do :
16975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16976 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16977 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16978 cat >>confdefs.h <<_ACEOF
16979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16980 _ACEOF
16981
16982 fi
16983
16984 done
16985
16986 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
16987 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
16988 ac_have_decl=1
16989 else
16990 ac_have_decl=0
16991 fi
16992
16993 cat >>confdefs.h <<_ACEOF
16994 #define HAVE_DECL_SNPRINTF $ac_have_decl
16995 _ACEOF
16996 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
16997 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
16998 ac_have_decl=1
16999 else
17000 ac_have_decl=0
17001 fi
17002
17003 cat >>confdefs.h <<_ACEOF
17004 #define HAVE_DECL_VSNPRINTF $ac_have_decl
17005 _ACEOF
17006
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variadic macros" >&5
17008 $as_echo_n "checking for C99 variadic macros... " >&6; }
17009 if ${rra_cv_c_c99_vamacros+:} false; then :
17010 $as_echo_n "(cached) " >&6
17011 else
17012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013 /* end confdefs.h. */
17014
17015 #include <stdio.h>
17016 #define error(...) fprintf(stderr, __VA_ARGS__)
17017
17018 int
17019 main(void) {
17020 error("foo");
17021 error("foo %d", 0);
17022 return 0;
17023 }
17024
17025 _ACEOF
17026 if ac_fn_c_try_compile "$LINENO"; then :
17027 rra_cv_c_c99_vamacros=yes
17028 else
17029 rra_cv_c_c99_vamacros=no
17030 fi
17031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17032 fi
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_c99_vamacros" >&5
17034 $as_echo "$rra_cv_c_c99_vamacros" >&6; }
17035 if test x"$rra_cv_c_c99_vamacros" = xyes; then :
17036
17037 $as_echo "#define HAVE_C99_VAMACROS 1" >>confdefs.h
17038
17039 fi
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU-style variadic macros" >&5
17041 $as_echo_n "checking for GNU-style variadic macros... " >&6; }
17042 if ${rra_cv_c_gnu_vamacros+:} false; then :
17043 $as_echo_n "(cached) " >&6
17044 else
17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h. */
17047
17048 #include <stdio.h>
17049 #define error(args...) fprintf(stderr, args)
17050
17051 int
17052 main(void) {
17053 error("foo");
17054 error("foo %d", 0);
17055 return 0;
17056 }
17057
17058 _ACEOF
17059 if ac_fn_c_try_compile "$LINENO"; then :
17060 rra_cv_c_gnu_vamacros=yes
17061 else
17062 rra_cv_c_gnu_vamacros=no
17063 fi
17064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17065 fi
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_gnu_vamacros" >&5
17067 $as_echo "$rra_cv_c_gnu_vamacros" >&6; }
17068 if test x"$rra_cv_c_gnu_vamacros" = xyes; then :
17069
17070 $as_echo "#define HAVE_GNU_VAMACROS 1" >>confdefs.h
17071
17072 fi
17073
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17075 $as_echo_n "checking for unsigned long long int... " >&6; }
17076 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17077 $as_echo_n "(cached) " >&6
17078 else
17079 ac_cv_type_unsigned_long_long_int=yes
17080 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h. */
17083
17084 /* For now, do not test the preprocessor; as of 2007 there are too many
17085 implementations with broken preprocessors. Perhaps this can
17086 be revisited in 2012. In the meantime, code should not expect
17087 #if to work with literals wider than 32 bits. */
17088 /* Test literals. */
17089 long long int ll = 9223372036854775807ll;
17090 long long int nll = -9223372036854775807LL;
17091 unsigned long long int ull = 18446744073709551615ULL;
17092 /* Test constant expressions. */
17093 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17094 ? 1 : -1)];
17095 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17096 ? 1 : -1)];
17097 int i = 63;
17098 int
17099 main ()
17100 {
17101 /* Test availability of runtime routines for shift and division. */
17102 long long int llmax = 9223372036854775807ll;
17103 unsigned long long int ullmax = 18446744073709551615ull;
17104 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17105 | (llmax / ll) | (llmax % ll)
17106 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17107 | (ullmax / ull) | (ullmax % ull));
17108 ;
17109 return 0;
17110 }
17111
17112 _ACEOF
17113 if ac_fn_c_try_link "$LINENO"; then :
17114
17115 else
17116 ac_cv_type_unsigned_long_long_int=no
17117 fi
17118 rm -f core conftest.err conftest.$ac_objext \
17119 conftest$ac_exeext conftest.$ac_ext
17120 fi
17121 fi
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17123 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17124 if test $ac_cv_type_unsigned_long_long_int = yes; then
17125
17126 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17127
17128 fi
17129
17130
17131
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17133 $as_echo_n "checking for long long int... " >&6; }
17134 if ${ac_cv_type_long_long_int+:} false; then :
17135 $as_echo_n "(cached) " >&6
17136 else
17137 ac_cv_type_long_long_int=yes
17138 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17139 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17140 if test $ac_cv_type_long_long_int = yes; then
17141 if test "$cross_compiling" = yes; then :
17142 :
17143 else
17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17145 /* end confdefs.h. */
17146 #include <limits.h>
17147 #ifndef LLONG_MAX
17148 # define HALF \
17149 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17150 # define LLONG_MAX (HALF - 1 + HALF)
17151 #endif
17152 int
17153 main ()
17154 {
17155 long long int n = 1;
17156 int i;
17157 for (i = 0; ; i++)
17158 {
17159 long long int m = n << i;
17160 if (m >> i != n)
17161 return 1;
17162 if (LLONG_MAX / 2 < m)
17163 break;
17164 }
17165 return 0;
17166 ;
17167 return 0;
17168 }
17169 _ACEOF
17170 if ac_fn_c_try_run "$LINENO"; then :
17171
17172 else
17173 ac_cv_type_long_long_int=no
17174 fi
17175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17176 conftest.$ac_objext conftest.beam conftest.$ac_ext
17177 fi
17178
17179 fi
17180 fi
17181 fi
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17183 $as_echo "$ac_cv_type_long_long_int" >&6; }
17184 if test $ac_cv_type_long_long_int = yes; then
17185
17186 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17187
17188 fi
17189
17190 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17191 case $ac_cv_c_uint32_t in #(
17192 no|yes) ;; #(
17193 *)
17194
17195 $as_echo "#define _UINT32_T 1" >>confdefs.h
17196
17197
17198 cat >>confdefs.h <<_ACEOF
17199 #define uint32_t $ac_cv_c_uint32_t
17200 _ACEOF
17201 ;;
17202 esac
17203
17204 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
17205 "
17206 if test "x$ac_cv_type_ssize_t" = xyes; then :
17207
17208 cat >>confdefs.h <<_ACEOF
17209 #define HAVE_SSIZE_T 1
17210 _ACEOF
17211
17212
17213 fi
17214
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
17216 $as_echo_n "checking for working snprintf... " >&6; }
17217 if ${rra_cv_func_snprintf_works+:} false; then :
17218 $as_echo_n "(cached) " >&6
17219 else
17220 if test "$cross_compiling" = yes; then :
17221 rra_cv_func_snprintf_works=no
17222 else
17223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17224 /* end confdefs.h. */
17225
17226 #include <stdio.h>
17227 #include <stdarg.h>
17228
17229 char buf[2];
17230
17231 int
17232 test(char *format, ...)
17233 {
17234 va_list args;
17235 int count;
17236
17237 va_start(args, format);
17238 count = vsnprintf(buf, sizeof buf, format, args);
17239 va_end(args);
17240 return count;
17241 }
17242
17243 int
17244 main()
17245 {
17246 return ((test("%s", "abcd") == 4 && buf[0] == 'a' && buf[1] == '\0'
17247 && snprintf(NULL, 0, "%s", "abcd") == 4) ? 0 : 1);
17248 }
17249
17250 _ACEOF
17251 if ac_fn_c_try_run "$LINENO"; then :
17252 rra_cv_func_snprintf_works=yes
17253 else
17254 rra_cv_func_snprintf_works=no
17255 fi
17256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17257 conftest.$ac_objext conftest.beam conftest.$ac_ext
17258 fi
17259
17260 fi
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_snprintf_works" >&5
17262 $as_echo "$rra_cv_func_snprintf_works" >&6; }
17263 if test x"$rra_cv_func_snprintf_works" = xyes; then :
17264
17265 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17266
17267 else
17268 case " $LIBOBJS " in
17269 *" snprintf.$ac_objext "* ) ;;
17270 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17271 ;;
17272 esac
17273
17274 fi
17275 for ac_func in setrlimit
17276 do :
17277 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
17278 if test "x$ac_cv_func_setrlimit" = xyes; then :
17279 cat >>confdefs.h <<_ACEOF
17280 #define HAVE_SETRLIMIT 1
17281 _ACEOF
17282
17283 fi
17284 done
17285
17286 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
17287 if test "x$ac_cv_func_asprintf" = xyes; then :
17288 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
17289
17290 else
17291 case " $LIBOBJS " in
17292 *" asprintf.$ac_objext "* ) ;;
17293 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
17294 ;;
17295 esac
17296
17297 fi
17298
17299 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
17300 if test "x$ac_cv_func_mkstemp" = xyes; then :
17301 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
17302
17303 else
17304 case " $LIBOBJS " in
17305 *" mkstemp.$ac_objext "* ) ;;
17306 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
17307 ;;
17308 esac
17309
17310 fi
17311
17312 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
17313 if test "x$ac_cv_func_reallocarray" = xyes; then :
17314 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
17315
17316 else
17317 case " $LIBOBJS " in
17318 *" reallocarray.$ac_objext "* ) ;;
17319 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
17320 ;;
17321 esac
17322
17323 fi
17324
17325 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
17326 if test "x$ac_cv_func_strndup" = xyes; then :
17327 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
17328
17329 else
17330 case " $LIBOBJS " in
17331 *" strndup.$ac_objext "* ) ;;
17332 *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
17333 ;;
17334 esac
17335
17336 fi
17337
17338
17339
17340 ac_config_files="$ac_config_files Makefile"
17341
17342 ac_config_headers="$ac_config_headers config.h"
17343
17344 cat >confcache <<\_ACEOF
17345 # This file is a shell script that caches the results of configure
17346 # tests run on this system so they can be shared between configure
17347 # scripts and configure runs, see configure's option --config-cache.
17348 # It is not useful on other systems. If it contains results you don't
17349 # want to keep, you may remove or edit it.
17350 #
17351 # config.status only pays attention to the cache file if you give it
17352 # the --recheck option to rerun configure.
17353 #
17354 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17355 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17356 # following values.
17357
17358 _ACEOF
17359
17360 # The following way of writing the cache mishandles newlines in values,
17361 # but we know of no workaround that is simple, portable, and efficient.
17362 # So, we kill variables containing newlines.
17363 # Ultrix sh set writes to stderr and can't be redirected directly,
17364 # and sets the high bit in the cache file unless we assign to the vars.
17365 (
17366 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17367 eval ac_val=\$$ac_var
17368 case $ac_val in #(
17369 *${as_nl}*)
17370 case $ac_var in #(
17371 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17372 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17373 esac
17374 case $ac_var in #(
17375 _ | IFS | as_nl) ;; #(
17376 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17377 *) { eval $ac_var=; unset $ac_var;} ;;
17378 esac ;;
17379 esac
17380 done
17381
17382 (set) 2>&1 |
17383 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17384 *${as_nl}ac_space=\ *)
17385 # `set' does not quote correctly, so add quotes: double-quote
17386 # substitution turns \\\\ into \\, and sed turns \\ into \.
17387 sed -n \
17388 "s/'/'\\\\''/g;
17389 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17390 ;; #(
17391 *)
17392 # `set' quotes correctly as required by POSIX, so do not add quotes.
17393 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17394 ;;
17395 esac |
17396 sort
17397 ) |
17398 sed '
17399 /^ac_cv_env_/b end
17400 t clear
17401 :clear
17402 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17403 t end
17404 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17405 :end' >>confcache
17406 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17407 if test -w "$cache_file"; then
17408 if test "x$cache_file" != "x/dev/null"; then
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17410 $as_echo "$as_me: updating cache $cache_file" >&6;}
17411 if test ! -f "$cache_file" || test -h "$cache_file"; then
17412 cat confcache >"$cache_file"
17413 else
17414 case $cache_file in #(
17415 */* | ?:*)
17416 mv -f confcache "$cache_file"$$ &&
17417 mv -f "$cache_file"$$ "$cache_file" ;; #(
17418 *)
17419 mv -f confcache "$cache_file" ;;
17420 esac
17421 fi
17422 fi
17423 else
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17425 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17426 fi
17427 fi
17428 rm -f confcache
17429
17430 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17431 # Let make expand exec_prefix.
17432 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17433
17434 DEFS=-DHAVE_CONFIG_H
17435
17436 ac_libobjs=
17437 ac_ltlibobjs=
17438 U=
17439 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17440 # 1. Remove the extension, and $U if already installed.
17441 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17442 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17443 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17444 # will be set to the directory where LIBOBJS objects are built.
17445 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17446 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17447 done
17448 LIBOBJS=$ac_libobjs
17449
17450 LTLIBOBJS=$ac_ltlibobjs
17451
17452
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17454 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17455 if test -n "$am_sleep_pid"; then
17456 # Hide warnings about reused PIDs.
17457 wait $am_sleep_pid 2>/dev/null
17458 fi
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17460 $as_echo "done" >&6; }
17461 if test -n "$EXEEXT"; then
17462 am__EXEEXT_TRUE=
17463 am__EXEEXT_FALSE='#'
17464 else
17465 am__EXEEXT_TRUE='#'
17466 am__EXEEXT_FALSE=
17467 fi
17468
17469 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17470 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17472 fi
17473 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17474 as_fn_error $? "conditional \"AMDEP\" was never defined.
17475 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17476 fi
17477 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17478 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17479 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17480 fi
17481 if test -z "${KRB5_USES_COM_ERR_TRUE}" && test -z "${KRB5_USES_COM_ERR_FALSE}"; then
17482 as_fn_error $? "conditional \"KRB5_USES_COM_ERR\" was never defined.
17483 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17484 fi
17485
17486 : "${CONFIG_STATUS=./config.status}"
17487 ac_write_fail=0
17488 ac_clean_files_save=$ac_clean_files
17489 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17491 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17492 as_write_fail=0
17493 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17494 #! $SHELL
17495 # Generated by $as_me.
17496 # Run this file to recreate the current configuration.
17497 # Compiler output produced by configure, useful for debugging
17498 # configure, is in config.log if it exists.
17499
17500 debug=false
17501 ac_cs_recheck=false
17502 ac_cs_silent=false
17503
17504 SHELL=\${CONFIG_SHELL-$SHELL}
17505 export SHELL
17506 _ASEOF
17507 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17508 ## -------------------- ##
17509 ## M4sh Initialization. ##
17510 ## -------------------- ##
17511
17512 # Be more Bourne compatible
17513 DUALCASE=1; export DUALCASE # for MKS sh
17514 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17515 emulate sh
17516 NULLCMD=:
17517 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17518 # is contrary to our usage. Disable this feature.
17519 alias -g '${1+"$@"}'='"$@"'
17520 setopt NO_GLOB_SUBST
17521 else
17522 case `(set -o) 2>/dev/null` in #(
17523 *posix*) :
17524 set -o posix ;; #(
17525 *) :
17526 ;;
17527 esac
17528 fi
17529
17530
17531 as_nl='
17532 '
17533 export as_nl
17534 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17535 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17536 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17537 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17538 # Prefer a ksh shell builtin over an external printf program on Solaris,
17539 # but without wasting forks for bash or zsh.
17540 if test -z "$BASH_VERSION$ZSH_VERSION" \
17541 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17542 as_echo='print -r --'
17543 as_echo_n='print -rn --'
17544 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17545 as_echo='printf %s\n'
17546 as_echo_n='printf %s'
17547 else
17548 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17549 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17550 as_echo_n='/usr/ucb/echo -n'
17551 else
17552 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17553 as_echo_n_body='eval
17554 arg=$1;
17555 case $arg in #(
17556 *"$as_nl"*)
17557 expr "X$arg" : "X\\(.*\\)$as_nl";
17558 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17559 esac;
17560 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17561 '
17562 export as_echo_n_body
17563 as_echo_n='sh -c $as_echo_n_body as_echo'
17564 fi
17565 export as_echo_body
17566 as_echo='sh -c $as_echo_body as_echo'
17567 fi
17568
17569 # The user is always right.
17570 if test "${PATH_SEPARATOR+set}" != set; then
17571 PATH_SEPARATOR=:
17572 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17573 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17574 PATH_SEPARATOR=';'
17575 }
17576 fi
17577
17578
17579 # IFS
17580 # We need space, tab and new line, in precisely that order. Quoting is
17581 # there to prevent editors from complaining about space-tab.
17582 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17583 # splitting by setting IFS to empty value.)
17584 IFS=" "" $as_nl"
17585
17586 # Find who we are. Look in the path if we contain no directory separator.
17587 as_myself=
17588 case $0 in #((
17589 *[\\/]* ) as_myself=$0 ;;
17590 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17591 for as_dir in $PATH
17592 do
17593 IFS=$as_save_IFS
17594 test -z "$as_dir" && as_dir=.
17595 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17596 done
17597 IFS=$as_save_IFS
17598
17599 ;;
17600 esac
17601 # We did not find ourselves, most probably we were run as `sh COMMAND'
17602 # in which case we are not to be found in the path.
17603 if test "x$as_myself" = x; then
17604 as_myself=$0
17605 fi
17606 if test ! -f "$as_myself"; then
17607 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17608 exit 1
17609 fi
17610
17611 # Unset variables that we do not need and which cause bugs (e.g. in
17612 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17613 # suppresses any "Segmentation fault" message there. '((' could
17614 # trigger a bug in pdksh 5.2.14.
17615 for as_var in BASH_ENV ENV MAIL MAILPATH
17616 do eval test x\${$as_var+set} = xset \
17617 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17618 done
17619 PS1='$ '
17620 PS2='> '
17621 PS4='+ '
17622
17623 # NLS nuisances.
17624 LC_ALL=C
17625 export LC_ALL
17626 LANGUAGE=C
17627 export LANGUAGE
17628
17629 # CDPATH.
17630 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17631
17632
17633 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17634 # ----------------------------------------
17635 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17636 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17637 # script with STATUS, using 1 if that was 0.
17638 as_fn_error ()
17639 {
17640 as_status=$1; test $as_status -eq 0 && as_status=1
17641 if test "$4"; then
17642 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17643 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17644 fi
17645 $as_echo "$as_me: error: $2" >&2
17646 as_fn_exit $as_status
17647 } # as_fn_error
17648
17649
17650 # as_fn_set_status STATUS
17651 # -----------------------
17652 # Set $? to STATUS, without forking.
17653 as_fn_set_status ()
17654 {
17655 return $1
17656 } # as_fn_set_status
17657
17658 # as_fn_exit STATUS
17659 # -----------------
17660 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17661 as_fn_exit ()
17662 {
17663 set +e
17664 as_fn_set_status $1
17665 exit $1
17666 } # as_fn_exit
17667
17668 # as_fn_unset VAR
17669 # ---------------
17670 # Portably unset VAR.
17671 as_fn_unset ()
17672 {
17673 { eval $1=; unset $1;}
17674 }
17675 as_unset=as_fn_unset
17676 # as_fn_append VAR VALUE
17677 # ----------------------
17678 # Append the text in VALUE to the end of the definition contained in VAR. Take
17679 # advantage of any shell optimizations that allow amortized linear growth over
17680 # repeated appends, instead of the typical quadratic growth present in naive
17681 # implementations.
17682 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17683 eval 'as_fn_append ()
17684 {
17685 eval $1+=\$2
17686 }'
17687 else
17688 as_fn_append ()
17689 {
17690 eval $1=\$$1\$2
17691 }
17692 fi # as_fn_append
17693
17694 # as_fn_arith ARG...
17695 # ------------------
17696 # Perform arithmetic evaluation on the ARGs, and store the result in the
17697 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17698 # must be portable across $(()) and expr.
17699 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17700 eval 'as_fn_arith ()
17701 {
17702 as_val=$(( $* ))
17703 }'
17704 else
17705 as_fn_arith ()
17706 {
17707 as_val=`expr "$@" || test $? -eq 1`
17708 }
17709 fi # as_fn_arith
17710
17711
17712 if expr a : '\(a\)' >/dev/null 2>&1 &&
17713 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17714 as_expr=expr
17715 else
17716 as_expr=false
17717 fi
17718
17719 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17720 as_basename=basename
17721 else
17722 as_basename=false
17723 fi
17724
17725 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17726 as_dirname=dirname
17727 else
17728 as_dirname=false
17729 fi
17730
17731 as_me=`$as_basename -- "$0" ||
17732 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17733 X"$0" : 'X\(//\)$' \| \
17734 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17735 $as_echo X/"$0" |
17736 sed '/^.*\/\([^/][^/]*\)\/*$/{
17737 s//\1/
17738 q
17739 }
17740 /^X\/\(\/\/\)$/{
17741 s//\1/
17742 q
17743 }
17744 /^X\/\(\/\).*/{
17745 s//\1/
17746 q
17747 }
17748 s/.*/./; q'`
17749
17750 # Avoid depending upon Character Ranges.
17751 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17752 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17753 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17754 as_cr_digits='0123456789'
17755 as_cr_alnum=$as_cr_Letters$as_cr_digits
17756
17757 ECHO_C= ECHO_N= ECHO_T=
17758 case `echo -n x` in #(((((
17759 -n*)
17760 case `echo 'xy\c'` in
17761 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17762 xy) ECHO_C='\c';;
17763 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17764 ECHO_T=' ';;
17765 esac;;
17766 *)
17767 ECHO_N='-n';;
17768 esac
17769
17770 rm -f conf$$ conf$$.exe conf$$.file
17771 if test -d conf$$.dir; then
17772 rm -f conf$$.dir/conf$$.file
17773 else
17774 rm -f conf$$.dir
17775 mkdir conf$$.dir 2>/dev/null
17776 fi
17777 if (echo >conf$$.file) 2>/dev/null; then
17778 if ln -s conf$$.file conf$$ 2>/dev/null; then
17779 as_ln_s='ln -s'
17780 # ... but there are two gotchas:
17781 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17782 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17783 # In both cases, we have to default to `cp -pR'.
17784 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17785 as_ln_s='cp -pR'
17786 elif ln conf$$.file conf$$ 2>/dev/null; then
17787 as_ln_s=ln
17788 else
17789 as_ln_s='cp -pR'
17790 fi
17791 else
17792 as_ln_s='cp -pR'
17793 fi
17794 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17795 rmdir conf$$.dir 2>/dev/null
17796
17797
17798 # as_fn_mkdir_p
17799 # -------------
17800 # Create "$as_dir" as a directory, including parents if necessary.
17801 as_fn_mkdir_p ()
17802 {
17803
17804 case $as_dir in #(
17805 -*) as_dir=./$as_dir;;
17806 esac
17807 test -d "$as_dir" || eval $as_mkdir_p || {
17808 as_dirs=
17809 while :; do
17810 case $as_dir in #(
17811 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17812 *) as_qdir=$as_dir;;
17813 esac
17814 as_dirs="'$as_qdir' $as_dirs"
17815 as_dir=`$as_dirname -- "$as_dir" ||
17816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17817 X"$as_dir" : 'X\(//\)[^/]' \| \
17818 X"$as_dir" : 'X\(//\)$' \| \
17819 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17820 $as_echo X"$as_dir" |
17821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17822 s//\1/
17823 q
17824 }
17825 /^X\(\/\/\)[^/].*/{
17826 s//\1/
17827 q
17828 }
17829 /^X\(\/\/\)$/{
17830 s//\1/
17831 q
17832 }
17833 /^X\(\/\).*/{
17834 s//\1/
17835 q
17836 }
17837 s/.*/./; q'`
17838 test -d "$as_dir" && break
17839 done
17840 test -z "$as_dirs" || eval "mkdir $as_dirs"
17841 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17842
17843
17844 } # as_fn_mkdir_p
17845 if mkdir -p . 2>/dev/null; then
17846 as_mkdir_p='mkdir -p "$as_dir"'
17847 else
17848 test -d ./-p && rmdir ./-p
17849 as_mkdir_p=false
17850 fi
17851
17852
17853 # as_fn_executable_p FILE
17854 # -----------------------
17855 # Test if FILE is an executable regular file.
17856 as_fn_executable_p ()
17857 {
17858 test -f "$1" && test -x "$1"
17859 } # as_fn_executable_p
17860 as_test_x='test -x'
17861 as_executable_p=as_fn_executable_p
17862
17863 # Sed expression to map a string onto a valid CPP name.
17864 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17865
17866 # Sed expression to map a string onto a valid variable name.
17867 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17868
17869
17870 exec 6>&1
17871 ## ----------------------------------- ##
17872 ## Main body of $CONFIG_STATUS script. ##
17873 ## ----------------------------------- ##
17874 _ASEOF
17875 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17876
17877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17878 # Save the log message, to keep $0 and so on meaningful, and to
17879 # report actual input values of CONFIG_FILES etc. instead of their
17880 # values after options handling.
17881 ac_log="
17882 This file was extended by krb5-sync $as_me 3.1, which was
17883 generated by GNU Autoconf 2.69. Invocation command line was
17884
17885 CONFIG_FILES = $CONFIG_FILES
17886 CONFIG_HEADERS = $CONFIG_HEADERS
17887 CONFIG_LINKS = $CONFIG_LINKS
17888 CONFIG_COMMANDS = $CONFIG_COMMANDS
17889 $ $0 $@
17890
17891 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17892 "
17893
17894 _ACEOF
17895
17896 case $ac_config_files in *"
17897 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17898 esac
17899
17900 case $ac_config_headers in *"
17901 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17902 esac
17903
17904
17905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17906 # Files that config.status was made for.
17907 config_files="$ac_config_files"
17908 config_headers="$ac_config_headers"
17909 config_commands="$ac_config_commands"
17910
17911 _ACEOF
17912
17913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17914 ac_cs_usage="\
17915 \`$as_me' instantiates files and other configuration actions
17916 from templates according to the current configuration. Unless the files
17917 and actions are specified as TAGs, all are instantiated by default.
17918
17919 Usage: $0 [OPTION]... [TAG]...
17920
17921 -h, --help print this help, then exit
17922 -V, --version print version number and configuration settings, then exit
17923 --config print configuration, then exit
17924 -q, --quiet, --silent
17925 do not print progress messages
17926 -d, --debug don't remove temporary files
17927 --recheck update $as_me by reconfiguring in the same conditions
17928 --file=FILE[:TEMPLATE]
17929 instantiate the configuration file FILE
17930 --header=FILE[:TEMPLATE]
17931 instantiate the configuration header FILE
17932
17933 Configuration files:
17934 $config_files
17935
17936 Configuration headers:
17937 $config_headers
17938
17939 Configuration commands:
17940 $config_commands
17941
17942 Report bugs to <[email protected]>."
17943
17944 _ACEOF
17945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17946 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17947 ac_cs_version="\\
17948 krb5-sync config.status 3.1
17949 configured by $0, generated by GNU Autoconf 2.69,
17950 with options \\"\$ac_cs_config\\"
17951
17952 Copyright (C) 2012 Free Software Foundation, Inc.
17953 This config.status script is free software; the Free Software Foundation
17954 gives unlimited permission to copy, distribute and modify it."
17955
17956 ac_pwd='$ac_pwd'
17957 srcdir='$srcdir'
17958 INSTALL='$INSTALL'
17959 MKDIR_P='$MKDIR_P'
17960 AWK='$AWK'
17961 test -n "\$AWK" || AWK=awk
17962 _ACEOF
17963
17964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17965 # The default lists apply if the user does not specify any file.
17966 ac_need_defaults=:
17967 while test $# != 0
17968 do
17969 case $1 in
17970 --*=?*)
17971 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17972 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17973 ac_shift=:
17974 ;;
17975 --*=)
17976 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17977 ac_optarg=
17978 ac_shift=:
17979 ;;
17980 *)
17981 ac_option=$1
17982 ac_optarg=$2
17983 ac_shift=shift
17984 ;;
17985 esac
17986
17987 case $ac_option in
17988 # Handling of the options.
17989 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17990 ac_cs_recheck=: ;;
17991 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17992 $as_echo "$ac_cs_version"; exit ;;
17993 --config | --confi | --conf | --con | --co | --c )
17994 $as_echo "$ac_cs_config"; exit ;;
17995 --debug | --debu | --deb | --de | --d | -d )
17996 debug=: ;;
17997 --file | --fil | --fi | --f )
17998 $ac_shift
17999 case $ac_optarg in
18000 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18001 '') as_fn_error $? "missing file argument" ;;
18002 esac
18003 as_fn_append CONFIG_FILES " '$ac_optarg'"
18004 ac_need_defaults=false;;
18005 --header | --heade | --head | --hea )
18006 $ac_shift
18007 case $ac_optarg in
18008 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18009 esac
18010 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18011 ac_need_defaults=false;;
18012 --he | --h)
18013 # Conflict between --help and --header
18014 as_fn_error $? "ambiguous option: \`$1'
18015 Try \`$0 --help' for more information.";;
18016 --help | --hel | -h )
18017 $as_echo "$ac_cs_usage"; exit ;;
18018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18019 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18020 ac_cs_silent=: ;;
18021
18022 # This is an error.
18023 -*) as_fn_error $? "unrecognized option: \`$1'
18024 Try \`$0 --help' for more information." ;;
18025
18026 *) as_fn_append ac_config_targets " $1"
18027 ac_need_defaults=false ;;
18028
18029 esac
18030 shift
18031 done
18032
18033 ac_configure_extra_args=
18034
18035 if $ac_cs_silent; then
18036 exec 6>/dev/null
18037 ac_configure_extra_args="$ac_configure_extra_args --silent"
18038 fi
18039
18040 _ACEOF
18041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18042 if \$ac_cs_recheck; then
18043 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18044 shift
18045 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18046 CONFIG_SHELL='$SHELL'
18047 export CONFIG_SHELL
18048 exec "\$@"
18049 fi
18050
18051 _ACEOF
18052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18053 exec 5>>config.log
18054 {
18055 echo
18056 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18057 ## Running $as_me. ##
18058 _ASBOX
18059 $as_echo "$ac_log"
18060 } >&5
18061
18062 _ACEOF
18063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18064 #
18065 # INIT-COMMANDS
18066 #
18067 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18068
18069
18070 # The HP-UX ksh and POSIX shell print the target directory to stdout
18071 # if CDPATH is set.
18072 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18073
18074 sed_quote_subst='$sed_quote_subst'
18075 double_quote_subst='$double_quote_subst'
18076 delay_variable_subst='$delay_variable_subst'
18077 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18078 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18079 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18080 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18081 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18082 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18083 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18084 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18085 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18086 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18087 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18088 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18089 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18090 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18091 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18092 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18093 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18094 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18095 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18096 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18097 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18098 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18099 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18100 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18101 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18102 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18103 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18104 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18105 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18106 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18107 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18108 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18109 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18110 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18111 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18112 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18113 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18114 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18115 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18116 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18117 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18118 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18119 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18120 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18121 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18122 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18123 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18124 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18125 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18126 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18127 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18128 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18129 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18130 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18131 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18132 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18133 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"`'
18134 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18135 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18136 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18137 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18138 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18139 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18140 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18141 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18142 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18143 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18144 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18145 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18146 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18147 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18148 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18149 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18150 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18151 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18152 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18153 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18154 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18155 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18156 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18157 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18158 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18159 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18160 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18161 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18162 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18163 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18164 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18165 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18166 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18167 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18168 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18169 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18170 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18171 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18172 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18173 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18174 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18175 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18176 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18177 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18178 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18179 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18180 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18181 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18182 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18183 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18184 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18185 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18186 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18187 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18188 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18189 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18190 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18191 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18192 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18193 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18194 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18195 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18196 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18197 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18198 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18199 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18200 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18201 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18202 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18203 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18204 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18205 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18206 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18207
18208 LTCC='$LTCC'
18209 LTCFLAGS='$LTCFLAGS'
18210 compiler='$compiler_DEFAULT'
18211
18212 # A function that is used when there is no print builtin or printf.
18213 func_fallback_echo ()
18214 {
18215 eval 'cat <<_LTECHO_EOF
18216 \$1
18217 _LTECHO_EOF'
18218 }
18219
18220 # Quote evaled strings.
18221 for var in SHELL \
18222 ECHO \
18223 PATH_SEPARATOR \
18224 SED \
18225 GREP \
18226 EGREP \
18227 FGREP \
18228 LD \
18229 NM \
18230 LN_S \
18231 lt_SP2NL \
18232 lt_NL2SP \
18233 reload_flag \
18234 OBJDUMP \
18235 deplibs_check_method \
18236 file_magic_cmd \
18237 file_magic_glob \
18238 want_nocaseglob \
18239 DLLTOOL \
18240 sharedlib_from_linklib_cmd \
18241 AR \
18242 AR_FLAGS \
18243 archiver_list_spec \
18244 STRIP \
18245 RANLIB \
18246 CC \
18247 CFLAGS \
18248 compiler \
18249 lt_cv_sys_global_symbol_pipe \
18250 lt_cv_sys_global_symbol_to_cdecl \
18251 lt_cv_sys_global_symbol_to_c_name_address \
18252 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18253 nm_file_list_spec \
18254 lt_prog_compiler_no_builtin_flag \
18255 lt_prog_compiler_pic \
18256 lt_prog_compiler_wl \
18257 lt_prog_compiler_static \
18258 lt_cv_prog_compiler_c_o \
18259 need_locks \
18260 MANIFEST_TOOL \
18261 DSYMUTIL \
18262 NMEDIT \
18263 LIPO \
18264 OTOOL \
18265 OTOOL64 \
18266 shrext_cmds \
18267 export_dynamic_flag_spec \
18268 whole_archive_flag_spec \
18269 compiler_needs_object \
18270 with_gnu_ld \
18271 allow_undefined_flag \
18272 no_undefined_flag \
18273 hardcode_libdir_flag_spec \
18274 hardcode_libdir_separator \
18275 exclude_expsyms \
18276 include_expsyms \
18277 file_list_spec \
18278 variables_saved_for_relink \
18279 libname_spec \
18280 library_names_spec \
18281 soname_spec \
18282 install_override_mode \
18283 finish_eval \
18284 old_striplib \
18285 striplib; do
18286 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18287 *[\\\\\\\`\\"\\\$]*)
18288 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18289 ;;
18290 *)
18291 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18292 ;;
18293 esac
18294 done
18295
18296 # Double-quote double-evaled strings.
18297 for var in reload_cmds \
18298 old_postinstall_cmds \
18299 old_postuninstall_cmds \
18300 old_archive_cmds \
18301 extract_expsyms_cmds \
18302 old_archive_from_new_cmds \
18303 old_archive_from_expsyms_cmds \
18304 archive_cmds \
18305 archive_expsym_cmds \
18306 module_cmds \
18307 module_expsym_cmds \
18308 export_symbols_cmds \
18309 prelink_cmds \
18310 postlink_cmds \
18311 postinstall_cmds \
18312 postuninstall_cmds \
18313 finish_cmds \
18314 sys_lib_search_path_spec \
18315 sys_lib_dlsearch_path_spec; do
18316 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18317 *[\\\\\\\`\\"\\\$]*)
18318 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18319 ;;
18320 *)
18321 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18322 ;;
18323 esac
18324 done
18325
18326 ac_aux_dir='$ac_aux_dir'
18327 xsi_shell='$xsi_shell'
18328 lt_shell_append='$lt_shell_append'
18329
18330 # See if we are running on zsh, and set the options which allow our
18331 # commands through without removal of \ escapes INIT.
18332 if test -n "\${ZSH_VERSION+set}" ; then
18333 setopt NO_GLOB_SUBST
18334 fi
18335
18336
18337 PACKAGE='$PACKAGE'
18338 VERSION='$VERSION'
18339 TIMESTAMP='$TIMESTAMP'
18340 RM='$RM'
18341 ofile='$ofile'
18342
18343
18344
18345
18346 _ACEOF
18347
18348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18349
18350 # Handling of arguments.
18351 for ac_config_target in $ac_config_targets
18352 do
18353 case $ac_config_target in
18354 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18355 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18356 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18357 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18358
18359 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18360 esac
18361 done
18362
18363
18364 # If the user did not use the arguments to specify the items to instantiate,
18365 # then the envvar interface is used. Set only those that are not.
18366 # We use the long form for the default assignment because of an extremely
18367 # bizarre bug on SunOS 4.1.3.
18368 if $ac_need_defaults; then
18369 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18370 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18371 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18372 fi
18373
18374 # Have a temporary directory for convenience. Make it in the build tree
18375 # simply because there is no reason against having it here, and in addition,
18376 # creating and moving files from /tmp can sometimes cause problems.
18377 # Hook for its removal unless debugging.
18378 # Note that there is a small window in which the directory will not be cleaned:
18379 # after its creation but before its name has been assigned to `$tmp'.
18380 $debug ||
18381 {
18382 tmp= ac_tmp=
18383 trap 'exit_status=$?
18384 : "${ac_tmp:=$tmp}"
18385 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18386 ' 0
18387 trap 'as_fn_exit 1' 1 2 13 15
18388 }
18389 # Create a (secure) tmp directory for tmp files.
18390
18391 {
18392 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18393 test -d "$tmp"
18394 } ||
18395 {
18396 tmp=./conf$$-$RANDOM
18397 (umask 077 && mkdir "$tmp")
18398 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18399 ac_tmp=$tmp
18400
18401 # Set up the scripts for CONFIG_FILES section.
18402 # No need to generate them if there are no CONFIG_FILES.
18403 # This happens for instance with `./config.status config.h'.
18404 if test -n "$CONFIG_FILES"; then
18405
18406
18407 ac_cr=`echo X | tr X '\015'`
18408 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18409 # But we know of no other shell where ac_cr would be empty at this
18410 # point, so we can use a bashism as a fallback.
18411 if test "x$ac_cr" = x; then
18412 eval ac_cr=\$\'\\r\'
18413 fi
18414 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18415 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18416 ac_cs_awk_cr='\\r'
18417 else
18418 ac_cs_awk_cr=$ac_cr
18419 fi
18420
18421 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18422 _ACEOF
18423
18424
18425 {
18426 echo "cat >conf$$subs.awk <<_ACEOF" &&
18427 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18428 echo "_ACEOF"
18429 } >conf$$subs.sh ||
18430 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18431 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18432 ac_delim='%!_!# '
18433 for ac_last_try in false false false false false :; do
18434 . ./conf$$subs.sh ||
18435 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18436
18437 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18438 if test $ac_delim_n = $ac_delim_num; then
18439 break
18440 elif $ac_last_try; then
18441 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18442 else
18443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18444 fi
18445 done
18446 rm -f conf$$subs.sh
18447
18448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18449 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18450 _ACEOF
18451 sed -n '
18452 h
18453 s/^/S["/; s/!.*/"]=/
18454 p
18455 g
18456 s/^[^!]*!//
18457 :repl
18458 t repl
18459 s/'"$ac_delim"'$//
18460 t delim
18461 :nl
18462 h
18463 s/\(.\{148\}\)..*/\1/
18464 t more1
18465 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18466 p
18467 n
18468 b repl
18469 :more1
18470 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18471 p
18472 g
18473 s/.\{148\}//
18474 t nl
18475 :delim
18476 h
18477 s/\(.\{148\}\)..*/\1/
18478 t more2
18479 s/["\\]/\\&/g; s/^/"/; s/$/"/
18480 p
18481 b
18482 :more2
18483 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18484 p
18485 g
18486 s/.\{148\}//
18487 t delim
18488 ' <conf$$subs.awk | sed '
18489 /^[^""]/{
18490 N
18491 s/\n//
18492 }
18493 ' >>$CONFIG_STATUS || ac_write_fail=1
18494 rm -f conf$$subs.awk
18495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18496 _ACAWK
18497 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18498 for (key in S) S_is_set[key] = 1
18499 FS = ""
18500
18501 }
18502 {
18503 line = $ 0
18504 nfields = split(line, field, "@")
18505 substed = 0
18506 len = length(field[1])
18507 for (i = 2; i < nfields; i++) {
18508 key = field[i]
18509 keylen = length(key)
18510 if (S_is_set[key]) {
18511 value = S[key]
18512 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18513 len += length(value) + length(field[++i])
18514 substed = 1
18515 } else
18516 len += 1 + keylen
18517 }
18518
18519 print line
18520 }
18521
18522 _ACAWK
18523 _ACEOF
18524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18525 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18526 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18527 else
18528 cat
18529 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18530 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18531 _ACEOF
18532
18533 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18534 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18535 # trailing colons and then remove the whole line if VPATH becomes empty
18536 # (actually we leave an empty line to preserve line numbers).
18537 if test "x$srcdir" = x.; then
18538 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18539 h
18540 s///
18541 s/^/:/
18542 s/[ ]*$/:/
18543 s/:\$(srcdir):/:/g
18544 s/:\${srcdir}:/:/g
18545 s/:@srcdir@:/:/g
18546 s/^:*//
18547 s/:*$//
18548 x
18549 s/\(=[ ]*\).*/\1/
18550 G
18551 s/\n//
18552 s/^[^=]*=[ ]*$//
18553 }'
18554 fi
18555
18556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18557 fi # test -n "$CONFIG_FILES"
18558
18559 # Set up the scripts for CONFIG_HEADERS section.
18560 # No need to generate them if there are no CONFIG_HEADERS.
18561 # This happens for instance with `./config.status Makefile'.
18562 if test -n "$CONFIG_HEADERS"; then
18563 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18564 BEGIN {
18565 _ACEOF
18566
18567 # Transform confdefs.h into an awk script `defines.awk', embedded as
18568 # here-document in config.status, that substitutes the proper values into
18569 # config.h.in to produce config.h.
18570
18571 # Create a delimiter string that does not exist in confdefs.h, to ease
18572 # handling of long lines.
18573 ac_delim='%!_!# '
18574 for ac_last_try in false false :; do
18575 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18576 if test -z "$ac_tt"; then
18577 break
18578 elif $ac_last_try; then
18579 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18580 else
18581 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18582 fi
18583 done
18584
18585 # For the awk script, D is an array of macro values keyed by name,
18586 # likewise P contains macro parameters if any. Preserve backslash
18587 # newline sequences.
18588
18589 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18590 sed -n '
18591 s/.\{148\}/&'"$ac_delim"'/g
18592 t rset
18593 :rset
18594 s/^[ ]*#[ ]*define[ ][ ]*/ /
18595 t def
18596 d
18597 :def
18598 s/\\$//
18599 t bsnl
18600 s/["\\]/\\&/g
18601 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18602 D["\1"]=" \3"/p
18603 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18604 d
18605 :bsnl
18606 s/["\\]/\\&/g
18607 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18608 D["\1"]=" \3\\\\\\n"\\/p
18609 t cont
18610 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18611 t cont
18612 d
18613 :cont
18614 n
18615 s/.\{148\}/&'"$ac_delim"'/g
18616 t clear
18617 :clear
18618 s/\\$//
18619 t bsnlc
18620 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18621 d
18622 :bsnlc
18623 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18624 b cont
18625 ' <confdefs.h | sed '
18626 s/'"$ac_delim"'/"\\\
18627 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18628
18629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18630 for (key in D) D_is_set[key] = 1
18631 FS = ""
18632 }
18633 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18634 line = \$ 0
18635 split(line, arg, " ")
18636 if (arg[1] == "#") {
18637 defundef = arg[2]
18638 mac1 = arg[3]
18639 } else {
18640 defundef = substr(arg[1], 2)
18641 mac1 = arg[2]
18642 }
18643 split(mac1, mac2, "(") #)
18644 macro = mac2[1]
18645 prefix = substr(line, 1, index(line, defundef) - 1)
18646 if (D_is_set[macro]) {
18647 # Preserve the white space surrounding the "#".
18648 print prefix "define", macro P[macro] D[macro]
18649 next
18650 } else {
18651 # Replace #undef with comments. This is necessary, for example,
18652 # in the case of _POSIX_SOURCE, which is predefined and required
18653 # on some systems where configure will not decide to define it.
18654 if (defundef == "undef") {
18655 print "/*", prefix defundef, macro, "*/"
18656 next
18657 }
18658 }
18659 }
18660 { print }
18661 _ACAWK
18662 _ACEOF
18663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18664 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18665 fi # test -n "$CONFIG_HEADERS"
18666
18667
18668 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18669 shift
18670 for ac_tag
18671 do
18672 case $ac_tag in
18673 :[FHLC]) ac_mode=$ac_tag; continue;;
18674 esac
18675 case $ac_mode$ac_tag in
18676 :[FHL]*:*);;
18677 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18678 :[FH]-) ac_tag=-:-;;
18679 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18680 esac
18681 ac_save_IFS=$IFS
18682 IFS=:
18683 set x $ac_tag
18684 IFS=$ac_save_IFS
18685 shift
18686 ac_file=$1
18687 shift
18688
18689 case $ac_mode in
18690 :L) ac_source=$1;;
18691 :[FH])
18692 ac_file_inputs=
18693 for ac_f
18694 do
18695 case $ac_f in
18696 -) ac_f="$ac_tmp/stdin";;
18697 *) # Look for the file first in the build tree, then in the source tree
18698 # (if the path is not absolute). The absolute path cannot be DOS-style,
18699 # because $ac_f cannot contain `:'.
18700 test -f "$ac_f" ||
18701 case $ac_f in
18702 [\\/$]*) false;;
18703 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18704 esac ||
18705 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18706 esac
18707 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18708 as_fn_append ac_file_inputs " '$ac_f'"
18709 done
18710
18711 # Let's still pretend it is `configure' which instantiates (i.e., don't
18712 # use $as_me), people would be surprised to read:
18713 # /* config.h. Generated by config.status. */
18714 configure_input='Generated from '`
18715 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18716 `' by configure.'
18717 if test x"$ac_file" != x-; then
18718 configure_input="$ac_file. $configure_input"
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18720 $as_echo "$as_me: creating $ac_file" >&6;}
18721 fi
18722 # Neutralize special characters interpreted by sed in replacement strings.
18723 case $configure_input in #(
18724 *\&* | *\|* | *\\* )
18725 ac_sed_conf_input=`$as_echo "$configure_input" |
18726 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18727 *) ac_sed_conf_input=$configure_input;;
18728 esac
18729
18730 case $ac_tag in
18731 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18732 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18733 esac
18734 ;;
18735 esac
18736
18737 ac_dir=`$as_dirname -- "$ac_file" ||
18738 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18739 X"$ac_file" : 'X\(//\)[^/]' \| \
18740 X"$ac_file" : 'X\(//\)$' \| \
18741 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18742 $as_echo X"$ac_file" |
18743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18744 s//\1/
18745 q
18746 }
18747 /^X\(\/\/\)[^/].*/{
18748 s//\1/
18749 q
18750 }
18751 /^X\(\/\/\)$/{
18752 s//\1/
18753 q
18754 }
18755 /^X\(\/\).*/{
18756 s//\1/
18757 q
18758 }
18759 s/.*/./; q'`
18760 as_dir="$ac_dir"; as_fn_mkdir_p
18761 ac_builddir=.
18762
18763 case "$ac_dir" in
18764 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18765 *)
18766 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18767 # A ".." for each directory in $ac_dir_suffix.
18768 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18769 case $ac_top_builddir_sub in
18770 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18771 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18772 esac ;;
18773 esac
18774 ac_abs_top_builddir=$ac_pwd
18775 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18776 # for backward compatibility:
18777 ac_top_builddir=$ac_top_build_prefix
18778
18779 case $srcdir in
18780 .) # We are building in place.
18781 ac_srcdir=.
18782 ac_top_srcdir=$ac_top_builddir_sub
18783 ac_abs_top_srcdir=$ac_pwd ;;
18784 [\\/]* | ?:[\\/]* ) # Absolute name.
18785 ac_srcdir=$srcdir$ac_dir_suffix;
18786 ac_top_srcdir=$srcdir
18787 ac_abs_top_srcdir=$srcdir ;;
18788 *) # Relative name.
18789 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18790 ac_top_srcdir=$ac_top_build_prefix$srcdir
18791 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18792 esac
18793 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18794
18795
18796 case $ac_mode in
18797 :F)
18798 #
18799 # CONFIG_FILE
18800 #
18801
18802 case $INSTALL in
18803 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18804 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18805 esac
18806 ac_MKDIR_P=$MKDIR_P
18807 case $MKDIR_P in
18808 [\\/$]* | ?:[\\/]* ) ;;
18809 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18810 esac
18811 _ACEOF
18812
18813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18814 # If the template does not know about datarootdir, expand it.
18815 # FIXME: This hack should be removed a few years after 2.60.
18816 ac_datarootdir_hack=; ac_datarootdir_seen=
18817 ac_sed_dataroot='
18818 /datarootdir/ {
18819 p
18820 q
18821 }
18822 /@datadir@/p
18823 /@docdir@/p
18824 /@infodir@/p
18825 /@localedir@/p
18826 /@mandir@/p'
18827 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18828 *datarootdir*) ac_datarootdir_seen=yes;;
18829 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18831 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18832 _ACEOF
18833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18834 ac_datarootdir_hack='
18835 s&@datadir@&$datadir&g
18836 s&@docdir@&$docdir&g
18837 s&@infodir@&$infodir&g
18838 s&@localedir@&$localedir&g
18839 s&@mandir@&$mandir&g
18840 s&\\\${datarootdir}&$datarootdir&g' ;;
18841 esac
18842 _ACEOF
18843
18844 # Neutralize VPATH when `$srcdir' = `.'.
18845 # Shell code in configure.ac might set extrasub.
18846 # FIXME: do we really want to maintain this feature?
18847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18848 ac_sed_extra="$ac_vpsub
18849 $extrasub
18850 _ACEOF
18851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18852 :t
18853 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18854 s|@configure_input@|$ac_sed_conf_input|;t t
18855 s&@top_builddir@&$ac_top_builddir_sub&;t t
18856 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18857 s&@srcdir@&$ac_srcdir&;t t
18858 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18859 s&@top_srcdir@&$ac_top_srcdir&;t t
18860 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18861 s&@builddir@&$ac_builddir&;t t
18862 s&@abs_builddir@&$ac_abs_builddir&;t t
18863 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18864 s&@INSTALL@&$ac_INSTALL&;t t
18865 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18866 $ac_datarootdir_hack
18867 "
18868 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18869 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18870
18871 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18872 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18873 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18874 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18876 which seems to be undefined. Please make sure it is defined" >&5
18877 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18878 which seems to be undefined. Please make sure it is defined" >&2;}
18879
18880 rm -f "$ac_tmp/stdin"
18881 case $ac_file in
18882 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18883 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18884 esac \
18885 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18886 ;;
18887 :H)
18888 #
18889 # CONFIG_HEADER
18890 #
18891 if test x"$ac_file" != x-; then
18892 {
18893 $as_echo "/* $configure_input */" \
18894 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18895 } >"$ac_tmp/config.h" \
18896 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18897 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18899 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18900 else
18901 rm -f "$ac_file"
18902 mv "$ac_tmp/config.h" "$ac_file" \
18903 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18904 fi
18905 else
18906 $as_echo "/* $configure_input */" \
18907 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18908 || as_fn_error $? "could not create -" "$LINENO" 5
18909 fi
18910 # Compute "$ac_file"'s index in $config_headers.
18911 _am_arg="$ac_file"
18912 _am_stamp_count=1
18913 for _am_header in $config_headers :; do
18914 case $_am_header in
18915 $_am_arg | $_am_arg:* )
18916 break ;;
18917 * )
18918 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18919 esac
18920 done
18921 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18922 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18923 X"$_am_arg" : 'X\(//\)[^/]' \| \
18924 X"$_am_arg" : 'X\(//\)$' \| \
18925 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18926 $as_echo X"$_am_arg" |
18927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18928 s//\1/
18929 q
18930 }
18931 /^X\(\/\/\)[^/].*/{
18932 s//\1/
18933 q
18934 }
18935 /^X\(\/\/\)$/{
18936 s//\1/
18937 q
18938 }
18939 /^X\(\/\).*/{
18940 s//\1/
18941 q
18942 }
18943 s/.*/./; q'`/stamp-h$_am_stamp_count
18944 ;;
18945
18946 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18947 $as_echo "$as_me: executing $ac_file commands" >&6;}
18948 ;;
18949 esac
18950
18951
18952 case $ac_file$ac_mode in
18953 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18954 # Older Autoconf quotes --file arguments for eval, but not when files
18955 # are listed without --file. Let's play safe and only enable the eval
18956 # if we detect the quoting.
18957 case $CONFIG_FILES in
18958 *\'*) eval set x "$CONFIG_FILES" ;;
18959 *) set x $CONFIG_FILES ;;
18960 esac
18961 shift
18962 for mf
18963 do
18964 # Strip MF so we end up with the name of the file.
18965 mf=`echo "$mf" | sed -e 's/:.*$//'`
18966 # Check whether this is an Automake generated Makefile or not.
18967 # We used to match only the files named 'Makefile.in', but
18968 # some people rename them; so instead we look at the file content.
18969 # Grep'ing the first line is not enough: some people post-process
18970 # each Makefile.in and add a new line on top of each file to say so.
18971 # Grep'ing the whole file is not good either: AIX grep has a line
18972 # limit of 2048, but all sed's we know have understand at least 4000.
18973 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18974 dirpart=`$as_dirname -- "$mf" ||
18975 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18976 X"$mf" : 'X\(//\)[^/]' \| \
18977 X"$mf" : 'X\(//\)$' \| \
18978 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18979 $as_echo X"$mf" |
18980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18981 s//\1/
18982 q
18983 }
18984 /^X\(\/\/\)[^/].*/{
18985 s//\1/
18986 q
18987 }
18988 /^X\(\/\/\)$/{
18989 s//\1/
18990 q
18991 }
18992 /^X\(\/\).*/{
18993 s//\1/
18994 q
18995 }
18996 s/.*/./; q'`
18997 else
18998 continue
18999 fi
19000 # Extract the definition of DEPDIR, am__include, and am__quote
19001 # from the Makefile without running 'make'.
19002 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19003 test -z "$DEPDIR" && continue
19004 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19005 test -z "$am__include" && continue
19006 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19007 # Find all dependency output files, they are included files with
19008 # $(DEPDIR) in their names. We invoke sed twice because it is the
19009 # simplest approach to changing $(DEPDIR) to its actual value in the
19010 # expansion.
19011 for file in `sed -n "
19012 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19013 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19014 # Make sure the directory exists.
19015 test -f "$dirpart/$file" && continue
19016 fdir=`$as_dirname -- "$file" ||
19017 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19018 X"$file" : 'X\(//\)[^/]' \| \
19019 X"$file" : 'X\(//\)$' \| \
19020 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19021 $as_echo X"$file" |
19022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19023 s//\1/
19024 q
19025 }
19026 /^X\(\/\/\)[^/].*/{
19027 s//\1/
19028 q
19029 }
19030 /^X\(\/\/\)$/{
19031 s//\1/
19032 q
19033 }
19034 /^X\(\/\).*/{
19035 s//\1/
19036 q
19037 }
19038 s/.*/./; q'`
19039 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19040 # echo "creating $dirpart/$file"
19041 echo '# dummy' > "$dirpart/$file"
19042 done
19043 done
19044 }
19045 ;;
19046 "libtool":C)
19047
19048 # See if we are running on zsh, and set the options which allow our
19049 # commands through without removal of \ escapes.
19050 if test -n "${ZSH_VERSION+set}" ; then
19051 setopt NO_GLOB_SUBST
19052 fi
19053
19054 cfgfile="${ofile}T"
19055 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19056 $RM "$cfgfile"
19057
19058 cat <<_LT_EOF >> "$cfgfile"
19059 #! $SHELL
19060
19061 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19062 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19063 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19064 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19065 #
19066 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19067 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19068 # Foundation, Inc.
19069 # Written by Gordon Matzigkeit, 1996
19070 #
19071 # This file is part of GNU Libtool.
19072 #
19073 # GNU Libtool is free software; you can redistribute it and/or
19074 # modify it under the terms of the GNU General Public License as
19075 # published by the Free Software Foundation; either version 2 of
19076 # the License, or (at your option) any later version.
19077 #
19078 # As a special exception to the GNU General Public License,
19079 # if you distribute this file as part of a program or library that
19080 # is built using GNU Libtool, you may include this file under the
19081 # same distribution terms that you use for the rest of that program.
19082 #
19083 # GNU Libtool is distributed in the hope that it will be useful,
19084 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19085 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19086 # GNU General Public License for more details.
19087 #
19088 # You should have received a copy of the GNU General Public License
19089 # along with GNU Libtool; see the file COPYING. If not, a copy
19090 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19091 # obtained by writing to the Free Software Foundation, Inc.,
19092 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19093
19094
19095 # The names of the tagged configurations supported by this script.
19096 available_tags=""
19097
19098 # ### BEGIN LIBTOOL CONFIG
19099
19100 # Whether or not to build static libraries.
19101 build_old_libs=$enable_static
19102
19103 # Which release of libtool.m4 was used?
19104 macro_version=$macro_version
19105 macro_revision=$macro_revision
19106
19107 # Whether or not to build shared libraries.
19108 build_libtool_libs=$enable_shared
19109
19110 # What type of objects to build.
19111 pic_mode=$pic_mode
19112
19113 # Whether or not to optimize for fast installation.
19114 fast_install=$enable_fast_install
19115
19116 # Shell to use when invoking shell scripts.
19117 SHELL=$lt_SHELL
19118
19119 # An echo program that protects backslashes.
19120 ECHO=$lt_ECHO
19121
19122 # The PATH separator for the build system.
19123 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19124
19125 # The host system.
19126 host_alias=$host_alias
19127 host=$host
19128 host_os=$host_os
19129
19130 # The build system.
19131 build_alias=$build_alias
19132 build=$build
19133 build_os=$build_os
19134
19135 # A sed program that does not truncate output.
19136 SED=$lt_SED
19137
19138 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19139 Xsed="\$SED -e 1s/^X//"
19140
19141 # A grep program that handles long lines.
19142 GREP=$lt_GREP
19143
19144 # An ERE matcher.
19145 EGREP=$lt_EGREP
19146
19147 # A literal string matcher.
19148 FGREP=$lt_FGREP
19149
19150 # A BSD- or MS-compatible name lister.
19151 NM=$lt_NM
19152
19153 # Whether we need soft or hard links.
19154 LN_S=$lt_LN_S
19155
19156 # What is the maximum length of a command?
19157 max_cmd_len=$max_cmd_len
19158
19159 # Object file suffix (normally "o").
19160 objext=$ac_objext
19161
19162 # Executable file suffix (normally "").
19163 exeext=$exeext
19164
19165 # whether the shell understands "unset".
19166 lt_unset=$lt_unset
19167
19168 # turn spaces into newlines.
19169 SP2NL=$lt_lt_SP2NL
19170
19171 # turn newlines into spaces.
19172 NL2SP=$lt_lt_NL2SP
19173
19174 # convert \$build file names to \$host format.
19175 to_host_file_cmd=$lt_cv_to_host_file_cmd
19176
19177 # convert \$build files to toolchain format.
19178 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19179
19180 # An object symbol dumper.
19181 OBJDUMP=$lt_OBJDUMP
19182
19183 # Method to check whether dependent libraries are shared objects.
19184 deplibs_check_method=$lt_deplibs_check_method
19185
19186 # Command to use when deplibs_check_method = "file_magic".
19187 file_magic_cmd=$lt_file_magic_cmd
19188
19189 # How to find potential files when deplibs_check_method = "file_magic".
19190 file_magic_glob=$lt_file_magic_glob
19191
19192 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19193 want_nocaseglob=$lt_want_nocaseglob
19194
19195 # DLL creation program.
19196 DLLTOOL=$lt_DLLTOOL
19197
19198 # Command to associate shared and link libraries.
19199 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19200
19201 # The archiver.
19202 AR=$lt_AR
19203
19204 # Flags to create an archive.
19205 AR_FLAGS=$lt_AR_FLAGS
19206
19207 # How to feed a file listing to the archiver.
19208 archiver_list_spec=$lt_archiver_list_spec
19209
19210 # A symbol stripping program.
19211 STRIP=$lt_STRIP
19212
19213 # Commands used to install an old-style archive.
19214 RANLIB=$lt_RANLIB
19215 old_postinstall_cmds=$lt_old_postinstall_cmds
19216 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19217
19218 # Whether to use a lock for old archive extraction.
19219 lock_old_archive_extraction=$lock_old_archive_extraction
19220
19221 # A C compiler.
19222 LTCC=$lt_CC
19223
19224 # LTCC compiler flags.
19225 LTCFLAGS=$lt_CFLAGS
19226
19227 # Take the output of nm and produce a listing of raw symbols and C names.
19228 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19229
19230 # Transform the output of nm in a proper C declaration.
19231 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19232
19233 # Transform the output of nm in a C name address pair.
19234 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19235
19236 # Transform the output of nm in a C name address pair when lib prefix is needed.
19237 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19238
19239 # Specify filename containing input files for \$NM.
19240 nm_file_list_spec=$lt_nm_file_list_spec
19241
19242 # The root where to search for dependent libraries,and in which our libraries should be installed.
19243 lt_sysroot=$lt_sysroot
19244
19245 # The name of the directory that contains temporary libtool files.
19246 objdir=$objdir
19247
19248 # Used to examine libraries when file_magic_cmd begins with "file".
19249 MAGIC_CMD=$MAGIC_CMD
19250
19251 # Must we lock files when doing compilation?
19252 need_locks=$lt_need_locks
19253
19254 # Manifest tool.
19255 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19256
19257 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19258 DSYMUTIL=$lt_DSYMUTIL
19259
19260 # Tool to change global to local symbols on Mac OS X.
19261 NMEDIT=$lt_NMEDIT
19262
19263 # Tool to manipulate fat objects and archives on Mac OS X.
19264 LIPO=$lt_LIPO
19265
19266 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19267 OTOOL=$lt_OTOOL
19268
19269 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19270 OTOOL64=$lt_OTOOL64
19271
19272 # Old archive suffix (normally "a").
19273 libext=$libext
19274
19275 # Shared library suffix (normally ".so").
19276 shrext_cmds=$lt_shrext_cmds
19277
19278 # The commands to extract the exported symbol list from a shared archive.
19279 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19280
19281 # Variables whose values should be saved in libtool wrapper scripts and
19282 # restored at link time.
19283 variables_saved_for_relink=$lt_variables_saved_for_relink
19284
19285 # Do we need the "lib" prefix for modules?
19286 need_lib_prefix=$need_lib_prefix
19287
19288 # Do we need a version for libraries?
19289 need_version=$need_version
19290
19291 # Library versioning type.
19292 version_type=$version_type
19293
19294 # Shared library runtime path variable.
19295 runpath_var=$runpath_var
19296
19297 # Shared library path variable.
19298 shlibpath_var=$shlibpath_var
19299
19300 # Is shlibpath searched before the hard-coded library search path?
19301 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19302
19303 # Format of library name prefix.
19304 libname_spec=$lt_libname_spec
19305
19306 # List of archive names. First name is the real one, the rest are links.
19307 # The last name is the one that the linker finds with -lNAME
19308 library_names_spec=$lt_library_names_spec
19309
19310 # The coded name of the library, if different from the real name.
19311 soname_spec=$lt_soname_spec
19312
19313 # Permission mode override for installation of shared libraries.
19314 install_override_mode=$lt_install_override_mode
19315
19316 # Command to use after installation of a shared archive.
19317 postinstall_cmds=$lt_postinstall_cmds
19318
19319 # Command to use after uninstallation of a shared archive.
19320 postuninstall_cmds=$lt_postuninstall_cmds
19321
19322 # Commands used to finish a libtool library installation in a directory.
19323 finish_cmds=$lt_finish_cmds
19324
19325 # As "finish_cmds", except a single script fragment to be evaled but
19326 # not shown.
19327 finish_eval=$lt_finish_eval
19328
19329 # Whether we should hardcode library paths into libraries.
19330 hardcode_into_libs=$hardcode_into_libs
19331
19332 # Compile-time system search path for libraries.
19333 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19334
19335 # Run-time system search path for libraries.
19336 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19337
19338 # Whether dlopen is supported.
19339 dlopen_support=$enable_dlopen
19340
19341 # Whether dlopen of programs is supported.
19342 dlopen_self=$enable_dlopen_self
19343
19344 # Whether dlopen of statically linked programs is supported.
19345 dlopen_self_static=$enable_dlopen_self_static
19346
19347 # Commands to strip libraries.
19348 old_striplib=$lt_old_striplib
19349 striplib=$lt_striplib
19350
19351
19352 # The linker used to build libraries.
19353 LD=$lt_LD
19354
19355 # How to create reloadable object files.
19356 reload_flag=$lt_reload_flag
19357 reload_cmds=$lt_reload_cmds
19358
19359 # Commands used to build an old-style archive.
19360 old_archive_cmds=$lt_old_archive_cmds
19361
19362 # A language specific compiler.
19363 CC=$lt_compiler
19364
19365 # Is the compiler the GNU compiler?
19366 with_gcc=$GCC
19367
19368 # Compiler flag to turn off builtin functions.
19369 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19370
19371 # Additional compiler flags for building library objects.
19372 pic_flag=$lt_lt_prog_compiler_pic
19373
19374 # How to pass a linker flag through the compiler.
19375 wl=$lt_lt_prog_compiler_wl
19376
19377 # Compiler flag to prevent dynamic linking.
19378 link_static_flag=$lt_lt_prog_compiler_static
19379
19380 # Does compiler simultaneously support -c and -o options?
19381 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19382
19383 # Whether or not to add -lc for building shared libraries.
19384 build_libtool_need_lc=$archive_cmds_need_lc
19385
19386 # Whether or not to disallow shared libs when runtime libs are static.
19387 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19388
19389 # Compiler flag to allow reflexive dlopens.
19390 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19391
19392 # Compiler flag to generate shared objects directly from archives.
19393 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19394
19395 # Whether the compiler copes with passing no objects directly.
19396 compiler_needs_object=$lt_compiler_needs_object
19397
19398 # Create an old-style archive from a shared archive.
19399 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19400
19401 # Create a temporary old-style archive to link instead of a shared archive.
19402 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19403
19404 # Commands used to build a shared archive.
19405 archive_cmds=$lt_archive_cmds
19406 archive_expsym_cmds=$lt_archive_expsym_cmds
19407
19408 # Commands used to build a loadable module if different from building
19409 # a shared archive.
19410 module_cmds=$lt_module_cmds
19411 module_expsym_cmds=$lt_module_expsym_cmds
19412
19413 # Whether we are building with GNU ld or not.
19414 with_gnu_ld=$lt_with_gnu_ld
19415
19416 # Flag that allows shared libraries with undefined symbols to be built.
19417 allow_undefined_flag=$lt_allow_undefined_flag
19418
19419 # Flag that enforces no undefined symbols.
19420 no_undefined_flag=$lt_no_undefined_flag
19421
19422 # Flag to hardcode \$libdir into a binary during linking.
19423 # This must work even if \$libdir does not exist
19424 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19425
19426 # Whether we need a single "-rpath" flag with a separated argument.
19427 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19428
19429 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19430 # DIR into the resulting binary.
19431 hardcode_direct=$hardcode_direct
19432
19433 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19434 # DIR into the resulting binary and the resulting library dependency is
19435 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19436 # library is relocated.
19437 hardcode_direct_absolute=$hardcode_direct_absolute
19438
19439 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19440 # into the resulting binary.
19441 hardcode_minus_L=$hardcode_minus_L
19442
19443 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19444 # into the resulting binary.
19445 hardcode_shlibpath_var=$hardcode_shlibpath_var
19446
19447 # Set to "yes" if building a shared library automatically hardcodes DIR
19448 # into the library and all subsequent libraries and executables linked
19449 # against it.
19450 hardcode_automatic=$hardcode_automatic
19451
19452 # Set to yes if linker adds runtime paths of dependent libraries
19453 # to runtime path list.
19454 inherit_rpath=$inherit_rpath
19455
19456 # Whether libtool must link a program against all its dependency libraries.
19457 link_all_deplibs=$link_all_deplibs
19458
19459 # Set to "yes" if exported symbols are required.
19460 always_export_symbols=$always_export_symbols
19461
19462 # The commands to list exported symbols.
19463 export_symbols_cmds=$lt_export_symbols_cmds
19464
19465 # Symbols that should not be listed in the preloaded symbols.
19466 exclude_expsyms=$lt_exclude_expsyms
19467
19468 # Symbols that must always be exported.
19469 include_expsyms=$lt_include_expsyms
19470
19471 # Commands necessary for linking programs (against libraries) with templates.
19472 prelink_cmds=$lt_prelink_cmds
19473
19474 # Commands necessary for finishing linking programs.
19475 postlink_cmds=$lt_postlink_cmds
19476
19477 # Specify filename containing input files.
19478 file_list_spec=$lt_file_list_spec
19479
19480 # How to hardcode a shared library path into an executable.
19481 hardcode_action=$hardcode_action
19482
19483 # ### END LIBTOOL CONFIG
19484
19485 _LT_EOF
19486
19487 case $host_os in
19488 aix3*)
19489 cat <<\_LT_EOF >> "$cfgfile"
19490 # AIX sometimes has problems with the GCC collect2 program. For some
19491 # reason, if we set the COLLECT_NAMES environment variable, the problems
19492 # vanish in a puff of smoke.
19493 if test "X${COLLECT_NAMES+set}" != Xset; then
19494 COLLECT_NAMES=
19495 export COLLECT_NAMES
19496 fi
19497 _LT_EOF
19498 ;;
19499 esac
19500
19501
19502 ltmain="$ac_aux_dir/ltmain.sh"
19503
19504
19505 # We use sed instead of cat because bash on DJGPP gets confused if
19506 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19507 # text mode, it properly converts lines to CR/LF. This bash problem
19508 # is reportedly fixed, but why not run on old versions too?
19509 sed '$q' "$ltmain" >> "$cfgfile" \
19510 || (rm -f "$cfgfile"; exit 1)
19511
19512 if test x"$xsi_shell" = xyes; then
19513 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19514 func_dirname ()\
19515 {\
19516 \ case ${1} in\
19517 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19518 \ * ) func_dirname_result="${3}" ;;\
19519 \ esac\
19520 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19521 && mv -f "$cfgfile.tmp" "$cfgfile" \
19522 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19523 test 0 -eq $? || _lt_function_replace_fail=:
19524
19525
19526 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19527 func_basename ()\
19528 {\
19529 \ func_basename_result="${1##*/}"\
19530 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19531 && mv -f "$cfgfile.tmp" "$cfgfile" \
19532 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19533 test 0 -eq $? || _lt_function_replace_fail=:
19534
19535
19536 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19537 func_dirname_and_basename ()\
19538 {\
19539 \ case ${1} in\
19540 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19541 \ * ) func_dirname_result="${3}" ;;\
19542 \ esac\
19543 \ func_basename_result="${1##*/}"\
19544 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19545 && mv -f "$cfgfile.tmp" "$cfgfile" \
19546 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19547 test 0 -eq $? || _lt_function_replace_fail=:
19548
19549
19550 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19551 func_stripname ()\
19552 {\
19553 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19554 \ # positional parameters, so assign one to ordinary parameter first.\
19555 \ func_stripname_result=${3}\
19556 \ func_stripname_result=${func_stripname_result#"${1}"}\
19557 \ func_stripname_result=${func_stripname_result%"${2}"}\
19558 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19559 && mv -f "$cfgfile.tmp" "$cfgfile" \
19560 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19561 test 0 -eq $? || _lt_function_replace_fail=:
19562
19563
19564 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19565 func_split_long_opt ()\
19566 {\
19567 \ func_split_long_opt_name=${1%%=*}\
19568 \ func_split_long_opt_arg=${1#*=}\
19569 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19570 && mv -f "$cfgfile.tmp" "$cfgfile" \
19571 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19572 test 0 -eq $? || _lt_function_replace_fail=:
19573
19574
19575 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19576 func_split_short_opt ()\
19577 {\
19578 \ func_split_short_opt_arg=${1#??}\
19579 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19580 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19581 && mv -f "$cfgfile.tmp" "$cfgfile" \
19582 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19583 test 0 -eq $? || _lt_function_replace_fail=:
19584
19585
19586 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19587 func_lo2o ()\
19588 {\
19589 \ case ${1} in\
19590 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19591 \ *) func_lo2o_result=${1} ;;\
19592 \ esac\
19593 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19594 && mv -f "$cfgfile.tmp" "$cfgfile" \
19595 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19596 test 0 -eq $? || _lt_function_replace_fail=:
19597
19598
19599 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19600 func_xform ()\
19601 {\
19602 func_xform_result=${1%.*}.lo\
19603 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19604 && mv -f "$cfgfile.tmp" "$cfgfile" \
19605 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19606 test 0 -eq $? || _lt_function_replace_fail=:
19607
19608
19609 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19610 func_arith ()\
19611 {\
19612 func_arith_result=$(( $* ))\
19613 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19614 && mv -f "$cfgfile.tmp" "$cfgfile" \
19615 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19616 test 0 -eq $? || _lt_function_replace_fail=:
19617
19618
19619 sed -e '/^func_len ()$/,/^} # func_len /c\
19620 func_len ()\
19621 {\
19622 func_len_result=${#1}\
19623 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19624 && mv -f "$cfgfile.tmp" "$cfgfile" \
19625 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19626 test 0 -eq $? || _lt_function_replace_fail=:
19627
19628 fi
19629
19630 if test x"$lt_shell_append" = xyes; then
19631 sed -e '/^func_append ()$/,/^} # func_append /c\
19632 func_append ()\
19633 {\
19634 eval "${1}+=\\${2}"\
19635 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19636 && mv -f "$cfgfile.tmp" "$cfgfile" \
19637 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19638 test 0 -eq $? || _lt_function_replace_fail=:
19639
19640
19641 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19642 func_append_quoted ()\
19643 {\
19644 \ func_quote_for_eval "${2}"\
19645 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19646 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19647 && mv -f "$cfgfile.tmp" "$cfgfile" \
19648 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19649 test 0 -eq $? || _lt_function_replace_fail=:
19650
19651
19652 # Save a `func_append' function call where possible by direct use of '+='
19653 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19654 && mv -f "$cfgfile.tmp" "$cfgfile" \
19655 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19656 test 0 -eq $? || _lt_function_replace_fail=:
19657 else
19658 # Save a `func_append' function call even when '+=' is not available
19659 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19660 && mv -f "$cfgfile.tmp" "$cfgfile" \
19661 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19662 test 0 -eq $? || _lt_function_replace_fail=:
19663 fi
19664
19665 if test x"$_lt_function_replace_fail" = x":"; then
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19667 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19668 fi
19669
19670
19671 mv -f "$cfgfile" "$ofile" ||
19672 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19673 chmod +x "$ofile"
19674
19675 ;;
19676
19677 esac
19678 done # for ac_tag
19679
19680
19681 as_fn_exit 0
19682 _ACEOF
19683 ac_clean_files=$ac_clean_files_save
19684
19685 test $ac_write_fail = 0 ||
19686 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19687
19688
19689 # configure is writing to config.log, and then calls config.status.
19690 # config.status does its own redirection, appending to config.log.
19691 # Unfortunately, on DOS this fails, as config.log is still kept open
19692 # by configure, so config.status won't be able to write to it; its
19693 # output is simply discarded. So we exec the FD to /dev/null,
19694 # effectively closing config.log, so it can be properly (re)opened and
19695 # appended to by config.status. When coming back to configure, we
19696 # need to make the FD available again.
19697 if test "$no_create" != yes; then
19698 ac_cs_success=:
19699 ac_config_status_args=
19700 test "$silent" = yes &&
19701 ac_config_status_args="$ac_config_status_args --quiet"
19702 exec 5>/dev/null
19703 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19704 exec 5>>config.log
19705 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19706 # would make configure fail if this is the last instruction.
19707 $ac_cs_success || as_fn_exit 1
19708 fi
19709 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19711 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19712 fi
19713