configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for tpm-tools 1.3.9.
4 #
5 # Report bugs to <trousers-tech (at] lists.sf.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (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 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606 $*
607 _LT_EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='tpm-tools'
747 PACKAGE_TARNAME='tpm-tools'
748 PACKAGE_VERSION='1.3.9'
749 PACKAGE_STRING='tpm-tools 1.3.9'
750 PACKAGE_BUGREPORT='trousers-tech (at] lists.sf.net'
751
752 ac_unique_file="Makefile.am"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='am__EXEEXT_FALSE
790 am__EXEEXT_TRUE
791 LTLIBOBJS
792 LIBOBJS
793 P11_SUPPORT_FALSE
794 P11_SUPPORT_TRUE
795 TSS_LIB_IS_12_FALSE
796 TSS_LIB_IS_12_TRUE
797 OPENSSL_LIB_DIR
798 POSUB
799 LTLIBINTL
800 LIBINTL
801 INTLLIBS
802 LTLIBICONV
803 LIBICONV
804 INTL_MACOSX_LIBS
805 MSGMERGE
806 XGETTEXT_015
807 XGETTEXT
808 GMSGFMT_015
809 MSGFMT_015
810 GMSGFMT
811 MSGFMT
812 USE_NLS
813 RM
814 MKDIR
815 ECHO
816 COPY
817 CPP
818 OTOOL64
819 OTOOL
820 LIPO
821 NMEDIT
822 DSYMUTIL
823 lt_ECHO
824 RANLIB
825 AR
826 OBJDUMP
827 LN_S
828 NM
829 ac_ct_DUMPBIN
830 DUMPBIN
831 LD
832 FGREP
833 EGREP
834 GREP
835 SED
836 LIBTOOL
837 am__fastdepCC_FALSE
838 am__fastdepCC_TRUE
839 CCDEPMODE
840 AMDEPBACKSLASH
841 AMDEP_FALSE
842 AMDEP_TRUE
843 am__quote
844 am__include
845 DEPDIR
846 OBJEXT
847 EXEEXT
848 ac_ct_CC
849 CPPFLAGS
850 LDFLAGS
851 CFLAGS
852 CC
853 am__untar
854 am__tar
855 AMTAR
856 am__leading_dot
857 SET_MAKE
858 AWK
859 mkdir_p
860 MKDIR_P
861 INSTALL_STRIP_PROGRAM
862 STRIP
863 install_sh
864 MAKEINFO
865 AUTOHEADER
866 AUTOMAKE
867 AUTOCONF
868 ACLOCAL
869 VERSION
870 PACKAGE
871 CYGPATH_W
872 am__isrc
873 INSTALL_DATA
874 INSTALL_SCRIPT
875 INSTALL_PROGRAM
876 target_os
877 target_vendor
878 target_cpu
879 target
880 host_os
881 host_vendor
882 host_cpu
883 host
884 build_os
885 build_vendor
886 build_cpu
887 build
888 target_alias
889 host_alias
890 build_alias
891 LIBS
892 ECHO_T
893 ECHO_N
894 ECHO_C
895 DEFS
896 mandir
897 localedir
898 libdir
899 psdir
900 pdfdir
901 dvidir
902 htmldir
903 infodir
904 docdir
905 oldincludedir
906 includedir
907 localstatedir
908 sharedstatedir
909 sysconfdir
910 datadir
911 datarootdir
912 libexecdir
913 sbindir
914 bindir
915 program_transform_name
916 prefix
917 exec_prefix
918 PACKAGE_BUGREPORT
919 PACKAGE_STRING
920 PACKAGE_VERSION
921 PACKAGE_TARNAME
922 PACKAGE_NAME
923 PATH_SEPARATOR
924 SHELL'
925 ac_subst_files=''
926 ac_user_opts='
927 enable_option_checking
928 enable_debug
929 enable_dependency_tracking
930 enable_shared
931 enable_static
932 with_pic
933 enable_fast_install
934 with_gnu_ld
935 enable_libtool_lock
936 enable_nls
937 enable_rpath
938 with_libiconv_prefix
939 with_libintl_prefix
940 with_openssl
941 enable_pkcs11_support
942 '
943 ac_precious_vars='build_alias
944 host_alias
945 target_alias
946 CC
947 CFLAGS
948 LDFLAGS
949 LIBS
950 CPPFLAGS
951 CPP'
952
953
954 # Initialize some variables set by options.
955 ac_init_help=
956 ac_init_version=false
957 ac_unrecognized_opts=
958 ac_unrecognized_sep=
959 # The variables have the same names as the options, with
960 # dashes changed to underlines.
961 cache_file=/dev/null
962 exec_prefix=NONE
963 no_create=
964 no_recursion=
965 prefix=NONE
966 program_prefix=NONE
967 program_suffix=NONE
968 program_transform_name=s,x,x,
969 silent=
970 site=
971 srcdir=
972 verbose=
973 x_includes=NONE
974 x_libraries=NONE
975
976 # Installation directory options.
977 # These are left unexpanded so users can "make install exec_prefix=/foo"
978 # and all the variables that are supposed to be based on exec_prefix
979 # by default will actually change.
980 # Use braces instead of parens because sh, perl, etc. also accept them.
981 # (The list follows the same order as the GNU Coding Standards.)
982 bindir='${exec_prefix}/bin'
983 sbindir='${exec_prefix}/sbin'
984 libexecdir='${exec_prefix}/libexec'
985 datarootdir='${prefix}/share'
986 datadir='${datarootdir}'
987 sysconfdir='${prefix}/etc'
988 sharedstatedir='${prefix}/com'
989 localstatedir='${prefix}/var'
990 includedir='${prefix}/include'
991 oldincludedir='/usr/include'
992 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
993 infodir='${datarootdir}/info'
994 htmldir='${docdir}'
995 dvidir='${docdir}'
996 pdfdir='${docdir}'
997 psdir='${docdir}'
998 libdir='${exec_prefix}/lib'
999 localedir='${datarootdir}/locale'
1000 mandir='${datarootdir}/man'
1001
1002 ac_prev=
1003 ac_dashdash=
1004 for ac_option
1005 do
1006 # If the previous option needs an argument, assign it.
1007 if test -n "$ac_prev"; then
1008 eval $ac_prev=\$ac_option
1009 ac_prev=
1010 continue
1011 fi
1012
1013 case $ac_option in
1014 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 *) ac_optarg=yes ;;
1016 esac
1017
1018 # Accept the important Cygnus configure options, so we can diagnose typos.
1019
1020 case $ac_dashdash$ac_option in
1021 --)
1022 ac_dashdash=yes ;;
1023
1024 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025 ac_prev=bindir ;;
1026 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027 bindir=$ac_optarg ;;
1028
1029 -build | --build | --buil | --bui | --bu)
1030 ac_prev=build_alias ;;
1031 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032 build_alias=$ac_optarg ;;
1033
1034 -cache-file | --cache-file | --cache-fil | --cache-fi \
1035 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036 ac_prev=cache_file ;;
1037 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039 cache_file=$ac_optarg ;;
1040
1041 --config-cache | -C)
1042 cache_file=config.cache ;;
1043
1044 -datadir | --datadir | --datadi | --datad)
1045 ac_prev=datadir ;;
1046 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1047 datadir=$ac_optarg ;;
1048
1049 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050 | --dataroo | --dataro | --datar)
1051 ac_prev=datarootdir ;;
1052 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054 datarootdir=$ac_optarg ;;
1055
1056 -disable-* | --disable-*)
1057 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1065 *"
1066 "enable_$ac_useropt"
1067 "*) ;;
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
1070 esac
1071 eval enable_$ac_useropt=no ;;
1072
1073 -docdir | --docdir | --docdi | --doc | --do)
1074 ac_prev=docdir ;;
1075 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1076 docdir=$ac_optarg ;;
1077
1078 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079 ac_prev=dvidir ;;
1080 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1081 dvidir=$ac_optarg ;;
1082
1083 -enable-* | --enable-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1088 { (exit 1); exit 1; }; }
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1092 *"
1093 "enable_$ac_useropt"
1094 "*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval enable_$ac_useropt=\$ac_optarg ;;
1099
1100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102 | --exec | --exe | --ex)
1103 ac_prev=exec_prefix ;;
1104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106 | --exec=* | --exe=* | --ex=*)
1107 exec_prefix=$ac_optarg ;;
1108
1109 -gas | --gas | --ga | --g)
1110 # Obsolete; use --with-gas.
1111 with_gas=yes ;;
1112
1113 -help | --help | --hel | --he | -h)
1114 ac_init_help=long ;;
1115 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116 ac_init_help=recursive ;;
1117 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118 ac_init_help=short ;;
1119
1120 -host | --host | --hos | --ho)
1121 ac_prev=host_alias ;;
1122 -host=* | --host=* | --hos=* | --ho=*)
1123 host_alias=$ac_optarg ;;
1124
1125 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126 ac_prev=htmldir ;;
1127 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128 | --ht=*)
1129 htmldir=$ac_optarg ;;
1130
1131 -includedir | --includedir | --includedi | --included | --include \
1132 | --includ | --inclu | --incl | --inc)
1133 ac_prev=includedir ;;
1134 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135 | --includ=* | --inclu=* | --incl=* | --inc=*)
1136 includedir=$ac_optarg ;;
1137
1138 -infodir | --infodir | --infodi | --infod | --info | --inf)
1139 ac_prev=infodir ;;
1140 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141 infodir=$ac_optarg ;;
1142
1143 -libdir | --libdir | --libdi | --libd)
1144 ac_prev=libdir ;;
1145 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146 libdir=$ac_optarg ;;
1147
1148 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149 | --libexe | --libex | --libe)
1150 ac_prev=libexecdir ;;
1151 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152 | --libexe=* | --libex=* | --libe=*)
1153 libexecdir=$ac_optarg ;;
1154
1155 -localedir | --localedir | --localedi | --localed | --locale)
1156 ac_prev=localedir ;;
1157 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158 localedir=$ac_optarg ;;
1159
1160 -localstatedir | --localstatedir | --localstatedi | --localstated \
1161 | --localstate | --localstat | --localsta | --localst | --locals)
1162 ac_prev=localstatedir ;;
1163 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165 localstatedir=$ac_optarg ;;
1166
1167 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168 ac_prev=mandir ;;
1169 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170 mandir=$ac_optarg ;;
1171
1172 -nfp | --nfp | --nf)
1173 # Obsolete; use --without-fp.
1174 with_fp=no ;;
1175
1176 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177 | --no-cr | --no-c | -n)
1178 no_create=yes ;;
1179
1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182 no_recursion=yes ;;
1183
1184 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186 | --oldin | --oldi | --old | --ol | --o)
1187 ac_prev=oldincludedir ;;
1188 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191 oldincludedir=$ac_optarg ;;
1192
1193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194 ac_prev=prefix ;;
1195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196 prefix=$ac_optarg ;;
1197
1198 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199 | --program-pre | --program-pr | --program-p)
1200 ac_prev=program_prefix ;;
1201 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203 program_prefix=$ac_optarg ;;
1204
1205 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206 | --program-suf | --program-su | --program-s)
1207 ac_prev=program_suffix ;;
1208 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210 program_suffix=$ac_optarg ;;
1211
1212 -program-transform-name | --program-transform-name \
1213 | --program-transform-nam | --program-transform-na \
1214 | --program-transform-n | --program-transform- \
1215 | --program-transform | --program-transfor \
1216 | --program-transfo | --program-transf \
1217 | --program-trans | --program-tran \
1218 | --progr-tra | --program-tr | --program-t)
1219 ac_prev=program_transform_name ;;
1220 -program-transform-name=* | --program-transform-name=* \
1221 | --program-transform-nam=* | --program-transform-na=* \
1222 | --program-transform-n=* | --program-transform-=* \
1223 | --program-transform=* | --program-transfor=* \
1224 | --program-transfo=* | --program-transf=* \
1225 | --program-trans=* | --program-tran=* \
1226 | --progr-tra=* | --program-tr=* | --program-t=*)
1227 program_transform_name=$ac_optarg ;;
1228
1229 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230 ac_prev=pdfdir ;;
1231 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232 pdfdir=$ac_optarg ;;
1233
1234 -psdir | --psdir | --psdi | --psd | --ps)
1235 ac_prev=psdir ;;
1236 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237 psdir=$ac_optarg ;;
1238
1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1241 silent=yes ;;
1242
1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244 ac_prev=sbindir ;;
1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246 | --sbi=* | --sb=*)
1247 sbindir=$ac_optarg ;;
1248
1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251 | --sharedst | --shareds | --shared | --share | --shar \
1252 | --sha | --sh)
1253 ac_prev=sharedstatedir ;;
1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257 | --sha=* | --sh=*)
1258 sharedstatedir=$ac_optarg ;;
1259
1260 -site | --site | --sit)
1261 ac_prev=site ;;
1262 -site=* | --site=* | --sit=*)
1263 site=$ac_optarg ;;
1264
1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266 ac_prev=srcdir ;;
1267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268 srcdir=$ac_optarg ;;
1269
1270 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271 | --syscon | --sysco | --sysc | --sys | --sy)
1272 ac_prev=sysconfdir ;;
1273 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275 sysconfdir=$ac_optarg ;;
1276
1277 -target | --target | --targe | --targ | --tar | --ta | --t)
1278 ac_prev=target_alias ;;
1279 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280 target_alias=$ac_optarg ;;
1281
1282 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283 verbose=yes ;;
1284
1285 -version | --version | --versio | --versi | --vers | -V)
1286 ac_init_version=: ;;
1287
1288 -with-* | --with-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1297 *"
1298 "with_$ac_useropt"
1299 "*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=\$ac_optarg ;;
1304
1305 -without-* | --without-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1310 { (exit 1); exit 1; }; }
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1314 *"
1315 "with_$ac_useropt"
1316 "*) ;;
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1319 esac
1320 eval with_$ac_useropt=no ;;
1321
1322 --x)
1323 # Obsolete; use --with-x.
1324 with_x=yes ;;
1325
1326 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1327 | --x-incl | --x-inc | --x-in | --x-i)
1328 ac_prev=x_includes ;;
1329 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1330 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1331 x_includes=$ac_optarg ;;
1332
1333 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1334 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1335 ac_prev=x_libraries ;;
1336 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1337 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1338 x_libraries=$ac_optarg ;;
1339
1340 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1341 Try \`$0 --help' for more information." >&2
1342 { (exit 1); exit 1; }; }
1343 ;;
1344
1345 *=*)
1346 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1349 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1350 { (exit 1); exit 1; }; }
1351 eval $ac_envvar=\$ac_optarg
1352 export $ac_envvar ;;
1353
1354 *)
1355 # FIXME: should be removed in autoconf 3.0.
1356 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1357 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1358 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1359 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1360 ;;
1361
1362 esac
1363 done
1364
1365 if test -n "$ac_prev"; then
1366 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1367 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1368 { (exit 1); exit 1; }; }
1369 fi
1370
1371 if test -n "$ac_unrecognized_opts"; then
1372 case $enable_option_checking in
1373 no) ;;
1374 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1375 { (exit 1); exit 1; }; } ;;
1376 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1377 esac
1378 fi
1379
1380 # Check all directory arguments for consistency.
1381 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382 datadir sysconfdir sharedstatedir localstatedir includedir \
1383 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384 libdir localedir mandir
1385 do
1386 eval ac_val=\$$ac_var
1387 # Remove trailing slashes.
1388 case $ac_val in
1389 */ )
1390 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1391 eval $ac_var=\$ac_val;;
1392 esac
1393 # Be sure to have absolute directory names.
1394 case $ac_val in
1395 [\\/$]* | ?:[\\/]* ) continue;;
1396 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1397 esac
1398 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1399 { (exit 1); exit 1; }; }
1400 done
1401
1402 # There might be people who depend on the old broken behavior: `$host'
1403 # used to hold the argument of --host etc.
1404 # FIXME: To remove some day.
1405 build=$build_alias
1406 host=$host_alias
1407 target=$target_alias
1408
1409 # FIXME: To remove some day.
1410 if test "x$host_alias" != x; then
1411 if test "x$build_alias" = x; then
1412 cross_compiling=maybe
1413 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1414 If a cross compiler is detected then cross compile mode will be used." >&2
1415 elif test "x$build_alias" != "x$host_alias"; then
1416 cross_compiling=yes
1417 fi
1418 fi
1419
1420 ac_tool_prefix=
1421 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1422
1423 test "$silent" = yes && exec 6>/dev/null
1424
1425
1426 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di=`ls -di .` &&
1428 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1429 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1430 { (exit 1); exit 1; }; }
1431 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1432 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1433 { (exit 1); exit 1; }; }
1434
1435
1436 # Find the source files, if location was not specified.
1437 if test -z "$srcdir"; then
1438 ac_srcdir_defaulted=yes
1439 # Try the directory containing this script, then the parent directory.
1440 ac_confdir=`$as_dirname -- "$as_myself" ||
1441 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1442 X"$as_myself" : 'X\(//\)[^/]' \| \
1443 X"$as_myself" : 'X\(//\)$' \| \
1444 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1445 $as_echo X"$as_myself" |
1446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1447 s//\1/
1448 q
1449 }
1450 /^X\(\/\/\)[^/].*/{
1451 s//\1/
1452 q
1453 }
1454 /^X\(\/\/\)$/{
1455 s//\1/
1456 q
1457 }
1458 /^X\(\/\).*/{
1459 s//\1/
1460 q
1461 }
1462 s/.*/./; q'`
1463 srcdir=$ac_confdir
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 srcdir=..
1466 fi
1467 else
1468 ac_srcdir_defaulted=no
1469 fi
1470 if test ! -r "$srcdir/$ac_unique_file"; then
1471 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1472 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1473 { (exit 1); exit 1; }; }
1474 fi
1475 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1476 ac_abs_confdir=`(
1477 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1478 { (exit 1); exit 1; }; }
1479 pwd)`
1480 # When building in place, set srcdir=.
1481 if test "$ac_abs_confdir" = "$ac_pwd"; then
1482 srcdir=.
1483 fi
1484 # Remove unnecessary trailing slashes from srcdir.
1485 # Double slashes in file names in object file debugging info
1486 # mess up M-x gdb in Emacs.
1487 case $srcdir in
1488 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489 esac
1490 for ac_var in $ac_precious_vars; do
1491 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1492 eval ac_env_${ac_var}_value=\$${ac_var}
1493 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1495 done
1496
1497 #
1498 # Report the --help message.
1499 #
1500 if test "$ac_init_help" = "long"; then
1501 # Omit some internal or obsolete options to make the list less imposing.
1502 # This message is too long to be a string in the A/UX 3.1 sh.
1503 cat <<_ACEOF
1504 \`configure' configures tpm-tools 1.3.9 to adapt to many kinds of systems.
1505
1506 Usage: $0 [OPTION]... [VAR=VALUE]...
1507
1508 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509 VAR=VALUE. See below for descriptions of some of the useful variables.
1510
1511 Defaults for the options are specified in brackets.
1512
1513 Configuration:
1514 -h, --help display this help and exit
1515 --help=short display options specific to this package
1516 --help=recursive display the short help of all the included packages
1517 -V, --version display version information and exit
1518 -q, --quiet, --silent do not print \`checking...' messages
1519 --cache-file=FILE cache test results in FILE [disabled]
1520 -C, --config-cache alias for \`--cache-file=config.cache'
1521 -n, --no-create do not create output files
1522 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1523
1524 Installation directories:
1525 --prefix=PREFIX install architecture-independent files in PREFIX
1526 [$ac_default_prefix]
1527 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1528 [PREFIX]
1529
1530 By default, \`make install' will install all the files in
1531 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1532 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533 for instance \`--prefix=\$HOME'.
1534
1535 For better control, use the options below.
1536
1537 Fine tuning of the installation directories:
1538 --bindir=DIR user executables [EPREFIX/bin]
1539 --sbindir=DIR system admin executables [EPREFIX/sbin]
1540 --libexecdir=DIR program executables [EPREFIX/libexec]
1541 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1542 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1543 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1544 --libdir=DIR object code libraries [EPREFIX/lib]
1545 --includedir=DIR C header files [PREFIX/include]
1546 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1549 --infodir=DIR info documentation [DATAROOTDIR/info]
1550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1551 --mandir=DIR man documentation [DATAROOTDIR/man]
1552 --docdir=DIR documentation root [DATAROOTDIR/doc/tpm-tools]
1553 --htmldir=DIR html documentation [DOCDIR]
1554 --dvidir=DIR dvi documentation [DOCDIR]
1555 --pdfdir=DIR pdf documentation [DOCDIR]
1556 --psdir=DIR ps documentation [DOCDIR]
1557 _ACEOF
1558
1559 cat <<\_ACEOF
1560
1561 Program names:
1562 --program-prefix=PREFIX prepend PREFIX to installed program names
1563 --program-suffix=SUFFIX append SUFFIX to installed program names
1564 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1565
1566 System types:
1567 --build=BUILD configure for building on BUILD [guessed]
1568 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1569 --target=TARGET configure for building compilers for TARGET [HOST]
1570 _ACEOF
1571 fi
1572
1573 if test -n "$ac_init_help"; then
1574 case $ac_init_help in
1575 short | recursive ) echo "Configuration of tpm-tools 1.3.9:";;
1576 esac
1577 cat <<\_ACEOF
1578
1579 Optional Features:
1580 --disable-option-checking ignore unrecognized --enable/--with options
1581 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1582 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1583 --enable-debug create a debug build that outputs debug messages
1584 --disable-dependency-tracking speeds up one-time build
1585 --enable-dependency-tracking do not reject slow dependency extractors
1586 --enable-shared[=PKGS] build shared libraries [default=yes]
1587 --enable-static[=PKGS] build static libraries [default=yes]
1588 --enable-fast-install[=PKGS]
1589 optimize for fast installation [default=yes]
1590 --disable-libtool-lock avoid locking (might break parallel builds)
1591 --disable-nls do not use Native Language Support
1592 --disable-rpath do not hardcode runtime library paths
1593 --disable-pkcs11-support
1594 don't build data_mgmt commands [default=no]
1595
1596 Optional Packages:
1597 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1598 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1599 --with-pic try to use only PIC/non-PIC objects [default=use
1600 both]
1601 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1602 --with-gnu-ld assume the C compiler uses GNU ld default=no
1603 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1604 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1605 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1606 --without-libintl-prefix don't search for libintl in includedir and libdir
1607 --with-openssl=PATH Location of openssl libs/includes
1608
1609 Some influential environment variables:
1610 CC C compiler command
1611 CFLAGS C compiler flags
1612 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1613 nonstandard directory <lib dir>
1614 LIBS libraries to pass to the linker, e.g. -l<library>
1615 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1616 you have headers in a nonstandard directory <include dir>
1617 CPP C preprocessor
1618
1619 Use these variables to override the choices made by `configure' or to help
1620 it to find libraries and programs with nonstandard names/locations.
1621
1622 Report bugs to <trousers-tech (at] lists.sf.net>.
1623 _ACEOF
1624 ac_status=$?
1625 fi
1626
1627 if test "$ac_init_help" = "recursive"; then
1628 # If there are subdirs, report their specific --help.
1629 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630 test -d "$ac_dir" ||
1631 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1632 continue
1633 ac_builddir=.
1634
1635 case "$ac_dir" in
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *)
1638 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644 esac ;;
1645 esac
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1650
1651 case $srcdir in
1652 .) # We are building in place.
1653 ac_srcdir=.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1660 *) # Relative name.
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664 esac
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1675 else
1676 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677 fi || ac_status=$?
1678 cd "$ac_pwd" || { ac_status=$?; break; }
1679 done
1680 fi
1681
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1684 cat <<\_ACEOF
1685 tpm-tools configure 1.3.9
1686 generated by GNU Autoconf 2.63
1687
1688 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1689 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1692 _ACEOF
1693 exit
1694 fi
1695 cat >config.log <<_ACEOF
1696 This file contains any messages produced by compilers while
1697 running configure, to aid debugging if configure makes a mistake.
1698
1699 It was created by tpm-tools $as_me 1.3.9, which was
1700 generated by GNU Autoconf 2.63. Invocation command line was
1701
1702 $ $0 $@
1703
1704 _ACEOF
1705 exec 5>>config.log
1706 {
1707 cat <<_ASUNAME
1708 ## --------- ##
1709 ## Platform. ##
1710 ## --------- ##
1711
1712 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1713 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1714 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1715 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1716 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1717
1718 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1719 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1720
1721 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1722 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1723 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1724 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1725 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1726 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1727 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1728
1729 _ASUNAME
1730
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1733 do
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 $as_echo "PATH: $as_dir"
1737 done
1738 IFS=$as_save_IFS
1739
1740 } >&5
1741
1742 cat >&5 <<_ACEOF
1743
1744
1745 ## ----------- ##
1746 ## Core tests. ##
1747 ## ----------- ##
1748
1749 _ACEOF
1750
1751
1752 # Keep a trace of the command line.
1753 # Strip out --no-create and --no-recursion so they do not pile up.
1754 # Strip out --silent because we don't want to record it for future runs.
1755 # Also quote any args containing shell meta-characters.
1756 # Make two passes to allow for proper duplicate-argument suppression.
1757 ac_configure_args=
1758 ac_configure_args0=
1759 ac_configure_args1=
1760 ac_must_keep_next=false
1761 for ac_pass in 1 2
1762 do
1763 for ac_arg
1764 do
1765 case $ac_arg in
1766 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1768 | -silent | --silent | --silen | --sile | --sil)
1769 continue ;;
1770 *\'*)
1771 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1772 esac
1773 case $ac_pass in
1774 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1775 2)
1776 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1777 if test $ac_must_keep_next = true; then
1778 ac_must_keep_next=false # Got value, back to normal.
1779 else
1780 case $ac_arg in
1781 *=* | --config-cache | -C | -disable-* | --disable-* \
1782 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1783 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1784 | -with-* | --with-* | -without-* | --without-* | --x)
1785 case "$ac_configure_args0 " in
1786 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1787 esac
1788 ;;
1789 -* ) ac_must_keep_next=true ;;
1790 esac
1791 fi
1792 ac_configure_args="$ac_configure_args '$ac_arg'"
1793 ;;
1794 esac
1795 done
1796 done
1797 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1798 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1799
1800 # When interrupted or exit'd, cleanup temporary files, and complete
1801 # config.log. We remove comments because anyway the quotes in there
1802 # would cause problems or look ugly.
1803 # WARNING: Use '\'' to represent an apostrophe within the trap.
1804 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1805 trap 'exit_status=$?
1806 # Save into config.log some information that might help in debugging.
1807 {
1808 echo
1809
1810 cat <<\_ASBOX
1811 ## ---------------- ##
1812 ## Cache variables. ##
1813 ## ---------------- ##
1814 _ASBOX
1815 echo
1816 # The following way of writing the cache mishandles newlines in values,
1817 (
1818 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1819 eval ac_val=\$$ac_var
1820 case $ac_val in #(
1821 *${as_nl}*)
1822 case $ac_var in #(
1823 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1824 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1825 esac
1826 case $ac_var in #(
1827 _ | IFS | as_nl) ;; #(
1828 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1829 *) $as_unset $ac_var ;;
1830 esac ;;
1831 esac
1832 done
1833 (set) 2>&1 |
1834 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835 *${as_nl}ac_space=\ *)
1836 sed -n \
1837 "s/'\''/'\''\\\\'\'''\''/g;
1838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1839 ;; #(
1840 *)
1841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1842 ;;
1843 esac |
1844 sort
1845 )
1846 echo
1847
1848 cat <<\_ASBOX
1849 ## ----------------- ##
1850 ## Output variables. ##
1851 ## ----------------- ##
1852 _ASBOX
1853 echo
1854 for ac_var in $ac_subst_vars
1855 do
1856 eval ac_val=\$$ac_var
1857 case $ac_val in
1858 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 esac
1860 $as_echo "$ac_var='\''$ac_val'\''"
1861 done | sort
1862 echo
1863
1864 if test -n "$ac_subst_files"; then
1865 cat <<\_ASBOX
1866 ## ------------------- ##
1867 ## File substitutions. ##
1868 ## ------------------- ##
1869 _ASBOX
1870 echo
1871 for ac_var in $ac_subst_files
1872 do
1873 eval ac_val=\$$ac_var
1874 case $ac_val in
1875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 esac
1877 $as_echo "$ac_var='\''$ac_val'\''"
1878 done | sort
1879 echo
1880 fi
1881
1882 if test -s confdefs.h; then
1883 cat <<\_ASBOX
1884 ## ----------- ##
1885 ## confdefs.h. ##
1886 ## ----------- ##
1887 _ASBOX
1888 echo
1889 cat confdefs.h
1890 echo
1891 fi
1892 test "$ac_signal" != 0 &&
1893 $as_echo "$as_me: caught signal $ac_signal"
1894 $as_echo "$as_me: exit $exit_status"
1895 } >&5
1896 rm -f core *.core core.conftest.* &&
1897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1898 exit $exit_status
1899 ' 0
1900 for ac_signal in 1 2 13 15; do
1901 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1902 done
1903 ac_signal=0
1904
1905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1906 rm -f -r conftest* confdefs.h
1907
1908 # Predefined preprocessor variables.
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_NAME "$PACKAGE_NAME"
1912 _ACEOF
1913
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917 _ACEOF
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1922 _ACEOF
1923
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_STRING "$PACKAGE_STRING"
1927 _ACEOF
1928
1929
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932 _ACEOF
1933
1934
1935 # Let the site file select an alternate cache file if it wants to.
1936 # Prefer an explicitly selected file to automatically selected ones.
1937 ac_site_file1=NONE
1938 ac_site_file2=NONE
1939 if test -n "$CONFIG_SITE"; then
1940 ac_site_file1=$CONFIG_SITE
1941 elif test "x$prefix" != xNONE; then
1942 ac_site_file1=$prefix/share/config.site
1943 ac_site_file2=$prefix/etc/config.site
1944 else
1945 ac_site_file1=$ac_default_prefix/share/config.site
1946 ac_site_file2=$ac_default_prefix/etc/config.site
1947 fi
1948 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1949 do
1950 test "x$ac_site_file" = xNONE && continue
1951 if test -r "$ac_site_file"; then
1952 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1953 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1954 sed 's/^/| /' "$ac_site_file" >&5
1955 . "$ac_site_file"
1956 fi
1957 done
1958
1959 if test -r "$cache_file"; then
1960 # Some versions of bash will fail to source /dev/null (special
1961 # files actually), so we avoid doing that.
1962 if test -f "$cache_file"; then
1963 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1964 $as_echo "$as_me: loading cache $cache_file" >&6;}
1965 case $cache_file in
1966 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1967 *) . "./$cache_file";;
1968 esac
1969 fi
1970 else
1971 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1972 $as_echo "$as_me: creating cache $cache_file" >&6;}
1973 >$cache_file
1974 fi
1975
1976 # Check that the precious variables saved in the cache have kept the same
1977 # value.
1978 ac_cache_corrupted=false
1979 for ac_var in $ac_precious_vars; do
1980 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1981 eval ac_new_set=\$ac_env_${ac_var}_set
1982 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1983 eval ac_new_val=\$ac_env_${ac_var}_value
1984 case $ac_old_set,$ac_new_set in
1985 set,)
1986 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1987 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1988 ac_cache_corrupted=: ;;
1989 ,set)
1990 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1991 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1992 ac_cache_corrupted=: ;;
1993 ,);;
1994 *)
1995 if test "x$ac_old_val" != "x$ac_new_val"; then
1996 # differences in whitespace do not lead to failure.
1997 ac_old_val_w=`echo x $ac_old_val`
1998 ac_new_val_w=`echo x $ac_new_val`
1999 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2000 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2001 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2002 ac_cache_corrupted=:
2003 else
2004 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2005 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2006 eval $ac_var=\$ac_old_val
2007 fi
2008 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2009 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2010 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2011 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2012 fi;;
2013 esac
2014 # Pass precious variables to config.status.
2015 if test "$ac_new_set" = set; then
2016 case $ac_new_val in
2017 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2018 *) ac_arg=$ac_var=$ac_new_val ;;
2019 esac
2020 case " $ac_configure_args " in
2021 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2022 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2023 esac
2024 fi
2025 done
2026 if $ac_cache_corrupted; then
2027 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2029 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2030 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2031 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2032 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2033 { (exit 1); exit 1; }; }
2034 fi
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060 ac_ext=c
2061 ac_cpp='$CPP $CPPFLAGS'
2062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2065
2066
2067
2068 ac_config_headers="$ac_config_headers config.h"
2069
2070
2071
2072 ac_aux_dir=
2073 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2074 if test -f "$ac_dir/install-sh"; then
2075 ac_aux_dir=$ac_dir
2076 ac_install_sh="$ac_aux_dir/install-sh -c"
2077 break
2078 elif test -f "$ac_dir/install.sh"; then
2079 ac_aux_dir=$ac_dir
2080 ac_install_sh="$ac_aux_dir/install.sh -c"
2081 break
2082 elif test -f "$ac_dir/shtool"; then
2083 ac_aux_dir=$ac_dir
2084 ac_install_sh="$ac_aux_dir/shtool install -c"
2085 break
2086 fi
2087 done
2088 if test -z "$ac_aux_dir"; then
2089 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2090 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2091 { (exit 1); exit 1; }; }
2092 fi
2093
2094 # These three variables are undocumented and unsupported,
2095 # and are intended to be withdrawn in a future Autoconf release.
2096 # They can cause serious problems if a builder's source tree is in a directory
2097 # whose full name contains unusual characters.
2098 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2099 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2100 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2101
2102
2103 # Make sure we can run config.sub.
2104 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2105 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2106 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2107 { (exit 1); exit 1; }; }
2108
2109 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2110 $as_echo_n "checking build system type... " >&6; }
2111 if test "${ac_cv_build+set}" = set; then
2112 $as_echo_n "(cached) " >&6
2113 else
2114 ac_build_alias=$build_alias
2115 test "x$ac_build_alias" = x &&
2116 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2117 test "x$ac_build_alias" = x &&
2118 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2119 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2120 { (exit 1); exit 1; }; }
2121 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2122 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2123 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2124 { (exit 1); exit 1; }; }
2125
2126 fi
2127 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2128 $as_echo "$ac_cv_build" >&6; }
2129 case $ac_cv_build in
2130 *-*-*) ;;
2131 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2132 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2133 { (exit 1); exit 1; }; };;
2134 esac
2135 build=$ac_cv_build
2136 ac_save_IFS=$IFS; IFS='-'
2137 set x $ac_cv_build
2138 shift
2139 build_cpu=$1
2140 build_vendor=$2
2141 shift; shift
2142 # Remember, the first character of IFS is used to create $*,
2143 # except with old shells:
2144 build_os=$*
2145 IFS=$ac_save_IFS
2146 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2147
2148
2149 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2150 $as_echo_n "checking host system type... " >&6; }
2151 if test "${ac_cv_host+set}" = set; then
2152 $as_echo_n "(cached) " >&6
2153 else
2154 if test "x$host_alias" = x; then
2155 ac_cv_host=$ac_cv_build
2156 else
2157 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2158 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2159 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2160 { (exit 1); exit 1; }; }
2161 fi
2162
2163 fi
2164 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2165 $as_echo "$ac_cv_host" >&6; }
2166 case $ac_cv_host in
2167 *-*-*) ;;
2168 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2169 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2170 { (exit 1); exit 1; }; };;
2171 esac
2172 host=$ac_cv_host
2173 ac_save_IFS=$IFS; IFS='-'
2174 set x $ac_cv_host
2175 shift
2176 host_cpu=$1
2177 host_vendor=$2
2178 shift; shift
2179 # Remember, the first character of IFS is used to create $*,
2180 # except with old shells:
2181 host_os=$*
2182 IFS=$ac_save_IFS
2183 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2184
2185
2186 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2187 $as_echo_n "checking target system type... " >&6; }
2188 if test "${ac_cv_target+set}" = set; then
2189 $as_echo_n "(cached) " >&6
2190 else
2191 if test "x$target_alias" = x; then
2192 ac_cv_target=$ac_cv_host
2193 else
2194 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2195 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2196 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2197 { (exit 1); exit 1; }; }
2198 fi
2199
2200 fi
2201 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2202 $as_echo "$ac_cv_target" >&6; }
2203 case $ac_cv_target in
2204 *-*-*) ;;
2205 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2206 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2207 { (exit 1); exit 1; }; };;
2208 esac
2209 target=$ac_cv_target
2210 ac_save_IFS=$IFS; IFS='-'
2211 set x $ac_cv_target
2212 shift
2213 target_cpu=$1
2214 target_vendor=$2
2215 shift; shift
2216 # Remember, the first character of IFS is used to create $*,
2217 # except with old shells:
2218 target_os=$*
2219 IFS=$ac_save_IFS
2220 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2221
2222
2223 # The aliases save the names the user supplied, while $host etc.
2224 # will get canonicalized.
2225 test -n "$target_alias" &&
2226 test "$program_prefix$program_suffix$program_transform_name" = \
2227 NONENONEs,x,x, &&
2228 program_prefix=${target_alias}-
2229 am__api_version='1.11'
2230
2231 # Find a good install program. We prefer a C program (faster),
2232 # so one script is as good as another. But avoid the broken or
2233 # incompatible versions:
2234 # SysV /etc/install, /usr/sbin/install
2235 # SunOS /usr/etc/install
2236 # IRIX /sbin/install
2237 # AIX /bin/install
2238 # AmigaOS /C/install, which installs bootblocks on floppy discs
2239 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2240 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2241 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2242 # OS/2's system install, which has a completely different semantic
2243 # ./install, which can be erroneously created by make from ./install.sh.
2244 # Reject install programs that cannot install multiple files.
2245 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2246 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2247 if test -z "$INSTALL"; then
2248 if test "${ac_cv_path_install+set}" = set; then
2249 $as_echo_n "(cached) " >&6
2250 else
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2253 do
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 # Account for people who put trailing slashes in PATH elements.
2257 case $as_dir/ in
2258 ./ | .// | /cC/* | \
2259 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2260 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2261 /usr/ucb/* ) ;;
2262 *)
2263 # OSF1 and SCO ODT 3.0 have their own names for install.
2264 # Don't use installbsd from OSF since it installs stuff as root
2265 # by default.
2266 for ac_prog in ginstall scoinst install; do
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2269 if test $ac_prog = install &&
2270 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2271 # AIX install. It has an incompatible calling convention.
2272 :
2273 elif test $ac_prog = install &&
2274 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2275 # program-specific install script used by HP pwplus--don't use.
2276 :
2277 else
2278 rm -rf conftest.one conftest.two conftest.dir
2279 echo one > conftest.one
2280 echo two > conftest.two
2281 mkdir conftest.dir
2282 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2283 test -s conftest.one && test -s conftest.two &&
2284 test -s conftest.dir/conftest.one &&
2285 test -s conftest.dir/conftest.two
2286 then
2287 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2288 break 3
2289 fi
2290 fi
2291 fi
2292 done
2293 done
2294 ;;
2295 esac
2296
2297 done
2298 IFS=$as_save_IFS
2299
2300 rm -rf conftest.one conftest.two conftest.dir
2301
2302 fi
2303 if test "${ac_cv_path_install+set}" = set; then
2304 INSTALL=$ac_cv_path_install
2305 else
2306 # As a last resort, use the slow shell script. Don't cache a
2307 # value for INSTALL within a source directory, because that will
2308 # break other packages using the cache if that directory is
2309 # removed, or if the value is a relative name.
2310 INSTALL=$ac_install_sh
2311 fi
2312 fi
2313 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2314 $as_echo "$INSTALL" >&6; }
2315
2316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2317 # It thinks the first close brace ends the variable substitution.
2318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2319
2320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2321
2322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2323
2324 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2325 $as_echo_n "checking whether build environment is sane... " >&6; }
2326 # Just in case
2327 sleep 1
2328 echo timestamp > conftest.file
2329 # Reject unsafe characters in $srcdir or the absolute working directory
2330 # name. Accept space and tab only in the latter.
2331 am_lf='
2332 '
2333 case `pwd` in
2334 *[\\\"\#\$\&\'\`$am_lf]*)
2335 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2336 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2337 { (exit 1); exit 1; }; };;
2338 esac
2339 case $srcdir in
2340 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2341 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2342 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2343 { (exit 1); exit 1; }; };;
2344 esac
2345
2346 # Do `set' in a subshell so we don't clobber the current shell's
2347 # arguments. Must try -L first in case configure is actually a
2348 # symlink; some systems play weird games with the mod time of symlinks
2349 # (eg FreeBSD returns the mod time of the symlink's containing
2350 # directory).
2351 if (
2352 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2353 if test "$*" = "X"; then
2354 # -L didn't work.
2355 set X `ls -t "$srcdir/configure" conftest.file`
2356 fi
2357 rm -f conftest.file
2358 if test "$*" != "X $srcdir/configure conftest.file" \
2359 && test "$*" != "X conftest.file $srcdir/configure"; then
2360
2361 # If neither matched, then we have a broken ls. This can happen
2362 # if, for instance, CONFIG_SHELL is bash and it inherits a
2363 # broken ls alias from the environment. This has actually
2364 # happened. Such a system could not be considered "sane".
2365 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2366 alias in your environment" >&5
2367 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2368 alias in your environment" >&2;}
2369 { (exit 1); exit 1; }; }
2370 fi
2371
2372 test "$2" = conftest.file
2373 )
2374 then
2375 # Ok.
2376 :
2377 else
2378 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2379 Check your system clock" >&5
2380 $as_echo "$as_me: error: newly created file is older than distributed files!
2381 Check your system clock" >&2;}
2382 { (exit 1); exit 1; }; }
2383 fi
2384 { $as_echo "$as_me:$LINENO: result: yes" >&5
2385 $as_echo "yes" >&6; }
2386 test "$program_prefix" != NONE &&
2387 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2388 # Use a double $ so make ignores it.
2389 test "$program_suffix" != NONE &&
2390 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2391 # Double any \ or $.
2392 # By default was `s,x,x', remove it if useless.
2393 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2394 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2395
2396 # expand $ac_aux_dir to an absolute path
2397 am_aux_dir=`cd $ac_aux_dir && pwd`
2398
2399 if test x"${MISSING+set}" != xset; then
2400 case $am_aux_dir in
2401 *\ * | *\ *)
2402 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2403 *)
2404 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2405 esac
2406 fi
2407 # Use eval to expand $SHELL
2408 if eval "$MISSING --run true"; then
2409 am_missing_run="$MISSING --run "
2410 else
2411 am_missing_run=
2412 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2413 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2414 fi
2415
2416 if test x"${install_sh}" != xset; then
2417 case $am_aux_dir in
2418 *\ * | *\ *)
2419 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2420 *)
2421 install_sh="\${SHELL} $am_aux_dir/install-sh"
2422 esac
2423 fi
2424
2425 # Installed binaries are usually stripped using `strip' when the user
2426 # run `make install-strip'. However `strip' might not be the right
2427 # tool to use in cross-compilation environments, therefore Automake
2428 # will honor the `STRIP' environment variable to overrule this program.
2429 if test "$cross_compiling" != no; then
2430 if test -n "$ac_tool_prefix"; then
2431 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2432 set dummy ${ac_tool_prefix}strip; ac_word=$2
2433 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 $as_echo_n "checking for $ac_word... " >&6; }
2435 if test "${ac_cv_prog_STRIP+set}" = set; then
2436 $as_echo_n "(cached) " >&6
2437 else
2438 if test -n "$STRIP"; then
2439 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2440 else
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2443 do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 2
2451 fi
2452 done
2453 done
2454 IFS=$as_save_IFS
2455
2456 fi
2457 fi
2458 STRIP=$ac_cv_prog_STRIP
2459 if test -n "$STRIP"; then
2460 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2461 $as_echo "$STRIP" >&6; }
2462 else
2463 { $as_echo "$as_me:$LINENO: result: no" >&5
2464 $as_echo "no" >&6; }
2465 fi
2466
2467
2468 fi
2469 if test -z "$ac_cv_prog_STRIP"; then
2470 ac_ct_STRIP=$STRIP
2471 # Extract the first word of "strip", so it can be a program name with args.
2472 set dummy strip; ac_word=$2
2473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 $as_echo_n "checking for $ac_word... " >&6; }
2475 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2476 $as_echo_n "(cached) " >&6
2477 else
2478 if test -n "$ac_ct_STRIP"; then
2479 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2483 do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488 ac_cv_prog_ac_ct_STRIP="strip"
2489 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2491 fi
2492 done
2493 done
2494 IFS=$as_save_IFS
2495
2496 fi
2497 fi
2498 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2499 if test -n "$ac_ct_STRIP"; then
2500 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2501 $as_echo "$ac_ct_STRIP" >&6; }
2502 else
2503 { $as_echo "$as_me:$LINENO: result: no" >&5
2504 $as_echo "no" >&6; }
2505 fi
2506
2507 if test "x$ac_ct_STRIP" = x; then
2508 STRIP=":"
2509 else
2510 case $cross_compiling:$ac_tool_warned in
2511 yes:)
2512 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2514 ac_tool_warned=yes ;;
2515 esac
2516 STRIP=$ac_ct_STRIP
2517 fi
2518 else
2519 STRIP="$ac_cv_prog_STRIP"
2520 fi
2521
2522 fi
2523 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2524
2525 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2526 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2527 if test -z "$MKDIR_P"; then
2528 if test "${ac_cv_path_mkdir+set}" = set; then
2529 $as_echo_n "(cached) " >&6
2530 else
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2533 do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 for ac_prog in mkdir gmkdir; do
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2539 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2540 'mkdir (GNU coreutils) '* | \
2541 'mkdir (coreutils) '* | \
2542 'mkdir (fileutils) '4.1*)
2543 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2544 break 3;;
2545 esac
2546 done
2547 done
2548 done
2549 IFS=$as_save_IFS
2550
2551 fi
2552
2553 if test "${ac_cv_path_mkdir+set}" = set; then
2554 MKDIR_P="$ac_cv_path_mkdir -p"
2555 else
2556 # As a last resort, use the slow shell script. Don't cache a
2557 # value for MKDIR_P within a source directory, because that will
2558 # break other packages using the cache if that directory is
2559 # removed, or if the value is a relative name.
2560 test -d ./--version && rmdir ./--version
2561 MKDIR_P="$ac_install_sh -d"
2562 fi
2563 fi
2564 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2565 $as_echo "$MKDIR_P" >&6; }
2566
2567 mkdir_p="$MKDIR_P"
2568 case $mkdir_p in
2569 [\\/$]* | ?:[\\/]*) ;;
2570 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2571 esac
2572
2573 for ac_prog in gawk mawk nawk awk
2574 do
2575 # Extract the first word of "$ac_prog", so it can be a program name with args.
2576 set dummy $ac_prog; ac_word=$2
2577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 $as_echo_n "checking for $ac_word... " >&6; }
2579 if test "${ac_cv_prog_AWK+set}" = set; then
2580 $as_echo_n "(cached) " >&6
2581 else
2582 if test -n "$AWK"; then
2583 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592 ac_cv_prog_AWK="$ac_prog"
2593 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2595 fi
2596 done
2597 done
2598 IFS=$as_save_IFS
2599
2600 fi
2601 fi
2602 AWK=$ac_cv_prog_AWK
2603 if test -n "$AWK"; then
2604 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2605 $as_echo "$AWK" >&6; }
2606 else
2607 { $as_echo "$as_me:$LINENO: result: no" >&5
2608 $as_echo "no" >&6; }
2609 fi
2610
2611
2612 test -n "$AWK" && break
2613 done
2614
2615 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2616 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2617 set x ${MAKE-make}
2618 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2619 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2620 $as_echo_n "(cached) " >&6
2621 else
2622 cat >conftest.make <<\_ACEOF
2623 SHELL = /bin/sh
2624 all:
2625 @echo '@@@%%%=$(MAKE)=@@@%%%'
2626 _ACEOF
2627 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2628 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2629 *@@@%%%=?*=@@@%%%*)
2630 eval ac_cv_prog_make_${ac_make}_set=yes;;
2631 *)
2632 eval ac_cv_prog_make_${ac_make}_set=no;;
2633 esac
2634 rm -f conftest.make
2635 fi
2636 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2637 { $as_echo "$as_me:$LINENO: result: yes" >&5
2638 $as_echo "yes" >&6; }
2639 SET_MAKE=
2640 else
2641 { $as_echo "$as_me:$LINENO: result: no" >&5
2642 $as_echo "no" >&6; }
2643 SET_MAKE="MAKE=${MAKE-make}"
2644 fi
2645
2646 rm -rf .tst 2>/dev/null
2647 mkdir .tst 2>/dev/null
2648 if test -d .tst; then
2649 am__leading_dot=.
2650 else
2651 am__leading_dot=_
2652 fi
2653 rmdir .tst 2>/dev/null
2654
2655 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2656 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2657 # is not polluted with repeated "-I."
2658 am__isrc=' -I$(srcdir)'
2659 # test to see if srcdir already configured
2660 if test -f $srcdir/config.status; then
2661 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2662 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2663 { (exit 1); exit 1; }; }
2664 fi
2665 fi
2666
2667 # test whether we have cygpath
2668 if test -z "$CYGPATH_W"; then
2669 if (cygpath --version) >/dev/null 2>/dev/null; then
2670 CYGPATH_W='cygpath -w'
2671 else
2672 CYGPATH_W=echo
2673 fi
2674 fi
2675
2676
2677 # Define the identity of the package.
2678 PACKAGE='tpm-tools'
2679 VERSION='1.3.9'
2680
2681
2682 cat >>confdefs.h <<_ACEOF
2683 #define PACKAGE "$PACKAGE"
2684 _ACEOF
2685
2686
2687 cat >>confdefs.h <<_ACEOF
2688 #define VERSION "$VERSION"
2689 _ACEOF
2690
2691 # Some tools Automake needs.
2692
2693 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2694
2695
2696 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2697
2698
2699 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2700
2701
2702 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2703
2704
2705 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2706
2707 # We need awk for the "check" target. The system "awk" is bad on
2708 # some platforms.
2709 # Always define AMTAR for backward compatibility.
2710
2711 AMTAR=${AMTAR-"${am_missing_run}tar"}
2712
2713 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2714
2715
2716
2717
2718
2719
2720
2721 DEBUG=""
2722 { $as_echo "$as_me:$LINENO: checking for debug-enabled build" >&5
2723 $as_echo_n "checking for debug-enabled build... " >&6; }
2724 # Check whether --enable-debug was given.
2725 if test "${enable_debug+set}" = set; then
2726 enableval=$enable_debug; if test "$enableval" = "yes"; then
2727 DEBUG="yes"
2728 { $as_echo "$as_me:$LINENO: result: yes" >&5
2729 $as_echo "yes" >&6; }
2730 else
2731 DEBUG="no"
2732 { $as_echo "$as_me:$LINENO: result: no" >&5
2733 $as_echo "no" >&6; }
2734 fi
2735 else
2736 DEBUG="no"
2737 { $as_echo "$as_me:$LINENO: result: no" >&5
2738 $as_echo "no" >&6; }
2739 fi
2740
2741
2742 # If the user has not set CFLAGS, do something appropriate
2743 test_CFLAGS=${CFLAGS+set}
2744 if test "$test_CFLAGS" != set; then
2745 if test "$DEBUG" == "yes"; then
2746 CFLAGS="-O0 -g -DDEBUG"
2747 else
2748 CFLAGS="-g -O2"
2749 fi
2750 elif test "$DEBUG" == "yes"; then
2751 CFLAGS="$CFLAGS -O0 -g -DDEBUG"
2752 fi
2753
2754
2755 ac_ext=c
2756 ac_cpp='$CPP $CPPFLAGS'
2757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760 if test -n "$ac_tool_prefix"; then
2761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2762 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if test "${ac_cv_prog_CC+set}" = set; then
2766 $as_echo_n "(cached) " >&6
2767 else
2768 if test -n "$CC"; then
2769 ac_cv_prog_CC="$CC" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2779 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782 done
2783 done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 CC=$ac_cv_prog_CC
2789 if test -n "$CC"; then
2790 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2791 $as_echo "$CC" >&6; }
2792 else
2793 { $as_echo "$as_me:$LINENO: result: no" >&5
2794 $as_echo "no" >&6; }
2795 fi
2796
2797
2798 fi
2799 if test -z "$ac_cv_prog_CC"; then
2800 ac_ct_CC=$CC
2801 # Extract the first word of "gcc", so it can be a program name with args.
2802 set dummy gcc; ac_word=$2
2803 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test -n "$ac_ct_CC"; then
2809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_ac_ct_CC="gcc"
2819 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2821 fi
2822 done
2823 done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2829 if test -n "$ac_ct_CC"; then
2830 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2831 $as_echo "$ac_ct_CC" >&6; }
2832 else
2833 { $as_echo "$as_me:$LINENO: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837 if test "x$ac_ct_CC" = x; then
2838 CC=""
2839 else
2840 case $cross_compiling:$ac_tool_warned in
2841 yes:)
2842 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2844 ac_tool_warned=yes ;;
2845 esac
2846 CC=$ac_ct_CC
2847 fi
2848 else
2849 CC="$ac_cv_prog_CC"
2850 fi
2851
2852 if test -z "$CC"; then
2853 if test -n "$ac_tool_prefix"; then
2854 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2855 set dummy ${ac_tool_prefix}cc; ac_word=$2
2856 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if test "${ac_cv_prog_CC+set}" = set; then
2859 $as_echo_n "(cached) " >&6
2860 else
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC="$CC" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2871 ac_cv_prog_CC="${ac_tool_prefix}cc"
2872 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2874 fi
2875 done
2876 done
2877 IFS=$as_save_IFS
2878
2879 fi
2880 fi
2881 CC=$ac_cv_prog_CC
2882 if test -n "$CC"; then
2883 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2884 $as_echo "$CC" >&6; }
2885 else
2886 { $as_echo "$as_me:$LINENO: result: no" >&5
2887 $as_echo "no" >&6; }
2888 fi
2889
2890
2891 fi
2892 fi
2893 if test -z "$CC"; then
2894 # Extract the first word of "cc", so it can be a program name with args.
2895 set dummy cc; ac_word=$2
2896 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if test "${ac_cv_prog_CC+set}" = set; then
2899 $as_echo_n "(cached) " >&6
2900 else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903 else
2904 ac_prog_rejected=no
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2913 ac_prog_rejected=yes
2914 continue
2915 fi
2916 ac_cv_prog_CC="cc"
2917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 break 2
2919 fi
2920 done
2921 done
2922 IFS=$as_save_IFS
2923
2924 if test $ac_prog_rejected = yes; then
2925 # We found a bogon in the path, so make sure we never use it.
2926 set dummy $ac_cv_prog_CC
2927 shift
2928 if test $# != 0; then
2929 # We chose a different compiler from the bogus one.
2930 # However, it has the same basename, so the bogon will be chosen
2931 # first if we set CC to just the basename; use the full file name.
2932 shift
2933 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2934 fi
2935 fi
2936 fi
2937 fi
2938 CC=$ac_cv_prog_CC
2939 if test -n "$CC"; then
2940 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2941 $as_echo "$CC" >&6; }
2942 else
2943 { $as_echo "$as_me:$LINENO: result: no" >&5
2944 $as_echo "no" >&6; }
2945 fi
2946
2947
2948 fi
2949 if test -z "$CC"; then
2950 if test -n "$ac_tool_prefix"; then
2951 for ac_prog in cl.exe
2952 do
2953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2955 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if test "${ac_cv_prog_CC+set}" = set; then
2958 $as_echo_n "(cached) " >&6
2959 else
2960 if test -n "$CC"; then
2961 ac_cv_prog_CC="$CC" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2971 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974 done
2975 done
2976 IFS=$as_save_IFS
2977
2978 fi
2979 fi
2980 CC=$ac_cv_prog_CC
2981 if test -n "$CC"; then
2982 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2983 $as_echo "$CC" >&6; }
2984 else
2985 { $as_echo "$as_me:$LINENO: result: no" >&5
2986 $as_echo "no" >&6; }
2987 fi
2988
2989
2990 test -n "$CC" && break
2991 done
2992 fi
2993 if test -z "$CC"; then
2994 ac_ct_CC=$CC
2995 for ac_prog in cl.exe
2996 do
2997 # Extract the first word of "$ac_prog", so it can be a program name with args.
2998 set dummy $ac_prog; ac_word=$2
2999 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3000 $as_echo_n "checking for $ac_word... " >&6; }
3001 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3002 $as_echo_n "(cached) " >&6
3003 else
3004 if test -n "$ac_ct_CC"; then
3005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3006 else
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 for as_dir in $PATH
3009 do
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 ac_cv_prog_ac_ct_CC="$ac_prog"
3015 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 break 2
3017 fi
3018 done
3019 done
3020 IFS=$as_save_IFS
3021
3022 fi
3023 fi
3024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3025 if test -n "$ac_ct_CC"; then
3026 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3027 $as_echo "$ac_ct_CC" >&6; }
3028 else
3029 { $as_echo "$as_me:$LINENO: result: no" >&5
3030 $as_echo "no" >&6; }
3031 fi
3032
3033
3034 test -n "$ac_ct_CC" && break
3035 done
3036
3037 if test "x$ac_ct_CC" = x; then
3038 CC=""
3039 else
3040 case $cross_compiling:$ac_tool_warned in
3041 yes:)
3042 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3044 ac_tool_warned=yes ;;
3045 esac
3046 CC=$ac_ct_CC
3047 fi
3048 fi
3049
3050 fi
3051
3052
3053 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3056 See \`config.log' for more details." >&5
3057 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3058 See \`config.log' for more details." >&2;}
3059 { (exit 1); exit 1; }; }; }
3060
3061 # Provide some information about the compiler.
3062 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3063 set X $ac_compile
3064 ac_compiler=$2
3065 { (ac_try="$ac_compiler --version >&5"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3071 $as_echo "$ac_try_echo") >&5
3072 (eval "$ac_compiler --version >&5") 2>&5
3073 ac_status=$?
3074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }
3076 { (ac_try="$ac_compiler -v >&5"
3077 case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3082 $as_echo "$ac_try_echo") >&5
3083 (eval "$ac_compiler -v >&5") 2>&5
3084 ac_status=$?
3085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }
3087 { (ac_try="$ac_compiler -V >&5"
3088 case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3093 $as_echo "$ac_try_echo") >&5
3094 (eval "$ac_compiler -V >&5") 2>&5
3095 ac_status=$?
3096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }
3098
3099 cat >conftest.$ac_ext <<_ACEOF
3100 /* confdefs.h. */
3101 _ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3105
3106 int
3107 main ()
3108 {
3109
3110 ;
3111 return 0;
3112 }
3113 _ACEOF
3114 ac_clean_files_save=$ac_clean_files
3115 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3116 # Try to create an executable without -o first, disregard a.out.
3117 # It will help us diagnose broken compilers, and finding out an intuition
3118 # of exeext.
3119 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3120 $as_echo_n "checking for C compiler default output file name... " >&6; }
3121 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3122
3123 # The possible output files:
3124 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3125
3126 ac_rmfiles=
3127 for ac_file in $ac_files
3128 do
3129 case $ac_file in
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3131 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3132 esac
3133 done
3134 rm -f $ac_rmfiles
3135
3136 if { (ac_try="$ac_link_default"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3142 $as_echo "$ac_try_echo") >&5
3143 (eval "$ac_link_default") 2>&5
3144 ac_status=$?
3145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; then
3147 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3148 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3149 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3150 # so that the user can short-circuit this test for compilers unknown to
3151 # Autoconf.
3152 for ac_file in $ac_files ''
3153 do
3154 test -f "$ac_file" || continue
3155 case $ac_file in
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3157 ;;
3158 [ab].out )
3159 # We found the default executable, but exeext='' is most
3160 # certainly right.
3161 break;;
3162 *.* )
3163 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3164 then :; else
3165 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166 fi
3167 # We set ac_cv_exeext here because the later test for it is not
3168 # safe: cross compilers may not add the suffix if given an `-o'
3169 # argument, so we may need to know it at that point already.
3170 # Even if this section looks crufty: it has the advantage of
3171 # actually working.
3172 break;;
3173 * )
3174 break;;
3175 esac
3176 done
3177 test "$ac_cv_exeext" = no && ac_cv_exeext=
3178
3179 else
3180 ac_file=''
3181 fi
3182
3183 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3184 $as_echo "$ac_file" >&6; }
3185 if test -z "$ac_file"; then
3186 $as_echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3192 See \`config.log' for more details." >&5
3193 $as_echo "$as_me: error: C compiler cannot create executables
3194 See \`config.log' for more details." >&2;}
3195 { (exit 77); exit 77; }; }; }
3196 fi
3197
3198 ac_exeext=$ac_cv_exeext
3199
3200 # Check that the compiler produces executables we can run. If not, either
3201 # the compiler is broken, or we cross compile.
3202 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3203 $as_echo_n "checking whether the C compiler works... " >&6; }
3204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3205 # If not cross compiling, check that we can run a simple program.
3206 if test "$cross_compiling" != yes; then
3207 if { ac_try='./$ac_file'
3208 { (case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211 esac
3212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3213 $as_echo "$ac_try_echo") >&5
3214 (eval "$ac_try") 2>&5
3215 ac_status=$?
3216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; }; then
3218 cross_compiling=no
3219 else
3220 if test "$cross_compiling" = maybe; then
3221 cross_compiling=yes
3222 else
3223 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3226 If you meant to cross compile, use \`--host'.
3227 See \`config.log' for more details." >&5
3228 $as_echo "$as_me: error: cannot run C compiled programs.
3229 If you meant to cross compile, use \`--host'.
3230 See \`config.log' for more details." >&2;}
3231 { (exit 1); exit 1; }; }; }
3232 fi
3233 fi
3234 fi
3235 { $as_echo "$as_me:$LINENO: result: yes" >&5
3236 $as_echo "yes" >&6; }
3237
3238 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3239 ac_clean_files=$ac_clean_files_save
3240 # Check that the compiler produces executables we can run. If not, either
3241 # the compiler is broken, or we cross compile.
3242 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3243 $as_echo_n "checking whether we are cross compiling... " >&6; }
3244 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3245 $as_echo "$cross_compiling" >&6; }
3246
3247 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3248 $as_echo_n "checking for suffix of executables... " >&6; }
3249 if { (ac_try="$ac_link"
3250 case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253 esac
3254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3255 $as_echo "$ac_try_echo") >&5
3256 (eval "$ac_link") 2>&5
3257 ac_status=$?
3258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; then
3260 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3261 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3262 # work properly (i.e., refer to `conftest.exe'), while it won't with
3263 # `rm'.
3264 for ac_file in conftest.exe conftest conftest.*; do
3265 test -f "$ac_file" || continue
3266 case $ac_file in
3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3268 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3269 break;;
3270 * ) break;;
3271 esac
3272 done
3273 else
3274 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3277 See \`config.log' for more details." >&5
3278 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3279 See \`config.log' for more details." >&2;}
3280 { (exit 1); exit 1; }; }; }
3281 fi
3282
3283 rm -f conftest$ac_cv_exeext
3284 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3285 $as_echo "$ac_cv_exeext" >&6; }
3286
3287 rm -f conftest.$ac_ext
3288 EXEEXT=$ac_cv_exeext
3289 ac_exeext=$EXEEXT
3290 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3291 $as_echo_n "checking for suffix of object files... " >&6; }
3292 if test "${ac_cv_objext+set}" = set; then
3293 $as_echo_n "(cached) " >&6
3294 else
3295 cat >conftest.$ac_ext <<_ACEOF
3296 /* confdefs.h. */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3301
3302 int
3303 main ()
3304 {
3305
3306 ;
3307 return 0;
3308 }
3309 _ACEOF
3310 rm -f conftest.o conftest.obj
3311 if { (ac_try="$ac_compile"
3312 case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3317 $as_echo "$ac_try_echo") >&5
3318 (eval "$ac_compile") 2>&5
3319 ac_status=$?
3320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; then
3322 for ac_file in conftest.o conftest.obj conftest.*; do
3323 test -f "$ac_file" || continue;
3324 case $ac_file in
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3326 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3327 break;;
3328 esac
3329 done
3330 else
3331 $as_echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3337 See \`config.log' for more details." >&5
3338 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3339 See \`config.log' for more details." >&2;}
3340 { (exit 1); exit 1; }; }; }
3341 fi
3342
3343 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3344 fi
3345 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3346 $as_echo "$ac_cv_objext" >&6; }
3347 OBJEXT=$ac_cv_objext
3348 ac_objext=$OBJEXT
3349 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3350 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3351 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3352 $as_echo_n "(cached) " >&6
3353 else
3354 cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h. */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360
3361 int
3362 main ()
3363 {
3364 #ifndef __GNUC__
3365 choke me
3366 #endif
3367
3368 ;
3369 return 0;
3370 }
3371 _ACEOF
3372 rm -f conftest.$ac_objext
3373 if { (ac_try="$ac_compile"
3374 case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3379 $as_echo "$ac_try_echo") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest.$ac_objext; then
3390 ac_compiler_gnu=yes
3391 else
3392 $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395 ac_compiler_gnu=no
3396 fi
3397
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3400
3401 fi
3402 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3403 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3404 if test $ac_compiler_gnu = yes; then
3405 GCC=yes
3406 else
3407 GCC=
3408 fi
3409 ac_test_CFLAGS=${CFLAGS+set}
3410 ac_save_CFLAGS=$CFLAGS
3411 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3412 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3413 if test "${ac_cv_prog_cc_g+set}" = set; then
3414 $as_echo_n "(cached) " >&6
3415 else
3416 ac_save_c_werror_flag=$ac_c_werror_flag
3417 ac_c_werror_flag=yes
3418 ac_cv_prog_cc_g=no
3419 CFLAGS="-g"
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426
3427 int
3428 main ()
3429 {
3430
3431 ;
3432 return 0;
3433 }
3434 _ACEOF
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3442 $as_echo "$ac_try_echo") >&5
3443 (eval "$ac_compile") 2>conftest.er1
3444 ac_status=$?
3445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } && {
3450 test -z "$ac_c_werror_flag" ||
3451 test ! -s conftest.err
3452 } && test -s conftest.$ac_objext; then
3453 ac_cv_prog_cc_g=yes
3454 else
3455 $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458 CFLAGS=""
3459 cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h. */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3465
3466 int
3467 main ()
3468 {
3469
3470 ;
3471 return 0;
3472 }
3473 _ACEOF
3474 rm -f conftest.$ac_objext
3475 if { (ac_try="$ac_compile"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3481 $as_echo "$ac_try_echo") >&5
3482 (eval "$ac_compile") 2>conftest.er1
3483 ac_status=$?
3484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } && {
3489 test -z "$ac_c_werror_flag" ||
3490 test ! -s conftest.err
3491 } && test -s conftest.$ac_objext; then
3492 :
3493 else
3494 $as_echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497 ac_c_werror_flag=$ac_save_c_werror_flag
3498 CFLAGS="-g"
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h. */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505
3506 int
3507 main ()
3508 {
3509
3510 ;
3511 return 0;
3512 }
3513 _ACEOF
3514 rm -f conftest.$ac_objext
3515 if { (ac_try="$ac_compile"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3521 $as_echo "$ac_try_echo") >&5
3522 (eval "$ac_compile") 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } && {
3529 test -z "$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 } && test -s conftest.$ac_objext; then
3532 ac_cv_prog_cc_g=yes
3533 else
3534 $as_echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3536
3537
3538 fi
3539
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541 fi
3542
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 fi
3545
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 ac_c_werror_flag=$ac_save_c_werror_flag
3548 fi
3549 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3550 $as_echo "$ac_cv_prog_cc_g" >&6; }
3551 if test "$ac_test_CFLAGS" = set; then
3552 CFLAGS=$ac_save_CFLAGS
3553 elif test $ac_cv_prog_cc_g = yes; then
3554 if test "$GCC" = yes; then
3555 CFLAGS="-g -O2"
3556 else
3557 CFLAGS="-g"
3558 fi
3559 else
3560 if test "$GCC" = yes; then
3561 CFLAGS="-O2"
3562 else
3563 CFLAGS=
3564 fi
3565 fi
3566 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3567 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3568 if test "${ac_cv_prog_cc_c89+set}" = set; then
3569 $as_echo_n "(cached) " >&6
3570 else
3571 ac_cv_prog_cc_c89=no
3572 ac_save_CC=$CC
3573 cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h. */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3579 #include <stdarg.h>
3580 #include <stdio.h>
3581 #include <sys/types.h>
3582 #include <sys/stat.h>
3583 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3584 struct buf { int x; };
3585 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3586 static char *e (p, i)
3587 char **p;
3588 int i;
3589 {
3590 return p[i];
3591 }
3592 static char *f (char * (*g) (char **, int), char **p, ...)
3593 {
3594 char *s;
3595 va_list v;
3596 va_start (v,p);
3597 s = g (p, va_arg (v,int));
3598 va_end (v);
3599 return s;
3600 }
3601
3602 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3603 function prototypes and stuff, but not '\xHH' hex character constants.
3604 These don't provoke an error unfortunately, instead are silently treated
3605 as 'x'. The following induces an error, until -std is added to get
3606 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3607 array size at least. It's necessary to write '\x00'==0 to get something
3608 that's true only with -std. */
3609 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3610
3611 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3612 inside strings and character constants. */
3613 #define FOO(x) 'x'
3614 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3615
3616 int test (int i, double x);
3617 struct s1 {int (*f) (int a);};
3618 struct s2 {int (*f) (double a);};
3619 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3620 int argc;
3621 char **argv;
3622 int
3623 main ()
3624 {
3625 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3626 ;
3627 return 0;
3628 }
3629 _ACEOF
3630 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3631 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3632 do
3633 CC="$ac_save_CC $ac_arg"
3634 rm -f conftest.$ac_objext
3635 if { (ac_try="$ac_compile"
3636 case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639 esac
3640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3641 $as_echo "$ac_try_echo") >&5
3642 (eval "$ac_compile") 2>conftest.er1
3643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } && {
3649 test -z "$ac_c_werror_flag" ||
3650 test ! -s conftest.err
3651 } && test -s conftest.$ac_objext; then
3652 ac_cv_prog_cc_c89=$ac_arg
3653 else
3654 $as_echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3656
3657
3658 fi
3659
3660 rm -f core conftest.err conftest.$ac_objext
3661 test "x$ac_cv_prog_cc_c89" != "xno" && break
3662 done
3663 rm -f conftest.$ac_ext
3664 CC=$ac_save_CC
3665
3666 fi
3667 # AC_CACHE_VAL
3668 case "x$ac_cv_prog_cc_c89" in
3669 x)
3670 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3671 $as_echo "none needed" >&6; } ;;
3672 xno)
3673 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3674 $as_echo "unsupported" >&6; } ;;
3675 *)
3676 CC="$CC $ac_cv_prog_cc_c89"
3677 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3678 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3679 esac
3680
3681
3682 ac_ext=c
3683 ac_cpp='$CPP $CPPFLAGS'
3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687 DEPDIR="${am__leading_dot}deps"
3688
3689 ac_config_commands="$ac_config_commands depfiles"
3690
3691
3692 am_make=${MAKE-make}
3693 cat > confinc << 'END'
3694 am__doit:
3695 @echo this is the am__doit target
3696 .PHONY: am__doit
3697 END
3698 # If we don't find an include directive, just comment out the code.
3699 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3700 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3701 am__include="#"
3702 am__quote=
3703 _am_result=none
3704 # First try GNU make style include.
3705 echo "include confinc" > confmf
3706 # Ignore all kinds of additional output from `make'.
3707 case `$am_make -s -f confmf 2> /dev/null` in #(
3708 *the\ am__doit\ target*)
3709 am__include=include
3710 am__quote=
3711 _am_result=GNU
3712 ;;
3713 esac
3714 # Now try BSD make style include.
3715 if test "$am__include" = "#"; then
3716 echo '.include "confinc"' > confmf
3717 case `$am_make -s -f confmf 2> /dev/null` in #(
3718 *the\ am__doit\ target*)
3719 am__include=.include
3720 am__quote="\""
3721 _am_result=BSD
3722 ;;
3723 esac
3724 fi
3725
3726
3727 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3728 $as_echo "$_am_result" >&6; }
3729 rm -f confinc confmf
3730
3731 # Check whether --enable-dependency-tracking was given.
3732 if test "${enable_dependency_tracking+set}" = set; then
3733 enableval=$enable_dependency_tracking;
3734 fi
3735
3736 if test "x$enable_dependency_tracking" != xno; then
3737 am_depcomp="$ac_aux_dir/depcomp"
3738 AMDEPBACKSLASH='\'
3739 fi
3740 if test "x$enable_dependency_tracking" != xno; then
3741 AMDEP_TRUE=
3742 AMDEP_FALSE='#'
3743 else
3744 AMDEP_TRUE='#'
3745 AMDEP_FALSE=
3746 fi
3747
3748
3749
3750 depcc="$CC" am_compiler_list=
3751
3752 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3753 $as_echo_n "checking dependency style of $depcc... " >&6; }
3754 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3755 $as_echo_n "(cached) " >&6
3756 else
3757 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3758 # We make a subdir and do the tests there. Otherwise we can end up
3759 # making bogus files that we don't know about and never remove. For
3760 # instance it was reported that on HP-UX the gcc test will end up
3761 # making a dummy file named `D' -- because `-MD' means `put the output
3762 # in D'.
3763 mkdir conftest.dir
3764 # Copy depcomp to subdir because otherwise we won't find it if we're
3765 # using a relative directory.
3766 cp "$am_depcomp" conftest.dir
3767 cd conftest.dir
3768 # We will build objects and dependencies in a subdirectory because
3769 # it helps to detect inapplicable dependency modes. For instance
3770 # both Tru64's cc and ICC support -MD to output dependencies as a
3771 # side effect of compilation, but ICC will put the dependencies in
3772 # the current directory while Tru64 will put them in the object
3773 # directory.
3774 mkdir sub
3775
3776 am_cv_CC_dependencies_compiler_type=none
3777 if test "$am_compiler_list" = ""; then
3778 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3779 fi
3780 am__universal=false
3781 case " $depcc " in #(
3782 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3783 esac
3784
3785 for depmode in $am_compiler_list; do
3786 # Setup a source with many dependencies, because some compilers
3787 # like to wrap large dependency lists on column 80 (with \), and
3788 # we should not choose a depcomp mode which is confused by this.
3789 #
3790 # We need to recreate these files for each test, as the compiler may
3791 # overwrite some of them when testing with obscure command lines.
3792 # This happens at least with the AIX C compiler.
3793 : > sub/conftest.c
3794 for i in 1 2 3 4 5 6; do
3795 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3796 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3797 # Solaris 8's {/usr,}/bin/sh.
3798 touch sub/conftst$i.h
3799 done
3800 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3801
3802 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3803 # mode. It turns out that the SunPro C++ compiler does not properly
3804 # handle `-M -o', and we need to detect this. Also, some Intel
3805 # versions had trouble with output in subdirs
3806 am__obj=sub/conftest.${OBJEXT-o}
3807 am__minus_obj="-o $am__obj"
3808 case $depmode in
3809 gcc)
3810 # This depmode causes a compiler race in universal mode.
3811 test "$am__universal" = false || continue
3812 ;;
3813 nosideeffect)
3814 # after this tag, mechanisms are not by side-effect, so they'll
3815 # only be used when explicitly requested
3816 if test "x$enable_dependency_tracking" = xyes; then
3817 continue
3818 else
3819 break
3820 fi
3821 ;;
3822 msvisualcpp | msvcmsys)
3823 # This compiler won't grok `-c -o', but also, the minuso test has
3824 # not run yet. These depmodes are late enough in the game, and
3825 # so weak that their functioning should not be impacted.
3826 am__obj=conftest.${OBJEXT-o}
3827 am__minus_obj=
3828 ;;
3829 none) break ;;
3830 esac
3831 if depmode=$depmode \
3832 source=sub/conftest.c object=$am__obj \
3833 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3834 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3835 >/dev/null 2>conftest.err &&
3836 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3837 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3838 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3839 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3840 # icc doesn't choke on unknown options, it will just issue warnings
3841 # or remarks (even with -Werror). So we grep stderr for any message
3842 # that says an option was ignored or not supported.
3843 # When given -MP, icc 7.0 and 7.1 complain thusly:
3844 # icc: Command line warning: ignoring option '-M'; no argument required
3845 # The diagnosis changed in icc 8.0:
3846 # icc: Command line remark: option '-MP' not supported
3847 if (grep 'ignoring option' conftest.err ||
3848 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3849 am_cv_CC_dependencies_compiler_type=$depmode
3850 break
3851 fi
3852 fi
3853 done
3854
3855 cd ..
3856 rm -rf conftest.dir
3857 else
3858 am_cv_CC_dependencies_compiler_type=none
3859 fi
3860
3861 fi
3862 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3863 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3864 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3865
3866 if
3867 test "x$enable_dependency_tracking" != xno \
3868 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3869 am__fastdepCC_TRUE=
3870 am__fastdepCC_FALSE='#'
3871 else
3872 am__fastdepCC_TRUE='#'
3873 am__fastdepCC_FALSE=
3874 fi
3875
3876
3877 # Find a good install program. We prefer a C program (faster),
3878 # so one script is as good as another. But avoid the broken or
3879 # incompatible versions:
3880 # SysV /etc/install, /usr/sbin/install
3881 # SunOS /usr/etc/install
3882 # IRIX /sbin/install
3883 # AIX /bin/install
3884 # AmigaOS /C/install, which installs bootblocks on floppy discs
3885 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3886 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3887 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3888 # OS/2's system install, which has a completely different semantic
3889 # ./install, which can be erroneously created by make from ./install.sh.
3890 # Reject install programs that cannot install multiple files.
3891 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3892 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3893 if test -z "$INSTALL"; then
3894 if test "${ac_cv_path_install+set}" = set; then
3895 $as_echo_n "(cached) " >&6
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3899 do
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 # Account for people who put trailing slashes in PATH elements.
3903 case $as_dir/ in
3904 ./ | .// | /cC/* | \
3905 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3906 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3907 /usr/ucb/* ) ;;
3908 *)
3909 # OSF1 and SCO ODT 3.0 have their own names for install.
3910 # Don't use installbsd from OSF since it installs stuff as root
3911 # by default.
3912 for ac_prog in ginstall scoinst install; do
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3915 if test $ac_prog = install &&
3916 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3917 # AIX install. It has an incompatible calling convention.
3918 :
3919 elif test $ac_prog = install &&
3920 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3921 # program-specific install script used by HP pwplus--don't use.
3922 :
3923 else
3924 rm -rf conftest.one conftest.two conftest.dir
3925 echo one > conftest.one
3926 echo two > conftest.two
3927 mkdir conftest.dir
3928 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3929 test -s conftest.one && test -s conftest.two &&
3930 test -s conftest.dir/conftest.one &&
3931 test -s conftest.dir/conftest.two
3932 then
3933 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3934 break 3
3935 fi
3936 fi
3937 fi
3938 done
3939 done
3940 ;;
3941 esac
3942
3943 done
3944 IFS=$as_save_IFS
3945
3946 rm -rf conftest.one conftest.two conftest.dir
3947
3948 fi
3949 if test "${ac_cv_path_install+set}" = set; then
3950 INSTALL=$ac_cv_path_install
3951 else
3952 # As a last resort, use the slow shell script. Don't cache a
3953 # value for INSTALL within a source directory, because that will
3954 # break other packages using the cache if that directory is
3955 # removed, or if the value is a relative name.
3956 INSTALL=$ac_install_sh
3957 fi
3958 fi
3959 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3960 $as_echo "$INSTALL" >&6; }
3961
3962 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3963 # It thinks the first close brace ends the variable substitution.
3964 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3965
3966 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3967
3968 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3969
3970 case `pwd` in
3971 *\ * | *\ *)
3972 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3973 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3974 esac
3975
3976
3977
3978 macro_version='2.2.6b'
3979 macro_revision='1.3017'
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993 ltmain="$ac_aux_dir/ltmain.sh"
3994
3995 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3996 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3997 if test "${ac_cv_path_SED+set}" = set; then
3998 $as_echo_n "(cached) " >&6
3999 else
4000 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4001 for ac_i in 1 2 3 4 5 6 7; do
4002 ac_script="$ac_script$as_nl$ac_script"
4003 done
4004 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4005 $as_unset ac_script || ac_script=
4006 if test -z "$SED"; then
4007 ac_path_SED_found=false
4008 # Loop through the user's path and test for each of PROGNAME-LIST
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_prog in sed gsed; do
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4017 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4018 # Check for GNU ac_path_SED and select it if it is found.
4019 # Check for GNU $ac_path_SED
4020 case `"$ac_path_SED" --version 2>&1` in
4021 *GNU*)
4022 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4023 *)
4024 ac_count=0
4025 $as_echo_n 0123456789 >"conftest.in"
4026 while :
4027 do
4028 cat "conftest.in" "conftest.in" >"conftest.tmp"
4029 mv "conftest.tmp" "conftest.in"
4030 cp "conftest.in" "conftest.nl"
4031 $as_echo '' >> "conftest.nl"
4032 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4034 ac_count=`expr $ac_count + 1`
4035 if test $ac_count -gt ${ac_path_SED_max-0}; then
4036 # Best one so far, save it but keep looking for a better one
4037 ac_cv_path_SED="$ac_path_SED"
4038 ac_path_SED_max=$ac_count
4039 fi
4040 # 10*(2^10) chars as input seems more than enough
4041 test $ac_count -gt 10 && break
4042 done
4043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4044 esac
4045
4046 $ac_path_SED_found && break 3
4047 done
4048 done
4049 done
4050 IFS=$as_save_IFS
4051 if test -z "$ac_cv_path_SED"; then
4052 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4053 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4054 { (exit 1); exit 1; }; }
4055 fi
4056 else
4057 ac_cv_path_SED=$SED
4058 fi
4059
4060 fi
4061 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4062 $as_echo "$ac_cv_path_SED" >&6; }
4063 SED="$ac_cv_path_SED"
4064 rm -f conftest.sed
4065
4066 test -z "$SED" && SED=sed
4067 Xsed="$SED -e 1s/^X//"
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4080 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4081 if test "${ac_cv_path_GREP+set}" = set; then
4082 $as_echo_n "(cached) " >&6
4083 else
4084 if test -z "$GREP"; then
4085 ac_path_GREP_found=false
4086 # Loop through the user's path and test for each of PROGNAME-LIST
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4089 do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_prog in grep ggrep; do
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4095 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4096 # Check for GNU ac_path_GREP and select it if it is found.
4097 # Check for GNU $ac_path_GREP
4098 case `"$ac_path_GREP" --version 2>&1` in
4099 *GNU*)
4100 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4101 *)
4102 ac_count=0
4103 $as_echo_n 0123456789 >"conftest.in"
4104 while :
4105 do
4106 cat "conftest.in" "conftest.in" >"conftest.tmp"
4107 mv "conftest.tmp" "conftest.in"
4108 cp "conftest.in" "conftest.nl"
4109 $as_echo 'GREP' >> "conftest.nl"
4110 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4112 ac_count=`expr $ac_count + 1`
4113 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4114 # Best one so far, save it but keep looking for a better one
4115 ac_cv_path_GREP="$ac_path_GREP"
4116 ac_path_GREP_max=$ac_count
4117 fi
4118 # 10*(2^10) chars as input seems more than enough
4119 test $ac_count -gt 10 && break
4120 done
4121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4122 esac
4123
4124 $ac_path_GREP_found && break 3
4125 done
4126 done
4127 done
4128 IFS=$as_save_IFS
4129 if test -z "$ac_cv_path_GREP"; then
4130 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4131 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4132 { (exit 1); exit 1; }; }
4133 fi
4134 else
4135 ac_cv_path_GREP=$GREP
4136 fi
4137
4138 fi
4139 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4140 $as_echo "$ac_cv_path_GREP" >&6; }
4141 GREP="$ac_cv_path_GREP"
4142
4143
4144 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4145 $as_echo_n "checking for egrep... " >&6; }
4146 if test "${ac_cv_path_EGREP+set}" = set; then
4147 $as_echo_n "(cached) " >&6
4148 else
4149 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4150 then ac_cv_path_EGREP="$GREP -E"
4151 else
4152 if test -z "$EGREP"; then
4153 ac_path_EGREP_found=false
4154 # Loop through the user's path and test for each of PROGNAME-LIST
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_prog in egrep; do
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4163 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4164 # Check for GNU ac_path_EGREP and select it if it is found.
4165 # Check for GNU $ac_path_EGREP
4166 case `"$ac_path_EGREP" --version 2>&1` in
4167 *GNU*)
4168 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4169 *)
4170 ac_count=0
4171 $as_echo_n 0123456789 >"conftest.in"
4172 while :
4173 do
4174 cat "conftest.in" "conftest.in" >"conftest.tmp"
4175 mv "conftest.tmp" "conftest.in"
4176 cp "conftest.in" "conftest.nl"
4177 $as_echo 'EGREP' >> "conftest.nl"
4178 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4180 ac_count=`expr $ac_count + 1`
4181 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4182 # Best one so far, save it but keep looking for a better one
4183 ac_cv_path_EGREP="$ac_path_EGREP"
4184 ac_path_EGREP_max=$ac_count
4185 fi
4186 # 10*(2^10) chars as input seems more than enough
4187 test $ac_count -gt 10 && break
4188 done
4189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4190 esac
4191
4192 $ac_path_EGREP_found && break 3
4193 done
4194 done
4195 done
4196 IFS=$as_save_IFS
4197 if test -z "$ac_cv_path_EGREP"; then
4198 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4199 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4200 { (exit 1); exit 1; }; }
4201 fi
4202 else
4203 ac_cv_path_EGREP=$EGREP
4204 fi
4205
4206 fi
4207 fi
4208 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4209 $as_echo "$ac_cv_path_EGREP" >&6; }
4210 EGREP="$ac_cv_path_EGREP"
4211
4212
4213 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4214 $as_echo_n "checking for fgrep... " >&6; }
4215 if test "${ac_cv_path_FGREP+set}" = set; then
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4219 then ac_cv_path_FGREP="$GREP -F"
4220 else
4221 if test -z "$FGREP"; then
4222 ac_path_FGREP_found=false
4223 # Loop through the user's path and test for each of PROGNAME-LIST
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4226 do
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_prog in fgrep; do
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4232 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4233 # Check for GNU ac_path_FGREP and select it if it is found.
4234 # Check for GNU $ac_path_FGREP
4235 case `"$ac_path_FGREP" --version 2>&1` in
4236 *GNU*)
4237 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4238 *)
4239 ac_count=0
4240 $as_echo_n 0123456789 >"conftest.in"
4241 while :
4242 do
4243 cat "conftest.in" "conftest.in" >"conftest.tmp"
4244 mv "conftest.tmp" "conftest.in"
4245 cp "conftest.in" "conftest.nl"
4246 $as_echo 'FGREP' >> "conftest.nl"
4247 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4249 ac_count=`expr $ac_count + 1`
4250 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4251 # Best one so far, save it but keep looking for a better one
4252 ac_cv_path_FGREP="$ac_path_FGREP"
4253 ac_path_FGREP_max=$ac_count
4254 fi
4255 # 10*(2^10) chars as input seems more than enough
4256 test $ac_count -gt 10 && break
4257 done
4258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4259 esac
4260
4261 $ac_path_FGREP_found && break 3
4262 done
4263 done
4264 done
4265 IFS=$as_save_IFS
4266 if test -z "$ac_cv_path_FGREP"; then
4267 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4268 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4269 { (exit 1); exit 1; }; }
4270 fi
4271 else
4272 ac_cv_path_FGREP=$FGREP
4273 fi
4274
4275 fi
4276 fi
4277 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4278 $as_echo "$ac_cv_path_FGREP" >&6; }
4279 FGREP="$ac_cv_path_FGREP"
4280
4281
4282 test -z "$GREP" && GREP=grep
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302 # Check whether --with-gnu-ld was given.
4303 if test "${with_gnu_ld+set}" = set; then
4304 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4305 else
4306 with_gnu_ld=no
4307 fi
4308
4309 ac_prog=ld
4310 if test "$GCC" = yes; then
4311 # Check if gcc -print-prog-name=ld gives a path.
4312 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4313 $as_echo_n "checking for ld used by $CC... " >&6; }
4314 case $host in
4315 *-*-mingw*)
4316 # gcc leaves a trailing carriage return which upsets mingw
4317 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4318 *)
4319 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4320 esac
4321 case $ac_prog in
4322 # Accept absolute paths.
4323 [\\/]* | ?:[\\/]*)
4324 re_direlt='/[^/][^/]*/\.\./'
4325 # Canonicalize the pathname of ld
4326 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4327 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4328 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4329 done
4330 test -z "$LD" && LD="$ac_prog"
4331 ;;
4332 "")
4333 # If it fails, then pretend we aren't using GCC.
4334 ac_prog=ld
4335 ;;
4336 *)
4337 # If it is relative, then search for the first ld in PATH.
4338 with_gnu_ld=unknown
4339 ;;
4340 esac
4341 elif test "$with_gnu_ld" = yes; then
4342 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4343 $as_echo_n "checking for GNU ld... " >&6; }
4344 else
4345 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4346 $as_echo_n "checking for non-GNU ld... " >&6; }
4347 fi
4348 if test "${lt_cv_path_LD+set}" = set; then
4349 $as_echo_n "(cached) " >&6
4350 else
4351 if test -z "$LD"; then
4352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4353 for ac_dir in $PATH; do
4354 IFS="$lt_save_ifs"
4355 test -z "$ac_dir" && ac_dir=.
4356 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4357 lt_cv_path_LD="$ac_dir/$ac_prog"
4358 # Check to see if the program is GNU ld. I'd rather use --version,
4359 # but apparently some variants of GNU ld only accept -v.
4360 # Break only if it was the GNU/non-GNU ld that we prefer.
4361 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4362 *GNU* | *'with BFD'*)
4363 test "$with_gnu_ld" != no && break
4364 ;;
4365 *)
4366 test "$with_gnu_ld" != yes && break
4367 ;;
4368 esac
4369 fi
4370 done
4371 IFS="$lt_save_ifs"
4372 else
4373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4374 fi
4375 fi
4376
4377 LD="$lt_cv_path_LD"
4378 if test -n "$LD"; then
4379 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4380 $as_echo "$LD" >&6; }
4381 else
4382 { $as_echo "$as_me:$LINENO: result: no" >&5
4383 $as_echo "no" >&6; }
4384 fi
4385 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4386 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4387 { (exit 1); exit 1; }; }
4388 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4389 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4390 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4391 $as_echo_n "(cached) " >&6
4392 else
4393 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4394 case `$LD -v 2>&1 </dev/null` in
4395 *GNU* | *'with BFD'*)
4396 lt_cv_prog_gnu_ld=yes
4397 ;;
4398 *)
4399 lt_cv_prog_gnu_ld=no
4400 ;;
4401 esac
4402 fi
4403 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4404 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4405 with_gnu_ld=$lt_cv_prog_gnu_ld
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4416 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4417 if test "${lt_cv_path_NM+set}" = set; then
4418 $as_echo_n "(cached) " >&6
4419 else
4420 if test -n "$NM"; then
4421 # Let the user override the test.
4422 lt_cv_path_NM="$NM"
4423 else
4424 lt_nm_to_check="${ac_tool_prefix}nm"
4425 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4426 lt_nm_to_check="$lt_nm_to_check nm"
4427 fi
4428 for lt_tmp_nm in $lt_nm_to_check; do
4429 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4430 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4431 IFS="$lt_save_ifs"
4432 test -z "$ac_dir" && ac_dir=.
4433 tmp_nm="$ac_dir/$lt_tmp_nm"
4434 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4435 # Check to see if the nm accepts a BSD-compat flag.
4436 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4437 # nm: unknown option "B" ignored
4438 # Tru64's nm complains that /dev/null is an invalid object file
4439 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4440 */dev/null* | *'Invalid file or object type'*)
4441 lt_cv_path_NM="$tmp_nm -B"
4442 break
4443 ;;
4444 *)
4445 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4446 */dev/null*)
4447 lt_cv_path_NM="$tmp_nm -p"
4448 break
4449 ;;
4450 *)
4451 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4452 continue # so that we can try to find one that supports BSD flags
4453 ;;
4454 esac
4455 ;;
4456 esac
4457 fi
4458 done
4459 IFS="$lt_save_ifs"
4460 done
4461 : ${lt_cv_path_NM=no}
4462 fi
4463 fi
4464 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4465 $as_echo "$lt_cv_path_NM" >&6; }
4466 if test "$lt_cv_path_NM" != "no"; then
4467 NM="$lt_cv_path_NM"
4468 else
4469 # Didn't find any BSD compatible name lister, look for dumpbin.
4470 if test -n "$ac_tool_prefix"; then
4471 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4472 do
4473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4478 $as_echo_n "(cached) " >&6
4479 else
4480 if test -n "$DUMPBIN"; then
4481 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4485 do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 break 2
4493 fi
4494 done
4495 done
4496 IFS=$as_save_IFS
4497
4498 fi
4499 fi
4500 DUMPBIN=$ac_cv_prog_DUMPBIN
4501 if test -n "$DUMPBIN"; then
4502 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4503 $as_echo "$DUMPBIN" >&6; }
4504 else
4505 { $as_echo "$as_me:$LINENO: result: no" >&5
4506 $as_echo "no" >&6; }
4507 fi
4508
4509
4510 test -n "$DUMPBIN" && break
4511 done
4512 fi
4513 if test -z "$DUMPBIN"; then
4514 ac_ct_DUMPBIN=$DUMPBIN
4515 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4516 do
4517 # Extract the first word of "$ac_prog", so it can be a program name with args.
4518 set dummy $ac_prog; ac_word=$2
4519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4522 $as_echo_n "(cached) " >&6
4523 else
4524 if test -n "$ac_ct_DUMPBIN"; then
4525 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4526 else
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4534 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4535 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 break 2
4537 fi
4538 done
4539 done
4540 IFS=$as_save_IFS
4541
4542 fi
4543 fi
4544 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4545 if test -n "$ac_ct_DUMPBIN"; then
4546 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4547 $as_echo "$ac_ct_DUMPBIN" >&6; }
4548 else
4549 { $as_echo "$as_me:$LINENO: result: no" >&5
4550 $as_echo "no" >&6; }
4551 fi
4552
4553
4554 test -n "$ac_ct_DUMPBIN" && break
4555 done
4556
4557 if test "x$ac_ct_DUMPBIN" = x; then
4558 DUMPBIN=":"
4559 else
4560 case $cross_compiling:$ac_tool_warned in
4561 yes:)
4562 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4564 ac_tool_warned=yes ;;
4565 esac
4566 DUMPBIN=$ac_ct_DUMPBIN
4567 fi
4568 fi
4569
4570
4571 if test "$DUMPBIN" != ":"; then
4572 NM="$DUMPBIN"
4573 fi
4574 fi
4575 test -z "$NM" && NM=nm
4576
4577
4578
4579
4580
4581
4582 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4583 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4584 if test "${lt_cv_nm_interface+set}" = set; then
4585 $as_echo_n "(cached) " >&6
4586 else
4587 lt_cv_nm_interface="BSD nm"
4588 echo "int some_variable = 0;" > conftest.$ac_ext
4589 (eval echo "\"\$as_me:4589: $ac_compile\"" >&5)
4590 (eval "$ac_compile" 2>conftest.err)
4591 cat conftest.err >&5
4592 (eval echo "\"\$as_me:4592: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4593 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4594 cat conftest.err >&5
4595 (eval echo "\"\$as_me:4595: output\"" >&5)
4596 cat conftest.out >&5
4597 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4598 lt_cv_nm_interface="MS dumpbin"
4599 fi
4600 rm -f conftest*
4601 fi
4602 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4603 $as_echo "$lt_cv_nm_interface" >&6; }
4604
4605 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4606 $as_echo_n "checking whether ln -s works... " >&6; }
4607 LN_S=$as_ln_s
4608 if test "$LN_S" = "ln -s"; then
4609 { $as_echo "$as_me:$LINENO: result: yes" >&5
4610 $as_echo "yes" >&6; }
4611 else
4612 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4613 $as_echo "no, using $LN_S" >&6; }
4614 fi
4615
4616 # find the maximum length of command line arguments
4617 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4618 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4619 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4620 $as_echo_n "(cached) " >&6
4621 else
4622 i=0
4623 teststring="ABCD"
4624
4625 case $build_os in
4626 msdosdjgpp*)
4627 # On DJGPP, this test can blow up pretty badly due to problems in libc
4628 # (any single argument exceeding 2000 bytes causes a buffer overrun
4629 # during glob expansion). Even if it were fixed, the result of this
4630 # check would be larger than it should be.
4631 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4632 ;;
4633
4634 gnu*)
4635 # Under GNU Hurd, this test is not required because there is
4636 # no limit to the length of command line arguments.
4637 # Libtool will interpret -1 as no limit whatsoever
4638 lt_cv_sys_max_cmd_len=-1;
4639 ;;
4640
4641 cygwin* | mingw* | cegcc*)
4642 # On Win9x/ME, this test blows up -- it succeeds, but takes
4643 # about 5 minutes as the teststring grows exponentially.
4644 # Worse, since 9x/ME are not pre-emptively multitasking,
4645 # you end up with a "frozen" computer, even though with patience
4646 # the test eventually succeeds (with a max line length of 256k).
4647 # Instead, let's just punt: use the minimum linelength reported by
4648 # all of the supported platforms: 8192 (on NT/2K/XP).
4649 lt_cv_sys_max_cmd_len=8192;
4650 ;;
4651
4652 amigaos*)
4653 # On AmigaOS with pdksh, this test takes hours, literally.
4654 # So we just punt and use a minimum line length of 8192.
4655 lt_cv_sys_max_cmd_len=8192;
4656 ;;
4657
4658 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4659 # This has been around since 386BSD, at least. Likely further.
4660 if test -x /sbin/sysctl; then
4661 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4662 elif test -x /usr/sbin/sysctl; then
4663 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4664 else
4665 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4666 fi
4667 # And add a safety zone
4668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4670 ;;
4671
4672 interix*)
4673 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4674 lt_cv_sys_max_cmd_len=196608
4675 ;;
4676
4677 osf*)
4678 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4679 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4680 # nice to cause kernel panics so lets avoid the loop below.
4681 # First set a reasonable default.
4682 lt_cv_sys_max_cmd_len=16384
4683 #
4684 if test -x /sbin/sysconfig; then
4685 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4686 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4687 esac
4688 fi
4689 ;;
4690 sco3.2v5*)
4691 lt_cv_sys_max_cmd_len=102400
4692 ;;
4693 sysv5* | sco5v6* | sysv4.2uw2*)
4694 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4695 if test -n "$kargmax"; then
4696 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4697 else
4698 lt_cv_sys_max_cmd_len=32768
4699 fi
4700 ;;
4701 *)
4702 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4703 if test -n "$lt_cv_sys_max_cmd_len"; then
4704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4706 else
4707 # Make teststring a little bigger before we do anything with it.
4708 # a 1K string should be a reasonable start.
4709 for i in 1 2 3 4 5 6 7 8 ; do
4710 teststring=$teststring$teststring
4711 done
4712 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4713 # If test is not a shell built-in, we'll probably end up computing a
4714 # maximum length that is only half of the actual maximum length, but
4715 # we can't tell.
4716 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4717 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4718 test $i != 17 # 1/2 MB should be enough
4719 do
4720 i=`expr $i + 1`
4721 teststring=$teststring$teststring
4722 done
4723 # Only check the string length outside the loop.
4724 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4725 teststring=
4726 # Add a significant safety factor because C++ compilers can tack on
4727 # massive amounts of additional arguments before passing them to the
4728 # linker. It appears as though 1/2 is a usable value.
4729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4730 fi
4731 ;;
4732 esac
4733
4734 fi
4735
4736 if test -n $lt_cv_sys_max_cmd_len ; then
4737 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4738 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4739 else
4740 { $as_echo "$as_me:$LINENO: result: none" >&5
4741 $as_echo "none" >&6; }
4742 fi
4743 max_cmd_len=$lt_cv_sys_max_cmd_len
4744
4745
4746
4747
4748
4749
4750 : ${CP="cp -f"}
4751 : ${MV="mv -f"}
4752 : ${RM="rm -f"}
4753
4754 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4755 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4756 # Try some XSI features
4757 xsi_shell=no
4758 ( _lt_dummy="a/b/c"
4759 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4760 = c,a/b,, \
4761 && eval 'test $(( 1 + 1 )) -eq 2 \
4762 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4763 && xsi_shell=yes
4764 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4765 $as_echo "$xsi_shell" >&6; }
4766
4767
4768 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4769 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4770 lt_shell_append=no
4771 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4772 >/dev/null 2>&1 \
4773 && lt_shell_append=yes
4774 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4775 $as_echo "$lt_shell_append" >&6; }
4776
4777
4778 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4779 lt_unset=unset
4780 else
4781 lt_unset=false
4782 fi
4783
4784
4785
4786
4787
4788 # test EBCDIC or ASCII
4789 case `echo X|tr X '\101'` in
4790 A) # ASCII based system
4791 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4792 lt_SP2NL='tr \040 \012'
4793 lt_NL2SP='tr \015\012 \040\040'
4794 ;;
4795 *) # EBCDIC based system
4796 lt_SP2NL='tr \100 \n'
4797 lt_NL2SP='tr \r\n \100\100'
4798 ;;
4799 esac
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4810 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4811 if test "${lt_cv_ld_reload_flag+set}" = set; then
4812 $as_echo_n "(cached) " >&6
4813 else
4814 lt_cv_ld_reload_flag='-r'
4815 fi
4816 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4817 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4818 reload_flag=$lt_cv_ld_reload_flag
4819 case $reload_flag in
4820 "" | " "*) ;;
4821 *) reload_flag=" $reload_flag" ;;
4822 esac
4823 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4824 case $host_os in
4825 darwin*)
4826 if test "$GCC" = yes; then
4827 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4828 else
4829 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4830 fi
4831 ;;
4832 esac
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842 if test -n "$ac_tool_prefix"; then
4843 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4844 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4845 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4848 $as_echo_n "(cached) " >&6
4849 else
4850 if test -n "$OBJDUMP"; then
4851 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4852 else
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4855 do
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4861 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 break 2
4863 fi
4864 done
4865 done
4866 IFS=$as_save_IFS
4867
4868 fi
4869 fi
4870 OBJDUMP=$ac_cv_prog_OBJDUMP
4871 if test -n "$OBJDUMP"; then
4872 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4873 $as_echo "$OBJDUMP" >&6; }
4874 else
4875 { $as_echo "$as_me:$LINENO: result: no" >&5
4876 $as_echo "no" >&6; }
4877 fi
4878
4879
4880 fi
4881 if test -z "$ac_cv_prog_OBJDUMP"; then
4882 ac_ct_OBJDUMP=$OBJDUMP
4883 # Extract the first word of "objdump", so it can be a program name with args.
4884 set dummy objdump; ac_word=$2
4885 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4888 $as_echo_n "(cached) " >&6
4889 else
4890 if test -n "$ac_ct_OBJDUMP"; then
4891 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4892 else
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4895 do
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4901 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 break 2
4903 fi
4904 done
4905 done
4906 IFS=$as_save_IFS
4907
4908 fi
4909 fi
4910 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4911 if test -n "$ac_ct_OBJDUMP"; then
4912 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4913 $as_echo "$ac_ct_OBJDUMP" >&6; }
4914 else
4915 { $as_echo "$as_me:$LINENO: result: no" >&5
4916 $as_echo "no" >&6; }
4917 fi
4918
4919 if test "x$ac_ct_OBJDUMP" = x; then
4920 OBJDUMP="false"
4921 else
4922 case $cross_compiling:$ac_tool_warned in
4923 yes:)
4924 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4926 ac_tool_warned=yes ;;
4927 esac
4928 OBJDUMP=$ac_ct_OBJDUMP
4929 fi
4930 else
4931 OBJDUMP="$ac_cv_prog_OBJDUMP"
4932 fi
4933
4934 test -z "$OBJDUMP" && OBJDUMP=objdump
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4945 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4946 if test "${lt_cv_deplibs_check_method+set}" = set; then
4947 $as_echo_n "(cached) " >&6
4948 else
4949 lt_cv_file_magic_cmd='$MAGIC_CMD'
4950 lt_cv_file_magic_test_file=
4951 lt_cv_deplibs_check_method='unknown'
4952 # Need to set the preceding variable on all platforms that support
4953 # interlibrary dependencies.
4954 # 'none' -- dependencies not supported.
4955 # `unknown' -- same as none, but documents that we really don't know.
4956 # 'pass_all' -- all dependencies passed with no checks.
4957 # 'test_compile' -- check by making test program.
4958 # 'file_magic [[regex]]' -- check by looking for files in library path
4959 # which responds to the $file_magic_cmd with a given extended regex.
4960 # If you have `file' or equivalent on your system and you're not sure
4961 # whether `pass_all' will *always* work, you probably want this one.
4962
4963 case $host_os in
4964 aix[4-9]*)
4965 lt_cv_deplibs_check_method=pass_all
4966 ;;
4967
4968 beos*)
4969 lt_cv_deplibs_check_method=pass_all
4970 ;;
4971
4972 bsdi[45]*)
4973 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4974 lt_cv_file_magic_cmd='/usr/bin/file -L'
4975 lt_cv_file_magic_test_file=/shlib/libc.so
4976 ;;
4977
4978 cygwin*)
4979 # func_win32_libid is a shell function defined in ltmain.sh
4980 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4981 lt_cv_file_magic_cmd='func_win32_libid'
4982 ;;
4983
4984 mingw* | pw32*)
4985 # Base MSYS/MinGW do not provide the 'file' command needed by
4986 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4987 # unless we find 'file', for example because we are cross-compiling.
4988 if ( file / ) >/dev/null 2>&1; then
4989 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4990 lt_cv_file_magic_cmd='func_win32_libid'
4991 else
4992 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4993 lt_cv_file_magic_cmd='$OBJDUMP -f'
4994 fi
4995 ;;
4996
4997 cegcc)
4998 # use the weaker test based on 'objdump'. See mingw*.
4999 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5000 lt_cv_file_magic_cmd='$OBJDUMP -f'
5001 ;;
5002
5003 darwin* | rhapsody*)
5004 lt_cv_deplibs_check_method=pass_all
5005 ;;
5006
5007 freebsd* | dragonfly*)
5008 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5009 case $host_cpu in
5010 i*86 )
5011 # Not sure whether the presence of OpenBSD here was a mistake.
5012 # Let's accept both of them until this is cleared up.
5013 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5014 lt_cv_file_magic_cmd=/usr/bin/file
5015 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5016 ;;
5017 esac
5018 else
5019 lt_cv_deplibs_check_method=pass_all
5020 fi
5021 ;;
5022
5023 gnu*)
5024 lt_cv_deplibs_check_method=pass_all
5025 ;;
5026
5027 hpux10.20* | hpux11*)
5028 lt_cv_file_magic_cmd=/usr/bin/file
5029 case $host_cpu in
5030 ia64*)
5031 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5032 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5033 ;;
5034 hppa*64*)
5035 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5036 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5037 ;;
5038 *)
5039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5040 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5041 ;;
5042 esac
5043 ;;
5044
5045 interix[3-9]*)
5046 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5048 ;;
5049
5050 irix5* | irix6* | nonstopux*)
5051 case $LD in
5052 *-32|*"-32 ") libmagic=32-bit;;
5053 *-n32|*"-n32 ") libmagic=N32;;
5054 *-64|*"-64 ") libmagic=64-bit;;
5055 *) libmagic=never-match;;
5056 esac
5057 lt_cv_deplibs_check_method=pass_all
5058 ;;
5059
5060 # This must be Linux ELF.
5061 linux* | k*bsd*-gnu)
5062 lt_cv_deplibs_check_method=pass_all
5063 ;;
5064
5065 netbsd*)
5066 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5068 else
5069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5070 fi
5071 ;;
5072
5073 newos6*)
5074 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5075 lt_cv_file_magic_cmd=/usr/bin/file
5076 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5077 ;;
5078
5079 *nto* | *qnx*)
5080 lt_cv_deplibs_check_method=pass_all
5081 ;;
5082
5083 openbsd*)
5084 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5086 else
5087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5088 fi
5089 ;;
5090
5091 osf3* | osf4* | osf5*)
5092 lt_cv_deplibs_check_method=pass_all
5093 ;;
5094
5095 rdos*)
5096 lt_cv_deplibs_check_method=pass_all
5097 ;;
5098
5099 solaris*)
5100 lt_cv_deplibs_check_method=pass_all
5101 ;;
5102
5103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5104 lt_cv_deplibs_check_method=pass_all
5105 ;;
5106
5107 sysv4 | sysv4.3*)
5108 case $host_vendor in
5109 motorola)
5110 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]'
5111 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5112 ;;
5113 ncr)
5114 lt_cv_deplibs_check_method=pass_all
5115 ;;
5116 sequent)
5117 lt_cv_file_magic_cmd='/bin/file'
5118 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5119 ;;
5120 sni)
5121 lt_cv_file_magic_cmd='/bin/file'
5122 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5123 lt_cv_file_magic_test_file=/lib/libc.so
5124 ;;
5125 siemens)
5126 lt_cv_deplibs_check_method=pass_all
5127 ;;
5128 pc)
5129 lt_cv_deplibs_check_method=pass_all
5130 ;;
5131 esac
5132 ;;
5133
5134 tpf*)
5135 lt_cv_deplibs_check_method=pass_all
5136 ;;
5137 esac
5138
5139 fi
5140 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5141 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5142 file_magic_cmd=$lt_cv_file_magic_cmd
5143 deplibs_check_method=$lt_cv_deplibs_check_method
5144 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157 if test -n "$ac_tool_prefix"; then
5158 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5159 set dummy ${ac_tool_prefix}ar; ac_word=$2
5160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if test "${ac_cv_prog_AR+set}" = set; then
5163 $as_echo_n "(cached) " >&6
5164 else
5165 if test -n "$AR"; then
5166 ac_cv_prog_AR="$AR" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_AR="${ac_tool_prefix}ar"
5176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179 done
5180 done
5181 IFS=$as_save_IFS
5182
5183 fi
5184 fi
5185 AR=$ac_cv_prog_AR
5186 if test -n "$AR"; then
5187 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5188 $as_echo "$AR" >&6; }
5189 else
5190 { $as_echo "$as_me:$LINENO: result: no" >&5
5191 $as_echo "no" >&6; }
5192 fi
5193
5194
5195 fi
5196 if test -z "$ac_cv_prog_AR"; then
5197 ac_ct_AR=$AR
5198 # Extract the first word of "ar", so it can be a program name with args.
5199 set dummy ar; ac_word=$2
5200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5203 $as_echo_n "(cached) " >&6
5204 else
5205 if test -n "$ac_ct_AR"; then
5206 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_prog_ac_ct_AR="ar"
5216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5218 fi
5219 done
5220 done
5221 IFS=$as_save_IFS
5222
5223 fi
5224 fi
5225 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5226 if test -n "$ac_ct_AR"; then
5227 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5228 $as_echo "$ac_ct_AR" >&6; }
5229 else
5230 { $as_echo "$as_me:$LINENO: result: no" >&5
5231 $as_echo "no" >&6; }
5232 fi
5233
5234 if test "x$ac_ct_AR" = x; then
5235 AR="false"
5236 else
5237 case $cross_compiling:$ac_tool_warned in
5238 yes:)
5239 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5241 ac_tool_warned=yes ;;
5242 esac
5243 AR=$ac_ct_AR
5244 fi
5245 else
5246 AR="$ac_cv_prog_AR"
5247 fi
5248
5249 test -z "$AR" && AR=ar
5250 test -z "$AR_FLAGS" && AR_FLAGS=cru
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262 if test -n "$ac_tool_prefix"; then
5263 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5264 set dummy ${ac_tool_prefix}strip; ac_word=$2
5265 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if test "${ac_cv_prog_STRIP+set}" = set; then
5268 $as_echo_n "(cached) " >&6
5269 else
5270 if test -n "$STRIP"; then
5271 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5275 do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5281 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5283 fi
5284 done
5285 done
5286 IFS=$as_save_IFS
5287
5288 fi
5289 fi
5290 STRIP=$ac_cv_prog_STRIP
5291 if test -n "$STRIP"; then
5292 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5293 $as_echo "$STRIP" >&6; }
5294 else
5295 { $as_echo "$as_me:$LINENO: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5298
5299
5300 fi
5301 if test -z "$ac_cv_prog_STRIP"; then
5302 ac_ct_STRIP=$STRIP
5303 # Extract the first word of "strip", so it can be a program name with args.
5304 set dummy strip; ac_word=$2
5305 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5308 $as_echo_n "(cached) " >&6
5309 else
5310 if test -n "$ac_ct_STRIP"; then
5311 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5320 ac_cv_prog_ac_ct_STRIP="strip"
5321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 break 2
5323 fi
5324 done
5325 done
5326 IFS=$as_save_IFS
5327
5328 fi
5329 fi
5330 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5331 if test -n "$ac_ct_STRIP"; then
5332 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5333 $as_echo "$ac_ct_STRIP" >&6; }
5334 else
5335 { $as_echo "$as_me:$LINENO: result: no" >&5
5336 $as_echo "no" >&6; }
5337 fi
5338
5339 if test "x$ac_ct_STRIP" = x; then
5340 STRIP=":"
5341 else
5342 case $cross_compiling:$ac_tool_warned in
5343 yes:)
5344 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5346 ac_tool_warned=yes ;;
5347 esac
5348 STRIP=$ac_ct_STRIP
5349 fi
5350 else
5351 STRIP="$ac_cv_prog_STRIP"
5352 fi
5353
5354 test -z "$STRIP" && STRIP=:
5355
5356
5357
5358
5359
5360
5361 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5363 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if test "${ac_cv_prog_RANLIB+set}" = set; then
5367 $as_echo_n "(cached) " >&6
5368 else
5369 if test -n "$RANLIB"; then
5370 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383 done
5384 done
5385 IFS=$as_save_IFS
5386
5387 fi
5388 fi
5389 RANLIB=$ac_cv_prog_RANLIB
5390 if test -n "$RANLIB"; then
5391 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5392 $as_echo "$RANLIB" >&6; }
5393 else
5394 { $as_echo "$as_me:$LINENO: result: no" >&5
5395 $as_echo "no" >&6; }
5396 fi
5397
5398
5399 fi
5400 if test -z "$ac_cv_prog_RANLIB"; then
5401 ac_ct_RANLIB=$RANLIB
5402 # Extract the first word of "ranlib", so it can be a program name with args.
5403 set dummy ranlib; ac_word=$2
5404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5407 $as_echo_n "(cached) " >&6
5408 else
5409 if test -n "$ac_ct_RANLIB"; then
5410 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5411 else
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5414 do
5415 IFS=$as_save_IFS
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5419 ac_cv_prog_ac_ct_RANLIB="ranlib"
5420 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 break 2
5422 fi
5423 done
5424 done
5425 IFS=$as_save_IFS
5426
5427 fi
5428 fi
5429 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5430 if test -n "$ac_ct_RANLIB"; then
5431 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5432 $as_echo "$ac_ct_RANLIB" >&6; }
5433 else
5434 { $as_echo "$as_me:$LINENO: result: no" >&5
5435 $as_echo "no" >&6; }
5436 fi
5437
5438 if test "x$ac_ct_RANLIB" = x; then
5439 RANLIB=":"
5440 else
5441 case $cross_compiling:$ac_tool_warned in
5442 yes:)
5443 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5445 ac_tool_warned=yes ;;
5446 esac
5447 RANLIB=$ac_ct_RANLIB
5448 fi
5449 else
5450 RANLIB="$ac_cv_prog_RANLIB"
5451 fi
5452
5453 test -z "$RANLIB" && RANLIB=:
5454
5455
5456
5457
5458
5459
5460 # Determine commands to create old-style static archives.
5461 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5462 old_postinstall_cmds='chmod 644 $oldlib'
5463 old_postuninstall_cmds=
5464
5465 if test -n "$RANLIB"; then
5466 case $host_os in
5467 openbsd*)
5468 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5469 ;;
5470 *)
5471 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5472 ;;
5473 esac
5474 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5475 fi
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510 # If no C compiler was specified, use CC.
5511 LTCC=${LTCC-"$CC"}
5512
5513 # If no C compiler flags were specified, use CFLAGS.
5514 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5515
5516 # Allow CC to be a program name with arguments.
5517 compiler=$CC
5518
5519
5520 # Check for command to grab the raw symbol name followed by C symbol from nm.
5521 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5522 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5523 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5524 $as_echo_n "(cached) " >&6
5525 else
5526
5527 # These are sane defaults that work on at least a few old systems.
5528 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5529
5530 # Character class describing NM global symbol codes.
5531 symcode='[BCDEGRST]'
5532
5533 # Regexp to match symbols that can be accessed directly from C.
5534 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5535
5536 # Define system-specific variables.
5537 case $host_os in
5538 aix*)
5539 symcode='[BCDT]'
5540 ;;
5541 cygwin* | mingw* | pw32* | cegcc*)
5542 symcode='[ABCDGISTW]'
5543 ;;
5544 hpux*)
5545 if test "$host_cpu" = ia64; then
5546 symcode='[ABCDEGRST]'
5547 fi
5548 ;;
5549 irix* | nonstopux*)
5550 symcode='[BCDEGRST]'
5551 ;;
5552 osf*)
5553 symcode='[BCDEGQRST]'
5554 ;;
5555 solaris*)
5556 symcode='[BDRT]'
5557 ;;
5558 sco3.2v5*)
5559 symcode='[DT]'
5560 ;;
5561 sysv4.2uw2*)
5562 symcode='[DT]'
5563 ;;
5564 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5565 symcode='[ABDT]'
5566 ;;
5567 sysv4)
5568 symcode='[DFNSTU]'
5569 ;;
5570 esac
5571
5572 # If we're using GNU nm, then use its standard symbol codes.
5573 case `$NM -V 2>&1` in
5574 *GNU* | *'with BFD'*)
5575 symcode='[ABCDGIRSTW]' ;;
5576 esac
5577
5578 # Transform an extracted symbol line into a proper C declaration.
5579 # Some systems (esp. on ia64) link data and code symbols differently,
5580 # so use this general approach.
5581 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5582
5583 # Transform an extracted symbol line into symbol name and symbol address
5584 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5585 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'"
5586
5587 # Handle CRLF in mingw tool chain
5588 opt_cr=
5589 case $build_os in
5590 mingw*)
5591 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5592 ;;
5593 esac
5594
5595 # Try without a prefix underscore, then with it.
5596 for ac_symprfx in "" "_"; do
5597
5598 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5599 symxfrm="\\1 $ac_symprfx\\2 \\2"
5600
5601 # Write the raw and C identifiers.
5602 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5603 # Fake it for dumpbin and say T for any non-static function
5604 # and D for any global variable.
5605 # Also find C++ and __fastcall symbols from MSVC++,
5606 # which start with @ or ?.
5607 lt_cv_sys_global_symbol_pipe="$AWK '"\
5608 " {last_section=section; section=\$ 3};"\
5609 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5610 " \$ 0!~/External *\|/{next};"\
5611 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5612 " {if(hide[section]) next};"\
5613 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5614 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5615 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5616 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5617 " ' prfx=^$ac_symprfx"
5618 else
5619 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5620 fi
5621
5622 # Check to see that the pipe works correctly.
5623 pipe_works=no
5624
5625 rm -f conftest*
5626 cat > conftest.$ac_ext <<_LT_EOF
5627 #ifdef __cplusplus
5628 extern "C" {
5629 #endif
5630 char nm_test_var;
5631 void nm_test_func(void);
5632 void nm_test_func(void){}
5633 #ifdef __cplusplus
5634 }
5635 #endif
5636 int main(){nm_test_var='a';nm_test_func();return(0);}
5637 _LT_EOF
5638
5639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640 (eval $ac_compile) 2>&5
5641 ac_status=$?
5642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; then
5644 # Now try to grab the symbols.
5645 nlist=conftest.nm
5646 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5647 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5648 ac_status=$?
5649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } && test -s "$nlist"; then
5651 # Try sorting and uniquifying the output.
5652 if sort "$nlist" | uniq > "$nlist"T; then
5653 mv -f "$nlist"T "$nlist"
5654 else
5655 rm -f "$nlist"T
5656 fi
5657
5658 # Make sure that we snagged all the symbols we need.
5659 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5660 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5661 cat <<_LT_EOF > conftest.$ac_ext
5662 #ifdef __cplusplus
5663 extern "C" {
5664 #endif
5665
5666 _LT_EOF
5667 # Now generate the symbol file.
5668 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5669
5670 cat <<_LT_EOF >> conftest.$ac_ext
5671
5672 /* The mapping between symbol names and symbols. */
5673 const struct {
5674 const char *name;
5675 void *address;
5676 }
5677 lt__PROGRAM__LTX_preloaded_symbols[] =
5678 {
5679 { "@PROGRAM@", (void *) 0 },
5680 _LT_EOF
5681 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5682 cat <<\_LT_EOF >> conftest.$ac_ext
5683 {0, (void *) 0}
5684 };
5685
5686 /* This works around a problem in FreeBSD linker */
5687 #ifdef FREEBSD_WORKAROUND
5688 static const void *lt_preloaded_setup() {
5689 return lt__PROGRAM__LTX_preloaded_symbols;
5690 }
5691 #endif
5692
5693 #ifdef __cplusplus
5694 }
5695 #endif
5696 _LT_EOF
5697 # Now try linking the two files.
5698 mv conftest.$ac_objext conftstm.$ac_objext
5699 lt_save_LIBS="$LIBS"
5700 lt_save_CFLAGS="$CFLAGS"
5701 LIBS="conftstm.$ac_objext"
5702 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704 (eval $ac_link) 2>&5
5705 ac_status=$?
5706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5708 pipe_works=yes
5709 fi
5710 LIBS="$lt_save_LIBS"
5711 CFLAGS="$lt_save_CFLAGS"
5712 else
5713 echo "cannot find nm_test_func in $nlist" >&5
5714 fi
5715 else
5716 echo "cannot find nm_test_var in $nlist" >&5
5717 fi
5718 else
5719 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5720 fi
5721 else
5722 echo "$progname: failed program was:" >&5
5723 cat conftest.$ac_ext >&5
5724 fi
5725 rm -rf conftest* conftst*
5726
5727 # Do not use the global_symbol_pipe unless it works.
5728 if test "$pipe_works" = yes; then
5729 break
5730 else
5731 lt_cv_sys_global_symbol_pipe=
5732 fi
5733 done
5734
5735 fi
5736
5737 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5738 lt_cv_sys_global_symbol_to_cdecl=
5739 fi
5740 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5741 { $as_echo "$as_me:$LINENO: result: failed" >&5
5742 $as_echo "failed" >&6; }
5743 else
5744 { $as_echo "$as_me:$LINENO: result: ok" >&5
5745 $as_echo "ok" >&6; }
5746 fi
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770 # Check whether --enable-libtool-lock was given.
5771 if test "${enable_libtool_lock+set}" = set; then
5772 enableval=$enable_libtool_lock;
5773 fi
5774
5775 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5776
5777 # Some flags need to be propagated to the compiler or linker for good
5778 # libtool support.
5779 case $host in
5780 ia64-*-hpux*)
5781 # Find out which ABI we are using.
5782 echo 'int i;' > conftest.$ac_ext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784 (eval $ac_compile) 2>&5
5785 ac_status=$?
5786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; then
5788 case `/usr/bin/file conftest.$ac_objext` in
5789 *ELF-32*)
5790 HPUX_IA64_MODE="32"
5791 ;;
5792 *ELF-64*)
5793 HPUX_IA64_MODE="64"
5794 ;;
5795 esac
5796 fi
5797 rm -rf conftest*
5798 ;;
5799 *-*-irix6*)
5800 # Find out which ABI we are using.
5801 echo '#line 5801 "configure"' > conftest.$ac_ext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803 (eval $ac_compile) 2>&5
5804 ac_status=$?
5805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; then
5807 if test "$lt_cv_prog_gnu_ld" = yes; then
5808 case `/usr/bin/file conftest.$ac_objext` in
5809 *32-bit*)
5810 LD="${LD-ld} -melf32bsmip"
5811 ;;
5812 *N32*)
5813 LD="${LD-ld} -melf32bmipn32"
5814 ;;
5815 *64-bit*)
5816 LD="${LD-ld} -melf64bmip"
5817 ;;
5818 esac
5819 else
5820 case `/usr/bin/file conftest.$ac_objext` in
5821 *32-bit*)
5822 LD="${LD-ld} -32"
5823 ;;
5824 *N32*)
5825 LD="${LD-ld} -n32"
5826 ;;
5827 *64-bit*)
5828 LD="${LD-ld} -64"
5829 ;;
5830 esac
5831 fi
5832 fi
5833 rm -rf conftest*
5834 ;;
5835
5836 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5837 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5838 # Find out which ABI we are using.
5839 echo 'int i;' > conftest.$ac_ext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841 (eval $ac_compile) 2>&5
5842 ac_status=$?
5843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; then
5845 case `/usr/bin/file conftest.o` in
5846 *32-bit*)
5847 case $host in
5848 x86_64-*kfreebsd*-gnu)
5849 LD="${LD-ld} -m elf_i386_fbsd"
5850 ;;
5851 x86_64-*linux*)
5852 LD="${LD-ld} -m elf_i386"
5853 ;;
5854 ppc64-*linux*|powerpc64-*linux*)
5855 LD="${LD-ld} -m elf32ppclinux"
5856 ;;
5857 s390x-*linux*)
5858 LD="${LD-ld} -m elf_s390"
5859 ;;
5860 sparc64-*linux*)
5861 LD="${LD-ld} -m elf32_sparc"
5862 ;;
5863 esac
5864 ;;
5865 *64-bit*)
5866 case $host in
5867 x86_64-*kfreebsd*-gnu)
5868 LD="${LD-ld} -m elf_x86_64_fbsd"
5869 ;;
5870 x86_64-*linux*)
5871 LD="${LD-ld} -m elf_x86_64"
5872 ;;
5873 ppc*-*linux*|powerpc*-*linux*)
5874 LD="${LD-ld} -m elf64ppc"
5875 ;;
5876 s390*-*linux*|s390*-*tpf*)
5877 LD="${LD-ld} -m elf64_s390"
5878 ;;
5879 sparc*-*linux*)
5880 LD="${LD-ld} -m elf64_sparc"
5881 ;;
5882 esac
5883 ;;
5884 esac
5885 fi
5886 rm -rf conftest*
5887 ;;
5888
5889 *-*-sco3.2v5*)
5890 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5891 SAVE_CFLAGS="$CFLAGS"
5892 CFLAGS="$CFLAGS -belf"
5893 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5894 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5895 if test "${lt_cv_cc_needs_belf+set}" = set; then
5896 $as_echo_n "(cached) " >&6
5897 else
5898 ac_ext=c
5899 ac_cpp='$CPP $CPPFLAGS'
5900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5903
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910
5911 int
5912 main ()
5913 {
5914
5915 ;
5916 return 0;
5917 }
5918 _ACEOF
5919 rm -f conftest.$ac_objext conftest$ac_exeext
5920 if { (ac_try="$ac_link"
5921 case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924 esac
5925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5926 $as_echo "$ac_try_echo") >&5
5927 (eval "$ac_link") 2>conftest.er1
5928 ac_status=$?
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
5932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && {
5934 test -z "$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 } && test -s conftest$ac_exeext && {
5937 test "$cross_compiling" = yes ||
5938 $as_test_x conftest$ac_exeext
5939 }; then
5940 lt_cv_cc_needs_belf=yes
5941 else
5942 $as_echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5944
5945 lt_cv_cc_needs_belf=no
5946 fi
5947
5948 rm -rf conftest.dSYM
5949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5950 conftest$ac_exeext conftest.$ac_ext
5951 ac_ext=c
5952 ac_cpp='$CPP $CPPFLAGS'
5953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5956
5957 fi
5958 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5959 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5960 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5961 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5962 CFLAGS="$SAVE_CFLAGS"
5963 fi
5964 ;;
5965 sparc*-*solaris*)
5966 # Find out which ABI we are using.
5967 echo 'int i;' > conftest.$ac_ext
5968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5969 (eval $ac_compile) 2>&5
5970 ac_status=$?
5971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; then
5973 case `/usr/bin/file conftest.o` in
5974 *64-bit*)
5975 case $lt_cv_prog_gnu_ld in
5976 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5977 *)
5978 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5979 LD="${LD-ld} -64"
5980 fi
5981 ;;
5982 esac
5983 ;;
5984 esac
5985 fi
5986 rm -rf conftest*
5987 ;;
5988 esac
5989
5990 need_locks="$enable_libtool_lock"
5991
5992
5993 case $host_os in
5994 rhapsody* | darwin*)
5995 if test -n "$ac_tool_prefix"; then
5996 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5997 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6001 $as_echo_n "(cached) " >&6
6002 else
6003 if test -n "$DSYMUTIL"; then
6004 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6014 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6016 fi
6017 done
6018 done
6019 IFS=$as_save_IFS
6020
6021 fi
6022 fi
6023 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6024 if test -n "$DSYMUTIL"; then
6025 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6026 $as_echo "$DSYMUTIL" >&6; }
6027 else
6028 { $as_echo "$as_me:$LINENO: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031
6032
6033 fi
6034 if test -z "$ac_cv_prog_DSYMUTIL"; then
6035 ac_ct_DSYMUTIL=$DSYMUTIL
6036 # Extract the first word of "dsymutil", so it can be a program name with args.
6037 set dummy dsymutil; ac_word=$2
6038 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if test -n "$ac_ct_DSYMUTIL"; then
6044 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6053 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6054 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6056 fi
6057 done
6058 done
6059 IFS=$as_save_IFS
6060
6061 fi
6062 fi
6063 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6064 if test -n "$ac_ct_DSYMUTIL"; then
6065 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6066 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6067 else
6068 { $as_echo "$as_me:$LINENO: result: no" >&5
6069 $as_echo "no" >&6; }
6070 fi
6071
6072 if test "x$ac_ct_DSYMUTIL" = x; then
6073 DSYMUTIL=":"
6074 else
6075 case $cross_compiling:$ac_tool_warned in
6076 yes:)
6077 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6079 ac_tool_warned=yes ;;
6080 esac
6081 DSYMUTIL=$ac_ct_DSYMUTIL
6082 fi
6083 else
6084 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6085 fi
6086
6087 if test -n "$ac_tool_prefix"; then
6088 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6089 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6093 $as_echo_n "(cached) " >&6
6094 else
6095 if test -n "$NMEDIT"; then
6096 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6105 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 break 2
6108 fi
6109 done
6110 done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 NMEDIT=$ac_cv_prog_NMEDIT
6116 if test -n "$NMEDIT"; then
6117 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6118 $as_echo "$NMEDIT" >&6; }
6119 else
6120 { $as_echo "$as_me:$LINENO: result: no" >&5
6121 $as_echo "no" >&6; }
6122 fi
6123
6124
6125 fi
6126 if test -z "$ac_cv_prog_NMEDIT"; then
6127 ac_ct_NMEDIT=$NMEDIT
6128 # Extract the first word of "nmedit", so it can be a program name with args.
6129 set dummy nmedit; ac_word=$2
6130 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if test -n "$ac_ct_NMEDIT"; then
6136 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6145 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6146 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149 done
6150 done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6156 if test -n "$ac_ct_NMEDIT"; then
6157 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6158 $as_echo "$ac_ct_NMEDIT" >&6; }
6159 else
6160 { $as_echo "$as_me:$LINENO: result: no" >&5
6161 $as_echo "no" >&6; }
6162 fi
6163
6164 if test "x$ac_ct_NMEDIT" = x; then
6165 NMEDIT=":"
6166 else
6167 case $cross_compiling:$ac_tool_warned in
6168 yes:)
6169 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6172 esac
6173 NMEDIT=$ac_ct_NMEDIT
6174 fi
6175 else
6176 NMEDIT="$ac_cv_prog_NMEDIT"
6177 fi
6178
6179 if test -n "$ac_tool_prefix"; then
6180 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6181 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6183 $as_echo_n "checking for $ac_word... " >&6; }
6184 if test "${ac_cv_prog_LIPO+set}" = set; then
6185 $as_echo_n "(cached) " >&6
6186 else
6187 if test -n "$LIPO"; then
6188 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6198 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 break 2
6200 fi
6201 done
6202 done
6203 IFS=$as_save_IFS
6204
6205 fi
6206 fi
6207 LIPO=$ac_cv_prog_LIPO
6208 if test -n "$LIPO"; then
6209 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6210 $as_echo "$LIPO" >&6; }
6211 else
6212 { $as_echo "$as_me:$LINENO: result: no" >&5
6213 $as_echo "no" >&6; }
6214 fi
6215
6216
6217 fi
6218 if test -z "$ac_cv_prog_LIPO"; then
6219 ac_ct_LIPO=$LIPO
6220 # Extract the first word of "lipo", so it can be a program name with args.
6221 set dummy lipo; ac_word=$2
6222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 $as_echo_n "checking for $ac_word... " >&6; }
6224 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6225 $as_echo_n "(cached) " >&6
6226 else
6227 if test -n "$ac_ct_LIPO"; then
6228 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6229 else
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_prog_ac_ct_LIPO="lipo"
6238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 break 2
6240 fi
6241 done
6242 done
6243 IFS=$as_save_IFS
6244
6245 fi
6246 fi
6247 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6248 if test -n "$ac_ct_LIPO"; then
6249 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6250 $as_echo "$ac_ct_LIPO" >&6; }
6251 else
6252 { $as_echo "$as_me:$LINENO: result: no" >&5
6253 $as_echo "no" >&6; }
6254 fi
6255
6256 if test "x$ac_ct_LIPO" = x; then
6257 LIPO=":"
6258 else
6259 case $cross_compiling:$ac_tool_warned in
6260 yes:)
6261 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6263 ac_tool_warned=yes ;;
6264 esac
6265 LIPO=$ac_ct_LIPO
6266 fi
6267 else
6268 LIPO="$ac_cv_prog_LIPO"
6269 fi
6270
6271 if test -n "$ac_tool_prefix"; then
6272 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6273 set dummy ${ac_tool_prefix}otool; ac_word=$2
6274 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if test "${ac_cv_prog_OTOOL+set}" = set; then
6277 $as_echo_n "(cached) " >&6
6278 else
6279 if test -n "$OTOOL"; then
6280 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6290 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
6292 fi
6293 done
6294 done
6295 IFS=$as_save_IFS
6296
6297 fi
6298 fi
6299 OTOOL=$ac_cv_prog_OTOOL
6300 if test -n "$OTOOL"; then
6301 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6302 $as_echo "$OTOOL" >&6; }
6303 else
6304 { $as_echo "$as_me:$LINENO: result: no" >&5
6305 $as_echo "no" >&6; }
6306 fi
6307
6308
6309 fi
6310 if test -z "$ac_cv_prog_OTOOL"; then
6311 ac_ct_OTOOL=$OTOOL
6312 # Extract the first word of "otool", so it can be a program name with args.
6313 set dummy otool; ac_word=$2
6314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6317 $as_echo_n "(cached) " >&6
6318 else
6319 if test -n "$ac_ct_OTOOL"; then
6320 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_prog_ac_ct_OTOOL="otool"
6330 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6332 fi
6333 done
6334 done
6335 IFS=$as_save_IFS
6336
6337 fi
6338 fi
6339 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6340 if test -n "$ac_ct_OTOOL"; then
6341 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6342 $as_echo "$ac_ct_OTOOL" >&6; }
6343 else
6344 { $as_echo "$as_me:$LINENO: result: no" >&5
6345 $as_echo "no" >&6; }
6346 fi
6347
6348 if test "x$ac_ct_OTOOL" = x; then
6349 OTOOL=":"
6350 else
6351 case $cross_compiling:$ac_tool_warned in
6352 yes:)
6353 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6355 ac_tool_warned=yes ;;
6356 esac
6357 OTOOL=$ac_ct_OTOOL
6358 fi
6359 else
6360 OTOOL="$ac_cv_prog_OTOOL"
6361 fi
6362
6363 if test -n "$ac_tool_prefix"; then
6364 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6365 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6366 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
6368 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6369 $as_echo_n "(cached) " >&6
6370 else
6371 if test -n "$OTOOL64"; then
6372 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6376 do
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 break 2
6384 fi
6385 done
6386 done
6387 IFS=$as_save_IFS
6388
6389 fi
6390 fi
6391 OTOOL64=$ac_cv_prog_OTOOL64
6392 if test -n "$OTOOL64"; then
6393 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6394 $as_echo "$OTOOL64" >&6; }
6395 else
6396 { $as_echo "$as_me:$LINENO: result: no" >&5
6397 $as_echo "no" >&6; }
6398 fi
6399
6400
6401 fi
6402 if test -z "$ac_cv_prog_OTOOL64"; then
6403 ac_ct_OTOOL64=$OTOOL64
6404 # Extract the first word of "otool64", so it can be a program name with args.
6405 set dummy otool64; ac_word=$2
6406 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6409 $as_echo_n "(cached) " >&6
6410 else
6411 if test -n "$ac_ct_OTOOL64"; then
6412 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_prog_ac_ct_OTOOL64="otool64"
6422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6424 fi
6425 done
6426 done
6427 IFS=$as_save_IFS
6428
6429 fi
6430 fi
6431 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6432 if test -n "$ac_ct_OTOOL64"; then
6433 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6434 $as_echo "$ac_ct_OTOOL64" >&6; }
6435 else
6436 { $as_echo "$as_me:$LINENO: result: no" >&5
6437 $as_echo "no" >&6; }
6438 fi
6439
6440 if test "x$ac_ct_OTOOL64" = x; then
6441 OTOOL64=":"
6442 else
6443 case $cross_compiling:$ac_tool_warned in
6444 yes:)
6445 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6447 ac_tool_warned=yes ;;
6448 esac
6449 OTOOL64=$ac_ct_OTOOL64
6450 fi
6451 else
6452 OTOOL64="$ac_cv_prog_OTOOL64"
6453 fi
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6482 $as_echo_n "checking for -single_module linker flag... " >&6; }
6483 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6484 $as_echo_n "(cached) " >&6
6485 else
6486 lt_cv_apple_cc_single_mod=no
6487 if test -z "${LT_MULTI_MODULE}"; then
6488 # By default we will add the -single_module flag. You can override
6489 # by either setting the environment variable LT_MULTI_MODULE
6490 # non-empty at configure time, or by adding -multi_module to the
6491 # link flags.
6492 rm -rf libconftest.dylib*
6493 echo "int foo(void){return 1;}" > conftest.c
6494 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6495 -dynamiclib -Wl,-single_module conftest.c" >&5
6496 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6497 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6498 _lt_result=$?
6499 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6500 lt_cv_apple_cc_single_mod=yes
6501 else
6502 cat conftest.err >&5
6503 fi
6504 rm -rf libconftest.dylib*
6505 rm -f conftest.*
6506 fi
6507 fi
6508 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6509 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6510 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6511 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6512 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6513 $as_echo_n "(cached) " >&6
6514 else
6515 lt_cv_ld_exported_symbols_list=no
6516 save_LDFLAGS=$LDFLAGS
6517 echo "_main" > conftest.sym
6518 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6519 cat >conftest.$ac_ext <<_ACEOF
6520 /* confdefs.h. */
6521 _ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h. */
6525
6526 int
6527 main ()
6528 {
6529
6530 ;
6531 return 0;
6532 }
6533 _ACEOF
6534 rm -f conftest.$ac_objext conftest$ac_exeext
6535 if { (ac_try="$ac_link"
6536 case "(($ac_try" in
6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6539 esac
6540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6541 $as_echo "$ac_try_echo") >&5
6542 (eval "$ac_link") 2>conftest.er1
6543 ac_status=$?
6544 grep -v '^ *+' conftest.er1 >conftest.err
6545 rm -f conftest.er1
6546 cat conftest.err >&5
6547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } && {
6549 test -z "$ac_c_werror_flag" ||
6550 test ! -s conftest.err
6551 } && test -s conftest$ac_exeext && {
6552 test "$cross_compiling" = yes ||
6553 $as_test_x conftest$ac_exeext
6554 }; then
6555 lt_cv_ld_exported_symbols_list=yes
6556 else
6557 $as_echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6559
6560 lt_cv_ld_exported_symbols_list=no
6561 fi
6562
6563 rm -rf conftest.dSYM
6564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6565 conftest$ac_exeext conftest.$ac_ext
6566 LDFLAGS="$save_LDFLAGS"
6567
6568 fi
6569 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6570 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6571 case $host_os in
6572 rhapsody* | darwin1.[012])
6573 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6574 darwin1.*)
6575 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6576 darwin*) # darwin 5.x on
6577 # if running on 10.5 or later, the deployment target defaults
6578 # to the OS version, if on x86, and 10.4, the deployment
6579 # target defaults to 10.4. Don't you love it?
6580 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6581 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6582 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6583 10.[012]*)
6584 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6585 10.*)
6586 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6587 esac
6588 ;;
6589 esac
6590 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6591 _lt_dar_single_mod='$single_module'
6592 fi
6593 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6594 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6595 else
6596 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6597 fi
6598 if test "$DSYMUTIL" != ":"; then
6599 _lt_dsymutil='~$DSYMUTIL $lib || :'
6600 else
6601 _lt_dsymutil=
6602 fi
6603 ;;
6604 esac
6605
6606 ac_ext=c
6607 ac_cpp='$CPP $CPPFLAGS'
6608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6611 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6612 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6613 # On Suns, sometimes $CPP names a directory.
6614 if test -n "$CPP" && test -d "$CPP"; then
6615 CPP=
6616 fi
6617 if test -z "$CPP"; then
6618 if test "${ac_cv_prog_CPP+set}" = set; then
6619 $as_echo_n "(cached) " >&6
6620 else
6621 # Double quotes because CPP needs to be expanded
6622 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6623 do
6624 ac_preproc_ok=false
6625 for ac_c_preproc_warn_flag in '' yes
6626 do
6627 # Use a header file that comes with gcc, so configuring glibc
6628 # with a fresh cross-compiler works.
6629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6630 # <limits.h> exists even on freestanding compilers.
6631 # On the NeXT, cc -E runs the code through the compiler's parser,
6632 # not just through cpp. "Syntax error" is here to catch this case.
6633 cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 #ifdef __STDC__
6640 # include <limits.h>
6641 #else
6642 # include <assert.h>
6643 #endif
6644 Syntax error
6645 _ACEOF
6646 if { (ac_try="$ac_cpp conftest.$ac_ext"
6647 case "(($ac_try" in
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6650 esac
6651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6652 $as_echo "$ac_try_echo") >&5
6653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6654 ac_status=$?
6655 grep -v '^ *+' conftest.er1 >conftest.err
6656 rm -f conftest.er1
6657 cat conftest.err >&5
6658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } >/dev/null && {
6660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6661 test ! -s conftest.err
6662 }; then
6663 :
6664 else
6665 $as_echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6667
6668 # Broken: fails on valid input.
6669 continue
6670 fi
6671
6672 rm -f conftest.err conftest.$ac_ext
6673
6674 # OK, works on sane cases. Now check whether nonexistent headers
6675 # can be detected and how.
6676 cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h. */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 #include <ac_nonexistent.h>
6683 _ACEOF
6684 if { (ac_try="$ac_cpp conftest.$ac_ext"
6685 case "(($ac_try" in
6686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6687 *) ac_try_echo=$ac_try;;
6688 esac
6689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6690 $as_echo "$ac_try_echo") >&5
6691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6692 ac_status=$?
6693 grep -v '^ *+' conftest.er1 >conftest.err
6694 rm -f conftest.er1
6695 cat conftest.err >&5
6696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } >/dev/null && {
6698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6699 test ! -s conftest.err
6700 }; then
6701 # Broken: success on invalid input.
6702 continue
6703 else
6704 $as_echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.$ac_ext >&5
6706
6707 # Passes both tests.
6708 ac_preproc_ok=:
6709 break
6710 fi
6711
6712 rm -f conftest.err conftest.$ac_ext
6713
6714 done
6715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6716 rm -f conftest.err conftest.$ac_ext
6717 if $ac_preproc_ok; then
6718 break
6719 fi
6720
6721 done
6722 ac_cv_prog_CPP=$CPP
6723
6724 fi
6725 CPP=$ac_cv_prog_CPP
6726 else
6727 ac_cv_prog_CPP=$CPP
6728 fi
6729 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6730 $as_echo "$CPP" >&6; }
6731 ac_preproc_ok=false
6732 for ac_c_preproc_warn_flag in '' yes
6733 do
6734 # Use a header file that comes with gcc, so configuring glibc
6735 # with a fresh cross-compiler works.
6736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6737 # <limits.h> exists even on freestanding compilers.
6738 # On the NeXT, cc -E runs the code through the compiler's parser,
6739 # not just through cpp. "Syntax error" is here to catch this case.
6740 cat >conftest.$ac_ext <<_ACEOF
6741 /* confdefs.h. */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 #ifdef __STDC__
6747 # include <limits.h>
6748 #else
6749 # include <assert.h>
6750 #endif
6751 Syntax error
6752 _ACEOF
6753 if { (ac_try="$ac_cpp conftest.$ac_ext"
6754 case "(($ac_try" in
6755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756 *) ac_try_echo=$ac_try;;
6757 esac
6758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6759 $as_echo "$ac_try_echo") >&5
6760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6761 ac_status=$?
6762 grep -v '^ *+' conftest.er1 >conftest.err
6763 rm -f conftest.er1
6764 cat conftest.err >&5
6765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } >/dev/null && {
6767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6768 test ! -s conftest.err
6769 }; then
6770 :
6771 else
6772 $as_echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6774
6775 # Broken: fails on valid input.
6776 continue
6777 fi
6778
6779 rm -f conftest.err conftest.$ac_ext
6780
6781 # OK, works on sane cases. Now check whether nonexistent headers
6782 # can be detected and how.
6783 cat >conftest.$ac_ext <<_ACEOF
6784 /* confdefs.h. */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 #include <ac_nonexistent.h>
6790 _ACEOF
6791 if { (ac_try="$ac_cpp conftest.$ac_ext"
6792 case "(($ac_try" in
6793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794 *) ac_try_echo=$ac_try;;
6795 esac
6796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6797 $as_echo "$ac_try_echo") >&5
6798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6799 ac_status=$?
6800 grep -v '^ *+' conftest.er1 >conftest.err
6801 rm -f conftest.er1
6802 cat conftest.err >&5
6803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } >/dev/null && {
6805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6806 test ! -s conftest.err
6807 }; then
6808 # Broken: success on invalid input.
6809 continue
6810 else
6811 $as_echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6813
6814 # Passes both tests.
6815 ac_preproc_ok=:
6816 break
6817 fi
6818
6819 rm -f conftest.err conftest.$ac_ext
6820
6821 done
6822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6823 rm -f conftest.err conftest.$ac_ext
6824 if $ac_preproc_ok; then
6825 :
6826 else
6827 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6829 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6830 See \`config.log' for more details." >&5
6831 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6832 See \`config.log' for more details." >&2;}
6833 { (exit 1); exit 1; }; }; }
6834 fi
6835
6836 ac_ext=c
6837 ac_cpp='$CPP $CPPFLAGS'
6838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6841
6842
6843 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6844 $as_echo_n "checking for ANSI C header files... " >&6; }
6845 if test "${ac_cv_header_stdc+set}" = set; then
6846 $as_echo_n "(cached) " >&6
6847 else
6848 cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h. */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 #include <stdlib.h>
6855 #include <stdarg.h>
6856 #include <string.h>
6857 #include <float.h>
6858
6859 int
6860 main ()
6861 {
6862
6863 ;
6864 return 0;
6865 }
6866 _ACEOF
6867 rm -f conftest.$ac_objext
6868 if { (ac_try="$ac_compile"
6869 case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6872 esac
6873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6874 $as_echo "$ac_try_echo") >&5
6875 (eval "$ac_compile") 2>conftest.er1
6876 ac_status=$?
6877 grep -v '^ *+' conftest.er1 >conftest.err
6878 rm -f conftest.er1
6879 cat conftest.err >&5
6880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } && {
6882 test -z "$ac_c_werror_flag" ||
6883 test ! -s conftest.err
6884 } && test -s conftest.$ac_objext; then
6885 ac_cv_header_stdc=yes
6886 else
6887 $as_echo "$as_me: failed program was:" >&5
6888 sed 's/^/| /' conftest.$ac_ext >&5
6889
6890 ac_cv_header_stdc=no
6891 fi
6892
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894
6895 if test $ac_cv_header_stdc = yes; then
6896 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6897 cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h. */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6903 #include <string.h>
6904
6905 _ACEOF
6906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6907 $EGREP "memchr" >/dev/null 2>&1; then
6908 :
6909 else
6910 ac_cv_header_stdc=no
6911 fi
6912 rm -f conftest*
6913
6914 fi
6915
6916 if test $ac_cv_header_stdc = yes; then
6917 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6918 cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h. */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 #include <stdlib.h>
6925
6926 _ACEOF
6927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6928 $EGREP "free" >/dev/null 2>&1; then
6929 :
6930 else
6931 ac_cv_header_stdc=no
6932 fi
6933 rm -f conftest*
6934
6935 fi
6936
6937 if test $ac_cv_header_stdc = yes; then
6938 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6939 if test "$cross_compiling" = yes; then
6940 :
6941 else
6942 cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h. */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 #include <ctype.h>
6949 #include <stdlib.h>
6950 #if ((' ' & 0x0FF) == 0x020)
6951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6953 #else
6954 # define ISLOWER(c) \
6955 (('a' <= (c) && (c) <= 'i') \
6956 || ('j' <= (c) && (c) <= 'r') \
6957 || ('s' <= (c) && (c) <= 'z'))
6958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6959 #endif
6960
6961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6962 int
6963 main ()
6964 {
6965 int i;
6966 for (i = 0; i < 256; i++)
6967 if (XOR (islower (i), ISLOWER (i))
6968 || toupper (i) != TOUPPER (i))
6969 return 2;
6970 return 0;
6971 }
6972 _ACEOF
6973 rm -f conftest$ac_exeext
6974 if { (ac_try="$ac_link"
6975 case "(($ac_try" in
6976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6977 *) ac_try_echo=$ac_try;;
6978 esac
6979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6980 $as_echo "$ac_try_echo") >&5
6981 (eval "$ac_link") 2>&5
6982 ac_status=$?
6983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6985 { (case "(($ac_try" in
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6988 esac
6989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6990 $as_echo "$ac_try_echo") >&5
6991 (eval "$ac_try") 2>&5
6992 ac_status=$?
6993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; }; then
6995 :
6996 else
6997 $as_echo "$as_me: program exited with status $ac_status" >&5
6998 $as_echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 ( exit $ac_status )
7002 ac_cv_header_stdc=no
7003 fi
7004 rm -rf conftest.dSYM
7005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7006 fi
7007
7008
7009 fi
7010 fi
7011 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7012 $as_echo "$ac_cv_header_stdc" >&6; }
7013 if test $ac_cv_header_stdc = yes; then
7014
7015 cat >>confdefs.h <<\_ACEOF
7016 #define STDC_HEADERS 1
7017 _ACEOF
7018
7019 fi
7020
7021 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7032 inttypes.h stdint.h unistd.h
7033 do
7034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7035 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7036 $as_echo_n "checking for $ac_header... " >&6; }
7037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7038 $as_echo_n "(cached) " >&6
7039 else
7040 cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h. */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 $ac_includes_default
7047
7048 #include <$ac_header>
7049 _ACEOF
7050 rm -f conftest.$ac_objext
7051 if { (ac_try="$ac_compile"
7052 case "(($ac_try" in
7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054 *) ac_try_echo=$ac_try;;
7055 esac
7056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7057 $as_echo "$ac_try_echo") >&5
7058 (eval "$ac_compile") 2>conftest.er1
7059 ac_status=$?
7060 grep -v '^ *+' conftest.er1 >conftest.err
7061 rm -f conftest.er1
7062 cat conftest.err >&5
7063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } && {
7065 test -z "$ac_c_werror_flag" ||
7066 test ! -s conftest.err
7067 } && test -s conftest.$ac_objext; then
7068 eval "$as_ac_Header=yes"
7069 else
7070 $as_echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7072
7073 eval "$as_ac_Header=no"
7074 fi
7075
7076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7077 fi
7078 ac_res=`eval 'as_val=${'$as_ac_Header'}
7079 $as_echo "$as_val"'`
7080 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7081 $as_echo "$ac_res" >&6; }
7082 as_val=`eval 'as_val=${'$as_ac_Header'}
7083 $as_echo "$as_val"'`
7084 if test "x$as_val" = x""yes; then
7085 cat >>confdefs.h <<_ACEOF
7086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7087 _ACEOF
7088
7089 fi
7090
7091 done
7092
7093
7094
7095 for ac_header in dlfcn.h
7096 do
7097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7098 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7099 $as_echo_n "checking for $ac_header... " >&6; }
7100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7101 $as_echo_n "(cached) " >&6
7102 else
7103 cat >conftest.$ac_ext <<_ACEOF
7104 /* confdefs.h. */
7105 _ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7109 $ac_includes_default
7110
7111 #include <$ac_header>
7112 _ACEOF
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7115 case "(($ac_try" in
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7118 esac
7119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7120 $as_echo "$ac_try_echo") >&5
7121 (eval "$ac_compile") 2>conftest.er1
7122 ac_status=$?
7123 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1
7125 cat conftest.err >&5
7126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest.$ac_objext; then
7131 eval "$as_ac_Header=yes"
7132 else
7133 $as_echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7135
7136 eval "$as_ac_Header=no"
7137 fi
7138
7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 fi
7141 ac_res=`eval 'as_val=${'$as_ac_Header'}
7142 $as_echo "$as_val"'`
7143 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7144 $as_echo "$ac_res" >&6; }
7145 as_val=`eval 'as_val=${'$as_ac_Header'}
7146 $as_echo "$as_val"'`
7147 if test "x$as_val" = x""yes; then
7148 cat >>confdefs.h <<_ACEOF
7149 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7150 _ACEOF
7151
7152 fi
7153
7154 done
7155
7156
7157
7158 # Set options
7159
7160
7161
7162 enable_dlopen=no
7163
7164
7165 enable_win32_dll=no
7166
7167
7168 # Check whether --enable-shared was given.
7169 if test "${enable_shared+set}" = set; then
7170 enableval=$enable_shared; p=${PACKAGE-default}
7171 case $enableval in
7172 yes) enable_shared=yes ;;
7173 no) enable_shared=no ;;
7174 *)
7175 enable_shared=no
7176 # Look at the argument we got. We use all the common list separators.
7177 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7178 for pkg in $enableval; do
7179 IFS="$lt_save_ifs"
7180 if test "X$pkg" = "X$p"; then
7181 enable_shared=yes
7182 fi
7183 done
7184 IFS="$lt_save_ifs"
7185 ;;
7186 esac
7187 else
7188 enable_shared=yes
7189 fi
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199 # Check whether --enable-static was given.
7200 if test "${enable_static+set}" = set; then
7201 enableval=$enable_static; p=${PACKAGE-default}
7202 case $enableval in
7203 yes) enable_static=yes ;;
7204 no) enable_static=no ;;
7205 *)
7206 enable_static=no
7207 # Look at the argument we got. We use all the common list separators.
7208 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7209 for pkg in $enableval; do
7210 IFS="$lt_save_ifs"
7211 if test "X$pkg" = "X$p"; then
7212 enable_static=yes
7213 fi
7214 done
7215 IFS="$lt_save_ifs"
7216 ;;
7217 esac
7218 else
7219 enable_static=yes
7220 fi
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231 # Check whether --with-pic was given.
7232 if test "${with_pic+set}" = set; then
7233 withval=$with_pic; pic_mode="$withval"
7234 else
7235 pic_mode=default
7236 fi
7237
7238
7239 test -z "$pic_mode" && pic_mode=default
7240
7241
7242
7243
7244
7245
7246
7247 # Check whether --enable-fast-install was given.
7248 if test "${enable_fast_install+set}" = set; then
7249 enableval=$enable_fast_install; p=${PACKAGE-default}
7250 case $enableval in
7251 yes) enable_fast_install=yes ;;
7252 no) enable_fast_install=no ;;
7253 *)
7254 enable_fast_install=no
7255 # Look at the argument we got. We use all the common list separators.
7256 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7257 for pkg in $enableval; do
7258 IFS="$lt_save_ifs"
7259 if test "X$pkg" = "X$p"; then
7260 enable_fast_install=yes
7261 fi
7262 done
7263 IFS="$lt_save_ifs"
7264 ;;
7265 esac
7266 else
7267 enable_fast_install=yes
7268 fi
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280 # This can be used to rebuild libtool when needed
7281 LIBTOOL_DEPS="$ltmain"
7282
7283 # Always use our own libtool.
7284 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310 test -z "$LN_S" && LN_S="ln -s"
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325 if test -n "${ZSH_VERSION+set}" ; then
7326 setopt NO_GLOB_SUBST
7327 fi
7328
7329 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7330 $as_echo_n "checking for objdir... " >&6; }
7331 if test "${lt_cv_objdir+set}" = set; then
7332 $as_echo_n "(cached) " >&6
7333 else
7334 rm -f .libs 2>/dev/null
7335 mkdir .libs 2>/dev/null
7336 if test -d .libs; then
7337 lt_cv_objdir=.libs
7338 else
7339 # MS-DOS does not allow filenames that begin with a dot.
7340 lt_cv_objdir=_libs
7341 fi
7342 rmdir .libs 2>/dev/null
7343 fi
7344 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7345 $as_echo "$lt_cv_objdir" >&6; }
7346 objdir=$lt_cv_objdir
7347
7348
7349
7350
7351
7352 cat >>confdefs.h <<_ACEOF
7353 #define LT_OBJDIR "$lt_cv_objdir/"
7354 _ACEOF
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372 case $host_os in
7373 aix3*)
7374 # AIX sometimes has problems with the GCC collect2 program. For some
7375 # reason, if we set the COLLECT_NAMES environment variable, the problems
7376 # vanish in a puff of smoke.
7377 if test "X${COLLECT_NAMES+set}" != Xset; then
7378 COLLECT_NAMES=
7379 export COLLECT_NAMES
7380 fi
7381 ;;
7382 esac
7383
7384 # Sed substitution that helps us do robust quoting. It backslashifies
7385 # metacharacters that are still active within double-quoted strings.
7386 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7387
7388 # Same as above, but do not quote variable references.
7389 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7390
7391 # Sed substitution to delay expansion of an escaped shell variable in a
7392 # double_quote_subst'ed string.
7393 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7394
7395 # Sed substitution to delay expansion of an escaped single quote.
7396 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7397
7398 # Sed substitution to avoid accidental globbing in evaled expressions
7399 no_glob_subst='s/\*/\\\*/g'
7400
7401 # Global variables:
7402 ofile=libtool
7403 can_build_shared=yes
7404
7405 # All known linkers require a `.a' archive for static linking (except MSVC,
7406 # which needs '.lib').
7407 libext=a
7408
7409 with_gnu_ld="$lt_cv_prog_gnu_ld"
7410
7411 old_CC="$CC"
7412 old_CFLAGS="$CFLAGS"
7413
7414 # Set sane defaults for various variables
7415 test -z "$CC" && CC=cc
7416 test -z "$LTCC" && LTCC=$CC
7417 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7418 test -z "$LD" && LD=ld
7419 test -z "$ac_objext" && ac_objext=o
7420
7421 for cc_temp in $compiler""; do
7422 case $cc_temp in
7423 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7424 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7425 \-*) ;;
7426 *) break;;
7427 esac
7428 done
7429 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7430
7431
7432 # Only perform the check for file, if the check method requires it
7433 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7434 case $deplibs_check_method in
7435 file_magic*)
7436 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7437 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7438 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7439 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7440 $as_echo_n "(cached) " >&6
7441 else
7442 case $MAGIC_CMD in
7443 [\\/*] | ?:[\\/]*)
7444 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7445 ;;
7446 *)
7447 lt_save_MAGIC_CMD="$MAGIC_CMD"
7448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7449 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7450 for ac_dir in $ac_dummy; do
7451 IFS="$lt_save_ifs"
7452 test -z "$ac_dir" && ac_dir=.
7453 if test -f $ac_dir/${ac_tool_prefix}file; then
7454 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7455 if test -n "$file_magic_test_file"; then
7456 case $deplibs_check_method in
7457 "file_magic "*)
7458 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7460 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7461 $EGREP "$file_magic_regex" > /dev/null; then
7462 :
7463 else
7464 cat <<_LT_EOF 1>&2
7465
7466 *** Warning: the command libtool uses to detect shared libraries,
7467 *** $file_magic_cmd, produces output that libtool cannot recognize.
7468 *** The result is that libtool may fail to recognize shared libraries
7469 *** as such. This will affect the creation of libtool libraries that
7470 *** depend on shared libraries, but programs linked with such libtool
7471 *** libraries will work regardless of this problem. Nevertheless, you
7472 *** may want to report the problem to your system manager and/or to
7473 *** bug-libtool@gnu.org
7474
7475 _LT_EOF
7476 fi ;;
7477 esac
7478 fi
7479 break
7480 fi
7481 done
7482 IFS="$lt_save_ifs"
7483 MAGIC_CMD="$lt_save_MAGIC_CMD"
7484 ;;
7485 esac
7486 fi
7487
7488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7489 if test -n "$MAGIC_CMD"; then
7490 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7491 $as_echo "$MAGIC_CMD" >&6; }
7492 else
7493 { $as_echo "$as_me:$LINENO: result: no" >&5
7494 $as_echo "no" >&6; }
7495 fi
7496
7497
7498
7499
7500
7501 if test -z "$lt_cv_path_MAGIC_CMD"; then
7502 if test -n "$ac_tool_prefix"; then
7503 { $as_echo "$as_me:$LINENO: checking for file" >&5
7504 $as_echo_n "checking for file... " >&6; }
7505 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7506 $as_echo_n "(cached) " >&6
7507 else
7508 case $MAGIC_CMD in
7509 [\\/*] | ?:[\\/]*)
7510 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7511 ;;
7512 *)
7513 lt_save_MAGIC_CMD="$MAGIC_CMD"
7514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7515 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7516 for ac_dir in $ac_dummy; do
7517 IFS="$lt_save_ifs"
7518 test -z "$ac_dir" && ac_dir=.
7519 if test -f $ac_dir/file; then
7520 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7521 if test -n "$file_magic_test_file"; then
7522 case $deplibs_check_method in
7523 "file_magic "*)
7524 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7525 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7526 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7527 $EGREP "$file_magic_regex" > /dev/null; then
7528 :
7529 else
7530 cat <<_LT_EOF 1>&2
7531
7532 *** Warning: the command libtool uses to detect shared libraries,
7533 *** $file_magic_cmd, produces output that libtool cannot recognize.
7534 *** The result is that libtool may fail to recognize shared libraries
7535 *** as such. This will affect the creation of libtool libraries that
7536 *** depend on shared libraries, but programs linked with such libtool
7537 *** libraries will work regardless of this problem. Nevertheless, you
7538 *** may want to report the problem to your system manager and/or to
7539 *** bug-libtool@gnu.org
7540
7541 _LT_EOF
7542 fi ;;
7543 esac
7544 fi
7545 break
7546 fi
7547 done
7548 IFS="$lt_save_ifs"
7549 MAGIC_CMD="$lt_save_MAGIC_CMD"
7550 ;;
7551 esac
7552 fi
7553
7554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7555 if test -n "$MAGIC_CMD"; then
7556 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7557 $as_echo "$MAGIC_CMD" >&6; }
7558 else
7559 { $as_echo "$as_me:$LINENO: result: no" >&5
7560 $as_echo "no" >&6; }
7561 fi
7562
7563
7564 else
7565 MAGIC_CMD=:
7566 fi
7567 fi
7568
7569 fi
7570 ;;
7571 esac
7572
7573 # Use C for the default configuration in the libtool script
7574
7575 lt_save_CC="$CC"
7576 ac_ext=c
7577 ac_cpp='$CPP $CPPFLAGS'
7578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7581
7582
7583 # Source file extension for C test sources.
7584 ac_ext=c
7585
7586 # Object file extension for compiled C test sources.
7587 objext=o
7588 objext=$objext
7589
7590 # Code to be used in simple compile tests
7591 lt_simple_compile_test_code="int some_variable = 0;"
7592
7593 # Code to be used in simple link tests
7594 lt_simple_link_test_code='int main(){return(0);}'
7595
7596
7597
7598
7599
7600
7601
7602 # If no C compiler was specified, use CC.
7603 LTCC=${LTCC-"$CC"}
7604
7605 # If no C compiler flags were specified, use CFLAGS.
7606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7607
7608 # Allow CC to be a program name with arguments.
7609 compiler=$CC
7610
7611 # Save the default compiler, since it gets overwritten when the other
7612 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7613 compiler_DEFAULT=$CC
7614
7615 # save warnings/boilerplate of simple test code
7616 ac_outfile=conftest.$ac_objext
7617 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7618 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7619 _lt_compiler_boilerplate=`cat conftest.err`
7620 $RM conftest*
7621
7622 ac_outfile=conftest.$ac_objext
7623 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7624 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7625 _lt_linker_boilerplate=`cat conftest.err`
7626 $RM -r conftest*
7627
7628
7629 ## CAVEAT EMPTOR:
7630 ## There is no encapsulation within the following macros, do not change
7631 ## the running order or otherwise move them around unless you know exactly
7632 ## what you are doing...
7633 if test -n "$compiler"; then
7634
7635 lt_prog_compiler_no_builtin_flag=
7636
7637 if test "$GCC" = yes; then
7638 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7639
7640 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7641 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7642 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7643 $as_echo_n "(cached) " >&6
7644 else
7645 lt_cv_prog_compiler_rtti_exceptions=no
7646 ac_outfile=conftest.$ac_objext
7647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7648 lt_compiler_flag="-fno-rtti -fno-exceptions"
7649 # Insert the option either (1) after the last *FLAGS variable, or
7650 # (2) before a word containing "conftest.", or (3) at the end.
7651 # Note that $ac_compile itself does not contain backslashes and begins
7652 # with a dollar sign (not a hyphen), so the echo should work correctly.
7653 # The option is referenced via a variable to avoid confusing sed.
7654 lt_compile=`echo "$ac_compile" | $SED \
7655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7657 -e 's:$: $lt_compiler_flag:'`
7658 (eval echo "\"\$as_me:7658: $lt_compile\"" >&5)
7659 (eval "$lt_compile" 2>conftest.err)
7660 ac_status=$?
7661 cat conftest.err >&5
7662 echo "$as_me:7662: \$? = $ac_status" >&5
7663 if (exit $ac_status) && test -s "$ac_outfile"; then
7664 # The compiler can only warn and ignore the option if not recognized
7665 # So say no if there are warnings other than the usual output.
7666 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7669 lt_cv_prog_compiler_rtti_exceptions=yes
7670 fi
7671 fi
7672 $RM conftest*
7673
7674 fi
7675 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7676 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7677
7678 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7679 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7680 else
7681 :
7682 fi
7683
7684 fi
7685
7686
7687
7688
7689
7690
7691 lt_prog_compiler_wl=
7692 lt_prog_compiler_pic=
7693 lt_prog_compiler_static=
7694
7695 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7696 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7697
7698 if test "$GCC" = yes; then
7699 lt_prog_compiler_wl='-Wl,'
7700 lt_prog_compiler_static='-static'
7701
7702 case $host_os in
7703 aix*)
7704 # All AIX code is PIC.
7705 if test "$host_cpu" = ia64; then
7706 # AIX 5 now supports IA64 processor
7707 lt_prog_compiler_static='-Bstatic'
7708 fi
7709 ;;
7710
7711 amigaos*)
7712 case $host_cpu in
7713 powerpc)
7714 # see comment about AmigaOS4 .so support
7715 lt_prog_compiler_pic='-fPIC'
7716 ;;
7717 m68k)
7718 # FIXME: we need at least 68020 code to build shared libraries, but
7719 # adding the `-m68020' flag to GCC prevents building anything better,
7720 # like `-m68040'.
7721 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7722 ;;
7723 esac
7724 ;;
7725
7726 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7727 # PIC is the default for these OSes.
7728 ;;
7729
7730 mingw* | cygwin* | pw32* | os2* | cegcc*)
7731 # This hack is so that the source file can tell whether it is being
7732 # built for inclusion in a dll (and should export symbols for example).
7733 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7734 # (--disable-auto-import) libraries
7735 lt_prog_compiler_pic='-DDLL_EXPORT'
7736 ;;
7737
7738 darwin* | rhapsody*)
7739 # PIC is the default on this platform
7740 # Common symbols not allowed in MH_DYLIB files
7741 lt_prog_compiler_pic='-fno-common'
7742 ;;
7743
7744 hpux*)
7745 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7746 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7747 # sets the default TLS model and affects inlining.
7748 case $host_cpu in
7749 hppa*64*)
7750 # +Z the default
7751 ;;
7752 *)
7753 lt_prog_compiler_pic='-fPIC'
7754 ;;
7755 esac
7756 ;;
7757
7758 interix[3-9]*)
7759 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7760 # Instead, we relocate shared libraries at runtime.
7761 ;;
7762
7763 msdosdjgpp*)
7764 # Just because we use GCC doesn't mean we suddenly get shared libraries
7765 # on systems that don't support them.
7766 lt_prog_compiler_can_build_shared=no
7767 enable_shared=no
7768 ;;
7769
7770 *nto* | *qnx*)
7771 # QNX uses GNU C++, but need to define -shared option too, otherwise
7772 # it will coredump.
7773 lt_prog_compiler_pic='-fPIC -shared'
7774 ;;
7775
7776 sysv4*MP*)
7777 if test -d /usr/nec; then
7778 lt_prog_compiler_pic=-Kconform_pic
7779 fi
7780 ;;
7781
7782 *)
7783 lt_prog_compiler_pic='-fPIC'
7784 ;;
7785 esac
7786 else
7787 # PORTME Check for flag to pass linker flags through the system compiler.
7788 case $host_os in
7789 aix*)
7790 lt_prog_compiler_wl='-Wl,'
7791 if test "$host_cpu" = ia64; then
7792 # AIX 5 now supports IA64 processor
7793 lt_prog_compiler_static='-Bstatic'
7794 else
7795 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7796 fi
7797 ;;
7798
7799 mingw* | cygwin* | pw32* | os2* | cegcc*)
7800 # This hack is so that the source file can tell whether it is being
7801 # built for inclusion in a dll (and should export symbols for example).
7802 lt_prog_compiler_pic='-DDLL_EXPORT'
7803 ;;
7804
7805 hpux9* | hpux10* | hpux11*)
7806 lt_prog_compiler_wl='-Wl,'
7807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7808 # not for PA HP-UX.
7809 case $host_cpu in
7810 hppa*64*|ia64*)
7811 # +Z the default
7812 ;;
7813 *)
7814 lt_prog_compiler_pic='+Z'
7815 ;;
7816 esac
7817 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7818 lt_prog_compiler_static='${wl}-a ${wl}archive'
7819 ;;
7820
7821 irix5* | irix6* | nonstopux*)
7822 lt_prog_compiler_wl='-Wl,'
7823 # PIC (with -KPIC) is the default.
7824 lt_prog_compiler_static='-non_shared'
7825 ;;
7826
7827 linux* | k*bsd*-gnu)
7828 case $cc_basename in
7829 # old Intel for x86_64 which still supported -KPIC.
7830 ecc*)
7831 lt_prog_compiler_wl='-Wl,'
7832 lt_prog_compiler_pic='-KPIC'
7833 lt_prog_compiler_static='-static'
7834 ;;
7835 # icc used to be incompatible with GCC.
7836 # ICC 10 doesn't accept -KPIC any more.
7837 icc* | ifort*)
7838 lt_prog_compiler_wl='-Wl,'
7839 lt_prog_compiler_pic='-fPIC'
7840 lt_prog_compiler_static='-static'
7841 ;;
7842 # Lahey Fortran 8.1.
7843 lf95*)
7844 lt_prog_compiler_wl='-Wl,'
7845 lt_prog_compiler_pic='--shared'
7846 lt_prog_compiler_static='--static'
7847 ;;
7848 pgcc* | pgf77* | pgf90* | pgf95*)
7849 # Portland Group compilers (*not* the Pentium gcc compiler,
7850 # which looks to be a dead project)
7851 lt_prog_compiler_wl='-Wl,'
7852 lt_prog_compiler_pic='-fpic'
7853 lt_prog_compiler_static='-Bstatic'
7854 ;;
7855 ccc*)
7856 lt_prog_compiler_wl='-Wl,'
7857 # All Alpha code is PIC.
7858 lt_prog_compiler_static='-non_shared'
7859 ;;
7860 xl*)
7861 # IBM XL C 8.0/Fortran 10.1 on PPC
7862 lt_prog_compiler_wl='-Wl,'
7863 lt_prog_compiler_pic='-qpic'
7864 lt_prog_compiler_static='-qstaticlink'
7865 ;;
7866 *)
7867 case `$CC -V 2>&1 | sed 5q` in
7868 *Sun\ C*)
7869 # Sun C 5.9
7870 lt_prog_compiler_pic='-KPIC'
7871 lt_prog_compiler_static='-Bstatic'
7872 lt_prog_compiler_wl='-Wl,'
7873 ;;
7874 *Sun\ F*)
7875 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7876 lt_prog_compiler_pic='-KPIC'
7877 lt_prog_compiler_static='-Bstatic'
7878 lt_prog_compiler_wl=''
7879 ;;
7880 esac
7881 ;;
7882 esac
7883 ;;
7884
7885 newsos6)
7886 lt_prog_compiler_pic='-KPIC'
7887 lt_prog_compiler_static='-Bstatic'
7888 ;;
7889
7890 *nto* | *qnx*)
7891 # QNX uses GNU C++, but need to define -shared option too, otherwise
7892 # it will coredump.
7893 lt_prog_compiler_pic='-fPIC -shared'
7894 ;;
7895
7896 osf3* | osf4* | osf5*)
7897 lt_prog_compiler_wl='-Wl,'
7898 # All OSF/1 code is PIC.
7899 lt_prog_compiler_static='-non_shared'
7900 ;;
7901
7902 rdos*)
7903 lt_prog_compiler_static='-non_shared'
7904 ;;
7905
7906 solaris*)
7907 lt_prog_compiler_pic='-KPIC'
7908 lt_prog_compiler_static='-Bstatic'
7909 case $cc_basename in
7910 f77* | f90* | f95*)
7911 lt_prog_compiler_wl='-Qoption ld ';;
7912 *)
7913 lt_prog_compiler_wl='-Wl,';;
7914 esac
7915 ;;
7916
7917 sunos4*)
7918 lt_prog_compiler_wl='-Qoption ld '
7919 lt_prog_compiler_pic='-PIC'
7920 lt_prog_compiler_static='-Bstatic'
7921 ;;
7922
7923 sysv4 | sysv4.2uw2* | sysv4.3*)
7924 lt_prog_compiler_wl='-Wl,'
7925 lt_prog_compiler_pic='-KPIC'
7926 lt_prog_compiler_static='-Bstatic'
7927 ;;
7928
7929 sysv4*MP*)
7930 if test -d /usr/nec ;then
7931 lt_prog_compiler_pic='-Kconform_pic'
7932 lt_prog_compiler_static='-Bstatic'
7933 fi
7934 ;;
7935
7936 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7937 lt_prog_compiler_wl='-Wl,'
7938 lt_prog_compiler_pic='-KPIC'
7939 lt_prog_compiler_static='-Bstatic'
7940 ;;
7941
7942 unicos*)
7943 lt_prog_compiler_wl='-Wl,'
7944 lt_prog_compiler_can_build_shared=no
7945 ;;
7946
7947 uts4*)
7948 lt_prog_compiler_pic='-pic'
7949 lt_prog_compiler_static='-Bstatic'
7950 ;;
7951
7952 *)
7953 lt_prog_compiler_can_build_shared=no
7954 ;;
7955 esac
7956 fi
7957
7958 case $host_os in
7959 # For platforms which do not support PIC, -DPIC is meaningless:
7960 *djgpp*)
7961 lt_prog_compiler_pic=
7962 ;;
7963 *)
7964 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7965 ;;
7966 esac
7967 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7968 $as_echo "$lt_prog_compiler_pic" >&6; }
7969
7970
7971
7972
7973
7974
7975 #
7976 # Check to make sure the PIC flag actually works.
7977 #
7978 if test -n "$lt_prog_compiler_pic"; then
7979 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7980 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7981 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7982 $as_echo_n "(cached) " >&6
7983 else
7984 lt_cv_prog_compiler_pic_works=no
7985 ac_outfile=conftest.$ac_objext
7986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7987 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7988 # Insert the option either (1) after the last *FLAGS variable, or
7989 # (2) before a word containing "conftest.", or (3) at the end.
7990 # Note that $ac_compile itself does not contain backslashes and begins
7991 # with a dollar sign (not a hyphen), so the echo should work correctly.
7992 # The option is referenced via a variable to avoid confusing sed.
7993 lt_compile=`echo "$ac_compile" | $SED \
7994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7996 -e 's:$: $lt_compiler_flag:'`
7997 (eval echo "\"\$as_me:7997: $lt_compile\"" >&5)
7998 (eval "$lt_compile" 2>conftest.err)
7999 ac_status=$?
8000 cat conftest.err >&5
8001 echo "$as_me:8001: \$? = $ac_status" >&5
8002 if (exit $ac_status) && test -s "$ac_outfile"; then
8003 # The compiler can only warn and ignore the option if not recognized
8004 # So say no if there are warnings other than the usual output.
8005 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8007 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8008 lt_cv_prog_compiler_pic_works=yes
8009 fi
8010 fi
8011 $RM conftest*
8012
8013 fi
8014 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8015 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8016
8017 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8018 case $lt_prog_compiler_pic in
8019 "" | " "*) ;;
8020 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8021 esac
8022 else
8023 lt_prog_compiler_pic=
8024 lt_prog_compiler_can_build_shared=no
8025 fi
8026
8027 fi
8028
8029
8030
8031
8032
8033
8034 #
8035 # Check to make sure the static flag actually works.
8036 #
8037 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8038 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8039 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8040 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8041 $as_echo_n "(cached) " >&6
8042 else
8043 lt_cv_prog_compiler_static_works=no
8044 save_LDFLAGS="$LDFLAGS"
8045 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8046 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8047 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8048 # The linker can only warn and ignore the option if not recognized
8049 # So say no if there are warnings
8050 if test -s conftest.err; then
8051 # Append any errors to the config.log.
8052 cat conftest.err 1>&5
8053 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8055 if diff conftest.exp conftest.er2 >/dev/null; then
8056 lt_cv_prog_compiler_static_works=yes
8057 fi
8058 else
8059 lt_cv_prog_compiler_static_works=yes
8060 fi
8061 fi
8062 $RM -r conftest*
8063 LDFLAGS="$save_LDFLAGS"
8064
8065 fi
8066 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8067 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8068
8069 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8070 :
8071 else
8072 lt_prog_compiler_static=
8073 fi
8074
8075
8076
8077
8078
8079
8080
8081 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8082 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8083 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8084 $as_echo_n "(cached) " >&6
8085 else
8086 lt_cv_prog_compiler_c_o=no
8087 $RM -r conftest 2>/dev/null
8088 mkdir conftest
8089 cd conftest
8090 mkdir out
8091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8092
8093 lt_compiler_flag="-o out/conftest2.$ac_objext"
8094 # Insert the option either (1) after the last *FLAGS variable, or
8095 # (2) before a word containing "conftest.", or (3) at the end.
8096 # Note that $ac_compile itself does not contain backslashes and begins
8097 # with a dollar sign (not a hyphen), so the echo should work correctly.
8098 lt_compile=`echo "$ac_compile" | $SED \
8099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8101 -e 's:$: $lt_compiler_flag:'`
8102 (eval echo "\"\$as_me:8102: $lt_compile\"" >&5)
8103 (eval "$lt_compile" 2>out/conftest.err)
8104 ac_status=$?
8105 cat out/conftest.err >&5
8106 echo "$as_me:8106: \$? = $ac_status" >&5
8107 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8108 then
8109 # The compiler can only warn and ignore the option if not recognized
8110 # So say no if there are warnings
8111 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8112 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8113 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8114 lt_cv_prog_compiler_c_o=yes
8115 fi
8116 fi
8117 chmod u+w . 2>&5
8118 $RM conftest*
8119 # SGI C++ compiler will create directory out/ii_files/ for
8120 # template instantiation
8121 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8122 $RM out/* && rmdir out
8123 cd ..
8124 $RM -r conftest
8125 $RM conftest*
8126
8127 fi
8128 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8129 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8130
8131
8132
8133
8134
8135
8136 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8137 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8138 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8139 $as_echo_n "(cached) " >&6
8140 else
8141 lt_cv_prog_compiler_c_o=no
8142 $RM -r conftest 2>/dev/null
8143 mkdir conftest
8144 cd conftest
8145 mkdir out
8146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8147
8148 lt_compiler_flag="-o out/conftest2.$ac_objext"
8149 # Insert the option either (1) after the last *FLAGS variable, or
8150 # (2) before a word containing "conftest.", or (3) at the end.
8151 # Note that $ac_compile itself does not contain backslashes and begins
8152 # with a dollar sign (not a hyphen), so the echo should work correctly.
8153 lt_compile=`echo "$ac_compile" | $SED \
8154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8156 -e 's:$: $lt_compiler_flag:'`
8157 (eval echo "\"\$as_me:8157: $lt_compile\"" >&5)
8158 (eval "$lt_compile" 2>out/conftest.err)
8159 ac_status=$?
8160 cat out/conftest.err >&5
8161 echo "$as_me:8161: \$? = $ac_status" >&5
8162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8163 then
8164 # The compiler can only warn and ignore the option if not recognized
8165 # So say no if there are warnings
8166 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8169 lt_cv_prog_compiler_c_o=yes
8170 fi
8171 fi
8172 chmod u+w . 2>&5
8173 $RM conftest*
8174 # SGI C++ compiler will create directory out/ii_files/ for
8175 # template instantiation
8176 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8177 $RM out/* && rmdir out
8178 cd ..
8179 $RM -r conftest
8180 $RM conftest*
8181
8182 fi
8183 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8184 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8185
8186
8187
8188
8189 hard_links="nottested"
8190 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8191 # do not overwrite the value of need_locks provided by the user
8192 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8193 $as_echo_n "checking if we can lock with hard links... " >&6; }
8194 hard_links=yes
8195 $RM conftest*
8196 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8197 touch conftest.a
8198 ln conftest.a conftest.b 2>&5 || hard_links=no
8199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8200 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8201 $as_echo "$hard_links" >&6; }
8202 if test "$hard_links" = no; then
8203 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8204 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8205 need_locks=warn
8206 fi
8207 else
8208 need_locks=no
8209 fi
8210
8211
8212
8213
8214
8215
8216 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8217 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8218
8219 runpath_var=
8220 allow_undefined_flag=
8221 always_export_symbols=no
8222 archive_cmds=
8223 archive_expsym_cmds=
8224 compiler_needs_object=no
8225 enable_shared_with_static_runtimes=no
8226 export_dynamic_flag_spec=
8227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8228 hardcode_automatic=no
8229 hardcode_direct=no
8230 hardcode_direct_absolute=no
8231 hardcode_libdir_flag_spec=
8232 hardcode_libdir_flag_spec_ld=
8233 hardcode_libdir_separator=
8234 hardcode_minus_L=no
8235 hardcode_shlibpath_var=unsupported
8236 inherit_rpath=no
8237 link_all_deplibs=unknown
8238 module_cmds=
8239 module_expsym_cmds=
8240 old_archive_from_new_cmds=
8241 old_archive_from_expsyms_cmds=
8242 thread_safe_flag_spec=
8243 whole_archive_flag_spec=
8244 # include_expsyms should be a list of space-separated symbols to be *always*
8245 # included in the symbol list
8246 include_expsyms=
8247 # exclude_expsyms can be an extended regexp of symbols to exclude
8248 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8249 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8250 # as well as any symbol that contains `d'.
8251 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8252 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8253 # platforms (ab)use it in PIC code, but their linkers get confused if
8254 # the symbol is explicitly referenced. Since portable code cannot
8255 # rely on this symbol name, it's probably fine to never include it in
8256 # preloaded symbol tables.
8257 # Exclude shared library initialization/finalization symbols.
8258 extract_expsyms_cmds=
8259
8260 case $host_os in
8261 cygwin* | mingw* | pw32* | cegcc*)
8262 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8263 # When not using gcc, we currently assume that we are using
8264 # Microsoft Visual C++.
8265 if test "$GCC" != yes; then
8266 with_gnu_ld=no
8267 fi
8268 ;;
8269 interix*)
8270 # we just hope/assume this is gcc and not c89 (= MSVC++)
8271 with_gnu_ld=yes
8272 ;;
8273 openbsd*)
8274 with_gnu_ld=no
8275 ;;
8276 esac
8277
8278 ld_shlibs=yes
8279 if test "$with_gnu_ld" = yes; then
8280 # If archive_cmds runs LD, not CC, wlarc should be empty
8281 wlarc='${wl}'
8282
8283 # Set some defaults for GNU ld with shared library support. These
8284 # are reset later if shared libraries are not supported. Putting them
8285 # here allows them to be overridden if necessary.
8286 runpath_var=LD_RUN_PATH
8287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8288 export_dynamic_flag_spec='${wl}--export-dynamic'
8289 # ancient GNU ld didn't support --whole-archive et. al.
8290 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8291 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8292 else
8293 whole_archive_flag_spec=
8294 fi
8295 supports_anon_versioning=no
8296 case `$LD -v 2>&1` in
8297 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8298 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8299 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8300 *\ 2.11.*) ;; # other 2.11 versions
8301 *) supports_anon_versioning=yes ;;
8302 esac
8303
8304 # See if GNU ld supports shared libraries.
8305 case $host_os in
8306 aix[3-9]*)
8307 # On AIX/PPC, the GNU linker is very broken
8308 if test "$host_cpu" != ia64; then
8309 ld_shlibs=no
8310 cat <<_LT_EOF 1>&2
8311
8312 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8313 *** to be unable to reliably create shared libraries on AIX.
8314 *** Therefore, libtool is disabling shared libraries support. If you
8315 *** really care for shared libraries, you may want to modify your PATH
8316 *** so that a non-GNU linker is found, and then restart.
8317
8318 _LT_EOF
8319 fi
8320 ;;
8321
8322 amigaos*)
8323 case $host_cpu in
8324 powerpc)
8325 # see comment about AmigaOS4 .so support
8326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8327 archive_expsym_cmds=''
8328 ;;
8329 m68k)
8330 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)'
8331 hardcode_libdir_flag_spec='-L$libdir'
8332 hardcode_minus_L=yes
8333 ;;
8334 esac
8335 ;;
8336
8337 beos*)
8338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8339 allow_undefined_flag=unsupported
8340 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8341 # support --undefined. This deserves some investigation. FIXME
8342 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8343 else
8344 ld_shlibs=no
8345 fi
8346 ;;
8347
8348 cygwin* | mingw* | pw32* | cegcc*)
8349 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8350 # as there is no search path for DLLs.
8351 hardcode_libdir_flag_spec='-L$libdir'
8352 allow_undefined_flag=unsupported
8353 always_export_symbols=no
8354 enable_shared_with_static_runtimes=yes
8355 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8356
8357 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8359 # If the export-symbols file already is a .def file (1st line
8360 # is EXPORTS), use it as is; otherwise, prepend...
8361 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8362 cp $export_symbols $output_objdir/$soname.def;
8363 else
8364 echo EXPORTS > $output_objdir/$soname.def;
8365 cat $export_symbols >> $output_objdir/$soname.def;
8366 fi~
8367 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8368 else
8369 ld_shlibs=no
8370 fi
8371 ;;
8372
8373 interix[3-9]*)
8374 hardcode_direct=no
8375 hardcode_shlibpath_var=no
8376 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8377 export_dynamic_flag_spec='${wl}-E'
8378 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8379 # Instead, shared libraries are loaded at an image base (0x10000000 by
8380 # default) and relocated if they conflict, which is a slow very memory
8381 # consuming and fragmenting process. To avoid this, we pick a random,
8382 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8383 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8384 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8385 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'
8386 ;;
8387
8388 gnu* | linux* | tpf* | k*bsd*-gnu)
8389 tmp_diet=no
8390 if test "$host_os" = linux-dietlibc; then
8391 case $cc_basename in
8392 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8393 esac
8394 fi
8395 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8396 && test "$tmp_diet" = no
8397 then
8398 tmp_addflag=
8399 tmp_sharedflag='-shared'
8400 case $cc_basename,$host_cpu in
8401 pgcc*) # Portland Group C compiler
8402 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8403 tmp_addflag=' $pic_flag'
8404 ;;
8405 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8406 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8407 tmp_addflag=' $pic_flag -Mnomain' ;;
8408 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8409 tmp_addflag=' -i_dynamic' ;;
8410 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8411 tmp_addflag=' -i_dynamic -nofor_main' ;;
8412 ifc* | ifort*) # Intel Fortran compiler
8413 tmp_addflag=' -nofor_main' ;;
8414 lf95*) # Lahey Fortran 8.1
8415 whole_archive_flag_spec=
8416 tmp_sharedflag='--shared' ;;
8417 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8418 tmp_sharedflag='-qmkshrobj'
8419 tmp_addflag= ;;
8420 esac
8421 case `$CC -V 2>&1 | sed 5q` in
8422 *Sun\ C*) # Sun C 5.9
8423 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8424 compiler_needs_object=yes
8425 tmp_sharedflag='-G' ;;
8426 *Sun\ F*) # Sun Fortran 8.3
8427 tmp_sharedflag='-G' ;;
8428 esac
8429 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8430
8431 if test "x$supports_anon_versioning" = xyes; then
8432 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8433 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8434 echo "local: *; };" >> $output_objdir/$libname.ver~
8435 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8436 fi
8437
8438 case $cc_basename in
8439 xlf*)
8440 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8441 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8442 hardcode_libdir_flag_spec=
8443 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8444 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8445 if test "x$supports_anon_versioning" = xyes; then
8446 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8448 echo "local: *; };" >> $output_objdir/$libname.ver~
8449 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8450 fi
8451 ;;
8452 esac
8453 else
8454 ld_shlibs=no
8455 fi
8456 ;;
8457
8458 netbsd*)
8459 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8460 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8461 wlarc=
8462 else
8463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8464 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8465 fi
8466 ;;
8467
8468 solaris*)
8469 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8470 ld_shlibs=no
8471 cat <<_LT_EOF 1>&2
8472
8473 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8474 *** create shared libraries on Solaris systems. Therefore, libtool
8475 *** is disabling shared libraries support. We urge you to upgrade GNU
8476 *** binutils to release 2.9.1 or newer. Another option is to modify
8477 *** your PATH or compiler configuration so that the native linker is
8478 *** used, and then restart.
8479
8480 _LT_EOF
8481 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8484 else
8485 ld_shlibs=no
8486 fi
8487 ;;
8488
8489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8490 case `$LD -v 2>&1` in
8491 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8492 ld_shlibs=no
8493 cat <<_LT_EOF 1>&2
8494
8495 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8496 *** reliably create shared libraries on SCO systems. Therefore, libtool
8497 *** is disabling shared libraries support. We urge you to upgrade GNU
8498 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8499 *** your PATH or compiler configuration so that the native linker is
8500 *** used, and then restart.
8501
8502 _LT_EOF
8503 ;;
8504 *)
8505 # For security reasons, it is highly recommended that you always
8506 # use absolute paths for naming shared libraries, and exclude the
8507 # DT_RUNPATH tag from executables and libraries. But doing so
8508 # requires that you compile everything twice, which is a pain.
8509 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8512 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8513 else
8514 ld_shlibs=no
8515 fi
8516 ;;
8517 esac
8518 ;;
8519
8520 sunos4*)
8521 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8522 wlarc=
8523 hardcode_direct=yes
8524 hardcode_shlibpath_var=no
8525 ;;
8526
8527 *)
8528 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8530 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8531 else
8532 ld_shlibs=no
8533 fi
8534 ;;
8535 esac
8536
8537 if test "$ld_shlibs" = no; then
8538 runpath_var=
8539 hardcode_libdir_flag_spec=
8540 export_dynamic_flag_spec=
8541 whole_archive_flag_spec=
8542 fi
8543 else
8544 # PORTME fill in a description of your system's linker (not GNU ld)
8545 case $host_os in
8546 aix3*)
8547 allow_undefined_flag=unsupported
8548 always_export_symbols=yes
8549 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'
8550 # Note: this linker hardcodes the directories in LIBPATH if there
8551 # are no directories specified by -L.
8552 hardcode_minus_L=yes
8553 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8554 # Neither direct hardcoding nor static linking is supported with a
8555 # broken collect2.
8556 hardcode_direct=unsupported
8557 fi
8558 ;;
8559
8560 aix[4-9]*)
8561 if test "$host_cpu" = ia64; then
8562 # On IA64, the linker does run time linking by default, so we don't
8563 # have to do anything special.
8564 aix_use_runtimelinking=no
8565 exp_sym_flag='-Bexport'
8566 no_entry_flag=""
8567 else
8568 # If we're using GNU nm, then we don't want the "-C" option.
8569 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8570 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8571 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8572 else
8573 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'
8574 fi
8575 aix_use_runtimelinking=no
8576
8577 # Test if we are trying to use run time linking or normal
8578 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8579 # need to do runtime linking.
8580 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8581 for ld_flag in $LDFLAGS; do
8582 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8583 aix_use_runtimelinking=yes
8584 break
8585 fi
8586 done
8587 ;;
8588 esac
8589
8590 exp_sym_flag='-bexport'
8591 no_entry_flag='-bnoentry'
8592 fi
8593
8594 # When large executables or shared objects are built, AIX ld can
8595 # have problems creating the table of contents. If linking a library
8596 # or program results in "error TOC overflow" add -mminimal-toc to
8597 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8598 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8599
8600 archive_cmds=''
8601 hardcode_direct=yes
8602 hardcode_direct_absolute=yes
8603 hardcode_libdir_separator=':'
8604 link_all_deplibs=yes
8605 file_list_spec='${wl}-f,'
8606
8607 if test "$GCC" = yes; then
8608 case $host_os in aix4.[012]|aix4.[012].*)
8609 # We only want to do this on AIX 4.2 and lower, the check
8610 # below for broken collect2 doesn't work under 4.3+
8611 collect2name=`${CC} -print-prog-name=collect2`
8612 if test -f "$collect2name" &&
8613 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8614 then
8615 # We have reworked collect2
8616 :
8617 else
8618 # We have old collect2
8619 hardcode_direct=unsupported
8620 # It fails to find uninstalled libraries when the uninstalled
8621 # path is not listed in the libpath. Setting hardcode_minus_L
8622 # to unsupported forces relinking
8623 hardcode_minus_L=yes
8624 hardcode_libdir_flag_spec='-L$libdir'
8625 hardcode_libdir_separator=
8626 fi
8627 ;;
8628 esac
8629 shared_flag='-shared'
8630 if test "$aix_use_runtimelinking" = yes; then
8631 shared_flag="$shared_flag "'${wl}-G'
8632 fi
8633 else
8634 # not using gcc
8635 if test "$host_cpu" = ia64; then
8636 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8637 # chokes on -Wl,-G. The following line is correct:
8638 shared_flag='-G'
8639 else
8640 if test "$aix_use_runtimelinking" = yes; then
8641 shared_flag='${wl}-G'
8642 else
8643 shared_flag='${wl}-bM:SRE'
8644 fi
8645 fi
8646 fi
8647
8648 export_dynamic_flag_spec='${wl}-bexpall'
8649 # It seems that -bexpall does not export symbols beginning with
8650 # underscore (_), so it is better to generate a list of symbols to export.
8651 always_export_symbols=yes
8652 if test "$aix_use_runtimelinking" = yes; then
8653 # Warning - without using the other runtime loading flags (-brtl),
8654 # -berok will link without error, but may produce a broken library.
8655 allow_undefined_flag='-berok'
8656 # Determine the default libpath from the value encoded in an
8657 # empty executable.
8658 cat >conftest.$ac_ext <<_ACEOF
8659 /* confdefs.h. */
8660 _ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h. */
8664
8665 int
8666 main ()
8667 {
8668
8669 ;
8670 return 0;
8671 }
8672 _ACEOF
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (ac_try="$ac_link"
8675 case "(($ac_try" in
8676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677 *) ac_try_echo=$ac_try;;
8678 esac
8679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8680 $as_echo "$ac_try_echo") >&5
8681 (eval "$ac_link") 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } && {
8688 test -z "$ac_c_werror_flag" ||
8689 test ! -s conftest.err
8690 } && test -s conftest$ac_exeext && {
8691 test "$cross_compiling" = yes ||
8692 $as_test_x conftest$ac_exeext
8693 }; then
8694
8695 lt_aix_libpath_sed='
8696 /Import File Strings/,/^$/ {
8697 /^0/ {
8698 s/^0 *\(.*\)$/\1/
8699 p
8700 }
8701 }'
8702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8703 # Check for a 64-bit object if we didn't find anything.
8704 if test -z "$aix_libpath"; then
8705 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8706 fi
8707 else
8708 $as_echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711
8712 fi
8713
8714 rm -rf conftest.dSYM
8715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8716 conftest$ac_exeext conftest.$ac_ext
8717 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8718
8719 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8720 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8721 else
8722 if test "$host_cpu" = ia64; then
8723 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8724 allow_undefined_flag="-z nodefs"
8725 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"
8726 else
8727 # Determine the default libpath from the value encoded in an
8728 # empty executable.
8729 cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h. */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735
8736 int
8737 main ()
8738 {
8739
8740 ;
8741 return 0;
8742 }
8743 _ACEOF
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (ac_try="$ac_link"
8746 case "(($ac_try" in
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8749 esac
8750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8751 $as_echo "$ac_try_echo") >&5
8752 (eval "$ac_link") 2>conftest.er1
8753 ac_status=$?
8754 grep -v '^ *+' conftest.er1 >conftest.err
8755 rm -f conftest.er1
8756 cat conftest.err >&5
8757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } && {
8759 test -z "$ac_c_werror_flag" ||
8760 test ! -s conftest.err
8761 } && test -s conftest$ac_exeext && {
8762 test "$cross_compiling" = yes ||
8763 $as_test_x conftest$ac_exeext
8764 }; then
8765
8766 lt_aix_libpath_sed='
8767 /Import File Strings/,/^$/ {
8768 /^0/ {
8769 s/^0 *\(.*\)$/\1/
8770 p
8771 }
8772 }'
8773 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8774 # Check for a 64-bit object if we didn't find anything.
8775 if test -z "$aix_libpath"; then
8776 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8777 fi
8778 else
8779 $as_echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8781
8782
8783 fi
8784
8785 rm -rf conftest.dSYM
8786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8787 conftest$ac_exeext conftest.$ac_ext
8788 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8789
8790 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8791 # Warning - without using the other run time loading flags,
8792 # -berok will link without error, but may produce a broken library.
8793 no_undefined_flag=' ${wl}-bernotok'
8794 allow_undefined_flag=' ${wl}-berok'
8795 # Exported symbols can be pulled into shared objects from archives
8796 whole_archive_flag_spec='$convenience'
8797 archive_cmds_need_lc=yes
8798 # This is similar to how AIX traditionally builds its shared libraries.
8799 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'
8800 fi
8801 fi
8802 ;;
8803
8804 amigaos*)
8805 case $host_cpu in
8806 powerpc)
8807 # see comment about AmigaOS4 .so support
8808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8809 archive_expsym_cmds=''
8810 ;;
8811 m68k)
8812 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)'
8813 hardcode_libdir_flag_spec='-L$libdir'
8814 hardcode_minus_L=yes
8815 ;;
8816 esac
8817 ;;
8818
8819 bsdi[45]*)
8820 export_dynamic_flag_spec=-rdynamic
8821 ;;
8822
8823 cygwin* | mingw* | pw32* | cegcc*)
8824 # When not using gcc, we currently assume that we are using
8825 # Microsoft Visual C++.
8826 # hardcode_libdir_flag_spec is actually meaningless, as there is
8827 # no search path for DLLs.
8828 hardcode_libdir_flag_spec=' '
8829 allow_undefined_flag=unsupported
8830 # Tell ltmain to make .lib files, not .a files.
8831 libext=lib
8832 # Tell ltmain to make .dll files, not .so files.
8833 shrext_cmds=".dll"
8834 # FIXME: Setting linknames here is a bad hack.
8835 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8836 # The linker will automatically build a .lib file if we build a DLL.
8837 old_archive_from_new_cmds='true'
8838 # FIXME: Should let the user specify the lib program.
8839 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8840 fix_srcfile_path='`cygpath -w "$srcfile"`'
8841 enable_shared_with_static_runtimes=yes
8842 ;;
8843
8844 darwin* | rhapsody*)
8845
8846
8847 archive_cmds_need_lc=no
8848 hardcode_direct=no
8849 hardcode_automatic=yes
8850 hardcode_shlibpath_var=unsupported
8851 whole_archive_flag_spec=''
8852 link_all_deplibs=yes
8853 allow_undefined_flag="$_lt_dar_allow_undefined"
8854 case $cc_basename in
8855 ifort*) _lt_dar_can_shared=yes ;;
8856 *) _lt_dar_can_shared=$GCC ;;
8857 esac
8858 if test "$_lt_dar_can_shared" = "yes"; then
8859 output_verbose_link_cmd=echo
8860 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8861 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8862 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}"
8863 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}"
8864
8865 else
8866 ld_shlibs=no
8867 fi
8868
8869 ;;
8870
8871 dgux*)
8872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873 hardcode_libdir_flag_spec='-L$libdir'
8874 hardcode_shlibpath_var=no
8875 ;;
8876
8877 freebsd1*)
8878 ld_shlibs=no
8879 ;;
8880
8881 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8882 # support. Future versions do this automatically, but an explicit c++rt0.o
8883 # does not break anything, and helps significantly (at the cost of a little
8884 # extra space).
8885 freebsd2.2*)
8886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8887 hardcode_libdir_flag_spec='-R$libdir'
8888 hardcode_direct=yes
8889 hardcode_shlibpath_var=no
8890 ;;
8891
8892 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8893 freebsd2*)
8894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8895 hardcode_direct=yes
8896 hardcode_minus_L=yes
8897 hardcode_shlibpath_var=no
8898 ;;
8899
8900 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8901 freebsd* | dragonfly*)
8902 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8903 hardcode_libdir_flag_spec='-R$libdir'
8904 hardcode_direct=yes
8905 hardcode_shlibpath_var=no
8906 ;;
8907
8908 hpux9*)
8909 if test "$GCC" = yes; then
8910 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8911 else
8912 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'
8913 fi
8914 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8915 hardcode_libdir_separator=:
8916 hardcode_direct=yes
8917
8918 # hardcode_minus_L: Not really in the search PATH,
8919 # but as the default location of the library.
8920 hardcode_minus_L=yes
8921 export_dynamic_flag_spec='${wl}-E'
8922 ;;
8923
8924 hpux10*)
8925 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8926 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8927 else
8928 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8929 fi
8930 if test "$with_gnu_ld" = no; then
8931 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8932 hardcode_libdir_flag_spec_ld='+b $libdir'
8933 hardcode_libdir_separator=:
8934 hardcode_direct=yes
8935 hardcode_direct_absolute=yes
8936 export_dynamic_flag_spec='${wl}-E'
8937 # hardcode_minus_L: Not really in the search PATH,
8938 # but as the default location of the library.
8939 hardcode_minus_L=yes
8940 fi
8941 ;;
8942
8943 hpux11*)
8944 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8945 case $host_cpu in
8946 hppa*64*)
8947 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8948 ;;
8949 ia64*)
8950 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8951 ;;
8952 *)
8953 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8954 ;;
8955 esac
8956 else
8957 case $host_cpu in
8958 hppa*64*)
8959 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8960 ;;
8961 ia64*)
8962 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8963 ;;
8964 *)
8965 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8966 ;;
8967 esac
8968 fi
8969 if test "$with_gnu_ld" = no; then
8970 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8971 hardcode_libdir_separator=:
8972
8973 case $host_cpu in
8974 hppa*64*|ia64*)
8975 hardcode_direct=no
8976 hardcode_shlibpath_var=no
8977 ;;
8978 *)
8979 hardcode_direct=yes
8980 hardcode_direct_absolute=yes
8981 export_dynamic_flag_spec='${wl}-E'
8982
8983 # hardcode_minus_L: Not really in the search PATH,
8984 # but as the default location of the library.
8985 hardcode_minus_L=yes
8986 ;;
8987 esac
8988 fi
8989 ;;
8990
8991 irix5* | irix6* | nonstopux*)
8992 if test "$GCC" = yes; then
8993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8994 # Try to use the -exported_symbol ld option, if it does not
8995 # work, assume that -exports_file does not work either and
8996 # implicitly export all symbols.
8997 save_LDFLAGS="$LDFLAGS"
8998 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8999 cat >conftest.$ac_ext <<_ACEOF
9000 int foo(void) {}
9001 _ACEOF
9002 rm -f conftest.$ac_objext conftest$ac_exeext
9003 if { (ac_try="$ac_link"
9004 case "(($ac_try" in
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9007 esac
9008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9009 $as_echo "$ac_try_echo") >&5
9010 (eval "$ac_link") 2>conftest.er1
9011 ac_status=$?
9012 grep -v '^ *+' conftest.er1 >conftest.err
9013 rm -f conftest.er1
9014 cat conftest.err >&5
9015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } && {
9017 test -z "$ac_c_werror_flag" ||
9018 test ! -s conftest.err
9019 } && test -s conftest$ac_exeext && {
9020 test "$cross_compiling" = yes ||
9021 $as_test_x conftest$ac_exeext
9022 }; then
9023 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9024
9025 else
9026 $as_echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9028
9029
9030 fi
9031
9032 rm -rf conftest.dSYM
9033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9034 conftest$ac_exeext conftest.$ac_ext
9035 LDFLAGS="$save_LDFLAGS"
9036 else
9037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9039 fi
9040 archive_cmds_need_lc='no'
9041 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9042 hardcode_libdir_separator=:
9043 inherit_rpath=yes
9044 link_all_deplibs=yes
9045 ;;
9046
9047 netbsd*)
9048 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9049 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9050 else
9051 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9052 fi
9053 hardcode_libdir_flag_spec='-R$libdir'
9054 hardcode_direct=yes
9055 hardcode_shlibpath_var=no
9056 ;;
9057
9058 newsos6)
9059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9060 hardcode_direct=yes
9061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9062 hardcode_libdir_separator=:
9063 hardcode_shlibpath_var=no
9064 ;;
9065
9066 *nto* | *qnx*)
9067 ;;
9068
9069 openbsd*)
9070 if test -f /usr/libexec/ld.so; then
9071 hardcode_direct=yes
9072 hardcode_shlibpath_var=no
9073 hardcode_direct_absolute=yes
9074 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9075 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9076 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9077 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9078 export_dynamic_flag_spec='${wl}-E'
9079 else
9080 case $host_os in
9081 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9083 hardcode_libdir_flag_spec='-R$libdir'
9084 ;;
9085 *)
9086 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9088 ;;
9089 esac
9090 fi
9091 else
9092 ld_shlibs=no
9093 fi
9094 ;;
9095
9096 os2*)
9097 hardcode_libdir_flag_spec='-L$libdir'
9098 hardcode_minus_L=yes
9099 allow_undefined_flag=unsupported
9100 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'
9101 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9102 ;;
9103
9104 osf3*)
9105 if test "$GCC" = yes; then
9106 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9107 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9108 else
9109 allow_undefined_flag=' -expect_unresolved \*'
9110 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9111 fi
9112 archive_cmds_need_lc='no'
9113 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9114 hardcode_libdir_separator=:
9115 ;;
9116
9117 osf4* | osf5*) # as osf3* with the addition of -msym flag
9118 if test "$GCC" = yes; then
9119 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9120 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9121 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9122 else
9123 allow_undefined_flag=' -expect_unresolved \*'
9124 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9125 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~
9126 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9127
9128 # Both c and cxx compiler support -rpath directly
9129 hardcode_libdir_flag_spec='-rpath $libdir'
9130 fi
9131 archive_cmds_need_lc='no'
9132 hardcode_libdir_separator=:
9133 ;;
9134
9135 solaris*)
9136 no_undefined_flag=' -z defs'
9137 if test "$GCC" = yes; then
9138 wlarc='${wl}'
9139 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9140 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9141 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9142 else
9143 case `$CC -V 2>&1` in
9144 *"Compilers 5.0"*)
9145 wlarc=''
9146 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9147 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9148 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9149 ;;
9150 *)
9151 wlarc='${wl}'
9152 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9154 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9155 ;;
9156 esac
9157 fi
9158 hardcode_libdir_flag_spec='-R$libdir'
9159 hardcode_shlibpath_var=no
9160 case $host_os in
9161 solaris2.[0-5] | solaris2.[0-5].*) ;;
9162 *)
9163 # The compiler driver will combine and reorder linker options,
9164 # but understands `-z linker_flag'. GCC discards it without `$wl',
9165 # but is careful enough not to reorder.
9166 # Supported since Solaris 2.6 (maybe 2.5.1?)
9167 if test "$GCC" = yes; then
9168 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9169 else
9170 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9171 fi
9172 ;;
9173 esac
9174 link_all_deplibs=yes
9175 ;;
9176
9177 sunos4*)
9178 if test "x$host_vendor" = xsequent; then
9179 # Use $CC to link under sequent, because it throws in some extra .o
9180 # files that make .init and .fini sections work.
9181 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9182 else
9183 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9184 fi
9185 hardcode_libdir_flag_spec='-L$libdir'
9186 hardcode_direct=yes
9187 hardcode_minus_L=yes
9188 hardcode_shlibpath_var=no
9189 ;;
9190
9191 sysv4)
9192 case $host_vendor in
9193 sni)
9194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9195 hardcode_direct=yes # is this really true???
9196 ;;
9197 siemens)
9198 ## LD is ld it makes a PLAMLIB
9199 ## CC just makes a GrossModule.
9200 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9201 reload_cmds='$CC -r -o $output$reload_objs'
9202 hardcode_direct=no
9203 ;;
9204 motorola)
9205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9206 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9207 ;;
9208 esac
9209 runpath_var='LD_RUN_PATH'
9210 hardcode_shlibpath_var=no
9211 ;;
9212
9213 sysv4.3*)
9214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9215 hardcode_shlibpath_var=no
9216 export_dynamic_flag_spec='-Bexport'
9217 ;;
9218
9219 sysv4*MP*)
9220 if test -d /usr/nec; then
9221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9222 hardcode_shlibpath_var=no
9223 runpath_var=LD_RUN_PATH
9224 hardcode_runpath_var=yes
9225 ld_shlibs=yes
9226 fi
9227 ;;
9228
9229 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9230 no_undefined_flag='${wl}-z,text'
9231 archive_cmds_need_lc=no
9232 hardcode_shlibpath_var=no
9233 runpath_var='LD_RUN_PATH'
9234
9235 if test "$GCC" = yes; then
9236 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9237 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9238 else
9239 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9240 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9241 fi
9242 ;;
9243
9244 sysv5* | sco3.2v5* | sco5v6*)
9245 # Note: We can NOT use -z defs as we might desire, because we do not
9246 # link with -lc, and that would cause any symbols used from libc to
9247 # always be unresolved, which means just about no library would
9248 # ever link correctly. If we're not using GNU ld we use -z text
9249 # though, which does catch some bad symbols but isn't as heavy-handed
9250 # as -z defs.
9251 no_undefined_flag='${wl}-z,text'
9252 allow_undefined_flag='${wl}-z,nodefs'
9253 archive_cmds_need_lc=no
9254 hardcode_shlibpath_var=no
9255 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9256 hardcode_libdir_separator=':'
9257 link_all_deplibs=yes
9258 export_dynamic_flag_spec='${wl}-Bexport'
9259 runpath_var='LD_RUN_PATH'
9260
9261 if test "$GCC" = yes; then
9262 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9263 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9264 else
9265 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9266 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9267 fi
9268 ;;
9269
9270 uts4*)
9271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9272 hardcode_libdir_flag_spec='-L$libdir'
9273 hardcode_shlibpath_var=no
9274 ;;
9275
9276 *)
9277 ld_shlibs=no
9278 ;;
9279 esac
9280
9281 if test x$host_vendor = xsni; then
9282 case $host in
9283 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9284 export_dynamic_flag_spec='${wl}-Blargedynsym'
9285 ;;
9286 esac
9287 fi
9288 fi
9289
9290 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9291 $as_echo "$ld_shlibs" >&6; }
9292 test "$ld_shlibs" = no && can_build_shared=no
9293
9294 with_gnu_ld=$with_gnu_ld
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310 #
9311 # Do we need to explicitly link libc?
9312 #
9313 case "x$archive_cmds_need_lc" in
9314 x|xyes)
9315 # Assume -lc should be added
9316 archive_cmds_need_lc=yes
9317
9318 if test "$enable_shared" = yes && test "$GCC" = yes; then
9319 case $archive_cmds in
9320 *'~'*)
9321 # FIXME: we may have to deal with multi-command sequences.
9322 ;;
9323 '$CC '*)
9324 # Test whether the compiler implicitly links with -lc since on some
9325 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9326 # to ld, don't add -lc before -lgcc.
9327 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9328 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9329 $RM conftest*
9330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9331
9332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9333 (eval $ac_compile) 2>&5
9334 ac_status=$?
9335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } 2>conftest.err; then
9337 soname=conftest
9338 lib=conftest
9339 libobjs=conftest.$ac_objext
9340 deplibs=
9341 wl=$lt_prog_compiler_wl
9342 pic_flag=$lt_prog_compiler_pic
9343 compiler_flags=-v
9344 linker_flags=-v
9345 verstring=
9346 output_objdir=.
9347 libname=conftest
9348 lt_save_allow_undefined_flag=$allow_undefined_flag
9349 allow_undefined_flag=
9350 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9351 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9352 ac_status=$?
9353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }
9355 then
9356 archive_cmds_need_lc=no
9357 else
9358 archive_cmds_need_lc=yes
9359 fi
9360 allow_undefined_flag=$lt_save_allow_undefined_flag
9361 else
9362 cat conftest.err 1>&5
9363 fi
9364 $RM conftest*
9365 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9366 $as_echo "$archive_cmds_need_lc" >&6; }
9367 ;;
9368 esac
9369 fi
9370 ;;
9371 esac
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9530 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9531
9532 if test "$GCC" = yes; then
9533 case $host_os in
9534 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9535 *) lt_awk_arg="/^libraries:/" ;;
9536 esac
9537 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9538 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9539 # if the path contains ";" then we assume it to be the separator
9540 # otherwise default to the standard path separator (i.e. ":") - it is
9541 # assumed that no part of a normal pathname contains ";" but that should
9542 # okay in the real world where ";" in dirpaths is itself problematic.
9543 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9544 else
9545 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9546 fi
9547 # Ok, now we have the path, separated by spaces, we can step through it
9548 # and add multilib dir if necessary.
9549 lt_tmp_lt_search_path_spec=
9550 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9551 for lt_sys_path in $lt_search_path_spec; do
9552 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9553 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9554 else
9555 test -d "$lt_sys_path" && \
9556 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9557 fi
9558 done
9559 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9560 BEGIN {RS=" "; FS="/|\n";} {
9561 lt_foo="";
9562 lt_count=0;
9563 for (lt_i = NF; lt_i > 0; lt_i--) {
9564 if ($lt_i != "" && $lt_i != ".") {
9565 if ($lt_i == "..") {
9566 lt_count++;
9567 } else {
9568 if (lt_count == 0) {
9569 lt_foo="/" $lt_i lt_foo;
9570 } else {
9571 lt_count--;
9572 }
9573 }
9574 }
9575 }
9576 if (lt_foo != "") { lt_freq[lt_foo]++; }
9577 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9578 }'`
9579 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9580 else
9581 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9582 fi
9583 library_names_spec=
9584 libname_spec='lib$name'
9585 soname_spec=
9586 shrext_cmds=".so"
9587 postinstall_cmds=
9588 postuninstall_cmds=
9589 finish_cmds=
9590 finish_eval=
9591 shlibpath_var=
9592 shlibpath_overrides_runpath=unknown
9593 version_type=none
9594 dynamic_linker="$host_os ld.so"
9595 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9596 need_lib_prefix=unknown
9597 hardcode_into_libs=no
9598
9599 # when you set need_version to no, make sure it does not cause -set_version
9600 # flags to be left without arguments
9601 need_version=unknown
9602
9603 case $host_os in
9604 aix3*)
9605 version_type=linux
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9607 shlibpath_var=LIBPATH
9608
9609 # AIX 3 has no versioning support, so we append a major version to the name.
9610 soname_spec='${libname}${release}${shared_ext}$major'
9611 ;;
9612
9613 aix[4-9]*)
9614 version_type=linux
9615 need_lib_prefix=no
9616 need_version=no
9617 hardcode_into_libs=yes
9618 if test "$host_cpu" = ia64; then
9619 # AIX 5 supports IA64
9620 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9621 shlibpath_var=LD_LIBRARY_PATH
9622 else
9623 # With GCC up to 2.95.x, collect2 would create an import file
9624 # for dependence libraries. The import file would start with
9625 # the line `#! .'. This would cause the generated library to
9626 # depend on `.', always an invalid library. This was fixed in
9627 # development snapshots of GCC prior to 3.0.
9628 case $host_os in
9629 aix4 | aix4.[01] | aix4.[01].*)
9630 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9631 echo ' yes '
9632 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9633 :
9634 else
9635 can_build_shared=no
9636 fi
9637 ;;
9638 esac
9639 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9640 # soname into executable. Probably we can add versioning support to
9641 # collect2, so additional links can be useful in future.
9642 if test "$aix_use_runtimelinking" = yes; then
9643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9644 # instead of lib<name>.a to let people know that these are not
9645 # typical AIX shared libraries.
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9647 else
9648 # We preserve .a as extension for shared libraries through AIX4.2
9649 # and later when we are not doing run time linking.
9650 library_names_spec='${libname}${release}.a $libname.a'
9651 soname_spec='${libname}${release}${shared_ext}$major'
9652 fi
9653 shlibpath_var=LIBPATH
9654 fi
9655 ;;
9656
9657 amigaos*)
9658 case $host_cpu in
9659 powerpc)
9660 # Since July 2007 AmigaOS4 officially supports .so libraries.
9661 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9663 ;;
9664 m68k)
9665 library_names_spec='$libname.ixlibrary $libname.a'
9666 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9667 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9668 ;;
9669 esac
9670 ;;
9671
9672 beos*)
9673 library_names_spec='${libname}${shared_ext}'
9674 dynamic_linker="$host_os ld.so"
9675 shlibpath_var=LIBRARY_PATH
9676 ;;
9677
9678 bsdi[45]*)
9679 version_type=linux
9680 need_version=no
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9682 soname_spec='${libname}${release}${shared_ext}$major'
9683 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9684 shlibpath_var=LD_LIBRARY_PATH
9685 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9686 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9687 # the default ld.so.conf also contains /usr/contrib/lib and
9688 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9689 # libtool to hard-code these into programs
9690 ;;
9691
9692 cygwin* | mingw* | pw32* | cegcc*)
9693 version_type=windows
9694 shrext_cmds=".dll"
9695 need_version=no
9696 need_lib_prefix=no
9697
9698 case $GCC,$host_os in
9699 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9700 library_names_spec='$libname.dll.a'
9701 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9702 postinstall_cmds='base_file=`basename \${file}`~
9703 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9704 dldir=$destdir/`dirname \$dlpath`~
9705 test -d \$dldir || mkdir -p \$dldir~
9706 $install_prog $dir/$dlname \$dldir/$dlname~
9707 chmod a+x \$dldir/$dlname~
9708 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9709 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9710 fi'
9711 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9712 dlpath=$dir/\$dldll~
9713 $RM \$dlpath'
9714 shlibpath_overrides_runpath=yes
9715
9716 case $host_os in
9717 cygwin*)
9718 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9719 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9720 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9721 ;;
9722 mingw* | cegcc*)
9723 # MinGW DLLs use traditional 'lib' prefix
9724 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9725 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9726 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9727 # It is most probably a Windows format PATH printed by
9728 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9729 # path with ; separators, and with drive letters. We can handle the
9730 # drive letters (cygwin fileutils understands them), so leave them,
9731 # especially as we might pass files found there to a mingw objdump,
9732 # which wouldn't understand a cygwinified path. Ahh.
9733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9734 else
9735 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9736 fi
9737 ;;
9738 pw32*)
9739 # pw32 DLLs use 'pw' prefix rather than 'lib'
9740 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9741 ;;
9742 esac
9743 ;;
9744
9745 *)
9746 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9747 ;;
9748 esac
9749 dynamic_linker='Win32 ld.exe'
9750 # FIXME: first we should search . and the directory the executable is in
9751 shlibpath_var=PATH
9752 ;;
9753
9754 darwin* | rhapsody*)
9755 dynamic_linker="$host_os dyld"
9756 version_type=darwin
9757 need_lib_prefix=no
9758 need_version=no
9759 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9760 soname_spec='${libname}${release}${major}$shared_ext'
9761 shlibpath_overrides_runpath=yes
9762 shlibpath_var=DYLD_LIBRARY_PATH
9763 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9764
9765 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9766 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9767 ;;
9768
9769 dgux*)
9770 version_type=linux
9771 need_lib_prefix=no
9772 need_version=no
9773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9774 soname_spec='${libname}${release}${shared_ext}$major'
9775 shlibpath_var=LD_LIBRARY_PATH
9776 ;;
9777
9778 freebsd1*)
9779 dynamic_linker=no
9780 ;;
9781
9782 freebsd* | dragonfly*)
9783 # DragonFly does not have aout. When/if they implement a new
9784 # versioning mechanism, adjust this.
9785 if test -x /usr/bin/objformat; then
9786 objformat=`/usr/bin/objformat`
9787 else
9788 case $host_os in
9789 freebsd[123]*) objformat=aout ;;
9790 *) objformat=elf ;;
9791 esac
9792 fi
9793 version_type=freebsd-$objformat
9794 case $version_type in
9795 freebsd-elf*)
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9797 need_version=no
9798 need_lib_prefix=no
9799 ;;
9800 freebsd-*)
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9802 need_version=yes
9803 ;;
9804 esac
9805 shlibpath_var=LD_LIBRARY_PATH
9806 case $host_os in
9807 freebsd2*)
9808 shlibpath_overrides_runpath=yes
9809 ;;
9810 freebsd3.[01]* | freebsdelf3.[01]*)
9811 shlibpath_overrides_runpath=yes
9812 hardcode_into_libs=yes
9813 ;;
9814 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9815 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9816 shlibpath_overrides_runpath=no
9817 hardcode_into_libs=yes
9818 ;;
9819 *) # from 4.6 on, and DragonFly
9820 shlibpath_overrides_runpath=yes
9821 hardcode_into_libs=yes
9822 ;;
9823 esac
9824 ;;
9825
9826 gnu*)
9827 version_type=linux
9828 need_lib_prefix=no
9829 need_version=no
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 shlibpath_var=LD_LIBRARY_PATH
9833 hardcode_into_libs=yes
9834 ;;
9835
9836 hpux9* | hpux10* | hpux11*)
9837 # Give a soname corresponding to the major version so that dld.sl refuses to
9838 # link against other versions.
9839 version_type=sunos
9840 need_lib_prefix=no
9841 need_version=no
9842 case $host_cpu in
9843 ia64*)
9844 shrext_cmds='.so'
9845 hardcode_into_libs=yes
9846 dynamic_linker="$host_os dld.so"
9847 shlibpath_var=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9850 soname_spec='${libname}${release}${shared_ext}$major'
9851 if test "X$HPUX_IA64_MODE" = X32; then
9852 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9853 else
9854 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9855 fi
9856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9857 ;;
9858 hppa*64*)
9859 shrext_cmds='.sl'
9860 hardcode_into_libs=yes
9861 dynamic_linker="$host_os dld.sl"
9862 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865 soname_spec='${libname}${release}${shared_ext}$major'
9866 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9868 ;;
9869 *)
9870 shrext_cmds='.sl'
9871 dynamic_linker="$host_os dld.sl"
9872 shlibpath_var=SHLIB_PATH
9873 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9875 soname_spec='${libname}${release}${shared_ext}$major'
9876 ;;
9877 esac
9878 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9879 postinstall_cmds='chmod 555 $lib'
9880 ;;
9881
9882 interix[3-9]*)
9883 version_type=linux
9884 need_lib_prefix=no
9885 need_version=no
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9887 soname_spec='${libname}${release}${shared_ext}$major'
9888 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9889 shlibpath_var=LD_LIBRARY_PATH
9890 shlibpath_overrides_runpath=no
9891 hardcode_into_libs=yes
9892 ;;
9893
9894 irix5* | irix6* | nonstopux*)
9895 case $host_os in
9896 nonstopux*) version_type=nonstopux ;;
9897 *)
9898 if test "$lt_cv_prog_gnu_ld" = yes; then
9899 version_type=linux
9900 else
9901 version_type=irix
9902 fi ;;
9903 esac
9904 need_lib_prefix=no
9905 need_version=no
9906 soname_spec='${libname}${release}${shared_ext}$major'
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9908 case $host_os in
9909 irix5* | nonstopux*)
9910 libsuff= shlibsuff=
9911 ;;
9912 *)
9913 case $LD in # libtool.m4 will add one of these switches to LD
9914 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9915 libsuff= shlibsuff= libmagic=32-bit;;
9916 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9917 libsuff=32 shlibsuff=N32 libmagic=N32;;
9918 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9919 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9920 *) libsuff= shlibsuff= libmagic=never-match;;
9921 esac
9922 ;;
9923 esac
9924 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9925 shlibpath_overrides_runpath=no
9926 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9927 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9928 hardcode_into_libs=yes
9929 ;;
9930
9931 # No shared lib support for Linux oldld, aout, or coff.
9932 linux*oldld* | linux*aout* | linux*coff*)
9933 dynamic_linker=no
9934 ;;
9935
9936 # This must be Linux ELF.
9937 linux* | k*bsd*-gnu)
9938 version_type=linux
9939 need_lib_prefix=no
9940 need_version=no
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9942 soname_spec='${libname}${release}${shared_ext}$major'
9943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9944 shlibpath_var=LD_LIBRARY_PATH
9945 shlibpath_overrides_runpath=no
9946 # Some binutils ld are patched to set DT_RUNPATH
9947 save_LDFLAGS=$LDFLAGS
9948 save_libdir=$libdir
9949 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9950 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9951 cat >conftest.$ac_ext <<_ACEOF
9952 /* confdefs.h. */
9953 _ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9957
9958 int
9959 main ()
9960 {
9961
9962 ;
9963 return 0;
9964 }
9965 _ACEOF
9966 rm -f conftest.$ac_objext conftest$ac_exeext
9967 if { (ac_try="$ac_link"
9968 case "(($ac_try" in
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9971 esac
9972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9973 $as_echo "$ac_try_echo") >&5
9974 (eval "$ac_link") 2>conftest.er1
9975 ac_status=$?
9976 grep -v '^ *+' conftest.er1 >conftest.err
9977 rm -f conftest.er1
9978 cat conftest.err >&5
9979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } && {
9981 test -z "$ac_c_werror_flag" ||
9982 test ! -s conftest.err
9983 } && test -s conftest$ac_exeext && {
9984 test "$cross_compiling" = yes ||
9985 $as_test_x conftest$ac_exeext
9986 }; then
9987 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9988 shlibpath_overrides_runpath=yes
9989 fi
9990
9991 else
9992 $as_echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9994
9995
9996 fi
9997
9998 rm -rf conftest.dSYM
9999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10000 conftest$ac_exeext conftest.$ac_ext
10001 LDFLAGS=$save_LDFLAGS
10002 libdir=$save_libdir
10003
10004 # This implies no fast_install, which is unacceptable.
10005 # Some rework will be needed to allow for fast_install
10006 # before this can be enabled.
10007 hardcode_into_libs=yes
10008
10009 # Add ABI-specific directories to the system library path.
10010 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10011
10012 # Append ld.so.conf contents to the search path
10013 if test -f /etc/ld.so.conf; then
10014 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;/^$/d' | tr '\n' ' '`
10015 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10016 fi
10017
10018 # We used to test for /lib/ld.so.1 and disable shared libraries on
10019 # powerpc, because MkLinux only supported shared libraries with the
10020 # GNU dynamic linker. Since this was broken with cross compilers,
10021 # most powerpc-linux boxes support dynamic linking these days and
10022 # people can always --disable-shared, the test was removed, and we
10023 # assume the GNU/Linux dynamic linker is in use.
10024 dynamic_linker='GNU/Linux ld.so'
10025 ;;
10026
10027 netbsd*)
10028 version_type=sunos
10029 need_lib_prefix=no
10030 need_version=no
10031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10034 dynamic_linker='NetBSD (a.out) ld.so'
10035 else
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 dynamic_linker='NetBSD ld.elf_so'
10039 fi
10040 shlibpath_var=LD_LIBRARY_PATH
10041 shlibpath_overrides_runpath=yes
10042 hardcode_into_libs=yes
10043 ;;
10044
10045 newsos6)
10046 version_type=linux
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 shlibpath_overrides_runpath=yes
10050 ;;
10051
10052 *nto* | *qnx*)
10053 version_type=qnx
10054 need_lib_prefix=no
10055 need_version=no
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 shlibpath_var=LD_LIBRARY_PATH
10059 shlibpath_overrides_runpath=no
10060 hardcode_into_libs=yes
10061 dynamic_linker='ldqnx.so'
10062 ;;
10063
10064 openbsd*)
10065 version_type=sunos
10066 sys_lib_dlsearch_path_spec="/usr/lib"
10067 need_lib_prefix=no
10068 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10069 case $host_os in
10070 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10071 *) need_version=no ;;
10072 esac
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10077 case $host_os in
10078 openbsd2.[89] | openbsd2.[89].*)
10079 shlibpath_overrides_runpath=no
10080 ;;
10081 *)
10082 shlibpath_overrides_runpath=yes
10083 ;;
10084 esac
10085 else
10086 shlibpath_overrides_runpath=yes
10087 fi
10088 ;;
10089
10090 os2*)
10091 libname_spec='$name'
10092 shrext_cmds=".dll"
10093 need_lib_prefix=no
10094 library_names_spec='$libname${shared_ext} $libname.a'
10095 dynamic_linker='OS/2 ld.exe'
10096 shlibpath_var=LIBPATH
10097 ;;
10098
10099 osf3* | osf4* | osf5*)
10100 version_type=osf
10101 need_lib_prefix=no
10102 need_version=no
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105 shlibpath_var=LD_LIBRARY_PATH
10106 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10107 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10108 ;;
10109
10110 rdos*)
10111 dynamic_linker=no
10112 ;;
10113
10114 solaris*)
10115 version_type=linux
10116 need_lib_prefix=no
10117 need_version=no
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 soname_spec='${libname}${release}${shared_ext}$major'
10120 shlibpath_var=LD_LIBRARY_PATH
10121 shlibpath_overrides_runpath=yes
10122 hardcode_into_libs=yes
10123 # ldd complains unless libraries are executable
10124 postinstall_cmds='chmod +x $lib'
10125 ;;
10126
10127 sunos4*)
10128 version_type=sunos
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10130 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10131 shlibpath_var=LD_LIBRARY_PATH
10132 shlibpath_overrides_runpath=yes
10133 if test "$with_gnu_ld" = yes; then
10134 need_lib_prefix=no
10135 fi
10136 need_version=yes
10137 ;;
10138
10139 sysv4 | sysv4.3*)
10140 version_type=linux
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 soname_spec='${libname}${release}${shared_ext}$major'
10143 shlibpath_var=LD_LIBRARY_PATH
10144 case $host_vendor in
10145 sni)
10146 shlibpath_overrides_runpath=no
10147 need_lib_prefix=no
10148 runpath_var=LD_RUN_PATH
10149 ;;
10150 siemens)
10151 need_lib_prefix=no
10152 ;;
10153 motorola)
10154 need_lib_prefix=no
10155 need_version=no
10156 shlibpath_overrides_runpath=no
10157 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10158 ;;
10159 esac
10160 ;;
10161
10162 sysv4*MP*)
10163 if test -d /usr/nec ;then
10164 version_type=linux
10165 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10166 soname_spec='$libname${shared_ext}.$major'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 fi
10169 ;;
10170
10171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10172 version_type=freebsd-elf
10173 need_lib_prefix=no
10174 need_version=no
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10176 soname_spec='${libname}${release}${shared_ext}$major'
10177 shlibpath_var=LD_LIBRARY_PATH
10178 shlibpath_overrides_runpath=yes
10179 hardcode_into_libs=yes
10180 if test "$with_gnu_ld" = yes; then
10181 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10182 else
10183 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10184 case $host_os in
10185 sco3.2v5*)
10186 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10187 ;;
10188 esac
10189 fi
10190 sys_lib_dlsearch_path_spec='/usr/lib'
10191 ;;
10192
10193 tpf*)
10194 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10195 version_type=linux
10196 need_lib_prefix=no
10197 need_version=no
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 shlibpath_overrides_runpath=no
10201 hardcode_into_libs=yes
10202 ;;
10203
10204 uts4*)
10205 version_type=linux
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207 soname_spec='${libname}${release}${shared_ext}$major'
10208 shlibpath_var=LD_LIBRARY_PATH
10209 ;;
10210
10211 *)
10212 dynamic_linker=no
10213 ;;
10214 esac
10215 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10216 $as_echo "$dynamic_linker" >&6; }
10217 test "$dynamic_linker" = no && can_build_shared=no
10218
10219 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10220 if test "$GCC" = yes; then
10221 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10222 fi
10223
10224 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10225 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10226 fi
10227 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10228 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10229 fi
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10318 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10319 hardcode_action=
10320 if test -n "$hardcode_libdir_flag_spec" ||
10321 test -n "$runpath_var" ||
10322 test "X$hardcode_automatic" = "Xyes" ; then
10323
10324 # We can hardcode non-existent directories.
10325 if test "$hardcode_direct" != no &&
10326 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10327 # have to relink, otherwise we might link with an installed library
10328 # when we should be linking with a yet-to-be-installed one
10329 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10330 test "$hardcode_minus_L" != no; then
10331 # Linking always hardcodes the temporary library directory.
10332 hardcode_action=relink
10333 else
10334 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10335 hardcode_action=immediate
10336 fi
10337 else
10338 # We cannot hardcode anything, or else we can only hardcode existing
10339 # directories.
10340 hardcode_action=unsupported
10341 fi
10342 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10343 $as_echo "$hardcode_action" >&6; }
10344
10345 if test "$hardcode_action" = relink ||
10346 test "$inherit_rpath" = yes; then
10347 # Fast installation is not supported
10348 enable_fast_install=no
10349 elif test "$shlibpath_overrides_runpath" = yes ||
10350 test "$enable_shared" = no; then
10351 # Fast installation is not necessary
10352 enable_fast_install=needless
10353 fi
10354
10355
10356
10357
10358
10359
10360 if test "x$enable_dlopen" != xyes; then
10361 enable_dlopen=unknown
10362 enable_dlopen_self=unknown
10363 enable_dlopen_self_static=unknown
10364 else
10365 lt_cv_dlopen=no
10366 lt_cv_dlopen_libs=
10367
10368 case $host_os in
10369 beos*)
10370 lt_cv_dlopen="load_add_on"
10371 lt_cv_dlopen_libs=
10372 lt_cv_dlopen_self=yes
10373 ;;
10374
10375 mingw* | pw32* | cegcc*)
10376 lt_cv_dlopen="LoadLibrary"
10377 lt_cv_dlopen_libs=
10378 ;;
10379
10380 cygwin*)
10381 lt_cv_dlopen="dlopen"
10382 lt_cv_dlopen_libs=
10383 ;;
10384
10385 darwin*)
10386 # if libdl is installed we need to link against it
10387 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10388 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10389 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10390 $as_echo_n "(cached) " >&6
10391 else
10392 ac_check_lib_save_LIBS=$LIBS
10393 LIBS="-ldl $LIBS"
10394 cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h. */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400
10401 /* Override any GCC internal prototype to avoid an error.
10402 Use char because int might match the return type of a GCC
10403 builtin and then its argument prototype would still apply. */
10404 #ifdef __cplusplus
10405 extern "C"
10406 #endif
10407 char dlopen ();
10408 int
10409 main ()
10410 {
10411 return dlopen ();
10412 ;
10413 return 0;
10414 }
10415 _ACEOF
10416 rm -f conftest.$ac_objext conftest$ac_exeext
10417 if { (ac_try="$ac_link"
10418 case "(($ac_try" in
10419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420 *) ac_try_echo=$ac_try;;
10421 esac
10422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10423 $as_echo "$ac_try_echo") >&5
10424 (eval "$ac_link") 2>conftest.er1
10425 ac_status=$?
10426 grep -v '^ *+' conftest.er1 >conftest.err
10427 rm -f conftest.er1
10428 cat conftest.err >&5
10429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } && {
10431 test -z "$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10433 } && test -s conftest$ac_exeext && {
10434 test "$cross_compiling" = yes ||
10435 $as_test_x conftest$ac_exeext
10436 }; then
10437 ac_cv_lib_dl_dlopen=yes
10438 else
10439 $as_echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10441
10442 ac_cv_lib_dl_dlopen=no
10443 fi
10444
10445 rm -rf conftest.dSYM
10446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10447 conftest$ac_exeext conftest.$ac_ext
10448 LIBS=$ac_check_lib_save_LIBS
10449 fi
10450 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10451 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10452 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10454 else
10455
10456 lt_cv_dlopen="dyld"
10457 lt_cv_dlopen_libs=
10458 lt_cv_dlopen_self=yes
10459
10460 fi
10461
10462 ;;
10463
10464 *)
10465 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10466 $as_echo_n "checking for shl_load... " >&6; }
10467 if test "${ac_cv_func_shl_load+set}" = set; then
10468 $as_echo_n "(cached) " >&6
10469 else
10470 cat >conftest.$ac_ext <<_ACEOF
10471 /* confdefs.h. */
10472 _ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10478 #define shl_load innocuous_shl_load
10479
10480 /* System header to define __stub macros and hopefully few prototypes,
10481 which can conflict with char shl_load (); below.
10482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10483 <limits.h> exists even on freestanding compilers. */
10484
10485 #ifdef __STDC__
10486 # include <limits.h>
10487 #else
10488 # include <assert.h>
10489 #endif
10490
10491 #undef shl_load
10492
10493 /* Override any GCC internal prototype to avoid an error.
10494 Use char because int might match the return type of a GCC
10495 builtin and then its argument prototype would still apply. */
10496 #ifdef __cplusplus
10497 extern "C"
10498 #endif
10499 char shl_load ();
10500 /* The GNU C library defines this for functions which it implements
10501 to always fail with ENOSYS. Some functions are actually named
10502 something starting with __ and the normal name is an alias. */
10503 #if defined __stub_shl_load || defined __stub___shl_load
10504 choke me
10505 #endif
10506
10507 int
10508 main ()
10509 {
10510 return shl_load ();
10511 ;
10512 return 0;
10513 }
10514 _ACEOF
10515 rm -f conftest.$ac_objext conftest$ac_exeext
10516 if { (ac_try="$ac_link"
10517 case "(($ac_try" in
10518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519 *) ac_try_echo=$ac_try;;
10520 esac
10521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10522 $as_echo "$ac_try_echo") >&5
10523 (eval "$ac_link") 2>conftest.er1
10524 ac_status=$?
10525 grep -v '^ *+' conftest.er1 >conftest.err
10526 rm -f conftest.er1
10527 cat conftest.err >&5
10528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } && {
10530 test -z "$ac_c_werror_flag" ||
10531 test ! -s conftest.err
10532 } && test -s conftest$ac_exeext && {
10533 test "$cross_compiling" = yes ||
10534 $as_test_x conftest$ac_exeext
10535 }; then
10536 ac_cv_func_shl_load=yes
10537 else
10538 $as_echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10540
10541 ac_cv_func_shl_load=no
10542 fi
10543
10544 rm -rf conftest.dSYM
10545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10546 conftest$ac_exeext conftest.$ac_ext
10547 fi
10548 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10549 $as_echo "$ac_cv_func_shl_load" >&6; }
10550 if test "x$ac_cv_func_shl_load" = x""yes; then
10551 lt_cv_dlopen="shl_load"
10552 else
10553 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10554 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10555 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10556 $as_echo_n "(cached) " >&6
10557 else
10558 ac_check_lib_save_LIBS=$LIBS
10559 LIBS="-ldld $LIBS"
10560 cat >conftest.$ac_ext <<_ACEOF
10561 /* confdefs.h. */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566
10567 /* Override any GCC internal prototype to avoid an error.
10568 Use char because int might match the return type of a GCC
10569 builtin and then its argument prototype would still apply. */
10570 #ifdef __cplusplus
10571 extern "C"
10572 #endif
10573 char shl_load ();
10574 int
10575 main ()
10576 {
10577 return shl_load ();
10578 ;
10579 return 0;
10580 }
10581 _ACEOF
10582 rm -f conftest.$ac_objext conftest$ac_exeext
10583 if { (ac_try="$ac_link"
10584 case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10587 esac
10588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10589 $as_echo "$ac_try_echo") >&5
10590 (eval "$ac_link") 2>conftest.er1
10591 ac_status=$?
10592 grep -v '^ *+' conftest.er1 >conftest.err
10593 rm -f conftest.er1
10594 cat conftest.err >&5
10595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } && {
10597 test -z "$ac_c_werror_flag" ||
10598 test ! -s conftest.err
10599 } && test -s conftest$ac_exeext && {
10600 test "$cross_compiling" = yes ||
10601 $as_test_x conftest$ac_exeext
10602 }; then
10603 ac_cv_lib_dld_shl_load=yes
10604 else
10605 $as_echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10607
10608 ac_cv_lib_dld_shl_load=no
10609 fi
10610
10611 rm -rf conftest.dSYM
10612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10613 conftest$ac_exeext conftest.$ac_ext
10614 LIBS=$ac_check_lib_save_LIBS
10615 fi
10616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10617 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10618 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10619 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10620 else
10621 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10622 $as_echo_n "checking for dlopen... " >&6; }
10623 if test "${ac_cv_func_dlopen+set}" = set; then
10624 $as_echo_n "(cached) " >&6
10625 else
10626 cat >conftest.$ac_ext <<_ACEOF
10627 /* confdefs.h. */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10634 #define dlopen innocuous_dlopen
10635
10636 /* System header to define __stub macros and hopefully few prototypes,
10637 which can conflict with char dlopen (); below.
10638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10639 <limits.h> exists even on freestanding compilers. */
10640
10641 #ifdef __STDC__
10642 # include <limits.h>
10643 #else
10644 # include <assert.h>
10645 #endif
10646
10647 #undef dlopen
10648
10649 /* Override any GCC internal prototype to avoid an error.
10650 Use char because int might match the return type of a GCC
10651 builtin and then its argument prototype would still apply. */
10652 #ifdef __cplusplus
10653 extern "C"
10654 #endif
10655 char dlopen ();
10656 /* The GNU C library defines this for functions which it implements
10657 to always fail with ENOSYS. Some functions are actually named
10658 something starting with __ and the normal name is an alias. */
10659 #if defined __stub_dlopen || defined __stub___dlopen
10660 choke me
10661 #endif
10662
10663 int
10664 main ()
10665 {
10666 return dlopen ();
10667 ;
10668 return 0;
10669 }
10670 _ACEOF
10671 rm -f conftest.$ac_objext conftest$ac_exeext
10672 if { (ac_try="$ac_link"
10673 case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10676 esac
10677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10678 $as_echo "$ac_try_echo") >&5
10679 (eval "$ac_link") 2>conftest.er1
10680 ac_status=$?
10681 grep -v '^ *+' conftest.er1 >conftest.err
10682 rm -f conftest.er1
10683 cat conftest.err >&5
10684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } && {
10686 test -z "$ac_c_werror_flag" ||
10687 test ! -s conftest.err
10688 } && test -s conftest$ac_exeext && {
10689 test "$cross_compiling" = yes ||
10690 $as_test_x conftest$ac_exeext
10691 }; then
10692 ac_cv_func_dlopen=yes
10693 else
10694 $as_echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10696
10697 ac_cv_func_dlopen=no
10698 fi
10699
10700 rm -rf conftest.dSYM
10701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10702 conftest$ac_exeext conftest.$ac_ext
10703 fi
10704 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10705 $as_echo "$ac_cv_func_dlopen" >&6; }
10706 if test "x$ac_cv_func_dlopen" = x""yes; then
10707 lt_cv_dlopen="dlopen"
10708 else
10709 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10710 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10711 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10712 $as_echo_n "(cached) " >&6
10713 else
10714 ac_check_lib_save_LIBS=$LIBS
10715 LIBS="-ldl $LIBS"
10716 cat >conftest.$ac_ext <<_ACEOF
10717 /* confdefs.h. */
10718 _ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h. */
10722
10723 /* Override any GCC internal prototype to avoid an error.
10724 Use char because int might match the return type of a GCC
10725 builtin and then its argument prototype would still apply. */
10726 #ifdef __cplusplus
10727 extern "C"
10728 #endif
10729 char dlopen ();
10730 int
10731 main ()
10732 {
10733 return dlopen ();
10734 ;
10735 return 0;
10736 }
10737 _ACEOF
10738 rm -f conftest.$ac_objext conftest$ac_exeext
10739 if { (ac_try="$ac_link"
10740 case "(($ac_try" in
10741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10742 *) ac_try_echo=$ac_try;;
10743 esac
10744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10745 $as_echo "$ac_try_echo") >&5
10746 (eval "$ac_link") 2>conftest.er1
10747 ac_status=$?
10748 grep -v '^ *+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
10751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } && {
10753 test -z "$ac_c_werror_flag" ||
10754 test ! -s conftest.err
10755 } && test -s conftest$ac_exeext && {
10756 test "$cross_compiling" = yes ||
10757 $as_test_x conftest$ac_exeext
10758 }; then
10759 ac_cv_lib_dl_dlopen=yes
10760 else
10761 $as_echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 ac_cv_lib_dl_dlopen=no
10765 fi
10766
10767 rm -rf conftest.dSYM
10768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10769 conftest$ac_exeext conftest.$ac_ext
10770 LIBS=$ac_check_lib_save_LIBS
10771 fi
10772 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10773 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10774 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10775 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10776 else
10777 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10778 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10779 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10780 $as_echo_n "(cached) " >&6
10781 else
10782 ac_check_lib_save_LIBS=$LIBS
10783 LIBS="-lsvld $LIBS"
10784 cat >conftest.$ac_ext <<_ACEOF
10785 /* confdefs.h. */
10786 _ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h. */
10790
10791 /* Override any GCC internal prototype to avoid an error.
10792 Use char because int might match the return type of a GCC
10793 builtin and then its argument prototype would still apply. */
10794 #ifdef __cplusplus
10795 extern "C"
10796 #endif
10797 char dlopen ();
10798 int
10799 main ()
10800 {
10801 return dlopen ();
10802 ;
10803 return 0;
10804 }
10805 _ACEOF
10806 rm -f conftest.$ac_objext conftest$ac_exeext
10807 if { (ac_try="$ac_link"
10808 case "(($ac_try" in
10809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810 *) ac_try_echo=$ac_try;;
10811 esac
10812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10813 $as_echo "$ac_try_echo") >&5
10814 (eval "$ac_link") 2>conftest.er1
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } && {
10821 test -z "$ac_c_werror_flag" ||
10822 test ! -s conftest.err
10823 } && test -s conftest$ac_exeext && {
10824 test "$cross_compiling" = yes ||
10825 $as_test_x conftest$ac_exeext
10826 }; then
10827 ac_cv_lib_svld_dlopen=yes
10828 else
10829 $as_echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10831
10832 ac_cv_lib_svld_dlopen=no
10833 fi
10834
10835 rm -rf conftest.dSYM
10836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10837 conftest$ac_exeext conftest.$ac_ext
10838 LIBS=$ac_check_lib_save_LIBS
10839 fi
10840 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10841 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10842 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10843 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10844 else
10845 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10846 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10847 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10848 $as_echo_n "(cached) " >&6
10849 else
10850 ac_check_lib_save_LIBS=$LIBS
10851 LIBS="-ldld $LIBS"
10852 cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h. */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 char dld_link ();
10866 int
10867 main ()
10868 {
10869 return dld_link ();
10870 ;
10871 return 0;
10872 }
10873 _ACEOF
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (ac_try="$ac_link"
10876 case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10879 esac
10880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10881 $as_echo "$ac_try_echo") >&5
10882 (eval "$ac_link") 2>conftest.er1
10883 ac_status=$?
10884 grep -v '^ *+' conftest.er1 >conftest.err
10885 rm -f conftest.er1
10886 cat conftest.err >&5
10887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } && {
10889 test -z "$ac_c_werror_flag" ||
10890 test ! -s conftest.err
10891 } && test -s conftest$ac_exeext && {
10892 test "$cross_compiling" = yes ||
10893 $as_test_x conftest$ac_exeext
10894 }; then
10895 ac_cv_lib_dld_dld_link=yes
10896 else
10897 $as_echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10899
10900 ac_cv_lib_dld_dld_link=no
10901 fi
10902
10903 rm -rf conftest.dSYM
10904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10905 conftest$ac_exeext conftest.$ac_ext
10906 LIBS=$ac_check_lib_save_LIBS
10907 fi
10908 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10909 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10910 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10911 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10912 fi
10913
10914
10915 fi
10916
10917
10918 fi
10919
10920
10921 fi
10922
10923
10924 fi
10925
10926
10927 fi
10928
10929 ;;
10930 esac
10931
10932 if test "x$lt_cv_dlopen" != xno; then
10933 enable_dlopen=yes
10934 else
10935 enable_dlopen=no
10936 fi
10937
10938 case $lt_cv_dlopen in
10939 dlopen)
10940 save_CPPFLAGS="$CPPFLAGS"
10941 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10942
10943 save_LDFLAGS="$LDFLAGS"
10944 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10945
10946 save_LIBS="$LIBS"
10947 LIBS="$lt_cv_dlopen_libs $LIBS"
10948
10949 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10950 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10951 if test "${lt_cv_dlopen_self+set}" = set; then
10952 $as_echo_n "(cached) " >&6
10953 else
10954 if test "$cross_compiling" = yes; then :
10955 lt_cv_dlopen_self=cross
10956 else
10957 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10958 lt_status=$lt_dlunknown
10959 cat > conftest.$ac_ext <<_LT_EOF
10960 #line 10960 "configure"
10961 #include "confdefs.h"
10962
10963 #if HAVE_DLFCN_H
10964 #include <dlfcn.h>
10965 #endif
10966
10967 #include <stdio.h>
10968
10969 #ifdef RTLD_GLOBAL
10970 # define LT_DLGLOBAL RTLD_GLOBAL
10971 #else
10972 # ifdef DL_GLOBAL
10973 # define LT_DLGLOBAL DL_GLOBAL
10974 # else
10975 # define LT_DLGLOBAL 0
10976 # endif
10977 #endif
10978
10979 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10980 find out it does not work in some platform. */
10981 #ifndef LT_DLLAZY_OR_NOW
10982 # ifdef RTLD_LAZY
10983 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10984 # else
10985 # ifdef DL_LAZY
10986 # define LT_DLLAZY_OR_NOW DL_LAZY
10987 # else
10988 # ifdef RTLD_NOW
10989 # define LT_DLLAZY_OR_NOW RTLD_NOW
10990 # else
10991 # ifdef DL_NOW
10992 # define LT_DLLAZY_OR_NOW DL_NOW
10993 # else
10994 # define LT_DLLAZY_OR_NOW 0
10995 # endif
10996 # endif
10997 # endif
10998 # endif
10999 #endif
11000
11001 void fnord() { int i=42;}
11002 int main ()
11003 {
11004 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11005 int status = $lt_dlunknown;
11006
11007 if (self)
11008 {
11009 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11010 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11011 /* dlclose (self); */
11012 }
11013 else
11014 puts (dlerror ());
11015
11016 return status;
11017 }
11018 _LT_EOF
11019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11020 (eval $ac_link) 2>&5
11021 ac_status=$?
11022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11024 (./conftest; exit; ) >&5 2>/dev/null
11025 lt_status=$?
11026 case x$lt_status in
11027 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11028 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11029 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11030 esac
11031 else :
11032 # compilation failed
11033 lt_cv_dlopen_self=no
11034 fi
11035 fi
11036 rm -fr conftest*
11037
11038
11039 fi
11040 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11041 $as_echo "$lt_cv_dlopen_self" >&6; }
11042
11043 if test "x$lt_cv_dlopen_self" = xyes; then
11044 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11045 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11046 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11047 if test "${lt_cv_dlopen_self_static+set}" = set; then
11048 $as_echo_n "(cached) " >&6
11049 else
11050 if test "$cross_compiling" = yes; then :
11051 lt_cv_dlopen_self_static=cross
11052 else
11053 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11054 lt_status=$lt_dlunknown
11055 cat > conftest.$ac_ext <<_LT_EOF
11056 #line 11056 "configure"
11057 #include "confdefs.h"
11058
11059 #if HAVE_DLFCN_H
11060 #include <dlfcn.h>
11061 #endif
11062
11063 #include <stdio.h>
11064
11065 #ifdef RTLD_GLOBAL
11066 # define LT_DLGLOBAL RTLD_GLOBAL
11067 #else
11068 # ifdef DL_GLOBAL
11069 # define LT_DLGLOBAL DL_GLOBAL
11070 # else
11071 # define LT_DLGLOBAL 0
11072 # endif
11073 #endif
11074
11075 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11076 find out it does not work in some platform. */
11077 #ifndef LT_DLLAZY_OR_NOW
11078 # ifdef RTLD_LAZY
11079 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11080 # else
11081 # ifdef DL_LAZY
11082 # define LT_DLLAZY_OR_NOW DL_LAZY
11083 # else
11084 # ifdef RTLD_NOW
11085 # define LT_DLLAZY_OR_NOW RTLD_NOW
11086 # else
11087 # ifdef DL_NOW
11088 # define LT_DLLAZY_OR_NOW DL_NOW
11089 # else
11090 # define LT_DLLAZY_OR_NOW 0
11091 # endif
11092 # endif
11093 # endif
11094 # endif
11095 #endif
11096
11097 void fnord() { int i=42;}
11098 int main ()
11099 {
11100 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11101 int status = $lt_dlunknown;
11102
11103 if (self)
11104 {
11105 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11106 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11107 /* dlclose (self); */
11108 }
11109 else
11110 puts (dlerror ());
11111
11112 return status;
11113 }
11114 _LT_EOF
11115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11116 (eval $ac_link) 2>&5
11117 ac_status=$?
11118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11120 (./conftest; exit; ) >&5 2>/dev/null
11121 lt_status=$?
11122 case x$lt_status in
11123 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11124 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11125 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11126 esac
11127 else :
11128 # compilation failed
11129 lt_cv_dlopen_self_static=no
11130 fi
11131 fi
11132 rm -fr conftest*
11133
11134
11135 fi
11136 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11137 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11138 fi
11139
11140 CPPFLAGS="$save_CPPFLAGS"
11141 LDFLAGS="$save_LDFLAGS"
11142 LIBS="$save_LIBS"
11143 ;;
11144 esac
11145
11146 case $lt_cv_dlopen_self in
11147 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11148 *) enable_dlopen_self=unknown ;;
11149 esac
11150
11151 case $lt_cv_dlopen_self_static in
11152 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11153 *) enable_dlopen_self_static=unknown ;;
11154 esac
11155 fi
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173 striplib=
11174 old_striplib=
11175 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11176 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11177 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11178 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11179 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11180 { $as_echo "$as_me:$LINENO: result: yes" >&5
11181 $as_echo "yes" >&6; }
11182 else
11183 # FIXME - insert some real tests, host_os isn't really good enough
11184 case $host_os in
11185 darwin*)
11186 if test -n "$STRIP" ; then
11187 striplib="$STRIP -x"
11188 old_striplib="$STRIP -S"
11189 { $as_echo "$as_me:$LINENO: result: yes" >&5
11190 $as_echo "yes" >&6; }
11191 else
11192 { $as_echo "$as_me:$LINENO: result: no" >&5
11193 $as_echo "no" >&6; }
11194 fi
11195 ;;
11196 *)
11197 { $as_echo "$as_me:$LINENO: result: no" >&5
11198 $as_echo "no" >&6; }
11199 ;;
11200 esac
11201 fi
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214 # Report which library types will actually be built
11215 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11216 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11217 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11218 $as_echo "$can_build_shared" >&6; }
11219
11220 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11221 $as_echo_n "checking whether to build shared libraries... " >&6; }
11222 test "$can_build_shared" = "no" && enable_shared=no
11223
11224 # On AIX, shared libraries and static libraries use the same namespace, and
11225 # are all built from PIC.
11226 case $host_os in
11227 aix3*)
11228 test "$enable_shared" = yes && enable_static=no
11229 if test -n "$RANLIB"; then
11230 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11231 postinstall_cmds='$RANLIB $lib'
11232 fi
11233 ;;
11234
11235 aix[4-9]*)
11236 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11237 test "$enable_shared" = yes && enable_static=no
11238 fi
11239 ;;
11240 esac
11241 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11242 $as_echo "$enable_shared" >&6; }
11243
11244 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11245 $as_echo_n "checking whether to build static libraries... " >&6; }
11246 # Make sure either enable_shared or enable_static is yes.
11247 test "$enable_shared" = yes || enable_static=yes
11248 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11249 $as_echo "$enable_static" >&6; }
11250
11251
11252
11253
11254 fi
11255 ac_ext=c
11256 ac_cpp='$CPP $CPPFLAGS'
11257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11260
11261 CC="$lt_save_CC"
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275 ac_config_commands="$ac_config_commands libtool"
11276
11277
11278
11279
11280 # Only expand once:
11281
11282
11283
11284 for ac_prog in cp
11285 do
11286 # Extract the first word of "$ac_prog", so it can be a program name with args.
11287 set dummy $ac_prog; ac_word=$2
11288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11289 $as_echo_n "checking for $ac_word... " >&6; }
11290 if test "${ac_cv_prog_COPY+set}" = set; then
11291 $as_echo_n "(cached) " >&6
11292 else
11293 if test -n "$COPY"; then
11294 ac_cv_prog_COPY="$COPY" # Let the user override the test.
11295 else
11296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297 for as_dir in $PATH
11298 do
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11303 ac_cv_prog_COPY="$ac_prog"
11304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11305 break 2
11306 fi
11307 done
11308 done
11309 IFS=$as_save_IFS
11310
11311 fi
11312 fi
11313 COPY=$ac_cv_prog_COPY
11314 if test -n "$COPY"; then
11315 { $as_echo "$as_me:$LINENO: result: $COPY" >&5
11316 $as_echo "$COPY" >&6; }
11317 else
11318 { $as_echo "$as_me:$LINENO: result: no" >&5
11319 $as_echo "no" >&6; }
11320 fi
11321
11322
11323 test -n "$COPY" && break
11324 done
11325
11326 for ac_prog in echo
11327 do
11328 # Extract the first word of "$ac_prog", so it can be a program name with args.
11329 set dummy $ac_prog; ac_word=$2
11330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11331 $as_echo_n "checking for $ac_word... " >&6; }
11332 if test "${ac_cv_prog_ECHO+set}" = set; then
11333 $as_echo_n "(cached) " >&6
11334 else
11335 if test -n "$ECHO"; then
11336 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
11337 else
11338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11339 for as_dir in $PATH
11340 do
11341 IFS=$as_save_IFS
11342 test -z "$as_dir" && as_dir=.
11343 for ac_exec_ext in '' $ac_executable_extensions; do
11344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11345 ac_cv_prog_ECHO="$ac_prog"
11346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11347 break 2
11348 fi
11349 done
11350 done
11351 IFS=$as_save_IFS
11352
11353 fi
11354 fi
11355 ECHO=$ac_cv_prog_ECHO
11356 if test -n "$ECHO"; then
11357 { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
11358 $as_echo "$ECHO" >&6; }
11359 else
11360 { $as_echo "$as_me:$LINENO: result: no" >&5
11361 $as_echo "no" >&6; }
11362 fi
11363
11364
11365 test -n "$ECHO" && break
11366 done
11367
11368 for ac_prog in mkdir
11369 do
11370 # Extract the first word of "$ac_prog", so it can be a program name with args.
11371 set dummy $ac_prog; ac_word=$2
11372 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11373 $as_echo_n "checking for $ac_word... " >&6; }
11374 if test "${ac_cv_prog_MKDIR+set}" = set; then
11375 $as_echo_n "(cached) " >&6
11376 else
11377 if test -n "$MKDIR"; then
11378 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
11379 else
11380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381 for as_dir in $PATH
11382 do
11383 IFS=$as_save_IFS
11384 test -z "$as_dir" && as_dir=.
11385 for ac_exec_ext in '' $ac_executable_extensions; do
11386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11387 ac_cv_prog_MKDIR="$ac_prog"
11388 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11389 break 2
11390 fi
11391 done
11392 done
11393 IFS=$as_save_IFS
11394
11395 fi
11396 fi
11397 MKDIR=$ac_cv_prog_MKDIR
11398 if test -n "$MKDIR"; then
11399 { $as_echo "$as_me:$LINENO: result: $MKDIR" >&5
11400 $as_echo "$MKDIR" >&6; }
11401 else
11402 { $as_echo "$as_me:$LINENO: result: no" >&5
11403 $as_echo "no" >&6; }
11404 fi
11405
11406
11407 test -n "$MKDIR" && break
11408 done
11409
11410 for ac_prog in rm
11411 do
11412 # Extract the first word of "$ac_prog", so it can be a program name with args.
11413 set dummy $ac_prog; ac_word=$2
11414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11415 $as_echo_n "checking for $ac_word... " >&6; }
11416 if test "${ac_cv_prog_RM+set}" = set; then
11417 $as_echo_n "(cached) " >&6
11418 else
11419 if test -n "$RM"; then
11420 ac_cv_prog_RM="$RM" # Let the user override the test.
11421 else
11422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $PATH
11424 do
11425 IFS=$as_save_IFS
11426 test -z "$as_dir" && as_dir=.
11427 for ac_exec_ext in '' $ac_executable_extensions; do
11428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11429 ac_cv_prog_RM="$ac_prog"
11430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11431 break 2
11432 fi
11433 done
11434 done
11435 IFS=$as_save_IFS
11436
11437 fi
11438 fi
11439 RM=$ac_cv_prog_RM
11440 if test -n "$RM"; then
11441 { $as_echo "$as_me:$LINENO: result: $RM" >&5
11442 $as_echo "$RM" >&6; }
11443 else
11444 { $as_echo "$as_me:$LINENO: result: no" >&5
11445 $as_echo "no" >&6; }
11446 fi
11447
11448
11449 test -n "$RM" && break
11450 done
11451
11452
11453
11454
11455 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11456 $as_echo_n "checking whether NLS is requested... " >&6; }
11457 # Check whether --enable-nls was given.
11458 if test "${enable_nls+set}" = set; then
11459 enableval=$enable_nls; USE_NLS=$enableval
11460 else
11461 USE_NLS=yes
11462 fi
11463
11464 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
11465 $as_echo "$USE_NLS" >&6; }
11466
11467
11468
11469
11470
11471
11472 # Prepare PATH_SEPARATOR.
11473 # The user is always right.
11474 if test "${PATH_SEPARATOR+set}" != set; then
11475 echo "#! /bin/sh" >conf$$.sh
11476 echo "exit 0" >>conf$$.sh
11477 chmod +x conf$$.sh
11478 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11479 PATH_SEPARATOR=';'
11480 else
11481 PATH_SEPARATOR=:
11482 fi
11483 rm -f conf$$.sh
11484 fi
11485
11486 # Find out how to test for executable files. Don't use a zero-byte file,
11487 # as systems may use methods other than mode bits to determine executability.
11488 cat >conf$$.file <<_ASEOF
11489 #! /bin/sh
11490 exit 0
11491 _ASEOF
11492 chmod +x conf$$.file
11493 if test -x conf$$.file >/dev/null 2>&1; then
11494 ac_executable_p="test -x"
11495 else
11496 ac_executable_p="test -f"
11497 fi
11498 rm -f conf$$.file
11499
11500 # Extract the first word of "msgfmt", so it can be a program name with args.
11501 set dummy msgfmt; ac_word=$2
11502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11503 $as_echo_n "checking for $ac_word... " >&6; }
11504 if test "${ac_cv_path_MSGFMT+set}" = set; then
11505 $as_echo_n "(cached) " >&6
11506 else
11507 case "$MSGFMT" in
11508 [\\/]* | ?:[\\/]*)
11509 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11510 ;;
11511 *)
11512 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11513 for ac_dir in $PATH; do
11514 IFS="$ac_save_IFS"
11515 test -z "$ac_dir" && ac_dir=.
11516 for ac_exec_ext in '' $ac_executable_extensions; do
11517 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11518 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11519 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11520 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11521 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11522 break 2
11523 fi
11524 fi
11525 done
11526 done
11527 IFS="$ac_save_IFS"
11528 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11529 ;;
11530 esac
11531 fi
11532 MSGFMT="$ac_cv_path_MSGFMT"
11533 if test "$MSGFMT" != ":"; then
11534 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
11535 $as_echo "$MSGFMT" >&6; }
11536 else
11537 { $as_echo "$as_me:$LINENO: result: no" >&5
11538 $as_echo "no" >&6; }
11539 fi
11540
11541 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11542 set dummy gmsgfmt; ac_word=$2
11543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11544 $as_echo_n "checking for $ac_word... " >&6; }
11545 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11546 $as_echo_n "(cached) " >&6
11547 else
11548 case $GMSGFMT in
11549 [\\/]* | ?:[\\/]*)
11550 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11551 ;;
11552 *)
11553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554 for as_dir in $PATH
11555 do
11556 IFS=$as_save_IFS
11557 test -z "$as_dir" && as_dir=.
11558 for ac_exec_ext in '' $ac_executable_extensions; do
11559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11560 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11561 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11562 break 2
11563 fi
11564 done
11565 done
11566 IFS=$as_save_IFS
11567
11568 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11569 ;;
11570 esac
11571 fi
11572 GMSGFMT=$ac_cv_path_GMSGFMT
11573 if test -n "$GMSGFMT"; then
11574 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11575 $as_echo "$GMSGFMT" >&6; }
11576 else
11577 { $as_echo "$as_me:$LINENO: result: no" >&5
11578 $as_echo "no" >&6; }
11579 fi
11580
11581
11582
11583 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11584 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11585 *) MSGFMT_015=$MSGFMT ;;
11586 esac
11587
11588 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11589 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11590 *) GMSGFMT_015=$GMSGFMT ;;
11591 esac
11592
11593
11594
11595 # Prepare PATH_SEPARATOR.
11596 # The user is always right.
11597 if test "${PATH_SEPARATOR+set}" != set; then
11598 echo "#! /bin/sh" >conf$$.sh
11599 echo "exit 0" >>conf$$.sh
11600 chmod +x conf$$.sh
11601 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11602 PATH_SEPARATOR=';'
11603 else
11604 PATH_SEPARATOR=:
11605 fi
11606 rm -f conf$$.sh
11607 fi
11608
11609 # Find out how to test for executable files. Don't use a zero-byte file,
11610 # as systems may use methods other than mode bits to determine executability.
11611 cat >conf$$.file <<_ASEOF
11612 #! /bin/sh
11613 exit 0
11614 _ASEOF
11615 chmod +x conf$$.file
11616 if test -x conf$$.file >/dev/null 2>&1; then
11617 ac_executable_p="test -x"
11618 else
11619 ac_executable_p="test -f"
11620 fi
11621 rm -f conf$$.file
11622
11623 # Extract the first word of "xgettext", so it can be a program name with args.
11624 set dummy xgettext; ac_word=$2
11625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11626 $as_echo_n "checking for $ac_word... " >&6; }
11627 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11628 $as_echo_n "(cached) " >&6
11629 else
11630 case "$XGETTEXT" in
11631 [\\/]* | ?:[\\/]*)
11632 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11633 ;;
11634 *)
11635 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11636 for ac_dir in $PATH; do
11637 IFS="$ac_save_IFS"
11638 test -z "$ac_dir" && ac_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11641 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11642 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11643 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11644 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11645 break 2
11646 fi
11647 fi
11648 done
11649 done
11650 IFS="$ac_save_IFS"
11651 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11652 ;;
11653 esac
11654 fi
11655 XGETTEXT="$ac_cv_path_XGETTEXT"
11656 if test "$XGETTEXT" != ":"; then
11657 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11658 $as_echo "$XGETTEXT" >&6; }
11659 else
11660 { $as_echo "$as_me:$LINENO: result: no" >&5
11661 $as_echo "no" >&6; }
11662 fi
11663
11664 rm -f messages.po
11665
11666 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11667 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11668 *) XGETTEXT_015=$XGETTEXT ;;
11669 esac
11670
11671
11672
11673 # Prepare PATH_SEPARATOR.
11674 # The user is always right.
11675 if test "${PATH_SEPARATOR+set}" != set; then
11676 echo "#! /bin/sh" >conf$$.sh
11677 echo "exit 0" >>conf$$.sh
11678 chmod +x conf$$.sh
11679 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11680 PATH_SEPARATOR=';'
11681 else
11682 PATH_SEPARATOR=:
11683 fi
11684 rm -f conf$$.sh
11685 fi
11686
11687 # Find out how to test for executable files. Don't use a zero-byte file,
11688 # as systems may use methods other than mode bits to determine executability.
11689 cat >conf$$.file <<_ASEOF
11690 #! /bin/sh
11691 exit 0
11692 _ASEOF
11693 chmod +x conf$$.file
11694 if test -x conf$$.file >/dev/null 2>&1; then
11695 ac_executable_p="test -x"
11696 else
11697 ac_executable_p="test -f"
11698 fi
11699 rm -f conf$$.file
11700
11701 # Extract the first word of "msgmerge", so it can be a program name with args.
11702 set dummy msgmerge; ac_word=$2
11703 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11704 $as_echo_n "checking for $ac_word... " >&6; }
11705 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11706 $as_echo_n "(cached) " >&6
11707 else
11708 case "$MSGMERGE" in
11709 [\\/]* | ?:[\\/]*)
11710 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11711 ;;
11712 *)
11713 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11714 for ac_dir in $PATH; do
11715 IFS="$ac_save_IFS"
11716 test -z "$ac_dir" && ac_dir=.
11717 for ac_exec_ext in '' $ac_executable_extensions; do
11718 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11719 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11720 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
11721 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11722 break 2
11723 fi
11724 fi
11725 done
11726 done
11727 IFS="$ac_save_IFS"
11728 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11729 ;;
11730 esac
11731 fi
11732 MSGMERGE="$ac_cv_path_MSGMERGE"
11733 if test "$MSGMERGE" != ":"; then
11734 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11735 $as_echo "$MSGMERGE" >&6; }
11736 else
11737 { $as_echo "$as_me:$LINENO: result: no" >&5
11738 $as_echo "no" >&6; }
11739 fi
11740
11741
11742 test -n "$localedir" || localedir='${datadir}/locale'
11743
11744
11745 ac_config_commands="$ac_config_commands po-directories"
11746
11747
11748
11749 if test "X$prefix" = "XNONE"; then
11750 acl_final_prefix="$ac_default_prefix"
11751 else
11752 acl_final_prefix="$prefix"
11753 fi
11754 if test "X$exec_prefix" = "XNONE"; then
11755 acl_final_exec_prefix='${prefix}'
11756 else
11757 acl_final_exec_prefix="$exec_prefix"
11758 fi
11759 acl_save_prefix="$prefix"
11760 prefix="$acl_final_prefix"
11761 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11762 prefix="$acl_save_prefix"
11763
11764
11765 # Check whether --with-gnu-ld was given.
11766 if test "${with_gnu_ld+set}" = set; then
11767 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11768 else
11769 with_gnu_ld=no
11770 fi
11771
11772 # Prepare PATH_SEPARATOR.
11773 # The user is always right.
11774 if test "${PATH_SEPARATOR+set}" != set; then
11775 echo "#! /bin/sh" >conf$$.sh
11776 echo "exit 0" >>conf$$.sh
11777 chmod +x conf$$.sh
11778 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11779 PATH_SEPARATOR=';'
11780 else
11781 PATH_SEPARATOR=:
11782 fi
11783 rm -f conf$$.sh
11784 fi
11785 ac_prog=ld
11786 if test "$GCC" = yes; then
11787 # Check if gcc -print-prog-name=ld gives a path.
11788 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11789 $as_echo_n "checking for ld used by GCC... " >&6; }
11790 case $host in
11791 *-*-mingw*)
11792 # gcc leaves a trailing carriage return which upsets mingw
11793 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11794 *)
11795 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11796 esac
11797 case $ac_prog in
11798 # Accept absolute paths.
11799 [\\/]* | [A-Za-z]:[\\/]*)
11800 re_direlt='/[^/][^/]*/\.\./'
11801 # Canonicalize the path of ld
11802 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11803 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11804 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11805 done
11806 test -z "$LD" && LD="$ac_prog"
11807 ;;
11808 "")
11809 # If it fails, then pretend we aren't using GCC.
11810 ac_prog=ld
11811 ;;
11812 *)
11813 # If it is relative, then search for the first ld in PATH.
11814 with_gnu_ld=unknown
11815 ;;
11816 esac
11817 elif test "$with_gnu_ld" = yes; then
11818 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11819 $as_echo_n "checking for GNU ld... " >&6; }
11820 else
11821 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11822 $as_echo_n "checking for non-GNU ld... " >&6; }
11823 fi
11824 if test "${acl_cv_path_LD+set}" = set; then
11825 $as_echo_n "(cached) " >&6
11826 else
11827 if test -z "$LD"; then
11828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11829 for ac_dir in $PATH; do
11830 test -z "$ac_dir" && ac_dir=.
11831 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11832 acl_cv_path_LD="$ac_dir/$ac_prog"
11833 # Check to see if the program is GNU ld. I'd rather use --version,
11834 # but apparently some GNU ld's only accept -v.
11835 # Break only if it was the GNU/non-GNU ld that we prefer.
11836 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11837 *GNU* | *'with BFD'*)
11838 test "$with_gnu_ld" != no && break ;;
11839 *)
11840 test "$with_gnu_ld" != yes && break ;;
11841 esac
11842 fi
11843 done
11844 IFS="$ac_save_ifs"
11845 else
11846 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11847 fi
11848 fi
11849
11850 LD="$acl_cv_path_LD"
11851 if test -n "$LD"; then
11852 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11853 $as_echo "$LD" >&6; }
11854 else
11855 { $as_echo "$as_me:$LINENO: result: no" >&5
11856 $as_echo "no" >&6; }
11857 fi
11858 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11859 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11860 { (exit 1); exit 1; }; }
11861 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11862 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11863 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11864 $as_echo_n "(cached) " >&6
11865 else
11866 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11867 case `$LD -v 2>&1 </dev/null` in
11868 *GNU* | *'with BFD'*)
11869 acl_cv_prog_gnu_ld=yes ;;
11870 *)
11871 acl_cv_prog_gnu_ld=no ;;
11872 esac
11873 fi
11874 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11875 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11876 with_gnu_ld=$acl_cv_prog_gnu_ld
11877
11878
11879
11880
11881 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11882 $as_echo_n "checking for shared library run path origin... " >&6; }
11883 if test "${acl_cv_rpath+set}" = set; then
11884 $as_echo_n "(cached) " >&6
11885 else
11886
11887 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11888 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11889 . ./conftest.sh
11890 rm -f ./conftest.sh
11891 acl_cv_rpath=done
11892
11893 fi
11894 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11895 $as_echo "$acl_cv_rpath" >&6; }
11896 wl="$acl_cv_wl"
11897 libext="$acl_cv_libext"
11898 shlibext="$acl_cv_shlibext"
11899 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11900 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11901 hardcode_direct="$acl_cv_hardcode_direct"
11902 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11903 # Check whether --enable-rpath was given.
11904 if test "${enable_rpath+set}" = set; then
11905 enableval=$enable_rpath; :
11906 else
11907 enable_rpath=yes
11908 fi
11909
11910
11911
11912 acl_libdirstem=lib
11913 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11914 if test -n "$searchpath"; then
11915 acl_save_IFS="${IFS= }"; IFS=":"
11916 for searchdir in $searchpath; do
11917 if test -d "$searchdir"; then
11918 case "$searchdir" in
11919 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11920 *) searchdir=`cd "$searchdir" && pwd`
11921 case "$searchdir" in
11922 */lib64 ) acl_libdirstem=lib64 ;;
11923 esac ;;
11924 esac
11925 fi
11926 done
11927 IFS="$acl_save_IFS"
11928 fi
11929
11930
11931
11932
11933
11934
11935
11936
11937 use_additional=yes
11938
11939 acl_save_prefix="$prefix"
11940 prefix="$acl_final_prefix"
11941 acl_save_exec_prefix="$exec_prefix"
11942 exec_prefix="$acl_final_exec_prefix"
11943
11944 eval additional_includedir=\"$includedir\"
11945 eval additional_libdir=\"$libdir\"
11946
11947 exec_prefix="$acl_save_exec_prefix"
11948 prefix="$acl_save_prefix"
11949
11950
11951 # Check whether --with-libiconv-prefix was given.
11952 if test "${with_libiconv_prefix+set}" = set; then
11953 withval=$with_libiconv_prefix;
11954 if test "X$withval" = "Xno"; then
11955 use_additional=no
11956 else
11957 if test "X$withval" = "X"; then
11958
11959 acl_save_prefix="$prefix"
11960 prefix="$acl_final_prefix"
11961 acl_save_exec_prefix="$exec_prefix"
11962 exec_prefix="$acl_final_exec_prefix"
11963
11964 eval additional_includedir=\"$includedir\"
11965 eval additional_libdir=\"$libdir\"
11966
11967 exec_prefix="$acl_save_exec_prefix"
11968 prefix="$acl_save_prefix"
11969
11970 else
11971 additional_includedir="$withval/include"
11972 additional_libdir="$withval/$acl_libdirstem"
11973 fi
11974 fi
11975
11976 fi
11977
11978 LIBICONV=
11979 LTLIBICONV=
11980 INCICONV=
11981 rpathdirs=
11982 ltrpathdirs=
11983 names_already_handled=
11984 names_next_round='iconv '
11985 while test -n "$names_next_round"; do
11986 names_this_round="$names_next_round"
11987 names_next_round=
11988 for name in $names_this_round; do
11989 already_handled=
11990 for n in $names_already_handled; do
11991 if test "$n" = "$name"; then
11992 already_handled=yes
11993 break
11994 fi
11995 done
11996 if test -z "$already_handled"; then
11997 names_already_handled="$names_already_handled $name"
11998 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11999 eval value=\"\$HAVE_LIB$uppername\"
12000 if test -n "$value"; then
12001 if test "$value" = yes; then
12002 eval value=\"\$LIB$uppername\"
12003 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12004 eval value=\"\$LTLIB$uppername\"
12005 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12006 else
12007 :
12008 fi
12009 else
12010 found_dir=
12011 found_la=
12012 found_so=
12013 found_a=
12014 if test $use_additional = yes; then
12015 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12016 found_dir="$additional_libdir"
12017 found_so="$additional_libdir/lib$name.$shlibext"
12018 if test -f "$additional_libdir/lib$name.la"; then
12019 found_la="$additional_libdir/lib$name.la"
12020 fi
12021 else
12022 if test -f "$additional_libdir/lib$name.$libext"; then
12023 found_dir="$additional_libdir"
12024 found_a="$additional_libdir/lib$name.$libext"
12025 if test -f "$additional_libdir/lib$name.la"; then
12026 found_la="$additional_libdir/lib$name.la"
12027 fi
12028 fi
12029 fi
12030 fi
12031 if test "X$found_dir" = "X"; then
12032 for x in $LDFLAGS $LTLIBICONV; do
12033
12034 acl_save_prefix="$prefix"
12035 prefix="$acl_final_prefix"
12036 acl_save_exec_prefix="$exec_prefix"
12037 exec_prefix="$acl_final_exec_prefix"
12038 eval x=\"$x\"
12039 exec_prefix="$acl_save_exec_prefix"
12040 prefix="$acl_save_prefix"
12041
12042 case "$x" in
12043 -L*)
12044 dir=`echo "X$x" | sed -e 's/^X-L//'`
12045 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12046 found_dir="$dir"
12047 found_so="$dir/lib$name.$shlibext"
12048 if test -f "$dir/lib$name.la"; then
12049 found_la="$dir/lib$name.la"
12050 fi
12051 else
12052 if test -f "$dir/lib$name.$libext"; then
12053 found_dir="$dir"
12054 found_a="$dir/lib$name.$libext"
12055 if test -f "$dir/lib$name.la"; then
12056 found_la="$dir/lib$name.la"
12057 fi
12058 fi
12059 fi
12060 ;;
12061 esac
12062 if test "X$found_dir" != "X"; then
12063 break
12064 fi
12065 done
12066 fi
12067 if test "X$found_dir" != "X"; then
12068 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12069 if test "X$found_so" != "X"; then
12070 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12071 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12072 else
12073 haveit=
12074 for x in $ltrpathdirs; do
12075 if test "X$x" = "X$found_dir"; then
12076 haveit=yes
12077 break
12078 fi
12079 done
12080 if test -z "$haveit"; then
12081 ltrpathdirs="$ltrpathdirs $found_dir"
12082 fi
12083 if test "$hardcode_direct" = yes; then
12084 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12085 else
12086 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12087 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12088 haveit=
12089 for x in $rpathdirs; do
12090 if test "X$x" = "X$found_dir"; then
12091 haveit=yes
12092 break
12093 fi
12094 done
12095 if test -z "$haveit"; then
12096 rpathdirs="$rpathdirs $found_dir"
12097 fi
12098 else
12099 haveit=
12100 for x in $LDFLAGS $LIBICONV; do
12101
12102 acl_save_prefix="$prefix"
12103 prefix="$acl_final_prefix"
12104 acl_save_exec_prefix="$exec_prefix"
12105 exec_prefix="$acl_final_exec_prefix"
12106 eval x=\"$x\"
12107 exec_prefix="$acl_save_exec_prefix"
12108 prefix="$acl_save_prefix"
12109
12110 if test "X$x" = "X-L$found_dir"; then
12111 haveit=yes
12112 break
12113 fi
12114 done
12115 if test -z "$haveit"; then
12116 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12117 fi
12118 if test "$hardcode_minus_L" != no; then
12119 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12120 else
12121 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12122 fi
12123 fi
12124 fi
12125 fi
12126 else
12127 if test "X$found_a" != "X"; then
12128 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12129 else
12130 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12131 fi
12132 fi
12133 additional_includedir=
12134 case "$found_dir" in
12135 */$acl_libdirstem | */$acl_libdirstem/)
12136 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12137 additional_includedir="$basedir/include"
12138 ;;
12139 esac
12140 if test "X$additional_includedir" != "X"; then
12141 if test "X$additional_includedir" != "X/usr/include"; then
12142 haveit=
12143 if test "X$additional_includedir" = "X/usr/local/include"; then
12144 if test -n "$GCC"; then
12145 case $host_os in
12146 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12147 esac
12148 fi
12149 fi
12150 if test -z "$haveit"; then
12151 for x in $CPPFLAGS $INCICONV; do
12152
12153 acl_save_prefix="$prefix"
12154 prefix="$acl_final_prefix"
12155 acl_save_exec_prefix="$exec_prefix"
12156 exec_prefix="$acl_final_exec_prefix"
12157 eval x=\"$x\"
12158 exec_prefix="$acl_save_exec_prefix"
12159 prefix="$acl_save_prefix"
12160
12161 if test "X$x" = "X-I$additional_includedir"; then
12162 haveit=yes
12163 break
12164 fi
12165 done
12166 if test -z "$haveit"; then
12167 if test -d "$additional_includedir"; then
12168 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12169 fi
12170 fi
12171 fi
12172 fi
12173 fi
12174 if test -n "$found_la"; then
12175 save_libdir="$libdir"
12176 case "$found_la" in
12177 */* | *\\*) . "$found_la" ;;
12178 *) . "./$found_la" ;;
12179 esac
12180 libdir="$save_libdir"
12181 for dep in $dependency_libs; do
12182 case "$dep" in
12183 -L*)
12184 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12185 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12186 haveit=
12187 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12188 if test -n "$GCC"; then
12189 case $host_os in
12190 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12191 esac
12192 fi
12193 fi
12194 if test -z "$haveit"; then
12195 haveit=
12196 for x in $LDFLAGS $LIBICONV; do
12197
12198 acl_save_prefix="$prefix"
12199 prefix="$acl_final_prefix"
12200 acl_save_exec_prefix="$exec_prefix"
12201 exec_prefix="$acl_final_exec_prefix"
12202 eval x=\"$x\"
12203 exec_prefix="$acl_save_exec_prefix"
12204 prefix="$acl_save_prefix"
12205
12206 if test "X$x" = "X-L$additional_libdir"; then
12207 haveit=yes
12208 break
12209 fi
12210 done
12211 if test -z "$haveit"; then
12212 if test -d "$additional_libdir"; then
12213 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12214 fi
12215 fi
12216 haveit=
12217 for x in $LDFLAGS $LTLIBICONV; do
12218
12219 acl_save_prefix="$prefix"
12220 prefix="$acl_final_prefix"
12221 acl_save_exec_prefix="$exec_prefix"
12222 exec_prefix="$acl_final_exec_prefix"
12223 eval x=\"$x\"
12224 exec_prefix="$acl_save_exec_prefix"
12225 prefix="$acl_save_prefix"
12226
12227 if test "X$x" = "X-L$additional_libdir"; then
12228 haveit=yes
12229 break
12230 fi
12231 done
12232 if test -z "$haveit"; then
12233 if test -d "$additional_libdir"; then
12234 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12235 fi
12236 fi
12237 fi
12238 fi
12239 ;;
12240 -R*)
12241 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12242 if test "$enable_rpath" != no; then
12243 haveit=
12244 for x in $rpathdirs; do
12245 if test "X$x" = "X$dir"; then
12246 haveit=yes
12247 break
12248 fi
12249 done
12250 if test -z "$haveit"; then
12251 rpathdirs="$rpathdirs $dir"
12252 fi
12253 haveit=
12254 for x in $ltrpathdirs; do
12255 if test "X$x" = "X$dir"; then
12256 haveit=yes
12257 break
12258 fi
12259 done
12260 if test -z "$haveit"; then
12261 ltrpathdirs="$ltrpathdirs $dir"
12262 fi
12263 fi
12264 ;;
12265 -l*)
12266 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12267 ;;
12268 *.la)
12269 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12270 ;;
12271 *)
12272 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12273 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12274 ;;
12275 esac
12276 done
12277 fi
12278 else
12279 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12280 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12281 fi
12282 fi
12283 fi
12284 done
12285 done
12286 if test "X$rpathdirs" != "X"; then
12287 if test -n "$hardcode_libdir_separator"; then
12288 alldirs=
12289 for found_dir in $rpathdirs; do
12290 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12291 done
12292 acl_save_libdir="$libdir"
12293 libdir="$alldirs"
12294 eval flag=\"$hardcode_libdir_flag_spec\"
12295 libdir="$acl_save_libdir"
12296 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12297 else
12298 for found_dir in $rpathdirs; do
12299 acl_save_libdir="$libdir"
12300 libdir="$found_dir"
12301 eval flag=\"$hardcode_libdir_flag_spec\"
12302 libdir="$acl_save_libdir"
12303 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12304 done
12305 fi
12306 fi
12307 if test "X$ltrpathdirs" != "X"; then
12308 for found_dir in $ltrpathdirs; do
12309 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12310 done
12311 fi
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12331 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12332 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12333 $as_echo_n "(cached) " >&6
12334 else
12335 gt_save_LIBS="$LIBS"
12336 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12337 cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h. */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343 #include <CoreFoundation/CFPreferences.h>
12344 int
12345 main ()
12346 {
12347 CFPreferencesCopyAppValue(NULL, NULL)
12348 ;
12349 return 0;
12350 }
12351 _ACEOF
12352 rm -f conftest.$ac_objext conftest$ac_exeext
12353 if { (ac_try="$ac_link"
12354 case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12357 esac
12358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12359 $as_echo "$ac_try_echo") >&5
12360 (eval "$ac_link") 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } && {
12367 test -z "$ac_c_werror_flag" ||
12368 test ! -s conftest.err
12369 } && test -s conftest$ac_exeext && {
12370 test "$cross_compiling" = yes ||
12371 $as_test_x conftest$ac_exeext
12372 }; then
12373 gt_cv_func_CFPreferencesCopyAppValue=yes
12374 else
12375 $as_echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12377
12378 gt_cv_func_CFPreferencesCopyAppValue=no
12379 fi
12380
12381 rm -rf conftest.dSYM
12382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12383 conftest$ac_exeext conftest.$ac_ext
12384 LIBS="$gt_save_LIBS"
12385 fi
12386 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12387 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12388 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12389
12390 cat >>confdefs.h <<\_ACEOF
12391 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12392 _ACEOF
12393
12394 fi
12395 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12396 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12397 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12398 $as_echo_n "(cached) " >&6
12399 else
12400 gt_save_LIBS="$LIBS"
12401 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12402 cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h. */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 #include <CoreFoundation/CFLocale.h>
12409 int
12410 main ()
12411 {
12412 CFLocaleCopyCurrent();
12413 ;
12414 return 0;
12415 }
12416 _ACEOF
12417 rm -f conftest.$ac_objext conftest$ac_exeext
12418 if { (ac_try="$ac_link"
12419 case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12422 esac
12423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12424 $as_echo "$ac_try_echo") >&5
12425 (eval "$ac_link") 2>conftest.er1
12426 ac_status=$?
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -f conftest.er1
12429 cat conftest.err >&5
12430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } && {
12432 test -z "$ac_c_werror_flag" ||
12433 test ! -s conftest.err
12434 } && test -s conftest$ac_exeext && {
12435 test "$cross_compiling" = yes ||
12436 $as_test_x conftest$ac_exeext
12437 }; then
12438 gt_cv_func_CFLocaleCopyCurrent=yes
12439 else
12440 $as_echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 gt_cv_func_CFLocaleCopyCurrent=no
12444 fi
12445
12446 rm -rf conftest.dSYM
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448 conftest$ac_exeext conftest.$ac_ext
12449 LIBS="$gt_save_LIBS"
12450 fi
12451 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12452 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12453 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12454
12455 cat >>confdefs.h <<\_ACEOF
12456 #define HAVE_CFLOCALECOPYCURRENT 1
12457 _ACEOF
12458
12459 fi
12460 INTL_MACOSX_LIBS=
12461 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12462 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12463 fi
12464
12465
12466
12467
12468
12469
12470 LIBINTL=
12471 LTLIBINTL=
12472 POSUB=
12473
12474 if test "$USE_NLS" = "yes"; then
12475 gt_use_preinstalled_gnugettext=no
12476
12477
12478
12479
12480
12481
12482 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12483 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12484 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12485 $as_echo_n "(cached) " >&6
12486 else
12487 cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h. */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12493 #include <libintl.h>
12494 extern int _nl_msg_cat_cntr;
12495 extern int *_nl_domain_bindings;
12496 int
12497 main ()
12498 {
12499 bindtextdomain ("", "");
12500 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12501 ;
12502 return 0;
12503 }
12504 _ACEOF
12505 rm -f conftest.$ac_objext conftest$ac_exeext
12506 if { (ac_try="$ac_link"
12507 case "(($ac_try" in
12508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12509 *) ac_try_echo=$ac_try;;
12510 esac
12511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12512 $as_echo "$ac_try_echo") >&5
12513 (eval "$ac_link") 2>conftest.er1
12514 ac_status=$?
12515 grep -v '^ *+' conftest.er1 >conftest.err
12516 rm -f conftest.er1
12517 cat conftest.err >&5
12518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } && {
12520 test -z "$ac_c_werror_flag" ||
12521 test ! -s conftest.err
12522 } && test -s conftest$ac_exeext && {
12523 test "$cross_compiling" = yes ||
12524 $as_test_x conftest$ac_exeext
12525 }; then
12526 gt_cv_func_gnugettext1_libc=yes
12527 else
12528 $as_echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12530
12531 gt_cv_func_gnugettext1_libc=no
12532 fi
12533
12534 rm -rf conftest.dSYM
12535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12536 conftest$ac_exeext conftest.$ac_ext
12537 fi
12538 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12539 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
12540
12541 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12542
12543
12544
12545
12546
12547 am_save_CPPFLAGS="$CPPFLAGS"
12548
12549 for element in $INCICONV; do
12550 haveit=
12551 for x in $CPPFLAGS; do
12552
12553 acl_save_prefix="$prefix"
12554 prefix="$acl_final_prefix"
12555 acl_save_exec_prefix="$exec_prefix"
12556 exec_prefix="$acl_final_exec_prefix"
12557 eval x=\"$x\"
12558 exec_prefix="$acl_save_exec_prefix"
12559 prefix="$acl_save_prefix"
12560
12561 if test "X$x" = "X$element"; then
12562 haveit=yes
12563 break
12564 fi
12565 done
12566 if test -z "$haveit"; then
12567 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12568 fi
12569 done
12570
12571
12572 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
12573 $as_echo_n "checking for iconv... " >&6; }
12574 if test "${am_cv_func_iconv+set}" = set; then
12575 $as_echo_n "(cached) " >&6
12576 else
12577
12578 am_cv_func_iconv="no, consider installing GNU libiconv"
12579 am_cv_lib_iconv=no
12580 cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h. */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 #include <stdlib.h>
12587 #include <iconv.h>
12588 int
12589 main ()
12590 {
12591 iconv_t cd = iconv_open("","");
12592 iconv(cd,NULL,NULL,NULL,NULL);
12593 iconv_close(cd);
12594 ;
12595 return 0;
12596 }
12597 _ACEOF
12598 rm -f conftest.$ac_objext conftest$ac_exeext
12599 if { (ac_try="$ac_link"
12600 case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603 esac
12604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12605 $as_echo "$ac_try_echo") >&5
12606 (eval "$ac_link") 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && {
12613 test -z "$ac_c_werror_flag" ||
12614 test ! -s conftest.err
12615 } && test -s conftest$ac_exeext && {
12616 test "$cross_compiling" = yes ||
12617 $as_test_x conftest$ac_exeext
12618 }; then
12619 am_cv_func_iconv=yes
12620 else
12621 $as_echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12623
12624
12625 fi
12626
12627 rm -rf conftest.dSYM
12628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12629 conftest$ac_exeext conftest.$ac_ext
12630 if test "$am_cv_func_iconv" != yes; then
12631 am_save_LIBS="$LIBS"
12632 LIBS="$LIBS $LIBICONV"
12633 cat >conftest.$ac_ext <<_ACEOF
12634 /* confdefs.h. */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 #include <stdlib.h>
12640 #include <iconv.h>
12641 int
12642 main ()
12643 {
12644 iconv_t cd = iconv_open("","");
12645 iconv(cd,NULL,NULL,NULL,NULL);
12646 iconv_close(cd);
12647 ;
12648 return 0;
12649 }
12650 _ACEOF
12651 rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (ac_try="$ac_link"
12653 case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12656 esac
12657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12658 $as_echo "$ac_try_echo") >&5
12659 (eval "$ac_link") 2>conftest.er1
12660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } && {
12666 test -z "$ac_c_werror_flag" ||
12667 test ! -s conftest.err
12668 } && test -s conftest$ac_exeext && {
12669 test "$cross_compiling" = yes ||
12670 $as_test_x conftest$ac_exeext
12671 }; then
12672 am_cv_lib_iconv=yes
12673 am_cv_func_iconv=yes
12674 else
12675 $as_echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12677
12678
12679 fi
12680
12681 rm -rf conftest.dSYM
12682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12683 conftest$ac_exeext conftest.$ac_ext
12684 LIBS="$am_save_LIBS"
12685 fi
12686
12687 fi
12688 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12689 $as_echo "$am_cv_func_iconv" >&6; }
12690 if test "$am_cv_func_iconv" = yes; then
12691
12692 cat >>confdefs.h <<\_ACEOF
12693 #define HAVE_ICONV 1
12694 _ACEOF
12695
12696 fi
12697 if test "$am_cv_lib_iconv" = yes; then
12698 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12699 $as_echo_n "checking how to link with libiconv... " >&6; }
12700 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
12701 $as_echo "$LIBICONV" >&6; }
12702 else
12703 CPPFLAGS="$am_save_CPPFLAGS"
12704 LIBICONV=
12705 LTLIBICONV=
12706 fi
12707
12708
12709
12710
12711
12712
12713
12714 use_additional=yes
12715
12716 acl_save_prefix="$prefix"
12717 prefix="$acl_final_prefix"
12718 acl_save_exec_prefix="$exec_prefix"
12719 exec_prefix="$acl_final_exec_prefix"
12720
12721 eval additional_includedir=\"$includedir\"
12722 eval additional_libdir=\"$libdir\"
12723
12724 exec_prefix="$acl_save_exec_prefix"
12725 prefix="$acl_save_prefix"
12726
12727
12728 # Check whether --with-libintl-prefix was given.
12729 if test "${with_libintl_prefix+set}" = set; then
12730 withval=$with_libintl_prefix;
12731 if test "X$withval" = "Xno"; then
12732 use_additional=no
12733 else
12734 if test "X$withval" = "X"; then
12735
12736 acl_save_prefix="$prefix"
12737 prefix="$acl_final_prefix"
12738 acl_save_exec_prefix="$exec_prefix"
12739 exec_prefix="$acl_final_exec_prefix"
12740
12741 eval additional_includedir=\"$includedir\"
12742 eval additional_libdir=\"$libdir\"
12743
12744 exec_prefix="$acl_save_exec_prefix"
12745 prefix="$acl_save_prefix"
12746
12747 else
12748 additional_includedir="$withval/include"
12749 additional_libdir="$withval/$acl_libdirstem"
12750 fi
12751 fi
12752
12753 fi
12754
12755 LIBINTL=
12756 LTLIBINTL=
12757 INCINTL=
12758 rpathdirs=
12759 ltrpathdirs=
12760 names_already_handled=
12761 names_next_round='intl '
12762 while test -n "$names_next_round"; do
12763 names_this_round="$names_next_round"
12764 names_next_round=
12765 for name in $names_this_round; do
12766 already_handled=
12767 for n in $names_already_handled; do
12768 if test "$n" = "$name"; then
12769 already_handled=yes
12770 break
12771 fi
12772 done
12773 if test -z "$already_handled"; then
12774 names_already_handled="$names_already_handled $name"
12775 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12776 eval value=\"\$HAVE_LIB$uppername\"
12777 if test -n "$value"; then
12778 if test "$value" = yes; then
12779 eval value=\"\$LIB$uppername\"
12780 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12781 eval value=\"\$LTLIB$uppername\"
12782 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12783 else
12784 :
12785 fi
12786 else
12787 found_dir=
12788 found_la=
12789 found_so=
12790 found_a=
12791 if test $use_additional = yes; then
12792 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12793 found_dir="$additional_libdir"
12794 found_so="$additional_libdir/lib$name.$shlibext"
12795 if test -f "$additional_libdir/lib$name.la"; then
12796 found_la="$additional_libdir/lib$name.la"
12797 fi
12798 else
12799 if test -f "$additional_libdir/lib$name.$libext"; then
12800 found_dir="$additional_libdir"
12801 found_a="$additional_libdir/lib$name.$libext"
12802 if test -f "$additional_libdir/lib$name.la"; then
12803 found_la="$additional_libdir/lib$name.la"
12804 fi
12805 fi
12806 fi
12807 fi
12808 if test "X$found_dir" = "X"; then
12809 for x in $LDFLAGS $LTLIBINTL; do
12810
12811 acl_save_prefix="$prefix"
12812 prefix="$acl_final_prefix"
12813 acl_save_exec_prefix="$exec_prefix"
12814 exec_prefix="$acl_final_exec_prefix"
12815 eval x=\"$x\"
12816 exec_prefix="$acl_save_exec_prefix"
12817 prefix="$acl_save_prefix"
12818
12819 case "$x" in
12820 -L*)
12821 dir=`echo "X$x" | sed -e 's/^X-L//'`
12822 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12823 found_dir="$dir"
12824 found_so="$dir/lib$name.$shlibext"
12825 if test -f "$dir/lib$name.la"; then
12826 found_la="$dir/lib$name.la"
12827 fi
12828 else
12829 if test -f "$dir/lib$name.$libext"; then
12830 found_dir="$dir"
12831 found_a="$dir/lib$name.$libext"
12832 if test -f "$dir/lib$name.la"; then
12833 found_la="$dir/lib$name.la"
12834 fi
12835 fi
12836 fi
12837 ;;
12838 esac
12839 if test "X$found_dir" != "X"; then
12840 break
12841 fi
12842 done
12843 fi
12844 if test "X$found_dir" != "X"; then
12845 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12846 if test "X$found_so" != "X"; then
12847 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12848 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12849 else
12850 haveit=
12851 for x in $ltrpathdirs; do
12852 if test "X$x" = "X$found_dir"; then
12853 haveit=yes
12854 break
12855 fi
12856 done
12857 if test -z "$haveit"; then
12858 ltrpathdirs="$ltrpathdirs $found_dir"
12859 fi
12860 if test "$hardcode_direct" = yes; then
12861 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12862 else
12863 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12864 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12865 haveit=
12866 for x in $rpathdirs; do
12867 if test "X$x" = "X$found_dir"; then
12868 haveit=yes
12869 break
12870 fi
12871 done
12872 if test -z "$haveit"; then
12873 rpathdirs="$rpathdirs $found_dir"
12874 fi
12875 else
12876 haveit=
12877 for x in $LDFLAGS $LIBINTL; do
12878
12879 acl_save_prefix="$prefix"
12880 prefix="$acl_final_prefix"
12881 acl_save_exec_prefix="$exec_prefix"
12882 exec_prefix="$acl_final_exec_prefix"
12883 eval x=\"$x\"
12884 exec_prefix="$acl_save_exec_prefix"
12885 prefix="$acl_save_prefix"
12886
12887 if test "X$x" = "X-L$found_dir"; then
12888 haveit=yes
12889 break
12890 fi
12891 done
12892 if test -z "$haveit"; then
12893 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12894 fi
12895 if test "$hardcode_minus_L" != no; then
12896 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12897 else
12898 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12899 fi
12900 fi
12901 fi
12902 fi
12903 else
12904 if test "X$found_a" != "X"; then
12905 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12906 else
12907 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12908 fi
12909 fi
12910 additional_includedir=
12911 case "$found_dir" in
12912 */$acl_libdirstem | */$acl_libdirstem/)
12913 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12914 additional_includedir="$basedir/include"
12915 ;;
12916 esac
12917 if test "X$additional_includedir" != "X"; then
12918 if test "X$additional_includedir" != "X/usr/include"; then
12919 haveit=
12920 if test "X$additional_includedir" = "X/usr/local/include"; then
12921 if test -n "$GCC"; then
12922 case $host_os in
12923 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12924 esac
12925 fi
12926 fi
12927 if test -z "$haveit"; then
12928 for x in $CPPFLAGS $INCINTL; do
12929
12930 acl_save_prefix="$prefix"
12931 prefix="$acl_final_prefix"
12932 acl_save_exec_prefix="$exec_prefix"
12933 exec_prefix="$acl_final_exec_prefix"
12934 eval x=\"$x\"
12935 exec_prefix="$acl_save_exec_prefix"
12936 prefix="$acl_save_prefix"
12937
12938 if test "X$x" = "X-I$additional_includedir"; then
12939 haveit=yes
12940 break
12941 fi
12942 done
12943 if test -z "$haveit"; then
12944 if test -d "$additional_includedir"; then
12945 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12946 fi
12947 fi
12948 fi
12949 fi
12950 fi
12951 if test -n "$found_la"; then
12952 save_libdir="$libdir"
12953 case "$found_la" in
12954 */* | *\\*) . "$found_la" ;;
12955 *) . "./$found_la" ;;
12956 esac
12957 libdir="$save_libdir"
12958 for dep in $dependency_libs; do
12959 case "$dep" in
12960 -L*)
12961 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12962 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12963 haveit=
12964 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12965 if test -n "$GCC"; then
12966 case $host_os in
12967 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12968 esac
12969 fi
12970 fi
12971 if test -z "$haveit"; then
12972 haveit=
12973 for x in $LDFLAGS $LIBINTL; do
12974
12975 acl_save_prefix="$prefix"
12976 prefix="$acl_final_prefix"
12977 acl_save_exec_prefix="$exec_prefix"
12978 exec_prefix="$acl_final_exec_prefix"
12979 eval x=\"$x\"
12980 exec_prefix="$acl_save_exec_prefix"
12981 prefix="$acl_save_prefix"
12982
12983 if test "X$x" = "X-L$additional_libdir"; then
12984 haveit=yes
12985 break
12986 fi
12987 done
12988 if test -z "$haveit"; then
12989 if test -d "$additional_libdir"; then
12990 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12991 fi
12992 fi
12993 haveit=
12994 for x in $LDFLAGS $LTLIBINTL; do
12995
12996 acl_save_prefix="$prefix"
12997 prefix="$acl_final_prefix"
12998 acl_save_exec_prefix="$exec_prefix"
12999 exec_prefix="$acl_final_exec_prefix"
13000 eval x=\"$x\"
13001 exec_prefix="$acl_save_exec_prefix"
13002 prefix="$acl_save_prefix"
13003
13004 if test "X$x" = "X-L$additional_libdir"; then
13005 haveit=yes
13006 break
13007 fi
13008 done
13009 if test -z "$haveit"; then
13010 if test -d "$additional_libdir"; then
13011 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13012 fi
13013 fi
13014 fi
13015 fi
13016 ;;
13017 -R*)
13018 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13019 if test "$enable_rpath" != no; then
13020 haveit=
13021 for x in $rpathdirs; do
13022 if test "X$x" = "X$dir"; then
13023 haveit=yes
13024 break
13025 fi
13026 done
13027 if test -z "$haveit"; then
13028 rpathdirs="$rpathdirs $dir"
13029 fi
13030 haveit=
13031 for x in $ltrpathdirs; do
13032 if test "X$x" = "X$dir"; then
13033 haveit=yes
13034 break
13035 fi
13036 done
13037 if test -z "$haveit"; then
13038 ltrpathdirs="$ltrpathdirs $dir"
13039 fi
13040 fi
13041 ;;
13042 -l*)
13043 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13044 ;;
13045 *.la)
13046 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13047 ;;
13048 *)
13049 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13050 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13051 ;;
13052 esac
13053 done
13054 fi
13055 else
13056 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13057 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13058 fi
13059 fi
13060 fi
13061 done
13062 done
13063 if test "X$rpathdirs" != "X"; then
13064 if test -n "$hardcode_libdir_separator"; then
13065 alldirs=
13066 for found_dir in $rpathdirs; do
13067 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13068 done
13069 acl_save_libdir="$libdir"
13070 libdir="$alldirs"
13071 eval flag=\"$hardcode_libdir_flag_spec\"
13072 libdir="$acl_save_libdir"
13073 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13074 else
13075 for found_dir in $rpathdirs; do
13076 acl_save_libdir="$libdir"
13077 libdir="$found_dir"
13078 eval flag=\"$hardcode_libdir_flag_spec\"
13079 libdir="$acl_save_libdir"
13080 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13081 done
13082 fi
13083 fi
13084 if test "X$ltrpathdirs" != "X"; then
13085 for found_dir in $ltrpathdirs; do
13086 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13087 done
13088 fi
13089
13090 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13091 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13092 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13093 $as_echo_n "(cached) " >&6
13094 else
13095 gt_save_CPPFLAGS="$CPPFLAGS"
13096 CPPFLAGS="$CPPFLAGS $INCINTL"
13097 gt_save_LIBS="$LIBS"
13098 LIBS="$LIBS $LIBINTL"
13099 cat >conftest.$ac_ext <<_ACEOF
13100 /* confdefs.h. */
13101 _ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13105 #include <libintl.h>
13106 extern int _nl_msg_cat_cntr;
13107 extern
13108 #ifdef __cplusplus
13109 "C"
13110 #endif
13111 const char *_nl_expand_alias (const char *);
13112 int
13113 main ()
13114 {
13115 bindtextdomain ("", "");
13116 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13117 ;
13118 return 0;
13119 }
13120 _ACEOF
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (ac_try="$ac_link"
13123 case "(($ac_try" in
13124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125 *) ac_try_echo=$ac_try;;
13126 esac
13127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13128 $as_echo "$ac_try_echo") >&5
13129 (eval "$ac_link") 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } && {
13136 test -z "$ac_c_werror_flag" ||
13137 test ! -s conftest.err
13138 } && test -s conftest$ac_exeext && {
13139 test "$cross_compiling" = yes ||
13140 $as_test_x conftest$ac_exeext
13141 }; then
13142 gt_cv_func_gnugettext1_libintl=yes
13143 else
13144 $as_echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13146
13147 gt_cv_func_gnugettext1_libintl=no
13148 fi
13149
13150 rm -rf conftest.dSYM
13151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13152 conftest$ac_exeext conftest.$ac_ext
13153 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13154 LIBS="$LIBS $LIBICONV"
13155 cat >conftest.$ac_ext <<_ACEOF
13156 /* confdefs.h. */
13157 _ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13161 #include <libintl.h>
13162 extern int _nl_msg_cat_cntr;
13163 extern
13164 #ifdef __cplusplus
13165 "C"
13166 #endif
13167 const char *_nl_expand_alias (const char *);
13168 int
13169 main ()
13170 {
13171 bindtextdomain ("", "");
13172 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13173 ;
13174 return 0;
13175 }
13176 _ACEOF
13177 rm -f conftest.$ac_objext conftest$ac_exeext
13178 if { (ac_try="$ac_link"
13179 case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13182 esac
13183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13184 $as_echo "$ac_try_echo") >&5
13185 (eval "$ac_link") 2>conftest.er1
13186 ac_status=$?
13187 grep -v '^ *+' conftest.er1 >conftest.err
13188 rm -f conftest.er1
13189 cat conftest.err >&5
13190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); } && {
13192 test -z "$ac_c_werror_flag" ||
13193 test ! -s conftest.err
13194 } && test -s conftest$ac_exeext && {
13195 test "$cross_compiling" = yes ||
13196 $as_test_x conftest$ac_exeext
13197 }; then
13198 LIBINTL="$LIBINTL $LIBICONV"
13199 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13200 gt_cv_func_gnugettext1_libintl=yes
13201
13202 else
13203 $as_echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13205
13206
13207 fi
13208
13209 rm -rf conftest.dSYM
13210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13211 conftest$ac_exeext conftest.$ac_ext
13212 fi
13213 CPPFLAGS="$gt_save_CPPFLAGS"
13214 LIBS="$gt_save_LIBS"
13215 fi
13216 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13217 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
13218 fi
13219
13220 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13221 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13222 && test "$PACKAGE" != gettext-runtime \
13223 && test "$PACKAGE" != gettext-tools; }; then
13224 gt_use_preinstalled_gnugettext=yes
13225 else
13226 LIBINTL=
13227 LTLIBINTL=
13228 INCINTL=
13229 fi
13230
13231
13232
13233 if test -n "$INTL_MACOSX_LIBS"; then
13234 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13235 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13236 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13237 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13238 fi
13239 fi
13240
13241 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13242 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13243
13244 cat >>confdefs.h <<\_ACEOF
13245 #define ENABLE_NLS 1
13246 _ACEOF
13247
13248 else
13249 USE_NLS=no
13250 fi
13251 fi
13252
13253 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
13254 $as_echo_n "checking whether to use NLS... " >&6; }
13255 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
13256 $as_echo "$USE_NLS" >&6; }
13257 if test "$USE_NLS" = "yes"; then
13258 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13259 $as_echo_n "checking where the gettext function comes from... " >&6; }
13260 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13261 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13262 gt_source="external libintl"
13263 else
13264 gt_source="libc"
13265 fi
13266 else
13267 gt_source="included intl directory"
13268 fi
13269 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
13270 $as_echo "$gt_source" >&6; }
13271 fi
13272
13273 if test "$USE_NLS" = "yes"; then
13274
13275 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13276 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13277 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
13278 $as_echo_n "checking how to link with libintl... " >&6; }
13279 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
13280 $as_echo "$LIBINTL" >&6; }
13281
13282 for element in $INCINTL; do
13283 haveit=
13284 for x in $CPPFLAGS; do
13285
13286 acl_save_prefix="$prefix"
13287 prefix="$acl_final_prefix"
13288 acl_save_exec_prefix="$exec_prefix"
13289 exec_prefix="$acl_final_exec_prefix"
13290 eval x=\"$x\"
13291 exec_prefix="$acl_save_exec_prefix"
13292 prefix="$acl_save_prefix"
13293
13294 if test "X$x" = "X$element"; then
13295 haveit=yes
13296 break
13297 fi
13298 done
13299 if test -z "$haveit"; then
13300 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13301 fi
13302 done
13303
13304 fi
13305
13306
13307 cat >>confdefs.h <<\_ACEOF
13308 #define HAVE_GETTEXT 1
13309 _ACEOF
13310
13311
13312 cat >>confdefs.h <<\_ACEOF
13313 #define HAVE_DCGETTEXT 1
13314 _ACEOF
13315
13316 fi
13317
13318 POSUB=po
13319 fi
13320
13321
13322
13323 INTLLIBS="$LIBINTL"
13324
13325
13326
13327
13328
13329
13330
13331 # Arch specific stuff
13332 case $target in
13333 *ppc64* | *powerpc64* | *x86_64* | *s390x*)
13334 CFLAGS="$CFLAGS -m64"
13335 ;;
13336 *)
13337 ;;
13338 esac
13339
13340
13341
13342 # Non-standard OpenSSL location
13343 { $as_echo "$as_me:$LINENO: checking Non-standard OpenSSL location" >&5
13344 $as_echo_n "checking Non-standard OpenSSL location... " >&6; }
13345
13346 # Check whether --with-openssl was given.
13347 if test "${with_openssl+set}" = set; then
13348 withval=$with_openssl; OPENSSL_INCLUDE_DIR="$withval/include"
13349 OPENSSL_LIB_DIR="$withval/lib"
13350 if test ! -d $OPENSSL_INCLUDE_DIR -o ! -d $OPENSSL_LIB_DIR; then
13351 { { $as_echo "$as_me:$LINENO: error: $OPENSSL_INCLUDE_DIR or $OPENSSL_LIB_DIR doen't exist!" >&5
13352 $as_echo "$as_me: error: $OPENSSL_INCLUDE_DIR or $OPENSSL_LIB_DIR doen't exist!" >&2;}
13353 { (exit 1); exit 1; }; }
13354 else
13355 { $as_echo "$as_me:$LINENO: result: yes" >&5
13356 $as_echo "yes" >&6; }
13357 CFLAGS="$CFLAGS -L$OPENSSL_LIB_DIR -I$OPENSSL_INCLUDE_DIR"
13358
13359 fi
13360 else
13361 { $as_echo "$as_me:$LINENO: result: no" >&5
13362 $as_echo "no" >&6; }
13363
13364 fi
13365
13366
13367 { $as_echo "$as_me:$LINENO: checking for Tspi_Context_Create in -ltspi" >&5
13368 $as_echo_n "checking for Tspi_Context_Create in -ltspi... " >&6; }
13369 if test "${ac_cv_lib_tspi_Tspi_Context_Create+set}" = set; then
13370 $as_echo_n "(cached) " >&6
13371 else
13372 ac_check_lib_save_LIBS=$LIBS
13373 LIBS="-ltspi $LIBS"
13374 cat >conftest.$ac_ext <<_ACEOF
13375 /* confdefs.h. */
13376 _ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h. */
13380
13381 /* Override any GCC internal prototype to avoid an error.
13382 Use char because int might match the return type of a GCC
13383 builtin and then its argument prototype would still apply. */
13384 #ifdef __cplusplus
13385 extern "C"
13386 #endif
13387 char Tspi_Context_Create ();
13388 int
13389 main ()
13390 {
13391 return Tspi_Context_Create ();
13392 ;
13393 return 0;
13394 }
13395 _ACEOF
13396 rm -f conftest.$ac_objext conftest$ac_exeext
13397 if { (ac_try="$ac_link"
13398 case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13401 esac
13402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13403 $as_echo "$ac_try_echo") >&5
13404 (eval "$ac_link") 2>conftest.er1
13405 ac_status=$?
13406 grep -v '^ *+' conftest.er1 >conftest.err
13407 rm -f conftest.er1
13408 cat conftest.err >&5
13409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } && {
13411 test -z "$ac_c_werror_flag" ||
13412 test ! -s conftest.err
13413 } && test -s conftest$ac_exeext && {
13414 test "$cross_compiling" = yes ||
13415 $as_test_x conftest$ac_exeext
13416 }; then
13417 ac_cv_lib_tspi_Tspi_Context_Create=yes
13418 else
13419 $as_echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13421
13422 ac_cv_lib_tspi_Tspi_Context_Create=no
13423 fi
13424
13425 rm -rf conftest.dSYM
13426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13427 conftest$ac_exeext conftest.$ac_ext
13428 LIBS=$ac_check_lib_save_LIBS
13429 fi
13430 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tspi_Tspi_Context_Create" >&5
13431 $as_echo "$ac_cv_lib_tspi_Tspi_Context_Create" >&6; }
13432 if test "x$ac_cv_lib_tspi_Tspi_Context_Create" = x""yes; then
13433 TSS_LIB="1"
13434 else
13435 { { $as_echo "$as_me:$LINENO: error: tss lib not found: libtspi.so" >&5
13436 $as_echo "$as_me: error: tss lib not found: libtspi.so" >&2;}
13437 { (exit 1); exit 1; }; }
13438 fi
13439
13440 { $as_echo "$as_me:$LINENO: checking for Tspi_TPM_SetOperatorAuth in -ltspi" >&5
13441 $as_echo_n "checking for Tspi_TPM_SetOperatorAuth in -ltspi... " >&6; }
13442 if test "${ac_cv_lib_tspi_Tspi_TPM_SetOperatorAuth+set}" = set; then
13443 $as_echo_n "(cached) " >&6
13444 else
13445 ac_check_lib_save_LIBS=$LIBS
13446 LIBS="-ltspi $LIBS"
13447 cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h. */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13453
13454 /* Override any GCC internal prototype to avoid an error.
13455 Use char because int might match the return type of a GCC
13456 builtin and then its argument prototype would still apply. */
13457 #ifdef __cplusplus
13458 extern "C"
13459 #endif
13460 char Tspi_TPM_SetOperatorAuth ();
13461 int
13462 main ()
13463 {
13464 return Tspi_TPM_SetOperatorAuth ();
13465 ;
13466 return 0;
13467 }
13468 _ACEOF
13469 rm -f conftest.$ac_objext conftest$ac_exeext
13470 if { (ac_try="$ac_link"
13471 case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13474 esac
13475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13476 $as_echo "$ac_try_echo") >&5
13477 (eval "$ac_link") 2>conftest.er1
13478 ac_status=$?
13479 grep -v '^ *+' conftest.er1 >conftest.err
13480 rm -f conftest.er1
13481 cat conftest.err >&5
13482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } && {
13484 test -z "$ac_c_werror_flag" ||
13485 test ! -s conftest.err
13486 } && test -s conftest$ac_exeext && {
13487 test "$cross_compiling" = yes ||
13488 $as_test_x conftest$ac_exeext
13489 }; then
13490 ac_cv_lib_tspi_Tspi_TPM_SetOperatorAuth=yes
13491 else
13492 $as_echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 ac_cv_lib_tspi_Tspi_TPM_SetOperatorAuth=no
13496 fi
13497
13498 rm -rf conftest.dSYM
13499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13500 conftest$ac_exeext conftest.$ac_ext
13501 LIBS=$ac_check_lib_save_LIBS
13502 fi
13503 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tspi_Tspi_TPM_SetOperatorAuth" >&5
13504 $as_echo "$ac_cv_lib_tspi_Tspi_TPM_SetOperatorAuth" >&6; }
13505 if test "x$ac_cv_lib_tspi_Tspi_TPM_SetOperatorAuth" = x""yes; then
13506 TSS_12="1"
13507 else
13508 TSS_12="0"
13509 fi
13510
13511 if test "$TSS_12" = "1"; then
13512 if true; then
13513 TSS_LIB_IS_12_TRUE=
13514 TSS_LIB_IS_12_FALSE='#'
13515 else
13516 TSS_LIB_IS_12_TRUE='#'
13517 TSS_LIB_IS_12_FALSE=
13518 fi
13519
13520 { $as_echo "$as_me:$LINENO: Configuring tpm-tools for TSS 1.2" >&5
13521 $as_echo "$as_me: Configuring tpm-tools for TSS 1.2" >&6;}
13522 else
13523 if false; then
13524 TSS_LIB_IS_12_TRUE=
13525 TSS_LIB_IS_12_FALSE='#'
13526 else
13527 TSS_LIB_IS_12_TRUE='#'
13528 TSS_LIB_IS_12_FALSE=
13529 fi
13530
13531 { $as_echo "$as_me:$LINENO: Configuring tpm-tools for TSS 1.1" >&5
13532 $as_echo "$as_me: Configuring tpm-tools for TSS 1.1" >&6;}
13533 fi
13534 if test "${ac_cv_header_trousers_tss_h+set}" = set; then
13535 { $as_echo "$as_me:$LINENO: checking for trousers/tss.h" >&5
13536 $as_echo_n "checking for trousers/tss.h... " >&6; }
13537 if test "${ac_cv_header_trousers_tss_h+set}" = set; then
13538 $as_echo_n "(cached) " >&6
13539 fi
13540 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_trousers_tss_h" >&5
13541 $as_echo "$ac_cv_header_trousers_tss_h" >&6; }
13542 else
13543 # Is the header compilable?
13544 { $as_echo "$as_me:$LINENO: checking trousers/tss.h usability" >&5
13545 $as_echo_n "checking trousers/tss.h usability... " >&6; }
13546 cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h. */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13552 $ac_includes_default
13553 #include <trousers/tss.h>
13554 _ACEOF
13555 rm -f conftest.$ac_objext
13556 if { (ac_try="$ac_compile"
13557 case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13560 esac
13561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13562 $as_echo "$ac_try_echo") >&5
13563 (eval "$ac_compile") 2>conftest.er1
13564 ac_status=$?
13565 grep -v '^ *+' conftest.er1 >conftest.err
13566 rm -f conftest.er1
13567 cat conftest.err >&5
13568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } && {
13570 test -z "$ac_c_werror_flag" ||
13571 test ! -s conftest.err
13572 } && test -s conftest.$ac_objext; then
13573 ac_header_compiler=yes
13574 else
13575 $as_echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13577
13578 ac_header_compiler=no
13579 fi
13580
13581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13582 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13583 $as_echo "$ac_header_compiler" >&6; }
13584
13585 # Is the header present?
13586 { $as_echo "$as_me:$LINENO: checking trousers/tss.h presence" >&5
13587 $as_echo_n "checking trousers/tss.h presence... " >&6; }
13588 cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h. */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13594 #include <trousers/tss.h>
13595 _ACEOF
13596 if { (ac_try="$ac_cpp conftest.$ac_ext"
13597 case "(($ac_try" in
13598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599 *) ac_try_echo=$ac_try;;
13600 esac
13601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13602 $as_echo "$ac_try_echo") >&5
13603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13604 ac_status=$?
13605 grep -v '^ *+' conftest.er1 >conftest.err
13606 rm -f conftest.er1
13607 cat conftest.err >&5
13608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } >/dev/null && {
13610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13611 test ! -s conftest.err
13612 }; then
13613 ac_header_preproc=yes
13614 else
13615 $as_echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13617
13618 ac_header_preproc=no
13619 fi
13620
13621 rm -f conftest.err conftest.$ac_ext
13622 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13623 $as_echo "$ac_header_preproc" >&6; }
13624
13625 # So? What about this header?
13626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13627 yes:no: )
13628 { $as_echo "$as_me:$LINENO: WARNING: trousers/tss.h: accepted by the compiler, rejected by the preprocessor!" >&5
13629 $as_echo "$as_me: WARNING: trousers/tss.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13630 { $as_echo "$as_me:$LINENO: WARNING: trousers/tss.h: proceeding with the compiler's result" >&5
13631 $as_echo "$as_me: WARNING: trousers/tss.h: proceeding with the compiler's result" >&2;}
13632 ac_header_preproc=yes
13633 ;;
13634 no:yes:* )
13635 { $as_echo "$as_me:$LINENO: WARNING: trousers/tss.h: present but cannot be compiled" >&5
13636 $as_echo "$as_me: WARNING: trousers/tss.h: present but cannot be compiled" >&2;}
13637 { $as_echo "$as_me:$LINENO: WARNING: trousers/tss.h: check for missing prerequisite headers?" >&5
13638 $as_echo "$as_me: WARNING: trousers/tss.h: check for missing prerequisite headers?" >&2;}
13639 { $as_echo "$as_me:$LINENO: WARNING: trousers/tss.h: see the Autoconf documentation" >&5
13640 $as_echo "$as_me: WARNING: trousers/tss.h: see the Autoconf documentation" >&2;}
13641 { $as_echo "$as_me:$LINENO: WARNING: trousers/tss.h: section \"Present But Cannot Be Compiled\"" >&5
13642 $as_echo "$as_me: WARNING: trousers/tss.h: section \"Present But Cannot Be Compiled\"" >&2;}
13643 { $as_echo "$as_me:$LINENO: WARNING: trousers/tss.h: proceeding with the preprocessor's result" >&5
13644 $as_echo "$as_me: WARNING: trousers/tss.h: proceeding with the preprocessor's result" >&2;}
13645 { $as_echo "$as_me:$LINENO: WARNING: trousers/tss.h: in the future, the compiler will take precedence" >&5
13646 $as_echo "$as_me: WARNING: trousers/tss.h: in the future, the compiler will take precedence" >&2;}
13647 ( cat <<\_ASBOX
13648 ## ----------------------------------------- ##
13649 ## Report this to trousers-tech (at] lists.sf.net ##
13650 ## ----------------------------------------- ##
13651 _ASBOX
13652 ) | sed "s/^/$as_me: WARNING: /" >&2
13653 ;;
13654 esac
13655 { $as_echo "$as_me:$LINENO: checking for trousers/tss.h" >&5
13656 $as_echo_n "checking for trousers/tss.h... " >&6; }
13657 if test "${ac_cv_header_trousers_tss_h+set}" = set; then
13658 $as_echo_n "(cached) " >&6
13659 else
13660 ac_cv_header_trousers_tss_h=$ac_header_preproc
13661 fi
13662 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_trousers_tss_h" >&5
13663 $as_echo "$ac_cv_header_trousers_tss_h" >&6; }
13664
13665 fi
13666 if test "x$ac_cv_header_trousers_tss_h" = x""yes; then
13667 TSS_INC="1"
13668 else
13669 { { $as_echo "$as_me:$LINENO: error: tss header not found: trousers/tss.h" >&5
13670 $as_echo "$as_me: error: tss header not found: trousers/tss.h" >&2;}
13671 { (exit 1); exit 1; }; }
13672 fi
13673
13674
13675
13676 { $as_echo "$as_me:$LINENO: checking for PEM_read_X509 in -lcrypto" >&5
13677 $as_echo_n "checking for PEM_read_X509 in -lcrypto... " >&6; }
13678 if test "${ac_cv_lib_crypto_PEM_read_X509+set}" = set; then
13679 $as_echo_n "(cached) " >&6
13680 else
13681 ac_check_lib_save_LIBS=$LIBS
13682 LIBS="-lcrypto $LIBS"
13683 cat >conftest.$ac_ext <<_ACEOF
13684 /* confdefs.h. */
13685 _ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13689
13690 /* Override any GCC internal prototype to avoid an error.
13691 Use char because int might match the return type of a GCC
13692 builtin and then its argument prototype would still apply. */
13693 #ifdef __cplusplus
13694 extern "C"
13695 #endif
13696 char PEM_read_X509 ();
13697 int
13698 main ()
13699 {
13700 return PEM_read_X509 ();
13701 ;
13702 return 0;
13703 }
13704 _ACEOF
13705 rm -f conftest.$ac_objext conftest$ac_exeext
13706 if { (ac_try="$ac_link"
13707 case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13710 esac
13711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13712 $as_echo "$ac_try_echo") >&5
13713 (eval "$ac_link") 2>conftest.er1
13714 ac_status=$?
13715 grep -v '^ *+' conftest.er1 >conftest.err
13716 rm -f conftest.er1
13717 cat conftest.err >&5
13718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } && {
13720 test -z "$ac_c_werror_flag" ||
13721 test ! -s conftest.err
13722 } && test -s conftest$ac_exeext && {
13723 test "$cross_compiling" = yes ||
13724 $as_test_x conftest$ac_exeext
13725 }; then
13726 ac_cv_lib_crypto_PEM_read_X509=yes
13727 else
13728 $as_echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731 ac_cv_lib_crypto_PEM_read_X509=no
13732 fi
13733
13734 rm -rf conftest.dSYM
13735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13736 conftest$ac_exeext conftest.$ac_ext
13737 LIBS=$ac_check_lib_save_LIBS
13738 fi
13739 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_PEM_read_X509" >&5
13740 $as_echo "$ac_cv_lib_crypto_PEM_read_X509" >&6; }
13741 if test "x$ac_cv_lib_crypto_PEM_read_X509" = x""yes; then
13742 OPENSSL_LIB="1"
13743 else
13744 { { $as_echo "$as_me:$LINENO: error: openssl lib not found: libcrypto.so" >&5
13745 $as_echo "$as_me: error: openssl lib not found: libcrypto.so" >&2;}
13746 { (exit 1); exit 1; }; }
13747 fi
13748
13749 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
13750 { $as_echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
13751 $as_echo_n "checking for openssl/evp.h... " >&6; }
13752 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
13753 $as_echo_n "(cached) " >&6
13754 fi
13755 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
13756 $as_echo "$ac_cv_header_openssl_evp_h" >&6; }
13757 else
13758 # Is the header compilable?
13759 { $as_echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
13760 $as_echo_n "checking openssl/evp.h usability... " >&6; }
13761 cat >conftest.$ac_ext <<_ACEOF
13762 /* confdefs.h. */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13767 $ac_includes_default
13768 #include <openssl/evp.h>
13769 _ACEOF
13770 rm -f conftest.$ac_objext
13771 if { (ac_try="$ac_compile"
13772 case "(($ac_try" in
13773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13774 *) ac_try_echo=$ac_try;;
13775 esac
13776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13777 $as_echo "$ac_try_echo") >&5
13778 (eval "$ac_compile") 2>conftest.er1
13779 ac_status=$?
13780 grep -v '^ *+' conftest.er1 >conftest.err
13781 rm -f conftest.er1
13782 cat conftest.err >&5
13783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } && {
13785 test -z "$ac_c_werror_flag" ||
13786 test ! -s conftest.err
13787 } && test -s conftest.$ac_objext; then
13788 ac_header_compiler=yes
13789 else
13790 $as_echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.$ac_ext >&5
13792
13793 ac_header_compiler=no
13794 fi
13795
13796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13798 $as_echo "$ac_header_compiler" >&6; }
13799
13800 # Is the header present?
13801 { $as_echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
13802 $as_echo_n "checking openssl/evp.h presence... " >&6; }
13803 cat >conftest.$ac_ext <<_ACEOF
13804 /* confdefs.h. */
13805 _ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h. */
13809 #include <openssl/evp.h>
13810 _ACEOF
13811 if { (ac_try="$ac_cpp conftest.$ac_ext"
13812 case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13815 esac
13816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13817 $as_echo "$ac_try_echo") >&5
13818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13819 ac_status=$?
13820 grep -v '^ *+' conftest.er1 >conftest.err
13821 rm -f conftest.er1
13822 cat conftest.err >&5
13823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } >/dev/null && {
13825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13826 test ! -s conftest.err
13827 }; then
13828 ac_header_preproc=yes
13829 else
13830 $as_echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13832
13833 ac_header_preproc=no
13834 fi
13835
13836 rm -f conftest.err conftest.$ac_ext
13837 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13838 $as_echo "$ac_header_preproc" >&6; }
13839
13840 # So? What about this header?
13841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13842 yes:no: )
13843 { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5
13844 $as_echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13845 { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5
13846 $as_echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;}
13847 ac_header_preproc=yes
13848 ;;
13849 no:yes:* )
13850 { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5
13851 $as_echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;}
13852 { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&5
13853 $as_echo "$as_me: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&2;}
13854 { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: see the Autoconf documentation" >&5
13855 $as_echo "$as_me: WARNING: openssl/evp.h: see the Autoconf documentation" >&2;}
13856 { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&5
13857 $as_echo "$as_me: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&2;}
13858 { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
13859 $as_echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
13860 { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&5
13861 $as_echo "$as_me: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&2;}
13862 ( cat <<\_ASBOX
13863 ## ----------------------------------------- ##
13864 ## Report this to trousers-tech (at] lists.sf.net ##
13865 ## ----------------------------------------- ##
13866 _ASBOX
13867 ) | sed "s/^/$as_me: WARNING: /" >&2
13868 ;;
13869 esac
13870 { $as_echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
13871 $as_echo_n "checking for openssl/evp.h... " >&6; }
13872 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
13873 $as_echo_n "(cached) " >&6
13874 else
13875 ac_cv_header_openssl_evp_h=$ac_header_preproc
13876 fi
13877 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
13878 $as_echo "$ac_cv_header_openssl_evp_h" >&6; }
13879
13880 fi
13881 if test "x$ac_cv_header_openssl_evp_h" = x""yes; then
13882 OPENSSL_INC="1"
13883 else
13884 { { $as_echo "$as_me:$LINENO: error: openssl header not found: openssl/evp.h" >&5
13885 $as_echo "$as_me: error: openssl header not found: openssl/evp.h" >&2;}
13886 { (exit 1); exit 1; }; }
13887 fi
13888
13889
13890
13891 OPENCRYPTOKI="0"
13892 # Check whether --enable-pkcs11_support was given.
13893 if test "${enable_pkcs11_support+set}" = set; then
13894 enableval=$enable_pkcs11_support; disable_pkcs11_support="yes"
13895 { $as_echo "$as_me:$LINENO: result: *** Not building data_mgmt at user request ***" >&5
13896 $as_echo "*** Not building data_mgmt at user request ***" >&6; }
13897 fi
13898
13899
13900 if test "x$disable_pkcs11_support" != "xyes"; then
13901 if test "${ac_cv_header_opencryptoki_pkcs11_h+set}" = set; then
13902 { $as_echo "$as_me:$LINENO: checking for opencryptoki/pkcs11.h" >&5
13903 $as_echo_n "checking for opencryptoki/pkcs11.h... " >&6; }
13904 if test "${ac_cv_header_opencryptoki_pkcs11_h+set}" = set; then
13905 $as_echo_n "(cached) " >&6
13906 fi
13907 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_opencryptoki_pkcs11_h" >&5
13908 $as_echo "$ac_cv_header_opencryptoki_pkcs11_h" >&6; }
13909 else
13910 # Is the header compilable?
13911 { $as_echo "$as_me:$LINENO: checking opencryptoki/pkcs11.h usability" >&5
13912 $as_echo_n "checking opencryptoki/pkcs11.h usability... " >&6; }
13913 cat >conftest.$ac_ext <<_ACEOF
13914 /* confdefs.h. */
13915 _ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h. */
13919 $ac_includes_default
13920 #include <opencryptoki/pkcs11.h>
13921 _ACEOF
13922 rm -f conftest.$ac_objext
13923 if { (ac_try="$ac_compile"
13924 case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13927 esac
13928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13929 $as_echo "$ac_try_echo") >&5
13930 (eval "$ac_compile") 2>conftest.er1
13931 ac_status=$?
13932 grep -v '^ *+' conftest.er1 >conftest.err
13933 rm -f conftest.er1
13934 cat conftest.err >&5
13935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } && {
13937 test -z "$ac_c_werror_flag" ||
13938 test ! -s conftest.err
13939 } && test -s conftest.$ac_objext; then
13940 ac_header_compiler=yes
13941 else
13942 $as_echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13944
13945 ac_header_compiler=no
13946 fi
13947
13948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13950 $as_echo "$ac_header_compiler" >&6; }
13951
13952 # Is the header present?
13953 { $as_echo "$as_me:$LINENO: checking opencryptoki/pkcs11.h presence" >&5
13954 $as_echo_n "checking opencryptoki/pkcs11.h presence... " >&6; }
13955 cat >conftest.$ac_ext <<_ACEOF
13956 /* confdefs.h. */
13957 _ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13961 #include <opencryptoki/pkcs11.h>
13962 _ACEOF
13963 if { (ac_try="$ac_cpp conftest.$ac_ext"
13964 case "(($ac_try" in
13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966 *) ac_try_echo=$ac_try;;
13967 esac
13968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13969 $as_echo "$ac_try_echo") >&5
13970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13971 ac_status=$?
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
13975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } >/dev/null && {
13977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13978 test ! -s conftest.err
13979 }; then
13980 ac_header_preproc=yes
13981 else
13982 $as_echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13984
13985 ac_header_preproc=no
13986 fi
13987
13988 rm -f conftest.err conftest.$ac_ext
13989 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13990 $as_echo "$ac_header_preproc" >&6; }
13991
13992 # So? What about this header?
13993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13994 yes:no: )
13995 { $as_echo "$as_me:$LINENO: WARNING: opencryptoki/pkcs11.h: accepted by the compiler, rejected by the preprocessor!" >&5
13996 $as_echo "$as_me: WARNING: opencryptoki/pkcs11.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13997 { $as_echo "$as_me:$LINENO: WARNING: opencryptoki/pkcs11.h: proceeding with the compiler's result" >&5
13998 $as_echo "$as_me: WARNING: opencryptoki/pkcs11.h: proceeding with the compiler's result" >&2;}
13999 ac_header_preproc=yes
14000 ;;
14001 no:yes:* )
14002 { $as_echo "$as_me:$LINENO: WARNING: opencryptoki/pkcs11.h: present but cannot be compiled" >&5
14003 $as_echo "$as_me: WARNING: opencryptoki/pkcs11.h: present but cannot be compiled" >&2;}
14004 { $as_echo "$as_me:$LINENO: WARNING: opencryptoki/pkcs11.h: check for missing prerequisite headers?" >&5
14005 $as_echo "$as_me: WARNING: opencryptoki/pkcs11.h: check for missing prerequisite headers?" >&2;}
14006 { $as_echo "$as_me:$LINENO: WARNING: opencryptoki/pkcs11.h: see the Autoconf documentation" >&5
14007 $as_echo "$as_me: WARNING: opencryptoki/pkcs11.h: see the Autoconf documentation" >&2;}
14008 { $as_echo "$as_me:$LINENO: WARNING: opencryptoki/pkcs11.h: section \"Present But Cannot Be Compiled\"" >&5
14009 $as_echo "$as_me: WARNING: opencryptoki/pkcs11.h: section \"Present But Cannot Be Compiled\"" >&2;}
14010 { $as_echo "$as_me:$LINENO: WARNING: opencryptoki/pkcs11.h: proceeding with the preprocessor's result" >&5
14011 $as_echo "$as_me: WARNING: opencryptoki/pkcs11.h: proceeding with the preprocessor's result" >&2;}
14012 { $as_echo "$as_me:$LINENO: WARNING: opencryptoki/pkcs11.h: in the future, the compiler will take precedence" >&5
14013 $as_echo "$as_me: WARNING: opencryptoki/pkcs11.h: in the future, the compiler will take precedence" >&2;}
14014 ( cat <<\_ASBOX
14015 ## ----------------------------------------- ##
14016 ## Report this to trousers-tech (at] lists.sf.net ##
14017 ## ----------------------------------------- ##
14018 _ASBOX
14019 ) | sed "s/^/$as_me: WARNING: /" >&2
14020 ;;
14021 esac
14022 { $as_echo "$as_me:$LINENO: checking for opencryptoki/pkcs11.h" >&5
14023 $as_echo_n "checking for opencryptoki/pkcs11.h... " >&6; }
14024 if test "${ac_cv_header_opencryptoki_pkcs11_h+set}" = set; then
14025 $as_echo_n "(cached) " >&6
14026 else
14027 ac_cv_header_opencryptoki_pkcs11_h=$ac_header_preproc
14028 fi
14029 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_opencryptoki_pkcs11_h" >&5
14030 $as_echo "$ac_cv_header_opencryptoki_pkcs11_h" >&6; }
14031
14032 fi
14033 if test "x$ac_cv_header_opencryptoki_pkcs11_h" = x""yes; then
14034 OPENCRYPTOKI_INC="1"
14035 else
14036 OPENCRYPTOKI_INC="0"
14037 fi
14038
14039
14040 if test "$OPENCRYPTOKI_INC" = "1"; then
14041 OPENCRYPTOKI="1"
14042 fi
14043 fi
14044 if test "$OPENCRYPTOKI" = "1"; then
14045 P11_SUPPORT_TRUE=
14046 P11_SUPPORT_FALSE='#'
14047 else
14048 P11_SUPPORT_TRUE='#'
14049 P11_SUPPORT_FALSE=
14050 fi
14051
14052
14053 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14054 $as_echo_n "checking for ANSI C header files... " >&6; }
14055 if test "${ac_cv_header_stdc+set}" = set; then
14056 $as_echo_n "(cached) " >&6
14057 else
14058 cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h. */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14064 #include <stdlib.h>
14065 #include <stdarg.h>
14066 #include <string.h>
14067 #include <float.h>
14068
14069 int
14070 main ()
14071 {
14072
14073 ;
14074 return 0;
14075 }
14076 _ACEOF
14077 rm -f conftest.$ac_objext
14078 if { (ac_try="$ac_compile"
14079 case "(($ac_try" in
14080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081 *) ac_try_echo=$ac_try;;
14082 esac
14083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14084 $as_echo "$ac_try_echo") >&5
14085 (eval "$ac_compile") 2>conftest.er1
14086 ac_status=$?
14087 grep -v '^ *+' conftest.er1 >conftest.err
14088 rm -f conftest.er1
14089 cat conftest.err >&5
14090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } && {
14092 test -z "$ac_c_werror_flag" ||
14093 test ! -s conftest.err
14094 } && test -s conftest.$ac_objext; then
14095 ac_cv_header_stdc=yes
14096 else
14097 $as_echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100 ac_cv_header_stdc=no
14101 fi
14102
14103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104
14105 if test $ac_cv_header_stdc = yes; then
14106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14107 cat >conftest.$ac_ext <<_ACEOF
14108 /* confdefs.h. */
14109 _ACEOF
14110 cat confdefs.h >>conftest.$ac_ext
14111 cat >>conftest.$ac_ext <<_ACEOF
14112 /* end confdefs.h. */
14113 #include <string.h>
14114
14115 _ACEOF
14116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14117 $EGREP "memchr" >/dev/null 2>&1; then
14118 :
14119 else
14120 ac_cv_header_stdc=no
14121 fi
14122 rm -f conftest*
14123
14124 fi
14125
14126 if test $ac_cv_header_stdc = yes; then
14127 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14128 cat >conftest.$ac_ext <<_ACEOF
14129 /* confdefs.h. */
14130 _ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h. */
14134 #include <stdlib.h>
14135
14136 _ACEOF
14137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14138 $EGREP "free" >/dev/null 2>&1; then
14139 :
14140 else
14141 ac_cv_header_stdc=no
14142 fi
14143 rm -f conftest*
14144
14145 fi
14146
14147 if test $ac_cv_header_stdc = yes; then
14148 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14149 if test "$cross_compiling" = yes; then
14150 :
14151 else
14152 cat >conftest.$ac_ext <<_ACEOF
14153 /* confdefs.h. */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 #include <ctype.h>
14159 #include <stdlib.h>
14160 #if ((' ' & 0x0FF) == 0x020)
14161 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14162 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14163 #else
14164 # define ISLOWER(c) \
14165 (('a' <= (c) && (c) <= 'i') \
14166 || ('j' <= (c) && (c) <= 'r') \
14167 || ('s' <= (c) && (c) <= 'z'))
14168 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14169 #endif
14170
14171 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14172 int
14173 main ()
14174 {
14175 int i;
14176 for (i = 0; i < 256; i++)
14177 if (XOR (islower (i), ISLOWER (i))
14178 || toupper (i) != TOUPPER (i))
14179 return 2;
14180 return 0;
14181 }
14182 _ACEOF
14183 rm -f conftest$ac_exeext
14184 if { (ac_try="$ac_link"
14185 case "(($ac_try" in
14186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187 *) ac_try_echo=$ac_try;;
14188 esac
14189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14190 $as_echo "$ac_try_echo") >&5
14191 (eval "$ac_link") 2>&5
14192 ac_status=$?
14193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14195 { (case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14198 esac
14199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14200 $as_echo "$ac_try_echo") >&5
14201 (eval "$ac_try") 2>&5
14202 ac_status=$?
14203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205 :
14206 else
14207 $as_echo "$as_me: program exited with status $ac_status" >&5
14208 $as_echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14210
14211 ( exit $ac_status )
14212 ac_cv_header_stdc=no
14213 fi
14214 rm -rf conftest.dSYM
14215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14216 fi
14217
14218
14219 fi
14220 fi
14221 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14222 $as_echo "$ac_cv_header_stdc" >&6; }
14223 if test $ac_cv_header_stdc = yes; then
14224
14225 cat >>confdefs.h <<\_ACEOF
14226 #define STDC_HEADERS 1
14227 _ACEOF
14228
14229 fi
14230
14231
14232 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14233 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14234 if test "${ac_cv_c_const+set}" = set; then
14235 $as_echo_n "(cached) " >&6
14236 else
14237 cat >conftest.$ac_ext <<_ACEOF
14238 /* confdefs.h. */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243
14244 int
14245 main ()
14246 {
14247 /* FIXME: Include the comments suggested by Paul. */
14248 #ifndef __cplusplus
14249 /* Ultrix mips cc rejects this. */
14250 typedef int charset[2];
14251 const charset cs;
14252 /* SunOS 4.1.1 cc rejects this. */
14253 char const *const *pcpcc;
14254 char **ppc;
14255 /* NEC SVR4.0.2 mips cc rejects this. */
14256 struct point {int x, y;};
14257 static struct point const zero = {0,0};
14258 /* AIX XL C 1.02.0.0 rejects this.
14259 It does not let you subtract one const X* pointer from another in
14260 an arm of an if-expression whose if-part is not a constant
14261 expression */
14262 const char *g = "string";
14263 pcpcc = &g + (g ? g-g : 0);
14264 /* HPUX 7.0 cc rejects these. */
14265 ++pcpcc;
14266 ppc = (char**) pcpcc;
14267 pcpcc = (char const *const *) ppc;
14268 { /* SCO 3.2v4 cc rejects this. */
14269 char *t;
14270 char const *s = 0 ? (char *) 0 : (char const *) 0;
14271
14272 *t++ = 0;
14273 if (s) return 0;
14274 }
14275 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14276 int x[] = {25, 17};
14277 const int *foo = &x[0];
14278 ++foo;
14279 }
14280 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14281 typedef const int *iptr;
14282 iptr p = 0;
14283 ++p;
14284 }
14285 { /* AIX XL C 1.02.0.0 rejects this saying
14286 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14287 struct s { int j; const int *ap[3]; };
14288 struct s *b; b->j = 5;
14289 }
14290 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14291 const int foo = 10;
14292 if (!foo) return 0;
14293 }
14294 return !cs[0] && !zero.x;
14295 #endif
14296
14297 ;
14298 return 0;
14299 }
14300 _ACEOF
14301 rm -f conftest.$ac_objext
14302 if { (ac_try="$ac_compile"
14303 case "(($ac_try" in
14304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305 *) ac_try_echo=$ac_try;;
14306 esac
14307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14308 $as_echo "$ac_try_echo") >&5
14309 (eval "$ac_compile") 2>conftest.er1
14310 ac_status=$?
14311 grep -v '^ *+' conftest.er1 >conftest.err
14312 rm -f conftest.er1
14313 cat conftest.err >&5
14314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } && {
14316 test -z "$ac_c_werror_flag" ||
14317 test ! -s conftest.err
14318 } && test -s conftest.$ac_objext; then
14319 ac_cv_c_const=yes
14320 else
14321 $as_echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14323
14324 ac_cv_c_const=no
14325 fi
14326
14327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14328 fi
14329 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14330 $as_echo "$ac_cv_c_const" >&6; }
14331 if test $ac_cv_c_const = no; then
14332
14333 cat >>confdefs.h <<\_ACEOF
14334 #define const /**/
14335 _ACEOF
14336
14337 fi
14338
14339 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14340 $as_echo_n "checking for inline... " >&6; }
14341 if test "${ac_cv_c_inline+set}" = set; then
14342 $as_echo_n "(cached) " >&6
14343 else
14344 ac_cv_c_inline=no
14345 for ac_kw in inline __inline__ __inline; do
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h. */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352 #ifndef __cplusplus
14353 typedef int foo_t;
14354 static $ac_kw foo_t static_foo () {return 0; }
14355 $ac_kw foo_t foo () {return 0; }
14356 #endif
14357
14358 _ACEOF
14359 rm -f conftest.$ac_objext
14360 if { (ac_try="$ac_compile"
14361 case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14364 esac
14365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14366 $as_echo "$ac_try_echo") >&5
14367 (eval "$ac_compile") 2>conftest.er1
14368 ac_status=$?
14369 grep -v '^ *+' conftest.er1 >conftest.err
14370 rm -f conftest.er1
14371 cat conftest.err >&5
14372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } && {
14374 test -z "$ac_c_werror_flag" ||
14375 test ! -s conftest.err
14376 } && test -s conftest.$ac_objext; then
14377 ac_cv_c_inline=$ac_kw
14378 else
14379 $as_echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382
14383 fi
14384
14385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386 test "$ac_cv_c_inline" != no && break
14387 done
14388
14389 fi
14390 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14391 $as_echo "$ac_cv_c_inline" >&6; }
14392
14393
14394 case $ac_cv_c_inline in
14395 inline | yes) ;;
14396 *)
14397 case $ac_cv_c_inline in
14398 no) ac_val=;;
14399 *) ac_val=$ac_cv_c_inline;;
14400 esac
14401 cat >>confdefs.h <<_ACEOF
14402 #ifndef __cplusplus
14403 #define inline $ac_val
14404 #endif
14405 _ACEOF
14406 ;;
14407 esac
14408
14409
14410 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
14411 $as_echo_n "checking for long file names... " >&6; }
14412 if test "${ac_cv_sys_long_file_names+set}" = set; then
14413 $as_echo_n "(cached) " >&6
14414 else
14415 ac_cv_sys_long_file_names=yes
14416 # Test for long file names in all the places we know might matter:
14417 # . the current directory, where building will happen
14418 # $prefix/lib where we will be installing things
14419 # $exec_prefix/lib likewise
14420 # $TMPDIR if set, where it might want to write temporary files
14421 # /tmp where it might want to write temporary files
14422 # /var/tmp likewise
14423 # /usr/tmp likewise
14424 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
14425 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
14426 # in the usual case where exec_prefix is '${prefix}'.
14427 case $ac_dir in #(
14428 . | /* | ?:[\\/]*) ;; #(
14429 *) continue;;
14430 esac
14431 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
14432 ac_xdir=$ac_dir/cf$$
14433 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
14434 ac_tf1=$ac_xdir/conftest9012345
14435 ac_tf2=$ac_xdir/conftest9012346
14436 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
14437 ac_cv_sys_long_file_names=no
14438 rm -f -r "$ac_xdir" 2>/dev/null
14439 test $ac_cv_sys_long_file_names = no && break
14440 done
14441 fi
14442 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
14443 $as_echo "$ac_cv_sys_long_file_names" >&6; }
14444 if test $ac_cv_sys_long_file_names = yes; then
14445
14446 cat >>confdefs.h <<\_ACEOF
14447 #define HAVE_LONG_FILE_NAMES 1
14448 _ACEOF
14449
14450 fi
14451
14452
14453 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
14454 $as_echo_n "checking for mode_t... " >&6; }
14455 if test "${ac_cv_type_mode_t+set}" = set; then
14456 $as_echo_n "(cached) " >&6
14457 else
14458 ac_cv_type_mode_t=no
14459 cat >conftest.$ac_ext <<_ACEOF
14460 /* confdefs.h. */
14461 _ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14465 $ac_includes_default
14466 int
14467 main ()
14468 {
14469 if (sizeof (mode_t))
14470 return 0;
14471 ;
14472 return 0;
14473 }
14474 _ACEOF
14475 rm -f conftest.$ac_objext
14476 if { (ac_try="$ac_compile"
14477 case "(($ac_try" in
14478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14479 *) ac_try_echo=$ac_try;;
14480 esac
14481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14482 $as_echo "$ac_try_echo") >&5
14483 (eval "$ac_compile") 2>conftest.er1
14484 ac_status=$?
14485 grep -v '^ *+' conftest.er1 >conftest.err
14486 rm -f conftest.er1
14487 cat conftest.err >&5
14488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } && {
14490 test -z "$ac_c_werror_flag" ||
14491 test ! -s conftest.err
14492 } && test -s conftest.$ac_objext; then
14493 cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h. */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 $ac_includes_default
14500 int
14501 main ()
14502 {
14503 if (sizeof ((mode_t)))
14504 return 0;
14505 ;
14506 return 0;
14507 }
14508 _ACEOF
14509 rm -f conftest.$ac_objext
14510 if { (ac_try="$ac_compile"
14511 case "(($ac_try" in
14512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14513 *) ac_try_echo=$ac_try;;
14514 esac
14515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14516 $as_echo "$ac_try_echo") >&5
14517 (eval "$ac_compile") 2>conftest.er1
14518 ac_status=$?
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
14522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } && {
14524 test -z "$ac_c_werror_flag" ||
14525 test ! -s conftest.err
14526 } && test -s conftest.$ac_objext; then
14527 :
14528 else
14529 $as_echo "$as_me: failed program was:" >&5
14530 sed 's/^/| /' conftest.$ac_ext >&5
14531
14532 ac_cv_type_mode_t=yes
14533 fi
14534
14535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14536 else
14537 $as_echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14539
14540
14541 fi
14542
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14544 fi
14545 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14546 $as_echo "$ac_cv_type_mode_t" >&6; }
14547 if test "x$ac_cv_type_mode_t" = x""yes; then
14548 :
14549 else
14550
14551 cat >>confdefs.h <<_ACEOF
14552 #define mode_t int
14553 _ACEOF
14554
14555 fi
14556
14557 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
14558 $as_echo_n "checking for off_t... " >&6; }
14559 if test "${ac_cv_type_off_t+set}" = set; then
14560 $as_echo_n "(cached) " >&6
14561 else
14562 ac_cv_type_off_t=no
14563 cat >conftest.$ac_ext <<_ACEOF
14564 /* confdefs.h. */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14569 $ac_includes_default
14570 int
14571 main ()
14572 {
14573 if (sizeof (off_t))
14574 return 0;
14575 ;
14576 return 0;
14577 }
14578 _ACEOF
14579 rm -f conftest.$ac_objext
14580 if { (ac_try="$ac_compile"
14581 case "(($ac_try" in
14582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583 *) ac_try_echo=$ac_try;;
14584 esac
14585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14586 $as_echo "$ac_try_echo") >&5
14587 (eval "$ac_compile") 2>conftest.er1
14588 ac_status=$?
14589 grep -v '^ *+' conftest.er1 >conftest.err
14590 rm -f conftest.er1
14591 cat conftest.err >&5
14592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } && {
14594 test -z "$ac_c_werror_flag" ||
14595 test ! -s conftest.err
14596 } && test -s conftest.$ac_objext; then
14597 cat >conftest.$ac_ext <<_ACEOF
14598 /* confdefs.h. */
14599 _ACEOF
14600 cat confdefs.h >>conftest.$ac_ext
14601 cat >>conftest.$ac_ext <<_ACEOF
14602 /* end confdefs.h. */
14603 $ac_includes_default
14604 int
14605 main ()
14606 {
14607 if (sizeof ((off_t)))
14608 return 0;
14609 ;
14610 return 0;
14611 }
14612 _ACEOF
14613 rm -f conftest.$ac_objext
14614 if { (ac_try="$ac_compile"
14615 case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14618 esac
14619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14620 $as_echo "$ac_try_echo") >&5
14621 (eval "$ac_compile") 2>conftest.er1
14622 ac_status=$?
14623 grep -v '^ *+' conftest.er1 >conftest.err
14624 rm -f conftest.er1
14625 cat conftest.err >&5
14626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } && {
14628 test -z "$ac_c_werror_flag" ||
14629 test ! -s conftest.err
14630 } && test -s conftest.$ac_objext; then
14631 :
14632 else
14633 $as_echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14635
14636 ac_cv_type_off_t=yes
14637 fi
14638
14639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640 else
14641 $as_echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14643
14644
14645 fi
14646
14647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14648 fi
14649 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14650 $as_echo "$ac_cv_type_off_t" >&6; }
14651 if test "x$ac_cv_type_off_t" = x""yes; then
14652 :
14653 else
14654
14655 cat >>confdefs.h <<_ACEOF
14656 #define off_t long int
14657 _ACEOF
14658
14659 fi
14660
14661 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
14662 $as_echo_n "checking for pid_t... " >&6; }
14663 if test "${ac_cv_type_pid_t+set}" = set; then
14664 $as_echo_n "(cached) " >&6
14665 else
14666 ac_cv_type_pid_t=no
14667 cat >conftest.$ac_ext <<_ACEOF
14668 /* confdefs.h. */
14669 _ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14673 $ac_includes_default
14674 int
14675 main ()
14676 {
14677 if (sizeof (pid_t))
14678 return 0;
14679 ;
14680 return 0;
14681 }
14682 _ACEOF
14683 rm -f conftest.$ac_objext
14684 if { (ac_try="$ac_compile"
14685 case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14688 esac
14689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14690 $as_echo "$ac_try_echo") >&5
14691 (eval "$ac_compile") 2>conftest.er1
14692 ac_status=$?
14693 grep -v '^ *+' conftest.er1 >conftest.err
14694 rm -f conftest.er1
14695 cat conftest.err >&5
14696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } && {
14698 test -z "$ac_c_werror_flag" ||
14699 test ! -s conftest.err
14700 } && test -s conftest.$ac_objext; then
14701 cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h. */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 $ac_includes_default
14708 int
14709 main ()
14710 {
14711 if (sizeof ((pid_t)))
14712 return 0;
14713 ;
14714 return 0;
14715 }
14716 _ACEOF
14717 rm -f conftest.$ac_objext
14718 if { (ac_try="$ac_compile"
14719 case "(($ac_try" in
14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721 *) ac_try_echo=$ac_try;;
14722 esac
14723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14724 $as_echo "$ac_try_echo") >&5
14725 (eval "$ac_compile") 2>conftest.er1
14726 ac_status=$?
14727 grep -v '^ *+' conftest.er1 >conftest.err
14728 rm -f conftest.er1
14729 cat conftest.err >&5
14730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } && {
14732 test -z "$ac_c_werror_flag" ||
14733 test ! -s conftest.err
14734 } && test -s conftest.$ac_objext; then
14735 :
14736 else
14737 $as_echo "$as_me: failed program was:" >&5
14738 sed 's/^/| /' conftest.$ac_ext >&5
14739
14740 ac_cv_type_pid_t=yes
14741 fi
14742
14743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14744 else
14745 $as_echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748
14749 fi
14750
14751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752 fi
14753 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14754 $as_echo "$ac_cv_type_pid_t" >&6; }
14755 if test "x$ac_cv_type_pid_t" = x""yes; then
14756 :
14757 else
14758
14759 cat >>confdefs.h <<_ACEOF
14760 #define pid_t int
14761 _ACEOF
14762
14763 fi
14764
14765 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
14766 $as_echo_n "checking for size_t... " >&6; }
14767 if test "${ac_cv_type_size_t+set}" = set; then
14768 $as_echo_n "(cached) " >&6
14769 else
14770 ac_cv_type_size_t=no
14771 cat >conftest.$ac_ext <<_ACEOF
14772 /* confdefs.h. */
14773 _ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14777 $ac_includes_default
14778 int
14779 main ()
14780 {
14781 if (sizeof (size_t))
14782 return 0;
14783 ;
14784 return 0;
14785 }
14786 _ACEOF
14787 rm -f conftest.$ac_objext
14788 if { (ac_try="$ac_compile"
14789 case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14792 esac
14793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14794 $as_echo "$ac_try_echo") >&5
14795 (eval "$ac_compile") 2>conftest.er1
14796 ac_status=$?
14797 grep -v '^ *+' conftest.er1 >conftest.err
14798 rm -f conftest.er1
14799 cat conftest.err >&5
14800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } && {
14802 test -z "$ac_c_werror_flag" ||
14803 test ! -s conftest.err
14804 } && test -s conftest.$ac_objext; then
14805 cat >conftest.$ac_ext <<_ACEOF
14806 /* confdefs.h. */
14807 _ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811 $ac_includes_default
14812 int
14813 main ()
14814 {
14815 if (sizeof ((size_t)))
14816 return 0;
14817 ;
14818 return 0;
14819 }
14820 _ACEOF
14821 rm -f conftest.$ac_objext
14822 if { (ac_try="$ac_compile"
14823 case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14826 esac
14827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14828 $as_echo "$ac_try_echo") >&5
14829 (eval "$ac_compile") 2>conftest.er1
14830 ac_status=$?
14831 grep -v '^ *+' conftest.er1 >conftest.err
14832 rm -f conftest.er1
14833 cat conftest.err >&5
14834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } && {
14836 test -z "$ac_c_werror_flag" ||
14837 test ! -s conftest.err
14838 } && test -s conftest.$ac_objext; then
14839 :
14840 else
14841 $as_echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14843
14844 ac_cv_type_size_t=yes
14845 fi
14846
14847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14848 else
14849 $as_echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14851
14852
14853 fi
14854
14855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14856 fi
14857 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14858 $as_echo "$ac_cv_type_size_t" >&6; }
14859 if test "x$ac_cv_type_size_t" = x""yes; then
14860 :
14861 else
14862
14863 cat >>confdefs.h <<_ACEOF
14864 #define size_t unsigned int
14865 _ACEOF
14866
14867 fi
14868
14869 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14870 $as_echo_n "checking return type of signal handlers... " >&6; }
14871 if test "${ac_cv_type_signal+set}" = set; then
14872 $as_echo_n "(cached) " >&6
14873 else
14874 cat >conftest.$ac_ext <<_ACEOF
14875 /* confdefs.h. */
14876 _ACEOF
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h. */
14880 #include <sys/types.h>
14881 #include <signal.h>
14882
14883 int
14884 main ()
14885 {
14886 return *(signal (0, 0)) (0) == 1;
14887 ;
14888 return 0;
14889 }
14890 _ACEOF
14891 rm -f conftest.$ac_objext
14892 if { (ac_try="$ac_compile"
14893 case "(($ac_try" in
14894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895 *) ac_try_echo=$ac_try;;
14896 esac
14897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14898 $as_echo "$ac_try_echo") >&5
14899 (eval "$ac_compile") 2>conftest.er1
14900 ac_status=$?
14901 grep -v '^ *+' conftest.er1 >conftest.err
14902 rm -f conftest.er1
14903 cat conftest.err >&5
14904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } && {
14906 test -z "$ac_c_werror_flag" ||
14907 test ! -s conftest.err
14908 } && test -s conftest.$ac_objext; then
14909 ac_cv_type_signal=int
14910 else
14911 $as_echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14913
14914 ac_cv_type_signal=void
14915 fi
14916
14917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14918 fi
14919 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14920 $as_echo "$ac_cv_type_signal" >&6; }
14921
14922 cat >>confdefs.h <<_ACEOF
14923 #define RETSIGTYPE $ac_cv_type_signal
14924 _ACEOF
14925
14926
14927 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14928 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14929 if test "${ac_cv_type_uid_t+set}" = set; then
14930 $as_echo_n "(cached) " >&6
14931 else
14932 cat >conftest.$ac_ext <<_ACEOF
14933 /* confdefs.h. */
14934 _ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h. */
14938 #include <sys/types.h>
14939
14940 _ACEOF
14941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14942 $EGREP "uid_t" >/dev/null 2>&1; then
14943 ac_cv_type_uid_t=yes
14944 else
14945 ac_cv_type_uid_t=no
14946 fi
14947 rm -f conftest*
14948
14949 fi
14950 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14951 $as_echo "$ac_cv_type_uid_t" >&6; }
14952 if test $ac_cv_type_uid_t = no; then
14953
14954 cat >>confdefs.h <<\_ACEOF
14955 #define uid_t int
14956 _ACEOF
14957
14958
14959 cat >>confdefs.h <<\_ACEOF
14960 #define gid_t int
14961 _ACEOF
14962
14963 fi
14964
14965
14966 CFLAGS="$CFLAGS -Wall -Wreturn-type -Wsign-compare"
14967
14968 ac_config_files="$ac_config_files Makefile po/Makefile.in m4/Makefile include/Makefile lib/Makefile src/Makefile src/tpm_mgmt/Makefile src/cmds/Makefile src/data_mgmt/Makefile dist/tpm-tools.spec man/Makefile man/man1/Makefile man/man3/Makefile man/man8/Makefile"
14969
14970 cat >confcache <<\_ACEOF
14971 # This file is a shell script that caches the results of configure
14972 # tests run on this system so they can be shared between configure
14973 # scripts and configure runs, see configure's option --config-cache.
14974 # It is not useful on other systems. If it contains results you don't
14975 # want to keep, you may remove or edit it.
14976 #
14977 # config.status only pays attention to the cache file if you give it
14978 # the --recheck option to rerun configure.
14979 #
14980 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14981 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14982 # following values.
14983
14984 _ACEOF
14985
14986 # The following way of writing the cache mishandles newlines in values,
14987 # but we know of no workaround that is simple, portable, and efficient.
14988 # So, we kill variables containing newlines.
14989 # Ultrix sh set writes to stderr and can't be redirected directly,
14990 # and sets the high bit in the cache file unless we assign to the vars.
14991 (
14992 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14993 eval ac_val=\$$ac_var
14994 case $ac_val in #(
14995 *${as_nl}*)
14996 case $ac_var in #(
14997 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14999 esac
15000 case $ac_var in #(
15001 _ | IFS | as_nl) ;; #(
15002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15003 *) $as_unset $ac_var ;;
15004 esac ;;
15005 esac
15006 done
15007
15008 (set) 2>&1 |
15009 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15010 *${as_nl}ac_space=\ *)
15011 # `set' does not quote correctly, so add quotes (double-quote
15012 # substitution turns \\\\ into \\, and sed turns \\ into \).
15013 sed -n \
15014 "s/'/'\\\\''/g;
15015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15016 ;; #(
15017 *)
15018 # `set' quotes correctly as required by POSIX, so do not add quotes.
15019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15020 ;;
15021 esac |
15022 sort
15023 ) |
15024 sed '
15025 /^ac_cv_env_/b end
15026 t clear
15027 :clear
15028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15029 t end
15030 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15031 :end' >>confcache
15032 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15033 if test -w "$cache_file"; then
15034 test "x$cache_file" != "x/dev/null" &&
15035 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15036 $as_echo "$as_me: updating cache $cache_file" >&6;}
15037 cat confcache >$cache_file
15038 else
15039 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15040 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15041 fi
15042 fi
15043 rm -f confcache
15044
15045 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15046 # Let make expand exec_prefix.
15047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15048
15049 DEFS=-DHAVE_CONFIG_H
15050
15051 ac_libobjs=
15052 ac_ltlibobjs=
15053 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15054 # 1. Remove the extension, and $U if already installed.
15055 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15056 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15057 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15058 # will be set to the directory where LIBOBJS objects are built.
15059 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15060 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15061 done
15062 LIBOBJS=$ac_libobjs
15063
15064 LTLIBOBJS=$ac_ltlibobjs
15065
15066
15067 if test -n "$EXEEXT"; then
15068 am__EXEEXT_TRUE=
15069 am__EXEEXT_FALSE='#'
15070 else
15071 am__EXEEXT_TRUE='#'
15072 am__EXEEXT_FALSE=
15073 fi
15074
15075 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15076 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15077 Usually this means the macro was only invoked conditionally." >&5
15078 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
15079 Usually this means the macro was only invoked conditionally." >&2;}
15080 { (exit 1); exit 1; }; }
15081 fi
15082 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15083 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15084 Usually this means the macro was only invoked conditionally." >&5
15085 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15086 Usually this means the macro was only invoked conditionally." >&2;}
15087 { (exit 1); exit 1; }; }
15088 fi
15089 if test -z "${TSS_LIB_IS_12_TRUE}" && test -z "${TSS_LIB_IS_12_FALSE}"; then
15090 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_LIB_IS_12\" was never defined.
15091 Usually this means the macro was only invoked conditionally." >&5
15092 $as_echo "$as_me: error: conditional \"TSS_LIB_IS_12\" was never defined.
15093 Usually this means the macro was only invoked conditionally." >&2;}
15094 { (exit 1); exit 1; }; }
15095 fi
15096 if test -z "${TSS_LIB_IS_12_TRUE}" && test -z "${TSS_LIB_IS_12_FALSE}"; then
15097 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_LIB_IS_12\" was never defined.
15098 Usually this means the macro was only invoked conditionally." >&5
15099 $as_echo "$as_me: error: conditional \"TSS_LIB_IS_12\" was never defined.
15100 Usually this means the macro was only invoked conditionally." >&2;}
15101 { (exit 1); exit 1; }; }
15102 fi
15103 if test -z "${P11_SUPPORT_TRUE}" && test -z "${P11_SUPPORT_FALSE}"; then
15104 { { $as_echo "$as_me:$LINENO: error: conditional \"P11_SUPPORT\" was never defined.
15105 Usually this means the macro was only invoked conditionally." >&5
15106 $as_echo "$as_me: error: conditional \"P11_SUPPORT\" was never defined.
15107 Usually this means the macro was only invoked conditionally." >&2;}
15108 { (exit 1); exit 1; }; }
15109 fi
15110
15111 : ${CONFIG_STATUS=./config.status}
15112 ac_write_fail=0
15113 ac_clean_files_save=$ac_clean_files
15114 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15115 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15116 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15117 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15118 #! $SHELL
15119 # Generated by $as_me.
15120 # Run this file to recreate the current configuration.
15121 # Compiler output produced by configure, useful for debugging
15122 # configure, is in config.log if it exists.
15123
15124 debug=false
15125 ac_cs_recheck=false
15126 ac_cs_silent=false
15127 SHELL=\${CONFIG_SHELL-$SHELL}
15128 _ACEOF
15129
15130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15131 ## --------------------- ##
15132 ## M4sh Initialization. ##
15133 ## --------------------- ##
15134
15135 # Be more Bourne compatible
15136 DUALCASE=1; export DUALCASE # for MKS sh
15137 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15138 emulate sh
15139 NULLCMD=:
15140 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15141 # is contrary to our usage. Disable this feature.
15142 alias -g '${1+"$@"}'='"$@"'
15143 setopt NO_GLOB_SUBST
15144 else
15145 case `(set -o) 2>/dev/null` in
15146 *posix*) set -o posix ;;
15147 esac
15148
15149 fi
15150
15151
15152
15153
15154 # PATH needs CR
15155 # Avoid depending upon Character Ranges.
15156 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15157 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15158 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15159 as_cr_digits='0123456789'
15160 as_cr_alnum=$as_cr_Letters$as_cr_digits
15161
15162 as_nl='
15163 '
15164 export as_nl
15165 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15166 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15167 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15168 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15169 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15170 as_echo='printf %s\n'
15171 as_echo_n='printf %s'
15172 else
15173 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15174 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15175 as_echo_n='/usr/ucb/echo -n'
15176 else
15177 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15178 as_echo_n_body='eval
15179 arg=$1;
15180 case $arg in
15181 *"$as_nl"*)
15182 expr "X$arg" : "X\\(.*\\)$as_nl";
15183 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15184 esac;
15185 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15186 '
15187 export as_echo_n_body
15188 as_echo_n='sh -c $as_echo_n_body as_echo'
15189 fi
15190 export as_echo_body
15191 as_echo='sh -c $as_echo_body as_echo'
15192 fi
15193
15194 # The user is always right.
15195 if test "${PATH_SEPARATOR+set}" != set; then
15196 PATH_SEPARATOR=:
15197 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15198 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15199 PATH_SEPARATOR=';'
15200 }
15201 fi
15202
15203 # Support unset when possible.
15204 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15205 as_unset=unset
15206 else
15207 as_unset=false
15208 fi
15209
15210
15211 # IFS
15212 # We need space, tab and new line, in precisely that order. Quoting is
15213 # there to prevent editors from complaining about space-tab.
15214 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15215 # splitting by setting IFS to empty value.)
15216 IFS=" "" $as_nl"
15217
15218 # Find who we are. Look in the path if we contain no directory separator.
15219 case $0 in
15220 *[\\/]* ) as_myself=$0 ;;
15221 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15222 for as_dir in $PATH
15223 do
15224 IFS=$as_save_IFS
15225 test -z "$as_dir" && as_dir=.
15226 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15227 done
15228 IFS=$as_save_IFS
15229
15230 ;;
15231 esac
15232 # We did not find ourselves, most probably we were run as `sh COMMAND'
15233 # in which case we are not to be found in the path.
15234 if test "x$as_myself" = x; then
15235 as_myself=$0
15236 fi
15237 if test ! -f "$as_myself"; then
15238 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15239 { (exit 1); exit 1; }
15240 fi
15241
15242 # Work around bugs in pre-3.0 UWIN ksh.
15243 for as_var in ENV MAIL MAILPATH
15244 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15245 done
15246 PS1='$ '
15247 PS2='> '
15248 PS4='+ '
15249
15250 # NLS nuisances.
15251 LC_ALL=C
15252 export LC_ALL
15253 LANGUAGE=C
15254 export LANGUAGE
15255
15256 # Required to use basename.
15257 if expr a : '\(a\)' >/dev/null 2>&1 &&
15258 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15259 as_expr=expr
15260 else
15261 as_expr=false
15262 fi
15263
15264 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15265 as_basename=basename
15266 else
15267 as_basename=false
15268 fi
15269
15270
15271 # Name of the executable.
15272 as_me=`$as_basename -- "$0" ||
15273 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15274 X"$0" : 'X\(//\)$' \| \
15275 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15276 $as_echo X/"$0" |
15277 sed '/^.*\/\([^/][^/]*\)\/*$/{
15278 s//\1/
15279 q
15280 }
15281 /^X\/\(\/\/\)$/{
15282 s//\1/
15283 q
15284 }
15285 /^X\/\(\/\).*/{
15286 s//\1/
15287 q
15288 }
15289 s/.*/./; q'`
15290
15291 # CDPATH.
15292 $as_unset CDPATH
15293
15294
15295
15296 as_lineno_1=$LINENO
15297 as_lineno_2=$LINENO
15298 test "x$as_lineno_1" != "x$as_lineno_2" &&
15299 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15300
15301 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15302 # uniformly replaced by the line number. The first 'sed' inserts a
15303 # line-number line after each line using $LINENO; the second 'sed'
15304 # does the real work. The second script uses 'N' to pair each
15305 # line-number line with the line containing $LINENO, and appends
15306 # trailing '-' during substitution so that $LINENO is not a special
15307 # case at line end.
15308 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15309 # scripts with optimization help from Paolo Bonzini. Blame Lee
15310 # E. McMahon (1931-1989) for sed's syntax. :-)
15311 sed -n '
15312 p
15313 /[$]LINENO/=
15314 ' <$as_myself |
15315 sed '
15316 s/[$]LINENO.*/&-/
15317 t lineno
15318 b
15319 :lineno
15320 N
15321 :loop
15322 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15323 t loop
15324 s/-\n.*//
15325 ' >$as_me.lineno &&
15326 chmod +x "$as_me.lineno" ||
15327 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15328 { (exit 1); exit 1; }; }
15329
15330 # Don't try to exec as it changes $[0], causing all sort of problems
15331 # (the dirname of $[0] is not the place where we might find the
15332 # original and so on. Autoconf is especially sensitive to this).
15333 . "./$as_me.lineno"
15334 # Exit status is that of the last command.
15335 exit
15336 }
15337
15338
15339 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15340 as_dirname=dirname
15341 else
15342 as_dirname=false
15343 fi
15344
15345 ECHO_C= ECHO_N= ECHO_T=
15346 case `echo -n x` in
15347 -n*)
15348 case `echo 'x\c'` in
15349 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15350 *) ECHO_C='\c';;
15351 esac;;
15352 *)
15353 ECHO_N='-n';;
15354 esac
15355 if expr a : '\(a\)' >/dev/null 2>&1 &&
15356 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15357 as_expr=expr
15358 else
15359 as_expr=false
15360 fi
15361
15362 rm -f conf$$ conf$$.exe conf$$.file
15363 if test -d conf$$.dir; then
15364 rm -f conf$$.dir/conf$$.file
15365 else
15366 rm -f conf$$.dir
15367 mkdir conf$$.dir 2>/dev/null
15368 fi
15369 if (echo >conf$$.file) 2>/dev/null; then
15370 if ln -s conf$$.file conf$$ 2>/dev/null; then
15371 as_ln_s='ln -s'
15372 # ... but there are two gotchas:
15373 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15374 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15375 # In both cases, we have to default to `cp -p'.
15376 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15377 as_ln_s='cp -p'
15378 elif ln conf$$.file conf$$ 2>/dev/null; then
15379 as_ln_s=ln
15380 else
15381 as_ln_s='cp -p'
15382 fi
15383 else
15384 as_ln_s='cp -p'
15385 fi
15386 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15387 rmdir conf$$.dir 2>/dev/null
15388
15389 if mkdir -p . 2>/dev/null; then
15390 as_mkdir_p=:
15391 else
15392 test -d ./-p && rmdir ./-p
15393 as_mkdir_p=false
15394 fi
15395
15396 if test -x / >/dev/null 2>&1; then
15397 as_test_x='test -x'
15398 else
15399 if ls -dL / >/dev/null 2>&1; then
15400 as_ls_L_option=L
15401 else
15402 as_ls_L_option=
15403 fi
15404 as_test_x='
15405 eval sh -c '\''
15406 if test -d "$1"; then
15407 test -d "$1/.";
15408 else
15409 case $1 in
15410 -*)set "./$1";;
15411 esac;
15412 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15413 ???[sx]*):;;*)false;;esac;fi
15414 '\'' sh
15415 '
15416 fi
15417 as_executable_p=$as_test_x
15418
15419 # Sed expression to map a string onto a valid CPP name.
15420 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15421
15422 # Sed expression to map a string onto a valid variable name.
15423 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15424
15425
15426 exec 6>&1
15427
15428 # Save the log message, to keep $[0] and so on meaningful, and to
15429 # report actual input values of CONFIG_FILES etc. instead of their
15430 # values after options handling.
15431 ac_log="
15432 This file was extended by tpm-tools $as_me 1.3.9, which was
15433 generated by GNU Autoconf 2.63. Invocation command line was
15434
15435 CONFIG_FILES = $CONFIG_FILES
15436 CONFIG_HEADERS = $CONFIG_HEADERS
15437 CONFIG_LINKS = $CONFIG_LINKS
15438 CONFIG_COMMANDS = $CONFIG_COMMANDS
15439 $ $0 $@
15440
15441 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15442 "
15443
15444 _ACEOF
15445
15446 case $ac_config_files in *"
15447 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15448 esac
15449
15450 case $ac_config_headers in *"
15451 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15452 esac
15453
15454
15455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15456 # Files that config.status was made for.
15457 config_files="$ac_config_files"
15458 config_headers="$ac_config_headers"
15459 config_commands="$ac_config_commands"
15460
15461 _ACEOF
15462
15463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15464 ac_cs_usage="\
15465 \`$as_me' instantiates files from templates according to the
15466 current configuration.
15467
15468 Usage: $0 [OPTION]... [FILE]...
15469
15470 -h, --help print this help, then exit
15471 -V, --version print version number and configuration settings, then exit
15472 -q, --quiet, --silent
15473 do not print progress messages
15474 -d, --debug don't remove temporary files
15475 --recheck update $as_me by reconfiguring in the same conditions
15476 --file=FILE[:TEMPLATE]
15477 instantiate the configuration file FILE
15478 --header=FILE[:TEMPLATE]
15479 instantiate the configuration header FILE
15480
15481 Configuration files:
15482 $config_files
15483
15484 Configuration headers:
15485 $config_headers
15486
15487 Configuration commands:
15488 $config_commands
15489
15490 Report bugs to <bug-autoconf (at] gnu.org>."
15491
15492 _ACEOF
15493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15494 ac_cs_version="\\
15495 tpm-tools config.status 1.3.9
15496 configured by $0, generated by GNU Autoconf 2.63,
15497 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15498
15499 Copyright (C) 2008 Free Software Foundation, Inc.
15500 This config.status script is free software; the Free Software Foundation
15501 gives unlimited permission to copy, distribute and modify it."
15502
15503 ac_pwd='$ac_pwd'
15504 srcdir='$srcdir'
15505 INSTALL='$INSTALL'
15506 MKDIR_P='$MKDIR_P'
15507 AWK='$AWK'
15508 test -n "\$AWK" || AWK=awk
15509 _ACEOF
15510
15511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15512 # The default lists apply if the user does not specify any file.
15513 ac_need_defaults=:
15514 while test $# != 0
15515 do
15516 case $1 in
15517 --*=*)
15518 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15519 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15520 ac_shift=:
15521 ;;
15522 *)
15523 ac_option=$1
15524 ac_optarg=$2
15525 ac_shift=shift
15526 ;;
15527 esac
15528
15529 case $ac_option in
15530 # Handling of the options.
15531 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15532 ac_cs_recheck=: ;;
15533 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15534 $as_echo "$ac_cs_version"; exit ;;
15535 --debug | --debu | --deb | --de | --d | -d )
15536 debug=: ;;
15537 --file | --fil | --fi | --f )
15538 $ac_shift
15539 case $ac_optarg in
15540 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15541 esac
15542 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15543 ac_need_defaults=false;;
15544 --header | --heade | --head | --hea )
15545 $ac_shift
15546 case $ac_optarg in
15547 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15548 esac
15549 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15550 ac_need_defaults=false;;
15551 --he | --h)
15552 # Conflict between --help and --header
15553 { $as_echo "$as_me: error: ambiguous option: $1
15554 Try \`$0 --help' for more information." >&2
15555 { (exit 1); exit 1; }; };;
15556 --help | --hel | -h )
15557 $as_echo "$ac_cs_usage"; exit ;;
15558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15559 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15560 ac_cs_silent=: ;;
15561
15562 # This is an error.
15563 -*) { $as_echo "$as_me: error: unrecognized option: $1
15564 Try \`$0 --help' for more information." >&2
15565 { (exit 1); exit 1; }; } ;;
15566
15567 *) ac_config_targets="$ac_config_targets $1"
15568 ac_need_defaults=false ;;
15569
15570 esac
15571 shift
15572 done
15573
15574 ac_configure_extra_args=
15575
15576 if $ac_cs_silent; then
15577 exec 6>/dev/null
15578 ac_configure_extra_args="$ac_configure_extra_args --silent"
15579 fi
15580
15581 _ACEOF
15582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15583 if \$ac_cs_recheck; then
15584 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15585 shift
15586 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15587 CONFIG_SHELL='$SHELL'
15588 export CONFIG_SHELL
15589 exec "\$@"
15590 fi
15591
15592 _ACEOF
15593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15594 exec 5>>config.log
15595 {
15596 echo
15597 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15598 ## Running $as_me. ##
15599 _ASBOX
15600 $as_echo "$ac_log"
15601 } >&5
15602
15603 _ACEOF
15604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15605 #
15606 # INIT-COMMANDS
15607 #
15608 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15609
15610
15611 # The HP-UX ksh and POSIX shell print the target directory to stdout
15612 # if CDPATH is set.
15613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15614
15615 sed_quote_subst='$sed_quote_subst'
15616 double_quote_subst='$double_quote_subst'
15617 delay_variable_subst='$delay_variable_subst'
15618 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15619 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15620 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15621 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15622 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15623 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15624 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15625 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15626 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15627 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15628 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15629 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15630 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15631 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15632 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15633 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15634 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15635 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15636 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15637 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15638 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15639 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15640 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15641 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15642 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15643 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15644 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15645 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15646 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15647 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15648 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15649 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15650 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15651 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15652 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15653 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15654 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15655 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15656 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15657 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15658 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15659 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15660 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15661 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15662 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15663 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15664 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15665 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15666 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15667 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15668 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15669 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15670 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15671 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15672 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15673 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15674 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15675 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15676 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15677 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15678 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15679 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15680 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15681 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15682 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15683 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15684 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15685 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15686 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15687 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15688 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15689 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15690 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15691 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15692 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15693 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15694 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15695 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15696 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15697 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15698 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15699 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15700 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15701 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15702 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15703 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15704 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15705 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15706 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15707 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15708 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15709 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15710 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15711 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15712 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15713 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15714 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15715 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15716 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15717 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15718 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15719 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15720 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15721 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15722 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15723 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15724 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15725 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15726 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15727 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15728 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15729 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15730 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15731 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15732 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15733 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15734 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15735 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15736
15737 LTCC='$LTCC'
15738 LTCFLAGS='$LTCFLAGS'
15739 compiler='$compiler_DEFAULT'
15740
15741 # Quote evaled strings.
15742 for var in SED \
15743 GREP \
15744 EGREP \
15745 FGREP \
15746 LD \
15747 NM \
15748 LN_S \
15749 lt_SP2NL \
15750 lt_NL2SP \
15751 reload_flag \
15752 OBJDUMP \
15753 deplibs_check_method \
15754 file_magic_cmd \
15755 AR \
15756 AR_FLAGS \
15757 STRIP \
15758 RANLIB \
15759 CC \
15760 CFLAGS \
15761 compiler \
15762 lt_cv_sys_global_symbol_pipe \
15763 lt_cv_sys_global_symbol_to_cdecl \
15764 lt_cv_sys_global_symbol_to_c_name_address \
15765 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15766 SHELL \
15767 ECHO \
15768 lt_prog_compiler_no_builtin_flag \
15769 lt_prog_compiler_wl \
15770 lt_prog_compiler_pic \
15771 lt_prog_compiler_static \
15772 lt_cv_prog_compiler_c_o \
15773 need_locks \
15774 DSYMUTIL \
15775 NMEDIT \
15776 LIPO \
15777 OTOOL \
15778 OTOOL64 \
15779 shrext_cmds \
15780 export_dynamic_flag_spec \
15781 whole_archive_flag_spec \
15782 compiler_needs_object \
15783 with_gnu_ld \
15784 allow_undefined_flag \
15785 no_undefined_flag \
15786 hardcode_libdir_flag_spec \
15787 hardcode_libdir_flag_spec_ld \
15788 hardcode_libdir_separator \
15789 fix_srcfile_path \
15790 exclude_expsyms \
15791 include_expsyms \
15792 file_list_spec \
15793 variables_saved_for_relink \
15794 libname_spec \
15795 library_names_spec \
15796 soname_spec \
15797 finish_eval \
15798 old_striplib \
15799 striplib; do
15800 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15801 *[\\\\\\\`\\"\\\$]*)
15802 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15803 ;;
15804 *)
15805 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15806 ;;
15807 esac
15808 done
15809
15810 # Double-quote double-evaled strings.
15811 for var in reload_cmds \
15812 old_postinstall_cmds \
15813 old_postuninstall_cmds \
15814 old_archive_cmds \
15815 extract_expsyms_cmds \
15816 old_archive_from_new_cmds \
15817 old_archive_from_expsyms_cmds \
15818 archive_cmds \
15819 archive_expsym_cmds \
15820 module_cmds \
15821 module_expsym_cmds \
15822 export_symbols_cmds \
15823 prelink_cmds \
15824 postinstall_cmds \
15825 postuninstall_cmds \
15826 finish_cmds \
15827 sys_lib_search_path_spec \
15828 sys_lib_dlsearch_path_spec; do
15829 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15830 *[\\\\\\\`\\"\\\$]*)
15831 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15832 ;;
15833 *)
15834 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15835 ;;
15836 esac
15837 done
15838
15839 # Fix-up fallback echo if it was mangled by the above quoting rules.
15840 case \$lt_ECHO in
15841 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15842 ;;
15843 esac
15844
15845 ac_aux_dir='$ac_aux_dir'
15846 xsi_shell='$xsi_shell'
15847 lt_shell_append='$lt_shell_append'
15848
15849 # See if we are running on zsh, and set the options which allow our
15850 # commands through without removal of \ escapes INIT.
15851 if test -n "\${ZSH_VERSION+set}" ; then
15852 setopt NO_GLOB_SUBST
15853 fi
15854
15855
15856 PACKAGE='$PACKAGE'
15857 VERSION='$VERSION'
15858 TIMESTAMP='$TIMESTAMP'
15859 RM='$RM'
15860 ofile='$ofile'
15861
15862
15863
15864 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15865 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15866 # from automake < 1.5.
15867 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15868 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15869 LINGUAS="${LINGUAS-%UNSET%}"
15870
15871
15872 _ACEOF
15873
15874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15875
15876 # Handling of arguments.
15877 for ac_config_target in $ac_config_targets
15878 do
15879 case $ac_config_target in
15880 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15881 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15882 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15883 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15884 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15885 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15886 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
15887 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15888 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15889 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15890 "src/tpm_mgmt/Makefile") CONFIG_FILES="$CONFIG_FILES src/tpm_mgmt/Makefile" ;;
15891 "src/cmds/Makefile") CONFIG_FILES="$CONFIG_FILES src/cmds/Makefile" ;;
15892 "src/data_mgmt/Makefile") CONFIG_FILES="$CONFIG_FILES src/data_mgmt/Makefile" ;;
15893 "dist/tpm-tools.spec") CONFIG_FILES="$CONFIG_FILES dist/tpm-tools.spec" ;;
15894 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15895 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
15896 "man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES man/man3/Makefile" ;;
15897 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
15898
15899 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15900 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15901 { (exit 1); exit 1; }; };;
15902 esac
15903 done
15904
15905
15906 # If the user did not use the arguments to specify the items to instantiate,
15907 # then the envvar interface is used. Set only those that are not.
15908 # We use the long form for the default assignment because of an extremely
15909 # bizarre bug on SunOS 4.1.3.
15910 if $ac_need_defaults; then
15911 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15912 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15913 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15914 fi
15915
15916 # Have a temporary directory for convenience. Make it in the build tree
15917 # simply because there is no reason against having it here, and in addition,
15918 # creating and moving files from /tmp can sometimes cause problems.
15919 # Hook for its removal unless debugging.
15920 # Note that there is a small window in which the directory will not be cleaned:
15921 # after its creation but before its name has been assigned to `$tmp'.
15922 $debug ||
15923 {
15924 tmp=
15925 trap 'exit_status=$?
15926 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15927 ' 0
15928 trap '{ (exit 1); exit 1; }' 1 2 13 15
15929 }
15930 # Create a (secure) tmp directory for tmp files.
15931
15932 {
15933 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15934 test -n "$tmp" && test -d "$tmp"
15935 } ||
15936 {
15937 tmp=./conf$$-$RANDOM
15938 (umask 077 && mkdir "$tmp")
15939 } ||
15940 {
15941 $as_echo "$as_me: cannot create a temporary directory in ." >&2
15942 { (exit 1); exit 1; }
15943 }
15944
15945 # Set up the scripts for CONFIG_FILES section.
15946 # No need to generate them if there are no CONFIG_FILES.
15947 # This happens for instance with `./config.status config.h'.
15948 if test -n "$CONFIG_FILES"; then
15949
15950
15951 ac_cr='
'
15953 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15954 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15955 ac_cs_awk_cr='\\r'
15956 else
15957 ac_cs_awk_cr=$ac_cr
15958 fi
15959
15960 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15961 _ACEOF
15962
15963
15964 {
15965 echo "cat >conf$$subs.awk <<_ACEOF" &&
15966 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15967 echo "_ACEOF"
15968 } >conf$$subs.sh ||
15969 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15970 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15971 { (exit 1); exit 1; }; }
15972 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15973 ac_delim='%!_!# '
15974 for ac_last_try in false false false false false :; do
15975 . ./conf$$subs.sh ||
15976 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15977 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15978 { (exit 1); exit 1; }; }
15979
15980 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15981 if test $ac_delim_n = $ac_delim_num; then
15982 break
15983 elif $ac_last_try; then
15984 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15985 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15986 { (exit 1); exit 1; }; }
15987 else
15988 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15989 fi
15990 done
15991 rm -f conf$$subs.sh
15992
15993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15994 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15995 _ACEOF
15996 sed -n '
15997 h
15998 s/^/S["/; s/!.*/"]=/
15999 p
16000 g
16001 s/^[^!]*!//
16002 :repl
16003 t repl
16004 s/'"$ac_delim"'$//
16005 t delim
16006 :nl
16007 h
16008 s/\(.\{148\}\).*/\1/
16009 t more1
16010 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16011 p
16012 n
16013 b repl
16014 :more1
16015 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16016 p
16017 g
16018 s/.\{148\}//
16019 t nl
16020 :delim
16021 h
16022 s/\(.\{148\}\).*/\1/
16023 t more2
16024 s/["\\]/\\&/g; s/^/"/; s/$/"/
16025 p
16026 b
16027 :more2
16028 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16029 p
16030 g
16031 s/.\{148\}//
16032 t delim
16033 ' <conf$$subs.awk | sed '
16034 /^[^""]/{
16035 N
16036 s/\n//
16037 }
16038 ' >>$CONFIG_STATUS || ac_write_fail=1
16039 rm -f conf$$subs.awk
16040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16041 _ACAWK
16042 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16043 for (key in S) S_is_set[key] = 1
16044 FS = ""
16045
16046 }
16047 {
16048 line = $ 0
16049 nfields = split(line, field, "@")
16050 substed = 0
16051 len = length(field[1])
16052 for (i = 2; i < nfields; i++) {
16053 key = field[i]
16054 keylen = length(key)
16055 if (S_is_set[key]) {
16056 value = S[key]
16057 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16058 len += length(value) + length(field[++i])
16059 substed = 1
16060 } else
16061 len += 1 + keylen
16062 }
16063
16064 print line
16065 }
16066
16067 _ACAWK
16068 _ACEOF
16069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16070 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16071 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16072 else
16073 cat
16074 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16075 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16076 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16077 { (exit 1); exit 1; }; }
16078 _ACEOF
16079
16080 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16081 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16082 # trailing colons and then remove the whole line if VPATH becomes empty
16083 # (actually we leave an empty line to preserve line numbers).
16084 if test "x$srcdir" = x.; then
16085 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16086 s/:*\$(srcdir):*/:/
16087 s/:*\${srcdir}:*/:/
16088 s/:*@srcdir@:*/:/
16089 s/^\([^=]*=[ ]*\):*/\1/
16090 s/:*$//
16091 s/^[^=]*=[ ]*$//
16092 }'
16093 fi
16094
16095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16096 fi # test -n "$CONFIG_FILES"
16097
16098 # Set up the scripts for CONFIG_HEADERS section.
16099 # No need to generate them if there are no CONFIG_HEADERS.
16100 # This happens for instance with `./config.status Makefile'.
16101 if test -n "$CONFIG_HEADERS"; then
16102 cat >"$tmp/defines.awk" <<\_ACAWK ||
16103 BEGIN {
16104 _ACEOF
16105
16106 # Transform confdefs.h into an awk script `defines.awk', embedded as
16107 # here-document in config.status, that substitutes the proper values into
16108 # config.h.in to produce config.h.
16109
16110 # Create a delimiter string that does not exist in confdefs.h, to ease
16111 # handling of long lines.
16112 ac_delim='%!_!# '
16113 for ac_last_try in false false :; do
16114 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16115 if test -z "$ac_t"; then
16116 break
16117 elif $ac_last_try; then
16118 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16119 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16120 { (exit 1); exit 1; }; }
16121 else
16122 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16123 fi
16124 done
16125
16126 # For the awk script, D is an array of macro values keyed by name,
16127 # likewise P contains macro parameters if any. Preserve backslash
16128 # newline sequences.
16129
16130 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16131 sed -n '
16132 s/.\{148\}/&'"$ac_delim"'/g
16133 t rset
16134 :rset
16135 s/^[ ]*#[ ]*define[ ][ ]*/ /
16136 t def
16137 d
16138 :def
16139 s/\\$//
16140 t bsnl
16141 s/["\\]/\\&/g
16142 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16143 D["\1"]=" \3"/p
16144 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16145 d
16146 :bsnl
16147 s/["\\]/\\&/g
16148 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16149 D["\1"]=" \3\\\\\\n"\\/p
16150 t cont
16151 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16152 t cont
16153 d
16154 :cont
16155 n
16156 s/.\{148\}/&'"$ac_delim"'/g
16157 t clear
16158 :clear
16159 s/\\$//
16160 t bsnlc
16161 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16162 d
16163 :bsnlc
16164 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16165 b cont
16166 ' <confdefs.h | sed '
16167 s/'"$ac_delim"'/"\\\
16168 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16169
16170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16171 for (key in D) D_is_set[key] = 1
16172 FS = ""
16173 }
16174 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16175 line = \$ 0
16176 split(line, arg, " ")
16177 if (arg[1] == "#") {
16178 defundef = arg[2]
16179 mac1 = arg[3]
16180 } else {
16181 defundef = substr(arg[1], 2)
16182 mac1 = arg[2]
16183 }
16184 split(mac1, mac2, "(") #)
16185 macro = mac2[1]
16186 prefix = substr(line, 1, index(line, defundef) - 1)
16187 if (D_is_set[macro]) {
16188 # Preserve the white space surrounding the "#".
16189 print prefix "define", macro P[macro] D[macro]
16190 next
16191 } else {
16192 # Replace #undef with comments. This is necessary, for example,
16193 # in the case of _POSIX_SOURCE, which is predefined and required
16194 # on some systems where configure will not decide to define it.
16195 if (defundef == "undef") {
16196 print "/*", prefix defundef, macro, "*/"
16197 next
16198 }
16199 }
16200 }
16201 { print }
16202 _ACAWK
16203 _ACEOF
16204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16205 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16206 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16207 { (exit 1); exit 1; }; }
16208 fi # test -n "$CONFIG_HEADERS"
16209
16210
16211 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16212 shift
16213 for ac_tag
16214 do
16215 case $ac_tag in
16216 :[FHLC]) ac_mode=$ac_tag; continue;;
16217 esac
16218 case $ac_mode$ac_tag in
16219 :[FHL]*:*);;
16220 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16221 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16222 { (exit 1); exit 1; }; };;
16223 :[FH]-) ac_tag=-:-;;
16224 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16225 esac
16226 ac_save_IFS=$IFS
16227 IFS=:
16228 set x $ac_tag
16229 IFS=$ac_save_IFS
16230 shift
16231 ac_file=$1
16232 shift
16233
16234 case $ac_mode in
16235 :L) ac_source=$1;;
16236 :[FH])
16237 ac_file_inputs=
16238 for ac_f
16239 do
16240 case $ac_f in
16241 -) ac_f="$tmp/stdin";;
16242 *) # Look for the file first in the build tree, then in the source tree
16243 # (if the path is not absolute). The absolute path cannot be DOS-style,
16244 # because $ac_f cannot contain `:'.
16245 test -f "$ac_f" ||
16246 case $ac_f in
16247 [\\/$]*) false;;
16248 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16249 esac ||
16250 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16251 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16252 { (exit 1); exit 1; }; };;
16253 esac
16254 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16255 ac_file_inputs="$ac_file_inputs '$ac_f'"
16256 done
16257
16258 # Let's still pretend it is `configure' which instantiates (i.e., don't
16259 # use $as_me), people would be surprised to read:
16260 # /* config.h. Generated by config.status. */
16261 configure_input='Generated from '`
16262 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16263 `' by configure.'
16264 if test x"$ac_file" != x-; then
16265 configure_input="$ac_file. $configure_input"
16266 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16267 $as_echo "$as_me: creating $ac_file" >&6;}
16268 fi
16269 # Neutralize special characters interpreted by sed in replacement strings.
16270 case $configure_input in #(
16271 *\&* | *\|* | *\\* )
16272 ac_sed_conf_input=`$as_echo "$configure_input" |
16273 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16274 *) ac_sed_conf_input=$configure_input;;
16275 esac
16276
16277 case $ac_tag in
16278 *:-:* | *:-) cat >"$tmp/stdin" \
16279 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16280 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16281 { (exit 1); exit 1; }; } ;;
16282 esac
16283 ;;
16284 esac
16285
16286 ac_dir=`$as_dirname -- "$ac_file" ||
16287 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16288 X"$ac_file" : 'X\(//\)[^/]' \| \
16289 X"$ac_file" : 'X\(//\)$' \| \
16290 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16291 $as_echo X"$ac_file" |
16292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16293 s//\1/
16294 q
16295 }
16296 /^X\(\/\/\)[^/].*/{
16297 s//\1/
16298 q
16299 }
16300 /^X\(\/\/\)$/{
16301 s//\1/
16302 q
16303 }
16304 /^X\(\/\).*/{
16305 s//\1/
16306 q
16307 }
16308 s/.*/./; q'`
16309 { as_dir="$ac_dir"
16310 case $as_dir in #(
16311 -*) as_dir=./$as_dir;;
16312 esac
16313 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16314 as_dirs=
16315 while :; do
16316 case $as_dir in #(
16317 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16318 *) as_qdir=$as_dir;;
16319 esac
16320 as_dirs="'$as_qdir' $as_dirs"
16321 as_dir=`$as_dirname -- "$as_dir" ||
16322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16323 X"$as_dir" : 'X\(//\)[^/]' \| \
16324 X"$as_dir" : 'X\(//\)$' \| \
16325 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16326 $as_echo X"$as_dir" |
16327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16328 s//\1/
16329 q
16330 }
16331 /^X\(\/\/\)[^/].*/{
16332 s//\1/
16333 q
16334 }
16335 /^X\(\/\/\)$/{
16336 s//\1/
16337 q
16338 }
16339 /^X\(\/\).*/{
16340 s//\1/
16341 q
16342 }
16343 s/.*/./; q'`
16344 test -d "$as_dir" && break
16345 done
16346 test -z "$as_dirs" || eval "mkdir $as_dirs"
16347 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16348 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16349 { (exit 1); exit 1; }; }; }
16350 ac_builddir=.
16351
16352 case "$ac_dir" in
16353 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16354 *)
16355 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16356 # A ".." for each directory in $ac_dir_suffix.
16357 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16358 case $ac_top_builddir_sub in
16359 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16360 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16361 esac ;;
16362 esac
16363 ac_abs_top_builddir=$ac_pwd
16364 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16365 # for backward compatibility:
16366 ac_top_builddir=$ac_top_build_prefix
16367
16368 case $srcdir in
16369 .) # We are building in place.
16370 ac_srcdir=.
16371 ac_top_srcdir=$ac_top_builddir_sub
16372 ac_abs_top_srcdir=$ac_pwd ;;
16373 [\\/]* | ?:[\\/]* ) # Absolute name.
16374 ac_srcdir=$srcdir$ac_dir_suffix;
16375 ac_top_srcdir=$srcdir
16376 ac_abs_top_srcdir=$srcdir ;;
16377 *) # Relative name.
16378 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16379 ac_top_srcdir=$ac_top_build_prefix$srcdir
16380 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16381 esac
16382 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16383
16384
16385 case $ac_mode in
16386 :F)
16387 #
16388 # CONFIG_FILE
16389 #
16390
16391 case $INSTALL in
16392 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16393 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16394 esac
16395 ac_MKDIR_P=$MKDIR_P
16396 case $MKDIR_P in
16397 [\\/$]* | ?:[\\/]* ) ;;
16398 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16399 esac
16400 _ACEOF
16401
16402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16403 # If the template does not know about datarootdir, expand it.
16404 # FIXME: This hack should be removed a few years after 2.60.
16405 ac_datarootdir_hack=; ac_datarootdir_seen=
16406
16407 ac_sed_dataroot='
16408 /datarootdir/ {
16409 p
16410 q
16411 }
16412 /@datadir@/p
16413 /@docdir@/p
16414 /@infodir@/p
16415 /@localedir@/p
16416 /@mandir@/p
16417 '
16418 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16419 *datarootdir*) ac_datarootdir_seen=yes;;
16420 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16421 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16422 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16423 _ACEOF
16424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16425 ac_datarootdir_hack='
16426 s&@datadir@&$datadir&g
16427 s&@docdir@&$docdir&g
16428 s&@infodir@&$infodir&g
16429 s&@localedir@&$localedir&g
16430 s&@mandir@&$mandir&g
16431 s&\\\${datarootdir}&$datarootdir&g' ;;
16432 esac
16433 _ACEOF
16434
16435 # Neutralize VPATH when `$srcdir' = `.'.
16436 # Shell code in configure.ac might set extrasub.
16437 # FIXME: do we really want to maintain this feature?
16438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16439 ac_sed_extra="$ac_vpsub
16440 $extrasub
16441 _ACEOF
16442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16443 :t
16444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16445 s|@configure_input@|$ac_sed_conf_input|;t t
16446 s&@top_builddir@&$ac_top_builddir_sub&;t t
16447 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16448 s&@srcdir@&$ac_srcdir&;t t
16449 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16450 s&@top_srcdir@&$ac_top_srcdir&;t t
16451 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16452 s&@builddir@&$ac_builddir&;t t
16453 s&@abs_builddir@&$ac_abs_builddir&;t t
16454 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16455 s&@INSTALL@&$ac_INSTALL&;t t
16456 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16457 $ac_datarootdir_hack
16458 "
16459 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16460 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16461 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16462 { (exit 1); exit 1; }; }
16463
16464 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16465 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16466 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16467 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16468 which seems to be undefined. Please make sure it is defined." >&5
16469 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16470 which seems to be undefined. Please make sure it is defined." >&2;}
16471
16472 rm -f "$tmp/stdin"
16473 case $ac_file in
16474 -) cat "$tmp/out" && rm -f "$tmp/out";;
16475 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16476 esac \
16477 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16478 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16479 { (exit 1); exit 1; }; }
16480 ;;
16481 :H)
16482 #
16483 # CONFIG_HEADER
16484 #
16485 if test x"$ac_file" != x-; then
16486 {
16487 $as_echo "/* $configure_input */" \
16488 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16489 } >"$tmp/config.h" \
16490 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16491 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16492 { (exit 1); exit 1; }; }
16493 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16494 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16495 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16496 else
16497 rm -f "$ac_file"
16498 mv "$tmp/config.h" "$ac_file" \
16499 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16500 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16501 { (exit 1); exit 1; }; }
16502 fi
16503 else
16504 $as_echo "/* $configure_input */" \
16505 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16506 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16507 $as_echo "$as_me: error: could not create -" >&2;}
16508 { (exit 1); exit 1; }; }
16509 fi
16510 # Compute "$ac_file"'s index in $config_headers.
16511 _am_arg="$ac_file"
16512 _am_stamp_count=1
16513 for _am_header in $config_headers :; do
16514 case $_am_header in
16515 $_am_arg | $_am_arg:* )
16516 break ;;
16517 * )
16518 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16519 esac
16520 done
16521 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16522 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16523 X"$_am_arg" : 'X\(//\)[^/]' \| \
16524 X"$_am_arg" : 'X\(//\)$' \| \
16525 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16526 $as_echo X"$_am_arg" |
16527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16528 s//\1/
16529 q
16530 }
16531 /^X\(\/\/\)[^/].*/{
16532 s//\1/
16533 q
16534 }
16535 /^X\(\/\/\)$/{
16536 s//\1/
16537 q
16538 }
16539 /^X\(\/\).*/{
16540 s//\1/
16541 q
16542 }
16543 s/.*/./; q'`/stamp-h$_am_stamp_count
16544 ;;
16545
16546 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16547 $as_echo "$as_me: executing $ac_file commands" >&6;}
16548 ;;
16549 esac
16550
16551
16552 case $ac_file$ac_mode in
16553 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16554 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16555 # are listed without --file. Let's play safe and only enable the eval
16556 # if we detect the quoting.
16557 case $CONFIG_FILES in
16558 *\'*) eval set x "$CONFIG_FILES" ;;
16559 *) set x $CONFIG_FILES ;;
16560 esac
16561 shift
16562 for mf
16563 do
16564 # Strip MF so we end up with the name of the file.
16565 mf=`echo "$mf" | sed -e 's/:.*$//'`
16566 # Check whether this is an Automake generated Makefile or not.
16567 # We used to match only the files named `Makefile.in', but
16568 # some people rename them; so instead we look at the file content.
16569 # Grep'ing the first line is not enough: some people post-process
16570 # each Makefile.in and add a new line on top of each file to say so.
16571 # Grep'ing the whole file is not good either: AIX grep has a line
16572 # limit of 2048, but all sed's we know have understand at least 4000.
16573 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16574 dirpart=`$as_dirname -- "$mf" ||
16575 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16576 X"$mf" : 'X\(//\)[^/]' \| \
16577 X"$mf" : 'X\(//\)$' \| \
16578 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16579 $as_echo X"$mf" |
16580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16581 s//\1/
16582 q
16583 }
16584 /^X\(\/\/\)[^/].*/{
16585 s//\1/
16586 q
16587 }
16588 /^X\(\/\/\)$/{
16589 s//\1/
16590 q
16591 }
16592 /^X\(\/\).*/{
16593 s//\1/
16594 q
16595 }
16596 s/.*/./; q'`
16597 else
16598 continue
16599 fi
16600 # Extract the definition of DEPDIR, am__include, and am__quote
16601 # from the Makefile without running `make'.
16602 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16603 test -z "$DEPDIR" && continue
16604 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16605 test -z "am__include" && continue
16606 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16607 # When using ansi2knr, U may be empty or an underscore; expand it
16608 U=`sed -n 's/^U = //p' < "$mf"`
16609 # Find all dependency output files, they are included files with
16610 # $(DEPDIR) in their names. We invoke sed twice because it is the
16611 # simplest approach to changing $(DEPDIR) to its actual value in the
16612 # expansion.
16613 for file in `sed -n "
16614 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16615 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16616 # Make sure the directory exists.
16617 test -f "$dirpart/$file" && continue
16618 fdir=`$as_dirname -- "$file" ||
16619 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16620 X"$file" : 'X\(//\)[^/]' \| \
16621 X"$file" : 'X\(//\)$' \| \
16622 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16623 $as_echo X"$file" |
16624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16625 s//\1/
16626 q
16627 }
16628 /^X\(\/\/\)[^/].*/{
16629 s//\1/
16630 q
16631 }
16632 /^X\(\/\/\)$/{
16633 s//\1/
16634 q
16635 }
16636 /^X\(\/\).*/{
16637 s//\1/
16638 q
16639 }
16640 s/.*/./; q'`
16641 { as_dir=$dirpart/$fdir
16642 case $as_dir in #(
16643 -*) as_dir=./$as_dir;;
16644 esac
16645 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16646 as_dirs=
16647 while :; do
16648 case $as_dir in #(
16649 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16650 *) as_qdir=$as_dir;;
16651 esac
16652 as_dirs="'$as_qdir' $as_dirs"
16653 as_dir=`$as_dirname -- "$as_dir" ||
16654 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16655 X"$as_dir" : 'X\(//\)[^/]' \| \
16656 X"$as_dir" : 'X\(//\)$' \| \
16657 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16658 $as_echo X"$as_dir" |
16659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16660 s//\1/
16661 q
16662 }
16663 /^X\(\/\/\)[^/].*/{
16664 s//\1/
16665 q
16666 }
16667 /^X\(\/\/\)$/{
16668 s//\1/
16669 q
16670 }
16671 /^X\(\/\).*/{
16672 s//\1/
16673 q
16674 }
16675 s/.*/./; q'`
16676 test -d "$as_dir" && break
16677 done
16678 test -z "$as_dirs" || eval "mkdir $as_dirs"
16679 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16680 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16681 { (exit 1); exit 1; }; }; }
16682 # echo "creating $dirpart/$file"
16683 echo '# dummy' > "$dirpart/$file"
16684 done
16685 done
16686 }
16687 ;;
16688 "libtool":C)
16689
16690 # See if we are running on zsh, and set the options which allow our
16691 # commands through without removal of \ escapes.
16692 if test -n "${ZSH_VERSION+set}" ; then
16693 setopt NO_GLOB_SUBST
16694 fi
16695
16696 cfgfile="${ofile}T"
16697 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16698 $RM "$cfgfile"
16699
16700 cat <<_LT_EOF >> "$cfgfile"
16701 #! $SHELL
16702
16703 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16704 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16705 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16706 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16707 #
16708 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16709 # 2006, 2007, 2008 Free Software Foundation, Inc.
16710 # Written by Gordon Matzigkeit, 1996
16711 #
16712 # This file is part of GNU Libtool.
16713 #
16714 # GNU Libtool is free software; you can redistribute it and/or
16715 # modify it under the terms of the GNU General Public License as
16716 # published by the Free Software Foundation; either version 2 of
16717 # the License, or (at your option) any later version.
16718 #
16719 # As a special exception to the GNU General Public License,
16720 # if you distribute this file as part of a program or library that
16721 # is built using GNU Libtool, you may include this file under the
16722 # same distribution terms that you use for the rest of that program.
16723 #
16724 # GNU Libtool is distributed in the hope that it will be useful,
16725 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16726 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16727 # GNU General Public License for more details.
16728 #
16729 # You should have received a copy of the GNU General Public License
16730 # along with GNU Libtool; see the file COPYING. If not, a copy
16731 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16732 # obtained by writing to the Free Software Foundation, Inc.,
16733 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16734
16735
16736 # The names of the tagged configurations supported by this script.
16737 available_tags=""
16738
16739 # ### BEGIN LIBTOOL CONFIG
16740
16741 # Which release of libtool.m4 was used?
16742 macro_version=$macro_version
16743 macro_revision=$macro_revision
16744
16745 # Whether or not to build shared libraries.
16746 build_libtool_libs=$enable_shared
16747
16748 # Whether or not to build static libraries.
16749 build_old_libs=$enable_static
16750
16751 # What type of objects to build.
16752 pic_mode=$pic_mode
16753
16754 # Whether or not to optimize for fast installation.
16755 fast_install=$enable_fast_install
16756
16757 # The host system.
16758 host_alias=$host_alias
16759 host=$host
16760 host_os=$host_os
16761
16762 # The build system.
16763 build_alias=$build_alias
16764 build=$build
16765 build_os=$build_os
16766
16767 # A sed program that does not truncate output.
16768 SED=$lt_SED
16769
16770 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16771 Xsed="\$SED -e 1s/^X//"
16772
16773 # A grep program that handles long lines.
16774 GREP=$lt_GREP
16775
16776 # An ERE matcher.
16777 EGREP=$lt_EGREP
16778
16779 # A literal string matcher.
16780 FGREP=$lt_FGREP
16781
16782 # A BSD- or MS-compatible name lister.
16783 NM=$lt_NM
16784
16785 # Whether we need soft or hard links.
16786 LN_S=$lt_LN_S
16787
16788 # What is the maximum length of a command?
16789 max_cmd_len=$max_cmd_len
16790
16791 # Object file suffix (normally "o").
16792 objext=$ac_objext
16793
16794 # Executable file suffix (normally "").
16795 exeext=$exeext
16796
16797 # whether the shell understands "unset".
16798 lt_unset=$lt_unset
16799
16800 # turn spaces into newlines.
16801 SP2NL=$lt_lt_SP2NL
16802
16803 # turn newlines into spaces.
16804 NL2SP=$lt_lt_NL2SP
16805
16806 # How to create reloadable object files.
16807 reload_flag=$lt_reload_flag
16808 reload_cmds=$lt_reload_cmds
16809
16810 # An object symbol dumper.
16811 OBJDUMP=$lt_OBJDUMP
16812
16813 # Method to check whether dependent libraries are shared objects.
16814 deplibs_check_method=$lt_deplibs_check_method
16815
16816 # Command to use when deplibs_check_method == "file_magic".
16817 file_magic_cmd=$lt_file_magic_cmd
16818
16819 # The archiver.
16820 AR=$lt_AR
16821 AR_FLAGS=$lt_AR_FLAGS
16822
16823 # A symbol stripping program.
16824 STRIP=$lt_STRIP
16825
16826 # Commands used to install an old-style archive.
16827 RANLIB=$lt_RANLIB
16828 old_postinstall_cmds=$lt_old_postinstall_cmds
16829 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16830
16831 # A C compiler.
16832 LTCC=$lt_CC
16833
16834 # LTCC compiler flags.
16835 LTCFLAGS=$lt_CFLAGS
16836
16837 # Take the output of nm and produce a listing of raw symbols and C names.
16838 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16839
16840 # Transform the output of nm in a proper C declaration.
16841 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16842
16843 # Transform the output of nm in a C name address pair.
16844 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16845
16846 # Transform the output of nm in a C name address pair when lib prefix is needed.
16847 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16848
16849 # The name of the directory that contains temporary libtool files.
16850 objdir=$objdir
16851
16852 # Shell to use when invoking shell scripts.
16853 SHELL=$lt_SHELL
16854
16855 # An echo program that does not interpret backslashes.
16856 ECHO=$lt_ECHO
16857
16858 # Used to examine libraries when file_magic_cmd begins with "file".
16859 MAGIC_CMD=$MAGIC_CMD
16860
16861 # Must we lock files when doing compilation?
16862 need_locks=$lt_need_locks
16863
16864 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16865 DSYMUTIL=$lt_DSYMUTIL
16866
16867 # Tool to change global to local symbols on Mac OS X.
16868 NMEDIT=$lt_NMEDIT
16869
16870 # Tool to manipulate fat objects and archives on Mac OS X.
16871 LIPO=$lt_LIPO
16872
16873 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16874 OTOOL=$lt_OTOOL
16875
16876 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16877 OTOOL64=$lt_OTOOL64
16878
16879 # Old archive suffix (normally "a").
16880 libext=$libext
16881
16882 # Shared library suffix (normally ".so").
16883 shrext_cmds=$lt_shrext_cmds
16884
16885 # The commands to extract the exported symbol list from a shared archive.
16886 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16887
16888 # Variables whose values should be saved in libtool wrapper scripts and
16889 # restored at link time.
16890 variables_saved_for_relink=$lt_variables_saved_for_relink
16891
16892 # Do we need the "lib" prefix for modules?
16893 need_lib_prefix=$need_lib_prefix
16894
16895 # Do we need a version for libraries?
16896 need_version=$need_version
16897
16898 # Library versioning type.
16899 version_type=$version_type
16900
16901 # Shared library runtime path variable.
16902 runpath_var=$runpath_var
16903
16904 # Shared library path variable.
16905 shlibpath_var=$shlibpath_var
16906
16907 # Is shlibpath searched before the hard-coded library search path?
16908 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16909
16910 # Format of library name prefix.
16911 libname_spec=$lt_libname_spec
16912
16913 # List of archive names. First name is the real one, the rest are links.
16914 # The last name is the one that the linker finds with -lNAME
16915 library_names_spec=$lt_library_names_spec
16916
16917 # The coded name of the library, if different from the real name.
16918 soname_spec=$lt_soname_spec
16919
16920 # Command to use after installation of a shared archive.
16921 postinstall_cmds=$lt_postinstall_cmds
16922
16923 # Command to use after uninstallation of a shared archive.
16924 postuninstall_cmds=$lt_postuninstall_cmds
16925
16926 # Commands used to finish a libtool library installation in a directory.
16927 finish_cmds=$lt_finish_cmds
16928
16929 # As "finish_cmds", except a single script fragment to be evaled but
16930 # not shown.
16931 finish_eval=$lt_finish_eval
16932
16933 # Whether we should hardcode library paths into libraries.
16934 hardcode_into_libs=$hardcode_into_libs
16935
16936 # Compile-time system search path for libraries.
16937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16938
16939 # Run-time system search path for libraries.
16940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16941
16942 # Whether dlopen is supported.
16943 dlopen_support=$enable_dlopen
16944
16945 # Whether dlopen of programs is supported.
16946 dlopen_self=$enable_dlopen_self
16947
16948 # Whether dlopen of statically linked programs is supported.
16949 dlopen_self_static=$enable_dlopen_self_static
16950
16951 # Commands to strip libraries.
16952 old_striplib=$lt_old_striplib
16953 striplib=$lt_striplib
16954
16955
16956 # The linker used to build libraries.
16957 LD=$lt_LD
16958
16959 # Commands used to build an old-style archive.
16960 old_archive_cmds=$lt_old_archive_cmds
16961
16962 # A language specific compiler.
16963 CC=$lt_compiler
16964
16965 # Is the compiler the GNU compiler?
16966 with_gcc=$GCC
16967
16968 # Compiler flag to turn off builtin functions.
16969 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16970
16971 # How to pass a linker flag through the compiler.
16972 wl=$lt_lt_prog_compiler_wl
16973
16974 # Additional compiler flags for building library objects.
16975 pic_flag=$lt_lt_prog_compiler_pic
16976
16977 # Compiler flag to prevent dynamic linking.
16978 link_static_flag=$lt_lt_prog_compiler_static
16979
16980 # Does compiler simultaneously support -c and -o options?
16981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16982
16983 # Whether or not to add -lc for building shared libraries.
16984 build_libtool_need_lc=$archive_cmds_need_lc
16985
16986 # Whether or not to disallow shared libs when runtime libs are static.
16987 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16988
16989 # Compiler flag to allow reflexive dlopens.
16990 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16991
16992 # Compiler flag to generate shared objects directly from archives.
16993 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16994
16995 # Whether the compiler copes with passing no objects directly.
16996 compiler_needs_object=$lt_compiler_needs_object
16997
16998 # Create an old-style archive from a shared archive.
16999 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17000
17001 # Create a temporary old-style archive to link instead of a shared archive.
17002 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17003
17004 # Commands used to build a shared archive.
17005 archive_cmds=$lt_archive_cmds
17006 archive_expsym_cmds=$lt_archive_expsym_cmds
17007
17008 # Commands used to build a loadable module if different from building
17009 # a shared archive.
17010 module_cmds=$lt_module_cmds
17011 module_expsym_cmds=$lt_module_expsym_cmds
17012
17013 # Whether we are building with GNU ld or not.
17014 with_gnu_ld=$lt_with_gnu_ld
17015
17016 # Flag that allows shared libraries with undefined symbols to be built.
17017 allow_undefined_flag=$lt_allow_undefined_flag
17018
17019 # Flag that enforces no undefined symbols.
17020 no_undefined_flag=$lt_no_undefined_flag
17021
17022 # Flag to hardcode \$libdir into a binary during linking.
17023 # This must work even if \$libdir does not exist
17024 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17025
17026 # If ld is used when linking, flag to hardcode \$libdir into a binary
17027 # during linking. This must work even if \$libdir does not exist.
17028 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17029
17030 # Whether we need a single "-rpath" flag with a separated argument.
17031 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17032
17033 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17034 # DIR into the resulting binary.
17035 hardcode_direct=$hardcode_direct
17036
17037 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17038 # DIR into the resulting binary and the resulting library dependency is
17039 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17040 # library is relocated.
17041 hardcode_direct_absolute=$hardcode_direct_absolute
17042
17043 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17044 # into the resulting binary.
17045 hardcode_minus_L=$hardcode_minus_L
17046
17047 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17048 # into the resulting binary.
17049 hardcode_shlibpath_var=$hardcode_shlibpath_var
17050
17051 # Set to "yes" if building a shared library automatically hardcodes DIR
17052 # into the library and all subsequent libraries and executables linked
17053 # against it.
17054 hardcode_automatic=$hardcode_automatic
17055
17056 # Set to yes if linker adds runtime paths of dependent libraries
17057 # to runtime path list.
17058 inherit_rpath=$inherit_rpath
17059
17060 # Whether libtool must link a program against all its dependency libraries.
17061 link_all_deplibs=$link_all_deplibs
17062
17063 # Fix the shell variable \$srcfile for the compiler.
17064 fix_srcfile_path=$lt_fix_srcfile_path
17065
17066 # Set to "yes" if exported symbols are required.
17067 always_export_symbols=$always_export_symbols
17068
17069 # The commands to list exported symbols.
17070 export_symbols_cmds=$lt_export_symbols_cmds
17071
17072 # Symbols that should not be listed in the preloaded symbols.
17073 exclude_expsyms=$lt_exclude_expsyms
17074
17075 # Symbols that must always be exported.
17076 include_expsyms=$lt_include_expsyms
17077
17078 # Commands necessary for linking programs (against libraries) with templates.
17079 prelink_cmds=$lt_prelink_cmds
17080
17081 # Specify filename containing input files.
17082 file_list_spec=$lt_file_list_spec
17083
17084 # How to hardcode a shared library path into an executable.
17085 hardcode_action=$hardcode_action
17086
17087 # ### END LIBTOOL CONFIG
17088
17089 _LT_EOF
17090
17091 case $host_os in
17092 aix3*)
17093 cat <<\_LT_EOF >> "$cfgfile"
17094 # AIX sometimes has problems with the GCC collect2 program. For some
17095 # reason, if we set the COLLECT_NAMES environment variable, the problems
17096 # vanish in a puff of smoke.
17097 if test "X${COLLECT_NAMES+set}" != Xset; then
17098 COLLECT_NAMES=
17099 export COLLECT_NAMES
17100 fi
17101 _LT_EOF
17102 ;;
17103 esac
17104
17105
17106 ltmain="$ac_aux_dir/ltmain.sh"
17107
17108
17109 # We use sed instead of cat because bash on DJGPP gets confused if
17110 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17111 # text mode, it properly converts lines to CR/LF. This bash problem
17112 # is reportedly fixed, but why not run on old versions too?
17113 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17114 || (rm -f "$cfgfile"; exit 1)
17115
17116 case $xsi_shell in
17117 yes)
17118 cat << \_LT_EOF >> "$cfgfile"
17119
17120 # func_dirname file append nondir_replacement
17121 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17122 # otherwise set result to NONDIR_REPLACEMENT.
17123 func_dirname ()
17124 {
17125 case ${1} in
17126 */*) func_dirname_result="${1%/*}${2}" ;;
17127 * ) func_dirname_result="${3}" ;;
17128 esac
17129 }
17130
17131 # func_basename file
17132 func_basename ()
17133 {
17134 func_basename_result="${1##*/}"
17135 }
17136
17137 # func_dirname_and_basename file append nondir_replacement
17138 # perform func_basename and func_dirname in a single function
17139 # call:
17140 # dirname: Compute the dirname of FILE. If nonempty,
17141 # add APPEND to the result, otherwise set result
17142 # to NONDIR_REPLACEMENT.
17143 # value returned in "$func_dirname_result"
17144 # basename: Compute filename of FILE.
17145 # value retuned in "$func_basename_result"
17146 # Implementation must be kept synchronized with func_dirname
17147 # and func_basename. For efficiency, we do not delegate to
17148 # those functions but instead duplicate the functionality here.
17149 func_dirname_and_basename ()
17150 {
17151 case ${1} in
17152 */*) func_dirname_result="${1%/*}${2}" ;;
17153 * ) func_dirname_result="${3}" ;;
17154 esac
17155 func_basename_result="${1##*/}"
17156 }
17157
17158 # func_stripname prefix suffix name
17159 # strip PREFIX and SUFFIX off of NAME.
17160 # PREFIX and SUFFIX must not contain globbing or regex special
17161 # characters, hashes, percent signs, but SUFFIX may contain a leading
17162 # dot (in which case that matches only a dot).
17163 func_stripname ()
17164 {
17165 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17166 # positional parameters, so assign one to ordinary parameter first.
17167 func_stripname_result=${3}
17168 func_stripname_result=${func_stripname_result#"${1}"}
17169 func_stripname_result=${func_stripname_result%"${2}"}
17170 }
17171
17172 # func_opt_split
17173 func_opt_split ()
17174 {
17175 func_opt_split_opt=${1%%=*}
17176 func_opt_split_arg=${1#*=}
17177 }
17178
17179 # func_lo2o object
17180 func_lo2o ()
17181 {
17182 case ${1} in
17183 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17184 *) func_lo2o_result=${1} ;;
17185 esac
17186 }
17187
17188 # func_xform libobj-or-source
17189 func_xform ()
17190 {
17191 func_xform_result=${1%.*}.lo
17192 }
17193
17194 # func_arith arithmetic-term...
17195 func_arith ()
17196 {
17197 func_arith_result=$(( $* ))
17198 }
17199
17200 # func_len string
17201 # STRING may not start with a hyphen.
17202 func_len ()
17203 {
17204 func_len_result=${#1}
17205 }
17206
17207 _LT_EOF
17208 ;;
17209 *) # Bourne compatible functions.
17210 cat << \_LT_EOF >> "$cfgfile"
17211
17212 # func_dirname file append nondir_replacement
17213 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17214 # otherwise set result to NONDIR_REPLACEMENT.
17215 func_dirname ()
17216 {
17217 # Extract subdirectory from the argument.
17218 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17219 if test "X$func_dirname_result" = "X${1}"; then
17220 func_dirname_result="${3}"
17221 else
17222 func_dirname_result="$func_dirname_result${2}"
17223 fi
17224 }
17225
17226 # func_basename file
17227 func_basename ()
17228 {
17229 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17230 }
17231
17232
17233 # func_stripname prefix suffix name
17234 # strip PREFIX and SUFFIX off of NAME.
17235 # PREFIX and SUFFIX must not contain globbing or regex special
17236 # characters, hashes, percent signs, but SUFFIX may contain a leading
17237 # dot (in which case that matches only a dot).
17238 # func_strip_suffix prefix name
17239 func_stripname ()
17240 {
17241 case ${2} in
17242 .*) func_stripname_result=`$ECHO "X${3}" \
17243 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17244 *) func_stripname_result=`$ECHO "X${3}" \
17245 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17246 esac
17247 }
17248
17249 # sed scripts:
17250 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17251 my_sed_long_arg='1s/^-[^=]*=//'
17252
17253 # func_opt_split
17254 func_opt_split ()
17255 {
17256 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17257 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17258 }
17259
17260 # func_lo2o object
17261 func_lo2o ()
17262 {
17263 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17264 }
17265
17266 # func_xform libobj-or-source
17267 func_xform ()
17268 {
17269 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17270 }
17271
17272 # func_arith arithmetic-term...
17273 func_arith ()
17274 {
17275 func_arith_result=`expr "$@"`
17276 }
17277
17278 # func_len string
17279 # STRING may not start with a hyphen.
17280 func_len ()
17281 {
17282 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17283 }
17284
17285 _LT_EOF
17286 esac
17287
17288 case $lt_shell_append in
17289 yes)
17290 cat << \_LT_EOF >> "$cfgfile"
17291
17292 # func_append var value
17293 # Append VALUE to the end of shell variable VAR.
17294 func_append ()
17295 {
17296 eval "$1+=\$2"
17297 }
17298 _LT_EOF
17299 ;;
17300 *)
17301 cat << \_LT_EOF >> "$cfgfile"
17302
17303 # func_append var value
17304 # Append VALUE to the end of shell variable VAR.
17305 func_append ()
17306 {
17307 eval "$1=\$$1\$2"
17308 }
17309
17310 _LT_EOF
17311 ;;
17312 esac
17313
17314
17315 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17316 || (rm -f "$cfgfile"; exit 1)
17317
17318 mv -f "$cfgfile" "$ofile" ||
17319 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17320 chmod +x "$ofile"
17321
17322 ;;
17323 "po-directories":C)
17324 for ac_file in $CONFIG_FILES; do
17325 # Support "outfile[:infile[:infile...]]"
17326 case "$ac_file" in
17327 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17328 esac
17329 # PO directories have a Makefile.in generated from Makefile.in.in.
17330 case "$ac_file" in */Makefile.in)
17331 # Adjust a relative srcdir.
17332 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17333 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17334 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17335 # In autoconf-2.13 it is called $ac_given_srcdir.
17336 # In autoconf-2.50 it is called $srcdir.
17337 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17338 case "$ac_given_srcdir" in
17339 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17340 /*) top_srcdir="$ac_given_srcdir" ;;
17341 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17342 esac
17343 # Treat a directory as a PO directory if and only if it has a
17344 # POTFILES.in file. This allows packages to have multiple PO
17345 # directories under different names or in different locations.
17346 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17347 rm -f "$ac_dir/POTFILES"
17348 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17349 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17350 POMAKEFILEDEPS="POTFILES.in"
17351 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17352 # on $ac_dir but don't depend on user-specified configuration
17353 # parameters.
17354 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17355 # The LINGUAS file contains the set of available languages.
17356 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17357 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17358 fi
17359 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17360 # Hide the ALL_LINGUAS assigment from automake < 1.5.
17361 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17362 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17363 else
17364 # The set of available languages was given in configure.in.
17365 # Hide the ALL_LINGUAS assigment from automake < 1.5.
17366 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17367 fi
17368 # Compute POFILES
17369 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17370 # Compute UPDATEPOFILES
17371 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17372 # Compute DUMMYPOFILES
17373 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17374 # Compute GMOFILES
17375 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17376 case "$ac_given_srcdir" in
17377 .) srcdirpre= ;;
17378 *) srcdirpre='$(srcdir)/' ;;
17379 esac
17380 POFILES=
17381 UPDATEPOFILES=
17382 DUMMYPOFILES=
17383 GMOFILES=
17384 for lang in $ALL_LINGUAS; do
17385 POFILES="$POFILES $srcdirpre$lang.po"
17386 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17387 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17388 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17389 done
17390 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17391 # environment variable.
17392 INST_LINGUAS=
17393 if test -n "$ALL_LINGUAS"; then
17394 for presentlang in $ALL_LINGUAS; do
17395 useit=no
17396 if test "%UNSET%" != "$LINGUAS"; then
17397 desiredlanguages="$LINGUAS"
17398 else
17399 desiredlanguages="$ALL_LINGUAS"
17400 fi
17401 for desiredlang in $desiredlanguages; do
17402 # Use the presentlang catalog if desiredlang is
17403 # a. equal to presentlang, or
17404 # b. a variant of presentlang (because in this case,
17405 # presentlang can be used as a fallback for messages
17406 # which are not translated in the desiredlang catalog).
17407 case "$desiredlang" in
17408 "$presentlang"*) useit=yes;;
17409 esac
17410 done
17411 if test $useit = yes; then
17412 INST_LINGUAS="$INST_LINGUAS $presentlang"
17413 fi
17414 done
17415 fi
17416 CATALOGS=
17417 if test -n "$INST_LINGUAS"; then
17418 for lang in $INST_LINGUAS; do
17419 CATALOGS="$CATALOGS $lang.gmo"
17420 done
17421 fi
17422 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17423 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17424 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17425 if test -f "$f"; then
17426 case "$f" in
17427 *.orig | *.bak | *~) ;;
17428 *) cat "$f" >> "$ac_dir/Makefile" ;;
17429 esac
17430 fi
17431 done
17432 fi
17433 ;;
17434 esac
17435 done ;;
17436
17437 esac
17438 done # for ac_tag
17439
17440
17441 { (exit 0); exit 0; }
17442 _ACEOF
17443 chmod +x $CONFIG_STATUS
17444 ac_clean_files=$ac_clean_files_save
17445
17446 test $ac_write_fail = 0 ||
17447 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17448 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17449 { (exit 1); exit 1; }; }
17450
17451
17452 # configure is writing to config.log, and then calls config.status.
17453 # config.status does its own redirection, appending to config.log.
17454 # Unfortunately, on DOS this fails, as config.log is still kept open
17455 # by configure, so config.status won't be able to write to it; its
17456 # output is simply discarded. So we exec the FD to /dev/null,
17457 # effectively closing config.log, so it can be properly (re)opened and
17458 # appended to by config.status. When coming back to configure, we
17459 # need to make the FD available again.
17460 if test "$no_create" != yes; then
17461 ac_cs_success=:
17462 ac_config_status_args=
17463 test "$silent" = yes &&
17464 ac_config_status_args="$ac_config_status_args --quiet"
17465 exec 5>/dev/null
17466 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17467 exec 5>>config.log
17468 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17469 # would make configure fail if this is the last instruction.
17470 $ac_cs_success || { (exit 1); exit 1; }
17471 fi
17472 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17473 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17474 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17475 fi
17476
17477
17478 echo "CFLAGS=$CFLAGS"
17479 echo "LDFLAGS=$LDFLAGS"
17480