Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / sha1 / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
8d138742 3# Generated by GNU Autoconf 2.63 for libsha1 1.21.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
dd184caf 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8d138742 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d9898ee8 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
dd184caf 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
8d138742 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
d9898ee8 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
dd184caf 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
8d138742
CE
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (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'
52else
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'
dd184caf 56 else
8d138742
CE
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'
dd184caf 69 fi
8d138742
CE
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if 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 }
d9898ee8 81fi
d9898ee8 82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
dd184caf 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.)
dd184caf 96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
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.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
8d138742 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
dd184caf 119 { (exit 1); exit 1; }
120fi
121
d9898ee8 122# Work around bugs in pre-3.0 UWIN ksh.
dd184caf 123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
d9898ee8 126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
8d138742
CE
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
d9898ee8 135
136# Required to use basename.
dd184caf 137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 139 as_expr=expr
140else
141 as_expr=false
142fi
143
dd184caf 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
dd184caf 152as_me=`$as_basename -- "$0" ||
d9898ee8 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
dd184caf 155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8d138742 156$as_echo X/"$0" |
dd184caf 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'`
d9898ee8 170
dd184caf 171# CDPATH.
172$as_unset CDPATH
d9898ee8 173
d9898ee8 174
dd184caf 175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
d9898ee8 180fi
181
8d138742 182 if test $as_have_required = yes && (eval ":
dd184caf 183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
d9898ee8 198
dd184caf 199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
d9898ee8 206
dd184caf 207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$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 :
240else
241 as_candidate_shells=
d9898ee8 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
dd184caf 247 case $as_dir in
d9898ee8 248 /*)
dd184caf 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
253done
254IFS=$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
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
8d138742 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
dd184caf 265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
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
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
8d138742 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
dd184caf 286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
d9898ee8 349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
d9898ee8 351 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
8d138742
CE
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+"$@"}
dd184caf 369fi
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; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
8d138742
CE
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.
dd184caf 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" || {
d9898ee8 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
dd184caf 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.
d9898ee8 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 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 |
d9898ee8 464 sed '
dd184caf 465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
d9898ee8 469 N
dd184caf 470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 472 t loop
dd184caf 473 s/-\n.*//
d9898ee8 474 ' >$as_me.lineno &&
dd184caf 475 chmod +x "$as_me.lineno" ||
8d138742 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 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
dd184caf 481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
d9898ee8 483 # Exit status is that of the last command.
484 exit
485}
486
487
dd184caf 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `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';;
d9898ee8 503esac
dd184caf 504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
dd184caf 512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
8d138742
CE
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (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
d9898ee8 530 as_ln_s='cp -p'
8d138742 531 fi
d9898ee8 532else
533 as_ln_s='cp -p'
534fi
dd184caf 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
d9898ee8 537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
dd184caf 545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
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
8d138742 556 test -d "$1/.";
dd184caf 557 else
558 case $1 in
8d138742 559 -*)set "./$1";;
dd184caf 560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
d9898ee8 567
568# Sed expression to map a string onto a valid CPP name.
569as_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.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
d9898ee8 575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
8d138742 580case X$lt_ECHO in
d9898ee8 581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
8d138742 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
d9898ee8 584 ;;
585esac
586
8d138742 587ECHO=${lt_ECHO-echo}
d9898ee8 588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
8d138742
CE
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
d9898ee8 596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
8d138742 605 cat <<_LT_EOF
d9898ee8 606$*
8d138742 607_LT_EOF
d9898ee8 608 exit 0
609fi
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
8d138742
CE
615if 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
d9898ee8 627
8d138742
CE
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.
d9898ee8 638
8d138742
CE
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
d9898ee8 650 IFS="$lt_save_ifs"
d9898ee8 651
8d138742
CE
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+"$@"}
d9898ee8 667 else
8d138742
CE
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=:
d9898ee8 692
8d138742
CE
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
d9898ee8 700
8d138742
CE
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
d9898ee8 710 fi
711 fi
712 fi
713fi
d9898ee8 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.
8d138742
CE
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
d9898ee8 720fi
721
722
723
724
dd184caf 725exec 7<&0 </dev/null 6>&1
726
d9898ee8 727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
d9898ee8 732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
dd184caf 736ac_clean_files=
d9898ee8 737ac_config_libobj_dir=.
dd184caf 738LIBOBJS=
d9898ee8 739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
d9898ee8 745# Identity of this package.
746PACKAGE_NAME='libsha1'
747PACKAGE_TARNAME='libsha1'
748PACKAGE_VERSION='1.21'
749PACKAGE_STRING='libsha1 1.21'
750PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
751
752ac_unique_file="hmac.c"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
dd184caf 756#ifdef HAVE_SYS_TYPES_H
d9898ee8 757# include <sys/types.h>
758#endif
dd184caf 759#ifdef HAVE_SYS_STAT_H
d9898ee8 760# include <sys/stat.h>
761#endif
dd184caf 762#ifdef STDC_HEADERS
d9898ee8 763# include <stdlib.h>
764# include <stddef.h>
765#else
dd184caf 766# ifdef HAVE_STDLIB_H
d9898ee8 767# include <stdlib.h>
768# endif
769#endif
dd184caf 770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 772# include <memory.h>
773# endif
774# include <string.h>
775#endif
dd184caf 776#ifdef HAVE_STRINGS_H
d9898ee8 777# include <strings.h>
778#endif
dd184caf 779#ifdef HAVE_INTTYPES_H
d9898ee8 780# include <inttypes.h>
d9898ee8 781#endif
dd184caf 782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
d9898ee8 786# include <unistd.h>
787#endif"
788
8d138742
CE
789ac_subst_vars='am__EXEEXT_FALSE
790am__EXEEXT_TRUE
791LTLIBOBJS
792LIBOBJS
dd184caf 793CPP
8d138742
CE
794OTOOL64
795OTOOL
796LIPO
797NMEDIT
798DSYMUTIL
799lt_ECHO
800RANLIB
801AR
802OBJDUMP
803NM
804ac_ct_DUMPBIN
805DUMPBIN
806LD
807FGREP
808EGREP
809GREP
810SED
811host_os
812host_vendor
813host_cpu
814host
815build_os
816build_vendor
817build_cpu
818build
dd184caf 819LIBTOOL
8d138742
CE
820LN_S
821am__fastdepCC_FALSE
822am__fastdepCC_TRUE
823CCDEPMODE
824AMDEPBACKSLASH
825AMDEP_FALSE
826AMDEP_TRUE
827am__quote
828am__include
829DEPDIR
830OBJEXT
831EXEEXT
832ac_ct_CC
833CPPFLAGS
834LDFLAGS
835CFLAGS
836CC
837HMACC_FALSE
838HMACC_TRUE
839am__untar
840am__tar
841AMTAR
842am__leading_dot
843SET_MAKE
844AWK
845mkdir_p
846MKDIR_P
847INSTALL_STRIP_PROGRAM
848STRIP
849install_sh
850MAKEINFO
851AUTOHEADER
852AUTOMAKE
853AUTOCONF
854ACLOCAL
855VERSION
856PACKAGE
857CYGPATH_W
858am__isrc
859INSTALL_DATA
860INSTALL_SCRIPT
861INSTALL_PROGRAM
862target_alias
863host_alias
864build_alias
865LIBS
866ECHO_T
867ECHO_N
868ECHO_C
869DEFS
870mandir
871localedir
872libdir
873psdir
874pdfdir
875dvidir
876htmldir
877infodir
878docdir
879oldincludedir
880includedir
881localstatedir
882sharedstatedir
883sysconfdir
884datadir
885datarootdir
886libexecdir
887sbindir
888bindir
889program_transform_name
890prefix
891exec_prefix
892PACKAGE_BUGREPORT
893PACKAGE_STRING
894PACKAGE_VERSION
895PACKAGE_TARNAME
896PACKAGE_NAME
897PATH_SEPARATOR
898SHELL'
d9898ee8 899ac_subst_files=''
8d138742
CE
900ac_user_opts='
901enable_option_checking
902enable_dependency_tracking
903enable_shared
904enable_static
905with_pic
906enable_fast_install
907with_gnu_ld
908enable_libtool_lock
909with_int32
910with_int64
911'
dd184caf 912 ac_precious_vars='build_alias
913host_alias
914target_alias
915CC
916CFLAGS
917LDFLAGS
918LIBS
919CPPFLAGS
8d138742 920CPP'
dd184caf 921
d9898ee8 922
923# Initialize some variables set by options.
924ac_init_help=
925ac_init_version=false
8d138742
CE
926ac_unrecognized_opts=
927ac_unrecognized_sep=
d9898ee8 928# The variables have the same names as the options, with
929# dashes changed to underlines.
930cache_file=/dev/null
931exec_prefix=NONE
932no_create=
933no_recursion=
934prefix=NONE
935program_prefix=NONE
936program_suffix=NONE
937program_transform_name=s,x,x,
938silent=
939site=
940srcdir=
941verbose=
942x_includes=NONE
943x_libraries=NONE
944
945# Installation directory options.
946# These are left unexpanded so users can "make install exec_prefix=/foo"
947# and all the variables that are supposed to be based on exec_prefix
948# by default will actually change.
949# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 950# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 951bindir='${exec_prefix}/bin'
952sbindir='${exec_prefix}/sbin'
953libexecdir='${exec_prefix}/libexec'
dd184caf 954datarootdir='${prefix}/share'
955datadir='${datarootdir}'
d9898ee8 956sysconfdir='${prefix}/etc'
957sharedstatedir='${prefix}/com'
958localstatedir='${prefix}/var'
d9898ee8 959includedir='${prefix}/include'
960oldincludedir='/usr/include'
dd184caf 961docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
962infodir='${datarootdir}/info'
963htmldir='${docdir}'
964dvidir='${docdir}'
965pdfdir='${docdir}'
966psdir='${docdir}'
967libdir='${exec_prefix}/lib'
968localedir='${datarootdir}/locale'
969mandir='${datarootdir}/man'
d9898ee8 970
971ac_prev=
dd184caf 972ac_dashdash=
d9898ee8 973for ac_option
974do
975 # If the previous option needs an argument, assign it.
976 if test -n "$ac_prev"; then
dd184caf 977 eval $ac_prev=\$ac_option
d9898ee8 978 ac_prev=
979 continue
980 fi
981
dd184caf 982 case $ac_option in
983 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984 *) ac_optarg=yes ;;
985 esac
d9898ee8 986
987 # Accept the important Cygnus configure options, so we can diagnose typos.
988
dd184caf 989 case $ac_dashdash$ac_option in
990 --)
991 ac_dashdash=yes ;;
d9898ee8 992
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
994 ac_prev=bindir ;;
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 bindir=$ac_optarg ;;
997
998 -build | --build | --buil | --bui | --bu)
999 ac_prev=build_alias ;;
1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001 build_alias=$ac_optarg ;;
1002
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008 cache_file=$ac_optarg ;;
1009
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
1012
dd184caf 1013 -datadir | --datadir | --datadi | --datad)
d9898ee8 1014 ac_prev=datadir ;;
dd184caf 1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 1016 datadir=$ac_optarg ;;
1017
dd184caf 1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1024
d9898ee8 1025 -disable-* | --disable-*)
8d138742 1026 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 1027 # Reject names that are not valid shell variable names.
8d138742
CE
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
d9898ee8 1030 { (exit 1); exit 1; }; }
8d138742
CE
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035"enable_$ac_useropt"
1036"*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval enable_$ac_useropt=no ;;
dd184caf 1041
1042 -docdir | --docdir | --docdi | --doc | --do)
1043 ac_prev=docdir ;;
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1046
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 ac_prev=dvidir ;;
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
d9898ee8 1051
1052 -enable-* | --enable-*)
8d138742 1053 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 1054 # Reject names that are not valid shell variable names.
8d138742
CE
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
d9898ee8 1057 { (exit 1); exit 1; }; }
8d138742
CE
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1061 *"
1062"enable_$ac_useropt"
1063"*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 1068
1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071 | --exec | --exe | --ex)
1072 ac_prev=exec_prefix ;;
1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075 | --exec=* | --exe=* | --ex=*)
1076 exec_prefix=$ac_optarg ;;
1077
1078 -gas | --gas | --ga | --g)
1079 # Obsolete; use --with-gas.
1080 with_gas=yes ;;
1081
1082 -help | --help | --hel | --he | -h)
1083 ac_init_help=long ;;
1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085 ac_init_help=recursive ;;
1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087 ac_init_help=short ;;
1088
1089 -host | --host | --hos | --ho)
1090 ac_prev=host_alias ;;
1091 -host=* | --host=* | --hos=* | --ho=*)
1092 host_alias=$ac_optarg ;;
1093
dd184caf 1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095 ac_prev=htmldir ;;
1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097 | --ht=*)
1098 htmldir=$ac_optarg ;;
1099
d9898ee8 1100 -includedir | --includedir | --includedi | --included | --include \
1101 | --includ | --inclu | --incl | --inc)
1102 ac_prev=includedir ;;
1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104 | --includ=* | --inclu=* | --incl=* | --inc=*)
1105 includedir=$ac_optarg ;;
1106
1107 -infodir | --infodir | --infodi | --infod | --info | --inf)
1108 ac_prev=infodir ;;
1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110 infodir=$ac_optarg ;;
1111
1112 -libdir | --libdir | --libdi | --libd)
1113 ac_prev=libdir ;;
1114 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115 libdir=$ac_optarg ;;
1116
1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118 | --libexe | --libex | --libe)
1119 ac_prev=libexecdir ;;
1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121 | --libexe=* | --libex=* | --libe=*)
1122 libexecdir=$ac_optarg ;;
1123
dd184caf 1124 -localedir | --localedir | --localedi | --localed | --locale)
1125 ac_prev=localedir ;;
1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127 localedir=$ac_optarg ;;
1128
d9898ee8 1129 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 1130 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1131 ac_prev=localstatedir ;;
1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1134 localstatedir=$ac_optarg ;;
1135
1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137 ac_prev=mandir ;;
1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139 mandir=$ac_optarg ;;
1140
1141 -nfp | --nfp | --nf)
1142 # Obsolete; use --without-fp.
1143 with_fp=no ;;
1144
1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146 | --no-cr | --no-c | -n)
1147 no_create=yes ;;
1148
1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151 no_recursion=yes ;;
1152
1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155 | --oldin | --oldi | --old | --ol | --o)
1156 ac_prev=oldincludedir ;;
1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160 oldincludedir=$ac_optarg ;;
1161
1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163 ac_prev=prefix ;;
1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165 prefix=$ac_optarg ;;
1166
1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168 | --program-pre | --program-pr | --program-p)
1169 ac_prev=program_prefix ;;
1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172 program_prefix=$ac_optarg ;;
1173
1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175 | --program-suf | --program-su | --program-s)
1176 ac_prev=program_suffix ;;
1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179 program_suffix=$ac_optarg ;;
1180
1181 -program-transform-name | --program-transform-name \
1182 | --program-transform-nam | --program-transform-na \
1183 | --program-transform-n | --program-transform- \
1184 | --program-transform | --program-transfor \
1185 | --program-transfo | --program-transf \
1186 | --program-trans | --program-tran \
1187 | --progr-tra | --program-tr | --program-t)
1188 ac_prev=program_transform_name ;;
1189 -program-transform-name=* | --program-transform-name=* \
1190 | --program-transform-nam=* | --program-transform-na=* \
1191 | --program-transform-n=* | --program-transform-=* \
1192 | --program-transform=* | --program-transfor=* \
1193 | --program-transfo=* | --program-transf=* \
1194 | --program-trans=* | --program-tran=* \
1195 | --progr-tra=* | --program-tr=* | --program-t=*)
1196 program_transform_name=$ac_optarg ;;
1197
dd184caf 1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199 ac_prev=pdfdir ;;
1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201 pdfdir=$ac_optarg ;;
1202
1203 -psdir | --psdir | --psdi | --psd | --ps)
1204 ac_prev=psdir ;;
1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206 psdir=$ac_optarg ;;
1207
d9898ee8 1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 silent=yes ;;
1211
1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1213 ac_prev=sbindir ;;
1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1215 | --sbi=* | --sb=*)
1216 sbindir=$ac_optarg ;;
1217
1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220 | --sharedst | --shareds | --shared | --share | --shar \
1221 | --sha | --sh)
1222 ac_prev=sharedstatedir ;;
1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1226 | --sha=* | --sh=*)
1227 sharedstatedir=$ac_optarg ;;
1228
1229 -site | --site | --sit)
1230 ac_prev=site ;;
1231 -site=* | --site=* | --sit=*)
1232 site=$ac_optarg ;;
1233
1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1235 ac_prev=srcdir ;;
1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237 srcdir=$ac_optarg ;;
1238
1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240 | --syscon | --sysco | --sysc | --sys | --sy)
1241 ac_prev=sysconfdir ;;
1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244 sysconfdir=$ac_optarg ;;
1245
1246 -target | --target | --targe | --targ | --tar | --ta | --t)
1247 ac_prev=target_alias ;;
1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249 target_alias=$ac_optarg ;;
1250
1251 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252 verbose=yes ;;
1253
1254 -version | --version | --versio | --versi | --vers | -V)
1255 ac_init_version=: ;;
1256
1257 -with-* | --with-*)
8d138742 1258 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1259 # Reject names that are not valid shell variable names.
8d138742
CE
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
d9898ee8 1262 { (exit 1); exit 1; }; }
8d138742
CE
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1266 *"
1267"with_$ac_useropt"
1268"*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1271 esac
1272 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1273
1274 -without-* | --without-*)
8d138742 1275 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1276 # Reject names that are not valid shell variable names.
8d138742
CE
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
d9898ee8 1279 { (exit 1); exit 1; }; }
8d138742
CE
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284"with_$ac_useropt"
1285"*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval with_$ac_useropt=no ;;
d9898ee8 1290
1291 --x)
1292 # Obsolete; use --with-x.
1293 with_x=yes ;;
1294
1295 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1296 | --x-incl | --x-inc | --x-in | --x-i)
1297 ac_prev=x_includes ;;
1298 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1299 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1300 x_includes=$ac_optarg ;;
1301
1302 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1303 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1304 ac_prev=x_libraries ;;
1305 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1306 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1307 x_libraries=$ac_optarg ;;
1308
8d138742 1309 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
d9898ee8 1310Try \`$0 --help' for more information." >&2
1311 { (exit 1); exit 1; }; }
1312 ;;
1313
1314 *=*)
1315 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
8d138742 1318 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
d9898ee8 1319 { (exit 1); exit 1; }; }
dd184caf 1320 eval $ac_envvar=\$ac_optarg
d9898ee8 1321 export $ac_envvar ;;
1322
1323 *)
1324 # FIXME: should be removed in autoconf 3.0.
8d138742 1325 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1326 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1327 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d9898ee8 1328 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1329 ;;
1330
1331 esac
1332done
1333
1334if test -n "$ac_prev"; then
1335 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
8d138742 1336 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
d9898ee8 1337 { (exit 1); exit 1; }; }
1338fi
1339
8d138742
CE
1340if test -n "$ac_unrecognized_opts"; then
1341 case $enable_option_checking in
1342 no) ;;
1343 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1344 { (exit 1); exit 1; }; } ;;
1345 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1346 esac
1347fi
1348
1349# Check all directory arguments for consistency.
dd184caf 1350for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir
d9898ee8 1354do
dd184caf 1355 eval ac_val=\$$ac_var
8d138742
CE
1356 # Remove trailing slashes.
1357 case $ac_val in
1358 */ )
1359 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1360 eval $ac_var=\$ac_val;;
1361 esac
1362 # Be sure to have absolute directory names.
d9898ee8 1363 case $ac_val in
dd184caf 1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1366 esac
8d138742 1367 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
dd184caf 1368 { (exit 1); exit 1; }; }
d9898ee8 1369done
1370
1371# There might be people who depend on the old broken behavior: `$host'
1372# used to hold the argument of --host etc.
1373# FIXME: To remove some day.
1374build=$build_alias
1375host=$host_alias
1376target=$target_alias
1377
1378# FIXME: To remove some day.
1379if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
8d138742 1382 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
d9898ee8 1383 If a cross compiler is detected then cross compile mode will be used." >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1386 fi
1387fi
1388
1389ac_tool_prefix=
1390test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392test "$silent" = yes && exec 6>/dev/null
1393
1394
dd184caf 1395ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396ac_ls_di=`ls -di .` &&
1397ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
8d138742 1398 { $as_echo "$as_me: error: working directory cannot be determined" >&2
dd184caf 1399 { (exit 1); exit 1; }; }
1400test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
8d138742 1401 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
dd184caf 1402 { (exit 1); exit 1; }; }
1403
1404
d9898ee8 1405# Find the source files, if location was not specified.
1406if test -z "$srcdir"; then
1407 ac_srcdir_defaulted=yes
dd184caf 1408 # Try the directory containing this script, then the parent directory.
8d138742
CE
1409 ac_confdir=`$as_dirname -- "$as_myself" ||
1410$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411 X"$as_myself" : 'X\(//\)[^/]' \| \
1412 X"$as_myself" : 'X\(//\)$' \| \
1413 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1414$as_echo X"$as_myself" |
dd184caf 1415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\/\)[^/].*/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)$/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\).*/{
1428 s//\1/
1429 q
1430 }
1431 s/.*/./; q'`
d9898ee8 1432 srcdir=$ac_confdir
dd184caf 1433 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1434 srcdir=..
1435 fi
1436else
1437 ac_srcdir_defaulted=no
1438fi
dd184caf 1439if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
8d138742 1441 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1442 { (exit 1); exit 1; }; }
d9898ee8 1443fi
dd184caf 1444ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445ac_abs_confdir=`(
8d138742 1446 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
d9898ee8 1447 { (exit 1); exit 1; }; }
dd184caf 1448 pwd)`
1449# When building in place, set srcdir=.
1450if test "$ac_abs_confdir" = "$ac_pwd"; then
1451 srcdir=.
1452fi
1453# Remove unnecessary trailing slashes from srcdir.
1454# Double slashes in file names in object file debugging info
1455# mess up M-x gdb in Emacs.
1456case $srcdir in
1457*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458esac
1459for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464done
d9898ee8 1465
1466#
1467# Report the --help message.
1468#
1469if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1472 cat <<_ACEOF
1473\`configure' configures libsha1 1.21 to adapt to many kinds of systems.
1474
1475Usage: $0 [OPTION]... [VAR=VALUE]...
1476
1477To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478VAR=VALUE. See below for descriptions of some of the useful variables.
1479
1480Defaults for the options are specified in brackets.
1481
1482Configuration:
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492
d9898ee8 1493Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1495 [$ac_default_prefix]
d9898ee8 1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1497 [PREFIX]
d9898ee8 1498
1499By default, \`make install' will install all the files in
1500\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502for instance \`--prefix=\$HOME'.
1503
1504For better control, use the options below.
1505
1506Fine tuning of the installation directories:
8d138742
CE
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/libsha1]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1526_ACEOF
1527
1528 cat <<\_ACEOF
1529
1530Program names:
1531 --program-prefix=PREFIX prepend PREFIX to installed program names
1532 --program-suffix=SUFFIX append SUFFIX to installed program names
1533 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1534
1535System types:
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1538_ACEOF
1539fi
1540
1541if test -n "$ac_init_help"; then
1542 case $ac_init_help in
1543 short | recursive ) echo "Configuration of libsha1 1.21:";;
1544 esac
1545 cat <<\_ACEOF
1546
1547Optional Features:
8d138742 1548 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1551 --disable-dependency-tracking speeds up one-time build
1552 --enable-dependency-tracking do not reject slow dependency extractors
dd184caf 1553 --enable-shared[=PKGS] build shared libraries [default=yes]
1554 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1555 --enable-fast-install[=PKGS]
1556 optimize for fast installation [default=yes]
1557 --disable-libtool-lock avoid locking (might break parallel builds)
1558
1559Optional Packages:
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d9898ee8 1562 --with-pic try to use only PIC/non-PIC objects [default=use
1563 both]
8d138742 1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
d9898ee8 1565 --with-int32='type' use 'type' for an unsigned 32 bit integer type
1566 ( default is 'unsigned')
8d138742
CE
1567 --with-int64='type' use 'type' for an unsigned 64 bit integer type
1568 ( default is 'unsigned')
d9898ee8 1569
1570Some influential environment variables:
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
dd184caf 1575 LIBS libraries to pass to the linker, e.g. -l<library>
1576 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
d9898ee8 1578 CPP C preprocessor
d9898ee8 1579
1580Use these variables to override the choices made by `configure' or to help
1581it to find libraries and programs with nonstandard names/locations.
1582
1583Report bugs to <courier-users@lists.sourceforge.net>.
1584_ACEOF
dd184caf 1585ac_status=$?
d9898ee8 1586fi
1587
1588if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
d9898ee8 1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8d138742
CE
1591 test -d "$ac_dir" ||
1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593 continue
d9898ee8 1594 ac_builddir=.
1595
dd184caf 1596case "$ac_dir" in
1597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598*)
8d138742 1599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 1600 # A ".." for each directory in $ac_dir_suffix.
8d138742 1601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 1602 case $ac_top_builddir_sub in
1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1605 esac ;;
1606esac
1607ac_abs_top_builddir=$ac_pwd
1608ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609# for backward compatibility:
1610ac_top_builddir=$ac_top_build_prefix
d9898ee8 1611
1612case $srcdir in
dd184caf 1613 .) # We are building in place.
d9898ee8 1614 ac_srcdir=.
dd184caf 1615 ac_top_srcdir=$ac_top_builddir_sub
1616 ac_abs_top_srcdir=$ac_pwd ;;
1617 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1618 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1619 ac_top_srcdir=$srcdir
1620 ac_abs_top_srcdir=$srcdir ;;
1621 *) # Relative name.
1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623 ac_top_srcdir=$ac_top_build_prefix$srcdir
1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1625esac
dd184caf 1626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
1628 cd "$ac_dir" || { ac_status=$?; continue; }
1629 # Check for guested configure.
1630 if test -f "$ac_srcdir/configure.gnu"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633 elif test -f "$ac_srcdir/configure"; then
1634 echo &&
1635 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1636 else
8d138742 1637 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1638 fi || ac_status=$?
1639 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1640 done
1641fi
1642
dd184caf 1643test -n "$ac_init_help" && exit $ac_status
d9898ee8 1644if $ac_init_version; then
1645 cat <<\_ACEOF
1646libsha1 configure 1.21
8d138742 1647generated by GNU Autoconf 2.63
d9898ee8 1648
dd184caf 1649Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8d138742 16502002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d9898ee8 1651This configure script is free software; the Free Software Foundation
1652gives unlimited permission to copy, distribute and modify it.
1653_ACEOF
dd184caf 1654 exit
d9898ee8 1655fi
dd184caf 1656cat >config.log <<_ACEOF
d9898ee8 1657This file contains any messages produced by compilers while
1658running configure, to aid debugging if configure makes a mistake.
1659
1660It was created by libsha1 $as_me 1.21, which was
8d138742 1661generated by GNU Autoconf 2.63. Invocation command line was
d9898ee8 1662
1663 $ $0 $@
1664
1665_ACEOF
dd184caf 1666exec 5>>config.log
d9898ee8 1667{
1668cat <<_ASUNAME
1669## --------- ##
1670## Platform. ##
1671## --------- ##
1672
1673hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1674uname -m = `(uname -m) 2>/dev/null || echo unknown`
1675uname -r = `(uname -r) 2>/dev/null || echo unknown`
1676uname -s = `(uname -s) 2>/dev/null || echo unknown`
1677uname -v = `(uname -v) 2>/dev/null || echo unknown`
1678
1679/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1680/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1681
1682/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1683/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1684/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1685/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1686/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1687/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1688/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1689
1690_ASUNAME
1691
1692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693for as_dir in $PATH
1694do
1695 IFS=$as_save_IFS
1696 test -z "$as_dir" && as_dir=.
8d138742 1697 $as_echo "PATH: $as_dir"
d9898ee8 1698done
dd184caf 1699IFS=$as_save_IFS
d9898ee8 1700
1701} >&5
1702
1703cat >&5 <<_ACEOF
1704
1705
1706## ----------- ##
1707## Core tests. ##
1708## ----------- ##
1709
1710_ACEOF
1711
1712
1713# Keep a trace of the command line.
1714# Strip out --no-create and --no-recursion so they do not pile up.
1715# Strip out --silent because we don't want to record it for future runs.
1716# Also quote any args containing shell meta-characters.
1717# Make two passes to allow for proper duplicate-argument suppression.
1718ac_configure_args=
1719ac_configure_args0=
1720ac_configure_args1=
d9898ee8 1721ac_must_keep_next=false
1722for ac_pass in 1 2
1723do
1724 for ac_arg
1725 do
1726 case $ac_arg in
1727 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1729 | -silent | --silent | --silen | --sile | --sil)
1730 continue ;;
dd184caf 1731 *\'*)
8d138742 1732 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1733 esac
1734 case $ac_pass in
1735 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1736 2)
1737 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1738 if test $ac_must_keep_next = true; then
1739 ac_must_keep_next=false # Got value, back to normal.
1740 else
1741 case $ac_arg in
1742 *=* | --config-cache | -C | -disable-* | --disable-* \
1743 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1744 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1745 | -with-* | --with-* | -without-* | --without-* | --x)
1746 case "$ac_configure_args0 " in
1747 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1748 esac
1749 ;;
1750 -* ) ac_must_keep_next=true ;;
1751 esac
1752 fi
dd184caf 1753 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1754 ;;
1755 esac
1756 done
1757done
1758$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1759$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1760
1761# When interrupted or exit'd, cleanup temporary files, and complete
1762# config.log. We remove comments because anyway the quotes in there
1763# would cause problems or look ugly.
dd184caf 1764# WARNING: Use '\'' to represent an apostrophe within the trap.
1765# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1766trap 'exit_status=$?
1767 # Save into config.log some information that might help in debugging.
1768 {
1769 echo
1770
1771 cat <<\_ASBOX
1772## ---------------- ##
1773## Cache variables. ##
1774## ---------------- ##
1775_ASBOX
1776 echo
1777 # The following way of writing the cache mishandles newlines in values,
dd184caf 1778(
1779 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1780 eval ac_val=\$$ac_var
1781 case $ac_val in #(
1782 *${as_nl}*)
1783 case $ac_var in #(
8d138742
CE
1784 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1785$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 1786 esac
1787 case $ac_var in #(
1788 _ | IFS | as_nl) ;; #(
8d138742 1789 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
dd184caf 1790 *) $as_unset $ac_var ;;
1791 esac ;;
1792 esac
1793 done
d9898ee8 1794 (set) 2>&1 |
dd184caf 1795 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1796 *${as_nl}ac_space=\ *)
d9898ee8 1797 sed -n \
dd184caf 1798 "s/'\''/'\''\\\\'\'''\''/g;
1799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1800 ;; #(
d9898ee8 1801 *)
dd184caf 1802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1803 ;;
dd184caf 1804 esac |
1805 sort
1806)
d9898ee8 1807 echo
1808
1809 cat <<\_ASBOX
1810## ----------------- ##
1811## Output variables. ##
1812## ----------------- ##
1813_ASBOX
1814 echo
1815 for ac_var in $ac_subst_vars
1816 do
dd184caf 1817 eval ac_val=\$$ac_var
1818 case $ac_val in
8d138742 1819 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1820 esac
8d138742 1821 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1822 done | sort
1823 echo
1824
1825 if test -n "$ac_subst_files"; then
1826 cat <<\_ASBOX
dd184caf 1827## ------------------- ##
1828## File substitutions. ##
1829## ------------------- ##
d9898ee8 1830_ASBOX
1831 echo
1832 for ac_var in $ac_subst_files
1833 do
dd184caf 1834 eval ac_val=\$$ac_var
1835 case $ac_val in
8d138742 1836 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1837 esac
8d138742 1838 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1839 done | sort
1840 echo
1841 fi
1842
1843 if test -s confdefs.h; then
1844 cat <<\_ASBOX
1845## ----------- ##
1846## confdefs.h. ##
1847## ----------- ##
1848_ASBOX
1849 echo
dd184caf 1850 cat confdefs.h
d9898ee8 1851 echo
1852 fi
1853 test "$ac_signal" != 0 &&
8d138742
CE
1854 $as_echo "$as_me: caught signal $ac_signal"
1855 $as_echo "$as_me: exit $exit_status"
d9898ee8 1856 } >&5
dd184caf 1857 rm -f core *.core core.conftest.* &&
1858 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1859 exit $exit_status
dd184caf 1860' 0
d9898ee8 1861for ac_signal in 1 2 13 15; do
1862 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1863done
1864ac_signal=0
1865
1866# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 1867rm -f -r conftest* confdefs.h
d9898ee8 1868
1869# Predefined preprocessor variables.
1870
1871cat >>confdefs.h <<_ACEOF
1872#define PACKAGE_NAME "$PACKAGE_NAME"
1873_ACEOF
1874
1875
1876cat >>confdefs.h <<_ACEOF
1877#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1878_ACEOF
1879
1880
1881cat >>confdefs.h <<_ACEOF
1882#define PACKAGE_VERSION "$PACKAGE_VERSION"
1883_ACEOF
1884
1885
1886cat >>confdefs.h <<_ACEOF
1887#define PACKAGE_STRING "$PACKAGE_STRING"
1888_ACEOF
1889
1890
1891cat >>confdefs.h <<_ACEOF
1892#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1893_ACEOF
1894
1895
1896# Let the site file select an alternate cache file if it wants to.
8d138742
CE
1897# Prefer an explicitly selected file to automatically selected ones.
1898ac_site_file1=NONE
1899ac_site_file2=NONE
dd184caf 1900if test -n "$CONFIG_SITE"; then
8d138742 1901 ac_site_file1=$CONFIG_SITE
dd184caf 1902elif test "x$prefix" != xNONE; then
8d138742
CE
1903 ac_site_file1=$prefix/share/config.site
1904 ac_site_file2=$prefix/etc/config.site
dd184caf 1905else
8d138742
CE
1906 ac_site_file1=$ac_default_prefix/share/config.site
1907 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 1908fi
8d138742 1909for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 1910do
8d138742 1911 test "x$ac_site_file" = xNONE && continue
d9898ee8 1912 if test -r "$ac_site_file"; then
8d138742
CE
1913 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1914$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 1915 sed 's/^/| /' "$ac_site_file" >&5
1916 . "$ac_site_file"
1917 fi
1918done
1919
1920if test -r "$cache_file"; then
1921 # Some versions of bash will fail to source /dev/null (special
1922 # files actually), so we avoid doing that.
1923 if test -f "$cache_file"; then
8d138742
CE
1924 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1925$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 1926 case $cache_file in
dd184caf 1927 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1928 *) . "./$cache_file";;
d9898ee8 1929 esac
1930 fi
1931else
8d138742
CE
1932 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1933$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 1934 >$cache_file
1935fi
1936
1937# Check that the precious variables saved in the cache have kept the same
1938# value.
1939ac_cache_corrupted=false
dd184caf 1940for ac_var in $ac_precious_vars; do
d9898ee8 1941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1942 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 1943 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1944 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1945 case $ac_old_set,$ac_new_set in
1946 set,)
8d138742
CE
1947 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1948$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 1949 ac_cache_corrupted=: ;;
1950 ,set)
8d138742
CE
1951 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1952$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 1953 ac_cache_corrupted=: ;;
1954 ,);;
1955 *)
1956 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
1957 # differences in whitespace do not lead to failure.
1958 ac_old_val_w=`echo x $ac_old_val`
1959 ac_new_val_w=`echo x $ac_new_val`
1960 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1962$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1963 ac_cache_corrupted=:
1964 else
1965 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1966$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1967 eval $ac_var=\$ac_old_val
1968 fi
1969 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1970$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1971 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1972$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 1973 fi;;
1974 esac
1975 # Pass precious variables to config.status.
1976 if test "$ac_new_set" = set; then
1977 case $ac_new_val in
8d138742 1978 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1979 *) ac_arg=$ac_var=$ac_new_val ;;
1980 esac
1981 case " $ac_configure_args " in
1982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1983 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1984 esac
1985 fi
1986done
1987if $ac_cache_corrupted; then
8d138742
CE
1988 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1990 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1991$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1992 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1993$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
d9898ee8 1994 { (exit 1); exit 1; }; }
1995fi
1996
d9898ee8 1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
dd184caf 2021ac_ext=c
2022ac_cpp='$CPP $CPPFLAGS'
2023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2026
2027
2028
2029>confdefs.h # Kill PACKAGE_ macros
2030
2031
dd184caf 2032ac_config_headers="$ac_config_headers config.h"
2033
8d138742 2034am__api_version='1.11'
d9898ee8 2035
d9898ee8 2036ac_aux_dir=
dd184caf 2037for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2038 if test -f "$ac_dir/install-sh"; then
d9898ee8 2039 ac_aux_dir=$ac_dir
2040 ac_install_sh="$ac_aux_dir/install-sh -c"
2041 break
dd184caf 2042 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/install.sh -c"
2045 break
dd184caf 2046 elif test -f "$ac_dir/shtool"; then
d9898ee8 2047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/shtool install -c"
2049 break
2050 fi
2051done
2052if test -z "$ac_aux_dir"; then
8d138742
CE
2053 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2054$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 2055 { (exit 1); exit 1; }; }
2056fi
dd184caf 2057
2058# These three variables are undocumented and unsupported,
2059# and are intended to be withdrawn in a future Autoconf release.
2060# They can cause serious problems if a builder's source tree is in a directory
2061# whose full name contains unusual characters.
2062ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2063ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2064ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2065
d9898ee8 2066
2067# Find a good install program. We prefer a C program (faster),
2068# so one script is as good as another. But avoid the broken or
2069# incompatible versions:
2070# SysV /etc/install, /usr/sbin/install
2071# SunOS /usr/etc/install
2072# IRIX /sbin/install
2073# AIX /bin/install
2074# AmigaOS /C/install, which installs bootblocks on floppy discs
2075# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2076# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2077# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2078# OS/2's system install, which has a completely different semantic
2079# ./install, which can be erroneously created by make from ./install.sh.
8d138742
CE
2080# Reject install programs that cannot install multiple files.
2081{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2082$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2083if test -z "$INSTALL"; then
2084if test "${ac_cv_path_install+set}" = set; then
8d138742 2085 $as_echo_n "(cached) " >&6
d9898ee8 2086else
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088for as_dir in $PATH
2089do
2090 IFS=$as_save_IFS
2091 test -z "$as_dir" && as_dir=.
2092 # Account for people who put trailing slashes in PATH elements.
2093case $as_dir/ in
2094 ./ | .// | /cC/* | \
2095 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2096 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2097 /usr/ucb/* ) ;;
2098 *)
2099 # OSF1 and SCO ODT 3.0 have their own names for install.
2100 # Don't use installbsd from OSF since it installs stuff as root
2101 # by default.
2102 for ac_prog in ginstall scoinst install; do
2103 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2104 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2105 if test $ac_prog = install &&
2106 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2107 # AIX install. It has an incompatible calling convention.
2108 :
2109 elif test $ac_prog = install &&
2110 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2111 # program-specific install script used by HP pwplus--don't use.
2112 :
2113 else
8d138742
CE
2114 rm -rf conftest.one conftest.two conftest.dir
2115 echo one > conftest.one
2116 echo two > conftest.two
2117 mkdir conftest.dir
2118 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2119 test -s conftest.one && test -s conftest.two &&
2120 test -s conftest.dir/conftest.one &&
2121 test -s conftest.dir/conftest.two
2122 then
2123 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2124 break 3
2125 fi
d9898ee8 2126 fi
2127 fi
2128 done
2129 done
2130 ;;
2131esac
8d138742 2132
d9898ee8 2133done
dd184caf 2134IFS=$as_save_IFS
d9898ee8 2135
8d138742 2136rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2137
2138fi
2139 if test "${ac_cv_path_install+set}" = set; then
2140 INSTALL=$ac_cv_path_install
2141 else
dd184caf 2142 # As a last resort, use the slow shell script. Don't cache a
2143 # value for INSTALL within a source directory, because that will
d9898ee8 2144 # break other packages using the cache if that directory is
dd184caf 2145 # removed, or if the value is a relative name.
d9898ee8 2146 INSTALL=$ac_install_sh
2147 fi
2148fi
8d138742
CE
2149{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2150$as_echo "$INSTALL" >&6; }
d9898ee8 2151
2152# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2153# It thinks the first close brace ends the variable substitution.
2154test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2155
2156test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2157
2158test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2159
8d138742
CE
2160{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2161$as_echo_n "checking whether build environment is sane... " >&6; }
d9898ee8 2162# Just in case
2163sleep 1
2164echo timestamp > conftest.file
8d138742
CE
2165# Reject unsafe characters in $srcdir or the absolute working directory
2166# name. Accept space and tab only in the latter.
2167am_lf='
2168'
2169case `pwd` in
2170 *[\\\"\#\$\&\'\`$am_lf]*)
2171 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2172$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2173 { (exit 1); exit 1; }; };;
2174esac
2175case $srcdir in
2176 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2177 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2178$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2179 { (exit 1); exit 1; }; };;
2180esac
2181
d9898ee8 2182# Do `set' in a subshell so we don't clobber the current shell's
2183# arguments. Must try -L first in case configure is actually a
2184# symlink; some systems play weird games with the mod time of symlinks
2185# (eg FreeBSD returns the mod time of the symlink's containing
2186# directory).
2187if (
8d138742 2188 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
d9898ee8 2189 if test "$*" = "X"; then
2190 # -L didn't work.
8d138742 2191 set X `ls -t "$srcdir/configure" conftest.file`
d9898ee8 2192 fi
2193 rm -f conftest.file
2194 if test "$*" != "X $srcdir/configure conftest.file" \
2195 && test "$*" != "X conftest.file $srcdir/configure"; then
2196
2197 # If neither matched, then we have a broken ls. This can happen
2198 # if, for instance, CONFIG_SHELL is bash and it inherits a
2199 # broken ls alias from the environment. This has actually
2200 # happened. Such a system could not be considered "sane".
8d138742 2201 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2202alias in your environment" >&5
8d138742 2203$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2204alias in your environment" >&2;}
2205 { (exit 1); exit 1; }; }
2206 fi
2207
2208 test "$2" = conftest.file
2209 )
2210then
2211 # Ok.
2212 :
2213else
8d138742 2214 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
d9898ee8 2215Check your system clock" >&5
8d138742 2216$as_echo "$as_me: error: newly created file is older than distributed files!
d9898ee8 2217Check your system clock" >&2;}
2218 { (exit 1); exit 1; }; }
2219fi
8d138742
CE
2220{ $as_echo "$as_me:$LINENO: result: yes" >&5
2221$as_echo "yes" >&6; }
d9898ee8 2222test "$program_prefix" != NONE &&
dd184caf 2223 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2224# Use a double $ so make ignores it.
2225test "$program_suffix" != NONE &&
dd184caf 2226 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2227# Double any \ or $.
d9898ee8 2228# By default was `s,x,x', remove it if useless.
8d138742
CE
2229ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2230program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2231
2232# expand $ac_aux_dir to an absolute path
2233am_aux_dir=`cd $ac_aux_dir && pwd`
2234
8d138742
CE
2235if test x"${MISSING+set}" != xset; then
2236 case $am_aux_dir in
2237 *\ * | *\ *)
2238 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2239 *)
2240 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2241 esac
2242fi
d9898ee8 2243# Use eval to expand $SHELL
2244if eval "$MISSING --run true"; then
2245 am_missing_run="$MISSING --run "
2246else
2247 am_missing_run=
8d138742
CE
2248 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2249$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2250fi
2251
2252if test x"${install_sh}" != xset; then
2253 case $am_aux_dir in
2254 *\ * | *\ *)
2255 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2256 *)
2257 install_sh="\${SHELL} $am_aux_dir/install-sh"
2258 esac
2259fi
2260
2261# Installed binaries are usually stripped using `strip' when the user
2262# run `make install-strip'. However `strip' might not be the right
2263# tool to use in cross-compilation environments, therefore Automake
2264# will honor the `STRIP' environment variable to overrule this program.
2265if test "$cross_compiling" != no; then
2266 if test -n "$ac_tool_prefix"; then
2267 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2268set dummy ${ac_tool_prefix}strip; ac_word=$2
2269{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2270$as_echo_n "checking for $ac_word... " >&6; }
2271if test "${ac_cv_prog_STRIP+set}" = set; then
2272 $as_echo_n "(cached) " >&6
2273else
2274 if test -n "$STRIP"; then
2275 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2276else
2277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278for as_dir in $PATH
2279do
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2284 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2285 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 break 2
2287 fi
2288done
2289done
2290IFS=$as_save_IFS
2291
2292fi
2293fi
2294STRIP=$ac_cv_prog_STRIP
2295if test -n "$STRIP"; then
2296 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2297$as_echo "$STRIP" >&6; }
2298else
2299 { $as_echo "$as_me:$LINENO: result: no" >&5
2300$as_echo "no" >&6; }
2301fi
2302
2303
2304fi
2305if test -z "$ac_cv_prog_STRIP"; then
2306 ac_ct_STRIP=$STRIP
2307 # Extract the first word of "strip", so it can be a program name with args.
2308set dummy strip; ac_word=$2
2309{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2310$as_echo_n "checking for $ac_word... " >&6; }
2311if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2312 $as_echo_n "(cached) " >&6
2313else
2314 if test -n "$ac_ct_STRIP"; then
2315 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2316else
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_ac_ct_STRIP="strip"
2325 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2327 fi
2328done
2329done
2330IFS=$as_save_IFS
2331
2332fi
2333fi
2334ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2335if test -n "$ac_ct_STRIP"; then
2336 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2337$as_echo "$ac_ct_STRIP" >&6; }
2338else
2339 { $as_echo "$as_me:$LINENO: result: no" >&5
2340$as_echo "no" >&6; }
2341fi
2342
2343 if test "x$ac_ct_STRIP" = x; then
2344 STRIP=":"
2345 else
2346 case $cross_compiling:$ac_tool_warned in
2347yes:)
2348{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2350ac_tool_warned=yes ;;
2351esac
2352 STRIP=$ac_ct_STRIP
2353 fi
2354else
2355 STRIP="$ac_cv_prog_STRIP"
2356fi
2357
d9898ee8 2358fi
8d138742 2359INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2360
8d138742
CE
2361{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2362$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2363if test -z "$MKDIR_P"; then
2364 if test "${ac_cv_path_mkdir+set}" = set; then
8d138742 2365 $as_echo_n "(cached) " >&6
dd184caf 2366else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2369do
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 for ac_prog in mkdir gmkdir; do
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2375 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2376 'mkdir (GNU coreutils) '* | \
2377 'mkdir (coreutils) '* | \
2378 'mkdir (fileutils) '4.1*)
2379 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2380 break 3;;
2381 esac
2382 done
2383 done
2384done
2385IFS=$as_save_IFS
2386
2387fi
2388
2389 if test "${ac_cv_path_mkdir+set}" = set; then
2390 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2391 else
dd184caf 2392 # As a last resort, use the slow shell script. Don't cache a
2393 # value for MKDIR_P within a source directory, because that will
2394 # break other packages using the cache if that directory is
2395 # removed, or if the value is a relative name.
2396 test -d ./--version && rmdir ./--version
2397 MKDIR_P="$ac_install_sh -d"
d9898ee8 2398 fi
2399fi
8d138742
CE
2400{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2401$as_echo "$MKDIR_P" >&6; }
dd184caf 2402
2403mkdir_p="$MKDIR_P"
2404case $mkdir_p in
2405 [\\/$]* | ?:[\\/]*) ;;
2406 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2407esac
d9898ee8 2408
2409for ac_prog in gawk mawk nawk awk
2410do
2411 # Extract the first word of "$ac_prog", so it can be a program name with args.
2412set dummy $ac_prog; ac_word=$2
8d138742
CE
2413{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2414$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2415if test "${ac_cv_prog_AWK+set}" = set; then
8d138742 2416 $as_echo_n "(cached) " >&6
d9898ee8 2417else
2418 if test -n "$AWK"; then
2419 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2420else
2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422for as_dir in $PATH
2423do
2424 IFS=$as_save_IFS
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2428 ac_cv_prog_AWK="$ac_prog"
8d138742 2429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2430 break 2
2431 fi
2432done
2433done
dd184caf 2434IFS=$as_save_IFS
d9898ee8 2435
2436fi
2437fi
2438AWK=$ac_cv_prog_AWK
2439if test -n "$AWK"; then
8d138742
CE
2440 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2441$as_echo "$AWK" >&6; }
d9898ee8 2442else
8d138742
CE
2443 { $as_echo "$as_me:$LINENO: result: no" >&5
2444$as_echo "no" >&6; }
d9898ee8 2445fi
2446
dd184caf 2447
d9898ee8 2448 test -n "$AWK" && break
2449done
2450
8d138742
CE
2451{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2452$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2453set x ${MAKE-make}
2454ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
dd184caf 2455if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 2456 $as_echo_n "(cached) " >&6
d9898ee8 2457else
2458 cat >conftest.make <<\_ACEOF
dd184caf 2459SHELL = /bin/sh
d9898ee8 2460all:
dd184caf 2461 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2462_ACEOF
2463# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
dd184caf 2464case `${MAKE-make} -f conftest.make 2>/dev/null` in
2465 *@@@%%%=?*=@@@%%%*)
2466 eval ac_cv_prog_make_${ac_make}_set=yes;;
2467 *)
2468 eval ac_cv_prog_make_${ac_make}_set=no;;
2469esac
d9898ee8 2470rm -f conftest.make
2471fi
dd184caf 2472if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8d138742
CE
2473 { $as_echo "$as_me:$LINENO: result: yes" >&5
2474$as_echo "yes" >&6; }
d9898ee8 2475 SET_MAKE=
2476else
8d138742
CE
2477 { $as_echo "$as_me:$LINENO: result: no" >&5
2478$as_echo "no" >&6; }
d9898ee8 2479 SET_MAKE="MAKE=${MAKE-make}"
2480fi
2481
2482rm -rf .tst 2>/dev/null
2483mkdir .tst 2>/dev/null
2484if test -d .tst; then
2485 am__leading_dot=.
2486else
2487 am__leading_dot=_
2488fi
2489rmdir .tst 2>/dev/null
2490
dd184caf 2491if test "`cd $srcdir && pwd`" != "`pwd`"; then
2492 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2493 # is not polluted with repeated "-I."
2494 am__isrc=' -I$(srcdir)'
2495 # test to see if srcdir already configured
2496 if test -f $srcdir/config.status; then
8d138742
CE
2497 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2498$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
d9898ee8 2499 { (exit 1); exit 1; }; }
dd184caf 2500 fi
d9898ee8 2501fi
2502
2503# test whether we have cygpath
2504if test -z "$CYGPATH_W"; then
2505 if (cygpath --version) >/dev/null 2>/dev/null; then
2506 CYGPATH_W='cygpath -w'
2507 else
2508 CYGPATH_W=echo
2509 fi
2510fi
2511
2512
2513# Define the identity of the package.
2514 PACKAGE='libsha1'
2515 VERSION='1.21'
2516
2517
2518# Some tools Automake needs.
2519
2520ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2521
2522
2523AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2524
2525
2526AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2527
2528
2529AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2530
2531
2532MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2533
d9898ee8 2534# We need awk for the "check" target. The system "awk" is bad on
2535# some platforms.
2536# Always define AMTAR for backward compatibility.
2537
2538AMTAR=${AMTAR-"${am_missing_run}tar"}
2539
2540am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2541
2542
2543
2544
2545
2546
dd184caf 2547 if test -d ${srcdir}/../libhmac; then
d9898ee8 2548 HMACC_TRUE=
2549 HMACC_FALSE='#'
2550else
2551 HMACC_TRUE='#'
2552 HMACC_FALSE=
2553fi
2554
2555
2556ac_ext=c
2557ac_cpp='$CPP $CPPFLAGS'
2558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561if test -n "$ac_tool_prefix"; then
2562 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2563set dummy ${ac_tool_prefix}gcc; ac_word=$2
8d138742
CE
2564{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2565$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2566if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2567 $as_echo_n "(cached) " >&6
d9898ee8 2568else
2569 if test -n "$CC"; then
2570 ac_cv_prog_CC="$CC" # Let the user override the test.
2571else
2572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573for as_dir in $PATH
2574do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2579 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8d138742 2580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2581 break 2
2582 fi
2583done
2584done
dd184caf 2585IFS=$as_save_IFS
d9898ee8 2586
2587fi
2588fi
2589CC=$ac_cv_prog_CC
2590if test -n "$CC"; then
8d138742
CE
2591 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2592$as_echo "$CC" >&6; }
d9898ee8 2593else
8d138742
CE
2594 { $as_echo "$as_me:$LINENO: result: no" >&5
2595$as_echo "no" >&6; }
d9898ee8 2596fi
2597
dd184caf 2598
d9898ee8 2599fi
2600if test -z "$ac_cv_prog_CC"; then
2601 ac_ct_CC=$CC
2602 # Extract the first word of "gcc", so it can be a program name with args.
2603set dummy gcc; ac_word=$2
8d138742
CE
2604{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2605$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2606if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 2607 $as_echo_n "(cached) " >&6
d9898ee8 2608else
2609 if test -n "$ac_ct_CC"; then
2610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2611else
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2619 ac_cv_prog_ac_ct_CC="gcc"
8d138742 2620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2621 break 2
2622 fi
2623done
2624done
dd184caf 2625IFS=$as_save_IFS
d9898ee8 2626
2627fi
2628fi
2629ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630if test -n "$ac_ct_CC"; then
8d138742
CE
2631 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2632$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2633else
8d138742
CE
2634 { $as_echo "$as_me:$LINENO: result: no" >&5
2635$as_echo "no" >&6; }
d9898ee8 2636fi
2637
dd184caf 2638 if test "x$ac_ct_CC" = x; then
2639 CC=""
2640 else
2641 case $cross_compiling:$ac_tool_warned in
2642yes:)
8d138742
CE
2643{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2645ac_tool_warned=yes ;;
2646esac
2647 CC=$ac_ct_CC
2648 fi
d9898ee8 2649else
2650 CC="$ac_cv_prog_CC"
2651fi
2652
2653if test -z "$CC"; then
dd184caf 2654 if test -n "$ac_tool_prefix"; then
2655 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2656set dummy ${ac_tool_prefix}cc; ac_word=$2
8d138742
CE
2657{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2658$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2659if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2660 $as_echo_n "(cached) " >&6
d9898ee8 2661else
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2664else
2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH
2667do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2672 ac_cv_prog_CC="${ac_tool_prefix}cc"
8d138742 2673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2674 break 2
2675 fi
2676done
2677done
dd184caf 2678IFS=$as_save_IFS
d9898ee8 2679
2680fi
2681fi
2682CC=$ac_cv_prog_CC
2683if test -n "$CC"; then
8d138742
CE
2684 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2685$as_echo "$CC" >&6; }
d9898ee8 2686else
8d138742
CE
2687 { $as_echo "$as_me:$LINENO: result: no" >&5
2688$as_echo "no" >&6; }
d9898ee8 2689fi
2690
d9898ee8 2691
dd184caf 2692 fi
d9898ee8 2693fi
2694if test -z "$CC"; then
2695 # Extract the first word of "cc", so it can be a program name with args.
2696set dummy cc; ac_word=$2
8d138742
CE
2697{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2699if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2700 $as_echo_n "(cached) " >&6
d9898ee8 2701else
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
2704else
2705 ac_prog_rejected=no
2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707for as_dir in $PATH
2708do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2713 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2714 ac_prog_rejected=yes
2715 continue
2716 fi
2717 ac_cv_prog_CC="cc"
8d138742 2718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2719 break 2
2720 fi
2721done
2722done
dd184caf 2723IFS=$as_save_IFS
d9898ee8 2724
2725if test $ac_prog_rejected = yes; then
2726 # We found a bogon in the path, so make sure we never use it.
2727 set dummy $ac_cv_prog_CC
2728 shift
2729 if test $# != 0; then
2730 # We chose a different compiler from the bogus one.
2731 # However, it has the same basename, so the bogon will be chosen
2732 # first if we set CC to just the basename; use the full file name.
2733 shift
2734 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2735 fi
2736fi
2737fi
2738fi
2739CC=$ac_cv_prog_CC
2740if test -n "$CC"; then
8d138742
CE
2741 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2742$as_echo "$CC" >&6; }
d9898ee8 2743else
8d138742
CE
2744 { $as_echo "$as_me:$LINENO: result: no" >&5
2745$as_echo "no" >&6; }
d9898ee8 2746fi
2747
dd184caf 2748
d9898ee8 2749fi
2750if test -z "$CC"; then
2751 if test -n "$ac_tool_prefix"; then
dd184caf 2752 for ac_prog in cl.exe
d9898ee8 2753 do
2754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2755set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8d138742
CE
2756{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2757$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2758if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2759 $as_echo_n "(cached) " >&6
d9898ee8 2760else
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2763else
2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765for as_dir in $PATH
2766do
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2771 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8d138742 2772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2773 break 2
2774 fi
2775done
2776done
dd184caf 2777IFS=$as_save_IFS
d9898ee8 2778
2779fi
2780fi
2781CC=$ac_cv_prog_CC
2782if test -n "$CC"; then
8d138742
CE
2783 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2784$as_echo "$CC" >&6; }
d9898ee8 2785else
8d138742
CE
2786 { $as_echo "$as_me:$LINENO: result: no" >&5
2787$as_echo "no" >&6; }
d9898ee8 2788fi
2789
dd184caf 2790
d9898ee8 2791 test -n "$CC" && break
2792 done
2793fi
2794if test -z "$CC"; then
2795 ac_ct_CC=$CC
dd184caf 2796 for ac_prog in cl.exe
d9898ee8 2797do
2798 # Extract the first word of "$ac_prog", so it can be a program name with args.
2799set dummy $ac_prog; ac_word=$2
8d138742
CE
2800{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2801$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2802if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 2803 $as_echo_n "(cached) " >&6
d9898ee8 2804else
2805 if test -n "$ac_ct_CC"; then
2806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2807else
2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809for as_dir in $PATH
2810do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2815 ac_cv_prog_ac_ct_CC="$ac_prog"
8d138742 2816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2817 break 2
2818 fi
2819done
2820done
dd184caf 2821IFS=$as_save_IFS
d9898ee8 2822
2823fi
2824fi
2825ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826if test -n "$ac_ct_CC"; then
8d138742
CE
2827 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2828$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2829else
8d138742
CE
2830 { $as_echo "$as_me:$LINENO: result: no" >&5
2831$as_echo "no" >&6; }
d9898ee8 2832fi
2833
dd184caf 2834
d9898ee8 2835 test -n "$ac_ct_CC" && break
2836done
2837
dd184caf 2838 if test "x$ac_ct_CC" = x; then
2839 CC=""
2840 else
2841 case $cross_compiling:$ac_tool_warned in
2842yes:)
8d138742
CE
2843{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2845ac_tool_warned=yes ;;
2846esac
2847 CC=$ac_ct_CC
2848 fi
d9898ee8 2849fi
2850
2851fi
2852
2853
8d138742
CE
2854test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2856{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d9898ee8 2857See \`config.log' for more details." >&5
8d138742 2858$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
d9898ee8 2859See \`config.log' for more details." >&2;}
8d138742 2860 { (exit 1); exit 1; }; }; }
d9898ee8 2861
2862# Provide some information about the compiler.
8d138742
CE
2863$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2864set X $ac_compile
2865ac_compiler=$2
dd184caf 2866{ (ac_try="$ac_compiler --version >&5"
2867case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870esac
8d138742
CE
2871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2872$as_echo "$ac_try_echo") >&5
dd184caf 2873 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2874 ac_status=$?
8d138742 2875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2876 (exit $ac_status); }
dd184caf 2877{ (ac_try="$ac_compiler -v >&5"
2878case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881esac
8d138742
CE
2882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2883$as_echo "$ac_try_echo") >&5
dd184caf 2884 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2885 ac_status=$?
8d138742 2886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2887 (exit $ac_status); }
dd184caf 2888{ (ac_try="$ac_compiler -V >&5"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
8d138742
CE
2893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2894$as_echo "$ac_try_echo") >&5
dd184caf 2895 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2896 ac_status=$?
8d138742 2897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2898 (exit $ac_status); }
2899
2900cat >conftest.$ac_ext <<_ACEOF
2901/* confdefs.h. */
2902_ACEOF
2903cat confdefs.h >>conftest.$ac_ext
2904cat >>conftest.$ac_ext <<_ACEOF
2905/* end confdefs.h. */
2906
2907int
2908main ()
2909{
2910
2911 ;
2912 return 0;
2913}
2914_ACEOF
2915ac_clean_files_save=$ac_clean_files
8d138742 2916ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 2917# Try to create an executable without -o first, disregard a.out.
2918# It will help us diagnose broken compilers, and finding out an intuition
2919# of exeext.
8d138742
CE
2920{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2921$as_echo_n "checking for C compiler default output file name... " >&6; }
2922ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2923
2924# The possible output files:
2925ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2926
dd184caf 2927ac_rmfiles=
2928for ac_file in $ac_files
2929do
2930 case $ac_file in
8d138742 2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 2932 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2933 esac
2934done
2935rm -f $ac_rmfiles
2936
2937if { (ac_try="$ac_link_default"
2938case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941esac
8d138742
CE
2942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2943$as_echo "$ac_try_echo") >&5
dd184caf 2944 (eval "$ac_link_default") 2>&5
d9898ee8 2945 ac_status=$?
8d138742 2946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2947 (exit $ac_status); }; then
dd184caf 2948 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2949# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2950# in a Makefile. We should not override ac_cv_exeext if it was cached,
2951# so that the user can short-circuit this test for compilers unknown to
2952# Autoconf.
2953for ac_file in $ac_files ''
d9898ee8 2954do
2955 test -f "$ac_file" || continue
2956 case $ac_file in
8d138742 2957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 2958 ;;
2959 [ab].out )
2960 # We found the default executable, but exeext='' is most
2961 # certainly right.
2962 break;;
2963 *.* )
dd184caf 2964 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2965 then :; else
2966 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2967 fi
2968 # We set ac_cv_exeext here because the later test for it is not
2969 # safe: cross compilers may not add the suffix if given an `-o'
2970 # argument, so we may need to know it at that point already.
2971 # Even if this section looks crufty: it has the advantage of
2972 # actually working.
d9898ee8 2973 break;;
2974 * )
2975 break;;
2976 esac
2977done
dd184caf 2978test "$ac_cv_exeext" = no && ac_cv_exeext=
2979
d9898ee8 2980else
dd184caf 2981 ac_file=''
2982fi
2983
8d138742
CE
2984{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2985$as_echo "$ac_file" >&6; }
dd184caf 2986if test -z "$ac_file"; then
8d138742 2987 $as_echo "$as_me: failed program was:" >&5
d9898ee8 2988sed 's/^/| /' conftest.$ac_ext >&5
2989
8d138742
CE
2990{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
d9898ee8 2993See \`config.log' for more details." >&5
8d138742 2994$as_echo "$as_me: error: C compiler cannot create executables
d9898ee8 2995See \`config.log' for more details." >&2;}
8d138742 2996 { (exit 77); exit 77; }; }; }
d9898ee8 2997fi
2998
2999ac_exeext=$ac_cv_exeext
d9898ee8 3000
dd184caf 3001# Check that the compiler produces executables we can run. If not, either
d9898ee8 3002# the compiler is broken, or we cross compile.
8d138742
CE
3003{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3004$as_echo_n "checking whether the C compiler works... " >&6; }
d9898ee8 3005# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3006# If not cross compiling, check that we can run a simple program.
3007if test "$cross_compiling" != yes; then
3008 if { ac_try='./$ac_file'
dd184caf 3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012esac
8d138742
CE
3013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3014$as_echo "$ac_try_echo") >&5
dd184caf 3015 (eval "$ac_try") 2>&5
d9898ee8 3016 ac_status=$?
8d138742 3017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3018 (exit $ac_status); }; }; then
3019 cross_compiling=no
3020 else
3021 if test "$cross_compiling" = maybe; then
3022 cross_compiling=yes
3023 else
8d138742
CE
3024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
d9898ee8 3027If you meant to cross compile, use \`--host'.
3028See \`config.log' for more details." >&5
8d138742 3029$as_echo "$as_me: error: cannot run C compiled programs.
d9898ee8 3030If you meant to cross compile, use \`--host'.
3031See \`config.log' for more details." >&2;}
8d138742 3032 { (exit 1); exit 1; }; }; }
d9898ee8 3033 fi
3034 fi
3035fi
8d138742
CE
3036{ $as_echo "$as_me:$LINENO: result: yes" >&5
3037$as_echo "yes" >&6; }
d9898ee8 3038
8d138742 3039rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3040ac_clean_files=$ac_clean_files_save
dd184caf 3041# Check that the compiler produces executables we can run. If not, either
d9898ee8 3042# the compiler is broken, or we cross compile.
8d138742
CE
3043{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3044$as_echo_n "checking whether we are cross compiling... " >&6; }
3045{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3046$as_echo "$cross_compiling" >&6; }
dd184caf 3047
8d138742
CE
3048{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3049$as_echo_n "checking for suffix of executables... " >&6; }
dd184caf 3050if { (ac_try="$ac_link"
3051case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054esac
8d138742
CE
3055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3056$as_echo "$ac_try_echo") >&5
dd184caf 3057 (eval "$ac_link") 2>&5
d9898ee8 3058 ac_status=$?
8d138742 3059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3060 (exit $ac_status); }; then
3061 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3062# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3063# work properly (i.e., refer to `conftest.exe'), while it won't with
3064# `rm'.
3065for ac_file in conftest.exe conftest conftest.*; do
3066 test -f "$ac_file" || continue
3067 case $ac_file in
8d138742 3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3069 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3070 break;;
3071 * ) break;;
3072 esac
3073done
3074else
8d138742
CE
3075 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3078See \`config.log' for more details." >&5
8d138742 3079$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3080See \`config.log' for more details." >&2;}
8d138742 3081 { (exit 1); exit 1; }; }; }
d9898ee8 3082fi
3083
3084rm -f conftest$ac_cv_exeext
8d138742
CE
3085{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3086$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3087
3088rm -f conftest.$ac_ext
3089EXEEXT=$ac_cv_exeext
3090ac_exeext=$EXEEXT
8d138742
CE
3091{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3092$as_echo_n "checking for suffix of object files... " >&6; }
d9898ee8 3093if test "${ac_cv_objext+set}" = set; then
8d138742 3094 $as_echo_n "(cached) " >&6
d9898ee8 3095else
3096 cat >conftest.$ac_ext <<_ACEOF
3097/* confdefs.h. */
3098_ACEOF
3099cat confdefs.h >>conftest.$ac_ext
3100cat >>conftest.$ac_ext <<_ACEOF
3101/* end confdefs.h. */
3102
3103int
3104main ()
3105{
3106
3107 ;
3108 return 0;
3109}
3110_ACEOF
3111rm -f conftest.o conftest.obj
dd184caf 3112if { (ac_try="$ac_compile"
3113case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116esac
8d138742
CE
3117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3118$as_echo "$ac_try_echo") >&5
dd184caf 3119 (eval "$ac_compile") 2>&5
d9898ee8 3120 ac_status=$?
8d138742 3121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3122 (exit $ac_status); }; then
dd184caf 3123 for ac_file in conftest.o conftest.obj conftest.*; do
3124 test -f "$ac_file" || continue;
d9898ee8 3125 case $ac_file in
8d138742 3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3127 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3128 break;;
3129 esac
3130done
3131else
8d138742 3132 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3133sed 's/^/| /' conftest.$ac_ext >&5
3134
8d138742
CE
3135{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
d9898ee8 3138See \`config.log' for more details." >&5
8d138742 3139$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
d9898ee8 3140See \`config.log' for more details." >&2;}
8d138742 3141 { (exit 1); exit 1; }; }; }
d9898ee8 3142fi
3143
3144rm -f conftest.$ac_cv_objext conftest.$ac_ext
3145fi
8d138742
CE
3146{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3147$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3148OBJEXT=$ac_cv_objext
3149ac_objext=$OBJEXT
8d138742
CE
3150{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3151$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d9898ee8 3152if test "${ac_cv_c_compiler_gnu+set}" = set; then
8d138742 3153 $as_echo_n "(cached) " >&6
d9898ee8 3154else
3155 cat >conftest.$ac_ext <<_ACEOF
3156/* confdefs.h. */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h. */
3161
3162int
3163main ()
3164{
3165#ifndef __GNUC__
3166 choke me
3167#endif
3168
3169 ;
3170 return 0;
3171}
3172_ACEOF
3173rm -f conftest.$ac_objext
dd184caf 3174if { (ac_try="$ac_compile"
3175case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178esac
8d138742
CE
3179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3180$as_echo "$ac_try_echo") >&5
dd184caf 3181 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
8d138742 3186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3187 (exit $ac_status); } && {
3188 test -z "$ac_c_werror_flag" ||
3189 test ! -s conftest.err
3190 } && test -s conftest.$ac_objext; then
d9898ee8 3191 ac_compiler_gnu=yes
3192else
8d138742 3193 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3194sed 's/^/| /' conftest.$ac_ext >&5
3195
dd184caf 3196 ac_compiler_gnu=no
d9898ee8 3197fi
dd184caf 3198
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3200ac_cv_c_compiler_gnu=$ac_compiler_gnu
3201
3202fi
8d138742
CE
3203{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3204$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3205if test $ac_compiler_gnu = yes; then
3206 GCC=yes
3207else
3208 GCC=
3209fi
d9898ee8 3210ac_test_CFLAGS=${CFLAGS+set}
3211ac_save_CFLAGS=$CFLAGS
8d138742
CE
3212{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3213$as_echo_n "checking whether $CC accepts -g... " >&6; }
d9898ee8 3214if test "${ac_cv_prog_cc_g+set}" = set; then
8d138742 3215 $as_echo_n "(cached) " >&6
d9898ee8 3216else
dd184caf 3217 ac_save_c_werror_flag=$ac_c_werror_flag
3218 ac_c_werror_flag=yes
3219 ac_cv_prog_cc_g=no
3220 CFLAGS="-g"
3221 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3222/* confdefs.h. */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h. */
3227
3228int
3229main ()
3230{
3231
3232 ;
3233 return 0;
3234}
3235_ACEOF
3236rm -f conftest.$ac_objext
dd184caf 3237if { (ac_try="$ac_compile"
3238case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241esac
8d138742
CE
3242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3243$as_echo "$ac_try_echo") >&5
dd184caf 3244 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
8d138742 3249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3250 (exit $ac_status); } && {
3251 test -z "$ac_c_werror_flag" ||
3252 test ! -s conftest.err
3253 } && test -s conftest.$ac_objext; then
3254 ac_cv_prog_cc_g=yes
3255else
8d138742 3256 $as_echo "$as_me: failed program was:" >&5
dd184caf 3257sed 's/^/| /' conftest.$ac_ext >&5
3258
3259 CFLAGS=""
3260 cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h. */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h. */
3266
3267int
3268main ()
3269{
3270
3271 ;
3272 return 0;
3273}
3274_ACEOF
3275rm -f conftest.$ac_objext
3276if { (ac_try="$ac_compile"
3277case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280esac
8d138742
CE
3281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282$as_echo "$ac_try_echo") >&5
dd184caf 3283 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3284 ac_status=$?
dd184caf 3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
8d138742 3288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3289 (exit $ac_status); } && {
3290 test -z "$ac_c_werror_flag" ||
3291 test ! -s conftest.err
3292 } && test -s conftest.$ac_objext; then
3293 :
3294else
8d138742 3295 $as_echo "$as_me: failed program was:" >&5
dd184caf 3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 ac_c_werror_flag=$ac_save_c_werror_flag
3299 CFLAGS="-g"
3300 cat >conftest.$ac_ext <<_ACEOF
3301/* confdefs.h. */
3302_ACEOF
3303cat confdefs.h >>conftest.$ac_ext
3304cat >>conftest.$ac_ext <<_ACEOF
3305/* end confdefs.h. */
3306
3307int
3308main ()
3309{
3310
3311 ;
3312 return 0;
3313}
3314_ACEOF
3315rm -f conftest.$ac_objext
3316if { (ac_try="$ac_compile"
3317case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320esac
8d138742
CE
3321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3322$as_echo "$ac_try_echo") >&5
dd184caf 3323 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3324 ac_status=$?
dd184caf 3325 grep -v '^ *+' conftest.er1 >conftest.err
3326 rm -f conftest.er1
3327 cat conftest.err >&5
8d138742 3328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3329 (exit $ac_status); } && {
3330 test -z "$ac_c_werror_flag" ||
3331 test ! -s conftest.err
3332 } && test -s conftest.$ac_objext; then
d9898ee8 3333 ac_cv_prog_cc_g=yes
3334else
8d138742 3335 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3336sed 's/^/| /' conftest.$ac_ext >&5
3337
dd184caf 3338
3339fi
3340
3341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3342fi
dd184caf 3343
3344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345fi
3346
3347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3349fi
8d138742
CE
3350{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3351$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3352if test "$ac_test_CFLAGS" = set; then
3353 CFLAGS=$ac_save_CFLAGS
3354elif test $ac_cv_prog_cc_g = yes; then
3355 if test "$GCC" = yes; then
3356 CFLAGS="-g -O2"
3357 else
3358 CFLAGS="-g"
3359 fi
3360else
3361 if test "$GCC" = yes; then
3362 CFLAGS="-O2"
3363 else
3364 CFLAGS=
3365 fi
3366fi
8d138742
CE
3367{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3368$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
dd184caf 3369if test "${ac_cv_prog_cc_c89+set}" = set; then
8d138742 3370 $as_echo_n "(cached) " >&6
d9898ee8 3371else
dd184caf 3372 ac_cv_prog_cc_c89=no
d9898ee8 3373ac_save_CC=$CC
3374cat >conftest.$ac_ext <<_ACEOF
3375/* confdefs.h. */
3376_ACEOF
3377cat confdefs.h >>conftest.$ac_ext
3378cat >>conftest.$ac_ext <<_ACEOF
3379/* end confdefs.h. */
3380#include <stdarg.h>
3381#include <stdio.h>
3382#include <sys/types.h>
3383#include <sys/stat.h>
3384/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3385struct buf { int x; };
3386FILE * (*rcsopen) (struct buf *, struct stat *, int);
3387static char *e (p, i)
3388 char **p;
3389 int i;
3390{
3391 return p[i];
3392}
3393static char *f (char * (*g) (char **, int), char **p, ...)
3394{
3395 char *s;
3396 va_list v;
3397 va_start (v,p);
3398 s = g (p, va_arg (v,int));
3399 va_end (v);
3400 return s;
3401}
3402
3403/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3404 function prototypes and stuff, but not '\xHH' hex character constants.
3405 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3406 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3407 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3408 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3409 that's true only with -std. */
d9898ee8 3410int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3411
dd184caf 3412/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3413 inside strings and character constants. */
3414#define FOO(x) 'x'
3415int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3416
d9898ee8 3417int test (int i, double x);
3418struct s1 {int (*f) (int a);};
3419struct s2 {int (*f) (double a);};
3420int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3421int argc;
3422char **argv;
3423int
3424main ()
3425{
3426return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3427 ;
3428 return 0;
3429}
3430_ACEOF
dd184caf 3431for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3432 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3433do
3434 CC="$ac_save_CC $ac_arg"
3435 rm -f conftest.$ac_objext
dd184caf 3436if { (ac_try="$ac_compile"
3437case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440esac
8d138742
CE
3441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3442$as_echo "$ac_try_echo") >&5
dd184caf 3443 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3444 ac_status=$?
3445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
8d138742 3448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 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_c89=$ac_arg
d9898ee8 3454else
8d138742 3455 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3456sed 's/^/| /' conftest.$ac_ext >&5
3457
dd184caf 3458
d9898ee8 3459fi
dd184caf 3460
3461rm -f core conftest.err conftest.$ac_objext
3462 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3463done
dd184caf 3464rm -f conftest.$ac_ext
d9898ee8 3465CC=$ac_save_CC
3466
3467fi
dd184caf 3468# AC_CACHE_VAL
3469case "x$ac_cv_prog_cc_c89" in
3470 x)
8d138742
CE
3471 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3472$as_echo "none needed" >&6; } ;;
dd184caf 3473 xno)
8d138742
CE
3474 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3475$as_echo "unsupported" >&6; } ;;
d9898ee8 3476 *)
dd184caf 3477 CC="$CC $ac_cv_prog_cc_c89"
8d138742
CE
3478 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3479$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3480esac
3481
d9898ee8 3482
d9898ee8 3483ac_ext=c
3484ac_cpp='$CPP $CPPFLAGS'
3485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488DEPDIR="${am__leading_dot}deps"
3489
dd184caf 3490ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3491
3492
3493am_make=${MAKE-make}
3494cat > confinc << 'END'
3495am__doit:
8d138742 3496 @echo this is the am__doit target
d9898ee8 3497.PHONY: am__doit
3498END
3499# If we don't find an include directive, just comment out the code.
8d138742
CE
3500{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3501$as_echo_n "checking for style of include used by $am_make... " >&6; }
d9898ee8 3502am__include="#"
3503am__quote=
3504_am_result=none
3505# First try GNU make style include.
3506echo "include confinc" > confmf
8d138742
CE
3507# Ignore all kinds of additional output from `make'.
3508case `$am_make -s -f confmf 2> /dev/null` in #(
3509*the\ am__doit\ target*)
3510 am__include=include
3511 am__quote=
3512 _am_result=GNU
3513 ;;
3514esac
d9898ee8 3515# Now try BSD make style include.
3516if test "$am__include" = "#"; then
3517 echo '.include "confinc"' > confmf
8d138742
CE
3518 case `$am_make -s -f confmf 2> /dev/null` in #(
3519 *the\ am__doit\ target*)
3520 am__include=.include
3521 am__quote="\""
3522 _am_result=BSD
3523 ;;
3524 esac
d9898ee8 3525fi
3526
3527
8d138742
CE
3528{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3529$as_echo "$_am_result" >&6; }
d9898ee8 3530rm -f confinc confmf
3531
dd184caf 3532# Check whether --enable-dependency-tracking was given.
d9898ee8 3533if test "${enable_dependency_tracking+set}" = set; then
dd184caf 3534 enableval=$enable_dependency_tracking;
3535fi
d9898ee8 3536
d9898ee8 3537if test "x$enable_dependency_tracking" != xno; then
3538 am_depcomp="$ac_aux_dir/depcomp"
3539 AMDEPBACKSLASH='\'
3540fi
dd184caf 3541 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3542 AMDEP_TRUE=
3543 AMDEP_FALSE='#'
3544else
3545 AMDEP_TRUE='#'
3546 AMDEP_FALSE=
3547fi
3548
3549
3550
d9898ee8 3551depcc="$CC" am_compiler_list=
3552
8d138742
CE
3553{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3554$as_echo_n "checking dependency style of $depcc... " >&6; }
d9898ee8 3555if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8d138742 3556 $as_echo_n "(cached) " >&6
d9898ee8 3557else
3558 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3559 # We make a subdir and do the tests there. Otherwise we can end up
3560 # making bogus files that we don't know about and never remove. For
3561 # instance it was reported that on HP-UX the gcc test will end up
3562 # making a dummy file named `D' -- because `-MD' means `put the output
3563 # in D'.
3564 mkdir conftest.dir
3565 # Copy depcomp to subdir because otherwise we won't find it if we're
3566 # using a relative directory.
3567 cp "$am_depcomp" conftest.dir
3568 cd conftest.dir
3569 # We will build objects and dependencies in a subdirectory because
3570 # it helps to detect inapplicable dependency modes. For instance
3571 # both Tru64's cc and ICC support -MD to output dependencies as a
3572 # side effect of compilation, but ICC will put the dependencies in
3573 # the current directory while Tru64 will put them in the object
3574 # directory.
3575 mkdir sub
3576
3577 am_cv_CC_dependencies_compiler_type=none
3578 if test "$am_compiler_list" = ""; then
3579 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3580 fi
8d138742
CE
3581 am__universal=false
3582 case " $depcc " in #(
3583 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3584 esac
3585
d9898ee8 3586 for depmode in $am_compiler_list; do
3587 # Setup a source with many dependencies, because some compilers
3588 # like to wrap large dependency lists on column 80 (with \), and
3589 # we should not choose a depcomp mode which is confused by this.
3590 #
3591 # We need to recreate these files for each test, as the compiler may
3592 # overwrite some of them when testing with obscure command lines.
3593 # This happens at least with the AIX C compiler.
3594 : > sub/conftest.c
3595 for i in 1 2 3 4 5 6; do
3596 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3597 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3598 # Solaris 8's {/usr,}/bin/sh.
3599 touch sub/conftst$i.h
3600 done
3601 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3602
8d138742
CE
3603 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3604 # mode. It turns out that the SunPro C++ compiler does not properly
3605 # handle `-M -o', and we need to detect this. Also, some Intel
3606 # versions had trouble with output in subdirs
3607 am__obj=sub/conftest.${OBJEXT-o}
3608 am__minus_obj="-o $am__obj"
d9898ee8 3609 case $depmode in
8d138742
CE
3610 gcc)
3611 # This depmode causes a compiler race in universal mode.
3612 test "$am__universal" = false || continue
3613 ;;
d9898ee8 3614 nosideeffect)
3615 # after this tag, mechanisms are not by side-effect, so they'll
3616 # only be used when explicitly requested
3617 if test "x$enable_dependency_tracking" = xyes; then
3618 continue
3619 else
3620 break
3621 fi
3622 ;;
8d138742
CE
3623 msvisualcpp | msvcmsys)
3624 # This compiler won't grok `-c -o', but also, the minuso test has
3625 # not run yet. These depmodes are late enough in the game, and
3626 # so weak that their functioning should not be impacted.
3627 am__obj=conftest.${OBJEXT-o}
3628 am__minus_obj=
3629 ;;
d9898ee8 3630 none) break ;;
3631 esac
d9898ee8 3632 if depmode=$depmode \
8d138742 3633 source=sub/conftest.c object=$am__obj \
d9898ee8 3634 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3635 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3636 >/dev/null 2>conftest.err &&
dd184caf 3637 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3638 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3639 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3640 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3641 # icc doesn't choke on unknown options, it will just issue warnings
3642 # or remarks (even with -Werror). So we grep stderr for any message
3643 # that says an option was ignored or not supported.
3644 # When given -MP, icc 7.0 and 7.1 complain thusly:
3645 # icc: Command line warning: ignoring option '-M'; no argument required
3646 # The diagnosis changed in icc 8.0:
3647 # icc: Command line remark: option '-MP' not supported
3648 if (grep 'ignoring option' conftest.err ||
3649 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3650 am_cv_CC_dependencies_compiler_type=$depmode
3651 break
3652 fi
3653 fi
3654 done
3655
3656 cd ..
3657 rm -rf conftest.dir
3658else
3659 am_cv_CC_dependencies_compiler_type=none
3660fi
3661
3662fi
8d138742
CE
3663{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3664$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3665CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3666
dd184caf 3667 if
d9898ee8 3668 test "x$enable_dependency_tracking" != xno \
3669 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3670 am__fastdepCC_TRUE=
3671 am__fastdepCC_FALSE='#'
3672else
3673 am__fastdepCC_TRUE='#'
3674 am__fastdepCC_FALSE=
3675fi
3676
3677
3678# Find a good install program. We prefer a C program (faster),
3679# so one script is as good as another. But avoid the broken or
3680# incompatible versions:
3681# SysV /etc/install, /usr/sbin/install
3682# SunOS /usr/etc/install
3683# IRIX /sbin/install
3684# AIX /bin/install
3685# AmigaOS /C/install, which installs bootblocks on floppy discs
3686# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3687# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3688# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3689# OS/2's system install, which has a completely different semantic
3690# ./install, which can be erroneously created by make from ./install.sh.
8d138742
CE
3691# Reject install programs that cannot install multiple files.
3692{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3693$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 3694if test -z "$INSTALL"; then
3695if test "${ac_cv_path_install+set}" = set; then
8d138742 3696 $as_echo_n "(cached) " >&6
d9898ee8 3697else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699for as_dir in $PATH
3700do
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 # Account for people who put trailing slashes in PATH elements.
3704case $as_dir/ in
3705 ./ | .// | /cC/* | \
3706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3707 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3708 /usr/ucb/* ) ;;
3709 *)
3710 # OSF1 and SCO ODT 3.0 have their own names for install.
3711 # Don't use installbsd from OSF since it installs stuff as root
3712 # by default.
3713 for ac_prog in ginstall scoinst install; do
3714 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 3715 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 3716 if test $ac_prog = install &&
3717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3718 # AIX install. It has an incompatible calling convention.
3719 :
3720 elif test $ac_prog = install &&
3721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3722 # program-specific install script used by HP pwplus--don't use.
3723 :
3724 else
8d138742
CE
3725 rm -rf conftest.one conftest.two conftest.dir
3726 echo one > conftest.one
3727 echo two > conftest.two
3728 mkdir conftest.dir
3729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3730 test -s conftest.one && test -s conftest.two &&
3731 test -s conftest.dir/conftest.one &&
3732 test -s conftest.dir/conftest.two
3733 then
3734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3735 break 3
3736 fi
d9898ee8 3737 fi
3738 fi
3739 done
3740 done
3741 ;;
3742esac
8d138742 3743
d9898ee8 3744done
dd184caf 3745IFS=$as_save_IFS
d9898ee8 3746
8d138742 3747rm -rf conftest.one conftest.two conftest.dir
d9898ee8 3748
3749fi
3750 if test "${ac_cv_path_install+set}" = set; then
3751 INSTALL=$ac_cv_path_install
3752 else
dd184caf 3753 # As a last resort, use the slow shell script. Don't cache a
3754 # value for INSTALL within a source directory, because that will
d9898ee8 3755 # break other packages using the cache if that directory is
dd184caf 3756 # removed, or if the value is a relative name.
d9898ee8 3757 INSTALL=$ac_install_sh
3758 fi
3759fi
8d138742
CE
3760{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3761$as_echo "$INSTALL" >&6; }
d9898ee8 3762
3763# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3764# It thinks the first close brace ends the variable substitution.
3765test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3766
3767test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3768
3769test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3770
8d138742
CE
3771{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3772$as_echo_n "checking whether ln -s works... " >&6; }
d9898ee8 3773LN_S=$as_ln_s
3774if test "$LN_S" = "ln -s"; then
8d138742
CE
3775 { $as_echo "$as_me:$LINENO: result: yes" >&5
3776$as_echo "yes" >&6; }
d9898ee8 3777else
8d138742
CE
3778 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3779$as_echo "no, using $LN_S" >&6; }
d9898ee8 3780fi
3781
8d138742
CE
3782case `pwd` in
3783 *\ * | *\ *)
3784 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3785$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3786esac
3787
3788
3789
3790macro_version='2.2.6'
3791macro_revision='1.3012'
3792
3793
d9898ee8 3794
dd184caf 3795
d9898ee8 3796
dd184caf 3797
dd184caf 3798
d9898ee8 3799
8d138742
CE
3800
3801
3802
3803
3804
3805ltmain="$ac_aux_dir/ltmain.sh"
3806
d9898ee8 3807# Make sure we can run config.sub.
dd184caf 3808$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8d138742
CE
3809 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3810$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3811 { (exit 1); exit 1; }; }
3812
8d138742
CE
3813{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3814$as_echo_n "checking build system type... " >&6; }
d9898ee8 3815if test "${ac_cv_build+set}" = set; then
8d138742 3816 $as_echo_n "(cached) " >&6
d9898ee8 3817else
dd184caf 3818 ac_build_alias=$build_alias
3819test "x$ac_build_alias" = x &&
3820 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3821test "x$ac_build_alias" = x &&
8d138742
CE
3822 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3823$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
d9898ee8 3824 { (exit 1); exit 1; }; }
dd184caf 3825ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8d138742
CE
3826 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3827$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3828 { (exit 1); exit 1; }; }
3829
3830fi
8d138742
CE
3831{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3832$as_echo "$ac_cv_build" >&6; }
dd184caf 3833case $ac_cv_build in
3834*-*-*) ;;
8d138742
CE
3835*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3836$as_echo "$as_me: error: invalid value of canonical build" >&2;}
dd184caf 3837 { (exit 1); exit 1; }; };;
3838esac
d9898ee8 3839build=$ac_cv_build
dd184caf 3840ac_save_IFS=$IFS; IFS='-'
3841set x $ac_cv_build
3842shift
3843build_cpu=$1
3844build_vendor=$2
3845shift; shift
3846# Remember, the first character of IFS is used to create $*,
3847# except with old shells:
3848build_os=$*
3849IFS=$ac_save_IFS
3850case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3851
3852
8d138742
CE
3853{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3854$as_echo_n "checking host system type... " >&6; }
d9898ee8 3855if test "${ac_cv_host+set}" = set; then
8d138742 3856 $as_echo_n "(cached) " >&6
d9898ee8 3857else
dd184caf 3858 if test "x$host_alias" = x; then
3859 ac_cv_host=$ac_cv_build
3860else
3861 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8d138742
CE
3862 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3863$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3864 { (exit 1); exit 1; }; }
dd184caf 3865fi
d9898ee8 3866
3867fi
8d138742
CE
3868{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3869$as_echo "$ac_cv_host" >&6; }
dd184caf 3870case $ac_cv_host in
3871*-*-*) ;;
8d138742
CE
3872*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3873$as_echo "$as_me: error: invalid value of canonical host" >&2;}
dd184caf 3874 { (exit 1); exit 1; }; };;
3875esac
d9898ee8 3876host=$ac_cv_host
dd184caf 3877ac_save_IFS=$IFS; IFS='-'
3878set x $ac_cv_host
3879shift
3880host_cpu=$1
3881host_vendor=$2
3882shift; shift
3883# Remember, the first character of IFS is used to create $*,
3884# except with old shells:
3885host_os=$*
3886IFS=$ac_save_IFS
3887case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3888
3889
8d138742
CE
3890{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3891$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3892if test "${ac_cv_path_SED+set}" = set; then
3893 $as_echo_n "(cached) " >&6
3894else
3895 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3896 for ac_i in 1 2 3 4 5 6 7; do
3897 ac_script="$ac_script$as_nl$ac_script"
3898 done
3899 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3900 $as_unset ac_script || ac_script=
3901 if test -z "$SED"; then
3902 ac_path_SED_found=false
3903 # Loop through the user's path and test for each of PROGNAME-LIST
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 3905for as_dir in $PATH
3906do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
8d138742 3909 for ac_prog in sed gsed; do
d9898ee8 3910 for ac_exec_ext in '' $ac_executable_extensions; do
8d138742
CE
3911 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3912 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3913# Check for GNU ac_path_SED and select it if it is found.
3914 # Check for GNU $ac_path_SED
3915case `"$ac_path_SED" --version 2>&1` in
3916*GNU*)
3917 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3918*)
3919 ac_count=0
3920 $as_echo_n 0123456789 >"conftest.in"
3921 while :
3922 do
3923 cat "conftest.in" "conftest.in" >"conftest.tmp"
3924 mv "conftest.tmp" "conftest.in"
3925 cp "conftest.in" "conftest.nl"
3926 $as_echo '' >> "conftest.nl"
3927 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3929 ac_count=`expr $ac_count + 1`
3930 if test $ac_count -gt ${ac_path_SED_max-0}; then
3931 # Best one so far, save it but keep looking for a better one
3932 ac_cv_path_SED="$ac_path_SED"
3933 ac_path_SED_max=$ac_count
3934 fi
3935 # 10*(2^10) chars as input seems more than enough
3936 test $ac_count -gt 10 && break
3937 done
3938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939esac
3940
3941 $ac_path_SED_found && break 3
d9898ee8 3942 done
3943 done
3944done
3945IFS=$as_save_IFS
8d138742
CE
3946 if test -z "$ac_cv_path_SED"; then
3947 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3948$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3949 { (exit 1); exit 1; }; }
d9898ee8 3950 fi
8d138742
CE
3951else
3952 ac_cv_path_SED=$SED
3953fi
d9898ee8 3954
3955fi
8d138742
CE
3956{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3957$as_echo "$ac_cv_path_SED" >&6; }
3958 SED="$ac_cv_path_SED"
3959 rm -f conftest.sed
d9898ee8 3960
8d138742
CE
3961test -z "$SED" && SED=sed
3962Xsed="$SED -e 1s/^X//"
d9898ee8 3963
dd184caf 3964
8d138742
CE
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3975$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
dd184caf 3976if test "${ac_cv_path_GREP+set}" = set; then
8d138742 3977 $as_echo_n "(cached) " >&6
dd184caf 3978else
8d138742 3979 if test -z "$GREP"; then
dd184caf 3980 ac_path_GREP_found=false
8d138742
CE
3981 # Loop through the user's path and test for each of PROGNAME-LIST
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 3983for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3984do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_prog in grep ggrep; do
8d138742
CE
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3990 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3991# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 3992 # Check for GNU $ac_path_GREP
3993case `"$ac_path_GREP" --version 2>&1` in
3994*GNU*)
3995 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3996*)
3997 ac_count=0
8d138742 3998 $as_echo_n 0123456789 >"conftest.in"
dd184caf 3999 while :
4000 do
4001 cat "conftest.in" "conftest.in" >"conftest.tmp"
4002 mv "conftest.tmp" "conftest.in"
4003 cp "conftest.in" "conftest.nl"
8d138742 4004 $as_echo 'GREP' >> "conftest.nl"
dd184caf 4005 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4007 ac_count=`expr $ac_count + 1`
4008 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4009 # Best one so far, save it but keep looking for a better one
4010 ac_cv_path_GREP="$ac_path_GREP"
4011 ac_path_GREP_max=$ac_count
4012 fi
4013 # 10*(2^10) chars as input seems more than enough
4014 test $ac_count -gt 10 && break
4015 done
4016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4017esac
4018
8d138742
CE
4019 $ac_path_GREP_found && break 3
4020 done
dd184caf 4021 done
4022done
dd184caf 4023IFS=$as_save_IFS
8d138742
CE
4024 if test -z "$ac_cv_path_GREP"; then
4025 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4026$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
dd184caf 4027 { (exit 1); exit 1; }; }
8d138742 4028 fi
dd184caf 4029else
4030 ac_cv_path_GREP=$GREP
4031fi
4032
dd184caf 4033fi
8d138742
CE
4034{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4035$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4036 GREP="$ac_cv_path_GREP"
4037
d9898ee8 4038
8d138742
CE
4039{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4040$as_echo_n "checking for egrep... " >&6; }
dd184caf 4041if test "${ac_cv_path_EGREP+set}" = set; then
8d138742 4042 $as_echo_n "(cached) " >&6
d9898ee8 4043else
dd184caf 4044 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4045 then ac_cv_path_EGREP="$GREP -E"
4046 else
8d138742 4047 if test -z "$EGREP"; then
dd184caf 4048 ac_path_EGREP_found=false
8d138742
CE
4049 # Loop through the user's path and test for each of PROGNAME-LIST
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4051for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4052do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_prog in egrep; do
8d138742
CE
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4058 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4059# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4060 # Check for GNU $ac_path_EGREP
4061case `"$ac_path_EGREP" --version 2>&1` in
4062*GNU*)
4063 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4064*)
4065 ac_count=0
8d138742 4066 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4067 while :
4068 do
4069 cat "conftest.in" "conftest.in" >"conftest.tmp"
4070 mv "conftest.tmp" "conftest.in"
4071 cp "conftest.in" "conftest.nl"
8d138742 4072 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4073 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4075 ac_count=`expr $ac_count + 1`
4076 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4077 # Best one so far, save it but keep looking for a better one
4078 ac_cv_path_EGREP="$ac_path_EGREP"
4079 ac_path_EGREP_max=$ac_count
d9898ee8 4080 fi
dd184caf 4081 # 10*(2^10) chars as input seems more than enough
4082 test $ac_count -gt 10 && break
4083 done
4084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085esac
4086
8d138742
CE
4087 $ac_path_EGREP_found && break 3
4088 done
dd184caf 4089 done
4090done
dd184caf 4091IFS=$as_save_IFS
8d138742
CE
4092 if test -z "$ac_cv_path_EGREP"; then
4093 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4094$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4095 { (exit 1); exit 1; }; }
4096 fi
4097else
4098 ac_cv_path_EGREP=$EGREP
dd184caf 4099fi
4100
8d138742 4101 fi
d9898ee8 4102fi
8d138742
CE
4103{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4104$as_echo "$ac_cv_path_EGREP" >&6; }
4105 EGREP="$ac_cv_path_EGREP"
d9898ee8 4106
8d138742
CE
4107
4108{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4109$as_echo_n "checking for fgrep... " >&6; }
4110if test "${ac_cv_path_FGREP+set}" = set; then
4111 $as_echo_n "(cached) " >&6
dd184caf 4112else
8d138742
CE
4113 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4114 then ac_cv_path_FGREP="$GREP -F"
4115 else
4116 if test -z "$FGREP"; then
4117 ac_path_FGREP_found=false
4118 # Loop through the user's path and test for each of PROGNAME-LIST
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4121do
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_prog in fgrep; do
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4127 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4128# Check for GNU ac_path_FGREP and select it if it is found.
4129 # Check for GNU $ac_path_FGREP
4130case `"$ac_path_FGREP" --version 2>&1` in
4131*GNU*)
4132 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4133*)
4134 ac_count=0
4135 $as_echo_n 0123456789 >"conftest.in"
4136 while :
4137 do
4138 cat "conftest.in" "conftest.in" >"conftest.tmp"
4139 mv "conftest.tmp" "conftest.in"
4140 cp "conftest.in" "conftest.nl"
4141 $as_echo 'FGREP' >> "conftest.nl"
4142 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4144 ac_count=`expr $ac_count + 1`
4145 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4146 # Best one so far, save it but keep looking for a better one
4147 ac_cv_path_FGREP="$ac_path_FGREP"
4148 ac_path_FGREP_max=$ac_count
4149 fi
4150 # 10*(2^10) chars as input seems more than enough
4151 test $ac_count -gt 10 && break
4152 done
4153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4154esac
dd184caf 4155
8d138742
CE
4156 $ac_path_FGREP_found && break 3
4157 done
4158 done
4159done
4160IFS=$as_save_IFS
4161 if test -z "$ac_cv_path_FGREP"; then
4162 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4163$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4164 { (exit 1); exit 1; }; }
4165 fi
4166else
4167 ac_cv_path_FGREP=$FGREP
4168fi
dd184caf 4169
4170 fi
4171fi
8d138742
CE
4172{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4173$as_echo "$ac_cv_path_FGREP" >&6; }
4174 FGREP="$ac_cv_path_FGREP"
4175
4176
4177test -z "$GREP" && GREP=grep
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
d9898ee8 4194
4195
dd184caf 4196
4197# Check whether --with-gnu-ld was given.
d9898ee8 4198if test "${with_gnu_ld+set}" = set; then
dd184caf 4199 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4200else
4201 with_gnu_ld=no
dd184caf 4202fi
4203
d9898ee8 4204ac_prog=ld
4205if test "$GCC" = yes; then
4206 # Check if gcc -print-prog-name=ld gives a path.
8d138742
CE
4207 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4208$as_echo_n "checking for ld used by $CC... " >&6; }
d9898ee8 4209 case $host in
4210 *-*-mingw*)
4211 # gcc leaves a trailing carriage return which upsets mingw
4212 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4213 *)
4214 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4215 esac
4216 case $ac_prog in
4217 # Accept absolute paths.
4218 [\\/]* | ?:[\\/]*)
4219 re_direlt='/[^/][^/]*/\.\./'
4220 # Canonicalize the pathname of ld
8d138742
CE
4221 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4222 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4223 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d9898ee8 4224 done
4225 test -z "$LD" && LD="$ac_prog"
4226 ;;
4227 "")
4228 # If it fails, then pretend we aren't using GCC.
4229 ac_prog=ld
4230 ;;
4231 *)
4232 # If it is relative, then search for the first ld in PATH.
4233 with_gnu_ld=unknown
4234 ;;
4235 esac
4236elif test "$with_gnu_ld" = yes; then
8d138742
CE
4237 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4238$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 4239else
8d138742
CE
4240 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4241$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 4242fi
4243if test "${lt_cv_path_LD+set}" = set; then
8d138742 4244 $as_echo_n "(cached) " >&6
d9898ee8 4245else
4246 if test -z "$LD"; then
4247 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4248 for ac_dir in $PATH; do
4249 IFS="$lt_save_ifs"
4250 test -z "$ac_dir" && ac_dir=.
4251 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4252 lt_cv_path_LD="$ac_dir/$ac_prog"
4253 # Check to see if the program is GNU ld. I'd rather use --version,
4254 # but apparently some variants of GNU ld only accept -v.
4255 # Break only if it was the GNU/non-GNU ld that we prefer.
4256 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4257 *GNU* | *'with BFD'*)
4258 test "$with_gnu_ld" != no && break
4259 ;;
4260 *)
4261 test "$with_gnu_ld" != yes && break
4262 ;;
4263 esac
4264 fi
4265 done
4266 IFS="$lt_save_ifs"
4267else
4268 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4269fi
4270fi
4271
4272LD="$lt_cv_path_LD"
4273if test -n "$LD"; then
8d138742
CE
4274 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4275$as_echo "$LD" >&6; }
d9898ee8 4276else
8d138742
CE
4277 { $as_echo "$as_me:$LINENO: result: no" >&5
4278$as_echo "no" >&6; }
d9898ee8 4279fi
8d138742
CE
4280test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4281$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
d9898ee8 4282 { (exit 1); exit 1; }; }
8d138742
CE
4283{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4284$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d9898ee8 4285if test "${lt_cv_prog_gnu_ld+set}" = set; then
8d138742 4286 $as_echo_n "(cached) " >&6
d9898ee8 4287else
4288 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4289case `$LD -v 2>&1 </dev/null` in
4290*GNU* | *'with BFD'*)
4291 lt_cv_prog_gnu_ld=yes
4292 ;;
4293*)
4294 lt_cv_prog_gnu_ld=no
4295 ;;
4296esac
4297fi
8d138742
CE
4298{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4299$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4300with_gnu_ld=$lt_cv_prog_gnu_ld
4301
4302
d9898ee8 4303
8d138742
CE
4304
4305
4306
4307
4308
4309
4310{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4311$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d9898ee8 4312if test "${lt_cv_path_NM+set}" = set; then
8d138742 4313 $as_echo_n "(cached) " >&6
d9898ee8 4314else
4315 if test -n "$NM"; then
4316 # Let the user override the test.
4317 lt_cv_path_NM="$NM"
4318else
4319 lt_nm_to_check="${ac_tool_prefix}nm"
4320 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4321 lt_nm_to_check="$lt_nm_to_check nm"
4322 fi
4323 for lt_tmp_nm in $lt_nm_to_check; do
4324 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4325 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4326 IFS="$lt_save_ifs"
4327 test -z "$ac_dir" && ac_dir=.
4328 tmp_nm="$ac_dir/$lt_tmp_nm"
4329 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4330 # Check to see if the nm accepts a BSD-compat flag.
4331 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4332 # nm: unknown option "B" ignored
4333 # Tru64's nm complains that /dev/null is an invalid object file
4334 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4335 */dev/null* | *'Invalid file or object type'*)
4336 lt_cv_path_NM="$tmp_nm -B"
4337 break
4338 ;;
4339 *)
4340 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4341 */dev/null*)
4342 lt_cv_path_NM="$tmp_nm -p"
4343 break
4344 ;;
4345 *)
4346 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4347 continue # so that we can try to find one that supports BSD flags
4348 ;;
4349 esac
4350 ;;
4351 esac
4352 fi
4353 done
4354 IFS="$lt_save_ifs"
4355 done
8d138742 4356 : ${lt_cv_path_NM=no}
d9898ee8 4357fi
4358fi
8d138742
CE
4359{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4360$as_echo "$lt_cv_path_NM" >&6; }
4361if test "$lt_cv_path_NM" != "no"; then
4362 NM="$lt_cv_path_NM"
d9898ee8 4363else
8d138742
CE
4364 # Didn't find any BSD compatible name lister, look for dumpbin.
4365 if test -n "$ac_tool_prefix"; then
4366 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4367 do
4368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4369set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4370{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4371$as_echo_n "checking for $ac_word... " >&6; }
4372if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4373 $as_echo_n "(cached) " >&6
4374else
4375 if test -n "$DUMPBIN"; then
4376 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4377else
4378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379for as_dir in $PATH
4380do
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4385 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 break 2
4388 fi
4389done
4390done
4391IFS=$as_save_IFS
d9898ee8 4392
8d138742
CE
4393fi
4394fi
4395DUMPBIN=$ac_cv_prog_DUMPBIN
4396if test -n "$DUMPBIN"; then
4397 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4398$as_echo "$DUMPBIN" >&6; }
4399else
4400 { $as_echo "$as_me:$LINENO: result: no" >&5
4401$as_echo "no" >&6; }
4402fi
d9898ee8 4403
d9898ee8 4404
8d138742
CE
4405 test -n "$DUMPBIN" && break
4406 done
4407fi
4408if test -z "$DUMPBIN"; then
4409 ac_ct_DUMPBIN=$DUMPBIN
4410 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4411do
4412 # Extract the first word of "$ac_prog", so it can be a program name with args.
4413set dummy $ac_prog; ac_word=$2
4414{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4415$as_echo_n "checking for $ac_word... " >&6; }
4416if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4417 $as_echo_n "(cached) " >&6
4418else
4419 if test -n "$ac_ct_DUMPBIN"; then
4420 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4421else
4422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in $PATH
4424do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4432 fi
4433done
4434done
4435IFS=$as_save_IFS
d9898ee8 4436
8d138742
CE
4437fi
4438fi
4439ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4440if test -n "$ac_ct_DUMPBIN"; then
4441 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4442$as_echo "$ac_ct_DUMPBIN" >&6; }
4443else
4444 { $as_echo "$as_me:$LINENO: result: no" >&5
4445$as_echo "no" >&6; }
4446fi
4447
4448
4449 test -n "$ac_ct_DUMPBIN" && break
4450done
4451
4452 if test "x$ac_ct_DUMPBIN" = x; then
4453 DUMPBIN=":"
ac40fd9e 4454 else
8d138742
CE
4455 case $cross_compiling:$ac_tool_warned in
4456yes:)
4457{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4459ac_tool_warned=yes ;;
4460esac
4461 DUMPBIN=$ac_ct_DUMPBIN
ac40fd9e 4462 fi
8d138742 4463fi
d9898ee8 4464
d9898ee8 4465
8d138742
CE
4466 if test "$DUMPBIN" != ":"; then
4467 NM="$DUMPBIN"
d9898ee8 4468 fi
8d138742
CE
4469fi
4470test -z "$NM" && NM=nm
d9898ee8 4471
d9898ee8 4472
d9898ee8 4473
d9898ee8 4474
d9898ee8 4475
d9898ee8 4476
8d138742
CE
4477{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4478$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4479if test "${lt_cv_nm_interface+set}" = set; then
4480 $as_echo_n "(cached) " >&6
4481else
4482 lt_cv_nm_interface="BSD nm"
4483 echo "int some_variable = 0;" > conftest.$ac_ext
4484 (eval echo "\"\$as_me:4484: $ac_compile\"" >&5)
4485 (eval "$ac_compile" 2>conftest.err)
4486 cat conftest.err >&5
4487 (eval echo "\"\$as_me:4487: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4488 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4489 cat conftest.err >&5
4490 (eval echo "\"\$as_me:4490: output\"" >&5)
4491 cat conftest.out >&5
4492 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4493 lt_cv_nm_interface="MS dumpbin"
d9898ee8 4494 fi
8d138742
CE
4495 rm -f conftest*
4496fi
4497{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4498$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 4499
8d138742
CE
4500# find the maximum length of command line arguments
4501{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4502$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4503if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4504 $as_echo_n "(cached) " >&6
4505else
4506 i=0
4507 teststring="ABCD"
d9898ee8 4508
8d138742
CE
4509 case $build_os in
4510 msdosdjgpp*)
4511 # On DJGPP, this test can blow up pretty badly due to problems in libc
4512 # (any single argument exceeding 2000 bytes causes a buffer overrun
4513 # during glob expansion). Even if it were fixed, the result of this
4514 # check would be larger than it should be.
4515 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4516 ;;
d9898ee8 4517
8d138742
CE
4518 gnu*)
4519 # Under GNU Hurd, this test is not required because there is
4520 # no limit to the length of command line arguments.
4521 # Libtool will interpret -1 as no limit whatsoever
4522 lt_cv_sys_max_cmd_len=-1;
4523 ;;
d9898ee8 4524
8d138742
CE
4525 cygwin* | mingw* | cegcc*)
4526 # On Win9x/ME, this test blows up -- it succeeds, but takes
4527 # about 5 minutes as the teststring grows exponentially.
4528 # Worse, since 9x/ME are not pre-emptively multitasking,
4529 # you end up with a "frozen" computer, even though with patience
4530 # the test eventually succeeds (with a max line length of 256k).
4531 # Instead, let's just punt: use the minimum linelength reported by
4532 # all of the supported platforms: 8192 (on NT/2K/XP).
4533 lt_cv_sys_max_cmd_len=8192;
4534 ;;
ac40fd9e 4535
8d138742
CE
4536 amigaos*)
4537 # On AmigaOS with pdksh, this test takes hours, literally.
4538 # So we just punt and use a minimum line length of 8192.
4539 lt_cv_sys_max_cmd_len=8192;
4540 ;;
d9898ee8 4541
8d138742
CE
4542 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4543 # This has been around since 386BSD, at least. Likely further.
4544 if test -x /sbin/sysctl; then
4545 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4546 elif test -x /usr/sbin/sysctl; then
4547 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4548 else
4549 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4550 fi
4551 # And add a safety zone
4552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
d9898ee8 4554 ;;
8d138742
CE
4555
4556 interix*)
4557 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4558 lt_cv_sys_max_cmd_len=196608
d9898ee8 4559 ;;
8d138742
CE
4560
4561 osf*)
4562 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4563 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4564 # nice to cause kernel panics so lets avoid the loop below.
4565 # First set a reasonable default.
4566 lt_cv_sys_max_cmd_len=16384
4567 #
4568 if test -x /sbin/sysconfig; then
4569 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4570 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4571 esac
4572 fi
d9898ee8 4573 ;;
8d138742
CE
4574 sco3.2v5*)
4575 lt_cv_sys_max_cmd_len=102400
d9898ee8 4576 ;;
8d138742
CE
4577 sysv5* | sco5v6* | sysv4.2uw2*)
4578 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4579 if test -n "$kargmax"; then
4580 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4581 else
4582 lt_cv_sys_max_cmd_len=32768
4583 fi
d9898ee8 4584 ;;
8d138742
CE
4585 *)
4586 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4587 if test -n "$lt_cv_sys_max_cmd_len"; then
4588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4590 else
4591 # Make teststring a little bigger before we do anything with it.
4592 # a 1K string should be a reasonable start.
4593 for i in 1 2 3 4 5 6 7 8 ; do
4594 teststring=$teststring$teststring
4595 done
4596 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4597 # If test is not a shell built-in, we'll probably end up computing a
4598 # maximum length that is only half of the actual maximum length, but
4599 # we can't tell.
4600 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4601 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4602 test $i != 17 # 1/2 MB should be enough
4603 do
4604 i=`expr $i + 1`
4605 teststring=$teststring$teststring
4606 done
4607 # Only check the string length outside the loop.
4608 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4609 teststring=
4610 # Add a significant safety factor because C++ compilers can tack on
4611 # massive amounts of additional arguments before passing them to the
4612 # linker. It appears as though 1/2 is a usable value.
4613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4614 fi
d9898ee8 4615 ;;
4616 esac
d9898ee8 4617
8d138742 4618fi
d9898ee8 4619
8d138742
CE
4620if test -n $lt_cv_sys_max_cmd_len ; then
4621 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4622$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4623else
4624 { $as_echo "$as_me:$LINENO: result: none" >&5
4625$as_echo "none" >&6; }
d9898ee8 4626fi
8d138742 4627max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 4628
4629
4630
4631
d9898ee8 4632
d9898ee8 4633
8d138742
CE
4634: ${CP="cp -f"}
4635: ${MV="mv -f"}
4636: ${RM="rm -f"}
d9898ee8 4637
8d138742
CE
4638{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4639$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4640# Try some XSI features
4641xsi_shell=no
4642( _lt_dummy="a/b/c"
4643 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4644 = c,a/b,, \
4645 && eval 'test $(( 1 + 1 )) -eq 2 \
4646 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4647 && xsi_shell=yes
4648{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4649$as_echo "$xsi_shell" >&6; }
d9898ee8 4650
d9898ee8 4651
8d138742
CE
4652{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4653$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4654lt_shell_append=no
4655( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4656 >/dev/null 2>&1 \
4657 && lt_shell_append=yes
4658{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4659$as_echo "$lt_shell_append" >&6; }
d9898ee8 4660
d9898ee8 4661
8d138742
CE
4662if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4663 lt_unset=unset
d9898ee8 4664else
8d138742
CE
4665 lt_unset=false
4666fi
d9898ee8 4667
d9898ee8 4668
d9898ee8 4669
dd184caf 4670
d9898ee8 4671
8d138742
CE
4672# test EBCDIC or ASCII
4673case `echo X|tr X '\101'` in
4674 A) # ASCII based system
4675 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4676 lt_SP2NL='tr \040 \012'
4677 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 4678 ;;
8d138742
CE
4679 *) # EBCDIC based system
4680 lt_SP2NL='tr \100 \n'
4681 lt_NL2SP='tr \r\n \100\100'
d9898ee8 4682 ;;
8d138742 4683esac
d9898ee8 4684
4685
d9898ee8 4686
d9898ee8 4687
4688
8d138742
CE
4689
4690
4691
4692
4693{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4694$as_echo_n "checking for $LD option to reload object files... " >&6; }
4695if test "${lt_cv_ld_reload_flag+set}" = set; then
4696 $as_echo_n "(cached) " >&6
d9898ee8 4697else
8d138742
CE
4698 lt_cv_ld_reload_flag='-r'
4699fi
4700{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4701$as_echo "$lt_cv_ld_reload_flag" >&6; }
4702reload_flag=$lt_cv_ld_reload_flag
4703case $reload_flag in
4704"" | " "*) ;;
4705*) reload_flag=" $reload_flag" ;;
4706esac
4707reload_cmds='$LD$reload_flag -o $output$reload_objs'
4708case $host_os in
4709 darwin*)
4710 if test "$GCC" = yes; then
4711 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4712 else
4713 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4714 fi
4715 ;;
dd184caf 4716esac
d9898ee8 4717
dd184caf 4718
d9898ee8 4719
d9898ee8 4720
dd184caf 4721
d9898ee8 4722
d9898ee8 4723
d9898ee8 4724
8d138742
CE
4725
4726if test -n "$ac_tool_prefix"; then
4727 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4728set dummy ${ac_tool_prefix}objdump; ac_word=$2
4729{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4730$as_echo_n "checking for $ac_word... " >&6; }
4731if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4732 $as_echo_n "(cached) " >&6
d9898ee8 4733else
8d138742
CE
4734 if test -n "$OBJDUMP"; then
4735 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
d9898ee8 4736else
8d138742
CE
4737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4745 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4747 fi
4748done
4749done
4750IFS=$as_save_IFS
d9898ee8 4751
8d138742
CE
4752fi
4753fi
4754OBJDUMP=$ac_cv_prog_OBJDUMP
4755if test -n "$OBJDUMP"; then
4756 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4757$as_echo "$OBJDUMP" >&6; }
4758else
4759 { $as_echo "$as_me:$LINENO: result: no" >&5
4760$as_echo "no" >&6; }
d9898ee8 4761fi
dd184caf 4762
d9898ee8 4763
8d138742
CE
4764fi
4765if test -z "$ac_cv_prog_OBJDUMP"; then
4766 ac_ct_OBJDUMP=$OBJDUMP
4767 # Extract the first word of "objdump", so it can be a program name with args.
4768set dummy objdump; ac_word=$2
4769{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4770$as_echo_n "checking for $ac_word... " >&6; }
4771if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4772 $as_echo_n "(cached) " >&6
d9898ee8 4773else
8d138742
CE
4774 if test -n "$ac_ct_OBJDUMP"; then
4775 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4776else
4777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4785 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4787 fi
4788done
4789done
4790IFS=$as_save_IFS
d9898ee8 4791
8d138742
CE
4792fi
4793fi
4794ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4795if test -n "$ac_ct_OBJDUMP"; then
4796 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4797$as_echo "$ac_ct_OBJDUMP" >&6; }
4798else
4799 { $as_echo "$as_me:$LINENO: result: no" >&5
4800$as_echo "no" >&6; }
d9898ee8 4801fi
dd184caf 4802
8d138742
CE
4803 if test "x$ac_ct_OBJDUMP" = x; then
4804 OBJDUMP="false"
4805 else
4806 case $cross_compiling:$ac_tool_warned in
4807yes:)
4808{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4810ac_tool_warned=yes ;;
4811esac
4812 OBJDUMP=$ac_ct_OBJDUMP
4813 fi
d9898ee8 4814else
8d138742 4815 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 4816fi
4817
8d138742 4818test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 4819
4820
d9898ee8 4821
d9898ee8 4822
d9898ee8 4823
dd184caf 4824
d9898ee8 4825
d9898ee8 4826
8d138742
CE
4827
4828{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4829$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4830if test "${lt_cv_deplibs_check_method+set}" = set; then
4831 $as_echo_n "(cached) " >&6
d9898ee8 4832else
8d138742
CE
4833 lt_cv_file_magic_cmd='$MAGIC_CMD'
4834lt_cv_file_magic_test_file=
4835lt_cv_deplibs_check_method='unknown'
4836# Need to set the preceding variable on all platforms that support
4837# interlibrary dependencies.
4838# 'none' -- dependencies not supported.
4839# `unknown' -- same as none, but documents that we really don't know.
4840# 'pass_all' -- all dependencies passed with no checks.
4841# 'test_compile' -- check by making test program.
4842# 'file_magic [[regex]]' -- check by looking for files in library path
4843# which responds to the $file_magic_cmd with a given extended regex.
4844# If you have `file' or equivalent on your system and you're not sure
4845# whether `pass_all' will *always* work, you probably want this one.
d9898ee8 4846
8d138742
CE
4847case $host_os in
4848aix[4-9]*)
4849 lt_cv_deplibs_check_method=pass_all
4850 ;;
d9898ee8 4851
8d138742
CE
4852beos*)
4853 lt_cv_deplibs_check_method=pass_all
4854 ;;
d9898ee8 4855
8d138742
CE
4856bsdi[45]*)
4857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4858 lt_cv_file_magic_cmd='/usr/bin/file -L'
4859 lt_cv_file_magic_test_file=/shlib/libc.so
4860 ;;
d9898ee8 4861
8d138742
CE
4862cygwin*)
4863 # func_win32_libid is a shell function defined in ltmain.sh
4864 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4865 lt_cv_file_magic_cmd='func_win32_libid'
4866 ;;
d9898ee8 4867
8d138742
CE
4868mingw* | pw32*)
4869 # Base MSYS/MinGW do not provide the 'file' command needed by
4870 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4871 # unless we find 'file', for example because we are cross-compiling.
4872 if ( file / ) >/dev/null 2>&1; then
4873 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4874 lt_cv_file_magic_cmd='func_win32_libid'
4875 else
4876 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4877 lt_cv_file_magic_cmd='$OBJDUMP -f'
4878 fi
4879 ;;
d9898ee8 4880
8d138742
CE
4881cegcc)
4882 # use the weaker test based on 'objdump'. See mingw*.
4883 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4884 lt_cv_file_magic_cmd='$OBJDUMP -f'
4885 ;;
d9898ee8 4886
8d138742
CE
4887darwin* | rhapsody*)
4888 lt_cv_deplibs_check_method=pass_all
4889 ;;
4890
4891freebsd* | dragonfly*)
4892 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4893 case $host_cpu in
4894 i*86 )
4895 # Not sure whether the presence of OpenBSD here was a mistake.
4896 # Let's accept both of them until this is cleared up.
4897 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4898 lt_cv_file_magic_cmd=/usr/bin/file
4899 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4900 ;;
4901 esac
4902 else
4903 lt_cv_deplibs_check_method=pass_all
4904 fi
4905 ;;
dd184caf 4906
8d138742
CE
4907gnu*)
4908 lt_cv_deplibs_check_method=pass_all
4909 ;;
dd184caf 4910
8d138742
CE
4911hpux10.20* | hpux11*)
4912 lt_cv_file_magic_cmd=/usr/bin/file
4913 case $host_cpu in
4914 ia64*)
4915 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4916 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4917 ;;
4918 hppa*64*)
4919 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]'
4920 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4921 ;;
4922 *)
4923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4924 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4925 ;;
4926 esac
4927 ;;
d9898ee8 4928
8d138742
CE
4929interix[3-9]*)
4930 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4932 ;;
d9898ee8 4933
8d138742
CE
4934irix5* | irix6* | nonstopux*)
4935 case $LD in
4936 *-32|*"-32 ") libmagic=32-bit;;
4937 *-n32|*"-n32 ") libmagic=N32;;
4938 *-64|*"-64 ") libmagic=64-bit;;
4939 *) libmagic=never-match;;
4940 esac
4941 lt_cv_deplibs_check_method=pass_all
4942 ;;
d9898ee8 4943
8d138742
CE
4944# This must be Linux ELF.
4945linux* | k*bsd*-gnu)
4946 lt_cv_deplibs_check_method=pass_all
4947 ;;
d9898ee8 4948
8d138742
CE
4949netbsd*)
4950 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4952 else
4953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4954 fi
4955 ;;
d9898ee8 4956
8d138742
CE
4957newos6*)
4958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4959 lt_cv_file_magic_cmd=/usr/bin/file
4960 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4961 ;;
d9898ee8 4962
8d138742
CE
4963*nto* | *qnx*)
4964 lt_cv_deplibs_check_method=pass_all
4965 ;;
d9898ee8 4966
8d138742
CE
4967openbsd*)
4968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4970 else
4971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4972 fi
4973 ;;
d9898ee8 4974
8d138742
CE
4975osf3* | osf4* | osf5*)
4976 lt_cv_deplibs_check_method=pass_all
4977 ;;
d9898ee8 4978
8d138742
CE
4979rdos*)
4980 lt_cv_deplibs_check_method=pass_all
4981 ;;
d9898ee8 4982
8d138742
CE
4983solaris*)
4984 lt_cv_deplibs_check_method=pass_all
4985 ;;
d9898ee8 4986
8d138742
CE
4987sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4988 lt_cv_deplibs_check_method=pass_all
4989 ;;
d9898ee8 4990
8d138742
CE
4991sysv4 | sysv4.3*)
4992 case $host_vendor in
4993 motorola)
4994 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]'
4995 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4996 ;;
4997 ncr)
4998 lt_cv_deplibs_check_method=pass_all
4999 ;;
5000 sequent)
5001 lt_cv_file_magic_cmd='/bin/file'
5002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5003 ;;
5004 sni)
5005 lt_cv_file_magic_cmd='/bin/file'
5006 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5007 lt_cv_file_magic_test_file=/lib/libc.so
5008 ;;
5009 siemens)
5010 lt_cv_deplibs_check_method=pass_all
5011 ;;
5012 pc)
5013 lt_cv_deplibs_check_method=pass_all
5014 ;;
5015 esac
5016 ;;
d9898ee8 5017
8d138742
CE
5018tpf*)
5019 lt_cv_deplibs_check_method=pass_all
5020 ;;
dd184caf 5021esac
d9898ee8 5022
d9898ee8 5023fi
8d138742
CE
5024{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5025$as_echo "$lt_cv_deplibs_check_method" >&6; }
5026file_magic_cmd=$lt_cv_file_magic_cmd
5027deplibs_check_method=$lt_cv_deplibs_check_method
5028test -z "$deplibs_check_method" && deplibs_check_method=unknown
dd184caf 5029
d9898ee8 5030
d9898ee8 5031
d9898ee8 5032
5033
5034
d9898ee8 5035
dd184caf 5036
d9898ee8 5037
8d138742
CE
5038
5039
5040
5041if test -n "$ac_tool_prefix"; then
5042 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5043set dummy ${ac_tool_prefix}ar; ac_word=$2
5044{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5045$as_echo_n "checking for $ac_word... " >&6; }
5046if test "${ac_cv_prog_AR+set}" = set; then
5047 $as_echo_n "(cached) " >&6
d9898ee8 5048else
8d138742
CE
5049 if test -n "$AR"; then
5050 ac_cv_prog_AR="$AR" # Let the user override the test.
5051else
5052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053for as_dir in $PATH
5054do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_AR="${ac_tool_prefix}ar"
5060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5062 fi
5063done
5064done
5065IFS=$as_save_IFS
d9898ee8 5066
8d138742
CE
5067fi
5068fi
5069AR=$ac_cv_prog_AR
5070if test -n "$AR"; then
5071 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5072$as_echo "$AR" >&6; }
5073else
5074 { $as_echo "$as_me:$LINENO: result: no" >&5
5075$as_echo "no" >&6; }
d9898ee8 5076fi
dd184caf 5077
d9898ee8 5078
d9898ee8 5079fi
8d138742
CE
5080if test -z "$ac_cv_prog_AR"; then
5081 ac_ct_AR=$AR
5082 # Extract the first word of "ar", so it can be a program name with args.
5083set dummy ar; ac_word=$2
5084{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5085$as_echo_n "checking for $ac_word... " >&6; }
5086if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5087 $as_echo_n "(cached) " >&6
5088else
5089 if test -n "$ac_ct_AR"; then
5090 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5091else
5092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093for as_dir in $PATH
5094do
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_prog_ac_ct_AR="ar"
5100 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2
5102 fi
5103done
5104done
5105IFS=$as_save_IFS
d9898ee8 5106
5107fi
8d138742
CE
5108fi
5109ac_ct_AR=$ac_cv_prog_ac_ct_AR
5110if test -n "$ac_ct_AR"; then
5111 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5112$as_echo "$ac_ct_AR" >&6; }
5113else
5114 { $as_echo "$as_me:$LINENO: result: no" >&5
5115$as_echo "no" >&6; }
5116fi
d9898ee8 5117
8d138742
CE
5118 if test "x$ac_ct_AR" = x; then
5119 AR="false"
5120 else
5121 case $cross_compiling:$ac_tool_warned in
5122yes:)
5123{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5125ac_tool_warned=yes ;;
5126esac
5127 AR=$ac_ct_AR
5128 fi
5129else
5130 AR="$ac_cv_prog_AR"
d9898ee8 5131fi
5132
8d138742
CE
5133test -z "$AR" && AR=ar
5134test -z "$AR_FLAGS" && AR_FLAGS=cru
d9898ee8 5135
8d138742
CE
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5148set dummy ${ac_tool_prefix}strip; ac_word=$2
5149{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5150$as_echo_n "checking for $ac_word... " >&6; }
5151if test "${ac_cv_prog_STRIP+set}" = set; then
5152 $as_echo_n "(cached) " >&6
d9898ee8 5153else
8d138742
CE
5154 if test -n "$STRIP"; then
5155 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d9898ee8 5156else
5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5164 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5165 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5166 break 2
5167 fi
5168done
5169done
dd184caf 5170IFS=$as_save_IFS
d9898ee8 5171
5172fi
5173fi
8d138742
CE
5174STRIP=$ac_cv_prog_STRIP
5175if test -n "$STRIP"; then
5176 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5177$as_echo "$STRIP" >&6; }
d9898ee8 5178else
8d138742
CE
5179 { $as_echo "$as_me:$LINENO: result: no" >&5
5180$as_echo "no" >&6; }
d9898ee8 5181fi
5182
dd184caf 5183
d9898ee8 5184fi
8d138742
CE
5185if test -z "$ac_cv_prog_STRIP"; then
5186 ac_ct_STRIP=$STRIP
5187 # Extract the first word of "strip", so it can be a program name with args.
5188set dummy strip; ac_word=$2
5189{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5190$as_echo_n "checking for $ac_word... " >&6; }
5191if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5192 $as_echo_n "(cached) " >&6
d9898ee8 5193else
8d138742
CE
5194 if test -n "$ac_ct_STRIP"; then
5195 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d9898ee8 5196else
5197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5204 ac_cv_prog_ac_ct_STRIP="strip"
5205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5206 break 2
5207 fi
5208done
5209done
dd184caf 5210IFS=$as_save_IFS
d9898ee8 5211
5212fi
5213fi
8d138742
CE
5214ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5215if test -n "$ac_ct_STRIP"; then
5216 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5217$as_echo "$ac_ct_STRIP" >&6; }
d9898ee8 5218else
8d138742
CE
5219 { $as_echo "$as_me:$LINENO: result: no" >&5
5220$as_echo "no" >&6; }
d9898ee8 5221fi
5222
8d138742
CE
5223 if test "x$ac_ct_STRIP" = x; then
5224 STRIP=":"
dd184caf 5225 else
5226 case $cross_compiling:$ac_tool_warned in
5227yes:)
8d138742
CE
5228{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 5230ac_tool_warned=yes ;;
5231esac
8d138742 5232 STRIP=$ac_ct_STRIP
dd184caf 5233 fi
8d138742
CE
5234else
5235 STRIP="$ac_cv_prog_STRIP"
d9898ee8 5236fi
5237
8d138742 5238test -z "$STRIP" && STRIP=:
d9898ee8 5239
d9898ee8 5240
d9898ee8 5241
8d138742
CE
5242
5243
5244
5245if test -n "$ac_tool_prefix"; then
5246 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5247set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5249$as_echo_n "checking for $ac_word... " >&6; }
5250if test "${ac_cv_prog_RANLIB+set}" = set; then
5251 $as_echo_n "(cached) " >&6
d9898ee8 5252else
8d138742
CE
5253 if test -n "$RANLIB"; then
5254 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5255else
5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH
5258do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267done
5268done
5269IFS=$as_save_IFS
d9898ee8 5270
8d138742
CE
5271fi
5272fi
5273RANLIB=$ac_cv_prog_RANLIB
5274if test -n "$RANLIB"; then
5275 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5276$as_echo "$RANLIB" >&6; }
5277else
5278 { $as_echo "$as_me:$LINENO: result: no" >&5
5279$as_echo "no" >&6; }
d9898ee8 5280fi
dd184caf 5281
d9898ee8 5282
8d138742
CE
5283fi
5284if test -z "$ac_cv_prog_RANLIB"; then
5285 ac_ct_RANLIB=$RANLIB
5286 # Extract the first word of "ranlib", so it can be a program name with args.
5287set dummy ranlib; ac_word=$2
5288{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5289$as_echo_n "checking for $ac_word... " >&6; }
5290if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5291 $as_echo_n "(cached) " >&6
5292else
5293 if test -n "$ac_ct_RANLIB"; then
5294 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5295else
5296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297for as_dir in $PATH
5298do
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_prog_ac_ct_RANLIB="ranlib"
5304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5306 fi
5307done
5308done
5309IFS=$as_save_IFS
d9898ee8 5310
8d138742
CE
5311fi
5312fi
5313ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5314if test -n "$ac_ct_RANLIB"; then
5315 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5316$as_echo "$ac_ct_RANLIB" >&6; }
5317else
5318 { $as_echo "$as_me:$LINENO: result: no" >&5
5319$as_echo "no" >&6; }
5320fi
5321
5322 if test "x$ac_ct_RANLIB" = x; then
5323 RANLIB=":"
5324 else
5325 case $cross_compiling:$ac_tool_warned in
5326yes:)
5327{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5329ac_tool_warned=yes ;;
dd184caf 5330esac
8d138742
CE
5331 RANLIB=$ac_ct_RANLIB
5332 fi
d9898ee8 5333else
8d138742
CE
5334 RANLIB="$ac_cv_prog_RANLIB"
5335fi
d9898ee8 5336
8d138742 5337test -z "$RANLIB" && RANLIB=:
dd184caf 5338
dd184caf 5339
d9898ee8 5340
dd184caf 5341
dd184caf 5342
d9898ee8 5343
8d138742
CE
5344# Determine commands to create old-style static archives.
5345old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5346old_postinstall_cmds='chmod 644 $oldlib'
5347old_postuninstall_cmds=
dd184caf 5348
8d138742
CE
5349if test -n "$RANLIB"; then
5350 case $host_os in
5351 openbsd*)
5352 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5353 ;;
5354 *)
5355 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5356 ;;
5357 esac
5358 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d9898ee8 5359fi
dd184caf 5360
dd184caf 5361
d9898ee8 5362
d9898ee8 5363
d9898ee8 5364
d9898ee8 5365
d9898ee8 5366
d9898ee8 5367
d9898ee8 5368
d9898ee8 5369
d9898ee8 5370
5371
5372
5373
d9898ee8 5374
dd184caf 5375
d9898ee8 5376
d9898ee8 5377
dd184caf 5378
d9898ee8 5379
d9898ee8 5380
d9898ee8 5381
d9898ee8 5382
dd184caf 5383
d9898ee8 5384
d9898ee8 5385
dd184caf 5386
d9898ee8 5387
d9898ee8 5388
d9898ee8 5389
d9898ee8 5390
5391
d9898ee8 5392
d9898ee8 5393
8d138742
CE
5394# If no C compiler was specified, use CC.
5395LTCC=${LTCC-"$CC"}
dd184caf 5396
8d138742
CE
5397# If no C compiler flags were specified, use CFLAGS.
5398LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 5399
8d138742
CE
5400# Allow CC to be a program name with arguments.
5401compiler=$CC
5402
5403
5404# Check for command to grab the raw symbol name followed by C symbol from nm.
5405{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5406$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5407if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5408 $as_echo_n "(cached) " >&6
d9898ee8 5409else
d9898ee8 5410
8d138742
CE
5411# These are sane defaults that work on at least a few old systems.
5412# [They come from Ultrix. What could be older than Ultrix?!! ;)]
dd184caf 5413
8d138742
CE
5414# Character class describing NM global symbol codes.
5415symcode='[BCDEGRST]'
d9898ee8 5416
8d138742
CE
5417# Regexp to match symbols that can be accessed directly from C.
5418sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5419
5420# Define system-specific variables.
5421case $host_os in
5422aix*)
5423 symcode='[BCDT]'
5424 ;;
5425cygwin* | mingw* | pw32* | cegcc*)
5426 symcode='[ABCDGISTW]'
5427 ;;
5428hpux*)
5429 if test "$host_cpu" = ia64; then
5430 symcode='[ABCDEGRST]'
dd184caf 5431 fi
8d138742
CE
5432 ;;
5433irix* | nonstopux*)
5434 symcode='[BCDEGRST]'
5435 ;;
5436osf*)
5437 symcode='[BCDEGQRST]'
5438 ;;
5439solaris*)
5440 symcode='[BDRT]'
5441 ;;
5442sco3.2v5*)
5443 symcode='[DT]'
5444 ;;
5445sysv4.2uw2*)
5446 symcode='[DT]'
5447 ;;
5448sysv5* | sco5v6* | unixware* | OpenUNIX*)
5449 symcode='[ABDT]'
5450 ;;
5451sysv4)
5452 symcode='[DFNSTU]'
5453 ;;
5454esac
5455
5456# If we're using GNU nm, then use its standard symbol codes.
5457case `$NM -V 2>&1` in
5458*GNU* | *'with BFD'*)
5459 symcode='[ABCDGIRSTW]' ;;
5460esac
d9898ee8 5461
8d138742
CE
5462# Transform an extracted symbol line into a proper C declaration.
5463# Some systems (esp. on ia64) link data and code symbols differently,
5464# so use this general approach.
5465lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d9898ee8 5466
8d138742
CE
5467# Transform an extracted symbol line into symbol name and symbol address
5468lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5469lt_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'"
5470
5471# Handle CRLF in mingw tool chain
5472opt_cr=
5473case $build_os in
5474mingw*)
5475 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5476 ;;
dd184caf 5477esac
8d138742
CE
5478
5479# Try without a prefix underscore, then with it.
5480for ac_symprfx in "" "_"; do
5481
5482 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5483 symxfrm="\\1 $ac_symprfx\\2 \\2"
5484
5485 # Write the raw and C identifiers.
5486 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5487 # Fake it for dumpbin and say T for any non-static function
5488 # and D for any global variable.
5489 # Also find C++ and __fastcall symbols from MSVC++,
5490 # which start with @ or ?.
5491 lt_cv_sys_global_symbol_pipe="$AWK '"\
5492" {last_section=section; section=\$ 3};"\
5493" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5494" \$ 0!~/External *\|/{next};"\
5495" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5496" {if(hide[section]) next};"\
5497" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5498" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5499" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5500" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5501" ' prfx=^$ac_symprfx"
5502 else
5503 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5504 fi
5505
5506 # Check to see that the pipe works correctly.
5507 pipe_works=no
5508
5509 rm -f conftest*
5510 cat > conftest.$ac_ext <<_LT_EOF
5511#ifdef __cplusplus
5512extern "C" {
5513#endif
5514char nm_test_var;
5515void nm_test_func(void);
5516void nm_test_func(void){}
5517#ifdef __cplusplus
5518}
5519#endif
5520int main(){nm_test_var='a';nm_test_func();return(0);}
5521_LT_EOF
5522
5523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524 (eval $ac_compile) 2>&5
d9898ee8 5525 ac_status=$?
8d138742
CE
5526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; then
5528 # Now try to grab the symbols.
5529 nlist=conftest.nm
5530 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5531 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
d9898ee8 5532 ac_status=$?
8d138742
CE
5533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && test -s "$nlist"; then
5535 # Try sorting and uniquifying the output.
5536 if sort "$nlist" | uniq > "$nlist"T; then
5537 mv -f "$nlist"T "$nlist"
5538 else
5539 rm -f "$nlist"T
5540 fi
d9898ee8 5541
8d138742
CE
5542 # Make sure that we snagged all the symbols we need.
5543 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5544 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5545 cat <<_LT_EOF > conftest.$ac_ext
5546#ifdef __cplusplus
5547extern "C" {
d9898ee8 5548#endif
5549
8d138742
CE
5550_LT_EOF
5551 # Now generate the symbol file.
5552 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 5553
8d138742 5554 cat <<_LT_EOF >> conftest.$ac_ext
dd184caf 5555
8d138742
CE
5556/* The mapping between symbol names and symbols. */
5557const struct {
5558 const char *name;
5559 void *address;
5560}
5561lt__PROGRAM__LTX_preloaded_symbols[] =
5562{
5563 { "@PROGRAM@", (void *) 0 },
5564_LT_EOF
5565 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5566 cat <<\_LT_EOF >> conftest.$ac_ext
5567 {0, (void *) 0}
5568};
d9898ee8 5569
8d138742
CE
5570/* This works around a problem in FreeBSD linker */
5571#ifdef FREEBSD_WORKAROUND
5572static const void *lt_preloaded_setup() {
5573 return lt__PROGRAM__LTX_preloaded_symbols;
5574}
5575#endif
d9898ee8 5576
8d138742
CE
5577#ifdef __cplusplus
5578}
5579#endif
5580_LT_EOF
5581 # Now try linking the two files.
5582 mv conftest.$ac_objext conftstm.$ac_objext
5583 lt_save_LIBS="$LIBS"
5584 lt_save_CFLAGS="$CFLAGS"
5585 LIBS="conftstm.$ac_objext"
5586 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5588 (eval $ac_link) 2>&5
d9898ee8 5589 ac_status=$?
8d138742
CE
5590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5592 pipe_works=yes
5593 fi
5594 LIBS="$lt_save_LIBS"
5595 CFLAGS="$lt_save_CFLAGS"
5596 else
5597 echo "cannot find nm_test_func in $nlist" >&5
5598 fi
5599 else
5600 echo "cannot find nm_test_var in $nlist" >&5
5601 fi
5602 else
5603 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5604 fi
5605 else
5606 echo "$progname: failed program was:" >&5
5607 cat conftest.$ac_ext >&5
5608 fi
5609 rm -rf conftest* conftst*
d9898ee8 5610
8d138742
CE
5611 # Do not use the global_symbol_pipe unless it works.
5612 if test "$pipe_works" = yes; then
5613 break
5614 else
5615 lt_cv_sys_global_symbol_pipe=
5616 fi
5617done
dd184caf 5618
8d138742 5619fi
d9898ee8 5620
8d138742
CE
5621if test -z "$lt_cv_sys_global_symbol_pipe"; then
5622 lt_cv_sys_global_symbol_to_cdecl=
d9898ee8 5623fi
8d138742
CE
5624if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5625 { $as_echo "$as_me:$LINENO: result: failed" >&5
5626$as_echo "failed" >&6; }
d9898ee8 5627else
8d138742
CE
5628 { $as_echo "$as_me:$LINENO: result: ok" >&5
5629$as_echo "ok" >&6; }
d9898ee8 5630fi
5631
d9898ee8 5632
5633
5634
d9898ee8 5635
d9898ee8 5636
d9898ee8 5637
d9898ee8 5638
d9898ee8 5639
d9898ee8 5640
d9898ee8 5641
d9898ee8 5642
d9898ee8 5643
d9898ee8 5644
d9898ee8 5645
5646
5647
5648
ac40fd9e 5649
d9898ee8 5650
d9898ee8 5651
d9898ee8 5652
d9898ee8 5653
8d138742
CE
5654# Check whether --enable-libtool-lock was given.
5655if test "${enable_libtool_lock+set}" = set; then
5656 enableval=$enable_libtool_lock;
5657fi
d9898ee8 5658
8d138742 5659test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d9898ee8 5660
8d138742
CE
5661# Some flags need to be propagated to the compiler or linker for good
5662# libtool support.
5663case $host in
5664ia64-*-hpux*)
5665 # Find out which ABI we are using.
5666 echo 'int i;' > conftest.$ac_ext
5667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5668 (eval $ac_compile) 2>&5
5669 ac_status=$?
5670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; then
5672 case `/usr/bin/file conftest.$ac_objext` in
5673 *ELF-32*)
5674 HPUX_IA64_MODE="32"
5675 ;;
5676 *ELF-64*)
5677 HPUX_IA64_MODE="64"
5678 ;;
5679 esac
d9898ee8 5680 fi
8d138742 5681 rm -rf conftest*
d9898ee8 5682 ;;
8d138742
CE
5683*-*-irix6*)
5684 # Find out which ABI we are using.
5685 echo '#line 5685 "configure"' > conftest.$ac_ext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5687 (eval $ac_compile) 2>&5
5688 ac_status=$?
5689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; then
5691 if test "$lt_cv_prog_gnu_ld" = yes; then
5692 case `/usr/bin/file conftest.$ac_objext` in
5693 *32-bit*)
5694 LD="${LD-ld} -melf32bsmip"
5695 ;;
5696 *N32*)
5697 LD="${LD-ld} -melf32bmipn32"
5698 ;;
5699 *64-bit*)
5700 LD="${LD-ld} -melf64bmip"
5701 ;;
5702 esac
5703 else
5704 case `/usr/bin/file conftest.$ac_objext` in
5705 *32-bit*)
5706 LD="${LD-ld} -32"
5707 ;;
5708 *N32*)
5709 LD="${LD-ld} -n32"
5710 ;;
5711 *64-bit*)
5712 LD="${LD-ld} -64"
5713 ;;
5714 esac
5715 fi
d9898ee8 5716 fi
8d138742 5717 rm -rf conftest*
d9898ee8 5718 ;;
d9898ee8 5719
8d138742
CE
5720x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5721s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5722 # Find out which ABI we are using.
5723 echo 'int i;' > conftest.$ac_ext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725 (eval $ac_compile) 2>&5
5726 ac_status=$?
5727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; then
5729 case `/usr/bin/file conftest.o` in
5730 *32-bit*)
5731 case $host in
5732 x86_64-*kfreebsd*-gnu)
5733 LD="${LD-ld} -m elf_i386_fbsd"
5734 ;;
5735 x86_64-*linux*)
5736 LD="${LD-ld} -m elf_i386"
5737 ;;
5738 ppc64-*linux*|powerpc64-*linux*)
5739 LD="${LD-ld} -m elf32ppclinux"
5740 ;;
5741 s390x-*linux*)
5742 LD="${LD-ld} -m elf_s390"
5743 ;;
5744 sparc64-*linux*)
5745 LD="${LD-ld} -m elf32_sparc"
5746 ;;
5747 esac
5748 ;;
5749 *64-bit*)
5750 case $host in
5751 x86_64-*kfreebsd*-gnu)
5752 LD="${LD-ld} -m elf_x86_64_fbsd"
5753 ;;
5754 x86_64-*linux*)
5755 LD="${LD-ld} -m elf_x86_64"
5756 ;;
5757 ppc*-*linux*|powerpc*-*linux*)
5758 LD="${LD-ld} -m elf64ppc"
5759 ;;
5760 s390*-*linux*|s390*-*tpf*)
5761 LD="${LD-ld} -m elf64_s390"
5762 ;;
5763 sparc*-*linux*)
5764 LD="${LD-ld} -m elf64_sparc"
5765 ;;
5766 esac
5767 ;;
5768 esac
5769 fi
5770 rm -rf conftest*
d9898ee8 5771 ;;
d9898ee8 5772
8d138742
CE
5773*-*-sco3.2v5*)
5774 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5775 SAVE_CFLAGS="$CFLAGS"
5776 CFLAGS="$CFLAGS -belf"
5777 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5778$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5779if test "${lt_cv_cc_needs_belf+set}" = set; then
5780 $as_echo_n "(cached) " >&6
5781else
5782 ac_ext=c
5783ac_cpp='$CPP $CPPFLAGS'
5784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5786ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 5787
8d138742
CE
5788 cat >conftest.$ac_ext <<_ACEOF
5789/* confdefs.h. */
5790_ACEOF
5791cat confdefs.h >>conftest.$ac_ext
5792cat >>conftest.$ac_ext <<_ACEOF
5793/* end confdefs.h. */
d9898ee8 5794
8d138742
CE
5795int
5796main ()
5797{
d9898ee8 5798
8d138742
CE
5799 ;
5800 return 0;
5801}
5802_ACEOF
5803rm -f conftest.$ac_objext conftest$ac_exeext
5804if { (ac_try="$ac_link"
5805case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808esac
5809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5810$as_echo "$ac_try_echo") >&5
5811 (eval "$ac_link") 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } && {
5818 test -z "$ac_c_werror_flag" ||
5819 test ! -s conftest.err
5820 } && test -s conftest$ac_exeext && {
5821 test "$cross_compiling" = yes ||
5822 $as_test_x conftest$ac_exeext
5823 }; then
5824 lt_cv_cc_needs_belf=yes
5825else
5826 $as_echo "$as_me: failed program was:" >&5
5827sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 5828
8d138742
CE
5829 lt_cv_cc_needs_belf=no
5830fi
d9898ee8 5831
8d138742
CE
5832rm -rf conftest.dSYM
5833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5834 conftest$ac_exeext conftest.$ac_ext
5835 ac_ext=c
5836ac_cpp='$CPP $CPPFLAGS'
5837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 5840
8d138742
CE
5841fi
5842{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5843$as_echo "$lt_cv_cc_needs_belf" >&6; }
5844 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5845 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5846 CFLAGS="$SAVE_CFLAGS"
5847 fi
5848 ;;
5849sparc*-*solaris*)
5850 # Find out which ABI we are using.
5851 echo 'int i;' > conftest.$ac_ext
d9898ee8 5852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5853 (eval $ac_compile) 2>&5
5854 ac_status=$?
8d138742 5855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 5856 (exit $ac_status); }; then
8d138742
CE
5857 case `/usr/bin/file conftest.o` in
5858 *64-bit*)
5859 case $lt_cv_prog_gnu_ld in
5860 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5861 *)
5862 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5863 LD="${LD-ld} -64"
5864 fi
5865 ;;
5866 esac
5867 ;;
5868 esac
5869 fi
5870 rm -rf conftest*
5871 ;;
5872esac
d9898ee8 5873
8d138742 5874need_locks="$enable_libtool_lock"
d9898ee8 5875
d9898ee8 5876
8d138742
CE
5877 case $host_os in
5878 rhapsody* | darwin*)
5879 if test -n "$ac_tool_prefix"; then
5880 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5881set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5882{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5883$as_echo_n "checking for $ac_word... " >&6; }
5884if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5885 $as_echo_n "(cached) " >&6
5886else
5887 if test -n "$DSYMUTIL"; then
5888 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5889else
5890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891for as_dir in $PATH
5892do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5897 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5900 fi
5901done
5902done
5903IFS=$as_save_IFS
d9898ee8 5904
8d138742
CE
5905fi
5906fi
5907DSYMUTIL=$ac_cv_prog_DSYMUTIL
5908if test -n "$DSYMUTIL"; then
5909 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5910$as_echo "$DSYMUTIL" >&6; }
5911else
5912 { $as_echo "$as_me:$LINENO: result: no" >&5
5913$as_echo "no" >&6; }
5914fi
d9898ee8 5915
d9898ee8 5916
8d138742
CE
5917fi
5918if test -z "$ac_cv_prog_DSYMUTIL"; then
5919 ac_ct_DSYMUTIL=$DSYMUTIL
5920 # Extract the first word of "dsymutil", so it can be a program name with args.
5921set dummy dsymutil; ac_word=$2
5922{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5923$as_echo_n "checking for $ac_word... " >&6; }
5924if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5925 $as_echo_n "(cached) " >&6
5926else
5927 if test -n "$ac_ct_DSYMUTIL"; then
5928 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5929else
5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5937 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
d9898ee8 5940 fi
5941done
8d138742
CE
5942done
5943IFS=$as_save_IFS
d9898ee8 5944
5945fi
d9898ee8 5946fi
8d138742
CE
5947ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5948if test -n "$ac_ct_DSYMUTIL"; then
5949 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5950$as_echo "$ac_ct_DSYMUTIL" >&6; }
d9898ee8 5951else
8d138742
CE
5952 { $as_echo "$as_me:$LINENO: result: no" >&5
5953$as_echo "no" >&6; }
d9898ee8 5954fi
5955
8d138742
CE
5956 if test "x$ac_ct_DSYMUTIL" = x; then
5957 DSYMUTIL=":"
5958 else
5959 case $cross_compiling:$ac_tool_warned in
5960yes:)
5961{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963ac_tool_warned=yes ;;
5964esac
5965 DSYMUTIL=$ac_ct_DSYMUTIL
5966 fi
d9898ee8 5967else
8d138742 5968 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d9898ee8 5969fi
d9898ee8 5970
8d138742
CE
5971 if test -n "$ac_tool_prefix"; then
5972 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5973set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5974{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5975$as_echo_n "checking for $ac_word... " >&6; }
5976if test "${ac_cv_prog_NMEDIT+set}" = set; then
5977 $as_echo_n "(cached) " >&6
5978else
5979 if test -n "$NMEDIT"; then
5980 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5981else
5982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983for as_dir in $PATH
5984do
5985 IFS=$as_save_IFS
5986 test -z "$as_dir" && as_dir=.
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5989 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5990 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 break 2
d9898ee8 5992 fi
8d138742
CE
5993done
5994done
5995IFS=$as_save_IFS
d9898ee8 5996
8d138742
CE
5997fi
5998fi
5999NMEDIT=$ac_cv_prog_NMEDIT
6000if test -n "$NMEDIT"; then
6001 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6002$as_echo "$NMEDIT" >&6; }
6003else
6004 { $as_echo "$as_me:$LINENO: result: no" >&5
6005$as_echo "no" >&6; }
6006fi
d9898ee8 6007
d9898ee8 6008
8d138742
CE
6009fi
6010if test -z "$ac_cv_prog_NMEDIT"; then
6011 ac_ct_NMEDIT=$NMEDIT
6012 # Extract the first word of "nmedit", so it can be a program name with args.
6013set dummy nmedit; ac_word=$2
6014{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6015$as_echo_n "checking for $ac_word... " >&6; }
6016if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6017 $as_echo_n "(cached) " >&6
6018else
6019 if test -n "$ac_ct_NMEDIT"; then
6020 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6021else
6022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023for as_dir in $PATH
6024do
6025 IFS=$as_save_IFS
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6030 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 break 2
6032 fi
6033done
6034done
6035IFS=$as_save_IFS
d9898ee8 6036
8d138742
CE
6037fi
6038fi
6039ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6040if test -n "$ac_ct_NMEDIT"; then
6041 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6042$as_echo "$ac_ct_NMEDIT" >&6; }
6043else
6044 { $as_echo "$as_me:$LINENO: result: no" >&5
6045$as_echo "no" >&6; }
6046fi
d9898ee8 6047
8d138742
CE
6048 if test "x$ac_ct_NMEDIT" = x; then
6049 NMEDIT=":"
6050 else
6051 case $cross_compiling:$ac_tool_warned in
6052yes:)
6053{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6055ac_tool_warned=yes ;;
6056esac
6057 NMEDIT=$ac_ct_NMEDIT
6058 fi
6059else
6060 NMEDIT="$ac_cv_prog_NMEDIT"
6061fi
d9898ee8 6062
8d138742
CE
6063 if test -n "$ac_tool_prefix"; then
6064 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6065set dummy ${ac_tool_prefix}lipo; ac_word=$2
6066{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6067$as_echo_n "checking for $ac_word... " >&6; }
6068if test "${ac_cv_prog_LIPO+set}" = set; then
6069 $as_echo_n "(cached) " >&6
d9898ee8 6070else
8d138742
CE
6071 if test -n "$LIPO"; then
6072 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d9898ee8 6073else
6074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075for as_dir in $PATH
6076do
6077 IFS=$as_save_IFS
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6081 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6082 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6083 break 2
6084 fi
6085done
6086done
dd184caf 6087IFS=$as_save_IFS
d9898ee8 6088
6089fi
6090fi
8d138742
CE
6091LIPO=$ac_cv_prog_LIPO
6092if test -n "$LIPO"; then
6093 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6094$as_echo "$LIPO" >&6; }
d9898ee8 6095else
8d138742
CE
6096 { $as_echo "$as_me:$LINENO: result: no" >&5
6097$as_echo "no" >&6; }
d9898ee8 6098fi
6099
dd184caf 6100
d9898ee8 6101fi
8d138742
CE
6102if test -z "$ac_cv_prog_LIPO"; then
6103 ac_ct_LIPO=$LIPO
6104 # Extract the first word of "lipo", so it can be a program name with args.
6105set dummy lipo; ac_word=$2
6106{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6107$as_echo_n "checking for $ac_word... " >&6; }
6108if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6109 $as_echo_n "(cached) " >&6
d9898ee8 6110else
8d138742
CE
6111 if test -n "$ac_ct_LIPO"; then
6112 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d9898ee8 6113else
6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6121 ac_cv_prog_ac_ct_LIPO="lipo"
6122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6123 break 2
6124 fi
6125done
6126done
dd184caf 6127IFS=$as_save_IFS
d9898ee8 6128
d9898ee8 6129fi
6130fi
8d138742
CE
6131ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6132if test -n "$ac_ct_LIPO"; then
6133 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6134$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 6135else
8d138742
CE
6136 { $as_echo "$as_me:$LINENO: result: no" >&5
6137$as_echo "no" >&6; }
d9898ee8 6138fi
6139
8d138742
CE
6140 if test "x$ac_ct_LIPO" = x; then
6141 LIPO=":"
dd184caf 6142 else
6143 case $cross_compiling:$ac_tool_warned in
6144yes:)
8d138742
CE
6145{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6147ac_tool_warned=yes ;;
6148esac
8d138742 6149 LIPO=$ac_ct_LIPO
dd184caf 6150 fi
d9898ee8 6151else
8d138742 6152 LIPO="$ac_cv_prog_LIPO"
d9898ee8 6153fi
6154
8d138742
CE
6155 if test -n "$ac_tool_prefix"; then
6156 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6157set dummy ${ac_tool_prefix}otool; ac_word=$2
6158{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6159$as_echo_n "checking for $ac_word... " >&6; }
6160if test "${ac_cv_prog_OTOOL+set}" = set; then
6161 $as_echo_n "(cached) " >&6
d9898ee8 6162else
8d138742
CE
6163 if test -n "$OTOOL"; then
6164 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
d9898ee8 6165else
6166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167for as_dir in $PATH
6168do
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6173 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6174 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6175 break 2
6176 fi
6177done
6178done
dd184caf 6179IFS=$as_save_IFS
d9898ee8 6180
6181fi
6182fi
8d138742
CE
6183OTOOL=$ac_cv_prog_OTOOL
6184if test -n "$OTOOL"; then
6185 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6186$as_echo "$OTOOL" >&6; }
d9898ee8 6187else
8d138742
CE
6188 { $as_echo "$as_me:$LINENO: result: no" >&5
6189$as_echo "no" >&6; }
d9898ee8 6190fi
6191
dd184caf 6192
d9898ee8 6193fi
8d138742
CE
6194if test -z "$ac_cv_prog_OTOOL"; then
6195 ac_ct_OTOOL=$OTOOL
6196 # Extract the first word of "otool", so it can be a program name with args.
6197set dummy otool; ac_word=$2
6198{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6199$as_echo_n "checking for $ac_word... " >&6; }
6200if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6201 $as_echo_n "(cached) " >&6
d9898ee8 6202else
8d138742
CE
6203 if test -n "$ac_ct_OTOOL"; then
6204 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
d9898ee8 6205else
6206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207for as_dir in $PATH
6208do
6209 IFS=$as_save_IFS
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6213 ac_cv_prog_ac_ct_OTOOL="otool"
6214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6215 break 2
6216 fi
6217done
6218done
dd184caf 6219IFS=$as_save_IFS
d9898ee8 6220
d9898ee8 6221fi
6222fi
8d138742
CE
6223ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6224if test -n "$ac_ct_OTOOL"; then
6225 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6226$as_echo "$ac_ct_OTOOL" >&6; }
d9898ee8 6227else
8d138742
CE
6228 { $as_echo "$as_me:$LINENO: result: no" >&5
6229$as_echo "no" >&6; }
d9898ee8 6230fi
6231
8d138742
CE
6232 if test "x$ac_ct_OTOOL" = x; then
6233 OTOOL=":"
dd184caf 6234 else
6235 case $cross_compiling:$ac_tool_warned in
6236yes:)
8d138742
CE
6237{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6239ac_tool_warned=yes ;;
6240esac
8d138742 6241 OTOOL=$ac_ct_OTOOL
dd184caf 6242 fi
d9898ee8 6243else
8d138742 6244 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 6245fi
6246
8d138742
CE
6247 if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6249set dummy ${ac_tool_prefix}otool64; ac_word=$2
6250{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6251$as_echo_n "checking for $ac_word... " >&6; }
6252if test "${ac_cv_prog_OTOOL64+set}" = set; then
6253 $as_echo_n "(cached) " >&6
d9898ee8 6254else
8d138742
CE
6255 if test -n "$OTOOL64"; then
6256 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
d9898ee8 6257else
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6265 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6267 break 2
6268 fi
6269done
6270done
dd184caf 6271IFS=$as_save_IFS
d9898ee8 6272
6273fi
6274fi
8d138742
CE
6275OTOOL64=$ac_cv_prog_OTOOL64
6276if test -n "$OTOOL64"; then
6277 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6278$as_echo "$OTOOL64" >&6; }
d9898ee8 6279else
8d138742
CE
6280 { $as_echo "$as_me:$LINENO: result: no" >&5
6281$as_echo "no" >&6; }
d9898ee8 6282fi
6283
dd184caf 6284
d9898ee8 6285fi
8d138742
CE
6286if test -z "$ac_cv_prog_OTOOL64"; then
6287 ac_ct_OTOOL64=$OTOOL64
6288 # Extract the first word of "otool64", so it can be a program name with args.
6289set dummy otool64; ac_word=$2
6290{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6291$as_echo_n "checking for $ac_word... " >&6; }
6292if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6293 $as_echo_n "(cached) " >&6
d9898ee8 6294else
8d138742
CE
6295 if test -n "$ac_ct_OTOOL64"; then
6296 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
d9898ee8 6297else
6298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299for as_dir in $PATH
6300do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6305 ac_cv_prog_ac_ct_OTOOL64="otool64"
6306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6307 break 2
6308 fi
6309done
6310done
dd184caf 6311IFS=$as_save_IFS
d9898ee8 6312
d9898ee8 6313fi
6314fi
8d138742
CE
6315ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6316if test -n "$ac_ct_OTOOL64"; then
6317 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6318$as_echo "$ac_ct_OTOOL64" >&6; }
d9898ee8 6319else
8d138742
CE
6320 { $as_echo "$as_me:$LINENO: result: no" >&5
6321$as_echo "no" >&6; }
d9898ee8 6322fi
6323
8d138742
CE
6324 if test "x$ac_ct_OTOOL64" = x; then
6325 OTOOL64=":"
dd184caf 6326 else
6327 case $cross_compiling:$ac_tool_warned in
6328yes:)
8d138742
CE
6329{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6331ac_tool_warned=yes ;;
6332esac
8d138742 6333 OTOOL64=$ac_ct_OTOOL64
dd184caf 6334 fi
d9898ee8 6335else
8d138742 6336 OTOOL64="$ac_cv_prog_OTOOL64"
d9898ee8 6337fi
6338
6339
d9898ee8 6340
d9898ee8 6341
d9898ee8 6342
d9898ee8 6343
d9898ee8 6344
6345
dd184caf 6346
d9898ee8 6347
6348
d9898ee8 6349
d9898ee8 6350
d9898ee8 6351
d9898ee8 6352
6353
d9898ee8 6354
d9898ee8 6355
d9898ee8 6356
6357
d9898ee8 6358
d9898ee8 6359
6360
6361
d9898ee8 6362
d9898ee8 6363
6364
8d138742
CE
6365 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6366$as_echo_n "checking for -single_module linker flag... " >&6; }
6367if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6368 $as_echo_n "(cached) " >&6
d9898ee8 6369else
8d138742
CE
6370 lt_cv_apple_cc_single_mod=no
6371 if test -z "${LT_MULTI_MODULE}"; then
6372 # By default we will add the -single_module flag. You can override
6373 # by either setting the environment variable LT_MULTI_MODULE
6374 # non-empty at configure time, or by adding -multi_module to the
6375 # link flags.
6376 rm -rf libconftest.dylib*
6377 echo "int foo(void){return 1;}" > conftest.c
6378 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6379-dynamiclib -Wl,-single_module conftest.c" >&5
6380 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6381 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6382 _lt_result=$?
6383 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6384 lt_cv_apple_cc_single_mod=yes
6385 else
6386 cat conftest.err >&5
6387 fi
6388 rm -rf libconftest.dylib*
6389 rm -f conftest.*
6390 fi
d9898ee8 6391fi
8d138742
CE
6392{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6393$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6394 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6395$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6396if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6397 $as_echo_n "(cached) " >&6
6398else
6399 lt_cv_ld_exported_symbols_list=no
6400 save_LDFLAGS=$LDFLAGS
6401 echo "_main" > conftest.sym
6402 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6403 cat >conftest.$ac_ext <<_ACEOF
6404/* confdefs.h. */
6405_ACEOF
6406cat confdefs.h >>conftest.$ac_ext
6407cat >>conftest.$ac_ext <<_ACEOF
6408/* end confdefs.h. */
d9898ee8 6409
8d138742
CE
6410int
6411main ()
6412{
6413
6414 ;
6415 return 0;
6416}
6417_ACEOF
6418rm -f conftest.$ac_objext conftest$ac_exeext
6419if { (ac_try="$ac_link"
6420case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423esac
6424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6425$as_echo "$ac_try_echo") >&5
6426 (eval "$ac_link") 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest$ac_exeext && {
6436 test "$cross_compiling" = yes ||
6437 $as_test_x conftest$ac_exeext
6438 }; then
6439 lt_cv_ld_exported_symbols_list=yes
d9898ee8 6440else
8d138742
CE
6441 $as_echo "$as_me: failed program was:" >&5
6442sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6443
8d138742 6444 lt_cv_ld_exported_symbols_list=no
d9898ee8 6445fi
6446
8d138742
CE
6447rm -rf conftest.dSYM
6448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6449 conftest$ac_exeext conftest.$ac_ext
6450 LDFLAGS="$save_LDFLAGS"
d9898ee8 6451
8d138742
CE
6452fi
6453{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6454$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
d9898ee8 6455 case $host_os in
8d138742
CE
6456 rhapsody* | darwin1.[012])
6457 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6458 darwin1.*)
6459 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6460 darwin*) # darwin 5.x on
6461 # if running on 10.5 or later, the deployment target defaults
6462 # to the OS version, if on x86, and 10.4, the deployment
6463 # target defaults to 10.4. Don't you love it?
6464 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6465 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6466 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6467 10.[012]*)
6468 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6469 10.*)
6470 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6471 esac
6472 ;;
6473 esac
6474 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6475 _lt_dar_single_mod='$single_module'
6476 fi
6477 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6478 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6479 else
6480 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6481 fi
6482 if test "$DSYMUTIL" != ":"; then
6483 _lt_dsymutil='~$DSYMUTIL $lib || :'
6484 else
6485 _lt_dsymutil=
6486 fi
6487 ;;
6488 esac
d9898ee8 6489
8d138742
CE
6490ac_ext=c
6491ac_cpp='$CPP $CPPFLAGS'
6492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6494ac_compiler_gnu=$ac_cv_c_compiler_gnu
6495{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6496$as_echo_n "checking how to run the C preprocessor... " >&6; }
6497# On Suns, sometimes $CPP names a directory.
6498if test -n "$CPP" && test -d "$CPP"; then
6499 CPP=
6500fi
6501if test -z "$CPP"; then
6502 if test "${ac_cv_prog_CPP+set}" = set; then
6503 $as_echo_n "(cached) " >&6
6504else
6505 # Double quotes because CPP needs to be expanded
6506 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6507 do
6508 ac_preproc_ok=false
6509for ac_c_preproc_warn_flag in '' yes
6510do
6511 # Use a header file that comes with gcc, so configuring glibc
6512 # with a fresh cross-compiler works.
6513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6514 # <limits.h> exists even on freestanding compilers.
6515 # On the NeXT, cc -E runs the code through the compiler's parser,
6516 # not just through cpp. "Syntax error" is here to catch this case.
6517 cat >conftest.$ac_ext <<_ACEOF
6518/* confdefs.h. */
6519_ACEOF
6520cat confdefs.h >>conftest.$ac_ext
6521cat >>conftest.$ac_ext <<_ACEOF
6522/* end confdefs.h. */
6523#ifdef __STDC__
6524# include <limits.h>
6525#else
6526# include <assert.h>
6527#endif
6528 Syntax error
6529_ACEOF
6530if { (ac_try="$ac_cpp conftest.$ac_ext"
6531case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534esac
6535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6536$as_echo "$ac_try_echo") >&5
6537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } >/dev/null && {
6544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 }; then
6547 :
6548else
6549 $as_echo "$as_me: failed program was:" >&5
6550sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6551
8d138742
CE
6552 # Broken: fails on valid input.
6553continue
6554fi
d9898ee8 6555
8d138742 6556rm -f conftest.err conftest.$ac_ext
d9898ee8 6557
8d138742
CE
6558 # OK, works on sane cases. Now check whether nonexistent headers
6559 # can be detected and how.
6560 cat >conftest.$ac_ext <<_ACEOF
6561/* confdefs.h. */
6562_ACEOF
6563cat confdefs.h >>conftest.$ac_ext
6564cat >>conftest.$ac_ext <<_ACEOF
6565/* end confdefs.h. */
6566#include <ac_nonexistent.h>
6567_ACEOF
6568if { (ac_try="$ac_cpp conftest.$ac_ext"
6569case "(($ac_try" in
6570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571 *) ac_try_echo=$ac_try;;
6572esac
6573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6574$as_echo "$ac_try_echo") >&5
6575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6576 ac_status=$?
6577 grep -v '^ *+' conftest.er1 >conftest.err
6578 rm -f conftest.er1
6579 cat conftest.err >&5
6580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } >/dev/null && {
6582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6583 test ! -s conftest.err
6584 }; then
6585 # Broken: success on invalid input.
6586continue
6587else
6588 $as_echo "$as_me: failed program was:" >&5
6589sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6590
8d138742
CE
6591 # Passes both tests.
6592ac_preproc_ok=:
6593break
6594fi
d9898ee8 6595
8d138742 6596rm -f conftest.err conftest.$ac_ext
d9898ee8 6597
8d138742
CE
6598done
6599# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6600rm -f conftest.err conftest.$ac_ext
6601if $ac_preproc_ok; then
6602 break
6603fi
d9898ee8 6604
8d138742
CE
6605 done
6606 ac_cv_prog_CPP=$CPP
d9898ee8 6607
8d138742
CE
6608fi
6609 CPP=$ac_cv_prog_CPP
6610else
6611 ac_cv_prog_CPP=$CPP
6612fi
6613{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6614$as_echo "$CPP" >&6; }
6615ac_preproc_ok=false
6616for ac_c_preproc_warn_flag in '' yes
6617do
6618 # Use a header file that comes with gcc, so configuring glibc
6619 # with a fresh cross-compiler works.
6620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6621 # <limits.h> exists even on freestanding compilers.
6622 # On the NeXT, cc -E runs the code through the compiler's parser,
6623 # not just through cpp. "Syntax error" is here to catch this case.
6624 cat >conftest.$ac_ext <<_ACEOF
6625/* confdefs.h. */
6626_ACEOF
6627cat confdefs.h >>conftest.$ac_ext
6628cat >>conftest.$ac_ext <<_ACEOF
6629/* end confdefs.h. */
6630#ifdef __STDC__
6631# include <limits.h>
6632#else
6633# include <assert.h>
6634#endif
6635 Syntax error
6636_ACEOF
6637if { (ac_try="$ac_cpp conftest.$ac_ext"
6638case "(($ac_try" in
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6641esac
6642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6643$as_echo "$ac_try_echo") >&5
6644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6645 ac_status=$?
6646 grep -v '^ *+' conftest.er1 >conftest.err
6647 rm -f conftest.er1
6648 cat conftest.err >&5
6649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } >/dev/null && {
6651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6652 test ! -s conftest.err
6653 }; then
6654 :
6655else
6656 $as_echo "$as_me: failed program was:" >&5
6657sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6658
8d138742
CE
6659 # Broken: fails on valid input.
6660continue
6661fi
d9898ee8 6662
8d138742 6663rm -f conftest.err conftest.$ac_ext
d9898ee8 6664
8d138742
CE
6665 # OK, works on sane cases. Now check whether nonexistent headers
6666 # can be detected and how.
6667 cat >conftest.$ac_ext <<_ACEOF
6668/* confdefs.h. */
6669_ACEOF
6670cat confdefs.h >>conftest.$ac_ext
6671cat >>conftest.$ac_ext <<_ACEOF
6672/* end confdefs.h. */
6673#include <ac_nonexistent.h>
6674_ACEOF
6675if { (ac_try="$ac_cpp conftest.$ac_ext"
6676case "(($ac_try" in
6677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6678 *) ac_try_echo=$ac_try;;
6679esac
6680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6681$as_echo "$ac_try_echo") >&5
6682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6683 ac_status=$?
6684 grep -v '^ *+' conftest.er1 >conftest.err
6685 rm -f conftest.er1
6686 cat conftest.err >&5
6687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } >/dev/null && {
6689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6690 test ! -s conftest.err
6691 }; then
6692 # Broken: success on invalid input.
6693continue
6694else
6695 $as_echo "$as_me: failed program was:" >&5
6696sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6697
8d138742
CE
6698 # Passes both tests.
6699ac_preproc_ok=:
6700break
6701fi
ac40fd9e 6702
8d138742 6703rm -f conftest.err conftest.$ac_ext
d9898ee8 6704
8d138742
CE
6705done
6706# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6707rm -f conftest.err conftest.$ac_ext
6708if $ac_preproc_ok; then
6709 :
6710else
6711 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6713{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6714See \`config.log' for more details." >&5
6715$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6716See \`config.log' for more details." >&2;}
6717 { (exit 1); exit 1; }; }; }
6718fi
d9898ee8 6719
8d138742
CE
6720ac_ext=c
6721ac_cpp='$CPP $CPPFLAGS'
6722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6724ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 6725
d9898ee8 6726
8d138742
CE
6727{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6728$as_echo_n "checking for ANSI C header files... " >&6; }
6729if test "${ac_cv_header_stdc+set}" = set; then
6730 $as_echo_n "(cached) " >&6
6731else
6732 cat >conftest.$ac_ext <<_ACEOF
6733/* confdefs.h. */
6734_ACEOF
6735cat confdefs.h >>conftest.$ac_ext
6736cat >>conftest.$ac_ext <<_ACEOF
6737/* end confdefs.h. */
6738#include <stdlib.h>
6739#include <stdarg.h>
6740#include <string.h>
6741#include <float.h>
d9898ee8 6742
8d138742
CE
6743int
6744main ()
6745{
d9898ee8 6746
8d138742
CE
6747 ;
6748 return 0;
6749}
6750_ACEOF
6751rm -f conftest.$ac_objext
6752if { (ac_try="$ac_compile"
6753case "(($ac_try" in
6754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6755 *) ac_try_echo=$ac_try;;
6756esac
6757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6758$as_echo "$ac_try_echo") >&5
6759 (eval "$ac_compile") 2>conftest.er1
6760 ac_status=$?
6761 grep -v '^ *+' conftest.er1 >conftest.err
6762 rm -f conftest.er1
6763 cat conftest.err >&5
6764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } && {
6766 test -z "$ac_c_werror_flag" ||
6767 test ! -s conftest.err
6768 } && test -s conftest.$ac_objext; then
6769 ac_cv_header_stdc=yes
6770else
6771 $as_echo "$as_me: failed program was:" >&5
6772sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6773
8d138742
CE
6774 ac_cv_header_stdc=no
6775fi
d9898ee8 6776
8d138742 6777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6778
8d138742
CE
6779if test $ac_cv_header_stdc = yes; then
6780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6781 cat >conftest.$ac_ext <<_ACEOF
6782/* confdefs.h. */
6783_ACEOF
6784cat confdefs.h >>conftest.$ac_ext
6785cat >>conftest.$ac_ext <<_ACEOF
6786/* end confdefs.h. */
6787#include <string.h>
d9898ee8 6788
8d138742
CE
6789_ACEOF
6790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6791 $EGREP "memchr" >/dev/null 2>&1; then
6792 :
d9898ee8 6793else
8d138742 6794 ac_cv_header_stdc=no
d9898ee8 6795fi
8d138742 6796rm -f conftest*
d9898ee8 6797
d9898ee8 6798fi
6799
8d138742
CE
6800if test $ac_cv_header_stdc = yes; then
6801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6802 cat >conftest.$ac_ext <<_ACEOF
6803/* confdefs.h. */
6804_ACEOF
6805cat confdefs.h >>conftest.$ac_ext
6806cat >>conftest.$ac_ext <<_ACEOF
6807/* end confdefs.h. */
6808#include <stdlib.h>
d9898ee8 6809
8d138742
CE
6810_ACEOF
6811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6812 $EGREP "free" >/dev/null 2>&1; then
6813 :
d9898ee8 6814else
8d138742 6815 ac_cv_header_stdc=no
d9898ee8 6816fi
8d138742 6817rm -f conftest*
d9898ee8 6818
d9898ee8 6819fi
6820
8d138742
CE
6821if test $ac_cv_header_stdc = yes; then
6822 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6823 if test "$cross_compiling" = yes; then
6824 :
6825else
6826 cat >conftest.$ac_ext <<_ACEOF
6827/* confdefs.h. */
6828_ACEOF
6829cat confdefs.h >>conftest.$ac_ext
6830cat >>conftest.$ac_ext <<_ACEOF
6831/* end confdefs.h. */
6832#include <ctype.h>
6833#include <stdlib.h>
6834#if ((' ' & 0x0FF) == 0x020)
6835# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6836# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6837#else
6838# define ISLOWER(c) \
6839 (('a' <= (c) && (c) <= 'i') \
6840 || ('j' <= (c) && (c) <= 'r') \
6841 || ('s' <= (c) && (c) <= 'z'))
6842# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6843#endif
d9898ee8 6844
8d138742
CE
6845#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6846int
6847main ()
6848{
6849 int i;
6850 for (i = 0; i < 256; i++)
6851 if (XOR (islower (i), ISLOWER (i))
6852 || toupper (i) != TOUPPER (i))
6853 return 2;
6854 return 0;
6855}
6856_ACEOF
6857rm -f conftest$ac_exeext
6858if { (ac_try="$ac_link"
6859case "(($ac_try" in
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6862esac
6863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6864$as_echo "$ac_try_echo") >&5
6865 (eval "$ac_link") 2>&5
6866 ac_status=$?
6867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6869 { (case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6872esac
6873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6874$as_echo "$ac_try_echo") >&5
6875 (eval "$ac_try") 2>&5
6876 ac_status=$?
6877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; }; then
6879 :
6880else
6881 $as_echo "$as_me: program exited with status $ac_status" >&5
6882$as_echo "$as_me: failed program was:" >&5
6883sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6884
8d138742
CE
6885( exit $ac_status )
6886ac_cv_header_stdc=no
d9898ee8 6887fi
8d138742
CE
6888rm -rf conftest.dSYM
6889rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 6890fi
6891
d9898ee8 6892
8d138742
CE
6893fi
6894fi
6895{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6896$as_echo "$ac_cv_header_stdc" >&6; }
6897if test $ac_cv_header_stdc = yes; then
d9898ee8 6898
8d138742
CE
6899cat >>confdefs.h <<\_ACEOF
6900#define STDC_HEADERS 1
6901_ACEOF
d9898ee8 6902
8d138742 6903fi
d9898ee8 6904
8d138742 6905# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d9898ee8 6906
d9898ee8 6907
d9898ee8 6908
d9898ee8 6909
d9898ee8 6910
d9898ee8 6911
d9898ee8 6912
d9898ee8 6913
d9898ee8 6914
8d138742
CE
6915for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6916 inttypes.h stdint.h unistd.h
6917do
6918as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6919{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6920$as_echo_n "checking for $ac_header... " >&6; }
6921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6922 $as_echo_n "(cached) " >&6
6923else
6924 cat >conftest.$ac_ext <<_ACEOF
6925/* confdefs.h. */
6926_ACEOF
6927cat confdefs.h >>conftest.$ac_ext
6928cat >>conftest.$ac_ext <<_ACEOF
6929/* end confdefs.h. */
6930$ac_includes_default
d9898ee8 6931
8d138742
CE
6932#include <$ac_header>
6933_ACEOF
6934rm -f conftest.$ac_objext
6935if { (ac_try="$ac_compile"
6936case "(($ac_try" in
6937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6939esac
6940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6941$as_echo "$ac_try_echo") >&5
6942 (eval "$ac_compile") 2>conftest.er1
6943 ac_status=$?
6944 grep -v '^ *+' conftest.er1 >conftest.err
6945 rm -f conftest.er1
6946 cat conftest.err >&5
6947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } && {
6949 test -z "$ac_c_werror_flag" ||
6950 test ! -s conftest.err
6951 } && test -s conftest.$ac_objext; then
6952 eval "$as_ac_Header=yes"
6953else
6954 $as_echo "$as_me: failed program was:" >&5
6955sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6956
8d138742
CE
6957 eval "$as_ac_Header=no"
6958fi
d9898ee8 6959
8d138742
CE
6960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961fi
6962ac_res=`eval 'as_val=${'$as_ac_Header'}
6963 $as_echo "$as_val"'`
6964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6965$as_echo "$ac_res" >&6; }
6966as_val=`eval 'as_val=${'$as_ac_Header'}
6967 $as_echo "$as_val"'`
6968 if test "x$as_val" = x""yes; then
6969 cat >>confdefs.h <<_ACEOF
6970#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6971_ACEOF
d9898ee8 6972
8d138742 6973fi
d9898ee8 6974
8d138742 6975done
d9898ee8 6976
d9898ee8 6977
d9898ee8 6978
8d138742
CE
6979for ac_header in dlfcn.h
6980do
6981as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6982{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6983$as_echo_n "checking for $ac_header... " >&6; }
6984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6985 $as_echo_n "(cached) " >&6
6986else
6987 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 6988/* confdefs.h. */
6989_ACEOF
6990cat confdefs.h >>conftest.$ac_ext
6991cat >>conftest.$ac_ext <<_ACEOF
6992/* end confdefs.h. */
8d138742 6993$ac_includes_default
d9898ee8 6994
8d138742 6995#include <$ac_header>
d9898ee8 6996_ACEOF
8d138742
CE
6997rm -f conftest.$ac_objext
6998if { (ac_try="$ac_compile"
dd184caf 6999case "(($ac_try" in
7000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001 *) ac_try_echo=$ac_try;;
7002esac
8d138742
CE
7003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7004$as_echo "$ac_try_echo") >&5
7005 (eval "$ac_compile") 2>conftest.er1
d9898ee8 7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
8d138742 7010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 7011 (exit $ac_status); } && {
7012 test -z "$ac_c_werror_flag" ||
7013 test ! -s conftest.err
8d138742
CE
7014 } && test -s conftest.$ac_objext; then
7015 eval "$as_ac_Header=yes"
d9898ee8 7016else
8d138742 7017 $as_echo "$as_me: failed program was:" >&5
d9898ee8 7018sed 's/^/| /' conftest.$ac_ext >&5
7019
8d138742
CE
7020 eval "$as_ac_Header=no"
7021fi
dd184caf 7022
8d138742 7023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 7024fi
8d138742
CE
7025ac_res=`eval 'as_val=${'$as_ac_Header'}
7026 $as_echo "$as_val"'`
7027 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7028$as_echo "$ac_res" >&6; }
7029as_val=`eval 'as_val=${'$as_ac_Header'}
7030 $as_echo "$as_val"'`
7031 if test "x$as_val" = x""yes; then
7032 cat >>confdefs.h <<_ACEOF
7033#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7034_ACEOF
dd184caf 7035
8d138742 7036fi
d9898ee8 7037
8d138742 7038done
d9898ee8 7039
d9898ee8 7040
d9898ee8 7041
8d138742 7042# Set options
d9898ee8 7043
dd184caf 7044
dd184caf 7045
8d138742 7046 enable_dlopen=no
d9898ee8 7047
d9898ee8 7048
8d138742 7049 enable_win32_dll=no
d9898ee8 7050
d9898ee8 7051
8d138742
CE
7052 # Check whether --enable-shared was given.
7053if test "${enable_shared+set}" = set; then
7054 enableval=$enable_shared; p=${PACKAGE-default}
7055 case $enableval in
7056 yes) enable_shared=yes ;;
7057 no) enable_shared=no ;;
7058 *)
7059 enable_shared=no
7060 # Look at the argument we got. We use all the common list separators.
7061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7062 for pkg in $enableval; do
7063 IFS="$lt_save_ifs"
7064 if test "X$pkg" = "X$p"; then
7065 enable_shared=yes
7066 fi
7067 done
7068 IFS="$lt_save_ifs"
d9898ee8 7069 ;;
8d138742
CE
7070 esac
7071else
7072 enable_shared=yes
7073fi
d9898ee8 7074
d9898ee8 7075
d9898ee8 7076
d9898ee8 7077
d9898ee8 7078
d9898ee8 7079
d9898ee8 7080
d9898ee8 7081
8d138742
CE
7082
7083 # Check whether --enable-static was given.
7084if test "${enable_static+set}" = set; then
7085 enableval=$enable_static; p=${PACKAGE-default}
7086 case $enableval in
7087 yes) enable_static=yes ;;
7088 no) enable_static=no ;;
7089 *)
7090 enable_static=no
7091 # Look at the argument we got. We use all the common list separators.
7092 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7093 for pkg in $enableval; do
7094 IFS="$lt_save_ifs"
7095 if test "X$pkg" = "X$p"; then
7096 enable_static=yes
7097 fi
7098 done
7099 IFS="$lt_save_ifs"
d9898ee8 7100 ;;
8d138742
CE
7101 esac
7102else
7103 enable_static=yes
7104fi
d9898ee8 7105
d9898ee8 7106
d9898ee8 7107
d9898ee8 7108
d9898ee8 7109
d9898ee8 7110
d9898ee8 7111
d9898ee8 7112
d9898ee8 7113
d9898ee8 7114
8d138742
CE
7115# Check whether --with-pic was given.
7116if test "${with_pic+set}" = set; then
7117 withval=$with_pic; pic_mode="$withval"
7118else
7119 pic_mode=default
7120fi
d9898ee8 7121
d9898ee8 7122
8d138742 7123test -z "$pic_mode" && pic_mode=default
d9898ee8 7124
d9898ee8 7125
d9898ee8 7126
d9898ee8 7127
d9898ee8 7128
d9898ee8 7129
d9898ee8 7130
8d138742
CE
7131 # Check whether --enable-fast-install was given.
7132if test "${enable_fast_install+set}" = set; then
7133 enableval=$enable_fast_install; p=${PACKAGE-default}
7134 case $enableval in
7135 yes) enable_fast_install=yes ;;
7136 no) enable_fast_install=no ;;
7137 *)
7138 enable_fast_install=no
7139 # Look at the argument we got. We use all the common list separators.
7140 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7141 for pkg in $enableval; do
7142 IFS="$lt_save_ifs"
7143 if test "X$pkg" = "X$p"; then
7144 enable_fast_install=yes
7145 fi
7146 done
7147 IFS="$lt_save_ifs"
d9898ee8 7148 ;;
8d138742
CE
7149 esac
7150else
7151 enable_fast_install=yes
7152fi
d9898ee8 7153
d9898ee8 7154
d9898ee8 7155
d9898ee8 7156
d9898ee8 7157
d9898ee8 7158
d9898ee8 7159
d9898ee8 7160
d9898ee8 7161
d9898ee8 7162
d9898ee8 7163
8d138742
CE
7164# This can be used to rebuild libtool when needed
7165LIBTOOL_DEPS="$ltmain"
ac40fd9e 7166
8d138742
CE
7167# Always use our own libtool.
7168LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 7169
d9898ee8 7170
d9898ee8 7171
d9898ee8 7172
d9898ee8 7173
d9898ee8 7174
d9898ee8 7175
d9898ee8 7176
d9898ee8 7177
d9898ee8 7178
d9898ee8 7179
d9898ee8 7180
ac40fd9e 7181
d9898ee8 7182
d9898ee8 7183
d9898ee8 7184
d9898ee8 7185
d9898ee8 7186
d9898ee8 7187
d9898ee8 7188
d9898ee8 7189
d9898ee8 7190
d9898ee8 7191
d9898ee8 7192
d9898ee8 7193
8d138742 7194test -z "$LN_S" && LN_S="ln -s"
d9898ee8 7195
d9898ee8 7196
d9898ee8 7197
d9898ee8 7198
d9898ee8 7199
d9898ee8 7200
ac40fd9e 7201
d9898ee8 7202
d9898ee8 7203
d9898ee8 7204
d9898ee8 7205
d9898ee8 7206
d9898ee8 7207
d9898ee8 7208
8d138742
CE
7209if test -n "${ZSH_VERSION+set}" ; then
7210 setopt NO_GLOB_SUBST
d9898ee8 7211fi
7212
8d138742
CE
7213{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7214$as_echo_n "checking for objdir... " >&6; }
7215if test "${lt_cv_objdir+set}" = set; then
7216 $as_echo_n "(cached) " >&6
d9898ee8 7217else
8d138742
CE
7218 rm -f .libs 2>/dev/null
7219mkdir .libs 2>/dev/null
7220if test -d .libs; then
7221 lt_cv_objdir=.libs
d9898ee8 7222else
8d138742
CE
7223 # MS-DOS does not allow filenames that begin with a dot.
7224 lt_cv_objdir=_libs
7225fi
7226rmdir .libs 2>/dev/null
d9898ee8 7227fi
8d138742
CE
7228{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7229$as_echo "$lt_cv_objdir" >&6; }
7230objdir=$lt_cv_objdir
d9898ee8 7231
d9898ee8 7232
d9898ee8 7233
d9898ee8 7234
d9898ee8 7235
8d138742
CE
7236cat >>confdefs.h <<_ACEOF
7237#define LT_OBJDIR "$lt_cv_objdir/"
d9898ee8 7238_ACEOF
d9898ee8 7239
d9898ee8 7240
dd184caf 7241
d9898ee8 7242
d9898ee8 7243
d9898ee8 7244
d9898ee8 7245
d9898ee8 7246
d9898ee8 7247
d9898ee8 7248
d9898ee8 7249
d9898ee8 7250
d9898ee8 7251
dd184caf 7252
d9898ee8 7253
8d138742
CE
7254
7255
7256case $host_os in
7257aix3*)
7258 # AIX sometimes has problems with the GCC collect2 program. For some
7259 # reason, if we set the COLLECT_NAMES environment variable, the problems
7260 # vanish in a puff of smoke.
7261 if test "X${COLLECT_NAMES+set}" != Xset; then
7262 COLLECT_NAMES=
7263 export COLLECT_NAMES
7264 fi
7265 ;;
dd184caf 7266esac
d9898ee8 7267
8d138742
CE
7268# Sed substitution that helps us do robust quoting. It backslashifies
7269# metacharacters that are still active within double-quoted strings.
7270sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
dd184caf 7271
8d138742
CE
7272# Same as above, but do not quote variable references.
7273double_quote_subst='s/\(["`\\]\)/\\\1/g'
d9898ee8 7274
8d138742
CE
7275# Sed substitution to delay expansion of an escaped shell variable in a
7276# double_quote_subst'ed string.
7277delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d9898ee8 7278
8d138742
CE
7279# Sed substitution to delay expansion of an escaped single quote.
7280delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d9898ee8 7281
8d138742
CE
7282# Sed substitution to avoid accidental globbing in evaled expressions
7283no_glob_subst='s/\*/\\\*/g'
d9898ee8 7284
8d138742
CE
7285# Global variables:
7286ofile=libtool
7287can_build_shared=yes
d9898ee8 7288
8d138742
CE
7289# All known linkers require a `.a' archive for static linking (except MSVC,
7290# which needs '.lib').
7291libext=a
d9898ee8 7292
8d138742 7293with_gnu_ld="$lt_cv_prog_gnu_ld"
dd184caf 7294
8d138742
CE
7295old_CC="$CC"
7296old_CFLAGS="$CFLAGS"
d9898ee8 7297
8d138742
CE
7298# Set sane defaults for various variables
7299test -z "$CC" && CC=cc
7300test -z "$LTCC" && LTCC=$CC
7301test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7302test -z "$LD" && LD=ld
7303test -z "$ac_objext" && ac_objext=o
d9898ee8 7304
8d138742
CE
7305for cc_temp in $compiler""; do
7306 case $cc_temp in
7307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7309 \-*) ;;
7310 *) break;;
7311 esac
7312done
7313cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
dd184caf 7314
d9898ee8 7315
8d138742
CE
7316# Only perform the check for file, if the check method requires it
7317test -z "$MAGIC_CMD" && MAGIC_CMD=file
7318case $deplibs_check_method in
7319file_magic*)
7320 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7321 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7322$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7323if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7324 $as_echo_n "(cached) " >&6
d9898ee8 7325else
8d138742
CE
7326 case $MAGIC_CMD in
7327[\\/*] | ?:[\\/]*)
7328 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7329 ;;
7330*)
7331 lt_save_MAGIC_CMD="$MAGIC_CMD"
7332 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7333 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7334 for ac_dir in $ac_dummy; do
7335 IFS="$lt_save_ifs"
7336 test -z "$ac_dir" && ac_dir=.
7337 if test -f $ac_dir/${ac_tool_prefix}file; then
7338 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7339 if test -n "$file_magic_test_file"; then
7340 case $deplibs_check_method in
7341 "file_magic "*)
7342 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7343 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7344 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7345 $EGREP "$file_magic_regex" > /dev/null; then
7346 :
7347 else
7348 cat <<_LT_EOF 1>&2
d9898ee8 7349
8d138742
CE
7350*** Warning: the command libtool uses to detect shared libraries,
7351*** $file_magic_cmd, produces output that libtool cannot recognize.
7352*** The result is that libtool may fail to recognize shared libraries
7353*** as such. This will affect the creation of libtool libraries that
7354*** depend on shared libraries, but programs linked with such libtool
7355*** libraries will work regardless of this problem. Nevertheless, you
7356*** may want to report the problem to your system manager and/or to
7357*** bug-libtool@gnu.org
dd184caf 7358
8d138742
CE
7359_LT_EOF
7360 fi ;;
7361 esac
7362 fi
7363 break
7364 fi
7365 done
7366 IFS="$lt_save_ifs"
7367 MAGIC_CMD="$lt_save_MAGIC_CMD"
7368 ;;
7369esac
d9898ee8 7370fi
8d138742
CE
7371
7372MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7373if test -n "$MAGIC_CMD"; then
7374 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7375$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 7376else
8d138742
CE
7377 { $as_echo "$as_me:$LINENO: result: no" >&5
7378$as_echo "no" >&6; }
7379fi
d9898ee8 7380
d9898ee8 7381
dd184caf 7382
d9898ee8 7383
7384
8d138742
CE
7385if test -z "$lt_cv_path_MAGIC_CMD"; then
7386 if test -n "$ac_tool_prefix"; then
7387 { $as_echo "$as_me:$LINENO: checking for file" >&5
7388$as_echo_n "checking for file... " >&6; }
7389if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7390 $as_echo_n "(cached) " >&6
7391else
7392 case $MAGIC_CMD in
7393[\\/*] | ?:[\\/]*)
7394 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7395 ;;
7396*)
7397 lt_save_MAGIC_CMD="$MAGIC_CMD"
7398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7399 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7400 for ac_dir in $ac_dummy; do
7401 IFS="$lt_save_ifs"
7402 test -z "$ac_dir" && ac_dir=.
7403 if test -f $ac_dir/file; then
7404 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7405 if test -n "$file_magic_test_file"; then
7406 case $deplibs_check_method in
7407 "file_magic "*)
7408 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7409 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7410 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7411 $EGREP "$file_magic_regex" > /dev/null; then
7412 :
7413 else
7414 cat <<_LT_EOF 1>&2
d9898ee8 7415
8d138742
CE
7416*** Warning: the command libtool uses to detect shared libraries,
7417*** $file_magic_cmd, produces output that libtool cannot recognize.
7418*** The result is that libtool may fail to recognize shared libraries
7419*** as such. This will affect the creation of libtool libraries that
7420*** depend on shared libraries, but programs linked with such libtool
7421*** libraries will work regardless of this problem. Nevertheless, you
7422*** may want to report the problem to your system manager and/or to
7423*** bug-libtool@gnu.org
d9898ee8 7424
8d138742
CE
7425_LT_EOF
7426 fi ;;
7427 esac
7428 fi
7429 break
7430 fi
7431 done
7432 IFS="$lt_save_ifs"
7433 MAGIC_CMD="$lt_save_MAGIC_CMD"
7434 ;;
7435esac
d9898ee8 7436fi
7437
8d138742
CE
7438MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7439if test -n "$MAGIC_CMD"; then
7440 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7441$as_echo "$MAGIC_CMD" >&6; }
7442else
7443 { $as_echo "$as_me:$LINENO: result: no" >&5
7444$as_echo "no" >&6; }
d9898ee8 7445fi
7446
7447
8d138742
CE
7448 else
7449 MAGIC_CMD=:
7450 fi
d9898ee8 7451fi
7452
8d138742
CE
7453 fi
7454 ;;
7455esac
d9898ee8 7456
8d138742 7457# Use C for the default configuration in the libtool script
d9898ee8 7458
8d138742
CE
7459lt_save_CC="$CC"
7460ac_ext=c
7461ac_cpp='$CPP $CPPFLAGS'
7462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7464ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7465
d9898ee8 7466
8d138742
CE
7467# Source file extension for C test sources.
7468ac_ext=c
d9898ee8 7469
8d138742
CE
7470# Object file extension for compiled C test sources.
7471objext=o
7472objext=$objext
d9898ee8 7473
8d138742
CE
7474# Code to be used in simple compile tests
7475lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7476
8d138742
CE
7477# Code to be used in simple link tests
7478lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7479
d9898ee8 7480
d9898ee8 7481
d9898ee8 7482
d9898ee8 7483
d9898ee8 7484
d9898ee8 7485
8d138742
CE
7486# If no C compiler was specified, use CC.
7487LTCC=${LTCC-"$CC"}
d9898ee8 7488
8d138742
CE
7489# If no C compiler flags were specified, use CFLAGS.
7490LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 7491
8d138742
CE
7492# Allow CC to be a program name with arguments.
7493compiler=$CC
d9898ee8 7494
8d138742
CE
7495# Save the default compiler, since it gets overwritten when the other
7496# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7497compiler_DEFAULT=$CC
d9898ee8 7498
8d138742
CE
7499# save warnings/boilerplate of simple test code
7500ac_outfile=conftest.$ac_objext
7501echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7502eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7503_lt_compiler_boilerplate=`cat conftest.err`
7504$RM conftest*
d9898ee8 7505
8d138742
CE
7506ac_outfile=conftest.$ac_objext
7507echo "$lt_simple_link_test_code" >conftest.$ac_ext
7508eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7509_lt_linker_boilerplate=`cat conftest.err`
7510$RM -r conftest*
d9898ee8 7511
d9898ee8 7512
8d138742 7513if test -n "$compiler"; then
d9898ee8 7514
8d138742 7515lt_prog_compiler_no_builtin_flag=
d9898ee8 7516
8d138742
CE
7517if test "$GCC" = yes; then
7518 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d9898ee8 7519
8d138742
CE
7520 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7521$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7522if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7523 $as_echo_n "(cached) " >&6
7524else
7525 lt_cv_prog_compiler_rtti_exceptions=no
7526 ac_outfile=conftest.$ac_objext
7527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7528 lt_compiler_flag="-fno-rtti -fno-exceptions"
7529 # Insert the option either (1) after the last *FLAGS variable, or
7530 # (2) before a word containing "conftest.", or (3) at the end.
7531 # Note that $ac_compile itself does not contain backslashes and begins
7532 # with a dollar sign (not a hyphen), so the echo should work correctly.
7533 # The option is referenced via a variable to avoid confusing sed.
7534 lt_compile=`echo "$ac_compile" | $SED \
7535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7537 -e 's:$: $lt_compiler_flag:'`
7538 (eval echo "\"\$as_me:7538: $lt_compile\"" >&5)
7539 (eval "$lt_compile" 2>conftest.err)
7540 ac_status=$?
7541 cat conftest.err >&5
7542 echo "$as_me:7542: \$? = $ac_status" >&5
7543 if (exit $ac_status) && test -s "$ac_outfile"; then
7544 # The compiler can only warn and ignore the option if not recognized
7545 # So say no if there are warnings other than the usual output.
7546 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7548 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7549 lt_cv_prog_compiler_rtti_exceptions=yes
7550 fi
7551 fi
7552 $RM conftest*
d9898ee8 7553
d9898ee8 7554fi
8d138742
CE
7555{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7556$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7557
8d138742
CE
7558if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7559 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7560else
7561 :
d9898ee8 7562fi
d9898ee8 7563
d9898ee8 7564fi
7565
7566
d9898ee8 7567
d9898ee8 7568
d9898ee8 7569
d9898ee8 7570
8d138742
CE
7571 lt_prog_compiler_wl=
7572lt_prog_compiler_pic=
7573lt_prog_compiler_static=
d9898ee8 7574
8d138742
CE
7575{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7576$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d9898ee8 7577
8d138742
CE
7578 if test "$GCC" = yes; then
7579 lt_prog_compiler_wl='-Wl,'
7580 lt_prog_compiler_static='-static'
d9898ee8 7581
8d138742
CE
7582 case $host_os in
7583 aix*)
7584 # All AIX code is PIC.
7585 if test "$host_cpu" = ia64; then
7586 # AIX 5 now supports IA64 processor
7587 lt_prog_compiler_static='-Bstatic'
7588 fi
7589 ;;
d9898ee8 7590
8d138742
CE
7591 amigaos*)
7592 case $host_cpu in
7593 powerpc)
7594 # see comment about AmigaOS4 .so support
7595 lt_prog_compiler_pic='-fPIC'
7596 ;;
7597 m68k)
7598 # FIXME: we need at least 68020 code to build shared libraries, but
7599 # adding the `-m68020' flag to GCC prevents building anything better,
7600 # like `-m68040'.
7601 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7602 ;;
7603 esac
7604 ;;
d9898ee8 7605
8d138742
CE
7606 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7607 # PIC is the default for these OSes.
7608 ;;
d9898ee8 7609
8d138742
CE
7610 mingw* | cygwin* | pw32* | os2* | cegcc*)
7611 # This hack is so that the source file can tell whether it is being
7612 # built for inclusion in a dll (and should export symbols for example).
7613 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7614 # (--disable-auto-import) libraries
7615 lt_prog_compiler_pic='-DDLL_EXPORT'
7616 ;;
d9898ee8 7617
8d138742
CE
7618 darwin* | rhapsody*)
7619 # PIC is the default on this platform
7620 # Common symbols not allowed in MH_DYLIB files
7621 lt_prog_compiler_pic='-fno-common'
7622 ;;
d9898ee8 7623
8d138742
CE
7624 hpux*)
7625 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7626 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7627 # sets the default TLS model and affects inlining.
7628 case $host_cpu in
7629 hppa*64*)
7630 # +Z the default
7631 ;;
7632 *)
7633 lt_prog_compiler_pic='-fPIC'
7634 ;;
7635 esac
7636 ;;
d9898ee8 7637
8d138742
CE
7638 interix[3-9]*)
7639 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7640 # Instead, we relocate shared libraries at runtime.
7641 ;;
d9898ee8 7642
8d138742
CE
7643 msdosdjgpp*)
7644 # Just because we use GCC doesn't mean we suddenly get shared libraries
7645 # on systems that don't support them.
7646 lt_prog_compiler_can_build_shared=no
7647 enable_shared=no
7648 ;;
d9898ee8 7649
8d138742
CE
7650 *nto* | *qnx*)
7651 # QNX uses GNU C++, but need to define -shared option too, otherwise
7652 # it will coredump.
7653 lt_prog_compiler_pic='-fPIC -shared'
7654 ;;
d9898ee8 7655
8d138742
CE
7656 sysv4*MP*)
7657 if test -d /usr/nec; then
7658 lt_prog_compiler_pic=-Kconform_pic
7659 fi
7660 ;;
d9898ee8 7661
8d138742
CE
7662 *)
7663 lt_prog_compiler_pic='-fPIC'
7664 ;;
7665 esac
7666 else
7667 # PORTME Check for flag to pass linker flags through the system compiler.
7668 case $host_os in
7669 aix*)
7670 lt_prog_compiler_wl='-Wl,'
7671 if test "$host_cpu" = ia64; then
7672 # AIX 5 now supports IA64 processor
7673 lt_prog_compiler_static='-Bstatic'
7674 else
7675 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7676 fi
7677 ;;
d9898ee8 7678
8d138742
CE
7679 mingw* | cygwin* | pw32* | os2* | cegcc*)
7680 # This hack is so that the source file can tell whether it is being
7681 # built for inclusion in a dll (and should export symbols for example).
7682 lt_prog_compiler_pic='-DDLL_EXPORT'
7683 ;;
d9898ee8 7684
8d138742
CE
7685 hpux9* | hpux10* | hpux11*)
7686 lt_prog_compiler_wl='-Wl,'
7687 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7688 # not for PA HP-UX.
7689 case $host_cpu in
7690 hppa*64*|ia64*)
7691 # +Z the default
7692 ;;
7693 *)
7694 lt_prog_compiler_pic='+Z'
7695 ;;
7696 esac
7697 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7698 lt_prog_compiler_static='${wl}-a ${wl}archive'
7699 ;;
d9898ee8 7700
8d138742
CE
7701 irix5* | irix6* | nonstopux*)
7702 lt_prog_compiler_wl='-Wl,'
7703 # PIC (with -KPIC) is the default.
7704 lt_prog_compiler_static='-non_shared'
7705 ;;
d9898ee8 7706
8d138742
CE
7707 linux* | k*bsd*-gnu)
7708 case $cc_basename in
7709 # old Intel for x86_64 which still supported -KPIC.
7710 ecc*)
7711 lt_prog_compiler_wl='-Wl,'
7712 lt_prog_compiler_pic='-KPIC'
7713 lt_prog_compiler_static='-static'
7714 ;;
7715 # icc used to be incompatible with GCC.
7716 # ICC 10 doesn't accept -KPIC any more.
7717 icc* | ifort*)
7718 lt_prog_compiler_wl='-Wl,'
7719 lt_prog_compiler_pic='-fPIC'
7720 lt_prog_compiler_static='-static'
7721 ;;
7722 # Lahey Fortran 8.1.
7723 lf95*)
7724 lt_prog_compiler_wl='-Wl,'
7725 lt_prog_compiler_pic='--shared'
7726 lt_prog_compiler_static='--static'
7727 ;;
7728 pgcc* | pgf77* | pgf90* | pgf95*)
7729 # Portland Group compilers (*not* the Pentium gcc compiler,
7730 # which looks to be a dead project)
7731 lt_prog_compiler_wl='-Wl,'
7732 lt_prog_compiler_pic='-fpic'
7733 lt_prog_compiler_static='-Bstatic'
7734 ;;
7735 ccc*)
7736 lt_prog_compiler_wl='-Wl,'
7737 # All Alpha code is PIC.
7738 lt_prog_compiler_static='-non_shared'
7739 ;;
7740 xl*)
7741 # IBM XL C 8.0/Fortran 10.1 on PPC
7742 lt_prog_compiler_wl='-Wl,'
7743 lt_prog_compiler_pic='-qpic'
7744 lt_prog_compiler_static='-qstaticlink'
7745 ;;
7746 *)
7747 case `$CC -V 2>&1 | sed 5q` in
7748 *Sun\ C*)
7749 # Sun C 5.9
7750 lt_prog_compiler_pic='-KPIC'
7751 lt_prog_compiler_static='-Bstatic'
7752 lt_prog_compiler_wl='-Wl,'
7753 ;;
7754 *Sun\ F*)
7755 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7756 lt_prog_compiler_pic='-KPIC'
7757 lt_prog_compiler_static='-Bstatic'
7758 lt_prog_compiler_wl=''
7759 ;;
7760 esac
7761 ;;
7762 esac
7763 ;;
d9898ee8 7764
8d138742
CE
7765 newsos6)
7766 lt_prog_compiler_pic='-KPIC'
7767 lt_prog_compiler_static='-Bstatic'
7768 ;;
d9898ee8 7769
8d138742
CE
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 ;;
d9898ee8 7775
8d138742
CE
7776 osf3* | osf4* | osf5*)
7777 lt_prog_compiler_wl='-Wl,'
7778 # All OSF/1 code is PIC.
7779 lt_prog_compiler_static='-non_shared'
7780 ;;
d9898ee8 7781
8d138742
CE
7782 rdos*)
7783 lt_prog_compiler_static='-non_shared'
7784 ;;
d9898ee8 7785
8d138742
CE
7786 solaris*)
7787 lt_prog_compiler_pic='-KPIC'
7788 lt_prog_compiler_static='-Bstatic'
7789 case $cc_basename in
7790 f77* | f90* | f95*)
7791 lt_prog_compiler_wl='-Qoption ld ';;
7792 *)
7793 lt_prog_compiler_wl='-Wl,';;
7794 esac
7795 ;;
d9898ee8 7796
8d138742
CE
7797 sunos4*)
7798 lt_prog_compiler_wl='-Qoption ld '
7799 lt_prog_compiler_pic='-PIC'
7800 lt_prog_compiler_static='-Bstatic'
7801 ;;
d9898ee8 7802
8d138742
CE
7803 sysv4 | sysv4.2uw2* | sysv4.3*)
7804 lt_prog_compiler_wl='-Wl,'
7805 lt_prog_compiler_pic='-KPIC'
7806 lt_prog_compiler_static='-Bstatic'
7807 ;;
d9898ee8 7808
8d138742
CE
7809 sysv4*MP*)
7810 if test -d /usr/nec ;then
7811 lt_prog_compiler_pic='-Kconform_pic'
7812 lt_prog_compiler_static='-Bstatic'
7813 fi
7814 ;;
d9898ee8 7815
8d138742
CE
7816 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7817 lt_prog_compiler_wl='-Wl,'
7818 lt_prog_compiler_pic='-KPIC'
7819 lt_prog_compiler_static='-Bstatic'
7820 ;;
d9898ee8 7821
8d138742
CE
7822 unicos*)
7823 lt_prog_compiler_wl='-Wl,'
7824 lt_prog_compiler_can_build_shared=no
7825 ;;
d9898ee8 7826
8d138742
CE
7827 uts4*)
7828 lt_prog_compiler_pic='-pic'
7829 lt_prog_compiler_static='-Bstatic'
7830 ;;
d9898ee8 7831
8d138742
CE
7832 *)
7833 lt_prog_compiler_can_build_shared=no
7834 ;;
7835 esac
7836 fi
d9898ee8 7837
8d138742
CE
7838case $host_os in
7839 # For platforms which do not support PIC, -DPIC is meaningless:
7840 *djgpp*)
7841 lt_prog_compiler_pic=
7842 ;;
7843 *)
7844 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7845 ;;
7846esac
7847{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7848$as_echo "$lt_prog_compiler_pic" >&6; }
d9898ee8 7849
d9898ee8 7850
d9898ee8 7851
d9898ee8 7852
d9898ee8 7853
d9898ee8 7854
8d138742
CE
7855#
7856# Check to make sure the PIC flag actually works.
7857#
7858if test -n "$lt_prog_compiler_pic"; then
7859 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7860$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7861if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7862 $as_echo_n "(cached) " >&6
7863else
7864 lt_cv_prog_compiler_pic_works=no
7865 ac_outfile=conftest.$ac_objext
7866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7867 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7868 # Insert the option either (1) after the last *FLAGS variable, or
7869 # (2) before a word containing "conftest.", or (3) at the end.
7870 # Note that $ac_compile itself does not contain backslashes and begins
7871 # with a dollar sign (not a hyphen), so the echo should work correctly.
7872 # The option is referenced via a variable to avoid confusing sed.
7873 lt_compile=`echo "$ac_compile" | $SED \
7874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7876 -e 's:$: $lt_compiler_flag:'`
7877 (eval echo "\"\$as_me:7877: $lt_compile\"" >&5)
7878 (eval "$lt_compile" 2>conftest.err)
7879 ac_status=$?
7880 cat conftest.err >&5
7881 echo "$as_me:7881: \$? = $ac_status" >&5
7882 if (exit $ac_status) && test -s "$ac_outfile"; then
7883 # The compiler can only warn and ignore the option if not recognized
7884 # So say no if there are warnings other than the usual output.
7885 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7888 lt_cv_prog_compiler_pic_works=yes
7889 fi
7890 fi
7891 $RM conftest*
d9898ee8 7892
8d138742
CE
7893fi
7894{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7895$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 7896
8d138742
CE
7897if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7898 case $lt_prog_compiler_pic in
7899 "" | " "*) ;;
7900 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7901 esac
7902else
7903 lt_prog_compiler_pic=
7904 lt_prog_compiler_can_build_shared=no
7905fi
d9898ee8 7906
8d138742 7907fi
d9898ee8 7908
d9898ee8 7909
d9898ee8 7910
d9898ee8 7911
d9898ee8 7912
d9898ee8 7913
8d138742
CE
7914#
7915# Check to make sure the static flag actually works.
7916#
7917wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7918{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7919$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7920if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7921 $as_echo_n "(cached) " >&6
7922else
7923 lt_cv_prog_compiler_static_works=no
7924 save_LDFLAGS="$LDFLAGS"
7925 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7926 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7927 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7928 # The linker can only warn and ignore the option if not recognized
7929 # So say no if there are warnings
7930 if test -s conftest.err; then
7931 # Append any errors to the config.log.
7932 cat conftest.err 1>&5
7933 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7935 if diff conftest.exp conftest.er2 >/dev/null; then
7936 lt_cv_prog_compiler_static_works=yes
7937 fi
7938 else
7939 lt_cv_prog_compiler_static_works=yes
7940 fi
7941 fi
7942 $RM -r conftest*
7943 LDFLAGS="$save_LDFLAGS"
d9898ee8 7944
8d138742
CE
7945fi
7946{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7947$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 7948
8d138742
CE
7949if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7950 :
7951else
7952 lt_prog_compiler_static=
7953fi
d9898ee8 7954
d9898ee8 7955
d9898ee8 7956
d9898ee8 7957
d9898ee8 7958
d9898ee8 7959
d9898ee8 7960
8d138742
CE
7961 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7962$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7963if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7964 $as_echo_n "(cached) " >&6
7965else
7966 lt_cv_prog_compiler_c_o=no
7967 $RM -r conftest 2>/dev/null
7968 mkdir conftest
7969 cd conftest
7970 mkdir out
7971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7972
8d138742
CE
7973 lt_compiler_flag="-o out/conftest2.$ac_objext"
7974 # Insert the option either (1) after the last *FLAGS variable, or
7975 # (2) before a word containing "conftest.", or (3) at the end.
7976 # Note that $ac_compile itself does not contain backslashes and begins
7977 # with a dollar sign (not a hyphen), so the echo should work correctly.
7978 lt_compile=`echo "$ac_compile" | $SED \
7979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7981 -e 's:$: $lt_compiler_flag:'`
7982 (eval echo "\"\$as_me:7982: $lt_compile\"" >&5)
7983 (eval "$lt_compile" 2>out/conftest.err)
7984 ac_status=$?
7985 cat out/conftest.err >&5
7986 echo "$as_me:7986: \$? = $ac_status" >&5
7987 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7988 then
7989 # The compiler can only warn and ignore the option if not recognized
7990 # So say no if there are warnings
7991 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7992 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7993 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7994 lt_cv_prog_compiler_c_o=yes
7995 fi
7996 fi
7997 chmod u+w . 2>&5
7998 $RM conftest*
7999 # SGI C++ compiler will create directory out/ii_files/ for
8000 # template instantiation
8001 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8002 $RM out/* && rmdir out
8003 cd ..
8004 $RM -r conftest
8005 $RM conftest*
d9898ee8 8006
8d138742
CE
8007fi
8008{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8009$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8010
d9898ee8 8011
d9898ee8 8012
d9898ee8 8013
d9898ee8 8014
d9898ee8 8015
8d138742
CE
8016 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8017$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8018if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8019 $as_echo_n "(cached) " >&6
8020else
8021 lt_cv_prog_compiler_c_o=no
8022 $RM -r conftest 2>/dev/null
8023 mkdir conftest
8024 cd conftest
8025 mkdir out
8026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8027
8d138742
CE
8028 lt_compiler_flag="-o out/conftest2.$ac_objext"
8029 # Insert the option either (1) after the last *FLAGS variable, or
8030 # (2) before a word containing "conftest.", or (3) at the end.
8031 # Note that $ac_compile itself does not contain backslashes and begins
8032 # with a dollar sign (not a hyphen), so the echo should work correctly.
8033 lt_compile=`echo "$ac_compile" | $SED \
8034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8036 -e 's:$: $lt_compiler_flag:'`
8037 (eval echo "\"\$as_me:8037: $lt_compile\"" >&5)
8038 (eval "$lt_compile" 2>out/conftest.err)
8039 ac_status=$?
8040 cat out/conftest.err >&5
8041 echo "$as_me:8041: \$? = $ac_status" >&5
8042 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8043 then
8044 # The compiler can only warn and ignore the option if not recognized
8045 # So say no if there are warnings
8046 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8047 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8048 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8049 lt_cv_prog_compiler_c_o=yes
8050 fi
8051 fi
8052 chmod u+w . 2>&5
8053 $RM conftest*
8054 # SGI C++ compiler will create directory out/ii_files/ for
8055 # template instantiation
8056 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8057 $RM out/* && rmdir out
8058 cd ..
8059 $RM -r conftest
8060 $RM conftest*
d9898ee8 8061
8d138742
CE
8062fi
8063{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8064$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8065
d9898ee8 8066
d9898ee8 8067
d9898ee8 8068
8d138742
CE
8069hard_links="nottested"
8070if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8071 # do not overwrite the value of need_locks provided by the user
8072 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8073$as_echo_n "checking if we can lock with hard links... " >&6; }
8074 hard_links=yes
8075 $RM conftest*
8076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8077 touch conftest.a
8078 ln conftest.a conftest.b 2>&5 || hard_links=no
8079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8080 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8081$as_echo "$hard_links" >&6; }
8082 if test "$hard_links" = no; then
8083 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8084$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8085 need_locks=warn
8086 fi
8087else
8088 need_locks=no
8089fi
d9898ee8 8090
d9898ee8 8091
d9898ee8 8092
d9898ee8 8093
d9898ee8 8094
d9898ee8 8095
8d138742
CE
8096 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8097$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 8098
8d138742
CE
8099 runpath_var=
8100 allow_undefined_flag=
8101 always_export_symbols=no
8102 archive_cmds=
8103 archive_expsym_cmds=
8104 compiler_needs_object=no
8105 enable_shared_with_static_runtimes=no
8106 export_dynamic_flag_spec=
8107 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8108 hardcode_automatic=no
8109 hardcode_direct=no
8110 hardcode_direct_absolute=no
8111 hardcode_libdir_flag_spec=
8112 hardcode_libdir_flag_spec_ld=
8113 hardcode_libdir_separator=
8114 hardcode_minus_L=no
8115 hardcode_shlibpath_var=unsupported
8116 inherit_rpath=no
8117 link_all_deplibs=unknown
8118 module_cmds=
8119 module_expsym_cmds=
8120 old_archive_from_new_cmds=
8121 old_archive_from_expsyms_cmds=
8122 thread_safe_flag_spec=
8123 whole_archive_flag_spec=
8124 # include_expsyms should be a list of space-separated symbols to be *always*
8125 # included in the symbol list
8126 include_expsyms=
8127 # exclude_expsyms can be an extended regexp of symbols to exclude
8128 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8129 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8130 # as well as any symbol that contains `d'.
8131 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8132 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8133 # platforms (ab)use it in PIC code, but their linkers get confused if
8134 # the symbol is explicitly referenced. Since portable code cannot
8135 # rely on this symbol name, it's probably fine to never include it in
8136 # preloaded symbol tables.
8137 # Exclude shared library initialization/finalization symbols.
8138 extract_expsyms_cmds=
d9898ee8 8139
8140 case $host_os in
8d138742
CE
8141 cygwin* | mingw* | pw32* | cegcc*)
8142 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8143 # When not using gcc, we currently assume that we are using
8144 # Microsoft Visual C++.
8145 if test "$GCC" != yes; then
8146 with_gnu_ld=no
8147 fi
8148 ;;
8149 interix*)
8150 # we just hope/assume this is gcc and not c89 (= MSVC++)
8151 with_gnu_ld=yes
8152 ;;
8153 openbsd*)
8154 with_gnu_ld=no
d9898ee8 8155 ;;
8156 esac
8157
8d138742
CE
8158 ld_shlibs=yes
8159 if test "$with_gnu_ld" = yes; then
8160 # If archive_cmds runs LD, not CC, wlarc should be empty
8161 wlarc='${wl}'
d9898ee8 8162
8d138742
CE
8163 # Set some defaults for GNU ld with shared library support. These
8164 # are reset later if shared libraries are not supported. Putting them
8165 # here allows them to be overridden if necessary.
8166 runpath_var=LD_RUN_PATH
8167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8168 export_dynamic_flag_spec='${wl}--export-dynamic'
8169 # ancient GNU ld didn't support --whole-archive et. al.
8170 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8171 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d9898ee8 8172 else
8d138742 8173 whole_archive_flag_spec=
d9898ee8 8174 fi
8d138742
CE
8175 supports_anon_versioning=no
8176 case `$LD -v 2>&1` in
8177 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8178 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8179 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8180 *\ 2.11.*) ;; # other 2.11 versions
8181 *) supports_anon_versioning=yes ;;
d9898ee8 8182 esac
8183
8d138742
CE
8184 # See if GNU ld supports shared libraries.
8185 case $host_os in
8186 aix[3-9]*)
8187 # On AIX/PPC, the GNU linker is very broken
8188 if test "$host_cpu" != ia64; then
8189 ld_shlibs=no
8190 cat <<_LT_EOF 1>&2
d9898ee8 8191
8d138742
CE
8192*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8193*** to be unable to reliably create shared libraries on AIX.
8194*** Therefore, libtool is disabling shared libraries support. If you
8195*** really care for shared libraries, you may want to modify your PATH
8196*** so that a non-GNU linker is found, and then restart.
d9898ee8 8197
8d138742
CE
8198_LT_EOF
8199 fi
8200 ;;
d9898ee8 8201
8d138742
CE
8202 amigaos*)
8203 case $host_cpu in
8204 powerpc)
8205 # see comment about AmigaOS4 .so support
8206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8207 archive_expsym_cmds=''
8208 ;;
8209 m68k)
8210 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)'
8211 hardcode_libdir_flag_spec='-L$libdir'
8212 hardcode_minus_L=yes
8213 ;;
8214 esac
8215 ;;
d9898ee8 8216
8d138742
CE
8217 beos*)
8218 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8219 allow_undefined_flag=unsupported
8220 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8221 # support --undefined. This deserves some investigation. FIXME
8222 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223 else
8224 ld_shlibs=no
8225 fi
8226 ;;
d9898ee8 8227
8d138742
CE
8228 cygwin* | mingw* | pw32* | cegcc*)
8229 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8230 # as there is no search path for DLLs.
8231 hardcode_libdir_flag_spec='-L$libdir'
8232 allow_undefined_flag=unsupported
8233 always_export_symbols=no
8234 enable_shared_with_static_runtimes=yes
8235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 8236
8d138742
CE
8237 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8239 # If the export-symbols file already is a .def file (1st line
8240 # is EXPORTS), use it as is; otherwise, prepend...
8241 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8242 cp $export_symbols $output_objdir/$soname.def;
8243 else
8244 echo EXPORTS > $output_objdir/$soname.def;
8245 cat $export_symbols >> $output_objdir/$soname.def;
8246 fi~
8247 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8248 else
8249 ld_shlibs=no
8250 fi
8251 ;;
d9898ee8 8252
8d138742
CE
8253 interix[3-9]*)
8254 hardcode_direct=no
8255 hardcode_shlibpath_var=no
8256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8257 export_dynamic_flag_spec='${wl}-E'
8258 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8259 # Instead, shared libraries are loaded at an image base (0x10000000 by
8260 # default) and relocated if they conflict, which is a slow very memory
8261 # consuming and fragmenting process. To avoid this, we pick a random,
8262 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8263 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8265 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'
8266 ;;
d9898ee8 8267
8d138742
CE
8268 gnu* | linux* | tpf* | k*bsd*-gnu)
8269 tmp_diet=no
8270 if test "$host_os" = linux-dietlibc; then
8271 case $cc_basename in
8272 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8273 esac
8274 fi
8275 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8276 && test "$tmp_diet" = no
8277 then
8278 tmp_addflag=
8279 tmp_sharedflag='-shared'
8280 case $cc_basename,$host_cpu in
8281 pgcc*) # Portland Group C compiler
8282 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'
8283 tmp_addflag=' $pic_flag'
8284 ;;
8285 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8286 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'
8287 tmp_addflag=' $pic_flag -Mnomain' ;;
8288 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8289 tmp_addflag=' -i_dynamic' ;;
8290 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8291 tmp_addflag=' -i_dynamic -nofor_main' ;;
8292 ifc* | ifort*) # Intel Fortran compiler
8293 tmp_addflag=' -nofor_main' ;;
8294 lf95*) # Lahey Fortran 8.1
8295 whole_archive_flag_spec=
8296 tmp_sharedflag='--shared' ;;
8297 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8298 tmp_sharedflag='-qmkshrobj'
8299 tmp_addflag= ;;
8300 esac
8301 case `$CC -V 2>&1 | sed 5q` in
8302 *Sun\ C*) # Sun C 5.9
8303 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'
8304 compiler_needs_object=yes
8305 tmp_sharedflag='-G' ;;
8306 *Sun\ F*) # Sun Fortran 8.3
8307 tmp_sharedflag='-G' ;;
8308 esac
8309 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8310
8d138742
CE
8311 if test "x$supports_anon_versioning" = xyes; then
8312 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8313 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8314 echo "local: *; };" >> $output_objdir/$libname.ver~
8315 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8316 fi
d9898ee8 8317
8d138742
CE
8318 case $cc_basename in
8319 xlf*)
8320 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8321 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8322 hardcode_libdir_flag_spec=
8323 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8324 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8325 if test "x$supports_anon_versioning" = xyes; then
8326 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8327 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8328 echo "local: *; };" >> $output_objdir/$libname.ver~
8329 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8330 fi
8331 ;;
8332 esac
8333 else
8334 ld_shlibs=no
8335 fi
8336 ;;
d9898ee8 8337
8d138742
CE
8338 netbsd*)
8339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8340 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8341 wlarc=
8342 else
8343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8344 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8345 fi
8346 ;;
d9898ee8 8347
8d138742
CE
8348 solaris*)
8349 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8350 ld_shlibs=no
8351 cat <<_LT_EOF 1>&2
d9898ee8 8352
8d138742
CE
8353*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8354*** create shared libraries on Solaris systems. Therefore, libtool
8355*** is disabling shared libraries support. We urge you to upgrade GNU
8356*** binutils to release 2.9.1 or newer. Another option is to modify
8357*** your PATH or compiler configuration so that the native linker is
8358*** used, and then restart.
d9898ee8 8359
8d138742
CE
8360_LT_EOF
8361 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8364 else
8365 ld_shlibs=no
8366 fi
8367 ;;
d9898ee8 8368
8d138742
CE
8369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8370 case `$LD -v 2>&1` in
8371 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8372 ld_shlibs=no
8373 cat <<_LT_EOF 1>&2
d9898ee8 8374
8d138742
CE
8375*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8376*** reliably create shared libraries on SCO systems. Therefore, libtool
8377*** is disabling shared libraries support. We urge you to upgrade GNU
8378*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8379*** your PATH or compiler configuration so that the native linker is
8380*** used, and then restart.
dd184caf 8381
8d138742 8382_LT_EOF
d9898ee8 8383 ;;
8d138742
CE
8384 *)
8385 # For security reasons, it is highly recommended that you always
8386 # use absolute paths for naming shared libraries, and exclude the
8387 # DT_RUNPATH tag from executables and libraries. But doing so
8388 # requires that you compile everything twice, which is a pain.
8389 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8393 else
8394 ld_shlibs=no
8395 fi
d9898ee8 8396 ;;
8397 esac
8d138742 8398 ;;
d9898ee8 8399
8d138742
CE
8400 sunos4*)
8401 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8402 wlarc=
8403 hardcode_direct=yes
8404 hardcode_shlibpath_var=no
8405 ;;
d9898ee8 8406
8d138742
CE
8407 *)
8408 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8411 else
8412 ld_shlibs=no
8413 fi
8414 ;;
8415 esac
d9898ee8 8416
8d138742
CE
8417 if test "$ld_shlibs" = no; then
8418 runpath_var=
8419 hardcode_libdir_flag_spec=
8420 export_dynamic_flag_spec=
8421 whole_archive_flag_spec=
d9898ee8 8422 fi
8423 else
8d138742
CE
8424 # PORTME fill in a description of your system's linker (not GNU ld)
8425 case $host_os in
8426 aix3*)
8427 allow_undefined_flag=unsupported
8428 always_export_symbols=yes
8429 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'
8430 # Note: this linker hardcodes the directories in LIBPATH if there
8431 # are no directories specified by -L.
8432 hardcode_minus_L=yes
8433 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8434 # Neither direct hardcoding nor static linking is supported with a
8435 # broken collect2.
8436 hardcode_direct=unsupported
8437 fi
8438 ;;
d9898ee8 8439
8d138742
CE
8440 aix[4-9]*)
8441 if test "$host_cpu" = ia64; then
8442 # On IA64, the linker does run time linking by default, so we don't
8443 # have to do anything special.
8444 aix_use_runtimelinking=no
8445 exp_sym_flag='-Bexport'
8446 no_entry_flag=""
8447 else
8448 # If we're using GNU nm, then we don't want the "-C" option.
8449 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8450 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8451 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'
8452 else
8453 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'
8454 fi
8455 aix_use_runtimelinking=no
8456
8457 # Test if we are trying to use run time linking or normal
8458 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8459 # need to do runtime linking.
8460 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8461 for ld_flag in $LDFLAGS; do
8462 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
d9898ee8 8463 aix_use_runtimelinking=yes
8464 break
8d138742
CE
8465 fi
8466 done
8467 ;;
8468 esac
d9898ee8 8469
8d138742
CE
8470 exp_sym_flag='-bexport'
8471 no_entry_flag='-bnoentry'
8472 fi
8473
8474 # When large executables or shared objects are built, AIX ld can
8475 # have problems creating the table of contents. If linking a library
8476 # or program results in "error TOC overflow" add -mminimal-toc to
8477 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8478 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8479
8480 archive_cmds=''
8481 hardcode_direct=yes
8482 hardcode_direct_absolute=yes
8483 hardcode_libdir_separator=':'
8484 link_all_deplibs=yes
8485 file_list_spec='${wl}-f,'
d9898ee8 8486
8d138742
CE
8487 if test "$GCC" = yes; then
8488 case $host_os in aix4.[012]|aix4.[012].*)
8489 # We only want to do this on AIX 4.2 and lower, the check
8490 # below for broken collect2 doesn't work under 4.3+
8491 collect2name=`${CC} -print-prog-name=collect2`
8492 if test -f "$collect2name" &&
8493 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8494 then
d9898ee8 8495 # We have reworked collect2
ac40fd9e 8496 :
8d138742 8497 else
d9898ee8 8498 # We have old collect2
8d138742 8499 hardcode_direct=unsupported
d9898ee8 8500 # It fails to find uninstalled libraries when the uninstalled
8501 # path is not listed in the libpath. Setting hardcode_minus_L
8502 # to unsupported forces relinking
8d138742
CE
8503 hardcode_minus_L=yes
8504 hardcode_libdir_flag_spec='-L$libdir'
8505 hardcode_libdir_separator=
8506 fi
8507 ;;
8508 esac
8509 shared_flag='-shared'
8510 if test "$aix_use_runtimelinking" = yes; then
8511 shared_flag="$shared_flag "'${wl}-G'
d9898ee8 8512 fi
8d138742
CE
8513 else
8514 # not using gcc
8515 if test "$host_cpu" = ia64; then
d9898ee8 8516 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8517 # chokes on -Wl,-G. The following line is correct:
8d138742 8518 shared_flag='-G'
d9898ee8 8519 else
8d138742
CE
8520 if test "$aix_use_runtimelinking" = yes; then
8521 shared_flag='${wl}-G'
8522 else
8523 shared_flag='${wl}-bM:SRE'
8524 fi
d9898ee8 8525 fi
8526 fi
d9898ee8 8527
8d138742
CE
8528 export_dynamic_flag_spec='${wl}-bexpall'
8529 # It seems that -bexpall does not export symbols beginning with
8530 # underscore (_), so it is better to generate a list of symbols to export.
8531 always_export_symbols=yes
8532 if test "$aix_use_runtimelinking" = yes; then
8533 # Warning - without using the other runtime loading flags (-brtl),
8534 # -berok will link without error, but may produce a broken library.
8535 allow_undefined_flag='-berok'
8536 # Determine the default libpath from the value encoded in an
8537 # empty executable.
8538 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 8539/* confdefs.h. */
8540_ACEOF
8541cat confdefs.h >>conftest.$ac_ext
8542cat >>conftest.$ac_ext <<_ACEOF
8543/* end confdefs.h. */
8544
8545int
8546main ()
8547{
8548
8549 ;
8550 return 0;
8551}
8552_ACEOF
8553rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8554if { (ac_try="$ac_link"
8555case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8558esac
8d138742
CE
8559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8560$as_echo "$ac_try_echo") >&5
dd184caf 8561 (eval "$ac_link") 2>conftest.er1
d9898ee8 8562 ac_status=$?
8563 grep -v '^ *+' conftest.er1 >conftest.err
8564 rm -f conftest.er1
8565 cat conftest.err >&5
8d138742 8566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8567 (exit $ac_status); } && {
8d138742 8568 test -z "$ac_c_werror_flag" ||
dd184caf 8569 test ! -s conftest.err
8d138742
CE
8570 } && test -s conftest$ac_exeext && {
8571 test "$cross_compiling" = yes ||
8572 $as_test_x conftest$ac_exeext
8573 }; then
d9898ee8 8574
ac40fd9e 8575lt_aix_libpath_sed='
8576 /Import File Strings/,/^$/ {
8577 /^0/ {
8578 s/^0 *\(.*\)$/\1/
8579 p
8580 }
8581 }'
8582aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8583# Check for a 64-bit object if we didn't find anything.
ac40fd9e 8584if test -z "$aix_libpath"; then
8585 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8586fi
d9898ee8 8587else
8d138742 8588 $as_echo "$as_me: failed program was:" >&5
d9898ee8 8589sed 's/^/| /' conftest.$ac_ext >&5
8590
dd184caf 8591
d9898ee8 8592fi
dd184caf 8593
8d138742 8594rm -rf conftest.dSYM
dd184caf 8595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8596 conftest$ac_exeext conftest.$ac_ext
8597if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8598
8d138742
CE
8599 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8600 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"
d9898ee8 8601 else
8d138742
CE
8602 if test "$host_cpu" = ia64; then
8603 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8604 allow_undefined_flag="-z nodefs"
8605 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"
8606 else
8607 # Determine the default libpath from the value encoded in an
8608 # empty executable.
8609 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 8610/* confdefs.h. */
8611_ACEOF
8612cat confdefs.h >>conftest.$ac_ext
8613cat >>conftest.$ac_ext <<_ACEOF
8614/* end confdefs.h. */
8615
8616int
8617main ()
8618{
8619
8620 ;
8621 return 0;
8622}
8623_ACEOF
8624rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8625if { (ac_try="$ac_link"
8626case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629esac
8d138742
CE
8630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8631$as_echo "$ac_try_echo") >&5
dd184caf 8632 (eval "$ac_link") 2>conftest.er1
d9898ee8 8633 ac_status=$?
8634 grep -v '^ *+' conftest.er1 >conftest.err
8635 rm -f conftest.er1
8636 cat conftest.err >&5
8d138742 8637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8638 (exit $ac_status); } && {
8d138742 8639 test -z "$ac_c_werror_flag" ||
dd184caf 8640 test ! -s conftest.err
8d138742
CE
8641 } && test -s conftest$ac_exeext && {
8642 test "$cross_compiling" = yes ||
8643 $as_test_x conftest$ac_exeext
8644 }; then
d9898ee8 8645
ac40fd9e 8646lt_aix_libpath_sed='
8647 /Import File Strings/,/^$/ {
8648 /^0/ {
8649 s/^0 *\(.*\)$/\1/
8650 p
8651 }
8652 }'
8653aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8654# Check for a 64-bit object if we didn't find anything.
ac40fd9e 8655if test -z "$aix_libpath"; then
8656 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8657fi
d9898ee8 8658else
8d138742 8659 $as_echo "$as_me: failed program was:" >&5
d9898ee8 8660sed 's/^/| /' conftest.$ac_ext >&5
8661
dd184caf 8662
d9898ee8 8663fi
dd184caf 8664
8d138742 8665rm -rf conftest.dSYM
dd184caf 8666rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8667 conftest$ac_exeext conftest.$ac_ext
8668if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8669
8d138742
CE
8670 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8671 # Warning - without using the other run time loading flags,
8672 # -berok will link without error, but may produce a broken library.
8673 no_undefined_flag=' ${wl}-bernotok'
8674 allow_undefined_flag=' ${wl}-berok'
8675 # Exported symbols can be pulled into shared objects from archives
8676 whole_archive_flag_spec='$convenience'
8677 archive_cmds_need_lc=yes
8678 # This is similar to how AIX traditionally builds its shared libraries.
8679 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'
8680 fi
d9898ee8 8681 fi
8d138742 8682 ;;
d9898ee8 8683
8d138742
CE
8684 amigaos*)
8685 case $host_cpu in
8686 powerpc)
8687 # see comment about AmigaOS4 .so support
8688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8689 archive_expsym_cmds=''
8690 ;;
8691 m68k)
8692 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)'
8693 hardcode_libdir_flag_spec='-L$libdir'
8694 hardcode_minus_L=yes
8695 ;;
8696 esac
8697 ;;
d9898ee8 8698
8d138742
CE
8699 bsdi[45]*)
8700 export_dynamic_flag_spec=-rdynamic
8701 ;;
d9898ee8 8702
8d138742
CE
8703 cygwin* | mingw* | pw32* | cegcc*)
8704 # When not using gcc, we currently assume that we are using
8705 # Microsoft Visual C++.
8706 # hardcode_libdir_flag_spec is actually meaningless, as there is
8707 # no search path for DLLs.
8708 hardcode_libdir_flag_spec=' '
8709 allow_undefined_flag=unsupported
8710 # Tell ltmain to make .lib files, not .a files.
8711 libext=lib
8712 # Tell ltmain to make .dll files, not .so files.
8713 shrext_cmds=".dll"
8714 # FIXME: Setting linknames here is a bad hack.
8715 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8716 # The linker will automatically build a .lib file if we build a DLL.
8717 old_archive_from_new_cmds='true'
8718 # FIXME: Should let the user specify the lib program.
8719 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8720 fix_srcfile_path='`cygpath -w "$srcfile"`'
8721 enable_shared_with_static_runtimes=yes
8722 ;;
8723
8724 darwin* | rhapsody*)
8725
8726
8727 archive_cmds_need_lc=no
8728 hardcode_direct=no
8729 hardcode_automatic=yes
8730 hardcode_shlibpath_var=unsupported
8731 whole_archive_flag_spec=''
8732 link_all_deplibs=yes
8733 allow_undefined_flag="$_lt_dar_allow_undefined"
8734 case $cc_basename in
8735 ifort*) _lt_dar_can_shared=yes ;;
8736 *) _lt_dar_can_shared=$GCC ;;
8737 esac
8738 if test "$_lt_dar_can_shared" = "yes"; then
8739 output_verbose_link_cmd=echo
8740 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8741 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8742 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}"
8743 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}"
8744
8745 else
8746 ld_shlibs=no
8747 fi
d9898ee8 8748
d9898ee8 8749 ;;
8d138742
CE
8750
8751 dgux*)
8752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753 hardcode_libdir_flag_spec='-L$libdir'
8754 hardcode_shlibpath_var=no
d9898ee8 8755 ;;
8d138742
CE
8756
8757 freebsd1*)
8758 ld_shlibs=no
d9898ee8 8759 ;;
d9898ee8 8760
8d138742
CE
8761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8762 # support. Future versions do this automatically, but an explicit c++rt0.o
8763 # does not break anything, and helps significantly (at the cost of a little
8764 # extra space).
8765 freebsd2.2*)
8766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8767 hardcode_libdir_flag_spec='-R$libdir'
8768 hardcode_direct=yes
8769 hardcode_shlibpath_var=no
d9898ee8 8770 ;;
8d138742
CE
8771
8772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8773 freebsd2*)
8774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8775 hardcode_direct=yes
8776 hardcode_minus_L=yes
8777 hardcode_shlibpath_var=no
d9898ee8 8778 ;;
d9898ee8 8779
8d138742
CE
8780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8781 freebsd* | dragonfly*)
8782 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8783 hardcode_libdir_flag_spec='-R$libdir'
8784 hardcode_direct=yes
8785 hardcode_shlibpath_var=no
8786 ;;
8787
8788 hpux9*)
8789 if test "$GCC" = yes; then
8790 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'
8791 else
8792 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'
8793 fi
8794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8795 hardcode_libdir_separator=:
8796 hardcode_direct=yes
8797
8798 # hardcode_minus_L: Not really in the search PATH,
8799 # but as the default location of the library.
8800 hardcode_minus_L=yes
8801 export_dynamic_flag_spec='${wl}-E'
8802 ;;
8803
8804 hpux10*)
8805 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8806 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8807 else
8808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8809 fi
8810 if test "$with_gnu_ld" = no; then
8811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8812 hardcode_libdir_flag_spec_ld='+b $libdir'
8813 hardcode_libdir_separator=:
8814 hardcode_direct=yes
8815 hardcode_direct_absolute=yes
8816 export_dynamic_flag_spec='${wl}-E'
8817 # hardcode_minus_L: Not really in the search PATH,
8818 # but as the default location of the library.
8819 hardcode_minus_L=yes
8820 fi
8821 ;;
8822
8823 hpux11*)
8824 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8825 case $host_cpu in
8826 hppa*64*)
8827 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 8828 ;;
8d138742
CE
8829 ia64*)
8830 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8831 ;;
8832 *)
8833 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 8834 ;;
8835 esac
8d138742
CE
8836 else
8837 case $host_cpu in
8838 hppa*64*)
8839 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 ;;
8841 ia64*)
8842 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8843 ;;
8844 *)
8845 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ac40fd9e 8846 ;;
8847 esac
ac40fd9e 8848 fi
8d138742
CE
8849 if test "$with_gnu_ld" = no; then
8850 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8851 hardcode_libdir_separator=:
d9898ee8 8852
8d138742
CE
8853 case $host_cpu in
8854 hppa*64*|ia64*)
8855 hardcode_direct=no
8856 hardcode_shlibpath_var=no
8857 ;;
8858 *)
8859 hardcode_direct=yes
8860 hardcode_direct_absolute=yes
8861 export_dynamic_flag_spec='${wl}-E'
d9898ee8 8862
8d138742
CE
8863 # hardcode_minus_L: Not really in the search PATH,
8864 # but as the default location of the library.
8865 hardcode_minus_L=yes
8866 ;;
d9898ee8 8867 esac
8d138742
CE
8868 fi
8869 ;;
d9898ee8 8870
8d138742
CE
8871 irix5* | irix6* | nonstopux*)
8872 if test "$GCC" = yes; then
8873 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'
8874 # Try to use the -exported_symbol ld option, if it does not
8875 # work, assume that -exports_file does not work either and
8876 # implicitly export all symbols.
8877 save_LDFLAGS="$LDFLAGS"
8878 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8879 cat >conftest.$ac_ext <<_ACEOF
8880int foo(void) {}
8881_ACEOF
8882rm -f conftest.$ac_objext conftest$ac_exeext
8883if { (ac_try="$ac_link"
8884case "(($ac_try" in
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
d9898ee8 8887esac
8d138742
CE
8888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8889$as_echo "$ac_try_echo") >&5
8890 (eval "$ac_link") 2>conftest.er1
d9898ee8 8891 ac_status=$?
8d138742
CE
8892 grep -v '^ *+' conftest.er1 >conftest.err
8893 rm -f conftest.er1
8894 cat conftest.err >&5
8895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } && {
8897 test -z "$ac_c_werror_flag" ||
8898 test ! -s conftest.err
8899 } && test -s conftest$ac_exeext && {
8900 test "$cross_compiling" = yes ||
8901 $as_test_x conftest$ac_exeext
8902 }; then
8903 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'
d9898ee8 8904
8d138742
CE
8905else
8906 $as_echo "$as_me: failed program was:" >&5
8907sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 8908
d9898ee8 8909
d9898ee8 8910fi
8911
8d138742
CE
8912rm -rf conftest.dSYM
8913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8914 conftest$ac_exeext conftest.$ac_ext
8915 LDFLAGS="$save_LDFLAGS"
8916 else
8917 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'
8918 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'
8919 fi
8920 archive_cmds_need_lc='no'
8921 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8922 hardcode_libdir_separator=:
8923 inherit_rpath=yes
8924 link_all_deplibs=yes
8925 ;;
d9898ee8 8926
8d138742
CE
8927 netbsd*)
8928 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8929 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8930 else
8931 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8932 fi
8933 hardcode_libdir_flag_spec='-R$libdir'
8934 hardcode_direct=yes
8935 hardcode_shlibpath_var=no
8936 ;;
d9898ee8 8937
8d138742
CE
8938 newsos6)
8939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8940 hardcode_direct=yes
8941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8942 hardcode_libdir_separator=:
8943 hardcode_shlibpath_var=no
ac40fd9e 8944 ;;
ac40fd9e 8945
8d138742 8946 *nto* | *qnx*)
ac40fd9e 8947 ;;
ac40fd9e 8948
8d138742
CE
8949 openbsd*)
8950 if test -f /usr/libexec/ld.so; then
8951 hardcode_direct=yes
8952 hardcode_shlibpath_var=no
8953 hardcode_direct_absolute=yes
8954 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8955 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8956 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8957 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8958 export_dynamic_flag_spec='${wl}-E'
8959 else
8960 case $host_os in
8961 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8963 hardcode_libdir_flag_spec='-R$libdir'
8964 ;;
8965 *)
8966 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8967 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8968 ;;
8969 esac
8970 fi
8971 else
8972 ld_shlibs=no
8973 fi
8974 ;;
d9898ee8 8975
8d138742
CE
8976 os2*)
8977 hardcode_libdir_flag_spec='-L$libdir'
8978 hardcode_minus_L=yes
8979 allow_undefined_flag=unsupported
8980 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'
8981 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8982 ;;
d9898ee8 8983
8d138742
CE
8984 osf3*)
8985 if test "$GCC" = yes; then
8986 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8987 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'
8988 else
8989 allow_undefined_flag=' -expect_unresolved \*'
8990 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'
8991 fi
8992 archive_cmds_need_lc='no'
8993 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8994 hardcode_libdir_separator=:
8995 ;;
d9898ee8 8996
8d138742
CE
8997 osf4* | osf5*) # as osf3* with the addition of -msym flag
8998 if test "$GCC" = yes; then
8999 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9000 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'
9001 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9002 else
9003 allow_undefined_flag=' -expect_unresolved \*'
9004 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'
9005 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~
9006 $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'
d9898ee8 9007
8d138742
CE
9008 # Both c and cxx compiler support -rpath directly
9009 hardcode_libdir_flag_spec='-rpath $libdir'
d9898ee8 9010 fi
8d138742
CE
9011 archive_cmds_need_lc='no'
9012 hardcode_libdir_separator=:
d9898ee8 9013 ;;
8d138742
CE
9014
9015 solaris*)
9016 no_undefined_flag=' -z defs'
9017 if test "$GCC" = yes; then
9018 wlarc='${wl}'
9019 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9020 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9021 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9022 else
9023 case `$CC -V 2>&1` in
9024 *"Compilers 5.0"*)
9025 wlarc=''
9026 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9028 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9029 ;;
9030 *)
9031 wlarc='${wl}'
9032 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9033 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9034 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9035 ;;
9036 esac
9037 fi
9038 hardcode_libdir_flag_spec='-R$libdir'
9039 hardcode_shlibpath_var=no
9040 case $host_os in
9041 solaris2.[0-5] | solaris2.[0-5].*) ;;
9042 *)
9043 # The compiler driver will combine and reorder linker options,
9044 # but understands `-z linker_flag'. GCC discards it without `$wl',
9045 # but is careful enough not to reorder.
9046 # Supported since Solaris 2.6 (maybe 2.5.1?)
9047 if test "$GCC" = yes; then
9048 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9049 else
9050 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9051 fi
9052 ;;
9053 esac
9054 link_all_deplibs=yes
d9898ee8 9055 ;;
8d138742
CE
9056
9057 sunos4*)
9058 if test "x$host_vendor" = xsequent; then
9059 # Use $CC to link under sequent, because it throws in some extra .o
9060 # files that make .init and .fini sections work.
9061 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9062 else
9063 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9064 fi
9065 hardcode_libdir_flag_spec='-L$libdir'
9066 hardcode_direct=yes
9067 hardcode_minus_L=yes
9068 hardcode_shlibpath_var=no
d9898ee8 9069 ;;
8d138742
CE
9070
9071 sysv4)
9072 case $host_vendor in
9073 sni)
9074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9075 hardcode_direct=yes # is this really true???
9076 ;;
9077 siemens)
9078 ## LD is ld it makes a PLAMLIB
9079 ## CC just makes a GrossModule.
9080 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9081 reload_cmds='$CC -r -o $output$reload_objs'
9082 hardcode_direct=no
9083 ;;
9084 motorola)
9085 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9086 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9087 ;;
9088 esac
9089 runpath_var='LD_RUN_PATH'
9090 hardcode_shlibpath_var=no
d9898ee8 9091 ;;
8d138742
CE
9092
9093 sysv4.3*)
9094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9095 hardcode_shlibpath_var=no
9096 export_dynamic_flag_spec='-Bexport'
d9898ee8 9097 ;;
8d138742 9098
d9898ee8 9099 sysv4*MP*)
9100 if test -d /usr/nec; then
8d138742
CE
9101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9102 hardcode_shlibpath_var=no
9103 runpath_var=LD_RUN_PATH
9104 hardcode_runpath_var=yes
9105 ld_shlibs=yes
d9898ee8 9106 fi
9107 ;;
8d138742
CE
9108
9109 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9110 no_undefined_flag='${wl}-z,text'
9111 archive_cmds_need_lc=no
9112 hardcode_shlibpath_var=no
9113 runpath_var='LD_RUN_PATH'
9114
9115 if test "$GCC" = yes; then
9116 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9118 else
9119 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9120 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 fi
9122 ;;
9123
9124 sysv5* | sco3.2v5* | sco5v6*)
9125 # Note: We can NOT use -z defs as we might desire, because we do not
9126 # link with -lc, and that would cause any symbols used from libc to
9127 # always be unresolved, which means just about no library would
9128 # ever link correctly. If we're not using GNU ld we use -z text
9129 # though, which does catch some bad symbols but isn't as heavy-handed
9130 # as -z defs.
9131 no_undefined_flag='${wl}-z,text'
9132 allow_undefined_flag='${wl}-z,nodefs'
9133 archive_cmds_need_lc=no
9134 hardcode_shlibpath_var=no
9135 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9136 hardcode_libdir_separator=':'
9137 link_all_deplibs=yes
9138 export_dynamic_flag_spec='${wl}-Bexport'
9139 runpath_var='LD_RUN_PATH'
9140
9141 if test "$GCC" = yes; then
9142 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9143 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9144 else
9145 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9146 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9147 fi
9148 ;;
9149
9150 uts4*)
9151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9152 hardcode_libdir_flag_spec='-L$libdir'
9153 hardcode_shlibpath_var=no
d9898ee8 9154 ;;
8d138742 9155
d9898ee8 9156 *)
8d138742 9157 ld_shlibs=no
d9898ee8 9158 ;;
9159 esac
8d138742
CE
9160
9161 if test x$host_vendor = xsni; then
9162 case $host in
9163 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9164 export_dynamic_flag_spec='${wl}-Blargedynsym'
d9898ee8 9165 ;;
8d138742
CE
9166 esac
9167 fi
d9898ee8 9168 fi
9169
8d138742
CE
9170{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9171$as_echo "$ld_shlibs" >&6; }
9172test "$ld_shlibs" = no && can_build_shared=no
d9898ee8 9173
8d138742 9174with_gnu_ld=$with_gnu_ld
d9898ee8 9175
d9898ee8 9176
d9898ee8 9177
d9898ee8 9178
d9898ee8 9179
d9898ee8 9180
9181
d9898ee8 9182
d9898ee8 9183
d9898ee8 9184
9185
d9898ee8 9186
d9898ee8 9187
d9898ee8 9188
d9898ee8 9189
9190#
9191# Do we need to explicitly link libc?
9192#
8d138742 9193case "x$archive_cmds_need_lc" in
d9898ee8 9194x|xyes)
9195 # Assume -lc should be added
8d138742 9196 archive_cmds_need_lc=yes
d9898ee8 9197
9198 if test "$enable_shared" = yes && test "$GCC" = yes; then
8d138742 9199 case $archive_cmds in
d9898ee8 9200 *'~'*)
9201 # FIXME: we may have to deal with multi-command sequences.
9202 ;;
9203 '$CC '*)
9204 # Test whether the compiler implicitly links with -lc since on some
9205 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9206 # to ld, don't add -lc before -lgcc.
8d138742
CE
9207 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9208$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9209 $RM conftest*
ac40fd9e 9210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 9211
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>&5
9214 ac_status=$?
8d138742 9215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 9216 (exit $ac_status); } 2>conftest.err; then
9217 soname=conftest
9218 lib=conftest
9219 libobjs=conftest.$ac_objext
9220 deplibs=
8d138742
CE
9221 wl=$lt_prog_compiler_wl
9222 pic_flag=$lt_prog_compiler_pic
d9898ee8 9223 compiler_flags=-v
9224 linker_flags=-v
9225 verstring=
9226 output_objdir=.
9227 libname=conftest
8d138742
CE
9228 lt_save_allow_undefined_flag=$allow_undefined_flag
9229 allow_undefined_flag=
9230 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9231 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
d9898ee8 9232 ac_status=$?
8d138742 9233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 9234 (exit $ac_status); }
9235 then
8d138742 9236 archive_cmds_need_lc=no
d9898ee8 9237 else
8d138742 9238 archive_cmds_need_lc=yes
d9898ee8 9239 fi
8d138742 9240 allow_undefined_flag=$lt_save_allow_undefined_flag
d9898ee8 9241 else
9242 cat conftest.err 1>&5
9243 fi
8d138742
CE
9244 $RM conftest*
9245 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9246$as_echo "$archive_cmds_need_lc" >&6; }
d9898ee8 9247 ;;
9248 esac
9249 fi
9250 ;;
9251esac
9252
ac40fd9e 9253
d9898ee8 9254
d9898ee8 9255
d9898ee8 9256
d9898ee8 9257
d9898ee8 9258
d9898ee8 9259
d9898ee8 9260
d9898ee8 9261
d9898ee8 9262
d9898ee8 9263
d9898ee8 9264
d9898ee8 9265
ac40fd9e 9266
d9898ee8 9267
d9898ee8 9268
d9898ee8 9269
d9898ee8 9270
d9898ee8 9271
d9898ee8 9272
d9898ee8 9273
d9898ee8 9274
d9898ee8 9275
d9898ee8 9276
d9898ee8 9277
d9898ee8 9278
d9898ee8 9279
d9898ee8 9280
d9898ee8 9281
d9898ee8 9282
d9898ee8 9283
d9898ee8 9284
ac40fd9e 9285
d9898ee8 9286
d9898ee8 9287
d9898ee8 9288
d9898ee8 9289
d9898ee8 9290
d9898ee8 9291
d9898ee8 9292
d9898ee8 9293
d9898ee8 9294
d9898ee8 9295
d9898ee8 9296
9297
d9898ee8 9298
d9898ee8 9299
d9898ee8 9300
d9898ee8 9301
d9898ee8 9302
d9898ee8 9303
d9898ee8 9304
d9898ee8 9305
d9898ee8 9306
d9898ee8 9307
d9898ee8 9308
d9898ee8 9309
d9898ee8 9310
d9898ee8 9311
d9898ee8 9312
d9898ee8 9313
d9898ee8 9314
d9898ee8 9315
d9898ee8 9316
d9898ee8 9317
d9898ee8 9318
d9898ee8 9319
d9898ee8 9320
d9898ee8 9321
d9898ee8 9322
d9898ee8 9323
d9898ee8 9324
d9898ee8 9325
d9898ee8 9326
d9898ee8 9327
d9898ee8 9328
d9898ee8 9329
d9898ee8 9330
d9898ee8 9331
d9898ee8 9332
d9898ee8 9333
d9898ee8 9334
d9898ee8 9335
d9898ee8 9336
d9898ee8 9337
d9898ee8 9338
d9898ee8 9339
d9898ee8 9340
d9898ee8 9341
d9898ee8 9342
d9898ee8 9343
d9898ee8 9344
d9898ee8 9345
d9898ee8 9346
d9898ee8 9347
d9898ee8 9348
d9898ee8 9349
d9898ee8 9350
d9898ee8 9351
d9898ee8 9352
d9898ee8 9353
d9898ee8 9354
d9898ee8 9355
d9898ee8 9356
d9898ee8 9357
d9898ee8 9358
d9898ee8 9359
d9898ee8 9360
d9898ee8 9361
d9898ee8 9362
d9898ee8 9363
d9898ee8 9364
d9898ee8 9365
d9898ee8 9366
d9898ee8 9367
d9898ee8 9368
d9898ee8 9369
d9898ee8 9370
d9898ee8 9371
d9898ee8 9372
d9898ee8 9373
d9898ee8 9374
d9898ee8 9375
d9898ee8 9376
d9898ee8 9377
d9898ee8 9378
d9898ee8 9379
d9898ee8 9380
d9898ee8 9381
d9898ee8 9382
d9898ee8 9383
d9898ee8 9384
d9898ee8 9385
d9898ee8 9386
d9898ee8 9387
d9898ee8 9388
d9898ee8 9389
d9898ee8 9390
d9898ee8 9391
d9898ee8 9392
9393
d9898ee8 9394
9395
d9898ee8 9396
d9898ee8 9397
d9898ee8 9398
d9898ee8 9399
d9898ee8 9400
d9898ee8 9401
d9898ee8 9402
d9898ee8 9403
d9898ee8 9404
d9898ee8 9405
9406
d9898ee8 9407
d9898ee8 9408
8d138742
CE
9409 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9410$as_echo_n "checking dynamic linker characteristics... " >&6; }
d9898ee8 9411
8d138742
CE
9412if test "$GCC" = yes; then
9413 case $host_os in
9414 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9415 *) lt_awk_arg="/^libraries:/" ;;
d9898ee8 9416 esac
8d138742
CE
9417 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9418 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9419 # if the path contains ";" then we assume it to be the separator
9420 # otherwise default to the standard path separator (i.e. ":") - it is
9421 # assumed that no part of a normal pathname contains ";" but that should
9422 # okay in the real world where ";" in dirpaths is itself problematic.
9423 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9424 else
9425 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9426 fi
9427 # Ok, now we have the path, separated by spaces, we can step through it
9428 # and add multilib dir if necessary.
9429 lt_tmp_lt_search_path_spec=
9430 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9431 for lt_sys_path in $lt_search_path_spec; do
9432 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9433 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9434 else
9435 test -d "$lt_sys_path" && \
9436 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9437 fi
9438 done
9439 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9440BEGIN {RS=" "; FS="/|\n";} {
9441 lt_foo="";
9442 lt_count=0;
9443 for (lt_i = NF; lt_i > 0; lt_i--) {
9444 if ($lt_i != "" && $lt_i != ".") {
9445 if ($lt_i == "..") {
9446 lt_count++;
9447 } else {
9448 if (lt_count == 0) {
9449 lt_foo="/" $lt_i lt_foo;
9450 } else {
9451 lt_count--;
9452 }
9453 }
9454 }
9455 }
9456 if (lt_foo != "") { lt_freq[lt_foo]++; }
9457 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9458}'`
9459 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9460else
9461 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9462fi
9463library_names_spec=
9464libname_spec='lib$name'
9465soname_spec=
9466shrext_cmds=".so"
9467postinstall_cmds=
9468postuninstall_cmds=
9469finish_cmds=
9470finish_eval=
9471shlibpath_var=
9472shlibpath_overrides_runpath=unknown
9473version_type=none
9474dynamic_linker="$host_os ld.so"
9475sys_lib_dlsearch_path_spec="/lib /usr/lib"
9476need_lib_prefix=unknown
9477hardcode_into_libs=no
d9898ee8 9478
8d138742
CE
9479# when you set need_version to no, make sure it does not cause -set_version
9480# flags to be left without arguments
9481need_version=unknown
d9898ee8 9482
d9898ee8 9483case $host_os in
9484aix3*)
8d138742
CE
9485 version_type=linux
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9487 shlibpath_var=LIBPATH
9488
9489 # AIX 3 has no versioning support, so we append a major version to the name.
9490 soname_spec='${libname}${release}${shared_ext}$major'
d9898ee8 9491 ;;
8d138742
CE
9492
9493aix[4-9]*)
9494 version_type=linux
9495 need_lib_prefix=no
9496 need_version=no
9497 hardcode_into_libs=yes
9498 if test "$host_cpu" = ia64; then
9499 # AIX 5 supports IA64
9500 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9501 shlibpath_var=LD_LIBRARY_PATH
9502 else
9503 # With GCC up to 2.95.x, collect2 would create an import file
9504 # for dependence libraries. The import file would start with
9505 # the line `#! .'. This would cause the generated library to
9506 # depend on `.', always an invalid library. This was fixed in
9507 # development snapshots of GCC prior to 3.0.
9508 case $host_os in
9509 aix4 | aix4.[01] | aix4.[01].*)
9510 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9511 echo ' yes '
9512 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9513 :
9514 else
9515 can_build_shared=no
9516 fi
9517 ;;
9518 esac
9519 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9520 # soname into executable. Probably we can add versioning support to
9521 # collect2, so additional links can be useful in future.
9522 if test "$aix_use_runtimelinking" = yes; then
9523 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9524 # instead of lib<name>.a to let people know that these are not
9525 # typical AIX shared libraries.
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527 else
9528 # We preserve .a as extension for shared libraries through AIX4.2
9529 # and later when we are not doing run time linking.
9530 library_names_spec='${libname}${release}.a $libname.a'
9531 soname_spec='${libname}${release}${shared_ext}$major'
9532 fi
9533 shlibpath_var=LIBPATH
d9898ee8 9534 fi
9535 ;;
d9898ee8 9536
8d138742
CE
9537amigaos*)
9538 case $host_cpu in
9539 powerpc)
9540 # Since July 2007 AmigaOS4 officially supports .so libraries.
9541 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543 ;;
9544 m68k)
9545 library_names_spec='$libname.ixlibrary $libname.a'
9546 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9547 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'
9548 ;;
9549 esac
9550 ;;
d9898ee8 9551
8d138742
CE
9552beos*)
9553 library_names_spec='${libname}${shared_ext}'
9554 dynamic_linker="$host_os ld.so"
9555 shlibpath_var=LIBRARY_PATH
9556 ;;
d9898ee8 9557
8d138742
CE
9558bsdi[45]*)
9559 version_type=linux
9560 need_version=no
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562 soname_spec='${libname}${release}${shared_ext}$major'
9563 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9564 shlibpath_var=LD_LIBRARY_PATH
9565 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9566 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9567 # the default ld.so.conf also contains /usr/contrib/lib and
9568 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9569 # libtool to hard-code these into programs
9570 ;;
d9898ee8 9571
8d138742
CE
9572cygwin* | mingw* | pw32* | cegcc*)
9573 version_type=windows
9574 shrext_cmds=".dll"
9575 need_version=no
9576 need_lib_prefix=no
d9898ee8 9577
8d138742
CE
9578 case $GCC,$host_os in
9579 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9580 library_names_spec='$libname.dll.a'
9581 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9582 postinstall_cmds='base_file=`basename \${file}`~
9583 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9584 dldir=$destdir/`dirname \$dlpath`~
9585 test -d \$dldir || mkdir -p \$dldir~
9586 $install_prog $dir/$dlname \$dldir/$dlname~
9587 chmod a+x \$dldir/$dlname~
9588 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9589 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9590 fi'
9591 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9592 dlpath=$dir/\$dldll~
9593 $RM \$dlpath'
9594 shlibpath_overrides_runpath=yes
d9898ee8 9595
9596 case $host_os in
8d138742
CE
9597 cygwin*)
9598 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9599 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9600 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
d9898ee8 9601 ;;
8d138742
CE
9602 mingw* | cegcc*)
9603 # MinGW DLLs use traditional 'lib' prefix
9604 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9605 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9606 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9607 # It is most probably a Windows format PATH printed by
9608 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9609 # path with ; separators, and with drive letters. We can handle the
9610 # drive letters (cygwin fileutils understands them), so leave them,
9611 # especially as we might pass files found there to a mingw objdump,
9612 # which wouldn't understand a cygwinified path. Ahh.
9613 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9614 else
9615 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9616 fi
d9898ee8 9617 ;;
8d138742
CE
9618 pw32*)
9619 # pw32 DLLs use 'pw' prefix rather than 'lib'
9620 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d9898ee8 9621 ;;
8d138742
CE
9622 esac
9623 ;;
d9898ee8 9624
8d138742
CE
9625 *)
9626 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9627 ;;
9628 esac
9629 dynamic_linker='Win32 ld.exe'
9630 # FIXME: first we should search . and the directory the executable is in
9631 shlibpath_var=PATH
9632 ;;
d9898ee8 9633
8d138742
CE
9634darwin* | rhapsody*)
9635 dynamic_linker="$host_os dyld"
9636 version_type=darwin
9637 need_lib_prefix=no
9638 need_version=no
9639 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9640 soname_spec='${libname}${release}${major}$shared_ext'
9641 shlibpath_overrides_runpath=yes
9642 shlibpath_var=DYLD_LIBRARY_PATH
9643 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
d9898ee8 9644
8d138742
CE
9645 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9647 ;;
d9898ee8 9648
8d138742
CE
9649dgux*)
9650 version_type=linux
9651 need_lib_prefix=no
9652 need_version=no
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9654 soname_spec='${libname}${release}${shared_ext}$major'
9655 shlibpath_var=LD_LIBRARY_PATH
9656 ;;
d9898ee8 9657
8d138742
CE
9658freebsd1*)
9659 dynamic_linker=no
9660 ;;
d9898ee8 9661
8d138742
CE
9662freebsd* | dragonfly*)
9663 # DragonFly does not have aout. When/if they implement a new
9664 # versioning mechanism, adjust this.
9665 if test -x /usr/bin/objformat; then
9666 objformat=`/usr/bin/objformat`
d9898ee8 9667 else
d9898ee8 9668 case $host_os in
8d138742
CE
9669 freebsd[123]*) objformat=aout ;;
9670 *) objformat=elf ;;
9671 esac
9672 fi
9673 version_type=freebsd-$objformat
9674 case $version_type in
9675 freebsd-elf*)
9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9677 need_version=no
9678 need_lib_prefix=no
d9898ee8 9679 ;;
8d138742
CE
9680 freebsd-*)
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9682 need_version=yes
d9898ee8 9683 ;;
8d138742
CE
9684 esac
9685 shlibpath_var=LD_LIBRARY_PATH
9686 case $host_os in
9687 freebsd2*)
9688 shlibpath_overrides_runpath=yes
9689 ;;
9690 freebsd3.[01]* | freebsdelf3.[01]*)
9691 shlibpath_overrides_runpath=yes
9692 hardcode_into_libs=yes
9693 ;;
9694 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9695 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9696 shlibpath_overrides_runpath=no
9697 hardcode_into_libs=yes
9698 ;;
9699 *) # from 4.6 on, and DragonFly
9700 shlibpath_overrides_runpath=yes
9701 hardcode_into_libs=yes
9702 ;;
9703 esac
9704 ;;
d9898ee8 9705
8d138742
CE
9706gnu*)
9707 version_type=linux
9708 need_lib_prefix=no
9709 need_version=no
9710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9711 soname_spec='${libname}${release}${shared_ext}$major'
9712 shlibpath_var=LD_LIBRARY_PATH
9713 hardcode_into_libs=yes
9714 ;;
d9898ee8 9715
8d138742
CE
9716hpux9* | hpux10* | hpux11*)
9717 # Give a soname corresponding to the major version so that dld.sl refuses to
9718 # link against other versions.
9719 version_type=sunos
9720 need_lib_prefix=no
9721 need_version=no
9722 case $host_cpu in
9723 ia64*)
9724 shrext_cmds='.so'
9725 hardcode_into_libs=yes
9726 dynamic_linker="$host_os dld.so"
9727 shlibpath_var=LD_LIBRARY_PATH
9728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730 soname_spec='${libname}${release}${shared_ext}$major'
9731 if test "X$HPUX_IA64_MODE" = X32; then
9732 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9733 else
9734 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9735 fi
9736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9737 ;;
9738 hppa*64*)
9739 shrext_cmds='.sl'
9740 hardcode_into_libs=yes
9741 dynamic_linker="$host_os dld.sl"
9742 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745 soname_spec='${libname}${release}${shared_ext}$major'
9746 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9748 ;;
9749 *)
9750 shrext_cmds='.sl'
9751 dynamic_linker="$host_os dld.sl"
9752 shlibpath_var=SHLIB_PATH
9753 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755 soname_spec='${libname}${release}${shared_ext}$major'
9756 ;;
9757 esac
9758 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9759 postinstall_cmds='chmod 555 $lib'
9760 ;;
d9898ee8 9761
8d138742
CE
9762interix[3-9]*)
9763 version_type=linux
9764 need_lib_prefix=no
9765 need_version=no
9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9767 soname_spec='${libname}${release}${shared_ext}$major'
9768 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9769 shlibpath_var=LD_LIBRARY_PATH
9770 shlibpath_overrides_runpath=no
9771 hardcode_into_libs=yes
9772 ;;
ac40fd9e 9773
8d138742
CE
9774irix5* | irix6* | nonstopux*)
9775 case $host_os in
9776 nonstopux*) version_type=nonstopux ;;
9777 *)
9778 if test "$lt_cv_prog_gnu_ld" = yes; then
9779 version_type=linux
9780 else
9781 version_type=irix
9782 fi ;;
9783 esac
9784 need_lib_prefix=no
9785 need_version=no
9786 soname_spec='${libname}${release}${shared_ext}$major'
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9788 case $host_os in
9789 irix5* | nonstopux*)
9790 libsuff= shlibsuff=
9791 ;;
9792 *)
9793 case $LD in # libtool.m4 will add one of these switches to LD
9794 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9795 libsuff= shlibsuff= libmagic=32-bit;;
9796 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9797 libsuff=32 shlibsuff=N32 libmagic=N32;;
9798 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9799 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9800 *) libsuff= shlibsuff= libmagic=never-match;;
9801 esac
9802 ;;
9803 esac
9804 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9805 shlibpath_overrides_runpath=no
9806 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9807 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9808 hardcode_into_libs=yes
9809 ;;
d9898ee8 9810
8d138742
CE
9811# No shared lib support for Linux oldld, aout, or coff.
9812linux*oldld* | linux*aout* | linux*coff*)
9813 dynamic_linker=no
9814 ;;
d9898ee8 9815
8d138742
CE
9816# This must be Linux ELF.
9817linux* | k*bsd*-gnu)
9818 version_type=linux
9819 need_lib_prefix=no
9820 need_version=no
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 shlibpath_overrides_runpath=no
9826 # Some binutils ld are patched to set DT_RUNPATH
9827 save_LDFLAGS=$LDFLAGS
9828 save_libdir=$libdir
9829 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9830 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9831 cat >conftest.$ac_ext <<_ACEOF
9832/* confdefs.h. */
9833_ACEOF
9834cat confdefs.h >>conftest.$ac_ext
9835cat >>conftest.$ac_ext <<_ACEOF
9836/* end confdefs.h. */
d9898ee8 9837
8d138742
CE
9838int
9839main ()
9840{
d9898ee8 9841
8d138742
CE
9842 ;
9843 return 0;
9844}
9845_ACEOF
9846rm -f conftest.$ac_objext conftest$ac_exeext
9847if { (ac_try="$ac_link"
9848case "(($ac_try" in
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
d9898ee8 9851esac
8d138742
CE
9852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9853$as_echo "$ac_try_echo") >&5
9854 (eval "$ac_link") 2>conftest.er1
9855 ac_status=$?
9856 grep -v '^ *+' conftest.er1 >conftest.err
9857 rm -f conftest.er1
9858 cat conftest.err >&5
9859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } && {
9861 test -z "$ac_c_werror_flag" ||
9862 test ! -s conftest.err
9863 } && test -s conftest$ac_exeext && {
9864 test "$cross_compiling" = yes ||
9865 $as_test_x conftest$ac_exeext
9866 }; then
9867 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9868 shlibpath_overrides_runpath=yes
9869fi
d9898ee8 9870
d9898ee8 9871else
8d138742
CE
9872 $as_echo "$as_me: failed program was:" >&5
9873sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 9874
d9898ee8 9875
d9898ee8 9876fi
9877
8d138742
CE
9878rm -rf conftest.dSYM
9879rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9880 conftest$ac_exeext conftest.$ac_ext
9881 LDFLAGS=$save_LDFLAGS
9882 libdir=$save_libdir
d9898ee8 9883
8d138742
CE
9884 # This implies no fast_install, which is unacceptable.
9885 # Some rework will be needed to allow for fast_install
9886 # before this can be enabled.
9887 hardcode_into_libs=yes
d9898ee8 9888
8d138742
CE
9889 # Add ABI-specific directories to the system library path.
9890 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 9891
8d138742
CE
9892 # Append ld.so.conf contents to the search path
9893 if test -f /etc/ld.so.conf; then
9894 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' ' '`
9895 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9896 fi
d9898ee8 9897
8d138742
CE
9898 # We used to test for /lib/ld.so.1 and disable shared libraries on
9899 # powerpc, because MkLinux only supported shared libraries with the
9900 # GNU dynamic linker. Since this was broken with cross compilers,
9901 # most powerpc-linux boxes support dynamic linking these days and
9902 # people can always --disable-shared, the test was removed, and we
9903 # assume the GNU/Linux dynamic linker is in use.
9904 dynamic_linker='GNU/Linux ld.so'
9905 ;;
d9898ee8 9906
8d138742
CE
9907netbsd*)
9908 version_type=sunos
9909 need_lib_prefix=no
9910 need_version=no
9911 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9914 dynamic_linker='NetBSD (a.out) ld.so'
9915 else
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9917 soname_spec='${libname}${release}${shared_ext}$major'
9918 dynamic_linker='NetBSD ld.elf_so'
d9898ee8 9919 fi
8d138742
CE
9920 shlibpath_var=LD_LIBRARY_PATH
9921 shlibpath_overrides_runpath=yes
9922 hardcode_into_libs=yes
9923 ;;
d9898ee8 9924
8d138742
CE
9925newsos6)
9926 version_type=linux
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 shlibpath_overrides_runpath=yes
9930 ;;
d9898ee8 9931
8d138742
CE
9932*nto* | *qnx*)
9933 version_type=qnx
9934 need_lib_prefix=no
9935 need_version=no
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937 soname_spec='${libname}${release}${shared_ext}$major'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=no
9940 hardcode_into_libs=yes
9941 dynamic_linker='ldqnx.so'
9942 ;;
d9898ee8 9943
8d138742
CE
9944openbsd*)
9945 version_type=sunos
9946 sys_lib_dlsearch_path_spec="/usr/lib"
9947 need_lib_prefix=no
9948 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
d9898ee8 9949 case $host_os in
8d138742
CE
9950 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9951 *) need_version=no ;;
d9898ee8 9952 esac
8d138742
CE
9953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 9957 case $host_os in
8d138742
CE
9958 openbsd2.[89] | openbsd2.[89].*)
9959 shlibpath_overrides_runpath=no
9960 ;;
9961 *)
9962 shlibpath_overrides_runpath=yes
9963 ;;
9964 esac
9965 else
9966 shlibpath_overrides_runpath=yes
9967 fi
9968 ;;
d9898ee8 9969
8d138742
CE
9970os2*)
9971 libname_spec='$name'
9972 shrext_cmds=".dll"
9973 need_lib_prefix=no
9974 library_names_spec='$libname${shared_ext} $libname.a'
9975 dynamic_linker='OS/2 ld.exe'
9976 shlibpath_var=LIBPATH
9977 ;;
d9898ee8 9978
8d138742
CE
9979osf3* | osf4* | osf5*)
9980 version_type=osf
9981 need_lib_prefix=no
9982 need_version=no
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9987 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9988 ;;
d9898ee8 9989
8d138742
CE
9990rdos*)
9991 dynamic_linker=no
9992 ;;
d9898ee8 9993
8d138742
CE
9994solaris*)
9995 version_type=linux
9996 need_lib_prefix=no
9997 need_version=no
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 shlibpath_var=LD_LIBRARY_PATH
10001 shlibpath_overrides_runpath=yes
10002 hardcode_into_libs=yes
10003 # ldd complains unless libraries are executable
10004 postinstall_cmds='chmod +x $lib'
10005 ;;
d9898ee8 10006
8d138742
CE
10007sunos4*)
10008 version_type=sunos
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10010 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10011 shlibpath_var=LD_LIBRARY_PATH
10012 shlibpath_overrides_runpath=yes
10013 if test "$with_gnu_ld" = yes; then
10014 need_lib_prefix=no
10015 fi
10016 need_version=yes
10017 ;;
d9898ee8 10018
8d138742
CE
10019sysv4 | sysv4.3*)
10020 version_type=linux
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022 soname_spec='${libname}${release}${shared_ext}$major'
10023 shlibpath_var=LD_LIBRARY_PATH
10024 case $host_vendor in
10025 sni)
10026 shlibpath_overrides_runpath=no
10027 need_lib_prefix=no
10028 runpath_var=LD_RUN_PATH
10029 ;;
10030 siemens)
10031 need_lib_prefix=no
10032 ;;
10033 motorola)
10034 need_lib_prefix=no
10035 need_version=no
10036 shlibpath_overrides_runpath=no
10037 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
d9898ee8 10038 ;;
8d138742
CE
10039 esac
10040 ;;
d9898ee8 10041
8d138742
CE
10042sysv4*MP*)
10043 if test -d /usr/nec ;then
10044 version_type=linux
10045 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10046 soname_spec='$libname${shared_ext}.$major'
10047 shlibpath_var=LD_LIBRARY_PATH
10048 fi
10049 ;;
d9898ee8 10050
8d138742
CE
10051sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10052 version_type=freebsd-elf
10053 need_lib_prefix=no
10054 need_version=no
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 shlibpath_var=LD_LIBRARY_PATH
10058 shlibpath_overrides_runpath=yes
10059 hardcode_into_libs=yes
10060 if test "$with_gnu_ld" = yes; then
10061 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10062 else
10063 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10064 case $host_os in
10065 sco3.2v5*)
10066 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10067 ;;
10068 esac
10069 fi
10070 sys_lib_dlsearch_path_spec='/usr/lib'
10071 ;;
d9898ee8 10072
8d138742
CE
10073tpf*)
10074 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10075 version_type=linux
10076 need_lib_prefix=no
10077 need_version=no
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079 shlibpath_var=LD_LIBRARY_PATH
10080 shlibpath_overrides_runpath=no
10081 hardcode_into_libs=yes
10082 ;;
d9898ee8 10083
8d138742
CE
10084uts4*)
10085 version_type=linux
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10087 soname_spec='${libname}${release}${shared_ext}$major'
10088 shlibpath_var=LD_LIBRARY_PATH
10089 ;;
d9898ee8 10090
8d138742
CE
10091*)
10092 dynamic_linker=no
10093 ;;
10094esac
10095{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10096$as_echo "$dynamic_linker" >&6; }
10097test "$dynamic_linker" = no && can_build_shared=no
d9898ee8 10098
8d138742
CE
10099variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10100if test "$GCC" = yes; then
10101 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10102fi
d9898ee8 10103
8d138742
CE
10104if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10105 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10106fi
10107if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10108 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10109fi
d9898ee8 10110
d9898ee8 10111
d9898ee8 10112
d9898ee8 10113
d9898ee8 10114
d9898ee8 10115
d9898ee8 10116
d9898ee8 10117
d9898ee8 10118
d9898ee8 10119
d9898ee8 10120
d9898ee8 10121
d9898ee8 10122
d9898ee8 10123
d9898ee8 10124
dd184caf 10125
dd184caf 10126
d9898ee8 10127
d9898ee8 10128
d9898ee8 10129
d9898ee8 10130
dd184caf 10131
dd184caf 10132
d9898ee8 10133
d9898ee8 10134
d9898ee8 10135
d9898ee8 10136
d9898ee8 10137
d9898ee8 10138
d9898ee8 10139
d9898ee8 10140
d9898ee8 10141
d9898ee8 10142
d9898ee8 10143
d9898ee8 10144
d9898ee8 10145
d9898ee8 10146
d9898ee8 10147
d9898ee8 10148
d9898ee8 10149
d9898ee8 10150
d9898ee8 10151
d9898ee8 10152
d9898ee8 10153
d9898ee8 10154
d9898ee8 10155
d9898ee8 10156
d9898ee8 10157
d9898ee8 10158
d9898ee8 10159
d9898ee8 10160
d9898ee8 10161
d9898ee8 10162
d9898ee8 10163
d9898ee8 10164
d9898ee8 10165
d9898ee8 10166
d9898ee8 10167
d9898ee8 10168
d9898ee8 10169
d9898ee8 10170
d9898ee8 10171
d9898ee8 10172
d9898ee8 10173
d9898ee8 10174
ac40fd9e 10175
d9898ee8 10176
d9898ee8 10177
d9898ee8 10178
d9898ee8 10179
d9898ee8 10180
d9898ee8 10181
d9898ee8 10182
d9898ee8 10183
d9898ee8 10184
d9898ee8 10185
d9898ee8 10186
d9898ee8 10187
ac40fd9e 10188
d9898ee8 10189
d9898ee8 10190
d9898ee8 10191
d9898ee8 10192
d9898ee8 10193
d9898ee8 10194
d9898ee8 10195
d9898ee8 10196
8d138742
CE
10197 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10198$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10199hardcode_action=
10200if test -n "$hardcode_libdir_flag_spec" ||
10201 test -n "$runpath_var" ||
10202 test "X$hardcode_automatic" = "Xyes" ; then
d9898ee8 10203
8d138742
CE
10204 # We can hardcode non-existent directories.
10205 if test "$hardcode_direct" != no &&
10206 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10207 # have to relink, otherwise we might link with an installed library
10208 # when we should be linking with a yet-to-be-installed one
10209 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10210 test "$hardcode_minus_L" != no; then
10211 # Linking always hardcodes the temporary library directory.
10212 hardcode_action=relink
10213 else
10214 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10215 hardcode_action=immediate
d9898ee8 10216 fi
8d138742
CE
10217else
10218 # We cannot hardcode anything, or else we can only hardcode existing
10219 # directories.
10220 hardcode_action=unsupported
10221fi
10222{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10223$as_echo "$hardcode_action" >&6; }
d9898ee8 10224
8d138742
CE
10225if test "$hardcode_action" = relink ||
10226 test "$inherit_rpath" = yes; then
10227 # Fast installation is not supported
10228 enable_fast_install=no
10229elif test "$shlibpath_overrides_runpath" = yes ||
10230 test "$enable_shared" = no; then
10231 # Fast installation is not necessary
10232 enable_fast_install=needless
10233fi
d9898ee8 10234
d9898ee8 10235
d9898ee8 10236
d9898ee8 10237
d9898ee8 10238
d9898ee8 10239
8d138742
CE
10240 if test "x$enable_dlopen" != xyes; then
10241 enable_dlopen=unknown
10242 enable_dlopen_self=unknown
10243 enable_dlopen_self_static=unknown
10244else
10245 lt_cv_dlopen=no
10246 lt_cv_dlopen_libs=
d9898ee8 10247
8d138742
CE
10248 case $host_os in
10249 beos*)
10250 lt_cv_dlopen="load_add_on"
10251 lt_cv_dlopen_libs=
10252 lt_cv_dlopen_self=yes
10253 ;;
d9898ee8 10254
8d138742
CE
10255 mingw* | pw32* | cegcc*)
10256 lt_cv_dlopen="LoadLibrary"
10257 lt_cv_dlopen_libs=
10258 ;;
d9898ee8 10259
8d138742
CE
10260 cygwin*)
10261 lt_cv_dlopen="dlopen"
10262 lt_cv_dlopen_libs=
10263 ;;
d9898ee8 10264
8d138742
CE
10265 darwin*)
10266 # if libdl is installed we need to link against it
10267 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10268$as_echo_n "checking for dlopen in -ldl... " >&6; }
10269if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10270 $as_echo_n "(cached) " >&6
10271else
10272 ac_check_lib_save_LIBS=$LIBS
10273LIBS="-ldl $LIBS"
10274cat >conftest.$ac_ext <<_ACEOF
10275/* confdefs.h. */
10276_ACEOF
10277cat confdefs.h >>conftest.$ac_ext
10278cat >>conftest.$ac_ext <<_ACEOF
10279/* end confdefs.h. */
d9898ee8 10280
8d138742
CE
10281/* Override any GCC internal prototype to avoid an error.
10282 Use char because int might match the return type of a GCC
10283 builtin and then its argument prototype would still apply. */
10284#ifdef __cplusplus
10285extern "C"
10286#endif
10287char dlopen ();
10288int
10289main ()
10290{
10291return dlopen ();
10292 ;
10293 return 0;
10294}
10295_ACEOF
10296rm -f conftest.$ac_objext conftest$ac_exeext
10297if { (ac_try="$ac_link"
10298case "(($ac_try" in
10299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300 *) ac_try_echo=$ac_try;;
d9898ee8 10301esac
8d138742
CE
10302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10303$as_echo "$ac_try_echo") >&5
10304 (eval "$ac_link") 2>conftest.er1
10305 ac_status=$?
10306 grep -v '^ *+' conftest.er1 >conftest.err
10307 rm -f conftest.er1
10308 cat conftest.err >&5
10309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } && {
10311 test -z "$ac_c_werror_flag" ||
10312 test ! -s conftest.err
10313 } && test -s conftest$ac_exeext && {
10314 test "$cross_compiling" = yes ||
10315 $as_test_x conftest$ac_exeext
10316 }; then
10317 ac_cv_lib_dl_dlopen=yes
d9898ee8 10318else
8d138742
CE
10319 $as_echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
10322 ac_cv_lib_dl_dlopen=no
d9898ee8 10323fi
d9898ee8 10324
8d138742
CE
10325rm -rf conftest.dSYM
10326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10327 conftest$ac_exeext conftest.$ac_ext
10328LIBS=$ac_check_lib_save_LIBS
d9898ee8 10329fi
8d138742
CE
10330{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10331$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10332if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10334else
d9898ee8 10335
8d138742
CE
10336 lt_cv_dlopen="dyld"
10337 lt_cv_dlopen_libs=
10338 lt_cv_dlopen_self=yes
d9898ee8 10339
8d138742 10340fi
d9898ee8 10341
d9898ee8 10342 ;;
d9898ee8 10343
8d138742
CE
10344 *)
10345 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10346$as_echo_n "checking for shl_load... " >&6; }
10347if test "${ac_cv_func_shl_load+set}" = set; then
10348 $as_echo_n "(cached) " >&6
10349else
10350 cat >conftest.$ac_ext <<_ACEOF
10351/* confdefs.h. */
10352_ACEOF
10353cat confdefs.h >>conftest.$ac_ext
10354cat >>conftest.$ac_ext <<_ACEOF
10355/* end confdefs.h. */
10356/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10358#define shl_load innocuous_shl_load
d9898ee8 10359
8d138742
CE
10360/* System header to define __stub macros and hopefully few prototypes,
10361 which can conflict with char shl_load (); below.
10362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10363 <limits.h> exists even on freestanding compilers. */
d9898ee8 10364
8d138742
CE
10365#ifdef __STDC__
10366# include <limits.h>
10367#else
10368# include <assert.h>
10369#endif
d9898ee8 10370
8d138742 10371#undef shl_load
d9898ee8 10372
8d138742
CE
10373/* Override any GCC internal prototype to avoid an error.
10374 Use char because int might match the return type of a GCC
10375 builtin and then its argument prototype would still apply. */
10376#ifdef __cplusplus
10377extern "C"
10378#endif
10379char shl_load ();
10380/* The GNU C library defines this for functions which it implements
10381 to always fail with ENOSYS. Some functions are actually named
10382 something starting with __ and the normal name is an alias. */
10383#if defined __stub_shl_load || defined __stub___shl_load
10384choke me
10385#endif
d9898ee8 10386
8d138742
CE
10387int
10388main ()
10389{
10390return shl_load ();
10391 ;
10392 return 0;
10393}
10394_ACEOF
10395rm -f conftest.$ac_objext conftest$ac_exeext
10396if { (ac_try="$ac_link"
10397case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10400esac
10401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10402$as_echo "$ac_try_echo") >&5
10403 (eval "$ac_link") 2>conftest.er1
10404 ac_status=$?
10405 grep -v '^ *+' conftest.er1 >conftest.err
10406 rm -f conftest.er1
10407 cat conftest.err >&5
10408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && {
10410 test -z "$ac_c_werror_flag" ||
10411 test ! -s conftest.err
10412 } && test -s conftest$ac_exeext && {
10413 test "$cross_compiling" = yes ||
10414 $as_test_x conftest$ac_exeext
10415 }; then
10416 ac_cv_func_shl_load=yes
10417else
10418 $as_echo "$as_me: failed program was:" >&5
10419sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10420
8d138742
CE
10421 ac_cv_func_shl_load=no
10422fi
d9898ee8 10423
8d138742
CE
10424rm -rf conftest.dSYM
10425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10426 conftest$ac_exeext conftest.$ac_ext
10427fi
10428{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10429$as_echo "$ac_cv_func_shl_load" >&6; }
10430if test "x$ac_cv_func_shl_load" = x""yes; then
10431 lt_cv_dlopen="shl_load"
10432else
10433 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10434$as_echo_n "checking for shl_load in -ldld... " >&6; }
10435if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10436 $as_echo_n "(cached) " >&6
10437else
10438 ac_check_lib_save_LIBS=$LIBS
10439LIBS="-ldld $LIBS"
10440cat >conftest.$ac_ext <<_ACEOF
10441/* confdefs.h. */
10442_ACEOF
10443cat confdefs.h >>conftest.$ac_ext
10444cat >>conftest.$ac_ext <<_ACEOF
10445/* end confdefs.h. */
d9898ee8 10446
8d138742
CE
10447/* Override any GCC internal prototype to avoid an error.
10448 Use char because int might match the return type of a GCC
10449 builtin and then its argument prototype would still apply. */
10450#ifdef __cplusplus
10451extern "C"
10452#endif
10453char shl_load ();
10454int
10455main ()
10456{
10457return shl_load ();
10458 ;
10459 return 0;
10460}
10461_ACEOF
10462rm -f conftest.$ac_objext conftest$ac_exeext
10463if { (ac_try="$ac_link"
10464case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10467esac
10468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10469$as_echo "$ac_try_echo") >&5
10470 (eval "$ac_link") 2>conftest.er1
10471 ac_status=$?
10472 grep -v '^ *+' conftest.er1 >conftest.err
10473 rm -f conftest.er1
10474 cat conftest.err >&5
10475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } && {
10477 test -z "$ac_c_werror_flag" ||
10478 test ! -s conftest.err
10479 } && test -s conftest$ac_exeext && {
10480 test "$cross_compiling" = yes ||
10481 $as_test_x conftest$ac_exeext
10482 }; then
10483 ac_cv_lib_dld_shl_load=yes
10484else
10485 $as_echo "$as_me: failed program was:" >&5
10486sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10487
8d138742
CE
10488 ac_cv_lib_dld_shl_load=no
10489fi
d9898ee8 10490
8d138742
CE
10491rm -rf conftest.dSYM
10492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10493 conftest$ac_exeext conftest.$ac_ext
10494LIBS=$ac_check_lib_save_LIBS
10495fi
10496{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10497$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10498if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10499 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10500else
10501 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10502$as_echo_n "checking for dlopen... " >&6; }
10503if test "${ac_cv_func_dlopen+set}" = set; then
10504 $as_echo_n "(cached) " >&6
10505else
10506 cat >conftest.$ac_ext <<_ACEOF
10507/* confdefs.h. */
10508_ACEOF
10509cat confdefs.h >>conftest.$ac_ext
10510cat >>conftest.$ac_ext <<_ACEOF
10511/* end confdefs.h. */
10512/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10514#define dlopen innocuous_dlopen
d9898ee8 10515
8d138742
CE
10516/* System header to define __stub macros and hopefully few prototypes,
10517 which can conflict with char dlopen (); below.
10518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10519 <limits.h> exists even on freestanding compilers. */
d9898ee8 10520
8d138742
CE
10521#ifdef __STDC__
10522# include <limits.h>
10523#else
10524# include <assert.h>
10525#endif
d9898ee8 10526
8d138742 10527#undef dlopen
d9898ee8 10528
8d138742
CE
10529/* Override any GCC internal prototype to avoid an error.
10530 Use char because int might match the return type of a GCC
10531 builtin and then its argument prototype would still apply. */
10532#ifdef __cplusplus
10533extern "C"
10534#endif
10535char dlopen ();
10536/* The GNU C library defines this for functions which it implements
10537 to always fail with ENOSYS. Some functions are actually named
10538 something starting with __ and the normal name is an alias. */
10539#if defined __stub_dlopen || defined __stub___dlopen
10540choke me
10541#endif
d9898ee8 10542
8d138742
CE
10543int
10544main ()
10545{
10546return dlopen ();
10547 ;
10548 return 0;
10549}
10550_ACEOF
10551rm -f conftest.$ac_objext conftest$ac_exeext
10552if { (ac_try="$ac_link"
10553case "(($ac_try" in
10554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555 *) ac_try_echo=$ac_try;;
10556esac
10557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10558$as_echo "$ac_try_echo") >&5
10559 (eval "$ac_link") 2>conftest.er1
10560 ac_status=$?
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
10564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } && {
10566 test -z "$ac_c_werror_flag" ||
10567 test ! -s conftest.err
10568 } && test -s conftest$ac_exeext && {
10569 test "$cross_compiling" = yes ||
10570 $as_test_x conftest$ac_exeext
10571 }; then
10572 ac_cv_func_dlopen=yes
10573else
10574 $as_echo "$as_me: failed program was:" >&5
10575sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10576
8d138742
CE
10577 ac_cv_func_dlopen=no
10578fi
d9898ee8 10579
8d138742
CE
10580rm -rf conftest.dSYM
10581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10582 conftest$ac_exeext conftest.$ac_ext
10583fi
10584{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10585$as_echo "$ac_cv_func_dlopen" >&6; }
10586if test "x$ac_cv_func_dlopen" = x""yes; then
10587 lt_cv_dlopen="dlopen"
10588else
10589 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10590$as_echo_n "checking for dlopen in -ldl... " >&6; }
10591if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10592 $as_echo_n "(cached) " >&6
10593else
10594 ac_check_lib_save_LIBS=$LIBS
10595LIBS="-ldl $LIBS"
10596cat >conftest.$ac_ext <<_ACEOF
10597/* confdefs.h. */
10598_ACEOF
10599cat confdefs.h >>conftest.$ac_ext
10600cat >>conftest.$ac_ext <<_ACEOF
10601/* end confdefs.h. */
d9898ee8 10602
8d138742
CE
10603/* Override any GCC internal prototype to avoid an error.
10604 Use char because int might match the return type of a GCC
10605 builtin and then its argument prototype would still apply. */
10606#ifdef __cplusplus
10607extern "C"
10608#endif
10609char dlopen ();
10610int
10611main ()
10612{
10613return dlopen ();
10614 ;
10615 return 0;
10616}
10617_ACEOF
10618rm -f conftest.$ac_objext conftest$ac_exeext
10619if { (ac_try="$ac_link"
10620case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10623esac
10624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10625$as_echo "$ac_try_echo") >&5
10626 (eval "$ac_link") 2>conftest.er1
10627 ac_status=$?
10628 grep -v '^ *+' conftest.er1 >conftest.err
10629 rm -f conftest.er1
10630 cat conftest.err >&5
10631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } && {
10633 test -z "$ac_c_werror_flag" ||
10634 test ! -s conftest.err
10635 } && test -s conftest$ac_exeext && {
10636 test "$cross_compiling" = yes ||
10637 $as_test_x conftest$ac_exeext
10638 }; then
10639 ac_cv_lib_dl_dlopen=yes
10640else
10641 $as_echo "$as_me: failed program was:" >&5
10642sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10643
8d138742
CE
10644 ac_cv_lib_dl_dlopen=no
10645fi
d9898ee8 10646
8d138742
CE
10647rm -rf conftest.dSYM
10648rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10649 conftest$ac_exeext conftest.$ac_ext
10650LIBS=$ac_check_lib_save_LIBS
10651fi
10652{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10653$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10654if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10655 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10656else
10657 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10658$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10659if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10660 $as_echo_n "(cached) " >&6
10661else
10662 ac_check_lib_save_LIBS=$LIBS
10663LIBS="-lsvld $LIBS"
10664cat >conftest.$ac_ext <<_ACEOF
10665/* confdefs.h. */
10666_ACEOF
10667cat confdefs.h >>conftest.$ac_ext
10668cat >>conftest.$ac_ext <<_ACEOF
10669/* end confdefs.h. */
d9898ee8 10670
8d138742
CE
10671/* Override any GCC internal prototype to avoid an error.
10672 Use char because int might match the return type of a GCC
10673 builtin and then its argument prototype would still apply. */
10674#ifdef __cplusplus
10675extern "C"
10676#endif
10677char dlopen ();
10678int
10679main ()
10680{
10681return dlopen ();
10682 ;
10683 return 0;
10684}
10685_ACEOF
10686rm -f conftest.$ac_objext conftest$ac_exeext
10687if { (ac_try="$ac_link"
10688case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691esac
10692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10693$as_echo "$ac_try_echo") >&5
10694 (eval "$ac_link") 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && {
10701 test -z "$ac_c_werror_flag" ||
10702 test ! -s conftest.err
10703 } && test -s conftest$ac_exeext && {
10704 test "$cross_compiling" = yes ||
10705 $as_test_x conftest$ac_exeext
10706 }; then
10707 ac_cv_lib_svld_dlopen=yes
d9898ee8 10708else
8d138742
CE
10709 $as_echo "$as_me: failed program was:" >&5
10710sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10711
8d138742 10712 ac_cv_lib_svld_dlopen=no
d9898ee8 10713fi
d9898ee8 10714
8d138742
CE
10715rm -rf conftest.dSYM
10716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10717 conftest$ac_exeext conftest.$ac_ext
10718LIBS=$ac_check_lib_save_LIBS
d9898ee8 10719fi
8d138742
CE
10720{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10721$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10722if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10723 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
d9898ee8 10724else
8d138742
CE
10725 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10726$as_echo_n "checking for dld_link in -ldld... " >&6; }
10727if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10728 $as_echo_n "(cached) " >&6
d9898ee8 10729else
8d138742
CE
10730 ac_check_lib_save_LIBS=$LIBS
10731LIBS="-ldld $LIBS"
10732cat >conftest.$ac_ext <<_ACEOF
10733/* confdefs.h. */
10734_ACEOF
10735cat confdefs.h >>conftest.$ac_ext
10736cat >>conftest.$ac_ext <<_ACEOF
10737/* end confdefs.h. */
d9898ee8 10738
8d138742
CE
10739/* Override any GCC internal prototype to avoid an error.
10740 Use char because int might match the return type of a GCC
10741 builtin and then its argument prototype would still apply. */
10742#ifdef __cplusplus
10743extern "C"
10744#endif
10745char dld_link ();
10746int
10747main ()
10748{
10749return dld_link ();
10750 ;
10751 return 0;
10752}
10753_ACEOF
10754rm -f conftest.$ac_objext conftest$ac_exeext
10755if { (ac_try="$ac_link"
10756case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10759esac
10760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10761$as_echo "$ac_try_echo") >&5
10762 (eval "$ac_link") 2>conftest.er1
10763 ac_status=$?
10764 grep -v '^ *+' conftest.er1 >conftest.err
10765 rm -f conftest.er1
10766 cat conftest.err >&5
10767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest$ac_exeext && {
10772 test "$cross_compiling" = yes ||
10773 $as_test_x conftest$ac_exeext
10774 }; then
10775 ac_cv_lib_dld_dld_link=yes
10776else
10777 $as_echo "$as_me: failed program was:" >&5
10778sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10779
8d138742
CE
10780 ac_cv_lib_dld_dld_link=no
10781fi
d9898ee8 10782
8d138742
CE
10783rm -rf conftest.dSYM
10784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10786LIBS=$ac_check_lib_save_LIBS
10787fi
10788{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10789$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10790if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10791 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10792fi
d9898ee8 10793
d9898ee8 10794
8d138742 10795fi
d9898ee8 10796
d9898ee8 10797
8d138742 10798fi
d9898ee8 10799
d9898ee8 10800
8d138742 10801fi
d9898ee8 10802
d9898ee8 10803
8d138742 10804fi
ac40fd9e 10805
d9898ee8 10806
8d138742 10807fi
d9898ee8 10808
8d138742 10809 ;;
d9898ee8 10810 esac
d9898ee8 10811
8d138742
CE
10812 if test "x$lt_cv_dlopen" != xno; then
10813 enable_dlopen=yes
d9898ee8 10814 else
8d138742 10815 enable_dlopen=no
d9898ee8 10816 fi
d9898ee8 10817
8d138742
CE
10818 case $lt_cv_dlopen in
10819 dlopen)
10820 save_CPPFLAGS="$CPPFLAGS"
10821 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d9898ee8 10822
8d138742
CE
10823 save_LDFLAGS="$LDFLAGS"
10824 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9898ee8 10825
8d138742
CE
10826 save_LIBS="$LIBS"
10827 LIBS="$lt_cv_dlopen_libs $LIBS"
d9898ee8 10828
8d138742
CE
10829 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10830$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10831if test "${lt_cv_dlopen_self+set}" = set; then
10832 $as_echo_n "(cached) " >&6
d9898ee8 10833else
8d138742
CE
10834 if test "$cross_compiling" = yes; then :
10835 lt_cv_dlopen_self=cross
10836else
10837 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10838 lt_status=$lt_dlunknown
10839 cat > conftest.$ac_ext <<_LT_EOF
10840#line 10840 "configure"
10841#include "confdefs.h"
d9898ee8 10842
8d138742
CE
10843#if HAVE_DLFCN_H
10844#include <dlfcn.h>
10845#endif
10846
10847#include <stdio.h>
d9898ee8 10848
8d138742
CE
10849#ifdef RTLD_GLOBAL
10850# define LT_DLGLOBAL RTLD_GLOBAL
10851#else
10852# ifdef DL_GLOBAL
10853# define LT_DLGLOBAL DL_GLOBAL
10854# else
10855# define LT_DLGLOBAL 0
10856# endif
10857#endif
d9898ee8 10858
8d138742
CE
10859/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10860 find out it does not work in some platform. */
10861#ifndef LT_DLLAZY_OR_NOW
10862# ifdef RTLD_LAZY
10863# define LT_DLLAZY_OR_NOW RTLD_LAZY
10864# else
10865# ifdef DL_LAZY
10866# define LT_DLLAZY_OR_NOW DL_LAZY
10867# else
10868# ifdef RTLD_NOW
10869# define LT_DLLAZY_OR_NOW RTLD_NOW
10870# else
10871# ifdef DL_NOW
10872# define LT_DLLAZY_OR_NOW DL_NOW
10873# else
10874# define LT_DLLAZY_OR_NOW 0
10875# endif
10876# endif
10877# endif
10878# endif
10879#endif
d9898ee8 10880
8d138742
CE
10881void fnord() { int i=42;}
10882int main ()
10883{
10884 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10885 int status = $lt_dlunknown;
d9898ee8 10886
8d138742
CE
10887 if (self)
10888 {
10889 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10890 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10891 /* dlclose (self); */
10892 }
10893 else
10894 puts (dlerror ());
d9898ee8 10895
8d138742
CE
10896 return status;
10897}
10898_LT_EOF
10899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10900 (eval $ac_link) 2>&5
10901 ac_status=$?
10902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10904 (./conftest; exit; ) >&5 2>/dev/null
10905 lt_status=$?
10906 case x$lt_status in
10907 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10908 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10909 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10910 esac
10911 else :
10912 # compilation failed
10913 lt_cv_dlopen_self=no
10914 fi
10915fi
10916rm -fr conftest*
d9898ee8 10917
d9898ee8 10918
8d138742
CE
10919fi
10920{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10921$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 10922
8d138742
CE
10923 if test "x$lt_cv_dlopen_self" = xyes; then
10924 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10925 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10926$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10927if test "${lt_cv_dlopen_self_static+set}" = set; then
10928 $as_echo_n "(cached) " >&6
10929else
10930 if test "$cross_compiling" = yes; then :
10931 lt_cv_dlopen_self_static=cross
10932else
10933 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10934 lt_status=$lt_dlunknown
10935 cat > conftest.$ac_ext <<_LT_EOF
10936#line 10936 "configure"
10937#include "confdefs.h"
d9898ee8 10938
8d138742
CE
10939#if HAVE_DLFCN_H
10940#include <dlfcn.h>
10941#endif
d9898ee8 10942
8d138742 10943#include <stdio.h>
d9898ee8 10944
8d138742
CE
10945#ifdef RTLD_GLOBAL
10946# define LT_DLGLOBAL RTLD_GLOBAL
10947#else
10948# ifdef DL_GLOBAL
10949# define LT_DLGLOBAL DL_GLOBAL
10950# else
10951# define LT_DLGLOBAL 0
10952# endif
10953#endif
d9898ee8 10954
8d138742
CE
10955/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10956 find out it does not work in some platform. */
10957#ifndef LT_DLLAZY_OR_NOW
10958# ifdef RTLD_LAZY
10959# define LT_DLLAZY_OR_NOW RTLD_LAZY
10960# else
10961# ifdef DL_LAZY
10962# define LT_DLLAZY_OR_NOW DL_LAZY
10963# else
10964# ifdef RTLD_NOW
10965# define LT_DLLAZY_OR_NOW RTLD_NOW
10966# else
10967# ifdef DL_NOW
10968# define LT_DLLAZY_OR_NOW DL_NOW
10969# else
10970# define LT_DLLAZY_OR_NOW 0
10971# endif
10972# endif
10973# endif
10974# endif
10975#endif
d9898ee8 10976
8d138742
CE
10977void fnord() { int i=42;}
10978int main ()
10979{
10980 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10981 int status = $lt_dlunknown;
d9898ee8 10982
8d138742
CE
10983 if (self)
10984 {
10985 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10986 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10987 /* dlclose (self); */
10988 }
10989 else
10990 puts (dlerror ());
d9898ee8 10991
8d138742
CE
10992 return status;
10993}
10994_LT_EOF
10995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10996 (eval $ac_link) 2>&5
10997 ac_status=$?
10998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11000 (./conftest; exit; ) >&5 2>/dev/null
11001 lt_status=$?
11002 case x$lt_status in
11003 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11004 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11005 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11006 esac
11007 else :
11008 # compilation failed
11009 lt_cv_dlopen_self_static=no
11010 fi
11011fi
11012rm -fr conftest*
d9898ee8 11013
d9898ee8 11014
8d138742
CE
11015fi
11016{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11017$as_echo "$lt_cv_dlopen_self_static" >&6; }
11018 fi
d9898ee8 11019
8d138742
CE
11020 CPPFLAGS="$save_CPPFLAGS"
11021 LDFLAGS="$save_LDFLAGS"
11022 LIBS="$save_LIBS"
11023 ;;
11024 esac
d9898ee8 11025
8d138742
CE
11026 case $lt_cv_dlopen_self in
11027 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11028 *) enable_dlopen_self=unknown ;;
11029 esac
d9898ee8 11030
8d138742
CE
11031 case $lt_cv_dlopen_self_static in
11032 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11033 *) enable_dlopen_self_static=unknown ;;
11034 esac
11035fi
d9898ee8 11036
d9898ee8 11037
d9898ee8 11038
d9898ee8 11039
d9898ee8 11040
d9898ee8 11041
d9898ee8 11042
d9898ee8 11043
d9898ee8 11044
d9898ee8 11045
d9898ee8 11046
d9898ee8 11047
d9898ee8 11048
d9898ee8 11049
d9898ee8 11050
d9898ee8 11051
d9898ee8 11052
8d138742
CE
11053striplib=
11054old_striplib=
11055{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11056$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11057if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11058 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11059 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11060 { $as_echo "$as_me:$LINENO: result: yes" >&5
11061$as_echo "yes" >&6; }
11062else
11063# FIXME - insert some real tests, host_os isn't really good enough
11064 case $host_os in
11065 darwin*)
11066 if test -n "$STRIP" ; then
11067 striplib="$STRIP -x"
11068 old_striplib="$STRIP -S"
11069 { $as_echo "$as_me:$LINENO: result: yes" >&5
11070$as_echo "yes" >&6; }
11071 else
11072 { $as_echo "$as_me:$LINENO: result: no" >&5
11073$as_echo "no" >&6; }
11074 fi
11075 ;;
11076 *)
11077 { $as_echo "$as_me:$LINENO: result: no" >&5
11078$as_echo "no" >&6; }
11079 ;;
11080 esac
11081fi
d9898ee8 11082
d9898ee8 11083
d9898ee8 11084
d9898ee8 11085
d9898ee8 11086
d9898ee8 11087
d9898ee8 11088
d9898ee8 11089
d9898ee8 11090
d9898ee8 11091
d9898ee8 11092
d9898ee8 11093
8d138742
CE
11094 # Report which library types will actually be built
11095 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11096$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11097 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11098$as_echo "$can_build_shared" >&6; }
d9898ee8 11099
8d138742
CE
11100 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11101$as_echo_n "checking whether to build shared libraries... " >&6; }
11102 test "$can_build_shared" = "no" && enable_shared=no
d9898ee8 11103
8d138742
CE
11104 # On AIX, shared libraries and static libraries use the same namespace, and
11105 # are all built from PIC.
11106 case $host_os in
11107 aix3*)
11108 test "$enable_shared" = yes && enable_static=no
11109 if test -n "$RANLIB"; then
11110 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11111 postinstall_cmds='$RANLIB $lib'
11112 fi
11113 ;;
d9898ee8 11114
8d138742
CE
11115 aix[4-9]*)
11116 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11117 test "$enable_shared" = yes && enable_static=no
11118 fi
11119 ;;
11120 esac
11121 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11122$as_echo "$enable_shared" >&6; }
d9898ee8 11123
8d138742
CE
11124 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11125$as_echo_n "checking whether to build static libraries... " >&6; }
11126 # Make sure either enable_shared or enable_static is yes.
11127 test "$enable_shared" = yes || enable_static=yes
11128 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11129$as_echo "$enable_static" >&6; }
d9898ee8 11130
d9898ee8 11131
d9898ee8 11132
d9898ee8 11133
8d138742
CE
11134fi
11135ac_ext=c
11136ac_cpp='$CPP $CPPFLAGS'
11137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11139ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 11140
8d138742 11141CC="$lt_save_CC"
d9898ee8 11142
d9898ee8 11143
d9898ee8 11144
d9898ee8 11145
d9898ee8 11146
d9898ee8 11147
d9898ee8 11148
d9898ee8 11149
d9898ee8 11150
d9898ee8 11151
d9898ee8 11152
d9898ee8 11153
d9898ee8 11154
8d138742 11155 ac_config_commands="$ac_config_commands libtool"
d9898ee8 11156
d9898ee8 11157
d9898ee8 11158
d9898ee8 11159
8d138742 11160# Only expand once:
d9898ee8 11161
d9898ee8 11162
d9898ee8 11163
8d138742
CE
11164if test "$GCC" = yes
11165then
11166 CFLAGS="-Wall $CFLAGS"
11167fi
11168CFLAGS="$CFLAGS -I$srcdir/.. -I.."
d9898ee8 11169
d9898ee8 11170
d9898ee8 11171
d9898ee8 11172
8d138742
CE
11173for ac_header in sys/types.h
11174do
11175as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11177 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11178$as_echo_n "checking for $ac_header... " >&6; }
11179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11180 $as_echo_n "(cached) " >&6
11181fi
11182ac_res=`eval 'as_val=${'$as_ac_Header'}
11183 $as_echo "$as_val"'`
11184 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11185$as_echo "$ac_res" >&6; }
11186else
11187 # Is the header compilable?
11188{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11189$as_echo_n "checking $ac_header usability... " >&6; }
11190cat >conftest.$ac_ext <<_ACEOF
11191/* confdefs.h. */
11192_ACEOF
11193cat confdefs.h >>conftest.$ac_ext
11194cat >>conftest.$ac_ext <<_ACEOF
11195/* end confdefs.h. */
11196$ac_includes_default
11197#include <$ac_header>
11198_ACEOF
11199rm -f conftest.$ac_objext
11200if { (ac_try="$ac_compile"
11201case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11204esac
11205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11206$as_echo "$ac_try_echo") >&5
11207 (eval "$ac_compile") 2>conftest.er1
11208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
11212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } && {
11214 test -z "$ac_c_werror_flag" ||
11215 test ! -s conftest.err
11216 } && test -s conftest.$ac_objext; then
11217 ac_header_compiler=yes
11218else
11219 $as_echo "$as_me: failed program was:" >&5
11220sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11221
8d138742
CE
11222 ac_header_compiler=no
11223fi
d9898ee8 11224
8d138742
CE
11225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11226{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11227$as_echo "$ac_header_compiler" >&6; }
d9898ee8 11228
8d138742
CE
11229# Is the header present?
11230{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11231$as_echo_n "checking $ac_header presence... " >&6; }
11232cat >conftest.$ac_ext <<_ACEOF
11233/* confdefs.h. */
11234_ACEOF
11235cat confdefs.h >>conftest.$ac_ext
11236cat >>conftest.$ac_ext <<_ACEOF
11237/* end confdefs.h. */
11238#include <$ac_header>
11239_ACEOF
11240if { (ac_try="$ac_cpp conftest.$ac_ext"
11241case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244esac
11245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11246$as_echo "$ac_try_echo") >&5
11247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11248 ac_status=$?
11249 grep -v '^ *+' conftest.er1 >conftest.err
11250 rm -f conftest.er1
11251 cat conftest.err >&5
11252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } >/dev/null && {
11254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11255 test ! -s conftest.err
11256 }; then
11257 ac_header_preproc=yes
11258else
11259 $as_echo "$as_me: failed program was:" >&5
11260sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11261
8d138742
CE
11262 ac_header_preproc=no
11263fi
d9898ee8 11264
8d138742
CE
11265rm -f conftest.err conftest.$ac_ext
11266{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11267$as_echo "$ac_header_preproc" >&6; }
d9898ee8 11268
8d138742
CE
11269# So? What about this header?
11270case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11271 yes:no: )
11272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11273$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11275$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11276 ac_header_preproc=yes
11277 ;;
11278 no:yes:* )
11279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11280$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11282$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11284$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11286$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11288$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11290$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11291 ( cat <<\_ASBOX
11292## -------------------------------------------------- ##
11293## Report this to courier-users@lists.sourceforge.net ##
11294## -------------------------------------------------- ##
11295_ASBOX
11296 ) | sed "s/^/$as_me: WARNING: /" >&2
11297 ;;
11298esac
11299{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11300$as_echo_n "checking for $ac_header... " >&6; }
11301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11302 $as_echo_n "(cached) " >&6
11303else
11304 eval "$as_ac_Header=\$ac_header_preproc"
11305fi
11306ac_res=`eval 'as_val=${'$as_ac_Header'}
11307 $as_echo "$as_val"'`
11308 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11309$as_echo "$ac_res" >&6; }
d9898ee8 11310
8d138742
CE
11311fi
11312as_val=`eval 'as_val=${'$as_ac_Header'}
11313 $as_echo "$as_val"'`
11314 if test "x$as_val" = x""yes; then
11315 cat >>confdefs.h <<_ACEOF
11316#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11317_ACEOF
d9898ee8 11318
8d138742 11319fi
d9898ee8 11320
8d138742 11321done
d9898ee8 11322
d9898ee8 11323
d9898ee8 11324
8d138742
CE
11325# Check whether --with-int32 was given.
11326if test "${with_int32+set}" = set; then
11327 withval=$with_int32; int32="$withval"
11328else
d9898ee8 11329
d9898ee8 11330
8d138742
CE
11331 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11332$as_echo_n "checking for uint32_t... " >&6; }
11333
11334 cat >conftest.$ac_ext <<_ACEOF
11335/* confdefs.h. */
11336_ACEOF
11337cat confdefs.h >>conftest.$ac_ext
11338cat >>conftest.$ac_ext <<_ACEOF
11339/* end confdefs.h. */
d9898ee8 11340
8d138742
CE
11341#if HAVE_SYS_TYPES_H
11342#include <sys/types.h>
11343#endif
d9898ee8 11344
8d138742
CE
11345int
11346main ()
11347{
d9898ee8 11348
8d138742 11349 uint32_t i=0;
d9898ee8 11350
8d138742
CE
11351 ;
11352 return 0;
11353}
11354_ACEOF
11355rm -f conftest.$ac_objext
11356if { (ac_try="$ac_compile"
11357case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11360esac
11361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11362$as_echo "$ac_try_echo") >&5
11363 (eval "$ac_compile") 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && {
11370 test -z "$ac_c_werror_flag" ||
11371 test ! -s conftest.err
11372 } && test -s conftest.$ac_objext; then
11373 { $as_echo "$as_me:$LINENO: result: yes" >&5
11374$as_echo "yes" >&6; } ; int32="uint32_t"
d9898ee8 11375else
8d138742
CE
11376 $as_echo "$as_me: failed program was:" >&5
11377sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11378
11379
d9898ee8 11380
8d138742
CE
11381 { $as_echo "$as_me:$LINENO: result: no" >&5
11382$as_echo "no" >&6; }
11383 { $as_echo "$as_me:$LINENO: checking for u_int_32_t" >&5
11384$as_echo_n "checking for u_int_32_t... " >&6; }
d9898ee8 11385
8d138742
CE
11386 cat >conftest.$ac_ext <<_ACEOF
11387/* confdefs.h. */
11388_ACEOF
11389cat confdefs.h >>conftest.$ac_ext
11390cat >>conftest.$ac_ext <<_ACEOF
11391/* end confdefs.h. */
d9898ee8 11392
8d138742
CE
11393#if HAVE_SYS_TYPES_H
11394#include <sys/types.h>
11395#endif
d9898ee8 11396
8d138742
CE
11397int
11398main ()
11399{
d9898ee8 11400
8d138742 11401 u_int32_t i=0;
d9898ee8 11402
8d138742
CE
11403 ;
11404 return 0;
11405}
11406_ACEOF
11407rm -f conftest.$ac_objext
11408if { (ac_try="$ac_compile"
11409case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11412esac
11413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11414$as_echo "$ac_try_echo") >&5
11415 (eval "$ac_compile") 2>conftest.er1
11416 ac_status=$?
11417 grep -v '^ *+' conftest.er1 >conftest.err
11418 rm -f conftest.er1
11419 cat conftest.err >&5
11420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } && {
11422 test -z "$ac_c_werror_flag" ||
11423 test ! -s conftest.err
11424 } && test -s conftest.$ac_objext; then
11425 { $as_echo "$as_me:$LINENO: result: yes" >&5
11426$as_echo "yes" >&6; }; int32="u_int32_t"
11427else
11428 $as_echo "$as_me: failed program was:" >&5
11429sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11430
d9898ee8 11431
d9898ee8 11432
8d138742
CE
11433 { $as_echo "$as_me:$LINENO: result: no" >&5
11434$as_echo "no" >&6; }
11435
11436 # The cast to long int works around a bug in the HP C Compiler
11437# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11438# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11439# This bug is HP SR number 8606223364.
11440{ $as_echo "$as_me:$LINENO: checking size of unsigned" >&5
11441$as_echo_n "checking size of unsigned... " >&6; }
11442if test "${ac_cv_sizeof_unsigned+set}" = set; then
11443 $as_echo_n "(cached) " >&6
11444else
11445 if test "$cross_compiling" = yes; then
11446 # Depending upon the size, compute the lo and hi bounds.
11447cat >conftest.$ac_ext <<_ACEOF
11448/* confdefs.h. */
11449_ACEOF
11450cat confdefs.h >>conftest.$ac_ext
11451cat >>conftest.$ac_ext <<_ACEOF
11452/* end confdefs.h. */
11453$ac_includes_default
11454int
11455main ()
11456{
11457static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) >= 0)];
11458test_array [0] = 0
11459
11460 ;
11461 return 0;
11462}
11463_ACEOF
11464rm -f conftest.$ac_objext
11465if { (ac_try="$ac_compile"
11466case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11469esac
11470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11471$as_echo "$ac_try_echo") >&5
11472 (eval "$ac_compile") 2>conftest.er1
11473 ac_status=$?
11474 grep -v '^ *+' conftest.er1 >conftest.err
11475 rm -f conftest.er1
11476 cat conftest.err >&5
11477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } && {
11479 test -z "$ac_c_werror_flag" ||
11480 test ! -s conftest.err
11481 } && test -s conftest.$ac_objext; then
11482 ac_lo=0 ac_mid=0
11483 while :; do
11484 cat >conftest.$ac_ext <<_ACEOF
11485/* confdefs.h. */
11486_ACEOF
11487cat confdefs.h >>conftest.$ac_ext
11488cat >>conftest.$ac_ext <<_ACEOF
11489/* end confdefs.h. */
11490$ac_includes_default
11491int
11492main ()
11493{
11494static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) <= $ac_mid)];
11495test_array [0] = 0
d9898ee8 11496
8d138742
CE
11497 ;
11498 return 0;
11499}
11500_ACEOF
11501rm -f conftest.$ac_objext
11502if { (ac_try="$ac_compile"
11503case "(($ac_try" in
11504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505 *) ac_try_echo=$ac_try;;
11506esac
11507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11508$as_echo "$ac_try_echo") >&5
11509 (eval "$ac_compile") 2>conftest.er1
11510 ac_status=$?
11511 grep -v '^ *+' conftest.er1 >conftest.err
11512 rm -f conftest.er1
11513 cat conftest.err >&5
11514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } && {
11516 test -z "$ac_c_werror_flag" ||
11517 test ! -s conftest.err
11518 } && test -s conftest.$ac_objext; then
11519 ac_hi=$ac_mid; break
11520else
11521 $as_echo "$as_me: failed program was:" >&5
11522sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11523
8d138742
CE
11524 ac_lo=`expr $ac_mid + 1`
11525 if test $ac_lo -le $ac_mid; then
11526 ac_lo= ac_hi=
11527 break
11528 fi
11529 ac_mid=`expr 2 '*' $ac_mid + 1`
11530fi
d9898ee8 11531
8d138742
CE
11532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11533 done
11534else
11535 $as_echo "$as_me: failed program was:" >&5
11536sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11537
8d138742
CE
11538 cat >conftest.$ac_ext <<_ACEOF
11539/* confdefs.h. */
11540_ACEOF
11541cat confdefs.h >>conftest.$ac_ext
11542cat >>conftest.$ac_ext <<_ACEOF
11543/* end confdefs.h. */
11544$ac_includes_default
11545int
11546main ()
11547{
11548static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) < 0)];
11549test_array [0] = 0
d9898ee8 11550
8d138742
CE
11551 ;
11552 return 0;
11553}
11554_ACEOF
11555rm -f conftest.$ac_objext
11556if { (ac_try="$ac_compile"
11557case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11560esac
11561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11562$as_echo "$ac_try_echo") >&5
11563 (eval "$ac_compile") 2>conftest.er1
11564 ac_status=$?
11565 grep -v '^ *+' conftest.er1 >conftest.err
11566 rm -f conftest.er1
11567 cat conftest.err >&5
11568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } && {
11570 test -z "$ac_c_werror_flag" ||
11571 test ! -s conftest.err
11572 } && test -s conftest.$ac_objext; then
11573 ac_hi=-1 ac_mid=-1
11574 while :; do
11575 cat >conftest.$ac_ext <<_ACEOF
11576/* confdefs.h. */
11577_ACEOF
11578cat confdefs.h >>conftest.$ac_ext
11579cat >>conftest.$ac_ext <<_ACEOF
11580/* end confdefs.h. */
11581$ac_includes_default
11582int
11583main ()
11584{
11585static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) >= $ac_mid)];
11586test_array [0] = 0
d9898ee8 11587
8d138742
CE
11588 ;
11589 return 0;
11590}
11591_ACEOF
11592rm -f conftest.$ac_objext
11593if { (ac_try="$ac_compile"
11594case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597esac
11598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11599$as_echo "$ac_try_echo") >&5
11600 (eval "$ac_compile") 2>conftest.er1
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
11605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } && {
11607 test -z "$ac_c_werror_flag" ||
11608 test ! -s conftest.err
11609 } && test -s conftest.$ac_objext; then
11610 ac_lo=$ac_mid; break
11611else
11612 $as_echo "$as_me: failed program was:" >&5
11613sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11614
8d138742
CE
11615 ac_hi=`expr '(' $ac_mid ')' - 1`
11616 if test $ac_mid -le $ac_hi; then
11617 ac_lo= ac_hi=
11618 break
11619 fi
11620 ac_mid=`expr 2 '*' $ac_mid`
11621fi
d9898ee8 11622
8d138742 11623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 11624 done
8d138742
CE
11625else
11626 $as_echo "$as_me: failed program was:" >&5
11627sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11628
8d138742
CE
11629 ac_lo= ac_hi=
11630fi
d9898ee8 11631
8d138742
CE
11632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633fi
d9898ee8 11634
8d138742
CE
11635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11636# Binary search between lo and hi bounds.
11637while test "x$ac_lo" != "x$ac_hi"; do
11638 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11639 cat >conftest.$ac_ext <<_ACEOF
11640/* confdefs.h. */
11641_ACEOF
11642cat confdefs.h >>conftest.$ac_ext
11643cat >>conftest.$ac_ext <<_ACEOF
11644/* end confdefs.h. */
11645$ac_includes_default
11646int
11647main ()
11648{
11649static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) <= $ac_mid)];
11650test_array [0] = 0
d9898ee8 11651
8d138742
CE
11652 ;
11653 return 0;
11654}
11655_ACEOF
11656rm -f conftest.$ac_objext
11657if { (ac_try="$ac_compile"
11658case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11661esac
11662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11663$as_echo "$ac_try_echo") >&5
11664 (eval "$ac_compile") 2>conftest.er1
11665 ac_status=$?
11666 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1
11668 cat conftest.err >&5
11669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } && {
11671 test -z "$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 } && test -s conftest.$ac_objext; then
11674 ac_hi=$ac_mid
11675else
11676 $as_echo "$as_me: failed program was:" >&5
11677sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11678
8d138742
CE
11679 ac_lo=`expr '(' $ac_mid ')' + 1`
11680fi
d9898ee8 11681
8d138742
CE
11682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683done
11684case $ac_lo in
11685?*) ac_cv_sizeof_unsigned=$ac_lo;;
11686'') if test "$ac_cv_type_unsigned" = yes; then
11687 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11689{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
11690See \`config.log' for more details." >&5
11691$as_echo "$as_me: error: cannot compute sizeof (unsigned)
11692See \`config.log' for more details." >&2;}
11693 { (exit 77); exit 77; }; }; }
11694 else
11695 ac_cv_sizeof_unsigned=0
11696 fi ;;
11697esac
11698else
11699 cat >conftest.$ac_ext <<_ACEOF
11700/* confdefs.h. */
11701_ACEOF
11702cat confdefs.h >>conftest.$ac_ext
11703cat >>conftest.$ac_ext <<_ACEOF
11704/* end confdefs.h. */
11705$ac_includes_default
11706static long int longval () { return (long int) (sizeof (unsigned)); }
11707static unsigned long int ulongval () { return (long int) (sizeof (unsigned)); }
11708#include <stdio.h>
11709#include <stdlib.h>
11710int
11711main ()
11712{
d9898ee8 11713
8d138742
CE
11714 FILE *f = fopen ("conftest.val", "w");
11715 if (! f)
11716 return 1;
11717 if (((long int) (sizeof (unsigned))) < 0)
11718 {
11719 long int i = longval ();
11720 if (i != ((long int) (sizeof (unsigned))))
11721 return 1;
11722 fprintf (f, "%ld", i);
11723 }
11724 else
11725 {
11726 unsigned long int i = ulongval ();
11727 if (i != ((long int) (sizeof (unsigned))))
11728 return 1;
11729 fprintf (f, "%lu", i);
11730 }
11731 /* Do not output a trailing newline, as this causes \r\n confusion
11732 on some platforms. */
11733 return ferror (f) || fclose (f) != 0;
d9898ee8 11734
8d138742
CE
11735 ;
11736 return 0;
11737}
11738_ACEOF
11739rm -f conftest$ac_exeext
11740if { (ac_try="$ac_link"
11741case "(($ac_try" in
11742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743 *) ac_try_echo=$ac_try;;
11744esac
11745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11746$as_echo "$ac_try_echo") >&5
11747 (eval "$ac_link") 2>&5
11748 ac_status=$?
11749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11751 { (case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11754esac
11755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11756$as_echo "$ac_try_echo") >&5
11757 (eval "$ac_try") 2>&5
11758 ac_status=$?
11759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11761 ac_cv_sizeof_unsigned=`cat conftest.val`
11762else
11763 $as_echo "$as_me: program exited with status $ac_status" >&5
11764$as_echo "$as_me: failed program was:" >&5
11765sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11766
8d138742
CE
11767( exit $ac_status )
11768if test "$ac_cv_type_unsigned" = yes; then
11769 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11771{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
11772See \`config.log' for more details." >&5
11773$as_echo "$as_me: error: cannot compute sizeof (unsigned)
11774See \`config.log' for more details." >&2;}
11775 { (exit 77); exit 77; }; }; }
11776 else
11777 ac_cv_sizeof_unsigned=0
11778 fi
11779fi
11780rm -rf conftest.dSYM
11781rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11782fi
11783rm -f conftest.val
11784fi
11785{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
11786$as_echo "$ac_cv_sizeof_unsigned" >&6; }
d9898ee8 11787
d9898ee8 11788
d9898ee8 11789
8d138742
CE
11790cat >>confdefs.h <<_ACEOF
11791#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
11792_ACEOF
d9898ee8 11793
d9898ee8 11794
8d138742
CE
11795 if test "$ac_cv_sizeof_unsigned" != 4
11796 then
11797 # The cast to long int works around a bug in the HP C Compiler
11798# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11799# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11800# This bug is HP SR number 8606223364.
11801{ $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
11802$as_echo_n "checking size of unsigned long... " >&6; }
11803if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
11804 $as_echo_n "(cached) " >&6
11805else
11806 if test "$cross_compiling" = yes; then
11807 # Depending upon the size, compute the lo and hi bounds.
11808cat >conftest.$ac_ext <<_ACEOF
11809/* confdefs.h. */
11810_ACEOF
11811cat confdefs.h >>conftest.$ac_ext
11812cat >>conftest.$ac_ext <<_ACEOF
11813/* end confdefs.h. */
11814$ac_includes_default
11815int
11816main ()
11817{
11818static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
11819test_array [0] = 0
d9898ee8 11820
8d138742
CE
11821 ;
11822 return 0;
11823}
11824_ACEOF
11825rm -f conftest.$ac_objext
11826if { (ac_try="$ac_compile"
11827case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11830esac
11831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11832$as_echo "$ac_try_echo") >&5
11833 (eval "$ac_compile") 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } && {
11840 test -z "$ac_c_werror_flag" ||
11841 test ! -s conftest.err
11842 } && test -s conftest.$ac_objext; then
11843 ac_lo=0 ac_mid=0
11844 while :; do
11845 cat >conftest.$ac_ext <<_ACEOF
11846/* confdefs.h. */
11847_ACEOF
11848cat confdefs.h >>conftest.$ac_ext
11849cat >>conftest.$ac_ext <<_ACEOF
11850/* end confdefs.h. */
11851$ac_includes_default
11852int
11853main ()
11854{
11855static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
11856test_array [0] = 0
d9898ee8 11857
8d138742
CE
11858 ;
11859 return 0;
11860}
11861_ACEOF
11862rm -f conftest.$ac_objext
11863if { (ac_try="$ac_compile"
11864case "(($ac_try" in
11865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11867esac
11868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11869$as_echo "$ac_try_echo") >&5
11870 (eval "$ac_compile") 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } && {
11877 test -z "$ac_c_werror_flag" ||
11878 test ! -s conftest.err
11879 } && test -s conftest.$ac_objext; then
11880 ac_hi=$ac_mid; break
11881else
11882 $as_echo "$as_me: failed program was:" >&5
11883sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11884
8d138742
CE
11885 ac_lo=`expr $ac_mid + 1`
11886 if test $ac_lo -le $ac_mid; then
11887 ac_lo= ac_hi=
11888 break
11889 fi
11890 ac_mid=`expr 2 '*' $ac_mid + 1`
11891fi
d9898ee8 11892
8d138742
CE
11893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11894 done
11895else
11896 $as_echo "$as_me: failed program was:" >&5
11897sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11898
8d138742
CE
11899 cat >conftest.$ac_ext <<_ACEOF
11900/* confdefs.h. */
11901_ACEOF
11902cat confdefs.h >>conftest.$ac_ext
11903cat >>conftest.$ac_ext <<_ACEOF
11904/* end confdefs.h. */
11905$ac_includes_default
11906int
11907main ()
11908{
11909static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
11910test_array [0] = 0
d9898ee8 11911
8d138742
CE
11912 ;
11913 return 0;
11914}
11915_ACEOF
11916rm -f conftest.$ac_objext
11917if { (ac_try="$ac_compile"
11918case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921esac
11922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923$as_echo "$ac_try_echo") >&5
11924 (eval "$ac_compile") 2>conftest.er1
11925 ac_status=$?
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
11928 cat conftest.err >&5
11929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest.$ac_objext; then
11934 ac_hi=-1 ac_mid=-1
11935 while :; do
11936 cat >conftest.$ac_ext <<_ACEOF
11937/* confdefs.h. */
11938_ACEOF
11939cat confdefs.h >>conftest.$ac_ext
11940cat >>conftest.$ac_ext <<_ACEOF
11941/* end confdefs.h. */
11942$ac_includes_default
11943int
11944main ()
11945{
11946static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
11947test_array [0] = 0
d9898ee8 11948
8d138742
CE
11949 ;
11950 return 0;
11951}
11952_ACEOF
11953rm -f conftest.$ac_objext
11954if { (ac_try="$ac_compile"
11955case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11958esac
11959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11960$as_echo "$ac_try_echo") >&5
11961 (eval "$ac_compile") 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } && {
11968 test -z "$ac_c_werror_flag" ||
11969 test ! -s conftest.err
11970 } && test -s conftest.$ac_objext; then
11971 ac_lo=$ac_mid; break
11972else
11973 $as_echo "$as_me: failed program was:" >&5
11974sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11975
8d138742
CE
11976 ac_hi=`expr '(' $ac_mid ')' - 1`
11977 if test $ac_mid -le $ac_hi; then
11978 ac_lo= ac_hi=
11979 break
11980 fi
11981 ac_mid=`expr 2 '*' $ac_mid`
11982fi
d9898ee8 11983
8d138742
CE
11984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11985 done
11986else
11987 $as_echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11989
8d138742
CE
11990 ac_lo= ac_hi=
11991fi
d9898ee8 11992
8d138742
CE
11993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11994fi
d9898ee8 11995
8d138742
CE
11996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997# Binary search between lo and hi bounds.
11998while test "x$ac_lo" != "x$ac_hi"; do
11999 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12000 cat >conftest.$ac_ext <<_ACEOF
12001/* confdefs.h. */
12002_ACEOF
12003cat confdefs.h >>conftest.$ac_ext
12004cat >>conftest.$ac_ext <<_ACEOF
12005/* end confdefs.h. */
12006$ac_includes_default
12007int
12008main ()
12009{
12010static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
12011test_array [0] = 0
d9898ee8 12012
8d138742
CE
12013 ;
12014 return 0;
12015}
12016_ACEOF
12017rm -f conftest.$ac_objext
12018if { (ac_try="$ac_compile"
12019case "(($ac_try" in
12020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021 *) ac_try_echo=$ac_try;;
12022esac
12023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12024$as_echo "$ac_try_echo") >&5
12025 (eval "$ac_compile") 2>conftest.er1
12026 ac_status=$?
12027 grep -v '^ *+' conftest.er1 >conftest.err
12028 rm -f conftest.er1
12029 cat conftest.err >&5
12030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } && {
12032 test -z "$ac_c_werror_flag" ||
12033 test ! -s conftest.err
12034 } && test -s conftest.$ac_objext; then
12035 ac_hi=$ac_mid
12036else
12037 $as_echo "$as_me: failed program was:" >&5
12038sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12039
8d138742
CE
12040 ac_lo=`expr '(' $ac_mid ')' + 1`
12041fi
d9898ee8 12042
8d138742
CE
12043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044done
12045case $ac_lo in
12046?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12047'') if test "$ac_cv_type_unsigned_long" = yes; then
12048 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12050{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
12051See \`config.log' for more details." >&5
12052$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
12053See \`config.log' for more details." >&2;}
12054 { (exit 77); exit 77; }; }; }
12055 else
12056 ac_cv_sizeof_unsigned_long=0
12057 fi ;;
12058esac
12059else
12060 cat >conftest.$ac_ext <<_ACEOF
12061/* confdefs.h. */
12062_ACEOF
12063cat confdefs.h >>conftest.$ac_ext
12064cat >>conftest.$ac_ext <<_ACEOF
12065/* end confdefs.h. */
12066$ac_includes_default
12067static long int longval () { return (long int) (sizeof (unsigned long)); }
12068static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
12069#include <stdio.h>
12070#include <stdlib.h>
12071int
12072main ()
12073{
d9898ee8 12074
8d138742
CE
12075 FILE *f = fopen ("conftest.val", "w");
12076 if (! f)
12077 return 1;
12078 if (((long int) (sizeof (unsigned long))) < 0)
12079 {
12080 long int i = longval ();
12081 if (i != ((long int) (sizeof (unsigned long))))
12082 return 1;
12083 fprintf (f, "%ld", i);
12084 }
12085 else
12086 {
12087 unsigned long int i = ulongval ();
12088 if (i != ((long int) (sizeof (unsigned long))))
12089 return 1;
12090 fprintf (f, "%lu", i);
12091 }
12092 /* Do not output a trailing newline, as this causes \r\n confusion
12093 on some platforms. */
12094 return ferror (f) || fclose (f) != 0;
d9898ee8 12095
8d138742
CE
12096 ;
12097 return 0;
12098}
12099_ACEOF
12100rm -f conftest$ac_exeext
12101if { (ac_try="$ac_link"
12102case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12105esac
12106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12107$as_echo "$ac_try_echo") >&5
12108 (eval "$ac_link") 2>&5
12109 ac_status=$?
12110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12112 { (case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12115esac
12116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12117$as_echo "$ac_try_echo") >&5
12118 (eval "$ac_try") 2>&5
12119 ac_status=$?
12120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 ac_cv_sizeof_unsigned_long=`cat conftest.val`
12123else
12124 $as_echo "$as_me: program exited with status $ac_status" >&5
12125$as_echo "$as_me: failed program was:" >&5
12126sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12127
8d138742
CE
12128( exit $ac_status )
12129if test "$ac_cv_type_unsigned_long" = yes; then
12130 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12132{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
12133See \`config.log' for more details." >&5
12134$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
12135See \`config.log' for more details." >&2;}
12136 { (exit 77); exit 77; }; }; }
12137 else
12138 ac_cv_sizeof_unsigned_long=0
12139 fi
12140fi
12141rm -rf conftest.dSYM
12142rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12143fi
12144rm -f conftest.val
12145fi
12146{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12147$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
d9898ee8 12148
d9898ee8 12149
d9898ee8 12150
8d138742
CE
12151cat >>confdefs.h <<_ACEOF
12152#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12153_ACEOF
d9898ee8 12154
d9898ee8 12155
8d138742
CE
12156 if test "$ac_cv_sizeof_unsigned_long" != 4
12157 then
12158 # The cast to long int works around a bug in the HP C Compiler
12159# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12160# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12161# This bug is HP SR number 8606223364.
12162{ $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
12163$as_echo_n "checking size of unsigned short... " >&6; }
12164if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
12165 $as_echo_n "(cached) " >&6
12166else
12167 if test "$cross_compiling" = yes; then
12168 # Depending upon the size, compute the lo and hi bounds.
12169cat >conftest.$ac_ext <<_ACEOF
12170/* confdefs.h. */
12171_ACEOF
12172cat confdefs.h >>conftest.$ac_ext
12173cat >>conftest.$ac_ext <<_ACEOF
12174/* end confdefs.h. */
12175$ac_includes_default
12176int
12177main ()
12178{
12179static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
12180test_array [0] = 0
d9898ee8 12181
8d138742
CE
12182 ;
12183 return 0;
12184}
12185_ACEOF
12186rm -f conftest.$ac_objext
12187if { (ac_try="$ac_compile"
12188case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12191esac
12192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12193$as_echo "$ac_try_echo") >&5
12194 (eval "$ac_compile") 2>conftest.er1
12195 ac_status=$?
12196 grep -v '^ *+' conftest.er1 >conftest.err
12197 rm -f conftest.er1
12198 cat conftest.err >&5
12199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } && {
12201 test -z "$ac_c_werror_flag" ||
12202 test ! -s conftest.err
12203 } && test -s conftest.$ac_objext; then
12204 ac_lo=0 ac_mid=0
12205 while :; do
12206 cat >conftest.$ac_ext <<_ACEOF
12207/* confdefs.h. */
12208_ACEOF
12209cat confdefs.h >>conftest.$ac_ext
12210cat >>conftest.$ac_ext <<_ACEOF
12211/* end confdefs.h. */
12212$ac_includes_default
12213int
12214main ()
12215{
12216static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
12217test_array [0] = 0
d9898ee8 12218
8d138742
CE
12219 ;
12220 return 0;
12221}
12222_ACEOF
12223rm -f conftest.$ac_objext
12224if { (ac_try="$ac_compile"
12225case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12228esac
12229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12230$as_echo "$ac_try_echo") >&5
12231 (eval "$ac_compile") 2>conftest.er1
12232 ac_status=$?
12233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
12235 cat conftest.err >&5
12236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } && {
12238 test -z "$ac_c_werror_flag" ||
12239 test ! -s conftest.err
12240 } && test -s conftest.$ac_objext; then
12241 ac_hi=$ac_mid; break
12242else
12243 $as_echo "$as_me: failed program was:" >&5
12244sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12245
8d138742
CE
12246 ac_lo=`expr $ac_mid + 1`
12247 if test $ac_lo -le $ac_mid; then
12248 ac_lo= ac_hi=
12249 break
12250 fi
12251 ac_mid=`expr 2 '*' $ac_mid + 1`
12252fi
d9898ee8 12253
8d138742
CE
12254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255 done
12256else
12257 $as_echo "$as_me: failed program was:" >&5
12258sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12259
8d138742
CE
12260 cat >conftest.$ac_ext <<_ACEOF
12261/* confdefs.h. */
12262_ACEOF
12263cat confdefs.h >>conftest.$ac_ext
12264cat >>conftest.$ac_ext <<_ACEOF
12265/* end confdefs.h. */
12266$ac_includes_default
12267int
12268main ()
12269{
12270static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
12271test_array [0] = 0
d9898ee8 12272
8d138742
CE
12273 ;
12274 return 0;
12275}
12276_ACEOF
12277rm -f conftest.$ac_objext
12278if { (ac_try="$ac_compile"
12279case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12282esac
12283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12284$as_echo "$ac_try_echo") >&5
12285 (eval "$ac_compile") 2>conftest.er1
12286 ac_status=$?
12287 grep -v '^ *+' conftest.er1 >conftest.err
12288 rm -f conftest.er1
12289 cat conftest.err >&5
12290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } && {
12292 test -z "$ac_c_werror_flag" ||
12293 test ! -s conftest.err
12294 } && test -s conftest.$ac_objext; then
12295 ac_hi=-1 ac_mid=-1
12296 while :; do
12297 cat >conftest.$ac_ext <<_ACEOF
12298/* confdefs.h. */
12299_ACEOF
12300cat confdefs.h >>conftest.$ac_ext
12301cat >>conftest.$ac_ext <<_ACEOF
12302/* end confdefs.h. */
12303$ac_includes_default
12304int
12305main ()
12306{
12307static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
12308test_array [0] = 0
d9898ee8 12309
8d138742
CE
12310 ;
12311 return 0;
12312}
12313_ACEOF
12314rm -f conftest.$ac_objext
12315if { (ac_try="$ac_compile"
12316case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319esac
12320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12321$as_echo "$ac_try_echo") >&5
12322 (eval "$ac_compile") 2>conftest.er1
12323 ac_status=$?
12324 grep -v '^ *+' conftest.er1 >conftest.err
12325 rm -f conftest.er1
12326 cat conftest.err >&5
12327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } && {
12329 test -z "$ac_c_werror_flag" ||
12330 test ! -s conftest.err
12331 } && test -s conftest.$ac_objext; then
12332 ac_lo=$ac_mid; break
12333else
12334 $as_echo "$as_me: failed program was:" >&5
12335sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12336
8d138742
CE
12337 ac_hi=`expr '(' $ac_mid ')' - 1`
12338 if test $ac_mid -le $ac_hi; then
12339 ac_lo= ac_hi=
12340 break
12341 fi
12342 ac_mid=`expr 2 '*' $ac_mid`
12343fi
d9898ee8 12344
8d138742
CE
12345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12346 done
12347else
12348 $as_echo "$as_me: failed program was:" >&5
12349sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12350
8d138742
CE
12351 ac_lo= ac_hi=
12352fi
d9898ee8 12353
8d138742
CE
12354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12355fi
d9898ee8 12356
8d138742
CE
12357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358# Binary search between lo and hi bounds.
12359while test "x$ac_lo" != "x$ac_hi"; do
12360 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12361 cat >conftest.$ac_ext <<_ACEOF
12362/* confdefs.h. */
12363_ACEOF
12364cat confdefs.h >>conftest.$ac_ext
12365cat >>conftest.$ac_ext <<_ACEOF
12366/* end confdefs.h. */
12367$ac_includes_default
12368int
12369main ()
12370{
12371static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
12372test_array [0] = 0
d9898ee8 12373
8d138742
CE
12374 ;
12375 return 0;
12376}
12377_ACEOF
12378rm -f conftest.$ac_objext
12379if { (ac_try="$ac_compile"
12380case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12383esac
12384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12385$as_echo "$ac_try_echo") >&5
12386 (eval "$ac_compile") 2>conftest.er1
12387 ac_status=$?
12388 grep -v '^ *+' conftest.er1 >conftest.err
12389 rm -f conftest.er1
12390 cat conftest.err >&5
12391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } && {
12393 test -z "$ac_c_werror_flag" ||
12394 test ! -s conftest.err
12395 } && test -s conftest.$ac_objext; then
12396 ac_hi=$ac_mid
12397else
12398 $as_echo "$as_me: failed program was:" >&5
12399sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12400
8d138742
CE
12401 ac_lo=`expr '(' $ac_mid ')' + 1`
12402fi
d9898ee8 12403
8d138742
CE
12404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405done
12406case $ac_lo in
12407?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
12408'') if test "$ac_cv_type_unsigned_short" = yes; then
12409 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12411{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
12412See \`config.log' for more details." >&5
12413$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
12414See \`config.log' for more details." >&2;}
12415 { (exit 77); exit 77; }; }; }
12416 else
12417 ac_cv_sizeof_unsigned_short=0
12418 fi ;;
12419esac
12420else
12421 cat >conftest.$ac_ext <<_ACEOF
12422/* confdefs.h. */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h. */
12427$ac_includes_default
12428static long int longval () { return (long int) (sizeof (unsigned short)); }
12429static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
12430#include <stdio.h>
12431#include <stdlib.h>
12432int
12433main ()
12434{
d9898ee8 12435
8d138742
CE
12436 FILE *f = fopen ("conftest.val", "w");
12437 if (! f)
12438 return 1;
12439 if (((long int) (sizeof (unsigned short))) < 0)
12440 {
12441 long int i = longval ();
12442 if (i != ((long int) (sizeof (unsigned short))))
12443 return 1;
12444 fprintf (f, "%ld", i);
12445 }
12446 else
12447 {
12448 unsigned long int i = ulongval ();
12449 if (i != ((long int) (sizeof (unsigned short))))
12450 return 1;
12451 fprintf (f, "%lu", i);
12452 }
12453 /* Do not output a trailing newline, as this causes \r\n confusion
12454 on some platforms. */
12455 return ferror (f) || fclose (f) != 0;
d9898ee8 12456
8d138742
CE
12457 ;
12458 return 0;
12459}
12460_ACEOF
12461rm -f conftest$ac_exeext
12462if { (ac_try="$ac_link"
12463case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466esac
12467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12468$as_echo "$ac_try_echo") >&5
12469 (eval "$ac_link") 2>&5
12470 ac_status=$?
12471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12473 { (case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12476esac
12477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12478$as_echo "$ac_try_echo") >&5
12479 (eval "$ac_try") 2>&5
12480 ac_status=$?
12481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
12483 ac_cv_sizeof_unsigned_short=`cat conftest.val`
12484else
12485 $as_echo "$as_me: program exited with status $ac_status" >&5
12486$as_echo "$as_me: failed program was:" >&5
12487sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12488
8d138742
CE
12489( exit $ac_status )
12490if test "$ac_cv_type_unsigned_short" = yes; then
12491 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12493{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
12494See \`config.log' for more details." >&5
12495$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
12496See \`config.log' for more details." >&2;}
12497 { (exit 77); exit 77; }; }; }
12498 else
12499 ac_cv_sizeof_unsigned_short=0
12500 fi
12501fi
12502rm -rf conftest.dSYM
12503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12504fi
12505rm -f conftest.val
12506fi
12507{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
12508$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
d9898ee8 12509
d9898ee8 12510
d9898ee8 12511
8d138742
CE
12512cat >>confdefs.h <<_ACEOF
12513#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
12514_ACEOF
d9898ee8 12515
d9898ee8 12516
8d138742
CE
12517 if test "$ac_cv_sizeof_unsigned_short" != 4
12518 then
12519 { { $as_echo "$as_me:$LINENO: error: --with-int32 option is required" >&5
12520$as_echo "$as_me: error: --with-int32 option is required" >&2;}
12521 { (exit 1); exit 1; }; }
12522 fi
12523 int32="unsigned short"
12524 else
12525 int32="unsigned long"
12526 fi
12527 else
12528 int32="unsigned"
12529 fi
d9898ee8 12530
8d138742 12531fi
d9898ee8 12532
8d138742 12533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12534
8d138742 12535fi
d9898ee8 12536
8d138742 12537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12538
d9898ee8 12539
8d138742 12540fi
d9898ee8 12541
8d138742 12542UINT32="$int32"
d9898ee8 12543
d9898ee8 12544
8d138742
CE
12545cat >>confdefs.h <<_ACEOF
12546#define SHA1_WORD $UINT32
12547_ACEOF
d9898ee8 12548
d9898ee8 12549
d9898ee8 12550
8d138742
CE
12551# Check whether --with-int64 was given.
12552if test "${with_int64+set}" = set; then
12553 withval=$with_int64; int64="$withval"
12554else
d9898ee8 12555
d9898ee8 12556
8d138742
CE
12557 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
12558$as_echo_n "checking for uint64_t... " >&6; }
d9898ee8 12559
8d138742
CE
12560 cat >conftest.$ac_ext <<_ACEOF
12561/* confdefs.h. */
12562_ACEOF
12563cat confdefs.h >>conftest.$ac_ext
12564cat >>conftest.$ac_ext <<_ACEOF
12565/* end confdefs.h. */
d9898ee8 12566
8d138742
CE
12567#if HAVE_SYS_TYPES_H
12568#include <sys/types.h>
12569#endif
d9898ee8 12570
8d138742
CE
12571int
12572main ()
12573{
d9898ee8 12574
8d138742 12575 uint64_t i=0;
d9898ee8 12576
8d138742
CE
12577 ;
12578 return 0;
12579}
12580_ACEOF
12581rm -f conftest.$ac_objext
12582if { (ac_try="$ac_compile"
12583case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12586esac
12587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12588$as_echo "$ac_try_echo") >&5
12589 (eval "$ac_compile") 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } && {
12596 test -z "$ac_c_werror_flag" ||
12597 test ! -s conftest.err
12598 } && test -s conftest.$ac_objext; then
12599 { $as_echo "$as_me:$LINENO: result: yes" >&5
12600$as_echo "yes" >&6; } ; int64="uint64_t"
12601else
12602 $as_echo "$as_me: failed program was:" >&5
12603sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12604
d9898ee8 12605
d9898ee8 12606
8d138742
CE
12607 { $as_echo "$as_me:$LINENO: result: no" >&5
12608$as_echo "no" >&6; }
12609 { $as_echo "$as_me:$LINENO: checking for u_int_64_t" >&5
12610$as_echo_n "checking for u_int_64_t... " >&6; }
d9898ee8 12611
8d138742
CE
12612 cat >conftest.$ac_ext <<_ACEOF
12613/* confdefs.h. */
12614_ACEOF
12615cat confdefs.h >>conftest.$ac_ext
12616cat >>conftest.$ac_ext <<_ACEOF
12617/* end confdefs.h. */
d9898ee8 12618
8d138742
CE
12619#if HAVE_SYS_TYPES_H
12620#include <sys/types.h>
12621#endif
d9898ee8 12622
8d138742
CE
12623int
12624main ()
12625{
d9898ee8 12626
8d138742 12627 u_int64_t i=0;
d9898ee8 12628
8d138742
CE
12629 ;
12630 return 0;
12631}
12632_ACEOF
12633rm -f conftest.$ac_objext
12634if { (ac_try="$ac_compile"
12635case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12638esac
12639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12640$as_echo "$ac_try_echo") >&5
12641 (eval "$ac_compile") 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } && {
12648 test -z "$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12650 } && test -s conftest.$ac_objext; then
12651 { $as_echo "$as_me:$LINENO: result: yes" >&5
12652$as_echo "yes" >&6; }; int64="u_int64_t"
12653else
12654 $as_echo "$as_me: failed program was:" >&5
12655sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12656
d9898ee8 12657
d9898ee8 12658
8d138742
CE
12659 { $as_echo "$as_me:$LINENO: result: no" >&5
12660$as_echo "no" >&6; }
d9898ee8 12661
8d138742
CE
12662 # The cast to long int works around a bug in the HP C Compiler
12663# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12664# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12665# This bug is HP SR number 8606223364.
12666{ $as_echo "$as_me:$LINENO: checking size of unsigned" >&5
12667$as_echo_n "checking size of unsigned... " >&6; }
12668if test "${ac_cv_sizeof_unsigned+set}" = set; then
12669 $as_echo_n "(cached) " >&6
12670else
12671 if test "$cross_compiling" = yes; then
12672 # Depending upon the size, compute the lo and hi bounds.
12673cat >conftest.$ac_ext <<_ACEOF
12674/* confdefs.h. */
12675_ACEOF
12676cat confdefs.h >>conftest.$ac_ext
12677cat >>conftest.$ac_ext <<_ACEOF
12678/* end confdefs.h. */
12679$ac_includes_default
12680int
12681main ()
12682{
12683static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) >= 0)];
12684test_array [0] = 0
d9898ee8 12685
8d138742
CE
12686 ;
12687 return 0;
12688}
12689_ACEOF
12690rm -f conftest.$ac_objext
12691if { (ac_try="$ac_compile"
12692case "(($ac_try" in
12693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694 *) ac_try_echo=$ac_try;;
12695esac
12696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12697$as_echo "$ac_try_echo") >&5
12698 (eval "$ac_compile") 2>conftest.er1
12699 ac_status=$?
12700 grep -v '^ *+' conftest.er1 >conftest.err
12701 rm -f conftest.er1
12702 cat conftest.err >&5
12703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } && {
12705 test -z "$ac_c_werror_flag" ||
12706 test ! -s conftest.err
12707 } && test -s conftest.$ac_objext; then
12708 ac_lo=0 ac_mid=0
12709 while :; do
12710 cat >conftest.$ac_ext <<_ACEOF
12711/* confdefs.h. */
12712_ACEOF
12713cat confdefs.h >>conftest.$ac_ext
12714cat >>conftest.$ac_ext <<_ACEOF
12715/* end confdefs.h. */
12716$ac_includes_default
12717int
12718main ()
12719{
12720static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) <= $ac_mid)];
12721test_array [0] = 0
d9898ee8 12722
8d138742
CE
12723 ;
12724 return 0;
12725}
12726_ACEOF
12727rm -f conftest.$ac_objext
12728if { (ac_try="$ac_compile"
12729case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12732esac
12733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12734$as_echo "$ac_try_echo") >&5
12735 (eval "$ac_compile") 2>conftest.er1
12736 ac_status=$?
12737 grep -v '^ *+' conftest.er1 >conftest.err
12738 rm -f conftest.er1
12739 cat conftest.err >&5
12740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } && {
12742 test -z "$ac_c_werror_flag" ||
12743 test ! -s conftest.err
12744 } && test -s conftest.$ac_objext; then
12745 ac_hi=$ac_mid; break
12746else
12747 $as_echo "$as_me: failed program was:" >&5
12748sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12749
8d138742
CE
12750 ac_lo=`expr $ac_mid + 1`
12751 if test $ac_lo -le $ac_mid; then
12752 ac_lo= ac_hi=
12753 break
12754 fi
12755 ac_mid=`expr 2 '*' $ac_mid + 1`
12756fi
d9898ee8 12757
8d138742
CE
12758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12759 done
12760else
12761 $as_echo "$as_me: failed program was:" >&5
12762sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12763
8d138742
CE
12764 cat >conftest.$ac_ext <<_ACEOF
12765/* confdefs.h. */
12766_ACEOF
12767cat confdefs.h >>conftest.$ac_ext
12768cat >>conftest.$ac_ext <<_ACEOF
12769/* end confdefs.h. */
12770$ac_includes_default
12771int
12772main ()
12773{
12774static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) < 0)];
12775test_array [0] = 0
d9898ee8 12776
8d138742
CE
12777 ;
12778 return 0;
12779}
12780_ACEOF
12781rm -f conftest.$ac_objext
12782if { (ac_try="$ac_compile"
12783case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12786esac
12787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12788$as_echo "$ac_try_echo") >&5
12789 (eval "$ac_compile") 2>conftest.er1
12790 ac_status=$?
12791 grep -v '^ *+' conftest.er1 >conftest.err
12792 rm -f conftest.er1
12793 cat conftest.err >&5
12794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } && {
12796 test -z "$ac_c_werror_flag" ||
12797 test ! -s conftest.err
12798 } && test -s conftest.$ac_objext; then
12799 ac_hi=-1 ac_mid=-1
12800 while :; do
12801 cat >conftest.$ac_ext <<_ACEOF
12802/* confdefs.h. */
12803_ACEOF
12804cat confdefs.h >>conftest.$ac_ext
12805cat >>conftest.$ac_ext <<_ACEOF
12806/* end confdefs.h. */
12807$ac_includes_default
12808int
12809main ()
12810{
12811static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) >= $ac_mid)];
12812test_array [0] = 0
d9898ee8 12813
8d138742
CE
12814 ;
12815 return 0;
12816}
12817_ACEOF
12818rm -f conftest.$ac_objext
12819if { (ac_try="$ac_compile"
12820case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12823esac
12824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12825$as_echo "$ac_try_echo") >&5
12826 (eval "$ac_compile") 2>conftest.er1
12827 ac_status=$?
12828 grep -v '^ *+' conftest.er1 >conftest.err
12829 rm -f conftest.er1
12830 cat conftest.err >&5
12831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); } && {
12833 test -z "$ac_c_werror_flag" ||
12834 test ! -s conftest.err
12835 } && test -s conftest.$ac_objext; then
12836 ac_lo=$ac_mid; break
d9898ee8 12837else
8d138742
CE
12838 $as_echo "$as_me: failed program was:" >&5
12839sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12840
8d138742
CE
12841 ac_hi=`expr '(' $ac_mid ')' - 1`
12842 if test $ac_mid -le $ac_hi; then
12843 ac_lo= ac_hi=
12844 break
12845 fi
12846 ac_mid=`expr 2 '*' $ac_mid`
12847fi
d9898ee8 12848
8d138742
CE
12849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850 done
12851else
12852 $as_echo "$as_me: failed program was:" >&5
12853sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12854
8d138742
CE
12855 ac_lo= ac_hi=
12856fi
d9898ee8 12857
8d138742
CE
12858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859fi
d9898ee8 12860
8d138742
CE
12861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862# Binary search between lo and hi bounds.
12863while test "x$ac_lo" != "x$ac_hi"; do
12864 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12865 cat >conftest.$ac_ext <<_ACEOF
12866/* confdefs.h. */
12867_ACEOF
12868cat confdefs.h >>conftest.$ac_ext
12869cat >>conftest.$ac_ext <<_ACEOF
12870/* end confdefs.h. */
12871$ac_includes_default
12872int
12873main ()
12874{
12875static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) <= $ac_mid)];
12876test_array [0] = 0
d9898ee8 12877
8d138742
CE
12878 ;
12879 return 0;
12880}
12881_ACEOF
12882rm -f conftest.$ac_objext
12883if { (ac_try="$ac_compile"
12884case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887esac
12888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12889$as_echo "$ac_try_echo") >&5
12890 (eval "$ac_compile") 2>conftest.er1
12891 ac_status=$?
12892 grep -v '^ *+' conftest.er1 >conftest.err
12893 rm -f conftest.er1
12894 cat conftest.err >&5
12895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } && {
12897 test -z "$ac_c_werror_flag" ||
12898 test ! -s conftest.err
12899 } && test -s conftest.$ac_objext; then
12900 ac_hi=$ac_mid
12901else
12902 $as_echo "$as_me: failed program was:" >&5
12903sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12904
8d138742 12905 ac_lo=`expr '(' $ac_mid ')' + 1`
d9898ee8 12906fi
12907
8d138742
CE
12908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909done
12910case $ac_lo in
12911?*) ac_cv_sizeof_unsigned=$ac_lo;;
12912'') if test "$ac_cv_type_unsigned" = yes; then
12913 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12915{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
12916See \`config.log' for more details." >&5
12917$as_echo "$as_me: error: cannot compute sizeof (unsigned)
12918See \`config.log' for more details." >&2;}
12919 { (exit 77); exit 77; }; }; }
12920 else
12921 ac_cv_sizeof_unsigned=0
12922 fi ;;
12923esac
12924else
12925 cat >conftest.$ac_ext <<_ACEOF
12926/* confdefs.h. */
12927_ACEOF
12928cat confdefs.h >>conftest.$ac_ext
12929cat >>conftest.$ac_ext <<_ACEOF
12930/* end confdefs.h. */
12931$ac_includes_default
12932static long int longval () { return (long int) (sizeof (unsigned)); }
12933static unsigned long int ulongval () { return (long int) (sizeof (unsigned)); }
12934#include <stdio.h>
12935#include <stdlib.h>
12936int
12937main ()
12938{
12939
12940 FILE *f = fopen ("conftest.val", "w");
12941 if (! f)
12942 return 1;
12943 if (((long int) (sizeof (unsigned))) < 0)
12944 {
12945 long int i = longval ();
12946 if (i != ((long int) (sizeof (unsigned))))
12947 return 1;
12948 fprintf (f, "%ld", i);
12949 }
12950 else
12951 {
12952 unsigned long int i = ulongval ();
12953 if (i != ((long int) (sizeof (unsigned))))
12954 return 1;
12955 fprintf (f, "%lu", i);
12956 }
12957 /* Do not output a trailing newline, as this causes \r\n confusion
12958 on some platforms. */
12959 return ferror (f) || fclose (f) != 0;
d9898ee8 12960
8d138742
CE
12961 ;
12962 return 0;
12963}
12964_ACEOF
12965rm -f conftest$ac_exeext
12966if { (ac_try="$ac_link"
12967case "(($ac_try" in
12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12970esac
12971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12972$as_echo "$ac_try_echo") >&5
12973 (eval "$ac_link") 2>&5
12974 ac_status=$?
12975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12977 { (case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12980esac
12981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12982$as_echo "$ac_try_echo") >&5
12983 (eval "$ac_try") 2>&5
12984 ac_status=$?
12985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 ac_cv_sizeof_unsigned=`cat conftest.val`
12988else
12989 $as_echo "$as_me: program exited with status $ac_status" >&5
12990$as_echo "$as_me: failed program was:" >&5
12991sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12992
8d138742
CE
12993( exit $ac_status )
12994if test "$ac_cv_type_unsigned" = yes; then
12995 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12997{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
12998See \`config.log' for more details." >&5
12999$as_echo "$as_me: error: cannot compute sizeof (unsigned)
13000See \`config.log' for more details." >&2;}
13001 { (exit 77); exit 77; }; }; }
13002 else
13003 ac_cv_sizeof_unsigned=0
13004 fi
13005fi
13006rm -rf conftest.dSYM
13007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13008fi
13009rm -f conftest.val
13010fi
13011{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
13012$as_echo "$ac_cv_sizeof_unsigned" >&6; }
d9898ee8 13013
d9898ee8 13014
d9898ee8 13015
8d138742
CE
13016cat >>confdefs.h <<_ACEOF
13017#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
13018_ACEOF
d9898ee8 13019
13020
8d138742
CE
13021 if test "$ac_cv_sizeof_unsigned" != 8
13022 then
13023 # The cast to long int works around a bug in the HP C Compiler
13024# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13025# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13026# This bug is HP SR number 8606223364.
13027{ $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
13028$as_echo_n "checking size of unsigned long... " >&6; }
13029if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13030 $as_echo_n "(cached) " >&6
13031else
13032 if test "$cross_compiling" = yes; then
13033 # Depending upon the size, compute the lo and hi bounds.
13034cat >conftest.$ac_ext <<_ACEOF
13035/* confdefs.h. */
13036_ACEOF
13037cat confdefs.h >>conftest.$ac_ext
13038cat >>conftest.$ac_ext <<_ACEOF
13039/* end confdefs.h. */
13040$ac_includes_default
13041int
13042main ()
13043{
13044static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
13045test_array [0] = 0
d9898ee8 13046
8d138742
CE
13047 ;
13048 return 0;
13049}
13050_ACEOF
13051rm -f conftest.$ac_objext
13052if { (ac_try="$ac_compile"
13053case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13056esac
13057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13058$as_echo "$ac_try_echo") >&5
13059 (eval "$ac_compile") 2>conftest.er1
13060 ac_status=$?
13061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
13064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } && {
13066 test -z "$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13068 } && test -s conftest.$ac_objext; then
13069 ac_lo=0 ac_mid=0
13070 while :; do
13071 cat >conftest.$ac_ext <<_ACEOF
13072/* confdefs.h. */
13073_ACEOF
13074cat confdefs.h >>conftest.$ac_ext
13075cat >>conftest.$ac_ext <<_ACEOF
13076/* end confdefs.h. */
13077$ac_includes_default
13078int
13079main ()
13080{
13081static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
13082test_array [0] = 0
d9898ee8 13083
8d138742
CE
13084 ;
13085 return 0;
13086}
13087_ACEOF
13088rm -f conftest.$ac_objext
13089if { (ac_try="$ac_compile"
13090case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093esac
13094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13095$as_echo "$ac_try_echo") >&5
13096 (eval "$ac_compile") 2>conftest.er1
13097 ac_status=$?
13098 grep -v '^ *+' conftest.er1 >conftest.err
13099 rm -f conftest.er1
13100 cat conftest.err >&5
13101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } && {
13103 test -z "$ac_c_werror_flag" ||
13104 test ! -s conftest.err
13105 } && test -s conftest.$ac_objext; then
13106 ac_hi=$ac_mid; break
13107else
13108 $as_echo "$as_me: failed program was:" >&5
13109sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 13110
8d138742
CE
13111 ac_lo=`expr $ac_mid + 1`
13112 if test $ac_lo -le $ac_mid; then
13113 ac_lo= ac_hi=
13114 break
13115 fi
13116 ac_mid=`expr 2 '*' $ac_mid + 1`
13117fi
d9898ee8 13118
8d138742
CE
13119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13120 done
13121else
13122 $as_echo "$as_me: failed program was:" >&5
13123sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 13124
8d138742
CE
13125 cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131$ac_includes_default
13132int
13133main ()
13134{
13135static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
13136test_array [0] = 0
d9898ee8 13137
8d138742
CE
13138 ;
13139 return 0;
13140}
13141_ACEOF
13142rm -f conftest.$ac_objext
13143if { (ac_try="$ac_compile"
13144case "(($ac_try" in
13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13147esac
13148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13149$as_echo "$ac_try_echo") >&5
13150 (eval "$ac_compile") 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } && {
13157 test -z "$ac_c_werror_flag" ||
13158 test ! -s conftest.err
13159 } && test -s conftest.$ac_objext; then
13160 ac_hi=-1 ac_mid=-1
13161 while :; do
13162 cat >conftest.$ac_ext <<_ACEOF
13163/* confdefs.h. */
13164_ACEOF
13165cat confdefs.h >>conftest.$ac_ext
13166cat >>conftest.$ac_ext <<_ACEOF
13167/* end confdefs.h. */
13168$ac_includes_default
13169int
13170main ()
13171{
13172static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
13173test_array [0] = 0
d9898ee8 13174
8d138742
CE
13175 ;
13176 return 0;
13177}
13178_ACEOF
13179rm -f conftest.$ac_objext
13180if { (ac_try="$ac_compile"
13181case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184esac
13185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13186$as_echo "$ac_try_echo") >&5
13187 (eval "$ac_compile") 2>conftest.er1
13188 ac_status=$?
13189 grep -v '^ *+' conftest.er1 >conftest.err
13190 rm -f conftest.er1
13191 cat conftest.err >&5
13192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } && {
13194 test -z "$ac_c_werror_flag" ||
13195 test ! -s conftest.err
13196 } && test -s conftest.$ac_objext; then
13197 ac_lo=$ac_mid; break
13198else
13199 $as_echo "$as_me: failed program was:" >&5
13200sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 13201
8d138742
CE
13202 ac_hi=`expr '(' $ac_mid ')' - 1`
13203 if test $ac_mid -le $ac_hi; then
13204 ac_lo= ac_hi=
13205 break
13206 fi
13207 ac_mid=`expr 2 '*' $ac_mid`
13208fi
d9898ee8 13209
8d138742
CE
13210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 done
13212else
13213 $as_echo "$as_me: failed program was:" >&5
13214sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 13215
8d138742
CE
13216 ac_lo= ac_hi=
13217fi
d9898ee8 13218
8d138742
CE
13219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220fi
d9898ee8 13221
8d138742
CE
13222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223# Binary search between lo and hi bounds.
13224while test "x$ac_lo" != "x$ac_hi"; do
13225 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13226 cat >conftest.$ac_ext <<_ACEOF
13227/* confdefs.h. */
13228_ACEOF
13229cat confdefs.h >>conftest.$ac_ext
13230cat >>conftest.$ac_ext <<_ACEOF
13231/* end confdefs.h. */
13232$ac_includes_default
13233int
13234main ()
13235{
13236static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
13237test_array [0] = 0
d9898ee8 13238
8d138742
CE
13239 ;
13240 return 0;
13241}
13242_ACEOF
13243rm -f conftest.$ac_objext
13244if { (ac_try="$ac_compile"
13245case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13248esac
13249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13250$as_echo "$ac_try_echo") >&5
13251 (eval "$ac_compile") 2>conftest.er1
13252 ac_status=$?
13253 grep -v '^ *+' conftest.er1 >conftest.err
13254 rm -f conftest.er1
13255 cat conftest.err >&5
13256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } && {
13258 test -z "$ac_c_werror_flag" ||
13259 test ! -s conftest.err
13260 } && test -s conftest.$ac_objext; then
13261 ac_hi=$ac_mid
13262else
13263 $as_echo "$as_me: failed program was:" >&5
13264sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 13265
8d138742
CE
13266 ac_lo=`expr '(' $ac_mid ')' + 1`
13267fi
d9898ee8 13268
8d138742
CE
13269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270done
13271case $ac_lo in
13272?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13273'') if test "$ac_cv_type_unsigned_long" = yes; then
13274 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13276{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
13277See \`config.log' for more details." >&5
13278$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
13279See \`config.log' for more details." >&2;}
13280 { (exit 77); exit 77; }; }; }
13281 else
13282 ac_cv_sizeof_unsigned_long=0
13283 fi ;;
13284esac
13285else
13286 cat >conftest.$ac_ext <<_ACEOF
13287/* confdefs.h. */
13288_ACEOF
13289cat confdefs.h >>conftest.$ac_ext
13290cat >>conftest.$ac_ext <<_ACEOF
13291/* end confdefs.h. */
13292$ac_includes_default
13293static long int longval () { return (long int) (sizeof (unsigned long)); }
13294static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
13295#include <stdio.h>
13296#include <stdlib.h>
13297int
13298main ()
13299{
d9898ee8 13300
8d138742
CE
13301 FILE *f = fopen ("conftest.val", "w");
13302 if (! f)
13303 return 1;
13304 if (((long int) (sizeof (unsigned long))) < 0)
13305 {
13306 long int i = longval ();
13307 if (i != ((long int) (sizeof (unsigned long))))
13308 return 1;
13309 fprintf (f, "%ld", i);
13310 }
13311 else
13312 {
13313 unsigned long int i = ulongval ();
13314 if (i != ((long int) (sizeof (unsigned long))))
13315 return 1;
13316 fprintf (f, "%lu", i);
13317 }
13318 /* Do not output a trailing newline, as this causes \r\n confusion
13319 on some platforms. */
13320 return ferror (f) || fclose (f) != 0;
d9898ee8 13321
8d138742
CE
13322 ;
13323 return 0;
13324}
13325_ACEOF
13326rm -f conftest$ac_exeext
13327if { (ac_try="$ac_link"
13328case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13331esac
13332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13333$as_echo "$ac_try_echo") >&5
13334 (eval "$ac_link") 2>&5
13335 ac_status=$?
13336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13338 { (case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13341esac
13342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13343$as_echo "$ac_try_echo") >&5
13344 (eval "$ac_try") 2>&5
13345 ac_status=$?
13346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_cv_sizeof_unsigned_long=`cat conftest.val`
13349else
13350 $as_echo "$as_me: program exited with status $ac_status" >&5
13351$as_echo "$as_me: failed program was:" >&5
13352sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 13353
8d138742
CE
13354( exit $ac_status )
13355if test "$ac_cv_type_unsigned_long" = yes; then
13356 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13358{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
13359See \`config.log' for more details." >&5
13360$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
13361See \`config.log' for more details." >&2;}
13362 { (exit 77); exit 77; }; }; }
13363 else
13364 ac_cv_sizeof_unsigned_long=0
13365 fi
d9898ee8 13366fi
8d138742
CE
13367rm -rf conftest.dSYM
13368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13369fi
13370rm -f conftest.val
13371fi
13372{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13373$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
13374
d9898ee8 13375
13376
8d138742
CE
13377cat >>confdefs.h <<_ACEOF
13378#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13379_ACEOF
d9898ee8 13380
13381
8d138742
CE
13382 if test "$ac_cv_sizeof_unsigned_long" != 8
13383 then
13384 # The cast to long int works around a bug in the HP C Compiler
13385# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13386# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13387# This bug is HP SR number 8606223364.
13388{ $as_echo "$as_me:$LINENO: checking size of unsigned long long" >&5
13389$as_echo_n "checking size of unsigned long long... " >&6; }
13390if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
13391 $as_echo_n "(cached) " >&6
d9898ee8 13392else
8d138742
CE
13393 if test "$cross_compiling" = yes; then
13394 # Depending upon the size, compute the lo and hi bounds.
d9898ee8 13395cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
13401$ac_includes_default
8d138742
CE
13402int
13403main ()
13404{
13405static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= 0)];
13406test_array [0] = 0
13407
13408 ;
13409 return 0;
13410}
d9898ee8 13411_ACEOF
13412rm -f conftest.$ac_objext
dd184caf 13413if { (ac_try="$ac_compile"
13414case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417esac
8d138742
CE
13418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13419$as_echo "$ac_try_echo") >&5
dd184caf 13420 (eval "$ac_compile") 2>conftest.er1
d9898ee8 13421 ac_status=$?
13422 grep -v '^ *+' conftest.er1 >conftest.err
13423 rm -f conftest.er1
13424 cat conftest.err >&5
8d138742 13425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 13426 (exit $ac_status); } && {
13427 test -z "$ac_c_werror_flag" ||
13428 test ! -s conftest.err
13429 } && test -s conftest.$ac_objext; then
8d138742
CE
13430 ac_lo=0 ac_mid=0
13431 while :; do
13432 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 13433/* confdefs.h. */
13434_ACEOF
13435cat confdefs.h >>conftest.$ac_ext
13436cat >>conftest.$ac_ext <<_ACEOF
13437/* end confdefs.h. */
8d138742
CE
13438$ac_includes_default
13439int
13440main ()
13441{
13442static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
13443test_array [0] = 0
13444
13445 ;
13446 return 0;
13447}
d9898ee8 13448_ACEOF
8d138742
CE
13449rm -f conftest.$ac_objext
13450if { (ac_try="$ac_compile"
dd184caf 13451case "(($ac_try" in
13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453 *) ac_try_echo=$ac_try;;
13454esac
8d138742
CE
13455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13456$as_echo "$ac_try_echo") >&5
13457 (eval "$ac_compile") 2>conftest.er1
d9898ee8 13458 ac_status=$?
13459 grep -v '^ *+' conftest.er1 >conftest.err
13460 rm -f conftest.er1
13461 cat conftest.err >&5
8d138742
CE
13462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } && {
13464 test -z "$ac_c_werror_flag" ||
dd184caf 13465 test ! -s conftest.err
8d138742
CE
13466 } && test -s conftest.$ac_objext; then
13467 ac_hi=$ac_mid; break
d9898ee8 13468else
8d138742 13469 $as_echo "$as_me: failed program was:" >&5
d9898ee8 13470sed 's/^/| /' conftest.$ac_ext >&5
13471
8d138742
CE
13472 ac_lo=`expr $ac_mid + 1`
13473 if test $ac_lo -le $ac_mid; then
13474 ac_lo= ac_hi=
13475 break
13476 fi
13477 ac_mid=`expr 2 '*' $ac_mid + 1`
d9898ee8 13478fi
dd184caf 13479
8d138742
CE
13480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13481 done
d9898ee8 13482else
8d138742
CE
13483 $as_echo "$as_me: failed program was:" >&5
13484sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 13485
8d138742
CE
13486 cat >conftest.$ac_ext <<_ACEOF
13487/* confdefs.h. */
d9898ee8 13488_ACEOF
8d138742
CE
13489cat confdefs.h >>conftest.$ac_ext
13490cat >>conftest.$ac_ext <<_ACEOF
13491/* end confdefs.h. */
13492$ac_includes_default
13493int
13494main ()
13495{
13496static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) < 0)];
13497test_array [0] = 0
d9898ee8 13498
8d138742
CE
13499 ;
13500 return 0;
13501}
13502_ACEOF
13503rm -f conftest.$ac_objext
13504if { (ac_try="$ac_compile"
13505case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13508esac
13509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13510$as_echo "$ac_try_echo") >&5
13511 (eval "$ac_compile") 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } && {
13518 test -z "$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13520 } && test -s conftest.$ac_objext; then
13521 ac_hi=-1 ac_mid=-1
13522 while :; do
13523 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 13524/* confdefs.h. */
13525_ACEOF
13526cat confdefs.h >>conftest.$ac_ext
13527cat >>conftest.$ac_ext <<_ACEOF
13528/* end confdefs.h. */
8d138742 13529$ac_includes_default
d9898ee8 13530int
13531main ()
13532{
8d138742
CE
13533static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= $ac_mid)];
13534test_array [0] = 0
d9898ee8 13535
13536 ;
13537 return 0;
13538}
13539_ACEOF
13540rm -f conftest.$ac_objext
dd184caf 13541if { (ac_try="$ac_compile"
13542case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13545esac
8d138742
CE
13546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13547$as_echo "$ac_try_echo") >&5
dd184caf 13548 (eval "$ac_compile") 2>conftest.er1
d9898ee8 13549 ac_status=$?
13550 grep -v '^ *+' conftest.er1 >conftest.err
13551 rm -f conftest.er1
13552 cat conftest.err >&5
8d138742 13553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 13554 (exit $ac_status); } && {
13555 test -z "$ac_c_werror_flag" ||
13556 test ! -s conftest.err
13557 } && test -s conftest.$ac_objext; then
8d138742 13558 ac_lo=$ac_mid; break
d9898ee8 13559else
8d138742 13560 $as_echo "$as_me: failed program was:" >&5
d9898ee8 13561sed 's/^/| /' conftest.$ac_ext >&5
13562
8d138742
CE
13563 ac_hi=`expr '(' $ac_mid ')' - 1`
13564 if test $ac_mid -le $ac_hi; then
13565 ac_lo= ac_hi=
13566 break
13567 fi
13568 ac_mid=`expr 2 '*' $ac_mid`
13569fi
d9898ee8 13570
8d138742
CE
13571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13572 done
13573else
13574 $as_echo "$as_me: failed program was:" >&5
13575sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 13576
8d138742
CE
13577 ac_lo= ac_hi=
13578fi
d9898ee8 13579
8d138742
CE
13580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13581fi
13582
13583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13584# Binary search between lo and hi bounds.
13585while test "x$ac_lo" != "x$ac_hi"; do
13586 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13587 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 13588/* confdefs.h. */
13589_ACEOF
8d138742
CE
13590cat confdefs.h >>conftest.$ac_ext
13591cat >>conftest.$ac_ext <<_ACEOF
13592/* end confdefs.h. */
13593$ac_includes_default
d9898ee8 13594int
13595main ()
13596{
8d138742
CE
13597static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
13598test_array [0] = 0
d9898ee8 13599
13600 ;
13601 return 0;
13602}
13603_ACEOF
13604rm -f conftest.$ac_objext
dd184caf 13605if { (ac_try="$ac_compile"
13606case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13609esac
8d138742
CE
13610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13611$as_echo "$ac_try_echo") >&5
dd184caf 13612 (eval "$ac_compile") 2>conftest.er1
d9898ee8 13613 ac_status=$?
13614 grep -v '^ *+' conftest.er1 >conftest.err
13615 rm -f conftest.er1
13616 cat conftest.err >&5
8d138742 13617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 13618 (exit $ac_status); } && {
13619 test -z "$ac_c_werror_flag" ||
13620 test ! -s conftest.err
13621 } && test -s conftest.$ac_objext; then
8d138742 13622 ac_hi=$ac_mid
d9898ee8 13623else
8d138742 13624 $as_echo "$as_me: failed program was:" >&5
d9898ee8 13625sed 's/^/| /' conftest.$ac_ext >&5
13626
8d138742
CE
13627 ac_lo=`expr '(' $ac_mid ')' + 1`
13628fi
d9898ee8 13629
8d138742
CE
13630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13631done
13632case $ac_lo in
13633?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
13634'') if test "$ac_cv_type_unsigned_long_long" = yes; then
13635 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13637{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
13638See \`config.log' for more details." >&5
13639$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
13640See \`config.log' for more details." >&2;}
13641 { (exit 77); exit 77; }; }; }
13642 else
13643 ac_cv_sizeof_unsigned_long_long=0
13644 fi ;;
13645esac
d9898ee8 13646else
13647 cat >conftest.$ac_ext <<_ACEOF
13648/* confdefs.h. */
13649_ACEOF
13650cat confdefs.h >>conftest.$ac_ext
13651cat >>conftest.$ac_ext <<_ACEOF
13652/* end confdefs.h. */
13653$ac_includes_default
8d138742
CE
13654static long int longval () { return (long int) (sizeof (unsigned long long)); }
13655static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long)); }
13656#include <stdio.h>
13657#include <stdlib.h>
d9898ee8 13658int
13659main ()
13660{
8d138742
CE
13661
13662 FILE *f = fopen ("conftest.val", "w");
13663 if (! f)
13664 return 1;
13665 if (((long int) (sizeof (unsigned long long))) < 0)
13666 {
13667 long int i = longval ();
13668 if (i != ((long int) (sizeof (unsigned long long))))
13669 return 1;
13670 fprintf (f, "%ld", i);
13671 }
13672 else
13673 {
13674 unsigned long int i = ulongval ();
13675 if (i != ((long int) (sizeof (unsigned long long))))
13676 return 1;
13677 fprintf (f, "%lu", i);
13678 }
13679 /* Do not output a trailing newline, as this causes \r\n confusion
13680 on some platforms. */
13681 return ferror (f) || fclose (f) != 0;
13682
d9898ee8 13683 ;
13684 return 0;
13685}
13686_ACEOF
8d138742
CE
13687rm -f conftest$ac_exeext
13688if { (ac_try="$ac_link"
dd184caf 13689case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692esac
8d138742
CE
13693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13694$as_echo "$ac_try_echo") >&5
13695 (eval "$ac_link") 2>&5
d9898ee8 13696 ac_status=$?
8d138742
CE
13697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13699 { (case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13702esac
13703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13704$as_echo "$ac_try_echo") >&5
13705 (eval "$ac_try") 2>&5
13706 ac_status=$?
13707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
d9898ee8 13710else
8d138742
CE
13711 $as_echo "$as_me: program exited with status $ac_status" >&5
13712$as_echo "$as_me: failed program was:" >&5
d9898ee8 13713sed 's/^/| /' conftest.$ac_ext >&5
13714
8d138742
CE
13715( exit $ac_status )
13716if test "$ac_cv_type_unsigned_long_long" = yes; then
13717 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13719{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
13720See \`config.log' for more details." >&5
13721$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
13722See \`config.log' for more details." >&2;}
13723 { (exit 77); exit 77; }; }; }
13724 else
13725 ac_cv_sizeof_unsigned_long_long=0
13726 fi
d9898ee8 13727fi
8d138742
CE
13728rm -rf conftest.dSYM
13729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 13730fi
8d138742
CE
13731rm -f conftest.val
13732fi
13733{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
13734$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
13735
13736
d9898ee8 13737
8d138742
CE
13738cat >>confdefs.h <<_ACEOF
13739#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
13740_ACEOF
13741
13742
13743 if test "$ac_cv_sizeof_unsigned_long_long" != 8
13744 then
13745 # The cast to long int works around a bug in the HP C Compiler
dd184caf 13746# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13747# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13748# This bug is HP SR number 8606223364.
8d138742
CE
13749{ $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
13750$as_echo_n "checking size of unsigned short... " >&6; }
13751if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
13752 $as_echo_n "(cached) " >&6
d9898ee8 13753else
d9898ee8 13754 if test "$cross_compiling" = yes; then
13755 # Depending upon the size, compute the lo and hi bounds.
13756cat >conftest.$ac_ext <<_ACEOF
13757/* confdefs.h. */
13758_ACEOF
13759cat confdefs.h >>conftest.$ac_ext
13760cat >>conftest.$ac_ext <<_ACEOF
13761/* end confdefs.h. */
13762$ac_includes_default
13763int
13764main ()
13765{
8d138742 13766static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
d9898ee8 13767test_array [0] = 0
13768
13769 ;
13770 return 0;
13771}
13772_ACEOF
13773rm -f conftest.$ac_objext
dd184caf 13774if { (ac_try="$ac_compile"
13775case "(($ac_try" in
13776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777 *) ac_try_echo=$ac_try;;
13778esac
8d138742
CE
13779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13780$as_echo "$ac_try_echo") >&5
dd184caf 13781 (eval "$ac_compile") 2>conftest.er1
d9898ee8 13782 ac_status=$?
13783 grep -v '^ *+' conftest.er1 >conftest.err
13784 rm -f conftest.er1
13785 cat conftest.err >&5
8d138742 13786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 13787 (exit $ac_status); } && {
13788 test -z "$ac_c_werror_flag" ||
13789 test ! -s conftest.err
13790 } && test -s conftest.$ac_objext; then
d9898ee8 13791 ac_lo=0 ac_mid=0
13792 while :; do
13793 cat >conftest.$ac_ext <<_ACEOF
13794/* confdefs.h. */
13795_ACEOF
13796cat confdefs.h >>conftest.$ac_ext
13797cat >>conftest.$ac_ext <<_ACEOF
13798/* end confdefs.h. */
13799$ac_includes_default
13800int
13801main ()
13802{
8d138742 13803static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
d9898ee8 13804test_array [0] = 0
13805
13806 ;
13807 return 0;
13808}
13809_ACEOF
13810rm -f conftest.$ac_objext
dd184caf 13811if { (ac_try="$ac_compile"
13812case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13815esac
8d138742
CE
13816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13817$as_echo "$ac_try_echo") >&5
dd184caf 13818 (eval "$ac_compile") 2>conftest.er1
d9898ee8 13819 ac_status=$?
13820 grep -v '^ *+' conftest.er1 >conftest.err
13821 rm -f conftest.er1
13822 cat conftest.err >&5
8d138742 13823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 13824 (exit $ac_status); } && {
13825 test -z "$ac_c_werror_flag" ||
13826 test ! -s conftest.err
13827 } && test -s conftest.$ac_objext; then
d9898ee8 13828 ac_hi=$ac_mid; break
13829else
8d138742 13830 $as_echo "$as_me: failed program was:" >&5
d9898ee8 13831sed 's/^/| /' conftest.$ac_ext >&5
13832
dd184caf 13833 ac_lo=`expr $ac_mid + 1`
13834 if test $ac_lo -le $ac_mid; then
13835 ac_lo= ac_hi=
13836 break
13837 fi
13838 ac_mid=`expr 2 '*' $ac_mid + 1`
d9898ee8 13839fi
dd184caf 13840
13841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 13842 done
13843else
8d138742 13844 $as_echo "$as_me: failed program was:" >&5
d9898ee8 13845sed 's/^/| /' conftest.$ac_ext >&5
13846
dd184caf 13847 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 13848/* confdefs.h. */
13849_ACEOF
13850cat confdefs.h >>conftest.$ac_ext
13851cat >>conftest.$ac_ext <<_ACEOF
13852/* end confdefs.h. */
13853$ac_includes_default
13854int
13855main ()
13856{
8d138742 13857static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
d9898ee8 13858test_array [0] = 0
13859
13860 ;
13861 return 0;
13862}
13863_ACEOF
13864rm -f conftest.$ac_objext
dd184caf 13865if { (ac_try="$ac_compile"
13866case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869esac
8d138742
CE
13870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13871$as_echo "$ac_try_echo") >&5
dd184caf 13872 (eval "$ac_compile") 2>conftest.er1
d9898ee8 13873 ac_status=$?
13874 grep -v '^ *+' conftest.er1 >conftest.err
13875 rm -f conftest.er1
13876 cat conftest.err >&5
8d138742 13877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 13878 (exit $ac_status); } && {
13879 test -z "$ac_c_werror_flag" ||
13880 test ! -s conftest.err
13881 } && test -s conftest.$ac_objext; then
d9898ee8 13882 ac_hi=-1 ac_mid=-1
13883 while :; do
13884 cat >conftest.$ac_ext <<_ACEOF
13885/* confdefs.h. */
13886_ACEOF
13887cat confdefs.h >>conftest.$ac_ext
13888cat >>conftest.$ac_ext <<_ACEOF
13889/* end confdefs.h. */
13890$ac_includes_default
13891int
13892main ()
13893{
8d138742 13894static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
d9898ee8 13895test_array [0] = 0
13896
13897 ;
13898 return 0;
13899}
13900_ACEOF
13901rm -f conftest.$ac_objext
dd184caf 13902if { (ac_try="$ac_compile"
13903case "(($ac_try" in
13904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905 *) ac_try_echo=$ac_try;;
13906esac
8d138742
CE
13907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13908$as_echo "$ac_try_echo") >&5
dd184caf 13909 (eval "$ac_compile") 2>conftest.er1
d9898ee8 13910 ac_status=$?
13911 grep -v '^ *+' conftest.er1 >conftest.err
13912 rm -f conftest.er1
13913 cat conftest.err >&5
8d138742 13914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 13915 (exit $ac_status); } && {
13916 test -z "$ac_c_werror_flag" ||
13917 test ! -s conftest.err
13918 } && test -s conftest.$ac_objext; then
d9898ee8 13919 ac_lo=$ac_mid; break
13920else
8d138742 13921 $as_echo "$as_me: failed program was:" >&5
d9898ee8 13922sed 's/^/| /' conftest.$ac_ext >&5
13923
dd184caf 13924 ac_hi=`expr '(' $ac_mid ')' - 1`
13925 if test $ac_mid -le $ac_hi; then
13926 ac_lo= ac_hi=
13927 break
13928 fi
13929 ac_mid=`expr 2 '*' $ac_mid`
d9898ee8 13930fi
dd184caf 13931
13932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 13933 done
13934else
8d138742 13935 $as_echo "$as_me: failed program was:" >&5
d9898ee8 13936sed 's/^/| /' conftest.$ac_ext >&5
13937
dd184caf 13938 ac_lo= ac_hi=
d9898ee8 13939fi
dd184caf 13940
13941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 13942fi
dd184caf 13943
13944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 13945# Binary search between lo and hi bounds.
13946while test "x$ac_lo" != "x$ac_hi"; do
13947 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13948 cat >conftest.$ac_ext <<_ACEOF
13949/* confdefs.h. */
13950_ACEOF
13951cat confdefs.h >>conftest.$ac_ext
13952cat >>conftest.$ac_ext <<_ACEOF
13953/* end confdefs.h. */
13954$ac_includes_default
13955int
13956main ()
13957{
8d138742 13958static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
d9898ee8 13959test_array [0] = 0
13960
13961 ;
13962 return 0;
13963}
13964_ACEOF
13965rm -f conftest.$ac_objext
dd184caf 13966if { (ac_try="$ac_compile"
13967case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13970esac
8d138742
CE
13971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13972$as_echo "$ac_try_echo") >&5
dd184caf 13973 (eval "$ac_compile") 2>conftest.er1
d9898ee8 13974 ac_status=$?
13975 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1
13977 cat conftest.err >&5
8d138742 13978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 13979 (exit $ac_status); } && {
13980 test -z "$ac_c_werror_flag" ||
13981 test ! -s conftest.err
13982 } && test -s conftest.$ac_objext; then
d9898ee8 13983 ac_hi=$ac_mid
13984else
8d138742 13985 $as_echo "$as_me: failed program was:" >&5
d9898ee8 13986sed 's/^/| /' conftest.$ac_ext >&5
13987
dd184caf 13988 ac_lo=`expr '(' $ac_mid ')' + 1`
d9898ee8 13989fi
dd184caf 13990
13991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 13992done
13993case $ac_lo in
8d138742
CE
13994?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
13995'') if test "$ac_cv_type_unsigned_short" = yes; then
13996 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13998{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
d9898ee8 13999See \`config.log' for more details." >&5
8d138742 14000$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
d9898ee8 14001See \`config.log' for more details." >&2;}
8d138742 14002 { (exit 77); exit 77; }; }; }
dd184caf 14003 else
8d138742 14004 ac_cv_sizeof_unsigned_short=0
dd184caf 14005 fi ;;
d9898ee8 14006esac
d9898ee8 14007else
14008 cat >conftest.$ac_ext <<_ACEOF
14009/* confdefs.h. */
14010_ACEOF
14011cat confdefs.h >>conftest.$ac_ext
14012cat >>conftest.$ac_ext <<_ACEOF
14013/* end confdefs.h. */
14014$ac_includes_default
8d138742
CE
14015static long int longval () { return (long int) (sizeof (unsigned short)); }
14016static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
d9898ee8 14017#include <stdio.h>
14018#include <stdlib.h>
14019int
14020main ()
14021{
14022
14023 FILE *f = fopen ("conftest.val", "w");
14024 if (! f)
dd184caf 14025 return 1;
8d138742 14026 if (((long int) (sizeof (unsigned short))) < 0)
d9898ee8 14027 {
dd184caf 14028 long int i = longval ();
8d138742 14029 if (i != ((long int) (sizeof (unsigned short))))
dd184caf 14030 return 1;
8d138742 14031 fprintf (f, "%ld", i);
d9898ee8 14032 }
14033 else
14034 {
dd184caf 14035 unsigned long int i = ulongval ();
8d138742 14036 if (i != ((long int) (sizeof (unsigned short))))
dd184caf 14037 return 1;
8d138742 14038 fprintf (f, "%lu", i);
d9898ee8 14039 }
8d138742
CE
14040 /* Do not output a trailing newline, as this causes \r\n confusion
14041 on some platforms. */
dd184caf 14042 return ferror (f) || fclose (f) != 0;
d9898ee8 14043
14044 ;
14045 return 0;
14046}
14047_ACEOF
14048rm -f conftest$ac_exeext
dd184caf 14049if { (ac_try="$ac_link"
14050case "(($ac_try" in
14051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052 *) ac_try_echo=$ac_try;;
14053esac
8d138742
CE
14054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14055$as_echo "$ac_try_echo") >&5
dd184caf 14056 (eval "$ac_link") 2>&5
d9898ee8 14057 ac_status=$?
8d138742 14058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 14059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 14060 { (case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14063esac
8d138742
CE
14064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14065$as_echo "$ac_try_echo") >&5
dd184caf 14066 (eval "$ac_try") 2>&5
d9898ee8 14067 ac_status=$?
8d138742 14068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 14069 (exit $ac_status); }; }; then
8d138742 14070 ac_cv_sizeof_unsigned_short=`cat conftest.val`
d9898ee8 14071else
8d138742
CE
14072 $as_echo "$as_me: program exited with status $ac_status" >&5
14073$as_echo "$as_me: failed program was:" >&5
d9898ee8 14074sed 's/^/| /' conftest.$ac_ext >&5
14075
14076( exit $ac_status )
8d138742
CE
14077if test "$ac_cv_type_unsigned_short" = yes; then
14078 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14080{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
d9898ee8 14081See \`config.log' for more details." >&5
8d138742 14082$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
d9898ee8 14083See \`config.log' for more details." >&2;}
8d138742 14084 { (exit 77); exit 77; }; }; }
dd184caf 14085 else
8d138742 14086 ac_cv_sizeof_unsigned_short=0
dd184caf 14087 fi
d9898ee8 14088fi
8d138742 14089rm -rf conftest.dSYM
dd184caf 14090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 14091fi
14092rm -f conftest.val
d9898ee8 14093fi
8d138742
CE
14094{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
14095$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
dd184caf 14096
14097
14098
d9898ee8 14099cat >>confdefs.h <<_ACEOF
8d138742 14100#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
d9898ee8 14101_ACEOF
14102
14103
8d138742
CE
14104 if test "$ac_cv_sizeof_unsigned_short" != 8
14105 then
14106 { { $as_echo "$as_me:$LINENO: error: --with-int64 option is required" >&5
14107$as_echo "$as_me: error: --with-int64 option is required" >&2;}
14108 { (exit 1); exit 1; }; }
14109 fi
14110 int64="unsigned short"
14111 else
14112 int64="unsigned long long"
14113 fi
14114 else
14115 int64="unsigned long"
14116 fi
14117 else
14118 int64="unsigned"
14119 fi
d9898ee8 14120
d9898ee8 14121fi
dd184caf 14122
14123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 14124
d9898ee8 14125fi
d9898ee8 14126
8d138742 14127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 14128
8d138742
CE
14129
14130fi
14131
14132UINT64="$int64"
14133
14134
14135cat >>confdefs.h <<_ACEOF
14136#define SHA512_WORD $UINT64
d9898ee8 14137_ACEOF
8d138742
CE
14138
14139{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14140$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14141if test "${ac_cv_c_const+set}" = set; then
14142 $as_echo_n "(cached) " >&6
14143else
14144 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 14145/* confdefs.h. */
14146_ACEOF
14147cat confdefs.h >>conftest.$ac_ext
14148cat >>conftest.$ac_ext <<_ACEOF
14149/* end confdefs.h. */
8d138742 14150
d9898ee8 14151int
14152main ()
14153{
8d138742
CE
14154/* FIXME: Include the comments suggested by Paul. */
14155#ifndef __cplusplus
14156 /* Ultrix mips cc rejects this. */
14157 typedef int charset[2];
14158 const charset cs;
14159 /* SunOS 4.1.1 cc rejects this. */
14160 char const *const *pcpcc;
14161 char **ppc;
14162 /* NEC SVR4.0.2 mips cc rejects this. */
14163 struct point {int x, y;};
14164 static struct point const zero = {0,0};
14165 /* AIX XL C 1.02.0.0 rejects this.
14166 It does not let you subtract one const X* pointer from another in
14167 an arm of an if-expression whose if-part is not a constant
14168 expression */
14169 const char *g = "string";
14170 pcpcc = &g + (g ? g-g : 0);
14171 /* HPUX 7.0 cc rejects these. */
14172 ++pcpcc;
14173 ppc = (char**) pcpcc;
14174 pcpcc = (char const *const *) ppc;
14175 { /* SCO 3.2v4 cc rejects this. */
14176 char *t;
14177 char const *s = 0 ? (char *) 0 : (char const *) 0;
14178
14179 *t++ = 0;
14180 if (s) return 0;
14181 }
14182 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14183 int x[] = {25, 17};
14184 const int *foo = &x[0];
14185 ++foo;
14186 }
14187 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14188 typedef const int *iptr;
14189 iptr p = 0;
14190 ++p;
14191 }
14192 { /* AIX XL C 1.02.0.0 rejects this saying
14193 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14194 struct s { int j; const int *ap[3]; };
14195 struct s *b; b->j = 5;
14196 }
14197 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14198 const int foo = 10;
14199 if (!foo) return 0;
14200 }
14201 return !cs[0] && !zero.x;
14202#endif
d9898ee8 14203
14204 ;
14205 return 0;
14206}
14207_ACEOF
14208rm -f conftest.$ac_objext
dd184caf 14209if { (ac_try="$ac_compile"
14210case "(($ac_try" in
14211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212 *) ac_try_echo=$ac_try;;
14213esac
8d138742
CE
14214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14215$as_echo "$ac_try_echo") >&5
dd184caf 14216 (eval "$ac_compile") 2>conftest.er1
d9898ee8 14217 ac_status=$?
14218 grep -v '^ *+' conftest.er1 >conftest.err
14219 rm -f conftest.er1
14220 cat conftest.err >&5
8d138742 14221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14222 (exit $ac_status); } && {
14223 test -z "$ac_c_werror_flag" ||
14224 test ! -s conftest.err
14225 } && test -s conftest.$ac_objext; then
8d138742 14226 ac_cv_c_const=yes
d9898ee8 14227else
8d138742 14228 $as_echo "$as_me: failed program was:" >&5
d9898ee8 14229sed 's/^/| /' conftest.$ac_ext >&5
14230
8d138742 14231 ac_cv_c_const=no
d9898ee8 14232fi
dd184caf 14233
14234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742
CE
14235fi
14236{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14237$as_echo "$ac_cv_c_const" >&6; }
14238if test $ac_cv_c_const = no; then
14239
14240cat >>confdefs.h <<\_ACEOF
14241#define const /**/
14242_ACEOF
14243
14244fi
d9898ee8 14245
8d138742
CE
14246
14247{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14248$as_echo_n "checking for ANSI C header files... " >&6; }
14249if test "${ac_cv_header_stdc+set}" = set; then
14250 $as_echo_n "(cached) " >&6
14251else
14252 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 14253/* confdefs.h. */
14254_ACEOF
14255cat confdefs.h >>conftest.$ac_ext
14256cat >>conftest.$ac_ext <<_ACEOF
14257/* end confdefs.h. */
8d138742
CE
14258#include <stdlib.h>
14259#include <stdarg.h>
14260#include <string.h>
14261#include <float.h>
14262
d9898ee8 14263int
14264main ()
14265{
d9898ee8 14266
14267 ;
14268 return 0;
14269}
14270_ACEOF
14271rm -f conftest.$ac_objext
dd184caf 14272if { (ac_try="$ac_compile"
14273case "(($ac_try" in
14274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14275 *) ac_try_echo=$ac_try;;
14276esac
8d138742
CE
14277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14278$as_echo "$ac_try_echo") >&5
dd184caf 14279 (eval "$ac_compile") 2>conftest.er1
d9898ee8 14280 ac_status=$?
14281 grep -v '^ *+' conftest.er1 >conftest.err
14282 rm -f conftest.er1
14283 cat conftest.err >&5
8d138742 14284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14285 (exit $ac_status); } && {
14286 test -z "$ac_c_werror_flag" ||
14287 test ! -s conftest.err
14288 } && test -s conftest.$ac_objext; then
8d138742
CE
14289 ac_cv_header_stdc=yes
14290else
14291 $as_echo "$as_me: failed program was:" >&5
14292sed 's/^/| /' conftest.$ac_ext >&5
14293
14294 ac_cv_header_stdc=no
14295fi
14296
14297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14298
14299if test $ac_cv_header_stdc = yes; then
14300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14301 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 14302/* confdefs.h. */
14303_ACEOF
14304cat confdefs.h >>conftest.$ac_ext
14305cat >>conftest.$ac_ext <<_ACEOF
14306/* end confdefs.h. */
8d138742
CE
14307#include <string.h>
14308
14309_ACEOF
14310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14311 $EGREP "memchr" >/dev/null 2>&1; then
14312 :
14313else
14314 ac_cv_header_stdc=no
14315fi
14316rm -f conftest*
14317
14318fi
14319
14320if test $ac_cv_header_stdc = yes; then
14321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14322 cat >conftest.$ac_ext <<_ACEOF
14323/* confdefs.h. */
14324_ACEOF
14325cat confdefs.h >>conftest.$ac_ext
14326cat >>conftest.$ac_ext <<_ACEOF
14327/* end confdefs.h. */
14328#include <stdlib.h>
14329
14330_ACEOF
14331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14332 $EGREP "free" >/dev/null 2>&1; then
14333 :
14334else
14335 ac_cv_header_stdc=no
14336fi
14337rm -f conftest*
14338
14339fi
14340
14341if test $ac_cv_header_stdc = yes; then
14342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14343 if test "$cross_compiling" = yes; then
14344 :
14345else
14346 cat >conftest.$ac_ext <<_ACEOF
14347/* confdefs.h. */
14348_ACEOF
14349cat confdefs.h >>conftest.$ac_ext
14350cat >>conftest.$ac_ext <<_ACEOF
14351/* end confdefs.h. */
14352#include <ctype.h>
14353#include <stdlib.h>
14354#if ((' ' & 0x0FF) == 0x020)
14355# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14356# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14357#else
14358# define ISLOWER(c) \
14359 (('a' <= (c) && (c) <= 'i') \
14360 || ('j' <= (c) && (c) <= 'r') \
14361 || ('s' <= (c) && (c) <= 'z'))
14362# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14363#endif
14364
14365#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
d9898ee8 14366int
14367main ()
14368{
8d138742
CE
14369 int i;
14370 for (i = 0; i < 256; i++)
14371 if (XOR (islower (i), ISLOWER (i))
14372 || toupper (i) != TOUPPER (i))
14373 return 2;
d9898ee8 14374 return 0;
14375}
14376_ACEOF
8d138742
CE
14377rm -f conftest$ac_exeext
14378if { (ac_try="$ac_link"
14379case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14382esac
14383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14384$as_echo "$ac_try_echo") >&5
14385 (eval "$ac_link") 2>&5
14386 ac_status=$?
14387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14389 { (case "(($ac_try" in
14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14392esac
14393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14394$as_echo "$ac_try_echo") >&5
14395 (eval "$ac_try") 2>&5
14396 ac_status=$?
14397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14399 :
14400else
14401 $as_echo "$as_me: program exited with status $ac_status" >&5
14402$as_echo "$as_me: failed program was:" >&5
14403sed 's/^/| /' conftest.$ac_ext >&5
14404
14405( exit $ac_status )
14406ac_cv_header_stdc=no
14407fi
14408rm -rf conftest.dSYM
14409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14410fi
14411
14412
14413fi
14414fi
14415{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14416$as_echo "$ac_cv_header_stdc" >&6; }
14417if test $ac_cv_header_stdc = yes; then
14418
14419cat >>confdefs.h <<\_ACEOF
14420#define STDC_HEADERS 1
14421_ACEOF
14422
14423fi
14424
14425
14426ac_config_files="$ac_config_files Makefile"
14427
14428cat >confcache <<\_ACEOF
14429# This file is a shell script that caches the results of configure
14430# tests run on this system so they can be shared between configure
14431# scripts and configure runs, see configure's option --config-cache.
14432# It is not useful on other systems. If it contains results you don't
14433# want to keep, you may remove or edit it.
14434#
14435# config.status only pays attention to the cache file if you give it
14436# the --recheck option to rerun configure.
14437#
14438# `ac_cv_env_foo' variables (set or unset) will be overridden when
14439# loading this file, other *unset* `ac_cv_foo' will be assigned the
14440# following values.
14441
14442_ACEOF
14443
14444# The following way of writing the cache mishandles newlines in values,
14445# but we know of no workaround that is simple, portable, and efficient.
14446# So, we kill variables containing newlines.
14447# Ultrix sh set writes to stderr and can't be redirected directly,
14448# and sets the high bit in the cache file unless we assign to the vars.
14449(
14450 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14451 eval ac_val=\$$ac_var
14452 case $ac_val in #(
14453 *${as_nl}*)
14454 case $ac_var in #(
14455 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14456$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14457 esac
14458 case $ac_var in #(
14459 _ | IFS | as_nl) ;; #(
14460 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14461 *) $as_unset $ac_var ;;
14462 esac ;;
14463 esac
14464 done
14465
14466 (set) 2>&1 |
14467 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14468 *${as_nl}ac_space=\ *)
14469 # `set' does not quote correctly, so add quotes (double-quote
14470 # substitution turns \\\\ into \\, and sed turns \\ into \).
14471 sed -n \
14472 "s/'/'\\\\''/g;
14473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14474 ;; #(
14475 *)
14476 # `set' quotes correctly as required by POSIX, so do not add quotes.
14477 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14478 ;;
14479 esac |
14480 sort
14481) |
14482 sed '
14483 /^ac_cv_env_/b end
14484 t clear
14485 :clear
14486 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14487 t end
14488 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14489 :end' >>confcache
14490if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14491 if test -w "$cache_file"; then
14492 test "x$cache_file" != "x/dev/null" &&
14493 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14494$as_echo "$as_me: updating cache $cache_file" >&6;}
14495 cat confcache >$cache_file
14496 else
14497 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14498$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14499 fi
14500fi
14501rm -f confcache
14502
14503test "x$prefix" = xNONE && prefix=$ac_default_prefix
14504# Let make expand exec_prefix.
14505test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14506
14507DEFS=-DHAVE_CONFIG_H
14508
14509ac_libobjs=
14510ac_ltlibobjs=
14511for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14512 # 1. Remove the extension, and $U if already installed.
14513 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14514 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14515 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14516 # will be set to the directory where LIBOBJS objects are built.
14517 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14518 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14519done
14520LIBOBJS=$ac_libobjs
14521
14522LTLIBOBJS=$ac_ltlibobjs
14523
14524
14525 if test -n "$EXEEXT"; then
14526 am__EXEEXT_TRUE=
14527 am__EXEEXT_FALSE='#'
14528else
14529 am__EXEEXT_TRUE='#'
14530 am__EXEEXT_FALSE=
14531fi
14532
14533if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then
14534 { { $as_echo "$as_me:$LINENO: error: conditional \"HMACC\" was never defined.
14535Usually this means the macro was only invoked conditionally." >&5
14536$as_echo "$as_me: error: conditional \"HMACC\" was never defined.
14537Usually this means the macro was only invoked conditionally." >&2;}
14538 { (exit 1); exit 1; }; }
14539fi
14540if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14541 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14542Usually this means the macro was only invoked conditionally." >&5
14543$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14544Usually this means the macro was only invoked conditionally." >&2;}
14545 { (exit 1); exit 1; }; }
14546fi
14547if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14548 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14549Usually this means the macro was only invoked conditionally." >&5
14550$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14551Usually this means the macro was only invoked conditionally." >&2;}
14552 { (exit 1); exit 1; }; }
14553fi
14554
14555: ${CONFIG_STATUS=./config.status}
14556ac_write_fail=0
14557ac_clean_files_save=$ac_clean_files
14558ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14559{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14560$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14561cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14562#! $SHELL
14563# Generated by $as_me.
14564# Run this file to recreate the current configuration.
14565# Compiler output produced by configure, useful for debugging
14566# configure, is in config.log if it exists.
14567
14568debug=false
14569ac_cs_recheck=false
14570ac_cs_silent=false
14571SHELL=\${CONFIG_SHELL-$SHELL}
14572_ACEOF
d9898ee8 14573
8d138742
CE
14574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14575## --------------------- ##
14576## M4sh Initialization. ##
14577## --------------------- ##
dd184caf 14578
8d138742
CE
14579# Be more Bourne compatible
14580DUALCASE=1; export DUALCASE # for MKS sh
14581if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14582 emulate sh
14583 NULLCMD=:
14584 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14585 # is contrary to our usage. Disable this feature.
14586 alias -g '${1+"$@"}'='"$@"'
14587 setopt NO_GLOB_SUBST
d9898ee8 14588else
8d138742
CE
14589 case `(set -o) 2>/dev/null` in
14590 *posix*) set -o posix ;;
14591esac
d9898ee8 14592
d9898ee8 14593fi
dd184caf 14594
8d138742
CE
14595
14596
14597
14598# PATH needs CR
14599# Avoid depending upon Character Ranges.
14600as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14601as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14602as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14603as_cr_digits='0123456789'
14604as_cr_alnum=$as_cr_Letters$as_cr_digits
14605
14606as_nl='
14607'
14608export as_nl
14609# Printing a long string crashes Solaris 7 /usr/bin/printf.
14610as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14611as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14612as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14613if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14614 as_echo='printf %s\n'
14615 as_echo_n='printf %s'
14616else
14617 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14618 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14619 as_echo_n='/usr/ucb/echo -n'
14620 else
14621 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14622 as_echo_n_body='eval
14623 arg=$1;
14624 case $arg in
14625 *"$as_nl"*)
14626 expr "X$arg" : "X\\(.*\\)$as_nl";
14627 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14628 esac;
14629 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14630 '
14631 export as_echo_n_body
14632 as_echo_n='sh -c $as_echo_n_body as_echo'
14633 fi
14634 export as_echo_body
14635 as_echo='sh -c $as_echo_body as_echo'
d9898ee8 14636fi
dd184caf 14637
8d138742
CE
14638# The user is always right.
14639if test "${PATH_SEPARATOR+set}" != set; then
14640 PATH_SEPARATOR=:
14641 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14642 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14643 PATH_SEPARATOR=';'
14644 }
14645fi
d9898ee8 14646
8d138742
CE
14647# Support unset when possible.
14648if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14649 as_unset=unset
d9898ee8 14650else
8d138742 14651 as_unset=false
d9898ee8 14652fi
dd184caf 14653
8d138742
CE
14654
14655# IFS
14656# We need space, tab and new line, in precisely that order. Quoting is
14657# there to prevent editors from complaining about space-tab.
14658# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14659# splitting by setting IFS to empty value.)
14660IFS=" "" $as_nl"
14661
14662# Find who we are. Look in the path if we contain no directory separator.
14663case $0 in
14664 *[\\/]* ) as_myself=$0 ;;
14665 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14666for as_dir in $PATH
14667do
14668 IFS=$as_save_IFS
14669 test -z "$as_dir" && as_dir=.
14670 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
d9898ee8 14671done
8d138742
CE
14672IFS=$as_save_IFS
14673
14674 ;;
d9898ee8 14675esac
8d138742
CE
14676# We did not find ourselves, most probably we were run as `sh COMMAND'
14677# in which case we are not to be found in the path.
14678if test "x$as_myself" = x; then
14679 as_myself=$0
14680fi
14681if test ! -f "$as_myself"; then
14682 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14683 { (exit 1); exit 1; }
14684fi
14685
14686# Work around bugs in pre-3.0 UWIN ksh.
14687for as_var in ENV MAIL MAILPATH
14688do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14689done
14690PS1='$ '
14691PS2='> '
14692PS4='+ '
14693
14694# NLS nuisances.
14695LC_ALL=C
14696export LC_ALL
14697LANGUAGE=C
14698export LANGUAGE
14699
14700# Required to use basename.
14701if expr a : '\(a\)' >/dev/null 2>&1 &&
14702 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14703 as_expr=expr
d9898ee8 14704else
8d138742
CE
14705 as_expr=false
14706fi
d9898ee8 14707
8d138742
CE
14708if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14709 as_basename=basename
14710else
14711 as_basename=false
14712fi
d9898ee8 14713
8d138742
CE
14714
14715# Name of the executable.
14716as_me=`$as_basename -- "$0" ||
14717$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14718 X"$0" : 'X\(//\)$' \| \
14719 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14720$as_echo X/"$0" |
14721 sed '/^.*\/\([^/][^/]*\)\/*$/{
14722 s//\1/
14723 q
14724 }
14725 /^X\/\(\/\/\)$/{
14726 s//\1/
14727 q
14728 }
14729 /^X\/\(\/\).*/{
14730 s//\1/
14731 q
14732 }
14733 s/.*/./; q'`
14734
14735# CDPATH.
14736$as_unset CDPATH
14737
14738
14739
14740 as_lineno_1=$LINENO
14741 as_lineno_2=$LINENO
14742 test "x$as_lineno_1" != "x$as_lineno_2" &&
14743 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14744
14745 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14746 # uniformly replaced by the line number. The first 'sed' inserts a
14747 # line-number line after each line using $LINENO; the second 'sed'
14748 # does the real work. The second script uses 'N' to pair each
14749 # line-number line with the line containing $LINENO, and appends
14750 # trailing '-' during substitution so that $LINENO is not a special
14751 # case at line end.
14752 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14753 # scripts with optimization help from Paolo Bonzini. Blame Lee
14754 # E. McMahon (1931-1989) for sed's syntax. :-)
14755 sed -n '
14756 p
14757 /[$]LINENO/=
14758 ' <$as_myself |
14759 sed '
14760 s/[$]LINENO.*/&-/
14761 t lineno
14762 b
14763 :lineno
14764 N
14765 :loop
14766 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14767 t loop
14768 s/-\n.*//
14769 ' >$as_me.lineno &&
14770 chmod +x "$as_me.lineno" ||
14771 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14772 { (exit 1); exit 1; }; }
14773
14774 # Don't try to exec as it changes $[0], causing all sort of problems
14775 # (the dirname of $[0] is not the place where we might find the
14776 # original and so on. Autoconf is especially sensitive to this).
14777 . "./$as_me.lineno"
14778 # Exit status is that of the last command.
14779 exit
d9898ee8 14780}
8d138742
CE
14781
14782
14783if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14784 as_dirname=dirname
14785else
14786 as_dirname=false
14787fi
14788
14789ECHO_C= ECHO_N= ECHO_T=
14790case `echo -n x` in
14791-n*)
14792 case `echo 'x\c'` in
14793 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14794 *) ECHO_C='\c';;
14795 esac;;
14796*)
14797 ECHO_N='-n';;
dd184caf 14798esac
8d138742
CE
14799if expr a : '\(a\)' >/dev/null 2>&1 &&
14800 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14801 as_expr=expr
d9898ee8 14802else
8d138742
CE
14803 as_expr=false
14804fi
d9898ee8 14805
8d138742
CE
14806rm -f conf$$ conf$$.exe conf$$.file
14807if test -d conf$$.dir; then
14808 rm -f conf$$.dir/conf$$.file
14809else
14810 rm -f conf$$.dir
14811 mkdir conf$$.dir 2>/dev/null
14812fi
14813if (echo >conf$$.file) 2>/dev/null; then
14814 if ln -s conf$$.file conf$$ 2>/dev/null; then
14815 as_ln_s='ln -s'
14816 # ... but there are two gotchas:
14817 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14818 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14819 # In both cases, we have to default to `cp -p'.
14820 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14821 as_ln_s='cp -p'
14822 elif ln conf$$.file conf$$ 2>/dev/null; then
14823 as_ln_s=ln
14824 else
14825 as_ln_s='cp -p'
14826 fi
14827else
14828 as_ln_s='cp -p'
d9898ee8 14829fi
8d138742
CE
14830rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14831rmdir conf$$.dir 2>/dev/null
14832
14833if mkdir -p . 2>/dev/null; then
14834 as_mkdir_p=:
14835else
14836 test -d ./-p && rmdir ./-p
14837 as_mkdir_p=false
d9898ee8 14838fi
8d138742
CE
14839
14840if test -x / >/dev/null 2>&1; then
14841 as_test_x='test -x'
14842else
14843 if ls -dL / >/dev/null 2>&1; then
14844 as_ls_L_option=L
14845 else
14846 as_ls_L_option=
14847 fi
14848 as_test_x='
14849 eval sh -c '\''
14850 if test -d "$1"; then
14851 test -d "$1/.";
14852 else
14853 case $1 in
14854 -*)set "./$1";;
14855 esac;
14856 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14857 ???[sx]*):;;*)false;;esac;fi
14858 '\'' sh
14859 '
d9898ee8 14860fi
8d138742 14861as_executable_p=$as_test_x
dd184caf 14862
8d138742
CE
14863# Sed expression to map a string onto a valid CPP name.
14864as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
dd184caf 14865
8d138742
CE
14866# Sed expression to map a string onto a valid variable name.
14867as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
dd184caf 14868
d9898ee8 14869
8d138742 14870exec 6>&1
d9898ee8 14871
8d138742
CE
14872# Save the log message, to keep $[0] and so on meaningful, and to
14873# report actual input values of CONFIG_FILES etc. instead of their
14874# values after options handling.
14875ac_log="
14876This file was extended by libsha1 $as_me 1.21, which was
14877generated by GNU Autoconf 2.63. Invocation command line was
d9898ee8 14878
8d138742
CE
14879 CONFIG_FILES = $CONFIG_FILES
14880 CONFIG_HEADERS = $CONFIG_HEADERS
14881 CONFIG_LINKS = $CONFIG_LINKS
14882 CONFIG_COMMANDS = $CONFIG_COMMANDS
14883 $ $0 $@
dd184caf 14884
8d138742
CE
14885on `(hostname || uname -n) 2>/dev/null | sed 1q`
14886"
d9898ee8 14887
d9898ee8 14888_ACEOF
d9898ee8 14889
8d138742
CE
14890case $ac_config_files in *"
14891"*) set x $ac_config_files; shift; ac_config_files=$*;;
dd184caf 14892esac
d9898ee8 14893
8d138742
CE
14894case $ac_config_headers in *"
14895"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
dd184caf 14896esac
d9898ee8 14897
dd184caf 14898
8d138742
CE
14899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14900# Files that config.status was made for.
14901config_files="$ac_config_files"
14902config_headers="$ac_config_headers"
14903config_commands="$ac_config_commands"
d9898ee8 14904
d9898ee8 14905_ACEOF
d9898ee8 14906
8d138742
CE
14907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14908ac_cs_usage="\
14909\`$as_me' instantiates files from templates according to the
14910current configuration.
14911
14912Usage: $0 [OPTION]... [FILE]...
14913
14914 -h, --help print this help, then exit
14915 -V, --version print version number and configuration settings, then exit
14916 -q, --quiet, --silent
14917 do not print progress messages
14918 -d, --debug don't remove temporary files
14919 --recheck update $as_me by reconfiguring in the same conditions
14920 --file=FILE[:TEMPLATE]
14921 instantiate the configuration file FILE
14922 --header=FILE[:TEMPLATE]
14923 instantiate the configuration header FILE
14924
14925Configuration files:
14926$config_files
14927
14928Configuration headers:
14929$config_headers
14930
14931Configuration commands:
14932$config_commands
14933
14934Report bugs to <bug-autoconf@gnu.org>."
14935
d9898ee8 14936_ACEOF
8d138742
CE
14937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14938ac_cs_version="\\
14939libsha1 config.status 1.21
14940configured by $0, generated by GNU Autoconf 2.63,
14941 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 14942
8d138742
CE
14943Copyright (C) 2008 Free Software Foundation, Inc.
14944This config.status script is free software; the Free Software Foundation
14945gives unlimited permission to copy, distribute and modify it."
14946
14947ac_pwd='$ac_pwd'
14948srcdir='$srcdir'
14949INSTALL='$INSTALL'
14950MKDIR_P='$MKDIR_P'
14951AWK='$AWK'
14952test -n "\$AWK" || AWK=awk
d9898ee8 14953_ACEOF
d9898ee8 14954
8d138742
CE
14955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14956# The default lists apply if the user does not specify any file.
14957ac_need_defaults=:
14958while test $# != 0
14959do
14960 case $1 in
14961 --*=*)
14962 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14963 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14964 ac_shift=:
14965 ;;
14966 *)
14967 ac_option=$1
14968 ac_optarg=$2
14969 ac_shift=shift
14970 ;;
14971 esac
dd184caf 14972
8d138742
CE
14973 case $ac_option in
14974 # Handling of the options.
14975 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14976 ac_cs_recheck=: ;;
14977 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14978 $as_echo "$ac_cs_version"; exit ;;
14979 --debug | --debu | --deb | --de | --d | -d )
14980 debug=: ;;
14981 --file | --fil | --fi | --f )
14982 $ac_shift
14983 case $ac_optarg in
14984 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14985 esac
14986 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14987 ac_need_defaults=false;;
14988 --header | --heade | --head | --hea )
14989 $ac_shift
14990 case $ac_optarg in
14991 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14992 esac
14993 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14994 ac_need_defaults=false;;
14995 --he | --h)
14996 # Conflict between --help and --header
14997 { $as_echo "$as_me: error: ambiguous option: $1
14998Try \`$0 --help' for more information." >&2
14999 { (exit 1); exit 1; }; };;
15000 --help | --hel | -h )
15001 $as_echo "$ac_cs_usage"; exit ;;
15002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15003 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15004 ac_cs_silent=: ;;
d9898ee8 15005
8d138742
CE
15006 # This is an error.
15007 -*) { $as_echo "$as_me: error: unrecognized option: $1
15008Try \`$0 --help' for more information." >&2
15009 { (exit 1); exit 1; }; } ;;
15010
15011 *) ac_config_targets="$ac_config_targets $1"
15012 ac_need_defaults=false ;;
15013
15014 esac
15015 shift
15016done
15017
15018ac_configure_extra_args=
15019
15020if $ac_cs_silent; then
15021 exec 6>/dev/null
15022 ac_configure_extra_args="$ac_configure_extra_args --silent"
d9898ee8 15023fi
dd184caf 15024
8d138742
CE
15025_ACEOF
15026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15027if \$ac_cs_recheck; then
15028 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15029 shift
15030 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15031 CONFIG_SHELL='$SHELL'
15032 export CONFIG_SHELL
15033 exec "\$@"
d9898ee8 15034fi
dd184caf 15035
d9898ee8 15036_ACEOF
8d138742
CE
15037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15038exec 5>>config.log
d9898ee8 15039{
8d138742
CE
15040 echo
15041 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15042## Running $as_me. ##
15043_ASBOX
15044 $as_echo "$ac_log"
15045} >&5
d9898ee8 15046
d9898ee8 15047_ACEOF
8d138742
CE
15048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15049#
15050# INIT-COMMANDS
15051#
15052AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 15053
dd184caf 15054
8d138742
CE
15055# The HP-UX ksh and POSIX shell print the target directory to stdout
15056# if CDPATH is set.
15057(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15058
15059sed_quote_subst='$sed_quote_subst'
15060double_quote_subst='$double_quote_subst'
15061delay_variable_subst='$delay_variable_subst'
15062macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15063macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15064enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15065enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15066pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15067enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15068host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15069host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15070host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15071build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15072build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15073build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15074SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15075Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15076GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15077EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15078FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15079LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15080NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15081LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15082max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15083ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15084exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15085lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15086lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15087lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15088reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15089reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15090OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15091deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15092file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15093AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15094AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15095STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15096RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15097old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15098old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15099old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15100CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15101CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15102compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15103GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15104lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15105lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15106lt_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"`'
15107lt_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"`'
15108objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15109SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15110ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15111MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15112lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15113lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15114lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15115lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15116lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15117need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15118DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15119NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15120LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15121OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15122OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15123libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15124shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15125extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15126archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15127enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15128export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15129whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15130compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15131old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15132old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15133archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15134archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15135module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15136module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15137with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15138allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15139no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15140hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15141hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15142hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15143hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15144hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15145hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15146hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15147hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15148inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15149link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15150fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15151always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15152export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15153exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15154include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15155prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15156file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15157variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15158need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15159need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15160version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15161runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15162shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15163shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15164libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15165library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15166soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15167postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15168postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15169finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15170finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15171hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15172sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15173sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15174hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15175enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15176enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15177enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15178old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15179striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15180
15181LTCC='$LTCC'
15182LTCFLAGS='$LTCFLAGS'
15183compiler='$compiler_DEFAULT'
15184
15185# Quote evaled strings.
15186for var in SED \
15187GREP \
15188EGREP \
15189FGREP \
15190LD \
15191NM \
15192LN_S \
15193lt_SP2NL \
15194lt_NL2SP \
15195reload_flag \
15196OBJDUMP \
15197deplibs_check_method \
15198file_magic_cmd \
15199AR \
15200AR_FLAGS \
15201STRIP \
15202RANLIB \
15203CC \
15204CFLAGS \
15205compiler \
15206lt_cv_sys_global_symbol_pipe \
15207lt_cv_sys_global_symbol_to_cdecl \
15208lt_cv_sys_global_symbol_to_c_name_address \
15209lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15210SHELL \
15211ECHO \
15212lt_prog_compiler_no_builtin_flag \
15213lt_prog_compiler_wl \
15214lt_prog_compiler_pic \
15215lt_prog_compiler_static \
15216lt_cv_prog_compiler_c_o \
15217need_locks \
15218DSYMUTIL \
15219NMEDIT \
15220LIPO \
15221OTOOL \
15222OTOOL64 \
15223shrext_cmds \
15224export_dynamic_flag_spec \
15225whole_archive_flag_spec \
15226compiler_needs_object \
15227with_gnu_ld \
15228allow_undefined_flag \
15229no_undefined_flag \
15230hardcode_libdir_flag_spec \
15231hardcode_libdir_flag_spec_ld \
15232hardcode_libdir_separator \
15233fix_srcfile_path \
15234exclude_expsyms \
15235include_expsyms \
15236file_list_spec \
15237variables_saved_for_relink \
15238libname_spec \
15239library_names_spec \
15240soname_spec \
15241finish_eval \
15242old_striplib \
15243striplib; do
15244 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15245 *[\\\\\\\`\\"\\\$]*)
15246 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15247 ;;
15248 *)
15249 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15250 ;;
15251 esac
d9898ee8 15252done
d9898ee8 15253
8d138742
CE
15254# Double-quote double-evaled strings.
15255for var in reload_cmds \
15256old_postinstall_cmds \
15257old_postuninstall_cmds \
15258old_archive_cmds \
15259extract_expsyms_cmds \
15260old_archive_from_new_cmds \
15261old_archive_from_expsyms_cmds \
15262archive_cmds \
15263archive_expsym_cmds \
15264module_cmds \
15265module_expsym_cmds \
15266export_symbols_cmds \
15267prelink_cmds \
15268postinstall_cmds \
15269postuninstall_cmds \
15270finish_cmds \
15271sys_lib_search_path_spec \
15272sys_lib_dlsearch_path_spec; do
15273 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15274 *[\\\\\\\`\\"\\\$]*)
15275 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15276 ;;
15277 *)
15278 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15279 ;;
15280 esac
15281done
d9898ee8 15282
8d138742
CE
15283# Fix-up fallback echo if it was mangled by the above quoting rules.
15284case \$lt_ECHO in
15285*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15286 ;;
dd184caf 15287esac
d9898ee8 15288
8d138742
CE
15289ac_aux_dir='$ac_aux_dir'
15290xsi_shell='$xsi_shell'
15291lt_shell_append='$lt_shell_append'
15292
15293# See if we are running on zsh, and set the options which allow our
15294# commands through without removal of \ escapes INIT.
15295if test -n "\${ZSH_VERSION+set}" ; then
15296 setopt NO_GLOB_SUBST
d9898ee8 15297fi
dd184caf 15298
15299
8d138742
CE
15300 PACKAGE='$PACKAGE'
15301 VERSION='$VERSION'
15302 TIMESTAMP='$TIMESTAMP'
15303 RM='$RM'
15304 ofile='$ofile'
dd184caf 15305
d9898ee8 15306
15307
d9898ee8 15308
8d138742 15309_ACEOF
dd184caf 15310
8d138742 15311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d9898ee8 15312
8d138742
CE
15313# Handling of arguments.
15314for ac_config_target in $ac_config_targets
15315do
15316 case $ac_config_target in
15317 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15318 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15319 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15320 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
dd184caf 15321
8d138742
CE
15322 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15323$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15324 { (exit 1); exit 1; }; };;
15325 esac
15326done
d9898ee8 15327
15328
8d138742
CE
15329# If the user did not use the arguments to specify the items to instantiate,
15330# then the envvar interface is used. Set only those that are not.
15331# We use the long form for the default assignment because of an extremely
15332# bizarre bug on SunOS 4.1.3.
15333if $ac_need_defaults; then
15334 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15335 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15336 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
dd184caf 15337fi
15338
8d138742
CE
15339# Have a temporary directory for convenience. Make it in the build tree
15340# simply because there is no reason against having it here, and in addition,
15341# creating and moving files from /tmp can sometimes cause problems.
15342# Hook for its removal unless debugging.
15343# Note that there is a small window in which the directory will not be cleaned:
15344# after its creation but before its name has been assigned to `$tmp'.
15345$debug ||
15346{
15347 tmp=
15348 trap 'exit_status=$?
15349 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15350' 0
15351 trap '{ (exit 1); exit 1; }' 1 2 13 15
15352}
15353# Create a (secure) tmp directory for tmp files.
d9898ee8 15354
8d138742
CE
15355{
15356 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15357 test -n "$tmp" && test -d "$tmp"
15358} ||
15359{
15360 tmp=./conf$$-$RANDOM
15361 (umask 077 && mkdir "$tmp")
15362} ||
15363{
15364 $as_echo "$as_me: cannot create a temporary directory in ." >&2
15365 { (exit 1); exit 1; }
15366}
d9898ee8 15367
8d138742
CE
15368# Set up the scripts for CONFIG_FILES section.
15369# No need to generate them if there are no CONFIG_FILES.
15370# This happens for instance with `./config.status config.h'.
15371if test -n "$CONFIG_FILES"; then
d9898ee8 15372
15373
8d138742
CE
15374ac_cr='\r'
15375ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15376if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15377 ac_cs_awk_cr='\\r'
d9898ee8 15378else
8d138742
CE
15379 ac_cs_awk_cr=$ac_cr
15380fi
15381
15382echo 'BEGIN {' >"$tmp/subs1.awk" &&
d9898ee8 15383_ACEOF
d9898ee8 15384
8d138742 15385
d9898ee8 15386{
8d138742
CE
15387 echo "cat >conf$$subs.awk <<_ACEOF" &&
15388 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15389 echo "_ACEOF"
15390} >conf$$subs.sh ||
15391 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15392$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15393 { (exit 1); exit 1; }; }
15394ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15395ac_delim='%!_!# '
15396for ac_last_try in false false false false false :; do
15397 . ./conf$$subs.sh ||
15398 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15399$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15400 { (exit 1); exit 1; }; }
d9898ee8 15401
8d138742
CE
15402 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15403 if test $ac_delim_n = $ac_delim_num; then
15404 break
15405 elif $ac_last_try; then
15406 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15407$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15408 { (exit 1); exit 1; }; }
15409 else
15410 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15411 fi
15412done
15413rm -f conf$$subs.sh
d9898ee8 15414
8d138742
CE
15415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15416cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
d9898ee8 15417_ACEOF
8d138742
CE
15418sed -n '
15419h
15420s/^/S["/; s/!.*/"]=/
15421p
15422g
15423s/^[^!]*!//
15424:repl
15425t repl
15426s/'"$ac_delim"'$//
15427t delim
15428:nl
15429h
15430s/\(.\{148\}\).*/\1/
15431t more1
15432s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15433p
15434n
15435b repl
15436:more1
15437s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15438p
15439g
15440s/.\{148\}//
15441t nl
15442:delim
15443h
15444s/\(.\{148\}\).*/\1/
15445t more2
15446s/["\\]/\\&/g; s/^/"/; s/$/"/
15447p
15448b
15449:more2
15450s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15451p
15452g
15453s/.\{148\}//
15454t delim
15455' <conf$$subs.awk | sed '
15456/^[^""]/{
15457 N
15458 s/\n//
15459}
15460' >>$CONFIG_STATUS || ac_write_fail=1
15461rm -f conf$$subs.awk
15462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15463_ACAWK
15464cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15465 for (key in S) S_is_set[key] = 1
15466 FS = "\a"
d9898ee8 15467
8d138742
CE
15468}
15469{
15470 line = $ 0
15471 nfields = split(line, field, "@")
15472 substed = 0
15473 len = length(field[1])
15474 for (i = 2; i < nfields; i++) {
15475 key = field[i]
15476 keylen = length(key)
15477 if (S_is_set[key]) {
15478 value = S[key]
15479 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15480 len += length(value) + length(field[++i])
15481 substed = 1
15482 } else
15483 len += 1 + keylen
15484 }
dd184caf 15485
8d138742
CE
15486 print line
15487}
d9898ee8 15488
8d138742
CE
15489_ACAWK
15490_ACEOF
15491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15492if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15493 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15494else
15495 cat
15496fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15497 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15498$as_echo "$as_me: error: could not setup config files machinery" >&2;}
15499 { (exit 1); exit 1; }; }
d9898ee8 15500_ACEOF
15501
8d138742
CE
15502# VPATH may cause trouble with some makes, so we remove $(srcdir),
15503# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15504# trailing colons and then remove the whole line if VPATH becomes empty
15505# (actually we leave an empty line to preserve line numbers).
15506if test "x$srcdir" = x.; then
15507 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15508s/:*\$(srcdir):*/:/
15509s/:*\${srcdir}:*/:/
15510s/:*@srcdir@:*/:/
15511s/^\([^=]*=[ ]*\):*/\1/
15512s/:*$//
15513s/^[^=]*=[ ]*$//
15514}'
d9898ee8 15515fi
15516
8d138742
CE
15517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15518fi # test -n "$CONFIG_FILES"
d9898ee8 15519
8d138742
CE
15520# Set up the scripts for CONFIG_HEADERS section.
15521# No need to generate them if there are no CONFIG_HEADERS.
15522# This happens for instance with `./config.status Makefile'.
15523if test -n "$CONFIG_HEADERS"; then
15524cat >"$tmp/defines.awk" <<\_ACAWK ||
15525BEGIN {
d9898ee8 15526_ACEOF
d9898ee8 15527
8d138742
CE
15528# Transform confdefs.h into an awk script `defines.awk', embedded as
15529# here-document in config.status, that substitutes the proper values into
15530# config.h.in to produce config.h.
d9898ee8 15531
8d138742
CE
15532# Create a delimiter string that does not exist in confdefs.h, to ease
15533# handling of long lines.
15534ac_delim='%!_!# '
15535for ac_last_try in false false :; do
15536 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15537 if test -z "$ac_t"; then
15538 break
15539 elif $ac_last_try; then
15540 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15541$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15542 { (exit 1); exit 1; }; }
15543 else
15544 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15545 fi
15546done
15547
15548# For the awk script, D is an array of macro values keyed by name,
15549# likewise P contains macro parameters if any. Preserve backslash
15550# newline sequences.
15551
15552ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15553sed -n '
15554s/.\{148\}/&'"$ac_delim"'/g
15555t rset
15556:rset
15557s/^[ ]*#[ ]*define[ ][ ]*/ /
15558t def
15559d
15560:def
15561s/\\$//
15562t bsnl
15563s/["\\]/\\&/g
15564s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15565D["\1"]=" \3"/p
15566s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15567d
15568:bsnl
15569s/["\\]/\\&/g
15570s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15571D["\1"]=" \3\\\\\\n"\\/p
15572t cont
15573s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15574t cont
15575d
15576:cont
15577n
15578s/.\{148\}/&'"$ac_delim"'/g
15579t clear
15580:clear
15581s/\\$//
15582t bsnlc
15583s/["\\]/\\&/g; s/^/"/; s/$/"/p
15584d
15585:bsnlc
15586s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15587b cont
15588' <confdefs.h | sed '
15589s/'"$ac_delim"'/"\\\
15590"/g' >>$CONFIG_STATUS || ac_write_fail=1
15591
15592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15593 for (key in D) D_is_set[key] = 1
15594 FS = "\a"
15595}
15596/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15597 line = \$ 0
15598 split(line, arg, " ")
15599 if (arg[1] == "#") {
15600 defundef = arg[2]
15601 mac1 = arg[3]
15602 } else {
15603 defundef = substr(arg[1], 2)
15604 mac1 = arg[2]
15605 }
15606 split(mac1, mac2, "(") #)
15607 macro = mac2[1]
15608 prefix = substr(line, 1, index(line, defundef) - 1)
15609 if (D_is_set[macro]) {
15610 # Preserve the white space surrounding the "#".
15611 print prefix "define", macro P[macro] D[macro]
15612 next
15613 } else {
15614 # Replace #undef with comments. This is necessary, for example,
15615 # in the case of _POSIX_SOURCE, which is predefined and required
15616 # on some systems where configure will not decide to define it.
15617 if (defundef == "undef") {
15618 print "/*", prefix defundef, macro, "*/"
15619 next
15620 }
15621 }
d9898ee8 15622}
8d138742
CE
15623{ print }
15624_ACAWK
d9898ee8 15625_ACEOF
8d138742
CE
15626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15627 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
15628$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
15629 { (exit 1); exit 1; }; }
15630fi # test -n "$CONFIG_HEADERS"
15631
15632
15633eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15634shift
15635for ac_tag
15636do
15637 case $ac_tag in
15638 :[FHLC]) ac_mode=$ac_tag; continue;;
15639 esac
15640 case $ac_mode$ac_tag in
15641 :[FHL]*:*);;
15642 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
15643$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
15644 { (exit 1); exit 1; }; };;
15645 :[FH]-) ac_tag=-:-;;
15646 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15647 esac
15648 ac_save_IFS=$IFS
15649 IFS=:
15650 set x $ac_tag
15651 IFS=$ac_save_IFS
15652 shift
15653 ac_file=$1
15654 shift
d9898ee8 15655
8d138742
CE
15656 case $ac_mode in
15657 :L) ac_source=$1;;
15658 :[FH])
15659 ac_file_inputs=
15660 for ac_f
15661 do
15662 case $ac_f in
15663 -) ac_f="$tmp/stdin";;
15664 *) # Look for the file first in the build tree, then in the source tree
15665 # (if the path is not absolute). The absolute path cannot be DOS-style,
15666 # because $ac_f cannot contain `:'.
15667 test -f "$ac_f" ||
15668 case $ac_f in
15669 [\\/$]*) false;;
15670 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15671 esac ||
15672 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15673$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15674 { (exit 1); exit 1; }; };;
15675 esac
15676 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15677 ac_file_inputs="$ac_file_inputs '$ac_f'"
15678 done
dd184caf 15679
8d138742
CE
15680 # Let's still pretend it is `configure' which instantiates (i.e., don't
15681 # use $as_me), people would be surprised to read:
15682 # /* config.h. Generated by config.status. */
15683 configure_input='Generated from '`
15684 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15685 `' by configure.'
15686 if test x"$ac_file" != x-; then
15687 configure_input="$ac_file. $configure_input"
15688 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15689$as_echo "$as_me: creating $ac_file" >&6;}
15690 fi
15691 # Neutralize special characters interpreted by sed in replacement strings.
15692 case $configure_input in #(
15693 *\&* | *\|* | *\\* )
15694 ac_sed_conf_input=`$as_echo "$configure_input" |
15695 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15696 *) ac_sed_conf_input=$configure_input;;
15697 esac
d9898ee8 15698
8d138742
CE
15699 case $ac_tag in
15700 *:-:* | *:-) cat >"$tmp/stdin" \
15701 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15702$as_echo "$as_me: error: could not create $ac_file" >&2;}
15703 { (exit 1); exit 1; }; } ;;
15704 esac
15705 ;;
15706 esac
d9898ee8 15707
8d138742
CE
15708 ac_dir=`$as_dirname -- "$ac_file" ||
15709$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15710 X"$ac_file" : 'X\(//\)[^/]' \| \
15711 X"$ac_file" : 'X\(//\)$' \| \
15712 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15713$as_echo X"$ac_file" |
15714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15715 s//\1/
15716 q
15717 }
15718 /^X\(\/\/\)[^/].*/{
15719 s//\1/
15720 q
15721 }
15722 /^X\(\/\/\)$/{
15723 s//\1/
15724 q
15725 }
15726 /^X\(\/\).*/{
15727 s//\1/
15728 q
15729 }
15730 s/.*/./; q'`
15731 { as_dir="$ac_dir"
15732 case $as_dir in #(
15733 -*) as_dir=./$as_dir;;
15734 esac
15735 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15736 as_dirs=
15737 while :; do
15738 case $as_dir in #(
15739 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15740 *) as_qdir=$as_dir;;
15741 esac
15742 as_dirs="'$as_qdir' $as_dirs"
15743 as_dir=`$as_dirname -- "$as_dir" ||
15744$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15745 X"$as_dir" : 'X\(//\)[^/]' \| \
15746 X"$as_dir" : 'X\(//\)$' \| \
15747 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15748$as_echo X"$as_dir" |
15749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15750 s//\1/
15751 q
15752 }
15753 /^X\(\/\/\)[^/].*/{
15754 s//\1/
15755 q
15756 }
15757 /^X\(\/\/\)$/{
15758 s//\1/
15759 q
15760 }
15761 /^X\(\/\).*/{
15762 s//\1/
15763 q
15764 }
15765 s/.*/./; q'`
15766 test -d "$as_dir" && break
15767 done
15768 test -z "$as_dirs" || eval "mkdir $as_dirs"
15769 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15770$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15771 { (exit 1); exit 1; }; }; }
15772 ac_builddir=.
d9898ee8 15773
8d138742
CE
15774case "$ac_dir" in
15775.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15776*)
15777 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15778 # A ".." for each directory in $ac_dir_suffix.
15779 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15780 case $ac_top_builddir_sub in
15781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15783 esac ;;
15784esac
15785ac_abs_top_builddir=$ac_pwd
15786ac_abs_builddir=$ac_pwd$ac_dir_suffix
15787# for backward compatibility:
15788ac_top_builddir=$ac_top_build_prefix
d9898ee8 15789
8d138742
CE
15790case $srcdir in
15791 .) # We are building in place.
15792 ac_srcdir=.
15793 ac_top_srcdir=$ac_top_builddir_sub
15794 ac_abs_top_srcdir=$ac_pwd ;;
15795 [\\/]* | ?:[\\/]* ) # Absolute name.
15796 ac_srcdir=$srcdir$ac_dir_suffix;
15797 ac_top_srcdir=$srcdir
15798 ac_abs_top_srcdir=$srcdir ;;
15799 *) # Relative name.
15800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15801 ac_top_srcdir=$ac_top_build_prefix$srcdir
15802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15803esac
15804ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 15805
d9898ee8 15806
8d138742
CE
15807 case $ac_mode in
15808 :F)
15809 #
15810 # CONFIG_FILE
15811 #
d9898ee8 15812
8d138742
CE
15813 case $INSTALL in
15814 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15815 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15816 esac
15817 ac_MKDIR_P=$MKDIR_P
15818 case $MKDIR_P in
15819 [\\/$]* | ?:[\\/]* ) ;;
15820 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15821 esac
d9898ee8 15822_ACEOF
d9898ee8 15823
8d138742
CE
15824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15825# If the template does not know about datarootdir, expand it.
15826# FIXME: This hack should be removed a few years after 2.60.
15827ac_datarootdir_hack=; ac_datarootdir_seen=
15828
15829ac_sed_dataroot='
15830/datarootdir/ {
15831 p
15832 q
d9898ee8 15833}
8d138742
CE
15834/@datadir@/p
15835/@docdir@/p
15836/@infodir@/p
15837/@localedir@/p
15838/@mandir@/p
15839'
15840case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15841*datarootdir*) ac_datarootdir_seen=yes;;
15842*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15843 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15844$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15845_ACEOF
15846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15847 ac_datarootdir_hack='
15848 s&@datadir@&$datadir&g
15849 s&@docdir@&$docdir&g
15850 s&@infodir@&$infodir&g
15851 s&@localedir@&$localedir&g
15852 s&@mandir@&$mandir&g
15853 s&\\\${datarootdir}&$datarootdir&g' ;;
15854esac
d9898ee8 15855_ACEOF
d9898ee8 15856
8d138742
CE
15857# Neutralize VPATH when `$srcdir' = `.'.
15858# Shell code in configure.ac might set extrasub.
15859# FIXME: do we really want to maintain this feature?
15860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15861ac_sed_extra="$ac_vpsub
15862$extrasub
15863_ACEOF
15864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15865:t
15866/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15867s|@configure_input@|$ac_sed_conf_input|;t t
15868s&@top_builddir@&$ac_top_builddir_sub&;t t
15869s&@top_build_prefix@&$ac_top_build_prefix&;t t
15870s&@srcdir@&$ac_srcdir&;t t
15871s&@abs_srcdir@&$ac_abs_srcdir&;t t
15872s&@top_srcdir@&$ac_top_srcdir&;t t
15873s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15874s&@builddir@&$ac_builddir&;t t
15875s&@abs_builddir@&$ac_abs_builddir&;t t
15876s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15877s&@INSTALL@&$ac_INSTALL&;t t
15878s&@MKDIR_P@&$ac_MKDIR_P&;t t
15879$ac_datarootdir_hack
15880"
15881eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15882 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15883$as_echo "$as_me: error: could not create $ac_file" >&2;}
15884 { (exit 1); exit 1; }; }
dd184caf 15885
8d138742
CE
15886test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15887 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15888 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15889 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15890which seems to be undefined. Please make sure it is defined." >&5
15891$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15892which seems to be undefined. Please make sure it is defined." >&2;}
dd184caf 15893
8d138742
CE
15894 rm -f "$tmp/stdin"
15895 case $ac_file in
15896 -) cat "$tmp/out" && rm -f "$tmp/out";;
15897 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15898 esac \
15899 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15900$as_echo "$as_me: error: could not create $ac_file" >&2;}
15901 { (exit 1); exit 1; }; }
15902 ;;
15903 :H)
15904 #
15905 # CONFIG_HEADER
15906 #
15907 if test x"$ac_file" != x-; then
15908 {
15909 $as_echo "/* $configure_input */" \
15910 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15911 } >"$tmp/config.h" \
15912 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15913$as_echo "$as_me: error: could not create $ac_file" >&2;}
15914 { (exit 1); exit 1; }; }
15915 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15916 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15917$as_echo "$as_me: $ac_file is unchanged" >&6;}
15918 else
15919 rm -f "$ac_file"
15920 mv "$tmp/config.h" "$ac_file" \
15921 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15922$as_echo "$as_me: error: could not create $ac_file" >&2;}
15923 { (exit 1); exit 1; }; }
15924 fi
15925 else
15926 $as_echo "/* $configure_input */" \
15927 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15928 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15929$as_echo "$as_me: error: could not create -" >&2;}
15930 { (exit 1); exit 1; }; }
15931 fi
15932# Compute "$ac_file"'s index in $config_headers.
15933_am_arg="$ac_file"
15934_am_stamp_count=1
15935for _am_header in $config_headers :; do
15936 case $_am_header in
15937 $_am_arg | $_am_arg:* )
15938 break ;;
15939 * )
15940 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15941 esac
15942done
15943echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15944$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15945 X"$_am_arg" : 'X\(//\)[^/]' \| \
15946 X"$_am_arg" : 'X\(//\)$' \| \
15947 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15948$as_echo X"$_am_arg" |
15949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15950 s//\1/
15951 q
15952 }
15953 /^X\(\/\/\)[^/].*/{
15954 s//\1/
15955 q
15956 }
15957 /^X\(\/\/\)$/{
15958 s//\1/
15959 q
15960 }
15961 /^X\(\/\).*/{
15962 s//\1/
15963 q
15964 }
15965 s/.*/./; q'`/stamp-h$_am_stamp_count
15966 ;;
d9898ee8 15967
8d138742
CE
15968 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15969$as_echo "$as_me: executing $ac_file commands" >&6;}
15970 ;;
15971 esac
d9898ee8 15972
d9898ee8 15973
8d138742
CE
15974 case $ac_file$ac_mode in
15975 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15976 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15977 # are listed without --file. Let's play safe and only enable the eval
15978 # if we detect the quoting.
15979 case $CONFIG_FILES in
15980 *\'*) eval set x "$CONFIG_FILES" ;;
15981 *) set x $CONFIG_FILES ;;
15982 esac
15983 shift
15984 for mf
15985 do
15986 # Strip MF so we end up with the name of the file.
15987 mf=`echo "$mf" | sed -e 's/:.*$//'`
15988 # Check whether this is an Automake generated Makefile or not.
15989 # We used to match only the files named `Makefile.in', but
15990 # some people rename them; so instead we look at the file content.
15991 # Grep'ing the first line is not enough: some people post-process
15992 # each Makefile.in and add a new line on top of each file to say so.
15993 # Grep'ing the whole file is not good either: AIX grep has a line
15994 # limit of 2048, but all sed's we know have understand at least 4000.
15995 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15996 dirpart=`$as_dirname -- "$mf" ||
15997$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15998 X"$mf" : 'X\(//\)[^/]' \| \
15999 X"$mf" : 'X\(//\)$' \| \
16000 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16001$as_echo X"$mf" |
16002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16003 s//\1/
16004 q
16005 }
16006 /^X\(\/\/\)[^/].*/{
16007 s//\1/
16008 q
16009 }
16010 /^X\(\/\/\)$/{
16011 s//\1/
16012 q
16013 }
16014 /^X\(\/\).*/{
16015 s//\1/
16016 q
16017 }
16018 s/.*/./; q'`
16019 else
16020 continue
16021 fi
16022 # Extract the definition of DEPDIR, am__include, and am__quote
16023 # from the Makefile without running `make'.
16024 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16025 test -z "$DEPDIR" && continue
16026 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16027 test -z "am__include" && continue
16028 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16029 # When using ansi2knr, U may be empty or an underscore; expand it
16030 U=`sed -n 's/^U = //p' < "$mf"`
16031 # Find all dependency output files, they are included files with
16032 # $(DEPDIR) in their names. We invoke sed twice because it is the
16033 # simplest approach to changing $(DEPDIR) to its actual value in the
16034 # expansion.
16035 for file in `sed -n "
16036 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16037 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16038 # Make sure the directory exists.
16039 test -f "$dirpart/$file" && continue
16040 fdir=`$as_dirname -- "$file" ||
16041$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16042 X"$file" : 'X\(//\)[^/]' \| \
16043 X"$file" : 'X\(//\)$' \| \
16044 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16045$as_echo X"$file" |
16046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16047 s//\1/
16048 q
16049 }
16050 /^X\(\/\/\)[^/].*/{
16051 s//\1/
16052 q
16053 }
16054 /^X\(\/\/\)$/{
16055 s//\1/
16056 q
16057 }
16058 /^X\(\/\).*/{
16059 s//\1/
16060 q
16061 }
16062 s/.*/./; q'`
16063 { as_dir=$dirpart/$fdir
16064 case $as_dir in #(
16065 -*) as_dir=./$as_dir;;
16066 esac
16067 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16068 as_dirs=
16069 while :; do
16070 case $as_dir in #(
16071 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16072 *) as_qdir=$as_dir;;
16073 esac
16074 as_dirs="'$as_qdir' $as_dirs"
16075 as_dir=`$as_dirname -- "$as_dir" ||
16076$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16077 X"$as_dir" : 'X\(//\)[^/]' \| \
16078 X"$as_dir" : 'X\(//\)$' \| \
16079 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16080$as_echo X"$as_dir" |
16081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16082 s//\1/
16083 q
16084 }
16085 /^X\(\/\/\)[^/].*/{
16086 s//\1/
16087 q
16088 }
16089 /^X\(\/\/\)$/{
16090 s//\1/
16091 q
16092 }
16093 /^X\(\/\).*/{
16094 s//\1/
16095 q
16096 }
16097 s/.*/./; q'`
16098 test -d "$as_dir" && break
16099 done
16100 test -z "$as_dirs" || eval "mkdir $as_dirs"
16101 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16102$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16103 { (exit 1); exit 1; }; }; }
16104 # echo "creating $dirpart/$file"
16105 echo '# dummy' > "$dirpart/$file"
16106 done
16107 done
16108}
16109 ;;
16110 "libtool":C)
16111
16112 # See if we are running on zsh, and set the options which allow our
16113 # commands through without removal of \ escapes.
16114 if test -n "${ZSH_VERSION+set}" ; then
16115 setopt NO_GLOB_SUBST
16116 fi
d9898ee8 16117
8d138742
CE
16118 cfgfile="${ofile}T"
16119 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16120 $RM "$cfgfile"
dd184caf 16121
8d138742
CE
16122 cat <<_LT_EOF >> "$cfgfile"
16123#! $SHELL
16124
16125# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16126# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16127# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16128# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d9898ee8 16129#
8d138742
CE
16130# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16131# 2006, 2007, 2008 Free Software Foundation, Inc.
16132# Written by Gordon Matzigkeit, 1996
d9898ee8 16133#
8d138742
CE
16134# This file is part of GNU Libtool.
16135#
16136# GNU Libtool is free software; you can redistribute it and/or
16137# modify it under the terms of the GNU General Public License as
16138# published by the Free Software Foundation; either version 2 of
16139# the License, or (at your option) any later version.
16140#
16141# As a special exception to the GNU General Public License,
16142# if you distribute this file as part of a program or library that
16143# is built using GNU Libtool, you may include this file under the
16144# same distribution terms that you use for the rest of that program.
16145#
16146# GNU Libtool is distributed in the hope that it will be useful,
16147# but WITHOUT ANY WARRANTY; without even the implied warranty of
16148# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16149# GNU General Public License for more details.
16150#
16151# You should have received a copy of the GNU General Public License
16152# along with GNU Libtool; see the file COPYING. If not, a copy
16153# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16154# obtained by writing to the Free Software Foundation, Inc.,
16155# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9898ee8 16156
d9898ee8 16157
8d138742
CE
16158# The names of the tagged configurations supported by this script.
16159available_tags=""
dd184caf 16160
8d138742 16161# ### BEGIN LIBTOOL CONFIG
d9898ee8 16162
8d138742
CE
16163# Which release of libtool.m4 was used?
16164macro_version=$macro_version
16165macro_revision=$macro_revision
d9898ee8 16166
8d138742
CE
16167# Whether or not to build shared libraries.
16168build_libtool_libs=$enable_shared
d9898ee8 16169
8d138742
CE
16170# Whether or not to build static libraries.
16171build_old_libs=$enable_static
d9898ee8 16172
8d138742
CE
16173# What type of objects to build.
16174pic_mode=$pic_mode
d9898ee8 16175
8d138742
CE
16176# Whether or not to optimize for fast installation.
16177fast_install=$enable_fast_install
d9898ee8 16178
8d138742
CE
16179# The host system.
16180host_alias=$host_alias
16181host=$host
16182host_os=$host_os
d9898ee8 16183
8d138742
CE
16184# The build system.
16185build_alias=$build_alias
16186build=$build
16187build_os=$build_os
d9898ee8 16188
8d138742
CE
16189# A sed program that does not truncate output.
16190SED=$lt_SED
d9898ee8 16191
8d138742
CE
16192# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16193Xsed="\$SED -e 1s/^X//"
d9898ee8 16194
8d138742
CE
16195# A grep program that handles long lines.
16196GREP=$lt_GREP
dd184caf 16197
8d138742
CE
16198# An ERE matcher.
16199EGREP=$lt_EGREP
dd184caf 16200
8d138742
CE
16201# A literal string matcher.
16202FGREP=$lt_FGREP
dd184caf 16203
8d138742
CE
16204# A BSD- or MS-compatible name lister.
16205NM=$lt_NM
dd184caf 16206
8d138742
CE
16207# Whether we need soft or hard links.
16208LN_S=$lt_LN_S
dd184caf 16209
8d138742
CE
16210# What is the maximum length of a command?
16211max_cmd_len=$max_cmd_len
dd184caf 16212
8d138742
CE
16213# Object file suffix (normally "o").
16214objext=$ac_objext
d9898ee8 16215
8d138742
CE
16216# Executable file suffix (normally "").
16217exeext=$exeext
d9898ee8 16218
8d138742
CE
16219# whether the shell understands "unset".
16220lt_unset=$lt_unset
d9898ee8 16221
8d138742
CE
16222# turn spaces into newlines.
16223SP2NL=$lt_lt_SP2NL
dd184caf 16224
8d138742
CE
16225# turn newlines into spaces.
16226NL2SP=$lt_lt_NL2SP
dd184caf 16227
8d138742
CE
16228# How to create reloadable object files.
16229reload_flag=$lt_reload_flag
16230reload_cmds=$lt_reload_cmds
dd184caf 16231
8d138742
CE
16232# An object symbol dumper.
16233OBJDUMP=$lt_OBJDUMP
d9898ee8 16234
8d138742
CE
16235# Method to check whether dependent libraries are shared objects.
16236deplibs_check_method=$lt_deplibs_check_method
d9898ee8 16237
8d138742
CE
16238# Command to use when deplibs_check_method == "file_magic".
16239file_magic_cmd=$lt_file_magic_cmd
d9898ee8 16240
8d138742
CE
16241# The archiver.
16242AR=$lt_AR
16243AR_FLAGS=$lt_AR_FLAGS
d9898ee8 16244
8d138742
CE
16245# A symbol stripping program.
16246STRIP=$lt_STRIP
d9898ee8 16247
8d138742
CE
16248# Commands used to install an old-style archive.
16249RANLIB=$lt_RANLIB
16250old_postinstall_cmds=$lt_old_postinstall_cmds
16251old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 16252
8d138742
CE
16253# A C compiler.
16254LTCC=$lt_CC
d9898ee8 16255
8d138742
CE
16256# LTCC compiler flags.
16257LTCFLAGS=$lt_CFLAGS
d9898ee8 16258
8d138742
CE
16259# Take the output of nm and produce a listing of raw symbols and C names.
16260global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 16261
8d138742
CE
16262# Transform the output of nm in a proper C declaration.
16263global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 16264
8d138742
CE
16265# Transform the output of nm in a C name address pair.
16266global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d9898ee8 16267
8d138742
CE
16268# Transform the output of nm in a C name address pair when lib prefix is needed.
16269global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
d9898ee8 16270
8d138742
CE
16271# The name of the directory that contains temporary libtool files.
16272objdir=$objdir
d9898ee8 16273
8d138742
CE
16274# Shell to use when invoking shell scripts.
16275SHELL=$lt_SHELL
dd184caf 16276
8d138742
CE
16277# An echo program that does not interpret backslashes.
16278ECHO=$lt_ECHO
d9898ee8 16279
8d138742
CE
16280# Used to examine libraries when file_magic_cmd begins with "file".
16281MAGIC_CMD=$MAGIC_CMD
d9898ee8 16282
8d138742
CE
16283# Must we lock files when doing compilation?
16284need_locks=$lt_need_locks
d9898ee8 16285
8d138742
CE
16286# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16287DSYMUTIL=$lt_DSYMUTIL
d9898ee8 16288
8d138742
CE
16289# Tool to change global to local symbols on Mac OS X.
16290NMEDIT=$lt_NMEDIT
d9898ee8 16291
8d138742
CE
16292# Tool to manipulate fat objects and archives on Mac OS X.
16293LIPO=$lt_LIPO
d9898ee8 16294
8d138742
CE
16295# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16296OTOOL=$lt_OTOOL
d9898ee8 16297
8d138742
CE
16298# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16299OTOOL64=$lt_OTOOL64
d9898ee8 16300
8d138742
CE
16301# Old archive suffix (normally "a").
16302libext=$libext
d9898ee8 16303
8d138742
CE
16304# Shared library suffix (normally ".so").
16305shrext_cmds=$lt_shrext_cmds
d9898ee8 16306
8d138742
CE
16307# The commands to extract the exported symbol list from a shared archive.
16308extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 16309
8d138742
CE
16310# Variables whose values should be saved in libtool wrapper scripts and
16311# restored at link time.
16312variables_saved_for_relink=$lt_variables_saved_for_relink
dd184caf 16313
8d138742
CE
16314# Do we need the "lib" prefix for modules?
16315need_lib_prefix=$need_lib_prefix
d9898ee8 16316
8d138742
CE
16317# Do we need a version for libraries?
16318need_version=$need_version
d9898ee8 16319
8d138742
CE
16320# Library versioning type.
16321version_type=$version_type
d9898ee8 16322
8d138742
CE
16323# Shared library runtime path variable.
16324runpath_var=$runpath_var
d9898ee8 16325
8d138742
CE
16326# Shared library path variable.
16327shlibpath_var=$shlibpath_var
d9898ee8 16328
8d138742
CE
16329# Is shlibpath searched before the hard-coded library search path?
16330shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 16331
8d138742
CE
16332# Format of library name prefix.
16333libname_spec=$lt_libname_spec
d9898ee8 16334
8d138742
CE
16335# List of archive names. First name is the real one, the rest are links.
16336# The last name is the one that the linker finds with -lNAME
16337library_names_spec=$lt_library_names_spec
d9898ee8 16338
8d138742
CE
16339# The coded name of the library, if different from the real name.
16340soname_spec=$lt_soname_spec
d9898ee8 16341
8d138742
CE
16342# Command to use after installation of a shared archive.
16343postinstall_cmds=$lt_postinstall_cmds
d9898ee8 16344
8d138742
CE
16345# Command to use after uninstallation of a shared archive.
16346postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 16347
8d138742
CE
16348# Commands used to finish a libtool library installation in a directory.
16349finish_cmds=$lt_finish_cmds
dd184caf 16350
8d138742
CE
16351# As "finish_cmds", except a single script fragment to be evaled but
16352# not shown.
16353finish_eval=$lt_finish_eval
d9898ee8 16354
8d138742
CE
16355# Whether we should hardcode library paths into libraries.
16356hardcode_into_libs=$hardcode_into_libs
d9898ee8 16357
8d138742
CE
16358# Compile-time system search path for libraries.
16359sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16360
8d138742
CE
16361# Run-time system search path for libraries.
16362sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
d9898ee8 16363
8d138742
CE
16364# Whether dlopen is supported.
16365dlopen_support=$enable_dlopen
d9898ee8 16366
8d138742
CE
16367# Whether dlopen of programs is supported.
16368dlopen_self=$enable_dlopen_self
d9898ee8 16369
8d138742
CE
16370# Whether dlopen of statically linked programs is supported.
16371dlopen_self_static=$enable_dlopen_self_static
d9898ee8 16372
8d138742
CE
16373# Commands to strip libraries.
16374old_striplib=$lt_old_striplib
16375striplib=$lt_striplib
d9898ee8 16376
d9898ee8 16377
8d138742
CE
16378# The linker used to build libraries.
16379LD=$lt_LD
d9898ee8 16380
8d138742
CE
16381# Commands used to build an old-style archive.
16382old_archive_cmds=$lt_old_archive_cmds
d9898ee8 16383
8d138742
CE
16384# A language specific compiler.
16385CC=$lt_compiler
d9898ee8 16386
8d138742
CE
16387# Is the compiler the GNU compiler?
16388with_gcc=$GCC
dd184caf 16389
8d138742
CE
16390# Compiler flag to turn off builtin functions.
16391no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dd184caf 16392
8d138742
CE
16393# How to pass a linker flag through the compiler.
16394wl=$lt_lt_prog_compiler_wl
d9898ee8 16395
8d138742
CE
16396# Additional compiler flags for building library objects.
16397pic_flag=$lt_lt_prog_compiler_pic
dd184caf 16398
8d138742
CE
16399# Compiler flag to prevent dynamic linking.
16400link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 16401
8d138742
CE
16402# Does compiler simultaneously support -c and -o options?
16403compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16404
16405# Whether or not to add -lc for building shared libraries.
16406build_libtool_need_lc=$archive_cmds_need_lc
16407
16408# Whether or not to disallow shared libs when runtime libs are static.
16409allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16410
16411# Compiler flag to allow reflexive dlopens.
16412export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 16413
8d138742
CE
16414# Compiler flag to generate shared objects directly from archives.
16415whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 16416
8d138742
CE
16417# Whether the compiler copes with passing no objects directly.
16418compiler_needs_object=$lt_compiler_needs_object
d9898ee8 16419
8d138742
CE
16420# Create an old-style archive from a shared archive.
16421old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 16422
8d138742
CE
16423# Create a temporary old-style archive to link instead of a shared archive.
16424old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 16425
8d138742
CE
16426# Commands used to build a shared archive.
16427archive_cmds=$lt_archive_cmds
16428archive_expsym_cmds=$lt_archive_expsym_cmds
dd184caf 16429
8d138742
CE
16430# Commands used to build a loadable module if different from building
16431# a shared archive.
16432module_cmds=$lt_module_cmds
16433module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 16434
8d138742
CE
16435# Whether we are building with GNU ld or not.
16436with_gnu_ld=$lt_with_gnu_ld
dd184caf 16437
8d138742
CE
16438# Flag that allows shared libraries with undefined symbols to be built.
16439allow_undefined_flag=$lt_allow_undefined_flag
dd184caf 16440
8d138742
CE
16441# Flag that enforces no undefined symbols.
16442no_undefined_flag=$lt_no_undefined_flag
dd184caf 16443
8d138742
CE
16444# Flag to hardcode \$libdir into a binary during linking.
16445# This must work even if \$libdir does not exist
16446hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
dd184caf 16447
8d138742
CE
16448# If ld is used when linking, flag to hardcode \$libdir into a binary
16449# during linking. This must work even if \$libdir does not exist.
16450hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
dd184caf 16451
8d138742
CE
16452# Whether we need a single "-rpath" flag with a separated argument.
16453hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 16454
8d138742
CE
16455# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16456# DIR into the resulting binary.
16457hardcode_direct=$hardcode_direct
dd184caf 16458
8d138742
CE
16459# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16460# DIR into the resulting binary and the resulting library dependency is
16461# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16462# library is relocated.
16463hardcode_direct_absolute=$hardcode_direct_absolute
d9898ee8 16464
8d138742
CE
16465# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16466# into the resulting binary.
16467hardcode_minus_L=$hardcode_minus_L
dd184caf 16468
8d138742
CE
16469# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16470# into the resulting binary.
16471hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 16472
8d138742
CE
16473# Set to "yes" if building a shared library automatically hardcodes DIR
16474# into the library and all subsequent libraries and executables linked
16475# against it.
16476hardcode_automatic=$hardcode_automatic
dd184caf 16477
8d138742
CE
16478# Set to yes if linker adds runtime paths of dependent libraries
16479# to runtime path list.
16480inherit_rpath=$inherit_rpath
dd184caf 16481
8d138742
CE
16482# Whether libtool must link a program against all its dependency libraries.
16483link_all_deplibs=$link_all_deplibs
dd184caf 16484
8d138742
CE
16485# Fix the shell variable \$srcfile for the compiler.
16486fix_srcfile_path=$lt_fix_srcfile_path
dd184caf 16487
8d138742
CE
16488# Set to "yes" if exported symbols are required.
16489always_export_symbols=$always_export_symbols
dd184caf 16490
8d138742
CE
16491# The commands to list exported symbols.
16492export_symbols_cmds=$lt_export_symbols_cmds
dd184caf 16493
8d138742
CE
16494# Symbols that should not be listed in the preloaded symbols.
16495exclude_expsyms=$lt_exclude_expsyms
d9898ee8 16496
8d138742
CE
16497# Symbols that must always be exported.
16498include_expsyms=$lt_include_expsyms
d9898ee8 16499
8d138742
CE
16500# Commands necessary for linking programs (against libraries) with templates.
16501prelink_cmds=$lt_prelink_cmds
d9898ee8 16502
8d138742
CE
16503# Specify filename containing input files.
16504file_list_spec=$lt_file_list_spec
16505
16506# How to hardcode a shared library path into an executable.
16507hardcode_action=$hardcode_action
d9898ee8 16508
8d138742 16509# ### END LIBTOOL CONFIG
d9898ee8 16510
8d138742 16511_LT_EOF
d9898ee8 16512
8d138742
CE
16513 case $host_os in
16514 aix3*)
16515 cat <<\_LT_EOF >> "$cfgfile"
16516# AIX sometimes has problems with the GCC collect2 program. For some
16517# reason, if we set the COLLECT_NAMES environment variable, the problems
16518# vanish in a puff of smoke.
16519if test "X${COLLECT_NAMES+set}" != Xset; then
16520 COLLECT_NAMES=
16521 export COLLECT_NAMES
16522fi
16523_LT_EOF
16524 ;;
dd184caf 16525 esac
8d138742
CE
16526
16527
16528ltmain="$ac_aux_dir/ltmain.sh"
16529
16530
16531 # We use sed instead of cat because bash on DJGPP gets confused if
16532 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16533 # text mode, it properly converts lines to CR/LF. This bash problem
16534 # is reportedly fixed, but why not run on old versions too?
16535 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16536 || (rm -f "$cfgfile"; exit 1)
16537
16538 case $xsi_shell in
16539 yes)
16540 cat << \_LT_EOF >> "$cfgfile"
16541
16542# func_dirname file append nondir_replacement
16543# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16544# otherwise set result to NONDIR_REPLACEMENT.
16545func_dirname ()
16546{
16547 case ${1} in
16548 */*) func_dirname_result="${1%/*}${2}" ;;
16549 * ) func_dirname_result="${3}" ;;
d9898ee8 16550 esac
8d138742 16551}
d9898ee8 16552
8d138742
CE
16553# func_basename file
16554func_basename ()
16555{
16556 func_basename_result="${1##*/}"
16557}
dd184caf 16558
8d138742
CE
16559# func_dirname_and_basename file append nondir_replacement
16560# perform func_basename and func_dirname in a single function
16561# call:
16562# dirname: Compute the dirname of FILE. If nonempty,
16563# add APPEND to the result, otherwise set result
16564# to NONDIR_REPLACEMENT.
16565# value returned in "$func_dirname_result"
16566# basename: Compute filename of FILE.
16567# value retuned in "$func_basename_result"
16568# Implementation must be kept synchronized with func_dirname
16569# and func_basename. For efficiency, we do not delegate to
16570# those functions but instead duplicate the functionality here.
16571func_dirname_and_basename ()
16572{
16573 case ${1} in
16574 */*) func_dirname_result="${1%/*}${2}" ;;
16575 * ) func_dirname_result="${3}" ;;
16576 esac
16577 func_basename_result="${1##*/}"
dd184caf 16578}
dd184caf 16579
8d138742
CE
16580# func_stripname prefix suffix name
16581# strip PREFIX and SUFFIX off of NAME.
16582# PREFIX and SUFFIX must not contain globbing or regex special
16583# characters, hashes, percent signs, but SUFFIX may contain a leading
16584# dot (in which case that matches only a dot).
16585func_stripname ()
16586{
16587 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16588 # positional parameters, so assign one to ordinary parameter first.
16589 func_stripname_result=${3}
16590 func_stripname_result=${func_stripname_result#"${1}"}
16591 func_stripname_result=${func_stripname_result%"${2}"}
16592}
dd184caf 16593
8d138742
CE
16594# func_opt_split
16595func_opt_split ()
16596{
16597 func_opt_split_opt=${1%%=*}
16598 func_opt_split_arg=${1#*=}
16599}
dd184caf 16600
8d138742
CE
16601# func_lo2o object
16602func_lo2o ()
16603{
16604 case ${1} in
16605 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16606 *) func_lo2o_result=${1} ;;
d9898ee8 16607 esac
8d138742 16608}
d9898ee8 16609
8d138742
CE
16610# func_xform libobj-or-source
16611func_xform ()
16612{
16613 func_xform_result=${1%.*}.lo
16614}
d9898ee8 16615
8d138742
CE
16616# func_arith arithmetic-term...
16617func_arith ()
16618{
16619 func_arith_result=$(( $* ))
16620}
16621
16622# func_len string
16623# STRING may not start with a hyphen.
16624func_len ()
16625{
16626 func_len_result=${#1}
16627}
16628
16629_LT_EOF
16630 ;;
16631 *) # Bourne compatible functions.
16632 cat << \_LT_EOF >> "$cfgfile"
16633
16634# func_dirname file append nondir_replacement
16635# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16636# otherwise set result to NONDIR_REPLACEMENT.
16637func_dirname ()
16638{
16639 # Extract subdirectory from the argument.
16640 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16641 if test "X$func_dirname_result" = "X${1}"; then
16642 func_dirname_result="${3}"
d9898ee8 16643 else
8d138742 16644 func_dirname_result="$func_dirname_result${2}"
d9898ee8 16645 fi
8d138742 16646}
d9898ee8 16647
8d138742
CE
16648# func_basename file
16649func_basename ()
16650{
16651 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16652}
16653
16654
16655# func_stripname prefix suffix name
16656# strip PREFIX and SUFFIX off of NAME.
16657# PREFIX and SUFFIX must not contain globbing or regex special
16658# characters, hashes, percent signs, but SUFFIX may contain a leading
16659# dot (in which case that matches only a dot).
16660# func_strip_suffix prefix name
16661func_stripname ()
16662{
16663 case ${2} in
16664 .*) func_stripname_result=`$ECHO "X${3}" \
16665 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16666 *) func_stripname_result=`$ECHO "X${3}" \
16667 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
dd184caf 16668 esac
8d138742 16669}
d9898ee8 16670
8d138742
CE
16671# sed scripts:
16672my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16673my_sed_long_arg='1s/^-[^=]*=//'
d9898ee8 16674
8d138742
CE
16675# func_opt_split
16676func_opt_split ()
16677{
16678 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16679 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16680}
16681
16682# func_lo2o object
16683func_lo2o ()
16684{
16685 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16686}
16687
16688# func_xform libobj-or-source
16689func_xform ()
16690{
16691 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16692}
16693
16694# func_arith arithmetic-term...
16695func_arith ()
16696{
16697 func_arith_result=`expr "$@"`
16698}
16699
16700# func_len string
16701# STRING may not start with a hyphen.
16702func_len ()
16703{
16704 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16705}
16706
16707_LT_EOF
16708esac
16709
16710case $lt_shell_append in
16711 yes)
16712 cat << \_LT_EOF >> "$cfgfile"
16713
16714# func_append var value
16715# Append VALUE to the end of shell variable VAR.
16716func_append ()
16717{
16718 eval "$1+=\$2"
16719}
16720_LT_EOF
16721 ;;
16722 *)
16723 cat << \_LT_EOF >> "$cfgfile"
16724
16725# func_append var value
16726# Append VALUE to the end of shell variable VAR.
16727func_append ()
16728{
16729 eval "$1=\$$1\$2"
16730}
16731
16732_LT_EOF
16733 ;;
dd184caf 16734 esac
8d138742
CE
16735
16736
16737 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16738 || (rm -f "$cfgfile"; exit 1)
16739
16740 mv -f "$cfgfile" "$ofile" ||
16741 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16742 chmod +x "$ofile"
16743
d9898ee8 16744 ;;
dd184caf 16745
d9898ee8 16746 esac
dd184caf 16747done # for ac_tag
d9898ee8 16748
d9898ee8 16749
16750{ (exit 0); exit 0; }
16751_ACEOF
16752chmod +x $CONFIG_STATUS
16753ac_clean_files=$ac_clean_files_save
16754
8d138742
CE
16755test $ac_write_fail = 0 ||
16756 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16757$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16758 { (exit 1); exit 1; }; }
16759
d9898ee8 16760
16761# configure is writing to config.log, and then calls config.status.
16762# config.status does its own redirection, appending to config.log.
16763# Unfortunately, on DOS this fails, as config.log is still kept open
16764# by configure, so config.status won't be able to write to it; its
16765# output is simply discarded. So we exec the FD to /dev/null,
16766# effectively closing config.log, so it can be properly (re)opened and
16767# appended to by config.status. When coming back to configure, we
16768# need to make the FD available again.
16769if test "$no_create" != yes; then
16770 ac_cs_success=:
16771 ac_config_status_args=
16772 test "$silent" = yes &&
16773 ac_config_status_args="$ac_config_status_args --quiet"
16774 exec 5>/dev/null
16775 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16776 exec 5>>config.log
16777 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16778 # would make configure fail if this is the last instruction.
16779 $ac_cs_success || { (exit 1); exit 1; }
16780fi
8d138742
CE
16781if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16782 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16783$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16784fi
d9898ee8 16785