Imported Debian patch 0.63.0-6
[hcoop/debian/courier-authlib.git] / libhmac / 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 libhmac 1.00.
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'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
dd184caf 74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
8d138742
CE
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='libhmac'
747PACKAGE_TARNAME='libhmac'
748PACKAGE_VERSION='1.00'
749PACKAGE_STRING='libhmac 1.00'
750PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
751
752ac_unique_file="hmac.h"
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
793TESTPROGS
794hashlibs
dd184caf 795CPP
8d138742
CE
796OTOOL64
797OTOOL
798LIPO
799NMEDIT
800DSYMUTIL
801lt_ECHO
802RANLIB
803AR
804OBJDUMP
805NM
806ac_ct_DUMPBIN
807DUMPBIN
808LD
809FGREP
810EGREP
811GREP
812SED
813host_os
814host_vendor
815host_cpu
816host
817build_os
818build_vendor
819build_cpu
820build
dd184caf 821LIBTOOL
8d138742
CE
822am__fastdepCC_FALSE
823am__fastdepCC_TRUE
824CCDEPMODE
825AMDEPBACKSLASH
826AMDEP_FALSE
827AMDEP_TRUE
828am__quote
829am__include
830DEPDIR
831OBJEXT
832EXEEXT
833ac_ct_CC
834CPPFLAGS
835LDFLAGS
836CFLAGS
837CC
838LN_S
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
909'
dd184caf 910 ac_precious_vars='build_alias
911host_alias
912target_alias
913CC
914CFLAGS
915LDFLAGS
916LIBS
917CPPFLAGS
8d138742 918CPP'
dd184caf 919
d9898ee8 920
921# Initialize some variables set by options.
922ac_init_help=
923ac_init_version=false
8d138742
CE
924ac_unrecognized_opts=
925ac_unrecognized_sep=
d9898ee8 926# The variables have the same names as the options, with
927# dashes changed to underlines.
928cache_file=/dev/null
929exec_prefix=NONE
930no_create=
931no_recursion=
932prefix=NONE
933program_prefix=NONE
934program_suffix=NONE
935program_transform_name=s,x,x,
936silent=
937site=
938srcdir=
939verbose=
940x_includes=NONE
941x_libraries=NONE
942
943# Installation directory options.
944# These are left unexpanded so users can "make install exec_prefix=/foo"
945# and all the variables that are supposed to be based on exec_prefix
946# by default will actually change.
947# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 948# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 949bindir='${exec_prefix}/bin'
950sbindir='${exec_prefix}/sbin'
951libexecdir='${exec_prefix}/libexec'
dd184caf 952datarootdir='${prefix}/share'
953datadir='${datarootdir}'
d9898ee8 954sysconfdir='${prefix}/etc'
955sharedstatedir='${prefix}/com'
956localstatedir='${prefix}/var'
d9898ee8 957includedir='${prefix}/include'
958oldincludedir='/usr/include'
dd184caf 959docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
960infodir='${datarootdir}/info'
961htmldir='${docdir}'
962dvidir='${docdir}'
963pdfdir='${docdir}'
964psdir='${docdir}'
965libdir='${exec_prefix}/lib'
966localedir='${datarootdir}/locale'
967mandir='${datarootdir}/man'
d9898ee8 968
969ac_prev=
dd184caf 970ac_dashdash=
d9898ee8 971for ac_option
972do
973 # If the previous option needs an argument, assign it.
974 if test -n "$ac_prev"; then
dd184caf 975 eval $ac_prev=\$ac_option
d9898ee8 976 ac_prev=
977 continue
978 fi
979
dd184caf 980 case $ac_option in
981 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982 *) ac_optarg=yes ;;
983 esac
d9898ee8 984
985 # Accept the important Cygnus configure options, so we can diagnose typos.
986
dd184caf 987 case $ac_dashdash$ac_option in
988 --)
989 ac_dashdash=yes ;;
d9898ee8 990
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
992 ac_prev=bindir ;;
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994 bindir=$ac_optarg ;;
995
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1000
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1007
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1010
dd184caf 1011 -datadir | --datadir | --datadi | --datad)
d9898ee8 1012 ac_prev=datadir ;;
dd184caf 1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 1014 datadir=$ac_optarg ;;
1015
dd184caf 1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1022
d9898ee8 1023 -disable-* | --disable-*)
8d138742 1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 1025 # Reject names that are not valid shell variable names.
8d138742
CE
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
d9898ee8 1028 { (exit 1); exit 1; }; }
8d138742
CE
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1032 *"
1033"enable_$ac_useropt"
1034"*) ;;
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1037 esac
1038 eval enable_$ac_useropt=no ;;
dd184caf 1039
1040 -docdir | --docdir | --docdi | --doc | --do)
1041 ac_prev=docdir ;;
1042 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043 docdir=$ac_optarg ;;
1044
1045 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 ac_prev=dvidir ;;
1047 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048 dvidir=$ac_optarg ;;
d9898ee8 1049
1050 -enable-* | --enable-*)
8d138742 1051 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 1052 # Reject names that are not valid shell variable names.
8d138742
CE
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
d9898ee8 1055 { (exit 1); exit 1; }; }
8d138742
CE
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060"enable_$ac_useropt"
1061"*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 1066
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
1074 exec_prefix=$ac_optarg ;;
1075
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1078 with_gas=yes ;;
1079
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
1086
1087 -host | --host | --hos | --ho)
1088 ac_prev=host_alias ;;
1089 -host=* | --host=* | --hos=* | --ho=*)
1090 host_alias=$ac_optarg ;;
1091
dd184caf 1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093 ac_prev=htmldir ;;
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095 | --ht=*)
1096 htmldir=$ac_optarg ;;
1097
d9898ee8 1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
1103 includedir=$ac_optarg ;;
1104
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1106 ac_prev=infodir ;;
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108 infodir=$ac_optarg ;;
1109
1110 -libdir | --libdir | --libdi | --libd)
1111 ac_prev=libdir ;;
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113 libdir=$ac_optarg ;;
1114
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
1120 libexecdir=$ac_optarg ;;
1121
dd184caf 1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1126
d9898ee8 1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 1128 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1132 localstatedir=$ac_optarg ;;
1133
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135 ac_prev=mandir ;;
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137 mandir=$ac_optarg ;;
1138
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1141 with_fp=no ;;
1142
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144 | --no-cr | --no-c | -n)
1145 no_create=yes ;;
1146
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 no_recursion=yes ;;
1150
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158 oldincludedir=$ac_optarg ;;
1159
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161 ac_prev=prefix ;;
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163 prefix=$ac_optarg ;;
1164
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170 program_prefix=$ac_optarg ;;
1171
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177 program_suffix=$ac_optarg ;;
1178
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
1194 program_transform_name=$ac_optarg ;;
1195
dd184caf 1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197 ac_prev=pdfdir ;;
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1200
1201 -psdir | --psdir | --psdi | --psd | --ps)
1202 ac_prev=psdir ;;
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 psdir=$ac_optarg ;;
1205
d9898ee8 1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1208 silent=yes ;;
1209
1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211 ac_prev=sbindir ;;
1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213 | --sbi=* | --sb=*)
1214 sbindir=$ac_optarg ;;
1215
1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218 | --sharedst | --shareds | --shared | --share | --shar \
1219 | --sha | --sh)
1220 ac_prev=sharedstatedir ;;
1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224 | --sha=* | --sh=*)
1225 sharedstatedir=$ac_optarg ;;
1226
1227 -site | --site | --sit)
1228 ac_prev=site ;;
1229 -site=* | --site=* | --sit=*)
1230 site=$ac_optarg ;;
1231
1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233 ac_prev=srcdir ;;
1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235 srcdir=$ac_optarg ;;
1236
1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238 | --syscon | --sysco | --sysc | --sys | --sy)
1239 ac_prev=sysconfdir ;;
1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242 sysconfdir=$ac_optarg ;;
1243
1244 -target | --target | --targe | --targ | --tar | --ta | --t)
1245 ac_prev=target_alias ;;
1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247 target_alias=$ac_optarg ;;
1248
1249 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250 verbose=yes ;;
1251
1252 -version | --version | --versio | --versi | --vers | -V)
1253 ac_init_version=: ;;
1254
1255 -with-* | --with-*)
8d138742 1256 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1257 # Reject names that are not valid shell variable names.
8d138742
CE
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
d9898ee8 1260 { (exit 1); exit 1; }; }
8d138742
CE
1261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1264 *"
1265"with_$ac_useropt"
1266"*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1271
1272 -without-* | --without-*)
8d138742 1273 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1274 # Reject names that are not valid shell variable names.
8d138742
CE
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
d9898ee8 1277 { (exit 1); exit 1; }; }
8d138742
CE
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1281 *"
1282"with_$ac_useropt"
1283"*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1286 esac
1287 eval with_$ac_useropt=no ;;
d9898ee8 1288
1289 --x)
1290 # Obsolete; use --with-x.
1291 with_x=yes ;;
1292
1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294 | --x-incl | --x-inc | --x-in | --x-i)
1295 ac_prev=x_includes ;;
1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298 x_includes=$ac_optarg ;;
1299
1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302 ac_prev=x_libraries ;;
1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305 x_libraries=$ac_optarg ;;
1306
8d138742 1307 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
d9898ee8 1308Try \`$0 --help' for more information." >&2
1309 { (exit 1); exit 1; }; }
1310 ;;
1311
1312 *=*)
1313 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
8d138742 1316 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
d9898ee8 1317 { (exit 1); exit 1; }; }
dd184caf 1318 eval $ac_envvar=\$ac_optarg
d9898ee8 1319 export $ac_envvar ;;
1320
1321 *)
1322 # FIXME: should be removed in autoconf 3.0.
8d138742 1323 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1325 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d9898ee8 1326 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327 ;;
1328
1329 esac
1330done
1331
1332if test -n "$ac_prev"; then
1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
8d138742 1334 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
d9898ee8 1335 { (exit 1); exit 1; }; }
1336fi
1337
8d138742
CE
1338if test -n "$ac_unrecognized_opts"; then
1339 case $enable_option_checking in
1340 no) ;;
1341 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1342 { (exit 1); exit 1; }; } ;;
1343 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1344 esac
1345fi
1346
1347# Check all directory arguments for consistency.
dd184caf 1348for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1349 datadir sysconfdir sharedstatedir localstatedir includedir \
1350 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1351 libdir localedir mandir
d9898ee8 1352do
dd184caf 1353 eval ac_val=\$$ac_var
8d138742
CE
1354 # Remove trailing slashes.
1355 case $ac_val in
1356 */ )
1357 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1358 eval $ac_var=\$ac_val;;
1359 esac
1360 # Be sure to have absolute directory names.
d9898ee8 1361 case $ac_val in
dd184caf 1362 [\\/$]* | ?:[\\/]* ) continue;;
1363 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1364 esac
8d138742 1365 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
dd184caf 1366 { (exit 1); exit 1; }; }
d9898ee8 1367done
1368
1369# There might be people who depend on the old broken behavior: `$host'
1370# used to hold the argument of --host etc.
1371# FIXME: To remove some day.
1372build=$build_alias
1373host=$host_alias
1374target=$target_alias
1375
1376# FIXME: To remove some day.
1377if test "x$host_alias" != x; then
1378 if test "x$build_alias" = x; then
1379 cross_compiling=maybe
8d138742 1380 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
d9898ee8 1381 If a cross compiler is detected then cross compile mode will be used." >&2
1382 elif test "x$build_alias" != "x$host_alias"; then
1383 cross_compiling=yes
1384 fi
1385fi
1386
1387ac_tool_prefix=
1388test -n "$host_alias" && ac_tool_prefix=$host_alias-
1389
1390test "$silent" = yes && exec 6>/dev/null
1391
1392
dd184caf 1393ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394ac_ls_di=`ls -di .` &&
1395ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
8d138742 1396 { $as_echo "$as_me: error: working directory cannot be determined" >&2
dd184caf 1397 { (exit 1); exit 1; }; }
1398test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
8d138742 1399 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
dd184caf 1400 { (exit 1); exit 1; }; }
1401
1402
d9898ee8 1403# Find the source files, if location was not specified.
1404if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
dd184caf 1406 # Try the directory containing this script, then the parent directory.
8d138742
CE
1407 ac_confdir=`$as_dirname -- "$as_myself" ||
1408$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412$as_echo X"$as_myself" |
dd184caf 1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\/\)[^/].*/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\/\)$/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\).*/{
1426 s//\1/
1427 q
1428 }
1429 s/.*/./; q'`
d9898ee8 1430 srcdir=$ac_confdir
dd184caf 1431 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1432 srcdir=..
1433 fi
1434else
1435 ac_srcdir_defaulted=no
1436fi
dd184caf 1437if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
8d138742 1439 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1440 { (exit 1); exit 1; }; }
d9898ee8 1441fi
dd184caf 1442ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1443ac_abs_confdir=`(
8d138742 1444 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
d9898ee8 1445 { (exit 1); exit 1; }; }
dd184caf 1446 pwd)`
1447# When building in place, set srcdir=.
1448if test "$ac_abs_confdir" = "$ac_pwd"; then
1449 srcdir=.
1450fi
1451# Remove unnecessary trailing slashes from srcdir.
1452# Double slashes in file names in object file debugging info
1453# mess up M-x gdb in Emacs.
1454case $srcdir in
1455*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1456esac
1457for ac_var in $ac_precious_vars; do
1458 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_env_${ac_var}_value=\$${ac_var}
1460 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1462done
d9898ee8 1463
1464#
1465# Report the --help message.
1466#
1467if test "$ac_init_help" = "long"; then
1468 # Omit some internal or obsolete options to make the list less imposing.
1469 # This message is too long to be a string in the A/UX 3.1 sh.
1470 cat <<_ACEOF
1471\`configure' configures libhmac 1.00 to adapt to many kinds of systems.
1472
1473Usage: $0 [OPTION]... [VAR=VALUE]...
1474
1475To assign environment variables (e.g., CC, CFLAGS...), specify them as
1476VAR=VALUE. See below for descriptions of some of the useful variables.
1477
1478Defaults for the options are specified in brackets.
1479
1480Configuration:
1481 -h, --help display this help and exit
1482 --help=short display options specific to this package
1483 --help=recursive display the short help of all the included packages
1484 -V, --version display version information and exit
1485 -q, --quiet, --silent do not print \`checking...' messages
1486 --cache-file=FILE cache test results in FILE [disabled]
1487 -C, --config-cache alias for \`--cache-file=config.cache'
1488 -n, --no-create do not create output files
1489 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1490
d9898ee8 1491Installation directories:
1492 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1493 [$ac_default_prefix]
d9898ee8 1494 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1495 [PREFIX]
d9898ee8 1496
1497By default, \`make install' will install all the files in
1498\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1499an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1500for instance \`--prefix=\$HOME'.
1501
1502For better control, use the options below.
1503
1504Fine tuning of the installation directories:
8d138742
CE
1505 --bindir=DIR user executables [EPREFIX/bin]
1506 --sbindir=DIR system admin executables [EPREFIX/sbin]
1507 --libexecdir=DIR program executables [EPREFIX/libexec]
1508 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1509 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1510 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1511 --libdir=DIR object code libraries [EPREFIX/lib]
1512 --includedir=DIR C header files [PREFIX/include]
1513 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1514 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1515 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1516 --infodir=DIR info documentation [DATAROOTDIR/info]
1517 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1518 --mandir=DIR man documentation [DATAROOTDIR/man]
1519 --docdir=DIR documentation root [DATAROOTDIR/doc/libhmac]
1520 --htmldir=DIR html documentation [DOCDIR]
1521 --dvidir=DIR dvi documentation [DOCDIR]
1522 --pdfdir=DIR pdf documentation [DOCDIR]
1523 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1524_ACEOF
1525
1526 cat <<\_ACEOF
1527
1528Program names:
1529 --program-prefix=PREFIX prepend PREFIX to installed program names
1530 --program-suffix=SUFFIX append SUFFIX to installed program names
1531 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1532
1533System types:
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536_ACEOF
1537fi
1538
1539if test -n "$ac_init_help"; then
1540 case $ac_init_help in
1541 short | recursive ) echo "Configuration of libhmac 1.00:";;
1542 esac
1543 cat <<\_ACEOF
1544
1545Optional Features:
8d138742 1546 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --disable-dependency-tracking speeds up one-time build
1550 --enable-dependency-tracking do not reject slow dependency extractors
dd184caf 1551 --enable-shared[=PKGS] build shared libraries [default=yes]
1552 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1553 --enable-fast-install[=PKGS]
1554 optimize for fast installation [default=yes]
1555 --disable-libtool-lock avoid locking (might break parallel builds)
1556
1557Optional Packages:
1558 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1559 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d9898ee8 1560 --with-pic try to use only PIC/non-PIC objects [default=use
1561 both]
8d138742 1562 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
d9898ee8 1563
1564Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
dd184caf 1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
d9898ee8 1572 CPP C preprocessor
d9898ee8 1573
1574Use these variables to override the choices made by `configure' or to help
1575it to find libraries and programs with nonstandard names/locations.
1576
1577Report bugs to <courier-users@lists.sourceforge.net>.
1578_ACEOF
dd184caf 1579ac_status=$?
d9898ee8 1580fi
1581
1582if test "$ac_init_help" = "recursive"; then
1583 # If there are subdirs, report their specific --help.
d9898ee8 1584 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8d138742
CE
1585 test -d "$ac_dir" ||
1586 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1587 continue
d9898ee8 1588 ac_builddir=.
1589
dd184caf 1590case "$ac_dir" in
1591.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592*)
8d138742 1593 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 1594 # A ".." for each directory in $ac_dir_suffix.
8d138742 1595 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 1596 case $ac_top_builddir_sub in
1597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599 esac ;;
1600esac
1601ac_abs_top_builddir=$ac_pwd
1602ac_abs_builddir=$ac_pwd$ac_dir_suffix
1603# for backward compatibility:
1604ac_top_builddir=$ac_top_build_prefix
d9898ee8 1605
1606case $srcdir in
dd184caf 1607 .) # We are building in place.
d9898ee8 1608 ac_srcdir=.
dd184caf 1609 ac_top_srcdir=$ac_top_builddir_sub
1610 ac_abs_top_srcdir=$ac_pwd ;;
1611 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1612 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1613 ac_top_srcdir=$srcdir
1614 ac_abs_top_srcdir=$srcdir ;;
1615 *) # Relative name.
1616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617 ac_top_srcdir=$ac_top_build_prefix$srcdir
1618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1619esac
dd184caf 1620ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1621
1622 cd "$ac_dir" || { ac_status=$?; continue; }
1623 # Check for guested configure.
1624 if test -f "$ac_srcdir/configure.gnu"; then
1625 echo &&
1626 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1627 elif test -f "$ac_srcdir/configure"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1630 else
8d138742 1631 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1632 fi || ac_status=$?
1633 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1634 done
1635fi
1636
dd184caf 1637test -n "$ac_init_help" && exit $ac_status
d9898ee8 1638if $ac_init_version; then
1639 cat <<\_ACEOF
1640libhmac configure 1.00
8d138742 1641generated by GNU Autoconf 2.63
d9898ee8 1642
dd184caf 1643Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8d138742 16442002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d9898ee8 1645This configure script is free software; the Free Software Foundation
1646gives unlimited permission to copy, distribute and modify it.
1647_ACEOF
dd184caf 1648 exit
d9898ee8 1649fi
dd184caf 1650cat >config.log <<_ACEOF
d9898ee8 1651This file contains any messages produced by compilers while
1652running configure, to aid debugging if configure makes a mistake.
1653
1654It was created by libhmac $as_me 1.00, which was
8d138742 1655generated by GNU Autoconf 2.63. Invocation command line was
d9898ee8 1656
1657 $ $0 $@
1658
1659_ACEOF
dd184caf 1660exec 5>>config.log
d9898ee8 1661{
1662cat <<_ASUNAME
1663## --------- ##
1664## Platform. ##
1665## --------- ##
1666
1667hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1668uname -m = `(uname -m) 2>/dev/null || echo unknown`
1669uname -r = `(uname -r) 2>/dev/null || echo unknown`
1670uname -s = `(uname -s) 2>/dev/null || echo unknown`
1671uname -v = `(uname -v) 2>/dev/null || echo unknown`
1672
1673/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1674/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1675
1676/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1677/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1678/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1679/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1680/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1681/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1682/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1683
1684_ASUNAME
1685
1686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687for as_dir in $PATH
1688do
1689 IFS=$as_save_IFS
1690 test -z "$as_dir" && as_dir=.
8d138742 1691 $as_echo "PATH: $as_dir"
d9898ee8 1692done
dd184caf 1693IFS=$as_save_IFS
d9898ee8 1694
1695} >&5
1696
1697cat >&5 <<_ACEOF
1698
1699
1700## ----------- ##
1701## Core tests. ##
1702## ----------- ##
1703
1704_ACEOF
1705
1706
1707# Keep a trace of the command line.
1708# Strip out --no-create and --no-recursion so they do not pile up.
1709# Strip out --silent because we don't want to record it for future runs.
1710# Also quote any args containing shell meta-characters.
1711# Make two passes to allow for proper duplicate-argument suppression.
1712ac_configure_args=
1713ac_configure_args0=
1714ac_configure_args1=
d9898ee8 1715ac_must_keep_next=false
1716for ac_pass in 1 2
1717do
1718 for ac_arg
1719 do
1720 case $ac_arg in
1721 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1723 | -silent | --silent | --silen | --sile | --sil)
1724 continue ;;
dd184caf 1725 *\'*)
8d138742 1726 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1727 esac
1728 case $ac_pass in
1729 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1730 2)
1731 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1732 if test $ac_must_keep_next = true; then
1733 ac_must_keep_next=false # Got value, back to normal.
1734 else
1735 case $ac_arg in
1736 *=* | --config-cache | -C | -disable-* | --disable-* \
1737 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1738 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1739 | -with-* | --with-* | -without-* | --without-* | --x)
1740 case "$ac_configure_args0 " in
1741 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1742 esac
1743 ;;
1744 -* ) ac_must_keep_next=true ;;
1745 esac
1746 fi
dd184caf 1747 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1748 ;;
1749 esac
1750 done
1751done
1752$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1753$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1754
1755# When interrupted or exit'd, cleanup temporary files, and complete
1756# config.log. We remove comments because anyway the quotes in there
1757# would cause problems or look ugly.
dd184caf 1758# WARNING: Use '\'' to represent an apostrophe within the trap.
1759# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1760trap 'exit_status=$?
1761 # Save into config.log some information that might help in debugging.
1762 {
1763 echo
1764
1765 cat <<\_ASBOX
1766## ---------------- ##
1767## Cache variables. ##
1768## ---------------- ##
1769_ASBOX
1770 echo
1771 # The following way of writing the cache mishandles newlines in values,
dd184caf 1772(
1773 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1774 eval ac_val=\$$ac_var
1775 case $ac_val in #(
1776 *${as_nl}*)
1777 case $ac_var in #(
8d138742
CE
1778 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1779$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 1780 esac
1781 case $ac_var in #(
1782 _ | IFS | as_nl) ;; #(
8d138742 1783 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
dd184caf 1784 *) $as_unset $ac_var ;;
1785 esac ;;
1786 esac
1787 done
d9898ee8 1788 (set) 2>&1 |
dd184caf 1789 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1790 *${as_nl}ac_space=\ *)
d9898ee8 1791 sed -n \
dd184caf 1792 "s/'\''/'\''\\\\'\'''\''/g;
1793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1794 ;; #(
d9898ee8 1795 *)
dd184caf 1796 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1797 ;;
dd184caf 1798 esac |
1799 sort
1800)
d9898ee8 1801 echo
1802
1803 cat <<\_ASBOX
1804## ----------------- ##
1805## Output variables. ##
1806## ----------------- ##
1807_ASBOX
1808 echo
1809 for ac_var in $ac_subst_vars
1810 do
dd184caf 1811 eval ac_val=\$$ac_var
1812 case $ac_val in
8d138742 1813 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1814 esac
8d138742 1815 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1816 done | sort
1817 echo
1818
1819 if test -n "$ac_subst_files"; then
1820 cat <<\_ASBOX
dd184caf 1821## ------------------- ##
1822## File substitutions. ##
1823## ------------------- ##
d9898ee8 1824_ASBOX
1825 echo
1826 for ac_var in $ac_subst_files
1827 do
dd184caf 1828 eval ac_val=\$$ac_var
1829 case $ac_val in
8d138742 1830 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1831 esac
8d138742 1832 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1833 done | sort
1834 echo
1835 fi
1836
1837 if test -s confdefs.h; then
1838 cat <<\_ASBOX
1839## ----------- ##
1840## confdefs.h. ##
1841## ----------- ##
1842_ASBOX
1843 echo
dd184caf 1844 cat confdefs.h
d9898ee8 1845 echo
1846 fi
1847 test "$ac_signal" != 0 &&
8d138742
CE
1848 $as_echo "$as_me: caught signal $ac_signal"
1849 $as_echo "$as_me: exit $exit_status"
d9898ee8 1850 } >&5
dd184caf 1851 rm -f core *.core core.conftest.* &&
1852 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1853 exit $exit_status
dd184caf 1854' 0
d9898ee8 1855for ac_signal in 1 2 13 15; do
1856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1857done
1858ac_signal=0
1859
1860# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 1861rm -f -r conftest* confdefs.h
d9898ee8 1862
1863# Predefined preprocessor variables.
1864
1865cat >>confdefs.h <<_ACEOF
1866#define PACKAGE_NAME "$PACKAGE_NAME"
1867_ACEOF
1868
1869
1870cat >>confdefs.h <<_ACEOF
1871#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1872_ACEOF
1873
1874
1875cat >>confdefs.h <<_ACEOF
1876#define PACKAGE_VERSION "$PACKAGE_VERSION"
1877_ACEOF
1878
1879
1880cat >>confdefs.h <<_ACEOF
1881#define PACKAGE_STRING "$PACKAGE_STRING"
1882_ACEOF
1883
1884
1885cat >>confdefs.h <<_ACEOF
1886#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1887_ACEOF
1888
1889
1890# Let the site file select an alternate cache file if it wants to.
8d138742
CE
1891# Prefer an explicitly selected file to automatically selected ones.
1892ac_site_file1=NONE
1893ac_site_file2=NONE
dd184caf 1894if test -n "$CONFIG_SITE"; then
8d138742 1895 ac_site_file1=$CONFIG_SITE
dd184caf 1896elif test "x$prefix" != xNONE; then
8d138742
CE
1897 ac_site_file1=$prefix/share/config.site
1898 ac_site_file2=$prefix/etc/config.site
dd184caf 1899else
8d138742
CE
1900 ac_site_file1=$ac_default_prefix/share/config.site
1901 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 1902fi
8d138742 1903for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 1904do
8d138742 1905 test "x$ac_site_file" = xNONE && continue
d9898ee8 1906 if test -r "$ac_site_file"; then
8d138742
CE
1907 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1908$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 1909 sed 's/^/| /' "$ac_site_file" >&5
1910 . "$ac_site_file"
1911 fi
1912done
1913
1914if test -r "$cache_file"; then
1915 # Some versions of bash will fail to source /dev/null (special
1916 # files actually), so we avoid doing that.
1917 if test -f "$cache_file"; then
8d138742
CE
1918 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1919$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 1920 case $cache_file in
dd184caf 1921 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1922 *) . "./$cache_file";;
d9898ee8 1923 esac
1924 fi
1925else
8d138742
CE
1926 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1927$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 1928 >$cache_file
1929fi
1930
1931# Check that the precious variables saved in the cache have kept the same
1932# value.
1933ac_cache_corrupted=false
dd184caf 1934for ac_var in $ac_precious_vars; do
d9898ee8 1935 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1936 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 1937 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1938 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1939 case $ac_old_set,$ac_new_set in
1940 set,)
8d138742
CE
1941 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1942$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 1943 ac_cache_corrupted=: ;;
1944 ,set)
8d138742
CE
1945 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1946$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 1947 ac_cache_corrupted=: ;;
1948 ,);;
1949 *)
1950 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
1951 # differences in whitespace do not lead to failure.
1952 ac_old_val_w=`echo x $ac_old_val`
1953 ac_new_val_w=`echo x $ac_new_val`
1954 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1955 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1956$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1957 ac_cache_corrupted=:
1958 else
1959 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1960$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1961 eval $ac_var=\$ac_old_val
1962 fi
1963 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1964$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1965 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1966$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 1967 fi;;
1968 esac
1969 # Pass precious variables to config.status.
1970 if test "$ac_new_set" = set; then
1971 case $ac_new_val in
8d138742 1972 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1973 *) ac_arg=$ac_var=$ac_new_val ;;
1974 esac
1975 case " $ac_configure_args " in
1976 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1977 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1978 esac
1979 fi
1980done
1981if $ac_cache_corrupted; then
8d138742
CE
1982 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1984 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1985$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1986 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1987$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
d9898ee8 1988 { (exit 1); exit 1; }; }
1989fi
1990
d9898ee8 1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
dd184caf 2015ac_ext=c
2016ac_cpp='$CPP $CPPFLAGS'
2017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2020
2021
2022
2023>confdefs.h # Kill PACKAGE_ macros
2024
2025
8d138742 2026am__api_version='1.11'
dd184caf 2027
d9898ee8 2028ac_aux_dir=
dd184caf 2029for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2030 if test -f "$ac_dir/install-sh"; then
d9898ee8 2031 ac_aux_dir=$ac_dir
2032 ac_install_sh="$ac_aux_dir/install-sh -c"
2033 break
dd184caf 2034 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2035 ac_aux_dir=$ac_dir
2036 ac_install_sh="$ac_aux_dir/install.sh -c"
2037 break
dd184caf 2038 elif test -f "$ac_dir/shtool"; then
d9898ee8 2039 ac_aux_dir=$ac_dir
2040 ac_install_sh="$ac_aux_dir/shtool install -c"
2041 break
2042 fi
2043done
2044if test -z "$ac_aux_dir"; then
8d138742
CE
2045 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2046$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 2047 { (exit 1); exit 1; }; }
2048fi
dd184caf 2049
2050# These three variables are undocumented and unsupported,
2051# and are intended to be withdrawn in a future Autoconf release.
2052# They can cause serious problems if a builder's source tree is in a directory
2053# whose full name contains unusual characters.
2054ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2055ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2056ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2057
d9898ee8 2058
2059# Find a good install program. We prefer a C program (faster),
2060# so one script is as good as another. But avoid the broken or
2061# incompatible versions:
2062# SysV /etc/install, /usr/sbin/install
2063# SunOS /usr/etc/install
2064# IRIX /sbin/install
2065# AIX /bin/install
2066# AmigaOS /C/install, which installs bootblocks on floppy discs
2067# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2068# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2069# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2070# OS/2's system install, which has a completely different semantic
2071# ./install, which can be erroneously created by make from ./install.sh.
8d138742
CE
2072# Reject install programs that cannot install multiple files.
2073{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2074$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2075if test -z "$INSTALL"; then
2076if test "${ac_cv_path_install+set}" = set; then
8d138742 2077 $as_echo_n "(cached) " >&6
d9898ee8 2078else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 # Account for people who put trailing slashes in PATH elements.
2085case $as_dir/ in
2086 ./ | .// | /cC/* | \
2087 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2088 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2089 /usr/ucb/* ) ;;
2090 *)
2091 # OSF1 and SCO ODT 3.0 have their own names for install.
2092 # Don't use installbsd from OSF since it installs stuff as root
2093 # by default.
2094 for ac_prog in ginstall scoinst install; do
2095 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2096 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2097 if test $ac_prog = install &&
2098 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2099 # AIX install. It has an incompatible calling convention.
2100 :
2101 elif test $ac_prog = install &&
2102 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2103 # program-specific install script used by HP pwplus--don't use.
2104 :
2105 else
8d138742
CE
2106 rm -rf conftest.one conftest.two conftest.dir
2107 echo one > conftest.one
2108 echo two > conftest.two
2109 mkdir conftest.dir
2110 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2111 test -s conftest.one && test -s conftest.two &&
2112 test -s conftest.dir/conftest.one &&
2113 test -s conftest.dir/conftest.two
2114 then
2115 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2116 break 3
2117 fi
d9898ee8 2118 fi
2119 fi
2120 done
2121 done
2122 ;;
2123esac
8d138742 2124
d9898ee8 2125done
dd184caf 2126IFS=$as_save_IFS
d9898ee8 2127
8d138742 2128rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2129
2130fi
2131 if test "${ac_cv_path_install+set}" = set; then
2132 INSTALL=$ac_cv_path_install
2133 else
dd184caf 2134 # As a last resort, use the slow shell script. Don't cache a
2135 # value for INSTALL within a source directory, because that will
d9898ee8 2136 # break other packages using the cache if that directory is
dd184caf 2137 # removed, or if the value is a relative name.
d9898ee8 2138 INSTALL=$ac_install_sh
2139 fi
2140fi
8d138742
CE
2141{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2142$as_echo "$INSTALL" >&6; }
d9898ee8 2143
2144# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2145# It thinks the first close brace ends the variable substitution.
2146test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2147
2148test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2149
2150test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2151
8d138742
CE
2152{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2153$as_echo_n "checking whether build environment is sane... " >&6; }
d9898ee8 2154# Just in case
2155sleep 1
2156echo timestamp > conftest.file
8d138742
CE
2157# Reject unsafe characters in $srcdir or the absolute working directory
2158# name. Accept space and tab only in the latter.
2159am_lf='
2160'
2161case `pwd` in
2162 *[\\\"\#\$\&\'\`$am_lf]*)
2163 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2164$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2165 { (exit 1); exit 1; }; };;
2166esac
2167case $srcdir in
2168 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2169 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2170$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2171 { (exit 1); exit 1; }; };;
2172esac
2173
d9898ee8 2174# Do `set' in a subshell so we don't clobber the current shell's
2175# arguments. Must try -L first in case configure is actually a
2176# symlink; some systems play weird games with the mod time of symlinks
2177# (eg FreeBSD returns the mod time of the symlink's containing
2178# directory).
2179if (
8d138742 2180 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
d9898ee8 2181 if test "$*" = "X"; then
2182 # -L didn't work.
8d138742 2183 set X `ls -t "$srcdir/configure" conftest.file`
d9898ee8 2184 fi
2185 rm -f conftest.file
2186 if test "$*" != "X $srcdir/configure conftest.file" \
2187 && test "$*" != "X conftest.file $srcdir/configure"; then
2188
2189 # If neither matched, then we have a broken ls. This can happen
2190 # if, for instance, CONFIG_SHELL is bash and it inherits a
2191 # broken ls alias from the environment. This has actually
2192 # happened. Such a system could not be considered "sane".
8d138742 2193 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2194alias in your environment" >&5
8d138742 2195$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2196alias in your environment" >&2;}
2197 { (exit 1); exit 1; }; }
2198 fi
2199
2200 test "$2" = conftest.file
2201 )
2202then
2203 # Ok.
2204 :
2205else
8d138742 2206 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
d9898ee8 2207Check your system clock" >&5
8d138742 2208$as_echo "$as_me: error: newly created file is older than distributed files!
d9898ee8 2209Check your system clock" >&2;}
2210 { (exit 1); exit 1; }; }
2211fi
8d138742
CE
2212{ $as_echo "$as_me:$LINENO: result: yes" >&5
2213$as_echo "yes" >&6; }
d9898ee8 2214test "$program_prefix" != NONE &&
dd184caf 2215 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2216# Use a double $ so make ignores it.
2217test "$program_suffix" != NONE &&
dd184caf 2218 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2219# Double any \ or $.
d9898ee8 2220# By default was `s,x,x', remove it if useless.
8d138742
CE
2221ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2222program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2223
2224# expand $ac_aux_dir to an absolute path
2225am_aux_dir=`cd $ac_aux_dir && pwd`
2226
8d138742
CE
2227if test x"${MISSING+set}" != xset; then
2228 case $am_aux_dir in
2229 *\ * | *\ *)
2230 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2231 *)
2232 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2233 esac
2234fi
d9898ee8 2235# Use eval to expand $SHELL
2236if eval "$MISSING --run true"; then
2237 am_missing_run="$MISSING --run "
2238else
2239 am_missing_run=
8d138742
CE
2240 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2241$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2242fi
2243
2244if test x"${install_sh}" != xset; then
2245 case $am_aux_dir in
2246 *\ * | *\ *)
2247 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2248 *)
2249 install_sh="\${SHELL} $am_aux_dir/install-sh"
2250 esac
2251fi
2252
2253# Installed binaries are usually stripped using `strip' when the user
2254# run `make install-strip'. However `strip' might not be the right
2255# tool to use in cross-compilation environments, therefore Automake
2256# will honor the `STRIP' environment variable to overrule this program.
2257if test "$cross_compiling" != no; then
2258 if test -n "$ac_tool_prefix"; then
2259 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2260set dummy ${ac_tool_prefix}strip; ac_word=$2
2261{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2262$as_echo_n "checking for $ac_word... " >&6; }
2263if test "${ac_cv_prog_STRIP+set}" = set; then
2264 $as_echo_n "(cached) " >&6
2265else
2266 if test -n "$STRIP"; then
2267 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2268else
2269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270for as_dir in $PATH
2271do
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2276 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 break 2
2279 fi
2280done
2281done
2282IFS=$as_save_IFS
2283
2284fi
2285fi
2286STRIP=$ac_cv_prog_STRIP
2287if test -n "$STRIP"; then
2288 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2289$as_echo "$STRIP" >&6; }
2290else
2291 { $as_echo "$as_me:$LINENO: result: no" >&5
2292$as_echo "no" >&6; }
d9898ee8 2293fi
2294
8d138742
CE
2295
2296fi
2297if test -z "$ac_cv_prog_STRIP"; then
2298 ac_ct_STRIP=$STRIP
2299 # Extract the first word of "strip", so it can be a program name with args.
2300set dummy strip; ac_word=$2
2301{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2302$as_echo_n "checking for $ac_word... " >&6; }
2303if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2304 $as_echo_n "(cached) " >&6
2305else
2306 if test -n "$ac_ct_STRIP"; then
2307 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2308else
2309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310for as_dir in $PATH
2311do
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2316 ac_cv_prog_ac_ct_STRIP="strip"
2317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 break 2
2319 fi
2320done
2321done
2322IFS=$as_save_IFS
2323
2324fi
2325fi
2326ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2327if test -n "$ac_ct_STRIP"; then
2328 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2329$as_echo "$ac_ct_STRIP" >&6; }
2330else
2331 { $as_echo "$as_me:$LINENO: result: no" >&5
2332$as_echo "no" >&6; }
2333fi
2334
2335 if test "x$ac_ct_STRIP" = x; then
2336 STRIP=":"
2337 else
2338 case $cross_compiling:$ac_tool_warned in
2339yes:)
2340{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2342ac_tool_warned=yes ;;
2343esac
2344 STRIP=$ac_ct_STRIP
2345 fi
2346else
2347 STRIP="$ac_cv_prog_STRIP"
2348fi
2349
2350fi
2351INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2352
2353{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2354$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2355if test -z "$MKDIR_P"; then
2356 if test "${ac_cv_path_mkdir+set}" = set; then
8d138742 2357 $as_echo_n "(cached) " >&6
dd184caf 2358else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2361do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_prog in mkdir gmkdir; do
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2367 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2368 'mkdir (GNU coreutils) '* | \
2369 'mkdir (coreutils) '* | \
2370 'mkdir (fileutils) '4.1*)
2371 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2372 break 3;;
2373 esac
2374 done
2375 done
2376done
2377IFS=$as_save_IFS
2378
2379fi
2380
2381 if test "${ac_cv_path_mkdir+set}" = set; then
2382 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2383 else
dd184caf 2384 # As a last resort, use the slow shell script. Don't cache a
2385 # value for MKDIR_P within a source directory, because that will
2386 # break other packages using the cache if that directory is
2387 # removed, or if the value is a relative name.
2388 test -d ./--version && rmdir ./--version
2389 MKDIR_P="$ac_install_sh -d"
d9898ee8 2390 fi
2391fi
8d138742
CE
2392{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2393$as_echo "$MKDIR_P" >&6; }
dd184caf 2394
2395mkdir_p="$MKDIR_P"
2396case $mkdir_p in
2397 [\\/$]* | ?:[\\/]*) ;;
2398 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2399esac
d9898ee8 2400
2401for ac_prog in gawk mawk nawk awk
2402do
2403 # Extract the first word of "$ac_prog", so it can be a program name with args.
2404set dummy $ac_prog; ac_word=$2
8d138742
CE
2405{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2406$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2407if test "${ac_cv_prog_AWK+set}" = set; then
8d138742 2408 $as_echo_n "(cached) " >&6
d9898ee8 2409else
2410 if test -n "$AWK"; then
2411 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2412else
2413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414for as_dir in $PATH
2415do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2420 ac_cv_prog_AWK="$ac_prog"
8d138742 2421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2422 break 2
2423 fi
2424done
2425done
dd184caf 2426IFS=$as_save_IFS
d9898ee8 2427
2428fi
2429fi
2430AWK=$ac_cv_prog_AWK
2431if test -n "$AWK"; then
8d138742
CE
2432 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2433$as_echo "$AWK" >&6; }
d9898ee8 2434else
8d138742
CE
2435 { $as_echo "$as_me:$LINENO: result: no" >&5
2436$as_echo "no" >&6; }
d9898ee8 2437fi
2438
dd184caf 2439
d9898ee8 2440 test -n "$AWK" && break
2441done
2442
8d138742
CE
2443{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2444$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2445set x ${MAKE-make}
2446ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
dd184caf 2447if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 2448 $as_echo_n "(cached) " >&6
d9898ee8 2449else
2450 cat >conftest.make <<\_ACEOF
dd184caf 2451SHELL = /bin/sh
d9898ee8 2452all:
dd184caf 2453 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2454_ACEOF
2455# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
dd184caf 2456case `${MAKE-make} -f conftest.make 2>/dev/null` in
2457 *@@@%%%=?*=@@@%%%*)
2458 eval ac_cv_prog_make_${ac_make}_set=yes;;
2459 *)
2460 eval ac_cv_prog_make_${ac_make}_set=no;;
2461esac
d9898ee8 2462rm -f conftest.make
2463fi
dd184caf 2464if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8d138742
CE
2465 { $as_echo "$as_me:$LINENO: result: yes" >&5
2466$as_echo "yes" >&6; }
d9898ee8 2467 SET_MAKE=
2468else
8d138742
CE
2469 { $as_echo "$as_me:$LINENO: result: no" >&5
2470$as_echo "no" >&6; }
d9898ee8 2471 SET_MAKE="MAKE=${MAKE-make}"
2472fi
2473
2474rm -rf .tst 2>/dev/null
2475mkdir .tst 2>/dev/null
2476if test -d .tst; then
2477 am__leading_dot=.
2478else
2479 am__leading_dot=_
2480fi
2481rmdir .tst 2>/dev/null
2482
dd184caf 2483if test "`cd $srcdir && pwd`" != "`pwd`"; then
2484 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2485 # is not polluted with repeated "-I."
2486 am__isrc=' -I$(srcdir)'
2487 # test to see if srcdir already configured
2488 if test -f $srcdir/config.status; then
8d138742
CE
2489 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2490$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
d9898ee8 2491 { (exit 1); exit 1; }; }
dd184caf 2492 fi
d9898ee8 2493fi
2494
2495# test whether we have cygpath
2496if test -z "$CYGPATH_W"; then
2497 if (cygpath --version) >/dev/null 2>/dev/null; then
2498 CYGPATH_W='cygpath -w'
2499 else
2500 CYGPATH_W=echo
2501 fi
2502fi
2503
2504
2505# Define the identity of the package.
2506 PACKAGE='libhmac'
2507 VERSION='1.00'
2508
2509
2510# Some tools Automake needs.
2511
2512ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2513
2514
2515AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2516
2517
2518AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2519
2520
2521AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2522
2523
2524MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2525
d9898ee8 2526# We need awk for the "check" target. The system "awk" is bad on
2527# some platforms.
2528# Always define AMTAR for backward compatibility.
2529
2530AMTAR=${AMTAR-"${am_missing_run}tar"}
2531
2532am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2533
2534
2535
2536
2537
2538
2539
dd184caf 2540ac_config_headers="$ac_config_headers config.h"
d9898ee8 2541
2542
2543for ac_prog in gawk mawk nawk awk
2544do
2545 # Extract the first word of "$ac_prog", so it can be a program name with args.
2546set dummy $ac_prog; ac_word=$2
8d138742
CE
2547{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2548$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2549if test "${ac_cv_prog_AWK+set}" = set; then
8d138742 2550 $as_echo_n "(cached) " >&6
d9898ee8 2551else
2552 if test -n "$AWK"; then
2553 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2554else
2555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556for as_dir in $PATH
2557do
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2562 ac_cv_prog_AWK="$ac_prog"
8d138742 2563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2564 break 2
2565 fi
2566done
2567done
dd184caf 2568IFS=$as_save_IFS
d9898ee8 2569
2570fi
2571fi
2572AWK=$ac_cv_prog_AWK
2573if test -n "$AWK"; then
8d138742
CE
2574 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2575$as_echo "$AWK" >&6; }
d9898ee8 2576else
8d138742
CE
2577 { $as_echo "$as_me:$LINENO: result: no" >&5
2578$as_echo "no" >&6; }
d9898ee8 2579fi
2580
dd184caf 2581
d9898ee8 2582 test -n "$AWK" && break
2583done
2584
2585# Find a good install program. We prefer a C program (faster),
2586# so one script is as good as another. But avoid the broken or
2587# incompatible versions:
2588# SysV /etc/install, /usr/sbin/install
2589# SunOS /usr/etc/install
2590# IRIX /sbin/install
2591# AIX /bin/install
2592# AmigaOS /C/install, which installs bootblocks on floppy discs
2593# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2594# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2595# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2596# OS/2's system install, which has a completely different semantic
2597# ./install, which can be erroneously created by make from ./install.sh.
8d138742
CE
2598# Reject install programs that cannot install multiple files.
2599{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2600$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2601if test -z "$INSTALL"; then
2602if test "${ac_cv_path_install+set}" = set; then
8d138742 2603 $as_echo_n "(cached) " >&6
d9898ee8 2604else
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 # Account for people who put trailing slashes in PATH elements.
2611case $as_dir/ in
2612 ./ | .// | /cC/* | \
2613 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2614 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2615 /usr/ucb/* ) ;;
2616 *)
2617 # OSF1 and SCO ODT 3.0 have their own names for install.
2618 # Don't use installbsd from OSF since it installs stuff as root
2619 # by default.
2620 for ac_prog in ginstall scoinst install; do
2621 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2622 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2623 if test $ac_prog = install &&
2624 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2625 # AIX install. It has an incompatible calling convention.
2626 :
2627 elif test $ac_prog = install &&
2628 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2629 # program-specific install script used by HP pwplus--don't use.
2630 :
2631 else
8d138742
CE
2632 rm -rf conftest.one conftest.two conftest.dir
2633 echo one > conftest.one
2634 echo two > conftest.two
2635 mkdir conftest.dir
2636 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2637 test -s conftest.one && test -s conftest.two &&
2638 test -s conftest.dir/conftest.one &&
2639 test -s conftest.dir/conftest.two
2640 then
2641 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2642 break 3
2643 fi
d9898ee8 2644 fi
2645 fi
2646 done
2647 done
2648 ;;
2649esac
8d138742 2650
d9898ee8 2651done
dd184caf 2652IFS=$as_save_IFS
d9898ee8 2653
8d138742 2654rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2655
2656fi
2657 if test "${ac_cv_path_install+set}" = set; then
2658 INSTALL=$ac_cv_path_install
2659 else
dd184caf 2660 # As a last resort, use the slow shell script. Don't cache a
2661 # value for INSTALL within a source directory, because that will
d9898ee8 2662 # break other packages using the cache if that directory is
dd184caf 2663 # removed, or if the value is a relative name.
d9898ee8 2664 INSTALL=$ac_install_sh
2665 fi
2666fi
8d138742
CE
2667{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2668$as_echo "$INSTALL" >&6; }
d9898ee8 2669
2670# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2671# It thinks the first close brace ends the variable substitution.
2672test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2673
2674test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2675
2676test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2677
8d138742
CE
2678{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
2679$as_echo_n "checking whether ln -s works... " >&6; }
d9898ee8 2680LN_S=$as_ln_s
2681if test "$LN_S" = "ln -s"; then
8d138742
CE
2682 { $as_echo "$as_me:$LINENO: result: yes" >&5
2683$as_echo "yes" >&6; }
d9898ee8 2684else
8d138742
CE
2685 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2686$as_echo "no, using $LN_S" >&6; }
d9898ee8 2687fi
2688
2689ac_ext=c
2690ac_cpp='$CPP $CPPFLAGS'
2691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694if test -n "$ac_tool_prefix"; then
2695 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2696set dummy ${ac_tool_prefix}gcc; 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
2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2712 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8d138742 2713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2714 break 2
2715 fi
2716done
2717done
dd184caf 2718IFS=$as_save_IFS
d9898ee8 2719
2720fi
2721fi
2722CC=$ac_cv_prog_CC
2723if test -n "$CC"; then
8d138742
CE
2724 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2725$as_echo "$CC" >&6; }
d9898ee8 2726else
8d138742
CE
2727 { $as_echo "$as_me:$LINENO: result: no" >&5
2728$as_echo "no" >&6; }
d9898ee8 2729fi
2730
dd184caf 2731
d9898ee8 2732fi
2733if test -z "$ac_cv_prog_CC"; then
2734 ac_ct_CC=$CC
2735 # Extract the first word of "gcc", so it can be a program name with args.
2736set dummy gcc; ac_word=$2
8d138742
CE
2737{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2738$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2739if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 2740 $as_echo_n "(cached) " >&6
d9898ee8 2741else
2742 if test -n "$ac_ct_CC"; then
2743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2744else
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2752 ac_cv_prog_ac_ct_CC="gcc"
8d138742 2753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2754 break 2
2755 fi
2756done
2757done
dd184caf 2758IFS=$as_save_IFS
d9898ee8 2759
2760fi
2761fi
2762ac_ct_CC=$ac_cv_prog_ac_ct_CC
2763if test -n "$ac_ct_CC"; then
8d138742
CE
2764 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2765$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2766else
8d138742
CE
2767 { $as_echo "$as_me:$LINENO: result: no" >&5
2768$as_echo "no" >&6; }
d9898ee8 2769fi
2770
dd184caf 2771 if test "x$ac_ct_CC" = x; then
2772 CC=""
2773 else
2774 case $cross_compiling:$ac_tool_warned in
2775yes:)
8d138742
CE
2776{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2778ac_tool_warned=yes ;;
2779esac
2780 CC=$ac_ct_CC
2781 fi
d9898ee8 2782else
2783 CC="$ac_cv_prog_CC"
2784fi
2785
2786if test -z "$CC"; then
dd184caf 2787 if test -n "$ac_tool_prefix"; then
2788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2789set dummy ${ac_tool_prefix}cc; ac_word=$2
8d138742
CE
2790{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2791$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2792if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2793 $as_echo_n "(cached) " >&6
d9898ee8 2794else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2805 ac_cv_prog_CC="${ac_tool_prefix}cc"
8d138742 2806 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2807 break 2
2808 fi
2809done
2810done
dd184caf 2811IFS=$as_save_IFS
d9898ee8 2812
2813fi
2814fi
2815CC=$ac_cv_prog_CC
2816if test -n "$CC"; then
8d138742
CE
2817 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2818$as_echo "$CC" >&6; }
d9898ee8 2819else
8d138742
CE
2820 { $as_echo "$as_me:$LINENO: result: no" >&5
2821$as_echo "no" >&6; }
d9898ee8 2822fi
2823
d9898ee8 2824
dd184caf 2825 fi
d9898ee8 2826fi
2827if test -z "$CC"; then
2828 # Extract the first word of "cc", so it can be a program name with args.
2829set dummy cc; ac_word=$2
8d138742
CE
2830{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2831$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2832if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2833 $as_echo_n "(cached) " >&6
d9898ee8 2834else
2835 if test -n "$CC"; then
2836 ac_cv_prog_CC="$CC" # Let the user override the test.
2837else
2838 ac_prog_rejected=no
2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840for as_dir in $PATH
2841do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2846 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2847 ac_prog_rejected=yes
2848 continue
2849 fi
2850 ac_cv_prog_CC="cc"
8d138742 2851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2852 break 2
2853 fi
2854done
2855done
dd184caf 2856IFS=$as_save_IFS
d9898ee8 2857
2858if test $ac_prog_rejected = yes; then
2859 # We found a bogon in the path, so make sure we never use it.
2860 set dummy $ac_cv_prog_CC
2861 shift
2862 if test $# != 0; then
2863 # We chose a different compiler from the bogus one.
2864 # However, it has the same basename, so the bogon will be chosen
2865 # first if we set CC to just the basename; use the full file name.
2866 shift
2867 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2868 fi
2869fi
2870fi
2871fi
2872CC=$ac_cv_prog_CC
2873if test -n "$CC"; then
8d138742
CE
2874 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2875$as_echo "$CC" >&6; }
d9898ee8 2876else
8d138742
CE
2877 { $as_echo "$as_me:$LINENO: result: no" >&5
2878$as_echo "no" >&6; }
d9898ee8 2879fi
2880
dd184caf 2881
d9898ee8 2882fi
2883if test -z "$CC"; then
2884 if test -n "$ac_tool_prefix"; then
dd184caf 2885 for ac_prog in cl.exe
d9898ee8 2886 do
2887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2888set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8d138742
CE
2889{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2890$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2891if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2892 $as_echo_n "(cached) " >&6
d9898ee8 2893else
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2896else
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2904 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8d138742 2905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2906 break 2
2907 fi
2908done
2909done
dd184caf 2910IFS=$as_save_IFS
d9898ee8 2911
2912fi
2913fi
2914CC=$ac_cv_prog_CC
2915if test -n "$CC"; then
8d138742
CE
2916 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2917$as_echo "$CC" >&6; }
d9898ee8 2918else
8d138742
CE
2919 { $as_echo "$as_me:$LINENO: result: no" >&5
2920$as_echo "no" >&6; }
d9898ee8 2921fi
2922
dd184caf 2923
d9898ee8 2924 test -n "$CC" && break
2925 done
2926fi
2927if test -z "$CC"; then
2928 ac_ct_CC=$CC
dd184caf 2929 for ac_prog in cl.exe
d9898ee8 2930do
2931 # Extract the first word of "$ac_prog", so it can be a program name with args.
2932set dummy $ac_prog; ac_word=$2
8d138742
CE
2933{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2934$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2935if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 2936 $as_echo_n "(cached) " >&6
d9898ee8 2937else
2938 if test -n "$ac_ct_CC"; then
2939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940else
2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2948 ac_cv_prog_ac_ct_CC="$ac_prog"
8d138742 2949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2950 break 2
2951 fi
2952done
2953done
dd184caf 2954IFS=$as_save_IFS
d9898ee8 2955
2956fi
2957fi
2958ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959if test -n "$ac_ct_CC"; then
8d138742
CE
2960 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2961$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2962else
8d138742
CE
2963 { $as_echo "$as_me:$LINENO: result: no" >&5
2964$as_echo "no" >&6; }
d9898ee8 2965fi
2966
dd184caf 2967
d9898ee8 2968 test -n "$ac_ct_CC" && break
2969done
2970
dd184caf 2971 if test "x$ac_ct_CC" = x; then
2972 CC=""
2973 else
2974 case $cross_compiling:$ac_tool_warned in
2975yes:)
8d138742
CE
2976{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2978ac_tool_warned=yes ;;
2979esac
2980 CC=$ac_ct_CC
2981 fi
d9898ee8 2982fi
2983
2984fi
2985
2986
8d138742
CE
2987test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d9898ee8 2990See \`config.log' for more details." >&5
8d138742 2991$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
d9898ee8 2992See \`config.log' for more details." >&2;}
8d138742 2993 { (exit 1); exit 1; }; }; }
d9898ee8 2994
2995# Provide some information about the compiler.
8d138742
CE
2996$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2997set X $ac_compile
2998ac_compiler=$2
dd184caf 2999{ (ac_try="$ac_compiler --version >&5"
3000case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003esac
8d138742
CE
3004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3005$as_echo "$ac_try_echo") >&5
dd184caf 3006 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 3007 ac_status=$?
8d138742 3008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3009 (exit $ac_status); }
dd184caf 3010{ (ac_try="$ac_compiler -v >&5"
3011case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014esac
8d138742
CE
3015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3016$as_echo "$ac_try_echo") >&5
dd184caf 3017 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 3018 ac_status=$?
8d138742 3019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3020 (exit $ac_status); }
dd184caf 3021{ (ac_try="$ac_compiler -V >&5"
3022case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025esac
8d138742
CE
3026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3027$as_echo "$ac_try_echo") >&5
dd184caf 3028 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 3029 ac_status=$?
8d138742 3030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3031 (exit $ac_status); }
3032
3033cat >conftest.$ac_ext <<_ACEOF
3034/* confdefs.h. */
3035_ACEOF
3036cat confdefs.h >>conftest.$ac_ext
3037cat >>conftest.$ac_ext <<_ACEOF
3038/* end confdefs.h. */
3039
3040int
3041main ()
3042{
3043
3044 ;
3045 return 0;
3046}
3047_ACEOF
3048ac_clean_files_save=$ac_clean_files
8d138742 3049ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 3050# Try to create an executable without -o first, disregard a.out.
3051# It will help us diagnose broken compilers, and finding out an intuition
3052# of exeext.
8d138742
CE
3053{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3054$as_echo_n "checking for C compiler default output file name... " >&6; }
3055ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3056
3057# The possible output files:
3058ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3059
dd184caf 3060ac_rmfiles=
3061for ac_file in $ac_files
3062do
3063 case $ac_file in
8d138742 3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 3065 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3066 esac
3067done
3068rm -f $ac_rmfiles
3069
3070if { (ac_try="$ac_link_default"
3071case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
8d138742
CE
3075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3076$as_echo "$ac_try_echo") >&5
dd184caf 3077 (eval "$ac_link_default") 2>&5
d9898ee8 3078 ac_status=$?
8d138742 3079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3080 (exit $ac_status); }; then
dd184caf 3081 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3082# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3083# in a Makefile. We should not override ac_cv_exeext if it was cached,
3084# so that the user can short-circuit this test for compilers unknown to
3085# Autoconf.
3086for ac_file in $ac_files ''
d9898ee8 3087do
3088 test -f "$ac_file" || continue
3089 case $ac_file in
8d138742 3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3091 ;;
3092 [ab].out )
3093 # We found the default executable, but exeext='' is most
3094 # certainly right.
3095 break;;
3096 *.* )
dd184caf 3097 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3098 then :; else
3099 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 fi
3101 # We set ac_cv_exeext here because the later test for it is not
3102 # safe: cross compilers may not add the suffix if given an `-o'
3103 # argument, so we may need to know it at that point already.
3104 # Even if this section looks crufty: it has the advantage of
3105 # actually working.
d9898ee8 3106 break;;
3107 * )
3108 break;;
3109 esac
3110done
dd184caf 3111test "$ac_cv_exeext" = no && ac_cv_exeext=
3112
d9898ee8 3113else
dd184caf 3114 ac_file=''
3115fi
3116
8d138742
CE
3117{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3118$as_echo "$ac_file" >&6; }
dd184caf 3119if test -z "$ac_file"; then
8d138742 3120 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3121sed 's/^/| /' conftest.$ac_ext >&5
3122
8d138742
CE
3123{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
d9898ee8 3126See \`config.log' for more details." >&5
8d138742 3127$as_echo "$as_me: error: C compiler cannot create executables
d9898ee8 3128See \`config.log' for more details." >&2;}
8d138742 3129 { (exit 77); exit 77; }; }; }
d9898ee8 3130fi
3131
3132ac_exeext=$ac_cv_exeext
d9898ee8 3133
dd184caf 3134# Check that the compiler produces executables we can run. If not, either
d9898ee8 3135# the compiler is broken, or we cross compile.
8d138742
CE
3136{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3137$as_echo_n "checking whether the C compiler works... " >&6; }
d9898ee8 3138# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3139# If not cross compiling, check that we can run a simple program.
3140if test "$cross_compiling" != yes; then
3141 if { ac_try='./$ac_file'
dd184caf 3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145esac
8d138742
CE
3146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3147$as_echo "$ac_try_echo") >&5
dd184caf 3148 (eval "$ac_try") 2>&5
d9898ee8 3149 ac_status=$?
8d138742 3150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3151 (exit $ac_status); }; }; then
3152 cross_compiling=no
3153 else
3154 if test "$cross_compiling" = maybe; then
3155 cross_compiling=yes
3156 else
8d138742
CE
3157 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
d9898ee8 3160If you meant to cross compile, use \`--host'.
3161See \`config.log' for more details." >&5
8d138742 3162$as_echo "$as_me: error: cannot run C compiled programs.
d9898ee8 3163If you meant to cross compile, use \`--host'.
3164See \`config.log' for more details." >&2;}
8d138742 3165 { (exit 1); exit 1; }; }; }
d9898ee8 3166 fi
3167 fi
3168fi
8d138742
CE
3169{ $as_echo "$as_me:$LINENO: result: yes" >&5
3170$as_echo "yes" >&6; }
d9898ee8 3171
8d138742 3172rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3173ac_clean_files=$ac_clean_files_save
dd184caf 3174# Check that the compiler produces executables we can run. If not, either
d9898ee8 3175# the compiler is broken, or we cross compile.
8d138742
CE
3176{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3177$as_echo_n "checking whether we are cross compiling... " >&6; }
3178{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3179$as_echo "$cross_compiling" >&6; }
dd184caf 3180
8d138742
CE
3181{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3182$as_echo_n "checking for suffix of executables... " >&6; }
dd184caf 3183if { (ac_try="$ac_link"
3184case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187esac
8d138742
CE
3188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3189$as_echo "$ac_try_echo") >&5
dd184caf 3190 (eval "$ac_link") 2>&5
d9898ee8 3191 ac_status=$?
8d138742 3192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3193 (exit $ac_status); }; then
3194 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3195# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3196# work properly (i.e., refer to `conftest.exe'), while it won't with
3197# `rm'.
3198for ac_file in conftest.exe conftest conftest.*; do
3199 test -f "$ac_file" || continue
3200 case $ac_file in
8d138742 3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3202 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3203 break;;
3204 * ) break;;
3205 esac
3206done
3207else
8d138742
CE
3208 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3211See \`config.log' for more details." >&5
8d138742 3212$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3213See \`config.log' for more details." >&2;}
8d138742 3214 { (exit 1); exit 1; }; }; }
d9898ee8 3215fi
3216
3217rm -f conftest$ac_cv_exeext
8d138742
CE
3218{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3219$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3220
3221rm -f conftest.$ac_ext
3222EXEEXT=$ac_cv_exeext
3223ac_exeext=$EXEEXT
8d138742
CE
3224{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3225$as_echo_n "checking for suffix of object files... " >&6; }
d9898ee8 3226if test "${ac_cv_objext+set}" = set; then
8d138742 3227 $as_echo_n "(cached) " >&6
d9898ee8 3228else
3229 cat >conftest.$ac_ext <<_ACEOF
3230/* confdefs.h. */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h. */
3235
3236int
3237main ()
3238{
3239
3240 ;
3241 return 0;
3242}
3243_ACEOF
3244rm -f conftest.o conftest.obj
dd184caf 3245if { (ac_try="$ac_compile"
3246case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249esac
8d138742
CE
3250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3251$as_echo "$ac_try_echo") >&5
dd184caf 3252 (eval "$ac_compile") 2>&5
d9898ee8 3253 ac_status=$?
8d138742 3254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3255 (exit $ac_status); }; then
dd184caf 3256 for ac_file in conftest.o conftest.obj conftest.*; do
3257 test -f "$ac_file" || continue;
d9898ee8 3258 case $ac_file in
8d138742 3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3260 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3261 break;;
3262 esac
3263done
3264else
8d138742 3265 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3266sed 's/^/| /' conftest.$ac_ext >&5
3267
8d138742
CE
3268{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
d9898ee8 3271See \`config.log' for more details." >&5
8d138742 3272$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
d9898ee8 3273See \`config.log' for more details." >&2;}
8d138742 3274 { (exit 1); exit 1; }; }; }
d9898ee8 3275fi
3276
3277rm -f conftest.$ac_cv_objext conftest.$ac_ext
3278fi
8d138742
CE
3279{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3280$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3281OBJEXT=$ac_cv_objext
3282ac_objext=$OBJEXT
8d138742
CE
3283{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3284$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d9898ee8 3285if test "${ac_cv_c_compiler_gnu+set}" = set; then
8d138742 3286 $as_echo_n "(cached) " >&6
d9898ee8 3287else
3288 cat >conftest.$ac_ext <<_ACEOF
3289/* confdefs.h. */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
3293/* end confdefs.h. */
3294
3295int
3296main ()
3297{
3298#ifndef __GNUC__
3299 choke me
3300#endif
3301
3302 ;
3303 return 0;
3304}
3305_ACEOF
3306rm -f conftest.$ac_objext
dd184caf 3307if { (ac_try="$ac_compile"
3308case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311esac
8d138742
CE
3312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3313$as_echo "$ac_try_echo") >&5
dd184caf 3314 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
8d138742 3319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3320 (exit $ac_status); } && {
3321 test -z "$ac_c_werror_flag" ||
3322 test ! -s conftest.err
3323 } && test -s conftest.$ac_objext; then
d9898ee8 3324 ac_compiler_gnu=yes
3325else
8d138742 3326 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3327sed 's/^/| /' conftest.$ac_ext >&5
3328
dd184caf 3329 ac_compiler_gnu=no
d9898ee8 3330fi
dd184caf 3331
3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3333ac_cv_c_compiler_gnu=$ac_compiler_gnu
3334
3335fi
8d138742
CE
3336{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3337$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3338if test $ac_compiler_gnu = yes; then
3339 GCC=yes
3340else
3341 GCC=
3342fi
d9898ee8 3343ac_test_CFLAGS=${CFLAGS+set}
3344ac_save_CFLAGS=$CFLAGS
8d138742
CE
3345{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3346$as_echo_n "checking whether $CC accepts -g... " >&6; }
d9898ee8 3347if test "${ac_cv_prog_cc_g+set}" = set; then
8d138742 3348 $as_echo_n "(cached) " >&6
d9898ee8 3349else
dd184caf 3350 ac_save_c_werror_flag=$ac_c_werror_flag
3351 ac_c_werror_flag=yes
3352 ac_cv_prog_cc_g=no
3353 CFLAGS="-g"
3354 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3355/* confdefs.h. */
3356_ACEOF
3357cat confdefs.h >>conftest.$ac_ext
3358cat >>conftest.$ac_ext <<_ACEOF
3359/* end confdefs.h. */
3360
3361int
3362main ()
3363{
3364
3365 ;
3366 return 0;
3367}
3368_ACEOF
3369rm -f conftest.$ac_objext
dd184caf 3370if { (ac_try="$ac_compile"
3371case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374esac
8d138742
CE
3375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3376$as_echo "$ac_try_echo") >&5
dd184caf 3377 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3378 ac_status=$?
3379 grep -v '^ *+' conftest.er1 >conftest.err
3380 rm -f conftest.er1
3381 cat conftest.err >&5
8d138742 3382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3383 (exit $ac_status); } && {
3384 test -z "$ac_c_werror_flag" ||
3385 test ! -s conftest.err
3386 } && test -s conftest.$ac_objext; then
3387 ac_cv_prog_cc_g=yes
3388else
8d138742 3389 $as_echo "$as_me: failed program was:" >&5
dd184caf 3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 CFLAGS=""
3393 cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h. */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h. */
3399
3400int
3401main ()
3402{
3403
3404 ;
3405 return 0;
3406}
3407_ACEOF
3408rm -f conftest.$ac_objext
3409if { (ac_try="$ac_compile"
3410case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413esac
8d138742
CE
3414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3415$as_echo "$ac_try_echo") >&5
dd184caf 3416 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3417 ac_status=$?
dd184caf 3418 grep -v '^ *+' conftest.er1 >conftest.err
3419 rm -f conftest.er1
3420 cat conftest.err >&5
8d138742 3421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3422 (exit $ac_status); } && {
3423 test -z "$ac_c_werror_flag" ||
3424 test ! -s conftest.err
3425 } && test -s conftest.$ac_objext; then
3426 :
3427else
8d138742 3428 $as_echo "$as_me: failed program was:" >&5
dd184caf 3429sed 's/^/| /' conftest.$ac_ext >&5
3430
3431 ac_c_werror_flag=$ac_save_c_werror_flag
3432 CFLAGS="-g"
3433 cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h. */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h. */
3439
3440int
3441main ()
3442{
3443
3444 ;
3445 return 0;
3446}
3447_ACEOF
3448rm -f conftest.$ac_objext
3449if { (ac_try="$ac_compile"
3450case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453esac
8d138742
CE
3454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3455$as_echo "$ac_try_echo") >&5
dd184caf 3456 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3457 ac_status=$?
dd184caf 3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
8d138742 3461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3462 (exit $ac_status); } && {
3463 test -z "$ac_c_werror_flag" ||
3464 test ! -s conftest.err
3465 } && test -s conftest.$ac_objext; then
d9898ee8 3466 ac_cv_prog_cc_g=yes
3467else
8d138742 3468 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3469sed 's/^/| /' conftest.$ac_ext >&5
3470
dd184caf 3471
3472fi
3473
3474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3475fi
dd184caf 3476
3477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478fi
3479
3480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3482fi
8d138742
CE
3483{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3484$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3485if test "$ac_test_CFLAGS" = set; then
3486 CFLAGS=$ac_save_CFLAGS
3487elif test $ac_cv_prog_cc_g = yes; then
3488 if test "$GCC" = yes; then
3489 CFLAGS="-g -O2"
3490 else
3491 CFLAGS="-g"
3492 fi
3493else
3494 if test "$GCC" = yes; then
3495 CFLAGS="-O2"
3496 else
3497 CFLAGS=
3498 fi
3499fi
8d138742
CE
3500{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3501$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
dd184caf 3502if test "${ac_cv_prog_cc_c89+set}" = set; then
8d138742 3503 $as_echo_n "(cached) " >&6
d9898ee8 3504else
dd184caf 3505 ac_cv_prog_cc_c89=no
d9898ee8 3506ac_save_CC=$CC
3507cat >conftest.$ac_ext <<_ACEOF
3508/* confdefs.h. */
3509_ACEOF
3510cat confdefs.h >>conftest.$ac_ext
3511cat >>conftest.$ac_ext <<_ACEOF
3512/* end confdefs.h. */
3513#include <stdarg.h>
3514#include <stdio.h>
3515#include <sys/types.h>
3516#include <sys/stat.h>
3517/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3518struct buf { int x; };
3519FILE * (*rcsopen) (struct buf *, struct stat *, int);
3520static char *e (p, i)
3521 char **p;
3522 int i;
3523{
3524 return p[i];
3525}
3526static char *f (char * (*g) (char **, int), char **p, ...)
3527{
3528 char *s;
3529 va_list v;
3530 va_start (v,p);
3531 s = g (p, va_arg (v,int));
3532 va_end (v);
3533 return s;
3534}
3535
3536/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3537 function prototypes and stuff, but not '\xHH' hex character constants.
3538 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3539 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3540 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3541 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3542 that's true only with -std. */
d9898ee8 3543int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3544
dd184caf 3545/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3546 inside strings and character constants. */
3547#define FOO(x) 'x'
3548int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3549
d9898ee8 3550int test (int i, double x);
3551struct s1 {int (*f) (int a);};
3552struct s2 {int (*f) (double a);};
3553int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3554int argc;
3555char **argv;
3556int
3557main ()
3558{
3559return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3560 ;
3561 return 0;
3562}
3563_ACEOF
dd184caf 3564for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3565 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3566do
3567 CC="$ac_save_CC $ac_arg"
3568 rm -f conftest.$ac_objext
dd184caf 3569if { (ac_try="$ac_compile"
3570case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573esac
8d138742
CE
3574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3575$as_echo "$ac_try_echo") >&5
dd184caf 3576 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
8d138742 3581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3582 (exit $ac_status); } && {
3583 test -z "$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3585 } && test -s conftest.$ac_objext; then
3586 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3587else
8d138742 3588 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3589sed 's/^/| /' conftest.$ac_ext >&5
3590
dd184caf 3591
d9898ee8 3592fi
dd184caf 3593
3594rm -f core conftest.err conftest.$ac_objext
3595 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3596done
dd184caf 3597rm -f conftest.$ac_ext
d9898ee8 3598CC=$ac_save_CC
3599
3600fi
dd184caf 3601# AC_CACHE_VAL
3602case "x$ac_cv_prog_cc_c89" in
3603 x)
8d138742
CE
3604 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3605$as_echo "none needed" >&6; } ;;
dd184caf 3606 xno)
8d138742
CE
3607 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3608$as_echo "unsupported" >&6; } ;;
d9898ee8 3609 *)
dd184caf 3610 CC="$CC $ac_cv_prog_cc_c89"
8d138742
CE
3611 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3612$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3613esac
3614
d9898ee8 3615
d9898ee8 3616ac_ext=c
3617ac_cpp='$CPP $CPPFLAGS'
3618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621DEPDIR="${am__leading_dot}deps"
3622
dd184caf 3623ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3624
3625
3626am_make=${MAKE-make}
3627cat > confinc << 'END'
3628am__doit:
8d138742 3629 @echo this is the am__doit target
d9898ee8 3630.PHONY: am__doit
3631END
3632# If we don't find an include directive, just comment out the code.
8d138742
CE
3633{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3634$as_echo_n "checking for style of include used by $am_make... " >&6; }
d9898ee8 3635am__include="#"
3636am__quote=
3637_am_result=none
3638# First try GNU make style include.
3639echo "include confinc" > confmf
8d138742
CE
3640# Ignore all kinds of additional output from `make'.
3641case `$am_make -s -f confmf 2> /dev/null` in #(
3642*the\ am__doit\ target*)
3643 am__include=include
3644 am__quote=
3645 _am_result=GNU
3646 ;;
3647esac
d9898ee8 3648# Now try BSD make style include.
3649if test "$am__include" = "#"; then
3650 echo '.include "confinc"' > confmf
8d138742
CE
3651 case `$am_make -s -f confmf 2> /dev/null` in #(
3652 *the\ am__doit\ target*)
3653 am__include=.include
3654 am__quote="\""
3655 _am_result=BSD
3656 ;;
3657 esac
d9898ee8 3658fi
3659
3660
8d138742
CE
3661{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3662$as_echo "$_am_result" >&6; }
d9898ee8 3663rm -f confinc confmf
3664
dd184caf 3665# Check whether --enable-dependency-tracking was given.
d9898ee8 3666if test "${enable_dependency_tracking+set}" = set; then
dd184caf 3667 enableval=$enable_dependency_tracking;
3668fi
d9898ee8 3669
d9898ee8 3670if test "x$enable_dependency_tracking" != xno; then
3671 am_depcomp="$ac_aux_dir/depcomp"
3672 AMDEPBACKSLASH='\'
3673fi
dd184caf 3674 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3675 AMDEP_TRUE=
3676 AMDEP_FALSE='#'
3677else
3678 AMDEP_TRUE='#'
3679 AMDEP_FALSE=
3680fi
3681
3682
3683
d9898ee8 3684depcc="$CC" am_compiler_list=
3685
8d138742
CE
3686{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3687$as_echo_n "checking dependency style of $depcc... " >&6; }
d9898ee8 3688if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8d138742 3689 $as_echo_n "(cached) " >&6
d9898ee8 3690else
3691 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3692 # We make a subdir and do the tests there. Otherwise we can end up
3693 # making bogus files that we don't know about and never remove. For
3694 # instance it was reported that on HP-UX the gcc test will end up
3695 # making a dummy file named `D' -- because `-MD' means `put the output
3696 # in D'.
3697 mkdir conftest.dir
3698 # Copy depcomp to subdir because otherwise we won't find it if we're
3699 # using a relative directory.
3700 cp "$am_depcomp" conftest.dir
3701 cd conftest.dir
3702 # We will build objects and dependencies in a subdirectory because
3703 # it helps to detect inapplicable dependency modes. For instance
3704 # both Tru64's cc and ICC support -MD to output dependencies as a
3705 # side effect of compilation, but ICC will put the dependencies in
3706 # the current directory while Tru64 will put them in the object
3707 # directory.
3708 mkdir sub
3709
3710 am_cv_CC_dependencies_compiler_type=none
3711 if test "$am_compiler_list" = ""; then
3712 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3713 fi
8d138742
CE
3714 am__universal=false
3715 case " $depcc " in #(
3716 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3717 esac
3718
d9898ee8 3719 for depmode in $am_compiler_list; do
3720 # Setup a source with many dependencies, because some compilers
3721 # like to wrap large dependency lists on column 80 (with \), and
3722 # we should not choose a depcomp mode which is confused by this.
3723 #
3724 # We need to recreate these files for each test, as the compiler may
3725 # overwrite some of them when testing with obscure command lines.
3726 # This happens at least with the AIX C compiler.
3727 : > sub/conftest.c
3728 for i in 1 2 3 4 5 6; do
3729 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3730 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3731 # Solaris 8's {/usr,}/bin/sh.
3732 touch sub/conftst$i.h
3733 done
3734 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3735
8d138742
CE
3736 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3737 # mode. It turns out that the SunPro C++ compiler does not properly
3738 # handle `-M -o', and we need to detect this. Also, some Intel
3739 # versions had trouble with output in subdirs
3740 am__obj=sub/conftest.${OBJEXT-o}
3741 am__minus_obj="-o $am__obj"
d9898ee8 3742 case $depmode in
8d138742
CE
3743 gcc)
3744 # This depmode causes a compiler race in universal mode.
3745 test "$am__universal" = false || continue
3746 ;;
d9898ee8 3747 nosideeffect)
3748 # after this tag, mechanisms are not by side-effect, so they'll
3749 # only be used when explicitly requested
3750 if test "x$enable_dependency_tracking" = xyes; then
3751 continue
3752 else
3753 break
3754 fi
3755 ;;
8d138742
CE
3756 msvisualcpp | msvcmsys)
3757 # This compiler won't grok `-c -o', but also, the minuso test has
3758 # not run yet. These depmodes are late enough in the game, and
3759 # so weak that their functioning should not be impacted.
3760 am__obj=conftest.${OBJEXT-o}
3761 am__minus_obj=
3762 ;;
d9898ee8 3763 none) break ;;
3764 esac
d9898ee8 3765 if depmode=$depmode \
8d138742 3766 source=sub/conftest.c object=$am__obj \
d9898ee8 3767 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3768 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3769 >/dev/null 2>conftest.err &&
dd184caf 3770 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3771 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3772 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3773 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3774 # icc doesn't choke on unknown options, it will just issue warnings
3775 # or remarks (even with -Werror). So we grep stderr for any message
3776 # that says an option was ignored or not supported.
3777 # When given -MP, icc 7.0 and 7.1 complain thusly:
3778 # icc: Command line warning: ignoring option '-M'; no argument required
3779 # The diagnosis changed in icc 8.0:
3780 # icc: Command line remark: option '-MP' not supported
3781 if (grep 'ignoring option' conftest.err ||
3782 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3783 am_cv_CC_dependencies_compiler_type=$depmode
3784 break
3785 fi
3786 fi
3787 done
3788
3789 cd ..
3790 rm -rf conftest.dir
3791else
3792 am_cv_CC_dependencies_compiler_type=none
3793fi
3794
3795fi
8d138742
CE
3796{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3797$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3798CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3799
dd184caf 3800 if
d9898ee8 3801 test "x$enable_dependency_tracking" != xno \
3802 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3803 am__fastdepCC_TRUE=
3804 am__fastdepCC_FALSE='#'
3805else
3806 am__fastdepCC_TRUE='#'
3807 am__fastdepCC_FALSE=
3808fi
3809
3810
8d138742
CE
3811case `pwd` in
3812 *\ * | *\ *)
3813 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3814$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3815esac
3816
3817
3818
3819macro_version='2.2.6'
3820macro_revision='1.3012'
3821
3822
3823
3824
dd184caf 3825
d9898ee8 3826
dd184caf 3827
d9898ee8 3828
dd184caf 3829
d9898ee8 3830
8d138742
CE
3831
3832
3833
3834ltmain="$ac_aux_dir/ltmain.sh"
3835
d9898ee8 3836# Make sure we can run config.sub.
dd184caf 3837$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8d138742
CE
3838 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3839$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3840 { (exit 1); exit 1; }; }
3841
8d138742
CE
3842{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3843$as_echo_n "checking build system type... " >&6; }
d9898ee8 3844if test "${ac_cv_build+set}" = set; then
8d138742 3845 $as_echo_n "(cached) " >&6
d9898ee8 3846else
dd184caf 3847 ac_build_alias=$build_alias
3848test "x$ac_build_alias" = x &&
3849 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3850test "x$ac_build_alias" = x &&
8d138742
CE
3851 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3852$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
d9898ee8 3853 { (exit 1); exit 1; }; }
dd184caf 3854ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8d138742
CE
3855 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3856$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3857 { (exit 1); exit 1; }; }
3858
3859fi
8d138742
CE
3860{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3861$as_echo "$ac_cv_build" >&6; }
dd184caf 3862case $ac_cv_build in
3863*-*-*) ;;
8d138742
CE
3864*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3865$as_echo "$as_me: error: invalid value of canonical build" >&2;}
dd184caf 3866 { (exit 1); exit 1; }; };;
3867esac
d9898ee8 3868build=$ac_cv_build
dd184caf 3869ac_save_IFS=$IFS; IFS='-'
3870set x $ac_cv_build
3871shift
3872build_cpu=$1
3873build_vendor=$2
3874shift; shift
3875# Remember, the first character of IFS is used to create $*,
3876# except with old shells:
3877build_os=$*
3878IFS=$ac_save_IFS
3879case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3880
3881
8d138742
CE
3882{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3883$as_echo_n "checking host system type... " >&6; }
d9898ee8 3884if test "${ac_cv_host+set}" = set; then
8d138742 3885 $as_echo_n "(cached) " >&6
d9898ee8 3886else
dd184caf 3887 if test "x$host_alias" = x; then
3888 ac_cv_host=$ac_cv_build
3889else
3890 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8d138742
CE
3891 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3892$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3893 { (exit 1); exit 1; }; }
dd184caf 3894fi
d9898ee8 3895
3896fi
8d138742
CE
3897{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3898$as_echo "$ac_cv_host" >&6; }
dd184caf 3899case $ac_cv_host in
3900*-*-*) ;;
8d138742
CE
3901*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3902$as_echo "$as_me: error: invalid value of canonical host" >&2;}
dd184caf 3903 { (exit 1); exit 1; }; };;
3904esac
d9898ee8 3905host=$ac_cv_host
dd184caf 3906ac_save_IFS=$IFS; IFS='-'
3907set x $ac_cv_host
3908shift
3909host_cpu=$1
3910host_vendor=$2
3911shift; shift
3912# Remember, the first character of IFS is used to create $*,
3913# except with old shells:
3914host_os=$*
3915IFS=$ac_save_IFS
3916case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3917
3918
8d138742
CE
3919{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3920$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3921if test "${ac_cv_path_SED+set}" = set; then
3922 $as_echo_n "(cached) " >&6
3923else
3924 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3925 for ac_i in 1 2 3 4 5 6 7; do
3926 ac_script="$ac_script$as_nl$ac_script"
3927 done
3928 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3929 $as_unset ac_script || ac_script=
3930 if test -z "$SED"; then
3931 ac_path_SED_found=false
3932 # Loop through the user's path and test for each of PROGNAME-LIST
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 3934for as_dir in $PATH
3935do
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
8d138742 3938 for ac_prog in sed gsed; do
d9898ee8 3939 for ac_exec_ext in '' $ac_executable_extensions; do
8d138742
CE
3940 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3941 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3942# Check for GNU ac_path_SED and select it if it is found.
3943 # Check for GNU $ac_path_SED
3944case `"$ac_path_SED" --version 2>&1` in
3945*GNU*)
3946 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3947*)
3948 ac_count=0
3949 $as_echo_n 0123456789 >"conftest.in"
3950 while :
3951 do
3952 cat "conftest.in" "conftest.in" >"conftest.tmp"
3953 mv "conftest.tmp" "conftest.in"
3954 cp "conftest.in" "conftest.nl"
3955 $as_echo '' >> "conftest.nl"
3956 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3958 ac_count=`expr $ac_count + 1`
3959 if test $ac_count -gt ${ac_path_SED_max-0}; then
3960 # Best one so far, save it but keep looking for a better one
3961 ac_cv_path_SED="$ac_path_SED"
3962 ac_path_SED_max=$ac_count
3963 fi
3964 # 10*(2^10) chars as input seems more than enough
3965 test $ac_count -gt 10 && break
3966 done
3967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3968esac
3969
3970 $ac_path_SED_found && break 3
d9898ee8 3971 done
3972 done
3973done
3974IFS=$as_save_IFS
8d138742
CE
3975 if test -z "$ac_cv_path_SED"; then
3976 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3977$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3978 { (exit 1); exit 1; }; }
d9898ee8 3979 fi
8d138742
CE
3980else
3981 ac_cv_path_SED=$SED
3982fi
d9898ee8 3983
3984fi
8d138742
CE
3985{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3986$as_echo "$ac_cv_path_SED" >&6; }
3987 SED="$ac_cv_path_SED"
3988 rm -f conftest.sed
3989
3990test -z "$SED" && SED=sed
3991Xsed="$SED -e 1s/^X//"
d9898ee8 3992
d9898ee8 3993
dd184caf 3994
8d138742
CE
3995
3996
3997
3998
3999
4000
4001
4002
4003{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4004$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
dd184caf 4005if test "${ac_cv_path_GREP+set}" = set; then
8d138742 4006 $as_echo_n "(cached) " >&6
dd184caf 4007else
8d138742 4008 if test -z "$GREP"; then
dd184caf 4009 ac_path_GREP_found=false
8d138742
CE
4010 # Loop through the user's path and test for each of PROGNAME-LIST
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4012for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4013do
4014 IFS=$as_save_IFS
4015 test -z "$as_dir" && as_dir=.
4016 for ac_prog in grep ggrep; do
8d138742
CE
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4019 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4020# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 4021 # Check for GNU $ac_path_GREP
4022case `"$ac_path_GREP" --version 2>&1` in
4023*GNU*)
4024 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4025*)
4026 ac_count=0
8d138742 4027 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4028 while :
4029 do
4030 cat "conftest.in" "conftest.in" >"conftest.tmp"
4031 mv "conftest.tmp" "conftest.in"
4032 cp "conftest.in" "conftest.nl"
8d138742 4033 $as_echo 'GREP' >> "conftest.nl"
dd184caf 4034 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4036 ac_count=`expr $ac_count + 1`
4037 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4038 # Best one so far, save it but keep looking for a better one
4039 ac_cv_path_GREP="$ac_path_GREP"
4040 ac_path_GREP_max=$ac_count
4041 fi
4042 # 10*(2^10) chars as input seems more than enough
4043 test $ac_count -gt 10 && break
4044 done
4045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4046esac
4047
8d138742
CE
4048 $ac_path_GREP_found && break 3
4049 done
dd184caf 4050 done
4051done
dd184caf 4052IFS=$as_save_IFS
8d138742
CE
4053 if test -z "$ac_cv_path_GREP"; then
4054 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4055$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
dd184caf 4056 { (exit 1); exit 1; }; }
8d138742 4057 fi
dd184caf 4058else
4059 ac_cv_path_GREP=$GREP
4060fi
4061
dd184caf 4062fi
8d138742
CE
4063{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4064$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4065 GREP="$ac_cv_path_GREP"
4066
4067
8d138742
CE
4068{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4069$as_echo_n "checking for egrep... " >&6; }
dd184caf 4070if test "${ac_cv_path_EGREP+set}" = set; then
8d138742 4071 $as_echo_n "(cached) " >&6
dd184caf 4072else
4073 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4074 then ac_cv_path_EGREP="$GREP -E"
4075 else
8d138742 4076 if test -z "$EGREP"; then
dd184caf 4077 ac_path_EGREP_found=false
8d138742
CE
4078 # Loop through the user's path and test for each of PROGNAME-LIST
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4080for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4081do
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084 for ac_prog in egrep; do
8d138742
CE
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4087 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4088# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4089 # Check for GNU $ac_path_EGREP
4090case `"$ac_path_EGREP" --version 2>&1` in
4091*GNU*)
4092 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4093*)
4094 ac_count=0
8d138742 4095 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4096 while :
4097 do
4098 cat "conftest.in" "conftest.in" >"conftest.tmp"
4099 mv "conftest.tmp" "conftest.in"
4100 cp "conftest.in" "conftest.nl"
8d138742 4101 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4102 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4104 ac_count=`expr $ac_count + 1`
4105 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4106 # Best one so far, save it but keep looking for a better one
4107 ac_cv_path_EGREP="$ac_path_EGREP"
4108 ac_path_EGREP_max=$ac_count
d9898ee8 4109 fi
dd184caf 4110 # 10*(2^10) chars as input seems more than enough
4111 test $ac_count -gt 10 && break
4112 done
4113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4114esac
4115
8d138742
CE
4116 $ac_path_EGREP_found && break 3
4117 done
dd184caf 4118 done
4119done
dd184caf 4120IFS=$as_save_IFS
8d138742
CE
4121 if test -z "$ac_cv_path_EGREP"; then
4122 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4123$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4124 { (exit 1); exit 1; }; }
4125 fi
4126else
4127 ac_cv_path_EGREP=$EGREP
dd184caf 4128fi
4129
8d138742 4130 fi
dd184caf 4131fi
8d138742
CE
4132{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4133$as_echo "$ac_cv_path_EGREP" >&6; }
4134 EGREP="$ac_cv_path_EGREP"
dd184caf 4135
8d138742
CE
4136
4137{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4138$as_echo_n "checking for fgrep... " >&6; }
4139if test "${ac_cv_path_FGREP+set}" = set; then
4140 $as_echo_n "(cached) " >&6
dd184caf 4141else
8d138742
CE
4142 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4143 then ac_cv_path_FGREP="$GREP -F"
4144 else
4145 if test -z "$FGREP"; then
4146 ac_path_FGREP_found=false
4147 # Loop through the user's path and test for each of PROGNAME-LIST
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4150do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for ac_prog in fgrep; do
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4156 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4157# Check for GNU ac_path_FGREP and select it if it is found.
4158 # Check for GNU $ac_path_FGREP
4159case `"$ac_path_FGREP" --version 2>&1` in
4160*GNU*)
4161 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4162*)
4163 ac_count=0
4164 $as_echo_n 0123456789 >"conftest.in"
4165 while :
4166 do
4167 cat "conftest.in" "conftest.in" >"conftest.tmp"
4168 mv "conftest.tmp" "conftest.in"
4169 cp "conftest.in" "conftest.nl"
4170 $as_echo 'FGREP' >> "conftest.nl"
4171 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4173 ac_count=`expr $ac_count + 1`
4174 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4175 # Best one so far, save it but keep looking for a better one
4176 ac_cv_path_FGREP="$ac_path_FGREP"
4177 ac_path_FGREP_max=$ac_count
4178 fi
4179 # 10*(2^10) chars as input seems more than enough
4180 test $ac_count -gt 10 && break
4181 done
4182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4183esac
dd184caf 4184
8d138742
CE
4185 $ac_path_FGREP_found && break 3
4186 done
4187 done
4188done
4189IFS=$as_save_IFS
4190 if test -z "$ac_cv_path_FGREP"; then
4191 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4192$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4193 { (exit 1); exit 1; }; }
4194 fi
4195else
4196 ac_cv_path_FGREP=$FGREP
4197fi
dd184caf 4198
4199 fi
d9898ee8 4200fi
8d138742
CE
4201{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4202$as_echo "$ac_cv_path_FGREP" >&6; }
4203 FGREP="$ac_cv_path_FGREP"
4204
4205
4206test -z "$GREP" && GREP=grep
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
d9898ee8 4223
4224
4225
dd184caf 4226# Check whether --with-gnu-ld was given.
d9898ee8 4227if test "${with_gnu_ld+set}" = set; then
dd184caf 4228 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4229else
4230 with_gnu_ld=no
dd184caf 4231fi
4232
d9898ee8 4233ac_prog=ld
4234if test "$GCC" = yes; then
4235 # Check if gcc -print-prog-name=ld gives a path.
8d138742
CE
4236 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4237$as_echo_n "checking for ld used by $CC... " >&6; }
d9898ee8 4238 case $host in
4239 *-*-mingw*)
4240 # gcc leaves a trailing carriage return which upsets mingw
4241 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4242 *)
4243 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4244 esac
4245 case $ac_prog in
4246 # Accept absolute paths.
4247 [\\/]* | ?:[\\/]*)
4248 re_direlt='/[^/][^/]*/\.\./'
4249 # Canonicalize the pathname of ld
8d138742
CE
4250 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4251 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4252 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d9898ee8 4253 done
4254 test -z "$LD" && LD="$ac_prog"
4255 ;;
4256 "")
4257 # If it fails, then pretend we aren't using GCC.
4258 ac_prog=ld
4259 ;;
4260 *)
4261 # If it is relative, then search for the first ld in PATH.
4262 with_gnu_ld=unknown
4263 ;;
4264 esac
4265elif test "$with_gnu_ld" = yes; then
8d138742
CE
4266 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4267$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 4268else
8d138742
CE
4269 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4270$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 4271fi
4272if test "${lt_cv_path_LD+set}" = set; then
8d138742 4273 $as_echo_n "(cached) " >&6
d9898ee8 4274else
4275 if test -z "$LD"; then
4276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4277 for ac_dir in $PATH; do
4278 IFS="$lt_save_ifs"
4279 test -z "$ac_dir" && ac_dir=.
4280 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4281 lt_cv_path_LD="$ac_dir/$ac_prog"
4282 # Check to see if the program is GNU ld. I'd rather use --version,
4283 # but apparently some variants of GNU ld only accept -v.
4284 # Break only if it was the GNU/non-GNU ld that we prefer.
4285 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4286 *GNU* | *'with BFD'*)
4287 test "$with_gnu_ld" != no && break
4288 ;;
4289 *)
4290 test "$with_gnu_ld" != yes && break
4291 ;;
4292 esac
4293 fi
4294 done
4295 IFS="$lt_save_ifs"
4296else
4297 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4298fi
4299fi
4300
4301LD="$lt_cv_path_LD"
4302if test -n "$LD"; then
8d138742
CE
4303 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4304$as_echo "$LD" >&6; }
d9898ee8 4305else
8d138742
CE
4306 { $as_echo "$as_me:$LINENO: result: no" >&5
4307$as_echo "no" >&6; }
d9898ee8 4308fi
8d138742
CE
4309test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4310$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
d9898ee8 4311 { (exit 1); exit 1; }; }
8d138742
CE
4312{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4313$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d9898ee8 4314if test "${lt_cv_prog_gnu_ld+set}" = set; then
8d138742 4315 $as_echo_n "(cached) " >&6
d9898ee8 4316else
4317 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4318case `$LD -v 2>&1 </dev/null` in
4319*GNU* | *'with BFD'*)
4320 lt_cv_prog_gnu_ld=yes
4321 ;;
4322*)
4323 lt_cv_prog_gnu_ld=no
4324 ;;
4325esac
4326fi
8d138742
CE
4327{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4328$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4329with_gnu_ld=$lt_cv_prog_gnu_ld
4330
4331
d9898ee8 4332
8d138742
CE
4333
4334
4335
4336
4337
4338
4339{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4340$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d9898ee8 4341if test "${lt_cv_path_NM+set}" = set; then
8d138742 4342 $as_echo_n "(cached) " >&6
d9898ee8 4343else
4344 if test -n "$NM"; then
4345 # Let the user override the test.
4346 lt_cv_path_NM="$NM"
4347else
4348 lt_nm_to_check="${ac_tool_prefix}nm"
4349 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4350 lt_nm_to_check="$lt_nm_to_check nm"
4351 fi
4352 for lt_tmp_nm in $lt_nm_to_check; do
4353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4354 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4355 IFS="$lt_save_ifs"
4356 test -z "$ac_dir" && ac_dir=.
4357 tmp_nm="$ac_dir/$lt_tmp_nm"
4358 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4359 # Check to see if the nm accepts a BSD-compat flag.
4360 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4361 # nm: unknown option "B" ignored
4362 # Tru64's nm complains that /dev/null is an invalid object file
4363 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4364 */dev/null* | *'Invalid file or object type'*)
4365 lt_cv_path_NM="$tmp_nm -B"
4366 break
4367 ;;
4368 *)
4369 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4370 */dev/null*)
4371 lt_cv_path_NM="$tmp_nm -p"
4372 break
4373 ;;
4374 *)
4375 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4376 continue # so that we can try to find one that supports BSD flags
4377 ;;
4378 esac
4379 ;;
4380 esac
4381 fi
4382 done
4383 IFS="$lt_save_ifs"
4384 done
8d138742 4385 : ${lt_cv_path_NM=no}
d9898ee8 4386fi
4387fi
8d138742
CE
4388{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4389$as_echo "$lt_cv_path_NM" >&6; }
4390if test "$lt_cv_path_NM" != "no"; then
4391 NM="$lt_cv_path_NM"
d9898ee8 4392else
8d138742
CE
4393 # Didn't find any BSD compatible name lister, look for dumpbin.
4394 if test -n "$ac_tool_prefix"; then
4395 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4396 do
4397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4398set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4399{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4400$as_echo_n "checking for $ac_word... " >&6; }
4401if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4402 $as_echo_n "(cached) " >&6
4403else
4404 if test -n "$DUMPBIN"; then
4405 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4406else
4407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
4409do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418done
4419done
4420IFS=$as_save_IFS
d9898ee8 4421
8d138742
CE
4422fi
4423fi
4424DUMPBIN=$ac_cv_prog_DUMPBIN
4425if test -n "$DUMPBIN"; then
4426 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4427$as_echo "$DUMPBIN" >&6; }
4428else
4429 { $as_echo "$as_me:$LINENO: result: no" >&5
4430$as_echo "no" >&6; }
4431fi
d9898ee8 4432
d9898ee8 4433
8d138742
CE
4434 test -n "$DUMPBIN" && break
4435 done
4436fi
4437if test -z "$DUMPBIN"; then
4438 ac_ct_DUMPBIN=$DUMPBIN
4439 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4440do
4441 # Extract the first word of "$ac_prog", so it can be a program name with args.
4442set dummy $ac_prog; ac_word=$2
4443{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4444$as_echo_n "checking for $ac_word... " >&6; }
4445if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4446 $as_echo_n "(cached) " >&6
4447else
4448 if test -n "$ac_ct_DUMPBIN"; then
4449 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4450else
4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4459 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
ac40fd9e 4461 fi
8d138742
CE
4462done
4463done
4464IFS=$as_save_IFS
d9898ee8 4465
8d138742
CE
4466fi
4467fi
4468ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4469if test -n "$ac_ct_DUMPBIN"; then
4470 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4471$as_echo "$ac_ct_DUMPBIN" >&6; }
4472else
4473 { $as_echo "$as_me:$LINENO: result: no" >&5
4474$as_echo "no" >&6; }
4475fi
d9898ee8 4476
8d138742
CE
4477
4478 test -n "$ac_ct_DUMPBIN" && break
4479done
4480
4481 if test "x$ac_ct_DUMPBIN" = x; then
4482 DUMPBIN=":"
d9898ee8 4483 else
8d138742
CE
4484 case $cross_compiling:$ac_tool_warned in
4485yes:)
4486{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4488ac_tool_warned=yes ;;
4489esac
4490 DUMPBIN=$ac_ct_DUMPBIN
d9898ee8 4491 fi
8d138742 4492fi
d9898ee8 4493
d9898ee8 4494
8d138742
CE
4495 if test "$DUMPBIN" != ":"; then
4496 NM="$DUMPBIN"
4497 fi
4498fi
4499test -z "$NM" && NM=nm
d9898ee8 4500
d9898ee8 4501
d9898ee8 4502
d9898ee8 4503
d9898ee8 4504
d9898ee8 4505
8d138742
CE
4506{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4507$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4508if test "${lt_cv_nm_interface+set}" = set; then
4509 $as_echo_n "(cached) " >&6
4510else
4511 lt_cv_nm_interface="BSD nm"
4512 echo "int some_variable = 0;" > conftest.$ac_ext
4513 (eval echo "\"\$as_me:4513: $ac_compile\"" >&5)
4514 (eval "$ac_compile" 2>conftest.err)
4515 cat conftest.err >&5
4516 (eval echo "\"\$as_me:4516: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4517 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4518 cat conftest.err >&5
4519 (eval echo "\"\$as_me:4519: output\"" >&5)
4520 cat conftest.out >&5
4521 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4522 lt_cv_nm_interface="MS dumpbin"
d9898ee8 4523 fi
8d138742
CE
4524 rm -f conftest*
4525fi
4526{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4527$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 4528
8d138742
CE
4529# find the maximum length of command line arguments
4530{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4531$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4532if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4533 $as_echo_n "(cached) " >&6
4534else
4535 i=0
4536 teststring="ABCD"
d9898ee8 4537
8d138742
CE
4538 case $build_os in
4539 msdosdjgpp*)
4540 # On DJGPP, this test can blow up pretty badly due to problems in libc
4541 # (any single argument exceeding 2000 bytes causes a buffer overrun
4542 # during glob expansion). Even if it were fixed, the result of this
4543 # check would be larger than it should be.
4544 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4545 ;;
ac40fd9e 4546
8d138742
CE
4547 gnu*)
4548 # Under GNU Hurd, this test is not required because there is
4549 # no limit to the length of command line arguments.
4550 # Libtool will interpret -1 as no limit whatsoever
4551 lt_cv_sys_max_cmd_len=-1;
4552 ;;
d9898ee8 4553
8d138742
CE
4554 cygwin* | mingw* | cegcc*)
4555 # On Win9x/ME, this test blows up -- it succeeds, but takes
4556 # about 5 minutes as the teststring grows exponentially.
4557 # Worse, since 9x/ME are not pre-emptively multitasking,
4558 # you end up with a "frozen" computer, even though with patience
4559 # the test eventually succeeds (with a max line length of 256k).
4560 # Instead, let's just punt: use the minimum linelength reported by
4561 # all of the supported platforms: 8192 (on NT/2K/XP).
4562 lt_cv_sys_max_cmd_len=8192;
d9898ee8 4563 ;;
8d138742
CE
4564
4565 amigaos*)
4566 # On AmigaOS with pdksh, this test takes hours, literally.
4567 # So we just punt and use a minimum line length of 8192.
4568 lt_cv_sys_max_cmd_len=8192;
d9898ee8 4569 ;;
8d138742
CE
4570
4571 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4572 # This has been around since 386BSD, at least. Likely further.
4573 if test -x /sbin/sysctl; then
4574 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4575 elif test -x /usr/sbin/sysctl; then
4576 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4577 else
4578 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4579 fi
4580 # And add a safety zone
4581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
d9898ee8 4583 ;;
8d138742
CE
4584
4585 interix*)
4586 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4587 lt_cv_sys_max_cmd_len=196608
d9898ee8 4588 ;;
8d138742
CE
4589
4590 osf*)
4591 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4592 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4593 # nice to cause kernel panics so lets avoid the loop below.
4594 # First set a reasonable default.
4595 lt_cv_sys_max_cmd_len=16384
4596 #
4597 if test -x /sbin/sysconfig; then
4598 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4599 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4600 esac
4601 fi
d9898ee8 4602 ;;
8d138742
CE
4603 sco3.2v5*)
4604 lt_cv_sys_max_cmd_len=102400
4605 ;;
4606 sysv5* | sco5v6* | sysv4.2uw2*)
4607 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4608 if test -n "$kargmax"; then
4609 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4610 else
4611 lt_cv_sys_max_cmd_len=32768
4612 fi
4613 ;;
4614 *)
4615 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4616 if test -n "$lt_cv_sys_max_cmd_len"; then
4617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4619 else
4620 # Make teststring a little bigger before we do anything with it.
4621 # a 1K string should be a reasonable start.
4622 for i in 1 2 3 4 5 6 7 8 ; do
4623 teststring=$teststring$teststring
4624 done
4625 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4626 # If test is not a shell built-in, we'll probably end up computing a
4627 # maximum length that is only half of the actual maximum length, but
4628 # we can't tell.
4629 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4630 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4631 test $i != 17 # 1/2 MB should be enough
4632 do
4633 i=`expr $i + 1`
4634 teststring=$teststring$teststring
4635 done
4636 # Only check the string length outside the loop.
4637 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4638 teststring=
4639 # Add a significant safety factor because C++ compilers can tack on
4640 # massive amounts of additional arguments before passing them to the
4641 # linker. It appears as though 1/2 is a usable value.
4642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4643 fi
d9898ee8 4644 ;;
4645 esac
d9898ee8 4646
8d138742 4647fi
d9898ee8 4648
8d138742
CE
4649if test -n $lt_cv_sys_max_cmd_len ; then
4650 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4651$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4652else
4653 { $as_echo "$as_me:$LINENO: result: none" >&5
4654$as_echo "none" >&6; }
d9898ee8 4655fi
8d138742 4656max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 4657
4658
4659
4660
d9898ee8 4661
d9898ee8 4662
8d138742
CE
4663: ${CP="cp -f"}
4664: ${MV="mv -f"}
4665: ${RM="rm -f"}
d9898ee8 4666
8d138742
CE
4667{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4668$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4669# Try some XSI features
4670xsi_shell=no
4671( _lt_dummy="a/b/c"
4672 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4673 = c,a/b,, \
4674 && eval 'test $(( 1 + 1 )) -eq 2 \
4675 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4676 && xsi_shell=yes
4677{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4678$as_echo "$xsi_shell" >&6; }
d9898ee8 4679
d9898ee8 4680
8d138742
CE
4681{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4682$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4683lt_shell_append=no
4684( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4685 >/dev/null 2>&1 \
4686 && lt_shell_append=yes
4687{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4688$as_echo "$lt_shell_append" >&6; }
d9898ee8 4689
d9898ee8 4690
8d138742
CE
4691if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4692 lt_unset=unset
d9898ee8 4693else
8d138742
CE
4694 lt_unset=false
4695fi
d9898ee8 4696
d9898ee8 4697
d9898ee8 4698
dd184caf 4699
d9898ee8 4700
8d138742
CE
4701# test EBCDIC or ASCII
4702case `echo X|tr X '\101'` in
4703 A) # ASCII based system
4704 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4705 lt_SP2NL='tr \040 \012'
4706 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 4707 ;;
8d138742
CE
4708 *) # EBCDIC based system
4709 lt_SP2NL='tr \100 \n'
4710 lt_NL2SP='tr \r\n \100\100'
d9898ee8 4711 ;;
8d138742 4712esac
d9898ee8 4713
4714
d9898ee8 4715
d9898ee8 4716
4717
8d138742
CE
4718
4719
4720
4721
4722{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4723$as_echo_n "checking for $LD option to reload object files... " >&6; }
4724if test "${lt_cv_ld_reload_flag+set}" = set; then
4725 $as_echo_n "(cached) " >&6
d9898ee8 4726else
8d138742
CE
4727 lt_cv_ld_reload_flag='-r'
4728fi
4729{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4730$as_echo "$lt_cv_ld_reload_flag" >&6; }
4731reload_flag=$lt_cv_ld_reload_flag
4732case $reload_flag in
4733"" | " "*) ;;
4734*) reload_flag=" $reload_flag" ;;
4735esac
4736reload_cmds='$LD$reload_flag -o $output$reload_objs'
4737case $host_os in
4738 darwin*)
4739 if test "$GCC" = yes; then
4740 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4741 else
4742 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4743 fi
4744 ;;
dd184caf 4745esac
d9898ee8 4746
dd184caf 4747
d9898ee8 4748
d9898ee8 4749
dd184caf 4750
d9898ee8 4751
d9898ee8 4752
d9898ee8 4753
8d138742
CE
4754
4755if test -n "$ac_tool_prefix"; then
4756 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4757set dummy ${ac_tool_prefix}objdump; ac_word=$2
4758{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4759$as_echo_n "checking for $ac_word... " >&6; }
4760if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4761 $as_echo_n "(cached) " >&6
d9898ee8 4762else
8d138742
CE
4763 if test -n "$OBJDUMP"; then
4764 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
d9898ee8 4765else
8d138742
CE
4766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767for as_dir in $PATH
4768do
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4774 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777done
4778done
4779IFS=$as_save_IFS
d9898ee8 4780
8d138742
CE
4781fi
4782fi
4783OBJDUMP=$ac_cv_prog_OBJDUMP
4784if test -n "$OBJDUMP"; then
4785 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4786$as_echo "$OBJDUMP" >&6; }
4787else
4788 { $as_echo "$as_me:$LINENO: result: no" >&5
4789$as_echo "no" >&6; }
d9898ee8 4790fi
dd184caf 4791
d9898ee8 4792
8d138742
CE
4793fi
4794if test -z "$ac_cv_prog_OBJDUMP"; then
4795 ac_ct_OBJDUMP=$OBJDUMP
4796 # Extract the first word of "objdump", so it can be a program name with args.
4797set dummy objdump; ac_word=$2
4798{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4799$as_echo_n "checking for $ac_word... " >&6; }
4800if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4801 $as_echo_n "(cached) " >&6
d9898ee8 4802else
8d138742
CE
4803 if test -n "$ac_ct_OBJDUMP"; then
4804 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4805else
4806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807for as_dir in $PATH
4808do
4809 IFS=$as_save_IFS
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4813 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4814 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 break 2
4816 fi
4817done
4818done
4819IFS=$as_save_IFS
d9898ee8 4820
8d138742
CE
4821fi
4822fi
4823ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4824if test -n "$ac_ct_OBJDUMP"; then
4825 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4826$as_echo "$ac_ct_OBJDUMP" >&6; }
4827else
4828 { $as_echo "$as_me:$LINENO: result: no" >&5
4829$as_echo "no" >&6; }
d9898ee8 4830fi
dd184caf 4831
8d138742
CE
4832 if test "x$ac_ct_OBJDUMP" = x; then
4833 OBJDUMP="false"
4834 else
4835 case $cross_compiling:$ac_tool_warned in
4836yes:)
4837{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4839ac_tool_warned=yes ;;
4840esac
4841 OBJDUMP=$ac_ct_OBJDUMP
4842 fi
d9898ee8 4843else
8d138742 4844 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 4845fi
4846
8d138742 4847test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 4848
4849
d9898ee8 4850
d9898ee8 4851
d9898ee8 4852
dd184caf 4853
d9898ee8 4854
d9898ee8 4855
8d138742
CE
4856
4857{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4858$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4859if test "${lt_cv_deplibs_check_method+set}" = set; then
4860 $as_echo_n "(cached) " >&6
d9898ee8 4861else
8d138742
CE
4862 lt_cv_file_magic_cmd='$MAGIC_CMD'
4863lt_cv_file_magic_test_file=
4864lt_cv_deplibs_check_method='unknown'
4865# Need to set the preceding variable on all platforms that support
4866# interlibrary dependencies.
4867# 'none' -- dependencies not supported.
4868# `unknown' -- same as none, but documents that we really don't know.
4869# 'pass_all' -- all dependencies passed with no checks.
4870# 'test_compile' -- check by making test program.
4871# 'file_magic [[regex]]' -- check by looking for files in library path
4872# which responds to the $file_magic_cmd with a given extended regex.
4873# If you have `file' or equivalent on your system and you're not sure
4874# whether `pass_all' will *always* work, you probably want this one.
d9898ee8 4875
8d138742
CE
4876case $host_os in
4877aix[4-9]*)
4878 lt_cv_deplibs_check_method=pass_all
4879 ;;
d9898ee8 4880
8d138742
CE
4881beos*)
4882 lt_cv_deplibs_check_method=pass_all
4883 ;;
d9898ee8 4884
8d138742
CE
4885bsdi[45]*)
4886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4887 lt_cv_file_magic_cmd='/usr/bin/file -L'
4888 lt_cv_file_magic_test_file=/shlib/libc.so
4889 ;;
d9898ee8 4890
8d138742
CE
4891cygwin*)
4892 # func_win32_libid is a shell function defined in ltmain.sh
4893 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4894 lt_cv_file_magic_cmd='func_win32_libid'
4895 ;;
d9898ee8 4896
8d138742
CE
4897mingw* | pw32*)
4898 # Base MSYS/MinGW do not provide the 'file' command needed by
4899 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4900 # unless we find 'file', for example because we are cross-compiling.
4901 if ( file / ) >/dev/null 2>&1; then
4902 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4903 lt_cv_file_magic_cmd='func_win32_libid'
4904 else
4905 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4906 lt_cv_file_magic_cmd='$OBJDUMP -f'
4907 fi
4908 ;;
d9898ee8 4909
8d138742
CE
4910cegcc)
4911 # use the weaker test based on 'objdump'. See mingw*.
4912 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4913 lt_cv_file_magic_cmd='$OBJDUMP -f'
4914 ;;
d9898ee8 4915
8d138742
CE
4916darwin* | rhapsody*)
4917 lt_cv_deplibs_check_method=pass_all
4918 ;;
4919
4920freebsd* | dragonfly*)
4921 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4922 case $host_cpu in
4923 i*86 )
4924 # Not sure whether the presence of OpenBSD here was a mistake.
4925 # Let's accept both of them until this is cleared up.
4926 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4927 lt_cv_file_magic_cmd=/usr/bin/file
4928 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4929 ;;
4930 esac
4931 else
4932 lt_cv_deplibs_check_method=pass_all
4933 fi
4934 ;;
dd184caf 4935
8d138742
CE
4936gnu*)
4937 lt_cv_deplibs_check_method=pass_all
4938 ;;
dd184caf 4939
8d138742
CE
4940hpux10.20* | hpux11*)
4941 lt_cv_file_magic_cmd=/usr/bin/file
4942 case $host_cpu in
4943 ia64*)
4944 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4945 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4946 ;;
4947 hppa*64*)
4948 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]'
4949 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4950 ;;
4951 *)
4952 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4953 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4954 ;;
4955 esac
4956 ;;
d9898ee8 4957
8d138742
CE
4958interix[3-9]*)
4959 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4961 ;;
d9898ee8 4962
8d138742
CE
4963irix5* | irix6* | nonstopux*)
4964 case $LD in
4965 *-32|*"-32 ") libmagic=32-bit;;
4966 *-n32|*"-n32 ") libmagic=N32;;
4967 *-64|*"-64 ") libmagic=64-bit;;
4968 *) libmagic=never-match;;
4969 esac
4970 lt_cv_deplibs_check_method=pass_all
4971 ;;
d9898ee8 4972
8d138742
CE
4973# This must be Linux ELF.
4974linux* | k*bsd*-gnu)
4975 lt_cv_deplibs_check_method=pass_all
4976 ;;
d9898ee8 4977
8d138742
CE
4978netbsd*)
4979 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4981 else
4982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4983 fi
4984 ;;
d9898ee8 4985
8d138742
CE
4986newos6*)
4987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4988 lt_cv_file_magic_cmd=/usr/bin/file
4989 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4990 ;;
d9898ee8 4991
8d138742
CE
4992*nto* | *qnx*)
4993 lt_cv_deplibs_check_method=pass_all
4994 ;;
d9898ee8 4995
8d138742
CE
4996openbsd*)
4997 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4999 else
5000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5001 fi
5002 ;;
d9898ee8 5003
8d138742
CE
5004osf3* | osf4* | osf5*)
5005 lt_cv_deplibs_check_method=pass_all
5006 ;;
d9898ee8 5007
8d138742
CE
5008rdos*)
5009 lt_cv_deplibs_check_method=pass_all
5010 ;;
d9898ee8 5011
8d138742
CE
5012solaris*)
5013 lt_cv_deplibs_check_method=pass_all
5014 ;;
d9898ee8 5015
8d138742
CE
5016sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5017 lt_cv_deplibs_check_method=pass_all
5018 ;;
d9898ee8 5019
8d138742
CE
5020sysv4 | sysv4.3*)
5021 case $host_vendor in
5022 motorola)
5023 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]'
5024 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5025 ;;
5026 ncr)
5027 lt_cv_deplibs_check_method=pass_all
5028 ;;
5029 sequent)
5030 lt_cv_file_magic_cmd='/bin/file'
5031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5032 ;;
5033 sni)
5034 lt_cv_file_magic_cmd='/bin/file'
5035 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5036 lt_cv_file_magic_test_file=/lib/libc.so
5037 ;;
5038 siemens)
5039 lt_cv_deplibs_check_method=pass_all
5040 ;;
5041 pc)
5042 lt_cv_deplibs_check_method=pass_all
5043 ;;
5044 esac
5045 ;;
d9898ee8 5046
8d138742
CE
5047tpf*)
5048 lt_cv_deplibs_check_method=pass_all
5049 ;;
dd184caf 5050esac
d9898ee8 5051
d9898ee8 5052fi
8d138742
CE
5053{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5054$as_echo "$lt_cv_deplibs_check_method" >&6; }
5055file_magic_cmd=$lt_cv_file_magic_cmd
5056deplibs_check_method=$lt_cv_deplibs_check_method
5057test -z "$deplibs_check_method" && deplibs_check_method=unknown
dd184caf 5058
d9898ee8 5059
d9898ee8 5060
d9898ee8 5061
5062
5063
d9898ee8 5064
dd184caf 5065
d9898ee8 5066
d9898ee8 5067
d9898ee8 5068
d9898ee8 5069
8d138742
CE
5070if test -n "$ac_tool_prefix"; then
5071 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5072set dummy ${ac_tool_prefix}ar; ac_word=$2
5073{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5074$as_echo_n "checking for $ac_word... " >&6; }
5075if test "${ac_cv_prog_AR+set}" = set; then
5076 $as_echo_n "(cached) " >&6
d9898ee8 5077else
8d138742
CE
5078 if test -n "$AR"; then
5079 ac_cv_prog_AR="$AR" # Let the user override the test.
d9898ee8 5080else
5081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082for as_dir in $PATH
5083do
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5088 ac_cv_prog_AR="${ac_tool_prefix}ar"
5089 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5090 break 2
5091 fi
5092done
5093done
dd184caf 5094IFS=$as_save_IFS
d9898ee8 5095
5096fi
5097fi
8d138742
CE
5098AR=$ac_cv_prog_AR
5099if test -n "$AR"; then
5100 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5101$as_echo "$AR" >&6; }
d9898ee8 5102else
8d138742
CE
5103 { $as_echo "$as_me:$LINENO: result: no" >&5
5104$as_echo "no" >&6; }
d9898ee8 5105fi
5106
dd184caf 5107
d9898ee8 5108fi
8d138742
CE
5109if test -z "$ac_cv_prog_AR"; then
5110 ac_ct_AR=$AR
5111 # Extract the first word of "ar", so it can be a program name with args.
5112set dummy ar; ac_word=$2
5113{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5114$as_echo_n "checking for $ac_word... " >&6; }
5115if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5116 $as_echo_n "(cached) " >&6
d9898ee8 5117else
8d138742
CE
5118 if test -n "$ac_ct_AR"; then
5119 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
d9898ee8 5120else
5121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122for as_dir in $PATH
5123do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5128 ac_cv_prog_ac_ct_AR="ar"
5129 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5130 break 2
5131 fi
5132done
5133done
dd184caf 5134IFS=$as_save_IFS
d9898ee8 5135
5136fi
5137fi
8d138742
CE
5138ac_ct_AR=$ac_cv_prog_ac_ct_AR
5139if test -n "$ac_ct_AR"; then
5140 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5141$as_echo "$ac_ct_AR" >&6; }
d9898ee8 5142else
8d138742
CE
5143 { $as_echo "$as_me:$LINENO: result: no" >&5
5144$as_echo "no" >&6; }
d9898ee8 5145fi
5146
8d138742
CE
5147 if test "x$ac_ct_AR" = x; then
5148 AR="false"
dd184caf 5149 else
5150 case $cross_compiling:$ac_tool_warned in
5151yes:)
8d138742
CE
5152{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 5154ac_tool_warned=yes ;;
5155esac
8d138742 5156 AR=$ac_ct_AR
dd184caf 5157 fi
d9898ee8 5158else
8d138742
CE
5159 AR="$ac_cv_prog_AR"
5160fi
d9898ee8 5161
8d138742
CE
5162test -z "$AR" && AR=ar
5163test -z "$AR_FLAGS" && AR_FLAGS=cru
d9898ee8 5164
d9898ee8 5165
dd184caf 5166
d9898ee8 5167
d9898ee8 5168
d9898ee8 5169
dd184caf 5170
dd184caf 5171
d9898ee8 5172
dd184caf 5173
dd184caf 5174
8d138742
CE
5175if test -n "$ac_tool_prefix"; then
5176 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5177set dummy ${ac_tool_prefix}strip; ac_word=$2
5178{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5179$as_echo_n "checking for $ac_word... " >&6; }
5180if test "${ac_cv_prog_STRIP+set}" = set; then
5181 $as_echo_n "(cached) " >&6
d9898ee8 5182else
8d138742
CE
5183 if test -n "$STRIP"; then
5184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5185else
5186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187for as_dir in $PATH
5188do
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5196 fi
5197done
5198done
5199IFS=$as_save_IFS
dd184caf 5200
d9898ee8 5201fi
dd184caf 5202fi
8d138742
CE
5203STRIP=$ac_cv_prog_STRIP
5204if test -n "$STRIP"; then
5205 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5206$as_echo "$STRIP" >&6; }
5207else
5208 { $as_echo "$as_me:$LINENO: result: no" >&5
5209$as_echo "no" >&6; }
d9898ee8 5210fi
5211
8d138742
CE
5212
5213fi
5214if test -z "$ac_cv_prog_STRIP"; then
5215 ac_ct_STRIP=$STRIP
5216 # Extract the first word of "strip", so it can be a program name with args.
5217set dummy strip; ac_word=$2
5218{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5219$as_echo_n "checking for $ac_word... " >&6; }
5220if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5221 $as_echo_n "(cached) " >&6
dd184caf 5222else
8d138742
CE
5223 if test -n "$ac_ct_STRIP"; then
5224 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5225else
5226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227for as_dir in $PATH
5228do
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233 ac_cv_prog_ac_ct_STRIP="strip"
5234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
dd184caf 5236 fi
8d138742
CE
5237done
5238done
5239IFS=$as_save_IFS
d9898ee8 5240
8d138742
CE
5241fi
5242fi
5243ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5244if test -n "$ac_ct_STRIP"; then
5245 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5246$as_echo "$ac_ct_STRIP" >&6; }
d9898ee8 5247else
8d138742
CE
5248 { $as_echo "$as_me:$LINENO: result: no" >&5
5249$as_echo "no" >&6; }
5250fi
d9898ee8 5251
8d138742
CE
5252 if test "x$ac_ct_STRIP" = x; then
5253 STRIP=":"
5254 else
5255 case $cross_compiling:$ac_tool_warned in
5256yes:)
5257{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5259ac_tool_warned=yes ;;
5260esac
5261 STRIP=$ac_ct_STRIP
d9898ee8 5262 fi
d9898ee8 5263else
8d138742 5264 STRIP="$ac_cv_prog_STRIP"
d9898ee8 5265fi
5266
8d138742
CE
5267test -z "$STRIP" && STRIP=:
5268
d9898ee8 5269
d9898ee8 5270
5271
5272
5273
8d138742
CE
5274if test -n "$ac_tool_prefix"; then
5275 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5276set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5277{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5278$as_echo_n "checking for $ac_word... " >&6; }
5279if test "${ac_cv_prog_RANLIB+set}" = set; then
5280 $as_echo_n "(cached) " >&6
d9898ee8 5281else
8d138742
CE
5282 if test -n "$RANLIB"; then
5283 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
d9898ee8 5284else
8d138742
CE
5285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286for as_dir in $PATH
5287do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 break 2
5295 fi
5296done
5297done
5298IFS=$as_save_IFS
d9898ee8 5299
d9898ee8 5300fi
8d138742
CE
5301fi
5302RANLIB=$ac_cv_prog_RANLIB
5303if test -n "$RANLIB"; then
5304 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5305$as_echo "$RANLIB" >&6; }
d9898ee8 5306else
8d138742
CE
5307 { $as_echo "$as_me:$LINENO: result: no" >&5
5308$as_echo "no" >&6; }
d9898ee8 5309fi
dd184caf 5310
d9898ee8 5311
d9898ee8 5312fi
8d138742
CE
5313if test -z "$ac_cv_prog_RANLIB"; then
5314 ac_ct_RANLIB=$RANLIB
5315 # Extract the first word of "ranlib", so it can be a program name with args.
5316set dummy ranlib; ac_word=$2
5317{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5318$as_echo_n "checking for $ac_word... " >&6; }
5319if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5320 $as_echo_n "(cached) " >&6
5321else
5322 if test -n "$ac_ct_RANLIB"; then
5323 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5324else
5325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326for as_dir in $PATH
5327do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5332 ac_cv_prog_ac_ct_RANLIB="ranlib"
5333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5335 fi
5336done
5337done
5338IFS=$as_save_IFS
d9898ee8 5339
5340fi
8d138742
CE
5341fi
5342ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5343if test -n "$ac_ct_RANLIB"; then
5344 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5345$as_echo "$ac_ct_RANLIB" >&6; }
d9898ee8 5346else
8d138742
CE
5347 { $as_echo "$as_me:$LINENO: result: no" >&5
5348$as_echo "no" >&6; }
d9898ee8 5349fi
8d138742
CE
5350
5351 if test "x$ac_ct_RANLIB" = x; then
5352 RANLIB=":"
5353 else
5354 case $cross_compiling:$ac_tool_warned in
5355yes:)
5356{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5358ac_tool_warned=yes ;;
dd184caf 5359esac
8d138742
CE
5360 RANLIB=$ac_ct_RANLIB
5361 fi
d9898ee8 5362else
8d138742 5363 RANLIB="$ac_cv_prog_RANLIB"
d9898ee8 5364fi
dd184caf 5365
8d138742
CE
5366test -z "$RANLIB" && RANLIB=:
5367
d9898ee8 5368
d9898ee8 5369
dd184caf 5370
d9898ee8 5371
d9898ee8 5372
8d138742
CE
5373# Determine commands to create old-style static archives.
5374old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5375old_postinstall_cmds='chmod 644 $oldlib'
5376old_postuninstall_cmds=
d9898ee8 5377
8d138742
CE
5378if test -n "$RANLIB"; then
5379 case $host_os in
5380 openbsd*)
5381 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5382 ;;
5383 *)
5384 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5385 ;;
5386 esac
5387 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d9898ee8 5388fi
5389
5390
d9898ee8 5391
d9898ee8 5392
dd184caf 5393
d9898ee8 5394
d9898ee8 5395
dd184caf 5396
d9898ee8 5397
d9898ee8 5398
5399
d9898ee8 5400
d9898ee8 5401
d9898ee8 5402
dd184caf 5403
d9898ee8 5404
d9898ee8 5405
d9898ee8 5406
dd184caf 5407
d9898ee8 5408
d9898ee8 5409
d9898ee8 5410
5411
5412
d9898ee8 5413
d9898ee8 5414
d9898ee8 5415
d9898ee8 5416
d9898ee8 5417
d9898ee8 5418
d9898ee8 5419
d9898ee8 5420
d9898ee8 5421
d9898ee8 5422
8d138742
CE
5423# If no C compiler was specified, use CC.
5424LTCC=${LTCC-"$CC"}
d9898ee8 5425
8d138742
CE
5426# If no C compiler flags were specified, use CFLAGS.
5427LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 5428
8d138742
CE
5429# Allow CC to be a program name with arguments.
5430compiler=$CC
d9898ee8 5431
ac40fd9e 5432
d9898ee8 5433# Check for command to grab the raw symbol name followed by C symbol from nm.
8d138742
CE
5434{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5435$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d9898ee8 5436if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8d138742 5437 $as_echo_n "(cached) " >&6
d9898ee8 5438else
5439
5440# These are sane defaults that work on at least a few old systems.
5441# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5442
5443# Character class describing NM global symbol codes.
5444symcode='[BCDEGRST]'
5445
5446# Regexp to match symbols that can be accessed directly from C.
5447sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5448
d9898ee8 5449# Define system-specific variables.
5450case $host_os in
5451aix*)
5452 symcode='[BCDT]'
5453 ;;
8d138742 5454cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 5455 symcode='[ABCDGISTW]'
5456 ;;
8d138742 5457hpux*)
d9898ee8 5458 if test "$host_cpu" = ia64; then
5459 symcode='[ABCDEGRST]'
5460 fi
d9898ee8 5461 ;;
5462irix* | nonstopux*)
5463 symcode='[BCDEGRST]'
5464 ;;
5465osf*)
5466 symcode='[BCDEGQRST]'
5467 ;;
5468solaris*)
5469 symcode='[BDRT]'
5470 ;;
5471sco3.2v5*)
5472 symcode='[DT]'
5473 ;;
5474sysv4.2uw2*)
5475 symcode='[DT]'
5476 ;;
5477sysv5* | sco5v6* | unixware* | OpenUNIX*)
5478 symcode='[ABDT]'
5479 ;;
5480sysv4)
5481 symcode='[DFNSTU]'
5482 ;;
5483esac
5484
8d138742
CE
5485# If we're using GNU nm, then use its standard symbol codes.
5486case `$NM -V 2>&1` in
5487*GNU* | *'with BFD'*)
5488 symcode='[ABCDGIRSTW]' ;;
5489esac
5490
5491# Transform an extracted symbol line into a proper C declaration.
5492# Some systems (esp. on ia64) link data and code symbols differently,
5493# so use this general approach.
5494lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5495
5496# Transform an extracted symbol line into symbol name and symbol address
5497lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5498lt_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'"
5499
d9898ee8 5500# Handle CRLF in mingw tool chain
5501opt_cr=
5502case $build_os in
5503mingw*)
8d138742 5504 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
d9898ee8 5505 ;;
5506esac
5507
8d138742 5508# Try without a prefix underscore, then with it.
d9898ee8 5509for ac_symprfx in "" "_"; do
5510
5511 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5512 symxfrm="\\1 $ac_symprfx\\2 \\2"
5513
5514 # Write the raw and C identifiers.
8d138742
CE
5515 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5516 # Fake it for dumpbin and say T for any non-static function
5517 # and D for any global variable.
5518 # Also find C++ and __fastcall symbols from MSVC++,
5519 # which start with @ or ?.
5520 lt_cv_sys_global_symbol_pipe="$AWK '"\
5521" {last_section=section; section=\$ 3};"\
5522" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5523" \$ 0!~/External *\|/{next};"\
5524" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5525" {if(hide[section]) next};"\
5526" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5527" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5528" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5529" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5530" ' prfx=^$ac_symprfx"
5531 else
5532 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5533 fi
d9898ee8 5534
5535 # Check to see that the pipe works correctly.
5536 pipe_works=no
5537
5538 rm -f conftest*
8d138742 5539 cat > conftest.$ac_ext <<_LT_EOF
d9898ee8 5540#ifdef __cplusplus
5541extern "C" {
5542#endif
5543char nm_test_var;
8d138742
CE
5544void nm_test_func(void);
5545void nm_test_func(void){}
d9898ee8 5546#ifdef __cplusplus
5547}
5548#endif
5549int main(){nm_test_var='a';nm_test_func();return(0);}
8d138742 5550_LT_EOF
d9898ee8 5551
5552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553 (eval $ac_compile) 2>&5
5554 ac_status=$?
8d138742 5555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 5556 (exit $ac_status); }; then
5557 # Now try to grab the symbols.
5558 nlist=conftest.nm
5559 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5560 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5561 ac_status=$?
8d138742 5562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 5563 (exit $ac_status); } && test -s "$nlist"; then
5564 # Try sorting and uniquifying the output.
5565 if sort "$nlist" | uniq > "$nlist"T; then
5566 mv -f "$nlist"T "$nlist"
5567 else
5568 rm -f "$nlist"T
5569 fi
5570
5571 # Make sure that we snagged all the symbols we need.
8d138742
CE
5572 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5573 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5574 cat <<_LT_EOF > conftest.$ac_ext
d9898ee8 5575#ifdef __cplusplus
5576extern "C" {
5577#endif
5578
8d138742 5579_LT_EOF
d9898ee8 5580 # Now generate the symbol file.
8d138742 5581 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 5582
8d138742 5583 cat <<_LT_EOF >> conftest.$ac_ext
d9898ee8 5584
8d138742 5585/* The mapping between symbol names and symbols. */
d9898ee8 5586const struct {
5587 const char *name;
8d138742 5588 void *address;
d9898ee8 5589}
8d138742 5590lt__PROGRAM__LTX_preloaded_symbols[] =
d9898ee8 5591{
8d138742
CE
5592 { "@PROGRAM@", (void *) 0 },
5593_LT_EOF
5594 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5595 cat <<\_LT_EOF >> conftest.$ac_ext
5596 {0, (void *) 0}
d9898ee8 5597};
5598
8d138742
CE
5599/* This works around a problem in FreeBSD linker */
5600#ifdef FREEBSD_WORKAROUND
5601static const void *lt_preloaded_setup() {
5602 return lt__PROGRAM__LTX_preloaded_symbols;
5603}
5604#endif
5605
d9898ee8 5606#ifdef __cplusplus
5607}
5608#endif
8d138742 5609_LT_EOF
d9898ee8 5610 # Now try linking the two files.
5611 mv conftest.$ac_objext conftstm.$ac_objext
5612 lt_save_LIBS="$LIBS"
5613 lt_save_CFLAGS="$CFLAGS"
5614 LIBS="conftstm.$ac_objext"
5615 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5617 (eval $ac_link) 2>&5
5618 ac_status=$?
8d138742 5619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 5620 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5621 pipe_works=yes
5622 fi
5623 LIBS="$lt_save_LIBS"
5624 CFLAGS="$lt_save_CFLAGS"
5625 else
5626 echo "cannot find nm_test_func in $nlist" >&5
5627 fi
5628 else
5629 echo "cannot find nm_test_var in $nlist" >&5
5630 fi
5631 else
5632 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5633 fi
5634 else
5635 echo "$progname: failed program was:" >&5
5636 cat conftest.$ac_ext >&5
5637 fi
8d138742 5638 rm -rf conftest* conftst*
d9898ee8 5639
5640 # Do not use the global_symbol_pipe unless it works.
5641 if test "$pipe_works" = yes; then
5642 break
5643 else
5644 lt_cv_sys_global_symbol_pipe=
5645 fi
5646done
5647
5648fi
5649
5650if test -z "$lt_cv_sys_global_symbol_pipe"; then
5651 lt_cv_sys_global_symbol_to_cdecl=
5652fi
5653if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8d138742
CE
5654 { $as_echo "$as_me:$LINENO: result: failed" >&5
5655$as_echo "failed" >&6; }
d9898ee8 5656else
8d138742
CE
5657 { $as_echo "$as_me:$LINENO: result: ok" >&5
5658$as_echo "ok" >&6; }
d9898ee8 5659fi
5660
d9898ee8 5661
5662
5663
5664
5665
d9898ee8 5666
d9898ee8 5667
d9898ee8 5668
d9898ee8 5669
d9898ee8 5670
d9898ee8 5671
d9898ee8 5672
d9898ee8 5673
d9898ee8 5674
d9898ee8 5675
dd184caf 5676
d9898ee8 5677
d9898ee8 5678
d9898ee8 5679
d9898ee8 5680
d9898ee8 5681
dd184caf 5682
8d138742
CE
5683# Check whether --enable-libtool-lock was given.
5684if test "${enable_libtool_lock+set}" = set; then
5685 enableval=$enable_libtool_lock;
d9898ee8 5686fi
8d138742
CE
5687
5688test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5689
5690# Some flags need to be propagated to the compiler or linker for good
5691# libtool support.
5692case $host in
5693ia64-*-hpux*)
5694 # Find out which ABI we are using.
5695 echo 'int i;' > conftest.$ac_ext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5697 (eval $ac_compile) 2>&5
5698 ac_status=$?
5699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; then
5701 case `/usr/bin/file conftest.$ac_objext` in
5702 *ELF-32*)
5703 HPUX_IA64_MODE="32"
5704 ;;
5705 *ELF-64*)
5706 HPUX_IA64_MODE="64"
5707 ;;
5708 esac
5709 fi
5710 rm -rf conftest*
5711 ;;
5712*-*-irix6*)
5713 # Find out which ABI we are using.
5714 echo '#line 5714 "configure"' > conftest.$ac_ext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716 (eval $ac_compile) 2>&5
5717 ac_status=$?
5718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; then
5720 if test "$lt_cv_prog_gnu_ld" = yes; then
5721 case `/usr/bin/file conftest.$ac_objext` in
5722 *32-bit*)
5723 LD="${LD-ld} -melf32bsmip"
5724 ;;
5725 *N32*)
5726 LD="${LD-ld} -melf32bmipn32"
5727 ;;
5728 *64-bit*)
5729 LD="${LD-ld} -melf64bmip"
5730 ;;
5731 esac
5732 else
5733 case `/usr/bin/file conftest.$ac_objext` in
5734 *32-bit*)
5735 LD="${LD-ld} -32"
5736 ;;
5737 *N32*)
5738 LD="${LD-ld} -n32"
5739 ;;
5740 *64-bit*)
5741 LD="${LD-ld} -64"
5742 ;;
5743 esac
5744 fi
5745 fi
5746 rm -rf conftest*
5747 ;;
5748
5749x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5750s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5751 # Find out which ABI we are using.
5752 echo 'int i;' > conftest.$ac_ext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>&5
5755 ac_status=$?
5756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; then
5758 case `/usr/bin/file conftest.o` in
5759 *32-bit*)
5760 case $host in
5761 x86_64-*kfreebsd*-gnu)
5762 LD="${LD-ld} -m elf_i386_fbsd"
5763 ;;
5764 x86_64-*linux*)
5765 LD="${LD-ld} -m elf_i386"
5766 ;;
5767 ppc64-*linux*|powerpc64-*linux*)
5768 LD="${LD-ld} -m elf32ppclinux"
5769 ;;
5770 s390x-*linux*)
5771 LD="${LD-ld} -m elf_s390"
5772 ;;
5773 sparc64-*linux*)
5774 LD="${LD-ld} -m elf32_sparc"
5775 ;;
5776 esac
5777 ;;
5778 *64-bit*)
5779 case $host in
5780 x86_64-*kfreebsd*-gnu)
5781 LD="${LD-ld} -m elf_x86_64_fbsd"
5782 ;;
5783 x86_64-*linux*)
5784 LD="${LD-ld} -m elf_x86_64"
5785 ;;
5786 ppc*-*linux*|powerpc*-*linux*)
5787 LD="${LD-ld} -m elf64ppc"
5788 ;;
5789 s390*-*linux*|s390*-*tpf*)
5790 LD="${LD-ld} -m elf64_s390"
5791 ;;
5792 sparc*-*linux*)
5793 LD="${LD-ld} -m elf64_sparc"
5794 ;;
5795 esac
5796 ;;
5797 esac
5798 fi
5799 rm -rf conftest*
5800 ;;
5801
5802*-*-sco3.2v5*)
5803 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5804 SAVE_CFLAGS="$CFLAGS"
5805 CFLAGS="$CFLAGS -belf"
5806 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5807$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5808if test "${lt_cv_cc_needs_belf+set}" = set; then
5809 $as_echo_n "(cached) " >&6
d9898ee8 5810else
8d138742
CE
5811 ac_ext=c
5812ac_cpp='$CPP $CPPFLAGS'
5813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5815ac_compiler_gnu=$ac_cv_c_compiler_gnu
5816
5817 cat >conftest.$ac_ext <<_ACEOF
5818/* confdefs.h. */
5819_ACEOF
5820cat confdefs.h >>conftest.$ac_ext
5821cat >>conftest.$ac_ext <<_ACEOF
5822/* end confdefs.h. */
5823
5824int
5825main ()
5826{
5827
5828 ;
5829 return 0;
5830}
5831_ACEOF
5832rm -f conftest.$ac_objext conftest$ac_exeext
5833if { (ac_try="$ac_link"
5834case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837esac
5838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5839$as_echo "$ac_try_echo") >&5
5840 (eval "$ac_link") 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } && {
5847 test -z "$ac_c_werror_flag" ||
5848 test ! -s conftest.err
5849 } && test -s conftest$ac_exeext && {
5850 test "$cross_compiling" = yes ||
5851 $as_test_x conftest$ac_exeext
5852 }; then
5853 lt_cv_cc_needs_belf=yes
5854else
5855 $as_echo "$as_me: failed program was:" >&5
5856sed 's/^/| /' conftest.$ac_ext >&5
5857
5858 lt_cv_cc_needs_belf=no
5859fi
5860
5861rm -rf conftest.dSYM
5862rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5863 conftest$ac_exeext conftest.$ac_ext
5864 ac_ext=c
5865ac_cpp='$CPP $CPPFLAGS'
5866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5868ac_compiler_gnu=$ac_cv_c_compiler_gnu
5869
5870fi
5871{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5872$as_echo "$lt_cv_cc_needs_belf" >&6; }
5873 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5874 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5875 CFLAGS="$SAVE_CFLAGS"
5876 fi
5877 ;;
5878sparc*-*solaris*)
5879 # Find out which ABI we are using.
5880 echo 'int i;' > conftest.$ac_ext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>&5
5883 ac_status=$?
5884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; then
5886 case `/usr/bin/file conftest.o` in
5887 *64-bit*)
5888 case $lt_cv_prog_gnu_ld in
5889 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5890 *)
5891 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5892 LD="${LD-ld} -64"
5893 fi
5894 ;;
5895 esac
5896 ;;
5897 esac
5898 fi
5899 rm -rf conftest*
5900 ;;
5901esac
5902
5903need_locks="$enable_libtool_lock"
5904
5905
5906 case $host_os in
5907 rhapsody* | darwin*)
5908 if test -n "$ac_tool_prefix"; then
5909 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5910set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5911{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5912$as_echo_n "checking for $ac_word... " >&6; }
5913if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5914 $as_echo_n "(cached) " >&6
5915else
5916 if test -n "$DSYMUTIL"; then
5917 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
d9898ee8 5918else
5919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920for as_dir in $PATH
5921do
5922 IFS=$as_save_IFS
5923 test -z "$as_dir" && as_dir=.
5924 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5926 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5927 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5928 break 2
5929 fi
5930done
5931done
dd184caf 5932IFS=$as_save_IFS
d9898ee8 5933
d9898ee8 5934fi
5935fi
8d138742
CE
5936DSYMUTIL=$ac_cv_prog_DSYMUTIL
5937if test -n "$DSYMUTIL"; then
5938 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5939$as_echo "$DSYMUTIL" >&6; }
d9898ee8 5940else
8d138742
CE
5941 { $as_echo "$as_me:$LINENO: result: no" >&5
5942$as_echo "no" >&6; }
d9898ee8 5943fi
5944
8d138742
CE
5945
5946fi
5947if test -z "$ac_cv_prog_DSYMUTIL"; then
5948 ac_ct_DSYMUTIL=$DSYMUTIL
5949 # Extract the first word of "dsymutil", so it can be a program name with args.
5950set dummy dsymutil; ac_word=$2
5951{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5952$as_echo_n "checking for $ac_word... " >&6; }
5953if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5954 $as_echo_n "(cached) " >&6
5955else
5956 if test -n "$ac_ct_DSYMUTIL"; then
5957 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5958else
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5966 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 break 2
5969 fi
5970done
5971done
5972IFS=$as_save_IFS
5973
5974fi
5975fi
5976ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5977if test -n "$ac_ct_DSYMUTIL"; then
5978 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5979$as_echo "$ac_ct_DSYMUTIL" >&6; }
5980else
5981 { $as_echo "$as_me:$LINENO: result: no" >&5
5982$as_echo "no" >&6; }
5983fi
5984
5985 if test "x$ac_ct_DSYMUTIL" = x; then
5986 DSYMUTIL=":"
dd184caf 5987 else
5988 case $cross_compiling:$ac_tool_warned in
5989yes:)
8d138742
CE
5990{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 5992ac_tool_warned=yes ;;
5993esac
8d138742 5994 DSYMUTIL=$ac_ct_DSYMUTIL
dd184caf 5995 fi
d9898ee8 5996else
8d138742 5997 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d9898ee8 5998fi
5999
8d138742
CE
6000 if test -n "$ac_tool_prefix"; then
6001 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6002set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6003{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6004$as_echo_n "checking for $ac_word... " >&6; }
6005if test "${ac_cv_prog_NMEDIT+set}" = set; then
6006 $as_echo_n "(cached) " >&6
d9898ee8 6007else
8d138742
CE
6008 if test -n "$NMEDIT"; then
6009 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d9898ee8 6010else
6011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012for as_dir in $PATH
6013do
6014 IFS=$as_save_IFS
6015 test -z "$as_dir" && as_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6018 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6019 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6020 break 2
6021 fi
6022done
6023done
dd184caf 6024IFS=$as_save_IFS
d9898ee8 6025
6026fi
6027fi
8d138742
CE
6028NMEDIT=$ac_cv_prog_NMEDIT
6029if test -n "$NMEDIT"; then
6030 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6031$as_echo "$NMEDIT" >&6; }
d9898ee8 6032else
8d138742
CE
6033 { $as_echo "$as_me:$LINENO: result: no" >&5
6034$as_echo "no" >&6; }
d9898ee8 6035fi
6036
dd184caf 6037
d9898ee8 6038fi
8d138742
CE
6039if test -z "$ac_cv_prog_NMEDIT"; then
6040 ac_ct_NMEDIT=$NMEDIT
6041 # Extract the first word of "nmedit", so it can be a program name with args.
6042set dummy nmedit; ac_word=$2
6043{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6044$as_echo_n "checking for $ac_word... " >&6; }
6045if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6046 $as_echo_n "(cached) " >&6
d9898ee8 6047else
8d138742
CE
6048 if test -n "$ac_ct_NMEDIT"; then
6049 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d9898ee8 6050else
6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052for as_dir in $PATH
6053do
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6058 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6059 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6060 break 2
6061 fi
6062done
6063done
dd184caf 6064IFS=$as_save_IFS
d9898ee8 6065
d9898ee8 6066fi
6067fi
8d138742
CE
6068ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6069if test -n "$ac_ct_NMEDIT"; then
6070 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6071$as_echo "$ac_ct_NMEDIT" >&6; }
d9898ee8 6072else
8d138742
CE
6073 { $as_echo "$as_me:$LINENO: result: no" >&5
6074$as_echo "no" >&6; }
d9898ee8 6075fi
6076
8d138742
CE
6077 if test "x$ac_ct_NMEDIT" = x; then
6078 NMEDIT=":"
dd184caf 6079 else
6080 case $cross_compiling:$ac_tool_warned in
6081yes:)
8d138742
CE
6082{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6084ac_tool_warned=yes ;;
6085esac
8d138742 6086 NMEDIT=$ac_ct_NMEDIT
dd184caf 6087 fi
d9898ee8 6088else
8d138742 6089 NMEDIT="$ac_cv_prog_NMEDIT"
d9898ee8 6090fi
6091
8d138742
CE
6092 if test -n "$ac_tool_prefix"; then
6093 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6094set dummy ${ac_tool_prefix}lipo; ac_word=$2
6095{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6096$as_echo_n "checking for $ac_word... " >&6; }
6097if test "${ac_cv_prog_LIPO+set}" = set; then
6098 $as_echo_n "(cached) " >&6
6099else
6100 if test -n "$LIPO"; then
6101 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6102else
6103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104for as_dir in $PATH
6105do
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6113 fi
6114done
6115done
6116IFS=$as_save_IFS
d9898ee8 6117
8d138742
CE
6118fi
6119fi
6120LIPO=$ac_cv_prog_LIPO
6121if test -n "$LIPO"; then
6122 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6123$as_echo "$LIPO" >&6; }
6124else
6125 { $as_echo "$as_me:$LINENO: result: no" >&5
6126$as_echo "no" >&6; }
6127fi
d9898ee8 6128
d9898ee8 6129
d9898ee8 6130fi
8d138742
CE
6131if test -z "$ac_cv_prog_LIPO"; then
6132 ac_ct_LIPO=$LIPO
6133 # Extract the first word of "lipo", so it can be a program name with args.
6134set dummy lipo; ac_word=$2
6135{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6136$as_echo_n "checking for $ac_word... " >&6; }
6137if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6138 $as_echo_n "(cached) " >&6
6139else
6140 if test -n "$ac_ct_LIPO"; then
6141 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6142else
6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH
6145do
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6150 ac_cv_prog_ac_ct_LIPO="lipo"
6151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 break 2
6153 fi
d9898ee8 6154done
8d138742
CE
6155done
6156IFS=$as_save_IFS
d9898ee8 6157
8d138742
CE
6158fi
6159fi
6160ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6161if test -n "$ac_ct_LIPO"; then
6162 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6163$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 6164else
8d138742
CE
6165 { $as_echo "$as_me:$LINENO: result: no" >&5
6166$as_echo "no" >&6; }
6167fi
d9898ee8 6168
8d138742
CE
6169 if test "x$ac_ct_LIPO" = x; then
6170 LIPO=":"
6171 else
6172 case $cross_compiling:$ac_tool_warned in
6173yes:)
6174{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6176ac_tool_warned=yes ;;
d9898ee8 6177esac
8d138742
CE
6178 LIPO=$ac_ct_LIPO
6179 fi
6180else
6181 LIPO="$ac_cv_prog_LIPO"
d9898ee8 6182fi
6183
8d138742
CE
6184 if test -n "$ac_tool_prefix"; then
6185 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6186set dummy ${ac_tool_prefix}otool; ac_word=$2
6187{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6188$as_echo_n "checking for $ac_word... " >&6; }
6189if test "${ac_cv_prog_OTOOL+set}" = set; then
6190 $as_echo_n "(cached) " >&6
d9898ee8 6191else
8d138742
CE
6192 if test -n "$OTOOL"; then
6193 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6194else
6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196for as_dir in $PATH
6197do
6198 IFS=$as_save_IFS
6199 test -z "$as_dir" && as_dir=.
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6202 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6203 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 break 2
6205 fi
6206done
6207done
6208IFS=$as_save_IFS
d9898ee8 6209
8d138742
CE
6210fi
6211fi
6212OTOOL=$ac_cv_prog_OTOOL
6213if test -n "$OTOOL"; then
6214 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6215$as_echo "$OTOOL" >&6; }
d9898ee8 6216else
8d138742
CE
6217 { $as_echo "$as_me:$LINENO: result: no" >&5
6218$as_echo "no" >&6; }
6219fi
d9898ee8 6220
d9898ee8 6221
d9898ee8 6222fi
8d138742
CE
6223if test -z "$ac_cv_prog_OTOOL"; then
6224 ac_ct_OTOOL=$OTOOL
6225 # Extract the first word of "otool", so it can be a program name with args.
6226set dummy otool; ac_word=$2
6227{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6228$as_echo_n "checking for $ac_word... " >&6; }
6229if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6230 $as_echo_n "(cached) " >&6
6231else
6232 if test -n "$ac_ct_OTOOL"; then
6233 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6234else
6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236for as_dir in $PATH
6237do
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6242 ac_cv_prog_ac_ct_OTOOL="otool"
6243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 break 2
6245 fi
6246done
6247done
6248IFS=$as_save_IFS
d9898ee8 6249
8d138742
CE
6250fi
6251fi
6252ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6253if test -n "$ac_ct_OTOOL"; then
6254 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6255$as_echo "$ac_ct_OTOOL" >&6; }
d9898ee8 6256else
8d138742
CE
6257 { $as_echo "$as_me:$LINENO: result: no" >&5
6258$as_echo "no" >&6; }
d9898ee8 6259fi
6260
8d138742
CE
6261 if test "x$ac_ct_OTOOL" = x; then
6262 OTOOL=":"
d9898ee8 6263 else
8d138742
CE
6264 case $cross_compiling:$ac_tool_warned in
6265yes:)
6266{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6268ac_tool_warned=yes ;;
6269esac
6270 OTOOL=$ac_ct_OTOOL
d9898ee8 6271 fi
8d138742
CE
6272else
6273 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 6274fi
6275
8d138742
CE
6276 if test -n "$ac_tool_prefix"; then
6277 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6278set dummy ${ac_tool_prefix}otool64; ac_word=$2
6279{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6280$as_echo_n "checking for $ac_word... " >&6; }
6281if test "${ac_cv_prog_OTOOL64+set}" = set; then
6282 $as_echo_n "(cached) " >&6
6283else
6284 if test -n "$OTOOL64"; then
6285 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6286else
6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288for as_dir in $PATH
6289do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
d9898ee8 6297 fi
8d138742
CE
6298done
6299done
6300IFS=$as_save_IFS
d9898ee8 6301
8d138742
CE
6302fi
6303fi
6304OTOOL64=$ac_cv_prog_OTOOL64
6305if test -n "$OTOOL64"; then
6306 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6307$as_echo "$OTOOL64" >&6; }
6308else
6309 { $as_echo "$as_me:$LINENO: result: no" >&5
6310$as_echo "no" >&6; }
dd184caf 6311fi
d9898ee8 6312
d9898ee8 6313
8d138742
CE
6314fi
6315if test -z "$ac_cv_prog_OTOOL64"; then
6316 ac_ct_OTOOL64=$OTOOL64
6317 # Extract the first word of "otool64", so it can be a program name with args.
6318set dummy otool64; ac_word=$2
6319{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6320$as_echo_n "checking for $ac_word... " >&6; }
6321if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6322 $as_echo_n "(cached) " >&6
6323else
6324 if test -n "$ac_ct_OTOOL64"; then
6325 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6326else
6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328for as_dir in $PATH
6329do
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6334 ac_cv_prog_ac_ct_OTOOL64="otool64"
6335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 break 2
6337 fi
6338done
6339done
6340IFS=$as_save_IFS
d9898ee8 6341
8d138742
CE
6342fi
6343fi
6344ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6345if test -n "$ac_ct_OTOOL64"; then
6346 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6347$as_echo "$ac_ct_OTOOL64" >&6; }
d9898ee8 6348else
8d138742
CE
6349 { $as_echo "$as_me:$LINENO: result: no" >&5
6350$as_echo "no" >&6; }
dd184caf 6351fi
6352
8d138742
CE
6353 if test "x$ac_ct_OTOOL64" = x; then
6354 OTOOL64=":"
6355 else
6356 case $cross_compiling:$ac_tool_warned in
6357yes:)
6358{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6360ac_tool_warned=yes ;;
6361esac
6362 OTOOL64=$ac_ct_OTOOL64
6363 fi
6364else
6365 OTOOL64="$ac_cv_prog_OTOOL64"
6366fi
d9898ee8 6367
d9898ee8 6368
6369
d9898ee8 6370
d9898ee8 6371
d9898ee8 6372
d9898ee8 6373
6374
d9898ee8 6375
d9898ee8 6376
d9898ee8 6377
6378
d9898ee8 6379
d9898ee8 6380
6381
6382
d9898ee8 6383
d9898ee8 6384
6385
d9898ee8 6386
d9898ee8 6387
d9898ee8 6388
d9898ee8 6389
d9898ee8 6390
d9898ee8 6391
d9898ee8 6392
8d138742
CE
6393
6394 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6395$as_echo_n "checking for -single_module linker flag... " >&6; }
6396if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6397 $as_echo_n "(cached) " >&6
6398else
6399 lt_cv_apple_cc_single_mod=no
6400 if test -z "${LT_MULTI_MODULE}"; then
6401 # By default we will add the -single_module flag. You can override
6402 # by either setting the environment variable LT_MULTI_MODULE
6403 # non-empty at configure time, or by adding -multi_module to the
6404 # link flags.
6405 rm -rf libconftest.dylib*
6406 echo "int foo(void){return 1;}" > conftest.c
6407 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6408-dynamiclib -Wl,-single_module conftest.c" >&5
6409 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6410 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6411 _lt_result=$?
6412 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6413 lt_cv_apple_cc_single_mod=yes
6414 else
6415 cat conftest.err >&5
6416 fi
6417 rm -rf libconftest.dylib*
6418 rm -f conftest.*
d9898ee8 6419 fi
8d138742
CE
6420fi
6421{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6422$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6423 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6424$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6425if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6426 $as_echo_n "(cached) " >&6
6427else
6428 lt_cv_ld_exported_symbols_list=no
6429 save_LDFLAGS=$LDFLAGS
6430 echo "_main" > conftest.sym
6431 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6432 cat >conftest.$ac_ext <<_ACEOF
6433/* confdefs.h. */
6434_ACEOF
6435cat confdefs.h >>conftest.$ac_ext
6436cat >>conftest.$ac_ext <<_ACEOF
6437/* end confdefs.h. */
d9898ee8 6438
8d138742
CE
6439int
6440main ()
6441{
d9898ee8 6442
8d138742
CE
6443 ;
6444 return 0;
6445}
6446_ACEOF
6447rm -f conftest.$ac_objext conftest$ac_exeext
6448if { (ac_try="$ac_link"
6449case "(($ac_try" in
6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6452esac
6453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6454$as_echo "$ac_try_echo") >&5
6455 (eval "$ac_link") 2>conftest.er1
6456 ac_status=$?
6457 grep -v '^ *+' conftest.er1 >conftest.err
6458 rm -f conftest.er1
6459 cat conftest.err >&5
6460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } && {
6462 test -z "$ac_c_werror_flag" ||
6463 test ! -s conftest.err
6464 } && test -s conftest$ac_exeext && {
6465 test "$cross_compiling" = yes ||
6466 $as_test_x conftest$ac_exeext
6467 }; then
6468 lt_cv_ld_exported_symbols_list=yes
6469else
6470 $as_echo "$as_me: failed program was:" >&5
6471sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6472
8d138742
CE
6473 lt_cv_ld_exported_symbols_list=no
6474fi
d9898ee8 6475
8d138742
CE
6476rm -rf conftest.dSYM
6477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6478 conftest$ac_exeext conftest.$ac_ext
6479 LDFLAGS="$save_LDFLAGS"
d9898ee8 6480
8d138742
CE
6481fi
6482{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6483$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6484 case $host_os in
6485 rhapsody* | darwin1.[012])
6486 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6487 darwin1.*)
6488 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6489 darwin*) # darwin 5.x on
6490 # if running on 10.5 or later, the deployment target defaults
6491 # to the OS version, if on x86, and 10.4, the deployment
6492 # target defaults to 10.4. Don't you love it?
6493 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6494 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6495 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6496 10.[012]*)
6497 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6498 10.*)
6499 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6500 esac
6501 ;;
6502 esac
6503 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6504 _lt_dar_single_mod='$single_module'
6505 fi
6506 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6507 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6508 else
6509 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6510 fi
6511 if test "$DSYMUTIL" != ":"; then
6512 _lt_dsymutil='~$DSYMUTIL $lib || :'
6513 else
6514 _lt_dsymutil=
6515 fi
6516 ;;
6517 esac
d9898ee8 6518
8d138742
CE
6519ac_ext=c
6520ac_cpp='$CPP $CPPFLAGS'
6521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6523ac_compiler_gnu=$ac_cv_c_compiler_gnu
6524{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6525$as_echo_n "checking how to run the C preprocessor... " >&6; }
6526# On Suns, sometimes $CPP names a directory.
6527if test -n "$CPP" && test -d "$CPP"; then
6528 CPP=
6529fi
6530if test -z "$CPP"; then
6531 if test "${ac_cv_prog_CPP+set}" = set; then
6532 $as_echo_n "(cached) " >&6
6533else
6534 # Double quotes because CPP needs to be expanded
6535 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6536 do
6537 ac_preproc_ok=false
6538for ac_c_preproc_warn_flag in '' yes
6539do
6540 # Use a header file that comes with gcc, so configuring glibc
6541 # with a fresh cross-compiler works.
6542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6543 # <limits.h> exists even on freestanding compilers.
6544 # On the NeXT, cc -E runs the code through the compiler's parser,
6545 # not just through cpp. "Syntax error" is here to catch this case.
6546 cat >conftest.$ac_ext <<_ACEOF
6547/* confdefs.h. */
6548_ACEOF
6549cat confdefs.h >>conftest.$ac_ext
6550cat >>conftest.$ac_ext <<_ACEOF
6551/* end confdefs.h. */
6552#ifdef __STDC__
6553# include <limits.h>
6554#else
6555# include <assert.h>
6556#endif
6557 Syntax error
6558_ACEOF
6559if { (ac_try="$ac_cpp conftest.$ac_ext"
6560case "(($ac_try" in
6561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6562 *) ac_try_echo=$ac_try;;
6563esac
6564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6565$as_echo "$ac_try_echo") >&5
6566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6567 ac_status=$?
6568 grep -v '^ *+' conftest.er1 >conftest.err
6569 rm -f conftest.er1
6570 cat conftest.err >&5
6571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } >/dev/null && {
6573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6574 test ! -s conftest.err
6575 }; then
6576 :
6577else
6578 $as_echo "$as_me: failed program was:" >&5
6579sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6580
8d138742
CE
6581 # Broken: fails on valid input.
6582continue
6583fi
d9898ee8 6584
8d138742 6585rm -f conftest.err conftest.$ac_ext
d9898ee8 6586
8d138742
CE
6587 # OK, works on sane cases. Now check whether nonexistent headers
6588 # can be detected and how.
6589 cat >conftest.$ac_ext <<_ACEOF
6590/* confdefs.h. */
6591_ACEOF
6592cat confdefs.h >>conftest.$ac_ext
6593cat >>conftest.$ac_ext <<_ACEOF
6594/* end confdefs.h. */
6595#include <ac_nonexistent.h>
6596_ACEOF
6597if { (ac_try="$ac_cpp conftest.$ac_ext"
6598case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601esac
6602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6603$as_echo "$ac_try_echo") >&5
6604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6605 ac_status=$?
6606 grep -v '^ *+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
6609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } >/dev/null && {
6611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6612 test ! -s conftest.err
6613 }; then
6614 # Broken: success on invalid input.
6615continue
6616else
6617 $as_echo "$as_me: failed program was:" >&5
6618sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6619
8d138742
CE
6620 # Passes both tests.
6621ac_preproc_ok=:
6622break
6623fi
d9898ee8 6624
8d138742 6625rm -f conftest.err conftest.$ac_ext
d9898ee8 6626
8d138742
CE
6627done
6628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6629rm -f conftest.err conftest.$ac_ext
6630if $ac_preproc_ok; then
6631 break
6632fi
d9898ee8 6633
8d138742
CE
6634 done
6635 ac_cv_prog_CPP=$CPP
d9898ee8 6636
8d138742
CE
6637fi
6638 CPP=$ac_cv_prog_CPP
6639else
6640 ac_cv_prog_CPP=$CPP
6641fi
6642{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6643$as_echo "$CPP" >&6; }
6644ac_preproc_ok=false
6645for ac_c_preproc_warn_flag in '' yes
6646do
6647 # Use a header file that comes with gcc, so configuring glibc
6648 # with a fresh cross-compiler works.
6649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6650 # <limits.h> exists even on freestanding compilers.
6651 # On the NeXT, cc -E runs the code through the compiler's parser,
6652 # not just through cpp. "Syntax error" is here to catch this case.
6653 cat >conftest.$ac_ext <<_ACEOF
6654/* confdefs.h. */
6655_ACEOF
6656cat confdefs.h >>conftest.$ac_ext
6657cat >>conftest.$ac_ext <<_ACEOF
6658/* end confdefs.h. */
6659#ifdef __STDC__
6660# include <limits.h>
6661#else
6662# include <assert.h>
6663#endif
6664 Syntax error
6665_ACEOF
6666if { (ac_try="$ac_cpp conftest.$ac_ext"
6667case "(($ac_try" in
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6670esac
6671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6672$as_echo "$ac_try_echo") >&5
6673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6674 ac_status=$?
6675 grep -v '^ *+' conftest.er1 >conftest.err
6676 rm -f conftest.er1
6677 cat conftest.err >&5
6678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } >/dev/null && {
6680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 }; then
6683 :
6684else
6685 $as_echo "$as_me: failed program was:" >&5
6686sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6687
8d138742
CE
6688 # Broken: fails on valid input.
6689continue
6690fi
d9898ee8 6691
8d138742 6692rm -f conftest.err conftest.$ac_ext
ac40fd9e 6693
8d138742
CE
6694 # OK, works on sane cases. Now check whether nonexistent headers
6695 # can be detected and how.
6696 cat >conftest.$ac_ext <<_ACEOF
6697/* confdefs.h. */
6698_ACEOF
6699cat confdefs.h >>conftest.$ac_ext
6700cat >>conftest.$ac_ext <<_ACEOF
6701/* end confdefs.h. */
6702#include <ac_nonexistent.h>
6703_ACEOF
6704if { (ac_try="$ac_cpp conftest.$ac_ext"
6705case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6708esac
6709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6710$as_echo "$ac_try_echo") >&5
6711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6712 ac_status=$?
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
6715 cat conftest.err >&5
6716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } >/dev/null && {
6718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6719 test ! -s conftest.err
6720 }; then
6721 # Broken: success on invalid input.
6722continue
6723else
6724 $as_echo "$as_me: failed program was:" >&5
6725sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6726
8d138742
CE
6727 # Passes both tests.
6728ac_preproc_ok=:
6729break
6730fi
d9898ee8 6731
8d138742 6732rm -f conftest.err conftest.$ac_ext
d9898ee8 6733
8d138742
CE
6734done
6735# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6736rm -f conftest.err conftest.$ac_ext
6737if $ac_preproc_ok; then
6738 :
6739else
6740 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6742{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6743See \`config.log' for more details." >&5
6744$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6745See \`config.log' for more details." >&2;}
6746 { (exit 1); exit 1; }; }; }
6747fi
d9898ee8 6748
8d138742
CE
6749ac_ext=c
6750ac_cpp='$CPP $CPPFLAGS'
6751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6753ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 6754
d9898ee8 6755
8d138742
CE
6756{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6757$as_echo_n "checking for ANSI C header files... " >&6; }
6758if test "${ac_cv_header_stdc+set}" = set; then
6759 $as_echo_n "(cached) " >&6
6760else
6761 cat >conftest.$ac_ext <<_ACEOF
6762/* confdefs.h. */
6763_ACEOF
6764cat confdefs.h >>conftest.$ac_ext
6765cat >>conftest.$ac_ext <<_ACEOF
6766/* end confdefs.h. */
6767#include <stdlib.h>
6768#include <stdarg.h>
6769#include <string.h>
6770#include <float.h>
d9898ee8 6771
8d138742
CE
6772int
6773main ()
6774{
d9898ee8 6775
8d138742
CE
6776 ;
6777 return 0;
6778}
6779_ACEOF
6780rm -f conftest.$ac_objext
6781if { (ac_try="$ac_compile"
6782case "(($ac_try" in
6783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6784 *) ac_try_echo=$ac_try;;
6785esac
6786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6787$as_echo "$ac_try_echo") >&5
6788 (eval "$ac_compile") 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6797 } && test -s conftest.$ac_objext; then
6798 ac_cv_header_stdc=yes
6799else
6800 $as_echo "$as_me: failed program was:" >&5
6801sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6802
8d138742
CE
6803 ac_cv_header_stdc=no
6804fi
d9898ee8 6805
8d138742 6806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6807
8d138742
CE
6808if test $ac_cv_header_stdc = yes; then
6809 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6810 cat >conftest.$ac_ext <<_ACEOF
6811/* confdefs.h. */
6812_ACEOF
6813cat confdefs.h >>conftest.$ac_ext
6814cat >>conftest.$ac_ext <<_ACEOF
6815/* end confdefs.h. */
6816#include <string.h>
d9898ee8 6817
8d138742
CE
6818_ACEOF
6819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6820 $EGREP "memchr" >/dev/null 2>&1; then
6821 :
d9898ee8 6822else
8d138742 6823 ac_cv_header_stdc=no
d9898ee8 6824fi
8d138742 6825rm -f conftest*
d9898ee8 6826
6827fi
d9898ee8 6828
8d138742
CE
6829if test $ac_cv_header_stdc = yes; then
6830 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6831 cat >conftest.$ac_ext <<_ACEOF
6832/* confdefs.h. */
6833_ACEOF
6834cat confdefs.h >>conftest.$ac_ext
6835cat >>conftest.$ac_ext <<_ACEOF
6836/* end confdefs.h. */
6837#include <stdlib.h>
6838
6839_ACEOF
6840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6841 $EGREP "free" >/dev/null 2>&1; then
6842 :
d9898ee8 6843else
8d138742
CE
6844 ac_cv_header_stdc=no
6845fi
6846rm -f conftest*
d9898ee8 6847
6848fi
d9898ee8 6849
8d138742
CE
6850if test $ac_cv_header_stdc = yes; then
6851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6852 if test "$cross_compiling" = yes; then
6853 :
d9898ee8 6854else
8d138742
CE
6855 cat >conftest.$ac_ext <<_ACEOF
6856/* confdefs.h. */
6857_ACEOF
6858cat confdefs.h >>conftest.$ac_ext
6859cat >>conftest.$ac_ext <<_ACEOF
6860/* end confdefs.h. */
6861#include <ctype.h>
6862#include <stdlib.h>
6863#if ((' ' & 0x0FF) == 0x020)
6864# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6865# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6866#else
6867# define ISLOWER(c) \
6868 (('a' <= (c) && (c) <= 'i') \
6869 || ('j' <= (c) && (c) <= 'r') \
6870 || ('s' <= (c) && (c) <= 'z'))
6871# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6872#endif
6873
6874#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6875int
6876main ()
6877{
6878 int i;
6879 for (i = 0; i < 256; i++)
6880 if (XOR (islower (i), ISLOWER (i))
6881 || toupper (i) != TOUPPER (i))
6882 return 2;
6883 return 0;
6884}
6885_ACEOF
6886rm -f conftest$ac_exeext
6887if { (ac_try="$ac_link"
6888case "(($ac_try" in
6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6891esac
6892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6893$as_echo "$ac_try_echo") >&5
6894 (eval "$ac_link") 2>&5
6895 ac_status=$?
6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6898 { (case "(($ac_try" in
6899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900 *) ac_try_echo=$ac_try;;
6901esac
6902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6903$as_echo "$ac_try_echo") >&5
6904 (eval "$ac_try") 2>&5
6905 ac_status=$?
6906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; }; then
6908 :
6909else
6910 $as_echo "$as_me: program exited with status $ac_status" >&5
6911$as_echo "$as_me: failed program was:" >&5
6912sed 's/^/| /' conftest.$ac_ext >&5
6913
6914( exit $ac_status )
6915ac_cv_header_stdc=no
6916fi
6917rm -rf conftest.dSYM
6918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 6919fi
6920
6921
8d138742
CE
6922fi
6923fi
6924{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6925$as_echo "$ac_cv_header_stdc" >&6; }
6926if test $ac_cv_header_stdc = yes; then
d9898ee8 6927
8d138742
CE
6928cat >>confdefs.h <<\_ACEOF
6929#define STDC_HEADERS 1
6930_ACEOF
d9898ee8 6931
6932fi
d9898ee8 6933
8d138742 6934# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d9898ee8 6935
8d138742
CE
6936
6937
6938
6939
6940
6941
6942
6943
6944for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6945 inttypes.h stdint.h unistd.h
6946do
6947as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6948{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6949$as_echo_n "checking for $ac_header... " >&6; }
6950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6951 $as_echo_n "(cached) " >&6
d9898ee8 6952else
8d138742
CE
6953 cat >conftest.$ac_ext <<_ACEOF
6954/* confdefs.h. */
6955_ACEOF
6956cat confdefs.h >>conftest.$ac_ext
6957cat >>conftest.$ac_ext <<_ACEOF
6958/* end confdefs.h. */
6959$ac_includes_default
6960
6961#include <$ac_header>
6962_ACEOF
6963rm -f conftest.$ac_objext
6964if { (ac_try="$ac_compile"
6965case "(($ac_try" in
6966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967 *) ac_try_echo=$ac_try;;
6968esac
6969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6970$as_echo "$ac_try_echo") >&5
6971 (eval "$ac_compile") 2>conftest.er1
6972 ac_status=$?
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
6976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } && {
6978 test -z "$ac_c_werror_flag" ||
6979 test ! -s conftest.err
6980 } && test -s conftest.$ac_objext; then
6981 eval "$as_ac_Header=yes"
6982else
6983 $as_echo "$as_me: failed program was:" >&5
6984sed 's/^/| /' conftest.$ac_ext >&5
6985
6986 eval "$as_ac_Header=no"
d9898ee8 6987fi
6988
8d138742
CE
6989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990fi
6991ac_res=`eval 'as_val=${'$as_ac_Header'}
6992 $as_echo "$as_val"'`
6993 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6994$as_echo "$ac_res" >&6; }
6995as_val=`eval 'as_val=${'$as_ac_Header'}
6996 $as_echo "$as_val"'`
6997 if test "x$as_val" = x""yes; then
6998 cat >>confdefs.h <<_ACEOF
6999#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7000_ACEOF
7001
7002fi
d9898ee8 7003
d9898ee8 7004done
d9898ee8 7005
d9898ee8 7006
d9898ee8 7007
8d138742
CE
7008for ac_header in dlfcn.h
7009do
7010as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7011{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7012$as_echo_n "checking for $ac_header... " >&6; }
7013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7014 $as_echo_n "(cached) " >&6
7015else
7016 cat >conftest.$ac_ext <<_ACEOF
7017/* confdefs.h. */
7018_ACEOF
7019cat confdefs.h >>conftest.$ac_ext
7020cat >>conftest.$ac_ext <<_ACEOF
7021/* end confdefs.h. */
7022$ac_includes_default
d9898ee8 7023
8d138742
CE
7024#include <$ac_header>
7025_ACEOF
7026rm -f conftest.$ac_objext
7027if { (ac_try="$ac_compile"
7028case "(($ac_try" in
7029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7030 *) ac_try_echo=$ac_try;;
7031esac
7032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7033$as_echo "$ac_try_echo") >&5
7034 (eval "$ac_compile") 2>conftest.er1
7035 ac_status=$?
7036 grep -v '^ *+' conftest.er1 >conftest.err
7037 rm -f conftest.er1
7038 cat conftest.err >&5
7039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } && {
7041 test -z "$ac_c_werror_flag" ||
7042 test ! -s conftest.err
7043 } && test -s conftest.$ac_objext; then
7044 eval "$as_ac_Header=yes"
7045else
7046 $as_echo "$as_me: failed program was:" >&5
7047sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 7048
8d138742
CE
7049 eval "$as_ac_Header=no"
7050fi
d9898ee8 7051
8d138742
CE
7052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7053fi
7054ac_res=`eval 'as_val=${'$as_ac_Header'}
7055 $as_echo "$as_val"'`
7056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7057$as_echo "$ac_res" >&6; }
7058as_val=`eval 'as_val=${'$as_ac_Header'}
7059 $as_echo "$as_val"'`
7060 if test "x$as_val" = x""yes; then
7061 cat >>confdefs.h <<_ACEOF
7062#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7063_ACEOF
d9898ee8 7064
8d138742 7065fi
d9898ee8 7066
8d138742 7067done
d9898ee8 7068
d9898ee8 7069
d9898ee8 7070
8d138742 7071# Set options
d9898ee8 7072
d9898ee8 7073
d9898ee8 7074
8d138742
CE
7075 enable_dlopen=no
7076
7077
7078 enable_win32_dll=no
7079
7080
7081 # Check whether --enable-shared was given.
7082if test "${enable_shared+set}" = set; then
7083 enableval=$enable_shared; p=${PACKAGE-default}
7084 case $enableval in
7085 yes) enable_shared=yes ;;
7086 no) enable_shared=no ;;
7087 *)
7088 enable_shared=no
7089 # Look at the argument we got. We use all the common list separators.
7090 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7091 for pkg in $enableval; do
7092 IFS="$lt_save_ifs"
7093 if test "X$pkg" = "X$p"; then
7094 enable_shared=yes
d9898ee8 7095 fi
8d138742
CE
7096 done
7097 IFS="$lt_save_ifs"
d9898ee8 7098 ;;
8d138742
CE
7099 esac
7100else
7101 enable_shared=yes
7102fi
d9898ee8 7103
d9898ee8 7104
d9898ee8 7105
d9898ee8 7106
d9898ee8 7107
d9898ee8 7108
d9898ee8 7109
d9898ee8 7110
d9898ee8 7111
8d138742
CE
7112 # Check whether --enable-static was given.
7113if test "${enable_static+set}" = set; then
7114 enableval=$enable_static; p=${PACKAGE-default}
7115 case $enableval in
7116 yes) enable_static=yes ;;
7117 no) enable_static=no ;;
d9898ee8 7118 *)
8d138742
CE
7119 enable_static=no
7120 # Look at the argument we got. We use all the common list separators.
7121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7122 for pkg in $enableval; do
7123 IFS="$lt_save_ifs"
7124 if test "X$pkg" = "X$p"; then
7125 enable_static=yes
7126 fi
7127 done
7128 IFS="$lt_save_ifs"
d9898ee8 7129 ;;
7130 esac
8d138742
CE
7131else
7132 enable_static=yes
7133fi
d9898ee8 7134
d9898ee8 7135
d9898ee8 7136
d9898ee8 7137
d9898ee8 7138
d9898ee8 7139
d9898ee8 7140
d9898ee8 7141
d9898ee8 7142
d9898ee8 7143
8d138742
CE
7144# Check whether --with-pic was given.
7145if test "${with_pic+set}" = set; then
7146 withval=$with_pic; pic_mode="$withval"
d9898ee8 7147else
8d138742 7148 pic_mode=default
d9898ee8 7149fi
dd184caf 7150
d9898ee8 7151
8d138742 7152test -z "$pic_mode" && pic_mode=default
d9898ee8 7153
d9898ee8 7154
d9898ee8 7155
d9898ee8 7156
dd184caf 7157
dd184caf 7158
d9898ee8 7159
8d138742
CE
7160 # Check whether --enable-fast-install was given.
7161if test "${enable_fast_install+set}" = set; then
7162 enableval=$enable_fast_install; p=${PACKAGE-default}
7163 case $enableval in
7164 yes) enable_fast_install=yes ;;
7165 no) enable_fast_install=no ;;
7166 *)
7167 enable_fast_install=no
7168 # Look at the argument we got. We use all the common list separators.
7169 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7170 for pkg in $enableval; do
7171 IFS="$lt_save_ifs"
7172 if test "X$pkg" = "X$p"; then
7173 enable_fast_install=yes
d9898ee8 7174 fi
8d138742
CE
7175 done
7176 IFS="$lt_save_ifs"
d9898ee8 7177 ;;
8d138742
CE
7178 esac
7179else
7180 enable_fast_install=yes
7181fi
d9898ee8 7182
d9898ee8 7183
d9898ee8 7184
d9898ee8 7185
d9898ee8 7186
d9898ee8 7187
d9898ee8 7188
d9898ee8 7189
d9898ee8 7190
d9898ee8 7191
d9898ee8 7192
8d138742
CE
7193# This can be used to rebuild libtool when needed
7194LIBTOOL_DEPS="$ltmain"
d9898ee8 7195
8d138742
CE
7196# Always use our own libtool.
7197LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 7198
d9898ee8 7199
d9898ee8 7200
d9898ee8 7201
d9898ee8 7202
d9898ee8 7203
d9898ee8 7204
d9898ee8 7205
d9898ee8 7206
d9898ee8 7207
d9898ee8 7208
d9898ee8 7209
d9898ee8 7210
d9898ee8 7211
d9898ee8 7212
d9898ee8 7213
d9898ee8 7214
d9898ee8 7215
d9898ee8 7216
d9898ee8 7217
d9898ee8 7218
d9898ee8 7219
d9898ee8 7220
d9898ee8 7221
d9898ee8 7222
8d138742 7223test -z "$LN_S" && LN_S="ln -s"
d9898ee8 7224
d9898ee8 7225
d9898ee8 7226
d9898ee8 7227
ac40fd9e 7228
d9898ee8 7229
d9898ee8 7230
d9898ee8 7231
d9898ee8 7232
d9898ee8 7233
d9898ee8 7234
d9898ee8 7235
d9898ee8 7236
d9898ee8 7237
8d138742
CE
7238if test -n "${ZSH_VERSION+set}" ; then
7239 setopt NO_GLOB_SUBST
7240fi
d9898ee8 7241
8d138742
CE
7242{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7243$as_echo_n "checking for objdir... " >&6; }
7244if test "${lt_cv_objdir+set}" = set; then
7245 $as_echo_n "(cached) " >&6
7246else
7247 rm -f .libs 2>/dev/null
7248mkdir .libs 2>/dev/null
7249if test -d .libs; then
7250 lt_cv_objdir=.libs
7251else
7252 # MS-DOS does not allow filenames that begin with a dot.
7253 lt_cv_objdir=_libs
7254fi
7255rmdir .libs 2>/dev/null
7256fi
7257{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7258$as_echo "$lt_cv_objdir" >&6; }
7259objdir=$lt_cv_objdir
d9898ee8 7260
d9898ee8 7261
ac40fd9e 7262
d9898ee8 7263
d9898ee8 7264
8d138742
CE
7265cat >>confdefs.h <<_ACEOF
7266#define LT_OBJDIR "$lt_cv_objdir/"
7267_ACEOF
d9898ee8 7268
d9898ee8 7269
d9898ee8 7270
d9898ee8 7271
d9898ee8 7272
d9898ee8 7273
d9898ee8 7274
d9898ee8 7275
d9898ee8 7276
d9898ee8 7277
d9898ee8 7278
d9898ee8 7279
d9898ee8 7280
8d138742
CE
7281
7282
7283
7284
7285case $host_os in
7286aix3*)
7287 # AIX sometimes has problems with the GCC collect2 program. For some
7288 # reason, if we set the COLLECT_NAMES environment variable, the problems
7289 # vanish in a puff of smoke.
7290 if test "X${COLLECT_NAMES+set}" != Xset; then
7291 COLLECT_NAMES=
7292 export COLLECT_NAMES
d9898ee8 7293 fi
7294 ;;
8d138742 7295esac
d9898ee8 7296
8d138742
CE
7297# Sed substitution that helps us do robust quoting. It backslashifies
7298# metacharacters that are still active within double-quoted strings.
7299sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d9898ee8 7300
8d138742
CE
7301# Same as above, but do not quote variable references.
7302double_quote_subst='s/\(["`\\]\)/\\\1/g'
d9898ee8 7303
8d138742
CE
7304# Sed substitution to delay expansion of an escaped shell variable in a
7305# double_quote_subst'ed string.
7306delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
ac40fd9e 7307
8d138742
CE
7308# Sed substitution to delay expansion of an escaped single quote.
7309delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d9898ee8 7310
8d138742
CE
7311# Sed substitution to avoid accidental globbing in evaled expressions
7312no_glob_subst='s/\*/\\\*/g'
d9898ee8 7313
8d138742
CE
7314# Global variables:
7315ofile=libtool
7316can_build_shared=yes
7317
7318# All known linkers require a `.a' archive for static linking (except MSVC,
7319# which needs '.lib').
7320libext=a
7321
7322with_gnu_ld="$lt_cv_prog_gnu_ld"
7323
7324old_CC="$CC"
7325old_CFLAGS="$CFLAGS"
7326
7327# Set sane defaults for various variables
7328test -z "$CC" && CC=cc
7329test -z "$LTCC" && LTCC=$CC
7330test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7331test -z "$LD" && LD=ld
7332test -z "$ac_objext" && ac_objext=o
7333
7334for cc_temp in $compiler""; do
7335 case $cc_temp in
7336 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7337 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7338 \-*) ;;
7339 *) break;;
d9898ee8 7340 esac
8d138742
CE
7341done
7342cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d9898ee8 7343
d9898ee8 7344
8d138742
CE
7345# Only perform the check for file, if the check method requires it
7346test -z "$MAGIC_CMD" && MAGIC_CMD=file
7347case $deplibs_check_method in
7348file_magic*)
7349 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7350 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7351$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7352if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7353 $as_echo_n "(cached) " >&6
7354else
7355 case $MAGIC_CMD in
7356[\\/*] | ?:[\\/]*)
7357 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
d9898ee8 7358 ;;
8d138742
CE
7359*)
7360 lt_save_MAGIC_CMD="$MAGIC_CMD"
7361 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7362 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7363 for ac_dir in $ac_dummy; do
7364 IFS="$lt_save_ifs"
7365 test -z "$ac_dir" && ac_dir=.
7366 if test -f $ac_dir/${ac_tool_prefix}file; then
7367 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7368 if test -n "$file_magic_test_file"; then
7369 case $deplibs_check_method in
7370 "file_magic "*)
7371 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7372 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7373 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7374 $EGREP "$file_magic_regex" > /dev/null; then
7375 :
7376 else
7377 cat <<_LT_EOF 1>&2
d9898ee8 7378
8d138742
CE
7379*** Warning: the command libtool uses to detect shared libraries,
7380*** $file_magic_cmd, produces output that libtool cannot recognize.
7381*** The result is that libtool may fail to recognize shared libraries
7382*** as such. This will affect the creation of libtool libraries that
7383*** depend on shared libraries, but programs linked with such libtool
7384*** libraries will work regardless of this problem. Nevertheless, you
7385*** may want to report the problem to your system manager and/or to
7386*** bug-libtool@gnu.org
d9898ee8 7387
8d138742
CE
7388_LT_EOF
7389 fi ;;
7390 esac
7391 fi
7392 break
7393 fi
7394 done
7395 IFS="$lt_save_ifs"
7396 MAGIC_CMD="$lt_save_MAGIC_CMD"
d9898ee8 7397 ;;
7398esac
d9898ee8 7399fi
7400
8d138742
CE
7401MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7402if test -n "$MAGIC_CMD"; then
7403 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7404$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 7405else
8d138742
CE
7406 { $as_echo "$as_me:$LINENO: result: no" >&5
7407$as_echo "no" >&6; }
d9898ee8 7408fi
d9898ee8 7409
d9898ee8 7410
8d138742
CE
7411
7412
7413
7414if test -z "$lt_cv_path_MAGIC_CMD"; then
7415 if test -n "$ac_tool_prefix"; then
7416 { $as_echo "$as_me:$LINENO: checking for file" >&5
7417$as_echo_n "checking for file... " >&6; }
7418if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7419 $as_echo_n "(cached) " >&6
d9898ee8 7420else
8d138742
CE
7421 case $MAGIC_CMD in
7422[\\/*] | ?:[\\/]*)
7423 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7424 ;;
7425*)
7426 lt_save_MAGIC_CMD="$MAGIC_CMD"
7427 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7428 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7429 for ac_dir in $ac_dummy; do
7430 IFS="$lt_save_ifs"
7431 test -z "$ac_dir" && ac_dir=.
7432 if test -f $ac_dir/file; then
7433 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7434 if test -n "$file_magic_test_file"; then
7435 case $deplibs_check_method in
7436 "file_magic "*)
7437 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7438 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7439 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7440 $EGREP "$file_magic_regex" > /dev/null; then
7441 :
7442 else
7443 cat <<_LT_EOF 1>&2
7444
7445*** Warning: the command libtool uses to detect shared libraries,
7446*** $file_magic_cmd, produces output that libtool cannot recognize.
7447*** The result is that libtool may fail to recognize shared libraries
7448*** as such. This will affect the creation of libtool libraries that
7449*** depend on shared libraries, but programs linked with such libtool
7450*** libraries will work regardless of this problem. Nevertheless, you
7451*** may want to report the problem to your system manager and/or to
7452*** bug-libtool@gnu.org
7453
7454_LT_EOF
7455 fi ;;
7456 esac
7457 fi
7458 break
7459 fi
7460 done
7461 IFS="$lt_save_ifs"
7462 MAGIC_CMD="$lt_save_MAGIC_CMD"
7463 ;;
7464esac
d9898ee8 7465fi
7466
8d138742
CE
7467MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7468if test -n "$MAGIC_CMD"; then
7469 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7470$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 7471else
8d138742
CE
7472 { $as_echo "$as_me:$LINENO: result: no" >&5
7473$as_echo "no" >&6; }
7474fi
d9898ee8 7475
d9898ee8 7476
8d138742
CE
7477 else
7478 MAGIC_CMD=:
7479 fi
7480fi
d9898ee8 7481
8d138742
CE
7482 fi
7483 ;;
7484esac
d9898ee8 7485
8d138742 7486# Use C for the default configuration in the libtool script
d9898ee8 7487
8d138742
CE
7488lt_save_CC="$CC"
7489ac_ext=c
7490ac_cpp='$CPP $CPPFLAGS'
7491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7493ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7494
dd184caf 7495
8d138742
CE
7496# Source file extension for C test sources.
7497ac_ext=c
d9898ee8 7498
8d138742
CE
7499# Object file extension for compiled C test sources.
7500objext=o
7501objext=$objext
d9898ee8 7502
8d138742
CE
7503# Code to be used in simple compile tests
7504lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7505
8d138742
CE
7506# Code to be used in simple link tests
7507lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7508
d9898ee8 7509
d9898ee8 7510
d9898ee8 7511
d9898ee8 7512
d9898ee8 7513
d9898ee8 7514
8d138742
CE
7515# If no C compiler was specified, use CC.
7516LTCC=${LTCC-"$CC"}
dd184caf 7517
8d138742
CE
7518# If no C compiler flags were specified, use CFLAGS.
7519LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 7520
8d138742
CE
7521# Allow CC to be a program name with arguments.
7522compiler=$CC
d9898ee8 7523
8d138742
CE
7524# Save the default compiler, since it gets overwritten when the other
7525# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7526compiler_DEFAULT=$CC
dd184caf 7527
8d138742
CE
7528# save warnings/boilerplate of simple test code
7529ac_outfile=conftest.$ac_objext
7530echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7531eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7532_lt_compiler_boilerplate=`cat conftest.err`
7533$RM conftest*
d9898ee8 7534
8d138742
CE
7535ac_outfile=conftest.$ac_objext
7536echo "$lt_simple_link_test_code" >conftest.$ac_ext
7537eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7538_lt_linker_boilerplate=`cat conftest.err`
7539$RM -r conftest*
d9898ee8 7540
d9898ee8 7541
8d138742 7542if test -n "$compiler"; then
d9898ee8 7543
8d138742 7544lt_prog_compiler_no_builtin_flag=
d9898ee8 7545
8d138742
CE
7546if test "$GCC" = yes; then
7547 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d9898ee8 7548
8d138742
CE
7549 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7550$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7551if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7552 $as_echo_n "(cached) " >&6
7553else
7554 lt_cv_prog_compiler_rtti_exceptions=no
7555 ac_outfile=conftest.$ac_objext
7556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7557 lt_compiler_flag="-fno-rtti -fno-exceptions"
7558 # Insert the option either (1) after the last *FLAGS variable, or
7559 # (2) before a word containing "conftest.", or (3) at the end.
7560 # Note that $ac_compile itself does not contain backslashes and begins
7561 # with a dollar sign (not a hyphen), so the echo should work correctly.
7562 # The option is referenced via a variable to avoid confusing sed.
7563 lt_compile=`echo "$ac_compile" | $SED \
7564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7566 -e 's:$: $lt_compiler_flag:'`
7567 (eval echo "\"\$as_me:7567: $lt_compile\"" >&5)
7568 (eval "$lt_compile" 2>conftest.err)
7569 ac_status=$?
7570 cat conftest.err >&5
7571 echo "$as_me:7571: \$? = $ac_status" >&5
7572 if (exit $ac_status) && test -s "$ac_outfile"; then
7573 # The compiler can only warn and ignore the option if not recognized
7574 # So say no if there are warnings other than the usual output.
7575 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7577 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7578 lt_cv_prog_compiler_rtti_exceptions=yes
7579 fi
7580 fi
7581 $RM conftest*
dd184caf 7582
d9898ee8 7583fi
8d138742
CE
7584{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7585$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7586
8d138742
CE
7587if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7588 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
d9898ee8 7589else
8d138742 7590 :
d9898ee8 7591fi
dd184caf 7592
d9898ee8 7593fi
d9898ee8 7594
d9898ee8 7595
dd184caf 7596
d9898ee8 7597
d9898ee8 7598
dd184caf 7599
8d138742
CE
7600 lt_prog_compiler_wl=
7601lt_prog_compiler_pic=
7602lt_prog_compiler_static=
d9898ee8 7603
8d138742
CE
7604{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7605$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d9898ee8 7606
8d138742
CE
7607 if test "$GCC" = yes; then
7608 lt_prog_compiler_wl='-Wl,'
7609 lt_prog_compiler_static='-static'
d9898ee8 7610
8d138742
CE
7611 case $host_os in
7612 aix*)
7613 # All AIX code is PIC.
7614 if test "$host_cpu" = ia64; then
7615 # AIX 5 now supports IA64 processor
7616 lt_prog_compiler_static='-Bstatic'
7617 fi
7618 ;;
d9898ee8 7619
8d138742
CE
7620 amigaos*)
7621 case $host_cpu in
7622 powerpc)
7623 # see comment about AmigaOS4 .so support
7624 lt_prog_compiler_pic='-fPIC'
7625 ;;
7626 m68k)
7627 # FIXME: we need at least 68020 code to build shared libraries, but
7628 # adding the `-m68020' flag to GCC prevents building anything better,
7629 # like `-m68040'.
7630 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7631 ;;
7632 esac
7633 ;;
d9898ee8 7634
8d138742
CE
7635 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7636 # PIC is the default for these OSes.
7637 ;;
d9898ee8 7638
8d138742
CE
7639 mingw* | cygwin* | pw32* | os2* | cegcc*)
7640 # This hack is so that the source file can tell whether it is being
7641 # built for inclusion in a dll (and should export symbols for example).
7642 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7643 # (--disable-auto-import) libraries
7644 lt_prog_compiler_pic='-DDLL_EXPORT'
7645 ;;
7646
7647 darwin* | rhapsody*)
7648 # PIC is the default on this platform
7649 # Common symbols not allowed in MH_DYLIB files
7650 lt_prog_compiler_pic='-fno-common'
7651 ;;
d9898ee8 7652
8d138742
CE
7653 hpux*)
7654 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7655 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7656 # sets the default TLS model and affects inlining.
7657 case $host_cpu in
7658 hppa*64*)
7659 # +Z the default
7660 ;;
7661 *)
7662 lt_prog_compiler_pic='-fPIC'
7663 ;;
7664 esac
7665 ;;
d9898ee8 7666
8d138742
CE
7667 interix[3-9]*)
7668 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7669 # Instead, we relocate shared libraries at runtime.
7670 ;;
d9898ee8 7671
8d138742
CE
7672 msdosdjgpp*)
7673 # Just because we use GCC doesn't mean we suddenly get shared libraries
7674 # on systems that don't support them.
7675 lt_prog_compiler_can_build_shared=no
7676 enable_shared=no
7677 ;;
d9898ee8 7678
8d138742
CE
7679 *nto* | *qnx*)
7680 # QNX uses GNU C++, but need to define -shared option too, otherwise
7681 # it will coredump.
7682 lt_prog_compiler_pic='-fPIC -shared'
7683 ;;
d9898ee8 7684
8d138742
CE
7685 sysv4*MP*)
7686 if test -d /usr/nec; then
7687 lt_prog_compiler_pic=-Kconform_pic
7688 fi
7689 ;;
d9898ee8 7690
8d138742
CE
7691 *)
7692 lt_prog_compiler_pic='-fPIC'
7693 ;;
7694 esac
d9898ee8 7695 else
8d138742
CE
7696 # PORTME Check for flag to pass linker flags through the system compiler.
7697 case $host_os in
7698 aix*)
7699 lt_prog_compiler_wl='-Wl,'
7700 if test "$host_cpu" = ia64; then
7701 # AIX 5 now supports IA64 processor
7702 lt_prog_compiler_static='-Bstatic'
7703 else
7704 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7705 fi
7706 ;;
d9898ee8 7707
8d138742
CE
7708 mingw* | cygwin* | pw32* | os2* | cegcc*)
7709 # This hack is so that the source file can tell whether it is being
7710 # built for inclusion in a dll (and should export symbols for example).
7711 lt_prog_compiler_pic='-DDLL_EXPORT'
7712 ;;
d9898ee8 7713
8d138742
CE
7714 hpux9* | hpux10* | hpux11*)
7715 lt_prog_compiler_wl='-Wl,'
7716 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7717 # not for PA HP-UX.
7718 case $host_cpu in
7719 hppa*64*|ia64*)
7720 # +Z the default
7721 ;;
7722 *)
7723 lt_prog_compiler_pic='+Z'
7724 ;;
7725 esac
7726 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7727 lt_prog_compiler_static='${wl}-a ${wl}archive'
7728 ;;
d9898ee8 7729
8d138742
CE
7730 irix5* | irix6* | nonstopux*)
7731 lt_prog_compiler_wl='-Wl,'
7732 # PIC (with -KPIC) is the default.
7733 lt_prog_compiler_static='-non_shared'
7734 ;;
d9898ee8 7735
8d138742
CE
7736 linux* | k*bsd*-gnu)
7737 case $cc_basename in
7738 # old Intel for x86_64 which still supported -KPIC.
7739 ecc*)
7740 lt_prog_compiler_wl='-Wl,'
7741 lt_prog_compiler_pic='-KPIC'
7742 lt_prog_compiler_static='-static'
7743 ;;
7744 # icc used to be incompatible with GCC.
7745 # ICC 10 doesn't accept -KPIC any more.
7746 icc* | ifort*)
7747 lt_prog_compiler_wl='-Wl,'
7748 lt_prog_compiler_pic='-fPIC'
7749 lt_prog_compiler_static='-static'
7750 ;;
7751 # Lahey Fortran 8.1.
7752 lf95*)
7753 lt_prog_compiler_wl='-Wl,'
7754 lt_prog_compiler_pic='--shared'
7755 lt_prog_compiler_static='--static'
7756 ;;
7757 pgcc* | pgf77* | pgf90* | pgf95*)
7758 # Portland Group compilers (*not* the Pentium gcc compiler,
7759 # which looks to be a dead project)
7760 lt_prog_compiler_wl='-Wl,'
7761 lt_prog_compiler_pic='-fpic'
7762 lt_prog_compiler_static='-Bstatic'
7763 ;;
7764 ccc*)
7765 lt_prog_compiler_wl='-Wl,'
7766 # All Alpha code is PIC.
7767 lt_prog_compiler_static='-non_shared'
7768 ;;
7769 xl*)
7770 # IBM XL C 8.0/Fortran 10.1 on PPC
7771 lt_prog_compiler_wl='-Wl,'
7772 lt_prog_compiler_pic='-qpic'
7773 lt_prog_compiler_static='-qstaticlink'
7774 ;;
7775 *)
7776 case `$CC -V 2>&1 | sed 5q` in
7777 *Sun\ C*)
7778 # Sun C 5.9
7779 lt_prog_compiler_pic='-KPIC'
7780 lt_prog_compiler_static='-Bstatic'
7781 lt_prog_compiler_wl='-Wl,'
7782 ;;
7783 *Sun\ F*)
7784 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7785 lt_prog_compiler_pic='-KPIC'
7786 lt_prog_compiler_static='-Bstatic'
7787 lt_prog_compiler_wl=''
7788 ;;
7789 esac
7790 ;;
7791 esac
7792 ;;
d9898ee8 7793
8d138742
CE
7794 newsos6)
7795 lt_prog_compiler_pic='-KPIC'
7796 lt_prog_compiler_static='-Bstatic'
7797 ;;
d9898ee8 7798
8d138742
CE
7799 *nto* | *qnx*)
7800 # QNX uses GNU C++, but need to define -shared option too, otherwise
7801 # it will coredump.
7802 lt_prog_compiler_pic='-fPIC -shared'
7803 ;;
d9898ee8 7804
8d138742
CE
7805 osf3* | osf4* | osf5*)
7806 lt_prog_compiler_wl='-Wl,'
7807 # All OSF/1 code is PIC.
7808 lt_prog_compiler_static='-non_shared'
7809 ;;
d9898ee8 7810
8d138742
CE
7811 rdos*)
7812 lt_prog_compiler_static='-non_shared'
7813 ;;
d9898ee8 7814
8d138742
CE
7815 solaris*)
7816 lt_prog_compiler_pic='-KPIC'
7817 lt_prog_compiler_static='-Bstatic'
7818 case $cc_basename in
7819 f77* | f90* | f95*)
7820 lt_prog_compiler_wl='-Qoption ld ';;
7821 *)
7822 lt_prog_compiler_wl='-Wl,';;
7823 esac
7824 ;;
d9898ee8 7825
8d138742
CE
7826 sunos4*)
7827 lt_prog_compiler_wl='-Qoption ld '
7828 lt_prog_compiler_pic='-PIC'
7829 lt_prog_compiler_static='-Bstatic'
7830 ;;
d9898ee8 7831
8d138742
CE
7832 sysv4 | sysv4.2uw2* | sysv4.3*)
7833 lt_prog_compiler_wl='-Wl,'
7834 lt_prog_compiler_pic='-KPIC'
7835 lt_prog_compiler_static='-Bstatic'
7836 ;;
d9898ee8 7837
8d138742
CE
7838 sysv4*MP*)
7839 if test -d /usr/nec ;then
7840 lt_prog_compiler_pic='-Kconform_pic'
7841 lt_prog_compiler_static='-Bstatic'
7842 fi
7843 ;;
d9898ee8 7844
8d138742
CE
7845 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7846 lt_prog_compiler_wl='-Wl,'
7847 lt_prog_compiler_pic='-KPIC'
7848 lt_prog_compiler_static='-Bstatic'
7849 ;;
d9898ee8 7850
8d138742
CE
7851 unicos*)
7852 lt_prog_compiler_wl='-Wl,'
7853 lt_prog_compiler_can_build_shared=no
7854 ;;
d9898ee8 7855
8d138742
CE
7856 uts4*)
7857 lt_prog_compiler_pic='-pic'
7858 lt_prog_compiler_static='-Bstatic'
7859 ;;
d9898ee8 7860
8d138742
CE
7861 *)
7862 lt_prog_compiler_can_build_shared=no
7863 ;;
7864 esac
7865 fi
d9898ee8 7866
8d138742
CE
7867case $host_os in
7868 # For platforms which do not support PIC, -DPIC is meaningless:
7869 *djgpp*)
7870 lt_prog_compiler_pic=
7871 ;;
7872 *)
7873 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7874 ;;
7875esac
7876{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7877$as_echo "$lt_prog_compiler_pic" >&6; }
d9898ee8 7878
d9898ee8 7879
d9898ee8 7880
d9898ee8 7881
d9898ee8 7882
d9898ee8 7883
8d138742
CE
7884#
7885# Check to make sure the PIC flag actually works.
7886#
7887if test -n "$lt_prog_compiler_pic"; then
7888 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7889$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7890if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7891 $as_echo_n "(cached) " >&6
7892else
7893 lt_cv_prog_compiler_pic_works=no
7894 ac_outfile=conftest.$ac_objext
7895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7896 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7897 # Insert the option either (1) after the last *FLAGS variable, or
7898 # (2) before a word containing "conftest.", or (3) at the end.
7899 # Note that $ac_compile itself does not contain backslashes and begins
7900 # with a dollar sign (not a hyphen), so the echo should work correctly.
7901 # The option is referenced via a variable to avoid confusing sed.
7902 lt_compile=`echo "$ac_compile" | $SED \
7903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7905 -e 's:$: $lt_compiler_flag:'`
7906 (eval echo "\"\$as_me:7906: $lt_compile\"" >&5)
7907 (eval "$lt_compile" 2>conftest.err)
7908 ac_status=$?
7909 cat conftest.err >&5
7910 echo "$as_me:7910: \$? = $ac_status" >&5
7911 if (exit $ac_status) && test -s "$ac_outfile"; then
7912 # The compiler can only warn and ignore the option if not recognized
7913 # So say no if there are warnings other than the usual output.
7914 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7916 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7917 lt_cv_prog_compiler_pic_works=yes
7918 fi
7919 fi
7920 $RM conftest*
d9898ee8 7921
7922fi
8d138742
CE
7923{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7924$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 7925
8d138742
CE
7926if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7927 case $lt_prog_compiler_pic in
7928 "" | " "*) ;;
7929 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7930 esac
7931else
7932 lt_prog_compiler_pic=
7933 lt_prog_compiler_can_build_shared=no
d9898ee8 7934fi
7935
8d138742 7936fi
d9898ee8 7937
d9898ee8 7938
d9898ee8 7939
d9898ee8 7940
d9898ee8 7941
d9898ee8 7942
d9898ee8 7943#
8d138742 7944# Check to make sure the static flag actually works.
d9898ee8 7945#
8d138742
CE
7946wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7947{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7948$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7949if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7950 $as_echo_n "(cached) " >&6
7951else
7952 lt_cv_prog_compiler_static_works=no
7953 save_LDFLAGS="$LDFLAGS"
7954 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7955 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7956 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7957 # The linker can only warn and ignore the option if not recognized
7958 # So say no if there are warnings
7959 if test -s conftest.err; then
7960 # Append any errors to the config.log.
7961 cat conftest.err 1>&5
7962 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7964 if diff conftest.exp conftest.er2 >/dev/null; then
7965 lt_cv_prog_compiler_static_works=yes
7966 fi
7967 else
7968 lt_cv_prog_compiler_static_works=yes
7969 fi
7970 fi
7971 $RM -r conftest*
7972 LDFLAGS="$save_LDFLAGS"
d9898ee8 7973
8d138742
CE
7974fi
7975{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7976$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 7977
8d138742
CE
7978if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7979 :
7980else
7981 lt_prog_compiler_static=
7982fi
d9898ee8 7983
d9898ee8 7984
d9898ee8 7985
d9898ee8 7986
d9898ee8 7987
d9898ee8 7988
d9898ee8 7989
8d138742
CE
7990 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7991$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7992if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7993 $as_echo_n "(cached) " >&6
7994else
7995 lt_cv_prog_compiler_c_o=no
7996 $RM -r conftest 2>/dev/null
7997 mkdir conftest
7998 cd conftest
7999 mkdir out
8000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8001
8d138742
CE
8002 lt_compiler_flag="-o out/conftest2.$ac_objext"
8003 # Insert the option either (1) after the last *FLAGS variable, or
8004 # (2) before a word containing "conftest.", or (3) at the end.
8005 # Note that $ac_compile itself does not contain backslashes and begins
8006 # with a dollar sign (not a hyphen), so the echo should work correctly.
8007 lt_compile=`echo "$ac_compile" | $SED \
8008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8010 -e 's:$: $lt_compiler_flag:'`
8011 (eval echo "\"\$as_me:8011: $lt_compile\"" >&5)
8012 (eval "$lt_compile" 2>out/conftest.err)
8013 ac_status=$?
8014 cat out/conftest.err >&5
8015 echo "$as_me:8015: \$? = $ac_status" >&5
8016 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8017 then
8018 # The compiler can only warn and ignore the option if not recognized
8019 # So say no if there are warnings
8020 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8021 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8022 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8023 lt_cv_prog_compiler_c_o=yes
8024 fi
8025 fi
8026 chmod u+w . 2>&5
8027 $RM conftest*
8028 # SGI C++ compiler will create directory out/ii_files/ for
8029 # template instantiation
8030 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8031 $RM out/* && rmdir out
8032 cd ..
8033 $RM -r conftest
8034 $RM conftest*
d9898ee8 8035
8d138742
CE
8036fi
8037{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8038$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8039
d9898ee8 8040
d9898ee8 8041
d9898ee8 8042
d9898ee8 8043
d9898ee8 8044
8d138742
CE
8045 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8046$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8047if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8048 $as_echo_n "(cached) " >&6
8049else
8050 lt_cv_prog_compiler_c_o=no
8051 $RM -r conftest 2>/dev/null
8052 mkdir conftest
8053 cd conftest
8054 mkdir out
8055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8056
8d138742
CE
8057 lt_compiler_flag="-o out/conftest2.$ac_objext"
8058 # Insert the option either (1) after the last *FLAGS variable, or
8059 # (2) before a word containing "conftest.", or (3) at the end.
8060 # Note that $ac_compile itself does not contain backslashes and begins
8061 # with a dollar sign (not a hyphen), so the echo should work correctly.
8062 lt_compile=`echo "$ac_compile" | $SED \
8063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8065 -e 's:$: $lt_compiler_flag:'`
8066 (eval echo "\"\$as_me:8066: $lt_compile\"" >&5)
8067 (eval "$lt_compile" 2>out/conftest.err)
8068 ac_status=$?
8069 cat out/conftest.err >&5
8070 echo "$as_me:8070: \$? = $ac_status" >&5
8071 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8072 then
8073 # The compiler can only warn and ignore the option if not recognized
8074 # So say no if there are warnings
8075 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8076 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8077 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8078 lt_cv_prog_compiler_c_o=yes
8079 fi
8080 fi
8081 chmod u+w . 2>&5
8082 $RM conftest*
8083 # SGI C++ compiler will create directory out/ii_files/ for
8084 # template instantiation
8085 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8086 $RM out/* && rmdir out
8087 cd ..
8088 $RM -r conftest
8089 $RM conftest*
d9898ee8 8090
8d138742
CE
8091fi
8092{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8093$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8094
d9898ee8 8095
d9898ee8 8096
d9898ee8 8097
8d138742
CE
8098hard_links="nottested"
8099if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8100 # do not overwrite the value of need_locks provided by the user
8101 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8102$as_echo_n "checking if we can lock with hard links... " >&6; }
8103 hard_links=yes
8104 $RM conftest*
8105 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8106 touch conftest.a
8107 ln conftest.a conftest.b 2>&5 || hard_links=no
8108 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8109 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8110$as_echo "$hard_links" >&6; }
8111 if test "$hard_links" = no; then
8112 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8113$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8114 need_locks=warn
8115 fi
8116else
8117 need_locks=no
8118fi
d9898ee8 8119
d9898ee8 8120
d9898ee8 8121
d9898ee8 8122
d9898ee8 8123
d9898ee8 8124
8d138742
CE
8125 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8126$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 8127
8d138742
CE
8128 runpath_var=
8129 allow_undefined_flag=
8130 always_export_symbols=no
8131 archive_cmds=
8132 archive_expsym_cmds=
8133 compiler_needs_object=no
8134 enable_shared_with_static_runtimes=no
8135 export_dynamic_flag_spec=
8136 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8137 hardcode_automatic=no
8138 hardcode_direct=no
8139 hardcode_direct_absolute=no
8140 hardcode_libdir_flag_spec=
8141 hardcode_libdir_flag_spec_ld=
8142 hardcode_libdir_separator=
8143 hardcode_minus_L=no
8144 hardcode_shlibpath_var=unsupported
8145 inherit_rpath=no
8146 link_all_deplibs=unknown
8147 module_cmds=
8148 module_expsym_cmds=
8149 old_archive_from_new_cmds=
8150 old_archive_from_expsyms_cmds=
8151 thread_safe_flag_spec=
8152 whole_archive_flag_spec=
8153 # include_expsyms should be a list of space-separated symbols to be *always*
8154 # included in the symbol list
8155 include_expsyms=
8156 # exclude_expsyms can be an extended regexp of symbols to exclude
8157 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8158 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8159 # as well as any symbol that contains `d'.
8160 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8161 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8162 # platforms (ab)use it in PIC code, but their linkers get confused if
8163 # the symbol is explicitly referenced. Since portable code cannot
8164 # rely on this symbol name, it's probably fine to never include it in
8165 # preloaded symbol tables.
8166 # Exclude shared library initialization/finalization symbols.
8167 extract_expsyms_cmds=
d9898ee8 8168
8d138742
CE
8169 case $host_os in
8170 cygwin* | mingw* | pw32* | cegcc*)
8171 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8172 # When not using gcc, we currently assume that we are using
8173 # Microsoft Visual C++.
8174 if test "$GCC" != yes; then
8175 with_gnu_ld=no
8176 fi
8177 ;;
8178 interix*)
8179 # we just hope/assume this is gcc and not c89 (= MSVC++)
8180 with_gnu_ld=yes
8181 ;;
8182 openbsd*)
8183 with_gnu_ld=no
8184 ;;
8185 esac
d9898ee8 8186
8d138742
CE
8187 ld_shlibs=yes
8188 if test "$with_gnu_ld" = yes; then
8189 # If archive_cmds runs LD, not CC, wlarc should be empty
8190 wlarc='${wl}'
d9898ee8 8191
8d138742
CE
8192 # Set some defaults for GNU ld with shared library support. These
8193 # are reset later if shared libraries are not supported. Putting them
8194 # here allows them to be overridden if necessary.
8195 runpath_var=LD_RUN_PATH
8196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8197 export_dynamic_flag_spec='${wl}--export-dynamic'
8198 # ancient GNU ld didn't support --whole-archive et. al.
8199 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8200 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8201 else
8202 whole_archive_flag_spec=
8203 fi
8204 supports_anon_versioning=no
8205 case `$LD -v 2>&1` in
8206 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8207 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8208 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8209 *\ 2.11.*) ;; # other 2.11 versions
8210 *) supports_anon_versioning=yes ;;
8211 esac
d9898ee8 8212
8d138742
CE
8213 # See if GNU ld supports shared libraries.
8214 case $host_os in
8215 aix[3-9]*)
8216 # On AIX/PPC, the GNU linker is very broken
8217 if test "$host_cpu" != ia64; then
8218 ld_shlibs=no
8219 cat <<_LT_EOF 1>&2
d9898ee8 8220
8d138742
CE
8221*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8222*** to be unable to reliably create shared libraries on AIX.
8223*** Therefore, libtool is disabling shared libraries support. If you
8224*** really care for shared libraries, you may want to modify your PATH
8225*** so that a non-GNU linker is found, and then restart.
d9898ee8 8226
8d138742
CE
8227_LT_EOF
8228 fi
8229 ;;
d9898ee8 8230
8d138742
CE
8231 amigaos*)
8232 case $host_cpu in
8233 powerpc)
8234 # see comment about AmigaOS4 .so support
8235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8236 archive_expsym_cmds=''
8237 ;;
8238 m68k)
8239 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)'
8240 hardcode_libdir_flag_spec='-L$libdir'
8241 hardcode_minus_L=yes
8242 ;;
8243 esac
8244 ;;
d9898ee8 8245
8d138742
CE
8246 beos*)
8247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8248 allow_undefined_flag=unsupported
8249 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8250 # support --undefined. This deserves some investigation. FIXME
8251 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8252 else
8253 ld_shlibs=no
8254 fi
8255 ;;
d9898ee8 8256
8d138742
CE
8257 cygwin* | mingw* | pw32* | cegcc*)
8258 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8259 # as there is no search path for DLLs.
8260 hardcode_libdir_flag_spec='-L$libdir'
8261 allow_undefined_flag=unsupported
8262 always_export_symbols=no
8263 enable_shared_with_static_runtimes=yes
8264 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 8265
8d138742
CE
8266 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8268 # If the export-symbols file already is a .def file (1st line
8269 # is EXPORTS), use it as is; otherwise, prepend...
8270 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8271 cp $export_symbols $output_objdir/$soname.def;
8272 else
8273 echo EXPORTS > $output_objdir/$soname.def;
8274 cat $export_symbols >> $output_objdir/$soname.def;
8275 fi~
8276 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8277 else
8278 ld_shlibs=no
8279 fi
8280 ;;
d9898ee8 8281
8d138742
CE
8282 interix[3-9]*)
8283 hardcode_direct=no
8284 hardcode_shlibpath_var=no
8285 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8286 export_dynamic_flag_spec='${wl}-E'
8287 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8288 # Instead, shared libraries are loaded at an image base (0x10000000 by
8289 # default) and relocated if they conflict, which is a slow very memory
8290 # consuming and fragmenting process. To avoid this, we pick a random,
8291 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8292 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8293 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8294 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'
8295 ;;
d9898ee8 8296
8d138742
CE
8297 gnu* | linux* | tpf* | k*bsd*-gnu)
8298 tmp_diet=no
8299 if test "$host_os" = linux-dietlibc; then
8300 case $cc_basename in
8301 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8302 esac
8303 fi
8304 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8305 && test "$tmp_diet" = no
8306 then
8307 tmp_addflag=
8308 tmp_sharedflag='-shared'
8309 case $cc_basename,$host_cpu in
8310 pgcc*) # Portland Group C compiler
8311 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'
8312 tmp_addflag=' $pic_flag'
8313 ;;
8314 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8315 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'
8316 tmp_addflag=' $pic_flag -Mnomain' ;;
8317 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8318 tmp_addflag=' -i_dynamic' ;;
8319 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8320 tmp_addflag=' -i_dynamic -nofor_main' ;;
8321 ifc* | ifort*) # Intel Fortran compiler
8322 tmp_addflag=' -nofor_main' ;;
8323 lf95*) # Lahey Fortran 8.1
8324 whole_archive_flag_spec=
8325 tmp_sharedflag='--shared' ;;
8326 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8327 tmp_sharedflag='-qmkshrobj'
8328 tmp_addflag= ;;
8329 esac
8330 case `$CC -V 2>&1 | sed 5q` in
8331 *Sun\ C*) # Sun C 5.9
8332 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'
8333 compiler_needs_object=yes
8334 tmp_sharedflag='-G' ;;
8335 *Sun\ F*) # Sun Fortran 8.3
8336 tmp_sharedflag='-G' ;;
8337 esac
8338 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8339
8d138742
CE
8340 if test "x$supports_anon_versioning" = xyes; then
8341 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8342 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8343 echo "local: *; };" >> $output_objdir/$libname.ver~
8344 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8345 fi
d9898ee8 8346
8d138742
CE
8347 case $cc_basename in
8348 xlf*)
8349 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8350 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8351 hardcode_libdir_flag_spec=
8352 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8353 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8354 if test "x$supports_anon_versioning" = xyes; then
8355 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8356 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8357 echo "local: *; };" >> $output_objdir/$libname.ver~
8358 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8359 fi
8360 ;;
8361 esac
8362 else
8363 ld_shlibs=no
8364 fi
8365 ;;
d9898ee8 8366
8d138742
CE
8367 netbsd*)
8368 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8369 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8370 wlarc=
8371 else
8372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8373 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8374 fi
8375 ;;
d9898ee8 8376
8d138742
CE
8377 solaris*)
8378 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8379 ld_shlibs=no
8380 cat <<_LT_EOF 1>&2
d9898ee8 8381
8d138742
CE
8382*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8383*** create shared libraries on Solaris systems. Therefore, libtool
8384*** is disabling shared libraries support. We urge you to upgrade GNU
8385*** binutils to release 2.9.1 or newer. Another option is to modify
8386*** your PATH or compiler configuration so that the native linker is
8387*** used, and then restart.
d9898ee8 8388
8d138742
CE
8389_LT_EOF
8390 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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
8396 ;;
d9898ee8 8397
8d138742
CE
8398 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8399 case `$LD -v 2>&1` in
8400 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8401 ld_shlibs=no
8402 cat <<_LT_EOF 1>&2
d9898ee8 8403
8d138742
CE
8404*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8405*** reliably create shared libraries on SCO systems. Therefore, libtool
8406*** is disabling shared libraries support. We urge you to upgrade GNU
8407*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8408*** your PATH or compiler configuration so that the native linker is
8409*** used, and then restart.
d9898ee8 8410
8d138742
CE
8411_LT_EOF
8412 ;;
8413 *)
8414 # For security reasons, it is highly recommended that you always
8415 # use absolute paths for naming shared libraries, and exclude the
8416 # DT_RUNPATH tag from executables and libraries. But doing so
8417 # requires that you compile everything twice, which is a pain.
8418 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8421 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8422 else
8423 ld_shlibs=no
8424 fi
8425 ;;
8426 esac
8427 ;;
d9898ee8 8428
8d138742
CE
8429 sunos4*)
8430 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8431 wlarc=
8432 hardcode_direct=yes
8433 hardcode_shlibpath_var=no
8434 ;;
d9898ee8 8435
8d138742
CE
8436 *)
8437 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8439 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8440 else
8441 ld_shlibs=no
8442 fi
8443 ;;
8444 esac
d9898ee8 8445
8d138742
CE
8446 if test "$ld_shlibs" = no; then
8447 runpath_var=
8448 hardcode_libdir_flag_spec=
8449 export_dynamic_flag_spec=
8450 whole_archive_flag_spec=
8451 fi
8452 else
8453 # PORTME fill in a description of your system's linker (not GNU ld)
8454 case $host_os in
8455 aix3*)
8456 allow_undefined_flag=unsupported
8457 always_export_symbols=yes
8458 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'
8459 # Note: this linker hardcodes the directories in LIBPATH if there
8460 # are no directories specified by -L.
8461 hardcode_minus_L=yes
8462 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8463 # Neither direct hardcoding nor static linking is supported with a
8464 # broken collect2.
8465 hardcode_direct=unsupported
8466 fi
8467 ;;
d9898ee8 8468
8d138742
CE
8469 aix[4-9]*)
8470 if test "$host_cpu" = ia64; then
8471 # On IA64, the linker does run time linking by default, so we don't
8472 # have to do anything special.
8473 aix_use_runtimelinking=no
8474 exp_sym_flag='-Bexport'
8475 no_entry_flag=""
8476 else
8477 # If we're using GNU nm, then we don't want the "-C" option.
8478 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8479 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8480 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'
8481 else
8482 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'
8483 fi
8484 aix_use_runtimelinking=no
d9898ee8 8485
8d138742
CE
8486 # Test if we are trying to use run time linking or normal
8487 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8488 # need to do runtime linking.
8489 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8490 for ld_flag in $LDFLAGS; do
8491 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8492 aix_use_runtimelinking=yes
8493 break
8494 fi
8495 done
8496 ;;
8497 esac
d9898ee8 8498
8d138742
CE
8499 exp_sym_flag='-bexport'
8500 no_entry_flag='-bnoentry'
8501 fi
d9898ee8 8502
8d138742
CE
8503 # When large executables or shared objects are built, AIX ld can
8504 # have problems creating the table of contents. If linking a library
8505 # or program results in "error TOC overflow" add -mminimal-toc to
8506 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8507 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d9898ee8 8508
8d138742
CE
8509 archive_cmds=''
8510 hardcode_direct=yes
8511 hardcode_direct_absolute=yes
8512 hardcode_libdir_separator=':'
8513 link_all_deplibs=yes
8514 file_list_spec='${wl}-f,'
d9898ee8 8515
8d138742
CE
8516 if test "$GCC" = yes; then
8517 case $host_os in aix4.[012]|aix4.[012].*)
8518 # We only want to do this on AIX 4.2 and lower, the check
8519 # below for broken collect2 doesn't work under 4.3+
8520 collect2name=`${CC} -print-prog-name=collect2`
8521 if test -f "$collect2name" &&
8522 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8523 then
8524 # We have reworked collect2
8525 :
8526 else
8527 # We have old collect2
8528 hardcode_direct=unsupported
8529 # It fails to find uninstalled libraries when the uninstalled
8530 # path is not listed in the libpath. Setting hardcode_minus_L
8531 # to unsupported forces relinking
8532 hardcode_minus_L=yes
8533 hardcode_libdir_flag_spec='-L$libdir'
8534 hardcode_libdir_separator=
8535 fi
8536 ;;
8537 esac
8538 shared_flag='-shared'
8539 if test "$aix_use_runtimelinking" = yes; then
8540 shared_flag="$shared_flag "'${wl}-G'
8541 fi
8542 else
8543 # not using gcc
8544 if test "$host_cpu" = ia64; then
8545 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8546 # chokes on -Wl,-G. The following line is correct:
8547 shared_flag='-G'
8548 else
8549 if test "$aix_use_runtimelinking" = yes; then
8550 shared_flag='${wl}-G'
8551 else
8552 shared_flag='${wl}-bM:SRE'
8553 fi
8554 fi
8555 fi
d9898ee8 8556
8d138742
CE
8557 export_dynamic_flag_spec='${wl}-bexpall'
8558 # It seems that -bexpall does not export symbols beginning with
8559 # underscore (_), so it is better to generate a list of symbols to export.
8560 always_export_symbols=yes
8561 if test "$aix_use_runtimelinking" = yes; then
8562 # Warning - without using the other runtime loading flags (-brtl),
8563 # -berok will link without error, but may produce a broken library.
8564 allow_undefined_flag='-berok'
8565 # Determine the default libpath from the value encoded in an
8566 # empty executable.
8567 cat >conftest.$ac_ext <<_ACEOF
8568/* confdefs.h. */
8569_ACEOF
8570cat confdefs.h >>conftest.$ac_ext
8571cat >>conftest.$ac_ext <<_ACEOF
8572/* end confdefs.h. */
d9898ee8 8573
8d138742
CE
8574int
8575main ()
8576{
d9898ee8 8577
8d138742
CE
8578 ;
8579 return 0;
8580}
8581_ACEOF
8582rm -f conftest.$ac_objext conftest$ac_exeext
8583if { (ac_try="$ac_link"
8584case "(($ac_try" in
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8587esac
8588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8589$as_echo "$ac_try_echo") >&5
8590 (eval "$ac_link") 2>conftest.er1
8591 ac_status=$?
8592 grep -v '^ *+' conftest.er1 >conftest.err
8593 rm -f conftest.er1
8594 cat conftest.err >&5
8595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } && {
8597 test -z "$ac_c_werror_flag" ||
8598 test ! -s conftest.err
8599 } && test -s conftest$ac_exeext && {
8600 test "$cross_compiling" = yes ||
8601 $as_test_x conftest$ac_exeext
8602 }; then
d9898ee8 8603
8d138742
CE
8604lt_aix_libpath_sed='
8605 /Import File Strings/,/^$/ {
8606 /^0/ {
8607 s/^0 *\(.*\)$/\1/
8608 p
8609 }
8610 }'
8611aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8612# Check for a 64-bit object if we didn't find anything.
8613if test -z "$aix_libpath"; then
8614 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8615fi
8616else
8617 $as_echo "$as_me: failed program was:" >&5
8618sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 8619
d9898ee8 8620
8d138742 8621fi
d9898ee8 8622
8d138742
CE
8623rm -rf conftest.dSYM
8624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8625 conftest$ac_exeext conftest.$ac_ext
8626if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d9898ee8 8627
8d138742
CE
8628 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8629 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"
8630 else
8631 if test "$host_cpu" = ia64; then
8632 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8633 allow_undefined_flag="-z nodefs"
8634 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"
8635 else
8636 # Determine the default libpath from the value encoded in an
8637 # empty executable.
8638 cat >conftest.$ac_ext <<_ACEOF
8639/* confdefs.h. */
8640_ACEOF
8641cat confdefs.h >>conftest.$ac_ext
8642cat >>conftest.$ac_ext <<_ACEOF
8643/* end confdefs.h. */
d9898ee8 8644
8d138742
CE
8645int
8646main ()
8647{
d9898ee8 8648
8d138742
CE
8649 ;
8650 return 0;
8651}
8652_ACEOF
8653rm -f conftest.$ac_objext conftest$ac_exeext
8654if { (ac_try="$ac_link"
8655case "(($ac_try" in
8656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8657 *) ac_try_echo=$ac_try;;
8658esac
8659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8660$as_echo "$ac_try_echo") >&5
8661 (eval "$ac_link") 2>conftest.er1
8662 ac_status=$?
8663 grep -v '^ *+' conftest.er1 >conftest.err
8664 rm -f conftest.er1
8665 cat conftest.err >&5
8666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } && {
8668 test -z "$ac_c_werror_flag" ||
8669 test ! -s conftest.err
8670 } && test -s conftest$ac_exeext && {
8671 test "$cross_compiling" = yes ||
8672 $as_test_x conftest$ac_exeext
8673 }; then
d9898ee8 8674
8d138742
CE
8675lt_aix_libpath_sed='
8676 /Import File Strings/,/^$/ {
8677 /^0/ {
8678 s/^0 *\(.*\)$/\1/
8679 p
8680 }
8681 }'
8682aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8683# Check for a 64-bit object if we didn't find anything.
8684if test -z "$aix_libpath"; then
8685 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8686fi
8687else
8688 $as_echo "$as_me: failed program was:" >&5
8689sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 8690
d9898ee8 8691
8d138742 8692fi
d9898ee8 8693
8d138742
CE
8694rm -rf conftest.dSYM
8695rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8696 conftest$ac_exeext conftest.$ac_ext
8697if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d9898ee8 8698
8d138742
CE
8699 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8700 # Warning - without using the other run time loading flags,
8701 # -berok will link without error, but may produce a broken library.
8702 no_undefined_flag=' ${wl}-bernotok'
8703 allow_undefined_flag=' ${wl}-berok'
8704 # Exported symbols can be pulled into shared objects from archives
8705 whole_archive_flag_spec='$convenience'
8706 archive_cmds_need_lc=yes
8707 # This is similar to how AIX traditionally builds its shared libraries.
8708 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'
8709 fi
8710 fi
8711 ;;
d9898ee8 8712
8d138742
CE
8713 amigaos*)
8714 case $host_cpu in
8715 powerpc)
8716 # see comment about AmigaOS4 .so support
8717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8718 archive_expsym_cmds=''
8719 ;;
8720 m68k)
8721 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)'
8722 hardcode_libdir_flag_spec='-L$libdir'
8723 hardcode_minus_L=yes
8724 ;;
8725 esac
8726 ;;
d9898ee8 8727
8d138742
CE
8728 bsdi[45]*)
8729 export_dynamic_flag_spec=-rdynamic
8730 ;;
d9898ee8 8731
8d138742
CE
8732 cygwin* | mingw* | pw32* | cegcc*)
8733 # When not using gcc, we currently assume that we are using
8734 # Microsoft Visual C++.
8735 # hardcode_libdir_flag_spec is actually meaningless, as there is
8736 # no search path for DLLs.
8737 hardcode_libdir_flag_spec=' '
8738 allow_undefined_flag=unsupported
8739 # Tell ltmain to make .lib files, not .a files.
8740 libext=lib
8741 # Tell ltmain to make .dll files, not .so files.
8742 shrext_cmds=".dll"
8743 # FIXME: Setting linknames here is a bad hack.
8744 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8745 # The linker will automatically build a .lib file if we build a DLL.
8746 old_archive_from_new_cmds='true'
8747 # FIXME: Should let the user specify the lib program.
8748 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8749 fix_srcfile_path='`cygpath -w "$srcfile"`'
8750 enable_shared_with_static_runtimes=yes
8751 ;;
d9898ee8 8752
8d138742 8753 darwin* | rhapsody*)
d9898ee8 8754
d9898ee8 8755
8d138742
CE
8756 archive_cmds_need_lc=no
8757 hardcode_direct=no
8758 hardcode_automatic=yes
8759 hardcode_shlibpath_var=unsupported
8760 whole_archive_flag_spec=''
8761 link_all_deplibs=yes
8762 allow_undefined_flag="$_lt_dar_allow_undefined"
8763 case $cc_basename in
8764 ifort*) _lt_dar_can_shared=yes ;;
8765 *) _lt_dar_can_shared=$GCC ;;
d9898ee8 8766 esac
8d138742
CE
8767 if test "$_lt_dar_can_shared" = "yes"; then
8768 output_verbose_link_cmd=echo
8769 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8770 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8771 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}"
8772 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}"
d9898ee8 8773
8d138742
CE
8774 else
8775 ld_shlibs=no
d9898ee8 8776 fi
d9898ee8 8777
8d138742 8778 ;;
d9898ee8 8779
8d138742
CE
8780 dgux*)
8781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782 hardcode_libdir_flag_spec='-L$libdir'
8783 hardcode_shlibpath_var=no
8784 ;;
d9898ee8 8785
8d138742
CE
8786 freebsd1*)
8787 ld_shlibs=no
8788 ;;
d9898ee8 8789
8d138742
CE
8790 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8791 # support. Future versions do this automatically, but an explicit c++rt0.o
8792 # does not break anything, and helps significantly (at the cost of a little
8793 # extra space).
8794 freebsd2.2*)
8795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8796 hardcode_libdir_flag_spec='-R$libdir'
8797 hardcode_direct=yes
8798 hardcode_shlibpath_var=no
8799 ;;
d9898ee8 8800
8d138742
CE
8801 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8802 freebsd2*)
8803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8804 hardcode_direct=yes
8805 hardcode_minus_L=yes
8806 hardcode_shlibpath_var=no
8807 ;;
dd184caf 8808
8d138742
CE
8809 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8810 freebsd* | dragonfly*)
8811 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8812 hardcode_libdir_flag_spec='-R$libdir'
8813 hardcode_direct=yes
8814 hardcode_shlibpath_var=no
8815 ;;
d9898ee8 8816
8d138742
CE
8817 hpux9*)
8818 if test "$GCC" = yes; then
8819 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'
8820 else
8821 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'
8822 fi
8823 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8824 hardcode_libdir_separator=:
8825 hardcode_direct=yes
d9898ee8 8826
8d138742
CE
8827 # hardcode_minus_L: Not really in the search PATH,
8828 # but as the default location of the library.
8829 hardcode_minus_L=yes
8830 export_dynamic_flag_spec='${wl}-E'
8831 ;;
d9898ee8 8832
8d138742
CE
8833 hpux10*)
8834 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8835 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8836 else
8837 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8838 fi
8839 if test "$with_gnu_ld" = no; then
8840 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8841 hardcode_libdir_flag_spec_ld='+b $libdir'
8842 hardcode_libdir_separator=:
8843 hardcode_direct=yes
8844 hardcode_direct_absolute=yes
8845 export_dynamic_flag_spec='${wl}-E'
8846 # hardcode_minus_L: Not really in the search PATH,
8847 # but as the default location of the library.
8848 hardcode_minus_L=yes
8849 fi
8850 ;;
d9898ee8 8851
8d138742
CE
8852 hpux11*)
8853 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8854 case $host_cpu in
8855 hppa*64*)
8856 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8857 ;;
8858 ia64*)
8859 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8860 ;;
8861 *)
8862 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8863 ;;
8864 esac
8865 else
8866 case $host_cpu in
8867 hppa*64*)
8868 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8869 ;;
8870 ia64*)
8871 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8872 ;;
8873 *)
8874 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8875 ;;
8876 esac
8877 fi
8878 if test "$with_gnu_ld" = no; then
8879 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8880 hardcode_libdir_separator=:
d9898ee8 8881
8d138742
CE
8882 case $host_cpu in
8883 hppa*64*|ia64*)
8884 hardcode_direct=no
8885 hardcode_shlibpath_var=no
8886 ;;
8887 *)
8888 hardcode_direct=yes
8889 hardcode_direct_absolute=yes
8890 export_dynamic_flag_spec='${wl}-E'
d9898ee8 8891
8d138742
CE
8892 # hardcode_minus_L: Not really in the search PATH,
8893 # but as the default location of the library.
8894 hardcode_minus_L=yes
8895 ;;
8896 esac
8897 fi
8898 ;;
d9898ee8 8899
8d138742
CE
8900 irix5* | irix6* | nonstopux*)
8901 if test "$GCC" = yes; then
8902 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'
8903 # Try to use the -exported_symbol ld option, if it does not
8904 # work, assume that -exports_file does not work either and
8905 # implicitly export all symbols.
8906 save_LDFLAGS="$LDFLAGS"
8907 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8908 cat >conftest.$ac_ext <<_ACEOF
8909int foo(void) {}
8910_ACEOF
8911rm -f conftest.$ac_objext conftest$ac_exeext
8912if { (ac_try="$ac_link"
8913case "(($ac_try" in
8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8916esac
8917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8918$as_echo "$ac_try_echo") >&5
8919 (eval "$ac_link") 2>conftest.er1
8920 ac_status=$?
8921 grep -v '^ *+' conftest.er1 >conftest.err
8922 rm -f conftest.er1
8923 cat conftest.err >&5
8924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } && {
8926 test -z "$ac_c_werror_flag" ||
8927 test ! -s conftest.err
8928 } && test -s conftest$ac_exeext && {
8929 test "$cross_compiling" = yes ||
8930 $as_test_x conftest$ac_exeext
8931 }; then
8932 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 8933
8d138742
CE
8934else
8935 $as_echo "$as_me: failed program was:" >&5
8936sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 8937
d9898ee8 8938
8d138742 8939fi
d9898ee8 8940
8d138742
CE
8941rm -rf conftest.dSYM
8942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8943 conftest$ac_exeext conftest.$ac_ext
8944 LDFLAGS="$save_LDFLAGS"
8945 else
8946 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'
8947 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'
8948 fi
8949 archive_cmds_need_lc='no'
8950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8951 hardcode_libdir_separator=:
8952 inherit_rpath=yes
8953 link_all_deplibs=yes
8954 ;;
d9898ee8 8955
8d138742
CE
8956 netbsd*)
8957 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8959 else
8960 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8961 fi
8962 hardcode_libdir_flag_spec='-R$libdir'
8963 hardcode_direct=yes
8964 hardcode_shlibpath_var=no
8965 ;;
d9898ee8 8966
8d138742
CE
8967 newsos6)
8968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8969 hardcode_direct=yes
8970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8971 hardcode_libdir_separator=:
8972 hardcode_shlibpath_var=no
8973 ;;
d9898ee8 8974
8d138742
CE
8975 *nto* | *qnx*)
8976 ;;
d9898ee8 8977
8d138742
CE
8978 openbsd*)
8979 if test -f /usr/libexec/ld.so; then
8980 hardcode_direct=yes
8981 hardcode_shlibpath_var=no
8982 hardcode_direct_absolute=yes
8983 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8985 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8986 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8987 export_dynamic_flag_spec='${wl}-E'
8988 else
8989 case $host_os in
8990 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8991 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8992 hardcode_libdir_flag_spec='-R$libdir'
8993 ;;
8994 *)
8995 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8996 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8997 ;;
8998 esac
8999 fi
9000 else
9001 ld_shlibs=no
9002 fi
9003 ;;
d9898ee8 9004
8d138742
CE
9005 os2*)
9006 hardcode_libdir_flag_spec='-L$libdir'
9007 hardcode_minus_L=yes
9008 allow_undefined_flag=unsupported
9009 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'
9010 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9011 ;;
d9898ee8 9012
8d138742
CE
9013 osf3*)
9014 if test "$GCC" = yes; then
9015 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9016 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'
9017 else
9018 allow_undefined_flag=' -expect_unresolved \*'
9019 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'
9020 fi
9021 archive_cmds_need_lc='no'
9022 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9023 hardcode_libdir_separator=:
9024 ;;
d9898ee8 9025
8d138742
CE
9026 osf4* | osf5*) # as osf3* with the addition of -msym flag
9027 if test "$GCC" = yes; then
9028 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9029 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'
9030 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9031 else
9032 allow_undefined_flag=' -expect_unresolved \*'
9033 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'
9034 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~
9035 $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 9036
8d138742
CE
9037 # Both c and cxx compiler support -rpath directly
9038 hardcode_libdir_flag_spec='-rpath $libdir'
9039 fi
9040 archive_cmds_need_lc='no'
9041 hardcode_libdir_separator=:
9042 ;;
d9898ee8 9043
8d138742
CE
9044 solaris*)
9045 no_undefined_flag=' -z defs'
9046 if test "$GCC" = yes; then
9047 wlarc='${wl}'
9048 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9049 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9050 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9051 else
9052 case `$CC -V 2>&1` in
9053 *"Compilers 5.0"*)
9054 wlarc=''
9055 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9056 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9057 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9058 ;;
9059 *)
9060 wlarc='${wl}'
9061 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9062 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9063 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9064 ;;
9065 esac
9066 fi
9067 hardcode_libdir_flag_spec='-R$libdir'
9068 hardcode_shlibpath_var=no
9069 case $host_os in
9070 solaris2.[0-5] | solaris2.[0-5].*) ;;
9071 *)
9072 # The compiler driver will combine and reorder linker options,
9073 # but understands `-z linker_flag'. GCC discards it without `$wl',
9074 # but is careful enough not to reorder.
9075 # Supported since Solaris 2.6 (maybe 2.5.1?)
9076 if test "$GCC" = yes; then
9077 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9078 else
9079 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9080 fi
9081 ;;
9082 esac
9083 link_all_deplibs=yes
9084 ;;
d9898ee8 9085
8d138742
CE
9086 sunos4*)
9087 if test "x$host_vendor" = xsequent; then
9088 # Use $CC to link under sequent, because it throws in some extra .o
9089 # files that make .init and .fini sections work.
9090 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9091 else
9092 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9093 fi
9094 hardcode_libdir_flag_spec='-L$libdir'
9095 hardcode_direct=yes
9096 hardcode_minus_L=yes
9097 hardcode_shlibpath_var=no
9098 ;;
dd184caf 9099
8d138742
CE
9100 sysv4)
9101 case $host_vendor in
9102 sni)
9103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104 hardcode_direct=yes # is this really true???
d9898ee8 9105 ;;
8d138742
CE
9106 siemens)
9107 ## LD is ld it makes a PLAMLIB
9108 ## CC just makes a GrossModule.
9109 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9110 reload_cmds='$CC -r -o $output$reload_objs'
9111 hardcode_direct=no
9112 ;;
9113 motorola)
9114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9115 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
d9898ee8 9116 ;;
9117 esac
8d138742
CE
9118 runpath_var='LD_RUN_PATH'
9119 hardcode_shlibpath_var=no
9120 ;;
d9898ee8 9121
8d138742
CE
9122 sysv4.3*)
9123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9124 hardcode_shlibpath_var=no
9125 export_dynamic_flag_spec='-Bexport'
9126 ;;
d9898ee8 9127
8d138742
CE
9128 sysv4*MP*)
9129 if test -d /usr/nec; then
9130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9131 hardcode_shlibpath_var=no
9132 runpath_var=LD_RUN_PATH
9133 hardcode_runpath_var=yes
9134 ld_shlibs=yes
9135 fi
9136 ;;
d9898ee8 9137
8d138742
CE
9138 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9139 no_undefined_flag='${wl}-z,text'
9140 archive_cmds_need_lc=no
9141 hardcode_shlibpath_var=no
9142 runpath_var='LD_RUN_PATH'
d9898ee8 9143
8d138742
CE
9144 if test "$GCC" = yes; then
9145 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9146 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9147 else
9148 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9149 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9150 fi
9151 ;;
d9898ee8 9152
8d138742
CE
9153 sysv5* | sco3.2v5* | sco5v6*)
9154 # Note: We can NOT use -z defs as we might desire, because we do not
9155 # link with -lc, and that would cause any symbols used from libc to
9156 # always be unresolved, which means just about no library would
9157 # ever link correctly. If we're not using GNU ld we use -z text
9158 # though, which does catch some bad symbols but isn't as heavy-handed
9159 # as -z defs.
9160 no_undefined_flag='${wl}-z,text'
9161 allow_undefined_flag='${wl}-z,nodefs'
9162 archive_cmds_need_lc=no
9163 hardcode_shlibpath_var=no
9164 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9165 hardcode_libdir_separator=':'
9166 link_all_deplibs=yes
9167 export_dynamic_flag_spec='${wl}-Bexport'
9168 runpath_var='LD_RUN_PATH'
d9898ee8 9169
8d138742
CE
9170 if test "$GCC" = yes; then
9171 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9172 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9173 else
9174 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9175 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9176 fi
9177 ;;
d9898ee8 9178
8d138742
CE
9179 uts4*)
9180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9181 hardcode_libdir_flag_spec='-L$libdir'
9182 hardcode_shlibpath_var=no
9183 ;;
9184
9185 *)
9186 ld_shlibs=no
9187 ;;
9188 esac
9189
9190 if test x$host_vendor = xsni; then
9191 case $host in
9192 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9193 export_dynamic_flag_spec='${wl}-Blargedynsym'
9194 ;;
9195 esac
d9898ee8 9196 fi
d9898ee8 9197 fi
9198
8d138742
CE
9199{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9200$as_echo "$ld_shlibs" >&6; }
9201test "$ld_shlibs" = no && can_build_shared=no
d9898ee8 9202
8d138742 9203with_gnu_ld=$with_gnu_ld
d9898ee8 9204
d9898ee8 9205
d9898ee8 9206
d9898ee8 9207
d9898ee8 9208
d9898ee8 9209
d9898ee8 9210
d9898ee8 9211
dd184caf 9212
dd184caf 9213
d9898ee8 9214
d9898ee8 9215
d9898ee8 9216
d9898ee8 9217
d9898ee8 9218
8d138742
CE
9219#
9220# Do we need to explicitly link libc?
9221#
9222case "x$archive_cmds_need_lc" in
9223x|xyes)
9224 # Assume -lc should be added
9225 archive_cmds_need_lc=yes
d9898ee8 9226
8d138742
CE
9227 if test "$enable_shared" = yes && test "$GCC" = yes; then
9228 case $archive_cmds in
9229 *'~'*)
9230 # FIXME: we may have to deal with multi-command sequences.
9231 ;;
9232 '$CC '*)
9233 # Test whether the compiler implicitly links with -lc since on some
9234 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9235 # to ld, don't add -lc before -lgcc.
9236 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9237$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9238 $RM conftest*
9239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 9240
8d138742
CE
9241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9242 (eval $ac_compile) 2>&5
9243 ac_status=$?
9244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } 2>conftest.err; then
9246 soname=conftest
9247 lib=conftest
9248 libobjs=conftest.$ac_objext
9249 deplibs=
9250 wl=$lt_prog_compiler_wl
9251 pic_flag=$lt_prog_compiler_pic
9252 compiler_flags=-v
9253 linker_flags=-v
9254 verstring=
9255 output_objdir=.
9256 libname=conftest
9257 lt_save_allow_undefined_flag=$allow_undefined_flag
9258 allow_undefined_flag=
9259 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9260 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9261 ac_status=$?
9262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }
9264 then
9265 archive_cmds_need_lc=no
9266 else
9267 archive_cmds_need_lc=yes
d9898ee8 9268 fi
8d138742 9269 allow_undefined_flag=$lt_save_allow_undefined_flag
d9898ee8 9270 else
8d138742 9271 cat conftest.err 1>&5
d9898ee8 9272 fi
8d138742
CE
9273 $RM conftest*
9274 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9275$as_echo "$archive_cmds_need_lc" >&6; }
d9898ee8 9276 ;;
9277 esac
8d138742
CE
9278 fi
9279 ;;
9280esac
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
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
9375
d9898ee8 9376
d9898ee8 9377
d9898ee8 9378
d9898ee8 9379
d9898ee8 9380
d9898ee8 9381
d9898ee8 9382
d9898ee8 9383
d9898ee8 9384
ac40fd9e 9385
ac40fd9e 9386
d9898ee8 9387
9388
d9898ee8 9389
d9898ee8 9390
d9898ee8 9391
d9898ee8 9392
d9898ee8 9393
d9898ee8 9394
d9898ee8 9395
d9898ee8 9396
d9898ee8 9397
d9898ee8 9398
d9898ee8 9399
d9898ee8 9400
d9898ee8 9401
d9898ee8 9402
9403
d9898ee8 9404
d9898ee8 9405
d9898ee8 9406
9407
d9898ee8 9408
d9898ee8 9409
d9898ee8 9410
d9898ee8 9411
d9898ee8 9412
d9898ee8 9413
d9898ee8 9414
8d138742
CE
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9439$as_echo_n "checking dynamic linker characteristics... " >&6; }
9440
9441if test "$GCC" = yes; then
9442 case $host_os in
9443 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9444 *) lt_awk_arg="/^libraries:/" ;;
9445 esac
9446 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9447 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9448 # if the path contains ";" then we assume it to be the separator
9449 # otherwise default to the standard path separator (i.e. ":") - it is
9450 # assumed that no part of a normal pathname contains ";" but that should
9451 # okay in the real world where ";" in dirpaths is itself problematic.
9452 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9453 else
9454 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9455 fi
9456 # Ok, now we have the path, separated by spaces, we can step through it
9457 # and add multilib dir if necessary.
9458 lt_tmp_lt_search_path_spec=
9459 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9460 for lt_sys_path in $lt_search_path_spec; do
9461 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9462 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9463 else
9464 test -d "$lt_sys_path" && \
9465 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9466 fi
9467 done
9468 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9469BEGIN {RS=" "; FS="/|\n";} {
9470 lt_foo="";
9471 lt_count=0;
9472 for (lt_i = NF; lt_i > 0; lt_i--) {
9473 if ($lt_i != "" && $lt_i != ".") {
9474 if ($lt_i == "..") {
9475 lt_count++;
9476 } else {
9477 if (lt_count == 0) {
9478 lt_foo="/" $lt_i lt_foo;
9479 } else {
9480 lt_count--;
9481 }
9482 }
9483 }
9484 }
9485 if (lt_foo != "") { lt_freq[lt_foo]++; }
9486 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9487}'`
9488 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9489else
9490 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9491fi
d9898ee8 9492library_names_spec=
9493libname_spec='lib$name'
9494soname_spec=
9495shrext_cmds=".so"
9496postinstall_cmds=
9497postuninstall_cmds=
9498finish_cmds=
9499finish_eval=
9500shlibpath_var=
9501shlibpath_overrides_runpath=unknown
9502version_type=none
9503dynamic_linker="$host_os ld.so"
9504sys_lib_dlsearch_path_spec="/lib /usr/lib"
d9898ee8 9505need_lib_prefix=unknown
9506hardcode_into_libs=no
9507
9508# when you set need_version to no, make sure it does not cause -set_version
9509# flags to be left without arguments
9510need_version=unknown
9511
9512case $host_os in
9513aix3*)
9514 version_type=linux
9515 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9516 shlibpath_var=LIBPATH
9517
9518 # AIX 3 has no versioning support, so we append a major version to the name.
9519 soname_spec='${libname}${release}${shared_ext}$major'
9520 ;;
9521
8d138742 9522aix[4-9]*)
d9898ee8 9523 version_type=linux
9524 need_lib_prefix=no
9525 need_version=no
9526 hardcode_into_libs=yes
9527 if test "$host_cpu" = ia64; then
9528 # AIX 5 supports IA64
9529 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9530 shlibpath_var=LD_LIBRARY_PATH
9531 else
9532 # With GCC up to 2.95.x, collect2 would create an import file
9533 # for dependence libraries. The import file would start with
9534 # the line `#! .'. This would cause the generated library to
9535 # depend on `.', always an invalid library. This was fixed in
9536 # development snapshots of GCC prior to 3.0.
9537 case $host_os in
9538 aix4 | aix4.[01] | aix4.[01].*)
9539 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9540 echo ' yes '
8d138742 9541 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
d9898ee8 9542 :
9543 else
9544 can_build_shared=no
9545 fi
9546 ;;
9547 esac
9548 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9549 # soname into executable. Probably we can add versioning support to
9550 # collect2, so additional links can be useful in future.
9551 if test "$aix_use_runtimelinking" = yes; then
9552 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9553 # instead of lib<name>.a to let people know that these are not
9554 # typical AIX shared libraries.
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9556 else
9557 # We preserve .a as extension for shared libraries through AIX4.2
9558 # and later when we are not doing run time linking.
9559 library_names_spec='${libname}${release}.a $libname.a'
9560 soname_spec='${libname}${release}${shared_ext}$major'
9561 fi
9562 shlibpath_var=LIBPATH
9563 fi
9564 ;;
9565
9566amigaos*)
8d138742
CE
9567 case $host_cpu in
9568 powerpc)
9569 # Since July 2007 AmigaOS4 officially supports .so libraries.
9570 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9572 ;;
9573 m68k)
9574 library_names_spec='$libname.ixlibrary $libname.a'
9575 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9576 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'
9577 ;;
9578 esac
d9898ee8 9579 ;;
9580
9581beos*)
9582 library_names_spec='${libname}${shared_ext}'
9583 dynamic_linker="$host_os ld.so"
9584 shlibpath_var=LIBRARY_PATH
9585 ;;
9586
9587bsdi[45]*)
9588 version_type=linux
9589 need_version=no
9590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9591 soname_spec='${libname}${release}${shared_ext}$major'
9592 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9593 shlibpath_var=LD_LIBRARY_PATH
9594 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9595 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9596 # the default ld.so.conf also contains /usr/contrib/lib and
9597 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9598 # libtool to hard-code these into programs
9599 ;;
9600
8d138742 9601cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 9602 version_type=windows
9603 shrext_cmds=".dll"
9604 need_version=no
9605 need_lib_prefix=no
9606
9607 case $GCC,$host_os in
8d138742 9608 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d9898ee8 9609 library_names_spec='$libname.dll.a'
9610 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9611 postinstall_cmds='base_file=`basename \${file}`~
8d138742 9612 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d9898ee8 9613 dldir=$destdir/`dirname \$dlpath`~
9614 test -d \$dldir || mkdir -p \$dldir~
9615 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
9616 chmod a+x \$dldir/$dlname~
9617 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9618 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9619 fi'
d9898ee8 9620 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9621 dlpath=$dir/\$dldll~
8d138742 9622 $RM \$dlpath'
d9898ee8 9623 shlibpath_overrides_runpath=yes
9624
9625 case $host_os in
9626 cygwin*)
9627 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9628 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9629 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9630 ;;
8d138742 9631 mingw* | cegcc*)
d9898ee8 9632 # MinGW DLLs use traditional 'lib' prefix
9633 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8d138742
CE
9634 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9635 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
d9898ee8 9636 # It is most probably a Windows format PATH printed by
9637 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9638 # path with ; separators, and with drive letters. We can handle the
9639 # drive letters (cygwin fileutils understands them), so leave them,
9640 # especially as we might pass files found there to a mingw objdump,
9641 # which wouldn't understand a cygwinified path. Ahh.
8d138742 9642 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 9643 else
8d138742 9644 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 9645 fi
9646 ;;
9647 pw32*)
9648 # pw32 DLLs use 'pw' prefix rather than 'lib'
9649 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9650 ;;
9651 esac
9652 ;;
9653
9654 *)
9655 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9656 ;;
9657 esac
9658 dynamic_linker='Win32 ld.exe'
9659 # FIXME: first we should search . and the directory the executable is in
9660 shlibpath_var=PATH
9661 ;;
9662
9663darwin* | rhapsody*)
9664 dynamic_linker="$host_os dyld"
9665 version_type=darwin
9666 need_lib_prefix=no
9667 need_version=no
8d138742 9668 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
d9898ee8 9669 soname_spec='${libname}${release}${major}$shared_ext'
9670 shlibpath_overrides_runpath=yes
9671 shlibpath_var=DYLD_LIBRARY_PATH
9672 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 9673
8d138742 9674 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 9675 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9676 ;;
9677
9678dgux*)
9679 version_type=linux
9680 need_lib_prefix=no
9681 need_version=no
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 shlibpath_var=LD_LIBRARY_PATH
9685 ;;
9686
9687freebsd1*)
9688 dynamic_linker=no
9689 ;;
9690
d9898ee8 9691freebsd* | dragonfly*)
9692 # DragonFly does not have aout. When/if they implement a new
9693 # versioning mechanism, adjust this.
9694 if test -x /usr/bin/objformat; then
9695 objformat=`/usr/bin/objformat`
9696 else
9697 case $host_os in
9698 freebsd[123]*) objformat=aout ;;
9699 *) objformat=elf ;;
9700 esac
9701 fi
9702 version_type=freebsd-$objformat
9703 case $version_type in
9704 freebsd-elf*)
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9706 need_version=no
9707 need_lib_prefix=no
9708 ;;
9709 freebsd-*)
9710 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9711 need_version=yes
9712 ;;
9713 esac
9714 shlibpath_var=LD_LIBRARY_PATH
9715 case $host_os in
9716 freebsd2*)
9717 shlibpath_overrides_runpath=yes
9718 ;;
9719 freebsd3.[01]* | freebsdelf3.[01]*)
9720 shlibpath_overrides_runpath=yes
9721 hardcode_into_libs=yes
9722 ;;
9723 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9724 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9725 shlibpath_overrides_runpath=no
9726 hardcode_into_libs=yes
9727 ;;
ac40fd9e 9728 *) # from 4.6 on, and DragonFly
d9898ee8 9729 shlibpath_overrides_runpath=yes
9730 hardcode_into_libs=yes
9731 ;;
9732 esac
9733 ;;
9734
9735gnu*)
9736 version_type=linux
9737 need_lib_prefix=no
9738 need_version=no
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 shlibpath_var=LD_LIBRARY_PATH
9742 hardcode_into_libs=yes
9743 ;;
9744
9745hpux9* | hpux10* | hpux11*)
9746 # Give a soname corresponding to the major version so that dld.sl refuses to
9747 # link against other versions.
9748 version_type=sunos
9749 need_lib_prefix=no
9750 need_version=no
9751 case $host_cpu in
9752 ia64*)
9753 shrext_cmds='.so'
9754 hardcode_into_libs=yes
9755 dynamic_linker="$host_os dld.so"
9756 shlibpath_var=LD_LIBRARY_PATH
9757 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9759 soname_spec='${libname}${release}${shared_ext}$major'
9760 if test "X$HPUX_IA64_MODE" = X32; then
9761 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9762 else
9763 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9764 fi
9765 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9766 ;;
8d138742
CE
9767 hppa*64*)
9768 shrext_cmds='.sl'
9769 hardcode_into_libs=yes
9770 dynamic_linker="$host_os dld.sl"
9771 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9772 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9774 soname_spec='${libname}${release}${shared_ext}$major'
9775 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9776 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9777 ;;
9778 *)
d9898ee8 9779 shrext_cmds='.sl'
9780 dynamic_linker="$host_os dld.sl"
9781 shlibpath_var=SHLIB_PATH
9782 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9784 soname_spec='${libname}${release}${shared_ext}$major'
9785 ;;
9786 esac
9787 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9788 postinstall_cmds='chmod 555 $lib'
9789 ;;
9790
ac40fd9e 9791interix[3-9]*)
d9898ee8 9792 version_type=linux
9793 need_lib_prefix=no
9794 need_version=no
9795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9796 soname_spec='${libname}${release}${shared_ext}$major'
9797 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9798 shlibpath_var=LD_LIBRARY_PATH
9799 shlibpath_overrides_runpath=no
9800 hardcode_into_libs=yes
9801 ;;
9802
9803irix5* | irix6* | nonstopux*)
9804 case $host_os in
9805 nonstopux*) version_type=nonstopux ;;
9806 *)
9807 if test "$lt_cv_prog_gnu_ld" = yes; then
9808 version_type=linux
9809 else
9810 version_type=irix
9811 fi ;;
9812 esac
9813 need_lib_prefix=no
9814 need_version=no
9815 soname_spec='${libname}${release}${shared_ext}$major'
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9817 case $host_os in
9818 irix5* | nonstopux*)
9819 libsuff= shlibsuff=
9820 ;;
9821 *)
9822 case $LD in # libtool.m4 will add one of these switches to LD
9823 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9824 libsuff= shlibsuff= libmagic=32-bit;;
9825 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9826 libsuff=32 shlibsuff=N32 libmagic=N32;;
9827 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9828 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9829 *) libsuff= shlibsuff= libmagic=never-match;;
9830 esac
9831 ;;
9832 esac
9833 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9834 shlibpath_overrides_runpath=no
9835 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9836 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9837 hardcode_into_libs=yes
9838 ;;
9839
9840# No shared lib support for Linux oldld, aout, or coff.
9841linux*oldld* | linux*aout* | linux*coff*)
9842 dynamic_linker=no
9843 ;;
9844
9845# This must be Linux ELF.
ac40fd9e 9846linux* | k*bsd*-gnu)
d9898ee8 9847 version_type=linux
9848 need_lib_prefix=no
9849 need_version=no
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9851 soname_spec='${libname}${release}${shared_ext}$major'
9852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9853 shlibpath_var=LD_LIBRARY_PATH
9854 shlibpath_overrides_runpath=no
8d138742
CE
9855 # Some binutils ld are patched to set DT_RUNPATH
9856 save_LDFLAGS=$LDFLAGS
9857 save_libdir=$libdir
9858 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9859 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9860 cat >conftest.$ac_ext <<_ACEOF
9861/* confdefs.h. */
9862_ACEOF
9863cat confdefs.h >>conftest.$ac_ext
9864cat >>conftest.$ac_ext <<_ACEOF
9865/* end confdefs.h. */
d9898ee8 9866
8d138742
CE
9867int
9868main ()
9869{
d9898ee8 9870
8d138742
CE
9871 ;
9872 return 0;
9873}
9874_ACEOF
9875rm -f conftest.$ac_objext conftest$ac_exeext
9876if { (ac_try="$ac_link"
9877case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880esac
9881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9882$as_echo "$ac_try_echo") >&5
9883 (eval "$ac_link") 2>conftest.er1
9884 ac_status=$?
9885 grep -v '^ *+' conftest.er1 >conftest.err
9886 rm -f conftest.er1
9887 cat conftest.err >&5
9888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } && {
9890 test -z "$ac_c_werror_flag" ||
9891 test ! -s conftest.err
9892 } && test -s conftest$ac_exeext && {
9893 test "$cross_compiling" = yes ||
9894 $as_test_x conftest$ac_exeext
9895 }; then
9896 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9897 shlibpath_overrides_runpath=yes
9898fi
9899
9900else
9901 $as_echo "$as_me: failed program was:" >&5
9902sed 's/^/| /' conftest.$ac_ext >&5
9903
9904
9905fi
9906
9907rm -rf conftest.dSYM
9908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9909 conftest$ac_exeext conftest.$ac_ext
9910 LDFLAGS=$save_LDFLAGS
9911 libdir=$save_libdir
9912
9913 # This implies no fast_install, which is unacceptable.
9914 # Some rework will be needed to allow for fast_install
9915 # before this can be enabled.
9916 hardcode_into_libs=yes
9917
9918 # Add ABI-specific directories to the system library path.
9919 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9920
9921 # Append ld.so.conf contents to the search path
9922 if test -f /etc/ld.so.conf; then
9923 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' ' '`
9924 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9925 fi
9926
9927 # We used to test for /lib/ld.so.1 and disable shared libraries on
9928 # powerpc, because MkLinux only supported shared libraries with the
9929 # GNU dynamic linker. Since this was broken with cross compilers,
9930 # most powerpc-linux boxes support dynamic linking these days and
9931 # people can always --disable-shared, the test was removed, and we
9932 # assume the GNU/Linux dynamic linker is in use.
9933 dynamic_linker='GNU/Linux ld.so'
9934 ;;
9935
9936netbsd*)
9937 version_type=sunos
9938 need_lib_prefix=no
9939 need_version=no
9940 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9943 dynamic_linker='NetBSD (a.out) ld.so'
9944 else
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9946 soname_spec='${libname}${release}${shared_ext}$major'
9947 dynamic_linker='NetBSD ld.elf_so'
9948 fi
d9898ee8 9949 shlibpath_var=LD_LIBRARY_PATH
9950 shlibpath_overrides_runpath=yes
9951 hardcode_into_libs=yes
9952 ;;
9953
9954newsos6)
9955 version_type=linux
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957 shlibpath_var=LD_LIBRARY_PATH
9958 shlibpath_overrides_runpath=yes
9959 ;;
9960
8d138742
CE
9961*nto* | *qnx*)
9962 version_type=qnx
d9898ee8 9963 need_lib_prefix=no
9964 need_version=no
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
9968 shlibpath_overrides_runpath=no
9969 hardcode_into_libs=yes
9970 dynamic_linker='ldqnx.so'
d9898ee8 9971 ;;
9972
9973openbsd*)
9974 version_type=sunos
9975 sys_lib_dlsearch_path_spec="/usr/lib"
9976 need_lib_prefix=no
9977 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9978 case $host_os in
8d138742
CE
9979 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9980 *) need_version=no ;;
d9898ee8 9981 esac
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9984 shlibpath_var=LD_LIBRARY_PATH
8d138742 9985 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 9986 case $host_os in
9987 openbsd2.[89] | openbsd2.[89].*)
9988 shlibpath_overrides_runpath=no
9989 ;;
9990 *)
9991 shlibpath_overrides_runpath=yes
9992 ;;
9993 esac
9994 else
9995 shlibpath_overrides_runpath=yes
9996 fi
9997 ;;
9998
9999os2*)
10000 libname_spec='$name'
10001 shrext_cmds=".dll"
10002 need_lib_prefix=no
10003 library_names_spec='$libname${shared_ext} $libname.a'
10004 dynamic_linker='OS/2 ld.exe'
10005 shlibpath_var=LIBPATH
10006 ;;
10007
10008osf3* | osf4* | osf5*)
10009 version_type=osf
10010 need_lib_prefix=no
10011 need_version=no
10012 soname_spec='${libname}${release}${shared_ext}$major'
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 shlibpath_var=LD_LIBRARY_PATH
10015 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10016 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10017 ;;
10018
ac40fd9e 10019rdos*)
10020 dynamic_linker=no
10021 ;;
10022
d9898ee8 10023solaris*)
10024 version_type=linux
10025 need_lib_prefix=no
10026 need_version=no
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 shlibpath_var=LD_LIBRARY_PATH
10030 shlibpath_overrides_runpath=yes
10031 hardcode_into_libs=yes
10032 # ldd complains unless libraries are executable
10033 postinstall_cmds='chmod +x $lib'
10034 ;;
10035
10036sunos4*)
10037 version_type=sunos
10038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10039 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10040 shlibpath_var=LD_LIBRARY_PATH
10041 shlibpath_overrides_runpath=yes
10042 if test "$with_gnu_ld" = yes; then
10043 need_lib_prefix=no
10044 fi
10045 need_version=yes
10046 ;;
10047
10048sysv4 | sysv4.3*)
10049 version_type=linux
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 shlibpath_var=LD_LIBRARY_PATH
10053 case $host_vendor in
10054 sni)
10055 shlibpath_overrides_runpath=no
10056 need_lib_prefix=no
d9898ee8 10057 runpath_var=LD_RUN_PATH
10058 ;;
10059 siemens)
10060 need_lib_prefix=no
10061 ;;
10062 motorola)
10063 need_lib_prefix=no
10064 need_version=no
10065 shlibpath_overrides_runpath=no
10066 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10067 ;;
10068 esac
10069 ;;
10070
10071sysv4*MP*)
10072 if test -d /usr/nec ;then
10073 version_type=linux
10074 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10075 soname_spec='$libname${shared_ext}.$major'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 fi
10078 ;;
10079
10080sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10081 version_type=freebsd-elf
10082 need_lib_prefix=no
10083 need_version=no
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10085 soname_spec='${libname}${release}${shared_ext}$major'
10086 shlibpath_var=LD_LIBRARY_PATH
8d138742 10087 shlibpath_overrides_runpath=yes
d9898ee8 10088 hardcode_into_libs=yes
10089 if test "$with_gnu_ld" = yes; then
10090 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 10091 else
10092 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 10093 case $host_os in
10094 sco3.2v5*)
10095 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10096 ;;
10097 esac
10098 fi
10099 sys_lib_dlsearch_path_spec='/usr/lib'
10100 ;;
10101
8d138742
CE
10102tpf*)
10103 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10104 version_type=linux
10105 need_lib_prefix=no
10106 need_version=no
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10108 shlibpath_var=LD_LIBRARY_PATH
10109 shlibpath_overrides_runpath=no
10110 hardcode_into_libs=yes
10111 ;;
10112
d9898ee8 10113uts4*)
10114 version_type=linux
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116 soname_spec='${libname}${release}${shared_ext}$major'
10117 shlibpath_var=LD_LIBRARY_PATH
10118 ;;
10119
10120*)
10121 dynamic_linker=no
10122 ;;
10123esac
8d138742
CE
10124{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10125$as_echo "$dynamic_linker" >&6; }
d9898ee8 10126test "$dynamic_linker" = no && can_build_shared=no
10127
10128variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10129if test "$GCC" = yes; then
10130 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10131fi
10132
8d138742
CE
10133if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10134 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
d9898ee8 10135fi
8d138742
CE
10136if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10137 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
d9898ee8 10138fi
10139
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
d9898ee8 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
d9898ee8 10188
d9898ee8 10189
d9898ee8 10190
d9898ee8 10191
d9898ee8 10192
d9898ee8 10193
d9898ee8 10194
d9898ee8 10195
d9898ee8 10196
d9898ee8 10197
d9898ee8 10198
d9898ee8 10199
d9898ee8 10200
d9898ee8 10201
d9898ee8 10202
d9898ee8 10203
d9898ee8 10204
d9898ee8 10205
d9898ee8 10206
d9898ee8 10207
d9898ee8 10208
d9898ee8 10209
d9898ee8 10210
d9898ee8 10211
d9898ee8 10212
d9898ee8 10213
d9898ee8 10214
d9898ee8 10215
d9898ee8 10216
d9898ee8 10217
d9898ee8 10218
d9898ee8 10219
d9898ee8 10220
d9898ee8 10221
d9898ee8 10222
d9898ee8 10223
d9898ee8 10224
d9898ee8 10225
8d138742
CE
10226 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10227$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10228hardcode_action=
10229if test -n "$hardcode_libdir_flag_spec" ||
10230 test -n "$runpath_var" ||
10231 test "X$hardcode_automatic" = "Xyes" ; then
d9898ee8 10232
8d138742
CE
10233 # We can hardcode non-existent directories.
10234 if test "$hardcode_direct" != no &&
10235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10236 # have to relink, otherwise we might link with an installed library
10237 # when we should be linking with a yet-to-be-installed one
10238 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10239 test "$hardcode_minus_L" != no; then
10240 # Linking always hardcodes the temporary library directory.
10241 hardcode_action=relink
10242 else
10243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10244 hardcode_action=immediate
10245 fi
10246else
10247 # We cannot hardcode anything, or else we can only hardcode existing
10248 # directories.
10249 hardcode_action=unsupported
10250fi
10251{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10252$as_echo "$hardcode_action" >&6; }
d9898ee8 10253
8d138742
CE
10254if test "$hardcode_action" = relink ||
10255 test "$inherit_rpath" = yes; then
10256 # Fast installation is not supported
10257 enable_fast_install=no
10258elif test "$shlibpath_overrides_runpath" = yes ||
10259 test "$enable_shared" = no; then
10260 # Fast installation is not necessary
10261 enable_fast_install=needless
10262fi
d9898ee8 10263
d9898ee8 10264
d9898ee8 10265
d9898ee8 10266
d9898ee8 10267
d9898ee8 10268
8d138742
CE
10269 if test "x$enable_dlopen" != xyes; then
10270 enable_dlopen=unknown
10271 enable_dlopen_self=unknown
10272 enable_dlopen_self_static=unknown
10273else
10274 lt_cv_dlopen=no
10275 lt_cv_dlopen_libs=
d9898ee8 10276
8d138742
CE
10277 case $host_os in
10278 beos*)
10279 lt_cv_dlopen="load_add_on"
10280 lt_cv_dlopen_libs=
10281 lt_cv_dlopen_self=yes
10282 ;;
d9898ee8 10283
8d138742
CE
10284 mingw* | pw32* | cegcc*)
10285 lt_cv_dlopen="LoadLibrary"
10286 lt_cv_dlopen_libs=
10287 ;;
d9898ee8 10288
8d138742
CE
10289 cygwin*)
10290 lt_cv_dlopen="dlopen"
10291 lt_cv_dlopen_libs=
10292 ;;
d9898ee8 10293
8d138742
CE
10294 darwin*)
10295 # if libdl is installed we need to link against it
10296 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10297$as_echo_n "checking for dlopen in -ldl... " >&6; }
10298if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10299 $as_echo_n "(cached) " >&6
10300else
10301 ac_check_lib_save_LIBS=$LIBS
10302LIBS="-ldl $LIBS"
10303cat >conftest.$ac_ext <<_ACEOF
10304/* confdefs.h. */
10305_ACEOF
10306cat confdefs.h >>conftest.$ac_ext
10307cat >>conftest.$ac_ext <<_ACEOF
10308/* end confdefs.h. */
d9898ee8 10309
8d138742
CE
10310/* Override any GCC internal prototype to avoid an error.
10311 Use char because int might match the return type of a GCC
10312 builtin and then its argument prototype would still apply. */
10313#ifdef __cplusplus
10314extern "C"
10315#endif
10316char dlopen ();
10317int
10318main ()
10319{
10320return dlopen ();
10321 ;
10322 return 0;
10323}
10324_ACEOF
10325rm -f conftest.$ac_objext conftest$ac_exeext
10326if { (ac_try="$ac_link"
10327case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330esac
10331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10332$as_echo "$ac_try_echo") >&5
10333 (eval "$ac_link") 2>conftest.er1
10334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && {
10340 test -z "$ac_c_werror_flag" ||
10341 test ! -s conftest.err
10342 } && test -s conftest$ac_exeext && {
10343 test "$cross_compiling" = yes ||
10344 $as_test_x conftest$ac_exeext
10345 }; then
10346 ac_cv_lib_dl_dlopen=yes
10347else
10348 $as_echo "$as_me: failed program was:" >&5
10349sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10350
8d138742
CE
10351 ac_cv_lib_dl_dlopen=no
10352fi
d9898ee8 10353
8d138742
CE
10354rm -rf conftest.dSYM
10355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10356 conftest$ac_exeext conftest.$ac_ext
10357LIBS=$ac_check_lib_save_LIBS
10358fi
10359{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10360$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10361if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10362 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10363else
d9898ee8 10364
8d138742
CE
10365 lt_cv_dlopen="dyld"
10366 lt_cv_dlopen_libs=
10367 lt_cv_dlopen_self=yes
d9898ee8 10368
8d138742 10369fi
d9898ee8 10370
8d138742 10371 ;;
d9898ee8 10372
8d138742
CE
10373 *)
10374 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10375$as_echo_n "checking for shl_load... " >&6; }
10376if test "${ac_cv_func_shl_load+set}" = set; then
10377 $as_echo_n "(cached) " >&6
10378else
10379 cat >conftest.$ac_ext <<_ACEOF
10380/* confdefs.h. */
10381_ACEOF
10382cat confdefs.h >>conftest.$ac_ext
10383cat >>conftest.$ac_ext <<_ACEOF
10384/* end confdefs.h. */
10385/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10387#define shl_load innocuous_shl_load
d9898ee8 10388
8d138742
CE
10389/* System header to define __stub macros and hopefully few prototypes,
10390 which can conflict with char shl_load (); below.
10391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10392 <limits.h> exists even on freestanding compilers. */
d9898ee8 10393
8d138742
CE
10394#ifdef __STDC__
10395# include <limits.h>
10396#else
10397# include <assert.h>
10398#endif
d9898ee8 10399
8d138742 10400#undef shl_load
d9898ee8 10401
8d138742
CE
10402/* Override any GCC internal prototype to avoid an error.
10403 Use char because int might match the return type of a GCC
10404 builtin and then its argument prototype would still apply. */
10405#ifdef __cplusplus
10406extern "C"
10407#endif
10408char shl_load ();
10409/* The GNU C library defines this for functions which it implements
10410 to always fail with ENOSYS. Some functions are actually named
10411 something starting with __ and the normal name is an alias. */
10412#if defined __stub_shl_load || defined __stub___shl_load
10413choke me
10414#endif
d9898ee8 10415
8d138742
CE
10416int
10417main ()
10418{
10419return shl_load ();
10420 ;
10421 return 0;
10422}
10423_ACEOF
10424rm -f conftest.$ac_objext conftest$ac_exeext
10425if { (ac_try="$ac_link"
10426case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10429esac
10430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10431$as_echo "$ac_try_echo") >&5
10432 (eval "$ac_link") 2>conftest.er1
10433 ac_status=$?
10434 grep -v '^ *+' conftest.er1 >conftest.err
10435 rm -f conftest.er1
10436 cat conftest.err >&5
10437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } && {
10439 test -z "$ac_c_werror_flag" ||
10440 test ! -s conftest.err
10441 } && test -s conftest$ac_exeext && {
10442 test "$cross_compiling" = yes ||
10443 $as_test_x conftest$ac_exeext
10444 }; then
10445 ac_cv_func_shl_load=yes
10446else
10447 $as_echo "$as_me: failed program was:" >&5
10448sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10449
8d138742
CE
10450 ac_cv_func_shl_load=no
10451fi
d9898ee8 10452
8d138742
CE
10453rm -rf conftest.dSYM
10454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10455 conftest$ac_exeext conftest.$ac_ext
10456fi
10457{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10458$as_echo "$ac_cv_func_shl_load" >&6; }
10459if test "x$ac_cv_func_shl_load" = x""yes; then
10460 lt_cv_dlopen="shl_load"
10461else
10462 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10463$as_echo_n "checking for shl_load in -ldld... " >&6; }
10464if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10465 $as_echo_n "(cached) " >&6
10466else
10467 ac_check_lib_save_LIBS=$LIBS
10468LIBS="-ldld $LIBS"
10469cat >conftest.$ac_ext <<_ACEOF
10470/* confdefs.h. */
10471_ACEOF
10472cat confdefs.h >>conftest.$ac_ext
10473cat >>conftest.$ac_ext <<_ACEOF
10474/* end confdefs.h. */
d9898ee8 10475
8d138742
CE
10476/* Override any GCC internal prototype to avoid an error.
10477 Use char because int might match the return type of a GCC
10478 builtin and then its argument prototype would still apply. */
10479#ifdef __cplusplus
10480extern "C"
10481#endif
10482char shl_load ();
10483int
10484main ()
10485{
10486return shl_load ();
10487 ;
10488 return 0;
10489}
10490_ACEOF
10491rm -f conftest.$ac_objext conftest$ac_exeext
10492if { (ac_try="$ac_link"
10493case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
d9898ee8 10496esac
8d138742
CE
10497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10498$as_echo "$ac_try_echo") >&5
10499 (eval "$ac_link") 2>conftest.er1
10500 ac_status=$?
10501 grep -v '^ *+' conftest.er1 >conftest.err
10502 rm -f conftest.er1
10503 cat conftest.err >&5
10504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); } && {
10506 test -z "$ac_c_werror_flag" ||
10507 test ! -s conftest.err
10508 } && test -s conftest$ac_exeext && {
10509 test "$cross_compiling" = yes ||
10510 $as_test_x conftest$ac_exeext
10511 }; then
10512 ac_cv_lib_dld_shl_load=yes
10513else
10514 $as_echo "$as_me: failed program was:" >&5
10515sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10516
8d138742
CE
10517 ac_cv_lib_dld_shl_load=no
10518fi
d9898ee8 10519
8d138742
CE
10520rm -rf conftest.dSYM
10521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10522 conftest$ac_exeext conftest.$ac_ext
10523LIBS=$ac_check_lib_save_LIBS
10524fi
10525{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10526$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10527if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10528 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10529else
10530 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10531$as_echo_n "checking for dlopen... " >&6; }
10532if test "${ac_cv_func_dlopen+set}" = set; then
10533 $as_echo_n "(cached) " >&6
10534else
10535 cat >conftest.$ac_ext <<_ACEOF
10536/* confdefs.h. */
10537_ACEOF
10538cat confdefs.h >>conftest.$ac_ext
10539cat >>conftest.$ac_ext <<_ACEOF
10540/* end confdefs.h. */
10541/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10543#define dlopen innocuous_dlopen
d9898ee8 10544
8d138742
CE
10545/* System header to define __stub macros and hopefully few prototypes,
10546 which can conflict with char dlopen (); below.
10547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10548 <limits.h> exists even on freestanding compilers. */
d9898ee8 10549
8d138742
CE
10550#ifdef __STDC__
10551# include <limits.h>
10552#else
10553# include <assert.h>
10554#endif
d9898ee8 10555
8d138742 10556#undef dlopen
d9898ee8 10557
8d138742
CE
10558/* Override any GCC internal prototype to avoid an error.
10559 Use char because int might match the return type of a GCC
10560 builtin and then its argument prototype would still apply. */
10561#ifdef __cplusplus
10562extern "C"
10563#endif
10564char dlopen ();
10565/* The GNU C library defines this for functions which it implements
10566 to always fail with ENOSYS. Some functions are actually named
10567 something starting with __ and the normal name is an alias. */
10568#if defined __stub_dlopen || defined __stub___dlopen
10569choke me
10570#endif
d9898ee8 10571
8d138742
CE
10572int
10573main ()
10574{
10575return dlopen ();
10576 ;
10577 return 0;
10578}
10579_ACEOF
10580rm -f conftest.$ac_objext conftest$ac_exeext
10581if { (ac_try="$ac_link"
10582case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
d9898ee8 10585esac
8d138742
CE
10586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10587$as_echo "$ac_try_echo") >&5
10588 (eval "$ac_link") 2>conftest.er1
10589 ac_status=$?
10590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
10593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } && {
10595 test -z "$ac_c_werror_flag" ||
10596 test ! -s conftest.err
10597 } && test -s conftest$ac_exeext && {
10598 test "$cross_compiling" = yes ||
10599 $as_test_x conftest$ac_exeext
10600 }; then
10601 ac_cv_func_dlopen=yes
10602else
10603 $as_echo "$as_me: failed program was:" >&5
10604sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10605
8d138742 10606 ac_cv_func_dlopen=no
d9898ee8 10607fi
10608
8d138742
CE
10609rm -rf conftest.dSYM
10610rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10611 conftest$ac_exeext conftest.$ac_ext
10612fi
10613{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10614$as_echo "$ac_cv_func_dlopen" >&6; }
10615if test "x$ac_cv_func_dlopen" = x""yes; then
10616 lt_cv_dlopen="dlopen"
10617else
10618 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10619$as_echo_n "checking for dlopen in -ldl... " >&6; }
10620if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10621 $as_echo_n "(cached) " >&6
10622else
10623 ac_check_lib_save_LIBS=$LIBS
10624LIBS="-ldl $LIBS"
10625cat >conftest.$ac_ext <<_ACEOF
10626/* confdefs.h. */
10627_ACEOF
10628cat confdefs.h >>conftest.$ac_ext
10629cat >>conftest.$ac_ext <<_ACEOF
10630/* end confdefs.h. */
d9898ee8 10631
8d138742
CE
10632/* Override any GCC internal prototype to avoid an error.
10633 Use char because int might match the return type of a GCC
10634 builtin and then its argument prototype would still apply. */
10635#ifdef __cplusplus
10636extern "C"
10637#endif
10638char dlopen ();
10639int
10640main ()
10641{
10642return dlopen ();
10643 ;
10644 return 0;
10645}
10646_ACEOF
10647rm -f conftest.$ac_objext conftest$ac_exeext
10648if { (ac_try="$ac_link"
10649case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652esac
10653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10654$as_echo "$ac_try_echo") >&5
10655 (eval "$ac_link") 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } && {
10662 test -z "$ac_c_werror_flag" ||
10663 test ! -s conftest.err
10664 } && test -s conftest$ac_exeext && {
10665 test "$cross_compiling" = yes ||
10666 $as_test_x conftest$ac_exeext
10667 }; then
10668 ac_cv_lib_dl_dlopen=yes
d9898ee8 10669else
8d138742
CE
10670 $as_echo "$as_me: failed program was:" >&5
10671sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10672
8d138742 10673 ac_cv_lib_dl_dlopen=no
d9898ee8 10674fi
10675
8d138742
CE
10676rm -rf conftest.dSYM
10677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10678 conftest$ac_exeext conftest.$ac_ext
10679LIBS=$ac_check_lib_save_LIBS
10680fi
10681{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10682$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10683if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10685else
10686 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10687$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10688if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10689 $as_echo_n "(cached) " >&6
10690else
10691 ac_check_lib_save_LIBS=$LIBS
10692LIBS="-lsvld $LIBS"
10693cat >conftest.$ac_ext <<_ACEOF
10694/* confdefs.h. */
10695_ACEOF
10696cat confdefs.h >>conftest.$ac_ext
10697cat >>conftest.$ac_ext <<_ACEOF
10698/* end confdefs.h. */
d9898ee8 10699
8d138742
CE
10700/* Override any GCC internal prototype to avoid an error.
10701 Use char because int might match the return type of a GCC
10702 builtin and then its argument prototype would still apply. */
10703#ifdef __cplusplus
10704extern "C"
10705#endif
10706char dlopen ();
10707int
10708main ()
10709{
10710return dlopen ();
10711 ;
10712 return 0;
10713}
10714_ACEOF
10715rm -f conftest.$ac_objext conftest$ac_exeext
10716if { (ac_try="$ac_link"
10717case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10720esac
10721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10722$as_echo "$ac_try_echo") >&5
10723 (eval "$ac_link") 2>conftest.er1
10724 ac_status=$?
10725 grep -v '^ *+' conftest.er1 >conftest.err
10726 rm -f conftest.er1
10727 cat conftest.err >&5
10728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } && {
10730 test -z "$ac_c_werror_flag" ||
10731 test ! -s conftest.err
10732 } && test -s conftest$ac_exeext && {
10733 test "$cross_compiling" = yes ||
10734 $as_test_x conftest$ac_exeext
10735 }; then
10736 ac_cv_lib_svld_dlopen=yes
10737else
10738 $as_echo "$as_me: failed program was:" >&5
10739sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10740
8d138742
CE
10741 ac_cv_lib_svld_dlopen=no
10742fi
d9898ee8 10743
8d138742
CE
10744rm -rf conftest.dSYM
10745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10746 conftest$ac_exeext conftest.$ac_ext
10747LIBS=$ac_check_lib_save_LIBS
10748fi
10749{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10750$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10751if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10752 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10753else
10754 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10755$as_echo_n "checking for dld_link in -ldld... " >&6; }
10756if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10757 $as_echo_n "(cached) " >&6
10758else
10759 ac_check_lib_save_LIBS=$LIBS
10760LIBS="-ldld $LIBS"
10761cat >conftest.$ac_ext <<_ACEOF
10762/* confdefs.h. */
10763_ACEOF
10764cat confdefs.h >>conftest.$ac_ext
10765cat >>conftest.$ac_ext <<_ACEOF
10766/* end confdefs.h. */
d9898ee8 10767
8d138742
CE
10768/* Override any GCC internal prototype to avoid an error.
10769 Use char because int might match the return type of a GCC
10770 builtin and then its argument prototype would still apply. */
10771#ifdef __cplusplus
10772extern "C"
10773#endif
10774char dld_link ();
10775int
10776main ()
10777{
10778return dld_link ();
10779 ;
10780 return 0;
10781}
10782_ACEOF
10783rm -f conftest.$ac_objext conftest$ac_exeext
10784if { (ac_try="$ac_link"
10785case "(($ac_try" in
10786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787 *) ac_try_echo=$ac_try;;
10788esac
10789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10790$as_echo "$ac_try_echo") >&5
10791 (eval "$ac_link") 2>conftest.er1
10792 ac_status=$?
10793 grep -v '^ *+' conftest.er1 >conftest.err
10794 rm -f conftest.er1
10795 cat conftest.err >&5
10796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } && {
10798 test -z "$ac_c_werror_flag" ||
10799 test ! -s conftest.err
10800 } && test -s conftest$ac_exeext && {
10801 test "$cross_compiling" = yes ||
10802 $as_test_x conftest$ac_exeext
10803 }; then
10804 ac_cv_lib_dld_dld_link=yes
10805else
10806 $as_echo "$as_me: failed program was:" >&5
10807sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10808
8d138742
CE
10809 ac_cv_lib_dld_dld_link=no
10810fi
d9898ee8 10811
8d138742
CE
10812rm -rf conftest.dSYM
10813rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10814 conftest$ac_exeext conftest.$ac_ext
10815LIBS=$ac_check_lib_save_LIBS
10816fi
10817{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10818$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10819if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10820 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10821fi
d9898ee8 10822
d9898ee8 10823
8d138742 10824fi
d9898ee8 10825
d9898ee8 10826
8d138742 10827fi
d9898ee8 10828
d9898ee8 10829
8d138742 10830fi
d9898ee8 10831
d9898ee8 10832
8d138742 10833fi
d9898ee8 10834
d9898ee8 10835
8d138742 10836fi
d9898ee8 10837
8d138742
CE
10838 ;;
10839 esac
d9898ee8 10840
8d138742
CE
10841 if test "x$lt_cv_dlopen" != xno; then
10842 enable_dlopen=yes
10843 else
10844 enable_dlopen=no
10845 fi
d9898ee8 10846
8d138742
CE
10847 case $lt_cv_dlopen in
10848 dlopen)
10849 save_CPPFLAGS="$CPPFLAGS"
10850 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d9898ee8 10851
8d138742
CE
10852 save_LDFLAGS="$LDFLAGS"
10853 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9898ee8 10854
8d138742
CE
10855 save_LIBS="$LIBS"
10856 LIBS="$lt_cv_dlopen_libs $LIBS"
d9898ee8 10857
8d138742
CE
10858 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10859$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10860if test "${lt_cv_dlopen_self+set}" = set; then
10861 $as_echo_n "(cached) " >&6
10862else
10863 if test "$cross_compiling" = yes; then :
10864 lt_cv_dlopen_self=cross
10865else
10866 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10867 lt_status=$lt_dlunknown
10868 cat > conftest.$ac_ext <<_LT_EOF
10869#line 10869 "configure"
10870#include "confdefs.h"
d9898ee8 10871
8d138742
CE
10872#if HAVE_DLFCN_H
10873#include <dlfcn.h>
10874#endif
d9898ee8 10875
8d138742 10876#include <stdio.h>
d9898ee8 10877
8d138742
CE
10878#ifdef RTLD_GLOBAL
10879# define LT_DLGLOBAL RTLD_GLOBAL
10880#else
10881# ifdef DL_GLOBAL
10882# define LT_DLGLOBAL DL_GLOBAL
10883# else
10884# define LT_DLGLOBAL 0
10885# endif
10886#endif
d9898ee8 10887
8d138742
CE
10888/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10889 find out it does not work in some platform. */
10890#ifndef LT_DLLAZY_OR_NOW
10891# ifdef RTLD_LAZY
10892# define LT_DLLAZY_OR_NOW RTLD_LAZY
10893# else
10894# ifdef DL_LAZY
10895# define LT_DLLAZY_OR_NOW DL_LAZY
10896# else
10897# ifdef RTLD_NOW
10898# define LT_DLLAZY_OR_NOW RTLD_NOW
10899# else
10900# ifdef DL_NOW
10901# define LT_DLLAZY_OR_NOW DL_NOW
10902# else
10903# define LT_DLLAZY_OR_NOW 0
10904# endif
10905# endif
10906# endif
10907# endif
10908#endif
d9898ee8 10909
8d138742
CE
10910void fnord() { int i=42;}
10911int main ()
10912{
10913 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10914 int status = $lt_dlunknown;
d9898ee8 10915
8d138742
CE
10916 if (self)
10917 {
10918 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10919 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10920 /* dlclose (self); */
10921 }
10922 else
10923 puts (dlerror ());
d9898ee8 10924
8d138742
CE
10925 return status;
10926}
10927_LT_EOF
10928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10929 (eval $ac_link) 2>&5
10930 ac_status=$?
10931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10933 (./conftest; exit; ) >&5 2>/dev/null
10934 lt_status=$?
10935 case x$lt_status in
10936 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10937 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10938 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10939 esac
10940 else :
10941 # compilation failed
10942 lt_cv_dlopen_self=no
10943 fi
10944fi
10945rm -fr conftest*
d9898ee8 10946
d9898ee8 10947
8d138742
CE
10948fi
10949{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10950$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 10951
8d138742
CE
10952 if test "x$lt_cv_dlopen_self" = xyes; then
10953 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10954 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10955$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10956if test "${lt_cv_dlopen_self_static+set}" = set; then
10957 $as_echo_n "(cached) " >&6
10958else
10959 if test "$cross_compiling" = yes; then :
10960 lt_cv_dlopen_self_static=cross
10961else
10962 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10963 lt_status=$lt_dlunknown
10964 cat > conftest.$ac_ext <<_LT_EOF
10965#line 10965 "configure"
10966#include "confdefs.h"
d9898ee8 10967
8d138742
CE
10968#if HAVE_DLFCN_H
10969#include <dlfcn.h>
10970#endif
d9898ee8 10971
8d138742 10972#include <stdio.h>
d9898ee8 10973
8d138742
CE
10974#ifdef RTLD_GLOBAL
10975# define LT_DLGLOBAL RTLD_GLOBAL
10976#else
10977# ifdef DL_GLOBAL
10978# define LT_DLGLOBAL DL_GLOBAL
10979# else
10980# define LT_DLGLOBAL 0
10981# endif
10982#endif
d9898ee8 10983
8d138742
CE
10984/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10985 find out it does not work in some platform. */
10986#ifndef LT_DLLAZY_OR_NOW
10987# ifdef RTLD_LAZY
10988# define LT_DLLAZY_OR_NOW RTLD_LAZY
10989# else
10990# ifdef DL_LAZY
10991# define LT_DLLAZY_OR_NOW DL_LAZY
10992# else
10993# ifdef RTLD_NOW
10994# define LT_DLLAZY_OR_NOW RTLD_NOW
10995# else
10996# ifdef DL_NOW
10997# define LT_DLLAZY_OR_NOW DL_NOW
10998# else
10999# define LT_DLLAZY_OR_NOW 0
11000# endif
11001# endif
11002# endif
11003# endif
11004#endif
d9898ee8 11005
8d138742
CE
11006void fnord() { int i=42;}
11007int main ()
11008{
11009 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11010 int status = $lt_dlunknown;
d9898ee8 11011
8d138742
CE
11012 if (self)
11013 {
11014 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11015 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11016 /* dlclose (self); */
11017 }
11018 else
11019 puts (dlerror ());
d9898ee8 11020
8d138742
CE
11021 return status;
11022}
11023_LT_EOF
11024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11025 (eval $ac_link) 2>&5
11026 ac_status=$?
11027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11029 (./conftest; exit; ) >&5 2>/dev/null
11030 lt_status=$?
11031 case x$lt_status in
11032 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11033 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11034 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11035 esac
11036 else :
11037 # compilation failed
11038 lt_cv_dlopen_self_static=no
11039 fi
11040fi
11041rm -fr conftest*
d9898ee8 11042
d9898ee8 11043
8d138742
CE
11044fi
11045{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11046$as_echo "$lt_cv_dlopen_self_static" >&6; }
11047 fi
d9898ee8 11048
8d138742
CE
11049 CPPFLAGS="$save_CPPFLAGS"
11050 LDFLAGS="$save_LDFLAGS"
11051 LIBS="$save_LIBS"
11052 ;;
11053 esac
d9898ee8 11054
8d138742
CE
11055 case $lt_cv_dlopen_self in
11056 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11057 *) enable_dlopen_self=unknown ;;
11058 esac
d9898ee8 11059
8d138742
CE
11060 case $lt_cv_dlopen_self_static in
11061 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11062 *) enable_dlopen_self_static=unknown ;;
11063 esac
11064fi
d9898ee8 11065
d9898ee8 11066
d9898ee8 11067
d9898ee8 11068
d9898ee8 11069
d9898ee8 11070
d9898ee8 11071
d9898ee8 11072
d9898ee8 11073
d9898ee8 11074
d9898ee8 11075
d9898ee8 11076
d9898ee8 11077
d9898ee8 11078
d9898ee8 11079
d9898ee8 11080
d9898ee8 11081
8d138742
CE
11082striplib=
11083old_striplib=
11084{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11085$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11086if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11087 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11088 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11089 { $as_echo "$as_me:$LINENO: result: yes" >&5
11090$as_echo "yes" >&6; }
11091else
11092# FIXME - insert some real tests, host_os isn't really good enough
11093 case $host_os in
11094 darwin*)
11095 if test -n "$STRIP" ; then
11096 striplib="$STRIP -x"
11097 old_striplib="$STRIP -S"
11098 { $as_echo "$as_me:$LINENO: result: yes" >&5
11099$as_echo "yes" >&6; }
11100 else
11101 { $as_echo "$as_me:$LINENO: result: no" >&5
11102$as_echo "no" >&6; }
11103 fi
11104 ;;
11105 *)
11106 { $as_echo "$as_me:$LINENO: result: no" >&5
11107$as_echo "no" >&6; }
11108 ;;
11109 esac
11110fi
d9898ee8 11111
d9898ee8 11112
d9898ee8 11113
d9898ee8 11114
d9898ee8 11115
d9898ee8 11116
d9898ee8 11117
d9898ee8 11118
d9898ee8 11119
d9898ee8 11120
d9898ee8 11121
d9898ee8 11122
8d138742
CE
11123 # Report which library types will actually be built
11124 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11125$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11126 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11127$as_echo "$can_build_shared" >&6; }
d9898ee8 11128
8d138742
CE
11129 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11130$as_echo_n "checking whether to build shared libraries... " >&6; }
11131 test "$can_build_shared" = "no" && enable_shared=no
d9898ee8 11132
8d138742
CE
11133 # On AIX, shared libraries and static libraries use the same namespace, and
11134 # are all built from PIC.
11135 case $host_os in
11136 aix3*)
11137 test "$enable_shared" = yes && enable_static=no
11138 if test -n "$RANLIB"; then
11139 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11140 postinstall_cmds='$RANLIB $lib'
11141 fi
11142 ;;
d9898ee8 11143
8d138742
CE
11144 aix[4-9]*)
11145 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11146 test "$enable_shared" = yes && enable_static=no
11147 fi
11148 ;;
11149 esac
11150 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11151$as_echo "$enable_shared" >&6; }
d9898ee8 11152
8d138742
CE
11153 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11154$as_echo_n "checking whether to build static libraries... " >&6; }
11155 # Make sure either enable_shared or enable_static is yes.
11156 test "$enable_shared" = yes || enable_static=yes
11157 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11158$as_echo "$enable_static" >&6; }
d9898ee8 11159
11160
d9898ee8 11161
11162
8d138742 11163fi
d9898ee8 11164ac_ext=c
11165ac_cpp='$CPP $CPPFLAGS'
11166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11168ac_compiler_gnu=$ac_cv_c_compiler_gnu
11169
11170CC="$lt_save_CC"
11171
d9898ee8 11172
d9898ee8 11173
11174
d9898ee8 11175
d9898ee8 11176
d9898ee8 11177
d9898ee8 11178
d9898ee8 11179
d9898ee8 11180
d9898ee8 11181
d9898ee8 11182
11183
8d138742 11184 ac_config_commands="$ac_config_commands libtool"
d9898ee8 11185
d9898ee8 11186
11187
d9898ee8 11188
8d138742 11189# Only expand once:
d9898ee8 11190
d9898ee8 11191
d9898ee8 11192
8d138742
CE
11193if test "$GCC" = yes
11194then
11195 CFLAGS="-Wall $CFLAGS"
11196fi
d9898ee8 11197
8d138742 11198CPPFLAGS="$CPPFLAGS -I$srcdir/.. -I.."
d9898ee8 11199
d9898ee8 11200
8d138742
CE
11201{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11202$as_echo_n "checking for ANSI C header files... " >&6; }
11203if test "${ac_cv_header_stdc+set}" = set; then
11204 $as_echo_n "(cached) " >&6
11205else
11206 cat >conftest.$ac_ext <<_ACEOF
11207/* confdefs.h. */
11208_ACEOF
11209cat confdefs.h >>conftest.$ac_ext
11210cat >>conftest.$ac_ext <<_ACEOF
11211/* end confdefs.h. */
11212#include <stdlib.h>
11213#include <stdarg.h>
11214#include <string.h>
11215#include <float.h>
d9898ee8 11216
8d138742
CE
11217int
11218main ()
11219{
d9898ee8 11220
8d138742
CE
11221 ;
11222 return 0;
11223}
11224_ACEOF
11225rm -f conftest.$ac_objext
11226if { (ac_try="$ac_compile"
11227case "(($ac_try" in
11228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11229 *) ac_try_echo=$ac_try;;
11230esac
11231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11232$as_echo "$ac_try_echo") >&5
11233 (eval "$ac_compile") 2>conftest.er1
11234 ac_status=$?
11235 grep -v '^ *+' conftest.er1 >conftest.err
11236 rm -f conftest.er1
11237 cat conftest.err >&5
11238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } && {
11240 test -z "$ac_c_werror_flag" ||
11241 test ! -s conftest.err
11242 } && test -s conftest.$ac_objext; then
11243 ac_cv_header_stdc=yes
11244else
11245 $as_echo "$as_me: failed program was:" >&5
11246sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11247
8d138742
CE
11248 ac_cv_header_stdc=no
11249fi
d9898ee8 11250
8d138742 11251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 11252
8d138742
CE
11253if test $ac_cv_header_stdc = yes; then
11254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11255 cat >conftest.$ac_ext <<_ACEOF
11256/* confdefs.h. */
11257_ACEOF
11258cat confdefs.h >>conftest.$ac_ext
11259cat >>conftest.$ac_ext <<_ACEOF
11260/* end confdefs.h. */
11261#include <string.h>
d9898ee8 11262
8d138742
CE
11263_ACEOF
11264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11265 $EGREP "memchr" >/dev/null 2>&1; then
11266 :
11267else
11268 ac_cv_header_stdc=no
11269fi
11270rm -f conftest*
d9898ee8 11271
8d138742 11272fi
d9898ee8 11273
8d138742
CE
11274if test $ac_cv_header_stdc = yes; then
11275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11276 cat >conftest.$ac_ext <<_ACEOF
11277/* confdefs.h. */
11278_ACEOF
11279cat confdefs.h >>conftest.$ac_ext
11280cat >>conftest.$ac_ext <<_ACEOF
11281/* end confdefs.h. */
11282#include <stdlib.h>
d9898ee8 11283
8d138742
CE
11284_ACEOF
11285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11286 $EGREP "free" >/dev/null 2>&1; then
11287 :
11288else
11289 ac_cv_header_stdc=no
11290fi
11291rm -f conftest*
d9898ee8 11292
8d138742 11293fi
d9898ee8 11294
8d138742
CE
11295if test $ac_cv_header_stdc = yes; then
11296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11297 if test "$cross_compiling" = yes; then
11298 :
11299else
11300 cat >conftest.$ac_ext <<_ACEOF
11301/* confdefs.h. */
11302_ACEOF
11303cat confdefs.h >>conftest.$ac_ext
11304cat >>conftest.$ac_ext <<_ACEOF
11305/* end confdefs.h. */
11306#include <ctype.h>
11307#include <stdlib.h>
11308#if ((' ' & 0x0FF) == 0x020)
11309# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11310# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11311#else
11312# define ISLOWER(c) \
11313 (('a' <= (c) && (c) <= 'i') \
11314 || ('j' <= (c) && (c) <= 'r') \
11315 || ('s' <= (c) && (c) <= 'z'))
11316# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11317#endif
d9898ee8 11318
8d138742
CE
11319#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11320int
11321main ()
11322{
11323 int i;
11324 for (i = 0; i < 256; i++)
11325 if (XOR (islower (i), ISLOWER (i))
11326 || toupper (i) != TOUPPER (i))
11327 return 2;
11328 return 0;
11329}
11330_ACEOF
11331rm -f conftest$ac_exeext
11332if { (ac_try="$ac_link"
11333case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 *) ac_try_echo=$ac_try;;
11336esac
11337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11338$as_echo "$ac_try_echo") >&5
11339 (eval "$ac_link") 2>&5
11340 ac_status=$?
11341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11343 { (case "(($ac_try" in
11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11346esac
11347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11348$as_echo "$ac_try_echo") >&5
11349 (eval "$ac_try") 2>&5
11350 ac_status=$?
11351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }; then
11353 :
11354else
11355 $as_echo "$as_me: program exited with status $ac_status" >&5
11356$as_echo "$as_me: failed program was:" >&5
11357sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11358
8d138742
CE
11359( exit $ac_status )
11360ac_cv_header_stdc=no
11361fi
11362rm -rf conftest.dSYM
11363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11364fi
d9898ee8 11365
d9898ee8 11366
8d138742
CE
11367fi
11368fi
11369{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11370$as_echo "$ac_cv_header_stdc" >&6; }
11371if test $ac_cv_header_stdc = yes; then
d9898ee8 11372
8d138742
CE
11373cat >>confdefs.h <<\_ACEOF
11374#define STDC_HEADERS 1
11375_ACEOF
d9898ee8 11376
8d138742 11377fi
d9898ee8 11378
d9898ee8 11379
8d138742
CE
11380{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11381$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11382if test "${ac_cv_c_const+set}" = set; then
11383 $as_echo_n "(cached) " >&6
11384else
11385 cat >conftest.$ac_ext <<_ACEOF
11386/* confdefs.h. */
11387_ACEOF
11388cat confdefs.h >>conftest.$ac_ext
11389cat >>conftest.$ac_ext <<_ACEOF
11390/* end confdefs.h. */
d9898ee8 11391
8d138742
CE
11392int
11393main ()
11394{
11395/* FIXME: Include the comments suggested by Paul. */
11396#ifndef __cplusplus
11397 /* Ultrix mips cc rejects this. */
11398 typedef int charset[2];
11399 const charset cs;
11400 /* SunOS 4.1.1 cc rejects this. */
11401 char const *const *pcpcc;
11402 char **ppc;
11403 /* NEC SVR4.0.2 mips cc rejects this. */
11404 struct point {int x, y;};
11405 static struct point const zero = {0,0};
11406 /* AIX XL C 1.02.0.0 rejects this.
11407 It does not let you subtract one const X* pointer from another in
11408 an arm of an if-expression whose if-part is not a constant
11409 expression */
11410 const char *g = "string";
11411 pcpcc = &g + (g ? g-g : 0);
11412 /* HPUX 7.0 cc rejects these. */
11413 ++pcpcc;
11414 ppc = (char**) pcpcc;
11415 pcpcc = (char const *const *) ppc;
11416 { /* SCO 3.2v4 cc rejects this. */
11417 char *t;
11418 char const *s = 0 ? (char *) 0 : (char const *) 0;
d9898ee8 11419
8d138742
CE
11420 *t++ = 0;
11421 if (s) return 0;
11422 }
11423 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11424 int x[] = {25, 17};
11425 const int *foo = &x[0];
11426 ++foo;
11427 }
11428 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11429 typedef const int *iptr;
11430 iptr p = 0;
11431 ++p;
11432 }
11433 { /* AIX XL C 1.02.0.0 rejects this saying
11434 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11435 struct s { int j; const int *ap[3]; };
11436 struct s *b; b->j = 5;
11437 }
11438 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11439 const int foo = 10;
11440 if (!foo) return 0;
11441 }
11442 return !cs[0] && !zero.x;
11443#endif
d9898ee8 11444
8d138742
CE
11445 ;
11446 return 0;
11447}
11448_ACEOF
11449rm -f conftest.$ac_objext
11450if { (ac_try="$ac_compile"
11451case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11454esac
11455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11456$as_echo "$ac_try_echo") >&5
11457 (eval "$ac_compile") 2>conftest.er1
11458 ac_status=$?
11459 grep -v '^ *+' conftest.er1 >conftest.err
11460 rm -f conftest.er1
11461 cat conftest.err >&5
11462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } && {
11464 test -z "$ac_c_werror_flag" ||
11465 test ! -s conftest.err
11466 } && test -s conftest.$ac_objext; then
11467 ac_cv_c_const=yes
11468else
11469 $as_echo "$as_me: failed program was:" >&5
11470sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11471
8d138742
CE
11472 ac_cv_c_const=no
11473fi
d9898ee8 11474
8d138742
CE
11475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11476fi
11477{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11478$as_echo "$ac_cv_c_const" >&6; }
11479if test $ac_cv_c_const = no; then
d9898ee8 11480
8d138742
CE
11481cat >>confdefs.h <<\_ACEOF
11482#define const /**/
11483_ACEOF
d9898ee8 11484
8d138742 11485fi
d9898ee8 11486
8d138742
CE
11487{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
11488$as_echo_n "checking for size_t... " >&6; }
11489if test "${ac_cv_type_size_t+set}" = set; then
11490 $as_echo_n "(cached) " >&6
11491else
11492 ac_cv_type_size_t=no
11493cat >conftest.$ac_ext <<_ACEOF
11494/* confdefs.h. */
11495_ACEOF
11496cat confdefs.h >>conftest.$ac_ext
11497cat >>conftest.$ac_ext <<_ACEOF
11498/* end confdefs.h. */
11499$ac_includes_default
11500int
11501main ()
11502{
11503if (sizeof (size_t))
11504 return 0;
11505 ;
11506 return 0;
11507}
11508_ACEOF
11509rm -f conftest.$ac_objext
11510if { (ac_try="$ac_compile"
11511case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11514esac
11515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11516$as_echo "$ac_try_echo") >&5
11517 (eval "$ac_compile") 2>conftest.er1
11518 ac_status=$?
11519 grep -v '^ *+' conftest.er1 >conftest.err
11520 rm -f conftest.er1
11521 cat conftest.err >&5
11522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } && {
11524 test -z "$ac_c_werror_flag" ||
11525 test ! -s conftest.err
11526 } && test -s conftest.$ac_objext; then
11527 cat >conftest.$ac_ext <<_ACEOF
11528/* confdefs.h. */
11529_ACEOF
11530cat confdefs.h >>conftest.$ac_ext
11531cat >>conftest.$ac_ext <<_ACEOF
11532/* end confdefs.h. */
11533$ac_includes_default
11534int
11535main ()
11536{
11537if (sizeof ((size_t)))
11538 return 0;
11539 ;
11540 return 0;
11541}
11542_ACEOF
11543rm -f conftest.$ac_objext
11544if { (ac_try="$ac_compile"
11545case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11548esac
11549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11550$as_echo "$ac_try_echo") >&5
11551 (eval "$ac_compile") 2>conftest.er1
11552 ac_status=$?
11553 grep -v '^ *+' conftest.er1 >conftest.err
11554 rm -f conftest.er1
11555 cat conftest.err >&5
11556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } && {
11558 test -z "$ac_c_werror_flag" ||
11559 test ! -s conftest.err
11560 } && test -s conftest.$ac_objext; then
11561 :
11562else
11563 $as_echo "$as_me: failed program was:" >&5
11564sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11565
8d138742
CE
11566 ac_cv_type_size_t=yes
11567fi
d9898ee8 11568
8d138742
CE
11569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11570else
11571 $as_echo "$as_me: failed program was:" >&5
11572sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11573
d9898ee8 11574
8d138742 11575fi
d9898ee8 11576
8d138742
CE
11577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11578fi
11579{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11580$as_echo "$ac_cv_type_size_t" >&6; }
11581if test "x$ac_cv_type_size_t" = x""yes; then
11582 :
11583else
d9898ee8 11584
8d138742
CE
11585cat >>confdefs.h <<_ACEOF
11586#define size_t unsigned int
11587_ACEOF
d9898ee8 11588
8d138742 11589fi
d9898ee8 11590
d9898ee8 11591
d9898ee8 11592
d9898ee8 11593
8d138742 11594TESTPROGS=""
d9898ee8 11595
8d138742 11596hmac_list=""
d9898ee8 11597
8d138742
CE
11598hashlibs=""
11599if test -d ${srcdir}/../md5
11600then
11601 TESTPROGS="$TESTPROGS md5hmactest${EXEEXT}"
11602 hmac_list="$hmac_list &hmac_md5,"
11603 hashlibs="$hashlibs ../md5/libmd5.la"
11604fi
d9898ee8 11605
8d138742
CE
11606if test -d ${srcdir}/../sha1
11607then
11608 TESTPROGS="$TESTPROGS sha1hmactest${EXEEXT}"
11609 hmac_list="$hmac_list &hmac_sha1, &hmac_sha256, "
11610 hashlibs="$hashlibs ../sha1/libsha1.la"
11611fi
d9898ee8 11612
d9898ee8 11613
8d138742 11614hmac_list="$hmac_list 0"
d9898ee8 11615
d9898ee8 11616
d9898ee8 11617
8d138742
CE
11618cat >>confdefs.h <<_ACEOF
11619#define HMAC_LIST $hmac_list
11620_ACEOF
d9898ee8 11621
d9898ee8 11622
8d138742 11623ac_config_files="$ac_config_files Makefile"
d9898ee8 11624
8d138742
CE
11625cat >confcache <<\_ACEOF
11626# This file is a shell script that caches the results of configure
11627# tests run on this system so they can be shared between configure
11628# scripts and configure runs, see configure's option --config-cache.
11629# It is not useful on other systems. If it contains results you don't
11630# want to keep, you may remove or edit it.
11631#
11632# config.status only pays attention to the cache file if you give it
11633# the --recheck option to rerun configure.
11634#
11635# `ac_cv_env_foo' variables (set or unset) will be overridden when
11636# loading this file, other *unset* `ac_cv_foo' will be assigned the
11637# following values.
d9898ee8 11638
8d138742 11639_ACEOF
d9898ee8 11640
8d138742
CE
11641# The following way of writing the cache mishandles newlines in values,
11642# but we know of no workaround that is simple, portable, and efficient.
11643# So, we kill variables containing newlines.
11644# Ultrix sh set writes to stderr and can't be redirected directly,
11645# and sets the high bit in the cache file unless we assign to the vars.
11646(
11647 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11648 eval ac_val=\$$ac_var
11649 case $ac_val in #(
11650 *${as_nl}*)
11651 case $ac_var in #(
11652 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11653$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11654 esac
11655 case $ac_var in #(
11656 _ | IFS | as_nl) ;; #(
11657 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11658 *) $as_unset $ac_var ;;
11659 esac ;;
11660 esac
11661 done
d9898ee8 11662
8d138742
CE
11663 (set) 2>&1 |
11664 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11665 *${as_nl}ac_space=\ *)
11666 # `set' does not quote correctly, so add quotes (double-quote
11667 # substitution turns \\\\ into \\, and sed turns \\ into \).
11668 sed -n \
11669 "s/'/'\\\\''/g;
11670 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11671 ;; #(
11672 *)
11673 # `set' quotes correctly as required by POSIX, so do not add quotes.
11674 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11675 ;;
11676 esac |
11677 sort
11678) |
11679 sed '
11680 /^ac_cv_env_/b end
11681 t clear
11682 :clear
11683 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11684 t end
11685 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11686 :end' >>confcache
11687if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11688 if test -w "$cache_file"; then
11689 test "x$cache_file" != "x/dev/null" &&
11690 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11691$as_echo "$as_me: updating cache $cache_file" >&6;}
11692 cat confcache >$cache_file
11693 else
11694 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11695$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11696 fi
11697fi
11698rm -f confcache
d9898ee8 11699
8d138742
CE
11700test "x$prefix" = xNONE && prefix=$ac_default_prefix
11701# Let make expand exec_prefix.
11702test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d9898ee8 11703
8d138742 11704DEFS=-DHAVE_CONFIG_H
d9898ee8 11705
8d138742
CE
11706ac_libobjs=
11707ac_ltlibobjs=
11708for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11709 # 1. Remove the extension, and $U if already installed.
11710 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11711 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11712 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11713 # will be set to the directory where LIBOBJS objects are built.
11714 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11715 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11716done
11717LIBOBJS=$ac_libobjs
d9898ee8 11718
8d138742 11719LTLIBOBJS=$ac_ltlibobjs
d9898ee8 11720
d9898ee8 11721
8d138742
CE
11722 if test -n "$EXEEXT"; then
11723 am__EXEEXT_TRUE=
11724 am__EXEEXT_FALSE='#'
11725else
11726 am__EXEEXT_TRUE='#'
11727 am__EXEEXT_FALSE=
11728fi
d9898ee8 11729
8d138742
CE
11730if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11731 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11732Usually this means the macro was only invoked conditionally." >&5
11733$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11734Usually this means the macro was only invoked conditionally." >&2;}
11735 { (exit 1); exit 1; }; }
11736fi
11737if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11738 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11739Usually this means the macro was only invoked conditionally." >&5
11740$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11741Usually this means the macro was only invoked conditionally." >&2;}
11742 { (exit 1); exit 1; }; }
11743fi
d9898ee8 11744
8d138742
CE
11745: ${CONFIG_STATUS=./config.status}
11746ac_write_fail=0
11747ac_clean_files_save=$ac_clean_files
11748ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11749{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11750$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11751cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11752#! $SHELL
11753# Generated by $as_me.
11754# Run this file to recreate the current configuration.
11755# Compiler output produced by configure, useful for debugging
11756# configure, is in config.log if it exists.
d9898ee8 11757
8d138742
CE
11758debug=false
11759ac_cs_recheck=false
11760ac_cs_silent=false
11761SHELL=\${CONFIG_SHELL-$SHELL}
11762_ACEOF
d9898ee8 11763
8d138742
CE
11764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11765## --------------------- ##
11766## M4sh Initialization. ##
11767## --------------------- ##
d9898ee8 11768
8d138742
CE
11769# Be more Bourne compatible
11770DUALCASE=1; export DUALCASE # for MKS sh
11771if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11772 emulate sh
11773 NULLCMD=:
11774 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11775 # is contrary to our usage. Disable this feature.
11776 alias -g '${1+"$@"}'='"$@"'
11777 setopt NO_GLOB_SUBST
11778else
11779 case `(set -o) 2>/dev/null` in
11780 *posix*) set -o posix ;;
11781esac
d9898ee8 11782
8d138742 11783fi
d9898ee8 11784
d9898ee8 11785
d9898ee8 11786
d9898ee8 11787
8d138742
CE
11788# PATH needs CR
11789# Avoid depending upon Character Ranges.
11790as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11791as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11792as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11793as_cr_digits='0123456789'
11794as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 11795
8d138742
CE
11796as_nl='
11797'
11798export as_nl
11799# Printing a long string crashes Solaris 7 /usr/bin/printf.
11800as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11801as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11802as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11803if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11804 as_echo='printf %s\n'
11805 as_echo_n='printf %s'
11806else
11807 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11808 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11809 as_echo_n='/usr/ucb/echo -n'
11810 else
11811 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11812 as_echo_n_body='eval
11813 arg=$1;
11814 case $arg in
11815 *"$as_nl"*)
11816 expr "X$arg" : "X\\(.*\\)$as_nl";
11817 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11818 esac;
11819 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11820 '
11821 export as_echo_n_body
11822 as_echo_n='sh -c $as_echo_n_body as_echo'
11823 fi
11824 export as_echo_body
11825 as_echo='sh -c $as_echo_body as_echo'
11826fi
d9898ee8 11827
8d138742
CE
11828# The user is always right.
11829if test "${PATH_SEPARATOR+set}" != set; then
11830 PATH_SEPARATOR=:
11831 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11832 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11833 PATH_SEPARATOR=';'
11834 }
11835fi
d9898ee8 11836
8d138742
CE
11837# Support unset when possible.
11838if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11839 as_unset=unset
11840else
11841 as_unset=false
11842fi
d9898ee8 11843
d9898ee8 11844
8d138742
CE
11845# IFS
11846# We need space, tab and new line, in precisely that order. Quoting is
11847# there to prevent editors from complaining about space-tab.
11848# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11849# splitting by setting IFS to empty value.)
11850IFS=" "" $as_nl"
d9898ee8 11851
8d138742
CE
11852# Find who we are. Look in the path if we contain no directory separator.
11853case $0 in
11854 *[\\/]* ) as_myself=$0 ;;
11855 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856for as_dir in $PATH
11857do
11858 IFS=$as_save_IFS
11859 test -z "$as_dir" && as_dir=.
11860 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11861done
11862IFS=$as_save_IFS
d9898ee8 11863
8d138742
CE
11864 ;;
11865esac
11866# We did not find ourselves, most probably we were run as `sh COMMAND'
11867# in which case we are not to be found in the path.
11868if test "x$as_myself" = x; then
11869 as_myself=$0
11870fi
11871if test ! -f "$as_myself"; then
11872 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11873 { (exit 1); exit 1; }
11874fi
d9898ee8 11875
8d138742
CE
11876# Work around bugs in pre-3.0 UWIN ksh.
11877for as_var in ENV MAIL MAILPATH
11878do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11879done
11880PS1='$ '
11881PS2='> '
11882PS4='+ '
d9898ee8 11883
8d138742
CE
11884# NLS nuisances.
11885LC_ALL=C
11886export LC_ALL
11887LANGUAGE=C
11888export LANGUAGE
d9898ee8 11889
8d138742
CE
11890# Required to use basename.
11891if expr a : '\(a\)' >/dev/null 2>&1 &&
11892 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11893 as_expr=expr
11894else
11895 as_expr=false
11896fi
d9898ee8 11897
8d138742
CE
11898if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11899 as_basename=basename
11900else
11901 as_basename=false
11902fi
d9898ee8 11903
d9898ee8 11904
8d138742
CE
11905# Name of the executable.
11906as_me=`$as_basename -- "$0" ||
11907$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11908 X"$0" : 'X\(//\)$' \| \
11909 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11910$as_echo X/"$0" |
11911 sed '/^.*\/\([^/][^/]*\)\/*$/{
11912 s//\1/
11913 q
11914 }
11915 /^X\/\(\/\/\)$/{
11916 s//\1/
11917 q
11918 }
11919 /^X\/\(\/\).*/{
11920 s//\1/
11921 q
11922 }
11923 s/.*/./; q'`
d9898ee8 11924
8d138742
CE
11925# CDPATH.
11926$as_unset CDPATH
d9898ee8 11927
d9898ee8 11928
d9898ee8 11929
8d138742
CE
11930 as_lineno_1=$LINENO
11931 as_lineno_2=$LINENO
11932 test "x$as_lineno_1" != "x$as_lineno_2" &&
11933 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 11934
8d138742
CE
11935 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11936 # uniformly replaced by the line number. The first 'sed' inserts a
11937 # line-number line after each line using $LINENO; the second 'sed'
11938 # does the real work. The second script uses 'N' to pair each
11939 # line-number line with the line containing $LINENO, and appends
11940 # trailing '-' during substitution so that $LINENO is not a special
11941 # case at line end.
11942 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11943 # scripts with optimization help from Paolo Bonzini. Blame Lee
11944 # E. McMahon (1931-1989) for sed's syntax. :-)
11945 sed -n '
11946 p
11947 /[$]LINENO/=
11948 ' <$as_myself |
11949 sed '
11950 s/[$]LINENO.*/&-/
11951 t lineno
11952 b
11953 :lineno
11954 N
11955 :loop
11956 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11957 t loop
11958 s/-\n.*//
11959 ' >$as_me.lineno &&
11960 chmod +x "$as_me.lineno" ||
11961 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11962 { (exit 1); exit 1; }; }
d9898ee8 11963
8d138742
CE
11964 # Don't try to exec as it changes $[0], causing all sort of problems
11965 # (the dirname of $[0] is not the place where we might find the
11966 # original and so on. Autoconf is especially sensitive to this).
11967 . "./$as_me.lineno"
11968 # Exit status is that of the last command.
11969 exit
11970}
d9898ee8 11971
d9898ee8 11972
8d138742
CE
11973if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11974 as_dirname=dirname
11975else
11976 as_dirname=false
11977fi
d9898ee8 11978
8d138742
CE
11979ECHO_C= ECHO_N= ECHO_T=
11980case `echo -n x` in
11981-n*)
11982 case `echo 'x\c'` in
11983 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11984 *) ECHO_C='\c';;
11985 esac;;
11986*)
11987 ECHO_N='-n';;
11988esac
11989if expr a : '\(a\)' >/dev/null 2>&1 &&
11990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11991 as_expr=expr
11992else
11993 as_expr=false
11994fi
d9898ee8 11995
8d138742
CE
11996rm -f conf$$ conf$$.exe conf$$.file
11997if test -d conf$$.dir; then
11998 rm -f conf$$.dir/conf$$.file
d9898ee8 11999else
8d138742
CE
12000 rm -f conf$$.dir
12001 mkdir conf$$.dir 2>/dev/null
12002fi
12003if (echo >conf$$.file) 2>/dev/null; then
12004 if ln -s conf$$.file conf$$ 2>/dev/null; then
12005 as_ln_s='ln -s'
12006 # ... but there are two gotchas:
12007 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12008 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12009 # In both cases, we have to default to `cp -p'.
12010 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12011 as_ln_s='cp -p'
12012 elif ln conf$$.file conf$$ 2>/dev/null; then
12013 as_ln_s=ln
12014 else
12015 as_ln_s='cp -p'
d9898ee8 12016 fi
8d138742
CE
12017else
12018 as_ln_s='cp -p'
d9898ee8 12019fi
8d138742
CE
12020rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12021rmdir conf$$.dir 2>/dev/null
d9898ee8 12022
8d138742
CE
12023if mkdir -p . 2>/dev/null; then
12024 as_mkdir_p=:
12025else
12026 test -d ./-p && rmdir ./-p
12027 as_mkdir_p=false
12028fi
d9898ee8 12029
8d138742
CE
12030if test -x / >/dev/null 2>&1; then
12031 as_test_x='test -x'
12032else
12033 if ls -dL / >/dev/null 2>&1; then
12034 as_ls_L_option=L
d9898ee8 12035 else
8d138742 12036 as_ls_L_option=
d9898ee8 12037 fi
8d138742
CE
12038 as_test_x='
12039 eval sh -c '\''
12040 if test -d "$1"; then
12041 test -d "$1/.";
12042 else
12043 case $1 in
12044 -*)set "./$1";;
12045 esac;
12046 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12047 ???[sx]*):;;*)false;;esac;fi
12048 '\'' sh
12049 '
d9898ee8 12050fi
8d138742
CE
12051as_executable_p=$as_test_x
12052
12053# Sed expression to map a string onto a valid CPP name.
12054as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 12055
8d138742
CE
12056# Sed expression to map a string onto a valid variable name.
12057as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 12058
12059
8d138742 12060exec 6>&1
d9898ee8 12061
8d138742
CE
12062# Save the log message, to keep $[0] and so on meaningful, and to
12063# report actual input values of CONFIG_FILES etc. instead of their
12064# values after options handling.
12065ac_log="
12066This file was extended by libhmac $as_me 1.00, which was
12067generated by GNU Autoconf 2.63. Invocation command line was
12068
12069 CONFIG_FILES = $CONFIG_FILES
12070 CONFIG_HEADERS = $CONFIG_HEADERS
12071 CONFIG_LINKS = $CONFIG_LINKS
12072 CONFIG_COMMANDS = $CONFIG_COMMANDS
12073 $ $0 $@
d9898ee8 12074
8d138742
CE
12075on `(hostname || uname -n) 2>/dev/null | sed 1q`
12076"
d9898ee8 12077
8d138742 12078_ACEOF
d9898ee8 12079
8d138742
CE
12080case $ac_config_files in *"
12081"*) set x $ac_config_files; shift; ac_config_files=$*;;
12082esac
d9898ee8 12083
8d138742
CE
12084case $ac_config_headers in *"
12085"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12086esac
d9898ee8 12087
12088
8d138742
CE
12089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12090# Files that config.status was made for.
12091config_files="$ac_config_files"
12092config_headers="$ac_config_headers"
12093config_commands="$ac_config_commands"
d9898ee8 12094
8d138742 12095_ACEOF
d9898ee8 12096
8d138742
CE
12097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12098ac_cs_usage="\
12099\`$as_me' instantiates files from templates according to the
12100current configuration.
d9898ee8 12101
8d138742 12102Usage: $0 [OPTION]... [FILE]...
d9898ee8 12103
8d138742
CE
12104 -h, --help print this help, then exit
12105 -V, --version print version number and configuration settings, then exit
12106 -q, --quiet, --silent
12107 do not print progress messages
12108 -d, --debug don't remove temporary files
12109 --recheck update $as_me by reconfiguring in the same conditions
12110 --file=FILE[:TEMPLATE]
12111 instantiate the configuration file FILE
12112 --header=FILE[:TEMPLATE]
12113 instantiate the configuration header FILE
d9898ee8 12114
8d138742
CE
12115Configuration files:
12116$config_files
d9898ee8 12117
8d138742
CE
12118Configuration headers:
12119$config_headers
d9898ee8 12120
8d138742
CE
12121Configuration commands:
12122$config_commands
d9898ee8 12123
8d138742 12124Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 12125
8d138742
CE
12126_ACEOF
12127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12128ac_cs_version="\\
12129libhmac config.status 1.00
12130configured by $0, generated by GNU Autoconf 2.63,
12131 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 12132
8d138742
CE
12133Copyright (C) 2008 Free Software Foundation, Inc.
12134This config.status script is free software; the Free Software Foundation
12135gives unlimited permission to copy, distribute and modify it."
d9898ee8 12136
8d138742
CE
12137ac_pwd='$ac_pwd'
12138srcdir='$srcdir'
12139INSTALL='$INSTALL'
12140MKDIR_P='$MKDIR_P'
12141AWK='$AWK'
12142test -n "\$AWK" || AWK=awk
12143_ACEOF
d9898ee8 12144
8d138742
CE
12145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12146# The default lists apply if the user does not specify any file.
12147ac_need_defaults=:
12148while test $# != 0
12149do
12150 case $1 in
12151 --*=*)
12152 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12153 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12154 ac_shift=:
12155 ;;
12156 *)
12157 ac_option=$1
12158 ac_optarg=$2
12159 ac_shift=shift
12160 ;;
12161 esac
d9898ee8 12162
8d138742
CE
12163 case $ac_option in
12164 # Handling of the options.
12165 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12166 ac_cs_recheck=: ;;
12167 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12168 $as_echo "$ac_cs_version"; exit ;;
12169 --debug | --debu | --deb | --de | --d | -d )
12170 debug=: ;;
12171 --file | --fil | --fi | --f )
12172 $ac_shift
12173 case $ac_optarg in
12174 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12175 esac
12176 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12177 ac_need_defaults=false;;
12178 --header | --heade | --head | --hea )
12179 $ac_shift
12180 case $ac_optarg in
12181 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12182 esac
12183 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12184 ac_need_defaults=false;;
12185 --he | --h)
12186 # Conflict between --help and --header
12187 { $as_echo "$as_me: error: ambiguous option: $1
12188Try \`$0 --help' for more information." >&2
12189 { (exit 1); exit 1; }; };;
12190 --help | --hel | -h )
12191 $as_echo "$ac_cs_usage"; exit ;;
12192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12193 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12194 ac_cs_silent=: ;;
d9898ee8 12195
8d138742
CE
12196 # This is an error.
12197 -*) { $as_echo "$as_me: error: unrecognized option: $1
12198Try \`$0 --help' for more information." >&2
12199 { (exit 1); exit 1; }; } ;;
d9898ee8 12200
8d138742
CE
12201 *) ac_config_targets="$ac_config_targets $1"
12202 ac_need_defaults=false ;;
d9898ee8 12203
8d138742
CE
12204 esac
12205 shift
12206done
d9898ee8 12207
8d138742 12208ac_configure_extra_args=
d9898ee8 12209
8d138742
CE
12210if $ac_cs_silent; then
12211 exec 6>/dev/null
12212 ac_configure_extra_args="$ac_configure_extra_args --silent"
12213fi
d9898ee8 12214
d9898ee8 12215_ACEOF
8d138742
CE
12216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12217if \$ac_cs_recheck; then
12218 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12219 shift
12220 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12221 CONFIG_SHELL='$SHELL'
12222 export CONFIG_SHELL
12223 exec "\$@"
12224fi
d9898ee8 12225
8d138742
CE
12226_ACEOF
12227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12228exec 5>>config.log
d9898ee8 12229{
8d138742
CE
12230 echo
12231 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12232## Running $as_me. ##
12233_ASBOX
12234 $as_echo "$ac_log"
12235} >&5
d9898ee8 12236
d9898ee8 12237_ACEOF
8d138742
CE
12238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12239#
12240# INIT-COMMANDS
12241#
12242AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12243
12244
12245# The HP-UX ksh and POSIX shell print the target directory to stdout
12246# if CDPATH is set.
12247(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12248
12249sed_quote_subst='$sed_quote_subst'
12250double_quote_subst='$double_quote_subst'
12251delay_variable_subst='$delay_variable_subst'
12252macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12253macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12254enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12255enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12256pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12257enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12258host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12259host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12260host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12261build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12262build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12263build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12264SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12265Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12266GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12267EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12268FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12269LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12270NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12271LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12272max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12273ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12274exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12275lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12276lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12277lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12278reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12279reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12280OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12281deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12282file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12283AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12284AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12285STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12286RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12287old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12288old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12289old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12290CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12291CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12292compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12293GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12294lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12295lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12296lt_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"`'
12297lt_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"`'
12298objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12299SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12300ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12301MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12302lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12303lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12304lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12305lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12306lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12307need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12308DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12309NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12310LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12311OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12312OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12313libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12314shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12315extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12316archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12317enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12318export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12319whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12320compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12321old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12322old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12323archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12324archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12325module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12326module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12327with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12328allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12329no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12330hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12331hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12332hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12333hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12334hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12335hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12336hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12337hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12338inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12339link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12340fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12341always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12342export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12343exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12344include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12345prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12346file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12347variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12348need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12349need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12350version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12351runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12352shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12353shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12354libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12355library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12356soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12357postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12358postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12359finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12360finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12361hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12362sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12363sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12364hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12365enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12366enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12367enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12368old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12369striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12370
12371LTCC='$LTCC'
12372LTCFLAGS='$LTCFLAGS'
12373compiler='$compiler_DEFAULT'
12374
12375# Quote evaled strings.
12376for var in SED \
12377GREP \
12378EGREP \
12379FGREP \
12380LD \
12381NM \
12382LN_S \
12383lt_SP2NL \
12384lt_NL2SP \
12385reload_flag \
12386OBJDUMP \
12387deplibs_check_method \
12388file_magic_cmd \
12389AR \
12390AR_FLAGS \
12391STRIP \
12392RANLIB \
12393CC \
12394CFLAGS \
12395compiler \
12396lt_cv_sys_global_symbol_pipe \
12397lt_cv_sys_global_symbol_to_cdecl \
12398lt_cv_sys_global_symbol_to_c_name_address \
12399lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12400SHELL \
12401ECHO \
12402lt_prog_compiler_no_builtin_flag \
12403lt_prog_compiler_wl \
12404lt_prog_compiler_pic \
12405lt_prog_compiler_static \
12406lt_cv_prog_compiler_c_o \
12407need_locks \
12408DSYMUTIL \
12409NMEDIT \
12410LIPO \
12411OTOOL \
12412OTOOL64 \
12413shrext_cmds \
12414export_dynamic_flag_spec \
12415whole_archive_flag_spec \
12416compiler_needs_object \
12417with_gnu_ld \
12418allow_undefined_flag \
12419no_undefined_flag \
12420hardcode_libdir_flag_spec \
12421hardcode_libdir_flag_spec_ld \
12422hardcode_libdir_separator \
12423fix_srcfile_path \
12424exclude_expsyms \
12425include_expsyms \
12426file_list_spec \
12427variables_saved_for_relink \
12428libname_spec \
12429library_names_spec \
12430soname_spec \
12431finish_eval \
12432old_striplib \
12433striplib; do
12434 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12435 *[\\\\\\\`\\"\\\$]*)
12436 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12437 ;;
12438 *)
12439 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12440 ;;
12441 esac
12442done
d9898ee8 12443
8d138742
CE
12444# Double-quote double-evaled strings.
12445for var in reload_cmds \
12446old_postinstall_cmds \
12447old_postuninstall_cmds \
12448old_archive_cmds \
12449extract_expsyms_cmds \
12450old_archive_from_new_cmds \
12451old_archive_from_expsyms_cmds \
12452archive_cmds \
12453archive_expsym_cmds \
12454module_cmds \
12455module_expsym_cmds \
12456export_symbols_cmds \
12457prelink_cmds \
12458postinstall_cmds \
12459postuninstall_cmds \
12460finish_cmds \
12461sys_lib_search_path_spec \
12462sys_lib_dlsearch_path_spec; do
12463 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12464 *[\\\\\\\`\\"\\\$]*)
12465 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12466 ;;
12467 *)
12468 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12469 ;;
12470 esac
12471done
dd184caf 12472
8d138742
CE
12473# Fix-up fallback echo if it was mangled by the above quoting rules.
12474case \$lt_ECHO in
12475*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12476 ;;
12477esac
d9898ee8 12478
8d138742
CE
12479ac_aux_dir='$ac_aux_dir'
12480xsi_shell='$xsi_shell'
12481lt_shell_append='$lt_shell_append'
d9898ee8 12482
8d138742
CE
12483# See if we are running on zsh, and set the options which allow our
12484# commands through without removal of \ escapes INIT.
12485if test -n "\${ZSH_VERSION+set}" ; then
12486 setopt NO_GLOB_SUBST
d9898ee8 12487fi
d9898ee8 12488
d9898ee8 12489
8d138742
CE
12490 PACKAGE='$PACKAGE'
12491 VERSION='$VERSION'
12492 TIMESTAMP='$TIMESTAMP'
12493 RM='$RM'
12494 ofile='$ofile'
12495
12496
12497
d9898ee8 12498
12499_ACEOF
d9898ee8 12500
8d138742
CE
12501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12502
12503# Handling of arguments.
12504for ac_config_target in $ac_config_targets
12505do
12506 case $ac_config_target in
12507 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12508 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12509 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12510 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12511
12512 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12513$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12514 { (exit 1); exit 1; }; };;
12515 esac
12516done
12517
12518
12519# If the user did not use the arguments to specify the items to instantiate,
12520# then the envvar interface is used. Set only those that are not.
12521# We use the long form for the default assignment because of an extremely
12522# bizarre bug on SunOS 4.1.3.
12523if $ac_need_defaults; then
12524 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12525 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12526 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
d9898ee8 12527fi
12528
8d138742
CE
12529# Have a temporary directory for convenience. Make it in the build tree
12530# simply because there is no reason against having it here, and in addition,
12531# creating and moving files from /tmp can sometimes cause problems.
12532# Hook for its removal unless debugging.
12533# Note that there is a small window in which the directory will not be cleaned:
12534# after its creation but before its name has been assigned to `$tmp'.
12535$debug ||
12536{
12537 tmp=
12538 trap 'exit_status=$?
12539 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12540' 0
12541 trap '{ (exit 1); exit 1; }' 1 2 13 15
12542}
12543# Create a (secure) tmp directory for tmp files.
d9898ee8 12544
d9898ee8 12545{
8d138742
CE
12546 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12547 test -n "$tmp" && test -d "$tmp"
12548} ||
12549{
12550 tmp=./conf$$-$RANDOM
12551 (umask 077 && mkdir "$tmp")
12552} ||
12553{
12554 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12555 { (exit 1); exit 1; }
d9898ee8 12556}
d9898ee8 12557
8d138742
CE
12558# Set up the scripts for CONFIG_FILES section.
12559# No need to generate them if there are no CONFIG_FILES.
12560# This happens for instance with `./config.status config.h'.
12561if test -n "$CONFIG_FILES"; then
dd184caf 12562
12563
8d138742
CE
12564ac_cr='\r'
12565ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12566if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12567 ac_cs_awk_cr='\\r'
12568else
12569 ac_cs_awk_cr=$ac_cr
d9898ee8 12570fi
d9898ee8 12571
8d138742 12572echo 'BEGIN {' >"$tmp/subs1.awk" &&
d9898ee8 12573_ACEOF
12574
d9898ee8 12575
8d138742
CE
12576{
12577 echo "cat >conf$$subs.awk <<_ACEOF" &&
12578 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12579 echo "_ACEOF"
12580} >conf$$subs.sh ||
12581 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12582$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12583 { (exit 1); exit 1; }; }
12584ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12585ac_delim='%!_!# '
12586for ac_last_try in false false false false false :; do
12587 . ./conf$$subs.sh ||
12588 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12589$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12590 { (exit 1); exit 1; }; }
d9898ee8 12591
8d138742
CE
12592 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12593 if test $ac_delim_n = $ac_delim_num; then
12594 break
12595 elif $ac_last_try; then
12596 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12597$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12598 { (exit 1); exit 1; }; }
12599 else
12600 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12601 fi
12602done
12603rm -f conf$$subs.sh
12604
12605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12606cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12607_ACEOF
12608sed -n '
12609h
12610s/^/S["/; s/!.*/"]=/
12611p
12612g
12613s/^[^!]*!//
12614:repl
12615t repl
12616s/'"$ac_delim"'$//
12617t delim
12618:nl
12619h
12620s/\(.\{148\}\).*/\1/
12621t more1
12622s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12623p
12624n
12625b repl
12626:more1
12627s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12628p
12629g
12630s/.\{148\}//
12631t nl
12632:delim
12633h
12634s/\(.\{148\}\).*/\1/
12635t more2
12636s/["\\]/\\&/g; s/^/"/; s/$/"/
12637p
12638b
12639:more2
12640s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12641p
12642g
12643s/.\{148\}//
12644t delim
12645' <conf$$subs.awk | sed '
12646/^[^""]/{
12647 N
12648 s/\n//
12649}
12650' >>$CONFIG_STATUS || ac_write_fail=1
12651rm -f conf$$subs.awk
12652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12653_ACAWK
12654cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12655 for (key in S) S_is_set[key] = 1
12656 FS = "\a"
d9898ee8 12657
8d138742 12658}
d9898ee8 12659{
8d138742
CE
12660 line = $ 0
12661 nfields = split(line, field, "@")
12662 substed = 0
12663 len = length(field[1])
12664 for (i = 2; i < nfields; i++) {
12665 key = field[i]
12666 keylen = length(key)
12667 if (S_is_set[key]) {
12668 value = S[key]
12669 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12670 len += length(value) + length(field[++i])
12671 substed = 1
12672 } else
12673 len += 1 + keylen
d9898ee8 12674 }
d9898ee8 12675
8d138742 12676 print line
d9898ee8 12677}
8d138742
CE
12678
12679_ACAWK
d9898ee8 12680_ACEOF
8d138742
CE
12681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12682if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12683 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
d9898ee8 12684else
8d138742
CE
12685 cat
12686fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12687 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12688$as_echo "$as_me: error: could not setup config files machinery" >&2;}
12689 { (exit 1); exit 1; }; }
12690_ACEOF
d9898ee8 12691
8d138742
CE
12692# VPATH may cause trouble with some makes, so we remove $(srcdir),
12693# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12694# trailing colons and then remove the whole line if VPATH becomes empty
12695# (actually we leave an empty line to preserve line numbers).
12696if test "x$srcdir" = x.; then
12697 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12698s/:*\$(srcdir):*/:/
12699s/:*\${srcdir}:*/:/
12700s/:*@srcdir@:*/:/
12701s/^\([^=]*=[ ]*\):*/\1/
12702s/:*$//
12703s/^[^=]*=[ ]*$//
12704}'
d9898ee8 12705fi
dd184caf 12706
8d138742
CE
12707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12708fi # test -n "$CONFIG_FILES"
d9898ee8 12709
8d138742
CE
12710# Set up the scripts for CONFIG_HEADERS section.
12711# No need to generate them if there are no CONFIG_HEADERS.
12712# This happens for instance with `./config.status Makefile'.
12713if test -n "$CONFIG_HEADERS"; then
12714cat >"$tmp/defines.awk" <<\_ACAWK ||
12715BEGIN {
d9898ee8 12716_ACEOF
12717
8d138742
CE
12718# Transform confdefs.h into an awk script `defines.awk', embedded as
12719# here-document in config.status, that substitutes the proper values into
12720# config.h.in to produce config.h.
d9898ee8 12721
8d138742
CE
12722# Create a delimiter string that does not exist in confdefs.h, to ease
12723# handling of long lines.
12724ac_delim='%!_!# '
12725for ac_last_try in false false :; do
12726 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12727 if test -z "$ac_t"; then
12728 break
12729 elif $ac_last_try; then
12730 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12731$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12732 { (exit 1); exit 1; }; }
12733 else
12734 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12735 fi
12736done
12737
12738# For the awk script, D is an array of macro values keyed by name,
12739# likewise P contains macro parameters if any. Preserve backslash
12740# newline sequences.
12741
12742ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12743sed -n '
12744s/.\{148\}/&'"$ac_delim"'/g
12745t rset
12746:rset
12747s/^[ ]*#[ ]*define[ ][ ]*/ /
12748t def
12749d
12750:def
12751s/\\$//
12752t bsnl
12753s/["\\]/\\&/g
12754s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12755D["\1"]=" \3"/p
12756s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12757d
12758:bsnl
12759s/["\\]/\\&/g
12760s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12761D["\1"]=" \3\\\\\\n"\\/p
12762t cont
12763s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12764t cont
12765d
12766:cont
12767n
12768s/.\{148\}/&'"$ac_delim"'/g
12769t clear
12770:clear
12771s/\\$//
12772t bsnlc
12773s/["\\]/\\&/g; s/^/"/; s/$/"/p
12774d
12775:bsnlc
12776s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12777b cont
12778' <confdefs.h | sed '
12779s/'"$ac_delim"'/"\\\
12780"/g' >>$CONFIG_STATUS || ac_write_fail=1
12781
12782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12783 for (key in D) D_is_set[key] = 1
12784 FS = "\a"
12785}
12786/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12787 line = \$ 0
12788 split(line, arg, " ")
12789 if (arg[1] == "#") {
12790 defundef = arg[2]
12791 mac1 = arg[3]
12792 } else {
12793 defundef = substr(arg[1], 2)
12794 mac1 = arg[2]
12795 }
12796 split(mac1, mac2, "(") #)
12797 macro = mac2[1]
12798 prefix = substr(line, 1, index(line, defundef) - 1)
12799 if (D_is_set[macro]) {
12800 # Preserve the white space surrounding the "#".
12801 print prefix "define", macro P[macro] D[macro]
12802 next
12803 } else {
12804 # Replace #undef with comments. This is necessary, for example,
12805 # in the case of _POSIX_SOURCE, which is predefined and required
12806 # on some systems where configure will not decide to define it.
12807 if (defundef == "undef") {
12808 print "/*", prefix defundef, macro, "*/"
12809 next
12810 }
12811 }
d9898ee8 12812}
8d138742
CE
12813{ print }
12814_ACAWK
d9898ee8 12815_ACEOF
8d138742
CE
12816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12817 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12818$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12819 { (exit 1); exit 1; }; }
12820fi # test -n "$CONFIG_HEADERS"
d9898ee8 12821
dd184caf 12822
8d138742
CE
12823eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12824shift
12825for ac_tag
12826do
12827 case $ac_tag in
12828 :[FHLC]) ac_mode=$ac_tag; continue;;
12829 esac
12830 case $ac_mode$ac_tag in
12831 :[FHL]*:*);;
12832 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
12833$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
12834 { (exit 1); exit 1; }; };;
12835 :[FH]-) ac_tag=-:-;;
12836 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12837 esac
12838 ac_save_IFS=$IFS
12839 IFS=:
12840 set x $ac_tag
12841 IFS=$ac_save_IFS
12842 shift
12843 ac_file=$1
12844 shift
d9898ee8 12845
8d138742
CE
12846 case $ac_mode in
12847 :L) ac_source=$1;;
12848 :[FH])
12849 ac_file_inputs=
12850 for ac_f
12851 do
12852 case $ac_f in
12853 -) ac_f="$tmp/stdin";;
12854 *) # Look for the file first in the build tree, then in the source tree
12855 # (if the path is not absolute). The absolute path cannot be DOS-style,
12856 # because $ac_f cannot contain `:'.
12857 test -f "$ac_f" ||
12858 case $ac_f in
12859 [\\/$]*) false;;
12860 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12861 esac ||
12862 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12863$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12864 { (exit 1); exit 1; }; };;
12865 esac
12866 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12867 ac_file_inputs="$ac_file_inputs '$ac_f'"
12868 done
d9898ee8 12869
8d138742
CE
12870 # Let's still pretend it is `configure' which instantiates (i.e., don't
12871 # use $as_me), people would be surprised to read:
12872 # /* config.h. Generated by config.status. */
12873 configure_input='Generated from '`
12874 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12875 `' by configure.'
12876 if test x"$ac_file" != x-; then
12877 configure_input="$ac_file. $configure_input"
12878 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12879$as_echo "$as_me: creating $ac_file" >&6;}
12880 fi
12881 # Neutralize special characters interpreted by sed in replacement strings.
12882 case $configure_input in #(
12883 *\&* | *\|* | *\\* )
12884 ac_sed_conf_input=`$as_echo "$configure_input" |
12885 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12886 *) ac_sed_conf_input=$configure_input;;
12887 esac
12888
12889 case $ac_tag in
12890 *:-:* | *:-) cat >"$tmp/stdin" \
12891 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12892$as_echo "$as_me: error: could not create $ac_file" >&2;}
12893 { (exit 1); exit 1; }; } ;;
12894 esac
12895 ;;
12896 esac
12897
12898 ac_dir=`$as_dirname -- "$ac_file" ||
12899$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12900 X"$ac_file" : 'X\(//\)[^/]' \| \
12901 X"$ac_file" : 'X\(//\)$' \| \
12902 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12903$as_echo X"$ac_file" |
12904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12905 s//\1/
12906 q
12907 }
12908 /^X\(\/\/\)[^/].*/{
12909 s//\1/
12910 q
12911 }
12912 /^X\(\/\/\)$/{
12913 s//\1/
12914 q
12915 }
12916 /^X\(\/\).*/{
12917 s//\1/
12918 q
12919 }
12920 s/.*/./; q'`
12921 { as_dir="$ac_dir"
12922 case $as_dir in #(
12923 -*) as_dir=./$as_dir;;
12924 esac
12925 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12926 as_dirs=
12927 while :; do
12928 case $as_dir in #(
12929 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12930 *) as_qdir=$as_dir;;
12931 esac
12932 as_dirs="'$as_qdir' $as_dirs"
12933 as_dir=`$as_dirname -- "$as_dir" ||
12934$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12935 X"$as_dir" : 'X\(//\)[^/]' \| \
12936 X"$as_dir" : 'X\(//\)$' \| \
12937 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12938$as_echo X"$as_dir" |
12939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12940 s//\1/
12941 q
12942 }
12943 /^X\(\/\/\)[^/].*/{
12944 s//\1/
12945 q
12946 }
12947 /^X\(\/\/\)$/{
12948 s//\1/
12949 q
12950 }
12951 /^X\(\/\).*/{
12952 s//\1/
12953 q
12954 }
12955 s/.*/./; q'`
12956 test -d "$as_dir" && break
12957 done
12958 test -z "$as_dirs" || eval "mkdir $as_dirs"
12959 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12960$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12961 { (exit 1); exit 1; }; }; }
12962 ac_builddir=.
12963
12964case "$ac_dir" in
12965.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12966*)
12967 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12968 # A ".." for each directory in $ac_dir_suffix.
12969 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12970 case $ac_top_builddir_sub in
12971 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12972 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12973 esac ;;
12974esac
12975ac_abs_top_builddir=$ac_pwd
12976ac_abs_builddir=$ac_pwd$ac_dir_suffix
12977# for backward compatibility:
12978ac_top_builddir=$ac_top_build_prefix
d9898ee8 12979
8d138742
CE
12980case $srcdir in
12981 .) # We are building in place.
12982 ac_srcdir=.
12983 ac_top_srcdir=$ac_top_builddir_sub
12984 ac_abs_top_srcdir=$ac_pwd ;;
12985 [\\/]* | ?:[\\/]* ) # Absolute name.
12986 ac_srcdir=$srcdir$ac_dir_suffix;
12987 ac_top_srcdir=$srcdir
12988 ac_abs_top_srcdir=$srcdir ;;
12989 *) # Relative name.
12990 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12991 ac_top_srcdir=$ac_top_build_prefix$srcdir
12992 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12993esac
12994ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 12995
12996
8d138742
CE
12997 case $ac_mode in
12998 :F)
12999 #
13000 # CONFIG_FILE
13001 #
d9898ee8 13002
8d138742
CE
13003 case $INSTALL in
13004 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13005 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13006 esac
13007 ac_MKDIR_P=$MKDIR_P
13008 case $MKDIR_P in
13009 [\\/$]* | ?:[\\/]* ) ;;
13010 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13011 esac
13012_ACEOF
d9898ee8 13013
8d138742
CE
13014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13015# If the template does not know about datarootdir, expand it.
13016# FIXME: This hack should be removed a few years after 2.60.
13017ac_datarootdir_hack=; ac_datarootdir_seen=
13018
13019ac_sed_dataroot='
13020/datarootdir/ {
13021 p
13022 q
13023}
13024/@datadir@/p
13025/@docdir@/p
13026/@infodir@/p
13027/@localedir@/p
13028/@mandir@/p
13029'
13030case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13031*datarootdir*) ac_datarootdir_seen=yes;;
13032*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13033 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13034$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13035_ACEOF
13036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13037 ac_datarootdir_hack='
13038 s&@datadir@&$datadir&g
13039 s&@docdir@&$docdir&g
13040 s&@infodir@&$infodir&g
13041 s&@localedir@&$localedir&g
13042 s&@mandir@&$mandir&g
13043 s&\\\${datarootdir}&$datarootdir&g' ;;
13044esac
13045_ACEOF
d9898ee8 13046
8d138742
CE
13047# Neutralize VPATH when `$srcdir' = `.'.
13048# Shell code in configure.ac might set extrasub.
13049# FIXME: do we really want to maintain this feature?
13050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13051ac_sed_extra="$ac_vpsub
13052$extrasub
13053_ACEOF
13054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13055:t
13056/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13057s|@configure_input@|$ac_sed_conf_input|;t t
13058s&@top_builddir@&$ac_top_builddir_sub&;t t
13059s&@top_build_prefix@&$ac_top_build_prefix&;t t
13060s&@srcdir@&$ac_srcdir&;t t
13061s&@abs_srcdir@&$ac_abs_srcdir&;t t
13062s&@top_srcdir@&$ac_top_srcdir&;t t
13063s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13064s&@builddir@&$ac_builddir&;t t
13065s&@abs_builddir@&$ac_abs_builddir&;t t
13066s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13067s&@INSTALL@&$ac_INSTALL&;t t
13068s&@MKDIR_P@&$ac_MKDIR_P&;t t
13069$ac_datarootdir_hack
13070"
13071eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13072 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13073$as_echo "$as_me: error: could not create $ac_file" >&2;}
13074 { (exit 1); exit 1; }; }
d9898ee8 13075
8d138742
CE
13076test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13077 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13078 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13079 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13080which seems to be undefined. Please make sure it is defined." >&5
13081$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13082which seems to be undefined. Please make sure it is defined." >&2;}
d9898ee8 13083
8d138742
CE
13084 rm -f "$tmp/stdin"
13085 case $ac_file in
13086 -) cat "$tmp/out" && rm -f "$tmp/out";;
13087 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13088 esac \
13089 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13090$as_echo "$as_me: error: could not create $ac_file" >&2;}
13091 { (exit 1); exit 1; }; }
13092 ;;
13093 :H)
13094 #
13095 # CONFIG_HEADER
13096 #
13097 if test x"$ac_file" != x-; then
13098 {
13099 $as_echo "/* $configure_input */" \
13100 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13101 } >"$tmp/config.h" \
13102 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13103$as_echo "$as_me: error: could not create $ac_file" >&2;}
13104 { (exit 1); exit 1; }; }
13105 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13106 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13107$as_echo "$as_me: $ac_file is unchanged" >&6;}
13108 else
13109 rm -f "$ac_file"
13110 mv "$tmp/config.h" "$ac_file" \
13111 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13112$as_echo "$as_me: error: could not create $ac_file" >&2;}
13113 { (exit 1); exit 1; }; }
13114 fi
13115 else
13116 $as_echo "/* $configure_input */" \
13117 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13118 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13119$as_echo "$as_me: error: could not create -" >&2;}
13120 { (exit 1); exit 1; }; }
13121 fi
13122# Compute "$ac_file"'s index in $config_headers.
13123_am_arg="$ac_file"
13124_am_stamp_count=1
13125for _am_header in $config_headers :; do
13126 case $_am_header in
13127 $_am_arg | $_am_arg:* )
13128 break ;;
13129 * )
13130 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13131 esac
13132done
13133echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13134$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13135 X"$_am_arg" : 'X\(//\)[^/]' \| \
13136 X"$_am_arg" : 'X\(//\)$' \| \
13137 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13138$as_echo X"$_am_arg" |
13139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13140 s//\1/
13141 q
13142 }
13143 /^X\(\/\/\)[^/].*/{
13144 s//\1/
13145 q
13146 }
13147 /^X\(\/\/\)$/{
13148 s//\1/
13149 q
13150 }
13151 /^X\(\/\).*/{
13152 s//\1/
13153 q
13154 }
13155 s/.*/./; q'`/stamp-h$_am_stamp_count
13156 ;;
d9898ee8 13157
8d138742
CE
13158 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13159$as_echo "$as_me: executing $ac_file commands" >&6;}
13160 ;;
13161 esac
d9898ee8 13162
13163
8d138742
CE
13164 case $ac_file$ac_mode in
13165 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13166 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13167 # are listed without --file. Let's play safe and only enable the eval
13168 # if we detect the quoting.
13169 case $CONFIG_FILES in
13170 *\'*) eval set x "$CONFIG_FILES" ;;
13171 *) set x $CONFIG_FILES ;;
13172 esac
13173 shift
13174 for mf
13175 do
13176 # Strip MF so we end up with the name of the file.
13177 mf=`echo "$mf" | sed -e 's/:.*$//'`
13178 # Check whether this is an Automake generated Makefile or not.
13179 # We used to match only the files named `Makefile.in', but
13180 # some people rename them; so instead we look at the file content.
13181 # Grep'ing the first line is not enough: some people post-process
13182 # each Makefile.in and add a new line on top of each file to say so.
13183 # Grep'ing the whole file is not good either: AIX grep has a line
13184 # limit of 2048, but all sed's we know have understand at least 4000.
13185 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13186 dirpart=`$as_dirname -- "$mf" ||
13187$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13188 X"$mf" : 'X\(//\)[^/]' \| \
13189 X"$mf" : 'X\(//\)$' \| \
13190 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13191$as_echo X"$mf" |
13192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13193 s//\1/
13194 q
13195 }
13196 /^X\(\/\/\)[^/].*/{
13197 s//\1/
13198 q
13199 }
13200 /^X\(\/\/\)$/{
13201 s//\1/
13202 q
13203 }
13204 /^X\(\/\).*/{
13205 s//\1/
13206 q
13207 }
13208 s/.*/./; q'`
13209 else
13210 continue
13211 fi
13212 # Extract the definition of DEPDIR, am__include, and am__quote
13213 # from the Makefile without running `make'.
13214 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13215 test -z "$DEPDIR" && continue
13216 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13217 test -z "am__include" && continue
13218 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13219 # When using ansi2knr, U may be empty or an underscore; expand it
13220 U=`sed -n 's/^U = //p' < "$mf"`
13221 # Find all dependency output files, they are included files with
13222 # $(DEPDIR) in their names. We invoke sed twice because it is the
13223 # simplest approach to changing $(DEPDIR) to its actual value in the
13224 # expansion.
13225 for file in `sed -n "
13226 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13227 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13228 # Make sure the directory exists.
13229 test -f "$dirpart/$file" && continue
13230 fdir=`$as_dirname -- "$file" ||
13231$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13232 X"$file" : 'X\(//\)[^/]' \| \
13233 X"$file" : 'X\(//\)$' \| \
13234 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13235$as_echo X"$file" |
13236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13237 s//\1/
13238 q
13239 }
13240 /^X\(\/\/\)[^/].*/{
13241 s//\1/
13242 q
13243 }
13244 /^X\(\/\/\)$/{
13245 s//\1/
13246 q
13247 }
13248 /^X\(\/\).*/{
13249 s//\1/
13250 q
13251 }
13252 s/.*/./; q'`
13253 { as_dir=$dirpart/$fdir
13254 case $as_dir in #(
13255 -*) as_dir=./$as_dir;;
13256 esac
13257 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13258 as_dirs=
13259 while :; do
13260 case $as_dir in #(
13261 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13262 *) as_qdir=$as_dir;;
13263 esac
13264 as_dirs="'$as_qdir' $as_dirs"
13265 as_dir=`$as_dirname -- "$as_dir" ||
13266$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13267 X"$as_dir" : 'X\(//\)[^/]' \| \
13268 X"$as_dir" : 'X\(//\)$' \| \
13269 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13270$as_echo X"$as_dir" |
13271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13272 s//\1/
13273 q
13274 }
13275 /^X\(\/\/\)[^/].*/{
13276 s//\1/
13277 q
13278 }
13279 /^X\(\/\/\)$/{
13280 s//\1/
13281 q
13282 }
13283 /^X\(\/\).*/{
13284 s//\1/
13285 q
13286 }
13287 s/.*/./; q'`
13288 test -d "$as_dir" && break
13289 done
13290 test -z "$as_dirs" || eval "mkdir $as_dirs"
13291 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13292$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13293 { (exit 1); exit 1; }; }; }
13294 # echo "creating $dirpart/$file"
13295 echo '# dummy' > "$dirpart/$file"
13296 done
13297 done
13298}
13299 ;;
13300 "libtool":C)
d9898ee8 13301
8d138742
CE
13302 # See if we are running on zsh, and set the options which allow our
13303 # commands through without removal of \ escapes.
13304 if test -n "${ZSH_VERSION+set}" ; then
13305 setopt NO_GLOB_SUBST
13306 fi
d9898ee8 13307
8d138742
CE
13308 cfgfile="${ofile}T"
13309 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13310 $RM "$cfgfile"
d9898ee8 13311
8d138742
CE
13312 cat <<_LT_EOF >> "$cfgfile"
13313#! $SHELL
dd184caf 13314
8d138742
CE
13315# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13316# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13317# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13318# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d9898ee8 13319#
8d138742
CE
13320# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13321# 2006, 2007, 2008 Free Software Foundation, Inc.
13322# Written by Gordon Matzigkeit, 1996
d9898ee8 13323#
8d138742
CE
13324# This file is part of GNU Libtool.
13325#
13326# GNU Libtool is free software; you can redistribute it and/or
13327# modify it under the terms of the GNU General Public License as
13328# published by the Free Software Foundation; either version 2 of
13329# the License, or (at your option) any later version.
13330#
13331# As a special exception to the GNU General Public License,
13332# if you distribute this file as part of a program or library that
13333# is built using GNU Libtool, you may include this file under the
13334# same distribution terms that you use for the rest of that program.
13335#
13336# GNU Libtool is distributed in the hope that it will be useful,
13337# but WITHOUT ANY WARRANTY; without even the implied warranty of
13338# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13339# GNU General Public License for more details.
13340#
13341# You should have received a copy of the GNU General Public License
13342# along with GNU Libtool; see the file COPYING. If not, a copy
13343# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13344# obtained by writing to the Free Software Foundation, Inc.,
13345# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9898ee8 13346
d9898ee8 13347
8d138742
CE
13348# The names of the tagged configurations supported by this script.
13349available_tags=""
d9898ee8 13350
8d138742 13351# ### BEGIN LIBTOOL CONFIG
d9898ee8 13352
8d138742
CE
13353# Which release of libtool.m4 was used?
13354macro_version=$macro_version
13355macro_revision=$macro_revision
d9898ee8 13356
8d138742
CE
13357# Whether or not to build shared libraries.
13358build_libtool_libs=$enable_shared
d9898ee8 13359
8d138742
CE
13360# Whether or not to build static libraries.
13361build_old_libs=$enable_static
d9898ee8 13362
8d138742
CE
13363# What type of objects to build.
13364pic_mode=$pic_mode
d9898ee8 13365
8d138742
CE
13366# Whether or not to optimize for fast installation.
13367fast_install=$enable_fast_install
d9898ee8 13368
8d138742
CE
13369# The host system.
13370host_alias=$host_alias
13371host=$host
13372host_os=$host_os
d9898ee8 13373
8d138742
CE
13374# The build system.
13375build_alias=$build_alias
13376build=$build
13377build_os=$build_os
dd184caf 13378
8d138742
CE
13379# A sed program that does not truncate output.
13380SED=$lt_SED
dd184caf 13381
8d138742
CE
13382# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13383Xsed="\$SED -e 1s/^X//"
dd184caf 13384
8d138742
CE
13385# A grep program that handles long lines.
13386GREP=$lt_GREP
dd184caf 13387
8d138742
CE
13388# An ERE matcher.
13389EGREP=$lt_EGREP
dd184caf 13390
8d138742
CE
13391# A literal string matcher.
13392FGREP=$lt_FGREP
dd184caf 13393
8d138742
CE
13394# A BSD- or MS-compatible name lister.
13395NM=$lt_NM
d9898ee8 13396
8d138742
CE
13397# Whether we need soft or hard links.
13398LN_S=$lt_LN_S
d9898ee8 13399
8d138742
CE
13400# What is the maximum length of a command?
13401max_cmd_len=$max_cmd_len
d9898ee8 13402
8d138742
CE
13403# Object file suffix (normally "o").
13404objext=$ac_objext
dd184caf 13405
8d138742
CE
13406# Executable file suffix (normally "").
13407exeext=$exeext
dd184caf 13408
8d138742
CE
13409# whether the shell understands "unset".
13410lt_unset=$lt_unset
dd184caf 13411
8d138742
CE
13412# turn spaces into newlines.
13413SP2NL=$lt_lt_SP2NL
d9898ee8 13414
8d138742
CE
13415# turn newlines into spaces.
13416NL2SP=$lt_lt_NL2SP
d9898ee8 13417
8d138742
CE
13418# How to create reloadable object files.
13419reload_flag=$lt_reload_flag
13420reload_cmds=$lt_reload_cmds
d9898ee8 13421
8d138742
CE
13422# An object symbol dumper.
13423OBJDUMP=$lt_OBJDUMP
d9898ee8 13424
8d138742
CE
13425# Method to check whether dependent libraries are shared objects.
13426deplibs_check_method=$lt_deplibs_check_method
d9898ee8 13427
8d138742
CE
13428# Command to use when deplibs_check_method == "file_magic".
13429file_magic_cmd=$lt_file_magic_cmd
d9898ee8 13430
8d138742
CE
13431# The archiver.
13432AR=$lt_AR
13433AR_FLAGS=$lt_AR_FLAGS
d9898ee8 13434
8d138742
CE
13435# A symbol stripping program.
13436STRIP=$lt_STRIP
d9898ee8 13437
8d138742
CE
13438# Commands used to install an old-style archive.
13439RANLIB=$lt_RANLIB
13440old_postinstall_cmds=$lt_old_postinstall_cmds
13441old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 13442
8d138742
CE
13443# A C compiler.
13444LTCC=$lt_CC
d9898ee8 13445
8d138742
CE
13446# LTCC compiler flags.
13447LTCFLAGS=$lt_CFLAGS
d9898ee8 13448
8d138742
CE
13449# Take the output of nm and produce a listing of raw symbols and C names.
13450global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 13451
8d138742
CE
13452# Transform the output of nm in a proper C declaration.
13453global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 13454
8d138742
CE
13455# Transform the output of nm in a C name address pair.
13456global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
dd184caf 13457
8d138742
CE
13458# Transform the output of nm in a C name address pair when lib prefix is needed.
13459global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13460
13461# The name of the directory that contains temporary libtool files.
13462objdir=$objdir
13463
13464# Shell to use when invoking shell scripts.
13465SHELL=$lt_SHELL
13466
13467# An echo program that does not interpret backslashes.
13468ECHO=$lt_ECHO
d9898ee8 13469
8d138742
CE
13470# Used to examine libraries when file_magic_cmd begins with "file".
13471MAGIC_CMD=$MAGIC_CMD
d9898ee8 13472
8d138742
CE
13473# Must we lock files when doing compilation?
13474need_locks=$lt_need_locks
d9898ee8 13475
8d138742
CE
13476# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13477DSYMUTIL=$lt_DSYMUTIL
d9898ee8 13478
8d138742
CE
13479# Tool to change global to local symbols on Mac OS X.
13480NMEDIT=$lt_NMEDIT
d9898ee8 13481
8d138742
CE
13482# Tool to manipulate fat objects and archives on Mac OS X.
13483LIPO=$lt_LIPO
d9898ee8 13484
8d138742
CE
13485# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13486OTOOL=$lt_OTOOL
d9898ee8 13487
8d138742
CE
13488# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13489OTOOL64=$lt_OTOOL64
d9898ee8 13490
8d138742
CE
13491# Old archive suffix (normally "a").
13492libext=$libext
d9898ee8 13493
8d138742
CE
13494# Shared library suffix (normally ".so").
13495shrext_cmds=$lt_shrext_cmds
d9898ee8 13496
8d138742
CE
13497# The commands to extract the exported symbol list from a shared archive.
13498extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 13499
8d138742
CE
13500# Variables whose values should be saved in libtool wrapper scripts and
13501# restored at link time.
13502variables_saved_for_relink=$lt_variables_saved_for_relink
dd184caf 13503
8d138742
CE
13504# Do we need the "lib" prefix for modules?
13505need_lib_prefix=$need_lib_prefix
d9898ee8 13506
8d138742
CE
13507# Do we need a version for libraries?
13508need_version=$need_version
d9898ee8 13509
8d138742
CE
13510# Library versioning type.
13511version_type=$version_type
d9898ee8 13512
8d138742
CE
13513# Shared library runtime path variable.
13514runpath_var=$runpath_var
d9898ee8 13515
8d138742
CE
13516# Shared library path variable.
13517shlibpath_var=$shlibpath_var
d9898ee8 13518
8d138742
CE
13519# Is shlibpath searched before the hard-coded library search path?
13520shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 13521
8d138742
CE
13522# Format of library name prefix.
13523libname_spec=$lt_libname_spec
d9898ee8 13524
8d138742
CE
13525# List of archive names. First name is the real one, the rest are links.
13526# The last name is the one that the linker finds with -lNAME
13527library_names_spec=$lt_library_names_spec
d9898ee8 13528
8d138742
CE
13529# The coded name of the library, if different from the real name.
13530soname_spec=$lt_soname_spec
d9898ee8 13531
8d138742
CE
13532# Command to use after installation of a shared archive.
13533postinstall_cmds=$lt_postinstall_cmds
d9898ee8 13534
8d138742
CE
13535# Command to use after uninstallation of a shared archive.
13536postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 13537
8d138742
CE
13538# Commands used to finish a libtool library installation in a directory.
13539finish_cmds=$lt_finish_cmds
dd184caf 13540
8d138742
CE
13541# As "finish_cmds", except a single script fragment to be evaled but
13542# not shown.
13543finish_eval=$lt_finish_eval
d9898ee8 13544
8d138742
CE
13545# Whether we should hardcode library paths into libraries.
13546hardcode_into_libs=$hardcode_into_libs
d9898ee8 13547
8d138742
CE
13548# Compile-time system search path for libraries.
13549sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13550
8d138742
CE
13551# Run-time system search path for libraries.
13552sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
d9898ee8 13553
8d138742
CE
13554# Whether dlopen is supported.
13555dlopen_support=$enable_dlopen
d9898ee8 13556
8d138742
CE
13557# Whether dlopen of programs is supported.
13558dlopen_self=$enable_dlopen_self
d9898ee8 13559
8d138742
CE
13560# Whether dlopen of statically linked programs is supported.
13561dlopen_self_static=$enable_dlopen_self_static
d9898ee8 13562
8d138742
CE
13563# Commands to strip libraries.
13564old_striplib=$lt_old_striplib
13565striplib=$lt_striplib
d9898ee8 13566
d9898ee8 13567
8d138742
CE
13568# The linker used to build libraries.
13569LD=$lt_LD
d9898ee8 13570
8d138742
CE
13571# Commands used to build an old-style archive.
13572old_archive_cmds=$lt_old_archive_cmds
d9898ee8 13573
8d138742
CE
13574# A language specific compiler.
13575CC=$lt_compiler
d9898ee8 13576
8d138742
CE
13577# Is the compiler the GNU compiler?
13578with_gcc=$GCC
dd184caf 13579
8d138742
CE
13580# Compiler flag to turn off builtin functions.
13581no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dd184caf 13582
8d138742
CE
13583# How to pass a linker flag through the compiler.
13584wl=$lt_lt_prog_compiler_wl
d9898ee8 13585
8d138742
CE
13586# Additional compiler flags for building library objects.
13587pic_flag=$lt_lt_prog_compiler_pic
dd184caf 13588
8d138742
CE
13589# Compiler flag to prevent dynamic linking.
13590link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 13591
8d138742
CE
13592# Does compiler simultaneously support -c and -o options?
13593compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13594
13595# Whether or not to add -lc for building shared libraries.
13596build_libtool_need_lc=$archive_cmds_need_lc
13597
13598# Whether or not to disallow shared libs when runtime libs are static.
13599allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13600
13601# Compiler flag to allow reflexive dlopens.
13602export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 13603
8d138742
CE
13604# Compiler flag to generate shared objects directly from archives.
13605whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 13606
8d138742
CE
13607# Whether the compiler copes with passing no objects directly.
13608compiler_needs_object=$lt_compiler_needs_object
d9898ee8 13609
8d138742
CE
13610# Create an old-style archive from a shared archive.
13611old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 13612
8d138742
CE
13613# Create a temporary old-style archive to link instead of a shared archive.
13614old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 13615
8d138742
CE
13616# Commands used to build a shared archive.
13617archive_cmds=$lt_archive_cmds
13618archive_expsym_cmds=$lt_archive_expsym_cmds
dd184caf 13619
8d138742
CE
13620# Commands used to build a loadable module if different from building
13621# a shared archive.
13622module_cmds=$lt_module_cmds
13623module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 13624
8d138742
CE
13625# Whether we are building with GNU ld or not.
13626with_gnu_ld=$lt_with_gnu_ld
dd184caf 13627
8d138742
CE
13628# Flag that allows shared libraries with undefined symbols to be built.
13629allow_undefined_flag=$lt_allow_undefined_flag
d9898ee8 13630
8d138742
CE
13631# Flag that enforces no undefined symbols.
13632no_undefined_flag=$lt_no_undefined_flag
dd184caf 13633
8d138742
CE
13634# Flag to hardcode \$libdir into a binary during linking.
13635# This must work even if \$libdir does not exist
13636hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
dd184caf 13637
8d138742
CE
13638# If ld is used when linking, flag to hardcode \$libdir into a binary
13639# during linking. This must work even if \$libdir does not exist.
13640hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
dd184caf 13641
8d138742
CE
13642# Whether we need a single "-rpath" flag with a separated argument.
13643hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 13644
8d138742
CE
13645# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13646# DIR into the resulting binary.
13647hardcode_direct=$hardcode_direct
dd184caf 13648
8d138742
CE
13649# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13650# DIR into the resulting binary and the resulting library dependency is
13651# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13652# library is relocated.
13653hardcode_direct_absolute=$hardcode_direct_absolute
dd184caf 13654
8d138742
CE
13655# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13656# into the resulting binary.
13657hardcode_minus_L=$hardcode_minus_L
dd184caf 13658
8d138742
CE
13659# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13660# into the resulting binary.
13661hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 13662
8d138742
CE
13663# Set to "yes" if building a shared library automatically hardcodes DIR
13664# into the library and all subsequent libraries and executables linked
13665# against it.
13666hardcode_automatic=$hardcode_automatic
dd184caf 13667
8d138742
CE
13668# Set to yes if linker adds runtime paths of dependent libraries
13669# to runtime path list.
13670inherit_rpath=$inherit_rpath
dd184caf 13671
8d138742
CE
13672# Whether libtool must link a program against all its dependency libraries.
13673link_all_deplibs=$link_all_deplibs
dd184caf 13674
8d138742
CE
13675# Fix the shell variable \$srcfile for the compiler.
13676fix_srcfile_path=$lt_fix_srcfile_path
dd184caf 13677
8d138742
CE
13678# Set to "yes" if exported symbols are required.
13679always_export_symbols=$always_export_symbols
dd184caf 13680
8d138742
CE
13681# The commands to list exported symbols.
13682export_symbols_cmds=$lt_export_symbols_cmds
dd184caf 13683
8d138742
CE
13684# Symbols that should not be listed in the preloaded symbols.
13685exclude_expsyms=$lt_exclude_expsyms
d9898ee8 13686
8d138742
CE
13687# Symbols that must always be exported.
13688include_expsyms=$lt_include_expsyms
d9898ee8 13689
8d138742
CE
13690# Commands necessary for linking programs (against libraries) with templates.
13691prelink_cmds=$lt_prelink_cmds
d9898ee8 13692
8d138742
CE
13693# Specify filename containing input files.
13694file_list_spec=$lt_file_list_spec
13695
13696# How to hardcode a shared library path into an executable.
13697hardcode_action=$hardcode_action
d9898ee8 13698
8d138742 13699# ### END LIBTOOL CONFIG
d9898ee8 13700
8d138742 13701_LT_EOF
d9898ee8 13702
8d138742
CE
13703 case $host_os in
13704 aix3*)
13705 cat <<\_LT_EOF >> "$cfgfile"
13706# AIX sometimes has problems with the GCC collect2 program. For some
13707# reason, if we set the COLLECT_NAMES environment variable, the problems
13708# vanish in a puff of smoke.
13709if test "X${COLLECT_NAMES+set}" != Xset; then
13710 COLLECT_NAMES=
13711 export COLLECT_NAMES
13712fi
13713_LT_EOF
13714 ;;
d9898ee8 13715 esac
8d138742
CE
13716
13717
13718ltmain="$ac_aux_dir/ltmain.sh"
13719
13720
13721 # We use sed instead of cat because bash on DJGPP gets confused if
13722 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13723 # text mode, it properly converts lines to CR/LF. This bash problem
13724 # is reportedly fixed, but why not run on old versions too?
13725 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13726 || (rm -f "$cfgfile"; exit 1)
13727
13728 case $xsi_shell in
13729 yes)
13730 cat << \_LT_EOF >> "$cfgfile"
13731
13732# func_dirname file append nondir_replacement
13733# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13734# otherwise set result to NONDIR_REPLACEMENT.
13735func_dirname ()
13736{
13737 case ${1} in
13738 */*) func_dirname_result="${1%/*}${2}" ;;
13739 * ) func_dirname_result="${3}" ;;
dd184caf 13740 esac
8d138742 13741}
d9898ee8 13742
8d138742
CE
13743# func_basename file
13744func_basename ()
13745{
13746 func_basename_result="${1##*/}"
13747}
dd184caf 13748
8d138742
CE
13749# func_dirname_and_basename file append nondir_replacement
13750# perform func_basename and func_dirname in a single function
13751# call:
13752# dirname: Compute the dirname of FILE. If nonempty,
13753# add APPEND to the result, otherwise set result
13754# to NONDIR_REPLACEMENT.
13755# value returned in "$func_dirname_result"
13756# basename: Compute filename of FILE.
13757# value retuned in "$func_basename_result"
13758# Implementation must be kept synchronized with func_dirname
13759# and func_basename. For efficiency, we do not delegate to
13760# those functions but instead duplicate the functionality here.
13761func_dirname_and_basename ()
13762{
13763 case ${1} in
13764 */*) func_dirname_result="${1%/*}${2}" ;;
13765 * ) func_dirname_result="${3}" ;;
13766 esac
13767 func_basename_result="${1##*/}"
dd184caf 13768}
dd184caf 13769
8d138742
CE
13770# func_stripname prefix suffix name
13771# strip PREFIX and SUFFIX off of NAME.
13772# PREFIX and SUFFIX must not contain globbing or regex special
13773# characters, hashes, percent signs, but SUFFIX may contain a leading
13774# dot (in which case that matches only a dot).
13775func_stripname ()
13776{
13777 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13778 # positional parameters, so assign one to ordinary parameter first.
13779 func_stripname_result=${3}
13780 func_stripname_result=${func_stripname_result#"${1}"}
13781 func_stripname_result=${func_stripname_result%"${2}"}
13782}
dd184caf 13783
8d138742
CE
13784# func_opt_split
13785func_opt_split ()
13786{
13787 func_opt_split_opt=${1%%=*}
13788 func_opt_split_arg=${1#*=}
13789}
dd184caf 13790
8d138742
CE
13791# func_lo2o object
13792func_lo2o ()
13793{
13794 case ${1} in
13795 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13796 *) func_lo2o_result=${1} ;;
d9898ee8 13797 esac
8d138742 13798}
d9898ee8 13799
8d138742
CE
13800# func_xform libobj-or-source
13801func_xform ()
13802{
13803 func_xform_result=${1%.*}.lo
13804}
d9898ee8 13805
8d138742
CE
13806# func_arith arithmetic-term...
13807func_arith ()
13808{
13809 func_arith_result=$(( $* ))
13810}
13811
13812# func_len string
13813# STRING may not start with a hyphen.
13814func_len ()
13815{
13816 func_len_result=${#1}
13817}
13818
13819_LT_EOF
13820 ;;
13821 *) # Bourne compatible functions.
13822 cat << \_LT_EOF >> "$cfgfile"
13823
13824# func_dirname file append nondir_replacement
13825# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13826# otherwise set result to NONDIR_REPLACEMENT.
13827func_dirname ()
13828{
13829 # Extract subdirectory from the argument.
13830 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13831 if test "X$func_dirname_result" = "X${1}"; then
13832 func_dirname_result="${3}"
d9898ee8 13833 else
8d138742 13834 func_dirname_result="$func_dirname_result${2}"
d9898ee8 13835 fi
8d138742 13836}
d9898ee8 13837
8d138742
CE
13838# func_basename file
13839func_basename ()
13840{
13841 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13842}
13843
13844
13845# func_stripname prefix suffix name
13846# strip PREFIX and SUFFIX off of NAME.
13847# PREFIX and SUFFIX must not contain globbing or regex special
13848# characters, hashes, percent signs, but SUFFIX may contain a leading
13849# dot (in which case that matches only a dot).
13850# func_strip_suffix prefix name
13851func_stripname ()
13852{
13853 case ${2} in
13854 .*) func_stripname_result=`$ECHO "X${3}" \
13855 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13856 *) func_stripname_result=`$ECHO "X${3}" \
13857 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
dd184caf 13858 esac
8d138742 13859}
d9898ee8 13860
8d138742
CE
13861# sed scripts:
13862my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13863my_sed_long_arg='1s/^-[^=]*=//'
d9898ee8 13864
8d138742
CE
13865# func_opt_split
13866func_opt_split ()
13867{
13868 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13869 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13870}
13871
13872# func_lo2o object
13873func_lo2o ()
13874{
13875 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13876}
13877
13878# func_xform libobj-or-source
13879func_xform ()
13880{
13881 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13882}
13883
13884# func_arith arithmetic-term...
13885func_arith ()
13886{
13887 func_arith_result=`expr "$@"`
13888}
13889
13890# func_len string
13891# STRING may not start with a hyphen.
13892func_len ()
13893{
13894 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13895}
13896
13897_LT_EOF
13898esac
13899
13900case $lt_shell_append in
13901 yes)
13902 cat << \_LT_EOF >> "$cfgfile"
13903
13904# func_append var value
13905# Append VALUE to the end of shell variable VAR.
13906func_append ()
13907{
13908 eval "$1+=\$2"
13909}
13910_LT_EOF
13911 ;;
13912 *)
13913 cat << \_LT_EOF >> "$cfgfile"
13914
13915# func_append var value
13916# Append VALUE to the end of shell variable VAR.
13917func_append ()
13918{
13919 eval "$1=\$$1\$2"
13920}
13921
13922_LT_EOF
13923 ;;
dd184caf 13924 esac
8d138742
CE
13925
13926
13927 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13928 || (rm -f "$cfgfile"; exit 1)
13929
13930 mv -f "$cfgfile" "$ofile" ||
13931 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13932 chmod +x "$ofile"
13933
d9898ee8 13934 ;;
dd184caf 13935
d9898ee8 13936 esac
dd184caf 13937done # for ac_tag
d9898ee8 13938
d9898ee8 13939
13940{ (exit 0); exit 0; }
13941_ACEOF
13942chmod +x $CONFIG_STATUS
13943ac_clean_files=$ac_clean_files_save
13944
8d138742
CE
13945test $ac_write_fail = 0 ||
13946 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13947$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13948 { (exit 1); exit 1; }; }
13949
d9898ee8 13950
13951# configure is writing to config.log, and then calls config.status.
13952# config.status does its own redirection, appending to config.log.
13953# Unfortunately, on DOS this fails, as config.log is still kept open
13954# by configure, so config.status won't be able to write to it; its
13955# output is simply discarded. So we exec the FD to /dev/null,
13956# effectively closing config.log, so it can be properly (re)opened and
13957# appended to by config.status. When coming back to configure, we
13958# need to make the FD available again.
13959if test "$no_create" != yes; then
13960 ac_cs_success=:
13961 ac_config_status_args=
13962 test "$silent" = yes &&
13963 ac_config_status_args="$ac_config_status_args --quiet"
13964 exec 5>/dev/null
13965 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13966 exec 5>>config.log
13967 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13968 # would make configure fail if this is the last instruction.
13969 $ac_cs_success || { (exit 1); exit 1; }
13970fi
8d138742
CE
13971if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13972 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13973$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13974fi
d9898ee8 13975