]> andersk Git - libyaml.git/blame - configure
Imported Upstream version 0.1.3
[libyaml.git] / configure
CommitLineData
b9668ba4
AK
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
47dc80f6 3# Generated by GNU Autoconf 2.63 for yaml 0.1.3.
b9668ba4
AK
4#
5# Report bugs to <http://pyyaml.org/newticket?component=libyaml>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
47dc80f6 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
b9668ba4
AK
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
47dc80f6 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b9668ba4
AK
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
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
47dc80f6
AK
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'
b9668ba4 56 else
47dc80f6
AK
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'
b9668ba4 69 fi
47dc80f6
AK
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
b9668ba4
AK
81fi
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
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.)
b9668ba4
AK
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
47dc80f6 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b9668ba4
AK
119 { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
47dc80f6
AK
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
b9668ba4
AK
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140else
141 as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 156$as_echo X/"$0" |
b9668ba4
AK
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
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
180fi
181
47dc80f6 182 if test $as_have_required = yes && (eval ":
b9668ba4
AK
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}
198
199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
206
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=
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=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
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=:
47dc80f6 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b9668ba4
AK
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=:
47dc80f6 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b9668ba4
AK
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(
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
47dc80f6
AK
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+"$@"}
b9668ba4
AK
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.
47dc80f6
AK
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.
b9668ba4
AK
441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
47dc80f6 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
b9668ba4
AK
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485}
486
487
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';;
503esac
b9668ba4
AK
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
47dc80f6
AK
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
b9668ba4 530 as_ln_s='cp -p'
47dc80f6 531 fi
b9668ba4
AK
532else
533 as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
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
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
47dc80f6 556 test -d "$1/.";
b9668ba4
AK
557 else
558 case $1 in
47dc80f6 559 -*)set "./$1";;
b9668ba4
AK
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
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
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
5c706339 580case X$lt_ECHO in
b9668ba4
AK
581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
5c706339 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
b9668ba4
AK
584 ;;
585esac
586
5c706339 587ECHO=${lt_ECHO-echo}
b9668ba4
AK
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 :
5c706339
AK
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
b9668ba4
AK
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
5c706339 605 cat <<_LT_EOF
b9668ba4 606$*
5c706339 607_LT_EOF
b9668ba4
AK
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
5c706339
AK
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
b9668ba4 627
5c706339
AK
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.
b9668ba4 638
5c706339
AK
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
b9668ba4 650 IFS="$lt_save_ifs"
b9668ba4 651
5c706339
AK
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+"$@"}
b9668ba4 667 else
5c706339
AK
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=:
b9668ba4 692
5c706339
AK
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
b9668ba4 700
5c706339
AK
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
b9668ba4
AK
710 fi
711 fi
712 fi
713fi
b9668ba4
AK
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.
5c706339
AK
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
b9668ba4
AK
720fi
721
722
723
724
b9668ba4
AK
725exec 7<&0 </dev/null 6>&1
726
727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
736ac_clean_files=
737ac_config_libobj_dir=.
738LIBOBJS=
739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
745# Identity of this package.
746PACKAGE_NAME='yaml'
747PACKAGE_TARNAME='yaml'
47dc80f6
AK
748PACKAGE_VERSION='0.1.3'
749PACKAGE_STRING='yaml 0.1.3'
b9668ba4
AK
750PACKAGE_BUGREPORT='http://pyyaml.org/newticket?component=libyaml'
751
752# Factoring default headers for most tests.
753ac_includes_default="\
754#include <stdio.h>
755#ifdef HAVE_SYS_TYPES_H
756# include <sys/types.h>
757#endif
758#ifdef HAVE_SYS_STAT_H
759# include <sys/stat.h>
760#endif
761#ifdef STDC_HEADERS
762# include <stdlib.h>
763# include <stddef.h>
764#else
765# ifdef HAVE_STDLIB_H
766# include <stdlib.h>
767# endif
768#endif
769#ifdef HAVE_STRING_H
770# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771# include <memory.h>
772# endif
773# include <string.h>
774#endif
775#ifdef HAVE_STRINGS_H
776# include <strings.h>
777#endif
778#ifdef HAVE_INTTYPES_H
779# include <inttypes.h>
780#endif
781#ifdef HAVE_STDINT_H
782# include <stdint.h>
783#endif
784#ifdef HAVE_UNISTD_H
785# include <unistd.h>
786#endif"
787
47dc80f6 788ac_subst_vars='LTLIBOBJS
b9668ba4 789LIBOBJS
47dc80f6
AK
790DOXYGEN_FALSE
791DOXYGEN_TRUE
792DOXYGEN
793OTOOL64
794OTOOL
795LIPO
796NMEDIT
797DSYMUTIL
798lt_ECHO
799RANLIB
800AR
801OBJDUMP
802NM
803ac_ct_DUMPBIN
804DUMPBIN
805LD
806FGREP
807EGREP
808GREP
809SED
810host_os
811host_vendor
812host_cpu
813host
814build_os
815build_vendor
816build_cpu
817build
818LIBTOOL
819LN_S
820CPP
821am__fastdepCC_FALSE
822am__fastdepCC_TRUE
823CCDEPMODE
824AMDEPBACKSLASH
825AMDEP_FALSE
826AMDEP_TRUE
827am__quote
828am__include
829DEPDIR
830OBJEXT
831EXEEXT
832ac_ct_CC
833CPPFLAGS
834LDFLAGS
835CFLAGS
836CC
837YAML_LT_AGE
838YAML_LT_REVISION
839YAML_LT_CURRENT
840YAML_LT_RELEASE
841am__untar
842am__tar
843AMTAR
844am__leading_dot
845SET_MAKE
846AWK
847mkdir_p
848MKDIR_P
849INSTALL_STRIP_PROGRAM
850STRIP
851install_sh
852MAKEINFO
853AUTOHEADER
854AUTOMAKE
855AUTOCONF
856ACLOCAL
857VERSION
858PACKAGE
859CYGPATH_W
860am__isrc
861INSTALL_DATA
862INSTALL_SCRIPT
863INSTALL_PROGRAM
864target_alias
865host_alias
866build_alias
867LIBS
868ECHO_T
869ECHO_N
870ECHO_C
871DEFS
872mandir
873localedir
874libdir
875psdir
876pdfdir
877dvidir
878htmldir
879infodir
880docdir
881oldincludedir
882includedir
883localstatedir
884sharedstatedir
885sysconfdir
886datadir
887datarootdir
888libexecdir
889sbindir
890bindir
891program_transform_name
892prefix
893exec_prefix
894PACKAGE_BUGREPORT
895PACKAGE_STRING
896PACKAGE_VERSION
897PACKAGE_TARNAME
898PACKAGE_NAME
899PATH_SEPARATOR
900SHELL'
b9668ba4 901ac_subst_files=''
47dc80f6
AK
902ac_user_opts='
903enable_option_checking
904enable_dependency_tracking
905enable_shared
906enable_static
907with_pic
908enable_fast_install
909with_gnu_ld
910enable_libtool_lock
911'
b9668ba4
AK
912 ac_precious_vars='build_alias
913host_alias
914target_alias
915CC
916CFLAGS
917LDFLAGS
918LIBS
919CPPFLAGS
5c706339 920CPP'
b9668ba4
AK
921
922
923# Initialize some variables set by options.
924ac_init_help=
925ac_init_version=false
47dc80f6
AK
926ac_unrecognized_opts=
927ac_unrecognized_sep=
b9668ba4
AK
928# The variables have the same names as the options, with
929# dashes changed to underlines.
930cache_file=/dev/null
931exec_prefix=NONE
932no_create=
933no_recursion=
934prefix=NONE
935program_prefix=NONE
936program_suffix=NONE
937program_transform_name=s,x,x,
938silent=
939site=
940srcdir=
941verbose=
942x_includes=NONE
943x_libraries=NONE
944
945# Installation directory options.
946# These are left unexpanded so users can "make install exec_prefix=/foo"
947# and all the variables that are supposed to be based on exec_prefix
948# by default will actually change.
949# Use braces instead of parens because sh, perl, etc. also accept them.
950# (The list follows the same order as the GNU Coding Standards.)
951bindir='${exec_prefix}/bin'
952sbindir='${exec_prefix}/sbin'
953libexecdir='${exec_prefix}/libexec'
954datarootdir='${prefix}/share'
955datadir='${datarootdir}'
956sysconfdir='${prefix}/etc'
957sharedstatedir='${prefix}/com'
958localstatedir='${prefix}/var'
959includedir='${prefix}/include'
960oldincludedir='/usr/include'
961docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
962infodir='${datarootdir}/info'
963htmldir='${docdir}'
964dvidir='${docdir}'
965pdfdir='${docdir}'
966psdir='${docdir}'
967libdir='${exec_prefix}/lib'
968localedir='${datarootdir}/locale'
969mandir='${datarootdir}/man'
970
971ac_prev=
972ac_dashdash=
973for ac_option
974do
975 # If the previous option needs an argument, assign it.
976 if test -n "$ac_prev"; then
977 eval $ac_prev=\$ac_option
978 ac_prev=
979 continue
980 fi
981
982 case $ac_option in
983 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984 *) ac_optarg=yes ;;
985 esac
986
987 # Accept the important Cygnus configure options, so we can diagnose typos.
988
989 case $ac_dashdash$ac_option in
990 --)
991 ac_dashdash=yes ;;
992
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
994 ac_prev=bindir ;;
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 bindir=$ac_optarg ;;
997
998 -build | --build | --buil | --bui | --bu)
999 ac_prev=build_alias ;;
1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001 build_alias=$ac_optarg ;;
1002
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008 cache_file=$ac_optarg ;;
1009
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
1012
1013 -datadir | --datadir | --datadi | --datad)
1014 ac_prev=datadir ;;
1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016 datadir=$ac_optarg ;;
1017
1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1024
1025 -disable-* | --disable-*)
47dc80f6 1026 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b9668ba4 1027 # Reject names that are not valid shell variable names.
47dc80f6
AK
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
b9668ba4 1030 { (exit 1); exit 1; }; }
47dc80f6
AK
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035"enable_$ac_useropt"
1036"*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval enable_$ac_useropt=no ;;
b9668ba4
AK
1041
1042 -docdir | --docdir | --docdi | --doc | --do)
1043 ac_prev=docdir ;;
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1046
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 ac_prev=dvidir ;;
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
1051
1052 -enable-* | --enable-*)
47dc80f6 1053 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b9668ba4 1054 # Reject names that are not valid shell variable names.
47dc80f6
AK
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
b9668ba4 1057 { (exit 1); exit 1; }; }
47dc80f6
AK
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1061 *"
1062"enable_$ac_useropt"
1063"*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval enable_$ac_useropt=\$ac_optarg ;;
b9668ba4
AK
1068
1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071 | --exec | --exe | --ex)
1072 ac_prev=exec_prefix ;;
1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075 | --exec=* | --exe=* | --ex=*)
1076 exec_prefix=$ac_optarg ;;
1077
1078 -gas | --gas | --ga | --g)
1079 # Obsolete; use --with-gas.
1080 with_gas=yes ;;
1081
1082 -help | --help | --hel | --he | -h)
1083 ac_init_help=long ;;
1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085 ac_init_help=recursive ;;
1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087 ac_init_help=short ;;
1088
1089 -host | --host | --hos | --ho)
1090 ac_prev=host_alias ;;
1091 -host=* | --host=* | --hos=* | --ho=*)
1092 host_alias=$ac_optarg ;;
1093
1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095 ac_prev=htmldir ;;
1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097 | --ht=*)
1098 htmldir=$ac_optarg ;;
1099
1100 -includedir | --includedir | --includedi | --included | --include \
1101 | --includ | --inclu | --incl | --inc)
1102 ac_prev=includedir ;;
1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104 | --includ=* | --inclu=* | --incl=* | --inc=*)
1105 includedir=$ac_optarg ;;
1106
1107 -infodir | --infodir | --infodi | --infod | --info | --inf)
1108 ac_prev=infodir ;;
1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110 infodir=$ac_optarg ;;
1111
1112 -libdir | --libdir | --libdi | --libd)
1113 ac_prev=libdir ;;
1114 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115 libdir=$ac_optarg ;;
1116
1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118 | --libexe | --libex | --libe)
1119 ac_prev=libexecdir ;;
1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121 | --libexe=* | --libex=* | --libe=*)
1122 libexecdir=$ac_optarg ;;
1123
1124 -localedir | --localedir | --localedi | --localed | --locale)
1125 ac_prev=localedir ;;
1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127 localedir=$ac_optarg ;;
1128
1129 -localstatedir | --localstatedir | --localstatedi | --localstated \
1130 | --localstate | --localstat | --localsta | --localst | --locals)
1131 ac_prev=localstatedir ;;
1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134 localstatedir=$ac_optarg ;;
1135
1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137 ac_prev=mandir ;;
1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139 mandir=$ac_optarg ;;
1140
1141 -nfp | --nfp | --nf)
1142 # Obsolete; use --without-fp.
1143 with_fp=no ;;
1144
1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146 | --no-cr | --no-c | -n)
1147 no_create=yes ;;
1148
1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151 no_recursion=yes ;;
1152
1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155 | --oldin | --oldi | --old | --ol | --o)
1156 ac_prev=oldincludedir ;;
1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160 oldincludedir=$ac_optarg ;;
1161
1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163 ac_prev=prefix ;;
1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165 prefix=$ac_optarg ;;
1166
1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168 | --program-pre | --program-pr | --program-p)
1169 ac_prev=program_prefix ;;
1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172 program_prefix=$ac_optarg ;;
1173
1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175 | --program-suf | --program-su | --program-s)
1176 ac_prev=program_suffix ;;
1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179 program_suffix=$ac_optarg ;;
1180
1181 -program-transform-name | --program-transform-name \
1182 | --program-transform-nam | --program-transform-na \
1183 | --program-transform-n | --program-transform- \
1184 | --program-transform | --program-transfor \
1185 | --program-transfo | --program-transf \
1186 | --program-trans | --program-tran \
1187 | --progr-tra | --program-tr | --program-t)
1188 ac_prev=program_transform_name ;;
1189 -program-transform-name=* | --program-transform-name=* \
1190 | --program-transform-nam=* | --program-transform-na=* \
1191 | --program-transform-n=* | --program-transform-=* \
1192 | --program-transform=* | --program-transfor=* \
1193 | --program-transfo=* | --program-transf=* \
1194 | --program-trans=* | --program-tran=* \
1195 | --progr-tra=* | --program-tr=* | --program-t=*)
1196 program_transform_name=$ac_optarg ;;
1197
1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199 ac_prev=pdfdir ;;
1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201 pdfdir=$ac_optarg ;;
1202
1203 -psdir | --psdir | --psdi | --psd | --ps)
1204 ac_prev=psdir ;;
1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206 psdir=$ac_optarg ;;
1207
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 silent=yes ;;
1211
1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1213 ac_prev=sbindir ;;
1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1215 | --sbi=* | --sb=*)
1216 sbindir=$ac_optarg ;;
1217
1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220 | --sharedst | --shareds | --shared | --share | --shar \
1221 | --sha | --sh)
1222 ac_prev=sharedstatedir ;;
1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1226 | --sha=* | --sh=*)
1227 sharedstatedir=$ac_optarg ;;
1228
1229 -site | --site | --sit)
1230 ac_prev=site ;;
1231 -site=* | --site=* | --sit=*)
1232 site=$ac_optarg ;;
1233
1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1235 ac_prev=srcdir ;;
1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237 srcdir=$ac_optarg ;;
1238
1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240 | --syscon | --sysco | --sysc | --sys | --sy)
1241 ac_prev=sysconfdir ;;
1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244 sysconfdir=$ac_optarg ;;
1245
1246 -target | --target | --targe | --targ | --tar | --ta | --t)
1247 ac_prev=target_alias ;;
1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249 target_alias=$ac_optarg ;;
1250
1251 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252 verbose=yes ;;
1253
1254 -version | --version | --versio | --versi | --vers | -V)
1255 ac_init_version=: ;;
1256
1257 -with-* | --with-*)
47dc80f6 1258 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b9668ba4 1259 # Reject names that are not valid shell variable names.
47dc80f6
AK
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
b9668ba4 1262 { (exit 1); exit 1; }; }
47dc80f6
AK
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1266 *"
1267"with_$ac_useropt"
1268"*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1271 esac
1272 eval with_$ac_useropt=\$ac_optarg ;;
b9668ba4
AK
1273
1274 -without-* | --without-*)
47dc80f6 1275 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b9668ba4 1276 # Reject names that are not valid shell variable names.
47dc80f6
AK
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
b9668ba4 1279 { (exit 1); exit 1; }; }
47dc80f6
AK
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284"with_$ac_useropt"
1285"*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval with_$ac_useropt=no ;;
b9668ba4
AK
1290
1291 --x)
1292 # Obsolete; use --with-x.
1293 with_x=yes ;;
1294
1295 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1296 | --x-incl | --x-inc | --x-in | --x-i)
1297 ac_prev=x_includes ;;
1298 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1299 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1300 x_includes=$ac_optarg ;;
1301
1302 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1303 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1304 ac_prev=x_libraries ;;
1305 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1306 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1307 x_libraries=$ac_optarg ;;
1308
47dc80f6 1309 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
b9668ba4
AK
1310Try \`$0 --help' for more information." >&2
1311 { (exit 1); exit 1; }; }
1312 ;;
1313
1314 *=*)
1315 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
47dc80f6 1318 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
b9668ba4
AK
1319 { (exit 1); exit 1; }; }
1320 eval $ac_envvar=\$ac_optarg
1321 export $ac_envvar ;;
1322
1323 *)
1324 # FIXME: should be removed in autoconf 3.0.
47dc80f6 1325 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b9668ba4 1326 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
47dc80f6 1327 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b9668ba4
AK
1328 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1329 ;;
1330
1331 esac
1332done
1333
1334if test -n "$ac_prev"; then
1335 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
47dc80f6 1336 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
b9668ba4
AK
1337 { (exit 1); exit 1; }; }
1338fi
1339
47dc80f6
AK
1340if test -n "$ac_unrecognized_opts"; then
1341 case $enable_option_checking in
1342 no) ;;
1343 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1344 { (exit 1); exit 1; }; } ;;
1345 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1346 esac
1347fi
1348
1349# Check all directory arguments for consistency.
b9668ba4
AK
1350for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir
1354do
1355 eval ac_val=\$$ac_var
47dc80f6
AK
1356 # Remove trailing slashes.
1357 case $ac_val in
1358 */ )
1359 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1360 eval $ac_var=\$ac_val;;
1361 esac
1362 # Be sure to have absolute directory names.
b9668ba4
AK
1363 case $ac_val in
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366 esac
47dc80f6 1367 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
b9668ba4
AK
1368 { (exit 1); exit 1; }; }
1369done
1370
1371# There might be people who depend on the old broken behavior: `$host'
1372# used to hold the argument of --host etc.
1373# FIXME: To remove some day.
1374build=$build_alias
1375host=$host_alias
1376target=$target_alias
1377
1378# FIXME: To remove some day.
1379if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
47dc80f6 1382 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b9668ba4
AK
1383 If a cross compiler is detected then cross compile mode will be used." >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1386 fi
1387fi
1388
1389ac_tool_prefix=
1390test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392test "$silent" = yes && exec 6>/dev/null
1393
1394
1395ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396ac_ls_di=`ls -di .` &&
1397ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
47dc80f6 1398 { $as_echo "$as_me: error: working directory cannot be determined" >&2
b9668ba4
AK
1399 { (exit 1); exit 1; }; }
1400test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
47dc80f6 1401 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
b9668ba4
AK
1402 { (exit 1); exit 1; }; }
1403
1404
1405# Find the source files, if location was not specified.
1406if test -z "$srcdir"; then
1407 ac_srcdir_defaulted=yes
1408 # Try the directory containing this script, then the parent directory.
47dc80f6
AK
1409 ac_confdir=`$as_dirname -- "$as_myself" ||
1410$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411 X"$as_myself" : 'X\(//\)[^/]' \| \
1412 X"$as_myself" : 'X\(//\)$' \| \
1413 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1414$as_echo X"$as_myself" |
b9668ba4
AK
1415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\/\)[^/].*/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)$/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\).*/{
1428 s//\1/
1429 q
1430 }
1431 s/.*/./; q'`
1432 srcdir=$ac_confdir
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1434 srcdir=..
1435 fi
1436else
1437 ac_srcdir_defaulted=no
1438fi
1439if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
47dc80f6 1441 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
b9668ba4
AK
1442 { (exit 1); exit 1; }; }
1443fi
1444ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445ac_abs_confdir=`(
47dc80f6 1446 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
b9668ba4
AK
1447 { (exit 1); exit 1; }; }
1448 pwd)`
1449# When building in place, set srcdir=.
1450if test "$ac_abs_confdir" = "$ac_pwd"; then
1451 srcdir=.
1452fi
1453# Remove unnecessary trailing slashes from srcdir.
1454# Double slashes in file names in object file debugging info
1455# mess up M-x gdb in Emacs.
1456case $srcdir in
1457*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458esac
1459for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464done
1465
1466#
1467# Report the --help message.
1468#
1469if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1472 cat <<_ACEOF
47dc80f6 1473\`configure' configures yaml 0.1.3 to adapt to many kinds of systems.
b9668ba4
AK
1474
1475Usage: $0 [OPTION]... [VAR=VALUE]...
1476
1477To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478VAR=VALUE. See below for descriptions of some of the useful variables.
1479
1480Defaults for the options are specified in brackets.
1481
1482Configuration:
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492
1493Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
47dc80f6 1495 [$ac_default_prefix]
b9668ba4 1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
47dc80f6 1497 [PREFIX]
b9668ba4
AK
1498
1499By default, \`make install' will install all the files in
1500\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502for instance \`--prefix=\$HOME'.
1503
1504For better control, use the options below.
1505
1506Fine tuning of the installation directories:
47dc80f6
AK
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/yaml]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
b9668ba4
AK
1526_ACEOF
1527
1528 cat <<\_ACEOF
1529
1530Program names:
1531 --program-prefix=PREFIX prepend PREFIX to installed program names
1532 --program-suffix=SUFFIX append SUFFIX to installed program names
1533 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1534
1535System types:
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1538_ACEOF
1539fi
1540
1541if test -n "$ac_init_help"; then
1542 case $ac_init_help in
47dc80f6 1543 short | recursive ) echo "Configuration of yaml 0.1.3:";;
b9668ba4
AK
1544 esac
1545 cat <<\_ACEOF
1546
1547Optional Features:
47dc80f6 1548 --disable-option-checking ignore unrecognized --enable/--with options
b9668ba4
AK
1549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1551 --disable-dependency-tracking speeds up one-time build
1552 --enable-dependency-tracking do not reject slow dependency extractors
1553 --enable-shared[=PKGS] build shared libraries [default=yes]
1554 --enable-static[=PKGS] build static libraries [default=yes]
1555 --enable-fast-install[=PKGS]
1556 optimize for fast installation [default=yes]
1557 --disable-libtool-lock avoid locking (might break parallel builds)
1558
1559Optional Packages:
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b9668ba4
AK
1562 --with-pic try to use only PIC/non-PIC objects [default=use
1563 both]
5c706339 1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b9668ba4
AK
1565
1566Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
1574 CPP C preprocessor
b9668ba4
AK
1575
1576Use these variables to override the choices made by `configure' or to help
1577it to find libraries and programs with nonstandard names/locations.
1578
1579Report bugs to <http://pyyaml.org/newticket?component=libyaml>.
1580_ACEOF
1581ac_status=$?
1582fi
1583
1584if test "$ac_init_help" = "recursive"; then
1585 # If there are subdirs, report their specific --help.
1586 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
47dc80f6
AK
1587 test -d "$ac_dir" ||
1588 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1589 continue
b9668ba4
AK
1590 ac_builddir=.
1591
1592case "$ac_dir" in
1593.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594*)
47dc80f6 1595 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
b9668ba4 1596 # A ".." for each directory in $ac_dir_suffix.
47dc80f6 1597 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
b9668ba4
AK
1598 case $ac_top_builddir_sub in
1599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1601 esac ;;
1602esac
1603ac_abs_top_builddir=$ac_pwd
1604ac_abs_builddir=$ac_pwd$ac_dir_suffix
1605# for backward compatibility:
1606ac_top_builddir=$ac_top_build_prefix
1607
1608case $srcdir in
1609 .) # We are building in place.
1610 ac_srcdir=.
1611 ac_top_srcdir=$ac_top_builddir_sub
1612 ac_abs_top_srcdir=$ac_pwd ;;
1613 [\\/]* | ?:[\\/]* ) # Absolute name.
1614 ac_srcdir=$srcdir$ac_dir_suffix;
1615 ac_top_srcdir=$srcdir
1616 ac_abs_top_srcdir=$srcdir ;;
1617 *) # Relative name.
1618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619 ac_top_srcdir=$ac_top_build_prefix$srcdir
1620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621esac
1622ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623
1624 cd "$ac_dir" || { ac_status=$?; continue; }
1625 # Check for guested configure.
1626 if test -f "$ac_srcdir/configure.gnu"; then
1627 echo &&
1628 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629 elif test -f "$ac_srcdir/configure"; then
1630 echo &&
1631 $SHELL "$ac_srcdir/configure" --help=recursive
1632 else
47dc80f6 1633 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b9668ba4
AK
1634 fi || ac_status=$?
1635 cd "$ac_pwd" || { ac_status=$?; break; }
1636 done
1637fi
1638
1639test -n "$ac_init_help" && exit $ac_status
1640if $ac_init_version; then
1641 cat <<\_ACEOF
47dc80f6
AK
1642yaml configure 0.1.3
1643generated by GNU Autoconf 2.63
b9668ba4
AK
1644
1645Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
47dc80f6 16462002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
b9668ba4
AK
1647This configure script is free software; the Free Software Foundation
1648gives unlimited permission to copy, distribute and modify it.
1649_ACEOF
1650 exit
1651fi
1652cat >config.log <<_ACEOF
1653This file contains any messages produced by compilers while
1654running configure, to aid debugging if configure makes a mistake.
1655
47dc80f6
AK
1656It was created by yaml $as_me 0.1.3, which was
1657generated by GNU Autoconf 2.63. Invocation command line was
b9668ba4
AK
1658
1659 $ $0 $@
1660
1661_ACEOF
1662exec 5>>config.log
1663{
1664cat <<_ASUNAME
1665## --------- ##
1666## Platform. ##
1667## --------- ##
1668
1669hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1670uname -m = `(uname -m) 2>/dev/null || echo unknown`
1671uname -r = `(uname -r) 2>/dev/null || echo unknown`
1672uname -s = `(uname -s) 2>/dev/null || echo unknown`
1673uname -v = `(uname -v) 2>/dev/null || echo unknown`
1674
1675/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1676/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1677
1678/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1679/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1680/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1681/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1682/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1683/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1684/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1685
1686_ASUNAME
1687
1688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689for as_dir in $PATH
1690do
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
47dc80f6 1693 $as_echo "PATH: $as_dir"
b9668ba4
AK
1694done
1695IFS=$as_save_IFS
1696
1697} >&5
1698
1699cat >&5 <<_ACEOF
1700
1701
1702## ----------- ##
1703## Core tests. ##
1704## ----------- ##
1705
1706_ACEOF
1707
1708
1709# Keep a trace of the command line.
1710# Strip out --no-create and --no-recursion so they do not pile up.
1711# Strip out --silent because we don't want to record it for future runs.
1712# Also quote any args containing shell meta-characters.
1713# Make two passes to allow for proper duplicate-argument suppression.
1714ac_configure_args=
1715ac_configure_args0=
1716ac_configure_args1=
1717ac_must_keep_next=false
1718for ac_pass in 1 2
1719do
1720 for ac_arg
1721 do
1722 case $ac_arg in
1723 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1725 | -silent | --silent | --silen | --sile | --sil)
1726 continue ;;
1727 *\'*)
47dc80f6 1728 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b9668ba4
AK
1729 esac
1730 case $ac_pass in
1731 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1732 2)
1733 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1734 if test $ac_must_keep_next = true; then
1735 ac_must_keep_next=false # Got value, back to normal.
1736 else
1737 case $ac_arg in
1738 *=* | --config-cache | -C | -disable-* | --disable-* \
1739 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1740 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1741 | -with-* | --with-* | -without-* | --without-* | --x)
1742 case "$ac_configure_args0 " in
1743 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1744 esac
1745 ;;
1746 -* ) ac_must_keep_next=true ;;
1747 esac
1748 fi
1749 ac_configure_args="$ac_configure_args '$ac_arg'"
1750 ;;
1751 esac
1752 done
1753done
1754$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1755$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1756
1757# When interrupted or exit'd, cleanup temporary files, and complete
1758# config.log. We remove comments because anyway the quotes in there
1759# would cause problems or look ugly.
1760# WARNING: Use '\'' to represent an apostrophe within the trap.
1761# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1762trap 'exit_status=$?
1763 # Save into config.log some information that might help in debugging.
1764 {
1765 echo
1766
1767 cat <<\_ASBOX
1768## ---------------- ##
1769## Cache variables. ##
1770## ---------------- ##
1771_ASBOX
1772 echo
1773 # The following way of writing the cache mishandles newlines in values,
1774(
1775 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1776 eval ac_val=\$$ac_var
1777 case $ac_val in #(
1778 *${as_nl}*)
1779 case $ac_var in #(
47dc80f6
AK
1780 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1781$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
b9668ba4
AK
1782 esac
1783 case $ac_var in #(
1784 _ | IFS | as_nl) ;; #(
47dc80f6 1785 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b9668ba4
AK
1786 *) $as_unset $ac_var ;;
1787 esac ;;
1788 esac
1789 done
1790 (set) 2>&1 |
1791 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1792 *${as_nl}ac_space=\ *)
1793 sed -n \
1794 "s/'\''/'\''\\\\'\'''\''/g;
1795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1796 ;; #(
1797 *)
1798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1799 ;;
1800 esac |
1801 sort
1802)
1803 echo
1804
1805 cat <<\_ASBOX
1806## ----------------- ##
1807## Output variables. ##
1808## ----------------- ##
1809_ASBOX
1810 echo
1811 for ac_var in $ac_subst_vars
1812 do
1813 eval ac_val=\$$ac_var
1814 case $ac_val in
47dc80f6 1815 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
b9668ba4 1816 esac
47dc80f6 1817 $as_echo "$ac_var='\''$ac_val'\''"
b9668ba4
AK
1818 done | sort
1819 echo
1820
1821 if test -n "$ac_subst_files"; then
1822 cat <<\_ASBOX
1823## ------------------- ##
1824## File substitutions. ##
1825## ------------------- ##
1826_ASBOX
1827 echo
1828 for ac_var in $ac_subst_files
1829 do
1830 eval ac_val=\$$ac_var
1831 case $ac_val in
47dc80f6 1832 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
b9668ba4 1833 esac
47dc80f6 1834 $as_echo "$ac_var='\''$ac_val'\''"
b9668ba4
AK
1835 done | sort
1836 echo
1837 fi
1838
1839 if test -s confdefs.h; then
1840 cat <<\_ASBOX
1841## ----------- ##
1842## confdefs.h. ##
1843## ----------- ##
1844_ASBOX
1845 echo
1846 cat confdefs.h
1847 echo
1848 fi
1849 test "$ac_signal" != 0 &&
47dc80f6
AK
1850 $as_echo "$as_me: caught signal $ac_signal"
1851 $as_echo "$as_me: exit $exit_status"
b9668ba4
AK
1852 } >&5
1853 rm -f core *.core core.conftest.* &&
1854 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1855 exit $exit_status
1856' 0
1857for ac_signal in 1 2 13 15; do
1858 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1859done
1860ac_signal=0
1861
1862# confdefs.h avoids OS command line length limits that DEFS can exceed.
1863rm -f -r conftest* confdefs.h
1864
1865# Predefined preprocessor variables.
1866
1867cat >>confdefs.h <<_ACEOF
1868#define PACKAGE_NAME "$PACKAGE_NAME"
1869_ACEOF
1870
1871
1872cat >>confdefs.h <<_ACEOF
1873#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1874_ACEOF
1875
1876
1877cat >>confdefs.h <<_ACEOF
1878#define PACKAGE_VERSION "$PACKAGE_VERSION"
1879_ACEOF
1880
1881
1882cat >>confdefs.h <<_ACEOF
1883#define PACKAGE_STRING "$PACKAGE_STRING"
1884_ACEOF
1885
1886
1887cat >>confdefs.h <<_ACEOF
1888#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1889_ACEOF
1890
1891
1892# Let the site file select an alternate cache file if it wants to.
47dc80f6
AK
1893# Prefer an explicitly selected file to automatically selected ones.
1894ac_site_file1=NONE
1895ac_site_file2=NONE
b9668ba4 1896if test -n "$CONFIG_SITE"; then
47dc80f6 1897 ac_site_file1=$CONFIG_SITE
b9668ba4 1898elif test "x$prefix" != xNONE; then
47dc80f6
AK
1899 ac_site_file1=$prefix/share/config.site
1900 ac_site_file2=$prefix/etc/config.site
b9668ba4 1901else
47dc80f6
AK
1902 ac_site_file1=$ac_default_prefix/share/config.site
1903 ac_site_file2=$ac_default_prefix/etc/config.site
b9668ba4 1904fi
47dc80f6 1905for ac_site_file in "$ac_site_file1" "$ac_site_file2"
b9668ba4 1906do
47dc80f6 1907 test "x$ac_site_file" = xNONE && continue
b9668ba4 1908 if test -r "$ac_site_file"; then
47dc80f6
AK
1909 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1910$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b9668ba4
AK
1911 sed 's/^/| /' "$ac_site_file" >&5
1912 . "$ac_site_file"
1913 fi
1914done
1915
1916if test -r "$cache_file"; then
1917 # Some versions of bash will fail to source /dev/null (special
1918 # files actually), so we avoid doing that.
1919 if test -f "$cache_file"; then
47dc80f6
AK
1920 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1921$as_echo "$as_me: loading cache $cache_file" >&6;}
b9668ba4
AK
1922 case $cache_file in
1923 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1924 *) . "./$cache_file";;
1925 esac
1926 fi
1927else
47dc80f6
AK
1928 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1929$as_echo "$as_me: creating cache $cache_file" >&6;}
b9668ba4
AK
1930 >$cache_file
1931fi
1932
1933# Check that the precious variables saved in the cache have kept the same
1934# value.
1935ac_cache_corrupted=false
1936for ac_var in $ac_precious_vars; do
1937 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1938 eval ac_new_set=\$ac_env_${ac_var}_set
1939 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1940 eval ac_new_val=\$ac_env_${ac_var}_value
1941 case $ac_old_set,$ac_new_set in
1942 set,)
47dc80f6
AK
1943 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1944$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b9668ba4
AK
1945 ac_cache_corrupted=: ;;
1946 ,set)
47dc80f6
AK
1947 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1948$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b9668ba4
AK
1949 ac_cache_corrupted=: ;;
1950 ,);;
1951 *)
1952 if test "x$ac_old_val" != "x$ac_new_val"; then
47dc80f6
AK
1953 # differences in whitespace do not lead to failure.
1954 ac_old_val_w=`echo x $ac_old_val`
1955 ac_new_val_w=`echo x $ac_new_val`
1956 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1957 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1958$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1959 ac_cache_corrupted=:
1960 else
1961 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1962$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1963 eval $ac_var=\$ac_old_val
1964 fi
1965 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1966$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1967 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1968$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b9668ba4
AK
1969 fi;;
1970 esac
1971 # Pass precious variables to config.status.
1972 if test "$ac_new_set" = set; then
1973 case $ac_new_val in
47dc80f6 1974 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b9668ba4
AK
1975 *) ac_arg=$ac_var=$ac_new_val ;;
1976 esac
1977 case " $ac_configure_args " in
1978 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1979 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1980 esac
1981 fi
1982done
1983if $ac_cache_corrupted; then
47dc80f6
AK
1984 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1986 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1987$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1988 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1989$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
b9668ba4
AK
1990 { (exit 1); exit 1; }; }
1991fi
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017ac_ext=c
2018ac_cpp='$CPP $CPPFLAGS'
2019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2021ac_compiler_gnu=$ac_cv_c_compiler_gnu
2022
2023
2024ac_aux_dir=
2025for ac_dir in config "$srcdir"/config; do
2026 if test -f "$ac_dir/install-sh"; then
2027 ac_aux_dir=$ac_dir
2028 ac_install_sh="$ac_aux_dir/install-sh -c"
2029 break
2030 elif test -f "$ac_dir/install.sh"; then
2031 ac_aux_dir=$ac_dir
2032 ac_install_sh="$ac_aux_dir/install.sh -c"
2033 break
2034 elif test -f "$ac_dir/shtool"; then
2035 ac_aux_dir=$ac_dir
2036 ac_install_sh="$ac_aux_dir/shtool install -c"
2037 break
2038 fi
2039done
2040if test -z "$ac_aux_dir"; then
47dc80f6
AK
2041 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2042$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
b9668ba4
AK
2043 { (exit 1); exit 1; }; }
2044fi
2045
2046# These three variables are undocumented and unsupported,
2047# and are intended to be withdrawn in a future Autoconf release.
2048# They can cause serious problems if a builder's source tree is in a directory
2049# whose full name contains unusual characters.
2050ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2051ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2052ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2053
2054
2055ac_config_headers="$ac_config_headers config.h"
2056
5c706339
AK
2057am__api_version='1.10'
2058
b9668ba4
AK
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.
47dc80f6
AK
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; }
b9668ba4
AK
2075if test -z "$INSTALL"; then
2076if test "${ac_cv_path_install+set}" = set; then
47dc80f6 2077 $as_echo_n "(cached) " >&6
b9668ba4
AK
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
2096 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
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
47dc80f6
AK
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
b9668ba4
AK
2118 fi
2119 fi
2120 done
2121 done
2122 ;;
2123esac
47dc80f6 2124
b9668ba4
AK
2125done
2126IFS=$as_save_IFS
2127
47dc80f6 2128rm -rf conftest.one conftest.two conftest.dir
b9668ba4
AK
2129
2130fi
2131 if test "${ac_cv_path_install+set}" = set; then
2132 INSTALL=$ac_cv_path_install
2133 else
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
2136 # break other packages using the cache if that directory is
2137 # removed, or if the value is a relative name.
2138 INSTALL=$ac_install_sh
2139 fi
2140fi
47dc80f6
AK
2141{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2142$as_echo "$INSTALL" >&6; }
b9668ba4
AK
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
47dc80f6
AK
2152{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2153$as_echo_n "checking whether build environment is sane... " >&6; }
b9668ba4
AK
2154# Just in case
2155sleep 1
2156echo timestamp > conftest.file
2157# Do `set' in a subshell so we don't clobber the current shell's
2158# arguments. Must try -L first in case configure is actually a
2159# symlink; some systems play weird games with the mod time of symlinks
2160# (eg FreeBSD returns the mod time of the symlink's containing
2161# directory).
2162if (
2163 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2164 if test "$*" = "X"; then
2165 # -L didn't work.
2166 set X `ls -t $srcdir/configure conftest.file`
2167 fi
2168 rm -f conftest.file
2169 if test "$*" != "X $srcdir/configure conftest.file" \
2170 && test "$*" != "X conftest.file $srcdir/configure"; then
2171
2172 # If neither matched, then we have a broken ls. This can happen
2173 # if, for instance, CONFIG_SHELL is bash and it inherits a
2174 # broken ls alias from the environment. This has actually
2175 # happened. Such a system could not be considered "sane".
47dc80f6 2176 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
b9668ba4 2177alias in your environment" >&5
47dc80f6 2178$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
b9668ba4
AK
2179alias in your environment" >&2;}
2180 { (exit 1); exit 1; }; }
2181 fi
2182
2183 test "$2" = conftest.file
2184 )
2185then
2186 # Ok.
2187 :
2188else
47dc80f6 2189 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
b9668ba4 2190Check your system clock" >&5
47dc80f6 2191$as_echo "$as_me: error: newly created file is older than distributed files!
b9668ba4
AK
2192Check your system clock" >&2;}
2193 { (exit 1); exit 1; }; }
2194fi
47dc80f6
AK
2195{ $as_echo "$as_me:$LINENO: result: yes" >&5
2196$as_echo "yes" >&6; }
b9668ba4
AK
2197test "$program_prefix" != NONE &&
2198 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2199# Use a double $ so make ignores it.
2200test "$program_suffix" != NONE &&
2201 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
47dc80f6 2202# Double any \ or $.
b9668ba4 2203# By default was `s,x,x', remove it if useless.
47dc80f6
AK
2204ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2205program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b9668ba4
AK
2206
2207# expand $ac_aux_dir to an absolute path
2208am_aux_dir=`cd $ac_aux_dir && pwd`
2209
2210test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2211# Use eval to expand $SHELL
2212if eval "$MISSING --run true"; then
2213 am_missing_run="$MISSING --run "
2214else
2215 am_missing_run=
47dc80f6
AK
2216 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2217$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
b9668ba4
AK
2218fi
2219
47dc80f6
AK
2220{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2221$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5c706339
AK
2222if test -z "$MKDIR_P"; then
2223 if test "${ac_cv_path_mkdir+set}" = set; then
47dc80f6 2224 $as_echo_n "(cached) " >&6
5c706339
AK
2225else
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2228do
2229 IFS=$as_save_IFS
2230 test -z "$as_dir" && as_dir=.
2231 for ac_prog in mkdir gmkdir; do
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2234 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2235 'mkdir (GNU coreutils) '* | \
2236 'mkdir (coreutils) '* | \
2237 'mkdir (fileutils) '4.1*)
2238 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2239 break 3;;
2240 esac
2241 done
2242 done
2243done
2244IFS=$as_save_IFS
2245
2246fi
2247
2248 if test "${ac_cv_path_mkdir+set}" = set; then
2249 MKDIR_P="$ac_cv_path_mkdir -p"
b9668ba4 2250 else
5c706339
AK
2251 # As a last resort, use the slow shell script. Don't cache a
2252 # value for MKDIR_P within a source directory, because that will
2253 # break other packages using the cache if that directory is
2254 # removed, or if the value is a relative name.
2255 test -d ./--version && rmdir ./--version
2256 MKDIR_P="$ac_install_sh -d"
b9668ba4
AK
2257 fi
2258fi
47dc80f6
AK
2259{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2260$as_echo "$MKDIR_P" >&6; }
5c706339
AK
2261
2262mkdir_p="$MKDIR_P"
2263case $mkdir_p in
2264 [\\/$]* | ?:[\\/]*) ;;
2265 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2266esac
b9668ba4
AK
2267
2268for ac_prog in gawk mawk nawk awk
2269do
2270 # Extract the first word of "$ac_prog", so it can be a program name with args.
2271set dummy $ac_prog; ac_word=$2
47dc80f6
AK
2272{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2273$as_echo_n "checking for $ac_word... " >&6; }
b9668ba4 2274if test "${ac_cv_prog_AWK+set}" = set; then
47dc80f6 2275 $as_echo_n "(cached) " >&6
b9668ba4
AK
2276else
2277 if test -n "$AWK"; then
2278 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2279else
2280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281for as_dir in $PATH
2282do
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2287 ac_cv_prog_AWK="$ac_prog"
47dc80f6 2288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
2289 break 2
2290 fi
2291done
2292done
2293IFS=$as_save_IFS
2294
2295fi
2296fi
2297AWK=$ac_cv_prog_AWK
2298if test -n "$AWK"; then
47dc80f6
AK
2299 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2300$as_echo "$AWK" >&6; }
b9668ba4 2301else
47dc80f6
AK
2302 { $as_echo "$as_me:$LINENO: result: no" >&5
2303$as_echo "no" >&6; }
b9668ba4
AK
2304fi
2305
2306
2307 test -n "$AWK" && break
2308done
2309
47dc80f6
AK
2310{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2311$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2312set x ${MAKE-make}
2313ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b9668ba4 2314if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
47dc80f6 2315 $as_echo_n "(cached) " >&6
b9668ba4
AK
2316else
2317 cat >conftest.make <<\_ACEOF
2318SHELL = /bin/sh
2319all:
2320 @echo '@@@%%%=$(MAKE)=@@@%%%'
2321_ACEOF
2322# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2323case `${MAKE-make} -f conftest.make 2>/dev/null` in
2324 *@@@%%%=?*=@@@%%%*)
2325 eval ac_cv_prog_make_${ac_make}_set=yes;;
2326 *)
2327 eval ac_cv_prog_make_${ac_make}_set=no;;
2328esac
2329rm -f conftest.make
2330fi
2331if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
47dc80f6
AK
2332 { $as_echo "$as_me:$LINENO: result: yes" >&5
2333$as_echo "yes" >&6; }
b9668ba4
AK
2334 SET_MAKE=
2335else
47dc80f6
AK
2336 { $as_echo "$as_me:$LINENO: result: no" >&5
2337$as_echo "no" >&6; }
b9668ba4
AK
2338 SET_MAKE="MAKE=${MAKE-make}"
2339fi
2340
2341rm -rf .tst 2>/dev/null
2342mkdir .tst 2>/dev/null
2343if test -d .tst; then
2344 am__leading_dot=.
2345else
2346 am__leading_dot=_
2347fi
2348rmdir .tst 2>/dev/null
2349
5c706339
AK
2350if test "`cd $srcdir && pwd`" != "`pwd`"; then
2351 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2352 # is not polluted with repeated "-I."
2353 am__isrc=' -I$(srcdir)'
2354 # test to see if srcdir already configured
2355 if test -f $srcdir/config.status; then
47dc80f6
AK
2356 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2357$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
b9668ba4 2358 { (exit 1); exit 1; }; }
5c706339 2359 fi
b9668ba4
AK
2360fi
2361
2362# test whether we have cygpath
2363if test -z "$CYGPATH_W"; then
2364 if (cygpath --version) >/dev/null 2>/dev/null; then
2365 CYGPATH_W='cygpath -w'
2366 else
2367 CYGPATH_W=echo
2368 fi
2369fi
2370
2371
2372# Define the identity of the package.
2373 PACKAGE='yaml'
47dc80f6 2374 VERSION='0.1.3'
b9668ba4
AK
2375
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE "$PACKAGE"
2379_ACEOF
2380
2381
2382cat >>confdefs.h <<_ACEOF
2383#define VERSION "$VERSION"
2384_ACEOF
2385
2386# Some tools Automake needs.
2387
2388ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2389
2390
2391AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2392
2393
2394AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2395
2396
2397AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2398
2399
2400MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2401
5c706339 2402install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
b9668ba4
AK
2403
2404# Installed binaries are usually stripped using `strip' when the user
2405# run `make install-strip'. However `strip' might not be the right
2406# tool to use in cross-compilation environments, therefore Automake
2407# will honor the `STRIP' environment variable to overrule this program.
2408if test "$cross_compiling" != no; then
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2411set dummy ${ac_tool_prefix}strip; ac_word=$2
47dc80f6
AK
2412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2413$as_echo_n "checking for $ac_word... " >&6; }
b9668ba4 2414if test "${ac_cv_prog_STRIP+set}" = set; then
47dc80f6 2415 $as_echo_n "(cached) " >&6
b9668ba4
AK
2416else
2417 if test -n "$STRIP"; then
2418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2419else
2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47dc80f6 2428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
2429 break 2
2430 fi
2431done
2432done
2433IFS=$as_save_IFS
2434
2435fi
2436fi
2437STRIP=$ac_cv_prog_STRIP
2438if test -n "$STRIP"; then
47dc80f6
AK
2439 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2440$as_echo "$STRIP" >&6; }
b9668ba4 2441else
47dc80f6
AK
2442 { $as_echo "$as_me:$LINENO: result: no" >&5
2443$as_echo "no" >&6; }
b9668ba4
AK
2444fi
2445
2446
2447fi
2448if test -z "$ac_cv_prog_STRIP"; then
2449 ac_ct_STRIP=$STRIP
2450 # Extract the first word of "strip", so it can be a program name with args.
2451set dummy strip; ac_word=$2
47dc80f6
AK
2452{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2453$as_echo_n "checking for $ac_word... " >&6; }
b9668ba4 2454if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47dc80f6 2455 $as_echo_n "(cached) " >&6
b9668ba4
AK
2456else
2457 if test -n "$ac_ct_STRIP"; then
2458 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2459else
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_ac_ct_STRIP="strip"
47dc80f6 2468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
2469 break 2
2470 fi
2471done
2472done
2473IFS=$as_save_IFS
2474
2475fi
2476fi
2477ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2478if test -n "$ac_ct_STRIP"; then
47dc80f6
AK
2479 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2480$as_echo "$ac_ct_STRIP" >&6; }
b9668ba4 2481else
47dc80f6
AK
2482 { $as_echo "$as_me:$LINENO: result: no" >&5
2483$as_echo "no" >&6; }
b9668ba4
AK
2484fi
2485
2486 if test "x$ac_ct_STRIP" = x; then
2487 STRIP=":"
2488 else
2489 case $cross_compiling:$ac_tool_warned in
2490yes:)
47dc80f6
AK
2491{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
2493ac_tool_warned=yes ;;
2494esac
2495 STRIP=$ac_ct_STRIP
2496 fi
2497else
2498 STRIP="$ac_cv_prog_STRIP"
2499fi
2500
2501fi
5c706339 2502INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b9668ba4
AK
2503
2504# We need awk for the "check" target. The system "awk" is bad on
2505# some platforms.
2506# Always define AMTAR for backward compatibility.
2507
2508AMTAR=${AMTAR-"${am_missing_run}tar"}
2509
2510am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2511
2512
2513
2514
2515
2516
2517# Define macro variables for the package version numbers.
2518
2519cat >>confdefs.h <<\_ACEOF
2520#define YAML_VERSION_MAJOR 0
2521_ACEOF
2522
2523
2524cat >>confdefs.h <<\_ACEOF
2525#define YAML_VERSION_MINOR 1
2526_ACEOF
2527
2528
2529cat >>confdefs.h <<\_ACEOF
47dc80f6 2530#define YAML_VERSION_PATCH 3
b9668ba4
AK
2531_ACEOF
2532
2533
2534cat >>confdefs.h <<\_ACEOF
47dc80f6 2535#define YAML_VERSION_STRING "0.1.3"
b9668ba4
AK
2536_ACEOF
2537
2538
2539# Define substitutions for the libtool version numbers.
2540YAML_LT_RELEASE=0
5c706339 2541YAML_LT_CURRENT=2
47dc80f6
AK
2542YAML_LT_REVISION=1
2543YAML_LT_AGE=0
b9668ba4
AK
2544
2545
2546
2547
2548
2549# Note: in order to update checks, run `autoscan` and look through "configure.scan".
2550
2551# Checks for programs.
2552ac_ext=c
2553ac_cpp='$CPP $CPPFLAGS'
2554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557if test -n "$ac_tool_prefix"; then
2558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2559set dummy ${ac_tool_prefix}gcc; ac_word=$2
47dc80f6
AK
2560{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2561$as_echo_n "checking for $ac_word... " >&6; }
b9668ba4 2562if test "${ac_cv_prog_CC+set}" = set; then
47dc80f6 2563 $as_echo_n "(cached) " >&6
b9668ba4
AK
2564else
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2567else
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
47dc80f6 2576 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
2577 break 2
2578 fi
2579done
2580done
2581IFS=$as_save_IFS
2582
2583fi
2584fi
2585CC=$ac_cv_prog_CC
2586if test -n "$CC"; then
47dc80f6
AK
2587 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2588$as_echo "$CC" >&6; }
b9668ba4 2589else
47dc80f6
AK
2590 { $as_echo "$as_me:$LINENO: result: no" >&5
2591$as_echo "no" >&6; }
b9668ba4
AK
2592fi
2593
2594
2595fi
2596if test -z "$ac_cv_prog_CC"; then
2597 ac_ct_CC=$CC
2598 # Extract the first word of "gcc", so it can be a program name with args.
2599set dummy gcc; ac_word=$2
47dc80f6
AK
2600{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2601$as_echo_n "checking for $ac_word... " >&6; }
b9668ba4 2602if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
47dc80f6 2603 $as_echo_n "(cached) " >&6
b9668ba4
AK
2604else
2605 if test -n "$ac_ct_CC"; then
2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2607else
2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_ac_ct_CC="gcc"
47dc80f6 2616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
2617 break 2
2618 fi
2619done
2620done
2621IFS=$as_save_IFS
2622
2623fi
2624fi
2625ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626if test -n "$ac_ct_CC"; then
47dc80f6
AK
2627 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2628$as_echo "$ac_ct_CC" >&6; }
b9668ba4 2629else
47dc80f6
AK
2630 { $as_echo "$as_me:$LINENO: result: no" >&5
2631$as_echo "no" >&6; }
b9668ba4
AK
2632fi
2633
2634 if test "x$ac_ct_CC" = x; then
2635 CC=""
2636 else
2637 case $cross_compiling:$ac_tool_warned in
2638yes:)
47dc80f6
AK
2639{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
2641ac_tool_warned=yes ;;
2642esac
2643 CC=$ac_ct_CC
2644 fi
2645else
2646 CC="$ac_cv_prog_CC"
2647fi
2648
2649if test -z "$CC"; then
2650 if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2652set dummy ${ac_tool_prefix}cc; ac_word=$2
47dc80f6
AK
2653{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2654$as_echo_n "checking for $ac_word... " >&6; }
b9668ba4 2655if test "${ac_cv_prog_CC+set}" = set; then
47dc80f6 2656 $as_echo_n "(cached) " >&6
b9668ba4
AK
2657else
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 ac_cv_prog_CC="${ac_tool_prefix}cc"
47dc80f6 2669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
2670 break 2
2671 fi
2672done
2673done
2674IFS=$as_save_IFS
2675
2676fi
2677fi
2678CC=$ac_cv_prog_CC
2679if test -n "$CC"; then
47dc80f6
AK
2680 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2681$as_echo "$CC" >&6; }
b9668ba4 2682else
47dc80f6
AK
2683 { $as_echo "$as_me:$LINENO: result: no" >&5
2684$as_echo "no" >&6; }
b9668ba4
AK
2685fi
2686
2687
2688 fi
2689fi
2690if test -z "$CC"; then
2691 # Extract the first word of "cc", so it can be a program name with args.
2692set dummy cc; ac_word=$2
47dc80f6
AK
2693{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2694$as_echo_n "checking for $ac_word... " >&6; }
b9668ba4 2695if test "${ac_cv_prog_CC+set}" = set; then
47dc80f6 2696 $as_echo_n "(cached) " >&6
b9668ba4
AK
2697else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700else
2701 ac_prog_rejected=no
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2710 ac_prog_rejected=yes
2711 continue
2712 fi
2713 ac_cv_prog_CC="cc"
47dc80f6 2714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
2715 break 2
2716 fi
2717done
2718done
2719IFS=$as_save_IFS
2720
2721if test $ac_prog_rejected = yes; then
2722 # We found a bogon in the path, so make sure we never use it.
2723 set dummy $ac_cv_prog_CC
2724 shift
2725 if test $# != 0; then
2726 # We chose a different compiler from the bogus one.
2727 # However, it has the same basename, so the bogon will be chosen
2728 # first if we set CC to just the basename; use the full file name.
2729 shift
2730 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2731 fi
2732fi
2733fi
2734fi
2735CC=$ac_cv_prog_CC
2736if test -n "$CC"; then
47dc80f6
AK
2737 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2738$as_echo "$CC" >&6; }
b9668ba4 2739else
47dc80f6
AK
2740 { $as_echo "$as_me:$LINENO: result: no" >&5
2741$as_echo "no" >&6; }
b9668ba4
AK
2742fi
2743
2744
2745fi
2746if test -z "$CC"; then
2747 if test -n "$ac_tool_prefix"; then
2748 for ac_prog in cl.exe
2749 do
2750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2751set dummy $ac_tool_prefix$ac_prog; ac_word=$2
47dc80f6
AK
2752{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2753$as_echo_n "checking for $ac_word... " >&6; }
b9668ba4 2754if test "${ac_cv_prog_CC+set}" = set; then
47dc80f6 2755 $as_echo_n "(cached) " >&6
b9668ba4
AK
2756else
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2759else
2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761for as_dir in $PATH
2762do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
47dc80f6 2768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
2769 break 2
2770 fi
2771done
2772done
2773IFS=$as_save_IFS
2774
2775fi
2776fi
2777CC=$ac_cv_prog_CC
2778if test -n "$CC"; then
47dc80f6
AK
2779 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2780$as_echo "$CC" >&6; }
b9668ba4 2781else
47dc80f6
AK
2782 { $as_echo "$as_me:$LINENO: result: no" >&5
2783$as_echo "no" >&6; }
b9668ba4
AK
2784fi
2785
2786
2787 test -n "$CC" && break
2788 done
2789fi
2790if test -z "$CC"; then
2791 ac_ct_CC=$CC
2792 for ac_prog in cl.exe
2793do
2794 # Extract the first word of "$ac_prog", so it can be a program name with args.
2795set dummy $ac_prog; ac_word=$2
47dc80f6
AK
2796{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2797$as_echo_n "checking for $ac_word... " >&6; }
b9668ba4 2798if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
47dc80f6 2799 $as_echo_n "(cached) " >&6
b9668ba4
AK
2800else
2801 if test -n "$ac_ct_CC"; then
2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803else
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811 ac_cv_prog_ac_ct_CC="$ac_prog"
47dc80f6 2812 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
2813 break 2
2814 fi
2815done
2816done
2817IFS=$as_save_IFS
2818
2819fi
2820fi
2821ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822if test -n "$ac_ct_CC"; then
47dc80f6
AK
2823 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2824$as_echo "$ac_ct_CC" >&6; }
b9668ba4 2825else
47dc80f6
AK
2826 { $as_echo "$as_me:$LINENO: result: no" >&5
2827$as_echo "no" >&6; }
b9668ba4
AK
2828fi
2829
2830
2831 test -n "$ac_ct_CC" && break
2832done
2833
2834 if test "x$ac_ct_CC" = x; then
2835 CC=""
2836 else
2837 case $cross_compiling:$ac_tool_warned in
2838yes:)
47dc80f6
AK
2839{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
2841ac_tool_warned=yes ;;
2842esac
2843 CC=$ac_ct_CC
2844 fi
2845fi
2846
2847fi
2848
2849
47dc80f6
AK
2850test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
b9668ba4 2853See \`config.log' for more details." >&5
47dc80f6 2854$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
b9668ba4 2855See \`config.log' for more details." >&2;}
47dc80f6 2856 { (exit 1); exit 1; }; }; }
b9668ba4
AK
2857
2858# Provide some information about the compiler.
47dc80f6
AK
2859$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2860set X $ac_compile
2861ac_compiler=$2
b9668ba4
AK
2862{ (ac_try="$ac_compiler --version >&5"
2863case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866esac
47dc80f6
AK
2867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2868$as_echo "$ac_try_echo") >&5
b9668ba4
AK
2869 (eval "$ac_compiler --version >&5") 2>&5
2870 ac_status=$?
47dc80f6 2871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
2872 (exit $ac_status); }
2873{ (ac_try="$ac_compiler -v >&5"
2874case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877esac
47dc80f6
AK
2878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2879$as_echo "$ac_try_echo") >&5
b9668ba4
AK
2880 (eval "$ac_compiler -v >&5") 2>&5
2881 ac_status=$?
47dc80f6 2882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
2883 (exit $ac_status); }
2884{ (ac_try="$ac_compiler -V >&5"
2885case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
47dc80f6
AK
2889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2890$as_echo "$ac_try_echo") >&5
b9668ba4
AK
2891 (eval "$ac_compiler -V >&5") 2>&5
2892 ac_status=$?
47dc80f6 2893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
2894 (exit $ac_status); }
2895
2896cat >conftest.$ac_ext <<_ACEOF
2897/* confdefs.h. */
2898_ACEOF
2899cat confdefs.h >>conftest.$ac_ext
2900cat >>conftest.$ac_ext <<_ACEOF
2901/* end confdefs.h. */
2902
2903int
2904main ()
2905{
2906
2907 ;
2908 return 0;
2909}
2910_ACEOF
2911ac_clean_files_save=$ac_clean_files
47dc80f6 2912ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b9668ba4
AK
2913# Try to create an executable without -o first, disregard a.out.
2914# It will help us diagnose broken compilers, and finding out an intuition
2915# of exeext.
47dc80f6
AK
2916{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2917$as_echo_n "checking for C compiler default output file name... " >&6; }
2918ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2919
2920# The possible output files:
2921ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2922
b9668ba4
AK
2923ac_rmfiles=
2924for ac_file in $ac_files
2925do
2926 case $ac_file in
47dc80f6 2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b9668ba4
AK
2928 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2929 esac
2930done
2931rm -f $ac_rmfiles
2932
2933if { (ac_try="$ac_link_default"
2934case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937esac
47dc80f6
AK
2938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2939$as_echo "$ac_try_echo") >&5
b9668ba4
AK
2940 (eval "$ac_link_default") 2>&5
2941 ac_status=$?
47dc80f6 2942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
2943 (exit $ac_status); }; then
2944 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2945# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2946# in a Makefile. We should not override ac_cv_exeext if it was cached,
2947# so that the user can short-circuit this test for compilers unknown to
2948# Autoconf.
2949for ac_file in $ac_files ''
2950do
2951 test -f "$ac_file" || continue
2952 case $ac_file in
47dc80f6 2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b9668ba4
AK
2954 ;;
2955 [ab].out )
2956 # We found the default executable, but exeext='' is most
2957 # certainly right.
2958 break;;
2959 *.* )
2960 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2961 then :; else
2962 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2963 fi
2964 # We set ac_cv_exeext here because the later test for it is not
2965 # safe: cross compilers may not add the suffix if given an `-o'
2966 # argument, so we may need to know it at that point already.
2967 # Even if this section looks crufty: it has the advantage of
2968 # actually working.
2969 break;;
2970 * )
2971 break;;
2972 esac
2973done
2974test "$ac_cv_exeext" = no && ac_cv_exeext=
2975
2976else
2977 ac_file=''
2978fi
2979
47dc80f6
AK
2980{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2981$as_echo "$ac_file" >&6; }
b9668ba4 2982if test -z "$ac_file"; then
47dc80f6 2983 $as_echo "$as_me: failed program was:" >&5
b9668ba4
AK
2984sed 's/^/| /' conftest.$ac_ext >&5
2985
47dc80f6
AK
2986{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
b9668ba4 2989See \`config.log' for more details." >&5
47dc80f6 2990$as_echo "$as_me: error: C compiler cannot create executables
b9668ba4 2991See \`config.log' for more details." >&2;}
47dc80f6 2992 { (exit 77); exit 77; }; }; }
b9668ba4
AK
2993fi
2994
2995ac_exeext=$ac_cv_exeext
2996
2997# Check that the compiler produces executables we can run. If not, either
2998# the compiler is broken, or we cross compile.
47dc80f6
AK
2999{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3000$as_echo_n "checking whether the C compiler works... " >&6; }
b9668ba4
AK
3001# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3002# If not cross compiling, check that we can run a simple program.
3003if test "$cross_compiling" != yes; then
3004 if { ac_try='./$ac_file'
3005 { (case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008esac
47dc80f6
AK
3009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3010$as_echo "$ac_try_echo") >&5
b9668ba4
AK
3011 (eval "$ac_try") 2>&5
3012 ac_status=$?
47dc80f6 3013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
3014 (exit $ac_status); }; }; then
3015 cross_compiling=no
3016 else
3017 if test "$cross_compiling" = maybe; then
3018 cross_compiling=yes
3019 else
47dc80f6
AK
3020 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
b9668ba4
AK
3023If you meant to cross compile, use \`--host'.
3024See \`config.log' for more details." >&5
47dc80f6 3025$as_echo "$as_me: error: cannot run C compiled programs.
b9668ba4
AK
3026If you meant to cross compile, use \`--host'.
3027See \`config.log' for more details." >&2;}
47dc80f6 3028 { (exit 1); exit 1; }; }; }
b9668ba4
AK
3029 fi
3030 fi
3031fi
47dc80f6
AK
3032{ $as_echo "$as_me:$LINENO: result: yes" >&5
3033$as_echo "yes" >&6; }
b9668ba4 3034
47dc80f6 3035rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b9668ba4
AK
3036ac_clean_files=$ac_clean_files_save
3037# Check that the compiler produces executables we can run. If not, either
3038# the compiler is broken, or we cross compile.
47dc80f6
AK
3039{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3040$as_echo_n "checking whether we are cross compiling... " >&6; }
3041{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3042$as_echo "$cross_compiling" >&6; }
b9668ba4 3043
47dc80f6
AK
3044{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3045$as_echo_n "checking for suffix of executables... " >&6; }
b9668ba4
AK
3046if { (ac_try="$ac_link"
3047case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050esac
47dc80f6
AK
3051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3052$as_echo "$ac_try_echo") >&5
b9668ba4
AK
3053 (eval "$ac_link") 2>&5
3054 ac_status=$?
47dc80f6 3055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
3056 (exit $ac_status); }; then
3057 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3058# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3059# work properly (i.e., refer to `conftest.exe'), while it won't with
3060# `rm'.
3061for ac_file in conftest.exe conftest conftest.*; do
3062 test -f "$ac_file" || continue
3063 case $ac_file in
47dc80f6 3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b9668ba4
AK
3065 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3066 break;;
3067 * ) break;;
3068 esac
3069done
3070else
47dc80f6
AK
3071 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
b9668ba4 3074See \`config.log' for more details." >&5
47dc80f6 3075$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
b9668ba4 3076See \`config.log' for more details." >&2;}
47dc80f6 3077 { (exit 1); exit 1; }; }; }
b9668ba4
AK
3078fi
3079
3080rm -f conftest$ac_cv_exeext
47dc80f6
AK
3081{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3082$as_echo "$ac_cv_exeext" >&6; }
b9668ba4
AK
3083
3084rm -f conftest.$ac_ext
3085EXEEXT=$ac_cv_exeext
3086ac_exeext=$EXEEXT
47dc80f6
AK
3087{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3088$as_echo_n "checking for suffix of object files... " >&6; }
b9668ba4 3089if test "${ac_cv_objext+set}" = set; then
47dc80f6 3090 $as_echo_n "(cached) " >&6
b9668ba4
AK
3091else
3092 cat >conftest.$ac_ext <<_ACEOF
3093/* confdefs.h. */
3094_ACEOF
3095cat confdefs.h >>conftest.$ac_ext
3096cat >>conftest.$ac_ext <<_ACEOF
3097/* end confdefs.h. */
3098
3099int
3100main ()
3101{
3102
3103 ;
3104 return 0;
3105}
3106_ACEOF
3107rm -f conftest.o conftest.obj
3108if { (ac_try="$ac_compile"
3109case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112esac
47dc80f6
AK
3113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3114$as_echo "$ac_try_echo") >&5
b9668ba4
AK
3115 (eval "$ac_compile") 2>&5
3116 ac_status=$?
47dc80f6 3117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
3118 (exit $ac_status); }; then
3119 for ac_file in conftest.o conftest.obj conftest.*; do
3120 test -f "$ac_file" || continue;
3121 case $ac_file in
47dc80f6 3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b9668ba4
AK
3123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3124 break;;
3125 esac
3126done
3127else
47dc80f6 3128 $as_echo "$as_me: failed program was:" >&5
b9668ba4
AK
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
47dc80f6
AK
3131{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
b9668ba4 3134See \`config.log' for more details." >&5
47dc80f6 3135$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
b9668ba4 3136See \`config.log' for more details." >&2;}
47dc80f6 3137 { (exit 1); exit 1; }; }; }
b9668ba4
AK
3138fi
3139
3140rm -f conftest.$ac_cv_objext conftest.$ac_ext
3141fi
47dc80f6
AK
3142{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3143$as_echo "$ac_cv_objext" >&6; }
b9668ba4
AK
3144OBJEXT=$ac_cv_objext
3145ac_objext=$OBJEXT
47dc80f6
AK
3146{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3147$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b9668ba4 3148if test "${ac_cv_c_compiler_gnu+set}" = set; then
47dc80f6 3149 $as_echo_n "(cached) " >&6
b9668ba4
AK
3150else
3151 cat >conftest.$ac_ext <<_ACEOF
3152/* confdefs.h. */
3153_ACEOF
3154cat confdefs.h >>conftest.$ac_ext
3155cat >>conftest.$ac_ext <<_ACEOF
3156/* end confdefs.h. */
3157
3158int
3159main ()
3160{
3161#ifndef __GNUC__
3162 choke me
3163#endif
3164
3165 ;
3166 return 0;
3167}
3168_ACEOF
3169rm -f conftest.$ac_objext
3170if { (ac_try="$ac_compile"
3171case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174esac
47dc80f6
AK
3175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3176$as_echo "$ac_try_echo") >&5
b9668ba4
AK
3177 (eval "$ac_compile") 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
47dc80f6 3182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
3183 (exit $ac_status); } && {
3184 test -z "$ac_c_werror_flag" ||
3185 test ! -s conftest.err
3186 } && test -s conftest.$ac_objext; then
3187 ac_compiler_gnu=yes
3188else
47dc80f6 3189 $as_echo "$as_me: failed program was:" >&5
b9668ba4
AK
3190sed 's/^/| /' conftest.$ac_ext >&5
3191
3192 ac_compiler_gnu=no
3193fi
3194
3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196ac_cv_c_compiler_gnu=$ac_compiler_gnu
3197
3198fi
47dc80f6
AK
3199{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3200$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3201if test $ac_compiler_gnu = yes; then
3202 GCC=yes
3203else
3204 GCC=
3205fi
b9668ba4
AK
3206ac_test_CFLAGS=${CFLAGS+set}
3207ac_save_CFLAGS=$CFLAGS
47dc80f6
AK
3208{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3209$as_echo_n "checking whether $CC accepts -g... " >&6; }
b9668ba4 3210if test "${ac_cv_prog_cc_g+set}" = set; then
47dc80f6 3211 $as_echo_n "(cached) " >&6
b9668ba4
AK
3212else
3213 ac_save_c_werror_flag=$ac_c_werror_flag
3214 ac_c_werror_flag=yes
3215 ac_cv_prog_cc_g=no
3216 CFLAGS="-g"
3217 cat >conftest.$ac_ext <<_ACEOF
3218/* confdefs.h. */
3219_ACEOF
3220cat confdefs.h >>conftest.$ac_ext
3221cat >>conftest.$ac_ext <<_ACEOF
3222/* end confdefs.h. */
3223
3224int
3225main ()
3226{
3227
3228 ;
3229 return 0;
3230}
3231_ACEOF
3232rm -f conftest.$ac_objext
3233if { (ac_try="$ac_compile"
3234case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237esac
47dc80f6
AK
3238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3239$as_echo "$ac_try_echo") >&5
b9668ba4
AK
3240 (eval "$ac_compile") 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
47dc80f6 3245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
3246 (exit $ac_status); } && {
3247 test -z "$ac_c_werror_flag" ||
3248 test ! -s conftest.err
3249 } && test -s conftest.$ac_objext; then
3250 ac_cv_prog_cc_g=yes
3251else
47dc80f6 3252 $as_echo "$as_me: failed program was:" >&5
b9668ba4
AK
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
3255 CFLAGS=""
3256 cat >conftest.$ac_ext <<_ACEOF
3257/* confdefs.h. */
3258_ACEOF
3259cat confdefs.h >>conftest.$ac_ext
3260cat >>conftest.$ac_ext <<_ACEOF
3261/* end confdefs.h. */
3262
3263int
3264main ()
3265{
3266
3267 ;
3268 return 0;
3269}
3270_ACEOF
3271rm -f conftest.$ac_objext
3272if { (ac_try="$ac_compile"
3273case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276esac
47dc80f6
AK
3277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3278$as_echo "$ac_try_echo") >&5
b9668ba4
AK
3279 (eval "$ac_compile") 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
47dc80f6 3284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
3285 (exit $ac_status); } && {
3286 test -z "$ac_c_werror_flag" ||
3287 test ! -s conftest.err
3288 } && test -s conftest.$ac_objext; then
3289 :
3290else
47dc80f6 3291 $as_echo "$as_me: failed program was:" >&5
b9668ba4
AK
3292sed 's/^/| /' conftest.$ac_ext >&5
3293
3294 ac_c_werror_flag=$ac_save_c_werror_flag
3295 CFLAGS="-g"
3296 cat >conftest.$ac_ext <<_ACEOF
3297/* confdefs.h. */
3298_ACEOF
3299cat confdefs.h >>conftest.$ac_ext
3300cat >>conftest.$ac_ext <<_ACEOF
3301/* end confdefs.h. */
3302
3303int
3304main ()
3305{
3306
3307 ;
3308 return 0;
3309}
3310_ACEOF
3311rm -f conftest.$ac_objext
3312if { (ac_try="$ac_compile"
3313case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316esac
47dc80f6
AK
3317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3318$as_echo "$ac_try_echo") >&5
b9668ba4
AK
3319 (eval "$ac_compile") 2>conftest.er1
3320 ac_status=$?
3321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
47dc80f6 3324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
3325 (exit $ac_status); } && {
3326 test -z "$ac_c_werror_flag" ||
3327 test ! -s conftest.err
3328 } && test -s conftest.$ac_objext; then
3329 ac_cv_prog_cc_g=yes
3330else
47dc80f6 3331 $as_echo "$as_me: failed program was:" >&5
b9668ba4
AK
3332sed 's/^/| /' conftest.$ac_ext >&5
3333
3334
3335fi
3336
3337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338fi
3339
3340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341fi
3342
3343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 ac_c_werror_flag=$ac_save_c_werror_flag
3345fi
47dc80f6
AK
3346{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3347$as_echo "$ac_cv_prog_cc_g" >&6; }
b9668ba4
AK
3348if test "$ac_test_CFLAGS" = set; then
3349 CFLAGS=$ac_save_CFLAGS
3350elif test $ac_cv_prog_cc_g = yes; then
3351 if test "$GCC" = yes; then
3352 CFLAGS="-g -O2"
3353 else
3354 CFLAGS="-g"
3355 fi
3356else
3357 if test "$GCC" = yes; then
3358 CFLAGS="-O2"
3359 else
3360 CFLAGS=
3361 fi
3362fi
47dc80f6
AK
3363{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3364$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b9668ba4 3365if test "${ac_cv_prog_cc_c89+set}" = set; then
47dc80f6 3366 $as_echo_n "(cached) " >&6
b9668ba4
AK
3367else
3368 ac_cv_prog_cc_c89=no
3369ac_save_CC=$CC
3370cat >conftest.$ac_ext <<_ACEOF
3371/* confdefs.h. */
3372_ACEOF
3373cat confdefs.h >>conftest.$ac_ext
3374cat >>conftest.$ac_ext <<_ACEOF
3375/* end confdefs.h. */
3376#include <stdarg.h>
3377#include <stdio.h>
3378#include <sys/types.h>
3379#include <sys/stat.h>
3380/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3381struct buf { int x; };
3382FILE * (*rcsopen) (struct buf *, struct stat *, int);
3383static char *e (p, i)
3384 char **p;
3385 int i;
3386{
3387 return p[i];
3388}
3389static char *f (char * (*g) (char **, int), char **p, ...)
3390{
3391 char *s;
3392 va_list v;
3393 va_start (v,p);
3394 s = g (p, va_arg (v,int));
3395 va_end (v);
3396 return s;
3397}
3398
3399/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3400 function prototypes and stuff, but not '\xHH' hex character constants.
3401 These don't provoke an error unfortunately, instead are silently treated
3402 as 'x'. The following induces an error, until -std is added to get
3403 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3404 array size at least. It's necessary to write '\x00'==0 to get something
3405 that's true only with -std. */
3406int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3407
3408/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3409 inside strings and character constants. */
3410#define FOO(x) 'x'
3411int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3412
3413int test (int i, double x);
3414struct s1 {int (*f) (int a);};
3415struct s2 {int (*f) (double a);};
3416int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3417int argc;
3418char **argv;
3419int
3420main ()
3421{
3422return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3423 ;
3424 return 0;
3425}
3426_ACEOF
3427for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3428 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3429do
3430 CC="$ac_save_CC $ac_arg"
3431 rm -f conftest.$ac_objext
3432if { (ac_try="$ac_compile"
3433case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
47dc80f6
AK
3437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3438$as_echo "$ac_try_echo") >&5
b9668ba4
AK
3439 (eval "$ac_compile") 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
47dc80f6 3444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
3445 (exit $ac_status); } && {
3446 test -z "$ac_c_werror_flag" ||
3447 test ! -s conftest.err
3448 } && test -s conftest.$ac_objext; then
3449 ac_cv_prog_cc_c89=$ac_arg
3450else
47dc80f6 3451 $as_echo "$as_me: failed program was:" >&5
b9668ba4
AK
3452sed 's/^/| /' conftest.$ac_ext >&5
3453
3454
3455fi
3456
3457rm -f core conftest.err conftest.$ac_objext
3458 test "x$ac_cv_prog_cc_c89" != "xno" && break
3459done
3460rm -f conftest.$ac_ext
3461CC=$ac_save_CC
3462
3463fi
3464# AC_CACHE_VAL
3465case "x$ac_cv_prog_cc_c89" in
3466 x)
47dc80f6
AK
3467 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3468$as_echo "none needed" >&6; } ;;
b9668ba4 3469 xno)
47dc80f6
AK
3470 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3471$as_echo "unsupported" >&6; } ;;
b9668ba4
AK
3472 *)
3473 CC="$CC $ac_cv_prog_cc_c89"
47dc80f6
AK
3474 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3475$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b9668ba4
AK
3476esac
3477
3478
3479ac_ext=c
3480ac_cpp='$CPP $CPPFLAGS'
3481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484DEPDIR="${am__leading_dot}deps"
3485
3486ac_config_commands="$ac_config_commands depfiles"
3487
3488
3489am_make=${MAKE-make}
3490cat > confinc << 'END'
3491am__doit:
3492 @echo done
3493.PHONY: am__doit
3494END
3495# If we don't find an include directive, just comment out the code.
47dc80f6
AK
3496{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3497$as_echo_n "checking for style of include used by $am_make... " >&6; }
b9668ba4
AK
3498am__include="#"
3499am__quote=
3500_am_result=none
3501# First try GNU make style include.
3502echo "include confinc" > confmf
3503# We grep out `Entering directory' and `Leaving directory'
3504# messages which can occur if `w' ends up in MAKEFLAGS.
3505# In particular we don't look at `^make:' because GNU make might
3506# be invoked under some other name (usually "gmake"), in which
3507# case it prints its new name instead of `make'.
3508if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3509 am__include=include
3510 am__quote=
3511 _am_result=GNU
3512fi
3513# Now try BSD make style include.
3514if test "$am__include" = "#"; then
3515 echo '.include "confinc"' > confmf
3516 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3517 am__include=.include
3518 am__quote="\""
3519 _am_result=BSD
3520 fi
3521fi
3522
3523
47dc80f6
AK
3524{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3525$as_echo "$_am_result" >&6; }
b9668ba4
AK
3526rm -f confinc confmf
3527
3528# Check whether --enable-dependency-tracking was given.
3529if test "${enable_dependency_tracking+set}" = set; then
3530 enableval=$enable_dependency_tracking;
3531fi
3532
3533if test "x$enable_dependency_tracking" != xno; then
3534 am_depcomp="$ac_aux_dir/depcomp"
3535 AMDEPBACKSLASH='\'
3536fi
5c706339 3537 if test "x$enable_dependency_tracking" != xno; then
b9668ba4
AK
3538 AMDEP_TRUE=
3539 AMDEP_FALSE='#'
3540else
3541 AMDEP_TRUE='#'
3542 AMDEP_FALSE=
3543fi
3544
3545
3546
b9668ba4
AK
3547depcc="$CC" am_compiler_list=
3548
47dc80f6
AK
3549{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3550$as_echo_n "checking dependency style of $depcc... " >&6; }
b9668ba4 3551if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
47dc80f6 3552 $as_echo_n "(cached) " >&6
b9668ba4
AK
3553else
3554 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3555 # We make a subdir and do the tests there. Otherwise we can end up
3556 # making bogus files that we don't know about and never remove. For
3557 # instance it was reported that on HP-UX the gcc test will end up
3558 # making a dummy file named `D' -- because `-MD' means `put the output
3559 # in D'.
3560 mkdir conftest.dir
3561 # Copy depcomp to subdir because otherwise we won't find it if we're
3562 # using a relative directory.
3563 cp "$am_depcomp" conftest.dir
3564 cd conftest.dir
3565 # We will build objects and dependencies in a subdirectory because
3566 # it helps to detect inapplicable dependency modes. For instance
3567 # both Tru64's cc and ICC support -MD to output dependencies as a
3568 # side effect of compilation, but ICC will put the dependencies in
3569 # the current directory while Tru64 will put them in the object
3570 # directory.
3571 mkdir sub
3572
3573 am_cv_CC_dependencies_compiler_type=none
3574 if test "$am_compiler_list" = ""; then
3575 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3576 fi
3577 for depmode in $am_compiler_list; do
3578 # Setup a source with many dependencies, because some compilers
3579 # like to wrap large dependency lists on column 80 (with \), and
3580 # we should not choose a depcomp mode which is confused by this.
3581 #
3582 # We need to recreate these files for each test, as the compiler may
3583 # overwrite some of them when testing with obscure command lines.
3584 # This happens at least with the AIX C compiler.
3585 : > sub/conftest.c
3586 for i in 1 2 3 4 5 6; do
3587 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3588 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3589 # Solaris 8's {/usr,}/bin/sh.
3590 touch sub/conftst$i.h
3591 done
3592 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3593
3594 case $depmode in
3595 nosideeffect)
3596 # after this tag, mechanisms are not by side-effect, so they'll
3597 # only be used when explicitly requested
3598 if test "x$enable_dependency_tracking" = xyes; then
3599 continue
3600 else
3601 break
3602 fi
3603 ;;
3604 none) break ;;
3605 esac
3606 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3607 # mode. It turns out that the SunPro C++ compiler does not properly
3608 # handle `-M -o', and we need to detect this.
3609 if depmode=$depmode \
3610 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3611 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3612 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3613 >/dev/null 2>conftest.err &&
5c706339 3614 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
b9668ba4
AK
3615 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3616 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3617 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3618 # icc doesn't choke on unknown options, it will just issue warnings
3619 # or remarks (even with -Werror). So we grep stderr for any message
3620 # that says an option was ignored or not supported.
3621 # When given -MP, icc 7.0 and 7.1 complain thusly:
3622 # icc: Command line warning: ignoring option '-M'; no argument required
3623 # The diagnosis changed in icc 8.0:
3624 # icc: Command line remark: option '-MP' not supported
3625 if (grep 'ignoring option' conftest.err ||
3626 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3627 am_cv_CC_dependencies_compiler_type=$depmode
3628 break
3629 fi
3630 fi
3631 done
3632
3633 cd ..
3634 rm -rf conftest.dir
3635else
3636 am_cv_CC_dependencies_compiler_type=none
3637fi
3638
3639fi
47dc80f6
AK
3640{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3641$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
b9668ba4
AK
3642CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3643
5c706339 3644 if
b9668ba4
AK
3645 test "x$enable_dependency_tracking" != xno \
3646 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3647 am__fastdepCC_TRUE=
3648 am__fastdepCC_FALSE='#'
3649else
3650 am__fastdepCC_TRUE='#'
3651 am__fastdepCC_FALSE=
3652fi
3653
3654
3655ac_ext=c
3656ac_cpp='$CPP $CPPFLAGS'
3657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659ac_compiler_gnu=$ac_cv_c_compiler_gnu
47dc80f6
AK
3660{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3661$as_echo_n "checking how to run the C preprocessor... " >&6; }
b9668ba4
AK
3662# On Suns, sometimes $CPP names a directory.
3663if test -n "$CPP" && test -d "$CPP"; then
3664 CPP=
3665fi
3666if test -z "$CPP"; then
3667 if test "${ac_cv_prog_CPP+set}" = set; then
47dc80f6 3668 $as_echo_n "(cached) " >&6
b9668ba4
AK
3669else
3670 # Double quotes because CPP needs to be expanded
3671 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3672 do
3673 ac_preproc_ok=false
3674for ac_c_preproc_warn_flag in '' yes
3675do
3676 # Use a header file that comes with gcc, so configuring glibc
3677 # with a fresh cross-compiler works.
3678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3679 # <limits.h> exists even on freestanding compilers.
3680 # On the NeXT, cc -E runs the code through the compiler's parser,
3681 # not just through cpp. "Syntax error" is here to catch this case.
3682 cat >conftest.$ac_ext <<_ACEOF
3683/* confdefs.h. */
3684_ACEOF
3685cat confdefs.h >>conftest.$ac_ext
3686cat >>conftest.$ac_ext <<_ACEOF
3687/* end confdefs.h. */
3688#ifdef __STDC__
3689# include <limits.h>
3690#else
3691# include <assert.h>
3692#endif
3693 Syntax error
3694_ACEOF
3695if { (ac_try="$ac_cpp conftest.$ac_ext"
3696case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699esac
47dc80f6
AK
3700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3701$as_echo "$ac_try_echo") >&5
b9668ba4
AK
3702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
47dc80f6 3707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
3708 (exit $ac_status); } >/dev/null && {
3709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3710 test ! -s conftest.err
3711 }; then
3712 :
3713else
47dc80f6 3714 $as_echo "$as_me: failed program was:" >&5
b9668ba4
AK
3715sed 's/^/| /' conftest.$ac_ext >&5
3716
3717 # Broken: fails on valid input.
3718continue
3719fi
3720
3721rm -f conftest.err conftest.$ac_ext
3722
3723 # OK, works on sane cases. Now check whether nonexistent headers
3724 # can be detected and how.
3725 cat >conftest.$ac_ext <<_ACEOF
3726/* confdefs.h. */
3727_ACEOF
3728cat confdefs.h >>conftest.$ac_ext
3729cat >>conftest.$ac_ext <<_ACEOF
3730/* end confdefs.h. */
3731#include <ac_nonexistent.h>
3732_ACEOF
3733if { (ac_try="$ac_cpp conftest.$ac_ext"
3734case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737esac
47dc80f6
AK
3738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3739$as_echo "$ac_try_echo") >&5
b9668ba4
AK
3740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3741 ac_status=$?
3742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
47dc80f6 3745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
3746 (exit $ac_status); } >/dev/null && {
3747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3748 test ! -s conftest.err
3749 }; then
3750 # Broken: success on invalid input.
3751continue
3752else
47dc80f6 3753 $as_echo "$as_me: failed program was:" >&5
b9668ba4
AK
3754sed 's/^/| /' conftest.$ac_ext >&5
3755
3756 # Passes both tests.
3757ac_preproc_ok=:
3758break
3759fi
3760
3761rm -f conftest.err conftest.$ac_ext
3762
3763done
3764# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765rm -f conftest.err conftest.$ac_ext
3766if $ac_preproc_ok; then
3767 break
3768fi
3769
3770 done
3771 ac_cv_prog_CPP=$CPP
3772
3773fi
3774 CPP=$ac_cv_prog_CPP
3775else
3776 ac_cv_prog_CPP=$CPP
3777fi
47dc80f6
AK
3778{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3779$as_echo "$CPP" >&6; }
b9668ba4
AK
3780ac_preproc_ok=false
3781for ac_c_preproc_warn_flag in '' yes
3782do
3783 # Use a header file that comes with gcc, so configuring glibc
3784 # with a fresh cross-compiler works.
3785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786 # <limits.h> exists even on freestanding compilers.
3787 # On the NeXT, cc -E runs the code through the compiler's parser,
3788 # not just through cpp. "Syntax error" is here to catch this case.
3789 cat >conftest.$ac_ext <<_ACEOF
3790/* confdefs.h. */
3791_ACEOF
3792cat confdefs.h >>conftest.$ac_ext
3793cat >>conftest.$ac_ext <<_ACEOF
3794/* end confdefs.h. */
3795#ifdef __STDC__
3796# include <limits.h>
3797#else
3798# include <assert.h>
3799#endif
3800 Syntax error
3801_ACEOF
3802if { (ac_try="$ac_cpp conftest.$ac_ext"
3803case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806esac
47dc80f6
AK
3807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3808$as_echo "$ac_try_echo") >&5
b9668ba4
AK
3809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
47dc80f6 3814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
3815 (exit $ac_status); } >/dev/null && {
3816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3818 }; then
3819 :
3820else
47dc80f6 3821 $as_echo "$as_me: failed program was:" >&5
b9668ba4
AK
3822sed 's/^/| /' conftest.$ac_ext >&5
3823
3824 # Broken: fails on valid input.
3825continue
3826fi
3827
3828rm -f conftest.err conftest.$ac_ext
3829
3830 # OK, works on sane cases. Now check whether nonexistent headers
3831 # can be detected and how.
3832 cat >conftest.$ac_ext <<_ACEOF
3833/* confdefs.h. */
3834_ACEOF
3835cat confdefs.h >>conftest.$ac_ext
3836cat >>conftest.$ac_ext <<_ACEOF
3837/* end confdefs.h. */
3838#include <ac_nonexistent.h>
3839_ACEOF
3840if { (ac_try="$ac_cpp conftest.$ac_ext"
3841case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844esac
47dc80f6
AK
3845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3846$as_echo "$ac_try_echo") >&5
b9668ba4
AK
3847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
47dc80f6 3852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
3853 (exit $ac_status); } >/dev/null && {
3854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3855 test ! -s conftest.err
3856 }; then
3857 # Broken: success on invalid input.
3858continue
3859else
47dc80f6 3860 $as_echo "$as_me: failed program was:" >&5
b9668ba4
AK
3861sed 's/^/| /' conftest.$ac_ext >&5
3862
3863 # Passes both tests.
3864ac_preproc_ok=:
3865break
3866fi
3867
3868rm -f conftest.err conftest.$ac_ext
3869
3870done
3871# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3872rm -f conftest.err conftest.$ac_ext
3873if $ac_preproc_ok; then
3874 :
3875else
47dc80f6
AK
3876 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
b9668ba4 3879See \`config.log' for more details." >&5
47dc80f6 3880$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
b9668ba4 3881See \`config.log' for more details." >&2;}
47dc80f6 3882 { (exit 1); exit 1; }; }; }
b9668ba4
AK
3883fi
3884
3885ac_ext=c
3886ac_cpp='$CPP $CPPFLAGS'
3887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890
3891# Find a good install program. We prefer a C program (faster),
3892# so one script is as good as another. But avoid the broken or
3893# incompatible versions:
3894# SysV /etc/install, /usr/sbin/install
3895# SunOS /usr/etc/install
3896# IRIX /sbin/install
3897# AIX /bin/install
3898# AmigaOS /C/install, which installs bootblocks on floppy discs
3899# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3900# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3901# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3902# OS/2's system install, which has a completely different semantic
3903# ./install, which can be erroneously created by make from ./install.sh.
47dc80f6
AK
3904# Reject install programs that cannot install multiple files.
3905{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3906$as_echo_n "checking for a BSD-compatible install... " >&6; }
b9668ba4
AK
3907if test -z "$INSTALL"; then
3908if test "${ac_cv_path_install+set}" = set; then
47dc80f6 3909 $as_echo_n "(cached) " >&6
b9668ba4
AK
3910else
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 # Account for people who put trailing slashes in PATH elements.
3917case $as_dir/ in
3918 ./ | .// | /cC/* | \
3919 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3920 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3921 /usr/ucb/* ) ;;
3922 *)
3923 # OSF1 and SCO ODT 3.0 have their own names for install.
3924 # Don't use installbsd from OSF since it installs stuff as root
3925 # by default.
3926 for ac_prog in ginstall scoinst install; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3929 if test $ac_prog = install &&
3930 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3931 # AIX install. It has an incompatible calling convention.
3932 :
3933 elif test $ac_prog = install &&
3934 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3935 # program-specific install script used by HP pwplus--don't use.
3936 :
3937 else
47dc80f6
AK
3938 rm -rf conftest.one conftest.two conftest.dir
3939 echo one > conftest.one
3940 echo two > conftest.two
3941 mkdir conftest.dir
3942 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3943 test -s conftest.one && test -s conftest.two &&
3944 test -s conftest.dir/conftest.one &&
3945 test -s conftest.dir/conftest.two
3946 then
3947 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3948 break 3
3949 fi
b9668ba4
AK
3950 fi
3951 fi
3952 done
3953 done
3954 ;;
3955esac
47dc80f6 3956
b9668ba4
AK
3957done
3958IFS=$as_save_IFS
3959
47dc80f6 3960rm -rf conftest.one conftest.two conftest.dir
b9668ba4
AK
3961
3962fi
3963 if test "${ac_cv_path_install+set}" = set; then
3964 INSTALL=$ac_cv_path_install
3965 else
3966 # As a last resort, use the slow shell script. Don't cache a
3967 # value for INSTALL within a source directory, because that will
3968 # break other packages using the cache if that directory is
3969 # removed, or if the value is a relative name.
3970 INSTALL=$ac_install_sh
3971 fi
3972fi
47dc80f6
AK
3973{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3974$as_echo "$INSTALL" >&6; }
b9668ba4
AK
3975
3976# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3977# It thinks the first close brace ends the variable substitution.
3978test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3979
3980test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3981
3982test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3983
47dc80f6
AK
3984{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3985$as_echo_n "checking whether ln -s works... " >&6; }
b9668ba4
AK
3986LN_S=$as_ln_s
3987if test "$LN_S" = "ln -s"; then
47dc80f6
AK
3988 { $as_echo "$as_me:$LINENO: result: yes" >&5
3989$as_echo "yes" >&6; }
b9668ba4 3990else
47dc80f6
AK
3991 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3992$as_echo "no, using $LN_S" >&6; }
b9668ba4
AK
3993fi
3994
47dc80f6
AK
3995{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3996$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3997set x ${MAKE-make}
3998ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b9668ba4 3999if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
47dc80f6 4000 $as_echo_n "(cached) " >&6
b9668ba4
AK
4001else
4002 cat >conftest.make <<\_ACEOF
4003SHELL = /bin/sh
4004all:
4005 @echo '@@@%%%=$(MAKE)=@@@%%%'
4006_ACEOF
4007# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4008case `${MAKE-make} -f conftest.make 2>/dev/null` in
4009 *@@@%%%=?*=@@@%%%*)
4010 eval ac_cv_prog_make_${ac_make}_set=yes;;
4011 *)
4012 eval ac_cv_prog_make_${ac_make}_set=no;;
4013esac
4014rm -f conftest.make
4015fi
4016if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
47dc80f6
AK
4017 { $as_echo "$as_me:$LINENO: result: yes" >&5
4018$as_echo "yes" >&6; }
b9668ba4
AK
4019 SET_MAKE=
4020else
47dc80f6
AK
4021 { $as_echo "$as_me:$LINENO: result: no" >&5
4022$as_echo "no" >&6; }
b9668ba4
AK
4023 SET_MAKE="MAKE=${MAKE-make}"
4024fi
4025
5c706339
AK
4026case `pwd` in
4027 *\ * | *\ *)
47dc80f6
AK
4028 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4029$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5c706339
AK
4030esac
4031
4032
4033
47dc80f6
AK
4034macro_version='2.2.6'
4035macro_revision='1.3012'
5c706339 4036
b9668ba4
AK
4037
4038
b9668ba4
AK
4039
4040
b9668ba4
AK
4041
4042
5c706339
AK
4043
4044
4045
4046
4047
4048
4049ltmain="$ac_aux_dir/ltmain.sh"
4050
b9668ba4
AK
4051# Make sure we can run config.sub.
4052$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
47dc80f6
AK
4053 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4054$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
b9668ba4
AK
4055 { (exit 1); exit 1; }; }
4056
47dc80f6
AK
4057{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4058$as_echo_n "checking build system type... " >&6; }
b9668ba4 4059if test "${ac_cv_build+set}" = set; then
47dc80f6 4060 $as_echo_n "(cached) " >&6
b9668ba4
AK
4061else
4062 ac_build_alias=$build_alias
4063test "x$ac_build_alias" = x &&
4064 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4065test "x$ac_build_alias" = x &&
47dc80f6
AK
4066 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4067$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
b9668ba4
AK
4068 { (exit 1); exit 1; }; }
4069ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
47dc80f6
AK
4070 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4071$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
b9668ba4
AK
4072 { (exit 1); exit 1; }; }
4073
4074fi
47dc80f6
AK
4075{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4076$as_echo "$ac_cv_build" >&6; }
b9668ba4
AK
4077case $ac_cv_build in
4078*-*-*) ;;
47dc80f6
AK
4079*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4080$as_echo "$as_me: error: invalid value of canonical build" >&2;}
b9668ba4
AK
4081 { (exit 1); exit 1; }; };;
4082esac
4083build=$ac_cv_build
4084ac_save_IFS=$IFS; IFS='-'
4085set x $ac_cv_build
4086shift
4087build_cpu=$1
4088build_vendor=$2
4089shift; shift
4090# Remember, the first character of IFS is used to create $*,
4091# except with old shells:
4092build_os=$*
4093IFS=$ac_save_IFS
4094case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4095
4096
47dc80f6
AK
4097{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4098$as_echo_n "checking host system type... " >&6; }
b9668ba4 4099if test "${ac_cv_host+set}" = set; then
47dc80f6 4100 $as_echo_n "(cached) " >&6
b9668ba4
AK
4101else
4102 if test "x$host_alias" = x; then
4103 ac_cv_host=$ac_cv_build
4104else
4105 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
47dc80f6
AK
4106 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4107$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
b9668ba4
AK
4108 { (exit 1); exit 1; }; }
4109fi
4110
4111fi
47dc80f6
AK
4112{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4113$as_echo "$ac_cv_host" >&6; }
b9668ba4
AK
4114case $ac_cv_host in
4115*-*-*) ;;
47dc80f6
AK
4116*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4117$as_echo "$as_me: error: invalid value of canonical host" >&2;}
b9668ba4
AK
4118 { (exit 1); exit 1; }; };;
4119esac
4120host=$ac_cv_host
4121ac_save_IFS=$IFS; IFS='-'
4122set x $ac_cv_host
4123shift
4124host_cpu=$1
4125host_vendor=$2
4126shift; shift
4127# Remember, the first character of IFS is used to create $*,
4128# except with old shells:
4129host_os=$*
4130IFS=$ac_save_IFS
4131case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4132
4133
47dc80f6
AK
4134{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4135$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5c706339 4136if test "${ac_cv_path_SED+set}" = set; then
47dc80f6 4137 $as_echo_n "(cached) " >&6
b9668ba4 4138else
5c706339
AK
4139 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4140 for ac_i in 1 2 3 4 5 6 7; do
4141 ac_script="$ac_script$as_nl$ac_script"
4142 done
47dc80f6 4143 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5c706339 4144 $as_unset ac_script || ac_script=
47dc80f6 4145 if test -z "$SED"; then
5c706339 4146 ac_path_SED_found=false
47dc80f6
AK
4147 # Loop through the user's path and test for each of PROGNAME-LIST
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b9668ba4
AK
4149for as_dir in $PATH
4150do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
5c706339 4153 for ac_prog in sed gsed; do
47dc80f6
AK
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4156 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4157# Check for GNU ac_path_SED and select it if it is found.
5c706339
AK
4158 # Check for GNU $ac_path_SED
4159case `"$ac_path_SED" --version 2>&1` in
4160*GNU*)
4161 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4162*)
4163 ac_count=0
47dc80f6 4164 $as_echo_n 0123456789 >"conftest.in"
5c706339
AK
4165 while :
4166 do
4167 cat "conftest.in" "conftest.in" >"conftest.tmp"
4168 mv "conftest.tmp" "conftest.in"
4169 cp "conftest.in" "conftest.nl"
47dc80f6 4170 $as_echo '' >> "conftest.nl"
5c706339
AK
4171 "$ac_path_SED" -f conftest.sed < "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_SED_max-0}; then
4175 # Best one so far, save it but keep looking for a better one
4176 ac_cv_path_SED="$ac_path_SED"
4177 ac_path_SED_max=$ac_count
b9668ba4 4178 fi
5c706339
AK
4179 # 10*(2^10) chars as input seems more than enough
4180 test $ac_count -gt 10 && break
b9668ba4 4181 done
5c706339
AK
4182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4183esac
4184
47dc80f6
AK
4185 $ac_path_SED_found && break 3
4186 done
5c706339
AK
4187 done
4188done
5c706339 4189IFS=$as_save_IFS
47dc80f6
AK
4190 if test -z "$ac_cv_path_SED"; then
4191 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4192$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5c706339 4193 { (exit 1); exit 1; }; }
47dc80f6 4194 fi
5c706339
AK
4195else
4196 ac_cv_path_SED=$SED
4197fi
b9668ba4
AK
4198
4199fi
47dc80f6
AK
4200{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4201$as_echo "$ac_cv_path_SED" >&6; }
5c706339
AK
4202 SED="$ac_cv_path_SED"
4203 rm -f conftest.sed
4204
4205test -z "$SED" && SED=sed
4206Xsed="$SED -e 1s/^X//"
4207
4208
4209
4210
4211
4212
4213
4214
4215
b9668ba4 4216
b9668ba4 4217
47dc80f6
AK
4218{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4219$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b9668ba4 4220if test "${ac_cv_path_GREP+set}" = set; then
47dc80f6 4221 $as_echo_n "(cached) " >&6
b9668ba4 4222else
47dc80f6 4223 if test -z "$GREP"; then
b9668ba4 4224 ac_path_GREP_found=false
47dc80f6
AK
4225 # Loop through the user's path and test for each of PROGNAME-LIST
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b9668ba4
AK
4227for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4228do
4229 IFS=$as_save_IFS
4230 test -z "$as_dir" && as_dir=.
4231 for ac_prog in grep ggrep; do
47dc80f6
AK
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4234 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4235# Check for GNU ac_path_GREP and select it if it is found.
b9668ba4
AK
4236 # Check for GNU $ac_path_GREP
4237case `"$ac_path_GREP" --version 2>&1` in
4238*GNU*)
4239 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4240*)
4241 ac_count=0
47dc80f6 4242 $as_echo_n 0123456789 >"conftest.in"
b9668ba4
AK
4243 while :
4244 do
4245 cat "conftest.in" "conftest.in" >"conftest.tmp"
4246 mv "conftest.tmp" "conftest.in"
4247 cp "conftest.in" "conftest.nl"
47dc80f6 4248 $as_echo 'GREP' >> "conftest.nl"
b9668ba4
AK
4249 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4251 ac_count=`expr $ac_count + 1`
4252 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4253 # Best one so far, save it but keep looking for a better one
4254 ac_cv_path_GREP="$ac_path_GREP"
4255 ac_path_GREP_max=$ac_count
4256 fi
4257 # 10*(2^10) chars as input seems more than enough
4258 test $ac_count -gt 10 && break
4259 done
4260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4261esac
4262
47dc80f6
AK
4263 $ac_path_GREP_found && break 3
4264 done
b9668ba4
AK
4265 done
4266done
b9668ba4 4267IFS=$as_save_IFS
47dc80f6
AK
4268 if test -z "$ac_cv_path_GREP"; then
4269 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4270$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
b9668ba4 4271 { (exit 1); exit 1; }; }
47dc80f6 4272 fi
b9668ba4
AK
4273else
4274 ac_cv_path_GREP=$GREP
4275fi
4276
b9668ba4 4277fi
47dc80f6
AK
4278{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4279$as_echo "$ac_cv_path_GREP" >&6; }
b9668ba4
AK
4280 GREP="$ac_cv_path_GREP"
4281
4282
47dc80f6
AK
4283{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4284$as_echo_n "checking for egrep... " >&6; }
b9668ba4 4285if test "${ac_cv_path_EGREP+set}" = set; then
47dc80f6 4286 $as_echo_n "(cached) " >&6
b9668ba4
AK
4287else
4288 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4289 then ac_cv_path_EGREP="$GREP -E"
4290 else
47dc80f6 4291 if test -z "$EGREP"; then
b9668ba4 4292 ac_path_EGREP_found=false
47dc80f6
AK
4293 # Loop through the user's path and test for each of PROGNAME-LIST
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b9668ba4
AK
4295for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4296do
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 for ac_prog in egrep; do
47dc80f6
AK
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4302 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4303# Check for GNU ac_path_EGREP and select it if it is found.
b9668ba4
AK
4304 # Check for GNU $ac_path_EGREP
4305case `"$ac_path_EGREP" --version 2>&1` in
4306*GNU*)
4307 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4308*)
4309 ac_count=0
47dc80f6 4310 $as_echo_n 0123456789 >"conftest.in"
b9668ba4
AK
4311 while :
4312 do
4313 cat "conftest.in" "conftest.in" >"conftest.tmp"
4314 mv "conftest.tmp" "conftest.in"
4315 cp "conftest.in" "conftest.nl"
47dc80f6 4316 $as_echo 'EGREP' >> "conftest.nl"
b9668ba4
AK
4317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4319 ac_count=`expr $ac_count + 1`
4320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4321 # Best one so far, save it but keep looking for a better one
4322 ac_cv_path_EGREP="$ac_path_EGREP"
4323 ac_path_EGREP_max=$ac_count
4324 fi
4325 # 10*(2^10) chars as input seems more than enough
4326 test $ac_count -gt 10 && break
4327 done
4328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4329esac
4330
47dc80f6
AK
4331 $ac_path_EGREP_found && break 3
4332 done
b9668ba4
AK
4333 done
4334done
b9668ba4 4335IFS=$as_save_IFS
47dc80f6
AK
4336 if test -z "$ac_cv_path_EGREP"; then
4337 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4338$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
b9668ba4 4339 { (exit 1); exit 1; }; }
47dc80f6 4340 fi
b9668ba4
AK
4341else
4342 ac_cv_path_EGREP=$EGREP
4343fi
4344
b9668ba4
AK
4345 fi
4346fi
47dc80f6
AK
4347{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4348$as_echo "$ac_cv_path_EGREP" >&6; }
b9668ba4
AK
4349 EGREP="$ac_cv_path_EGREP"
4350
4351
47dc80f6
AK
4352{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4353$as_echo_n "checking for fgrep... " >&6; }
5c706339 4354if test "${ac_cv_path_FGREP+set}" = set; then
47dc80f6 4355 $as_echo_n "(cached) " >&6
5c706339
AK
4356else
4357 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4358 then ac_cv_path_FGREP="$GREP -F"
4359 else
47dc80f6 4360 if test -z "$FGREP"; then
5c706339 4361 ac_path_FGREP_found=false
47dc80f6
AK
4362 # Loop through the user's path and test for each of PROGNAME-LIST
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5c706339
AK
4364for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4365do
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_prog in fgrep; do
47dc80f6
AK
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4371 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4372# Check for GNU ac_path_FGREP and select it if it is found.
5c706339
AK
4373 # Check for GNU $ac_path_FGREP
4374case `"$ac_path_FGREP" --version 2>&1` in
4375*GNU*)
4376 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4377*)
4378 ac_count=0
47dc80f6 4379 $as_echo_n 0123456789 >"conftest.in"
5c706339
AK
4380 while :
4381 do
4382 cat "conftest.in" "conftest.in" >"conftest.tmp"
4383 mv "conftest.tmp" "conftest.in"
4384 cp "conftest.in" "conftest.nl"
47dc80f6 4385 $as_echo 'FGREP' >> "conftest.nl"
5c706339
AK
4386 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4388 ac_count=`expr $ac_count + 1`
4389 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4390 # Best one so far, save it but keep looking for a better one
4391 ac_cv_path_FGREP="$ac_path_FGREP"
4392 ac_path_FGREP_max=$ac_count
4393 fi
4394 # 10*(2^10) chars as input seems more than enough
4395 test $ac_count -gt 10 && break
4396 done
4397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4398esac
4399
47dc80f6
AK
4400 $ac_path_FGREP_found && break 3
4401 done
5c706339
AK
4402 done
4403done
5c706339 4404IFS=$as_save_IFS
47dc80f6
AK
4405 if test -z "$ac_cv_path_FGREP"; then
4406 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4407$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5c706339 4408 { (exit 1); exit 1; }; }
47dc80f6 4409 fi
b9668ba4 4410else
5c706339 4411 ac_cv_path_FGREP=$FGREP
b9668ba4
AK
4412fi
4413
5c706339
AK
4414 fi
4415fi
47dc80f6
AK
4416{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4417$as_echo "$ac_cv_path_FGREP" >&6; }
5c706339
AK
4418 FGREP="$ac_cv_path_FGREP"
4419
4420
4421test -z "$GREP" && GREP=grep
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441# Check whether --with-gnu-ld was given.
4442if test "${with_gnu_ld+set}" = set; then
4443 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4444else
4445 with_gnu_ld=no
4446fi
4447
4448ac_prog=ld
4449if test "$GCC" = yes; then
b9668ba4 4450 # Check if gcc -print-prog-name=ld gives a path.
47dc80f6
AK
4451 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4452$as_echo_n "checking for ld used by $CC... " >&6; }
b9668ba4
AK
4453 case $host in
4454 *-*-mingw*)
4455 # gcc leaves a trailing carriage return which upsets mingw
4456 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4457 *)
4458 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4459 esac
4460 case $ac_prog in
4461 # Accept absolute paths.
4462 [\\/]* | ?:[\\/]*)
4463 re_direlt='/[^/][^/]*/\.\./'
4464 # Canonicalize the pathname of ld
5c706339
AK
4465 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4466 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4467 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
b9668ba4
AK
4468 done
4469 test -z "$LD" && LD="$ac_prog"
4470 ;;
4471 "")
4472 # If it fails, then pretend we aren't using GCC.
4473 ac_prog=ld
4474 ;;
4475 *)
4476 # If it is relative, then search for the first ld in PATH.
4477 with_gnu_ld=unknown
4478 ;;
4479 esac
4480elif test "$with_gnu_ld" = yes; then
47dc80f6
AK
4481 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4482$as_echo_n "checking for GNU ld... " >&6; }
b9668ba4 4483else
47dc80f6
AK
4484 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4485$as_echo_n "checking for non-GNU ld... " >&6; }
b9668ba4
AK
4486fi
4487if test "${lt_cv_path_LD+set}" = set; then
47dc80f6 4488 $as_echo_n "(cached) " >&6
b9668ba4
AK
4489else
4490 if test -z "$LD"; then
4491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4492 for ac_dir in $PATH; do
4493 IFS="$lt_save_ifs"
4494 test -z "$ac_dir" && ac_dir=.
4495 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4496 lt_cv_path_LD="$ac_dir/$ac_prog"
4497 # Check to see if the program is GNU ld. I'd rather use --version,
4498 # but apparently some variants of GNU ld only accept -v.
4499 # Break only if it was the GNU/non-GNU ld that we prefer.
4500 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4501 *GNU* | *'with BFD'*)
4502 test "$with_gnu_ld" != no && break
4503 ;;
4504 *)
4505 test "$with_gnu_ld" != yes && break
4506 ;;
4507 esac
4508 fi
4509 done
4510 IFS="$lt_save_ifs"
4511else
4512 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4513fi
4514fi
4515
4516LD="$lt_cv_path_LD"
4517if test -n "$LD"; then
47dc80f6
AK
4518 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4519$as_echo "$LD" >&6; }
b9668ba4 4520else
47dc80f6
AK
4521 { $as_echo "$as_me:$LINENO: result: no" >&5
4522$as_echo "no" >&6; }
b9668ba4 4523fi
47dc80f6
AK
4524test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4525$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
b9668ba4 4526 { (exit 1); exit 1; }; }
47dc80f6
AK
4527{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4528$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b9668ba4 4529if test "${lt_cv_prog_gnu_ld+set}" = set; then
47dc80f6 4530 $as_echo_n "(cached) " >&6
b9668ba4
AK
4531else
4532 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4533case `$LD -v 2>&1 </dev/null` in
4534*GNU* | *'with BFD'*)
4535 lt_cv_prog_gnu_ld=yes
4536 ;;
4537*)
4538 lt_cv_prog_gnu_ld=no
4539 ;;
4540esac
4541fi
47dc80f6
AK
4542{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4543$as_echo "$lt_cv_prog_gnu_ld" >&6; }
b9668ba4
AK
4544with_gnu_ld=$lt_cv_prog_gnu_ld
4545
4546
b9668ba4 4547
5c706339
AK
4548
4549
4550
4551
4552
4553
47dc80f6
AK
4554{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4555$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
b9668ba4 4556if test "${lt_cv_path_NM+set}" = set; then
47dc80f6 4557 $as_echo_n "(cached) " >&6
b9668ba4
AK
4558else
4559 if test -n "$NM"; then
4560 # Let the user override the test.
4561 lt_cv_path_NM="$NM"
4562else
4563 lt_nm_to_check="${ac_tool_prefix}nm"
4564 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4565 lt_nm_to_check="$lt_nm_to_check nm"
4566 fi
4567 for lt_tmp_nm in $lt_nm_to_check; do
4568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4569 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4570 IFS="$lt_save_ifs"
4571 test -z "$ac_dir" && ac_dir=.
4572 tmp_nm="$ac_dir/$lt_tmp_nm"
4573 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4574 # Check to see if the nm accepts a BSD-compat flag.
4575 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4576 # nm: unknown option "B" ignored
4577 # Tru64's nm complains that /dev/null is an invalid object file
4578 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4579 */dev/null* | *'Invalid file or object type'*)
4580 lt_cv_path_NM="$tmp_nm -B"
4581 break
4582 ;;
4583 *)
4584 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4585 */dev/null*)
4586 lt_cv_path_NM="$tmp_nm -p"
4587 break
4588 ;;
4589 *)
4590 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4591 continue # so that we can try to find one that supports BSD flags
4592 ;;
4593 esac
4594 ;;
4595 esac
4596 fi
4597 done
4598 IFS="$lt_save_ifs"
4599 done
5c706339 4600 : ${lt_cv_path_NM=no}
b9668ba4
AK
4601fi
4602fi
47dc80f6
AK
4603{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4604$as_echo "$lt_cv_path_NM" >&6; }
5c706339
AK
4605if test "$lt_cv_path_NM" != "no"; then
4606 NM="$lt_cv_path_NM"
4607else
4608 # Didn't find any BSD compatible name lister, look for dumpbin.
4609 if test -n "$ac_tool_prefix"; then
4610 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4611 do
4612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4613set dummy $ac_tool_prefix$ac_prog; ac_word=$2
47dc80f6
AK
4614{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4615$as_echo_n "checking for $ac_word... " >&6; }
5c706339 4616if test "${ac_cv_prog_DUMPBIN+set}" = set; then
47dc80f6 4617 $as_echo_n "(cached) " >&6
b9668ba4 4618else
5c706339
AK
4619 if test -n "$DUMPBIN"; then
4620 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4621else
4622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623for as_dir in $PATH
4624do
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
47dc80f6 4630 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
4631 break 2
4632 fi
4633done
4634done
4635IFS=$as_save_IFS
b9668ba4 4636
5c706339
AK
4637fi
4638fi
4639DUMPBIN=$ac_cv_prog_DUMPBIN
4640if test -n "$DUMPBIN"; then
47dc80f6
AK
4641 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4642$as_echo "$DUMPBIN" >&6; }
5c706339 4643else
47dc80f6
AK
4644 { $as_echo "$as_me:$LINENO: result: no" >&5
4645$as_echo "no" >&6; }
5c706339 4646fi
b9668ba4 4647
b9668ba4 4648
5c706339
AK
4649 test -n "$DUMPBIN" && break
4650 done
4651fi
4652if test -z "$DUMPBIN"; then
4653 ac_ct_DUMPBIN=$DUMPBIN
4654 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4655do
4656 # Extract the first word of "$ac_prog", so it can be a program name with args.
4657set dummy $ac_prog; ac_word=$2
47dc80f6
AK
4658{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4659$as_echo_n "checking for $ac_word... " >&6; }
5c706339 4660if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
47dc80f6 4661 $as_echo_n "(cached) " >&6
5c706339
AK
4662else
4663 if test -n "$ac_ct_DUMPBIN"; then
4664 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4665else
4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
47dc80f6 4674 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
4675 break 2
4676 fi
4677done
4678done
4679IFS=$as_save_IFS
b9668ba4 4680
5c706339
AK
4681fi
4682fi
4683ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4684if test -n "$ac_ct_DUMPBIN"; then
47dc80f6
AK
4685 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4686$as_echo "$ac_ct_DUMPBIN" >&6; }
5c706339 4687else
47dc80f6
AK
4688 { $as_echo "$as_me:$LINENO: result: no" >&5
4689$as_echo "no" >&6; }
5c706339 4690fi
b9668ba4 4691
b9668ba4 4692
5c706339
AK
4693 test -n "$ac_ct_DUMPBIN" && break
4694done
b9668ba4 4695
5c706339
AK
4696 if test "x$ac_ct_DUMPBIN" = x; then
4697 DUMPBIN=":"
b9668ba4 4698 else
5c706339
AK
4699 case $cross_compiling:$ac_tool_warned in
4700yes:)
47dc80f6
AK
4701{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5c706339
AK
4703ac_tool_warned=yes ;;
4704esac
4705 DUMPBIN=$ac_ct_DUMPBIN
b9668ba4 4706 fi
5c706339 4707fi
b9668ba4 4708
b9668ba4 4709
5c706339
AK
4710 if test "$DUMPBIN" != ":"; then
4711 NM="$DUMPBIN"
4712 fi
4713fi
4714test -z "$NM" && NM=nm
b9668ba4 4715
b9668ba4 4716
b9668ba4 4717
b9668ba4 4718
b9668ba4 4719
b9668ba4 4720
47dc80f6
AK
4721{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4722$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5c706339 4723if test "${lt_cv_nm_interface+set}" = set; then
47dc80f6 4724 $as_echo_n "(cached) " >&6
5c706339
AK
4725else
4726 lt_cv_nm_interface="BSD nm"
4727 echo "int some_variable = 0;" > conftest.$ac_ext
47dc80f6 4728 (eval echo "\"\$as_me:4728: $ac_compile\"" >&5)
5c706339
AK
4729 (eval "$ac_compile" 2>conftest.err)
4730 cat conftest.err >&5
47dc80f6 4731 (eval echo "\"\$as_me:4731: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5c706339
AK
4732 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4733 cat conftest.err >&5
47dc80f6 4734 (eval echo "\"\$as_me:4734: output\"" >&5)
5c706339
AK
4735 cat conftest.out >&5
4736 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4737 lt_cv_nm_interface="MS dumpbin"
b9668ba4 4738 fi
5c706339
AK
4739 rm -f conftest*
4740fi
47dc80f6
AK
4741{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4742$as_echo "$lt_cv_nm_interface" >&6; }
b9668ba4 4743
5c706339 4744# find the maximum length of command line arguments
47dc80f6
AK
4745{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4746$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5c706339 4747if test "${lt_cv_sys_max_cmd_len+set}" = set; then
47dc80f6 4748 $as_echo_n "(cached) " >&6
5c706339
AK
4749else
4750 i=0
4751 teststring="ABCD"
b9668ba4 4752
5c706339
AK
4753 case $build_os in
4754 msdosdjgpp*)
4755 # On DJGPP, this test can blow up pretty badly due to problems in libc
4756 # (any single argument exceeding 2000 bytes causes a buffer overrun
4757 # during glob expansion). Even if it were fixed, the result of this
4758 # check would be larger than it should be.
4759 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4760 ;;
b9668ba4 4761
5c706339
AK
4762 gnu*)
4763 # Under GNU Hurd, this test is not required because there is
4764 # no limit to the length of command line arguments.
4765 # Libtool will interpret -1 as no limit whatsoever
4766 lt_cv_sys_max_cmd_len=-1;
b9668ba4 4767 ;;
5c706339 4768
47dc80f6 4769 cygwin* | mingw* | cegcc*)
5c706339
AK
4770 # On Win9x/ME, this test blows up -- it succeeds, but takes
4771 # about 5 minutes as the teststring grows exponentially.
4772 # Worse, since 9x/ME are not pre-emptively multitasking,
4773 # you end up with a "frozen" computer, even though with patience
4774 # the test eventually succeeds (with a max line length of 256k).
4775 # Instead, let's just punt: use the minimum linelength reported by
4776 # all of the supported platforms: 8192 (on NT/2K/XP).
4777 lt_cv_sys_max_cmd_len=8192;
b9668ba4 4778 ;;
5c706339
AK
4779
4780 amigaos*)
4781 # On AmigaOS with pdksh, this test takes hours, literally.
4782 # So we just punt and use a minimum line length of 8192.
4783 lt_cv_sys_max_cmd_len=8192;
b9668ba4 4784 ;;
5c706339
AK
4785
4786 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4787 # This has been around since 386BSD, at least. Likely further.
4788 if test -x /sbin/sysctl; then
4789 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4790 elif test -x /usr/sbin/sysctl; then
4791 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4792 else
4793 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4794 fi
4795 # And add a safety zone
4796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
b9668ba4 4798 ;;
5c706339
AK
4799
4800 interix*)
4801 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4802 lt_cv_sys_max_cmd_len=196608
b9668ba4 4803 ;;
5c706339
AK
4804
4805 osf*)
4806 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4807 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4808 # nice to cause kernel panics so lets avoid the loop below.
4809 # First set a reasonable default.
4810 lt_cv_sys_max_cmd_len=16384
4811 #
4812 if test -x /sbin/sysconfig; then
4813 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4814 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4815 esac
4816 fi
4817 ;;
4818 sco3.2v5*)
4819 lt_cv_sys_max_cmd_len=102400
4820 ;;
4821 sysv5* | sco5v6* | sysv4.2uw2*)
4822 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4823 if test -n "$kargmax"; then
4824 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4825 else
4826 lt_cv_sys_max_cmd_len=32768
4827 fi
4828 ;;
4829 *)
4830 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4831 if test -n "$lt_cv_sys_max_cmd_len"; then
4832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4834 else
4835 # Make teststring a little bigger before we do anything with it.
4836 # a 1K string should be a reasonable start.
4837 for i in 1 2 3 4 5 6 7 8 ; do
4838 teststring=$teststring$teststring
4839 done
4840 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4841 # If test is not a shell built-in, we'll probably end up computing a
4842 # maximum length that is only half of the actual maximum length, but
4843 # we can't tell.
4844 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4845 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4846 test $i != 17 # 1/2 MB should be enough
4847 do
4848 i=`expr $i + 1`
4849 teststring=$teststring$teststring
4850 done
4851 # Only check the string length outside the loop.
4852 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4853 teststring=
4854 # Add a significant safety factor because C++ compilers can tack on
4855 # massive amounts of additional arguments before passing them to the
4856 # linker. It appears as though 1/2 is a usable value.
4857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4858 fi
b9668ba4
AK
4859 ;;
4860 esac
b9668ba4 4861
5c706339 4862fi
b9668ba4 4863
5c706339 4864if test -n $lt_cv_sys_max_cmd_len ; then
47dc80f6
AK
4865 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4866$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5c706339 4867else
47dc80f6
AK
4868 { $as_echo "$as_me:$LINENO: result: none" >&5
4869$as_echo "none" >&6; }
b9668ba4 4870fi
5c706339 4871max_cmd_len=$lt_cv_sys_max_cmd_len
b9668ba4
AK
4872
4873
4874
4875
b9668ba4 4876
b9668ba4 4877
5c706339
AK
4878: ${CP="cp -f"}
4879: ${MV="mv -f"}
4880: ${RM="rm -f"}
b9668ba4 4881
47dc80f6
AK
4882{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4883$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5c706339
AK
4884# Try some XSI features
4885xsi_shell=no
4886( _lt_dummy="a/b/c"
4887 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4888 = c,a/b,, \
4889 && eval 'test $(( 1 + 1 )) -eq 2 \
4890 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4891 && xsi_shell=yes
47dc80f6
AK
4892{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4893$as_echo "$xsi_shell" >&6; }
b9668ba4 4894
5c706339 4895
47dc80f6
AK
4896{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4897$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5c706339
AK
4898lt_shell_append=no
4899( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4900 >/dev/null 2>&1 \
4901 && lt_shell_append=yes
47dc80f6
AK
4902{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4903$as_echo "$lt_shell_append" >&6; }
5c706339
AK
4904
4905
4906if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4907 lt_unset=unset
4908else
4909 lt_unset=false
b9668ba4
AK
4910fi
4911
b9668ba4 4912
5c706339
AK
4913
4914
4915
4916# test EBCDIC or ASCII
4917case `echo X|tr X '\101'` in
4918 A) # ASCII based system
4919 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4920 lt_SP2NL='tr \040 \012'
4921 lt_NL2SP='tr \015\012 \040\040'
b9668ba4 4922 ;;
5c706339
AK
4923 *) # EBCDIC based system
4924 lt_SP2NL='tr \100 \n'
4925 lt_NL2SP='tr \r\n \100\100'
b9668ba4 4926 ;;
5c706339 4927esac
b9668ba4 4928
b9668ba4 4929
b9668ba4 4930
b9668ba4 4931
b9668ba4 4932
b9668ba4 4933
b9668ba4 4934
b9668ba4 4935
5c706339 4936
47dc80f6
AK
4937{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4938$as_echo_n "checking for $LD option to reload object files... " >&6; }
5c706339 4939if test "${lt_cv_ld_reload_flag+set}" = set; then
47dc80f6 4940 $as_echo_n "(cached) " >&6
5c706339
AK
4941else
4942 lt_cv_ld_reload_flag='-r'
b9668ba4 4943fi
47dc80f6
AK
4944{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4945$as_echo "$lt_cv_ld_reload_flag" >&6; }
5c706339
AK
4946reload_flag=$lt_cv_ld_reload_flag
4947case $reload_flag in
4948"" | " "*) ;;
4949*) reload_flag=" $reload_flag" ;;
b9668ba4 4950esac
5c706339
AK
4951reload_cmds='$LD$reload_flag -o $output$reload_objs'
4952case $host_os in
4953 darwin*)
4954 if test "$GCC" = yes; then
4955 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4956 else
4957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4958 fi
4959 ;;
b9668ba4 4960esac
b9668ba4 4961
b9668ba4 4962
b9668ba4 4963
b9668ba4 4964
b9668ba4 4965
b9668ba4 4966
b9668ba4 4967
b9668ba4 4968
b9668ba4 4969
47dc80f6
AK
4970if test -n "$ac_tool_prefix"; then
4971 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4972set dummy ${ac_tool_prefix}objdump; ac_word=$2
4973{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4974$as_echo_n "checking for $ac_word... " >&6; }
4975if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4976 $as_echo_n "(cached) " >&6
4977else
4978 if test -n "$OBJDUMP"; then
4979 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4980else
4981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982for as_dir in $PATH
4983do
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4989 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4991 fi
4992done
4993done
4994IFS=$as_save_IFS
4995
4996fi
4997fi
4998OBJDUMP=$ac_cv_prog_OBJDUMP
4999if test -n "$OBJDUMP"; then
5000 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5001$as_echo "$OBJDUMP" >&6; }
5002else
5003 { $as_echo "$as_me:$LINENO: result: no" >&5
5004$as_echo "no" >&6; }
5005fi
5006
5007
5008fi
5009if test -z "$ac_cv_prog_OBJDUMP"; then
5010 ac_ct_OBJDUMP=$OBJDUMP
5011 # Extract the first word of "objdump", so it can be a program name with args.
5012set dummy objdump; ac_word=$2
5013{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5014$as_echo_n "checking for $ac_word... " >&6; }
5015if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5016 $as_echo_n "(cached) " >&6
5017else
5018 if test -n "$ac_ct_OBJDUMP"; then
5019 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5020else
5021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022for as_dir in $PATH
5023do
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5029 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5031 fi
5032done
5033done
5034IFS=$as_save_IFS
5035
5036fi
5037fi
5038ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5039if test -n "$ac_ct_OBJDUMP"; then
5040 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5041$as_echo "$ac_ct_OBJDUMP" >&6; }
5042else
5043 { $as_echo "$as_me:$LINENO: result: no" >&5
5044$as_echo "no" >&6; }
5045fi
5046
5047 if test "x$ac_ct_OBJDUMP" = x; then
5048 OBJDUMP="false"
5049 else
5050 case $cross_compiling:$ac_tool_warned in
5051yes:)
5052{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5054ac_tool_warned=yes ;;
5055esac
5056 OBJDUMP=$ac_ct_OBJDUMP
5057 fi
5058else
5059 OBJDUMP="$ac_cv_prog_OBJDUMP"
5060fi
5061
5062test -z "$OBJDUMP" && OBJDUMP=objdump
5063
5064
5065
5066
5067
5068
5069
5070
b9668ba4 5071
47dc80f6
AK
5072{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5073$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5c706339 5074if test "${lt_cv_deplibs_check_method+set}" = set; then
47dc80f6 5075 $as_echo_n "(cached) " >&6
b9668ba4 5076else
5c706339
AK
5077 lt_cv_file_magic_cmd='$MAGIC_CMD'
5078lt_cv_file_magic_test_file=
5079lt_cv_deplibs_check_method='unknown'
5080# Need to set the preceding variable on all platforms that support
5081# interlibrary dependencies.
5082# 'none' -- dependencies not supported.
5083# `unknown' -- same as none, but documents that we really don't know.
5084# 'pass_all' -- all dependencies passed with no checks.
5085# 'test_compile' -- check by making test program.
5086# 'file_magic [[regex]]' -- check by looking for files in library path
5087# which responds to the $file_magic_cmd with a given extended regex.
5088# If you have `file' or equivalent on your system and you're not sure
5089# whether `pass_all' will *always* work, you probably want this one.
b9668ba4 5090
5c706339
AK
5091case $host_os in
5092aix[4-9]*)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
b9668ba4 5095
5c706339
AK
5096beos*)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
b9668ba4 5099
5c706339
AK
5100bsdi[45]*)
5101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5102 lt_cv_file_magic_cmd='/usr/bin/file -L'
5103 lt_cv_file_magic_test_file=/shlib/libc.so
5104 ;;
b9668ba4 5105
5c706339
AK
5106cygwin*)
5107 # func_win32_libid is a shell function defined in ltmain.sh
5108 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5109 lt_cv_file_magic_cmd='func_win32_libid'
5110 ;;
b9668ba4 5111
5c706339
AK
5112mingw* | pw32*)
5113 # Base MSYS/MinGW do not provide the 'file' command needed by
5114 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5115 # unless we find 'file', for example because we are cross-compiling.
5116 if ( file / ) >/dev/null 2>&1; then
5117 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5118 lt_cv_file_magic_cmd='func_win32_libid'
5119 else
5120 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5121 lt_cv_file_magic_cmd='$OBJDUMP -f'
5122 fi
5123 ;;
b9668ba4 5124
47dc80f6
AK
5125cegcc)
5126 # use the weaker test based on 'objdump'. See mingw*.
5127 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5128 lt_cv_file_magic_cmd='$OBJDUMP -f'
5129 ;;
5130
5c706339
AK
5131darwin* | rhapsody*)
5132 lt_cv_deplibs_check_method=pass_all
5133 ;;
b9668ba4 5134
5c706339
AK
5135freebsd* | dragonfly*)
5136 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5137 case $host_cpu in
5138 i*86 )
5139 # Not sure whether the presence of OpenBSD here was a mistake.
5140 # Let's accept both of them until this is cleared up.
5141 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5142 lt_cv_file_magic_cmd=/usr/bin/file
5143 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5144 ;;
5145 esac
5146 else
5147 lt_cv_deplibs_check_method=pass_all
5148 fi
5149 ;;
b9668ba4 5150
5c706339
AK
5151gnu*)
5152 lt_cv_deplibs_check_method=pass_all
5153 ;;
b9668ba4 5154
5c706339
AK
5155hpux10.20* | hpux11*)
5156 lt_cv_file_magic_cmd=/usr/bin/file
5157 case $host_cpu in
5158 ia64*)
5159 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5160 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5161 ;;
5162 hppa*64*)
5163 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]'
5164 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5165 ;;
5166 *)
5167 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5168 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5169 ;;
5170 esac
5171 ;;
b9668ba4 5172
5c706339
AK
5173interix[3-9]*)
5174 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5176 ;;
b9668ba4 5177
5c706339
AK
5178irix5* | irix6* | nonstopux*)
5179 case $LD in
5180 *-32|*"-32 ") libmagic=32-bit;;
5181 *-n32|*"-n32 ") libmagic=N32;;
5182 *-64|*"-64 ") libmagic=64-bit;;
5183 *) libmagic=never-match;;
5184 esac
5185 lt_cv_deplibs_check_method=pass_all
5186 ;;
b9668ba4 5187
5c706339
AK
5188# This must be Linux ELF.
5189linux* | k*bsd*-gnu)
5190 lt_cv_deplibs_check_method=pass_all
5191 ;;
b9668ba4 5192
5c706339
AK
5193netbsd* | netbsdelf*-gnu)
5194 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5196 else
5197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5198 fi
5199 ;;
b9668ba4 5200
5c706339
AK
5201newos6*)
5202 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5203 lt_cv_file_magic_cmd=/usr/bin/file
5204 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5205 ;;
b9668ba4 5206
5c706339
AK
5207*nto* | *qnx*)
5208 lt_cv_deplibs_check_method=pass_all
5209 ;;
b9668ba4 5210
5c706339
AK
5211openbsd*)
5212 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5214 else
5215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5216 fi
5217 ;;
5218
5219osf3* | osf4* | osf5*)
5220 lt_cv_deplibs_check_method=pass_all
5221 ;;
5222
5223rdos*)
5224 lt_cv_deplibs_check_method=pass_all
5225 ;;
5226
5227solaris*)
5228 lt_cv_deplibs_check_method=pass_all
5229 ;;
5230
5231sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5232 lt_cv_deplibs_check_method=pass_all
5233 ;;
5234
5235sysv4 | sysv4.3*)
5236 case $host_vendor in
5237 motorola)
5238 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]'
5239 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5240 ;;
5241 ncr)
5242 lt_cv_deplibs_check_method=pass_all
5243 ;;
5244 sequent)
5245 lt_cv_file_magic_cmd='/bin/file'
5246 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5247 ;;
5248 sni)
5249 lt_cv_file_magic_cmd='/bin/file'
5250 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5251 lt_cv_file_magic_test_file=/lib/libc.so
5252 ;;
5253 siemens)
5254 lt_cv_deplibs_check_method=pass_all
5255 ;;
5256 pc)
5257 lt_cv_deplibs_check_method=pass_all
5258 ;;
5259 esac
5260 ;;
5261
5262tpf*)
5263 lt_cv_deplibs_check_method=pass_all
5264 ;;
b9668ba4 5265esac
b9668ba4 5266
b9668ba4 5267fi
47dc80f6
AK
5268{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5269$as_echo "$lt_cv_deplibs_check_method" >&6; }
5c706339
AK
5270file_magic_cmd=$lt_cv_file_magic_cmd
5271deplibs_check_method=$lt_cv_deplibs_check_method
5272test -z "$deplibs_check_method" && deplibs_check_method=unknown
b9668ba4 5273
b9668ba4 5274
b9668ba4 5275
b9668ba4
AK
5276
5277
5278
5c706339
AK
5279
5280
5281
5282
5283
5284
5285if test -n "$ac_tool_prefix"; then
5286 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5287set dummy ${ac_tool_prefix}ar; ac_word=$2
47dc80f6
AK
5288{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5289$as_echo_n "checking for $ac_word... " >&6; }
5c706339 5290if test "${ac_cv_prog_AR+set}" = set; then
47dc80f6 5291 $as_echo_n "(cached) " >&6
b9668ba4 5292else
5c706339
AK
5293 if test -n "$AR"; then
5294 ac_cv_prog_AR="$AR" # Let the user override the test.
b9668ba4 5295else
5c706339
AK
5296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297for as_dir in $PATH
5298do
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_prog_AR="${ac_tool_prefix}ar"
47dc80f6 5304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
5305 break 2
5306 fi
5307done
5308done
5309IFS=$as_save_IFS
b9668ba4 5310
5c706339
AK
5311fi
5312fi
5313AR=$ac_cv_prog_AR
5314if test -n "$AR"; then
47dc80f6
AK
5315 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5316$as_echo "$AR" >&6; }
5c706339 5317else
47dc80f6
AK
5318 { $as_echo "$as_me:$LINENO: result: no" >&5
5319$as_echo "no" >&6; }
b9668ba4
AK
5320fi
5321
b9668ba4 5322
5c706339
AK
5323fi
5324if test -z "$ac_cv_prog_AR"; then
5325 ac_ct_AR=$AR
5326 # Extract the first word of "ar", so it can be a program name with args.
5327set dummy ar; ac_word=$2
47dc80f6
AK
5328{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5329$as_echo_n "checking for $ac_word... " >&6; }
5c706339 5330if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47dc80f6 5331 $as_echo_n "(cached) " >&6
b9668ba4 5332else
5c706339
AK
5333 if test -n "$ac_ct_AR"; then
5334 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5335else
5336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337for as_dir in $PATH
5338do
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343 ac_cv_prog_ac_ct_AR="ar"
47dc80f6 5344 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
5345 break 2
5346 fi
5347done
5348done
5349IFS=$as_save_IFS
b9668ba4 5350
5c706339
AK
5351fi
5352fi
5353ac_ct_AR=$ac_cv_prog_ac_ct_AR
5354if test -n "$ac_ct_AR"; then
47dc80f6
AK
5355 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5356$as_echo "$ac_ct_AR" >&6; }
5c706339 5357else
47dc80f6
AK
5358 { $as_echo "$as_me:$LINENO: result: no" >&5
5359$as_echo "no" >&6; }
b9668ba4
AK
5360fi
5361
5c706339
AK
5362 if test "x$ac_ct_AR" = x; then
5363 AR="false"
5364 else
5365 case $cross_compiling:$ac_tool_warned in
5366yes:)
47dc80f6
AK
5367{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5c706339 5369ac_tool_warned=yes ;;
b9668ba4 5370esac
5c706339
AK
5371 AR=$ac_ct_AR
5372 fi
b9668ba4 5373else
5c706339 5374 AR="$ac_cv_prog_AR"
b9668ba4 5375fi
b9668ba4 5376
5c706339
AK
5377test -z "$AR" && AR=ar
5378test -z "$AR_FLAGS" && AR_FLAGS=cru
b9668ba4 5379
b9668ba4 5380
b9668ba4 5381
5c706339
AK
5382
5383
5384
5385
5386
5387
5388
5389
5390if test -n "$ac_tool_prefix"; then
5391 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5392set dummy ${ac_tool_prefix}strip; ac_word=$2
47dc80f6
AK
5393{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5394$as_echo_n "checking for $ac_word... " >&6; }
5c706339 5395if test "${ac_cv_prog_STRIP+set}" = set; then
47dc80f6 5396 $as_echo_n "(cached) " >&6
b9668ba4 5397else
5c706339
AK
5398 if test -n "$STRIP"; then
5399 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
b9668ba4
AK
5400else
5401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402for as_dir in $PATH
5403do
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5c706339 5408 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47dc80f6 5409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
5410 break 2
5411 fi
5412done
5413done
5414IFS=$as_save_IFS
5415
5416fi
5417fi
5c706339
AK
5418STRIP=$ac_cv_prog_STRIP
5419if test -n "$STRIP"; then
47dc80f6
AK
5420 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5421$as_echo "$STRIP" >&6; }
b9668ba4 5422else
47dc80f6
AK
5423 { $as_echo "$as_me:$LINENO: result: no" >&5
5424$as_echo "no" >&6; }
b9668ba4
AK
5425fi
5426
5427
b9668ba4 5428fi
5c706339
AK
5429if test -z "$ac_cv_prog_STRIP"; then
5430 ac_ct_STRIP=$STRIP
5431 # Extract the first word of "strip", so it can be a program name with args.
5432set dummy strip; ac_word=$2
47dc80f6
AK
5433{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5434$as_echo_n "checking for $ac_word... " >&6; }
5c706339 5435if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47dc80f6 5436 $as_echo_n "(cached) " >&6
b9668ba4 5437else
5c706339
AK
5438 if test -n "$ac_ct_STRIP"; then
5439 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
b9668ba4
AK
5440else
5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442for as_dir in $PATH
5443do
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5c706339 5448 ac_cv_prog_ac_ct_STRIP="strip"
47dc80f6 5449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
5450 break 2
5451 fi
5452done
5453done
5454IFS=$as_save_IFS
5455
5456fi
5457fi
5c706339
AK
5458ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5459if test -n "$ac_ct_STRIP"; then
47dc80f6
AK
5460 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5461$as_echo "$ac_ct_STRIP" >&6; }
b9668ba4 5462else
47dc80f6
AK
5463 { $as_echo "$as_me:$LINENO: result: no" >&5
5464$as_echo "no" >&6; }
b9668ba4
AK
5465fi
5466
5c706339
AK
5467 if test "x$ac_ct_STRIP" = x; then
5468 STRIP=":"
b9668ba4
AK
5469 else
5470 case $cross_compiling:$ac_tool_warned in
5471yes:)
47dc80f6
AK
5472{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
5474ac_tool_warned=yes ;;
5475esac
5c706339 5476 STRIP=$ac_ct_STRIP
b9668ba4 5477 fi
5c706339
AK
5478else
5479 STRIP="$ac_cv_prog_STRIP"
b9668ba4
AK
5480fi
5481
5c706339 5482test -z "$STRIP" && STRIP=:
b9668ba4 5483
b9668ba4 5484
b9668ba4 5485
b9668ba4 5486
b9668ba4 5487
b9668ba4 5488
5c706339
AK
5489if test -n "$ac_tool_prefix"; then
5490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5491set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47dc80f6
AK
5492{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5493$as_echo_n "checking for $ac_word... " >&6; }
5c706339 5494if test "${ac_cv_prog_RANLIB+set}" = set; then
47dc80f6 5495 $as_echo_n "(cached) " >&6
b9668ba4 5496else
5c706339
AK
5497 if test -n "$RANLIB"; then
5498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
b9668ba4 5499else
5c706339
AK
5500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501for as_dir in $PATH
5502do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47dc80f6 5508 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
5509 break 2
5510 fi
5511done
5512done
5513IFS=$as_save_IFS
b9668ba4 5514
5c706339
AK
5515fi
5516fi
5517RANLIB=$ac_cv_prog_RANLIB
5518if test -n "$RANLIB"; then
47dc80f6
AK
5519 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5520$as_echo "$RANLIB" >&6; }
b9668ba4 5521else
47dc80f6
AK
5522 { $as_echo "$as_me:$LINENO: result: no" >&5
5523$as_echo "no" >&6; }
5c706339 5524fi
b9668ba4 5525
b9668ba4 5526
5c706339
AK
5527fi
5528if test -z "$ac_cv_prog_RANLIB"; then
5529 ac_ct_RANLIB=$RANLIB
5530 # Extract the first word of "ranlib", so it can be a program name with args.
5531set dummy ranlib; ac_word=$2
47dc80f6
AK
5532{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5533$as_echo_n "checking for $ac_word... " >&6; }
5c706339 5534if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47dc80f6 5535 $as_echo_n "(cached) " >&6
b9668ba4 5536else
5c706339
AK
5537 if test -n "$ac_ct_RANLIB"; then
5538 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5539else
5540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541for as_dir in $PATH
5542do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547 ac_cv_prog_ac_ct_RANLIB="ranlib"
47dc80f6 5548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
5549 break 2
5550 fi
5551done
5552done
5553IFS=$as_save_IFS
b9668ba4
AK
5554
5555fi
b9668ba4 5556fi
5c706339
AK
5557ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5558if test -n "$ac_ct_RANLIB"; then
47dc80f6
AK
5559 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5560$as_echo "$ac_ct_RANLIB" >&6; }
5c706339 5561else
47dc80f6
AK
5562 { $as_echo "$as_me:$LINENO: result: no" >&5
5563$as_echo "no" >&6; }
b9668ba4
AK
5564fi
5565
5c706339
AK
5566 if test "x$ac_ct_RANLIB" = x; then
5567 RANLIB=":"
b9668ba4 5568 else
5c706339
AK
5569 case $cross_compiling:$ac_tool_warned in
5570yes:)
47dc80f6
AK
5571{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5c706339
AK
5573ac_tool_warned=yes ;;
5574esac
5575 RANLIB=$ac_ct_RANLIB
b9668ba4
AK
5576 fi
5577else
5c706339 5578 RANLIB="$ac_cv_prog_RANLIB"
b9668ba4 5579fi
b9668ba4 5580
5c706339 5581test -z "$RANLIB" && RANLIB=:
b9668ba4 5582
b9668ba4 5583
b9668ba4 5584
b9668ba4 5585
b9668ba4
AK
5586
5587
5c706339
AK
5588# Determine commands to create old-style static archives.
5589old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5590old_postinstall_cmds='chmod 644 $oldlib'
5591old_postuninstall_cmds=
b9668ba4 5592
5c706339
AK
5593if test -n "$RANLIB"; then
5594 case $host_os in
5595 openbsd*)
5596 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5597 ;;
5598 *)
5599 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5600 ;;
5601 esac
5602 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
b9668ba4
AK
5603fi
5604
5605
5606
5607
b9668ba4 5608
b9668ba4 5609
b9668ba4 5610
b9668ba4 5611
b9668ba4 5612
b9668ba4 5613
b9668ba4 5614
b9668ba4 5615
b9668ba4 5616
b9668ba4 5617
b9668ba4 5618
b9668ba4 5619
b9668ba4 5620
b9668ba4 5621
b9668ba4 5622
b9668ba4 5623
b9668ba4
AK
5624
5625
b9668ba4 5626
b9668ba4
AK
5627
5628
b9668ba4 5629
b9668ba4
AK
5630
5631
b9668ba4 5632
b9668ba4 5633
b9668ba4 5634
b9668ba4 5635
b9668ba4 5636
b9668ba4 5637
5c706339
AK
5638# If no C compiler was specified, use CC.
5639LTCC=${LTCC-"$CC"}
b9668ba4 5640
5c706339
AK
5641# If no C compiler flags were specified, use CFLAGS.
5642LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
b9668ba4 5643
5c706339
AK
5644# Allow CC to be a program name with arguments.
5645compiler=$CC
b9668ba4
AK
5646
5647
5648# Check for command to grab the raw symbol name followed by C symbol from nm.
47dc80f6
AK
5649{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5650$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
b9668ba4 5651if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
47dc80f6 5652 $as_echo_n "(cached) " >&6
b9668ba4
AK
5653else
5654
5655# These are sane defaults that work on at least a few old systems.
5656# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5657
5658# Character class describing NM global symbol codes.
5659symcode='[BCDEGRST]'
5660
5661# Regexp to match symbols that can be accessed directly from C.
5662sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5663
b9668ba4
AK
5664# Define system-specific variables.
5665case $host_os in
5666aix*)
5667 symcode='[BCDT]'
5668 ;;
47dc80f6 5669cygwin* | mingw* | pw32* | cegcc*)
b9668ba4
AK
5670 symcode='[ABCDGISTW]'
5671 ;;
5c706339 5672hpux*)
b9668ba4
AK
5673 if test "$host_cpu" = ia64; then
5674 symcode='[ABCDEGRST]'
5675 fi
b9668ba4
AK
5676 ;;
5677irix* | nonstopux*)
5678 symcode='[BCDEGRST]'
5679 ;;
5680osf*)
5681 symcode='[BCDEGQRST]'
5682 ;;
5683solaris*)
5684 symcode='[BDRT]'
5685 ;;
5686sco3.2v5*)
5687 symcode='[DT]'
5688 ;;
5689sysv4.2uw2*)
5690 symcode='[DT]'
5691 ;;
5692sysv5* | sco5v6* | unixware* | OpenUNIX*)
5693 symcode='[ABDT]'
5694 ;;
5695sysv4)
5696 symcode='[DFNSTU]'
5697 ;;
5698esac
5699
5c706339
AK
5700# If we're using GNU nm, then use its standard symbol codes.
5701case `$NM -V 2>&1` in
5702*GNU* | *'with BFD'*)
5703 symcode='[ABCDGIRSTW]' ;;
5704esac
5705
5706# Transform an extracted symbol line into a proper C declaration.
5707# Some systems (esp. on ia64) link data and code symbols differently,
5708# so use this general approach.
5709lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5710
5711# Transform an extracted symbol line into symbol name and symbol address
5712lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5713lt_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'"
5714
b9668ba4
AK
5715# Handle CRLF in mingw tool chain
5716opt_cr=
5717case $build_os in
5718mingw*)
5c706339 5719 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
b9668ba4
AK
5720 ;;
5721esac
5722
5c706339 5723# Try without a prefix underscore, then with it.
b9668ba4
AK
5724for ac_symprfx in "" "_"; do
5725
5726 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5727 symxfrm="\\1 $ac_symprfx\\2 \\2"
5728
5729 # Write the raw and C identifiers.
5c706339
AK
5730 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5731 # Fake it for dumpbin and say T for any non-static function
5732 # and D for any global variable.
5733 # Also find C++ and __fastcall symbols from MSVC++,
5734 # which start with @ or ?.
5735 lt_cv_sys_global_symbol_pipe="$AWK '"\
5736" {last_section=section; section=\$ 3};"\
5737" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5738" \$ 0!~/External *\|/{next};"\
5739" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5740" {if(hide[section]) next};"\
5741" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5742" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5743" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5744" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5745" ' prfx=^$ac_symprfx"
5746 else
5747 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5748 fi
b9668ba4
AK
5749
5750 # Check to see that the pipe works correctly.
5751 pipe_works=no
5752
5753 rm -f conftest*
5c706339 5754 cat > conftest.$ac_ext <<_LT_EOF
b9668ba4
AK
5755#ifdef __cplusplus
5756extern "C" {
5757#endif
5758char nm_test_var;
5c706339
AK
5759void nm_test_func(void);
5760void nm_test_func(void){}
b9668ba4
AK
5761#ifdef __cplusplus
5762}
5763#endif
5764int main(){nm_test_var='a';nm_test_func();return(0);}
5c706339 5765_LT_EOF
b9668ba4
AK
5766
5767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5768 (eval $ac_compile) 2>&5
5769 ac_status=$?
47dc80f6 5770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
5771 (exit $ac_status); }; then
5772 # Now try to grab the symbols.
5773 nlist=conftest.nm
5774 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5775 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5776 ac_status=$?
47dc80f6 5777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
5778 (exit $ac_status); } && test -s "$nlist"; then
5779 # Try sorting and uniquifying the output.
5780 if sort "$nlist" | uniq > "$nlist"T; then
5781 mv -f "$nlist"T "$nlist"
5782 else
5783 rm -f "$nlist"T
5784 fi
5785
5786 # Make sure that we snagged all the symbols we need.
5c706339
AK
5787 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5788 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5789 cat <<_LT_EOF > conftest.$ac_ext
b9668ba4
AK
5790#ifdef __cplusplus
5791extern "C" {
5792#endif
5793
5c706339 5794_LT_EOF
b9668ba4 5795 # Now generate the symbol file.
5c706339 5796 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
b9668ba4 5797
5c706339 5798 cat <<_LT_EOF >> conftest.$ac_ext
b9668ba4 5799
5c706339 5800/* The mapping between symbol names and symbols. */
b9668ba4
AK
5801const struct {
5802 const char *name;
5c706339 5803 void *address;
b9668ba4 5804}
5c706339 5805lt__PROGRAM__LTX_preloaded_symbols[] =
b9668ba4 5806{
5c706339
AK
5807 { "@PROGRAM@", (void *) 0 },
5808_LT_EOF
5809 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5810 cat <<\_LT_EOF >> conftest.$ac_ext
5811 {0, (void *) 0}
b9668ba4
AK
5812};
5813
5c706339
AK
5814/* This works around a problem in FreeBSD linker */
5815#ifdef FREEBSD_WORKAROUND
5816static const void *lt_preloaded_setup() {
5817 return lt__PROGRAM__LTX_preloaded_symbols;
5818}
5819#endif
5820
b9668ba4
AK
5821#ifdef __cplusplus
5822}
5823#endif
5c706339 5824_LT_EOF
b9668ba4
AK
5825 # Now try linking the two files.
5826 mv conftest.$ac_objext conftstm.$ac_objext
5827 lt_save_LIBS="$LIBS"
5828 lt_save_CFLAGS="$CFLAGS"
5829 LIBS="conftstm.$ac_objext"
5830 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5832 (eval $ac_link) 2>&5
5833 ac_status=$?
47dc80f6 5834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
5835 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5836 pipe_works=yes
5837 fi
5838 LIBS="$lt_save_LIBS"
5839 CFLAGS="$lt_save_CFLAGS"
5840 else
5841 echo "cannot find nm_test_func in $nlist" >&5
5842 fi
5843 else
5844 echo "cannot find nm_test_var in $nlist" >&5
5845 fi
5846 else
5847 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5848 fi
5849 else
5850 echo "$progname: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5852 fi
5c706339 5853 rm -rf conftest* conftst*
b9668ba4
AK
5854
5855 # Do not use the global_symbol_pipe unless it works.
5856 if test "$pipe_works" = yes; then
5857 break
5858 else
5859 lt_cv_sys_global_symbol_pipe=
5860 fi
5861done
5862
5863fi
5864
5865if test -z "$lt_cv_sys_global_symbol_pipe"; then
5866 lt_cv_sys_global_symbol_to_cdecl=
5867fi
5868if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
47dc80f6
AK
5869 { $as_echo "$as_me:$LINENO: result: failed" >&5
5870$as_echo "failed" >&6; }
b9668ba4 5871else
47dc80f6
AK
5872 { $as_echo "$as_me:$LINENO: result: ok" >&5
5873$as_echo "ok" >&6; }
b9668ba4
AK
5874fi
5875
b9668ba4
AK
5876
5877
5878
5879
5880
5c706339
AK
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898# Check whether --enable-libtool-lock was given.
5899if test "${enable_libtool_lock+set}" = set; then
5900 enableval=$enable_libtool_lock;
5901fi
5902
5903test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5904
5905# Some flags need to be propagated to the compiler or linker for good
5906# libtool support.
5907case $host in
5908ia64-*-hpux*)
5909 # Find out which ABI we are using.
5910 echo 'int i;' > conftest.$ac_ext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912 (eval $ac_compile) 2>&5
5913 ac_status=$?
47dc80f6 5914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
5915 (exit $ac_status); }; then
5916 case `/usr/bin/file conftest.$ac_objext` in
5917 *ELF-32*)
5918 HPUX_IA64_MODE="32"
5919 ;;
5920 *ELF-64*)
5921 HPUX_IA64_MODE="64"
5922 ;;
5923 esac
5924 fi
5925 rm -rf conftest*
5926 ;;
5927*-*-irix6*)
5928 # Find out which ABI we are using.
47dc80f6 5929 echo '#line 5929 "configure"' > conftest.$ac_ext
5c706339
AK
5930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931 (eval $ac_compile) 2>&5
5932 ac_status=$?
47dc80f6 5933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
5934 (exit $ac_status); }; then
5935 if test "$lt_cv_prog_gnu_ld" = yes; then
5936 case `/usr/bin/file conftest.$ac_objext` in
5937 *32-bit*)
5938 LD="${LD-ld} -melf32bsmip"
5939 ;;
5940 *N32*)
5941 LD="${LD-ld} -melf32bmipn32"
5942 ;;
5943 *64-bit*)
5944 LD="${LD-ld} -melf64bmip"
5945 ;;
5946 esac
5947 else
5948 case `/usr/bin/file conftest.$ac_objext` in
5949 *32-bit*)
5950 LD="${LD-ld} -32"
5951 ;;
5952 *N32*)
5953 LD="${LD-ld} -n32"
5954 ;;
5955 *64-bit*)
5956 LD="${LD-ld} -64"
5957 ;;
5958 esac
5959 fi
b9668ba4 5960 fi
5c706339 5961 rm -rf conftest*
b9668ba4 5962 ;;
b9668ba4 5963
5c706339
AK
5964x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5965s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5966 # Find out which ABI we are using.
5967 echo 'int i;' > conftest.$ac_ext
5968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5969 (eval $ac_compile) 2>&5
5970 ac_status=$?
47dc80f6 5971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
5972 (exit $ac_status); }; then
5973 case `/usr/bin/file conftest.o` in
5974 *32-bit*)
5975 case $host in
5976 x86_64-*kfreebsd*-gnu)
5977 LD="${LD-ld} -m elf_i386_fbsd"
5978 ;;
5979 x86_64-*linux*)
5980 LD="${LD-ld} -m elf_i386"
5981 ;;
5982 ppc64-*linux*|powerpc64-*linux*)
5983 LD="${LD-ld} -m elf32ppclinux"
5984 ;;
5985 s390x-*linux*)
5986 LD="${LD-ld} -m elf_s390"
5987 ;;
5988 sparc64-*linux*)
5989 LD="${LD-ld} -m elf32_sparc"
5990 ;;
5991 esac
5992 ;;
5993 *64-bit*)
5994 case $host in
5995 x86_64-*kfreebsd*-gnu)
5996 LD="${LD-ld} -m elf_x86_64_fbsd"
5997 ;;
5998 x86_64-*linux*)
5999 LD="${LD-ld} -m elf_x86_64"
6000 ;;
6001 ppc*-*linux*|powerpc*-*linux*)
6002 LD="${LD-ld} -m elf64ppc"
6003 ;;
6004 s390*-*linux*|s390*-*tpf*)
6005 LD="${LD-ld} -m elf64_s390"
6006 ;;
6007 sparc*-*linux*)
6008 LD="${LD-ld} -m elf64_sparc"
6009 ;;
6010 esac
6011 ;;
6012 esac
6013 fi
6014 rm -rf conftest*
6015 ;;
b9668ba4 6016
5c706339
AK
6017*-*-sco3.2v5*)
6018 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6019 SAVE_CFLAGS="$CFLAGS"
6020 CFLAGS="$CFLAGS -belf"
47dc80f6
AK
6021 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6022$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5c706339 6023if test "${lt_cv_cc_needs_belf+set}" = set; then
47dc80f6 6024 $as_echo_n "(cached) " >&6
5c706339
AK
6025else
6026 ac_ext=c
6027ac_cpp='$CPP $CPPFLAGS'
6028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 6031
5c706339
AK
6032 cat >conftest.$ac_ext <<_ACEOF
6033/* confdefs.h. */
6034_ACEOF
6035cat confdefs.h >>conftest.$ac_ext
6036cat >>conftest.$ac_ext <<_ACEOF
6037/* end confdefs.h. */
b9668ba4 6038
5c706339
AK
6039int
6040main ()
6041{
b9668ba4 6042
5c706339
AK
6043 ;
6044 return 0;
6045}
6046_ACEOF
6047rm -f conftest.$ac_objext conftest$ac_exeext
6048if { (ac_try="$ac_link"
6049case "(($ac_try" in
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6052esac
47dc80f6
AK
6053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6054$as_echo "$ac_try_echo") >&5
5c706339
AK
6055 (eval "$ac_link") 2>conftest.er1
6056 ac_status=$?
6057 grep -v '^ *+' conftest.er1 >conftest.err
6058 rm -f conftest.er1
6059 cat conftest.err >&5
47dc80f6 6060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
6061 (exit $ac_status); } && {
6062 test -z "$ac_c_werror_flag" ||
6063 test ! -s conftest.err
47dc80f6
AK
6064 } && test -s conftest$ac_exeext && {
6065 test "$cross_compiling" = yes ||
6066 $as_test_x conftest$ac_exeext
6067 }; then
5c706339
AK
6068 lt_cv_cc_needs_belf=yes
6069else
47dc80f6 6070 $as_echo "$as_me: failed program was:" >&5
5c706339 6071sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 6072
5c706339
AK
6073 lt_cv_cc_needs_belf=no
6074fi
b9668ba4 6075
47dc80f6 6076rm -rf conftest.dSYM
5c706339
AK
6077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6078 conftest$ac_exeext conftest.$ac_ext
6079 ac_ext=c
6080ac_cpp='$CPP $CPPFLAGS'
6081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6083ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 6084
5c706339 6085fi
47dc80f6
AK
6086{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6087$as_echo "$lt_cv_cc_needs_belf" >&6; }
5c706339
AK
6088 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6089 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6090 CFLAGS="$SAVE_CFLAGS"
6091 fi
6092 ;;
6093sparc*-*solaris*)
6094 # Find out which ABI we are using.
6095 echo 'int i;' > conftest.$ac_ext
6096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6097 (eval $ac_compile) 2>&5
6098 ac_status=$?
47dc80f6 6099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
6100 (exit $ac_status); }; then
6101 case `/usr/bin/file conftest.o` in
6102 *64-bit*)
6103 case $lt_cv_prog_gnu_ld in
6104 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6105 *)
6106 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6107 LD="${LD-ld} -64"
6108 fi
6109 ;;
6110 esac
6111 ;;
6112 esac
6113 fi
6114 rm -rf conftest*
6115 ;;
6116esac
6117
6118need_locks="$enable_libtool_lock"
6119
6120
6121 case $host_os in
6122 rhapsody* | darwin*)
6123 if test -n "$ac_tool_prefix"; then
6124 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6125set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
47dc80f6
AK
6126{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6127$as_echo_n "checking for $ac_word... " >&6; }
5c706339 6128if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
47dc80f6 6129 $as_echo_n "(cached) " >&6
b9668ba4 6130else
5c706339
AK
6131 if test -n "$DSYMUTIL"; then
6132 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
b9668ba4
AK
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5c706339 6141 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
47dc80f6 6142 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
6143 break 2
6144 fi
6145done
6146done
6147IFS=$as_save_IFS
6148
6149fi
6150fi
5c706339
AK
6151DSYMUTIL=$ac_cv_prog_DSYMUTIL
6152if test -n "$DSYMUTIL"; then
47dc80f6
AK
6153 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6154$as_echo "$DSYMUTIL" >&6; }
b9668ba4 6155else
47dc80f6
AK
6156 { $as_echo "$as_me:$LINENO: result: no" >&5
6157$as_echo "no" >&6; }
b9668ba4
AK
6158fi
6159
6160
6161fi
5c706339
AK
6162if test -z "$ac_cv_prog_DSYMUTIL"; then
6163 ac_ct_DSYMUTIL=$DSYMUTIL
6164 # Extract the first word of "dsymutil", so it can be a program name with args.
6165set dummy dsymutil; ac_word=$2
47dc80f6
AK
6166{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6167$as_echo_n "checking for $ac_word... " >&6; }
5c706339 6168if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
47dc80f6 6169 $as_echo_n "(cached) " >&6
b9668ba4 6170else
5c706339
AK
6171 if test -n "$ac_ct_DSYMUTIL"; then
6172 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
b9668ba4
AK
6173else
6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175for as_dir in $PATH
6176do
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5c706339 6181 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
47dc80f6 6182 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
6183 break 2
6184 fi
6185done
6186done
6187IFS=$as_save_IFS
6188
6189fi
6190fi
5c706339
AK
6191ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6192if test -n "$ac_ct_DSYMUTIL"; then
47dc80f6
AK
6193 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6194$as_echo "$ac_ct_DSYMUTIL" >&6; }
b9668ba4 6195else
47dc80f6
AK
6196 { $as_echo "$as_me:$LINENO: result: no" >&5
6197$as_echo "no" >&6; }
b9668ba4
AK
6198fi
6199
5c706339
AK
6200 if test "x$ac_ct_DSYMUTIL" = x; then
6201 DSYMUTIL=":"
b9668ba4
AK
6202 else
6203 case $cross_compiling:$ac_tool_warned in
6204yes:)
47dc80f6
AK
6205{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
6207ac_tool_warned=yes ;;
6208esac
5c706339 6209 DSYMUTIL=$ac_ct_DSYMUTIL
b9668ba4
AK
6210 fi
6211else
5c706339 6212 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
b9668ba4
AK
6213fi
6214
5c706339
AK
6215 if test -n "$ac_tool_prefix"; then
6216 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6217set dummy ${ac_tool_prefix}nmedit; ac_word=$2
47dc80f6
AK
6218{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6219$as_echo_n "checking for $ac_word... " >&6; }
5c706339 6220if test "${ac_cv_prog_NMEDIT+set}" = set; then
47dc80f6 6221 $as_echo_n "(cached) " >&6
b9668ba4 6222else
5c706339
AK
6223 if test -n "$NMEDIT"; then
6224 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
b9668ba4
AK
6225else
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229 IFS=$as_save_IFS
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5c706339 6233 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
47dc80f6 6234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
6235 break 2
6236 fi
6237done
6238done
6239IFS=$as_save_IFS
6240
6241fi
6242fi
5c706339
AK
6243NMEDIT=$ac_cv_prog_NMEDIT
6244if test -n "$NMEDIT"; then
47dc80f6
AK
6245 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6246$as_echo "$NMEDIT" >&6; }
b9668ba4 6247else
47dc80f6
AK
6248 { $as_echo "$as_me:$LINENO: result: no" >&5
6249$as_echo "no" >&6; }
b9668ba4
AK
6250fi
6251
6252
6253fi
5c706339
AK
6254if test -z "$ac_cv_prog_NMEDIT"; then
6255 ac_ct_NMEDIT=$NMEDIT
6256 # Extract the first word of "nmedit", so it can be a program name with args.
6257set dummy nmedit; ac_word=$2
47dc80f6
AK
6258{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6259$as_echo_n "checking for $ac_word... " >&6; }
5c706339 6260if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
47dc80f6 6261 $as_echo_n "(cached) " >&6
b9668ba4 6262else
5c706339
AK
6263 if test -n "$ac_ct_NMEDIT"; then
6264 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
b9668ba4
AK
6265else
6266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267for as_dir in $PATH
6268do
6269 IFS=$as_save_IFS
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5c706339 6273 ac_cv_prog_ac_ct_NMEDIT="nmedit"
47dc80f6 6274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
6275 break 2
6276 fi
6277done
6278done
6279IFS=$as_save_IFS
6280
6281fi
6282fi
5c706339
AK
6283ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6284if test -n "$ac_ct_NMEDIT"; then
47dc80f6
AK
6285 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6286$as_echo "$ac_ct_NMEDIT" >&6; }
b9668ba4 6287else
47dc80f6
AK
6288 { $as_echo "$as_me:$LINENO: result: no" >&5
6289$as_echo "no" >&6; }
b9668ba4
AK
6290fi
6291
5c706339
AK
6292 if test "x$ac_ct_NMEDIT" = x; then
6293 NMEDIT=":"
b9668ba4
AK
6294 else
6295 case $cross_compiling:$ac_tool_warned in
6296yes:)
47dc80f6
AK
6297{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
6299ac_tool_warned=yes ;;
6300esac
5c706339 6301 NMEDIT=$ac_ct_NMEDIT
b9668ba4
AK
6302 fi
6303else
5c706339 6304 NMEDIT="$ac_cv_prog_NMEDIT"
b9668ba4
AK
6305fi
6306
5c706339
AK
6307 if test -n "$ac_tool_prefix"; then
6308 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6309set dummy ${ac_tool_prefix}lipo; ac_word=$2
47dc80f6
AK
6310{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6311$as_echo_n "checking for $ac_word... " >&6; }
5c706339 6312if test "${ac_cv_prog_LIPO+set}" = set; then
47dc80f6 6313 $as_echo_n "(cached) " >&6
b9668ba4 6314else
5c706339
AK
6315 if test -n "$LIPO"; then
6316 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
b9668ba4
AK
6317else
6318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319for as_dir in $PATH
6320do
6321 IFS=$as_save_IFS
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5c706339 6325 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
47dc80f6 6326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
6327 break 2
6328 fi
6329done
6330done
6331IFS=$as_save_IFS
6332
6333fi
6334fi
5c706339
AK
6335LIPO=$ac_cv_prog_LIPO
6336if test -n "$LIPO"; then
47dc80f6
AK
6337 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6338$as_echo "$LIPO" >&6; }
b9668ba4 6339else
47dc80f6
AK
6340 { $as_echo "$as_me:$LINENO: result: no" >&5
6341$as_echo "no" >&6; }
b9668ba4
AK
6342fi
6343
6344
6345fi
5c706339
AK
6346if test -z "$ac_cv_prog_LIPO"; then
6347 ac_ct_LIPO=$LIPO
6348 # Extract the first word of "lipo", so it can be a program name with args.
6349set dummy lipo; ac_word=$2
47dc80f6
AK
6350{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6351$as_echo_n "checking for $ac_word... " >&6; }
5c706339 6352if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
47dc80f6 6353 $as_echo_n "(cached) " >&6
b9668ba4 6354else
5c706339
AK
6355 if test -n "$ac_ct_LIPO"; then
6356 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
b9668ba4
AK
6357else
6358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359for as_dir in $PATH
6360do
6361 IFS=$as_save_IFS
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5c706339 6365 ac_cv_prog_ac_ct_LIPO="lipo"
47dc80f6 6366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
6367 break 2
6368 fi
6369done
6370done
6371IFS=$as_save_IFS
6372
6373fi
6374fi
5c706339
AK
6375ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6376if test -n "$ac_ct_LIPO"; then
47dc80f6
AK
6377 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6378$as_echo "$ac_ct_LIPO" >&6; }
b9668ba4 6379else
47dc80f6
AK
6380 { $as_echo "$as_me:$LINENO: result: no" >&5
6381$as_echo "no" >&6; }
b9668ba4
AK
6382fi
6383
5c706339
AK
6384 if test "x$ac_ct_LIPO" = x; then
6385 LIPO=":"
b9668ba4
AK
6386 else
6387 case $cross_compiling:$ac_tool_warned in
6388yes:)
47dc80f6
AK
6389{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
6391ac_tool_warned=yes ;;
6392esac
5c706339 6393 LIPO=$ac_ct_LIPO
b9668ba4
AK
6394 fi
6395else
5c706339 6396 LIPO="$ac_cv_prog_LIPO"
b9668ba4
AK
6397fi
6398
5c706339
AK
6399 if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6401set dummy ${ac_tool_prefix}otool; ac_word=$2
47dc80f6
AK
6402{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6403$as_echo_n "checking for $ac_word... " >&6; }
5c706339 6404if test "${ac_cv_prog_OTOOL+set}" = set; then
47dc80f6 6405 $as_echo_n "(cached) " >&6
b9668ba4 6406else
5c706339
AK
6407 if test -n "$OTOOL"; then
6408 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6409else
6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411for as_dir in $PATH
6412do
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
47dc80f6 6418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
6419 break 2
6420 fi
6421done
6422done
6423IFS=$as_save_IFS
b9668ba4 6424
b9668ba4 6425fi
5c706339
AK
6426fi
6427OTOOL=$ac_cv_prog_OTOOL
6428if test -n "$OTOOL"; then
47dc80f6
AK
6429 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6430$as_echo "$OTOOL" >&6; }
b9668ba4 6431else
47dc80f6
AK
6432 { $as_echo "$as_me:$LINENO: result: no" >&5
6433$as_echo "no" >&6; }
b9668ba4
AK
6434fi
6435
5c706339
AK
6436
6437fi
6438if test -z "$ac_cv_prog_OTOOL"; then
6439 ac_ct_OTOOL=$OTOOL
6440 # Extract the first word of "otool", so it can be a program name with args.
6441set dummy otool; ac_word=$2
47dc80f6
AK
6442{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6443$as_echo_n "checking for $ac_word... " >&6; }
5c706339 6444if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
47dc80f6 6445 $as_echo_n "(cached) " >&6
b9668ba4 6446else
5c706339
AK
6447 if test -n "$ac_ct_OTOOL"; then
6448 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6449else
6450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451for as_dir in $PATH
6452do
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_prog_ac_ct_OTOOL="otool"
47dc80f6 6458 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
6459 break 2
6460 fi
6461done
6462done
6463IFS=$as_save_IFS
b9668ba4 6464
b9668ba4 6465fi
5c706339
AK
6466fi
6467ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6468if test -n "$ac_ct_OTOOL"; then
47dc80f6
AK
6469 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6470$as_echo "$ac_ct_OTOOL" >&6; }
b9668ba4 6471else
47dc80f6
AK
6472 { $as_echo "$as_me:$LINENO: result: no" >&5
6473$as_echo "no" >&6; }
b9668ba4
AK
6474fi
6475
5c706339
AK
6476 if test "x$ac_ct_OTOOL" = x; then
6477 OTOOL=":"
b9668ba4 6478 else
5c706339
AK
6479 case $cross_compiling:$ac_tool_warned in
6480yes:)
47dc80f6
AK
6481{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5c706339 6483ac_tool_warned=yes ;;
b9668ba4 6484esac
5c706339
AK
6485 OTOOL=$ac_ct_OTOOL
6486 fi
6487else
6488 OTOOL="$ac_cv_prog_OTOOL"
b9668ba4
AK
6489fi
6490
5c706339
AK
6491 if test -n "$ac_tool_prefix"; then
6492 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6493set dummy ${ac_tool_prefix}otool64; ac_word=$2
47dc80f6
AK
6494{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6495$as_echo_n "checking for $ac_word... " >&6; }
5c706339 6496if test "${ac_cv_prog_OTOOL64+set}" = set; then
47dc80f6 6497 $as_echo_n "(cached) " >&6
5c706339
AK
6498else
6499 if test -n "$OTOOL64"; then
6500 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
47dc80f6 6510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
6511 break 2
6512 fi
6513done
6514done
6515IFS=$as_save_IFS
b9668ba4 6516
5c706339
AK
6517fi
6518fi
6519OTOOL64=$ac_cv_prog_OTOOL64
6520if test -n "$OTOOL64"; then
47dc80f6
AK
6521 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6522$as_echo "$OTOOL64" >&6; }
b9668ba4 6523else
47dc80f6
AK
6524 { $as_echo "$as_me:$LINENO: result: no" >&5
6525$as_echo "no" >&6; }
b9668ba4
AK
6526fi
6527
b9668ba4 6528
5c706339
AK
6529fi
6530if test -z "$ac_cv_prog_OTOOL64"; then
6531 ac_ct_OTOOL64=$OTOOL64
6532 # Extract the first word of "otool64", so it can be a program name with args.
6533set dummy otool64; ac_word=$2
47dc80f6
AK
6534{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6535$as_echo_n "checking for $ac_word... " >&6; }
5c706339 6536if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
47dc80f6 6537 $as_echo_n "(cached) " >&6
5c706339
AK
6538else
6539 if test -n "$ac_ct_OTOOL64"; then
6540 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6541else
6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_prog_ac_ct_OTOOL64="otool64"
47dc80f6 6550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
6551 break 2
6552 fi
6553done
6554done
6555IFS=$as_save_IFS
b9668ba4 6556
5c706339
AK
6557fi
6558fi
6559ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6560if test -n "$ac_ct_OTOOL64"; then
47dc80f6
AK
6561 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6562$as_echo "$ac_ct_OTOOL64" >&6; }
5c706339 6563else
47dc80f6
AK
6564 { $as_echo "$as_me:$LINENO: result: no" >&5
6565$as_echo "no" >&6; }
5c706339 6566fi
b9668ba4 6567
5c706339
AK
6568 if test "x$ac_ct_OTOOL64" = x; then
6569 OTOOL64=":"
6570 else
6571 case $cross_compiling:$ac_tool_warned in
6572yes:)
47dc80f6
AK
6573{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5c706339
AK
6575ac_tool_warned=yes ;;
6576esac
6577 OTOOL64=$ac_ct_OTOOL64
6578 fi
6579else
6580 OTOOL64="$ac_cv_prog_OTOOL64"
6581fi
b9668ba4 6582
b9668ba4 6583
b9668ba4 6584
b9668ba4
AK
6585
6586
b9668ba4 6587
b9668ba4 6588
b9668ba4
AK
6589
6590
b9668ba4 6591
b9668ba4
AK
6592
6593
6594
b9668ba4 6595
b9668ba4
AK
6596
6597
b9668ba4 6598
b9668ba4 6599
b9668ba4 6600
b9668ba4 6601
b9668ba4 6602
b9668ba4 6603
b9668ba4 6604
b9668ba4 6605
b9668ba4 6606
b9668ba4 6607
b9668ba4 6608
47dc80f6
AK
6609 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6610$as_echo_n "checking for -single_module linker flag... " >&6; }
5c706339 6611if test "${lt_cv_apple_cc_single_mod+set}" = set; then
47dc80f6 6612 $as_echo_n "(cached) " >&6
5c706339
AK
6613else
6614 lt_cv_apple_cc_single_mod=no
6615 if test -z "${LT_MULTI_MODULE}"; then
6616 # By default we will add the -single_module flag. You can override
6617 # by either setting the environment variable LT_MULTI_MODULE
6618 # non-empty at configure time, or by adding -multi_module to the
6619 # link flags.
6620 rm -rf libconftest.dylib*
6621 echo "int foo(void){return 1;}" > conftest.c
6622 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6623-dynamiclib -Wl,-single_module conftest.c" >&5
6624 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6625 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6626 _lt_result=$?
6627 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6628 lt_cv_apple_cc_single_mod=yes
6629 else
6630 cat conftest.err >&5
6631 fi
6632 rm -rf libconftest.dylib*
6633 rm -f conftest.*
6634 fi
6635fi
47dc80f6
AK
6636{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6637$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6638 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6639$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5c706339 6640if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
47dc80f6 6641 $as_echo_n "(cached) " >&6
5c706339
AK
6642else
6643 lt_cv_ld_exported_symbols_list=no
6644 save_LDFLAGS=$LDFLAGS
6645 echo "_main" > conftest.sym
6646 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6647 cat >conftest.$ac_ext <<_ACEOF
6648/* confdefs.h. */
6649_ACEOF
6650cat confdefs.h >>conftest.$ac_ext
6651cat >>conftest.$ac_ext <<_ACEOF
6652/* end confdefs.h. */
b9668ba4 6653
5c706339
AK
6654int
6655main ()
6656{
b9668ba4 6657
5c706339
AK
6658 ;
6659 return 0;
6660}
6661_ACEOF
6662rm -f conftest.$ac_objext conftest$ac_exeext
6663if { (ac_try="$ac_link"
6664case "(($ac_try" in
6665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666 *) ac_try_echo=$ac_try;;
6667esac
47dc80f6
AK
6668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6669$as_echo "$ac_try_echo") >&5
5c706339
AK
6670 (eval "$ac_link") 2>conftest.er1
6671 ac_status=$?
6672 grep -v '^ *+' conftest.er1 >conftest.err
6673 rm -f conftest.er1
6674 cat conftest.err >&5
47dc80f6 6675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
6676 (exit $ac_status); } && {
6677 test -z "$ac_c_werror_flag" ||
6678 test ! -s conftest.err
47dc80f6
AK
6679 } && test -s conftest$ac_exeext && {
6680 test "$cross_compiling" = yes ||
6681 $as_test_x conftest$ac_exeext
6682 }; then
5c706339
AK
6683 lt_cv_ld_exported_symbols_list=yes
6684else
47dc80f6 6685 $as_echo "$as_me: failed program was:" >&5
5c706339 6686sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 6687
5c706339
AK
6688 lt_cv_ld_exported_symbols_list=no
6689fi
b9668ba4 6690
47dc80f6 6691rm -rf conftest.dSYM
5c706339
AK
6692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6693 conftest$ac_exeext conftest.$ac_ext
6694 LDFLAGS="$save_LDFLAGS"
b9668ba4 6695
5c706339 6696fi
47dc80f6
AK
6697{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6698$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b9668ba4 6699 case $host_os in
5c706339
AK
6700 rhapsody* | darwin1.[012])
6701 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6702 darwin1.*)
6703 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6704 darwin*) # darwin 5.x on
6705 # if running on 10.5 or later, the deployment target defaults
6706 # to the OS version, if on x86, and 10.4, the deployment
6707 # target defaults to 10.4. Don't you love it?
6708 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6709 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6710 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6711 10.[012]*)
6712 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6713 10.*)
6714 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
b9668ba4 6715 esac
5c706339
AK
6716 ;;
6717 esac
6718 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6719 _lt_dar_single_mod='$single_module'
6720 fi
6721 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6722 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6723 else
6724 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6725 fi
6726 if test "$DSYMUTIL" != ":"; then
6727 _lt_dsymutil='~$DSYMUTIL $lib || :'
6728 else
6729 _lt_dsymutil=
6730 fi
6731 ;;
6732 esac
b9668ba4 6733
b9668ba4 6734
47dc80f6
AK
6735{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6736$as_echo_n "checking for ANSI C header files... " >&6; }
5c706339 6737if test "${ac_cv_header_stdc+set}" = set; then
47dc80f6 6738 $as_echo_n "(cached) " >&6
5c706339
AK
6739else
6740 cat >conftest.$ac_ext <<_ACEOF
6741/* confdefs.h. */
6742_ACEOF
6743cat confdefs.h >>conftest.$ac_ext
6744cat >>conftest.$ac_ext <<_ACEOF
6745/* end confdefs.h. */
6746#include <stdlib.h>
6747#include <stdarg.h>
6748#include <string.h>
6749#include <float.h>
b9668ba4 6750
5c706339
AK
6751int
6752main ()
6753{
b9668ba4 6754
5c706339
AK
6755 ;
6756 return 0;
6757}
6758_ACEOF
6759rm -f conftest.$ac_objext
6760if { (ac_try="$ac_compile"
6761case "(($ac_try" in
6762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6763 *) ac_try_echo=$ac_try;;
6764esac
47dc80f6
AK
6765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6766$as_echo "$ac_try_echo") >&5
5c706339
AK
6767 (eval "$ac_compile") 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
47dc80f6 6772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
6773 (exit $ac_status); } && {
6774 test -z "$ac_c_werror_flag" ||
6775 test ! -s conftest.err
6776 } && test -s conftest.$ac_objext; then
6777 ac_cv_header_stdc=yes
6778else
47dc80f6 6779 $as_echo "$as_me: failed program was:" >&5
5c706339 6780sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 6781
5c706339
AK
6782 ac_cv_header_stdc=no
6783fi
b9668ba4 6784
5c706339 6785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b9668ba4 6786
5c706339
AK
6787if test $ac_cv_header_stdc = yes; then
6788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6789 cat >conftest.$ac_ext <<_ACEOF
6790/* confdefs.h. */
6791_ACEOF
6792cat confdefs.h >>conftest.$ac_ext
6793cat >>conftest.$ac_ext <<_ACEOF
6794/* end confdefs.h. */
6795#include <string.h>
b9668ba4 6796
5c706339
AK
6797_ACEOF
6798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6799 $EGREP "memchr" >/dev/null 2>&1; then
6800 :
b9668ba4 6801else
5c706339 6802 ac_cv_header_stdc=no
b9668ba4 6803fi
5c706339 6804rm -f conftest*
b9668ba4 6805
b9668ba4
AK
6806fi
6807
5c706339
AK
6808if test $ac_cv_header_stdc = yes; then
6809 # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
b9668ba4 6817
5c706339
AK
6818_ACEOF
6819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6820 $EGREP "free" >/dev/null 2>&1; then
6821 :
b9668ba4 6822else
5c706339 6823 ac_cv_header_stdc=no
b9668ba4 6824fi
5c706339 6825rm -f conftest*
b9668ba4 6826
b9668ba4
AK
6827fi
6828
5c706339
AK
6829if test $ac_cv_header_stdc = yes; then
6830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6831 if test "$cross_compiling" = yes; then
6832 :
b9668ba4 6833else
5c706339
AK
6834 cat >conftest.$ac_ext <<_ACEOF
6835/* confdefs.h. */
6836_ACEOF
6837cat confdefs.h >>conftest.$ac_ext
6838cat >>conftest.$ac_ext <<_ACEOF
6839/* end confdefs.h. */
6840#include <ctype.h>
6841#include <stdlib.h>
6842#if ((' ' & 0x0FF) == 0x020)
6843# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6844# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6845#else
6846# define ISLOWER(c) \
6847 (('a' <= (c) && (c) <= 'i') \
6848 || ('j' <= (c) && (c) <= 'r') \
6849 || ('s' <= (c) && (c) <= 'z'))
6850# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6851#endif
b9668ba4 6852
5c706339
AK
6853#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6854int
6855main ()
6856{
6857 int i;
6858 for (i = 0; i < 256; i++)
6859 if (XOR (islower (i), ISLOWER (i))
6860 || toupper (i) != TOUPPER (i))
6861 return 2;
6862 return 0;
6863}
6864_ACEOF
6865rm -f conftest$ac_exeext
6866if { (ac_try="$ac_link"
6867case "(($ac_try" in
6868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869 *) ac_try_echo=$ac_try;;
6870esac
47dc80f6
AK
6871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6872$as_echo "$ac_try_echo") >&5
5c706339
AK
6873 (eval "$ac_link") 2>&5
6874 ac_status=$?
47dc80f6 6875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
6876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6877 { (case "(($ac_try" in
6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6880esac
47dc80f6
AK
6881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6882$as_echo "$ac_try_echo") >&5
5c706339
AK
6883 (eval "$ac_try") 2>&5
6884 ac_status=$?
47dc80f6 6885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
6886 (exit $ac_status); }; }; then
6887 :
6888else
47dc80f6
AK
6889 $as_echo "$as_me: program exited with status $ac_status" >&5
6890$as_echo "$as_me: failed program was:" >&5
5c706339 6891sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 6892
5c706339
AK
6893( exit $ac_status )
6894ac_cv_header_stdc=no
6895fi
47dc80f6 6896rm -rf conftest.dSYM
5c706339 6897rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b9668ba4 6898fi
b9668ba4
AK
6899
6900
b9668ba4 6901fi
5c706339 6902fi
47dc80f6
AK
6903{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6904$as_echo "$ac_cv_header_stdc" >&6; }
5c706339 6905if test $ac_cv_header_stdc = yes; then
b9668ba4 6906
5c706339
AK
6907cat >>confdefs.h <<\_ACEOF
6908#define STDC_HEADERS 1
6909_ACEOF
b9668ba4 6910
5c706339 6911fi
b9668ba4 6912
5c706339 6913# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b9668ba4 6914
b9668ba4 6915
b9668ba4 6916
b9668ba4 6917
b9668ba4 6918
b9668ba4 6919
b9668ba4 6920
b9668ba4 6921
b9668ba4 6922
5c706339
AK
6923for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6924 inttypes.h stdint.h unistd.h
6925do
47dc80f6
AK
6926as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6927{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6928$as_echo_n "checking for $ac_header... " >&6; }
5c706339 6929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47dc80f6 6930 $as_echo_n "(cached) " >&6
5c706339
AK
6931else
6932 cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h. */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h. */
6938$ac_includes_default
b9668ba4 6939
5c706339
AK
6940#include <$ac_header>
6941_ACEOF
6942rm -f conftest.$ac_objext
6943if { (ac_try="$ac_compile"
6944case "(($ac_try" in
6945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946 *) ac_try_echo=$ac_try;;
6947esac
47dc80f6
AK
6948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6949$as_echo "$ac_try_echo") >&5
5c706339
AK
6950 (eval "$ac_compile") 2>conftest.er1
6951 ac_status=$?
6952 grep -v '^ *+' conftest.er1 >conftest.err
6953 rm -f conftest.er1
6954 cat conftest.err >&5
47dc80f6 6955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
6956 (exit $ac_status); } && {
6957 test -z "$ac_c_werror_flag" ||
6958 test ! -s conftest.err
6959 } && test -s conftest.$ac_objext; then
6960 eval "$as_ac_Header=yes"
6961else
47dc80f6 6962 $as_echo "$as_me: failed program was:" >&5
5c706339 6963sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 6964
5c706339
AK
6965 eval "$as_ac_Header=no"
6966fi
b9668ba4 6967
5c706339
AK
6968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6969fi
47dc80f6
AK
6970ac_res=`eval 'as_val=${'$as_ac_Header'}
6971 $as_echo "$as_val"'`
6972 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6973$as_echo "$ac_res" >&6; }
6974as_val=`eval 'as_val=${'$as_ac_Header'}
6975 $as_echo "$as_val"'`
6976 if test "x$as_val" = x""yes; then
5c706339 6977 cat >>confdefs.h <<_ACEOF
47dc80f6 6978#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5c706339 6979_ACEOF
b9668ba4 6980
5c706339 6981fi
b9668ba4 6982
5c706339 6983done
b9668ba4 6984
b9668ba4 6985
b9668ba4 6986
5c706339
AK
6987for ac_header in dlfcn.h
6988do
47dc80f6
AK
6989as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6990{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6991$as_echo_n "checking for $ac_header... " >&6; }
5c706339 6992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47dc80f6 6993 $as_echo_n "(cached) " >&6
5c706339
AK
6994else
6995 cat >conftest.$ac_ext <<_ACEOF
b9668ba4
AK
6996/* confdefs.h. */
6997_ACEOF
6998cat confdefs.h >>conftest.$ac_ext
6999cat >>conftest.$ac_ext <<_ACEOF
7000/* end confdefs.h. */
5c706339 7001$ac_includes_default
b9668ba4 7002
5c706339 7003#include <$ac_header>
b9668ba4 7004_ACEOF
5c706339
AK
7005rm -f conftest.$ac_objext
7006if { (ac_try="$ac_compile"
b9668ba4
AK
7007case "(($ac_try" in
7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009 *) ac_try_echo=$ac_try;;
7010esac
47dc80f6
AK
7011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7012$as_echo "$ac_try_echo") >&5
5c706339 7013 (eval "$ac_compile") 2>conftest.er1
b9668ba4
AK
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
47dc80f6 7018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b9668ba4
AK
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
5c706339
AK
7022 } && test -s conftest.$ac_objext; then
7023 eval "$as_ac_Header=yes"
b9668ba4 7024else
47dc80f6 7025 $as_echo "$as_me: failed program was:" >&5
b9668ba4
AK
7026sed 's/^/| /' conftest.$ac_ext >&5
7027
5c706339
AK
7028 eval "$as_ac_Header=no"
7029fi
b9668ba4 7030
5c706339 7031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b9668ba4 7032fi
47dc80f6
AK
7033ac_res=`eval 'as_val=${'$as_ac_Header'}
7034 $as_echo "$as_val"'`
7035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7036$as_echo "$ac_res" >&6; }
7037as_val=`eval 'as_val=${'$as_ac_Header'}
7038 $as_echo "$as_val"'`
7039 if test "x$as_val" = x""yes; then
5c706339 7040 cat >>confdefs.h <<_ACEOF
47dc80f6 7041#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5c706339 7042_ACEOF
b9668ba4 7043
5c706339 7044fi
b9668ba4 7045
5c706339 7046done
b9668ba4 7047
b9668ba4 7048
b9668ba4 7049
5c706339 7050# Set options
b9668ba4
AK
7051
7052
b9668ba4 7053
5c706339 7054 enable_dlopen=no
b9668ba4 7055
5c706339
AK
7056
7057 enable_win32_dll=no
7058
7059
7060 # Check whether --enable-shared was given.
7061if test "${enable_shared+set}" = set; then
7062 enableval=$enable_shared; p=${PACKAGE-default}
7063 case $enableval in
7064 yes) enable_shared=yes ;;
7065 no) enable_shared=no ;;
7066 *)
7067 enable_shared=no
7068 # Look at the argument we got. We use all the common list separators.
7069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7070 for pkg in $enableval; do
7071 IFS="$lt_save_ifs"
7072 if test "X$pkg" = "X$p"; then
7073 enable_shared=yes
b9668ba4 7074 fi
5c706339
AK
7075 done
7076 IFS="$lt_save_ifs"
b9668ba4 7077 ;;
5c706339
AK
7078 esac
7079else
7080 enable_shared=yes
7081fi
b9668ba4 7082
b9668ba4 7083
b9668ba4 7084
b9668ba4 7085
b9668ba4 7086
b9668ba4 7087
b9668ba4 7088
b9668ba4 7089
b9668ba4 7090
5c706339
AK
7091 # Check whether --enable-static was given.
7092if test "${enable_static+set}" = set; then
7093 enableval=$enable_static; p=${PACKAGE-default}
7094 case $enableval in
7095 yes) enable_static=yes ;;
7096 no) enable_static=no ;;
7097 *)
7098 enable_static=no
7099 # Look at the argument we got. We use all the common list separators.
7100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7101 for pkg in $enableval; do
7102 IFS="$lt_save_ifs"
7103 if test "X$pkg" = "X$p"; then
7104 enable_static=yes
7105 fi
7106 done
7107 IFS="$lt_save_ifs"
b9668ba4 7108 ;;
5c706339
AK
7109 esac
7110else
7111 enable_static=yes
7112fi
b9668ba4 7113
b9668ba4 7114
b9668ba4 7115
b9668ba4 7116
b9668ba4 7117
b9668ba4 7118
b9668ba4 7119
b9668ba4 7120
b9668ba4 7121
b9668ba4 7122
5c706339
AK
7123# Check whether --with-pic was given.
7124if test "${with_pic+set}" = set; then
7125 withval=$with_pic; pic_mode="$withval"
7126else
7127 pic_mode=default
7128fi
b9668ba4 7129
b9668ba4 7130
5c706339 7131test -z "$pic_mode" && pic_mode=default
b9668ba4 7132
b9668ba4 7133
b9668ba4 7134
b9668ba4 7135
b9668ba4 7136
b9668ba4 7137
b9668ba4 7138
5c706339
AK
7139 # Check whether --enable-fast-install was given.
7140if test "${enable_fast_install+set}" = set; then
7141 enableval=$enable_fast_install; p=${PACKAGE-default}
7142 case $enableval in
7143 yes) enable_fast_install=yes ;;
7144 no) enable_fast_install=no ;;
7145 *)
7146 enable_fast_install=no
7147 # Look at the argument we got. We use all the common list separators.
7148 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7149 for pkg in $enableval; do
7150 IFS="$lt_save_ifs"
7151 if test "X$pkg" = "X$p"; then
7152 enable_fast_install=yes
7153 fi
7154 done
7155 IFS="$lt_save_ifs"
b9668ba4 7156 ;;
5c706339
AK
7157 esac
7158else
7159 enable_fast_install=yes
7160fi
b9668ba4 7161
b9668ba4 7162
b9668ba4 7163
b9668ba4 7164
b9668ba4 7165
b9668ba4 7166
b9668ba4 7167
b9668ba4 7168
b9668ba4 7169
b9668ba4 7170
b9668ba4 7171
5c706339
AK
7172# This can be used to rebuild libtool when needed
7173LIBTOOL_DEPS="$ltmain"
b9668ba4 7174
5c706339
AK
7175# Always use our own libtool.
7176LIBTOOL='$(SHELL) $(top_builddir)/libtool'
b9668ba4 7177
5c706339
AK
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202test -z "$LN_S" && LN_S="ln -s"
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217if test -n "${ZSH_VERSION+set}" ; then
7218 setopt NO_GLOB_SUBST
7219fi
7220
47dc80f6
AK
7221{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7222$as_echo_n "checking for objdir... " >&6; }
5c706339 7223if test "${lt_cv_objdir+set}" = set; then
47dc80f6 7224 $as_echo_n "(cached) " >&6
b9668ba4 7225else
5c706339
AK
7226 rm -f .libs 2>/dev/null
7227mkdir .libs 2>/dev/null
7228if test -d .libs; then
7229 lt_cv_objdir=.libs
7230else
7231 # MS-DOS does not allow filenames that begin with a dot.
7232 lt_cv_objdir=_libs
b9668ba4 7233fi
5c706339
AK
7234rmdir .libs 2>/dev/null
7235fi
47dc80f6
AK
7236{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7237$as_echo "$lt_cv_objdir" >&6; }
5c706339 7238objdir=$lt_cv_objdir
b9668ba4 7239
b9668ba4 7240
b9668ba4 7241
b9668ba4 7242
b9668ba4 7243
5c706339
AK
7244cat >>confdefs.h <<_ACEOF
7245#define LT_OBJDIR "$lt_cv_objdir/"
7246_ACEOF
b9668ba4 7247
b9668ba4 7248
b9668ba4 7249
b9668ba4 7250
b9668ba4 7251
b9668ba4 7252
b9668ba4 7253
5c706339
AK
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264case $host_os in
7265aix3*)
7266 # AIX sometimes has problems with the GCC collect2 program. For some
7267 # reason, if we set the COLLECT_NAMES environment variable, the problems
7268 # vanish in a puff of smoke.
7269 if test "X${COLLECT_NAMES+set}" != Xset; then
7270 COLLECT_NAMES=
7271 export COLLECT_NAMES
b9668ba4 7272 fi
b9668ba4 7273 ;;
5c706339 7274esac
b9668ba4 7275
5c706339
AK
7276# Sed substitution that helps us do robust quoting. It backslashifies
7277# metacharacters that are still active within double-quoted strings.
7278sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
b9668ba4 7279
5c706339
AK
7280# Same as above, but do not quote variable references.
7281double_quote_subst='s/\(["`\\]\)/\\\1/g'
b9668ba4 7282
5c706339
AK
7283# Sed substitution to delay expansion of an escaped shell variable in a
7284# double_quote_subst'ed string.
7285delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
b9668ba4 7286
5c706339
AK
7287# Sed substitution to delay expansion of an escaped single quote.
7288delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
b9668ba4 7289
5c706339
AK
7290# Sed substitution to avoid accidental globbing in evaled expressions
7291no_glob_subst='s/\*/\\\*/g'
b9668ba4 7292
5c706339
AK
7293# Global variables:
7294ofile=libtool
7295can_build_shared=yes
b9668ba4 7296
5c706339
AK
7297# All known linkers require a `.a' archive for static linking (except MSVC,
7298# which needs '.lib').
7299libext=a
b9668ba4 7300
5c706339 7301with_gnu_ld="$lt_cv_prog_gnu_ld"
b9668ba4 7302
5c706339
AK
7303old_CC="$CC"
7304old_CFLAGS="$CFLAGS"
b9668ba4 7305
5c706339
AK
7306# Set sane defaults for various variables
7307test -z "$CC" && CC=cc
7308test -z "$LTCC" && LTCC=$CC
7309test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7310test -z "$LD" && LD=ld
7311test -z "$ac_objext" && ac_objext=o
b9668ba4 7312
5c706339
AK
7313for cc_temp in $compiler""; do
7314 case $cc_temp in
7315 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7316 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7317 \-*) ;;
7318 *) break;;
7319 esac
7320done
7321cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
b9668ba4 7322
b9668ba4 7323
5c706339
AK
7324# Only perform the check for file, if the check method requires it
7325test -z "$MAGIC_CMD" && MAGIC_CMD=file
7326case $deplibs_check_method in
7327file_magic*)
7328 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
47dc80f6
AK
7329 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7330$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
5c706339 7331if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
47dc80f6 7332 $as_echo_n "(cached) " >&6
5c706339
AK
7333else
7334 case $MAGIC_CMD in
7335[\\/*] | ?:[\\/]*)
7336 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
b9668ba4 7337 ;;
5c706339
AK
7338*)
7339 lt_save_MAGIC_CMD="$MAGIC_CMD"
7340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7341 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7342 for ac_dir in $ac_dummy; do
7343 IFS="$lt_save_ifs"
7344 test -z "$ac_dir" && ac_dir=.
7345 if test -f $ac_dir/${ac_tool_prefix}file; then
7346 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7347 if test -n "$file_magic_test_file"; then
7348 case $deplibs_check_method in
7349 "file_magic "*)
7350 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7352 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7353 $EGREP "$file_magic_regex" > /dev/null; then
7354 :
7355 else
7356 cat <<_LT_EOF 1>&2
b9668ba4 7357
5c706339
AK
7358*** Warning: the command libtool uses to detect shared libraries,
7359*** $file_magic_cmd, produces output that libtool cannot recognize.
7360*** The result is that libtool may fail to recognize shared libraries
7361*** as such. This will affect the creation of libtool libraries that
7362*** depend on shared libraries, but programs linked with such libtool
7363*** libraries will work regardless of this problem. Nevertheless, you
7364*** may want to report the problem to your system manager and/or to
7365*** bug-libtool@gnu.org
7366
7367_LT_EOF
7368 fi ;;
7369 esac
7370 fi
7371 break
7372 fi
7373 done
7374 IFS="$lt_save_ifs"
7375 MAGIC_CMD="$lt_save_MAGIC_CMD"
b9668ba4 7376 ;;
5c706339
AK
7377esac
7378fi
b9668ba4 7379
5c706339
AK
7380MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7381if test -n "$MAGIC_CMD"; then
47dc80f6
AK
7382 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7383$as_echo "$MAGIC_CMD" >&6; }
5c706339 7384else
47dc80f6
AK
7385 { $as_echo "$as_me:$LINENO: result: no" >&5
7386$as_echo "no" >&6; }
5c706339 7387fi
b9668ba4 7388
b9668ba4 7389
b9668ba4 7390
b9668ba4 7391
b9668ba4 7392
5c706339
AK
7393if test -z "$lt_cv_path_MAGIC_CMD"; then
7394 if test -n "$ac_tool_prefix"; then
47dc80f6
AK
7395 { $as_echo "$as_me:$LINENO: checking for file" >&5
7396$as_echo_n "checking for file... " >&6; }
5c706339 7397if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
47dc80f6 7398 $as_echo_n "(cached) " >&6
5c706339
AK
7399else
7400 case $MAGIC_CMD in
7401[\\/*] | ?:[\\/]*)
7402 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
b9668ba4 7403 ;;
5c706339
AK
7404*)
7405 lt_save_MAGIC_CMD="$MAGIC_CMD"
7406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7407 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7408 for ac_dir in $ac_dummy; do
7409 IFS="$lt_save_ifs"
7410 test -z "$ac_dir" && ac_dir=.
7411 if test -f $ac_dir/file; then
7412 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7413 if test -n "$file_magic_test_file"; then
7414 case $deplibs_check_method in
7415 "file_magic "*)
7416 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7418 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7419 $EGREP "$file_magic_regex" > /dev/null; then
7420 :
7421 else
7422 cat <<_LT_EOF 1>&2
b9668ba4 7423
5c706339
AK
7424*** Warning: the command libtool uses to detect shared libraries,
7425*** $file_magic_cmd, produces output that libtool cannot recognize.
7426*** The result is that libtool may fail to recognize shared libraries
7427*** as such. This will affect the creation of libtool libraries that
7428*** depend on shared libraries, but programs linked with such libtool
7429*** libraries will work regardless of this problem. Nevertheless, you
7430*** may want to report the problem to your system manager and/or to
7431*** bug-libtool@gnu.org
b9668ba4 7432
5c706339
AK
7433_LT_EOF
7434 fi ;;
7435 esac
7436 fi
7437 break
7438 fi
7439 done
7440 IFS="$lt_save_ifs"
7441 MAGIC_CMD="$lt_save_MAGIC_CMD"
b9668ba4
AK
7442 ;;
7443esac
5c706339 7444fi
b9668ba4 7445
5c706339
AK
7446MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7447if test -n "$MAGIC_CMD"; then
47dc80f6
AK
7448 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7449$as_echo "$MAGIC_CMD" >&6; }
5c706339 7450else
47dc80f6
AK
7451 { $as_echo "$as_me:$LINENO: result: no" >&5
7452$as_echo "no" >&6; }
b9668ba4
AK
7453fi
7454
b9668ba4 7455
b9668ba4 7456 else
5c706339 7457 MAGIC_CMD=:
b9668ba4 7458 fi
b9668ba4
AK
7459fi
7460
5c706339
AK
7461 fi
7462 ;;
7463esac
b9668ba4 7464
5c706339 7465# Use C for the default configuration in the libtool script
b9668ba4 7466
5c706339
AK
7467lt_save_CC="$CC"
7468ac_ext=c
7469ac_cpp='$CPP $CPPFLAGS'
7470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7472ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 7473
b9668ba4 7474
5c706339
AK
7475# Source file extension for C test sources.
7476ac_ext=c
b9668ba4 7477
5c706339
AK
7478# Object file extension for compiled C test sources.
7479objext=o
7480objext=$objext
b9668ba4 7481
5c706339
AK
7482# Code to be used in simple compile tests
7483lt_simple_compile_test_code="int some_variable = 0;"
b9668ba4 7484
5c706339
AK
7485# Code to be used in simple link tests
7486lt_simple_link_test_code='int main(){return(0);}'
b9668ba4 7487
b9668ba4 7488
b9668ba4 7489
b9668ba4 7490
b9668ba4 7491
b9668ba4 7492
b9668ba4 7493
5c706339
AK
7494# If no C compiler was specified, use CC.
7495LTCC=${LTCC-"$CC"}
b9668ba4 7496
5c706339
AK
7497# If no C compiler flags were specified, use CFLAGS.
7498LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
b9668ba4 7499
5c706339
AK
7500# Allow CC to be a program name with arguments.
7501compiler=$CC
b9668ba4 7502
5c706339
AK
7503# Save the default compiler, since it gets overwritten when the other
7504# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7505compiler_DEFAULT=$CC
b9668ba4 7506
5c706339
AK
7507# save warnings/boilerplate of simple test code
7508ac_outfile=conftest.$ac_objext
7509echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7510eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7511_lt_compiler_boilerplate=`cat conftest.err`
7512$RM conftest*
b9668ba4 7513
5c706339
AK
7514ac_outfile=conftest.$ac_objext
7515echo "$lt_simple_link_test_code" >conftest.$ac_ext
7516eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7517_lt_linker_boilerplate=`cat conftest.err`
7518$RM -r conftest*
b9668ba4 7519
b9668ba4 7520
5c706339 7521if test -n "$compiler"; then
b9668ba4 7522
5c706339
AK
7523lt_prog_compiler_no_builtin_flag=
7524
7525if test "$GCC" = yes; then
7526 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7527
47dc80f6
AK
7528 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7529$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
5c706339 7530if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
47dc80f6 7531 $as_echo_n "(cached) " >&6
b9668ba4 7532else
5c706339
AK
7533 lt_cv_prog_compiler_rtti_exceptions=no
7534 ac_outfile=conftest.$ac_objext
7535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7536 lt_compiler_flag="-fno-rtti -fno-exceptions"
7537 # Insert the option either (1) after the last *FLAGS variable, or
7538 # (2) before a word containing "conftest.", or (3) at the end.
7539 # Note that $ac_compile itself does not contain backslashes and begins
7540 # with a dollar sign (not a hyphen), so the echo should work correctly.
7541 # The option is referenced via a variable to avoid confusing sed.
7542 lt_compile=`echo "$ac_compile" | $SED \
7543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7545 -e 's:$: $lt_compiler_flag:'`
47dc80f6 7546 (eval echo "\"\$as_me:7546: $lt_compile\"" >&5)
5c706339
AK
7547 (eval "$lt_compile" 2>conftest.err)
7548 ac_status=$?
7549 cat conftest.err >&5
47dc80f6 7550 echo "$as_me:7550: \$? = $ac_status" >&5
5c706339
AK
7551 if (exit $ac_status) && test -s "$ac_outfile"; then
7552 # The compiler can only warn and ignore the option if not recognized
7553 # So say no if there are warnings other than the usual output.
7554 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7557 lt_cv_prog_compiler_rtti_exceptions=yes
7558 fi
7559 fi
7560 $RM conftest*
b9668ba4 7561
5c706339 7562fi
47dc80f6
AK
7563{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7564$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
b9668ba4 7565
5c706339
AK
7566if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7567 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7568else
7569 :
7570fi
b9668ba4 7571
5c706339 7572fi
b9668ba4 7573
b9668ba4 7574
b9668ba4 7575
b9668ba4 7576
b9668ba4 7577
b9668ba4 7578
5c706339
AK
7579 lt_prog_compiler_wl=
7580lt_prog_compiler_pic=
7581lt_prog_compiler_static=
b9668ba4 7582
47dc80f6
AK
7583{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7584$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
b9668ba4 7585
5c706339
AK
7586 if test "$GCC" = yes; then
7587 lt_prog_compiler_wl='-Wl,'
7588 lt_prog_compiler_static='-static'
b9668ba4 7589
5c706339
AK
7590 case $host_os in
7591 aix*)
7592 # All AIX code is PIC.
7593 if test "$host_cpu" = ia64; then
7594 # AIX 5 now supports IA64 processor
7595 lt_prog_compiler_static='-Bstatic'
7596 fi
7597 ;;
b9668ba4 7598
5c706339
AK
7599 amigaos*)
7600 case $host_cpu in
7601 powerpc)
7602 # see comment about AmigaOS4 .so support
7603 lt_prog_compiler_pic='-fPIC'
7604 ;;
7605 m68k)
7606 # FIXME: we need at least 68020 code to build shared libraries, but
7607 # adding the `-m68020' flag to GCC prevents building anything better,
7608 # like `-m68040'.
7609 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7610 ;;
7611 esac
7612 ;;
b9668ba4 7613
5c706339
AK
7614 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7615 # PIC is the default for these OSes.
7616 ;;
b9668ba4 7617
47dc80f6 7618 mingw* | cygwin* | pw32* | os2* | cegcc*)
5c706339
AK
7619 # This hack is so that the source file can tell whether it is being
7620 # built for inclusion in a dll (and should export symbols for example).
7621 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7622 # (--disable-auto-import) libraries
7623 lt_prog_compiler_pic='-DDLL_EXPORT'
7624 ;;
b9668ba4 7625
5c706339
AK
7626 darwin* | rhapsody*)
7627 # PIC is the default on this platform
7628 # Common symbols not allowed in MH_DYLIB files
7629 lt_prog_compiler_pic='-fno-common'
7630 ;;
b9668ba4 7631
5c706339 7632 hpux*)
47dc80f6
AK
7633 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7634 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7635 # sets the default TLS model and affects inlining.
5c706339 7636 case $host_cpu in
47dc80f6 7637 hppa*64*)
5c706339
AK
7638 # +Z the default
7639 ;;
7640 *)
7641 lt_prog_compiler_pic='-fPIC'
7642 ;;
7643 esac
7644 ;;
b9668ba4 7645
5c706339
AK
7646 interix[3-9]*)
7647 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7648 # Instead, we relocate shared libraries at runtime.
7649 ;;
b9668ba4 7650
5c706339
AK
7651 msdosdjgpp*)
7652 # Just because we use GCC doesn't mean we suddenly get shared libraries
7653 # on systems that don't support them.
7654 lt_prog_compiler_can_build_shared=no
7655 enable_shared=no
7656 ;;
b9668ba4 7657
5c706339
AK
7658 *nto* | *qnx*)
7659 # QNX uses GNU C++, but need to define -shared option too, otherwise
7660 # it will coredump.
7661 lt_prog_compiler_pic='-fPIC -shared'
7662 ;;
b9668ba4 7663
5c706339
AK
7664 sysv4*MP*)
7665 if test -d /usr/nec; then
7666 lt_prog_compiler_pic=-Kconform_pic
7667 fi
7668 ;;
b9668ba4 7669
5c706339
AK
7670 *)
7671 lt_prog_compiler_pic='-fPIC'
7672 ;;
7673 esac
7674 else
7675 # PORTME Check for flag to pass linker flags through the system compiler.
7676 case $host_os in
7677 aix*)
7678 lt_prog_compiler_wl='-Wl,'
7679 if test "$host_cpu" = ia64; then
7680 # AIX 5 now supports IA64 processor
7681 lt_prog_compiler_static='-Bstatic'
7682 else
7683 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7684 fi
7685 ;;
b9668ba4 7686
47dc80f6 7687 mingw* | cygwin* | pw32* | os2* | cegcc*)
5c706339
AK
7688 # This hack is so that the source file can tell whether it is being
7689 # built for inclusion in a dll (and should export symbols for example).
7690 lt_prog_compiler_pic='-DDLL_EXPORT'
7691 ;;
b9668ba4 7692
5c706339
AK
7693 hpux9* | hpux10* | hpux11*)
7694 lt_prog_compiler_wl='-Wl,'
7695 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7696 # not for PA HP-UX.
7697 case $host_cpu in
7698 hppa*64*|ia64*)
7699 # +Z the default
7700 ;;
7701 *)
7702 lt_prog_compiler_pic='+Z'
7703 ;;
7704 esac
7705 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7706 lt_prog_compiler_static='${wl}-a ${wl}archive'
7707 ;;
b9668ba4 7708
5c706339
AK
7709 irix5* | irix6* | nonstopux*)
7710 lt_prog_compiler_wl='-Wl,'
7711 # PIC (with -KPIC) is the default.
7712 lt_prog_compiler_static='-non_shared'
7713 ;;
b9668ba4 7714
5c706339
AK
7715 linux* | k*bsd*-gnu)
7716 case $cc_basename in
47dc80f6
AK
7717 # old Intel for x86_64 which still supported -KPIC.
7718 ecc*)
5c706339
AK
7719 lt_prog_compiler_wl='-Wl,'
7720 lt_prog_compiler_pic='-KPIC'
7721 lt_prog_compiler_static='-static'
7722 ;;
47dc80f6
AK
7723 # icc used to be incompatible with GCC.
7724 # ICC 10 doesn't accept -KPIC any more.
7725 icc* | ifort*)
7726 lt_prog_compiler_wl='-Wl,'
7727 lt_prog_compiler_pic='-fPIC'
7728 lt_prog_compiler_static='-static'
7729 ;;
7730 # Lahey Fortran 8.1.
7731 lf95*)
7732 lt_prog_compiler_wl='-Wl,'
7733 lt_prog_compiler_pic='--shared'
7734 lt_prog_compiler_static='--static'
7735 ;;
5c706339
AK
7736 pgcc* | pgf77* | pgf90* | pgf95*)
7737 # Portland Group compilers (*not* the Pentium gcc compiler,
7738 # which looks to be a dead project)
7739 lt_prog_compiler_wl='-Wl,'
7740 lt_prog_compiler_pic='-fpic'
7741 lt_prog_compiler_static='-Bstatic'
7742 ;;
7743 ccc*)
7744 lt_prog_compiler_wl='-Wl,'
7745 # All Alpha code is PIC.
7746 lt_prog_compiler_static='-non_shared'
7747 ;;
7748 xl*)
7749 # IBM XL C 8.0/Fortran 10.1 on PPC
7750 lt_prog_compiler_wl='-Wl,'
7751 lt_prog_compiler_pic='-qpic'
7752 lt_prog_compiler_static='-qstaticlink'
7753 ;;
7754 *)
7755 case `$CC -V 2>&1 | sed 5q` in
7756 *Sun\ C*)
7757 # Sun C 5.9
7758 lt_prog_compiler_pic='-KPIC'
7759 lt_prog_compiler_static='-Bstatic'
7760 lt_prog_compiler_wl='-Wl,'
7761 ;;
7762 *Sun\ F*)
7763 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7764 lt_prog_compiler_pic='-KPIC'
7765 lt_prog_compiler_static='-Bstatic'
7766 lt_prog_compiler_wl=''
7767 ;;
7768 esac
7769 ;;
7770 esac
7771 ;;
b9668ba4 7772
5c706339
AK
7773 newsos6)
7774 lt_prog_compiler_pic='-KPIC'
7775 lt_prog_compiler_static='-Bstatic'
7776 ;;
b9668ba4 7777
5c706339
AK
7778 *nto* | *qnx*)
7779 # QNX uses GNU C++, but need to define -shared option too, otherwise
7780 # it will coredump.
7781 lt_prog_compiler_pic='-fPIC -shared'
7782 ;;
b9668ba4 7783
5c706339
AK
7784 osf3* | osf4* | osf5*)
7785 lt_prog_compiler_wl='-Wl,'
7786 # All OSF/1 code is PIC.
7787 lt_prog_compiler_static='-non_shared'
7788 ;;
b9668ba4 7789
5c706339
AK
7790 rdos*)
7791 lt_prog_compiler_static='-non_shared'
7792 ;;
b9668ba4 7793
5c706339
AK
7794 solaris*)
7795 lt_prog_compiler_pic='-KPIC'
7796 lt_prog_compiler_static='-Bstatic'
7797 case $cc_basename in
7798 f77* | f90* | f95*)
7799 lt_prog_compiler_wl='-Qoption ld ';;
7800 *)
7801 lt_prog_compiler_wl='-Wl,';;
7802 esac
7803 ;;
b9668ba4 7804
5c706339
AK
7805 sunos4*)
7806 lt_prog_compiler_wl='-Qoption ld '
7807 lt_prog_compiler_pic='-PIC'
7808 lt_prog_compiler_static='-Bstatic'
7809 ;;
b9668ba4 7810
5c706339
AK
7811 sysv4 | sysv4.2uw2* | sysv4.3*)
7812 lt_prog_compiler_wl='-Wl,'
7813 lt_prog_compiler_pic='-KPIC'
7814 lt_prog_compiler_static='-Bstatic'
7815 ;;
b9668ba4 7816
5c706339
AK
7817 sysv4*MP*)
7818 if test -d /usr/nec ;then
7819 lt_prog_compiler_pic='-Kconform_pic'
7820 lt_prog_compiler_static='-Bstatic'
7821 fi
7822 ;;
b9668ba4 7823
5c706339
AK
7824 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7825 lt_prog_compiler_wl='-Wl,'
7826 lt_prog_compiler_pic='-KPIC'
7827 lt_prog_compiler_static='-Bstatic'
7828 ;;
b9668ba4 7829
5c706339
AK
7830 unicos*)
7831 lt_prog_compiler_wl='-Wl,'
7832 lt_prog_compiler_can_build_shared=no
7833 ;;
b9668ba4 7834
5c706339
AK
7835 uts4*)
7836 lt_prog_compiler_pic='-pic'
7837 lt_prog_compiler_static='-Bstatic'
7838 ;;
b9668ba4 7839
5c706339
AK
7840 *)
7841 lt_prog_compiler_can_build_shared=no
7842 ;;
b9668ba4 7843 esac
b9668ba4 7844 fi
b9668ba4 7845
5c706339
AK
7846case $host_os in
7847 # For platforms which do not support PIC, -DPIC is meaningless:
7848 *djgpp*)
7849 lt_prog_compiler_pic=
7850 ;;
7851 *)
7852 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7853 ;;
7854esac
47dc80f6
AK
7855{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7856$as_echo "$lt_prog_compiler_pic" >&6; }
b9668ba4 7857
b9668ba4 7858
b9668ba4 7859
b9668ba4 7860
b9668ba4 7861
b9668ba4 7862
5c706339
AK
7863#
7864# Check to make sure the PIC flag actually works.
7865#
7866if test -n "$lt_prog_compiler_pic"; then
47dc80f6
AK
7867 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7868$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
5c706339 7869if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
47dc80f6 7870 $as_echo_n "(cached) " >&6
5c706339
AK
7871else
7872 lt_cv_prog_compiler_pic_works=no
7873 ac_outfile=conftest.$ac_objext
7874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7875 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7876 # Insert the option either (1) after the last *FLAGS variable, or
7877 # (2) before a word containing "conftest.", or (3) at the end.
7878 # Note that $ac_compile itself does not contain backslashes and begins
7879 # with a dollar sign (not a hyphen), so the echo should work correctly.
7880 # The option is referenced via a variable to avoid confusing sed.
7881 lt_compile=`echo "$ac_compile" | $SED \
7882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7884 -e 's:$: $lt_compiler_flag:'`
47dc80f6 7885 (eval echo "\"\$as_me:7885: $lt_compile\"" >&5)
5c706339
AK
7886 (eval "$lt_compile" 2>conftest.err)
7887 ac_status=$?
7888 cat conftest.err >&5
47dc80f6 7889 echo "$as_me:7889: \$? = $ac_status" >&5
5c706339
AK
7890 if (exit $ac_status) && test -s "$ac_outfile"; then
7891 # The compiler can only warn and ignore the option if not recognized
7892 # So say no if there are warnings other than the usual output.
7893 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7895 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7896 lt_cv_prog_compiler_pic_works=yes
7897 fi
7898 fi
7899 $RM conftest*
b9668ba4 7900
b9668ba4 7901fi
47dc80f6
AK
7902{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7903$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
b9668ba4 7904
5c706339
AK
7905if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7906 case $lt_prog_compiler_pic in
7907 "" | " "*) ;;
7908 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7909 esac
7910else
7911 lt_prog_compiler_pic=
7912 lt_prog_compiler_can_build_shared=no
7913fi
b9668ba4
AK
7914
7915fi
b9668ba4 7916
b9668ba4 7917
b9668ba4 7918
b9668ba4
AK
7919
7920
b9668ba4 7921
5c706339
AK
7922#
7923# Check to make sure the static flag actually works.
7924#
7925wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
47dc80f6
AK
7926{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7927$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
5c706339 7928if test "${lt_cv_prog_compiler_static_works+set}" = set; then
47dc80f6 7929 $as_echo_n "(cached) " >&6
5c706339
AK
7930else
7931 lt_cv_prog_compiler_static_works=no
7932 save_LDFLAGS="$LDFLAGS"
7933 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7934 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7935 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7936 # The linker can only warn and ignore the option if not recognized
7937 # So say no if there are warnings
7938 if test -s conftest.err; then
7939 # Append any errors to the config.log.
7940 cat conftest.err 1>&5
7941 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7942 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7943 if diff conftest.exp conftest.er2 >/dev/null; then
7944 lt_cv_prog_compiler_static_works=yes
7945 fi
7946 else
7947 lt_cv_prog_compiler_static_works=yes
7948 fi
7949 fi
7950 $RM -r conftest*
7951 LDFLAGS="$save_LDFLAGS"
b9668ba4 7952
5c706339 7953fi
47dc80f6
AK
7954{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7955$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
b9668ba4 7956
5c706339
AK
7957if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7958 :
7959else
7960 lt_prog_compiler_static=
7961fi
b9668ba4 7962
b9668ba4 7963
b9668ba4 7964
b9668ba4 7965
b9668ba4 7966
b9668ba4 7967
b9668ba4 7968
47dc80f6
AK
7969 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7970$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
5c706339 7971if test "${lt_cv_prog_compiler_c_o+set}" = set; then
47dc80f6 7972 $as_echo_n "(cached) " >&6
5c706339
AK
7973else
7974 lt_cv_prog_compiler_c_o=no
7975 $RM -r conftest 2>/dev/null
7976 mkdir conftest
7977 cd conftest
7978 mkdir out
7979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b9668ba4 7980
5c706339
AK
7981 lt_compiler_flag="-o out/conftest2.$ac_objext"
7982 # Insert the option either (1) after the last *FLAGS variable, or
7983 # (2) before a word containing "conftest.", or (3) at the end.
7984 # Note that $ac_compile itself does not contain backslashes and begins
7985 # with a dollar sign (not a hyphen), so the echo should work correctly.
7986 lt_compile=`echo "$ac_compile" | $SED \
7987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7989 -e 's:$: $lt_compiler_flag:'`
47dc80f6 7990 (eval echo "\"\$as_me:7990: $lt_compile\"" >&5)
5c706339
AK
7991 (eval "$lt_compile" 2>out/conftest.err)
7992 ac_status=$?
7993 cat out/conftest.err >&5
47dc80f6 7994 echo "$as_me:7994: \$? = $ac_status" >&5
5c706339
AK
7995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7996 then
7997 # The compiler can only warn and ignore the option if not recognized
7998 # So say no if there are warnings
7999 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8002 lt_cv_prog_compiler_c_o=yes
8003 fi
8004 fi
8005 chmod u+w . 2>&5
8006 $RM conftest*
8007 # SGI C++ compiler will create directory out/ii_files/ for
8008 # template instantiation
8009 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8010 $RM out/* && rmdir out
8011 cd ..
8012 $RM -r conftest
8013 $RM conftest*
b9668ba4 8014
5c706339 8015fi
47dc80f6
AK
8016{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8017$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
b9668ba4 8018
b9668ba4 8019
b9668ba4 8020
b9668ba4 8021
b9668ba4 8022
b9668ba4 8023
47dc80f6
AK
8024 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8025$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
5c706339 8026if test "${lt_cv_prog_compiler_c_o+set}" = set; then
47dc80f6 8027 $as_echo_n "(cached) " >&6
5c706339
AK
8028else
8029 lt_cv_prog_compiler_c_o=no
8030 $RM -r conftest 2>/dev/null
8031 mkdir conftest
8032 cd conftest
8033 mkdir out
8034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b9668ba4 8035
5c706339
AK
8036 lt_compiler_flag="-o out/conftest2.$ac_objext"
8037 # Insert the option either (1) after the last *FLAGS variable, or
8038 # (2) before a word containing "conftest.", or (3) at the end.
8039 # Note that $ac_compile itself does not contain backslashes and begins
8040 # with a dollar sign (not a hyphen), so the echo should work correctly.
8041 lt_compile=`echo "$ac_compile" | $SED \
8042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8044 -e 's:$: $lt_compiler_flag:'`
47dc80f6 8045 (eval echo "\"\$as_me:8045: $lt_compile\"" >&5)
5c706339
AK
8046 (eval "$lt_compile" 2>out/conftest.err)
8047 ac_status=$?
8048 cat out/conftest.err >&5
47dc80f6 8049 echo "$as_me:8049: \$? = $ac_status" >&5
5c706339
AK
8050 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8051 then
8052 # The compiler can only warn and ignore the option if not recognized
8053 # So say no if there are warnings
8054 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8055 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8056 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8057 lt_cv_prog_compiler_c_o=yes
8058 fi
8059 fi
8060 chmod u+w . 2>&5
8061 $RM conftest*
8062 # SGI C++ compiler will create directory out/ii_files/ for
8063 # template instantiation
8064 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8065 $RM out/* && rmdir out
8066 cd ..
8067 $RM -r conftest
8068 $RM conftest*
b9668ba4 8069
5c706339 8070fi
47dc80f6
AK
8071{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8072$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
b9668ba4 8073
b9668ba4 8074
b9668ba4 8075
b9668ba4 8076
5c706339
AK
8077hard_links="nottested"
8078if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8079 # do not overwrite the value of need_locks provided by the user
47dc80f6
AK
8080 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8081$as_echo_n "checking if we can lock with hard links... " >&6; }
5c706339
AK
8082 hard_links=yes
8083 $RM conftest*
8084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8085 touch conftest.a
8086 ln conftest.a conftest.b 2>&5 || hard_links=no
8087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
47dc80f6
AK
8088 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8089$as_echo "$hard_links" >&6; }
5c706339 8090 if test "$hard_links" = no; then
47dc80f6
AK
8091 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8092$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5c706339
AK
8093 need_locks=warn
8094 fi
8095else
8096 need_locks=no
8097fi
b9668ba4 8098
b9668ba4 8099
b9668ba4 8100
b9668ba4 8101
b9668ba4 8102
b9668ba4 8103
47dc80f6
AK
8104 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8105$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
b9668ba4 8106
5c706339
AK
8107 runpath_var=
8108 allow_undefined_flag=
8109 always_export_symbols=no
8110 archive_cmds=
8111 archive_expsym_cmds=
8112 compiler_needs_object=no
8113 enable_shared_with_static_runtimes=no
8114 export_dynamic_flag_spec=
8115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8116 hardcode_automatic=no
8117 hardcode_direct=no
8118 hardcode_direct_absolute=no
8119 hardcode_libdir_flag_spec=
8120 hardcode_libdir_flag_spec_ld=
8121 hardcode_libdir_separator=
8122 hardcode_minus_L=no
8123 hardcode_shlibpath_var=unsupported
8124 inherit_rpath=no
8125 link_all_deplibs=unknown
8126 module_cmds=
8127 module_expsym_cmds=
8128 old_archive_from_new_cmds=
8129 old_archive_from_expsyms_cmds=
8130 thread_safe_flag_spec=
8131 whole_archive_flag_spec=
8132 # include_expsyms should be a list of space-separated symbols to be *always*
8133 # included in the symbol list
8134 include_expsyms=
8135 # exclude_expsyms can be an extended regexp of symbols to exclude
8136 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8137 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8138 # as well as any symbol that contains `d'.
8139 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8140 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8141 # platforms (ab)use it in PIC code, but their linkers get confused if
8142 # the symbol is explicitly referenced. Since portable code cannot
8143 # rely on this symbol name, it's probably fine to never include it in
8144 # preloaded symbol tables.
8145 # Exclude shared library initialization/finalization symbols.
8146 extract_expsyms_cmds=
b9668ba4 8147
5c706339 8148 case $host_os in
47dc80f6 8149 cygwin* | mingw* | pw32* | cegcc*)
5c706339
AK
8150 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8151 # When not using gcc, we currently assume that we are using
8152 # Microsoft Visual C++.
8153 if test "$GCC" != yes; then
8154 with_gnu_ld=no
8155 fi
8156 ;;
8157 interix*)
8158 # we just hope/assume this is gcc and not c89 (= MSVC++)
8159 with_gnu_ld=yes
8160 ;;
8161 openbsd*)
8162 with_gnu_ld=no
8163 ;;
8164 esac
b9668ba4 8165
5c706339
AK
8166 ld_shlibs=yes
8167 if test "$with_gnu_ld" = yes; then
8168 # If archive_cmds runs LD, not CC, wlarc should be empty
8169 wlarc='${wl}'
b9668ba4 8170
5c706339
AK
8171 # Set some defaults for GNU ld with shared library support. These
8172 # are reset later if shared libraries are not supported. Putting them
8173 # here allows them to be overridden if necessary.
8174 runpath_var=LD_RUN_PATH
8175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8176 export_dynamic_flag_spec='${wl}--export-dynamic'
8177 # ancient GNU ld didn't support --whole-archive et. al.
8178 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8179 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8180 else
8181 whole_archive_flag_spec=
8182 fi
8183 supports_anon_versioning=no
8184 case `$LD -v 2>&1` in
8185 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8186 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8187 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8188 *\ 2.11.*) ;; # other 2.11 versions
8189 *) supports_anon_versioning=yes ;;
8190 esac
b9668ba4 8191
5c706339
AK
8192 # See if GNU ld supports shared libraries.
8193 case $host_os in
8194 aix[3-9]*)
8195 # On AIX/PPC, the GNU linker is very broken
8196 if test "$host_cpu" != ia64; then
8197 ld_shlibs=no
8198 cat <<_LT_EOF 1>&2
b9668ba4 8199
5c706339
AK
8200*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8201*** to be unable to reliably create shared libraries on AIX.
8202*** Therefore, libtool is disabling shared libraries support. If you
8203*** really care for shared libraries, you may want to modify your PATH
8204*** so that a non-GNU linker is found, and then restart.
b9668ba4 8205
5c706339
AK
8206_LT_EOF
8207 fi
8208 ;;
b9668ba4 8209
5c706339
AK
8210 amigaos*)
8211 case $host_cpu in
8212 powerpc)
8213 # see comment about AmigaOS4 .so support
8214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8215 archive_expsym_cmds=''
8216 ;;
8217 m68k)
8218 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)'
8219 hardcode_libdir_flag_spec='-L$libdir'
8220 hardcode_minus_L=yes
8221 ;;
8222 esac
8223 ;;
b9668ba4 8224
5c706339
AK
8225 beos*)
8226 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8227 allow_undefined_flag=unsupported
8228 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8229 # support --undefined. This deserves some investigation. FIXME
8230 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8231 else
8232 ld_shlibs=no
8233 fi
8234 ;;
b9668ba4 8235
47dc80f6 8236 cygwin* | mingw* | pw32* | cegcc*)
5c706339
AK
8237 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8238 # as there is no search path for DLLs.
8239 hardcode_libdir_flag_spec='-L$libdir'
8240 allow_undefined_flag=unsupported
8241 always_export_symbols=no
8242 enable_shared_with_static_runtimes=yes
8243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
b9668ba4 8244
5c706339
AK
8245 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8247 # If the export-symbols file already is a .def file (1st line
8248 # is EXPORTS), use it as is; otherwise, prepend...
8249 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8250 cp $export_symbols $output_objdir/$soname.def;
8251 else
8252 echo EXPORTS > $output_objdir/$soname.def;
8253 cat $export_symbols >> $output_objdir/$soname.def;
8254 fi~
8255 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8256 else
8257 ld_shlibs=no
8258 fi
8259 ;;
b9668ba4 8260
5c706339
AK
8261 interix[3-9]*)
8262 hardcode_direct=no
8263 hardcode_shlibpath_var=no
8264 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8265 export_dynamic_flag_spec='${wl}-E'
8266 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8267 # Instead, shared libraries are loaded at an image base (0x10000000 by
8268 # default) and relocated if they conflict, which is a slow very memory
8269 # consuming and fragmenting process. To avoid this, we pick a random,
8270 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8271 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8272 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8273 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'
8274 ;;
b9668ba4 8275
5c706339
AK
8276 gnu* | linux* | tpf* | k*bsd*-gnu)
8277 tmp_diet=no
8278 if test "$host_os" = linux-dietlibc; then
8279 case $cc_basename in
8280 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8281 esac
8282 fi
8283 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8284 && test "$tmp_diet" = no
8285 then
8286 tmp_addflag=
8287 tmp_sharedflag='-shared'
8288 case $cc_basename,$host_cpu in
8289 pgcc*) # Portland Group C compiler
8290 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'
8291 tmp_addflag=' $pic_flag'
8292 ;;
8293 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8294 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'
8295 tmp_addflag=' $pic_flag -Mnomain' ;;
8296 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8297 tmp_addflag=' -i_dynamic' ;;
8298 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8299 tmp_addflag=' -i_dynamic -nofor_main' ;;
8300 ifc* | ifort*) # Intel Fortran compiler
8301 tmp_addflag=' -nofor_main' ;;
47dc80f6
AK
8302 lf95*) # Lahey Fortran 8.1
8303 whole_archive_flag_spec=
8304 tmp_sharedflag='--shared' ;;
5c706339
AK
8305 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8306 tmp_sharedflag='-qmkshrobj'
8307 tmp_addflag= ;;
8308 esac
8309 case `$CC -V 2>&1 | sed 5q` in
8310 *Sun\ C*) # Sun C 5.9
8311 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'
8312 compiler_needs_object=yes
8313 tmp_sharedflag='-G' ;;
8314 *Sun\ F*) # Sun Fortran 8.3
8315 tmp_sharedflag='-G' ;;
8316 esac
8317 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
b9668ba4 8318
5c706339
AK
8319 if test "x$supports_anon_versioning" = xyes; then
8320 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8321 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8322 echo "local: *; };" >> $output_objdir/$libname.ver~
8323 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8324 fi
b9668ba4 8325
5c706339
AK
8326 case $cc_basename in
8327 xlf*)
8328 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8329 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8330 hardcode_libdir_flag_spec=
8331 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8332 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8333 if test "x$supports_anon_versioning" = xyes; then
8334 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8335 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8336 echo "local: *; };" >> $output_objdir/$libname.ver~
8337 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8338 fi
8339 ;;
8340 esac
8341 else
8342 ld_shlibs=no
8343 fi
8344 ;;
b9668ba4 8345
5c706339
AK
8346 netbsd* | netbsdelf*-gnu)
8347 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8348 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8349 wlarc=
8350 else
8351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8353 fi
8354 ;;
b9668ba4 8355
5c706339
AK
8356 solaris*)
8357 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8358 ld_shlibs=no
8359 cat <<_LT_EOF 1>&2
b9668ba4 8360
5c706339
AK
8361*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8362*** create shared libraries on Solaris systems. Therefore, libtool
8363*** is disabling shared libraries support. We urge you to upgrade GNU
8364*** binutils to release 2.9.1 or newer. Another option is to modify
8365*** your PATH or compiler configuration so that the native linker is
8366*** used, and then restart.
b9668ba4 8367
5c706339
AK
8368_LT_EOF
8369 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8372 else
8373 ld_shlibs=no
8374 fi
8375 ;;
b9668ba4 8376
5c706339
AK
8377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8378 case `$LD -v 2>&1` in
8379 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8380 ld_shlibs=no
8381 cat <<_LT_EOF 1>&2
b9668ba4 8382
5c706339
AK
8383*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8384*** reliably create shared libraries on SCO systems. Therefore, libtool
8385*** is disabling shared libraries support. We urge you to upgrade GNU
8386*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8387*** your PATH or compiler configuration so that the native linker is
8388*** used, and then restart.
b9668ba4 8389
5c706339
AK
8390_LT_EOF
8391 ;;
8392 *)
8393 # For security reasons, it is highly recommended that you always
8394 # use absolute paths for naming shared libraries, and exclude the
8395 # DT_RUNPATH tag from executables and libraries. But doing so
8396 # requires that you compile everything twice, which is a pain.
8397 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8398 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8400 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8401 else
8402 ld_shlibs=no
8403 fi
8404 ;;
8405 esac
8406 ;;
b9668ba4 8407
5c706339
AK
8408 sunos4*)
8409 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8410 wlarc=
8411 hardcode_direct=yes
8412 hardcode_shlibpath_var=no
8413 ;;
b9668ba4 8414
5c706339
AK
8415 *)
8416 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8418 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8419 else
8420 ld_shlibs=no
8421 fi
8422 ;;
8423 esac
b9668ba4 8424
5c706339
AK
8425 if test "$ld_shlibs" = no; then
8426 runpath_var=
8427 hardcode_libdir_flag_spec=
8428 export_dynamic_flag_spec=
8429 whole_archive_flag_spec=
8430 fi
8431 else
8432 # PORTME fill in a description of your system's linker (not GNU ld)
8433 case $host_os in
8434 aix3*)
8435 allow_undefined_flag=unsupported
8436 always_export_symbols=yes
8437 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'
8438 # Note: this linker hardcodes the directories in LIBPATH if there
8439 # are no directories specified by -L.
8440 hardcode_minus_L=yes
8441 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8442 # Neither direct hardcoding nor static linking is supported with a
8443 # broken collect2.
8444 hardcode_direct=unsupported
8445 fi
8446 ;;
b9668ba4 8447
5c706339
AK
8448 aix[4-9]*)
8449 if test "$host_cpu" = ia64; then
8450 # On IA64, the linker does run time linking by default, so we don't
8451 # have to do anything special.
8452 aix_use_runtimelinking=no
8453 exp_sym_flag='-Bexport'
8454 no_entry_flag=""
8455 else
8456 # If we're using GNU nm, then we don't want the "-C" option.
8457 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8458 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8459 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'
8460 else
8461 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'
8462 fi
8463 aix_use_runtimelinking=no
b9668ba4 8464
5c706339
AK
8465 # Test if we are trying to use run time linking or normal
8466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8467 # need to do runtime linking.
8468 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8469 for ld_flag in $LDFLAGS; do
8470 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8471 aix_use_runtimelinking=yes
8472 break
8473 fi
8474 done
8475 ;;
8476 esac
b9668ba4 8477
5c706339
AK
8478 exp_sym_flag='-bexport'
8479 no_entry_flag='-bnoentry'
8480 fi
b9668ba4 8481
5c706339
AK
8482 # When large executables or shared objects are built, AIX ld can
8483 # have problems creating the table of contents. If linking a library
8484 # or program results in "error TOC overflow" add -mminimal-toc to
8485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
b9668ba4 8487
5c706339
AK
8488 archive_cmds=''
8489 hardcode_direct=yes
8490 hardcode_direct_absolute=yes
8491 hardcode_libdir_separator=':'
8492 link_all_deplibs=yes
8493 file_list_spec='${wl}-f,'
b9668ba4 8494
5c706339
AK
8495 if test "$GCC" = yes; then
8496 case $host_os in aix4.[012]|aix4.[012].*)
8497 # We only want to do this on AIX 4.2 and lower, the check
8498 # below for broken collect2 doesn't work under 4.3+
8499 collect2name=`${CC} -print-prog-name=collect2`
8500 if test -f "$collect2name" &&
8501 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8502 then
8503 # We have reworked collect2
8504 :
8505 else
8506 # We have old collect2
8507 hardcode_direct=unsupported
8508 # It fails to find uninstalled libraries when the uninstalled
8509 # path is not listed in the libpath. Setting hardcode_minus_L
8510 # to unsupported forces relinking
8511 hardcode_minus_L=yes
8512 hardcode_libdir_flag_spec='-L$libdir'
8513 hardcode_libdir_separator=
8514 fi
8515 ;;
8516 esac
8517 shared_flag='-shared'
8518 if test "$aix_use_runtimelinking" = yes; then
8519 shared_flag="$shared_flag "'${wl}-G'
8520 fi
8521 link_all_deplibs=no
8522 else
8523 # not using gcc
8524 if test "$host_cpu" = ia64; then
8525 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8526 # chokes on -Wl,-G. The following line is correct:
8527 shared_flag='-G'
8528 else
8529 if test "$aix_use_runtimelinking" = yes; then
8530 shared_flag='${wl}-G'
8531 else
8532 shared_flag='${wl}-bM:SRE'
8533 fi
8534 fi
8535 fi
b9668ba4 8536
47dc80f6 8537 export_dynamic_flag_spec='${wl}-bexpall'
5c706339
AK
8538 # It seems that -bexpall does not export symbols beginning with
8539 # underscore (_), so it is better to generate a list of symbols to export.
8540 always_export_symbols=yes
8541 if test "$aix_use_runtimelinking" = yes; then
8542 # Warning - without using the other runtime loading flags (-brtl),
8543 # -berok will link without error, but may produce a broken library.
8544 allow_undefined_flag='-berok'
8545 # Determine the default libpath from the value encoded in an
8546 # empty executable.
8547 cat >conftest.$ac_ext <<_ACEOF
8548/* confdefs.h. */
8549_ACEOF
8550cat confdefs.h >>conftest.$ac_ext
8551cat >>conftest.$ac_ext <<_ACEOF
8552/* end confdefs.h. */
b9668ba4 8553
5c706339
AK
8554int
8555main ()
8556{
b9668ba4 8557
5c706339
AK
8558 ;
8559 return 0;
8560}
8561_ACEOF
8562rm -f conftest.$ac_objext conftest$ac_exeext
8563if { (ac_try="$ac_link"
8564case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8567esac
47dc80f6
AK
8568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8569$as_echo "$ac_try_echo") >&5
5c706339
AK
8570 (eval "$ac_link") 2>conftest.er1
8571 ac_status=$?
8572 grep -v '^ *+' conftest.er1 >conftest.err
8573 rm -f conftest.er1
8574 cat conftest.err >&5
47dc80f6 8575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
8576 (exit $ac_status); } && {
8577 test -z "$ac_c_werror_flag" ||
8578 test ! -s conftest.err
47dc80f6
AK
8579 } && test -s conftest$ac_exeext && {
8580 test "$cross_compiling" = yes ||
8581 $as_test_x conftest$ac_exeext
8582 }; then
b9668ba4 8583
5c706339
AK
8584lt_aix_libpath_sed='
8585 /Import File Strings/,/^$/ {
8586 /^0/ {
8587 s/^0 *\(.*\)$/\1/
8588 p
8589 }
8590 }'
8591aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8592# Check for a 64-bit object if we didn't find anything.
8593if test -z "$aix_libpath"; then
8594 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8595fi
8596else
47dc80f6 8597 $as_echo "$as_me: failed program was:" >&5
5c706339 8598sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 8599
b9668ba4 8600
5c706339 8601fi
b9668ba4 8602
47dc80f6 8603rm -rf conftest.dSYM
5c706339
AK
8604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8605 conftest$ac_exeext conftest.$ac_ext
8606if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
b9668ba4 8607
5c706339
AK
8608 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8609 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"
8610 else
8611 if test "$host_cpu" = ia64; then
8612 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8613 allow_undefined_flag="-z nodefs"
8614 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"
8615 else
8616 # Determine the default libpath from the value encoded in an
8617 # empty executable.
8618 cat >conftest.$ac_ext <<_ACEOF
8619/* confdefs.h. */
8620_ACEOF
8621cat confdefs.h >>conftest.$ac_ext
8622cat >>conftest.$ac_ext <<_ACEOF
8623/* end confdefs.h. */
b9668ba4 8624
5c706339
AK
8625int
8626main ()
8627{
b9668ba4 8628
5c706339
AK
8629 ;
8630 return 0;
8631}
8632_ACEOF
8633rm -f conftest.$ac_objext conftest$ac_exeext
8634if { (ac_try="$ac_link"
8635case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8638esac
47dc80f6
AK
8639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8640$as_echo "$ac_try_echo") >&5
5c706339
AK
8641 (eval "$ac_link") 2>conftest.er1
8642 ac_status=$?
8643 grep -v '^ *+' conftest.er1 >conftest.err
8644 rm -f conftest.er1
8645 cat conftest.err >&5
47dc80f6 8646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
8647 (exit $ac_status); } && {
8648 test -z "$ac_c_werror_flag" ||
8649 test ! -s conftest.err
47dc80f6
AK
8650 } && test -s conftest$ac_exeext && {
8651 test "$cross_compiling" = yes ||
8652 $as_test_x conftest$ac_exeext
8653 }; then
b9668ba4 8654
5c706339
AK
8655lt_aix_libpath_sed='
8656 /Import File Strings/,/^$/ {
8657 /^0/ {
8658 s/^0 *\(.*\)$/\1/
8659 p
8660 }
8661 }'
8662aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8663# Check for a 64-bit object if we didn't find anything.
8664if test -z "$aix_libpath"; then
8665 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8666fi
8667else
47dc80f6 8668 $as_echo "$as_me: failed program was:" >&5
5c706339 8669sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 8670
b9668ba4 8671
5c706339 8672fi
b9668ba4 8673
47dc80f6 8674rm -rf conftest.dSYM
5c706339
AK
8675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8676 conftest$ac_exeext conftest.$ac_ext
8677if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
b9668ba4 8678
5c706339
AK
8679 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8680 # Warning - without using the other run time loading flags,
8681 # -berok will link without error, but may produce a broken library.
8682 no_undefined_flag=' ${wl}-bernotok'
8683 allow_undefined_flag=' ${wl}-berok'
8684 # Exported symbols can be pulled into shared objects from archives
8685 whole_archive_flag_spec='$convenience'
8686 archive_cmds_need_lc=yes
8687 # This is similar to how AIX traditionally builds its shared libraries.
8688 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'
8689 fi
8690 fi
8691 ;;
b9668ba4 8692
5c706339
AK
8693 amigaos*)
8694 case $host_cpu in
8695 powerpc)
8696 # see comment about AmigaOS4 .so support
8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 archive_expsym_cmds=''
8699 ;;
8700 m68k)
8701 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)'
8702 hardcode_libdir_flag_spec='-L$libdir'
8703 hardcode_minus_L=yes
8704 ;;
8705 esac
8706 ;;
b9668ba4 8707
5c706339
AK
8708 bsdi[45]*)
8709 export_dynamic_flag_spec=-rdynamic
8710 ;;
b9668ba4 8711
47dc80f6 8712 cygwin* | mingw* | pw32* | cegcc*)
5c706339
AK
8713 # When not using gcc, we currently assume that we are using
8714 # Microsoft Visual C++.
8715 # hardcode_libdir_flag_spec is actually meaningless, as there is
8716 # no search path for DLLs.
8717 hardcode_libdir_flag_spec=' '
8718 allow_undefined_flag=unsupported
8719 # Tell ltmain to make .lib files, not .a files.
8720 libext=lib
8721 # Tell ltmain to make .dll files, not .so files.
8722 shrext_cmds=".dll"
8723 # FIXME: Setting linknames here is a bad hack.
8724 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8725 # The linker will automatically build a .lib file if we build a DLL.
8726 old_archive_from_new_cmds='true'
8727 # FIXME: Should let the user specify the lib program.
8728 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8729 fix_srcfile_path='`cygpath -w "$srcfile"`'
8730 enable_shared_with_static_runtimes=yes
8731 ;;
b9668ba4 8732
5c706339 8733 darwin* | rhapsody*)
b9668ba4 8734
b9668ba4 8735
5c706339
AK
8736 archive_cmds_need_lc=no
8737 hardcode_direct=no
8738 hardcode_automatic=yes
8739 hardcode_shlibpath_var=unsupported
8740 whole_archive_flag_spec=''
8741 link_all_deplibs=yes
8742 allow_undefined_flag="$_lt_dar_allow_undefined"
47dc80f6
AK
8743 case $cc_basename in
8744 ifort*) _lt_dar_can_shared=yes ;;
8745 *) _lt_dar_can_shared=$GCC ;;
8746 esac
8747 if test "$_lt_dar_can_shared" = "yes"; then
5c706339
AK
8748 output_verbose_link_cmd=echo
8749 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8750 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8751 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}"
8752 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}"
b9668ba4 8753
5c706339
AK
8754 else
8755 ld_shlibs=no
8756 fi
b9668ba4 8757
5c706339 8758 ;;
b9668ba4 8759
5c706339
AK
8760 dgux*)
8761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8762 hardcode_libdir_flag_spec='-L$libdir'
8763 hardcode_shlibpath_var=no
8764 ;;
b9668ba4 8765
5c706339
AK
8766 freebsd1*)
8767 ld_shlibs=no
8768 ;;
b9668ba4 8769
5c706339
AK
8770 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8771 # support. Future versions do this automatically, but an explicit c++rt0.o
8772 # does not break anything, and helps significantly (at the cost of a little
8773 # extra space).
8774 freebsd2.2*)
8775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8776 hardcode_libdir_flag_spec='-R$libdir'
8777 hardcode_direct=yes
8778 hardcode_shlibpath_var=no
8779 ;;
b9668ba4 8780
5c706339
AK
8781 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8782 freebsd2*)
8783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8784 hardcode_direct=yes
8785 hardcode_minus_L=yes
8786 hardcode_shlibpath_var=no
8787 ;;
b9668ba4 8788
5c706339
AK
8789 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8790 freebsd* | dragonfly*)
8791 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8792 hardcode_libdir_flag_spec='-R$libdir'
8793 hardcode_direct=yes
8794 hardcode_shlibpath_var=no
8795 ;;
b9668ba4 8796
5c706339
AK
8797 hpux9*)
8798 if test "$GCC" = yes; then
8799 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'
8800 else
8801 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'
8802 fi
8803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8804 hardcode_libdir_separator=:
8805 hardcode_direct=yes
b9668ba4 8806
5c706339
AK
8807 # hardcode_minus_L: Not really in the search PATH,
8808 # but as the default location of the library.
8809 hardcode_minus_L=yes
8810 export_dynamic_flag_spec='${wl}-E'
8811 ;;
b9668ba4 8812
5c706339
AK
8813 hpux10*)
8814 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8815 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8816 else
8817 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8818 fi
8819 if test "$with_gnu_ld" = no; then
8820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8821 hardcode_libdir_flag_spec_ld='+b $libdir'
8822 hardcode_libdir_separator=:
8823 hardcode_direct=yes
8824 hardcode_direct_absolute=yes
8825 export_dynamic_flag_spec='${wl}-E'
8826 # hardcode_minus_L: Not really in the search PATH,
8827 # but as the default location of the library.
8828 hardcode_minus_L=yes
8829 fi
8830 ;;
b9668ba4 8831
5c706339
AK
8832 hpux11*)
8833 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8834 case $host_cpu in
8835 hppa*64*)
8836 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8837 ;;
8838 ia64*)
47dc80f6 8839 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5c706339
AK
8840 ;;
8841 *)
8842 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8843 ;;
8844 esac
8845 else
8846 case $host_cpu in
8847 hppa*64*)
8848 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8849 ;;
8850 ia64*)
8851 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8852 ;;
8853 *)
8854 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8855 ;;
8856 esac
8857 fi
8858 if test "$with_gnu_ld" = no; then
8859 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8860 hardcode_libdir_separator=:
b9668ba4 8861
5c706339
AK
8862 case $host_cpu in
8863 hppa*64*|ia64*)
8864 hardcode_direct=no
8865 hardcode_shlibpath_var=no
8866 ;;
8867 *)
8868 hardcode_direct=yes
8869 hardcode_direct_absolute=yes
8870 export_dynamic_flag_spec='${wl}-E'
b9668ba4 8871
5c706339
AK
8872 # hardcode_minus_L: Not really in the search PATH,
8873 # but as the default location of the library.
8874 hardcode_minus_L=yes
8875 ;;
8876 esac
8877 fi
8878 ;;
b9668ba4 8879
5c706339
AK
8880 irix5* | irix6* | nonstopux*)
8881 if test "$GCC" = yes; then
8882 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'
8883 # Try to use the -exported_symbol ld option, if it does not
8884 # work, assume that -exports_file does not work either and
8885 # implicitly export all symbols.
8886 save_LDFLAGS="$LDFLAGS"
8887 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8888 cat >conftest.$ac_ext <<_ACEOF
8889int foo(void) {}
8890_ACEOF
8891rm -f conftest.$ac_objext conftest$ac_exeext
8892if { (ac_try="$ac_link"
8893case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896esac
47dc80f6
AK
8897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8898$as_echo "$ac_try_echo") >&5
5c706339
AK
8899 (eval "$ac_link") 2>conftest.er1
8900 ac_status=$?
8901 grep -v '^ *+' conftest.er1 >conftest.err
8902 rm -f conftest.er1
8903 cat conftest.err >&5
47dc80f6 8904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
8905 (exit $ac_status); } && {
8906 test -z "$ac_c_werror_flag" ||
8907 test ! -s conftest.err
47dc80f6
AK
8908 } && test -s conftest$ac_exeext && {
8909 test "$cross_compiling" = yes ||
8910 $as_test_x conftest$ac_exeext
8911 }; then
5c706339 8912 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'
b9668ba4 8913
5c706339 8914else
47dc80f6 8915 $as_echo "$as_me: failed program was:" >&5
5c706339 8916sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 8917
b9668ba4 8918
5c706339 8919fi
b9668ba4 8920
47dc80f6 8921rm -rf conftest.dSYM
5c706339
AK
8922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8923 conftest$ac_exeext conftest.$ac_ext
8924 LDFLAGS="$save_LDFLAGS"
8925 else
8926 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'
8927 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'
8928 fi
8929 archive_cmds_need_lc='no'
8930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8931 hardcode_libdir_separator=:
8932 inherit_rpath=yes
8933 link_all_deplibs=yes
8934 ;;
b9668ba4 8935
5c706339
AK
8936 netbsd* | netbsdelf*-gnu)
8937 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8938 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8939 else
8940 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8941 fi
8942 hardcode_libdir_flag_spec='-R$libdir'
8943 hardcode_direct=yes
8944 hardcode_shlibpath_var=no
8945 ;;
b9668ba4 8946
5c706339
AK
8947 newsos6)
8948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8949 hardcode_direct=yes
8950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8951 hardcode_libdir_separator=:
8952 hardcode_shlibpath_var=no
8953 ;;
b9668ba4 8954
5c706339
AK
8955 *nto* | *qnx*)
8956 ;;
b9668ba4 8957
5c706339
AK
8958 openbsd*)
8959 if test -f /usr/libexec/ld.so; then
8960 hardcode_direct=yes
8961 hardcode_shlibpath_var=no
8962 hardcode_direct_absolute=yes
8963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8964 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8965 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8966 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8967 export_dynamic_flag_spec='${wl}-E'
8968 else
8969 case $host_os in
8970 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8971 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8972 hardcode_libdir_flag_spec='-R$libdir'
8973 ;;
8974 *)
8975 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8976 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8977 ;;
8978 esac
8979 fi
8980 else
8981 ld_shlibs=no
8982 fi
8983 ;;
b9668ba4 8984
5c706339
AK
8985 os2*)
8986 hardcode_libdir_flag_spec='-L$libdir'
8987 hardcode_minus_L=yes
8988 allow_undefined_flag=unsupported
8989 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'
8990 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8991 ;;
b9668ba4 8992
5c706339
AK
8993 osf3*)
8994 if test "$GCC" = yes; then
8995 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8996 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'
8997 else
8998 allow_undefined_flag=' -expect_unresolved \*'
8999 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'
9000 fi
9001 archive_cmds_need_lc='no'
9002 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9003 hardcode_libdir_separator=:
9004 ;;
b9668ba4 9005
5c706339
AK
9006 osf4* | osf5*) # as osf3* with the addition of -msym flag
9007 if test "$GCC" = yes; then
9008 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9009 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'
9010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9011 else
9012 allow_undefined_flag=' -expect_unresolved \*'
9013 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'
9014 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~
9015 $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'
b9668ba4 9016
5c706339
AK
9017 # Both c and cxx compiler support -rpath directly
9018 hardcode_libdir_flag_spec='-rpath $libdir'
9019 fi
9020 archive_cmds_need_lc='no'
9021 hardcode_libdir_separator=:
9022 ;;
b9668ba4 9023
5c706339
AK
9024 solaris*)
9025 no_undefined_flag=' -z defs'
9026 if test "$GCC" = yes; then
9027 wlarc='${wl}'
9028 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9029 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9030 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9031 else
9032 case `$CC -V 2>&1` in
9033 *"Compilers 5.0"*)
9034 wlarc=''
9035 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9036 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9037 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9038 ;;
9039 *)
9040 wlarc='${wl}'
9041 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9042 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9043 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9044 ;;
9045 esac
9046 fi
9047 hardcode_libdir_flag_spec='-R$libdir'
9048 hardcode_shlibpath_var=no
9049 case $host_os in
9050 solaris2.[0-5] | solaris2.[0-5].*) ;;
9051 *)
9052 # The compiler driver will combine and reorder linker options,
9053 # but understands `-z linker_flag'. GCC discards it without `$wl',
9054 # but is careful enough not to reorder.
9055 # Supported since Solaris 2.6 (maybe 2.5.1?)
9056 if test "$GCC" = yes; then
9057 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9058 else
9059 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9060 fi
9061 ;;
9062 esac
9063 link_all_deplibs=yes
9064 ;;
b9668ba4 9065
5c706339
AK
9066 sunos4*)
9067 if test "x$host_vendor" = xsequent; then
9068 # Use $CC to link under sequent, because it throws in some extra .o
9069 # files that make .init and .fini sections work.
9070 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9071 else
9072 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9073 fi
9074 hardcode_libdir_flag_spec='-L$libdir'
9075 hardcode_direct=yes
9076 hardcode_minus_L=yes
9077 hardcode_shlibpath_var=no
9078 ;;
b9668ba4 9079
5c706339
AK
9080 sysv4)
9081 case $host_vendor in
9082 sni)
9083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9084 hardcode_direct=yes # is this really true???
9085 ;;
9086 siemens)
9087 ## LD is ld it makes a PLAMLIB
9088 ## CC just makes a GrossModule.
9089 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9090 reload_cmds='$CC -r -o $output$reload_objs'
9091 hardcode_direct=no
9092 ;;
9093 motorola)
9094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9095 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9096 ;;
9097 esac
9098 runpath_var='LD_RUN_PATH'
9099 hardcode_shlibpath_var=no
9100 ;;
b9668ba4 9101
5c706339
AK
9102 sysv4.3*)
9103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104 hardcode_shlibpath_var=no
9105 export_dynamic_flag_spec='-Bexport'
9106 ;;
b9668ba4 9107
5c706339
AK
9108 sysv4*MP*)
9109 if test -d /usr/nec; then
9110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9111 hardcode_shlibpath_var=no
9112 runpath_var=LD_RUN_PATH
9113 hardcode_runpath_var=yes
9114 ld_shlibs=yes
9115 fi
9116 ;;
b9668ba4 9117
5c706339
AK
9118 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9119 no_undefined_flag='${wl}-z,text'
9120 archive_cmds_need_lc=no
9121 hardcode_shlibpath_var=no
9122 runpath_var='LD_RUN_PATH'
b9668ba4 9123
5c706339
AK
9124 if test "$GCC" = yes; then
9125 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9126 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9127 else
9128 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9129 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9130 fi
9131 ;;
b9668ba4 9132
5c706339
AK
9133 sysv5* | sco3.2v5* | sco5v6*)
9134 # Note: We can NOT use -z defs as we might desire, because we do not
9135 # link with -lc, and that would cause any symbols used from libc to
9136 # always be unresolved, which means just about no library would
9137 # ever link correctly. If we're not using GNU ld we use -z text
9138 # though, which does catch some bad symbols but isn't as heavy-handed
9139 # as -z defs.
9140 no_undefined_flag='${wl}-z,text'
9141 allow_undefined_flag='${wl}-z,nodefs'
9142 archive_cmds_need_lc=no
9143 hardcode_shlibpath_var=no
9144 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9145 hardcode_libdir_separator=':'
9146 link_all_deplibs=yes
9147 export_dynamic_flag_spec='${wl}-Bexport'
9148 runpath_var='LD_RUN_PATH'
b9668ba4 9149
5c706339
AK
9150 if test "$GCC" = yes; then
9151 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9152 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9153 else
9154 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9155 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9156 fi
9157 ;;
b9668ba4 9158
5c706339
AK
9159 uts4*)
9160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9161 hardcode_libdir_flag_spec='-L$libdir'
9162 hardcode_shlibpath_var=no
9163 ;;
b9668ba4 9164
5c706339
AK
9165 *)
9166 ld_shlibs=no
9167 ;;
b9668ba4
AK
9168 esac
9169
5c706339
AK
9170 if test x$host_vendor = xsni; then
9171 case $host in
9172 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9173 export_dynamic_flag_spec='${wl}-Blargedynsym'
9174 ;;
9175 esac
b9668ba4 9176 fi
5c706339 9177 fi
b9668ba4 9178
47dc80f6
AK
9179{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9180$as_echo "$ld_shlibs" >&6; }
5c706339 9181test "$ld_shlibs" = no && can_build_shared=no
b9668ba4 9182
5c706339 9183with_gnu_ld=$with_gnu_ld
b9668ba4 9184
b9668ba4 9185
b9668ba4 9186
b9668ba4 9187
b9668ba4 9188
b9668ba4
AK
9189
9190
b9668ba4 9191
b9668ba4
AK
9192
9193
b9668ba4
AK
9194
9195
b9668ba4 9196
b9668ba4
AK
9197
9198
5c706339
AK
9199#
9200# Do we need to explicitly link libc?
9201#
9202case "x$archive_cmds_need_lc" in
9203x|xyes)
9204 # Assume -lc should be added
9205 archive_cmds_need_lc=yes
b9668ba4 9206
5c706339
AK
9207 if test "$enable_shared" = yes && test "$GCC" = yes; then
9208 case $archive_cmds in
9209 *'~'*)
9210 # FIXME: we may have to deal with multi-command sequences.
b9668ba4 9211 ;;
5c706339
AK
9212 '$CC '*)
9213 # Test whether the compiler implicitly links with -lc since on some
9214 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9215 # to ld, don't add -lc before -lgcc.
47dc80f6
AK
9216 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9217$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
5c706339
AK
9218 $RM conftest*
9219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b9668ba4 9220
5c706339
AK
9221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9222 (eval $ac_compile) 2>&5
9223 ac_status=$?
47dc80f6 9224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
9225 (exit $ac_status); } 2>conftest.err; then
9226 soname=conftest
9227 lib=conftest
9228 libobjs=conftest.$ac_objext
9229 deplibs=
9230 wl=$lt_prog_compiler_wl
9231 pic_flag=$lt_prog_compiler_pic
9232 compiler_flags=-v
9233 linker_flags=-v
9234 verstring=
9235 output_objdir=.
9236 libname=conftest
9237 lt_save_allow_undefined_flag=$allow_undefined_flag
9238 allow_undefined_flag=
9239 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9240 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9241 ac_status=$?
47dc80f6 9242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
9243 (exit $ac_status); }
9244 then
9245 archive_cmds_need_lc=no
9246 else
9247 archive_cmds_need_lc=yes
9248 fi
9249 allow_undefined_flag=$lt_save_allow_undefined_flag
9250 else
9251 cat conftest.err 1>&5
9252 fi
9253 $RM conftest*
47dc80f6
AK
9254 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9255$as_echo "$archive_cmds_need_lc" >&6; }
5c706339
AK
9256 ;;
9257 esac
9258 fi
b9668ba4
AK
9259 ;;
9260esac
b9668ba4
AK
9261
9262
9263
b9668ba4 9264
b9668ba4 9265
b9668ba4 9266
b9668ba4 9267
b9668ba4 9268
b9668ba4 9269
b9668ba4 9270
b9668ba4 9271
b9668ba4 9272
b9668ba4 9273
b9668ba4 9274
b9668ba4 9275
b9668ba4
AK
9276
9277
b9668ba4 9278
b9668ba4 9279
b9668ba4 9280
b9668ba4 9281
b9668ba4 9282
b9668ba4 9283
b9668ba4
AK
9284
9285
b9668ba4 9286
b9668ba4 9287
b9668ba4 9288
b9668ba4 9289
b9668ba4 9290
b9668ba4 9291
b9668ba4 9292
b9668ba4 9293
b9668ba4 9294
b9668ba4 9295
b9668ba4 9296
b9668ba4 9297
b9668ba4 9298
b9668ba4 9299
b9668ba4 9300
b9668ba4 9301
b9668ba4 9302
b9668ba4 9303
b9668ba4 9304
b9668ba4 9305
b9668ba4 9306
b9668ba4 9307
b9668ba4 9308
b9668ba4 9309
b9668ba4
AK
9310
9311
b9668ba4 9312
b9668ba4 9313
b9668ba4 9314
b9668ba4 9315
b9668ba4 9316
b9668ba4 9317
b9668ba4 9318
b9668ba4 9319
b9668ba4 9320
b9668ba4
AK
9321
9322
b9668ba4 9323
b9668ba4 9324
b9668ba4 9325
b9668ba4 9326
b9668ba4 9327
b9668ba4 9328
b9668ba4 9329
b9668ba4 9330
b9668ba4 9331
b9668ba4 9332
b9668ba4 9333
b9668ba4 9334
b9668ba4 9335
b9668ba4
AK
9336
9337
b9668ba4 9338
b9668ba4 9339
b9668ba4
AK
9340
9341
b9668ba4 9342
b9668ba4 9343
b9668ba4 9344
b9668ba4 9345
b9668ba4 9346
b9668ba4 9347
b9668ba4 9348
5c706339
AK
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
47dc80f6
AK
9418 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9419$as_echo_n "checking dynamic linker characteristics... " >&6; }
5c706339
AK
9420
9421if test "$GCC" = yes; then
9422 case $host_os in
9423 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9424 *) lt_awk_arg="/^libraries:/" ;;
9425 esac
9426 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9427 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9428 # if the path contains ";" then we assume it to be the separator
9429 # otherwise default to the standard path separator (i.e. ":") - it is
9430 # assumed that no part of a normal pathname contains ";" but that should
9431 # okay in the real world where ";" in dirpaths is itself problematic.
9432 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9433 else
9434 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9435 fi
9436 # Ok, now we have the path, separated by spaces, we can step through it
9437 # and add multilib dir if necessary.
9438 lt_tmp_lt_search_path_spec=
9439 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9440 for lt_sys_path in $lt_search_path_spec; do
9441 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9442 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9443 else
9444 test -d "$lt_sys_path" && \
9445 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9446 fi
9447 done
9448 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9449BEGIN {RS=" "; FS="/|\n";} {
9450 lt_foo="";
9451 lt_count=0;
9452 for (lt_i = NF; lt_i > 0; lt_i--) {
9453 if ($lt_i != "" && $lt_i != ".") {
9454 if ($lt_i == "..") {
9455 lt_count++;
9456 } else {
9457 if (lt_count == 0) {
9458 lt_foo="/" $lt_i lt_foo;
9459 } else {
9460 lt_count--;
9461 }
9462 }
9463 }
9464 }
9465 if (lt_foo != "") { lt_freq[lt_foo]++; }
9466 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9467}'`
9468 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9469else
9470 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9471fi
b9668ba4
AK
9472library_names_spec=
9473libname_spec='lib$name'
9474soname_spec=
9475shrext_cmds=".so"
9476postinstall_cmds=
9477postuninstall_cmds=
9478finish_cmds=
9479finish_eval=
9480shlibpath_var=
9481shlibpath_overrides_runpath=unknown
9482version_type=none
9483dynamic_linker="$host_os ld.so"
9484sys_lib_dlsearch_path_spec="/lib /usr/lib"
b9668ba4
AK
9485need_lib_prefix=unknown
9486hardcode_into_libs=no
9487
9488# when you set need_version to no, make sure it does not cause -set_version
9489# flags to be left without arguments
9490need_version=unknown
9491
9492case $host_os in
9493aix3*)
9494 version_type=linux
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9496 shlibpath_var=LIBPATH
9497
9498 # AIX 3 has no versioning support, so we append a major version to the name.
9499 soname_spec='${libname}${release}${shared_ext}$major'
9500 ;;
9501
5c706339 9502aix[4-9]*)
b9668ba4
AK
9503 version_type=linux
9504 need_lib_prefix=no
9505 need_version=no
9506 hardcode_into_libs=yes
9507 if test "$host_cpu" = ia64; then
9508 # AIX 5 supports IA64
9509 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9510 shlibpath_var=LD_LIBRARY_PATH
9511 else
9512 # With GCC up to 2.95.x, collect2 would create an import file
9513 # for dependence libraries. The import file would start with
9514 # the line `#! .'. This would cause the generated library to
9515 # depend on `.', always an invalid library. This was fixed in
9516 # development snapshots of GCC prior to 3.0.
9517 case $host_os in
9518 aix4 | aix4.[01] | aix4.[01].*)
9519 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9520 echo ' yes '
5c706339 9521 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
b9668ba4
AK
9522 :
9523 else
9524 can_build_shared=no
9525 fi
9526 ;;
9527 esac
9528 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9529 # soname into executable. Probably we can add versioning support to
9530 # collect2, so additional links can be useful in future.
9531 if test "$aix_use_runtimelinking" = yes; then
9532 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9533 # instead of lib<name>.a to let people know that these are not
9534 # typical AIX shared libraries.
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9536 else
9537 # We preserve .a as extension for shared libraries through AIX4.2
9538 # and later when we are not doing run time linking.
9539 library_names_spec='${libname}${release}.a $libname.a'
9540 soname_spec='${libname}${release}${shared_ext}$major'
9541 fi
9542 shlibpath_var=LIBPATH
9543 fi
9544 ;;
9545
9546amigaos*)
5c706339
AK
9547 case $host_cpu in
9548 powerpc)
9549 # Since July 2007 AmigaOS4 officially supports .so libraries.
9550 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552 ;;
9553 m68k)
9554 library_names_spec='$libname.ixlibrary $libname.a'
9555 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9556 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'
9557 ;;
9558 esac
b9668ba4
AK
9559 ;;
9560
9561beos*)
9562 library_names_spec='${libname}${shared_ext}'
9563 dynamic_linker="$host_os ld.so"
9564 shlibpath_var=LIBRARY_PATH
9565 ;;
9566
9567bsdi[45]*)
9568 version_type=linux
9569 need_version=no
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9572 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9573 shlibpath_var=LD_LIBRARY_PATH
9574 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9575 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9576 # the default ld.so.conf also contains /usr/contrib/lib and
9577 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9578 # libtool to hard-code these into programs
9579 ;;
9580
47dc80f6 9581cygwin* | mingw* | pw32* | cegcc*)
b9668ba4
AK
9582 version_type=windows
9583 shrext_cmds=".dll"
9584 need_version=no
9585 need_lib_prefix=no
9586
9587 case $GCC,$host_os in
47dc80f6 9588 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
b9668ba4
AK
9589 library_names_spec='$libname.dll.a'
9590 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9591 postinstall_cmds='base_file=`basename \${file}`~
5c706339 9592 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
b9668ba4
AK
9593 dldir=$destdir/`dirname \$dlpath`~
9594 test -d \$dldir || mkdir -p \$dldir~
9595 $install_prog $dir/$dlname \$dldir/$dlname~
5c706339
AK
9596 chmod a+x \$dldir/$dlname~
9597 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9598 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9599 fi'
b9668ba4
AK
9600 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9601 dlpath=$dir/\$dldll~
5c706339 9602 $RM \$dlpath'
b9668ba4
AK
9603 shlibpath_overrides_runpath=yes
9604
9605 case $host_os in
9606 cygwin*)
9607 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9608 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9609 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9610 ;;
47dc80f6 9611 mingw* | cegcc*)
b9668ba4
AK
9612 # MinGW DLLs use traditional 'lib' prefix
9613 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5c706339
AK
9614 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9615 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
b9668ba4
AK
9616 # It is most probably a Windows format PATH printed by
9617 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9618 # path with ; separators, and with drive letters. We can handle the
9619 # drive letters (cygwin fileutils understands them), so leave them,
9620 # especially as we might pass files found there to a mingw objdump,
9621 # which wouldn't understand a cygwinified path. Ahh.
5c706339 9622 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
b9668ba4 9623 else
5c706339 9624 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
b9668ba4
AK
9625 fi
9626 ;;
9627 pw32*)
9628 # pw32 DLLs use 'pw' prefix rather than 'lib'
9629 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9630 ;;
9631 esac
9632 ;;
9633
9634 *)
9635 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9636 ;;
9637 esac
9638 dynamic_linker='Win32 ld.exe'
9639 # FIXME: first we should search . and the directory the executable is in
9640 shlibpath_var=PATH
9641 ;;
9642
9643darwin* | rhapsody*)
9644 dynamic_linker="$host_os dyld"
9645 version_type=darwin
9646 need_lib_prefix=no
9647 need_version=no
5c706339 9648 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
b9668ba4
AK
9649 soname_spec='${libname}${release}${major}$shared_ext'
9650 shlibpath_overrides_runpath=yes
9651 shlibpath_var=DYLD_LIBRARY_PATH
9652 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
5c706339
AK
9653
9654 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
b9668ba4
AK
9655 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9656 ;;
9657
9658dgux*)
9659 version_type=linux
9660 need_lib_prefix=no
9661 need_version=no
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9663 soname_spec='${libname}${release}${shared_ext}$major'
9664 shlibpath_var=LD_LIBRARY_PATH
9665 ;;
9666
9667freebsd1*)
9668 dynamic_linker=no
9669 ;;
9670
9671freebsd* | dragonfly*)
9672 # DragonFly does not have aout. When/if they implement a new
9673 # versioning mechanism, adjust this.
9674 if test -x /usr/bin/objformat; then
9675 objformat=`/usr/bin/objformat`
9676 else
9677 case $host_os in
9678 freebsd[123]*) objformat=aout ;;
9679 *) objformat=elf ;;
9680 esac
9681 fi
9682 version_type=freebsd-$objformat
9683 case $version_type in
9684 freebsd-elf*)
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9686 need_version=no
9687 need_lib_prefix=no
9688 ;;
9689 freebsd-*)
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9691 need_version=yes
9692 ;;
9693 esac
9694 shlibpath_var=LD_LIBRARY_PATH
9695 case $host_os in
9696 freebsd2*)
9697 shlibpath_overrides_runpath=yes
9698 ;;
9699 freebsd3.[01]* | freebsdelf3.[01]*)
9700 shlibpath_overrides_runpath=yes
9701 hardcode_into_libs=yes
9702 ;;
9703 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9704 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9705 shlibpath_overrides_runpath=no
9706 hardcode_into_libs=yes
9707 ;;
5c706339 9708 *) # from 4.6 on, and DragonFly
b9668ba4
AK
9709 shlibpath_overrides_runpath=yes
9710 hardcode_into_libs=yes
9711 ;;
9712 esac
9713 ;;
9714
9715gnu*)
9716 version_type=linux
9717 need_lib_prefix=no
9718 need_version=no
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9720 soname_spec='${libname}${release}${shared_ext}$major'
9721 shlibpath_var=LD_LIBRARY_PATH
9722 hardcode_into_libs=yes
9723 ;;
9724
9725hpux9* | hpux10* | hpux11*)
9726 # Give a soname corresponding to the major version so that dld.sl refuses to
9727 # link against other versions.
9728 version_type=sunos
9729 need_lib_prefix=no
9730 need_version=no
9731 case $host_cpu in
9732 ia64*)
9733 shrext_cmds='.so'
9734 hardcode_into_libs=yes
9735 dynamic_linker="$host_os dld.so"
9736 shlibpath_var=LD_LIBRARY_PATH
9737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9739 soname_spec='${libname}${release}${shared_ext}$major'
9740 if test "X$HPUX_IA64_MODE" = X32; then
9741 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9742 else
9743 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9744 fi
9745 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9746 ;;
5c706339
AK
9747 hppa*64*)
9748 shrext_cmds='.sl'
9749 hardcode_into_libs=yes
9750 dynamic_linker="$host_os dld.sl"
9751 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9754 soname_spec='${libname}${release}${shared_ext}$major'
9755 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9756 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9757 ;;
9758 *)
b9668ba4
AK
9759 shrext_cmds='.sl'
9760 dynamic_linker="$host_os dld.sl"
9761 shlibpath_var=SHLIB_PATH
9762 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764 soname_spec='${libname}${release}${shared_ext}$major'
9765 ;;
9766 esac
9767 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9768 postinstall_cmds='chmod 555 $lib'
9769 ;;
9770
5c706339 9771interix[3-9]*)
b9668ba4
AK
9772 version_type=linux
9773 need_lib_prefix=no
9774 need_version=no
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9778 shlibpath_var=LD_LIBRARY_PATH
9779 shlibpath_overrides_runpath=no
9780 hardcode_into_libs=yes
9781 ;;
9782
9783irix5* | irix6* | nonstopux*)
9784 case $host_os in
9785 nonstopux*) version_type=nonstopux ;;
9786 *)
9787 if test "$lt_cv_prog_gnu_ld" = yes; then
9788 version_type=linux
9789 else
9790 version_type=irix
9791 fi ;;
9792 esac
9793 need_lib_prefix=no
9794 need_version=no
9795 soname_spec='${libname}${release}${shared_ext}$major'
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9797 case $host_os in
9798 irix5* | nonstopux*)
9799 libsuff= shlibsuff=
9800 ;;
9801 *)
9802 case $LD in # libtool.m4 will add one of these switches to LD
9803 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9804 libsuff= shlibsuff= libmagic=32-bit;;
9805 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9806 libsuff=32 shlibsuff=N32 libmagic=N32;;
9807 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9808 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9809 *) libsuff= shlibsuff= libmagic=never-match;;
9810 esac
9811 ;;
9812 esac
9813 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9814 shlibpath_overrides_runpath=no
9815 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9816 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9817 hardcode_into_libs=yes
9818 ;;
9819
9820# No shared lib support for Linux oldld, aout, or coff.
9821linux*oldld* | linux*aout* | linux*coff*)
9822 dynamic_linker=no
9823 ;;
9824
9825# This must be Linux ELF.
9826linux* | k*bsd*-gnu)
9827 version_type=linux
9828 need_lib_prefix=no
9829 need_version=no
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9833 shlibpath_var=LD_LIBRARY_PATH
9834 shlibpath_overrides_runpath=no
5c706339
AK
9835 # Some binutils ld are patched to set DT_RUNPATH
9836 save_LDFLAGS=$LDFLAGS
9837 save_libdir=$libdir
9838 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9839 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9840 cat >conftest.$ac_ext <<_ACEOF
9841/* confdefs.h. */
9842_ACEOF
9843cat confdefs.h >>conftest.$ac_ext
9844cat >>conftest.$ac_ext <<_ACEOF
9845/* end confdefs.h. */
9846
9847int
9848main ()
9849{
9850
9851 ;
9852 return 0;
9853}
9854_ACEOF
9855rm -f conftest.$ac_objext conftest$ac_exeext
9856if { (ac_try="$ac_link"
9857case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9860esac
47dc80f6
AK
9861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9862$as_echo "$ac_try_echo") >&5
5c706339
AK
9863 (eval "$ac_link") 2>conftest.er1
9864 ac_status=$?
9865 grep -v '^ *+' conftest.er1 >conftest.err
9866 rm -f conftest.er1
9867 cat conftest.err >&5
47dc80f6 9868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
9869 (exit $ac_status); } && {
9870 test -z "$ac_c_werror_flag" ||
9871 test ! -s conftest.err
47dc80f6
AK
9872 } && test -s conftest$ac_exeext && {
9873 test "$cross_compiling" = yes ||
9874 $as_test_x conftest$ac_exeext
9875 }; then
5c706339
AK
9876 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9877 shlibpath_overrides_runpath=yes
9878fi
9879
9880else
47dc80f6 9881 $as_echo "$as_me: failed program was:" >&5
5c706339
AK
9882sed 's/^/| /' conftest.$ac_ext >&5
9883
9884
9885fi
9886
47dc80f6 9887rm -rf conftest.dSYM
5c706339
AK
9888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9889 conftest$ac_exeext conftest.$ac_ext
9890 LDFLAGS=$save_LDFLAGS
9891 libdir=$save_libdir
9892
b9668ba4
AK
9893 # This implies no fast_install, which is unacceptable.
9894 # Some rework will be needed to allow for fast_install
9895 # before this can be enabled.
9896 hardcode_into_libs=yes
9897
9898 # Append ld.so.conf contents to the search path
9899 if test -f /etc/ld.so.conf; then
5c706339 9900 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' ' '`
b9668ba4
AK
9901 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9902 fi
9903
9904 # We used to test for /lib/ld.so.1 and disable shared libraries on
9905 # powerpc, because MkLinux only supported shared libraries with the
9906 # GNU dynamic linker. Since this was broken with cross compilers,
9907 # most powerpc-linux boxes support dynamic linking these days and
9908 # people can always --disable-shared, the test was removed, and we
9909 # assume the GNU/Linux dynamic linker is in use.
9910 dynamic_linker='GNU/Linux ld.so'
9911 ;;
9912
9913netbsdelf*-gnu)
9914 version_type=linux
9915 need_lib_prefix=no
9916 need_version=no
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 shlibpath_overrides_runpath=no
9921 hardcode_into_libs=yes
9922 dynamic_linker='NetBSD ld.elf_so'
9923 ;;
9924
9925netbsd*)
9926 version_type=sunos
9927 need_lib_prefix=no
9928 need_version=no
5c706339 9929 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
b9668ba4
AK
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9932 dynamic_linker='NetBSD (a.out) ld.so'
9933 else
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9935 soname_spec='${libname}${release}${shared_ext}$major'
9936 dynamic_linker='NetBSD ld.elf_so'
9937 fi
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=yes
9940 hardcode_into_libs=yes
9941 ;;
9942
9943newsos6)
9944 version_type=linux
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946 shlibpath_var=LD_LIBRARY_PATH
9947 shlibpath_overrides_runpath=yes
9948 ;;
9949
5c706339
AK
9950*nto* | *qnx*)
9951 version_type=qnx
b9668ba4
AK
9952 need_lib_prefix=no
9953 need_version=no
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 shlibpath_var=LD_LIBRARY_PATH
5c706339
AK
9957 shlibpath_overrides_runpath=no
9958 hardcode_into_libs=yes
9959 dynamic_linker='ldqnx.so'
b9668ba4
AK
9960 ;;
9961
9962openbsd*)
9963 version_type=sunos
9964 sys_lib_dlsearch_path_spec="/usr/lib"
9965 need_lib_prefix=no
9966 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9967 case $host_os in
5c706339
AK
9968 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9969 *) need_version=no ;;
b9668ba4
AK
9970 esac
9971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9973 shlibpath_var=LD_LIBRARY_PATH
5c706339 9974 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
b9668ba4
AK
9975 case $host_os in
9976 openbsd2.[89] | openbsd2.[89].*)
9977 shlibpath_overrides_runpath=no
9978 ;;
9979 *)
9980 shlibpath_overrides_runpath=yes
9981 ;;
9982 esac
9983 else
9984 shlibpath_overrides_runpath=yes
9985 fi
9986 ;;
9987
9988os2*)
9989 libname_spec='$name'
9990 shrext_cmds=".dll"
9991 need_lib_prefix=no
9992 library_names_spec='$libname${shared_ext} $libname.a'
9993 dynamic_linker='OS/2 ld.exe'
9994 shlibpath_var=LIBPATH
9995 ;;
9996
9997osf3* | osf4* | osf5*)
9998 version_type=osf
9999 need_lib_prefix=no
10000 need_version=no
10001 soname_spec='${libname}${release}${shared_ext}$major'
10002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003 shlibpath_var=LD_LIBRARY_PATH
10004 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10005 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10006 ;;
10007
5c706339
AK
10008rdos*)
10009 dynamic_linker=no
10010 ;;
10011
b9668ba4
AK
10012solaris*)
10013 version_type=linux
10014 need_lib_prefix=no
10015 need_version=no
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10017 soname_spec='${libname}${release}${shared_ext}$major'
10018 shlibpath_var=LD_LIBRARY_PATH
10019 shlibpath_overrides_runpath=yes
10020 hardcode_into_libs=yes
10021 # ldd complains unless libraries are executable
10022 postinstall_cmds='chmod +x $lib'
10023 ;;
10024
10025sunos4*)
10026 version_type=sunos
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10028 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10029 shlibpath_var=LD_LIBRARY_PATH
10030 shlibpath_overrides_runpath=yes
10031 if test "$with_gnu_ld" = yes; then
10032 need_lib_prefix=no
10033 fi
10034 need_version=yes
10035 ;;
10036
10037sysv4 | sysv4.3*)
10038 version_type=linux
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 shlibpath_var=LD_LIBRARY_PATH
10042 case $host_vendor in
10043 sni)
10044 shlibpath_overrides_runpath=no
10045 need_lib_prefix=no
b9668ba4
AK
10046 runpath_var=LD_RUN_PATH
10047 ;;
10048 siemens)
10049 need_lib_prefix=no
10050 ;;
10051 motorola)
10052 need_lib_prefix=no
10053 need_version=no
10054 shlibpath_overrides_runpath=no
10055 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10056 ;;
10057 esac
10058 ;;
10059
10060sysv4*MP*)
10061 if test -d /usr/nec ;then
10062 version_type=linux
10063 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10064 soname_spec='$libname${shared_ext}.$major'
10065 shlibpath_var=LD_LIBRARY_PATH
10066 fi
10067 ;;
10068
10069sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10070 version_type=freebsd-elf
10071 need_lib_prefix=no
10072 need_version=no
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 shlibpath_var=LD_LIBRARY_PATH
5c706339 10076 shlibpath_overrides_runpath=yes
b9668ba4
AK
10077 hardcode_into_libs=yes
10078 if test "$with_gnu_ld" = yes; then
10079 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
b9668ba4
AK
10080 else
10081 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
b9668ba4
AK
10082 case $host_os in
10083 sco3.2v5*)
10084 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10085 ;;
10086 esac
10087 fi
10088 sys_lib_dlsearch_path_spec='/usr/lib'
10089 ;;
10090
5c706339
AK
10091tpf*)
10092 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10093 version_type=linux
10094 need_lib_prefix=no
10095 need_version=no
47dc80f6 10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5c706339
AK
10097 shlibpath_var=LD_LIBRARY_PATH
10098 shlibpath_overrides_runpath=no
10099 hardcode_into_libs=yes
10100 ;;
10101
b9668ba4
AK
10102uts4*)
10103 version_type=linux
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105 soname_spec='${libname}${release}${shared_ext}$major'
10106 shlibpath_var=LD_LIBRARY_PATH
10107 ;;
10108
10109*)
10110 dynamic_linker=no
10111 ;;
10112esac
47dc80f6
AK
10113{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10114$as_echo "$dynamic_linker" >&6; }
b9668ba4
AK
10115test "$dynamic_linker" = no && can_build_shared=no
10116
10117variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10118if test "$GCC" = yes; then
10119 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10120fi
10121
5c706339
AK
10122if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10123 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
b9668ba4 10124fi
5c706339
AK
10125if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10126 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
b9668ba4
AK
10127fi
10128
10129
b9668ba4 10130
b9668ba4 10131
b9668ba4 10132
b9668ba4 10133
b9668ba4 10134
b9668ba4 10135
b9668ba4 10136
b9668ba4 10137
b9668ba4 10138
b9668ba4 10139
b9668ba4 10140
b9668ba4 10141
b9668ba4 10142
b9668ba4 10143
b9668ba4 10144
b9668ba4 10145
b9668ba4 10146
b9668ba4 10147
b9668ba4 10148
b9668ba4 10149
b9668ba4 10150
b9668ba4 10151
b9668ba4 10152
b9668ba4 10153
b9668ba4 10154
b9668ba4 10155
b9668ba4 10156
b9668ba4 10157
b9668ba4 10158
b9668ba4 10159
b9668ba4 10160
b9668ba4 10161
b9668ba4 10162
b9668ba4 10163
b9668ba4 10164
b9668ba4 10165
b9668ba4 10166
b9668ba4 10167
b9668ba4 10168
b9668ba4 10169
b9668ba4 10170
b9668ba4 10171
b9668ba4 10172
b9668ba4 10173
b9668ba4 10174
b9668ba4 10175
b9668ba4 10176
b9668ba4 10177
b9668ba4 10178
b9668ba4 10179
b9668ba4 10180
b9668ba4 10181
b9668ba4 10182
b9668ba4 10183
b9668ba4 10184
b9668ba4 10185
b9668ba4 10186
b9668ba4 10187
b9668ba4 10188
b9668ba4 10189
b9668ba4 10190
b9668ba4 10191
b9668ba4 10192
b9668ba4 10193
b9668ba4 10194
b9668ba4 10195
b9668ba4 10196
b9668ba4 10197
b9668ba4 10198
b9668ba4 10199
b9668ba4 10200
b9668ba4 10201
b9668ba4 10202
b9668ba4 10203
b9668ba4 10204
b9668ba4 10205
b9668ba4 10206
b9668ba4 10207
b9668ba4 10208
b9668ba4 10209
b9668ba4 10210
b9668ba4 10211
b9668ba4 10212
b9668ba4 10213
b9668ba4 10214
47dc80f6
AK
10215 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10216$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
5c706339
AK
10217hardcode_action=
10218if test -n "$hardcode_libdir_flag_spec" ||
10219 test -n "$runpath_var" ||
10220 test "X$hardcode_automatic" = "Xyes" ; then
b9668ba4 10221
5c706339
AK
10222 # We can hardcode non-existent directories.
10223 if test "$hardcode_direct" != no &&
10224 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10225 # have to relink, otherwise we might link with an installed library
10226 # when we should be linking with a yet-to-be-installed one
10227 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10228 test "$hardcode_minus_L" != no; then
10229 # Linking always hardcodes the temporary library directory.
10230 hardcode_action=relink
10231 else
10232 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10233 hardcode_action=immediate
10234 fi
10235else
10236 # We cannot hardcode anything, or else we can only hardcode existing
10237 # directories.
10238 hardcode_action=unsupported
10239fi
47dc80f6
AK
10240{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10241$as_echo "$hardcode_action" >&6; }
b9668ba4 10242
5c706339
AK
10243if test "$hardcode_action" = relink ||
10244 test "$inherit_rpath" = yes; then
10245 # Fast installation is not supported
10246 enable_fast_install=no
10247elif test "$shlibpath_overrides_runpath" = yes ||
10248 test "$enable_shared" = no; then
10249 # Fast installation is not necessary
10250 enable_fast_install=needless
10251fi
b9668ba4 10252
b9668ba4 10253
b9668ba4 10254
b9668ba4 10255
b9668ba4 10256
b9668ba4 10257
5c706339
AK
10258 if test "x$enable_dlopen" != xyes; then
10259 enable_dlopen=unknown
10260 enable_dlopen_self=unknown
10261 enable_dlopen_self_static=unknown
10262else
10263 lt_cv_dlopen=no
10264 lt_cv_dlopen_libs=
b9668ba4 10265
5c706339
AK
10266 case $host_os in
10267 beos*)
10268 lt_cv_dlopen="load_add_on"
10269 lt_cv_dlopen_libs=
10270 lt_cv_dlopen_self=yes
10271 ;;
b9668ba4 10272
47dc80f6 10273 mingw* | pw32* | cegcc*)
5c706339
AK
10274 lt_cv_dlopen="LoadLibrary"
10275 lt_cv_dlopen_libs=
10276 ;;
b9668ba4 10277
5c706339
AK
10278 cygwin*)
10279 lt_cv_dlopen="dlopen"
10280 lt_cv_dlopen_libs=
10281 ;;
b9668ba4 10282
5c706339
AK
10283 darwin*)
10284 # if libdl is installed we need to link against it
47dc80f6
AK
10285 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10286$as_echo_n "checking for dlopen in -ldl... " >&6; }
5c706339 10287if test "${ac_cv_lib_dl_dlopen+set}" = set; then
47dc80f6 10288 $as_echo_n "(cached) " >&6
5c706339
AK
10289else
10290 ac_check_lib_save_LIBS=$LIBS
10291LIBS="-ldl $LIBS"
10292cat >conftest.$ac_ext <<_ACEOF
10293/* confdefs.h. */
10294_ACEOF
10295cat confdefs.h >>conftest.$ac_ext
10296cat >>conftest.$ac_ext <<_ACEOF
10297/* end confdefs.h. */
b9668ba4 10298
5c706339
AK
10299/* Override any GCC internal prototype to avoid an error.
10300 Use char because int might match the return type of a GCC
10301 builtin and then its argument prototype would still apply. */
10302#ifdef __cplusplus
10303extern "C"
10304#endif
10305char dlopen ();
10306int
10307main ()
10308{
10309return dlopen ();
10310 ;
10311 return 0;
10312}
10313_ACEOF
10314rm -f conftest.$ac_objext conftest$ac_exeext
10315if { (ac_try="$ac_link"
10316case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10319esac
47dc80f6
AK
10320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10321$as_echo "$ac_try_echo") >&5
5c706339
AK
10322 (eval "$ac_link") 2>conftest.er1
10323 ac_status=$?
10324 grep -v '^ *+' conftest.er1 >conftest.err
10325 rm -f conftest.er1
10326 cat conftest.err >&5
47dc80f6 10327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
10328 (exit $ac_status); } && {
10329 test -z "$ac_c_werror_flag" ||
10330 test ! -s conftest.err
47dc80f6
AK
10331 } && test -s conftest$ac_exeext && {
10332 test "$cross_compiling" = yes ||
10333 $as_test_x conftest$ac_exeext
10334 }; then
5c706339 10335 ac_cv_lib_dl_dlopen=yes
b9668ba4 10336else
47dc80f6 10337 $as_echo "$as_me: failed program was:" >&5
5c706339
AK
10338sed 's/^/| /' conftest.$ac_ext >&5
10339
10340 ac_cv_lib_dl_dlopen=no
b9668ba4
AK
10341fi
10342
47dc80f6 10343rm -rf conftest.dSYM
5c706339
AK
10344rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10345 conftest$ac_exeext conftest.$ac_ext
10346LIBS=$ac_check_lib_save_LIBS
10347fi
47dc80f6
AK
10348{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10349$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10350if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
5c706339
AK
10351 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10352else
b9668ba4 10353
5c706339
AK
10354 lt_cv_dlopen="dyld"
10355 lt_cv_dlopen_libs=
10356 lt_cv_dlopen_self=yes
b9668ba4 10357
5c706339 10358fi
b9668ba4 10359
5c706339 10360 ;;
b9668ba4 10361
5c706339 10362 *)
47dc80f6
AK
10363 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10364$as_echo_n "checking for shl_load... " >&6; }
5c706339 10365if test "${ac_cv_func_shl_load+set}" = set; then
47dc80f6 10366 $as_echo_n "(cached) " >&6
5c706339
AK
10367else
10368 cat >conftest.$ac_ext <<_ACEOF
10369/* confdefs.h. */
10370_ACEOF
10371cat confdefs.h >>conftest.$ac_ext
10372cat >>conftest.$ac_ext <<_ACEOF
10373/* end confdefs.h. */
10374/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10376#define shl_load innocuous_shl_load
b9668ba4 10377
5c706339
AK
10378/* System header to define __stub macros and hopefully few prototypes,
10379 which can conflict with char shl_load (); below.
10380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10381 <limits.h> exists even on freestanding compilers. */
b9668ba4 10382
5c706339
AK
10383#ifdef __STDC__
10384# include <limits.h>
10385#else
10386# include <assert.h>
10387#endif
b9668ba4 10388
5c706339 10389#undef shl_load
b9668ba4 10390
5c706339
AK
10391/* Override any GCC internal prototype to avoid an error.
10392 Use char because int might match the return type of a GCC
10393 builtin and then its argument prototype would still apply. */
10394#ifdef __cplusplus
10395extern "C"
10396#endif
10397char shl_load ();
10398/* The GNU C library defines this for functions which it implements
10399 to always fail with ENOSYS. Some functions are actually named
10400 something starting with __ and the normal name is an alias. */
10401#if defined __stub_shl_load || defined __stub___shl_load
10402choke me
10403#endif
b9668ba4 10404
5c706339
AK
10405int
10406main ()
10407{
10408return shl_load ();
10409 ;
10410 return 0;
10411}
10412_ACEOF
10413rm -f conftest.$ac_objext conftest$ac_exeext
10414if { (ac_try="$ac_link"
10415case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10418esac
47dc80f6
AK
10419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10420$as_echo "$ac_try_echo") >&5
5c706339
AK
10421 (eval "$ac_link") 2>conftest.er1
10422 ac_status=$?
10423 grep -v '^ *+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
47dc80f6 10426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
10427 (exit $ac_status); } && {
10428 test -z "$ac_c_werror_flag" ||
10429 test ! -s conftest.err
47dc80f6
AK
10430 } && test -s conftest$ac_exeext && {
10431 test "$cross_compiling" = yes ||
10432 $as_test_x conftest$ac_exeext
10433 }; then
5c706339
AK
10434 ac_cv_func_shl_load=yes
10435else
47dc80f6 10436 $as_echo "$as_me: failed program was:" >&5
5c706339 10437sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 10438
5c706339
AK
10439 ac_cv_func_shl_load=no
10440fi
b9668ba4 10441
47dc80f6 10442rm -rf conftest.dSYM
5c706339
AK
10443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10444 conftest$ac_exeext conftest.$ac_ext
10445fi
47dc80f6
AK
10446{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10447$as_echo "$ac_cv_func_shl_load" >&6; }
10448if test "x$ac_cv_func_shl_load" = x""yes; then
5c706339
AK
10449 lt_cv_dlopen="shl_load"
10450else
47dc80f6
AK
10451 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10452$as_echo_n "checking for shl_load in -ldld... " >&6; }
5c706339 10453if test "${ac_cv_lib_dld_shl_load+set}" = set; then
47dc80f6 10454 $as_echo_n "(cached) " >&6
5c706339
AK
10455else
10456 ac_check_lib_save_LIBS=$LIBS
10457LIBS="-ldld $LIBS"
10458cat >conftest.$ac_ext <<_ACEOF
10459/* confdefs.h. */
10460_ACEOF
10461cat confdefs.h >>conftest.$ac_ext
10462cat >>conftest.$ac_ext <<_ACEOF
10463/* end confdefs.h. */
b9668ba4 10464
5c706339
AK
10465/* Override any GCC internal prototype to avoid an error.
10466 Use char because int might match the return type of a GCC
10467 builtin and then its argument prototype would still apply. */
10468#ifdef __cplusplus
10469extern "C"
10470#endif
10471char shl_load ();
10472int
10473main ()
10474{
10475return shl_load ();
10476 ;
10477 return 0;
10478}
10479_ACEOF
10480rm -f conftest.$ac_objext conftest$ac_exeext
10481if { (ac_try="$ac_link"
10482case "(($ac_try" in
10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10485esac
47dc80f6
AK
10486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10487$as_echo "$ac_try_echo") >&5
5c706339
AK
10488 (eval "$ac_link") 2>conftest.er1
10489 ac_status=$?
10490 grep -v '^ *+' conftest.er1 >conftest.err
10491 rm -f conftest.er1
10492 cat conftest.err >&5
47dc80f6 10493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
10494 (exit $ac_status); } && {
10495 test -z "$ac_c_werror_flag" ||
10496 test ! -s conftest.err
47dc80f6
AK
10497 } && test -s conftest$ac_exeext && {
10498 test "$cross_compiling" = yes ||
10499 $as_test_x conftest$ac_exeext
10500 }; then
5c706339
AK
10501 ac_cv_lib_dld_shl_load=yes
10502else
47dc80f6 10503 $as_echo "$as_me: failed program was:" >&5
5c706339 10504sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 10505
5c706339
AK
10506 ac_cv_lib_dld_shl_load=no
10507fi
b9668ba4 10508
47dc80f6 10509rm -rf conftest.dSYM
5c706339
AK
10510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10511 conftest$ac_exeext conftest.$ac_ext
10512LIBS=$ac_check_lib_save_LIBS
10513fi
47dc80f6
AK
10514{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10515$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10516if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
5c706339
AK
10517 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10518else
47dc80f6
AK
10519 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10520$as_echo_n "checking for dlopen... " >&6; }
5c706339 10521if test "${ac_cv_func_dlopen+set}" = set; then
47dc80f6 10522 $as_echo_n "(cached) " >&6
5c706339
AK
10523else
10524 cat >conftest.$ac_ext <<_ACEOF
10525/* confdefs.h. */
10526_ACEOF
10527cat confdefs.h >>conftest.$ac_ext
10528cat >>conftest.$ac_ext <<_ACEOF
10529/* end confdefs.h. */
10530/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10532#define dlopen innocuous_dlopen
b9668ba4 10533
5c706339
AK
10534/* System header to define __stub macros and hopefully few prototypes,
10535 which can conflict with char dlopen (); below.
10536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10537 <limits.h> exists even on freestanding compilers. */
b9668ba4 10538
5c706339
AK
10539#ifdef __STDC__
10540# include <limits.h>
10541#else
10542# include <assert.h>
10543#endif
b9668ba4 10544
5c706339 10545#undef dlopen
b9668ba4 10546
5c706339
AK
10547/* Override any GCC internal prototype to avoid an error.
10548 Use char because int might match the return type of a GCC
10549 builtin and then its argument prototype would still apply. */
10550#ifdef __cplusplus
10551extern "C"
10552#endif
10553char dlopen ();
10554/* The GNU C library defines this for functions which it implements
10555 to always fail with ENOSYS. Some functions are actually named
10556 something starting with __ and the normal name is an alias. */
10557#if defined __stub_dlopen || defined __stub___dlopen
10558choke me
10559#endif
b9668ba4 10560
5c706339
AK
10561int
10562main ()
10563{
10564return dlopen ();
10565 ;
10566 return 0;
10567}
10568_ACEOF
10569rm -f conftest.$ac_objext conftest$ac_exeext
10570if { (ac_try="$ac_link"
10571case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
b9668ba4 10574esac
47dc80f6
AK
10575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10576$as_echo "$ac_try_echo") >&5
5c706339
AK
10577 (eval "$ac_link") 2>conftest.er1
10578 ac_status=$?
10579 grep -v '^ *+' conftest.er1 >conftest.err
10580 rm -f conftest.er1
10581 cat conftest.err >&5
47dc80f6 10582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
10583 (exit $ac_status); } && {
10584 test -z "$ac_c_werror_flag" ||
10585 test ! -s conftest.err
47dc80f6
AK
10586 } && test -s conftest$ac_exeext && {
10587 test "$cross_compiling" = yes ||
10588 $as_test_x conftest$ac_exeext
10589 }; then
5c706339
AK
10590 ac_cv_func_dlopen=yes
10591else
47dc80f6 10592 $as_echo "$as_me: failed program was:" >&5
5c706339 10593sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 10594
5c706339
AK
10595 ac_cv_func_dlopen=no
10596fi
b9668ba4 10597
47dc80f6 10598rm -rf conftest.dSYM
5c706339
AK
10599rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10600 conftest$ac_exeext conftest.$ac_ext
10601fi
47dc80f6
AK
10602{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10603$as_echo "$ac_cv_func_dlopen" >&6; }
10604if test "x$ac_cv_func_dlopen" = x""yes; then
5c706339
AK
10605 lt_cv_dlopen="dlopen"
10606else
47dc80f6
AK
10607 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10608$as_echo_n "checking for dlopen in -ldl... " >&6; }
5c706339 10609if test "${ac_cv_lib_dl_dlopen+set}" = set; then
47dc80f6 10610 $as_echo_n "(cached) " >&6
5c706339
AK
10611else
10612 ac_check_lib_save_LIBS=$LIBS
10613LIBS="-ldl $LIBS"
10614cat >conftest.$ac_ext <<_ACEOF
10615/* confdefs.h. */
10616_ACEOF
10617cat confdefs.h >>conftest.$ac_ext
10618cat >>conftest.$ac_ext <<_ACEOF
10619/* end confdefs.h. */
b9668ba4 10620
5c706339
AK
10621/* Override any GCC internal prototype to avoid an error.
10622 Use char because int might match the return type of a GCC
10623 builtin and then its argument prototype would still apply. */
10624#ifdef __cplusplus
10625extern "C"
10626#endif
10627char dlopen ();
10628int
10629main ()
10630{
10631return dlopen ();
10632 ;
10633 return 0;
10634}
10635_ACEOF
10636rm -f conftest.$ac_objext conftest$ac_exeext
10637if { (ac_try="$ac_link"
10638case "(($ac_try" in
10639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640 *) ac_try_echo=$ac_try;;
10641esac
47dc80f6
AK
10642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10643$as_echo "$ac_try_echo") >&5
5c706339
AK
10644 (eval "$ac_link") 2>conftest.er1
10645 ac_status=$?
10646 grep -v '^ *+' conftest.er1 >conftest.err
10647 rm -f conftest.er1
10648 cat conftest.err >&5
47dc80f6 10649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
10650 (exit $ac_status); } && {
10651 test -z "$ac_c_werror_flag" ||
10652 test ! -s conftest.err
47dc80f6
AK
10653 } && test -s conftest$ac_exeext && {
10654 test "$cross_compiling" = yes ||
10655 $as_test_x conftest$ac_exeext
10656 }; then
5c706339
AK
10657 ac_cv_lib_dl_dlopen=yes
10658else
47dc80f6 10659 $as_echo "$as_me: failed program was:" >&5
5c706339 10660sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 10661
5c706339
AK
10662 ac_cv_lib_dl_dlopen=no
10663fi
b9668ba4 10664
47dc80f6 10665rm -rf conftest.dSYM
5c706339
AK
10666rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10667 conftest$ac_exeext conftest.$ac_ext
10668LIBS=$ac_check_lib_save_LIBS
10669fi
47dc80f6
AK
10670{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10671$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10672if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
5c706339
AK
10673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10674else
47dc80f6
AK
10675 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10676$as_echo_n "checking for dlopen in -lsvld... " >&6; }
5c706339 10677if test "${ac_cv_lib_svld_dlopen+set}" = set; then
47dc80f6 10678 $as_echo_n "(cached) " >&6
5c706339
AK
10679else
10680 ac_check_lib_save_LIBS=$LIBS
10681LIBS="-lsvld $LIBS"
10682cat >conftest.$ac_ext <<_ACEOF
10683/* confdefs.h. */
10684_ACEOF
10685cat confdefs.h >>conftest.$ac_ext
10686cat >>conftest.$ac_ext <<_ACEOF
10687/* end confdefs.h. */
b9668ba4 10688
5c706339
AK
10689/* Override any GCC internal prototype to avoid an error.
10690 Use char because int might match the return type of a GCC
10691 builtin and then its argument prototype would still apply. */
10692#ifdef __cplusplus
10693extern "C"
10694#endif
10695char dlopen ();
10696int
10697main ()
10698{
10699return dlopen ();
10700 ;
10701 return 0;
10702}
10703_ACEOF
10704rm -f conftest.$ac_objext conftest$ac_exeext
10705if { (ac_try="$ac_link"
10706case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709esac
47dc80f6
AK
10710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10711$as_echo "$ac_try_echo") >&5
5c706339
AK
10712 (eval "$ac_link") 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
47dc80f6 10717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
10718 (exit $ac_status); } && {
10719 test -z "$ac_c_werror_flag" ||
10720 test ! -s conftest.err
47dc80f6
AK
10721 } && test -s conftest$ac_exeext && {
10722 test "$cross_compiling" = yes ||
10723 $as_test_x conftest$ac_exeext
10724 }; then
5c706339
AK
10725 ac_cv_lib_svld_dlopen=yes
10726else
47dc80f6 10727 $as_echo "$as_me: failed program was:" >&5
5c706339 10728sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 10729
5c706339
AK
10730 ac_cv_lib_svld_dlopen=no
10731fi
b9668ba4 10732
47dc80f6 10733rm -rf conftest.dSYM
5c706339
AK
10734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10735 conftest$ac_exeext conftest.$ac_ext
10736LIBS=$ac_check_lib_save_LIBS
10737fi
47dc80f6
AK
10738{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10739$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10740if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
5c706339
AK
10741 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10742else
47dc80f6
AK
10743 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10744$as_echo_n "checking for dld_link in -ldld... " >&6; }
5c706339 10745if test "${ac_cv_lib_dld_dld_link+set}" = set; then
47dc80f6 10746 $as_echo_n "(cached) " >&6
5c706339
AK
10747else
10748 ac_check_lib_save_LIBS=$LIBS
10749LIBS="-ldld $LIBS"
10750cat >conftest.$ac_ext <<_ACEOF
10751/* confdefs.h. */
10752_ACEOF
10753cat confdefs.h >>conftest.$ac_ext
10754cat >>conftest.$ac_ext <<_ACEOF
10755/* end confdefs.h. */
b9668ba4 10756
5c706339
AK
10757/* Override any GCC internal prototype to avoid an error.
10758 Use char because int might match the return type of a GCC
10759 builtin and then its argument prototype would still apply. */
10760#ifdef __cplusplus
10761extern "C"
10762#endif
10763char dld_link ();
10764int
10765main ()
10766{
10767return dld_link ();
10768 ;
10769 return 0;
10770}
10771_ACEOF
10772rm -f conftest.$ac_objext conftest$ac_exeext
10773if { (ac_try="$ac_link"
10774case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10777esac
47dc80f6
AK
10778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10779$as_echo "$ac_try_echo") >&5
5c706339
AK
10780 (eval "$ac_link") 2>conftest.er1
10781 ac_status=$?
10782 grep -v '^ *+' conftest.er1 >conftest.err
10783 rm -f conftest.er1
10784 cat conftest.err >&5
47dc80f6 10785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
10786 (exit $ac_status); } && {
10787 test -z "$ac_c_werror_flag" ||
10788 test ! -s conftest.err
47dc80f6
AK
10789 } && test -s conftest$ac_exeext && {
10790 test "$cross_compiling" = yes ||
10791 $as_test_x conftest$ac_exeext
10792 }; then
5c706339
AK
10793 ac_cv_lib_dld_dld_link=yes
10794else
47dc80f6 10795 $as_echo "$as_me: failed program was:" >&5
5c706339 10796sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 10797
5c706339
AK
10798 ac_cv_lib_dld_dld_link=no
10799fi
b9668ba4 10800
47dc80f6 10801rm -rf conftest.dSYM
5c706339
AK
10802rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10803 conftest$ac_exeext conftest.$ac_ext
10804LIBS=$ac_check_lib_save_LIBS
10805fi
47dc80f6
AK
10806{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10807$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10808if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
5c706339
AK
10809 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10810fi
b9668ba4 10811
b9668ba4 10812
5c706339 10813fi
b9668ba4 10814
b9668ba4 10815
5c706339 10816fi
b9668ba4 10817
b9668ba4 10818
5c706339 10819fi
b9668ba4 10820
b9668ba4 10821
5c706339 10822fi
b9668ba4 10823
b9668ba4 10824
5c706339 10825fi
b9668ba4 10826
5c706339
AK
10827 ;;
10828 esac
b9668ba4 10829
5c706339
AK
10830 if test "x$lt_cv_dlopen" != xno; then
10831 enable_dlopen=yes
10832 else
10833 enable_dlopen=no
b9668ba4
AK
10834 fi
10835
5c706339
AK
10836 case $lt_cv_dlopen in
10837 dlopen)
10838 save_CPPFLAGS="$CPPFLAGS"
10839 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10840
10841 save_LDFLAGS="$LDFLAGS"
10842 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
b9668ba4 10843
5c706339
AK
10844 save_LIBS="$LIBS"
10845 LIBS="$lt_cv_dlopen_libs $LIBS"
b9668ba4 10846
47dc80f6
AK
10847 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10848$as_echo_n "checking whether a program can dlopen itself... " >&6; }
5c706339 10849if test "${lt_cv_dlopen_self+set}" = set; then
47dc80f6 10850 $as_echo_n "(cached) " >&6
b9668ba4 10851else
5c706339
AK
10852 if test "$cross_compiling" = yes; then :
10853 lt_cv_dlopen_self=cross
b9668ba4 10854else
5c706339
AK
10855 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10856 lt_status=$lt_dlunknown
10857 cat > conftest.$ac_ext <<_LT_EOF
47dc80f6 10858#line 10858 "configure"
5c706339 10859#include "confdefs.h"
b9668ba4 10860
5c706339
AK
10861#if HAVE_DLFCN_H
10862#include <dlfcn.h>
10863#endif
b9668ba4 10864
5c706339 10865#include <stdio.h>
b9668ba4 10866
5c706339
AK
10867#ifdef RTLD_GLOBAL
10868# define LT_DLGLOBAL RTLD_GLOBAL
10869#else
10870# ifdef DL_GLOBAL
10871# define LT_DLGLOBAL DL_GLOBAL
10872# else
10873# define LT_DLGLOBAL 0
10874# endif
10875#endif
b9668ba4 10876
5c706339
AK
10877/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10878 find out it does not work in some platform. */
10879#ifndef LT_DLLAZY_OR_NOW
10880# ifdef RTLD_LAZY
10881# define LT_DLLAZY_OR_NOW RTLD_LAZY
10882# else
10883# ifdef DL_LAZY
10884# define LT_DLLAZY_OR_NOW DL_LAZY
10885# else
10886# ifdef RTLD_NOW
10887# define LT_DLLAZY_OR_NOW RTLD_NOW
10888# else
10889# ifdef DL_NOW
10890# define LT_DLLAZY_OR_NOW DL_NOW
10891# else
10892# define LT_DLLAZY_OR_NOW 0
10893# endif
10894# endif
10895# endif
10896# endif
10897#endif
b9668ba4 10898
5c706339
AK
10899void fnord() { int i=42;}
10900int main ()
10901{
10902 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10903 int status = $lt_dlunknown;
b9668ba4 10904
5c706339
AK
10905 if (self)
10906 {
10907 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10908 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10909 /* dlclose (self); */
10910 }
10911 else
10912 puts (dlerror ());
b9668ba4 10913
47dc80f6 10914 return status;
5c706339
AK
10915}
10916_LT_EOF
10917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10918 (eval $ac_link) 2>&5
10919 ac_status=$?
47dc80f6 10920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
10921 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10922 (./conftest; exit; ) >&5 2>/dev/null
10923 lt_status=$?
10924 case x$lt_status in
10925 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10926 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10927 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10928 esac
10929 else :
10930 # compilation failed
10931 lt_cv_dlopen_self=no
10932 fi
b9668ba4 10933fi
5c706339 10934rm -fr conftest*
b9668ba4
AK
10935
10936
b9668ba4 10937fi
47dc80f6
AK
10938{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10939$as_echo "$lt_cv_dlopen_self" >&6; }
b9668ba4 10940
5c706339
AK
10941 if test "x$lt_cv_dlopen_self" = xyes; then
10942 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
47dc80f6
AK
10943 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10944$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
5c706339 10945if test "${lt_cv_dlopen_self_static+set}" = set; then
47dc80f6 10946 $as_echo_n "(cached) " >&6
5c706339
AK
10947else
10948 if test "$cross_compiling" = yes; then :
10949 lt_cv_dlopen_self_static=cross
10950else
10951 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10952 lt_status=$lt_dlunknown
10953 cat > conftest.$ac_ext <<_LT_EOF
47dc80f6 10954#line 10954 "configure"
5c706339 10955#include "confdefs.h"
b9668ba4 10956
5c706339
AK
10957#if HAVE_DLFCN_H
10958#include <dlfcn.h>
10959#endif
b9668ba4 10960
5c706339 10961#include <stdio.h>
b9668ba4 10962
5c706339
AK
10963#ifdef RTLD_GLOBAL
10964# define LT_DLGLOBAL RTLD_GLOBAL
10965#else
10966# ifdef DL_GLOBAL
10967# define LT_DLGLOBAL DL_GLOBAL
10968# else
10969# define LT_DLGLOBAL 0
10970# endif
10971#endif
b9668ba4 10972
5c706339
AK
10973/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10974 find out it does not work in some platform. */
10975#ifndef LT_DLLAZY_OR_NOW
10976# ifdef RTLD_LAZY
10977# define LT_DLLAZY_OR_NOW RTLD_LAZY
10978# else
10979# ifdef DL_LAZY
10980# define LT_DLLAZY_OR_NOW DL_LAZY
10981# else
10982# ifdef RTLD_NOW
10983# define LT_DLLAZY_OR_NOW RTLD_NOW
10984# else
10985# ifdef DL_NOW
10986# define LT_DLLAZY_OR_NOW DL_NOW
10987# else
10988# define LT_DLLAZY_OR_NOW 0
10989# endif
10990# endif
10991# endif
10992# endif
10993#endif
10994
5c706339
AK
10995void fnord() { int i=42;}
10996int main ()
10997{
10998 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10999 int status = $lt_dlunknown;
11000
11001 if (self)
11002 {
11003 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11004 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11005 /* dlclose (self); */
11006 }
11007 else
11008 puts (dlerror ());
11009
47dc80f6 11010 return status;
5c706339
AK
11011}
11012_LT_EOF
11013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11014 (eval $ac_link) 2>&5
11015 ac_status=$?
47dc80f6 11016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
11017 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11018 (./conftest; exit; ) >&5 2>/dev/null
11019 lt_status=$?
11020 case x$lt_status in
11021 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11022 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11023 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
b9668ba4 11024 esac
5c706339
AK
11025 else :
11026 # compilation failed
11027 lt_cv_dlopen_self_static=no
11028 fi
11029fi
11030rm -fr conftest*
b9668ba4 11031
b9668ba4 11032
5c706339 11033fi
47dc80f6
AK
11034{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11035$as_echo "$lt_cv_dlopen_self_static" >&6; }
5c706339 11036 fi
b9668ba4 11037
5c706339
AK
11038 CPPFLAGS="$save_CPPFLAGS"
11039 LDFLAGS="$save_LDFLAGS"
11040 LIBS="$save_LIBS"
11041 ;;
11042 esac
b9668ba4 11043
5c706339
AK
11044 case $lt_cv_dlopen_self in
11045 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11046 *) enable_dlopen_self=unknown ;;
11047 esac
b9668ba4 11048
5c706339
AK
11049 case $lt_cv_dlopen_self_static in
11050 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11051 *) enable_dlopen_self_static=unknown ;;
11052 esac
11053fi
b9668ba4 11054
b9668ba4 11055
b9668ba4 11056
b9668ba4 11057
b9668ba4 11058
b9668ba4 11059
b9668ba4 11060
b9668ba4 11061
b9668ba4 11062
b9668ba4 11063
b9668ba4 11064
b9668ba4 11065
b9668ba4 11066
b9668ba4 11067
b9668ba4 11068
b9668ba4 11069
b9668ba4 11070
5c706339
AK
11071striplib=
11072old_striplib=
47dc80f6
AK
11073{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11074$as_echo_n "checking whether stripping libraries is possible... " >&6; }
5c706339
AK
11075if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11076 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11077 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
47dc80f6
AK
11078 { $as_echo "$as_me:$LINENO: result: yes" >&5
11079$as_echo "yes" >&6; }
5c706339
AK
11080else
11081# FIXME - insert some real tests, host_os isn't really good enough
11082 case $host_os in
11083 darwin*)
11084 if test -n "$STRIP" ; then
11085 striplib="$STRIP -x"
11086 old_striplib="$STRIP -S"
47dc80f6
AK
11087 { $as_echo "$as_me:$LINENO: result: yes" >&5
11088$as_echo "yes" >&6; }
5c706339 11089 else
47dc80f6
AK
11090 { $as_echo "$as_me:$LINENO: result: no" >&5
11091$as_echo "no" >&6; }
5c706339
AK
11092 fi
11093 ;;
11094 *)
47dc80f6
AK
11095 { $as_echo "$as_me:$LINENO: result: no" >&5
11096$as_echo "no" >&6; }
5c706339
AK
11097 ;;
11098 esac
11099fi
b9668ba4 11100
b9668ba4 11101
b9668ba4 11102
b9668ba4 11103
b9668ba4 11104
b9668ba4 11105
b9668ba4
AK
11106
11107
b9668ba4 11108
b9668ba4 11109
b9668ba4 11110
b9668ba4 11111
5c706339 11112 # Report which library types will actually be built
47dc80f6
AK
11113 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11114$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11115 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11116$as_echo "$can_build_shared" >&6; }
b9668ba4 11117
47dc80f6
AK
11118 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11119$as_echo_n "checking whether to build shared libraries... " >&6; }
5c706339 11120 test "$can_build_shared" = "no" && enable_shared=no
b9668ba4 11121
5c706339
AK
11122 # On AIX, shared libraries and static libraries use the same namespace, and
11123 # are all built from PIC.
11124 case $host_os in
11125 aix3*)
11126 test "$enable_shared" = yes && enable_static=no
11127 if test -n "$RANLIB"; then
11128 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11129 postinstall_cmds='$RANLIB $lib'
11130 fi
11131 ;;
b9668ba4 11132
5c706339
AK
11133 aix[4-9]*)
11134 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11135 test "$enable_shared" = yes && enable_static=no
11136 fi
11137 ;;
11138 esac
47dc80f6
AK
11139 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11140$as_echo "$enable_shared" >&6; }
b9668ba4 11141
47dc80f6
AK
11142 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11143$as_echo_n "checking whether to build static libraries... " >&6; }
5c706339
AK
11144 # Make sure either enable_shared or enable_static is yes.
11145 test "$enable_shared" = yes || enable_static=yes
47dc80f6
AK
11146 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11147$as_echo "$enable_static" >&6; }
b9668ba4 11148
b9668ba4 11149
b9668ba4 11150
b9668ba4 11151
5c706339
AK
11152fi
11153ac_ext=c
11154ac_cpp='$CPP $CPPFLAGS'
11155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11157ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 11158
5c706339 11159CC="$lt_save_CC"
b9668ba4 11160
b9668ba4 11161
b9668ba4 11162
b9668ba4 11163
b9668ba4 11164
b9668ba4 11165
b9668ba4 11166
b9668ba4 11167
b9668ba4 11168
b9668ba4 11169
b9668ba4 11170
b9668ba4 11171
b9668ba4 11172
5c706339 11173 ac_config_commands="$ac_config_commands libtool"
b9668ba4 11174
b9668ba4 11175
b9668ba4 11176
b9668ba4 11177
5c706339 11178# Only expand once:
b9668ba4 11179
b9668ba4 11180
b9668ba4 11181
5c706339
AK
11182# Extract the first word of "doxygen", so it can be a program name with args.
11183set dummy doxygen; ac_word=$2
47dc80f6
AK
11184{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11185$as_echo_n "checking for $ac_word... " >&6; }
5c706339 11186if test "${ac_cv_prog_DOXYGEN+set}" = set; then
47dc80f6 11187 $as_echo_n "(cached) " >&6
5c706339
AK
11188else
11189 if test -n "$DOXYGEN"; then
11190 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
11191else
11192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193for as_dir in $PATH
11194do
11195 IFS=$as_save_IFS
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11199 ac_cv_prog_DOXYGEN="true"
47dc80f6 11200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
11201 break 2
11202 fi
11203done
11204done
11205IFS=$as_save_IFS
b9668ba4 11206
5c706339
AK
11207 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="false"
11208fi
11209fi
11210DOXYGEN=$ac_cv_prog_DOXYGEN
11211if test -n "$DOXYGEN"; then
47dc80f6
AK
11212 { $as_echo "$as_me:$LINENO: result: $DOXYGEN" >&5
11213$as_echo "$DOXYGEN" >&6; }
5c706339 11214else
47dc80f6
AK
11215 { $as_echo "$as_me:$LINENO: result: no" >&5
11216$as_echo "no" >&6; }
5c706339 11217fi
b9668ba4 11218
b9668ba4 11219
5c706339
AK
11220 if test "$DOXYGEN" = true; then
11221 DOXYGEN_TRUE=
11222 DOXYGEN_FALSE='#'
11223else
11224 DOXYGEN_TRUE='#'
11225 DOXYGEN_FALSE=
11226fi
b9668ba4 11227
b9668ba4 11228
5c706339 11229# Checks for header files.
47dc80f6
AK
11230{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11231$as_echo_n "checking for ANSI C header files... " >&6; }
5c706339 11232if test "${ac_cv_header_stdc+set}" = set; then
47dc80f6 11233 $as_echo_n "(cached) " >&6
5c706339
AK
11234else
11235 cat >conftest.$ac_ext <<_ACEOF
11236/* confdefs.h. */
11237_ACEOF
11238cat confdefs.h >>conftest.$ac_ext
11239cat >>conftest.$ac_ext <<_ACEOF
11240/* end confdefs.h. */
11241#include <stdlib.h>
11242#include <stdarg.h>
11243#include <string.h>
11244#include <float.h>
b9668ba4 11245
5c706339
AK
11246int
11247main ()
11248{
b9668ba4 11249
5c706339
AK
11250 ;
11251 return 0;
11252}
11253_ACEOF
11254rm -f conftest.$ac_objext
11255if { (ac_try="$ac_compile"
11256case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11259esac
47dc80f6
AK
11260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11261$as_echo "$ac_try_echo") >&5
5c706339
AK
11262 (eval "$ac_compile") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
47dc80f6 11267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest.$ac_objext; then
11272 ac_cv_header_stdc=yes
11273else
47dc80f6 11274 $as_echo "$as_me: failed program was:" >&5
5c706339 11275sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 11276
5c706339
AK
11277 ac_cv_header_stdc=no
11278fi
b9668ba4 11279
5c706339 11280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b9668ba4 11281
5c706339
AK
11282if test $ac_cv_header_stdc = yes; then
11283 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11284 cat >conftest.$ac_ext <<_ACEOF
11285/* confdefs.h. */
11286_ACEOF
11287cat confdefs.h >>conftest.$ac_ext
11288cat >>conftest.$ac_ext <<_ACEOF
11289/* end confdefs.h. */
11290#include <string.h>
b9668ba4 11291
5c706339
AK
11292_ACEOF
11293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11294 $EGREP "memchr" >/dev/null 2>&1; then
11295 :
11296else
11297 ac_cv_header_stdc=no
11298fi
11299rm -f conftest*
b9668ba4 11300
5c706339 11301fi
b9668ba4 11302
5c706339
AK
11303if test $ac_cv_header_stdc = yes; then
11304 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11305 cat >conftest.$ac_ext <<_ACEOF
11306/* confdefs.h. */
11307_ACEOF
11308cat confdefs.h >>conftest.$ac_ext
11309cat >>conftest.$ac_ext <<_ACEOF
11310/* end confdefs.h. */
11311#include <stdlib.h>
b9668ba4 11312
5c706339
AK
11313_ACEOF
11314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11315 $EGREP "free" >/dev/null 2>&1; then
11316 :
11317else
11318 ac_cv_header_stdc=no
11319fi
11320rm -f conftest*
b9668ba4 11321
5c706339 11322fi
b9668ba4 11323
5c706339
AK
11324if test $ac_cv_header_stdc = yes; then
11325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11326 if test "$cross_compiling" = yes; then
11327 :
b9668ba4 11328else
5c706339
AK
11329 cat >conftest.$ac_ext <<_ACEOF
11330/* confdefs.h. */
11331_ACEOF
11332cat confdefs.h >>conftest.$ac_ext
11333cat >>conftest.$ac_ext <<_ACEOF
11334/* end confdefs.h. */
11335#include <ctype.h>
11336#include <stdlib.h>
11337#if ((' ' & 0x0FF) == 0x020)
11338# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11339# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11340#else
11341# define ISLOWER(c) \
11342 (('a' <= (c) && (c) <= 'i') \
11343 || ('j' <= (c) && (c) <= 'r') \
11344 || ('s' <= (c) && (c) <= 'z'))
11345# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11346#endif
b9668ba4 11347
5c706339
AK
11348#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11349int
11350main ()
11351{
11352 int i;
11353 for (i = 0; i < 256; i++)
11354 if (XOR (islower (i), ISLOWER (i))
11355 || toupper (i) != TOUPPER (i))
11356 return 2;
11357 return 0;
11358}
11359_ACEOF
11360rm -f conftest$ac_exeext
11361if { (ac_try="$ac_link"
11362case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11365esac
47dc80f6
AK
11366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11367$as_echo "$ac_try_echo") >&5
5c706339
AK
11368 (eval "$ac_link") 2>&5
11369 ac_status=$?
47dc80f6 11370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
11371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11372 { (case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11375esac
47dc80f6
AK
11376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11377$as_echo "$ac_try_echo") >&5
5c706339
AK
11378 (eval "$ac_try") 2>&5
11379 ac_status=$?
47dc80f6 11380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
11381 (exit $ac_status); }; }; then
11382 :
11383else
47dc80f6
AK
11384 $as_echo "$as_me: program exited with status $ac_status" >&5
11385$as_echo "$as_me: failed program was:" >&5
5c706339 11386sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 11387
5c706339
AK
11388( exit $ac_status )
11389ac_cv_header_stdc=no
11390fi
47dc80f6 11391rm -rf conftest.dSYM
5c706339
AK
11392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11393fi
b9668ba4 11394
b9668ba4 11395
5c706339
AK
11396fi
11397fi
47dc80f6
AK
11398{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11399$as_echo "$ac_cv_header_stdc" >&6; }
5c706339 11400if test $ac_cv_header_stdc = yes; then
b9668ba4 11401
5c706339
AK
11402cat >>confdefs.h <<\_ACEOF
11403#define STDC_HEADERS 1
11404_ACEOF
b9668ba4 11405
5c706339 11406fi
b9668ba4 11407
b9668ba4 11408
5c706339
AK
11409for ac_header in stdlib.h
11410do
47dc80f6 11411as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5c706339 11412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47dc80f6
AK
11413 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11414$as_echo_n "checking for $ac_header... " >&6; }
5c706339 11415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47dc80f6 11416 $as_echo_n "(cached) " >&6
5c706339 11417fi
47dc80f6
AK
11418ac_res=`eval 'as_val=${'$as_ac_Header'}
11419 $as_echo "$as_val"'`
11420 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11421$as_echo "$ac_res" >&6; }
5c706339
AK
11422else
11423 # Is the header compilable?
47dc80f6
AK
11424{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11425$as_echo_n "checking $ac_header usability... " >&6; }
5c706339
AK
11426cat >conftest.$ac_ext <<_ACEOF
11427/* confdefs.h. */
11428_ACEOF
11429cat confdefs.h >>conftest.$ac_ext
11430cat >>conftest.$ac_ext <<_ACEOF
11431/* end confdefs.h. */
11432$ac_includes_default
11433#include <$ac_header>
11434_ACEOF
11435rm -f conftest.$ac_objext
11436if { (ac_try="$ac_compile"
11437case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440esac
47dc80f6
AK
11441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11442$as_echo "$ac_try_echo") >&5
5c706339
AK
11443 (eval "$ac_compile") 2>conftest.er1
11444 ac_status=$?
11445 grep -v '^ *+' conftest.er1 >conftest.err
11446 rm -f conftest.er1
11447 cat conftest.err >&5
47dc80f6 11448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
11449 (exit $ac_status); } && {
11450 test -z "$ac_c_werror_flag" ||
11451 test ! -s conftest.err
11452 } && test -s conftest.$ac_objext; then
11453 ac_header_compiler=yes
11454else
47dc80f6 11455 $as_echo "$as_me: failed program was:" >&5
5c706339 11456sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 11457
5c706339
AK
11458 ac_header_compiler=no
11459fi
b9668ba4 11460
5c706339 11461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47dc80f6
AK
11462{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11463$as_echo "$ac_header_compiler" >&6; }
b9668ba4 11464
5c706339 11465# Is the header present?
47dc80f6
AK
11466{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11467$as_echo_n "checking $ac_header presence... " >&6; }
5c706339
AK
11468cat >conftest.$ac_ext <<_ACEOF
11469/* confdefs.h. */
11470_ACEOF
11471cat confdefs.h >>conftest.$ac_ext
11472cat >>conftest.$ac_ext <<_ACEOF
11473/* end confdefs.h. */
11474#include <$ac_header>
11475_ACEOF
11476if { (ac_try="$ac_cpp conftest.$ac_ext"
11477case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11480esac
47dc80f6
AK
11481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11482$as_echo "$ac_try_echo") >&5
5c706339
AK
11483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
47dc80f6 11488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
11489 (exit $ac_status); } >/dev/null && {
11490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11491 test ! -s conftest.err
11492 }; then
11493 ac_header_preproc=yes
11494else
47dc80f6 11495 $as_echo "$as_me: failed program was:" >&5
5c706339 11496sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 11497
5c706339
AK
11498 ac_header_preproc=no
11499fi
b9668ba4 11500
5c706339 11501rm -f conftest.err conftest.$ac_ext
47dc80f6
AK
11502{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11503$as_echo "$ac_header_preproc" >&6; }
b9668ba4 11504
5c706339
AK
11505# So? What about this header?
11506case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11507 yes:no: )
47dc80f6
AK
11508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11509$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11511$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5c706339 11512 ac_header_preproc=yes
b9668ba4 11513 ;;
5c706339 11514 no:yes:* )
47dc80f6
AK
11515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11516$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11518$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11520$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11522$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11524$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11526$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5c706339
AK
11527 ( cat <<\_ASBOX
11528## ------------------------------------------------------------ ##
11529## Report this to http://pyyaml.org/newticket?component=libyaml ##
11530## ------------------------------------------------------------ ##
11531_ASBOX
11532 ) | sed "s/^/$as_me: WARNING: /" >&2
11533 ;;
11534esac
47dc80f6
AK
11535{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11536$as_echo_n "checking for $ac_header... " >&6; }
5c706339 11537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47dc80f6 11538 $as_echo_n "(cached) " >&6
5c706339
AK
11539else
11540 eval "$as_ac_Header=\$ac_header_preproc"
11541fi
47dc80f6
AK
11542ac_res=`eval 'as_val=${'$as_ac_Header'}
11543 $as_echo "$as_val"'`
11544 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11545$as_echo "$ac_res" >&6; }
b9668ba4 11546
5c706339 11547fi
47dc80f6
AK
11548as_val=`eval 'as_val=${'$as_ac_Header'}
11549 $as_echo "$as_val"'`
11550 if test "x$as_val" = x""yes; then
5c706339 11551 cat >>confdefs.h <<_ACEOF
47dc80f6 11552#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5c706339 11553_ACEOF
b9668ba4 11554
5c706339 11555fi
b9668ba4 11556
5c706339 11557done
b9668ba4 11558
b9668ba4 11559
5c706339 11560# Checks for typedefs, structures, and compiler characteristics.
47dc80f6
AK
11561{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11562$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5c706339 11563if test "${ac_cv_c_const+set}" = set; then
47dc80f6 11564 $as_echo_n "(cached) " >&6
5c706339
AK
11565else
11566 cat >conftest.$ac_ext <<_ACEOF
11567/* confdefs.h. */
11568_ACEOF
11569cat confdefs.h >>conftest.$ac_ext
11570cat >>conftest.$ac_ext <<_ACEOF
11571/* end confdefs.h. */
b9668ba4 11572
5c706339
AK
11573int
11574main ()
11575{
11576/* FIXME: Include the comments suggested by Paul. */
11577#ifndef __cplusplus
11578 /* Ultrix mips cc rejects this. */
11579 typedef int charset[2];
11580 const charset cs;
11581 /* SunOS 4.1.1 cc rejects this. */
11582 char const *const *pcpcc;
11583 char **ppc;
11584 /* NEC SVR4.0.2 mips cc rejects this. */
11585 struct point {int x, y;};
11586 static struct point const zero = {0,0};
11587 /* AIX XL C 1.02.0.0 rejects this.
11588 It does not let you subtract one const X* pointer from another in
11589 an arm of an if-expression whose if-part is not a constant
11590 expression */
11591 const char *g = "string";
11592 pcpcc = &g + (g ? g-g : 0);
11593 /* HPUX 7.0 cc rejects these. */
11594 ++pcpcc;
11595 ppc = (char**) pcpcc;
11596 pcpcc = (char const *const *) ppc;
11597 { /* SCO 3.2v4 cc rejects this. */
11598 char *t;
11599 char const *s = 0 ? (char *) 0 : (char const *) 0;
b9668ba4 11600
5c706339
AK
11601 *t++ = 0;
11602 if (s) return 0;
11603 }
11604 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11605 int x[] = {25, 17};
11606 const int *foo = &x[0];
11607 ++foo;
11608 }
11609 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11610 typedef const int *iptr;
11611 iptr p = 0;
11612 ++p;
11613 }
11614 { /* AIX XL C 1.02.0.0 rejects this saying
11615 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11616 struct s { int j; const int *ap[3]; };
11617 struct s *b; b->j = 5;
11618 }
11619 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11620 const int foo = 10;
11621 if (!foo) return 0;
11622 }
11623 return !cs[0] && !zero.x;
11624#endif
b9668ba4 11625
5c706339
AK
11626 ;
11627 return 0;
11628}
11629_ACEOF
11630rm -f conftest.$ac_objext
11631if { (ac_try="$ac_compile"
11632case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11635esac
47dc80f6
AK
11636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11637$as_echo "$ac_try_echo") >&5
5c706339
AK
11638 (eval "$ac_compile") 2>conftest.er1
11639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
47dc80f6 11643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
11644 (exit $ac_status); } && {
11645 test -z "$ac_c_werror_flag" ||
11646 test ! -s conftest.err
11647 } && test -s conftest.$ac_objext; then
11648 ac_cv_c_const=yes
11649else
47dc80f6 11650 $as_echo "$as_me: failed program was:" >&5
5c706339 11651sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 11652
5c706339
AK
11653 ac_cv_c_const=no
11654fi
b9668ba4 11655
5c706339
AK
11656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11657fi
47dc80f6
AK
11658{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11659$as_echo "$ac_cv_c_const" >&6; }
5c706339 11660if test $ac_cv_c_const = no; then
b9668ba4 11661
5c706339 11662cat >>confdefs.h <<\_ACEOF
47dc80f6 11663#define const /**/
5c706339 11664_ACEOF
b9668ba4 11665
5c706339 11666fi
b9668ba4 11667
47dc80f6
AK
11668{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
11669$as_echo_n "checking for size_t... " >&6; }
5c706339 11670if test "${ac_cv_type_size_t+set}" = set; then
47dc80f6 11671 $as_echo_n "(cached) " >&6
5c706339 11672else
47dc80f6
AK
11673 ac_cv_type_size_t=no
11674cat >conftest.$ac_ext <<_ACEOF
5c706339
AK
11675/* confdefs.h. */
11676_ACEOF
11677cat confdefs.h >>conftest.$ac_ext
11678cat >>conftest.$ac_ext <<_ACEOF
11679/* end confdefs.h. */
11680$ac_includes_default
5c706339
AK
11681int
11682main ()
11683{
47dc80f6
AK
11684if (sizeof (size_t))
11685 return 0;
11686 ;
5c706339 11687 return 0;
47dc80f6
AK
11688}
11689_ACEOF
11690rm -f conftest.$ac_objext
11691if { (ac_try="$ac_compile"
11692case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11695esac
11696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11697$as_echo "$ac_try_echo") >&5
11698 (eval "$ac_compile") 2>conftest.er1
11699 ac_status=$?
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
11703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } && {
11705 test -z "$ac_c_werror_flag" ||
11706 test ! -s conftest.err
11707 } && test -s conftest.$ac_objext; then
11708 cat >conftest.$ac_ext <<_ACEOF
11709/* confdefs.h. */
11710_ACEOF
11711cat confdefs.h >>conftest.$ac_ext
11712cat >>conftest.$ac_ext <<_ACEOF
11713/* end confdefs.h. */
11714$ac_includes_default
11715int
11716main ()
11717{
11718if (sizeof ((size_t)))
11719 return 0;
5c706339
AK
11720 ;
11721 return 0;
11722}
11723_ACEOF
11724rm -f conftest.$ac_objext
11725if { (ac_try="$ac_compile"
11726case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11729esac
47dc80f6
AK
11730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11731$as_echo "$ac_try_echo") >&5
5c706339
AK
11732 (eval "$ac_compile") 2>conftest.er1
11733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
47dc80f6 11737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
11738 (exit $ac_status); } && {
11739 test -z "$ac_c_werror_flag" ||
11740 test ! -s conftest.err
11741 } && test -s conftest.$ac_objext; then
47dc80f6
AK
11742 :
11743else
11744 $as_echo "$as_me: failed program was:" >&5
11745sed 's/^/| /' conftest.$ac_ext >&5
11746
11747 ac_cv_type_size_t=yes
11748fi
11749
11750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5c706339 11751else
47dc80f6 11752 $as_echo "$as_me: failed program was:" >&5
5c706339 11753sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 11754
47dc80f6 11755
5c706339 11756fi
b9668ba4 11757
5c706339
AK
11758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11759fi
47dc80f6
AK
11760{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11761$as_echo "$ac_cv_type_size_t" >&6; }
11762if test "x$ac_cv_type_size_t" = x""yes; then
5c706339
AK
11763 :
11764else
b9668ba4 11765
5c706339
AK
11766cat >>confdefs.h <<_ACEOF
11767#define size_t unsigned int
11768_ACEOF
b9668ba4 11769
5c706339 11770fi
b9668ba4 11771
b9668ba4 11772
5c706339
AK
11773# Define Makefiles.
11774ac_config_files="$ac_config_files include/Makefile src/Makefile Makefile tests/Makefile win32/Makefile"
b9668ba4 11775
b9668ba4 11776
5c706339
AK
11777# Generate the "configure" script.
11778cat >confcache <<\_ACEOF
11779# This file is a shell script that caches the results of configure
11780# tests run on this system so they can be shared between configure
11781# scripts and configure runs, see configure's option --config-cache.
11782# It is not useful on other systems. If it contains results you don't
11783# want to keep, you may remove or edit it.
11784#
11785# config.status only pays attention to the cache file if you give it
11786# the --recheck option to rerun configure.
11787#
11788# `ac_cv_env_foo' variables (set or unset) will be overridden when
11789# loading this file, other *unset* `ac_cv_foo' will be assigned the
11790# following values.
b9668ba4 11791
5c706339 11792_ACEOF
b9668ba4 11793
5c706339
AK
11794# The following way of writing the cache mishandles newlines in values,
11795# but we know of no workaround that is simple, portable, and efficient.
11796# So, we kill variables containing newlines.
11797# Ultrix sh set writes to stderr and can't be redirected directly,
11798# and sets the high bit in the cache file unless we assign to the vars.
11799(
11800 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11801 eval ac_val=\$$ac_var
11802 case $ac_val in #(
11803 *${as_nl}*)
11804 case $ac_var in #(
47dc80f6
AK
11805 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11806$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5c706339
AK
11807 esac
11808 case $ac_var in #(
11809 _ | IFS | as_nl) ;; #(
47dc80f6 11810 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5c706339
AK
11811 *) $as_unset $ac_var ;;
11812 esac ;;
11813 esac
11814 done
b9668ba4 11815
5c706339
AK
11816 (set) 2>&1 |
11817 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11818 *${as_nl}ac_space=\ *)
11819 # `set' does not quote correctly, so add quotes (double-quote
11820 # substitution turns \\\\ into \\, and sed turns \\ into \).
11821 sed -n \
11822 "s/'/'\\\\''/g;
11823 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11824 ;; #(
11825 *)
11826 # `set' quotes correctly as required by POSIX, so do not add quotes.
11827 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11828 ;;
11829 esac |
11830 sort
11831) |
11832 sed '
11833 /^ac_cv_env_/b end
11834 t clear
11835 :clear
11836 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11837 t end
11838 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11839 :end' >>confcache
11840if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11841 if test -w "$cache_file"; then
11842 test "x$cache_file" != "x/dev/null" &&
47dc80f6
AK
11843 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11844$as_echo "$as_me: updating cache $cache_file" >&6;}
5c706339
AK
11845 cat confcache >$cache_file
11846 else
47dc80f6
AK
11847 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11848$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5c706339
AK
11849 fi
11850fi
11851rm -f confcache
b9668ba4 11852
5c706339
AK
11853test "x$prefix" = xNONE && prefix=$ac_default_prefix
11854# Let make expand exec_prefix.
11855test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
b9668ba4 11856
5c706339 11857DEFS=-DHAVE_CONFIG_H
b9668ba4 11858
5c706339
AK
11859ac_libobjs=
11860ac_ltlibobjs=
11861for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11862 # 1. Remove the extension, and $U if already installed.
11863 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
47dc80f6 11864 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5c706339
AK
11865 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11866 # will be set to the directory where LIBOBJS objects are built.
11867 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11868 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11869done
11870LIBOBJS=$ac_libobjs
b9668ba4 11871
5c706339 11872LTLIBOBJS=$ac_ltlibobjs
b9668ba4 11873
b9668ba4 11874
5c706339 11875if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
47dc80f6 11876 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5c706339 11877Usually this means the macro was only invoked conditionally." >&5
47dc80f6 11878$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
5c706339
AK
11879Usually this means the macro was only invoked conditionally." >&2;}
11880 { (exit 1); exit 1; }; }
11881fi
11882if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
47dc80f6 11883 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5c706339 11884Usually this means the macro was only invoked conditionally." >&5
47dc80f6 11885$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5c706339
AK
11886Usually this means the macro was only invoked conditionally." >&2;}
11887 { (exit 1); exit 1; }; }
11888fi
11889if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
47dc80f6 11890 { { $as_echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
5c706339 11891Usually this means the macro was only invoked conditionally." >&5
47dc80f6 11892$as_echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
5c706339
AK
11893Usually this means the macro was only invoked conditionally." >&2;}
11894 { (exit 1); exit 1; }; }
11895fi
b9668ba4 11896
5c706339 11897: ${CONFIG_STATUS=./config.status}
47dc80f6 11898ac_write_fail=0
5c706339
AK
11899ac_clean_files_save=$ac_clean_files
11900ac_clean_files="$ac_clean_files $CONFIG_STATUS"
47dc80f6
AK
11901{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11902$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11903cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5c706339
AK
11904#! $SHELL
11905# Generated by $as_me.
11906# Run this file to recreate the current configuration.
11907# Compiler output produced by configure, useful for debugging
11908# configure, is in config.log if it exists.
b9668ba4 11909
5c706339
AK
11910debug=false
11911ac_cs_recheck=false
11912ac_cs_silent=false
11913SHELL=\${CONFIG_SHELL-$SHELL}
11914_ACEOF
b9668ba4 11915
47dc80f6 11916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339
AK
11917## --------------------- ##
11918## M4sh Initialization. ##
11919## --------------------- ##
b9668ba4 11920
5c706339
AK
11921# Be more Bourne compatible
11922DUALCASE=1; export DUALCASE # for MKS sh
11923if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11924 emulate sh
11925 NULLCMD=:
47dc80f6 11926 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5c706339
AK
11927 # is contrary to our usage. Disable this feature.
11928 alias -g '${1+"$@"}'='"$@"'
11929 setopt NO_GLOB_SUBST
11930else
11931 case `(set -o) 2>/dev/null` in
11932 *posix*) set -o posix ;;
11933esac
b9668ba4 11934
5c706339 11935fi
b9668ba4 11936
b9668ba4 11937
b9668ba4 11938
b9668ba4 11939
5c706339
AK
11940# PATH needs CR
11941# Avoid depending upon Character Ranges.
11942as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11943as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11944as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11945as_cr_digits='0123456789'
11946as_cr_alnum=$as_cr_Letters$as_cr_digits
b9668ba4 11947
47dc80f6
AK
11948as_nl='
11949'
11950export as_nl
11951# Printing a long string crashes Solaris 7 /usr/bin/printf.
11952as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11953as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11954as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11955if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11956 as_echo='printf %s\n'
11957 as_echo_n='printf %s'
11958else
11959 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11960 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11961 as_echo_n='/usr/ucb/echo -n'
5c706339 11962 else
47dc80f6
AK
11963 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11964 as_echo_n_body='eval
11965 arg=$1;
11966 case $arg in
11967 *"$as_nl"*)
11968 expr "X$arg" : "X\\(.*\\)$as_nl";
11969 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11970 esac;
11971 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11972 '
11973 export as_echo_n_body
11974 as_echo_n='sh -c $as_echo_n_body as_echo'
5c706339 11975 fi
47dc80f6
AK
11976 export as_echo_body
11977 as_echo='sh -c $as_echo_body as_echo'
11978fi
11979
11980# The user is always right.
11981if test "${PATH_SEPARATOR+set}" != set; then
11982 PATH_SEPARATOR=:
11983 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11984 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11985 PATH_SEPARATOR=';'
11986 }
5c706339 11987fi
b9668ba4 11988
5c706339
AK
11989# Support unset when possible.
11990if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11991 as_unset=unset
11992else
11993 as_unset=false
11994fi
b9668ba4 11995
b9668ba4 11996
5c706339
AK
11997# IFS
11998# We need space, tab and new line, in precisely that order. Quoting is
11999# there to prevent editors from complaining about space-tab.
12000# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12001# splitting by setting IFS to empty value.)
5c706339 12002IFS=" "" $as_nl"
b9668ba4 12003
5c706339
AK
12004# Find who we are. Look in the path if we contain no directory separator.
12005case $0 in
12006 *[\\/]* ) as_myself=$0 ;;
12007 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008for as_dir in $PATH
12009do
12010 IFS=$as_save_IFS
12011 test -z "$as_dir" && as_dir=.
12012 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12013done
12014IFS=$as_save_IFS
b9668ba4 12015
5c706339
AK
12016 ;;
12017esac
12018# We did not find ourselves, most probably we were run as `sh COMMAND'
12019# in which case we are not to be found in the path.
12020if test "x$as_myself" = x; then
12021 as_myself=$0
12022fi
12023if test ! -f "$as_myself"; then
47dc80f6 12024 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5c706339
AK
12025 { (exit 1); exit 1; }
12026fi
b9668ba4 12027
5c706339
AK
12028# Work around bugs in pre-3.0 UWIN ksh.
12029for as_var in ENV MAIL MAILPATH
12030do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12031done
12032PS1='$ '
12033PS2='> '
12034PS4='+ '
b9668ba4 12035
5c706339 12036# NLS nuisances.
47dc80f6
AK
12037LC_ALL=C
12038export LC_ALL
12039LANGUAGE=C
12040export LANGUAGE
b9668ba4 12041
5c706339
AK
12042# Required to use basename.
12043if expr a : '\(a\)' >/dev/null 2>&1 &&
12044 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12045 as_expr=expr
12046else
12047 as_expr=false
12048fi
b9668ba4 12049
5c706339
AK
12050if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12051 as_basename=basename
12052else
12053 as_basename=false
12054fi
b9668ba4 12055
b9668ba4 12056
5c706339
AK
12057# Name of the executable.
12058as_me=`$as_basename -- "$0" ||
12059$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12060 X"$0" : 'X\(//\)$' \| \
12061 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 12062$as_echo X/"$0" |
5c706339
AK
12063 sed '/^.*\/\([^/][^/]*\)\/*$/{
12064 s//\1/
12065 q
12066 }
12067 /^X\/\(\/\/\)$/{
12068 s//\1/
12069 q
12070 }
12071 /^X\/\(\/\).*/{
12072 s//\1/
12073 q
12074 }
12075 s/.*/./; q'`
b9668ba4 12076
5c706339
AK
12077# CDPATH.
12078$as_unset CDPATH
b9668ba4 12079
b9668ba4 12080
b9668ba4 12081
5c706339
AK
12082 as_lineno_1=$LINENO
12083 as_lineno_2=$LINENO
12084 test "x$as_lineno_1" != "x$as_lineno_2" &&
12085 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b9668ba4 12086
5c706339
AK
12087 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12088 # uniformly replaced by the line number. The first 'sed' inserts a
12089 # line-number line after each line using $LINENO; the second 'sed'
12090 # does the real work. The second script uses 'N' to pair each
12091 # line-number line with the line containing $LINENO, and appends
12092 # trailing '-' during substitution so that $LINENO is not a special
12093 # case at line end.
12094 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12095 # scripts with optimization help from Paolo Bonzini. Blame Lee
12096 # E. McMahon (1931-1989) for sed's syntax. :-)
12097 sed -n '
12098 p
12099 /[$]LINENO/=
12100 ' <$as_myself |
12101 sed '
12102 s/[$]LINENO.*/&-/
12103 t lineno
12104 b
12105 :lineno
12106 N
12107 :loop
12108 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12109 t loop
12110 s/-\n.*//
12111 ' >$as_me.lineno &&
12112 chmod +x "$as_me.lineno" ||
47dc80f6 12113 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5c706339 12114 { (exit 1); exit 1; }; }
b9668ba4 12115
5c706339
AK
12116 # Don't try to exec as it changes $[0], causing all sort of problems
12117 # (the dirname of $[0] is not the place where we might find the
12118 # original and so on. Autoconf is especially sensitive to this).
12119 . "./$as_me.lineno"
12120 # Exit status is that of the last command.
12121 exit
12122}
b9668ba4
AK
12123
12124
5c706339
AK
12125if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12126 as_dirname=dirname
b9668ba4 12127else
5c706339 12128 as_dirname=false
b9668ba4
AK
12129fi
12130
5c706339
AK
12131ECHO_C= ECHO_N= ECHO_T=
12132case `echo -n x` in
12133-n*)
12134 case `echo 'x\c'` in
12135 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12136 *) ECHO_C='\c';;
12137 esac;;
12138*)
12139 ECHO_N='-n';;
12140esac
5c706339
AK
12141if expr a : '\(a\)' >/dev/null 2>&1 &&
12142 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12143 as_expr=expr
12144else
12145 as_expr=false
12146fi
b9668ba4 12147
5c706339
AK
12148rm -f conf$$ conf$$.exe conf$$.file
12149if test -d conf$$.dir; then
12150 rm -f conf$$.dir/conf$$.file
12151else
12152 rm -f conf$$.dir
47dc80f6
AK
12153 mkdir conf$$.dir 2>/dev/null
12154fi
12155if (echo >conf$$.file) 2>/dev/null; then
12156 if ln -s conf$$.file conf$$ 2>/dev/null; then
12157 as_ln_s='ln -s'
12158 # ... but there are two gotchas:
12159 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12160 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12161 # In both cases, we have to default to `cp -p'.
12162 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12163 as_ln_s='cp -p'
12164 elif ln conf$$.file conf$$ 2>/dev/null; then
12165 as_ln_s=ln
12166 else
5c706339 12167 as_ln_s='cp -p'
47dc80f6 12168 fi
5c706339
AK
12169else
12170 as_ln_s='cp -p'
12171fi
12172rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12173rmdir conf$$.dir 2>/dev/null
b9668ba4 12174
5c706339
AK
12175if mkdir -p . 2>/dev/null; then
12176 as_mkdir_p=:
12177else
12178 test -d ./-p && rmdir ./-p
12179 as_mkdir_p=false
12180fi
b9668ba4 12181
5c706339
AK
12182if test -x / >/dev/null 2>&1; then
12183 as_test_x='test -x'
12184else
12185 if ls -dL / >/dev/null 2>&1; then
12186 as_ls_L_option=L
b9668ba4 12187 else
5c706339 12188 as_ls_L_option=
b9668ba4 12189 fi
5c706339
AK
12190 as_test_x='
12191 eval sh -c '\''
12192 if test -d "$1"; then
47dc80f6 12193 test -d "$1/.";
5c706339
AK
12194 else
12195 case $1 in
47dc80f6 12196 -*)set "./$1";;
5c706339
AK
12197 esac;
12198 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12199 ???[sx]*):;;*)false;;esac;fi
12200 '\'' sh
12201 '
b9668ba4 12202fi
5c706339 12203as_executable_p=$as_test_x
b9668ba4 12204
5c706339
AK
12205# Sed expression to map a string onto a valid CPP name.
12206as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b9668ba4 12207
5c706339
AK
12208# Sed expression to map a string onto a valid variable name.
12209as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b9668ba4 12210
b9668ba4 12211
5c706339 12212exec 6>&1
b9668ba4 12213
5c706339
AK
12214# Save the log message, to keep $[0] and so on meaningful, and to
12215# report actual input values of CONFIG_FILES etc. instead of their
12216# values after options handling.
12217ac_log="
47dc80f6
AK
12218This file was extended by yaml $as_me 0.1.3, which was
12219generated by GNU Autoconf 2.63. Invocation command line was
b9668ba4 12220
5c706339
AK
12221 CONFIG_FILES = $CONFIG_FILES
12222 CONFIG_HEADERS = $CONFIG_HEADERS
12223 CONFIG_LINKS = $CONFIG_LINKS
12224 CONFIG_COMMANDS = $CONFIG_COMMANDS
12225 $ $0 $@
b9668ba4 12226
5c706339
AK
12227on `(hostname || uname -n) 2>/dev/null | sed 1q`
12228"
b9668ba4 12229
5c706339 12230_ACEOF
b9668ba4 12231
47dc80f6
AK
12232case $ac_config_files in *"
12233"*) set x $ac_config_files; shift; ac_config_files=$*;;
12234esac
12235
12236case $ac_config_headers in *"
12237"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12238esac
12239
12240
12241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5c706339
AK
12242# Files that config.status was made for.
12243config_files="$ac_config_files"
12244config_headers="$ac_config_headers"
12245config_commands="$ac_config_commands"
b9668ba4 12246
5c706339 12247_ACEOF
b9668ba4 12248
47dc80f6 12249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339
AK
12250ac_cs_usage="\
12251\`$as_me' instantiates files from templates according to the
12252current configuration.
b9668ba4 12253
47dc80f6 12254Usage: $0 [OPTION]... [FILE]...
b9668ba4 12255
5c706339
AK
12256 -h, --help print this help, then exit
12257 -V, --version print version number and configuration settings, then exit
47dc80f6
AK
12258 -q, --quiet, --silent
12259 do not print progress messages
5c706339
AK
12260 -d, --debug don't remove temporary files
12261 --recheck update $as_me by reconfiguring in the same conditions
47dc80f6
AK
12262 --file=FILE[:TEMPLATE]
12263 instantiate the configuration file FILE
12264 --header=FILE[:TEMPLATE]
12265 instantiate the configuration header FILE
b9668ba4 12266
5c706339
AK
12267Configuration files:
12268$config_files
b9668ba4 12269
5c706339
AK
12270Configuration headers:
12271$config_headers
b9668ba4 12272
5c706339
AK
12273Configuration commands:
12274$config_commands
b9668ba4 12275
5c706339 12276Report bugs to <bug-autoconf@gnu.org>."
b9668ba4 12277
5c706339 12278_ACEOF
47dc80f6 12279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5c706339 12280ac_cs_version="\\
47dc80f6
AK
12281yaml config.status 0.1.3
12282configured by $0, generated by GNU Autoconf 2.63,
12283 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b9668ba4 12284
47dc80f6 12285Copyright (C) 2008 Free Software Foundation, Inc.
5c706339
AK
12286This config.status script is free software; the Free Software Foundation
12287gives unlimited permission to copy, distribute and modify it."
b9668ba4 12288
5c706339
AK
12289ac_pwd='$ac_pwd'
12290srcdir='$srcdir'
12291INSTALL='$INSTALL'
12292MKDIR_P='$MKDIR_P'
47dc80f6
AK
12293AWK='$AWK'
12294test -n "\$AWK" || AWK=awk
5c706339 12295_ACEOF
b9668ba4 12296
47dc80f6
AK
12297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12298# The default lists apply if the user does not specify any file.
5c706339
AK
12299ac_need_defaults=:
12300while test $# != 0
12301do
12302 case $1 in
12303 --*=*)
12304 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12305 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12306 ac_shift=:
12307 ;;
12308 *)
12309 ac_option=$1
12310 ac_optarg=$2
12311 ac_shift=shift
12312 ;;
12313 esac
b9668ba4 12314
5c706339
AK
12315 case $ac_option in
12316 # Handling of the options.
12317 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12318 ac_cs_recheck=: ;;
12319 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
47dc80f6 12320 $as_echo "$ac_cs_version"; exit ;;
5c706339
AK
12321 --debug | --debu | --deb | --de | --d | -d )
12322 debug=: ;;
12323 --file | --fil | --fi | --f )
12324 $ac_shift
47dc80f6
AK
12325 case $ac_optarg in
12326 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12327 esac
12328 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
5c706339
AK
12329 ac_need_defaults=false;;
12330 --header | --heade | --head | --hea )
12331 $ac_shift
47dc80f6
AK
12332 case $ac_optarg in
12333 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12334 esac
12335 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
5c706339
AK
12336 ac_need_defaults=false;;
12337 --he | --h)
12338 # Conflict between --help and --header
47dc80f6 12339 { $as_echo "$as_me: error: ambiguous option: $1
5c706339
AK
12340Try \`$0 --help' for more information." >&2
12341 { (exit 1); exit 1; }; };;
12342 --help | --hel | -h )
47dc80f6 12343 $as_echo "$ac_cs_usage"; exit ;;
5c706339
AK
12344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12345 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12346 ac_cs_silent=: ;;
b9668ba4 12347
5c706339 12348 # This is an error.
47dc80f6 12349 -*) { $as_echo "$as_me: error: unrecognized option: $1
5c706339
AK
12350Try \`$0 --help' for more information." >&2
12351 { (exit 1); exit 1; }; } ;;
b9668ba4 12352
5c706339
AK
12353 *) ac_config_targets="$ac_config_targets $1"
12354 ac_need_defaults=false ;;
b9668ba4 12355
5c706339
AK
12356 esac
12357 shift
b9668ba4 12358done
b9668ba4 12359
5c706339 12360ac_configure_extra_args=
b9668ba4 12361
5c706339
AK
12362if $ac_cs_silent; then
12363 exec 6>/dev/null
12364 ac_configure_extra_args="$ac_configure_extra_args --silent"
b9668ba4
AK
12365fi
12366
b9668ba4 12367_ACEOF
47dc80f6 12368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5c706339 12369if \$ac_cs_recheck; then
47dc80f6
AK
12370 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12371 shift
12372 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12373 CONFIG_SHELL='$SHELL'
5c706339 12374 export CONFIG_SHELL
47dc80f6 12375 exec "\$@"
5c706339 12376fi
b9668ba4 12377
5c706339 12378_ACEOF
47dc80f6 12379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339 12380exec 5>>config.log
b9668ba4 12381{
5c706339
AK
12382 echo
12383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12384## Running $as_me. ##
12385_ASBOX
47dc80f6 12386 $as_echo "$ac_log"
5c706339 12387} >&5
b9668ba4 12388
b9668ba4 12389_ACEOF
47dc80f6 12390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5c706339
AK
12391#
12392# INIT-COMMANDS
12393#
12394AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
b9668ba4 12395
b9668ba4 12396
5c706339
AK
12397# The HP-UX ksh and POSIX shell print the target directory to stdout
12398# if CDPATH is set.
12399(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
b9668ba4 12400
5c706339
AK
12401sed_quote_subst='$sed_quote_subst'
12402double_quote_subst='$double_quote_subst'
12403delay_variable_subst='$delay_variable_subst'
12404macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12405macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12406enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12407enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12408pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12409enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12410host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12411host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12412host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12413build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12414build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12415build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12416SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12417Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12418GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12419EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12420FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12421LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12422NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12423LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12424max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12425ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12426exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12427lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12428lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12429lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12430reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12431reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47dc80f6 12432OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
5c706339
AK
12433deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12434file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12435AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12436AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12437STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12438RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12439old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12440old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12441old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12442CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12443CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12444compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12445GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12446lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12447lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12448lt_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"`'
12449lt_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"`'
12450objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12451SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12452ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12453MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12454lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12455lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12456lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12457lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12458lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12459need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12460DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12461NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12462LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12463OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12464OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12465libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12466shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12467extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12468archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12469enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12470export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12471whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12472compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12473old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12474old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12475archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12476archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12477module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12478module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12479with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12480allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12481no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12482hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12483hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12484hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12485hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12486hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12487hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12488hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12489hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12490inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12491link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12492fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12493always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12494export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12495exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12496include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12497prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12498file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12499variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12500need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12501need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12502version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12503runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12504shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12505shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12506libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12507library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12508soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12509postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12510postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12511finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12512finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12513hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12514sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12515sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12516hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12517enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12518enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12519enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12520old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12521striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12522
12523LTCC='$LTCC'
12524LTCFLAGS='$LTCFLAGS'
12525compiler='$compiler_DEFAULT'
12526
12527# Quote evaled strings.
12528for var in SED \
12529GREP \
12530EGREP \
12531FGREP \
12532LD \
12533NM \
12534LN_S \
12535lt_SP2NL \
12536lt_NL2SP \
12537reload_flag \
47dc80f6 12538OBJDUMP \
5c706339
AK
12539deplibs_check_method \
12540file_magic_cmd \
12541AR \
12542AR_FLAGS \
12543STRIP \
12544RANLIB \
12545CC \
12546CFLAGS \
12547compiler \
12548lt_cv_sys_global_symbol_pipe \
12549lt_cv_sys_global_symbol_to_cdecl \
12550lt_cv_sys_global_symbol_to_c_name_address \
12551lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12552SHELL \
12553ECHO \
12554lt_prog_compiler_no_builtin_flag \
12555lt_prog_compiler_wl \
12556lt_prog_compiler_pic \
12557lt_prog_compiler_static \
12558lt_cv_prog_compiler_c_o \
12559need_locks \
12560DSYMUTIL \
12561NMEDIT \
12562LIPO \
12563OTOOL \
12564OTOOL64 \
12565shrext_cmds \
12566export_dynamic_flag_spec \
12567whole_archive_flag_spec \
12568compiler_needs_object \
12569with_gnu_ld \
12570allow_undefined_flag \
12571no_undefined_flag \
12572hardcode_libdir_flag_spec \
12573hardcode_libdir_flag_spec_ld \
12574hardcode_libdir_separator \
12575fix_srcfile_path \
12576exclude_expsyms \
12577include_expsyms \
12578file_list_spec \
12579variables_saved_for_relink \
12580libname_spec \
12581library_names_spec \
12582soname_spec \
12583finish_eval \
12584old_striplib \
12585striplib; do
12586 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12587 *[\\\\\\\`\\"\\\$]*)
12588 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12589 ;;
12590 *)
12591 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12592 ;;
12593 esac
12594done
12595
12596# Double-quote double-evaled strings.
12597for var in reload_cmds \
12598old_postinstall_cmds \
12599old_postuninstall_cmds \
12600old_archive_cmds \
12601extract_expsyms_cmds \
12602old_archive_from_new_cmds \
12603old_archive_from_expsyms_cmds \
12604archive_cmds \
12605archive_expsym_cmds \
12606module_cmds \
12607module_expsym_cmds \
12608export_symbols_cmds \
12609prelink_cmds \
12610postinstall_cmds \
12611postuninstall_cmds \
12612finish_cmds \
12613sys_lib_search_path_spec \
12614sys_lib_dlsearch_path_spec; do
12615 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12616 *[\\\\\\\`\\"\\\$]*)
12617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12618 ;;
12619 *)
12620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12621 ;;
12622 esac
12623done
12624
12625# Fix-up fallback echo if it was mangled by the above quoting rules.
12626case \$lt_ECHO in
12627*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12628 ;;
12629esac
b9668ba4 12630
5c706339
AK
12631ac_aux_dir='$ac_aux_dir'
12632xsi_shell='$xsi_shell'
12633lt_shell_append='$lt_shell_append'
b9668ba4 12634
5c706339
AK
12635# See if we are running on zsh, and set the options which allow our
12636# commands through without removal of \ escapes INIT.
12637if test -n "\${ZSH_VERSION+set}" ; then
12638 setopt NO_GLOB_SUBST
b9668ba4
AK
12639fi
12640
5c706339
AK
12641
12642 PACKAGE='$PACKAGE'
12643 VERSION='$VERSION'
12644 TIMESTAMP='$TIMESTAMP'
12645 RM='$RM'
12646 ofile='$ofile'
12647
12648
12649
b9668ba4
AK
12650
12651_ACEOF
b9668ba4 12652
47dc80f6 12653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339
AK
12654
12655# Handling of arguments.
12656for ac_config_target in $ac_config_targets
12657do
12658 case $ac_config_target in
12659 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12660 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12661 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12662 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12663 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12664 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12665 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12666 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
12667
47dc80f6
AK
12668 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12669$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5c706339
AK
12670 { (exit 1); exit 1; }; };;
12671 esac
12672done
12673
12674
12675# If the user did not use the arguments to specify the items to instantiate,
12676# then the envvar interface is used. Set only those that are not.
12677# We use the long form for the default assignment because of an extremely
12678# bizarre bug on SunOS 4.1.3.
12679if $ac_need_defaults; then
12680 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12681 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12682 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b9668ba4
AK
12683fi
12684
5c706339
AK
12685# Have a temporary directory for convenience. Make it in the build tree
12686# simply because there is no reason against having it here, and in addition,
12687# creating and moving files from /tmp can sometimes cause problems.
12688# Hook for its removal unless debugging.
12689# Note that there is a small window in which the directory will not be cleaned:
12690# after its creation but before its name has been assigned to `$tmp'.
12691$debug ||
12692{
12693 tmp=
12694 trap 'exit_status=$?
12695 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12696' 0
12697 trap '{ (exit 1); exit 1; }' 1 2 13 15
12698}
12699# Create a (secure) tmp directory for tmp files.
b9668ba4 12700
b9668ba4 12701{
5c706339
AK
12702 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12703 test -n "$tmp" && test -d "$tmp"
12704} ||
12705{
12706 tmp=./conf$$-$RANDOM
12707 (umask 077 && mkdir "$tmp")
12708} ||
12709{
47dc80f6 12710 $as_echo "$as_me: cannot create a temporary directory in ." >&2
5c706339 12711 { (exit 1); exit 1; }
b9668ba4 12712}
5c706339 12713
47dc80f6
AK
12714# Set up the scripts for CONFIG_FILES section.
12715# No need to generate them if there are no CONFIG_FILES.
12716# This happens for instance with `./config.status config.h'.
5c706339
AK
12717if test -n "$CONFIG_FILES"; then
12718
5c706339 12719
47dc80f6
AK
12720ac_cr='\r'
12721ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12722if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12723 ac_cs_awk_cr='\\r'
12724else
12725 ac_cs_awk_cr=$ac_cr
b9668ba4
AK
12726fi
12727
47dc80f6 12728echo 'BEGIN {' >"$tmp/subs1.awk" &&
5c706339 12729_ACEOF
b9668ba4 12730
b9668ba4 12731
47dc80f6
AK
12732{
12733 echo "cat >conf$$subs.awk <<_ACEOF" &&
12734 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12735 echo "_ACEOF"
12736} >conf$$subs.sh ||
12737 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12738$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12739 { (exit 1); exit 1; }; }
12740ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5c706339
AK
12741ac_delim='%!_!# '
12742for ac_last_try in false false false false false :; do
47dc80f6
AK
12743 . ./conf$$subs.sh ||
12744 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12745$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12746 { (exit 1); exit 1; }; }
b9668ba4 12747
47dc80f6
AK
12748 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12749 if test $ac_delim_n = $ac_delim_num; then
5c706339
AK
12750 break
12751 elif $ac_last_try; then
47dc80f6
AK
12752 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12753$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5c706339
AK
12754 { (exit 1); exit 1; }; }
12755 else
12756 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12757 fi
12758done
47dc80f6 12759rm -f conf$$subs.sh
b9668ba4 12760
47dc80f6
AK
12761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12762cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12763_ACEOF
12764sed -n '
12765h
12766s/^/S["/; s/!.*/"]=/
12767p
12768g
12769s/^[^!]*!//
12770:repl
12771t repl
12772s/'"$ac_delim"'$//
12773t delim
12774:nl
12775h
12776s/\(.\{148\}\).*/\1/
12777t more1
12778s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12779p
12780n
12781b repl
12782:more1
12783s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12784p
12785g
12786s/.\{148\}//
12787t nl
12788:delim
12789h
12790s/\(.\{148\}\).*/\1/
12791t more2
12792s/["\\]/\\&/g; s/^/"/; s/$/"/
12793p
12794b
12795:more2
12796s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12797p
12798g
12799s/.\{148\}//
12800t delim
12801' <conf$$subs.awk | sed '
12802/^[^""]/{
12803 N
12804 s/\n//
12805}
12806' >>$CONFIG_STATUS || ac_write_fail=1
12807rm -f conf$$subs.awk
12808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12809_ACAWK
12810cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12811 for (key in S) S_is_set[key] = 1
12812 FS = "\a"
12813
12814}
12815{
12816 line = $ 0
12817 nfields = split(line, field, "@")
12818 substed = 0
12819 len = length(field[1])
12820 for (i = 2; i < nfields; i++) {
12821 key = field[i]
12822 keylen = length(key)
12823 if (S_is_set[key]) {
12824 value = S[key]
12825 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12826 len += length(value) + length(field[++i])
12827 substed = 1
12828 } else
12829 len += 1 + keylen
12830 }
5c706339 12831
47dc80f6
AK
12832 print line
12833}
12834
12835_ACAWK
b9668ba4 12836_ACEOF
47dc80f6
AK
12837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12838if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12839 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12840else
12841 cat
12842fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12843 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12844$as_echo "$as_me: error: could not setup config files machinery" >&2;}
12845 { (exit 1); exit 1; }; }
b9668ba4 12846_ACEOF
b9668ba4 12847
5c706339
AK
12848# VPATH may cause trouble with some makes, so we remove $(srcdir),
12849# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12850# trailing colons and then remove the whole line if VPATH becomes empty
12851# (actually we leave an empty line to preserve line numbers).
12852if test "x$srcdir" = x.; then
12853 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12854s/:*\$(srcdir):*/:/
12855s/:*\${srcdir}:*/:/
12856s/:*@srcdir@:*/:/
12857s/^\([^=]*=[ ]*\):*/\1/
12858s/:*$//
12859s/^[^=]*=[ ]*$//
12860}'
b9668ba4
AK
12861fi
12862
47dc80f6 12863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339
AK
12864fi # test -n "$CONFIG_FILES"
12865
47dc80f6
AK
12866# Set up the scripts for CONFIG_HEADERS section.
12867# No need to generate them if there are no CONFIG_HEADERS.
12868# This happens for instance with `./config.status Makefile'.
12869if test -n "$CONFIG_HEADERS"; then
12870cat >"$tmp/defines.awk" <<\_ACAWK ||
12871BEGIN {
12872_ACEOF
12873
12874# Transform confdefs.h into an awk script `defines.awk', embedded as
12875# here-document in config.status, that substitutes the proper values into
12876# config.h.in to produce config.h.
12877
12878# Create a delimiter string that does not exist in confdefs.h, to ease
12879# handling of long lines.
12880ac_delim='%!_!# '
12881for ac_last_try in false false :; do
12882 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12883 if test -z "$ac_t"; then
12884 break
12885 elif $ac_last_try; then
12886 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12887$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12888 { (exit 1); exit 1; }; }
12889 else
12890 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12891 fi
12892done
12893
12894# For the awk script, D is an array of macro values keyed by name,
12895# likewise P contains macro parameters if any. Preserve backslash
12896# newline sequences.
5c706339 12897
47dc80f6
AK
12898ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12899sed -n '
12900s/.\{148\}/&'"$ac_delim"'/g
12901t rset
12902:rset
12903s/^[ ]*#[ ]*define[ ][ ]*/ /
12904t def
12905d
12906:def
12907s/\\$//
12908t bsnl
12909s/["\\]/\\&/g
12910s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12911D["\1"]=" \3"/p
12912s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12913d
12914:bsnl
12915s/["\\]/\\&/g
12916s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12917D["\1"]=" \3\\\\\\n"\\/p
12918t cont
12919s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12920t cont
12921d
12922:cont
12923n
12924s/.\{148\}/&'"$ac_delim"'/g
12925t clear
12926:clear
12927s/\\$//
12928t bsnlc
12929s/["\\]/\\&/g; s/^/"/; s/$/"/p
12930d
12931:bsnlc
12932s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12933b cont
12934' <confdefs.h | sed '
12935s/'"$ac_delim"'/"\\\
12936"/g' >>$CONFIG_STATUS || ac_write_fail=1
12937
12938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12939 for (key in D) D_is_set[key] = 1
12940 FS = "\a"
12941}
12942/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12943 line = \$ 0
12944 split(line, arg, " ")
12945 if (arg[1] == "#") {
12946 defundef = arg[2]
12947 mac1 = arg[3]
12948 } else {
12949 defundef = substr(arg[1], 2)
12950 mac1 = arg[2]
12951 }
12952 split(mac1, mac2, "(") #)
12953 macro = mac2[1]
12954 prefix = substr(line, 1, index(line, defundef) - 1)
12955 if (D_is_set[macro]) {
12956 # Preserve the white space surrounding the "#".
12957 print prefix "define", macro P[macro] D[macro]
12958 next
12959 } else {
12960 # Replace #undef with comments. This is necessary, for example,
12961 # in the case of _POSIX_SOURCE, which is predefined and required
12962 # on some systems where configure will not decide to define it.
12963 if (defundef == "undef") {
12964 print "/*", prefix defundef, macro, "*/"
12965 next
12966 }
12967 }
12968}
12969{ print }
12970_ACAWK
12971_ACEOF
12972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12973 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12974$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12975 { (exit 1); exit 1; }; }
12976fi # test -n "$CONFIG_HEADERS"
12977
12978
12979eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12980shift
12981for ac_tag
5c706339
AK
12982do
12983 case $ac_tag in
12984 :[FHLC]) ac_mode=$ac_tag; continue;;
12985 esac
12986 case $ac_mode$ac_tag in
12987 :[FHL]*:*);;
47dc80f6
AK
12988 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
12989$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
5c706339
AK
12990 { (exit 1); exit 1; }; };;
12991 :[FH]-) ac_tag=-:-;;
12992 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12993 esac
12994 ac_save_IFS=$IFS
12995 IFS=:
12996 set x $ac_tag
12997 IFS=$ac_save_IFS
12998 shift
12999 ac_file=$1
13000 shift
13001
13002 case $ac_mode in
13003 :L) ac_source=$1;;
13004 :[FH])
13005 ac_file_inputs=
13006 for ac_f
13007 do
13008 case $ac_f in
13009 -) ac_f="$tmp/stdin";;
13010 *) # Look for the file first in the build tree, then in the source tree
13011 # (if the path is not absolute). The absolute path cannot be DOS-style,
13012 # because $ac_f cannot contain `:'.
13013 test -f "$ac_f" ||
13014 case $ac_f in
13015 [\\/$]*) false;;
13016 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13017 esac ||
47dc80f6
AK
13018 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13019$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5c706339
AK
13020 { (exit 1); exit 1; }; };;
13021 esac
47dc80f6
AK
13022 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13023 ac_file_inputs="$ac_file_inputs '$ac_f'"
5c706339
AK
13024 done
13025
13026 # Let's still pretend it is `configure' which instantiates (i.e., don't
13027 # use $as_me), people would be surprised to read:
13028 # /* config.h. Generated by config.status. */
47dc80f6
AK
13029 configure_input='Generated from '`
13030 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13031 `' by configure.'
5c706339
AK
13032 if test x"$ac_file" != x-; then
13033 configure_input="$ac_file. $configure_input"
47dc80f6
AK
13034 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13035$as_echo "$as_me: creating $ac_file" >&6;}
5c706339 13036 fi
47dc80f6
AK
13037 # Neutralize special characters interpreted by sed in replacement strings.
13038 case $configure_input in #(
13039 *\&* | *\|* | *\\* )
13040 ac_sed_conf_input=`$as_echo "$configure_input" |
13041 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13042 *) ac_sed_conf_input=$configure_input;;
13043 esac
5c706339
AK
13044
13045 case $ac_tag in
47dc80f6
AK
13046 *:-:* | *:-) cat >"$tmp/stdin" \
13047 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13048$as_echo "$as_me: error: could not create $ac_file" >&2;}
13049 { (exit 1); exit 1; }; } ;;
5c706339
AK
13050 esac
13051 ;;
13052 esac
13053
13054 ac_dir=`$as_dirname -- "$ac_file" ||
13055$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13056 X"$ac_file" : 'X\(//\)[^/]' \| \
13057 X"$ac_file" : 'X\(//\)$' \| \
13058 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 13059$as_echo X"$ac_file" |
5c706339
AK
13060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13061 s//\1/
13062 q
13063 }
13064 /^X\(\/\/\)[^/].*/{
13065 s//\1/
13066 q
13067 }
13068 /^X\(\/\/\)$/{
13069 s//\1/
13070 q
13071 }
13072 /^X\(\/\).*/{
13073 s//\1/
13074 q
13075 }
13076 s/.*/./; q'`
13077 { as_dir="$ac_dir"
13078 case $as_dir in #(
13079 -*) as_dir=./$as_dir;;
13080 esac
13081 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13082 as_dirs=
13083 while :; do
13084 case $as_dir in #(
47dc80f6 13085 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5c706339
AK
13086 *) as_qdir=$as_dir;;
13087 esac
13088 as_dirs="'$as_qdir' $as_dirs"
13089 as_dir=`$as_dirname -- "$as_dir" ||
13090$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13091 X"$as_dir" : 'X\(//\)[^/]' \| \
13092 X"$as_dir" : 'X\(//\)$' \| \
13093 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 13094$as_echo X"$as_dir" |
5c706339
AK
13095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13096 s//\1/
13097 q
13098 }
13099 /^X\(\/\/\)[^/].*/{
13100 s//\1/
13101 q
13102 }
13103 /^X\(\/\/\)$/{
13104 s//\1/
13105 q
13106 }
13107 /^X\(\/\).*/{
13108 s//\1/
13109 q
13110 }
13111 s/.*/./; q'`
13112 test -d "$as_dir" && break
13113 done
13114 test -z "$as_dirs" || eval "mkdir $as_dirs"
47dc80f6
AK
13115 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13116$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
5c706339
AK
13117 { (exit 1); exit 1; }; }; }
13118 ac_builddir=.
b9668ba4 13119
5c706339
AK
13120case "$ac_dir" in
13121.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13122*)
47dc80f6 13123 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5c706339 13124 # A ".." for each directory in $ac_dir_suffix.
47dc80f6 13125 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5c706339
AK
13126 case $ac_top_builddir_sub in
13127 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13128 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13129 esac ;;
b9668ba4 13130esac
5c706339
AK
13131ac_abs_top_builddir=$ac_pwd
13132ac_abs_builddir=$ac_pwd$ac_dir_suffix
13133# for backward compatibility:
13134ac_top_builddir=$ac_top_build_prefix
b9668ba4 13135
5c706339
AK
13136case $srcdir in
13137 .) # We are building in place.
13138 ac_srcdir=.
13139 ac_top_srcdir=$ac_top_builddir_sub
13140 ac_abs_top_srcdir=$ac_pwd ;;
13141 [\\/]* | ?:[\\/]* ) # Absolute name.
13142 ac_srcdir=$srcdir$ac_dir_suffix;
13143 ac_top_srcdir=$srcdir
13144 ac_abs_top_srcdir=$srcdir ;;
13145 *) # Relative name.
13146 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13147 ac_top_srcdir=$ac_top_build_prefix$srcdir
13148 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b9668ba4 13149esac
5c706339 13150ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b9668ba4 13151
b9668ba4 13152
5c706339
AK
13153 case $ac_mode in
13154 :F)
13155 #
13156 # CONFIG_FILE
13157 #
b9668ba4 13158
5c706339
AK
13159 case $INSTALL in
13160 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13161 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13162 esac
13163 ac_MKDIR_P=$MKDIR_P
13164 case $MKDIR_P in
13165 [\\/$]* | ?:[\\/]* ) ;;
13166 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13167 esac
13168_ACEOF
b9668ba4 13169
47dc80f6 13170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339
AK
13171# If the template does not know about datarootdir, expand it.
13172# FIXME: This hack should be removed a few years after 2.60.
13173ac_datarootdir_hack=; ac_datarootdir_seen=
b9668ba4 13174
47dc80f6
AK
13175ac_sed_dataroot='
13176/datarootdir/ {
5c706339
AK
13177 p
13178 q
13179}
13180/@datadir@/p
13181/@docdir@/p
13182/@infodir@/p
13183/@localedir@/p
13184/@mandir@/p
47dc80f6
AK
13185'
13186case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5c706339
AK
13187*datarootdir*) ac_datarootdir_seen=yes;;
13188*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47dc80f6
AK
13189 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13190$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5c706339 13191_ACEOF
47dc80f6 13192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5c706339
AK
13193 ac_datarootdir_hack='
13194 s&@datadir@&$datadir&g
13195 s&@docdir@&$docdir&g
13196 s&@infodir@&$infodir&g
13197 s&@localedir@&$localedir&g
13198 s&@mandir@&$mandir&g
13199 s&\\\${datarootdir}&$datarootdir&g' ;;
13200esac
b9668ba4 13201_ACEOF
b9668ba4 13202
5c706339
AK
13203# Neutralize VPATH when `$srcdir' = `.'.
13204# Shell code in configure.ac might set extrasub.
13205# FIXME: do we really want to maintain this feature?
47dc80f6
AK
13206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13207ac_sed_extra="$ac_vpsub
5c706339
AK
13208$extrasub
13209_ACEOF
47dc80f6 13210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339
AK
13211:t
13212/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47dc80f6 13213s|@configure_input@|$ac_sed_conf_input|;t t
5c706339 13214s&@top_builddir@&$ac_top_builddir_sub&;t t
47dc80f6 13215s&@top_build_prefix@&$ac_top_build_prefix&;t t
5c706339
AK
13216s&@srcdir@&$ac_srcdir&;t t
13217s&@abs_srcdir@&$ac_abs_srcdir&;t t
13218s&@top_srcdir@&$ac_top_srcdir&;t t
13219s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13220s&@builddir@&$ac_builddir&;t t
13221s&@abs_builddir@&$ac_abs_builddir&;t t
13222s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13223s&@INSTALL@&$ac_INSTALL&;t t
13224s&@MKDIR_P@&$ac_MKDIR_P&;t t
13225$ac_datarootdir_hack
47dc80f6
AK
13226"
13227eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13228 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13229$as_echo "$as_me: error: could not create $ac_file" >&2;}
13230 { (exit 1); exit 1; }; }
b9668ba4 13231
5c706339
AK
13232test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13233 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13234 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
47dc80f6 13235 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5c706339 13236which seems to be undefined. Please make sure it is defined." >&5
47dc80f6 13237$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5c706339 13238which seems to be undefined. Please make sure it is defined." >&2;}
b9668ba4 13239
5c706339
AK
13240 rm -f "$tmp/stdin"
13241 case $ac_file in
47dc80f6
AK
13242 -) cat "$tmp/out" && rm -f "$tmp/out";;
13243 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13244 esac \
13245 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13246$as_echo "$as_me: error: could not create $ac_file" >&2;}
13247 { (exit 1); exit 1; }; }
5c706339
AK
13248 ;;
13249 :H)
13250 #
13251 # CONFIG_HEADER
13252 #
5c706339 13253 if test x"$ac_file" != x-; then
47dc80f6
AK
13254 {
13255 $as_echo "/* $configure_input */" \
13256 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13257 } >"$tmp/config.h" \
13258 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13259$as_echo "$as_me: error: could not create $ac_file" >&2;}
13260 { (exit 1); exit 1; }; }
13261 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13262 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13263$as_echo "$as_me: $ac_file is unchanged" >&6;}
5c706339 13264 else
47dc80f6
AK
13265 rm -f "$ac_file"
13266 mv "$tmp/config.h" "$ac_file" \
13267 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13268$as_echo "$as_me: error: could not create $ac_file" >&2;}
13269 { (exit 1); exit 1; }; }
5c706339
AK
13270 fi
13271 else
47dc80f6
AK
13272 $as_echo "/* $configure_input */" \
13273 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13274 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13275$as_echo "$as_me: error: could not create -" >&2;}
13276 { (exit 1); exit 1; }; }
5c706339 13277 fi
47dc80f6
AK
13278# Compute "$ac_file"'s index in $config_headers.
13279_am_arg="$ac_file"
5c706339
AK
13280_am_stamp_count=1
13281for _am_header in $config_headers :; do
13282 case $_am_header in
13283 $_am_arg | $_am_arg:* )
13284 break ;;
13285 * )
13286 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13287 esac
13288done
13289echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13290$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13291 X"$_am_arg" : 'X\(//\)[^/]' \| \
13292 X"$_am_arg" : 'X\(//\)$' \| \
13293 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 13294$as_echo X"$_am_arg" |
5c706339
AK
13295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13296 s//\1/
13297 q
13298 }
13299 /^X\(\/\/\)[^/].*/{
13300 s//\1/
13301 q
13302 }
13303 /^X\(\/\/\)$/{
13304 s//\1/
13305 q
13306 }
13307 /^X\(\/\).*/{
13308 s//\1/
13309 q
13310 }
13311 s/.*/./; q'`/stamp-h$_am_stamp_count
13312 ;;
b9668ba4 13313
47dc80f6
AK
13314 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13315$as_echo "$as_me: executing $ac_file commands" >&6;}
5c706339
AK
13316 ;;
13317 esac
b9668ba4 13318
b9668ba4 13319
5c706339 13320 case $ac_file$ac_mode in
47dc80f6
AK
13321 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13322 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13323 # are listed without --file. Let's play safe and only enable the eval
13324 # if we detect the quoting.
13325 case $CONFIG_FILES in
13326 *\'*) eval set x "$CONFIG_FILES" ;;
13327 *) set x $CONFIG_FILES ;;
13328 esac
13329 shift
13330 for mf
13331 do
13332 # Strip MF so we end up with the name of the file.
13333 mf=`echo "$mf" | sed -e 's/:.*$//'`
13334 # Check whether this is an Automake generated Makefile or not.
13335 # We used to match only the files named `Makefile.in', but
13336 # some people rename them; so instead we look at the file content.
13337 # Grep'ing the first line is not enough: some people post-process
13338 # each Makefile.in and add a new line on top of each file to say so.
13339 # Grep'ing the whole file is not good either: AIX grep has a line
13340 # limit of 2048, but all sed's we know have understand at least 4000.
13341 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13342 dirpart=`$as_dirname -- "$mf" ||
5c706339
AK
13343$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13344 X"$mf" : 'X\(//\)[^/]' \| \
13345 X"$mf" : 'X\(//\)$' \| \
13346 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 13347$as_echo X"$mf" |
5c706339
AK
13348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13349 s//\1/
13350 q
13351 }
13352 /^X\(\/\/\)[^/].*/{
13353 s//\1/
13354 q
13355 }
13356 /^X\(\/\/\)$/{
13357 s//\1/
13358 q
13359 }
13360 /^X\(\/\).*/{
13361 s//\1/
13362 q
13363 }
13364 s/.*/./; q'`
47dc80f6
AK
13365 else
13366 continue
13367 fi
13368 # Extract the definition of DEPDIR, am__include, and am__quote
13369 # from the Makefile without running `make'.
13370 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13371 test -z "$DEPDIR" && continue
13372 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13373 test -z "am__include" && continue
13374 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13375 # When using ansi2knr, U may be empty or an underscore; expand it
13376 U=`sed -n 's/^U = //p' < "$mf"`
13377 # Find all dependency output files, they are included files with
13378 # $(DEPDIR) in their names. We invoke sed twice because it is the
13379 # simplest approach to changing $(DEPDIR) to its actual value in the
13380 # expansion.
13381 for file in `sed -n "
13382 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13383 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13384 # Make sure the directory exists.
13385 test -f "$dirpart/$file" && continue
13386 fdir=`$as_dirname -- "$file" ||
5c706339
AK
13387$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13388 X"$file" : 'X\(//\)[^/]' \| \
13389 X"$file" : 'X\(//\)$' \| \
13390 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 13391$as_echo X"$file" |
5c706339
AK
13392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13393 s//\1/
13394 q
13395 }
13396 /^X\(\/\/\)[^/].*/{
13397 s//\1/
13398 q
13399 }
13400 /^X\(\/\/\)$/{
13401 s//\1/
13402 q
13403 }
13404 /^X\(\/\).*/{
13405 s//\1/
13406 q
13407 }
13408 s/.*/./; q'`
47dc80f6 13409 { as_dir=$dirpart/$fdir
5c706339
AK
13410 case $as_dir in #(
13411 -*) as_dir=./$as_dir;;
13412 esac
13413 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13414 as_dirs=
13415 while :; do
13416 case $as_dir in #(
47dc80f6 13417 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5c706339
AK
13418 *) as_qdir=$as_dir;;
13419 esac
13420 as_dirs="'$as_qdir' $as_dirs"
13421 as_dir=`$as_dirname -- "$as_dir" ||
13422$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13423 X"$as_dir" : 'X\(//\)[^/]' \| \
13424 X"$as_dir" : 'X\(//\)$' \| \
13425 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 13426$as_echo X"$as_dir" |
5c706339
AK
13427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13428 s//\1/
13429 q
13430 }
13431 /^X\(\/\/\)[^/].*/{
13432 s//\1/
13433 q
13434 }
13435 /^X\(\/\/\)$/{
13436 s//\1/
13437 q
13438 }
13439 /^X\(\/\).*/{
13440 s//\1/
13441 q
13442 }
13443 s/.*/./; q'`
13444 test -d "$as_dir" && break
13445 done
13446 test -z "$as_dirs" || eval "mkdir $as_dirs"
47dc80f6
AK
13447 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13448$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
5c706339 13449 { (exit 1); exit 1; }; }; }
47dc80f6
AK
13450 # echo "creating $dirpart/$file"
13451 echo '# dummy' > "$dirpart/$file"
13452 done
5c706339 13453 done
47dc80f6 13454}
5c706339
AK
13455 ;;
13456 "libtool":C)
b9668ba4 13457
5c706339
AK
13458 # See if we are running on zsh, and set the options which allow our
13459 # commands through without removal of \ escapes.
13460 if test -n "${ZSH_VERSION+set}" ; then
13461 setopt NO_GLOB_SUBST
13462 fi
b9668ba4 13463
5c706339
AK
13464 cfgfile="${ofile}T"
13465 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13466 $RM "$cfgfile"
b9668ba4 13467
5c706339
AK
13468 cat <<_LT_EOF >> "$cfgfile"
13469#! $SHELL
b9668ba4 13470
5c706339
AK
13471# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13472# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13473# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13474# NOTE: Changes made to this file will be lost: look at ltmain.sh.
b9668ba4 13475#
5c706339
AK
13476# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13477# 2006, 2007, 2008 Free Software Foundation, Inc.
13478# Written by Gordon Matzigkeit, 1996
b9668ba4 13479#
5c706339
AK
13480# This file is part of GNU Libtool.
13481#
13482# GNU Libtool is free software; you can redistribute it and/or
13483# modify it under the terms of the GNU General Public License as
13484# published by the Free Software Foundation; either version 2 of
13485# the License, or (at your option) any later version.
13486#
13487# As a special exception to the GNU General Public License,
13488# if you distribute this file as part of a program or library that
13489# is built using GNU Libtool, you may include this file under the
13490# same distribution terms that you use for the rest of that program.
13491#
13492# GNU Libtool is distributed in the hope that it will be useful,
13493# but WITHOUT ANY WARRANTY; without even the implied warranty of
13494# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13495# GNU General Public License for more details.
13496#
13497# You should have received a copy of the GNU General Public License
13498# along with GNU Libtool; see the file COPYING. If not, a copy
13499# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13500# obtained by writing to the Free Software Foundation, Inc.,
13501# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
b9668ba4 13502
b9668ba4 13503
5c706339
AK
13504# The names of the tagged configurations supported by this script.
13505available_tags=""
b9668ba4 13506
5c706339 13507# ### BEGIN LIBTOOL CONFIG
b9668ba4 13508
5c706339
AK
13509# Which release of libtool.m4 was used?
13510macro_version=$macro_version
13511macro_revision=$macro_revision
b9668ba4 13512
5c706339
AK
13513# Whether or not to build shared libraries.
13514build_libtool_libs=$enable_shared
b9668ba4 13515
5c706339
AK
13516# Whether or not to build static libraries.
13517build_old_libs=$enable_static
b9668ba4 13518
5c706339
AK
13519# What type of objects to build.
13520pic_mode=$pic_mode
b9668ba4 13521
5c706339
AK
13522# Whether or not to optimize for fast installation.
13523fast_install=$enable_fast_install
b9668ba4 13524
5c706339
AK
13525# The host system.
13526host_alias=$host_alias
13527host=$host
13528host_os=$host_os
b9668ba4 13529
5c706339
AK
13530# The build system.
13531build_alias=$build_alias
13532build=$build
13533build_os=$build_os
b9668ba4 13534
5c706339
AK
13535# A sed program that does not truncate output.
13536SED=$lt_SED
b9668ba4 13537
5c706339
AK
13538# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13539Xsed="\$SED -e 1s/^X//"
b9668ba4 13540
5c706339
AK
13541# A grep program that handles long lines.
13542GREP=$lt_GREP
13543
13544# An ERE matcher.
13545EGREP=$lt_EGREP
b9668ba4 13546
5c706339
AK
13547# A literal string matcher.
13548FGREP=$lt_FGREP
b9668ba4 13549
5c706339
AK
13550# A BSD- or MS-compatible name lister.
13551NM=$lt_NM
b9668ba4 13552
5c706339
AK
13553# Whether we need soft or hard links.
13554LN_S=$lt_LN_S
b9668ba4 13555
5c706339
AK
13556# What is the maximum length of a command?
13557max_cmd_len=$max_cmd_len
b9668ba4 13558
5c706339
AK
13559# Object file suffix (normally "o").
13560objext=$ac_objext
b9668ba4 13561
5c706339
AK
13562# Executable file suffix (normally "").
13563exeext=$exeext
b9668ba4 13564
5c706339
AK
13565# whether the shell understands "unset".
13566lt_unset=$lt_unset
b9668ba4 13567
5c706339
AK
13568# turn spaces into newlines.
13569SP2NL=$lt_lt_SP2NL
b9668ba4 13570
5c706339
AK
13571# turn newlines into spaces.
13572NL2SP=$lt_lt_NL2SP
b9668ba4 13573
5c706339
AK
13574# How to create reloadable object files.
13575reload_flag=$lt_reload_flag
13576reload_cmds=$lt_reload_cmds
b9668ba4 13577
47dc80f6
AK
13578# An object symbol dumper.
13579OBJDUMP=$lt_OBJDUMP
13580
5c706339
AK
13581# Method to check whether dependent libraries are shared objects.
13582deplibs_check_method=$lt_deplibs_check_method
b9668ba4 13583
5c706339
AK
13584# Command to use when deplibs_check_method == "file_magic".
13585file_magic_cmd=$lt_file_magic_cmd
b9668ba4 13586
5c706339
AK
13587# The archiver.
13588AR=$lt_AR
13589AR_FLAGS=$lt_AR_FLAGS
b9668ba4 13590
5c706339
AK
13591# A symbol stripping program.
13592STRIP=$lt_STRIP
b9668ba4 13593
5c706339
AK
13594# Commands used to install an old-style archive.
13595RANLIB=$lt_RANLIB
13596old_postinstall_cmds=$lt_old_postinstall_cmds
13597old_postuninstall_cmds=$lt_old_postuninstall_cmds
b9668ba4 13598
5c706339
AK
13599# A C compiler.
13600LTCC=$lt_CC
b9668ba4 13601
5c706339
AK
13602# LTCC compiler flags.
13603LTCFLAGS=$lt_CFLAGS
b9668ba4 13604
5c706339
AK
13605# Take the output of nm and produce a listing of raw symbols and C names.
13606global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
b9668ba4 13607
5c706339
AK
13608# Transform the output of nm in a proper C declaration.
13609global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
b9668ba4 13610
5c706339
AK
13611# Transform the output of nm in a C name address pair.
13612global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
b9668ba4 13613
5c706339
AK
13614# Transform the output of nm in a C name address pair when lib prefix is needed.
13615global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
b9668ba4 13616
5c706339
AK
13617# The name of the directory that contains temporary libtool files.
13618objdir=$objdir
b9668ba4 13619
5c706339
AK
13620# Shell to use when invoking shell scripts.
13621SHELL=$lt_SHELL
b9668ba4 13622
5c706339
AK
13623# An echo program that does not interpret backslashes.
13624ECHO=$lt_ECHO
b9668ba4 13625
5c706339
AK
13626# Used to examine libraries when file_magic_cmd begins with "file".
13627MAGIC_CMD=$MAGIC_CMD
b9668ba4 13628
5c706339
AK
13629# Must we lock files when doing compilation?
13630need_locks=$lt_need_locks
b9668ba4 13631
5c706339
AK
13632# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13633DSYMUTIL=$lt_DSYMUTIL
b9668ba4 13634
5c706339
AK
13635# Tool to change global to local symbols on Mac OS X.
13636NMEDIT=$lt_NMEDIT
b9668ba4 13637
5c706339
AK
13638# Tool to manipulate fat objects and archives on Mac OS X.
13639LIPO=$lt_LIPO
b9668ba4 13640
5c706339
AK
13641# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13642OTOOL=$lt_OTOOL
13643
13644# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13645OTOOL64=$lt_OTOOL64
13646
13647# Old archive suffix (normally "a").
13648libext=$libext
13649
13650# Shared library suffix (normally ".so").
13651shrext_cmds=$lt_shrext_cmds
b9668ba4 13652
5c706339
AK
13653# The commands to extract the exported symbol list from a shared archive.
13654extract_expsyms_cmds=$lt_extract_expsyms_cmds
b9668ba4 13655
5c706339
AK
13656# Variables whose values should be saved in libtool wrapper scripts and
13657# restored at link time.
13658variables_saved_for_relink=$lt_variables_saved_for_relink
b9668ba4 13659
5c706339
AK
13660# Do we need the "lib" prefix for modules?
13661need_lib_prefix=$need_lib_prefix
b9668ba4 13662
5c706339
AK
13663# Do we need a version for libraries?
13664need_version=$need_version
b9668ba4 13665
5c706339
AK
13666# Library versioning type.
13667version_type=$version_type
b9668ba4 13668
5c706339
AK
13669# Shared library runtime path variable.
13670runpath_var=$runpath_var
b9668ba4 13671
5c706339
AK
13672# Shared library path variable.
13673shlibpath_var=$shlibpath_var
b9668ba4 13674
5c706339
AK
13675# Is shlibpath searched before the hard-coded library search path?
13676shlibpath_overrides_runpath=$shlibpath_overrides_runpath
b9668ba4 13677
5c706339
AK
13678# Format of library name prefix.
13679libname_spec=$lt_libname_spec
b9668ba4 13680
5c706339
AK
13681# List of archive names. First name is the real one, the rest are links.
13682# The last name is the one that the linker finds with -lNAME
13683library_names_spec=$lt_library_names_spec
b9668ba4 13684
5c706339
AK
13685# The coded name of the library, if different from the real name.
13686soname_spec=$lt_soname_spec
b9668ba4 13687
5c706339
AK
13688# Command to use after installation of a shared archive.
13689postinstall_cmds=$lt_postinstall_cmds
b9668ba4 13690
5c706339
AK
13691# Command to use after uninstallation of a shared archive.
13692postuninstall_cmds=$lt_postuninstall_cmds
b9668ba4 13693
5c706339
AK
13694# Commands used to finish a libtool library installation in a directory.
13695finish_cmds=$lt_finish_cmds
b9668ba4 13696
5c706339
AK
13697# As "finish_cmds", except a single script fragment to be evaled but
13698# not shown.
13699finish_eval=$lt_finish_eval
b9668ba4 13700
5c706339
AK
13701# Whether we should hardcode library paths into libraries.
13702hardcode_into_libs=$hardcode_into_libs
b9668ba4 13703
5c706339
AK
13704# Compile-time system search path for libraries.
13705sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
b9668ba4 13706
5c706339
AK
13707# Run-time system search path for libraries.
13708sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
b9668ba4 13709
5c706339
AK
13710# Whether dlopen is supported.
13711dlopen_support=$enable_dlopen
b9668ba4 13712
5c706339
AK
13713# Whether dlopen of programs is supported.
13714dlopen_self=$enable_dlopen_self
b9668ba4 13715
5c706339
AK
13716# Whether dlopen of statically linked programs is supported.
13717dlopen_self_static=$enable_dlopen_self_static
b9668ba4 13718
5c706339
AK
13719# Commands to strip libraries.
13720old_striplib=$lt_old_striplib
13721striplib=$lt_striplib
b9668ba4 13722
b9668ba4 13723
5c706339
AK
13724# The linker used to build libraries.
13725LD=$lt_LD
b9668ba4 13726
5c706339
AK
13727# Commands used to build an old-style archive.
13728old_archive_cmds=$lt_old_archive_cmds
b9668ba4 13729
5c706339
AK
13730# A language specific compiler.
13731CC=$lt_compiler
b9668ba4 13732
5c706339
AK
13733# Is the compiler the GNU compiler?
13734with_gcc=$GCC
b9668ba4 13735
5c706339
AK
13736# Compiler flag to turn off builtin functions.
13737no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
b9668ba4 13738
5c706339
AK
13739# How to pass a linker flag through the compiler.
13740wl=$lt_lt_prog_compiler_wl
b9668ba4 13741
5c706339
AK
13742# Additional compiler flags for building library objects.
13743pic_flag=$lt_lt_prog_compiler_pic
b9668ba4 13744
5c706339
AK
13745# Compiler flag to prevent dynamic linking.
13746link_static_flag=$lt_lt_prog_compiler_static
b9668ba4 13747
5c706339
AK
13748# Does compiler simultaneously support -c and -o options?
13749compiler_c_o=$lt_lt_cv_prog_compiler_c_o
b9668ba4 13750
5c706339
AK
13751# Whether or not to add -lc for building shared libraries.
13752build_libtool_need_lc=$archive_cmds_need_lc
b9668ba4 13753
5c706339
AK
13754# Whether or not to disallow shared libs when runtime libs are static.
13755allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
b9668ba4 13756
5c706339
AK
13757# Compiler flag to allow reflexive dlopens.
13758export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
b9668ba4 13759
5c706339
AK
13760# Compiler flag to generate shared objects directly from archives.
13761whole_archive_flag_spec=$lt_whole_archive_flag_spec
b9668ba4 13762
5c706339
AK
13763# Whether the compiler copes with passing no objects directly.
13764compiler_needs_object=$lt_compiler_needs_object
b9668ba4 13765
5c706339
AK
13766# Create an old-style archive from a shared archive.
13767old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
b9668ba4 13768
5c706339
AK
13769# Create a temporary old-style archive to link instead of a shared archive.
13770old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
b9668ba4 13771
5c706339
AK
13772# Commands used to build a shared archive.
13773archive_cmds=$lt_archive_cmds
13774archive_expsym_cmds=$lt_archive_expsym_cmds
b9668ba4 13775
5c706339
AK
13776# Commands used to build a loadable module if different from building
13777# a shared archive.
13778module_cmds=$lt_module_cmds
13779module_expsym_cmds=$lt_module_expsym_cmds
b9668ba4 13780
5c706339
AK
13781# Whether we are building with GNU ld or not.
13782with_gnu_ld=$lt_with_gnu_ld
b9668ba4 13783
5c706339
AK
13784# Flag that allows shared libraries with undefined symbols to be built.
13785allow_undefined_flag=$lt_allow_undefined_flag
b9668ba4 13786
5c706339
AK
13787# Flag that enforces no undefined symbols.
13788no_undefined_flag=$lt_no_undefined_flag
b9668ba4 13789
5c706339
AK
13790# Flag to hardcode \$libdir into a binary during linking.
13791# This must work even if \$libdir does not exist
13792hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
b9668ba4 13793
5c706339
AK
13794# If ld is used when linking, flag to hardcode \$libdir into a binary
13795# during linking. This must work even if \$libdir does not exist.
13796hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
b9668ba4 13797
5c706339
AK
13798# Whether we need a single "-rpath" flag with a separated argument.
13799hardcode_libdir_separator=$lt_hardcode_libdir_separator
b9668ba4 13800
5c706339
AK
13801# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13802# DIR into the resulting binary.
13803hardcode_direct=$hardcode_direct
b9668ba4 13804
5c706339
AK
13805# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13806# DIR into the resulting binary and the resulting library dependency is
13807# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13808# library is relocated.
13809hardcode_direct_absolute=$hardcode_direct_absolute
b9668ba4 13810
5c706339
AK
13811# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13812# into the resulting binary.
13813hardcode_minus_L=$hardcode_minus_L
b9668ba4 13814
5c706339
AK
13815# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13816# into the resulting binary.
13817hardcode_shlibpath_var=$hardcode_shlibpath_var
b9668ba4 13818
5c706339
AK
13819# Set to "yes" if building a shared library automatically hardcodes DIR
13820# into the library and all subsequent libraries and executables linked
13821# against it.
13822hardcode_automatic=$hardcode_automatic
b9668ba4 13823
5c706339
AK
13824# Set to yes if linker adds runtime paths of dependent libraries
13825# to runtime path list.
13826inherit_rpath=$inherit_rpath
b9668ba4 13827
5c706339
AK
13828# Whether libtool must link a program against all its dependency libraries.
13829link_all_deplibs=$link_all_deplibs
b9668ba4 13830
5c706339
AK
13831# Fix the shell variable \$srcfile for the compiler.
13832fix_srcfile_path=$lt_fix_srcfile_path
b9668ba4 13833
5c706339
AK
13834# Set to "yes" if exported symbols are required.
13835always_export_symbols=$always_export_symbols
b9668ba4 13836
5c706339
AK
13837# The commands to list exported symbols.
13838export_symbols_cmds=$lt_export_symbols_cmds
b9668ba4 13839
5c706339
AK
13840# Symbols that should not be listed in the preloaded symbols.
13841exclude_expsyms=$lt_exclude_expsyms
b9668ba4 13842
5c706339
AK
13843# Symbols that must always be exported.
13844include_expsyms=$lt_include_expsyms
b9668ba4 13845
5c706339
AK
13846# Commands necessary for linking programs (against libraries) with templates.
13847prelink_cmds=$lt_prelink_cmds
13848
13849# Specify filename containing input files.
13850file_list_spec=$lt_file_list_spec
13851
13852# How to hardcode a shared library path into an executable.
13853hardcode_action=$hardcode_action
13854
13855# ### END LIBTOOL CONFIG
13856
13857_LT_EOF
13858
13859 case $host_os in
13860 aix3*)
13861 cat <<\_LT_EOF >> "$cfgfile"
13862# AIX sometimes has problems with the GCC collect2 program. For some
13863# reason, if we set the COLLECT_NAMES environment variable, the problems
13864# vanish in a puff of smoke.
13865if test "X${COLLECT_NAMES+set}" != Xset; then
13866 COLLECT_NAMES=
13867 export COLLECT_NAMES
13868fi
13869_LT_EOF
b9668ba4
AK
13870 ;;
13871 esac
13872
b9668ba4 13873
5c706339 13874ltmain="$ac_aux_dir/ltmain.sh"
b9668ba4 13875
b9668ba4 13876
5c706339
AK
13877 # We use sed instead of cat because bash on DJGPP gets confused if
13878 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13879 # text mode, it properly converts lines to CR/LF. This bash problem
13880 # is reportedly fixed, but why not run on old versions too?
13881 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13882 || (rm -f "$cfgfile"; exit 1)
b9668ba4 13883
5c706339
AK
13884 case $xsi_shell in
13885 yes)
13886 cat << \_LT_EOF >> "$cfgfile"
b9668ba4 13887
5c706339
AK
13888# func_dirname file append nondir_replacement
13889# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13890# otherwise set result to NONDIR_REPLACEMENT.
13891func_dirname ()
13892{
13893 case ${1} in
13894 */*) func_dirname_result="${1%/*}${2}" ;;
13895 * ) func_dirname_result="${3}" ;;
b9668ba4 13896 esac
b9668ba4 13897}
b9668ba4 13898
5c706339
AK
13899# func_basename file
13900func_basename ()
13901{
13902 func_basename_result="${1##*/}"
13903}
b9668ba4 13904
5c706339
AK
13905# func_dirname_and_basename file append nondir_replacement
13906# perform func_basename and func_dirname in a single function
13907# call:
13908# dirname: Compute the dirname of FILE. If nonempty,
13909# add APPEND to the result, otherwise set result
13910# to NONDIR_REPLACEMENT.
13911# value returned in "$func_dirname_result"
13912# basename: Compute filename of FILE.
13913# value retuned in "$func_basename_result"
13914# Implementation must be kept synchronized with func_dirname
13915# and func_basename. For efficiency, we do not delegate to
13916# those functions but instead duplicate the functionality here.
13917func_dirname_and_basename ()
13918{
13919 case ${1} in
13920 */*) func_dirname_result="${1%/*}${2}" ;;
13921 * ) func_dirname_result="${3}" ;;
b9668ba4 13922 esac
5c706339
AK
13923 func_basename_result="${1##*/}"
13924}
b9668ba4 13925
5c706339
AK
13926# func_stripname prefix suffix name
13927# strip PREFIX and SUFFIX off of NAME.
13928# PREFIX and SUFFIX must not contain globbing or regex special
13929# characters, hashes, percent signs, but SUFFIX may contain a leading
13930# dot (in which case that matches only a dot).
13931func_stripname ()
13932{
13933 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13934 # positional parameters, so assign one to ordinary parameter first.
13935 func_stripname_result=${3}
13936 func_stripname_result=${func_stripname_result#"${1}"}
13937 func_stripname_result=${func_stripname_result%"${2}"}
13938}
b9668ba4 13939
5c706339
AK
13940# func_opt_split
13941func_opt_split ()
13942{
13943 func_opt_split_opt=${1%%=*}
13944 func_opt_split_arg=${1#*=}
13945}
13946
13947# func_lo2o object
13948func_lo2o ()
13949{
13950 case ${1} in
13951 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13952 *) func_lo2o_result=${1} ;;
13953 esac
13954}
b9668ba4 13955
5c706339
AK
13956# func_xform libobj-or-source
13957func_xform ()
13958{
13959 func_xform_result=${1%.*}.lo
13960}
b9668ba4 13961
5c706339
AK
13962# func_arith arithmetic-term...
13963func_arith ()
13964{
13965 func_arith_result=$(( $* ))
13966}
b9668ba4 13967
5c706339
AK
13968# func_len string
13969# STRING may not start with a hyphen.
13970func_len ()
13971{
13972 func_len_result=${#1}
13973}
b9668ba4 13974
5c706339
AK
13975_LT_EOF
13976 ;;
13977 *) # Bourne compatible functions.
13978 cat << \_LT_EOF >> "$cfgfile"
b9668ba4 13979
5c706339
AK
13980# func_dirname file append nondir_replacement
13981# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13982# otherwise set result to NONDIR_REPLACEMENT.
13983func_dirname ()
13984{
13985 # Extract subdirectory from the argument.
13986 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13987 if test "X$func_dirname_result" = "X${1}"; then
13988 func_dirname_result="${3}"
b9668ba4 13989 else
5c706339 13990 func_dirname_result="$func_dirname_result${2}"
b9668ba4 13991 fi
5c706339 13992}
b9668ba4 13993
5c706339
AK
13994# func_basename file
13995func_basename ()
13996{
13997 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13998}
13999
14000
14001# func_stripname prefix suffix name
14002# strip PREFIX and SUFFIX off of NAME.
14003# PREFIX and SUFFIX must not contain globbing or regex special
14004# characters, hashes, percent signs, but SUFFIX may contain a leading
14005# dot (in which case that matches only a dot).
14006# func_strip_suffix prefix name
14007func_stripname ()
14008{
14009 case ${2} in
14010 .*) func_stripname_result=`$ECHO "X${3}" \
14011 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14012 *) func_stripname_result=`$ECHO "X${3}" \
14013 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
b9668ba4 14014 esac
5c706339 14015}
b9668ba4 14016
5c706339
AK
14017# sed scripts:
14018my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14019my_sed_long_arg='1s/^-[^=]*=//'
b9668ba4 14020
5c706339
AK
14021# func_opt_split
14022func_opt_split ()
14023{
14024 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14025 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14026}
14027
14028# func_lo2o object
14029func_lo2o ()
14030{
14031 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14032}
14033
14034# func_xform libobj-or-source
14035func_xform ()
14036{
14037 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14038}
14039
14040# func_arith arithmetic-term...
14041func_arith ()
14042{
14043 func_arith_result=`expr "$@"`
14044}
14045
14046# func_len string
14047# STRING may not start with a hyphen.
14048func_len ()
14049{
14050 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14051}
14052
14053_LT_EOF
14054esac
14055
14056case $lt_shell_append in
14057 yes)
14058 cat << \_LT_EOF >> "$cfgfile"
14059
14060# func_append var value
14061# Append VALUE to the end of shell variable VAR.
14062func_append ()
14063{
14064 eval "$1+=\$2"
14065}
14066_LT_EOF
14067 ;;
14068 *)
14069 cat << \_LT_EOF >> "$cfgfile"
14070
14071# func_append var value
14072# Append VALUE to the end of shell variable VAR.
14073func_append ()
14074{
14075 eval "$1=\$$1\$2"
14076}
14077
14078_LT_EOF
14079 ;;
b9668ba4 14080 esac
5c706339
AK
14081
14082
14083 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14084 || (rm -f "$cfgfile"; exit 1)
14085
14086 mv -f "$cfgfile" "$ofile" ||
14087 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14088 chmod +x "$ofile"
14089
b9668ba4
AK
14090 ;;
14091
14092 esac
14093done # for ac_tag
14094
14095
14096{ (exit 0); exit 0; }
14097_ACEOF
14098chmod +x $CONFIG_STATUS
14099ac_clean_files=$ac_clean_files_save
14100
47dc80f6
AK
14101test $ac_write_fail = 0 ||
14102 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14103$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14104 { (exit 1); exit 1; }; }
14105
b9668ba4
AK
14106
14107# configure is writing to config.log, and then calls config.status.
14108# config.status does its own redirection, appending to config.log.
14109# Unfortunately, on DOS this fails, as config.log is still kept open
14110# by configure, so config.status won't be able to write to it; its
14111# output is simply discarded. So we exec the FD to /dev/null,
14112# effectively closing config.log, so it can be properly (re)opened and
14113# appended to by config.status. When coming back to configure, we
14114# need to make the FD available again.
14115if test "$no_create" != yes; then
14116 ac_cs_success=:
14117 ac_config_status_args=
14118 test "$silent" = yes &&
14119 ac_config_status_args="$ac_config_status_args --quiet"
14120 exec 5>/dev/null
14121 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14122 exec 5>>config.log
14123 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14124 # would make configure fail if this is the last instruction.
14125 $ac_cs_success || { (exit 1); exit 1; }
14126fi
47dc80f6
AK
14127if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14128 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14129$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14130fi
b9668ba4 14131
This page took 4.253638 seconds and 5 git commands to generate.