]> git.saurik.com Git - wxWidgets.git/blame - src/png/configure
bracket 10.5 only code
[wxWidgets.git] / src / png / configure
CommitLineData
970f6abe
VZ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.62 for libpng 1.2.34.
4#
5# Report bugs to <png-mng-implement@lists.sourceforge.net>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
0272a10d 14
970f6abe
VZ
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=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
0272a10d 28
970f6abe
VZ
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
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
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 }
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.)
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
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
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 ||
156$as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
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
182 if test $as_have_required = yes && (eval ":
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=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
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=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
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
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+"$@"}
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.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485}
486
487
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
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
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
530 as_ln_s='cp -p'
531 fi
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
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
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
580case X$lt_ECHO in
581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585esac
586
587ECHO=${lt_ECHO-echo}
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 :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
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
605 cat <<_LT_EOF
606$*
607_LT_EOF
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
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
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713fi
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.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
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='libpng'
747PACKAGE_TARNAME='libpng'
748PACKAGE_VERSION='1.2.34'
749PACKAGE_STRING='libpng 1.2.34'
750PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
751
752ac_unique_file="pngget.c"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
756#ifdef HAVE_SYS_TYPES_H
757# include <sys/types.h>
758#endif
759#ifdef HAVE_SYS_STAT_H
760# include <sys/stat.h>
761#endif
762#ifdef STDC_HEADERS
763# include <stdlib.h>
764# include <stddef.h>
765#else
766# ifdef HAVE_STDLIB_H
767# include <stdlib.h>
768# endif
769#endif
770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772# include <memory.h>
773# endif
774# include <string.h>
775#endif
776#ifdef HAVE_STRINGS_H
777# include <strings.h>
778#endif
779#ifdef HAVE_INTTYPES_H
780# include <inttypes.h>
781#endif
782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
786# include <unistd.h>
787#endif"
788
789ac_subst_vars='SHELL
790PATH_SEPARATOR
791PACKAGE_NAME
792PACKAGE_TARNAME
793PACKAGE_VERSION
794PACKAGE_STRING
795PACKAGE_BUGREPORT
796exec_prefix
797prefix
798program_transform_name
799bindir
800sbindir
801libexecdir
802datarootdir
803datadir
804sysconfdir
805sharedstatedir
806localstatedir
807includedir
808oldincludedir
809docdir
810infodir
811htmldir
812dvidir
813pdfdir
814psdir
815libdir
816localedir
817mandir
818DEFS
819ECHO_C
820ECHO_N
821ECHO_T
822LIBS
823build_alias
824host_alias
825target_alias
826INSTALL_PROGRAM
827INSTALL_SCRIPT
828INSTALL_DATA
829am__isrc
830CYGPATH_W
831PACKAGE
832VERSION
833ACLOCAL
834AUTOCONF
835AUTOMAKE
836AUTOHEADER
837MAKEINFO
838install_sh
839STRIP
840INSTALL_STRIP_PROGRAM
841MKDIR_P
842mkdir_p
843AWK
844SET_MAKE
845am__leading_dot
846AMTAR
847am__tar
848am__untar
849MAINTAINER_MODE_TRUE
850MAINTAINER_MODE_FALSE
851MAINT
852CC
853CFLAGS
854LDFLAGS
855CPPFLAGS
856ac_ct_CC
857EXEEXT
858OBJEXT
859DEPDIR
860am__include
861am__quote
862AMDEP_TRUE
863AMDEP_FALSE
864AMDEPBACKSLASH
865CCDEPMODE
866am__fastdepCC_TRUE
867am__fastdepCC_FALSE
868build
869build_cpu
870build_vendor
871build_os
872host
873host_cpu
874host_vendor
875host_os
876SED
877GREP
878EGREP
879FGREP
880LD
881CPP
882AS
883DLLTOOL
884OBJDUMP
885LN_S
886LIBTOOL
887DUMPBIN
888ac_ct_DUMPBIN
889NM
890AR
891RANLIB
892lt_ECHO
893DSYMUTIL
894NMEDIT
895LIPO
896POW_LIB
897LIBOBJS
898LIBPNG_DEFINES
899LIBPNG_NO_MMX
900HAVE_LD_VERSION_SCRIPT_TRUE
901HAVE_LD_VERSION_SCRIPT_FALSE
902SYMBOL_PREFIX
903PNGLIB_VERSION
904PNGLIB_MAJOR
905PNGLIB_MINOR
906PNGLIB_RELEASE
907pkgconfigdir
908binconfigs
909compatlib
910LTLIBOBJS'
911ac_subst_files=''
912ac_user_opts='
913enable_option_checking
914enable_maintainer_mode
915enable_dependency_tracking
916with_gnu_ld
917enable_shared
918enable_static
919with_pic
920enable_fast_install
921enable_libtool_lock
922with_pkgconfigdir
923with_binconfigs
924with_libpng_compat
925'
926 ac_precious_vars='build_alias
927host_alias
928target_alias
929CC
930CFLAGS
931LDFLAGS
932LIBS
933CPPFLAGS
934CPP'
935
936
937# Initialize some variables set by options.
938ac_init_help=
939ac_init_version=false
940ac_unrecognized_opts=
941ac_unrecognized_sep=
942# The variables have the same names as the options, with
943# dashes changed to underlines.
944cache_file=/dev/null
945exec_prefix=NONE
946no_create=
947no_recursion=
948prefix=NONE
949program_prefix=NONE
950program_suffix=NONE
951program_transform_name=s,x,x,
952silent=
953site=
954srcdir=
955verbose=
956x_includes=NONE
957x_libraries=NONE
958
959# Installation directory options.
960# These are left unexpanded so users can "make install exec_prefix=/foo"
961# and all the variables that are supposed to be based on exec_prefix
962# by default will actually change.
963# Use braces instead of parens because sh, perl, etc. also accept them.
964# (The list follows the same order as the GNU Coding Standards.)
965bindir='${exec_prefix}/bin'
966sbindir='${exec_prefix}/sbin'
967libexecdir='${exec_prefix}/libexec'
968datarootdir='${prefix}/share'
969datadir='${datarootdir}'
970sysconfdir='${prefix}/etc'
971sharedstatedir='${prefix}/com'
972localstatedir='${prefix}/var'
973includedir='${prefix}/include'
974oldincludedir='/usr/include'
975docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976infodir='${datarootdir}/info'
977htmldir='${docdir}'
978dvidir='${docdir}'
979pdfdir='${docdir}'
980psdir='${docdir}'
981libdir='${exec_prefix}/lib'
982localedir='${datarootdir}/locale'
983mandir='${datarootdir}/man'
984
985ac_prev=
986ac_dashdash=
987for ac_option
988do
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\$ac_option
992 ac_prev=
993 continue
994 fi
995
996 case $ac_option in
997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 *) ac_optarg=yes ;;
999 esac
1000
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1002
1003 case $ac_dashdash$ac_option in
1004 --)
1005 ac_dashdash=yes ;;
1006
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008 ac_prev=bindir ;;
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1011
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1016
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1023
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1026
1027 -datadir | --datadir | --datadi | --datad)
1028 ac_prev=datadir ;;
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir=$ac_optarg ;;
1031
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1038
1039 -disable-* | --disable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1044 { (exit 1); exit 1; }; }
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1048 *"
1049"enable_$ac_useropt"
1050"*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=no ;;
1055
1056 -docdir | --docdir | --docdi | --doc | --do)
1057 ac_prev=docdir ;;
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1060
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 ac_prev=dvidir ;;
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
1065
1066 -enable-* | --enable-*)
1067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1075 *"
1076"enable_$ac_useropt"
1077"*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=\$ac_optarg ;;
1082
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
1090 exec_prefix=$ac_optarg ;;
1091
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1094 with_gas=yes ;;
1095
1096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
1102
1103 -host | --host | --hos | --ho)
1104 ac_prev=host_alias ;;
1105 -host=* | --host=* | --hos=* | --ho=*)
1106 host_alias=$ac_optarg ;;
1107
1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109 ac_prev=htmldir ;;
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111 | --ht=*)
1112 htmldir=$ac_optarg ;;
1113
1114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
1119 includedir=$ac_optarg ;;
1120
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1122 ac_prev=infodir ;;
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124 infodir=$ac_optarg ;;
1125
1126 -libdir | --libdir | --libdi | --libd)
1127 ac_prev=libdir ;;
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129 libdir=$ac_optarg ;;
1130
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
1136 libexecdir=$ac_optarg ;;
1137
1138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1142
1143 -localstatedir | --localstatedir | --localstatedi | --localstated \
1144 | --localstate | --localstat | --localsta | --localst | --locals)
1145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148 localstatedir=$ac_optarg ;;
1149
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151 ac_prev=mandir ;;
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153 mandir=$ac_optarg ;;
1154
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1157 with_fp=no ;;
1158
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160 | --no-cr | --no-c | -n)
1161 no_create=yes ;;
1162
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 no_recursion=yes ;;
1166
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174 oldincludedir=$ac_optarg ;;
1175
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177 ac_prev=prefix ;;
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179 prefix=$ac_optarg ;;
1180
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186 program_prefix=$ac_optarg ;;
1187
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193 program_suffix=$ac_optarg ;;
1194
1195 -program-transform-name | --program-transform-name \
1196 | --program-transform-nam | --program-transform-na \
1197 | --program-transform-n | --program-transform- \
1198 | --program-transform | --program-transfor \
1199 | --program-transfo | --program-transf \
1200 | --program-trans | --program-tran \
1201 | --progr-tra | --program-tr | --program-t)
1202 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
1210 program_transform_name=$ac_optarg ;;
1211
1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213 ac_prev=pdfdir ;;
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1216
1217 -psdir | --psdir | --psdi | --psd | --ps)
1218 ac_prev=psdir ;;
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 psdir=$ac_optarg ;;
1221
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 silent=yes ;;
1225
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227 ac_prev=sbindir ;;
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229 | --sbi=* | --sb=*)
1230 sbindir=$ac_optarg ;;
1231
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1235 | --sha | --sh)
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240 | --sha=* | --sh=*)
1241 sharedstatedir=$ac_optarg ;;
1242
1243 -site | --site | --sit)
1244 ac_prev=site ;;
1245 -site=* | --site=* | --sit=*)
1246 site=$ac_optarg ;;
1247
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249 ac_prev=srcdir ;;
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251 srcdir=$ac_optarg ;;
1252
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258 sysconfdir=$ac_optarg ;;
1259
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
1261 ac_prev=target_alias ;;
1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263 target_alias=$ac_optarg ;;
1264
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 verbose=yes ;;
1267
1268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
1270
1271 -with-* | --with-*)
1272 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1276 { (exit 1); exit 1; }; }
1277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1280 *"
1281"with_$ac_useropt"
1282"*) ;;
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1285 esac
1286 eval with_$ac_useropt=\$ac_optarg ;;
1287
1288 -without-* | --without-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1297 *"
1298"with_$ac_useropt"
1299"*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=no ;;
1304
1305 --x)
1306 # Obsolete; use --with-x.
1307 with_x=yes ;;
1308
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314 x_includes=$ac_optarg ;;
1315
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321 x_libraries=$ac_optarg ;;
1322
1323 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1324Try \`$0 --help' for more information." >&2
1325 { (exit 1); exit 1; }; }
1326 ;;
1327
1328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1332 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1333 { (exit 1); exit 1; }; }
1334 eval $ac_envvar=\$ac_optarg
1335 export $ac_envvar ;;
1336
1337 *)
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343 ;;
1344
1345 esac
1346done
1347
1348if test -n "$ac_prev"; then
1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1351 { (exit 1); exit 1; }; }
1352fi
1353
1354if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1356 no) ;;
1357 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1358 { (exit 1); exit 1; }; } ;;
1359 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 esac
1361fi
1362
1363# Check all directory arguments for consistency.
1364for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1368do
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1371 case $ac_val in
1372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1375 esac
1376 # Be sure to have absolute directory names.
1377 case $ac_val in
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 esac
1381 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1382 { (exit 1); exit 1; }; }
1383done
1384
1385# There might be people who depend on the old broken behavior: `$host'
1386# used to hold the argument of --host etc.
1387# FIXME: To remove some day.
1388build=$build_alias
1389host=$host_alias
1390target=$target_alias
1391
1392# FIXME: To remove some day.
1393if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
1396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1400 fi
1401fi
1402
1403ac_tool_prefix=
1404test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406test "$silent" = yes && exec 6>/dev/null
1407
1408
1409ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410ac_ls_di=`ls -di .` &&
1411ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1413 { (exit 1); exit 1; }; }
1414test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1416 { (exit 1); exit 1; }; }
1417
1418
1419# Find the source files, if location was not specified.
1420if test -z "$srcdir"; then
1421 ac_srcdir_defaulted=yes
1422 # Try the directory containing this script, then the parent directory.
1423 ac_confdir=`$as_dirname -- "$as_myself" ||
1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428$as_echo X"$as_myself" |
1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)[^/].*/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\/\)$/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\).*/{
1442 s//\1/
1443 q
1444 }
1445 s/.*/./; q'`
1446 srcdir=$ac_confdir
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 srcdir=..
1449 fi
1450else
1451 ac_srcdir_defaulted=no
1452fi
1453if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1456 { (exit 1); exit 1; }; }
1457fi
1458ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459ac_abs_confdir=`(
1460 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1461 { (exit 1); exit 1; }; }
1462 pwd)`
1463# When building in place, set srcdir=.
1464if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 srcdir=.
1466fi
1467# Remove unnecessary trailing slashes from srcdir.
1468# Double slashes in file names in object file debugging info
1469# mess up M-x gdb in Emacs.
1470case $srcdir in
1471*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472esac
1473for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478done
1479
1480#
1481# Report the --help message.
1482#
1483if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1486 cat <<_ACEOF
1487\`configure' configures libpng 1.2.34 to adapt to many kinds of systems.
1488
1489Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492VAR=VALUE. See below for descriptions of some of the useful variables.
1493
1494Defaults for the options are specified in brackets.
1495
1496Configuration:
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506
1507Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
1509 [$ac_default_prefix]
1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1511 [PREFIX]
1512
1513By default, \`make install' will install all the files in
1514\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516for instance \`--prefix=\$HOME'.
1517
1518For better control, use the options below.
1519
1520Fine tuning of the installation directories:
1521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
1540_ACEOF
1541
1542 cat <<\_ACEOF
1543
1544Program names:
1545 --program-prefix=PREFIX prepend PREFIX to installed program names
1546 --program-suffix=SUFFIX append SUFFIX to installed program names
1547 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1548
1549System types:
1550 --build=BUILD configure for building on BUILD [guessed]
1551 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1552_ACEOF
1553fi
1554
1555if test -n "$ac_init_help"; then
1556 case $ac_init_help in
1557 short | recursive ) echo "Configuration of libpng 1.2.34:";;
1558 esac
1559 cat <<\_ACEOF
1560
1561Optional Features:
1562 --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --enable-maintainer-mode enable make rules and dependencies not useful
1566 (and sometimes confusing) to the casual installer
1567 --disable-dependency-tracking speeds up one-time build
1568 --enable-dependency-tracking do not reject slow dependency extractors
1569 --enable-shared[=PKGS] build shared libraries [default=yes]
1570 --enable-static[=PKGS] build static libraries [default=yes]
1571 --enable-fast-install[=PKGS]
1572 optimize for fast installation [default=yes]
1573 --disable-libtool-lock avoid locking (might break parallel builds)
1574
1575Optional Packages:
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1580 both]
1581 --with-pkgconfigdir Use the specified pkgconfig dir (default is
1582 libdir/pkgconfig)
1583 --with-binconfigs Generate shell libpng-config scripts as well as
1584 pkg-config data [default=yes]
1585 --with-libpng-compat Generate the obsolete libpng.so library
1586 [default=yes]
1587
1588Some influential environment variables:
1589 CC C compiler command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
1593 LIBS libraries to pass to the linker, e.g. -l<library>
1594 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1595 you have headers in a nonstandard directory <include dir>
1596 CPP C preprocessor
1597
1598Use these variables to override the choices made by `configure' or to help
1599it to find libraries and programs with nonstandard names/locations.
1600
1601Report bugs to <png-mng-implement@lists.sourceforge.net>.
1602_ACEOF
1603ac_status=$?
1604fi
1605
1606if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" ||
1610 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611 continue
1612 ac_builddir=.
1613
1614case "$ac_dir" in
1615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616*)
1617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 esac ;;
1624esac
1625ac_abs_top_builddir=$ac_pwd
1626ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627# for backward compatibility:
1628ac_top_builddir=$ac_top_build_prefix
1629
1630case $srcdir in
1631 .) # We are building in place.
1632 ac_srcdir=.
1633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
1636 ac_srcdir=$srcdir$ac_dir_suffix;
1637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1639 *) # Relative name.
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643esac
1644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645
1646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1654 else
1655 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1658 done
1659fi
1660
1661test -n "$ac_init_help" && exit $ac_status
1662if $ac_init_version; then
1663 cat <<\_ACEOF
1664libpng configure 1.2.34
1665generated by GNU Autoconf 2.62
1666
1667Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16682002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1669This configure script is free software; the Free Software Foundation
1670gives unlimited permission to copy, distribute and modify it.
1671_ACEOF
1672 exit
1673fi
1674cat >config.log <<_ACEOF
1675This file contains any messages produced by compilers while
1676running configure, to aid debugging if configure makes a mistake.
1677
1678It was created by libpng $as_me 1.2.34, which was
1679generated by GNU Autoconf 2.62. Invocation command line was
1680
1681 $ $0 $@
1682
1683_ACEOF
1684exec 5>>config.log
1685{
1686cat <<_ASUNAME
1687## --------- ##
1688## Platform. ##
1689## --------- ##
1690
1691hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696
1697/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1699
1700/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1701/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1702/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1703/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1704/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1705/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1706/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707
1708_ASUNAME
1709
1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 $as_echo "PATH: $as_dir"
1716done
1717IFS=$as_save_IFS
1718
1719} >&5
1720
1721cat >&5 <<_ACEOF
1722
1723
1724## ----------- ##
1725## Core tests. ##
1726## ----------- ##
1727
1728_ACEOF
1729
1730
1731# Keep a trace of the command line.
1732# Strip out --no-create and --no-recursion so they do not pile up.
1733# Strip out --silent because we don't want to record it for future runs.
1734# Also quote any args containing shell meta-characters.
1735# Make two passes to allow for proper duplicate-argument suppression.
1736ac_configure_args=
1737ac_configure_args0=
1738ac_configure_args1=
1739ac_must_keep_next=false
1740for ac_pass in 1 2
1741do
1742 for ac_arg
1743 do
1744 case $ac_arg in
1745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1748 continue ;;
1749 *\'*)
1750 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751 esac
1752 case $ac_pass in
1753 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754 2)
1755 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756 if test $ac_must_keep_next = true; then
1757 ac_must_keep_next=false # Got value, back to normal.
1758 else
1759 case $ac_arg in
1760 *=* | --config-cache | -C | -disable-* | --disable-* \
1761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763 | -with-* | --with-* | -without-* | --without-* | --x)
1764 case "$ac_configure_args0 " in
1765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766 esac
1767 ;;
1768 -* ) ac_must_keep_next=true ;;
1769 esac
1770 fi
1771 ac_configure_args="$ac_configure_args '$ac_arg'"
1772 ;;
1773 esac
1774 done
1775done
1776$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1778
1779# When interrupted or exit'd, cleanup temporary files, and complete
1780# config.log. We remove comments because anyway the quotes in there
1781# would cause problems or look ugly.
1782# WARNING: Use '\'' to represent an apostrophe within the trap.
1783# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1784trap 'exit_status=$?
1785 # Save into config.log some information that might help in debugging.
1786 {
1787 echo
1788
1789 cat <<\_ASBOX
1790## ---------------- ##
1791## Cache variables. ##
1792## ---------------- ##
1793_ASBOX
1794 echo
1795 # The following way of writing the cache mishandles newlines in values,
1796(
1797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798 eval ac_val=\$$ac_var
1799 case $ac_val in #(
1800 *${as_nl}*)
1801 case $ac_var in #(
1802 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1804 esac
1805 case $ac_var in #(
1806 _ | IFS | as_nl) ;; #(
1807 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1808 *) $as_unset $ac_var ;;
1809 esac ;;
1810 esac
1811 done
1812 (set) 2>&1 |
1813 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814 *${as_nl}ac_space=\ *)
1815 sed -n \
1816 "s/'\''/'\''\\\\'\'''\''/g;
1817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1818 ;; #(
1819 *)
1820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821 ;;
1822 esac |
1823 sort
1824)
1825 echo
1826
1827 cat <<\_ASBOX
1828## ----------------- ##
1829## Output variables. ##
1830## ----------------- ##
1831_ASBOX
1832 echo
1833 for ac_var in $ac_subst_vars
1834 do
1835 eval ac_val=\$$ac_var
1836 case $ac_val in
1837 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838 esac
1839 $as_echo "$ac_var='\''$ac_val'\''"
1840 done | sort
1841 echo
1842
1843 if test -n "$ac_subst_files"; then
1844 cat <<\_ASBOX
1845## ------------------- ##
1846## File substitutions. ##
1847## ------------------- ##
1848_ASBOX
1849 echo
1850 for ac_var in $ac_subst_files
1851 do
1852 eval ac_val=\$$ac_var
1853 case $ac_val in
1854 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 esac
1856 $as_echo "$ac_var='\''$ac_val'\''"
1857 done | sort
1858 echo
1859 fi
1860
1861 if test -s confdefs.h; then
1862 cat <<\_ASBOX
1863## ----------- ##
1864## confdefs.h. ##
1865## ----------- ##
1866_ASBOX
1867 echo
1868 cat confdefs.h
1869 echo
1870 fi
1871 test "$ac_signal" != 0 &&
1872 $as_echo "$as_me: caught signal $ac_signal"
1873 $as_echo "$as_me: exit $exit_status"
1874 } >&5
1875 rm -f core *.core core.conftest.* &&
1876 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1877 exit $exit_status
1878' 0
1879for ac_signal in 1 2 13 15; do
1880 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881done
1882ac_signal=0
1883
1884# confdefs.h avoids OS command line length limits that DEFS can exceed.
1885rm -f -r conftest* confdefs.h
1886
1887# Predefined preprocessor variables.
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_NAME "$PACKAGE_NAME"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_VERSION "$PACKAGE_VERSION"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_STRING "$PACKAGE_STRING"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911_ACEOF
1912
1913
1914# Let the site file select an alternate cache file if it wants to.
1915# Prefer an explicitly selected file to automatically selected ones.
1916ac_site_file1=NONE
1917ac_site_file2=NONE
1918if test -n "$CONFIG_SITE"; then
1919 ac_site_file1=$CONFIG_SITE
1920elif test "x$prefix" != xNONE; then
1921 ac_site_file1=$prefix/share/config.site
1922 ac_site_file2=$prefix/etc/config.site
1923else
1924 ac_site_file1=$ac_default_prefix/share/config.site
1925 ac_site_file2=$ac_default_prefix/etc/config.site
1926fi
1927for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1928do
1929 test "x$ac_site_file" = xNONE && continue
1930 if test -r "$ac_site_file"; then
1931 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1932$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1933 sed 's/^/| /' "$ac_site_file" >&5
1934 . "$ac_site_file"
1935 fi
1936done
1937
1938if test -r "$cache_file"; then
1939 # Some versions of bash will fail to source /dev/null (special
1940 # files actually), so we avoid doing that.
1941 if test -f "$cache_file"; then
1942 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1943$as_echo "$as_me: loading cache $cache_file" >&6;}
1944 case $cache_file in
1945 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1946 *) . "./$cache_file";;
1947 esac
1948 fi
1949else
1950 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1951$as_echo "$as_me: creating cache $cache_file" >&6;}
1952 >$cache_file
1953fi
1954
1955# Check that the precious variables saved in the cache have kept the same
1956# value.
1957ac_cache_corrupted=false
1958for ac_var in $ac_precious_vars; do
1959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960 eval ac_new_set=\$ac_env_${ac_var}_set
1961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962 eval ac_new_val=\$ac_env_${ac_var}_value
1963 case $ac_old_set,$ac_new_set in
1964 set,)
1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1968 ,set)
1969 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1972 ,);;
1973 *)
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
1975 # differences in whitespace do not lead to failure.
1976 ac_old_val_w=`echo x $ac_old_val`
1977 ac_new_val_w=`echo x $ac_new_val`
1978 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1979 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1980$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1981 ac_cache_corrupted=:
1982 else
1983 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1984$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1985 eval $ac_var=\$ac_old_val
1986 fi
1987 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1988$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1989 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1990$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1991 fi;;
1992 esac
1993 # Pass precious variables to config.status.
1994 if test "$ac_new_set" = set; then
1995 case $ac_new_val in
1996 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1997 *) ac_arg=$ac_var=$ac_new_val ;;
1998 esac
1999 case " $ac_configure_args " in
2000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2001 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2002 esac
2003 fi
2004done
2005if $ac_cache_corrupted; then
2006 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2007$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2008 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2009$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2010 { (exit 1); exit 1; }; }
2011fi
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037ac_ext=c
2038ac_cpp='$CPP $CPPFLAGS'
2039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042
2043
2044am__api_version='1.10'
2045
2046ac_aux_dir=
2047for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2048 if test -f "$ac_dir/install-sh"; then
2049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/install-sh -c"
2051 break
2052 elif test -f "$ac_dir/install.sh"; then
2053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/install.sh -c"
2055 break
2056 elif test -f "$ac_dir/shtool"; then
2057 ac_aux_dir=$ac_dir
2058 ac_install_sh="$ac_aux_dir/shtool install -c"
2059 break
2060 fi
2061done
2062if test -z "$ac_aux_dir"; then
2063 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2064$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2065 { (exit 1); exit 1; }; }
2066fi
2067
2068# These three variables are undocumented and unsupported,
2069# and are intended to be withdrawn in a future Autoconf release.
2070# They can cause serious problems if a builder's source tree is in a directory
2071# whose full name contains unusual characters.
2072ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2073ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2074ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2075
2076
2077# Find a good install program. We prefer a C program (faster),
2078# so one script is as good as another. But avoid the broken or
2079# incompatible versions:
2080# SysV /etc/install, /usr/sbin/install
2081# SunOS /usr/etc/install
2082# IRIX /sbin/install
2083# AIX /bin/install
2084# AmigaOS /C/install, which installs bootblocks on floppy discs
2085# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2086# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2087# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2088# OS/2's system install, which has a completely different semantic
2089# ./install, which can be erroneously created by make from ./install.sh.
2090# Reject install programs that cannot install multiple files.
2091{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2092$as_echo_n "checking for a BSD-compatible install... " >&6; }
2093if test -z "$INSTALL"; then
2094if test "${ac_cv_path_install+set}" = set; then
2095 $as_echo_n "(cached) " >&6
2096else
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH
2099do
2100 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=.
2102 # Account for people who put trailing slashes in PATH elements.
2103case $as_dir/ in
2104 ./ | .// | /cC/* | \
2105 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2106 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2107 /usr/ucb/* ) ;;
2108 *)
2109 # OSF1 and SCO ODT 3.0 have their own names for install.
2110 # Don't use installbsd from OSF since it installs stuff as root
2111 # by default.
2112 for ac_prog in ginstall scoinst install; do
2113 for ac_exec_ext in '' $ac_executable_extensions; do
2114 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2115 if test $ac_prog = install &&
2116 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2117 # AIX install. It has an incompatible calling convention.
2118 :
2119 elif test $ac_prog = install &&
2120 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2121 # program-specific install script used by HP pwplus--don't use.
2122 :
2123 else
2124 rm -rf conftest.one conftest.two conftest.dir
2125 echo one > conftest.one
2126 echo two > conftest.two
2127 mkdir conftest.dir
2128 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2129 test -s conftest.one && test -s conftest.two &&
2130 test -s conftest.dir/conftest.one &&
2131 test -s conftest.dir/conftest.two
2132 then
2133 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2134 break 3
2135 fi
2136 fi
2137 fi
2138 done
2139 done
2140 ;;
2141esac
2142
2143done
2144IFS=$as_save_IFS
2145
2146rm -rf conftest.one conftest.two conftest.dir
2147
2148fi
2149 if test "${ac_cv_path_install+set}" = set; then
2150 INSTALL=$ac_cv_path_install
2151 else
2152 # As a last resort, use the slow shell script. Don't cache a
2153 # value for INSTALL within a source directory, because that will
2154 # break other packages using the cache if that directory is
2155 # removed, or if the value is a relative name.
2156 INSTALL=$ac_install_sh
2157 fi
2158fi
2159{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2160$as_echo "$INSTALL" >&6; }
2161
2162# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2163# It thinks the first close brace ends the variable substitution.
2164test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2165
2166test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2167
2168test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2169
2170{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2171$as_echo_n "checking whether build environment is sane... " >&6; }
2172# Just in case
2173sleep 1
2174echo timestamp > conftest.file
2175# Do `set' in a subshell so we don't clobber the current shell's
2176# arguments. Must try -L first in case configure is actually a
2177# symlink; some systems play weird games with the mod time of symlinks
2178# (eg FreeBSD returns the mod time of the symlink's containing
2179# directory).
2180if (
2181 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2182 if test "$*" = "X"; then
2183 # -L didn't work.
2184 set X `ls -t $srcdir/configure conftest.file`
2185 fi
2186 rm -f conftest.file
2187 if test "$*" != "X $srcdir/configure conftest.file" \
2188 && test "$*" != "X conftest.file $srcdir/configure"; then
2189
2190 # If neither matched, then we have a broken ls. This can happen
2191 # if, for instance, CONFIG_SHELL is bash and it inherits a
2192 # broken ls alias from the environment. This has actually
2193 # happened. Such a system could not be considered "sane".
2194 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2195alias in your environment" >&5
2196$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2197alias in your environment" >&2;}
2198 { (exit 1); exit 1; }; }
2199 fi
2200
2201 test "$2" = conftest.file
2202 )
2203then
2204 # Ok.
2205 :
2206else
2207 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2208Check your system clock" >&5
2209$as_echo "$as_me: error: newly created file is older than distributed files!
2210Check your system clock" >&2;}
2211 { (exit 1); exit 1; }; }
2212fi
2213{ $as_echo "$as_me:$LINENO: result: yes" >&5
2214$as_echo "yes" >&6; }
2215test "$program_prefix" != NONE &&
2216 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2217# Use a double $ so make ignores it.
2218test "$program_suffix" != NONE &&
2219 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2220# Double any \ or $.
2221# By default was `s,x,x', remove it if useless.
2222ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2223program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2224
2225# expand $ac_aux_dir to an absolute path
2226am_aux_dir=`cd $ac_aux_dir && pwd`
2227
2228test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2229# Use eval to expand $SHELL
2230if eval "$MISSING --run true"; then
2231 am_missing_run="$MISSING --run "
2232else
2233 am_missing_run=
2234 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2235$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2236fi
2237
2238{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2239$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2240if test -z "$MKDIR_P"; then
2241 if test "${ac_cv_path_mkdir+set}" = set; then
2242 $as_echo_n "(cached) " >&6
2243else
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2246do
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 for ac_prog in mkdir gmkdir; do
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2252 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2253 'mkdir (GNU coreutils) '* | \
2254 'mkdir (coreutils) '* | \
2255 'mkdir (fileutils) '4.1*)
2256 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2257 break 3;;
2258 esac
2259 done
2260 done
2261done
2262IFS=$as_save_IFS
2263
2264fi
2265
2266 if test "${ac_cv_path_mkdir+set}" = set; then
2267 MKDIR_P="$ac_cv_path_mkdir -p"
2268 else
2269 # As a last resort, use the slow shell script. Don't cache a
2270 # value for MKDIR_P within a source directory, because that will
2271 # break other packages using the cache if that directory is
2272 # removed, or if the value is a relative name.
2273 test -d ./--version && rmdir ./--version
2274 MKDIR_P="$ac_install_sh -d"
2275 fi
2276fi
2277{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2278$as_echo "$MKDIR_P" >&6; }
2279
2280mkdir_p="$MKDIR_P"
2281case $mkdir_p in
2282 [\\/$]* | ?:[\\/]*) ;;
2283 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2284esac
2285
2286for ac_prog in gawk mawk nawk awk
2287do
2288 # Extract the first word of "$ac_prog", so it can be a program name with args.
2289set dummy $ac_prog; ac_word=$2
2290{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2291$as_echo_n "checking for $ac_word... " >&6; }
2292if test "${ac_cv_prog_AWK+set}" = set; then
2293 $as_echo_n "(cached) " >&6
2294else
2295 if test -n "$AWK"; then
2296 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2297else
2298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299for as_dir in $PATH
2300do
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305 ac_cv_prog_AWK="$ac_prog"
2306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 break 2
2308 fi
2309done
2310done
2311IFS=$as_save_IFS
2312
2313fi
2314fi
2315AWK=$ac_cv_prog_AWK
2316if test -n "$AWK"; then
2317 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2318$as_echo "$AWK" >&6; }
2319else
2320 { $as_echo "$as_me:$LINENO: result: no" >&5
2321$as_echo "no" >&6; }
2322fi
2323
2324
2325 test -n "$AWK" && break
2326done
2327
2328{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2329$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2330set x ${MAKE-make}
2331ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2332if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2333 $as_echo_n "(cached) " >&6
2334else
2335 cat >conftest.make <<\_ACEOF
2336SHELL = /bin/sh
2337all:
2338 @echo '@@@%%%=$(MAKE)=@@@%%%'
2339_ACEOF
2340# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2341case `${MAKE-make} -f conftest.make 2>/dev/null` in
2342 *@@@%%%=?*=@@@%%%*)
2343 eval ac_cv_prog_make_${ac_make}_set=yes;;
2344 *)
2345 eval ac_cv_prog_make_${ac_make}_set=no;;
2346esac
2347rm -f conftest.make
2348fi
2349if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2350 { $as_echo "$as_me:$LINENO: result: yes" >&5
2351$as_echo "yes" >&6; }
2352 SET_MAKE=
2353else
2354 { $as_echo "$as_me:$LINENO: result: no" >&5
2355$as_echo "no" >&6; }
2356 SET_MAKE="MAKE=${MAKE-make}"
2357fi
2358
2359rm -rf .tst 2>/dev/null
2360mkdir .tst 2>/dev/null
2361if test -d .tst; then
2362 am__leading_dot=.
2363else
2364 am__leading_dot=_
2365fi
2366rmdir .tst 2>/dev/null
2367
2368if test "`cd $srcdir && pwd`" != "`pwd`"; then
2369 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2370 # is not polluted with repeated "-I."
2371 am__isrc=' -I$(srcdir)'
2372 # test to see if srcdir already configured
2373 if test -f $srcdir/config.status; then
2374 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2375$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2376 { (exit 1); exit 1; }; }
2377 fi
2378fi
2379
2380# test whether we have cygpath
2381if test -z "$CYGPATH_W"; then
2382 if (cygpath --version) >/dev/null 2>/dev/null; then
2383 CYGPATH_W='cygpath -w'
2384 else
2385 CYGPATH_W=echo
2386 fi
2387fi
2388
2389
2390# Define the identity of the package.
2391 PACKAGE='libpng'
2392 VERSION='1.2.34'
2393
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE "$PACKAGE"
2397_ACEOF
2398
2399
2400cat >>confdefs.h <<_ACEOF
2401#define VERSION "$VERSION"
2402_ACEOF
2403
2404# Some tools Automake needs.
2405
2406ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2407
2408
2409AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2410
2411
2412AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2413
2414
2415AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2416
2417
2418MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2419
2420install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2421
2422# Installed binaries are usually stripped using `strip' when the user
2423# run `make install-strip'. However `strip' might not be the right
2424# tool to use in cross-compilation environments, therefore Automake
2425# will honor the `STRIP' environment variable to overrule this program.
2426if test "$cross_compiling" != no; then
2427 if test -n "$ac_tool_prefix"; then
2428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2429set dummy ${ac_tool_prefix}strip; ac_word=$2
2430{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2431$as_echo_n "checking for $ac_word... " >&6; }
2432if test "${ac_cv_prog_STRIP+set}" = set; then
2433 $as_echo_n "(cached) " >&6
2434else
2435 if test -n "$STRIP"; then
2436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2437else
2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439for as_dir in $PATH
2440do
2441 IFS=$as_save_IFS
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 break 2
2448 fi
2449done
2450done
2451IFS=$as_save_IFS
2452
2453fi
2454fi
2455STRIP=$ac_cv_prog_STRIP
2456if test -n "$STRIP"; then
2457 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2458$as_echo "$STRIP" >&6; }
2459else
2460 { $as_echo "$as_me:$LINENO: result: no" >&5
2461$as_echo "no" >&6; }
2462fi
2463
2464
2465fi
2466if test -z "$ac_cv_prog_STRIP"; then
2467 ac_ct_STRIP=$STRIP
2468 # Extract the first word of "strip", so it can be a program name with args.
2469set dummy strip; ac_word=$2
2470{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2471$as_echo_n "checking for $ac_word... " >&6; }
2472if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2473 $as_echo_n "(cached) " >&6
2474else
2475 if test -n "$ac_ct_STRIP"; then
2476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 ac_cv_prog_ac_ct_STRIP="strip"
2486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2488 fi
2489done
2490done
2491IFS=$as_save_IFS
2492
2493fi
2494fi
2495ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2496if test -n "$ac_ct_STRIP"; then
2497 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2498$as_echo "$ac_ct_STRIP" >&6; }
2499else
2500 { $as_echo "$as_me:$LINENO: result: no" >&5
2501$as_echo "no" >&6; }
2502fi
2503
2504 if test "x$ac_ct_STRIP" = x; then
2505 STRIP=":"
2506 else
2507 case $cross_compiling:$ac_tool_warned in
2508yes:)
2509{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2510whose name does not start with the host triplet. If you think this
2511configuration is useful to you, please write to autoconf@gnu.org." >&5
2512$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2513whose name does not start with the host triplet. If you think this
2514configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2515ac_tool_warned=yes ;;
2516esac
2517 STRIP=$ac_ct_STRIP
2518 fi
2519else
2520 STRIP="$ac_cv_prog_STRIP"
2521fi
2522
2523fi
2524INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2525
2526# We need awk for the "check" target. The system "awk" is bad on
2527# some platforms.
2528# Always define AMTAR for backward compatibility.
2529
2530AMTAR=${AMTAR-"${am_missing_run}tar"}
2531
2532am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2533
2534
2535
2536
2537
2538{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2539$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2540 # Check whether --enable-maintainer-mode was given.
2541if test "${enable_maintainer_mode+set}" = set; then
2542 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2543else
2544 USE_MAINTAINER_MODE=no
2545fi
2546
2547 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2548$as_echo "$USE_MAINTAINER_MODE" >&6; }
2549 if test $USE_MAINTAINER_MODE = yes; then
2550 MAINTAINER_MODE_TRUE=
2551 MAINTAINER_MODE_FALSE='#'
2552else
2553 MAINTAINER_MODE_TRUE='#'
2554 MAINTAINER_MODE_FALSE=
2555fi
2556
2557 MAINT=$MAINTAINER_MODE_TRUE
2558
2559
2560
2561PNGLIB_VERSION=1.2.34
2562PNGLIB_MAJOR=1
2563PNGLIB_MINOR=2
2564PNGLIB_RELEASE=34
2565
2566
2567
2568ac_config_headers="$ac_config_headers config.h"
2569
2570
2571# Checks for programs.
2572ac_ext=c
2573ac_cpp='$CPP $CPPFLAGS'
2574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577if test -n "$ac_tool_prefix"; then
2578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2579set dummy ${ac_tool_prefix}gcc; ac_word=$2
2580{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2581$as_echo_n "checking for $ac_word... " >&6; }
2582if test "${ac_cv_prog_CC+set}" = set; then
2583 $as_echo_n "(cached) " >&6
2584else
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2587else
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2598 fi
2599done
2600done
2601IFS=$as_save_IFS
2602
2603fi
2604fi
2605CC=$ac_cv_prog_CC
2606if test -n "$CC"; then
2607 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2608$as_echo "$CC" >&6; }
2609else
2610 { $as_echo "$as_me:$LINENO: result: no" >&5
2611$as_echo "no" >&6; }
2612fi
2613
2614
2615fi
2616if test -z "$ac_cv_prog_CC"; then
2617 ac_ct_CC=$CC
2618 # Extract the first word of "gcc", so it can be a program name with args.
2619set dummy gcc; ac_word=$2
2620{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2621$as_echo_n "checking for $ac_word... " >&6; }
2622if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2623 $as_echo_n "(cached) " >&6
2624else
2625 if test -n "$ac_ct_CC"; then
2626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635 ac_cv_prog_ac_ct_CC="gcc"
2636 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639done
2640done
2641IFS=$as_save_IFS
2642
2643fi
2644fi
2645ac_ct_CC=$ac_cv_prog_ac_ct_CC
2646if test -n "$ac_ct_CC"; then
2647 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2648$as_echo "$ac_ct_CC" >&6; }
2649else
2650 { $as_echo "$as_me:$LINENO: result: no" >&5
2651$as_echo "no" >&6; }
2652fi
2653
2654 if test "x$ac_ct_CC" = x; then
2655 CC=""
2656 else
2657 case $cross_compiling:$ac_tool_warned in
2658yes:)
2659{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2660whose name does not start with the host triplet. If you think this
2661configuration is useful to you, please write to autoconf@gnu.org." >&5
2662$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2663whose name does not start with the host triplet. If you think this
2664configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2665ac_tool_warned=yes ;;
2666esac
2667 CC=$ac_ct_CC
2668 fi
2669else
2670 CC="$ac_cv_prog_CC"
2671fi
2672
2673if test -z "$CC"; then
2674 if test -n "$ac_tool_prefix"; then
2675 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2676set dummy ${ac_tool_prefix}cc; ac_word=$2
2677{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2678$as_echo_n "checking for $ac_word... " >&6; }
2679if test "${ac_cv_prog_CC+set}" = set; then
2680 $as_echo_n "(cached) " >&6
2681else
2682 if test -n "$CC"; then
2683 ac_cv_prog_CC="$CC" # Let the user override the test.
2684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692 ac_cv_prog_CC="${ac_tool_prefix}cc"
2693 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2695 fi
2696done
2697done
2698IFS=$as_save_IFS
2699
2700fi
2701fi
2702CC=$ac_cv_prog_CC
2703if test -n "$CC"; then
2704 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2705$as_echo "$CC" >&6; }
2706else
2707 { $as_echo "$as_me:$LINENO: result: no" >&5
2708$as_echo "no" >&6; }
2709fi
2710
2711
2712 fi
2713fi
2714if test -z "$CC"; then
2715 # Extract the first word of "cc", so it can be a program name with args.
2716set dummy cc; ac_word=$2
2717{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2718$as_echo_n "checking for $ac_word... " >&6; }
2719if test "${ac_cv_prog_CC+set}" = set; then
2720 $as_echo_n "(cached) " >&6
2721else
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC="$CC" # Let the user override the test.
2724else
2725 ac_prog_rejected=no
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2734 ac_prog_rejected=yes
2735 continue
2736 fi
2737 ac_cv_prog_CC="cc"
2738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2740 fi
2741done
2742done
2743IFS=$as_save_IFS
2744
2745if test $ac_prog_rejected = yes; then
2746 # We found a bogon in the path, so make sure we never use it.
2747 set dummy $ac_cv_prog_CC
2748 shift
2749 if test $# != 0; then
2750 # We chose a different compiler from the bogus one.
2751 # However, it has the same basename, so the bogon will be chosen
2752 # first if we set CC to just the basename; use the full file name.
2753 shift
2754 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2755 fi
2756fi
2757fi
2758fi
2759CC=$ac_cv_prog_CC
2760if test -n "$CC"; then
2761 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2762$as_echo "$CC" >&6; }
2763else
2764 { $as_echo "$as_me:$LINENO: result: no" >&5
2765$as_echo "no" >&6; }
2766fi
2767
2768
2769fi
2770if test -z "$CC"; then
2771 if test -n "$ac_tool_prefix"; then
2772 for ac_prog in cl.exe
2773 do
2774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2775set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2776{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2777$as_echo_n "checking for $ac_word... " >&6; }
2778if test "${ac_cv_prog_CC+set}" = set; then
2779 $as_echo_n "(cached) " >&6
2780else
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC="$CC" # Let the user override the test.
2783else
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2792 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795done
2796done
2797IFS=$as_save_IFS
2798
2799fi
2800fi
2801CC=$ac_cv_prog_CC
2802if test -n "$CC"; then
2803 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2804$as_echo "$CC" >&6; }
2805else
2806 { $as_echo "$as_me:$LINENO: result: no" >&5
2807$as_echo "no" >&6; }
2808fi
2809
2810
2811 test -n "$CC" && break
2812 done
2813fi
2814if test -z "$CC"; then
2815 ac_ct_CC=$CC
2816 for ac_prog in cl.exe
2817do
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819set dummy $ac_prog; ac_word=$2
2820{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2821$as_echo_n "checking for $ac_word... " >&6; }
2822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2823 $as_echo_n "(cached) " >&6
2824else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_ac_ct_CC="$ac_prog"
2836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839done
2840done
2841IFS=$as_save_IFS
2842
2843fi
2844fi
2845ac_ct_CC=$ac_cv_prog_ac_ct_CC
2846if test -n "$ac_ct_CC"; then
2847 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2848$as_echo "$ac_ct_CC" >&6; }
2849else
2850 { $as_echo "$as_me:$LINENO: result: no" >&5
2851$as_echo "no" >&6; }
2852fi
2853
2854
2855 test -n "$ac_ct_CC" && break
2856done
2857
2858 if test "x$ac_ct_CC" = x; then
2859 CC=""
2860 else
2861 case $cross_compiling:$ac_tool_warned in
2862yes:)
2863{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2864whose name does not start with the host triplet. If you think this
2865configuration is useful to you, please write to autoconf@gnu.org." >&5
2866$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2867whose name does not start with the host triplet. If you think this
2868configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2869ac_tool_warned=yes ;;
2870esac
2871 CC=$ac_ct_CC
2872 fi
2873fi
2874
2875fi
2876
2877
2878test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2879See \`config.log' for more details." >&5
2880$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2881See \`config.log' for more details." >&2;}
2882 { (exit 1); exit 1; }; }
2883
2884# Provide some information about the compiler.
2885$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2886set X $ac_compile
2887ac_compiler=$2
2888{ (ac_try="$ac_compiler --version >&5"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2894$as_echo "$ac_try_echo") >&5
2895 (eval "$ac_compiler --version >&5") 2>&5
2896 ac_status=$?
2897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2899{ (ac_try="$ac_compiler -v >&5"
2900case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903esac
2904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2905$as_echo "$ac_try_echo") >&5
2906 (eval "$ac_compiler -v >&5") 2>&5
2907 ac_status=$?
2908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }
2910{ (ac_try="$ac_compiler -V >&5"
2911case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914esac
2915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2916$as_echo "$ac_try_echo") >&5
2917 (eval "$ac_compiler -V >&5") 2>&5
2918 ac_status=$?
2919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2921
2922cat >conftest.$ac_ext <<_ACEOF
2923/* confdefs.h. */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h. */
2928
2929int
2930main ()
2931{
2932
2933 ;
2934 return 0;
2935}
2936_ACEOF
2937ac_clean_files_save=$ac_clean_files
2938ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2939# Try to create an executable without -o first, disregard a.out.
2940# It will help us diagnose broken compilers, and finding out an intuition
2941# of exeext.
2942{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2943$as_echo_n "checking for C compiler default output file name... " >&6; }
2944ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2945
2946# The possible output files:
2947ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2948
2949ac_rmfiles=
2950for ac_file in $ac_files
2951do
2952 case $ac_file in
2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2954 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2955 esac
2956done
2957rm -f $ac_rmfiles
2958
2959if { (ac_try="$ac_link_default"
2960case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
2964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2965$as_echo "$ac_try_echo") >&5
2966 (eval "$ac_link_default") 2>&5
2967 ac_status=$?
2968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; then
2970 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2971# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2972# in a Makefile. We should not override ac_cv_exeext if it was cached,
2973# so that the user can short-circuit this test for compilers unknown to
2974# Autoconf.
2975for ac_file in $ac_files ''
2976do
2977 test -f "$ac_file" || continue
2978 case $ac_file in
2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2980 ;;
2981 [ab].out )
2982 # We found the default executable, but exeext='' is most
2983 # certainly right.
2984 break;;
2985 *.* )
2986 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2987 then :; else
2988 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2989 fi
2990 # We set ac_cv_exeext here because the later test for it is not
2991 # safe: cross compilers may not add the suffix if given an `-o'
2992 # argument, so we may need to know it at that point already.
2993 # Even if this section looks crufty: it has the advantage of
2994 # actually working.
2995 break;;
2996 * )
2997 break;;
2998 esac
2999done
3000test "$ac_cv_exeext" = no && ac_cv_exeext=
3001
3002else
3003 ac_file=''
3004fi
3005
3006{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3007$as_echo "$ac_file" >&6; }
3008if test -z "$ac_file"; then
3009 $as_echo "$as_me: failed program was:" >&5
3010sed 's/^/| /' conftest.$ac_ext >&5
3011
3012{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3013See \`config.log' for more details." >&5
3014$as_echo "$as_me: error: C compiler cannot create executables
3015See \`config.log' for more details." >&2;}
3016 { (exit 77); exit 77; }; }
3017fi
3018
3019ac_exeext=$ac_cv_exeext
3020
3021# Check that the compiler produces executables we can run. If not, either
3022# the compiler is broken, or we cross compile.
3023{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3024$as_echo_n "checking whether the C compiler works... " >&6; }
3025# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3026# If not cross compiling, check that we can run a simple program.
3027if test "$cross_compiling" != yes; then
3028 if { ac_try='./$ac_file'
3029 { (case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032esac
3033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3034$as_echo "$ac_try_echo") >&5
3035 (eval "$ac_try") 2>&5
3036 ac_status=$?
3037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 cross_compiling=no
3040 else
3041 if test "$cross_compiling" = maybe; then
3042 cross_compiling=yes
3043 else
3044 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3045If you meant to cross compile, use \`--host'.
3046See \`config.log' for more details." >&5
3047$as_echo "$as_me: error: cannot run C compiled programs.
3048If you meant to cross compile, use \`--host'.
3049See \`config.log' for more details." >&2;}
3050 { (exit 1); exit 1; }; }
3051 fi
3052 fi
3053fi
3054{ $as_echo "$as_me:$LINENO: result: yes" >&5
3055$as_echo "yes" >&6; }
3056
3057rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3058ac_clean_files=$ac_clean_files_save
3059# Check that the compiler produces executables we can run. If not, either
3060# the compiler is broken, or we cross compile.
3061{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3062$as_echo_n "checking whether we are cross compiling... " >&6; }
3063{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3064$as_echo "$cross_compiling" >&6; }
3065
3066{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3067$as_echo_n "checking for suffix of executables... " >&6; }
3068if { (ac_try="$ac_link"
3069case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072esac
3073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3074$as_echo "$ac_try_echo") >&5
3075 (eval "$ac_link") 2>&5
3076 ac_status=$?
3077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; then
3079 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3080# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3081# work properly (i.e., refer to `conftest.exe'), while it won't with
3082# `rm'.
3083for ac_file in conftest.exe conftest conftest.*; do
3084 test -f "$ac_file" || continue
3085 case $ac_file in
3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3088 break;;
3089 * ) break;;
3090 esac
3091done
3092else
3093 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3094See \`config.log' for more details." >&5
3095$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3096See \`config.log' for more details." >&2;}
3097 { (exit 1); exit 1; }; }
3098fi
3099
3100rm -f conftest$ac_cv_exeext
3101{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3102$as_echo "$ac_cv_exeext" >&6; }
3103
3104rm -f conftest.$ac_ext
3105EXEEXT=$ac_cv_exeext
3106ac_exeext=$EXEEXT
3107{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3108$as_echo_n "checking for suffix of object files... " >&6; }
3109if test "${ac_cv_objext+set}" = set; then
3110 $as_echo_n "(cached) " >&6
3111else
3112 cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118
3119int
3120main ()
3121{
3122
3123 ;
3124 return 0;
3125}
3126_ACEOF
3127rm -f conftest.o conftest.obj
3128if { (ac_try="$ac_compile"
3129case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
3133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3134$as_echo "$ac_try_echo") >&5
3135 (eval "$ac_compile") 2>&5
3136 ac_status=$?
3137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; then
3139 for ac_file in conftest.o conftest.obj conftest.*; do
3140 test -f "$ac_file" || continue;
3141 case $ac_file in
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3143 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3144 break;;
3145 esac
3146done
3147else
3148 $as_echo "$as_me: failed program was:" >&5
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
3151{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3152See \`config.log' for more details." >&5
3153$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3154See \`config.log' for more details." >&2;}
3155 { (exit 1); exit 1; }; }
3156fi
3157
3158rm -f conftest.$ac_cv_objext conftest.$ac_ext
3159fi
3160{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3161$as_echo "$ac_cv_objext" >&6; }
3162OBJEXT=$ac_cv_objext
3163ac_objext=$OBJEXT
3164{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3165$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3166if test "${ac_cv_c_compiler_gnu+set}" = set; then
3167 $as_echo_n "(cached) " >&6
3168else
3169 cat >conftest.$ac_ext <<_ACEOF
3170/* confdefs.h. */
3171_ACEOF
3172cat confdefs.h >>conftest.$ac_ext
3173cat >>conftest.$ac_ext <<_ACEOF
3174/* end confdefs.h. */
3175
3176int
3177main ()
3178{
3179#ifndef __GNUC__
3180 choke me
3181#endif
3182
3183 ;
3184 return 0;
3185}
3186_ACEOF
3187rm -f conftest.$ac_objext
3188if { (ac_try="$ac_compile"
3189case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192esac
3193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3194$as_echo "$ac_try_echo") >&5
3195 (eval "$ac_compile") 2>conftest.er1
3196 ac_status=$?
3197 grep -v '^ *+' conftest.er1 >conftest.err
3198 rm -f conftest.er1
3199 cat conftest.err >&5
3200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } && {
3202 test -z "$ac_c_werror_flag" ||
3203 test ! -s conftest.err
3204 } && test -s conftest.$ac_objext; then
3205 ac_compiler_gnu=yes
3206else
3207 $as_echo "$as_me: failed program was:" >&5
3208sed 's/^/| /' conftest.$ac_ext >&5
3209
3210 ac_compiler_gnu=no
3211fi
3212
3213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214ac_cv_c_compiler_gnu=$ac_compiler_gnu
3215
3216fi
3217{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3218$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3219if test $ac_compiler_gnu = yes; then
3220 GCC=yes
3221else
3222 GCC=
3223fi
3224ac_test_CFLAGS=${CFLAGS+set}
3225ac_save_CFLAGS=$CFLAGS
3226{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3227$as_echo_n "checking whether $CC accepts -g... " >&6; }
3228if test "${ac_cv_prog_cc_g+set}" = set; then
3229 $as_echo_n "(cached) " >&6
3230else
3231 ac_save_c_werror_flag=$ac_c_werror_flag
3232 ac_c_werror_flag=yes
3233 ac_cv_prog_cc_g=no
3234 CFLAGS="-g"
3235 cat >conftest.$ac_ext <<_ACEOF
3236/* confdefs.h. */
3237_ACEOF
3238cat confdefs.h >>conftest.$ac_ext
3239cat >>conftest.$ac_ext <<_ACEOF
3240/* end confdefs.h. */
3241
3242int
3243main ()
3244{
3245
3246 ;
3247 return 0;
3248}
3249_ACEOF
3250rm -f conftest.$ac_objext
3251if { (ac_try="$ac_compile"
3252case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255esac
3256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3257$as_echo "$ac_try_echo") >&5
3258 (eval "$ac_compile") 2>conftest.er1
3259 ac_status=$?
3260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } && {
3265 test -z "$ac_c_werror_flag" ||
3266 test ! -s conftest.err
3267 } && test -s conftest.$ac_objext; then
3268 ac_cv_prog_cc_g=yes
3269else
3270 $as_echo "$as_me: failed program was:" >&5
3271sed 's/^/| /' conftest.$ac_ext >&5
3272
3273 CFLAGS=""
3274 cat >conftest.$ac_ext <<_ACEOF
3275/* confdefs.h. */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
3279/* end confdefs.h. */
3280
3281int
3282main ()
3283{
3284
3285 ;
3286 return 0;
3287}
3288_ACEOF
3289rm -f conftest.$ac_objext
3290if { (ac_try="$ac_compile"
3291case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294esac
3295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3296$as_echo "$ac_try_echo") >&5
3297 (eval "$ac_compile") 2>conftest.er1
3298 ac_status=$?
3299 grep -v '^ *+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
3302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } && {
3304 test -z "$ac_c_werror_flag" ||
3305 test ! -s conftest.err
3306 } && test -s conftest.$ac_objext; then
3307 :
3308else
3309 $as_echo "$as_me: failed program was:" >&5
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
3312 ac_c_werror_flag=$ac_save_c_werror_flag
3313 CFLAGS="-g"
3314 cat >conftest.$ac_ext <<_ACEOF
3315/* confdefs.h. */
3316_ACEOF
3317cat confdefs.h >>conftest.$ac_ext
3318cat >>conftest.$ac_ext <<_ACEOF
3319/* end confdefs.h. */
3320
3321int
3322main ()
3323{
3324
3325 ;
3326 return 0;
3327}
3328_ACEOF
3329rm -f conftest.$ac_objext
3330if { (ac_try="$ac_compile"
3331case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334esac
3335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3336$as_echo "$ac_try_echo") >&5
3337 (eval "$ac_compile") 2>conftest.er1
3338 ac_status=$?
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
3342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } && {
3344 test -z "$ac_c_werror_flag" ||
3345 test ! -s conftest.err
3346 } && test -s conftest.$ac_objext; then
3347 ac_cv_prog_cc_g=yes
3348else
3349 $as_echo "$as_me: failed program was:" >&5
3350sed 's/^/| /' conftest.$ac_ext >&5
3351
3352
3353fi
3354
3355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356fi
3357
3358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359fi
3360
3361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_c_werror_flag=$ac_save_c_werror_flag
3363fi
3364{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3365$as_echo "$ac_cv_prog_cc_g" >&6; }
3366if test "$ac_test_CFLAGS" = set; then
3367 CFLAGS=$ac_save_CFLAGS
3368elif test $ac_cv_prog_cc_g = yes; then
3369 if test "$GCC" = yes; then
3370 CFLAGS="-g -O2"
3371 else
3372 CFLAGS="-g"
3373 fi
3374else
3375 if test "$GCC" = yes; then
3376 CFLAGS="-O2"
3377 else
3378 CFLAGS=
3379 fi
3380fi
3381{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3382$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3383if test "${ac_cv_prog_cc_c89+set}" = set; then
3384 $as_echo_n "(cached) " >&6
3385else
3386 ac_cv_prog_cc_c89=no
3387ac_save_CC=$CC
3388cat >conftest.$ac_ext <<_ACEOF
3389/* confdefs.h. */
3390_ACEOF
3391cat confdefs.h >>conftest.$ac_ext
3392cat >>conftest.$ac_ext <<_ACEOF
3393/* end confdefs.h. */
3394#include <stdarg.h>
3395#include <stdio.h>
3396#include <sys/types.h>
3397#include <sys/stat.h>
3398/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3399struct buf { int x; };
3400FILE * (*rcsopen) (struct buf *, struct stat *, int);
3401static char *e (p, i)
3402 char **p;
3403 int i;
3404{
3405 return p[i];
3406}
3407static char *f (char * (*g) (char **, int), char **p, ...)
3408{
3409 char *s;
3410 va_list v;
3411 va_start (v,p);
3412 s = g (p, va_arg (v,int));
3413 va_end (v);
3414 return s;
3415}
3416
3417/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3418 function prototypes and stuff, but not '\xHH' hex character constants.
3419 These don't provoke an error unfortunately, instead are silently treated
3420 as 'x'. The following induces an error, until -std is added to get
3421 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3422 array size at least. It's necessary to write '\x00'==0 to get something
3423 that's true only with -std. */
3424int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3425
3426/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3427 inside strings and character constants. */
3428#define FOO(x) 'x'
3429int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3430
3431int test (int i, double x);
3432struct s1 {int (*f) (int a);};
3433struct s2 {int (*f) (double a);};
3434int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3435int argc;
3436char **argv;
3437int
3438main ()
3439{
3440return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3441 ;
3442 return 0;
3443}
3444_ACEOF
3445for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3446 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3447do
3448 CC="$ac_save_CC $ac_arg"
3449 rm -f conftest.$ac_objext
3450if { (ac_try="$ac_compile"
3451case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454esac
3455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3456$as_echo "$ac_try_echo") >&5
3457 (eval "$ac_compile") 2>conftest.er1
3458 ac_status=$?
3459 grep -v '^ *+' conftest.er1 >conftest.err
3460 rm -f conftest.er1
3461 cat conftest.err >&5
3462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } && {
3464 test -z "$ac_c_werror_flag" ||
3465 test ! -s conftest.err
3466 } && test -s conftest.$ac_objext; then
3467 ac_cv_prog_cc_c89=$ac_arg
3468else
3469 $as_echo "$as_me: failed program was:" >&5
3470sed 's/^/| /' conftest.$ac_ext >&5
3471
3472
3473fi
3474
3475rm -f core conftest.err conftest.$ac_objext
3476 test "x$ac_cv_prog_cc_c89" != "xno" && break
3477done
3478rm -f conftest.$ac_ext
3479CC=$ac_save_CC
3480
3481fi
3482# AC_CACHE_VAL
3483case "x$ac_cv_prog_cc_c89" in
3484 x)
3485 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3486$as_echo "none needed" >&6; } ;;
3487 xno)
3488 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3489$as_echo "unsupported" >&6; } ;;
3490 *)
3491 CC="$CC $ac_cv_prog_cc_c89"
3492 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3493$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3494esac
3495
3496
3497ac_ext=c
3498ac_cpp='$CPP $CPPFLAGS'
3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502DEPDIR="${am__leading_dot}deps"
3503
3504ac_config_commands="$ac_config_commands depfiles"
3505
3506
3507am_make=${MAKE-make}
3508cat > confinc << 'END'
3509am__doit:
3510 @echo done
3511.PHONY: am__doit
3512END
3513# If we don't find an include directive, just comment out the code.
3514{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3515$as_echo_n "checking for style of include used by $am_make... " >&6; }
3516am__include="#"
3517am__quote=
3518_am_result=none
3519# First try GNU make style include.
3520echo "include confinc" > confmf
3521# We grep out `Entering directory' and `Leaving directory'
3522# messages which can occur if `w' ends up in MAKEFLAGS.
3523# In particular we don't look at `^make:' because GNU make might
3524# be invoked under some other name (usually "gmake"), in which
3525# case it prints its new name instead of `make'.
3526if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3527 am__include=include
3528 am__quote=
3529 _am_result=GNU
3530fi
3531# Now try BSD make style include.
3532if test "$am__include" = "#"; then
3533 echo '.include "confinc"' > confmf
3534 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3535 am__include=.include
3536 am__quote="\""
3537 _am_result=BSD
3538 fi
3539fi
3540
3541
3542{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3543$as_echo "$_am_result" >&6; }
3544rm -f confinc confmf
3545
3546# Check whether --enable-dependency-tracking was given.
3547if test "${enable_dependency_tracking+set}" = set; then
3548 enableval=$enable_dependency_tracking;
3549fi
3550
3551if test "x$enable_dependency_tracking" != xno; then
3552 am_depcomp="$ac_aux_dir/depcomp"
3553 AMDEPBACKSLASH='\'
3554fi
3555 if test "x$enable_dependency_tracking" != xno; then
3556 AMDEP_TRUE=
3557 AMDEP_FALSE='#'
3558else
3559 AMDEP_TRUE='#'
3560 AMDEP_FALSE=
3561fi
3562
3563
3564
3565depcc="$CC" am_compiler_list=
3566
3567{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3568$as_echo_n "checking dependency style of $depcc... " >&6; }
3569if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3570 $as_echo_n "(cached) " >&6
3571else
3572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3573 # We make a subdir and do the tests there. Otherwise we can end up
3574 # making bogus files that we don't know about and never remove. For
3575 # instance it was reported that on HP-UX the gcc test will end up
3576 # making a dummy file named `D' -- because `-MD' means `put the output
3577 # in D'.
3578 mkdir conftest.dir
3579 # Copy depcomp to subdir because otherwise we won't find it if we're
3580 # using a relative directory.
3581 cp "$am_depcomp" conftest.dir
3582 cd conftest.dir
3583 # We will build objects and dependencies in a subdirectory because
3584 # it helps to detect inapplicable dependency modes. For instance
3585 # both Tru64's cc and ICC support -MD to output dependencies as a
3586 # side effect of compilation, but ICC will put the dependencies in
3587 # the current directory while Tru64 will put them in the object
3588 # directory.
3589 mkdir sub
3590
3591 am_cv_CC_dependencies_compiler_type=none
3592 if test "$am_compiler_list" = ""; then
3593 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3594 fi
3595 for depmode in $am_compiler_list; do
3596 # Setup a source with many dependencies, because some compilers
3597 # like to wrap large dependency lists on column 80 (with \), and
3598 # we should not choose a depcomp mode which is confused by this.
3599 #
3600 # We need to recreate these files for each test, as the compiler may
3601 # overwrite some of them when testing with obscure command lines.
3602 # This happens at least with the AIX C compiler.
3603 : > sub/conftest.c
3604 for i in 1 2 3 4 5 6; do
3605 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3606 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3607 # Solaris 8's {/usr,}/bin/sh.
3608 touch sub/conftst$i.h
3609 done
3610 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3611
3612 case $depmode in
3613 nosideeffect)
3614 # after this tag, mechanisms are not by side-effect, so they'll
3615 # only be used when explicitly requested
3616 if test "x$enable_dependency_tracking" = xyes; then
3617 continue
3618 else
3619 break
3620 fi
3621 ;;
3622 none) break ;;
3623 esac
3624 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3625 # mode. It turns out that the SunPro C++ compiler does not properly
3626 # handle `-M -o', and we need to detect this.
3627 if depmode=$depmode \
3628 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3629 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3630 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3631 >/dev/null 2>conftest.err &&
3632 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3633 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3634 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3635 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3636 # icc doesn't choke on unknown options, it will just issue warnings
3637 # or remarks (even with -Werror). So we grep stderr for any message
3638 # that says an option was ignored or not supported.
3639 # When given -MP, icc 7.0 and 7.1 complain thusly:
3640 # icc: Command line warning: ignoring option '-M'; no argument required
3641 # The diagnosis changed in icc 8.0:
3642 # icc: Command line remark: option '-MP' not supported
3643 if (grep 'ignoring option' conftest.err ||
3644 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3645 am_cv_CC_dependencies_compiler_type=$depmode
3646 break
3647 fi
3648 fi
3649 done
3650
3651 cd ..
3652 rm -rf conftest.dir
3653else
3654 am_cv_CC_dependencies_compiler_type=none
3655fi
3656
3657fi
3658{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3659$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3660CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3661
3662 if
3663 test "x$enable_dependency_tracking" != xno \
3664 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3665 am__fastdepCC_TRUE=
3666 am__fastdepCC_FALSE='#'
3667else
3668 am__fastdepCC_TRUE='#'
3669 am__fastdepCC_FALSE=
3670fi
3671
3672
3673# Make sure we can run config.sub.
3674$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3675 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3676$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3677 { (exit 1); exit 1; }; }
3678
3679{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3680$as_echo_n "checking build system type... " >&6; }
3681if test "${ac_cv_build+set}" = set; then
3682 $as_echo_n "(cached) " >&6
3683else
3684 ac_build_alias=$build_alias
3685test "x$ac_build_alias" = x &&
3686 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3687test "x$ac_build_alias" = x &&
3688 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3689$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3690 { (exit 1); exit 1; }; }
3691ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3692 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3693$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3694 { (exit 1); exit 1; }; }
3695
3696fi
3697{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3698$as_echo "$ac_cv_build" >&6; }
3699case $ac_cv_build in
3700*-*-*) ;;
3701*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3702$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3703 { (exit 1); exit 1; }; };;
3704esac
3705build=$ac_cv_build
3706ac_save_IFS=$IFS; IFS='-'
3707set x $ac_cv_build
3708shift
3709build_cpu=$1
3710build_vendor=$2
3711shift; shift
3712# Remember, the first character of IFS is used to create $*,
3713# except with old shells:
3714build_os=$*
3715IFS=$ac_save_IFS
3716case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3717
3718
3719{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3720$as_echo_n "checking host system type... " >&6; }
3721if test "${ac_cv_host+set}" = set; then
3722 $as_echo_n "(cached) " >&6
3723else
3724 if test "x$host_alias" = x; then
3725 ac_cv_host=$ac_cv_build
3726else
3727 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3728 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3729$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3730 { (exit 1); exit 1; }; }
3731fi
3732
3733fi
3734{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3735$as_echo "$ac_cv_host" >&6; }
3736case $ac_cv_host in
3737*-*-*) ;;
3738*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3739$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3740 { (exit 1); exit 1; }; };;
3741esac
3742host=$ac_cv_host
3743ac_save_IFS=$IFS; IFS='-'
3744set x $ac_cv_host
3745shift
3746host_cpu=$1
3747host_vendor=$2
3748shift; shift
3749# Remember, the first character of IFS is used to create $*,
3750# except with old shells:
3751host_os=$*
3752IFS=$ac_save_IFS
3753case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3754
3755
3756{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3757$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3758if test "${ac_cv_path_SED+set}" = set; then
3759 $as_echo_n "(cached) " >&6
3760else
3761 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3762 for ac_i in 1 2 3 4 5 6 7; do
3763 ac_script="$ac_script$as_nl$ac_script"
3764 done
3765 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3766 $as_unset ac_script || ac_script=
3767 if test -z "$SED"; then
3768 ac_path_SED_found=false
3769 # Loop through the user's path and test for each of PROGNAME-LIST
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH
3772do
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 for ac_prog in sed gsed; do
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3778 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3779# Check for GNU ac_path_SED and select it if it is found.
3780 # Check for GNU $ac_path_SED
3781case `"$ac_path_SED" --version 2>&1` in
3782*GNU*)
3783 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3784*)
3785 ac_count=0
3786 $as_echo_n 0123456789 >"conftest.in"
3787 while :
3788 do
3789 cat "conftest.in" "conftest.in" >"conftest.tmp"
3790 mv "conftest.tmp" "conftest.in"
3791 cp "conftest.in" "conftest.nl"
3792 $as_echo '' >> "conftest.nl"
3793 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3795 ac_count=`expr $ac_count + 1`
3796 if test $ac_count -gt ${ac_path_SED_max-0}; then
3797 # Best one so far, save it but keep looking for a better one
3798 ac_cv_path_SED="$ac_path_SED"
3799 ac_path_SED_max=$ac_count
3800 fi
3801 # 10*(2^10) chars as input seems more than enough
3802 test $ac_count -gt 10 && break
3803 done
3804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3805esac
3806
3807 $ac_path_SED_found && break 3
3808 done
3809 done
3810done
3811IFS=$as_save_IFS
3812 if test -z "$ac_cv_path_SED"; then
3813 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3814$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3815 { (exit 1); exit 1; }; }
3816 fi
3817else
3818 ac_cv_path_SED=$SED
3819fi
3820
3821fi
3822{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3823$as_echo "$ac_cv_path_SED" >&6; }
3824 SED="$ac_cv_path_SED"
3825 rm -f conftest.sed
3826
3827test -z "$SED" && SED=sed
3828Xsed="$SED -e 1s/^X//"
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3841$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3842if test "${ac_cv_path_GREP+set}" = set; then
3843 $as_echo_n "(cached) " >&6
3844else
3845 if test -z "$GREP"; then
3846 ac_path_GREP_found=false
3847 # Loop through the user's path and test for each of PROGNAME-LIST
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3850do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_prog in grep ggrep; do
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3856 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3857# Check for GNU ac_path_GREP and select it if it is found.
3858 # Check for GNU $ac_path_GREP
3859case `"$ac_path_GREP" --version 2>&1` in
3860*GNU*)
3861 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3862*)
3863 ac_count=0
3864 $as_echo_n 0123456789 >"conftest.in"
3865 while :
3866 do
3867 cat "conftest.in" "conftest.in" >"conftest.tmp"
3868 mv "conftest.tmp" "conftest.in"
3869 cp "conftest.in" "conftest.nl"
3870 $as_echo 'GREP' >> "conftest.nl"
3871 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3873 ac_count=`expr $ac_count + 1`
3874 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3875 # Best one so far, save it but keep looking for a better one
3876 ac_cv_path_GREP="$ac_path_GREP"
3877 ac_path_GREP_max=$ac_count
3878 fi
3879 # 10*(2^10) chars as input seems more than enough
3880 test $ac_count -gt 10 && break
3881 done
3882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3883esac
3884
3885 $ac_path_GREP_found && break 3
3886 done
3887 done
3888done
3889IFS=$as_save_IFS
3890 if test -z "$ac_cv_path_GREP"; then
3891 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3892$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3893 { (exit 1); exit 1; }; }
3894 fi
3895else
3896 ac_cv_path_GREP=$GREP
3897fi
3898
3899fi
3900{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3901$as_echo "$ac_cv_path_GREP" >&6; }
3902 GREP="$ac_cv_path_GREP"
3903
3904
3905{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3906$as_echo_n "checking for egrep... " >&6; }
3907if test "${ac_cv_path_EGREP+set}" = set; then
3908 $as_echo_n "(cached) " >&6
3909else
3910 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3911 then ac_cv_path_EGREP="$GREP -E"
3912 else
3913 if test -z "$EGREP"; then
3914 ac_path_EGREP_found=false
3915 # Loop through the user's path and test for each of PROGNAME-LIST
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_prog in egrep; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3924 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3925# Check for GNU ac_path_EGREP and select it if it is found.
3926 # Check for GNU $ac_path_EGREP
3927case `"$ac_path_EGREP" --version 2>&1` in
3928*GNU*)
3929 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3930*)
3931 ac_count=0
3932 $as_echo_n 0123456789 >"conftest.in"
3933 while :
3934 do
3935 cat "conftest.in" "conftest.in" >"conftest.tmp"
3936 mv "conftest.tmp" "conftest.in"
3937 cp "conftest.in" "conftest.nl"
3938 $as_echo 'EGREP' >> "conftest.nl"
3939 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3941 ac_count=`expr $ac_count + 1`
3942 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3943 # Best one so far, save it but keep looking for a better one
3944 ac_cv_path_EGREP="$ac_path_EGREP"
3945 ac_path_EGREP_max=$ac_count
3946 fi
3947 # 10*(2^10) chars as input seems more than enough
3948 test $ac_count -gt 10 && break
3949 done
3950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951esac
3952
3953 $ac_path_EGREP_found && break 3
3954 done
3955 done
3956done
3957IFS=$as_save_IFS
3958 if test -z "$ac_cv_path_EGREP"; then
3959 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3960$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3961 { (exit 1); exit 1; }; }
3962 fi
3963else
3964 ac_cv_path_EGREP=$EGREP
3965fi
3966
3967 fi
3968fi
3969{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3970$as_echo "$ac_cv_path_EGREP" >&6; }
3971 EGREP="$ac_cv_path_EGREP"
3972
3973
3974{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3975$as_echo_n "checking for fgrep... " >&6; }
3976if test "${ac_cv_path_FGREP+set}" = set; then
3977 $as_echo_n "(cached) " >&6
3978else
3979 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3980 then ac_cv_path_FGREP="$GREP -F"
3981 else
3982 if test -z "$FGREP"; then
3983 ac_path_FGREP_found=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3987do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_prog in fgrep; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3993 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3994# Check for GNU ac_path_FGREP and select it if it is found.
3995 # Check for GNU $ac_path_FGREP
3996case `"$ac_path_FGREP" --version 2>&1` in
3997*GNU*)
3998 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3999*)
4000 ac_count=0
4001 $as_echo_n 0123456789 >"conftest.in"
4002 while :
4003 do
4004 cat "conftest.in" "conftest.in" >"conftest.tmp"
4005 mv "conftest.tmp" "conftest.in"
4006 cp "conftest.in" "conftest.nl"
4007 $as_echo 'FGREP' >> "conftest.nl"
4008 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010 ac_count=`expr $ac_count + 1`
4011 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4012 # Best one so far, save it but keep looking for a better one
4013 ac_cv_path_FGREP="$ac_path_FGREP"
4014 ac_path_FGREP_max=$ac_count
4015 fi
4016 # 10*(2^10) chars as input seems more than enough
4017 test $ac_count -gt 10 && break
4018 done
4019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020esac
4021
4022 $ac_path_FGREP_found && break 3
4023 done
4024 done
4025done
4026IFS=$as_save_IFS
4027 if test -z "$ac_cv_path_FGREP"; then
4028 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4029$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4030 { (exit 1); exit 1; }; }
4031 fi
4032else
4033 ac_cv_path_FGREP=$FGREP
4034fi
4035
4036 fi
4037fi
4038{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4039$as_echo "$ac_cv_path_FGREP" >&6; }
4040 FGREP="$ac_cv_path_FGREP"
4041
4042
4043test -z "$GREP" && GREP=grep
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063# Check whether --with-gnu-ld was given.
4064if test "${with_gnu_ld+set}" = set; then
4065 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4066else
4067 with_gnu_ld=no
4068fi
4069
4070ac_prog=ld
4071if test "$GCC" = yes; then
4072 # Check if gcc -print-prog-name=ld gives a path.
4073 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4074$as_echo_n "checking for ld used by $CC... " >&6; }
4075 case $host in
4076 *-*-mingw*)
4077 # gcc leaves a trailing carriage return which upsets mingw
4078 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4079 *)
4080 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4081 esac
4082 case $ac_prog in
4083 # Accept absolute paths.
4084 [\\/]* | ?:[\\/]*)
4085 re_direlt='/[^/][^/]*/\.\./'
4086 # Canonicalize the pathname of ld
4087 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4088 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4089 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4090 done
4091 test -z "$LD" && LD="$ac_prog"
4092 ;;
4093 "")
4094 # If it fails, then pretend we aren't using GCC.
4095 ac_prog=ld
4096 ;;
4097 *)
4098 # If it is relative, then search for the first ld in PATH.
4099 with_gnu_ld=unknown
4100 ;;
4101 esac
4102elif test "$with_gnu_ld" = yes; then
4103 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4104$as_echo_n "checking for GNU ld... " >&6; }
4105else
4106 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4107$as_echo_n "checking for non-GNU ld... " >&6; }
4108fi
4109if test "${lt_cv_path_LD+set}" = set; then
4110 $as_echo_n "(cached) " >&6
4111else
4112 if test -z "$LD"; then
4113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4114 for ac_dir in $PATH; do
4115 IFS="$lt_save_ifs"
4116 test -z "$ac_dir" && ac_dir=.
4117 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4118 lt_cv_path_LD="$ac_dir/$ac_prog"
4119 # Check to see if the program is GNU ld. I'd rather use --version,
4120 # but apparently some variants of GNU ld only accept -v.
4121 # Break only if it was the GNU/non-GNU ld that we prefer.
4122 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4123 *GNU* | *'with BFD'*)
4124 test "$with_gnu_ld" != no && break
4125 ;;
4126 *)
4127 test "$with_gnu_ld" != yes && break
4128 ;;
4129 esac
4130 fi
4131 done
4132 IFS="$lt_save_ifs"
4133else
4134 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4135fi
4136fi
4137
4138LD="$lt_cv_path_LD"
4139if test -n "$LD"; then
4140 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4141$as_echo "$LD" >&6; }
4142else
4143 { $as_echo "$as_me:$LINENO: result: no" >&5
4144$as_echo "no" >&6; }
4145fi
4146test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4147$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4148 { (exit 1); exit 1; }; }
4149{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4150$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4151if test "${lt_cv_prog_gnu_ld+set}" = set; then
4152 $as_echo_n "(cached) " >&6
4153else
4154 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4155case `$LD -v 2>&1 </dev/null` in
4156*GNU* | *'with BFD'*)
4157 lt_cv_prog_gnu_ld=yes
4158 ;;
4159*)
4160 lt_cv_prog_gnu_ld=no
4161 ;;
4162esac
4163fi
4164{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4165$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4166with_gnu_ld=$lt_cv_prog_gnu_ld
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176ac_ext=c
4177ac_cpp='$CPP $CPPFLAGS'
4178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4182$as_echo_n "checking how to run the C preprocessor... " >&6; }
4183# On Suns, sometimes $CPP names a directory.
4184if test -n "$CPP" && test -d "$CPP"; then
4185 CPP=
4186fi
4187if test -z "$CPP"; then
4188 if test "${ac_cv_prog_CPP+set}" = set; then
4189 $as_echo_n "(cached) " >&6
4190else
4191 # Double quotes because CPP needs to be expanded
4192 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4193 do
4194 ac_preproc_ok=false
4195for ac_c_preproc_warn_flag in '' yes
4196do
4197 # Use a header file that comes with gcc, so configuring glibc
4198 # with a fresh cross-compiler works.
4199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200 # <limits.h> exists even on freestanding compilers.
4201 # On the NeXT, cc -E runs the code through the compiler's parser,
4202 # not just through cpp. "Syntax error" is here to catch this case.
4203 cat >conftest.$ac_ext <<_ACEOF
4204/* confdefs.h. */
4205_ACEOF
4206cat confdefs.h >>conftest.$ac_ext
4207cat >>conftest.$ac_ext <<_ACEOF
4208/* end confdefs.h. */
4209#ifdef __STDC__
4210# include <limits.h>
4211#else
4212# include <assert.h>
4213#endif
4214 Syntax error
4215_ACEOF
4216if { (ac_try="$ac_cpp conftest.$ac_ext"
4217case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220esac
4221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4222$as_echo "$ac_try_echo") >&5
4223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } >/dev/null && {
4230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4231 test ! -s conftest.err
4232 }; then
4233 :
4234else
4235 $as_echo "$as_me: failed program was:" >&5
4236sed 's/^/| /' conftest.$ac_ext >&5
4237
4238 # Broken: fails on valid input.
4239continue
4240fi
4241
4242rm -f conftest.err conftest.$ac_ext
4243
4244 # OK, works on sane cases. Now check whether nonexistent headers
4245 # can be detected and how.
4246 cat >conftest.$ac_ext <<_ACEOF
4247/* confdefs.h. */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
4251/* end confdefs.h. */
4252#include <ac_nonexistent.h>
4253_ACEOF
4254if { (ac_try="$ac_cpp conftest.$ac_ext"
4255case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258esac
4259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4260$as_echo "$ac_try_echo") >&5
4261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } >/dev/null && {
4268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 }; then
4271 # Broken: success on invalid input.
4272continue
4273else
4274 $as_echo "$as_me: failed program was:" >&5
4275sed 's/^/| /' conftest.$ac_ext >&5
4276
4277 # Passes both tests.
4278ac_preproc_ok=:
4279break
4280fi
4281
4282rm -f conftest.err conftest.$ac_ext
4283
4284done
4285# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4286rm -f conftest.err conftest.$ac_ext
4287if $ac_preproc_ok; then
4288 break
4289fi
4290
4291 done
4292 ac_cv_prog_CPP=$CPP
4293
4294fi
4295 CPP=$ac_cv_prog_CPP
4296else
4297 ac_cv_prog_CPP=$CPP
4298fi
4299{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4300$as_echo "$CPP" >&6; }
4301ac_preproc_ok=false
4302for ac_c_preproc_warn_flag in '' yes
4303do
4304 # Use a header file that comes with gcc, so configuring glibc
4305 # with a fresh cross-compiler works.
4306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4307 # <limits.h> exists even on freestanding compilers.
4308 # On the NeXT, cc -E runs the code through the compiler's parser,
4309 # not just through cpp. "Syntax error" is here to catch this case.
4310 cat >conftest.$ac_ext <<_ACEOF
4311/* confdefs.h. */
4312_ACEOF
4313cat confdefs.h >>conftest.$ac_ext
4314cat >>conftest.$ac_ext <<_ACEOF
4315/* end confdefs.h. */
4316#ifdef __STDC__
4317# include <limits.h>
4318#else
4319# include <assert.h>
4320#endif
4321 Syntax error
4322_ACEOF
4323if { (ac_try="$ac_cpp conftest.$ac_ext"
4324case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327esac
4328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4329$as_echo "$ac_try_echo") >&5
4330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4331 ac_status=$?
4332 grep -v '^ *+' conftest.er1 >conftest.err
4333 rm -f conftest.er1
4334 cat conftest.err >&5
4335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } >/dev/null && {
4337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4338 test ! -s conftest.err
4339 }; then
4340 :
4341else
4342 $as_echo "$as_me: failed program was:" >&5
4343sed 's/^/| /' conftest.$ac_ext >&5
4344
4345 # Broken: fails on valid input.
4346continue
4347fi
4348
4349rm -f conftest.err conftest.$ac_ext
4350
4351 # OK, works on sane cases. Now check whether nonexistent headers
4352 # can be detected and how.
4353 cat >conftest.$ac_ext <<_ACEOF
4354/* confdefs.h. */
4355_ACEOF
4356cat confdefs.h >>conftest.$ac_ext
4357cat >>conftest.$ac_ext <<_ACEOF
4358/* end confdefs.h. */
4359#include <ac_nonexistent.h>
4360_ACEOF
4361if { (ac_try="$ac_cpp conftest.$ac_ext"
4362case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365esac
4366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4367$as_echo "$ac_try_echo") >&5
4368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4369 ac_status=$?
4370 grep -v '^ *+' conftest.er1 >conftest.err
4371 rm -f conftest.er1
4372 cat conftest.err >&5
4373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } >/dev/null && {
4375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4376 test ! -s conftest.err
4377 }; then
4378 # Broken: success on invalid input.
4379continue
4380else
4381 $as_echo "$as_me: failed program was:" >&5
4382sed 's/^/| /' conftest.$ac_ext >&5
4383
4384 # Passes both tests.
4385ac_preproc_ok=:
4386break
4387fi
4388
4389rm -f conftest.err conftest.$ac_ext
4390
4391done
4392# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4393rm -f conftest.err conftest.$ac_ext
4394if $ac_preproc_ok; then
4395 :
4396else
4397 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4398See \`config.log' for more details." >&5
4399$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4400See \`config.log' for more details." >&2;}
4401 { (exit 1); exit 1; }; }
4402fi
4403
4404ac_ext=c
4405ac_cpp='$CPP $CPPFLAGS'
4406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409
4410if test -n "$ac_tool_prefix"; then
4411 # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4412set dummy ${ac_tool_prefix}sed; ac_word=$2
4413{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4414$as_echo_n "checking for $ac_word... " >&6; }
4415if test "${ac_cv_prog_SED+set}" = set; then
4416 $as_echo_n "(cached) " >&6
4417else
4418 if test -n "$SED"; then
4419 ac_cv_prog_SED="$SED" # Let the user override the test.
4420else
4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH
4423do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_SED="${ac_tool_prefix}sed"
4429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4431 fi
4432done
4433done
4434IFS=$as_save_IFS
4435
4436fi
4437fi
4438SED=$ac_cv_prog_SED
4439if test -n "$SED"; then
4440 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4441$as_echo "$SED" >&6; }
4442else
4443 { $as_echo "$as_me:$LINENO: result: no" >&5
4444$as_echo "no" >&6; }
4445fi
4446
4447
4448fi
4449if test -z "$ac_cv_prog_SED"; then
4450 ac_ct_SED=$SED
4451 # Extract the first word of "sed", so it can be a program name with args.
4452set dummy sed; ac_word=$2
4453{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4454$as_echo_n "checking for $ac_word... " >&6; }
4455if test "${ac_cv_prog_ac_ct_SED+set}" = set; then
4456 $as_echo_n "(cached) " >&6
4457else
4458 if test -n "$ac_ct_SED"; then
4459 ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4460else
4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_ac_ct_SED="sed"
4469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4471 fi
4472done
4473done
4474IFS=$as_save_IFS
4475
4476fi
4477fi
4478ac_ct_SED=$ac_cv_prog_ac_ct_SED
4479if test -n "$ac_ct_SED"; then
4480 { $as_echo "$as_me:$LINENO: result: $ac_ct_SED" >&5
4481$as_echo "$ac_ct_SED" >&6; }
4482else
4483 { $as_echo "$as_me:$LINENO: result: no" >&5
4484$as_echo "no" >&6; }
4485fi
4486
4487 if test "x$ac_ct_SED" = x; then
4488 SED=":"
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491yes:)
4492{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4493whose name does not start with the host triplet. If you think this
4494configuration is useful to you, please write to autoconf@gnu.org." >&5
4495$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4496whose name does not start with the host triplet. If you think this
4497configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4498ac_tool_warned=yes ;;
4499esac
4500 SED=$ac_ct_SED
4501 fi
4502else
4503 SED="$ac_cv_prog_SED"
4504fi
4505
4506enable_win32_dll=yes
4507
4508case $host in
4509*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4510 if test -n "$ac_tool_prefix"; then
4511 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4512set dummy ${ac_tool_prefix}as; ac_word=$2
4513{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4514$as_echo_n "checking for $ac_word... " >&6; }
4515if test "${ac_cv_prog_AS+set}" = set; then
4516 $as_echo_n "(cached) " >&6
4517else
4518 if test -n "$AS"; then
4519 ac_cv_prog_AS="$AS" # Let the user override the test.
4520else
4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522for as_dir in $PATH
4523do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_prog_AS="${ac_tool_prefix}as"
4529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4531 fi
4532done
4533done
4534IFS=$as_save_IFS
4535
4536fi
4537fi
4538AS=$ac_cv_prog_AS
4539if test -n "$AS"; then
4540 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4541$as_echo "$AS" >&6; }
4542else
4543 { $as_echo "$as_me:$LINENO: result: no" >&5
4544$as_echo "no" >&6; }
4545fi
4546
4547
4548fi
4549if test -z "$ac_cv_prog_AS"; then
4550 ac_ct_AS=$AS
4551 # Extract the first word of "as", so it can be a program name with args.
4552set dummy as; ac_word=$2
4553{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4554$as_echo_n "checking for $ac_word... " >&6; }
4555if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4556 $as_echo_n "(cached) " >&6
4557else
4558 if test -n "$ac_ct_AS"; then
4559 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4560else
4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_ac_ct_AS="as"
4569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572done
4573done
4574IFS=$as_save_IFS
4575
4576fi
4577fi
4578ac_ct_AS=$ac_cv_prog_ac_ct_AS
4579if test -n "$ac_ct_AS"; then
4580 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4581$as_echo "$ac_ct_AS" >&6; }
4582else
4583 { $as_echo "$as_me:$LINENO: result: no" >&5
4584$as_echo "no" >&6; }
4585fi
4586
4587 if test "x$ac_ct_AS" = x; then
4588 AS="false"
4589 else
4590 case $cross_compiling:$ac_tool_warned in
4591yes:)
4592{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4593whose name does not start with the host triplet. If you think this
4594configuration is useful to you, please write to autoconf@gnu.org." >&5
4595$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4596whose name does not start with the host triplet. If you think this
4597configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4598ac_tool_warned=yes ;;
4599esac
4600 AS=$ac_ct_AS
4601 fi
4602else
4603 AS="$ac_cv_prog_AS"
4604fi
4605
4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4608set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4609{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4610$as_echo_n "checking for $ac_word... " >&6; }
4611if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4612 $as_echo_n "(cached) " >&6
4613else
4614 if test -n "$DLLTOOL"; then
4615 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4616else
4617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH
4619do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628done
4629done
4630IFS=$as_save_IFS
4631
4632fi
4633fi
4634DLLTOOL=$ac_cv_prog_DLLTOOL
4635if test -n "$DLLTOOL"; then
4636 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4637$as_echo "$DLLTOOL" >&6; }
4638else
4639 { $as_echo "$as_me:$LINENO: result: no" >&5
4640$as_echo "no" >&6; }
4641fi
4642
4643
4644fi
4645if test -z "$ac_cv_prog_DLLTOOL"; then
4646 ac_ct_DLLTOOL=$DLLTOOL
4647 # Extract the first word of "dlltool", so it can be a program name with args.
4648set dummy dlltool; ac_word=$2
4649{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4650$as_echo_n "checking for $ac_word... " >&6; }
4651if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4652 $as_echo_n "(cached) " >&6
4653else
4654 if test -n "$ac_ct_DLLTOOL"; then
4655 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668done
4669done
4670IFS=$as_save_IFS
4671
4672fi
4673fi
4674ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4675if test -n "$ac_ct_DLLTOOL"; then
4676 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4677$as_echo "$ac_ct_DLLTOOL" >&6; }
4678else
4679 { $as_echo "$as_me:$LINENO: result: no" >&5
4680$as_echo "no" >&6; }
4681fi
4682
4683 if test "x$ac_ct_DLLTOOL" = x; then
4684 DLLTOOL="false"
4685 else
4686 case $cross_compiling:$ac_tool_warned in
4687yes:)
4688{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4689whose name does not start with the host triplet. If you think this
4690configuration is useful to you, please write to autoconf@gnu.org." >&5
4691$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4692whose name does not start with the host triplet. If you think this
4693configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4694ac_tool_warned=yes ;;
4695esac
4696 DLLTOOL=$ac_ct_DLLTOOL
4697 fi
4698else
4699 DLLTOOL="$ac_cv_prog_DLLTOOL"
4700fi
4701
4702 if test -n "$ac_tool_prefix"; then
4703 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4704set dummy ${ac_tool_prefix}objdump; ac_word=$2
4705{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4706$as_echo_n "checking for $ac_word... " >&6; }
4707if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4708 $as_echo_n "(cached) " >&6
4709else
4710 if test -n "$OBJDUMP"; then
4711 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4712else
4713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714for as_dir in $PATH
4715do
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4721 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4723 fi
4724done
4725done
4726IFS=$as_save_IFS
4727
4728fi
4729fi
4730OBJDUMP=$ac_cv_prog_OBJDUMP
4731if test -n "$OBJDUMP"; then
4732 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4733$as_echo "$OBJDUMP" >&6; }
4734else
4735 { $as_echo "$as_me:$LINENO: result: no" >&5
4736$as_echo "no" >&6; }
4737fi
4738
4739
4740fi
4741if test -z "$ac_cv_prog_OBJDUMP"; then
4742 ac_ct_OBJDUMP=$OBJDUMP
4743 # Extract the first word of "objdump", so it can be a program name with args.
4744set dummy objdump; ac_word=$2
4745{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4746$as_echo_n "checking for $ac_word... " >&6; }
4747if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4748 $as_echo_n "(cached) " >&6
4749else
4750 if test -n "$ac_ct_OBJDUMP"; then
4751 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4752else
4753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH
4755do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4761 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4763 fi
4764done
4765done
4766IFS=$as_save_IFS
4767
4768fi
4769fi
4770ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4771if test -n "$ac_ct_OBJDUMP"; then
4772 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4773$as_echo "$ac_ct_OBJDUMP" >&6; }
4774else
4775 { $as_echo "$as_me:$LINENO: result: no" >&5
4776$as_echo "no" >&6; }
4777fi
4778
4779 if test "x$ac_ct_OBJDUMP" = x; then
4780 OBJDUMP="false"
4781 else
4782 case $cross_compiling:$ac_tool_warned in
4783yes:)
4784{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4785whose name does not start with the host triplet. If you think this
4786configuration is useful to you, please write to autoconf@gnu.org." >&5
4787$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4788whose name does not start with the host triplet. If you think this
4789configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4790ac_tool_warned=yes ;;
4791esac
4792 OBJDUMP=$ac_ct_OBJDUMP
4793 fi
4794else
4795 OBJDUMP="$ac_cv_prog_OBJDUMP"
4796fi
4797
4798 ;;
4799esac
4800
4801test -z "$AS" && AS=as
4802
4803
4804
4805
4806
4807test -z "$DLLTOOL" && DLLTOOL=dlltool
4808
4809
4810
4811
4812
4813test -z "$OBJDUMP" && OBJDUMP=objdump
4814
4815
4816
4817
4818
4819
4820
4821# Find a good install program. We prefer a C program (faster),
4822# so one script is as good as another. But avoid the broken or
4823# incompatible versions:
4824# SysV /etc/install, /usr/sbin/install
4825# SunOS /usr/etc/install
4826# IRIX /sbin/install
4827# AIX /bin/install
4828# AmigaOS /C/install, which installs bootblocks on floppy discs
4829# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4830# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4831# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4832# OS/2's system install, which has a completely different semantic
4833# ./install, which can be erroneously created by make from ./install.sh.
4834# Reject install programs that cannot install multiple files.
4835{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4836$as_echo_n "checking for a BSD-compatible install... " >&6; }
4837if test -z "$INSTALL"; then
4838if test "${ac_cv_path_install+set}" = set; then
4839 $as_echo_n "(cached) " >&6
4840else
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842for as_dir in $PATH
4843do
4844 IFS=$as_save_IFS
4845 test -z "$as_dir" && as_dir=.
4846 # Account for people who put trailing slashes in PATH elements.
4847case $as_dir/ in
4848 ./ | .// | /cC/* | \
4849 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4850 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4851 /usr/ucb/* ) ;;
4852 *)
4853 # OSF1 and SCO ODT 3.0 have their own names for install.
4854 # Don't use installbsd from OSF since it installs stuff as root
4855 # by default.
4856 for ac_prog in ginstall scoinst install; do
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4859 if test $ac_prog = install &&
4860 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4861 # AIX install. It has an incompatible calling convention.
4862 :
4863 elif test $ac_prog = install &&
4864 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4865 # program-specific install script used by HP pwplus--don't use.
4866 :
4867 else
4868 rm -rf conftest.one conftest.two conftest.dir
4869 echo one > conftest.one
4870 echo two > conftest.two
4871 mkdir conftest.dir
4872 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4873 test -s conftest.one && test -s conftest.two &&
4874 test -s conftest.dir/conftest.one &&
4875 test -s conftest.dir/conftest.two
4876 then
4877 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4878 break 3
4879 fi
4880 fi
4881 fi
4882 done
4883 done
4884 ;;
4885esac
4886
4887done
4888IFS=$as_save_IFS
4889
4890rm -rf conftest.one conftest.two conftest.dir
4891
4892fi
4893 if test "${ac_cv_path_install+set}" = set; then
4894 INSTALL=$ac_cv_path_install
4895 else
4896 # As a last resort, use the slow shell script. Don't cache a
4897 # value for INSTALL within a source directory, because that will
4898 # break other packages using the cache if that directory is
4899 # removed, or if the value is a relative name.
4900 INSTALL=$ac_install_sh
4901 fi
4902fi
4903{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4904$as_echo "$INSTALL" >&6; }
4905
4906# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4907# It thinks the first close brace ends the variable substitution.
4908test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4909
4910test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4911
4912test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4913
4914{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4915$as_echo_n "checking whether ln -s works... " >&6; }
4916LN_S=$as_ln_s
4917if test "$LN_S" = "ln -s"; then
4918 { $as_echo "$as_me:$LINENO: result: yes" >&5
4919$as_echo "yes" >&6; }
4920else
4921 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4922$as_echo "no, using $LN_S" >&6; }
4923fi
4924
4925{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4926$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4927set x ${MAKE-make}
4928ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4929if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4930 $as_echo_n "(cached) " >&6
4931else
4932 cat >conftest.make <<\_ACEOF
4933SHELL = /bin/sh
4934all:
4935 @echo '@@@%%%=$(MAKE)=@@@%%%'
4936_ACEOF
4937# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4938case `${MAKE-make} -f conftest.make 2>/dev/null` in
4939 *@@@%%%=?*=@@@%%%*)
4940 eval ac_cv_prog_make_${ac_make}_set=yes;;
4941 *)
4942 eval ac_cv_prog_make_${ac_make}_set=no;;
4943esac
4944rm -f conftest.make
4945fi
4946if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4947 { $as_echo "$as_me:$LINENO: result: yes" >&5
4948$as_echo "yes" >&6; }
4949 SET_MAKE=
4950else
4951 { $as_echo "$as_me:$LINENO: result: no" >&5
4952$as_echo "no" >&6; }
4953 SET_MAKE="MAKE=${MAKE-make}"
4954fi
4955
4956case `pwd` in
4957 *\ * | *\ *)
4958 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4959$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4960esac
4961
4962
4963
4964macro_version='2.2.3a'
4965macro_revision='1.2971'
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979ltmain="$ac_aux_dir/ltmain.sh"
4980
4981{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4982$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4983if test "${lt_cv_path_NM+set}" = set; then
4984 $as_echo_n "(cached) " >&6
4985else
4986 if test -n "$NM"; then
4987 # Let the user override the test.
4988 lt_cv_path_NM="$NM"
4989else
4990 lt_nm_to_check="${ac_tool_prefix}nm"
4991 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4992 lt_nm_to_check="$lt_nm_to_check nm"
4993 fi
4994 for lt_tmp_nm in $lt_nm_to_check; do
4995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4996 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4997 IFS="$lt_save_ifs"
4998 test -z "$ac_dir" && ac_dir=.
4999 tmp_nm="$ac_dir/$lt_tmp_nm"
5000 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5001 # Check to see if the nm accepts a BSD-compat flag.
5002 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5003 # nm: unknown option "B" ignored
5004 # Tru64's nm complains that /dev/null is an invalid object file
5005 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5006 */dev/null* | *'Invalid file or object type'*)
5007 lt_cv_path_NM="$tmp_nm -B"
5008 break
5009 ;;
5010 *)
5011 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5012 */dev/null*)
5013 lt_cv_path_NM="$tmp_nm -p"
5014 break
5015 ;;
5016 *)
5017 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5018 continue # so that we can try to find one that supports BSD flags
5019 ;;
5020 esac
5021 ;;
5022 esac
5023 fi
5024 done
5025 IFS="$lt_save_ifs"
5026 done
5027 : ${lt_cv_path_NM=no}
5028fi
5029fi
5030{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5031$as_echo "$lt_cv_path_NM" >&6; }
5032if test "$lt_cv_path_NM" != "no"; then
5033 NM="$lt_cv_path_NM"
5034else
5035 # Didn't find any BSD compatible name lister, look for dumpbin.
5036 if test -n "$ac_tool_prefix"; then
5037 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5038 do
5039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5040set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5041{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5042$as_echo_n "checking for $ac_word... " >&6; }
5043if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5044 $as_echo_n "(cached) " >&6
5045else
5046 if test -n "$DUMPBIN"; then
5047 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5048else
5049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050for as_dir in $PATH
5051do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5059 fi
5060done
5061done
5062IFS=$as_save_IFS
5063
5064fi
5065fi
5066DUMPBIN=$ac_cv_prog_DUMPBIN
5067if test -n "$DUMPBIN"; then
5068 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5069$as_echo "$DUMPBIN" >&6; }
5070else
5071 { $as_echo "$as_me:$LINENO: result: no" >&5
5072$as_echo "no" >&6; }
5073fi
5074
5075
5076 test -n "$DUMPBIN" && break
5077 done
5078fi
5079if test -z "$DUMPBIN"; then
5080 ac_ct_DUMPBIN=$DUMPBIN
5081 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5082do
5083 # Extract the first word of "$ac_prog", so it can be a program name with args.
5084set dummy $ac_prog; ac_word=$2
5085{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5086$as_echo_n "checking for $ac_word... " >&6; }
5087if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5088 $as_echo_n "(cached) " >&6
5089else
5090 if test -n "$ac_ct_DUMPBIN"; then
5091 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5092else
5093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094for as_dir in $PATH
5095do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5101 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104done
5105done
5106IFS=$as_save_IFS
5107
5108fi
5109fi
5110ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5111if test -n "$ac_ct_DUMPBIN"; then
5112 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5113$as_echo "$ac_ct_DUMPBIN" >&6; }
5114else
5115 { $as_echo "$as_me:$LINENO: result: no" >&5
5116$as_echo "no" >&6; }
5117fi
5118
5119
5120 test -n "$ac_ct_DUMPBIN" && break
5121done
5122
5123 if test "x$ac_ct_DUMPBIN" = x; then
5124 DUMPBIN=":"
5125 else
5126 case $cross_compiling:$ac_tool_warned in
5127yes:)
5128{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5129whose name does not start with the host triplet. If you think this
5130configuration is useful to you, please write to autoconf@gnu.org." >&5
5131$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5132whose name does not start with the host triplet. If you think this
5133configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5134ac_tool_warned=yes ;;
5135esac
5136 DUMPBIN=$ac_ct_DUMPBIN
5137 fi
5138fi
5139
5140
5141 if test "$DUMPBIN" != ":"; then
5142 NM="$DUMPBIN"
5143 fi
5144fi
5145test -z "$NM" && NM=nm
5146
5147
5148
5149
5150
5151
5152{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5153$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5154if test "${lt_cv_nm_interface+set}" = set; then
5155 $as_echo_n "(cached) " >&6
5156else
5157 lt_cv_nm_interface="BSD nm"
5158 echo "int some_variable = 0;" > conftest.$ac_ext
5159 (eval echo "\"\$as_me:5159: $ac_compile\"" >&5)
5160 (eval "$ac_compile" 2>conftest.err)
5161 cat conftest.err >&5
5162 (eval echo "\"\$as_me:5162: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5163 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5164 cat conftest.err >&5
5165 (eval echo "\"\$as_me:5165: output\"" >&5)
5166 cat conftest.out >&5
5167 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5168 lt_cv_nm_interface="MS dumpbin"
5169 fi
5170 rm -f conftest*
5171fi
5172{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5173$as_echo "$lt_cv_nm_interface" >&6; }
5174
5175# find the maximum length of command line arguments
5176{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5177$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5178if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5179 $as_echo_n "(cached) " >&6
5180else
5181 i=0
5182 teststring="ABCD"
5183
5184 case $build_os in
5185 msdosdjgpp*)
5186 # On DJGPP, this test can blow up pretty badly due to problems in libc
5187 # (any single argument exceeding 2000 bytes causes a buffer overrun
5188 # during glob expansion). Even if it were fixed, the result of this
5189 # check would be larger than it should be.
5190 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5191 ;;
5192
5193 gnu*)
5194 # Under GNU Hurd, this test is not required because there is
5195 # no limit to the length of command line arguments.
5196 # Libtool will interpret -1 as no limit whatsoever
5197 lt_cv_sys_max_cmd_len=-1;
5198 ;;
5199
5200 cygwin* | mingw*)
5201 # On Win9x/ME, this test blows up -- it succeeds, but takes
5202 # about 5 minutes as the teststring grows exponentially.
5203 # Worse, since 9x/ME are not pre-emptively multitasking,
5204 # you end up with a "frozen" computer, even though with patience
5205 # the test eventually succeeds (with a max line length of 256k).
5206 # Instead, let's just punt: use the minimum linelength reported by
5207 # all of the supported platforms: 8192 (on NT/2K/XP).
5208 lt_cv_sys_max_cmd_len=8192;
5209 ;;
5210
5211 amigaos*)
5212 # On AmigaOS with pdksh, this test takes hours, literally.
5213 # So we just punt and use a minimum line length of 8192.
5214 lt_cv_sys_max_cmd_len=8192;
5215 ;;
5216
5217 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5218 # This has been around since 386BSD, at least. Likely further.
5219 if test -x /sbin/sysctl; then
5220 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5221 elif test -x /usr/sbin/sysctl; then
5222 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5223 else
5224 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5225 fi
5226 # And add a safety zone
5227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5229 ;;
5230
5231 interix*)
5232 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5233 lt_cv_sys_max_cmd_len=196608
5234 ;;
5235
5236 osf*)
5237 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5238 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5239 # nice to cause kernel panics so lets avoid the loop below.
5240 # First set a reasonable default.
5241 lt_cv_sys_max_cmd_len=16384
5242 #
5243 if test -x /sbin/sysconfig; then
5244 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5245 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5246 esac
5247 fi
5248 ;;
5249 sco3.2v5*)
5250 lt_cv_sys_max_cmd_len=102400
5251 ;;
5252 sysv5* | sco5v6* | sysv4.2uw2*)
5253 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5254 if test -n "$kargmax"; then
5255 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5256 else
5257 lt_cv_sys_max_cmd_len=32768
5258 fi
5259 ;;
5260 *)
5261 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5262 if test -n "$lt_cv_sys_max_cmd_len"; then
5263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5265 else
5266 # Make teststring a little bigger before we do anything with it.
5267 # a 1K string should be a reasonable start.
5268 for i in 1 2 3 4 5 6 7 8 ; do
5269 teststring=$teststring$teststring
5270 done
5271 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5272 # If test is not a shell built-in, we'll probably end up computing a
5273 # maximum length that is only half of the actual maximum length, but
5274 # we can't tell.
5275 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5276 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5277 test $i != 17 # 1/2 MB should be enough
5278 do
5279 i=`expr $i + 1`
5280 teststring=$teststring$teststring
5281 done
5282 # Only check the string length outside the loop.
5283 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5284 teststring=
5285 # Add a significant safety factor because C++ compilers can tack on
5286 # massive amounts of additional arguments before passing them to the
5287 # linker. It appears as though 1/2 is a usable value.
5288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5289 fi
5290 ;;
5291 esac
5292
5293fi
5294
5295if test -n $lt_cv_sys_max_cmd_len ; then
5296 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5297$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5298else
5299 { $as_echo "$as_me:$LINENO: result: none" >&5
5300$as_echo "none" >&6; }
5301fi
5302max_cmd_len=$lt_cv_sys_max_cmd_len
5303
5304
5305
5306
5307
5308
5309: ${CP="cp -f"}
5310: ${MV="mv -f"}
5311: ${RM="rm -f"}
5312
5313{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5314$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5315# Try some XSI features
5316xsi_shell=no
5317( _lt_dummy="a/b/c"
5318 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5319 = c,a/b,, \
5320 && eval 'test $(( 1 + 1 )) -eq 2 \
5321 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5322 && xsi_shell=yes
5323{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5324$as_echo "$xsi_shell" >&6; }
5325
5326
5327{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5328$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5329lt_shell_append=no
5330( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5331 >/dev/null 2>&1 \
5332 && lt_shell_append=yes
5333{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5334$as_echo "$lt_shell_append" >&6; }
5335
5336
5337if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5338 lt_unset=unset
5339else
5340 lt_unset=false
5341fi
5342
5343
5344
5345
5346
5347# test EBCDIC or ASCII
5348case `echo X|tr X '\101'` in
5349 A) # ASCII based system
5350 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5351 lt_SP2NL='tr \040 \012'
5352 lt_NL2SP='tr \015\012 \040\040'
5353 ;;
5354 *) # EBCDIC based system
5355 lt_SP2NL='tr \100 \n'
5356 lt_NL2SP='tr \r\n \100\100'
5357 ;;
5358esac
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5369$as_echo_n "checking for $LD option to reload object files... " >&6; }
5370if test "${lt_cv_ld_reload_flag+set}" = set; then
5371 $as_echo_n "(cached) " >&6
5372else
5373 lt_cv_ld_reload_flag='-r'
5374fi
5375{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5376$as_echo "$lt_cv_ld_reload_flag" >&6; }
5377reload_flag=$lt_cv_ld_reload_flag
5378case $reload_flag in
5379"" | " "*) ;;
5380*) reload_flag=" $reload_flag" ;;
5381esac
5382reload_cmds='$LD$reload_flag -o $output$reload_objs'
5383case $host_os in
5384 darwin*)
5385 if test "$GCC" = yes; then
5386 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5387 else
5388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5389 fi
5390 ;;
5391esac
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5403$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5404if test "${lt_cv_deplibs_check_method+set}" = set; then
5405 $as_echo_n "(cached) " >&6
5406else
5407 lt_cv_file_magic_cmd='$MAGIC_CMD'
5408lt_cv_file_magic_test_file=
5409lt_cv_deplibs_check_method='unknown'
5410# Need to set the preceding variable on all platforms that support
5411# interlibrary dependencies.
5412# 'none' -- dependencies not supported.
5413# `unknown' -- same as none, but documents that we really don't know.
5414# 'pass_all' -- all dependencies passed with no checks.
5415# 'test_compile' -- check by making test program.
5416# 'file_magic [[regex]]' -- check by looking for files in library path
5417# which responds to the $file_magic_cmd with a given extended regex.
5418# If you have `file' or equivalent on your system and you're not sure
5419# whether `pass_all' will *always* work, you probably want this one.
5420
5421case $host_os in
5422aix[4-9]*)
5423 lt_cv_deplibs_check_method=pass_all
5424 ;;
5425
5426beos*)
5427 lt_cv_deplibs_check_method=pass_all
5428 ;;
5429
5430bsdi[45]*)
5431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5432 lt_cv_file_magic_cmd='/usr/bin/file -L'
5433 lt_cv_file_magic_test_file=/shlib/libc.so
5434 ;;
5435
5436cygwin*)
5437 # func_win32_libid is a shell function defined in ltmain.sh
5438 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5439 lt_cv_file_magic_cmd='func_win32_libid'
5440 ;;
5441
5442mingw* | pw32*)
5443 # Base MSYS/MinGW do not provide the 'file' command needed by
5444 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5445 # unless we find 'file', for example because we are cross-compiling.
5446 if ( file / ) >/dev/null 2>&1; then
5447 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5448 lt_cv_file_magic_cmd='func_win32_libid'
5449 else
5450 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5451 lt_cv_file_magic_cmd='$OBJDUMP -f'
5452 fi
5453 ;;
5454
5455darwin* | rhapsody*)
5456 lt_cv_deplibs_check_method=pass_all
5457 ;;
5458
5459freebsd* | dragonfly*)
5460 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5461 case $host_cpu in
5462 i*86 )
5463 # Not sure whether the presence of OpenBSD here was a mistake.
5464 # Let's accept both of them until this is cleared up.
5465 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5466 lt_cv_file_magic_cmd=/usr/bin/file
5467 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5468 ;;
5469 esac
5470 else
5471 lt_cv_deplibs_check_method=pass_all
5472 fi
5473 ;;
5474
5475gnu*)
5476 lt_cv_deplibs_check_method=pass_all
5477 ;;
5478
5479hpux10.20* | hpux11*)
5480 lt_cv_file_magic_cmd=/usr/bin/file
5481 case $host_cpu in
5482 ia64*)
5483 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5484 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5485 ;;
5486 hppa*64*)
5487 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]'
5488 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5489 ;;
5490 *)
5491 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5492 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5493 ;;
5494 esac
5495 ;;
5496
5497interix[3-9]*)
5498 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5500 ;;
5501
5502irix5* | irix6* | nonstopux*)
5503 case $LD in
5504 *-32|*"-32 ") libmagic=32-bit;;
5505 *-n32|*"-n32 ") libmagic=N32;;
5506 *-64|*"-64 ") libmagic=64-bit;;
5507 *) libmagic=never-match;;
5508 esac
5509 lt_cv_deplibs_check_method=pass_all
5510 ;;
5511
5512# This must be Linux ELF.
5513linux* | k*bsd*-gnu)
5514 lt_cv_deplibs_check_method=pass_all
5515 ;;
5516
5517netbsd*)
5518 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5520 else
5521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5522 fi
5523 ;;
5524
5525newos6*)
5526 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5527 lt_cv_file_magic_cmd=/usr/bin/file
5528 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5529 ;;
5530
5531*nto* | *qnx*)
5532 lt_cv_deplibs_check_method=pass_all
5533 ;;
5534
5535openbsd*)
5536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5537 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5538 else
5539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5540 fi
5541 ;;
5542
5543osf3* | osf4* | osf5*)
5544 lt_cv_deplibs_check_method=pass_all
5545 ;;
5546
5547rdos*)
5548 lt_cv_deplibs_check_method=pass_all
5549 ;;
5550
5551solaris*)
5552 lt_cv_deplibs_check_method=pass_all
5553 ;;
5554
5555sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5556 lt_cv_deplibs_check_method=pass_all
5557 ;;
5558
5559sysv4 | sysv4.3*)
5560 case $host_vendor in
5561 motorola)
5562 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]'
5563 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5564 ;;
5565 ncr)
5566 lt_cv_deplibs_check_method=pass_all
5567 ;;
5568 sequent)
5569 lt_cv_file_magic_cmd='/bin/file'
5570 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5571 ;;
5572 sni)
5573 lt_cv_file_magic_cmd='/bin/file'
5574 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5575 lt_cv_file_magic_test_file=/lib/libc.so
5576 ;;
5577 siemens)
5578 lt_cv_deplibs_check_method=pass_all
5579 ;;
5580 pc)
5581 lt_cv_deplibs_check_method=pass_all
5582 ;;
5583 esac
5584 ;;
5585
5586tpf*)
5587 lt_cv_deplibs_check_method=pass_all
5588 ;;
5589esac
5590
5591fi
5592{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5593$as_echo "$lt_cv_deplibs_check_method" >&6; }
5594file_magic_cmd=$lt_cv_file_magic_cmd
5595deplibs_check_method=$lt_cv_deplibs_check_method
5596test -z "$deplibs_check_method" && deplibs_check_method=unknown
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609if test -n "$ac_tool_prefix"; then
5610 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5611set dummy ${ac_tool_prefix}ar; ac_word=$2
5612{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5613$as_echo_n "checking for $ac_word... " >&6; }
5614if test "${ac_cv_prog_AR+set}" = set; then
5615 $as_echo_n "(cached) " >&6
5616else
5617 if test -n "$AR"; then
5618 ac_cv_prog_AR="$AR" # Let the user override the test.
5619else
5620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621for as_dir in $PATH
5622do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627 ac_cv_prog_AR="${ac_tool_prefix}ar"
5628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5630 fi
5631done
5632done
5633IFS=$as_save_IFS
5634
5635fi
5636fi
5637AR=$ac_cv_prog_AR
5638if test -n "$AR"; then
5639 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5640$as_echo "$AR" >&6; }
5641else
5642 { $as_echo "$as_me:$LINENO: result: no" >&5
5643$as_echo "no" >&6; }
5644fi
5645
5646
5647fi
5648if test -z "$ac_cv_prog_AR"; then
5649 ac_ct_AR=$AR
5650 # Extract the first word of "ar", so it can be a program name with args.
5651set dummy ar; ac_word=$2
5652{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5653$as_echo_n "checking for $ac_word... " >&6; }
5654if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5655 $as_echo_n "(cached) " >&6
5656else
5657 if test -n "$ac_ct_AR"; then
5658 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5659else
5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661for as_dir in $PATH
5662do
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 ac_cv_prog_ac_ct_AR="ar"
5668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 break 2
5670 fi
5671done
5672done
5673IFS=$as_save_IFS
5674
5675fi
5676fi
5677ac_ct_AR=$ac_cv_prog_ac_ct_AR
5678if test -n "$ac_ct_AR"; then
5679 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5680$as_echo "$ac_ct_AR" >&6; }
5681else
5682 { $as_echo "$as_me:$LINENO: result: no" >&5
5683$as_echo "no" >&6; }
5684fi
5685
5686 if test "x$ac_ct_AR" = x; then
5687 AR="false"
5688 else
5689 case $cross_compiling:$ac_tool_warned in
5690yes:)
5691{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5692whose name does not start with the host triplet. If you think this
5693configuration is useful to you, please write to autoconf@gnu.org." >&5
5694$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5695whose name does not start with the host triplet. If you think this
5696configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5697ac_tool_warned=yes ;;
5698esac
5699 AR=$ac_ct_AR
5700 fi
5701else
5702 AR="$ac_cv_prog_AR"
5703fi
5704
5705test -z "$AR" && AR=ar
5706test -z "$AR_FLAGS" && AR_FLAGS=cru
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718if test -n "$ac_tool_prefix"; then
5719 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5720set dummy ${ac_tool_prefix}strip; ac_word=$2
5721{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5722$as_echo_n "checking for $ac_word... " >&6; }
5723if test "${ac_cv_prog_STRIP+set}" = set; then
5724 $as_echo_n "(cached) " >&6
5725else
5726 if test -n "$STRIP"; then
5727 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5728else
5729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730for as_dir in $PATH
5731do
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5736 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5737 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 break 2
5739 fi
5740done
5741done
5742IFS=$as_save_IFS
5743
5744fi
5745fi
5746STRIP=$ac_cv_prog_STRIP
5747if test -n "$STRIP"; then
5748 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5749$as_echo "$STRIP" >&6; }
5750else
5751 { $as_echo "$as_me:$LINENO: result: no" >&5
5752$as_echo "no" >&6; }
5753fi
5754
5755
5756fi
5757if test -z "$ac_cv_prog_STRIP"; then
5758 ac_ct_STRIP=$STRIP
5759 # Extract the first word of "strip", so it can be a program name with args.
5760set dummy strip; ac_word=$2
5761{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5762$as_echo_n "checking for $ac_word... " >&6; }
5763if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5764 $as_echo_n "(cached) " >&6
5765else
5766 if test -n "$ac_ct_STRIP"; then
5767 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5768else
5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770for as_dir in $PATH
5771do
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5776 ac_cv_prog_ac_ct_STRIP="strip"
5777 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5779 fi
5780done
5781done
5782IFS=$as_save_IFS
5783
5784fi
5785fi
5786ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5787if test -n "$ac_ct_STRIP"; then
5788 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5789$as_echo "$ac_ct_STRIP" >&6; }
5790else
5791 { $as_echo "$as_me:$LINENO: result: no" >&5
5792$as_echo "no" >&6; }
5793fi
5794
5795 if test "x$ac_ct_STRIP" = x; then
5796 STRIP=":"
5797 else
5798 case $cross_compiling:$ac_tool_warned in
5799yes:)
5800{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5801whose name does not start with the host triplet. If you think this
5802configuration is useful to you, please write to autoconf@gnu.org." >&5
5803$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5804whose name does not start with the host triplet. If you think this
5805configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5806ac_tool_warned=yes ;;
5807esac
5808 STRIP=$ac_ct_STRIP
5809 fi
5810else
5811 STRIP="$ac_cv_prog_STRIP"
5812fi
5813
5814test -z "$STRIP" && STRIP=:
5815
5816
5817
5818
5819
5820
5821if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5823set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5824{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5825$as_echo_n "checking for $ac_word... " >&6; }
5826if test "${ac_cv_prog_RANLIB+set}" = set; then
5827 $as_echo_n "(cached) " >&6
5828else
5829 if test -n "$RANLIB"; then
5830 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5831else
5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 break 2
5842 fi
5843done
5844done
5845IFS=$as_save_IFS
5846
5847fi
5848fi
5849RANLIB=$ac_cv_prog_RANLIB
5850if test -n "$RANLIB"; then
5851 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5852$as_echo "$RANLIB" >&6; }
5853else
5854 { $as_echo "$as_me:$LINENO: result: no" >&5
5855$as_echo "no" >&6; }
5856fi
5857
5858
5859fi
5860if test -z "$ac_cv_prog_RANLIB"; then
5861 ac_ct_RANLIB=$RANLIB
5862 # Extract the first word of "ranlib", so it can be a program name with args.
5863set dummy ranlib; ac_word=$2
5864{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5865$as_echo_n "checking for $ac_word... " >&6; }
5866if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5867 $as_echo_n "(cached) " >&6
5868else
5869 if test -n "$ac_ct_RANLIB"; then
5870 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5871else
5872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873for as_dir in $PATH
5874do
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_ac_ct_RANLIB="ranlib"
5880 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5882 fi
5883done
5884done
5885IFS=$as_save_IFS
5886
5887fi
5888fi
5889ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5890if test -n "$ac_ct_RANLIB"; then
5891 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5892$as_echo "$ac_ct_RANLIB" >&6; }
5893else
5894 { $as_echo "$as_me:$LINENO: result: no" >&5
5895$as_echo "no" >&6; }
5896fi
5897
5898 if test "x$ac_ct_RANLIB" = x; then
5899 RANLIB=":"
5900 else
5901 case $cross_compiling:$ac_tool_warned in
5902yes:)
5903{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5904whose name does not start with the host triplet. If you think this
5905configuration is useful to you, please write to autoconf@gnu.org." >&5
5906$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5907whose name does not start with the host triplet. If you think this
5908configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5909ac_tool_warned=yes ;;
5910esac
5911 RANLIB=$ac_ct_RANLIB
5912 fi
5913else
5914 RANLIB="$ac_cv_prog_RANLIB"
5915fi
5916
5917test -z "$RANLIB" && RANLIB=:
5918
5919
5920
5921
5922
5923
5924# Determine commands to create old-style static archives.
5925old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5926old_postinstall_cmds='chmod 644 $oldlib'
5927old_postuninstall_cmds=
5928
5929if test -n "$RANLIB"; then
5930 case $host_os in
5931 openbsd*)
5932 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5933 ;;
5934 *)
5935 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5936 ;;
5937 esac
5938 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5939fi
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974# If no C compiler was specified, use CC.
5975LTCC=${LTCC-"$CC"}
5976
5977# If no C compiler flags were specified, use CFLAGS.
5978LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5979
5980# Allow CC to be a program name with arguments.
5981compiler=$CC
5982
5983
5984# Check for command to grab the raw symbol name followed by C symbol from nm.
5985{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5986$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5987if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5988 $as_echo_n "(cached) " >&6
5989else
5990
5991# These are sane defaults that work on at least a few old systems.
5992# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5993
5994# Character class describing NM global symbol codes.
5995symcode='[BCDEGRST]'
5996
5997# Regexp to match symbols that can be accessed directly from C.
5998sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5999
6000# Define system-specific variables.
6001case $host_os in
6002aix*)
6003 symcode='[BCDT]'
6004 ;;
6005cygwin* | mingw* | pw32*)
6006 symcode='[ABCDGISTW]'
6007 ;;
6008hpux*)
6009 if test "$host_cpu" = ia64; then
6010 symcode='[ABCDEGRST]'
6011 fi
6012 ;;
6013irix* | nonstopux*)
6014 symcode='[BCDEGRST]'
6015 ;;
6016osf*)
6017 symcode='[BCDEGQRST]'
6018 ;;
6019solaris*)
6020 symcode='[BDRT]'
6021 ;;
6022sco3.2v5*)
6023 symcode='[DT]'
6024 ;;
6025sysv4.2uw2*)
6026 symcode='[DT]'
6027 ;;
6028sysv5* | sco5v6* | unixware* | OpenUNIX*)
6029 symcode='[ABDT]'
6030 ;;
6031sysv4)
6032 symcode='[DFNSTU]'
6033 ;;
6034esac
6035
6036# If we're using GNU nm, then use its standard symbol codes.
6037case `$NM -V 2>&1` in
6038*GNU* | *'with BFD'*)
6039 symcode='[ABCDGIRSTW]' ;;
6040esac
6041
6042# Transform an extracted symbol line into a proper C declaration.
6043# Some systems (esp. on ia64) link data and code symbols differently,
6044# so use this general approach.
6045lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6046
6047# Transform an extracted symbol line into symbol name and symbol address
6048lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6049lt_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'"
6050
6051# Handle CRLF in mingw tool chain
6052opt_cr=
6053case $build_os in
6054mingw*)
6055 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6056 ;;
6057esac
6058
6059# Try without a prefix underscore, then with it.
6060for ac_symprfx in "" "_"; do
6061
6062 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6063 symxfrm="\\1 $ac_symprfx\\2 \\2"
6064
6065 # Write the raw and C identifiers.
6066 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6067 # Fake it for dumpbin and say T for any non-static function
6068 # and D for any global variable.
6069 # Also find C++ and __fastcall symbols from MSVC++,
6070 # which start with @ or ?.
6071 lt_cv_sys_global_symbol_pipe="$AWK '"\
6072" {last_section=section; section=\$ 3};"\
6073" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6074" \$ 0!~/External *\|/{next};"\
6075" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6076" {if(hide[section]) next};"\
6077" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6078" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6079" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6080" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6081" ' prfx=^$ac_symprfx"
6082 else
6083 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6084 fi
6085
6086 # Check to see that the pipe works correctly.
6087 pipe_works=no
6088
6089 rm -f conftest*
6090 cat > conftest.$ac_ext <<_LT_EOF
6091#ifdef __cplusplus
6092extern "C" {
6093#endif
6094char nm_test_var;
6095void nm_test_func(void);
6096void nm_test_func(void){}
6097#ifdef __cplusplus
6098}
6099#endif
6100int main(){nm_test_var='a';nm_test_func();return(0);}
6101_LT_EOF
6102
6103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6104 (eval $ac_compile) 2>&5
6105 ac_status=$?
6106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; then
6108 # Now try to grab the symbols.
6109 nlist=conftest.nm
6110 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6111 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6112 ac_status=$?
6113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } && test -s "$nlist"; then
6115 # Try sorting and uniquifying the output.
6116 if sort "$nlist" | uniq > "$nlist"T; then
6117 mv -f "$nlist"T "$nlist"
6118 else
6119 rm -f "$nlist"T
6120 fi
6121
6122 # Make sure that we snagged all the symbols we need.
6123 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6124 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6125 cat <<_LT_EOF > conftest.$ac_ext
6126#ifdef __cplusplus
6127extern "C" {
6128#endif
6129
6130_LT_EOF
6131 # Now generate the symbol file.
6132 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6133
6134 cat <<_LT_EOF >> conftest.$ac_ext
6135
6136/* The mapping between symbol names and symbols. */
6137const struct {
6138 const char *name;
6139 void *address;
6140}
6141lt__PROGRAM__LTX_preloaded_symbols[] =
6142{
6143 { "@PROGRAM@", (void *) 0 },
6144_LT_EOF
6145 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6146 cat <<\_LT_EOF >> conftest.$ac_ext
6147 {0, (void *) 0}
6148};
6149
6150/* This works around a problem in FreeBSD linker */
6151#ifdef FREEBSD_WORKAROUND
6152static const void *lt_preloaded_setup() {
6153 return lt__PROGRAM__LTX_preloaded_symbols;
6154}
6155#endif
6156
6157#ifdef __cplusplus
6158}
6159#endif
6160_LT_EOF
6161 # Now try linking the two files.
6162 mv conftest.$ac_objext conftstm.$ac_objext
6163 lt_save_LIBS="$LIBS"
6164 lt_save_CFLAGS="$CFLAGS"
6165 LIBS="conftstm.$ac_objext"
6166 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6168 (eval $ac_link) 2>&5
6169 ac_status=$?
6170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6172 pipe_works=yes
6173 fi
6174 LIBS="$lt_save_LIBS"
6175 CFLAGS="$lt_save_CFLAGS"
6176 else
6177 echo "cannot find nm_test_func in $nlist" >&5
6178 fi
6179 else
6180 echo "cannot find nm_test_var in $nlist" >&5
6181 fi
6182 else
6183 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6184 fi
6185 else
6186 echo "$progname: failed program was:" >&5
6187 cat conftest.$ac_ext >&5
6188 fi
6189 rm -rf conftest* conftst*
6190
6191 # Do not use the global_symbol_pipe unless it works.
6192 if test "$pipe_works" = yes; then
6193 break
6194 else
6195 lt_cv_sys_global_symbol_pipe=
6196 fi
6197done
6198
6199fi
6200
6201if test -z "$lt_cv_sys_global_symbol_pipe"; then
6202 lt_cv_sys_global_symbol_to_cdecl=
6203fi
6204if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6205 { $as_echo "$as_me:$LINENO: result: failed" >&5
6206$as_echo "failed" >&6; }
6207else
6208 { $as_echo "$as_me:$LINENO: result: ok" >&5
6209$as_echo "ok" >&6; }
6210fi
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234# Check whether --enable-libtool-lock was given.
6235if test "${enable_libtool_lock+set}" = set; then
6236 enableval=$enable_libtool_lock;
6237fi
6238
6239test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6240
6241# Some flags need to be propagated to the compiler or linker for good
6242# libtool support.
6243case $host in
6244ia64-*-hpux*)
6245 # Find out which ABI we are using.
6246 echo 'int i;' > conftest.$ac_ext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>&5
6249 ac_status=$?
6250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; then
6252 case `/usr/bin/file conftest.$ac_objext` in
6253 *ELF-32*)
6254 HPUX_IA64_MODE="32"
6255 ;;
6256 *ELF-64*)
6257 HPUX_IA64_MODE="64"
6258 ;;
6259 esac
6260 fi
6261 rm -rf conftest*
6262 ;;
6263*-*-irix6*)
6264 # Find out which ABI we are using.
6265 echo '#line 6265 "configure"' > conftest.$ac_ext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6267 (eval $ac_compile) 2>&5
6268 ac_status=$?
6269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; then
6271 if test "$lt_cv_prog_gnu_ld" = yes; then
6272 case `/usr/bin/file conftest.$ac_objext` in
6273 *32-bit*)
6274 LD="${LD-ld} -melf32bsmip"
6275 ;;
6276 *N32*)
6277 LD="${LD-ld} -melf32bmipn32"
6278 ;;
6279 *64-bit*)
6280 LD="${LD-ld} -melf64bmip"
6281 ;;
6282 esac
6283 else
6284 case `/usr/bin/file conftest.$ac_objext` in
6285 *32-bit*)
6286 LD="${LD-ld} -32"
6287 ;;
6288 *N32*)
6289 LD="${LD-ld} -n32"
6290 ;;
6291 *64-bit*)
6292 LD="${LD-ld} -64"
6293 ;;
6294 esac
6295 fi
6296 fi
6297 rm -rf conftest*
6298 ;;
6299
6300x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6301s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6302 # Find out which ABI we are using.
6303 echo 'int i;' > conftest.$ac_ext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305 (eval $ac_compile) 2>&5
6306 ac_status=$?
6307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; then
6309 case `/usr/bin/file conftest.o` in
6310 *32-bit*)
6311 case $host in
6312 x86_64-*kfreebsd*-gnu)
6313 LD="${LD-ld} -m elf_i386_fbsd"
6314 ;;
6315 x86_64-*linux*)
6316 LD="${LD-ld} -m elf_i386"
6317 ;;
6318 ppc64-*linux*|powerpc64-*linux*)
6319 LD="${LD-ld} -m elf32ppclinux"
6320 ;;
6321 s390x-*linux*)
6322 LD="${LD-ld} -m elf_s390"
6323 ;;
6324 sparc64-*linux*)
6325 LD="${LD-ld} -m elf32_sparc"
6326 ;;
6327 esac
6328 ;;
6329 *64-bit*)
6330 case $host in
6331 x86_64-*kfreebsd*-gnu)
6332 LD="${LD-ld} -m elf_x86_64_fbsd"
6333 ;;
6334 x86_64-*linux*)
6335 LD="${LD-ld} -m elf_x86_64"
6336 ;;
6337 ppc*-*linux*|powerpc*-*linux*)
6338 LD="${LD-ld} -m elf64ppc"
6339 ;;
6340 s390*-*linux*|s390*-*tpf*)
6341 LD="${LD-ld} -m elf64_s390"
6342 ;;
6343 sparc*-*linux*)
6344 LD="${LD-ld} -m elf64_sparc"
6345 ;;
6346 esac
6347 ;;
6348 esac
6349 fi
6350 rm -rf conftest*
6351 ;;
6352
6353*-*-sco3.2v5*)
6354 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6355 SAVE_CFLAGS="$CFLAGS"
6356 CFLAGS="$CFLAGS -belf"
6357 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6358$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6359if test "${lt_cv_cc_needs_belf+set}" = set; then
6360 $as_echo_n "(cached) " >&6
6361else
6362 ac_ext=c
6363ac_cpp='$CPP $CPPFLAGS'
6364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366ac_compiler_gnu=$ac_cv_c_compiler_gnu
6367
6368 cat >conftest.$ac_ext <<_ACEOF
6369/* confdefs.h. */
6370_ACEOF
6371cat confdefs.h >>conftest.$ac_ext
6372cat >>conftest.$ac_ext <<_ACEOF
6373/* end confdefs.h. */
6374
6375int
6376main ()
6377{
6378
6379 ;
6380 return 0;
6381}
6382_ACEOF
6383rm -f conftest.$ac_objext conftest$ac_exeext
6384if { (ac_try="$ac_link"
6385case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388esac
6389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6390$as_echo "$ac_try_echo") >&5
6391 (eval "$ac_link") 2>conftest.er1
6392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest$ac_exeext && {
6401 test "$cross_compiling" = yes ||
6402 $as_test_x conftest$ac_exeext
6403 }; then
6404 lt_cv_cc_needs_belf=yes
6405else
6406 $as_echo "$as_me: failed program was:" >&5
6407sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 lt_cv_cc_needs_belf=no
6410fi
6411
6412rm -rf conftest.dSYM
6413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6414 conftest$ac_exeext conftest.$ac_ext
6415 ac_ext=c
6416ac_cpp='$CPP $CPPFLAGS'
6417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6419ac_compiler_gnu=$ac_cv_c_compiler_gnu
6420
6421fi
6422{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6423$as_echo "$lt_cv_cc_needs_belf" >&6; }
6424 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6425 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6426 CFLAGS="$SAVE_CFLAGS"
6427 fi
6428 ;;
6429sparc*-*solaris*)
6430 # Find out which ABI we are using.
6431 echo 'int i;' > conftest.$ac_ext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433 (eval $ac_compile) 2>&5
6434 ac_status=$?
6435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; then
6437 case `/usr/bin/file conftest.o` in
6438 *64-bit*)
6439 case $lt_cv_prog_gnu_ld in
6440 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6441 *)
6442 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6443 LD="${LD-ld} -64"
6444 fi
6445 ;;
6446 esac
6447 ;;
6448 esac
6449 fi
6450 rm -rf conftest*
6451 ;;
6452esac
6453
6454need_locks="$enable_libtool_lock"
6455
6456
6457 case $host_os in
6458 rhapsody* | darwin*)
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6461set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6463$as_echo_n "checking for $ac_word... " >&6; }
6464if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6465 $as_echo_n "(cached) " >&6
6466else
6467 if test -n "$DSYMUTIL"; then
6468 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6469else
6470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471for as_dir in $PATH
6472do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6480 fi
6481done
6482done
6483IFS=$as_save_IFS
6484
6485fi
6486fi
6487DSYMUTIL=$ac_cv_prog_DSYMUTIL
6488if test -n "$DSYMUTIL"; then
6489 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6490$as_echo "$DSYMUTIL" >&6; }
6491else
6492 { $as_echo "$as_me:$LINENO: result: no" >&5
6493$as_echo "no" >&6; }
6494fi
6495
6496
6497fi
6498if test -z "$ac_cv_prog_DSYMUTIL"; then
6499 ac_ct_DSYMUTIL=$DSYMUTIL
6500 # Extract the first word of "dsymutil", so it can be a program name with args.
6501set dummy dsymutil; ac_word=$2
6502{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6503$as_echo_n "checking for $ac_word... " >&6; }
6504if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6505 $as_echo_n "(cached) " >&6
6506else
6507 if test -n "$ac_ct_DSYMUTIL"; then
6508 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6509else
6510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511for as_dir in $PATH
6512do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6517 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6520 fi
6521done
6522done
6523IFS=$as_save_IFS
6524
6525fi
6526fi
6527ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6528if test -n "$ac_ct_DSYMUTIL"; then
6529 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6530$as_echo "$ac_ct_DSYMUTIL" >&6; }
6531else
6532 { $as_echo "$as_me:$LINENO: result: no" >&5
6533$as_echo "no" >&6; }
6534fi
6535
6536 if test "x$ac_ct_DSYMUTIL" = x; then
6537 DSYMUTIL=":"
6538 else
6539 case $cross_compiling:$ac_tool_warned in
6540yes:)
6541{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6542whose name does not start with the host triplet. If you think this
6543configuration is useful to you, please write to autoconf@gnu.org." >&5
6544$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6545whose name does not start with the host triplet. If you think this
6546configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6547ac_tool_warned=yes ;;
6548esac
6549 DSYMUTIL=$ac_ct_DSYMUTIL
6550 fi
6551else
6552 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6553fi
6554
6555 if test -n "$ac_tool_prefix"; then
6556 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6557set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6558{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6559$as_echo_n "checking for $ac_word... " >&6; }
6560if test "${ac_cv_prog_NMEDIT+set}" = set; then
6561 $as_echo_n "(cached) " >&6
6562else
6563 if test -n "$NMEDIT"; then
6564 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6565else
6566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567for as_dir in $PATH
6568do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 break 2
6576 fi
6577done
6578done
6579IFS=$as_save_IFS
6580
6581fi
6582fi
6583NMEDIT=$ac_cv_prog_NMEDIT
6584if test -n "$NMEDIT"; then
6585 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6586$as_echo "$NMEDIT" >&6; }
6587else
6588 { $as_echo "$as_me:$LINENO: result: no" >&5
6589$as_echo "no" >&6; }
6590fi
6591
6592
6593fi
6594if test -z "$ac_cv_prog_NMEDIT"; then
6595 ac_ct_NMEDIT=$NMEDIT
6596 # Extract the first word of "nmedit", so it can be a program name with args.
6597set dummy nmedit; ac_word=$2
6598{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6599$as_echo_n "checking for $ac_word... " >&6; }
6600if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6601 $as_echo_n "(cached) " >&6
6602else
6603 if test -n "$ac_ct_NMEDIT"; then
6604 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6605else
6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 break 2
6616 fi
6617done
6618done
6619IFS=$as_save_IFS
6620
6621fi
6622fi
6623ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6624if test -n "$ac_ct_NMEDIT"; then
6625 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6626$as_echo "$ac_ct_NMEDIT" >&6; }
6627else
6628 { $as_echo "$as_me:$LINENO: result: no" >&5
6629$as_echo "no" >&6; }
6630fi
6631
6632 if test "x$ac_ct_NMEDIT" = x; then
6633 NMEDIT=":"
6634 else
6635 case $cross_compiling:$ac_tool_warned in
6636yes:)
6637{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6638whose name does not start with the host triplet. If you think this
6639configuration is useful to you, please write to autoconf@gnu.org." >&5
6640$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6641whose name does not start with the host triplet. If you think this
6642configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6643ac_tool_warned=yes ;;
6644esac
6645 NMEDIT=$ac_ct_NMEDIT
6646 fi
6647else
6648 NMEDIT="$ac_cv_prog_NMEDIT"
6649fi
6650
6651 if test -n "$ac_tool_prefix"; then
6652 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6653set dummy ${ac_tool_prefix}lipo; ac_word=$2
6654{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6655$as_echo_n "checking for $ac_word... " >&6; }
6656if test "${ac_cv_prog_LIPO+set}" = set; then
6657 $as_echo_n "(cached) " >&6
6658else
6659 if test -n "$LIPO"; then
6660 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6661else
6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663for as_dir in $PATH
6664do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6669 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673done
6674done
6675IFS=$as_save_IFS
6676
6677fi
6678fi
6679LIPO=$ac_cv_prog_LIPO
6680if test -n "$LIPO"; then
6681 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6682$as_echo "$LIPO" >&6; }
6683else
6684 { $as_echo "$as_me:$LINENO: result: no" >&5
6685$as_echo "no" >&6; }
6686fi
6687
6688
6689fi
6690if test -z "$ac_cv_prog_LIPO"; then
6691 ac_ct_LIPO=$LIPO
6692 # Extract the first word of "lipo", so it can be a program name with args.
6693set dummy lipo; ac_word=$2
6694{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6695$as_echo_n "checking for $ac_word... " >&6; }
6696if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6697 $as_echo_n "(cached) " >&6
6698else
6699 if test -n "$ac_ct_LIPO"; then
6700 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6701else
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_prog_ac_ct_LIPO="lipo"
6710 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713done
6714done
6715IFS=$as_save_IFS
6716
6717fi
6718fi
6719ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6720if test -n "$ac_ct_LIPO"; then
6721 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6722$as_echo "$ac_ct_LIPO" >&6; }
6723else
6724 { $as_echo "$as_me:$LINENO: result: no" >&5
6725$as_echo "no" >&6; }
6726fi
6727
6728 if test "x$ac_ct_LIPO" = x; then
6729 LIPO=":"
6730 else
6731 case $cross_compiling:$ac_tool_warned in
6732yes:)
6733{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6734whose name does not start with the host triplet. If you think this
6735configuration is useful to you, please write to autoconf@gnu.org." >&5
6736$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6737whose name does not start with the host triplet. If you think this
6738configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6739ac_tool_warned=yes ;;
6740esac
6741 LIPO=$ac_ct_LIPO
6742 fi
6743else
6744 LIPO="$ac_cv_prog_LIPO"
6745fi
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6764$as_echo_n "checking for -single_module linker flag... " >&6; }
6765if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6766 $as_echo_n "(cached) " >&6
6767else
6768 lt_cv_apple_cc_single_mod=no
6769 if test -z "${LT_MULTI_MODULE}"; then
6770 # By default we will add the -single_module flag. You can override
6771 # by either setting the environment variable LT_MULTI_MODULE
6772 # non-empty at configure time, or by adding -multi_module to the
6773 # link flags.
6774 rm -rf libconftest.dylib*
6775 echo "int foo(void){return 1;}" > conftest.c
6776 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6777-dynamiclib -Wl,-single_module conftest.c" >&5
6778 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6779 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6780 _lt_result=$?
6781 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6782 lt_cv_apple_cc_single_mod=yes
6783 else
6784 cat conftest.err >&5
6785 fi
6786 rm -rf libconftest.dylib*
6787 rm -f conftest.*
6788 fi
6789fi
6790{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6791$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6792 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6793$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6794if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6795 $as_echo_n "(cached) " >&6
6796else
6797 lt_cv_ld_exported_symbols_list=no
6798 save_LDFLAGS=$LDFLAGS
6799 echo "_main" > conftest.sym
6800 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6801 cat >conftest.$ac_ext <<_ACEOF
6802/* confdefs.h. */
6803_ACEOF
6804cat confdefs.h >>conftest.$ac_ext
6805cat >>conftest.$ac_ext <<_ACEOF
6806/* end confdefs.h. */
6807
6808int
6809main ()
6810{
6811
6812 ;
6813 return 0;
6814}
6815_ACEOF
6816rm -f conftest.$ac_objext conftest$ac_exeext
6817if { (ac_try="$ac_link"
6818case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821esac
6822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6823$as_echo "$ac_try_echo") >&5
6824 (eval "$ac_link") 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest$ac_exeext && {
6834 test "$cross_compiling" = yes ||
6835 $as_test_x conftest$ac_exeext
6836 }; then
6837 lt_cv_ld_exported_symbols_list=yes
6838else
6839 $as_echo "$as_me: failed program was:" >&5
6840sed 's/^/| /' conftest.$ac_ext >&5
6841
6842 lt_cv_ld_exported_symbols_list=no
6843fi
6844
6845rm -rf conftest.dSYM
6846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6847 conftest$ac_exeext conftest.$ac_ext
6848 LDFLAGS="$save_LDFLAGS"
6849
6850fi
6851{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6852$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6853 case $host_os in
6854 rhapsody* | darwin1.[012])
6855 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6856 darwin1.*)
6857 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6858 darwin*) # darwin 5.x on
6859 # if running on 10.5 or later, the deployment target defaults
6860 # to the OS version, if on x86, and 10.4, the deployment
6861 # target defaults to 10.4. Don't you love it?
6862 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6863 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6864 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6865 10.[012]*)
6866 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6867 10.*)
6868 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6869 esac
6870 ;;
6871 esac
6872 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6873 _lt_dar_single_mod='$single_module'
6874 fi
6875 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6876 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6877 else
6878 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6879 fi
6880 if test "$DSYMUTIL" != ":"; then
6881 _lt_dsymutil='~$DSYMUTIL $lib || :'
6882 else
6883 _lt_dsymutil=
6884 fi
6885 ;;
6886 esac
6887
6888
6889{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6890$as_echo_n "checking for ANSI C header files... " >&6; }
6891if test "${ac_cv_header_stdc+set}" = set; then
6892 $as_echo_n "(cached) " >&6
6893else
6894 cat >conftest.$ac_ext <<_ACEOF
6895/* confdefs.h. */
6896_ACEOF
6897cat confdefs.h >>conftest.$ac_ext
6898cat >>conftest.$ac_ext <<_ACEOF
6899/* end confdefs.h. */
6900#include <stdlib.h>
6901#include <stdarg.h>
6902#include <string.h>
6903#include <float.h>
6904
6905int
6906main ()
6907{
6908
6909 ;
6910 return 0;
6911}
6912_ACEOF
6913rm -f conftest.$ac_objext
6914if { (ac_try="$ac_compile"
6915case "(($ac_try" in
6916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917 *) ac_try_echo=$ac_try;;
6918esac
6919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6920$as_echo "$ac_try_echo") >&5
6921 (eval "$ac_compile") 2>conftest.er1
6922 ac_status=$?
6923 grep -v '^ *+' conftest.er1 >conftest.err
6924 rm -f conftest.er1
6925 cat conftest.err >&5
6926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } && {
6928 test -z "$ac_c_werror_flag" ||
6929 test ! -s conftest.err
6930 } && test -s conftest.$ac_objext; then
6931 ac_cv_header_stdc=yes
6932else
6933 $as_echo "$as_me: failed program was:" >&5
6934sed 's/^/| /' conftest.$ac_ext >&5
6935
6936 ac_cv_header_stdc=no
6937fi
6938
6939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940
6941if test $ac_cv_header_stdc = yes; then
6942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6943 cat >conftest.$ac_ext <<_ACEOF
6944/* confdefs.h. */
6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h. */
6949#include <string.h>
6950
6951_ACEOF
6952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6953 $EGREP "memchr" >/dev/null 2>&1; then
6954 :
6955else
6956 ac_cv_header_stdc=no
6957fi
6958rm -f conftest*
6959
6960fi
6961
6962if test $ac_cv_header_stdc = yes; then
6963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6964 cat >conftest.$ac_ext <<_ACEOF
6965/* confdefs.h. */
6966_ACEOF
6967cat confdefs.h >>conftest.$ac_ext
6968cat >>conftest.$ac_ext <<_ACEOF
6969/* end confdefs.h. */
6970#include <stdlib.h>
6971
6972_ACEOF
6973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6974 $EGREP "free" >/dev/null 2>&1; then
6975 :
6976else
6977 ac_cv_header_stdc=no
6978fi
6979rm -f conftest*
6980
6981fi
6982
6983if test $ac_cv_header_stdc = yes; then
6984 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6985 if test "$cross_compiling" = yes; then
6986 :
6987else
6988 cat >conftest.$ac_ext <<_ACEOF
6989/* confdefs.h. */
6990_ACEOF
6991cat confdefs.h >>conftest.$ac_ext
6992cat >>conftest.$ac_ext <<_ACEOF
6993/* end confdefs.h. */
6994#include <ctype.h>
6995#include <stdlib.h>
6996#if ((' ' & 0x0FF) == 0x020)
6997# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6998# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6999#else
7000# define ISLOWER(c) \
7001 (('a' <= (c) && (c) <= 'i') \
7002 || ('j' <= (c) && (c) <= 'r') \
7003 || ('s' <= (c) && (c) <= 'z'))
7004# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7005#endif
7006
7007#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7008int
7009main ()
7010{
7011 int i;
7012 for (i = 0; i < 256; i++)
7013 if (XOR (islower (i), ISLOWER (i))
7014 || toupper (i) != TOUPPER (i))
7015 return 2;
7016 return 0;
7017}
7018_ACEOF
7019rm -f conftest$ac_exeext
7020if { (ac_try="$ac_link"
7021case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024esac
7025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7026$as_echo "$ac_try_echo") >&5
7027 (eval "$ac_link") 2>&5
7028 ac_status=$?
7029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7031 { (case "(($ac_try" in
7032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7033 *) ac_try_echo=$ac_try;;
7034esac
7035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7036$as_echo "$ac_try_echo") >&5
7037 (eval "$ac_try") 2>&5
7038 ac_status=$?
7039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; }; then
7041 :
7042else
7043 $as_echo "$as_me: program exited with status $ac_status" >&5
7044$as_echo "$as_me: failed program was:" >&5
7045sed 's/^/| /' conftest.$ac_ext >&5
7046
7047( exit $ac_status )
7048ac_cv_header_stdc=no
7049fi
7050rm -rf conftest.dSYM
7051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7052fi
7053
7054
7055fi
7056fi
7057{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7058$as_echo "$ac_cv_header_stdc" >&6; }
7059if test $ac_cv_header_stdc = yes; then
7060
7061cat >>confdefs.h <<\_ACEOF
7062#define STDC_HEADERS 1
7063_ACEOF
7064
7065fi
7066
7067# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7078 inttypes.h stdint.h unistd.h
7079do
7080as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7081{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7082$as_echo_n "checking for $ac_header... " >&6; }
7083if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7084 $as_echo_n "(cached) " >&6
7085else
7086 cat >conftest.$ac_ext <<_ACEOF
7087/* confdefs.h. */
7088_ACEOF
7089cat confdefs.h >>conftest.$ac_ext
7090cat >>conftest.$ac_ext <<_ACEOF
7091/* end confdefs.h. */
7092$ac_includes_default
7093
7094#include <$ac_header>
7095_ACEOF
7096rm -f conftest.$ac_objext
7097if { (ac_try="$ac_compile"
7098case "(($ac_try" in
7099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7100 *) ac_try_echo=$ac_try;;
7101esac
7102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7103$as_echo "$ac_try_echo") >&5
7104 (eval "$ac_compile") 2>conftest.er1
7105 ac_status=$?
7106 grep -v '^ *+' conftest.er1 >conftest.err
7107 rm -f conftest.er1
7108 cat conftest.err >&5
7109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest.$ac_objext; then
7114 eval "$as_ac_Header=yes"
7115else
7116 $as_echo "$as_me: failed program was:" >&5
7117sed 's/^/| /' conftest.$ac_ext >&5
7118
7119 eval "$as_ac_Header=no"
7120fi
7121
7122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123fi
7124ac_res=`eval 'as_val=${'$as_ac_Header'}
7125 $as_echo "$as_val"'`
7126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7127$as_echo "$ac_res" >&6; }
7128if test `eval 'as_val=${'$as_ac_Header'}
7129 $as_echo "$as_val"'` = yes; then
7130 cat >>confdefs.h <<_ACEOF
7131#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7132_ACEOF
7133
7134fi
7135
7136done
7137
7138
7139
7140for ac_header in dlfcn.h
7141do
7142as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7143{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7144$as_echo_n "checking for $ac_header... " >&6; }
7145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7146 $as_echo_n "(cached) " >&6
7147else
7148 cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h. */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h. */
7154$ac_includes_default
7155
7156#include <$ac_header>
7157_ACEOF
7158rm -f conftest.$ac_objext
7159if { (ac_try="$ac_compile"
7160case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163esac
7164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7165$as_echo "$ac_try_echo") >&5
7166 (eval "$ac_compile") 2>conftest.er1
7167 ac_status=$?
7168 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -f conftest.er1
7170 cat conftest.err >&5
7171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } && {
7173 test -z "$ac_c_werror_flag" ||
7174 test ! -s conftest.err
7175 } && test -s conftest.$ac_objext; then
7176 eval "$as_ac_Header=yes"
7177else
7178 $as_echo "$as_me: failed program was:" >&5
7179sed 's/^/| /' conftest.$ac_ext >&5
7180
7181 eval "$as_ac_Header=no"
7182fi
7183
7184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185fi
7186ac_res=`eval 'as_val=${'$as_ac_Header'}
7187 $as_echo "$as_val"'`
7188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7189$as_echo "$ac_res" >&6; }
7190if test `eval 'as_val=${'$as_ac_Header'}
7191 $as_echo "$as_val"'` = yes; then
7192 cat >>confdefs.h <<_ACEOF
7193#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7194_ACEOF
7195
7196fi
7197
7198done
7199
7200
7201
7202# Set options
7203
7204
7205
7206 enable_dlopen=no
7207
7208
7209
7210 # Check whether --enable-shared was given.
7211if test "${enable_shared+set}" = set; then
7212 enableval=$enable_shared; p=${PACKAGE-default}
7213 case $enableval in
7214 yes) enable_shared=yes ;;
7215 no) enable_shared=no ;;
7216 *)
7217 enable_shared=no
7218 # Look at the argument we got. We use all the common list separators.
7219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7220 for pkg in $enableval; do
7221 IFS="$lt_save_ifs"
7222 if test "X$pkg" = "X$p"; then
7223 enable_shared=yes
7224 fi
7225 done
7226 IFS="$lt_save_ifs"
7227 ;;
7228 esac
7229else
7230 enable_shared=yes
7231fi
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241 # Check whether --enable-static was given.
7242if test "${enable_static+set}" = set; then
7243 enableval=$enable_static; p=${PACKAGE-default}
7244 case $enableval in
7245 yes) enable_static=yes ;;
7246 no) enable_static=no ;;
7247 *)
7248 enable_static=no
7249 # Look at the argument we got. We use all the common list separators.
7250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7251 for pkg in $enableval; do
7252 IFS="$lt_save_ifs"
7253 if test "X$pkg" = "X$p"; then
7254 enable_static=yes
7255 fi
7256 done
7257 IFS="$lt_save_ifs"
7258 ;;
7259 esac
7260else
7261 enable_static=yes
7262fi
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273# Check whether --with-pic was given.
7274if test "${with_pic+set}" = set; then
7275 withval=$with_pic; pic_mode="$withval"
7276else
7277 pic_mode=default
7278fi
7279
7280
7281test -z "$pic_mode" && pic_mode=default
7282
7283
7284
7285
7286
7287
7288
7289 # Check whether --enable-fast-install was given.
7290if test "${enable_fast_install+set}" = set; then
7291 enableval=$enable_fast_install; p=${PACKAGE-default}
7292 case $enableval in
7293 yes) enable_fast_install=yes ;;
7294 no) enable_fast_install=no ;;
7295 *)
7296 enable_fast_install=no
7297 # Look at the argument we got. We use all the common list separators.
7298 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7299 for pkg in $enableval; do
7300 IFS="$lt_save_ifs"
7301 if test "X$pkg" = "X$p"; then
7302 enable_fast_install=yes
7303 fi
7304 done
7305 IFS="$lt_save_ifs"
7306 ;;
7307 esac
7308else
7309 enable_fast_install=yes
7310fi
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322# This can be used to rebuild libtool when needed
7323LIBTOOL_DEPS="$ltmain"
7324
7325# Always use our own libtool.
7326LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352test -z "$LN_S" && LN_S="ln -s"
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367if test -n "${ZSH_VERSION+set}" ; then
7368 setopt NO_GLOB_SUBST
7369fi
7370
7371{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7372$as_echo_n "checking for objdir... " >&6; }
7373if test "${lt_cv_objdir+set}" = set; then
7374 $as_echo_n "(cached) " >&6
7375else
7376 rm -f .libs 2>/dev/null
7377mkdir .libs 2>/dev/null
7378if test -d .libs; then
7379 lt_cv_objdir=.libs
7380else
7381 # MS-DOS does not allow filenames that begin with a dot.
7382 lt_cv_objdir=_libs
7383fi
7384rmdir .libs 2>/dev/null
7385fi
7386{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7387$as_echo "$lt_cv_objdir" >&6; }
7388objdir=$lt_cv_objdir
7389
7390
7391
7392
7393
7394cat >>confdefs.h <<_ACEOF
7395#define LT_OBJDIR "$lt_cv_objdir/"
7396_ACEOF
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414case $host_os in
7415aix3*)
7416 # AIX sometimes has problems with the GCC collect2 program. For some
7417 # reason, if we set the COLLECT_NAMES environment variable, the problems
7418 # vanish in a puff of smoke.
7419 if test "X${COLLECT_NAMES+set}" != Xset; then
7420 COLLECT_NAMES=
7421 export COLLECT_NAMES
7422 fi
7423 ;;
7424esac
7425
7426# Sed substitution that helps us do robust quoting. It backslashifies
7427# metacharacters that are still active within double-quoted strings.
7428sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7429
7430# Same as above, but do not quote variable references.
7431double_quote_subst='s/\(["`\\]\)/\\\1/g'
7432
7433# Sed substitution to delay expansion of an escaped shell variable in a
7434# double_quote_subst'ed string.
7435delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7436
7437# Sed substitution to delay expansion of an escaped single quote.
7438delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7439
7440# Sed substitution to avoid accidental globbing in evaled expressions
7441no_glob_subst='s/\*/\\\*/g'
7442
7443# Global variables:
7444ofile=libtool
7445can_build_shared=yes
7446
7447# All known linkers require a `.a' archive for static linking (except MSVC,
7448# which needs '.lib').
7449libext=a
7450
7451with_gnu_ld="$lt_cv_prog_gnu_ld"
7452
7453old_CC="$CC"
7454old_CFLAGS="$CFLAGS"
7455
7456# Set sane defaults for various variables
7457test -z "$CC" && CC=cc
7458test -z "$LTCC" && LTCC=$CC
7459test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7460test -z "$LD" && LD=ld
7461test -z "$ac_objext" && ac_objext=o
7462
7463for cc_temp in $compiler""; do
7464 case $cc_temp in
7465 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7466 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7467 \-*) ;;
7468 *) break;;
7469 esac
7470done
7471cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7472
7473
7474# Only perform the check for file, if the check method requires it
7475test -z "$MAGIC_CMD" && MAGIC_CMD=file
7476case $deplibs_check_method in
7477file_magic*)
7478 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7479 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7480$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7481if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7482 $as_echo_n "(cached) " >&6
7483else
7484 case $MAGIC_CMD in
7485[\\/*] | ?:[\\/]*)
7486 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7487 ;;
7488*)
7489 lt_save_MAGIC_CMD="$MAGIC_CMD"
7490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7491 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7492 for ac_dir in $ac_dummy; do
7493 IFS="$lt_save_ifs"
7494 test -z "$ac_dir" && ac_dir=.
7495 if test -f $ac_dir/${ac_tool_prefix}file; then
7496 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7497 if test -n "$file_magic_test_file"; then
7498 case $deplibs_check_method in
7499 "file_magic "*)
7500 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7501 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7502 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7503 $EGREP "$file_magic_regex" > /dev/null; then
7504 :
7505 else
7506 cat <<_LT_EOF 1>&2
7507
7508*** Warning: the command libtool uses to detect shared libraries,
7509*** $file_magic_cmd, produces output that libtool cannot recognize.
7510*** The result is that libtool may fail to recognize shared libraries
7511*** as such. This will affect the creation of libtool libraries that
7512*** depend on shared libraries, but programs linked with such libtool
7513*** libraries will work regardless of this problem. Nevertheless, you
7514*** may want to report the problem to your system manager and/or to
7515*** bug-libtool@gnu.org
7516
7517_LT_EOF
7518 fi ;;
7519 esac
7520 fi
7521 break
7522 fi
7523 done
7524 IFS="$lt_save_ifs"
7525 MAGIC_CMD="$lt_save_MAGIC_CMD"
7526 ;;
7527esac
7528fi
7529
7530MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7531if test -n "$MAGIC_CMD"; then
7532 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7533$as_echo "$MAGIC_CMD" >&6; }
7534else
7535 { $as_echo "$as_me:$LINENO: result: no" >&5
7536$as_echo "no" >&6; }
7537fi
7538
7539
7540
7541
7542
7543if test -z "$lt_cv_path_MAGIC_CMD"; then
7544 if test -n "$ac_tool_prefix"; then
7545 { $as_echo "$as_me:$LINENO: checking for file" >&5
7546$as_echo_n "checking for file... " >&6; }
7547if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7548 $as_echo_n "(cached) " >&6
7549else
7550 case $MAGIC_CMD in
7551[\\/*] | ?:[\\/]*)
7552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7553 ;;
7554*)
7555 lt_save_MAGIC_CMD="$MAGIC_CMD"
7556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7557 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7558 for ac_dir in $ac_dummy; do
7559 IFS="$lt_save_ifs"
7560 test -z "$ac_dir" && ac_dir=.
7561 if test -f $ac_dir/file; then
7562 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7563 if test -n "$file_magic_test_file"; then
7564 case $deplibs_check_method in
7565 "file_magic "*)
7566 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7567 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7568 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7569 $EGREP "$file_magic_regex" > /dev/null; then
7570 :
7571 else
7572 cat <<_LT_EOF 1>&2
7573
7574*** Warning: the command libtool uses to detect shared libraries,
7575*** $file_magic_cmd, produces output that libtool cannot recognize.
7576*** The result is that libtool may fail to recognize shared libraries
7577*** as such. This will affect the creation of libtool libraries that
7578*** depend on shared libraries, but programs linked with such libtool
7579*** libraries will work regardless of this problem. Nevertheless, you
7580*** may want to report the problem to your system manager and/or to
7581*** bug-libtool@gnu.org
7582
7583_LT_EOF
7584 fi ;;
7585 esac
7586 fi
7587 break
7588 fi
7589 done
7590 IFS="$lt_save_ifs"
7591 MAGIC_CMD="$lt_save_MAGIC_CMD"
7592 ;;
7593esac
7594fi
7595
7596MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7597if test -n "$MAGIC_CMD"; then
7598 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7599$as_echo "$MAGIC_CMD" >&6; }
7600else
7601 { $as_echo "$as_me:$LINENO: result: no" >&5
7602$as_echo "no" >&6; }
7603fi
7604
7605
7606 else
7607 MAGIC_CMD=:
7608 fi
7609fi
7610
7611 fi
7612 ;;
7613esac
7614
7615# Use C for the default configuration in the libtool script
7616
7617lt_save_CC="$CC"
7618ac_ext=c
7619ac_cpp='$CPP $CPPFLAGS'
7620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623
7624
7625# Source file extension for C test sources.
7626ac_ext=c
7627
7628# Object file extension for compiled C test sources.
7629objext=o
7630objext=$objext
7631
7632# Code to be used in simple compile tests
7633lt_simple_compile_test_code="int some_variable = 0;"
7634
7635# Code to be used in simple link tests
7636lt_simple_link_test_code='int main(){return(0);}'
7637
7638
7639
7640
7641
7642
7643
7644# If no C compiler was specified, use CC.
7645LTCC=${LTCC-"$CC"}
7646
7647# If no C compiler flags were specified, use CFLAGS.
7648LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7649
7650# Allow CC to be a program name with arguments.
7651compiler=$CC
7652
7653# Save the default compiler, since it gets overwritten when the other
7654# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7655compiler_DEFAULT=$CC
7656
7657# save warnings/boilerplate of simple test code
7658ac_outfile=conftest.$ac_objext
7659echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7660eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7661_lt_compiler_boilerplate=`cat conftest.err`
7662$RM conftest*
7663
7664ac_outfile=conftest.$ac_objext
7665echo "$lt_simple_link_test_code" >conftest.$ac_ext
7666eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7667_lt_linker_boilerplate=`cat conftest.err`
7668$RM -r conftest*
7669
7670
7671if test -n "$compiler"; then
7672
7673lt_prog_compiler_no_builtin_flag=
7674
7675if test "$GCC" = yes; then
7676 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7677
7678 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7679$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7680if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7681 $as_echo_n "(cached) " >&6
7682else
7683 lt_cv_prog_compiler_rtti_exceptions=no
7684 ac_outfile=conftest.$ac_objext
7685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7686 lt_compiler_flag="-fno-rtti -fno-exceptions"
7687 # Insert the option either (1) after the last *FLAGS variable, or
7688 # (2) before a word containing "conftest.", or (3) at the end.
7689 # Note that $ac_compile itself does not contain backslashes and begins
7690 # with a dollar sign (not a hyphen), so the echo should work correctly.
7691 # The option is referenced via a variable to avoid confusing sed.
7692 lt_compile=`echo "$ac_compile" | $SED \
7693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7695 -e 's:$: $lt_compiler_flag:'`
7696 (eval echo "\"\$as_me:7696: $lt_compile\"" >&5)
7697 (eval "$lt_compile" 2>conftest.err)
7698 ac_status=$?
7699 cat conftest.err >&5
7700 echo "$as_me:7700: \$? = $ac_status" >&5
7701 if (exit $ac_status) && test -s "$ac_outfile"; then
7702 # The compiler can only warn and ignore the option if not recognized
7703 # So say no if there are warnings other than the usual output.
7704 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7707 lt_cv_prog_compiler_rtti_exceptions=yes
7708 fi
7709 fi
7710 $RM conftest*
7711
7712fi
7713{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7714$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7715
7716if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7717 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7718else
7719 :
7720fi
7721
7722fi
7723
7724
7725
7726
7727
7728
7729 lt_prog_compiler_wl=
7730lt_prog_compiler_pic=
7731lt_prog_compiler_static=
7732
7733{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7734$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7735
7736 if test "$GCC" = yes; then
7737 lt_prog_compiler_wl='-Wl,'
7738 lt_prog_compiler_static='-static'
7739
7740 case $host_os in
7741 aix*)
7742 # All AIX code is PIC.
7743 if test "$host_cpu" = ia64; then
7744 # AIX 5 now supports IA64 processor
7745 lt_prog_compiler_static='-Bstatic'
7746 fi
7747 ;;
7748
7749 amigaos*)
7750 case $host_cpu in
7751 powerpc)
7752 # see comment about AmigaOS4 .so support
7753 lt_prog_compiler_pic='-fPIC'
7754 ;;
7755 m68k)
7756 # FIXME: we need at least 68020 code to build shared libraries, but
7757 # adding the `-m68020' flag to GCC prevents building anything better,
7758 # like `-m68040'.
7759 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7760 ;;
7761 esac
7762 ;;
7763
7764 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7765 # PIC is the default for these OSes.
7766 ;;
7767
7768 mingw* | cygwin* | pw32* | os2*)
7769 # This hack is so that the source file can tell whether it is being
7770 # built for inclusion in a dll (and should export symbols for example).
7771 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7772 # (--disable-auto-import) libraries
7773 lt_prog_compiler_pic='-DDLL_EXPORT'
7774 ;;
7775
7776 darwin* | rhapsody*)
7777 # PIC is the default on this platform
7778 # Common symbols not allowed in MH_DYLIB files
7779 lt_prog_compiler_pic='-fno-common'
7780 ;;
7781
7782 hpux*)
7783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7784 # not for PA HP-UX.
7785 case $host_cpu in
7786 hppa*64*|ia64*)
7787 # +Z the default
7788 ;;
7789 *)
7790 lt_prog_compiler_pic='-fPIC'
7791 ;;
7792 esac
7793 ;;
7794
7795 interix[3-9]*)
7796 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7797 # Instead, we relocate shared libraries at runtime.
7798 ;;
7799
7800 msdosdjgpp*)
7801 # Just because we use GCC doesn't mean we suddenly get shared libraries
7802 # on systems that don't support them.
7803 lt_prog_compiler_can_build_shared=no
7804 enable_shared=no
7805 ;;
7806
7807 *nto* | *qnx*)
7808 # QNX uses GNU C++, but need to define -shared option too, otherwise
7809 # it will coredump.
7810 lt_prog_compiler_pic='-fPIC -shared'
7811 ;;
7812
7813 sysv4*MP*)
7814 if test -d /usr/nec; then
7815 lt_prog_compiler_pic=-Kconform_pic
7816 fi
7817 ;;
7818
7819 *)
7820 lt_prog_compiler_pic='-fPIC'
7821 ;;
7822 esac
7823 else
7824 # PORTME Check for flag to pass linker flags through the system compiler.
7825 case $host_os in
7826 aix*)
7827 lt_prog_compiler_wl='-Wl,'
7828 if test "$host_cpu" = ia64; then
7829 # AIX 5 now supports IA64 processor
7830 lt_prog_compiler_static='-Bstatic'
7831 else
7832 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7833 fi
7834 ;;
7835
7836 mingw* | cygwin* | pw32* | os2*)
7837 # This hack is so that the source file can tell whether it is being
7838 # built for inclusion in a dll (and should export symbols for example).
7839 lt_prog_compiler_pic='-DDLL_EXPORT'
7840 ;;
7841
7842 hpux9* | hpux10* | hpux11*)
7843 lt_prog_compiler_wl='-Wl,'
7844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7845 # not for PA HP-UX.
7846 case $host_cpu in
7847 hppa*64*|ia64*)
7848 # +Z the default
7849 ;;
7850 *)
7851 lt_prog_compiler_pic='+Z'
7852 ;;
7853 esac
7854 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7855 lt_prog_compiler_static='${wl}-a ${wl}archive'
7856 ;;
7857
7858 irix5* | irix6* | nonstopux*)
7859 lt_prog_compiler_wl='-Wl,'
7860 # PIC (with -KPIC) is the default.
7861 lt_prog_compiler_static='-non_shared'
7862 ;;
7863
7864 linux* | k*bsd*-gnu)
7865 case $cc_basename in
7866 icc* | ecc* | ifort*)
7867 lt_prog_compiler_wl='-Wl,'
7868 lt_prog_compiler_pic='-KPIC'
7869 lt_prog_compiler_static='-static'
7870 ;;
7871 pgcc* | pgf77* | pgf90* | pgf95*)
7872 # Portland Group compilers (*not* the Pentium gcc compiler,
7873 # which looks to be a dead project)
7874 lt_prog_compiler_wl='-Wl,'
7875 lt_prog_compiler_pic='-fpic'
7876 lt_prog_compiler_static='-Bstatic'
7877 ;;
7878 ccc*)
7879 lt_prog_compiler_wl='-Wl,'
7880 # All Alpha code is PIC.
7881 lt_prog_compiler_static='-non_shared'
7882 ;;
7883 xl*)
7884 # IBM XL C 8.0/Fortran 10.1 on PPC
7885 lt_prog_compiler_wl='-Wl,'
7886 lt_prog_compiler_pic='-qpic'
7887 lt_prog_compiler_static='-qstaticlink'
7888 ;;
7889 *)
7890 case `$CC -V 2>&1 | sed 5q` in
7891 *Sun\ C*)
7892 # Sun C 5.9
7893 lt_prog_compiler_pic='-KPIC'
7894 lt_prog_compiler_static='-Bstatic'
7895 lt_prog_compiler_wl='-Wl,'
7896 ;;
7897 *Sun\ F*)
7898 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7899 lt_prog_compiler_pic='-KPIC'
7900 lt_prog_compiler_static='-Bstatic'
7901 lt_prog_compiler_wl=''
7902 ;;
7903 esac
7904 ;;
7905 esac
7906 ;;
7907
7908 newsos6)
7909 lt_prog_compiler_pic='-KPIC'
7910 lt_prog_compiler_static='-Bstatic'
7911 ;;
7912
7913 *nto* | *qnx*)
7914 # QNX uses GNU C++, but need to define -shared option too, otherwise
7915 # it will coredump.
7916 lt_prog_compiler_pic='-fPIC -shared'
7917 ;;
7918
7919 osf3* | osf4* | osf5*)
7920 lt_prog_compiler_wl='-Wl,'
7921 # All OSF/1 code is PIC.
7922 lt_prog_compiler_static='-non_shared'
7923 ;;
7924
7925 rdos*)
7926 lt_prog_compiler_static='-non_shared'
7927 ;;
7928
7929 solaris*)
7930 lt_prog_compiler_pic='-KPIC'
7931 lt_prog_compiler_static='-Bstatic'
7932 case $cc_basename in
7933 f77* | f90* | f95*)
7934 lt_prog_compiler_wl='-Qoption ld ';;
7935 *)
7936 lt_prog_compiler_wl='-Wl,';;
7937 esac
7938 ;;
7939
7940 sunos4*)
7941 lt_prog_compiler_wl='-Qoption ld '
7942 lt_prog_compiler_pic='-PIC'
7943 lt_prog_compiler_static='-Bstatic'
7944 ;;
7945
7946 sysv4 | sysv4.2uw2* | sysv4.3*)
7947 lt_prog_compiler_wl='-Wl,'
7948 lt_prog_compiler_pic='-KPIC'
7949 lt_prog_compiler_static='-Bstatic'
7950 ;;
7951
7952 sysv4*MP*)
7953 if test -d /usr/nec ;then
7954 lt_prog_compiler_pic='-Kconform_pic'
7955 lt_prog_compiler_static='-Bstatic'
7956 fi
7957 ;;
7958
7959 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7960 lt_prog_compiler_wl='-Wl,'
7961 lt_prog_compiler_pic='-KPIC'
7962 lt_prog_compiler_static='-Bstatic'
7963 ;;
7964
7965 unicos*)
7966 lt_prog_compiler_wl='-Wl,'
7967 lt_prog_compiler_can_build_shared=no
7968 ;;
7969
7970 uts4*)
7971 lt_prog_compiler_pic='-pic'
7972 lt_prog_compiler_static='-Bstatic'
7973 ;;
7974
7975 *)
7976 lt_prog_compiler_can_build_shared=no
7977 ;;
7978 esac
7979 fi
7980
7981case $host_os in
7982 # For platforms which do not support PIC, -DPIC is meaningless:
7983 *djgpp*)
7984 lt_prog_compiler_pic=
7985 ;;
7986 *)
7987 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7988 ;;
7989esac
7990{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7991$as_echo "$lt_prog_compiler_pic" >&6; }
7992
7993
7994
7995
7996
7997
7998#
7999# Check to make sure the PIC flag actually works.
8000#
8001if test -n "$lt_prog_compiler_pic"; then
8002 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8003$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8004if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8005 $as_echo_n "(cached) " >&6
8006else
8007 lt_cv_prog_compiler_pic_works=no
8008 ac_outfile=conftest.$ac_objext
8009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8010 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8011 # Insert the option either (1) after the last *FLAGS variable, or
8012 # (2) before a word containing "conftest.", or (3) at the end.
8013 # Note that $ac_compile itself does not contain backslashes and begins
8014 # with a dollar sign (not a hyphen), so the echo should work correctly.
8015 # The option is referenced via a variable to avoid confusing sed.
8016 lt_compile=`echo "$ac_compile" | $SED \
8017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8019 -e 's:$: $lt_compiler_flag:'`
8020 (eval echo "\"\$as_me:8020: $lt_compile\"" >&5)
8021 (eval "$lt_compile" 2>conftest.err)
8022 ac_status=$?
8023 cat conftest.err >&5
8024 echo "$as_me:8024: \$? = $ac_status" >&5
8025 if (exit $ac_status) && test -s "$ac_outfile"; then
8026 # The compiler can only warn and ignore the option if not recognized
8027 # So say no if there are warnings other than the usual output.
8028 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8030 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8031 lt_cv_prog_compiler_pic_works=yes
8032 fi
8033 fi
8034 $RM conftest*
8035
8036fi
8037{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8038$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8039
8040if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8041 case $lt_prog_compiler_pic in
8042 "" | " "*) ;;
8043 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8044 esac
8045else
8046 lt_prog_compiler_pic=
8047 lt_prog_compiler_can_build_shared=no
8048fi
8049
8050fi
8051
8052
8053
8054
8055
8056
8057#
8058# Check to make sure the static flag actually works.
8059#
8060wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8061{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8062$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8063if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8064 $as_echo_n "(cached) " >&6
8065else
8066 lt_cv_prog_compiler_static_works=no
8067 save_LDFLAGS="$LDFLAGS"
8068 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8069 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8070 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8071 # The linker can only warn and ignore the option if not recognized
8072 # So say no if there are warnings
8073 if test -s conftest.err; then
8074 # Append any errors to the config.log.
8075 cat conftest.err 1>&5
8076 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8078 if diff conftest.exp conftest.er2 >/dev/null; then
8079 lt_cv_prog_compiler_static_works=yes
8080 fi
8081 else
8082 lt_cv_prog_compiler_static_works=yes
8083 fi
8084 fi
8085 $RM -r conftest*
8086 LDFLAGS="$save_LDFLAGS"
8087
8088fi
8089{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8090$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8091
8092if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8093 :
8094else
8095 lt_prog_compiler_static=
8096fi
8097
8098
8099
8100
8101
8102
8103
8104 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8105$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8106if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8107 $as_echo_n "(cached) " >&6
8108else
8109 lt_cv_prog_compiler_c_o=no
8110 $RM -r conftest 2>/dev/null
8111 mkdir conftest
8112 cd conftest
8113 mkdir out
8114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8115
8116 lt_compiler_flag="-o out/conftest2.$ac_objext"
8117 # Insert the option either (1) after the last *FLAGS variable, or
8118 # (2) before a word containing "conftest.", or (3) at the end.
8119 # Note that $ac_compile itself does not contain backslashes and begins
8120 # with a dollar sign (not a hyphen), so the echo should work correctly.
8121 lt_compile=`echo "$ac_compile" | $SED \
8122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8124 -e 's:$: $lt_compiler_flag:'`
8125 (eval echo "\"\$as_me:8125: $lt_compile\"" >&5)
8126 (eval "$lt_compile" 2>out/conftest.err)
8127 ac_status=$?
8128 cat out/conftest.err >&5
8129 echo "$as_me:8129: \$? = $ac_status" >&5
8130 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8131 then
8132 # The compiler can only warn and ignore the option if not recognized
8133 # So say no if there are warnings
8134 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8135 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8136 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8137 lt_cv_prog_compiler_c_o=yes
8138 fi
8139 fi
8140 chmod u+w . 2>&5
8141 $RM conftest*
8142 # SGI C++ compiler will create directory out/ii_files/ for
8143 # template instantiation
8144 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8145 $RM out/* && rmdir out
8146 cd ..
8147 $RM -r conftest
8148 $RM conftest*
8149
8150fi
8151{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8152$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8153
8154
8155
8156
8157
8158
8159 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8160$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8161if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8162 $as_echo_n "(cached) " >&6
8163else
8164 lt_cv_prog_compiler_c_o=no
8165 $RM -r conftest 2>/dev/null
8166 mkdir conftest
8167 cd conftest
8168 mkdir out
8169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8170
8171 lt_compiler_flag="-o out/conftest2.$ac_objext"
8172 # Insert the option either (1) after the last *FLAGS variable, or
8173 # (2) before a word containing "conftest.", or (3) at the end.
8174 # Note that $ac_compile itself does not contain backslashes and begins
8175 # with a dollar sign (not a hyphen), so the echo should work correctly.
8176 lt_compile=`echo "$ac_compile" | $SED \
8177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8179 -e 's:$: $lt_compiler_flag:'`
8180 (eval echo "\"\$as_me:8180: $lt_compile\"" >&5)
8181 (eval "$lt_compile" 2>out/conftest.err)
8182 ac_status=$?
8183 cat out/conftest.err >&5
8184 echo "$as_me:8184: \$? = $ac_status" >&5
8185 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8186 then
8187 # The compiler can only warn and ignore the option if not recognized
8188 # So say no if there are warnings
8189 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8190 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8191 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8192 lt_cv_prog_compiler_c_o=yes
8193 fi
8194 fi
8195 chmod u+w . 2>&5
8196 $RM conftest*
8197 # SGI C++ compiler will create directory out/ii_files/ for
8198 # template instantiation
8199 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8200 $RM out/* && rmdir out
8201 cd ..
8202 $RM -r conftest
8203 $RM conftest*
8204
8205fi
8206{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8207$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8208
8209
8210
8211
8212hard_links="nottested"
8213if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8214 # do not overwrite the value of need_locks provided by the user
8215 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8216$as_echo_n "checking if we can lock with hard links... " >&6; }
8217 hard_links=yes
8218 $RM conftest*
8219 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8220 touch conftest.a
8221 ln conftest.a conftest.b 2>&5 || hard_links=no
8222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8223 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8224$as_echo "$hard_links" >&6; }
8225 if test "$hard_links" = no; then
8226 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8227$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8228 need_locks=warn
8229 fi
8230else
8231 need_locks=no
8232fi
8233
8234
8235
8236
8237
8238
8239 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8240$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8241
8242 runpath_var=
8243 allow_undefined_flag=
8244 always_export_symbols=no
8245 archive_cmds=
8246 archive_expsym_cmds=
8247 compiler_needs_object=no
8248 enable_shared_with_static_runtimes=no
8249 export_dynamic_flag_spec=
8250 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8251 hardcode_automatic=no
8252 hardcode_direct=no
8253 hardcode_direct_absolute=no
8254 hardcode_libdir_flag_spec=
8255 hardcode_libdir_flag_spec_ld=
8256 hardcode_libdir_separator=
8257 hardcode_minus_L=no
8258 hardcode_shlibpath_var=unsupported
8259 inherit_rpath=no
8260 link_all_deplibs=unknown
8261 module_cmds=
8262 module_expsym_cmds=
8263 old_archive_from_new_cmds=
8264 old_archive_from_expsyms_cmds=
8265 thread_safe_flag_spec=
8266 whole_archive_flag_spec=
8267 # include_expsyms should be a list of space-separated symbols to be *always*
8268 # included in the symbol list
8269 include_expsyms=
8270 # exclude_expsyms can be an extended regexp of symbols to exclude
8271 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8272 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8273 # as well as any symbol that contains `d'.
8274 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8275 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8276 # platforms (ab)use it in PIC code, but their linkers get confused if
8277 # the symbol is explicitly referenced. Since portable code cannot
8278 # rely on this symbol name, it's probably fine to never include it in
8279 # preloaded symbol tables.
8280 # Exclude shared library initialization/finalization symbols.
8281 extract_expsyms_cmds=
8282
8283 case $host_os in
8284 cygwin* | mingw* | pw32*)
8285 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8286 # When not using gcc, we currently assume that we are using
8287 # Microsoft Visual C++.
8288 if test "$GCC" != yes; then
8289 with_gnu_ld=no
8290 fi
8291 ;;
8292 interix*)
8293 # we just hope/assume this is gcc and not c89 (= MSVC++)
8294 with_gnu_ld=yes
8295 ;;
8296 openbsd*)
8297 with_gnu_ld=no
8298 ;;
8299 esac
8300
8301 ld_shlibs=yes
8302 if test "$with_gnu_ld" = yes; then
8303 # If archive_cmds runs LD, not CC, wlarc should be empty
8304 wlarc='${wl}'
8305
8306 # Set some defaults for GNU ld with shared library support. These
8307 # are reset later if shared libraries are not supported. Putting them
8308 # here allows them to be overridden if necessary.
8309 runpath_var=LD_RUN_PATH
8310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8311 export_dynamic_flag_spec='${wl}--export-dynamic'
8312 # ancient GNU ld didn't support --whole-archive et. al.
8313 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8314 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8315 else
8316 whole_archive_flag_spec=
8317 fi
8318 supports_anon_versioning=no
8319 case `$LD -v 2>&1` in
8320 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8321 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8322 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8323 *\ 2.11.*) ;; # other 2.11 versions
8324 *) supports_anon_versioning=yes ;;
8325 esac
8326
8327 # See if GNU ld supports shared libraries.
8328 case $host_os in
8329 aix[3-9]*)
8330 # On AIX/PPC, the GNU linker is very broken
8331 if test "$host_cpu" != ia64; then
8332 ld_shlibs=no
8333 cat <<_LT_EOF 1>&2
8334
8335*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8336*** to be unable to reliably create shared libraries on AIX.
8337*** Therefore, libtool is disabling shared libraries support. If you
8338*** really care for shared libraries, you may want to modify your PATH
8339*** so that a non-GNU linker is found, and then restart.
8340
8341_LT_EOF
8342 fi
8343 ;;
8344
8345 amigaos*)
8346 case $host_cpu in
8347 powerpc)
8348 # see comment about AmigaOS4 .so support
8349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8350 archive_expsym_cmds=''
8351 ;;
8352 m68k)
8353 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)'
8354 hardcode_libdir_flag_spec='-L$libdir'
8355 hardcode_minus_L=yes
8356 ;;
8357 esac
8358 ;;
8359
8360 beos*)
8361 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8362 allow_undefined_flag=unsupported
8363 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8364 # support --undefined. This deserves some investigation. FIXME
8365 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8366 else
8367 ld_shlibs=no
8368 fi
8369 ;;
8370
8371 cygwin* | mingw* | pw32*)
8372 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8373 # as there is no search path for DLLs.
8374 hardcode_libdir_flag_spec='-L$libdir'
8375 allow_undefined_flag=unsupported
8376 always_export_symbols=no
8377 enable_shared_with_static_runtimes=yes
8378 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8379
8380 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8382 # If the export-symbols file already is a .def file (1st line
8383 # is EXPORTS), use it as is; otherwise, prepend...
8384 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8385 cp $export_symbols $output_objdir/$soname.def;
8386 else
8387 echo EXPORTS > $output_objdir/$soname.def;
8388 cat $export_symbols >> $output_objdir/$soname.def;
8389 fi~
8390 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8391 else
8392 ld_shlibs=no
8393 fi
8394 ;;
8395
8396 interix[3-9]*)
8397 hardcode_direct=no
8398 hardcode_shlibpath_var=no
8399 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8400 export_dynamic_flag_spec='${wl}-E'
8401 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8402 # Instead, shared libraries are loaded at an image base (0x10000000 by
8403 # default) and relocated if they conflict, which is a slow very memory
8404 # consuming and fragmenting process. To avoid this, we pick a random,
8405 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8406 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8407 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8408 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'
8409 ;;
8410
8411 gnu* | linux* | tpf* | k*bsd*-gnu)
8412 tmp_diet=no
8413 if test "$host_os" = linux-dietlibc; then
8414 case $cc_basename in
8415 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8416 esac
8417 fi
8418 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8419 && test "$tmp_diet" = no
8420 then
8421 tmp_addflag=
8422 tmp_sharedflag='-shared'
8423 case $cc_basename,$host_cpu in
8424 pgcc*) # Portland Group C compiler
8425 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'
8426 tmp_addflag=' $pic_flag'
8427 ;;
8428 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8429 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'
8430 tmp_addflag=' $pic_flag -Mnomain' ;;
8431 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8432 tmp_addflag=' -i_dynamic' ;;
8433 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8434 tmp_addflag=' -i_dynamic -nofor_main' ;;
8435 ifc* | ifort*) # Intel Fortran compiler
8436 tmp_addflag=' -nofor_main' ;;
8437 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8438 tmp_sharedflag='-qmkshrobj'
8439 tmp_addflag= ;;
8440 esac
8441 case `$CC -V 2>&1 | sed 5q` in
8442 *Sun\ C*) # Sun C 5.9
8443 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'
8444 compiler_needs_object=yes
8445 tmp_sharedflag='-G' ;;
8446 *Sun\ F*) # Sun Fortran 8.3
8447 tmp_sharedflag='-G' ;;
8448 esac
8449 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8450
8451 if test "x$supports_anon_versioning" = xyes; then
8452 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8453 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8454 echo "local: *; };" >> $output_objdir/$libname.ver~
8455 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8456 fi
8457
8458 case $cc_basename in
8459 xlf*)
8460 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8461 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8462 hardcode_libdir_flag_spec=
8463 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8464 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8465 if test "x$supports_anon_versioning" = xyes; then
8466 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8468 echo "local: *; };" >> $output_objdir/$libname.ver~
8469 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8470 fi
8471 ;;
8472 esac
8473 else
8474 ld_shlibs=no
8475 fi
8476 ;;
8477
8478 netbsd*)
8479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8480 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8481 wlarc=
8482 else
8483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8484 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8485 fi
8486 ;;
8487
8488 solaris*)
8489 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8490 ld_shlibs=no
8491 cat <<_LT_EOF 1>&2
8492
8493*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8494*** create shared libraries on Solaris systems. Therefore, libtool
8495*** is disabling shared libraries support. We urge you to upgrade GNU
8496*** binutils to release 2.9.1 or newer. Another option is to modify
8497*** your PATH or compiler configuration so that the native linker is
8498*** used, and then restart.
8499
8500_LT_EOF
8501 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8503 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8504 else
8505 ld_shlibs=no
8506 fi
8507 ;;
8508
8509 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8510 case `$LD -v 2>&1` in
8511 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8512 ld_shlibs=no
8513 cat <<_LT_EOF 1>&2
8514
8515*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8516*** reliably create shared libraries on SCO systems. Therefore, libtool
8517*** is disabling shared libraries support. We urge you to upgrade GNU
8518*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8519*** your PATH or compiler configuration so that the native linker is
8520*** used, and then restart.
8521
8522_LT_EOF
8523 ;;
8524 *)
8525 # For security reasons, it is highly recommended that you always
8526 # use absolute paths for naming shared libraries, and exclude the
8527 # DT_RUNPATH tag from executables and libraries. But doing so
8528 # requires that you compile everything twice, which is a pain.
8529 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8533 else
8534 ld_shlibs=no
8535 fi
8536 ;;
8537 esac
8538 ;;
8539
8540 sunos4*)
8541 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8542 wlarc=
8543 hardcode_direct=yes
8544 hardcode_shlibpath_var=no
8545 ;;
8546
8547 *)
8548 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8550 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8551 else
8552 ld_shlibs=no
8553 fi
8554 ;;
8555 esac
8556
8557 if test "$ld_shlibs" = no; then
8558 runpath_var=
8559 hardcode_libdir_flag_spec=
8560 export_dynamic_flag_spec=
8561 whole_archive_flag_spec=
8562 fi
8563 else
8564 # PORTME fill in a description of your system's linker (not GNU ld)
8565 case $host_os in
8566 aix3*)
8567 allow_undefined_flag=unsupported
8568 always_export_symbols=yes
8569 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'
8570 # Note: this linker hardcodes the directories in LIBPATH if there
8571 # are no directories specified by -L.
8572 hardcode_minus_L=yes
8573 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8574 # Neither direct hardcoding nor static linking is supported with a
8575 # broken collect2.
8576 hardcode_direct=unsupported
8577 fi
8578 ;;
8579
8580 aix[4-9]*)
8581 if test "$host_cpu" = ia64; then
8582 # On IA64, the linker does run time linking by default, so we don't
8583 # have to do anything special.
8584 aix_use_runtimelinking=no
8585 exp_sym_flag='-Bexport'
8586 no_entry_flag=""
8587 else
8588 # If we're using GNU nm, then we don't want the "-C" option.
8589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8590 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8591 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'
8592 else
8593 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'
8594 fi
8595 aix_use_runtimelinking=no
8596
8597 # Test if we are trying to use run time linking or normal
8598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8599 # need to do runtime linking.
8600 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8601 for ld_flag in $LDFLAGS; do
8602 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8603 aix_use_runtimelinking=yes
8604 break
8605 fi
8606 done
8607 ;;
8608 esac
8609
8610 exp_sym_flag='-bexport'
8611 no_entry_flag='-bnoentry'
8612 fi
8613
8614 # When large executables or shared objects are built, AIX ld can
8615 # have problems creating the table of contents. If linking a library
8616 # or program results in "error TOC overflow" add -mminimal-toc to
8617 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8618 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8619
8620 archive_cmds=''
8621 hardcode_direct=yes
8622 hardcode_direct_absolute=yes
8623 hardcode_libdir_separator=':'
8624 link_all_deplibs=yes
8625 file_list_spec='${wl}-f,'
8626
8627 if test "$GCC" = yes; then
8628 case $host_os in aix4.[012]|aix4.[012].*)
8629 # We only want to do this on AIX 4.2 and lower, the check
8630 # below for broken collect2 doesn't work under 4.3+
8631 collect2name=`${CC} -print-prog-name=collect2`
8632 if test -f "$collect2name" &&
8633 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8634 then
8635 # We have reworked collect2
8636 :
8637 else
8638 # We have old collect2
8639 hardcode_direct=unsupported
8640 # It fails to find uninstalled libraries when the uninstalled
8641 # path is not listed in the libpath. Setting hardcode_minus_L
8642 # to unsupported forces relinking
8643 hardcode_minus_L=yes
8644 hardcode_libdir_flag_spec='-L$libdir'
8645 hardcode_libdir_separator=
8646 fi
8647 ;;
8648 esac
8649 shared_flag='-shared'
8650 if test "$aix_use_runtimelinking" = yes; then
8651 shared_flag="$shared_flag "'${wl}-G'
8652 fi
8653 else
8654 # not using gcc
8655 if test "$host_cpu" = ia64; then
8656 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8657 # chokes on -Wl,-G. The following line is correct:
8658 shared_flag='-G'
8659 else
8660 if test "$aix_use_runtimelinking" = yes; then
8661 shared_flag='${wl}-G'
8662 else
8663 shared_flag='${wl}-bM:SRE'
8664 fi
8665 fi
8666 fi
8667
8668 # It seems that -bexpall does not export symbols beginning with
8669 # underscore (_), so it is better to generate a list of symbols to export.
8670 always_export_symbols=yes
8671 if test "$aix_use_runtimelinking" = yes; then
8672 # Warning - without using the other runtime loading flags (-brtl),
8673 # -berok will link without error, but may produce a broken library.
8674 allow_undefined_flag='-berok'
8675 # Determine the default libpath from the value encoded in an
8676 # empty executable.
8677 cat >conftest.$ac_ext <<_ACEOF
8678/* confdefs.h. */
8679_ACEOF
8680cat confdefs.h >>conftest.$ac_ext
8681cat >>conftest.$ac_ext <<_ACEOF
8682/* end confdefs.h. */
8683
8684int
8685main ()
8686{
8687
8688 ;
8689 return 0;
8690}
8691_ACEOF
8692rm -f conftest.$ac_objext conftest$ac_exeext
8693if { (ac_try="$ac_link"
8694case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697esac
8698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8699$as_echo "$ac_try_echo") >&5
8700 (eval "$ac_link") 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest$ac_exeext && {
8710 test "$cross_compiling" = yes ||
8711 $as_test_x conftest$ac_exeext
8712 }; then
8713
8714lt_aix_libpath_sed='
8715 /Import File Strings/,/^$/ {
8716 /^0/ {
8717 s/^0 *\(.*\)$/\1/
8718 p
8719 }
8720 }'
8721aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8722# Check for a 64-bit object if we didn't find anything.
8723if test -z "$aix_libpath"; then
8724 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8725fi
8726else
8727 $as_echo "$as_me: failed program was:" >&5
8728sed 's/^/| /' conftest.$ac_ext >&5
8729
8730
8731fi
8732
8733rm -rf conftest.dSYM
8734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8735 conftest$ac_exeext conftest.$ac_ext
8736if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8737
8738 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8739 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"
8740 else
8741 if test "$host_cpu" = ia64; then
8742 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8743 allow_undefined_flag="-z nodefs"
8744 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"
8745 else
8746 # Determine the default libpath from the value encoded in an
8747 # empty executable.
8748 cat >conftest.$ac_ext <<_ACEOF
8749/* confdefs.h. */
8750_ACEOF
8751cat confdefs.h >>conftest.$ac_ext
8752cat >>conftest.$ac_ext <<_ACEOF
8753/* end confdefs.h. */
8754
8755int
8756main ()
8757{
8758
8759 ;
8760 return 0;
8761}
8762_ACEOF
8763rm -f conftest.$ac_objext conftest$ac_exeext
8764if { (ac_try="$ac_link"
8765case "(($ac_try" in
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8768esac
8769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8770$as_echo "$ac_try_echo") >&5
8771 (eval "$ac_link") 2>conftest.er1
8772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } && {
8778 test -z "$ac_c_werror_flag" ||
8779 test ! -s conftest.err
8780 } && test -s conftest$ac_exeext && {
8781 test "$cross_compiling" = yes ||
8782 $as_test_x conftest$ac_exeext
8783 }; then
8784
8785lt_aix_libpath_sed='
8786 /Import File Strings/,/^$/ {
8787 /^0/ {
8788 s/^0 *\(.*\)$/\1/
8789 p
8790 }
8791 }'
8792aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8793# Check for a 64-bit object if we didn't find anything.
8794if test -z "$aix_libpath"; then
8795 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8796fi
8797else
8798 $as_echo "$as_me: failed program was:" >&5
8799sed 's/^/| /' conftest.$ac_ext >&5
8800
8801
8802fi
8803
8804rm -rf conftest.dSYM
8805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8806 conftest$ac_exeext conftest.$ac_ext
8807if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8808
8809 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8810 # Warning - without using the other run time loading flags,
8811 # -berok will link without error, but may produce a broken library.
8812 no_undefined_flag=' ${wl}-bernotok'
8813 allow_undefined_flag=' ${wl}-berok'
8814 # Exported symbols can be pulled into shared objects from archives
8815 whole_archive_flag_spec='$convenience'
8816 archive_cmds_need_lc=yes
8817 # This is similar to how AIX traditionally builds its shared libraries.
8818 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'
8819 fi
8820 fi
8821 ;;
8822
8823 amigaos*)
8824 case $host_cpu in
8825 powerpc)
8826 # see comment about AmigaOS4 .so support
8827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8828 archive_expsym_cmds=''
8829 ;;
8830 m68k)
8831 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)'
8832 hardcode_libdir_flag_spec='-L$libdir'
8833 hardcode_minus_L=yes
8834 ;;
8835 esac
8836 ;;
8837
8838 bsdi[45]*)
8839 export_dynamic_flag_spec=-rdynamic
8840 ;;
8841
8842 cygwin* | mingw* | pw32*)
8843 # When not using gcc, we currently assume that we are using
8844 # Microsoft Visual C++.
8845 # hardcode_libdir_flag_spec is actually meaningless, as there is
8846 # no search path for DLLs.
8847 hardcode_libdir_flag_spec=' '
8848 allow_undefined_flag=unsupported
8849 # Tell ltmain to make .lib files, not .a files.
8850 libext=lib
8851 # Tell ltmain to make .dll files, not .so files.
8852 shrext_cmds=".dll"
8853 # FIXME: Setting linknames here is a bad hack.
8854 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8855 # The linker will automatically build a .lib file if we build a DLL.
8856 old_archive_from_new_cmds='true'
8857 # FIXME: Should let the user specify the lib program.
8858 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8859 fix_srcfile_path='`cygpath -w "$srcfile"`'
8860 enable_shared_with_static_runtimes=yes
8861 ;;
8862
8863 darwin* | rhapsody*)
8864
8865
8866 archive_cmds_need_lc=no
8867 hardcode_direct=no
8868 hardcode_automatic=yes
8869 hardcode_shlibpath_var=unsupported
8870 whole_archive_flag_spec=''
8871 link_all_deplibs=yes
8872 allow_undefined_flag="$_lt_dar_allow_undefined"
8873 if test "$GCC" = "yes"; then
8874 output_verbose_link_cmd=echo
8875 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8876 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8877 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}"
8878 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}"
8879
8880 else
8881 ld_shlibs=no
8882 fi
8883
8884 ;;
8885
8886 dgux*)
8887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8888 hardcode_libdir_flag_spec='-L$libdir'
8889 hardcode_shlibpath_var=no
8890 ;;
8891
8892 freebsd1*)
8893 ld_shlibs=no
8894 ;;
8895
8896 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8897 # support. Future versions do this automatically, but an explicit c++rt0.o
8898 # does not break anything, and helps significantly (at the cost of a little
8899 # extra space).
8900 freebsd2.2*)
8901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8902 hardcode_libdir_flag_spec='-R$libdir'
8903 hardcode_direct=yes
8904 hardcode_shlibpath_var=no
8905 ;;
8906
8907 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8908 freebsd2*)
8909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8910 hardcode_direct=yes
8911 hardcode_minus_L=yes
8912 hardcode_shlibpath_var=no
8913 ;;
8914
8915 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8916 freebsd* | dragonfly*)
8917 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8918 hardcode_libdir_flag_spec='-R$libdir'
8919 hardcode_direct=yes
8920 hardcode_shlibpath_var=no
8921 ;;
8922
8923 hpux9*)
8924 if test "$GCC" = yes; then
8925 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'
8926 else
8927 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'
8928 fi
8929 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8930 hardcode_libdir_separator=:
8931 hardcode_direct=yes
8932
8933 # hardcode_minus_L: Not really in the search PATH,
8934 # but as the default location of the library.
8935 hardcode_minus_L=yes
8936 export_dynamic_flag_spec='${wl}-E'
8937 ;;
8938
8939 hpux10*)
8940 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8941 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8942 else
8943 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8944 fi
8945 if test "$with_gnu_ld" = no; then
8946 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8947 hardcode_libdir_flag_spec_ld='+b $libdir'
8948 hardcode_libdir_separator=:
8949 hardcode_direct=yes
8950 hardcode_direct_absolute=yes
8951 export_dynamic_flag_spec='${wl}-E'
8952 # hardcode_minus_L: Not really in the search PATH,
8953 # but as the default location of the library.
8954 hardcode_minus_L=yes
8955 fi
8956 ;;
8957
8958 hpux11*)
8959 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8960 case $host_cpu in
8961 hppa*64*)
8962 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8963 ;;
8964 ia64*)
8965 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8966 ;;
8967 *)
8968 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8969 ;;
8970 esac
8971 else
8972 case $host_cpu in
8973 hppa*64*)
8974 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8975 ;;
8976 ia64*)
8977 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8978 ;;
8979 *)
8980 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8981 ;;
8982 esac
8983 fi
8984 if test "$with_gnu_ld" = no; then
8985 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8986 hardcode_libdir_separator=:
8987
8988 case $host_cpu in
8989 hppa*64*|ia64*)
8990 hardcode_direct=no
8991 hardcode_shlibpath_var=no
8992 ;;
8993 *)
8994 hardcode_direct=yes
8995 hardcode_direct_absolute=yes
8996 export_dynamic_flag_spec='${wl}-E'
8997
8998 # hardcode_minus_L: Not really in the search PATH,
8999 # but as the default location of the library.
9000 hardcode_minus_L=yes
9001 ;;
9002 esac
9003 fi
9004 ;;
9005
9006 irix5* | irix6* | nonstopux*)
9007 if test "$GCC" = yes; then
9008 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'
9009 # Try to use the -exported_symbol ld option, if it does not
9010 # work, assume that -exports_file does not work either and
9011 # implicitly export all symbols.
9012 save_LDFLAGS="$LDFLAGS"
9013 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9014 cat >conftest.$ac_ext <<_ACEOF
9015int foo(void) {}
9016_ACEOF
9017rm -f conftest.$ac_objext conftest$ac_exeext
9018if { (ac_try="$ac_link"
9019case "(($ac_try" in
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9022esac
9023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9024$as_echo "$ac_try_echo") >&5
9025 (eval "$ac_link") 2>conftest.er1
9026 ac_status=$?
9027 grep -v '^ *+' conftest.er1 >conftest.err
9028 rm -f conftest.er1
9029 cat conftest.err >&5
9030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } && {
9032 test -z "$ac_c_werror_flag" ||
9033 test ! -s conftest.err
9034 } && test -s conftest$ac_exeext && {
9035 test "$cross_compiling" = yes ||
9036 $as_test_x conftest$ac_exeext
9037 }; then
9038 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'
9039
9040else
9041 $as_echo "$as_me: failed program was:" >&5
9042sed 's/^/| /' conftest.$ac_ext >&5
9043
9044
9045fi
9046
9047rm -rf conftest.dSYM
9048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9049 conftest$ac_exeext conftest.$ac_ext
9050 LDFLAGS="$save_LDFLAGS"
9051 else
9052 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'
9053 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'
9054 fi
9055 archive_cmds_need_lc='no'
9056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9057 hardcode_libdir_separator=:
9058 inherit_rpath=yes
9059 link_all_deplibs=yes
9060 ;;
9061
9062 netbsd*)
9063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9065 else
9066 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9067 fi
9068 hardcode_libdir_flag_spec='-R$libdir'
9069 hardcode_direct=yes
9070 hardcode_shlibpath_var=no
9071 ;;
9072
9073 newsos6)
9074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9075 hardcode_direct=yes
9076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9077 hardcode_libdir_separator=:
9078 hardcode_shlibpath_var=no
9079 ;;
9080
9081 *nto* | *qnx*)
9082 ;;
9083
9084 openbsd*)
9085 if test -f /usr/libexec/ld.so; then
9086 hardcode_direct=yes
9087 hardcode_shlibpath_var=no
9088 hardcode_direct_absolute=yes
9089 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9091 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9092 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9093 export_dynamic_flag_spec='${wl}-E'
9094 else
9095 case $host_os in
9096 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9097 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9098 hardcode_libdir_flag_spec='-R$libdir'
9099 ;;
9100 *)
9101 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9102 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9103 ;;
9104 esac
9105 fi
9106 else
9107 ld_shlibs=no
9108 fi
9109 ;;
9110
9111 os2*)
9112 hardcode_libdir_flag_spec='-L$libdir'
9113 hardcode_minus_L=yes
9114 allow_undefined_flag=unsupported
9115 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'
9116 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9117 ;;
9118
9119 osf3*)
9120 if test "$GCC" = yes; then
9121 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9122 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'
9123 else
9124 allow_undefined_flag=' -expect_unresolved \*'
9125 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'
9126 fi
9127 archive_cmds_need_lc='no'
9128 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9129 hardcode_libdir_separator=:
9130 ;;
9131
9132 osf4* | osf5*) # as osf3* with the addition of -msym flag
9133 if test "$GCC" = yes; then
9134 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9135 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'
9136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9137 else
9138 allow_undefined_flag=' -expect_unresolved \*'
9139 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'
9140 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~
9141 $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'
9142
9143 # Both c and cxx compiler support -rpath directly
9144 hardcode_libdir_flag_spec='-rpath $libdir'
9145 fi
9146 archive_cmds_need_lc='no'
9147 hardcode_libdir_separator=:
9148 ;;
9149
9150 solaris*)
9151 no_undefined_flag=' -z defs'
9152 if test "$GCC" = yes; then
9153 wlarc='${wl}'
9154 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9155 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9156 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9157 else
9158 case `$CC -V 2>&1` in
9159 *"Compilers 5.0"*)
9160 wlarc=''
9161 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9162 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9163 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9164 ;;
9165 *)
9166 wlarc='${wl}'
9167 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9168 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9169 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9170 ;;
9171 esac
9172 fi
9173 hardcode_libdir_flag_spec='-R$libdir'
9174 hardcode_shlibpath_var=no
9175 case $host_os in
9176 solaris2.[0-5] | solaris2.[0-5].*) ;;
9177 *)
9178 # The compiler driver will combine and reorder linker options,
9179 # but understands `-z linker_flag'. GCC discards it without `$wl',
9180 # but is careful enough not to reorder.
9181 # Supported since Solaris 2.6 (maybe 2.5.1?)
9182 if test "$GCC" = yes; then
9183 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9184 else
9185 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9186 fi
9187 ;;
9188 esac
9189 link_all_deplibs=yes
9190 ;;
9191
9192 sunos4*)
9193 if test "x$host_vendor" = xsequent; then
9194 # Use $CC to link under sequent, because it throws in some extra .o
9195 # files that make .init and .fini sections work.
9196 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9197 else
9198 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9199 fi
9200 hardcode_libdir_flag_spec='-L$libdir'
9201 hardcode_direct=yes
9202 hardcode_minus_L=yes
9203 hardcode_shlibpath_var=no
9204 ;;
9205
9206 sysv4)
9207 case $host_vendor in
9208 sni)
9209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9210 hardcode_direct=yes # is this really true???
9211 ;;
9212 siemens)
9213 ## LD is ld it makes a PLAMLIB
9214 ## CC just makes a GrossModule.
9215 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9216 reload_cmds='$CC -r -o $output$reload_objs'
9217 hardcode_direct=no
9218 ;;
9219 motorola)
9220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9221 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9222 ;;
9223 esac
9224 runpath_var='LD_RUN_PATH'
9225 hardcode_shlibpath_var=no
9226 ;;
9227
9228 sysv4.3*)
9229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9230 hardcode_shlibpath_var=no
9231 export_dynamic_flag_spec='-Bexport'
9232 ;;
9233
9234 sysv4*MP*)
9235 if test -d /usr/nec; then
9236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237 hardcode_shlibpath_var=no
9238 runpath_var=LD_RUN_PATH
9239 hardcode_runpath_var=yes
9240 ld_shlibs=yes
9241 fi
9242 ;;
9243
9244 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9245 no_undefined_flag='${wl}-z,text'
9246 archive_cmds_need_lc=no
9247 hardcode_shlibpath_var=no
9248 runpath_var='LD_RUN_PATH'
9249
9250 if test "$GCC" = yes; then
9251 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9252 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9253 else
9254 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9255 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9256 fi
9257 ;;
9258
9259 sysv5* | sco3.2v5* | sco5v6*)
9260 # Note: We can NOT use -z defs as we might desire, because we do not
9261 # link with -lc, and that would cause any symbols used from libc to
9262 # always be unresolved, which means just about no library would
9263 # ever link correctly. If we're not using GNU ld we use -z text
9264 # though, which does catch some bad symbols but isn't as heavy-handed
9265 # as -z defs.
9266 no_undefined_flag='${wl}-z,text'
9267 allow_undefined_flag='${wl}-z,nodefs'
9268 archive_cmds_need_lc=no
9269 hardcode_shlibpath_var=no
9270 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9271 hardcode_libdir_separator=':'
9272 link_all_deplibs=yes
9273 export_dynamic_flag_spec='${wl}-Bexport'
9274 runpath_var='LD_RUN_PATH'
9275
9276 if test "$GCC" = yes; then
9277 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9278 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9279 else
9280 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9281 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9282 fi
9283 ;;
9284
9285 uts4*)
9286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287 hardcode_libdir_flag_spec='-L$libdir'
9288 hardcode_shlibpath_var=no
9289 ;;
9290
9291 *)
9292 ld_shlibs=no
9293 ;;
9294 esac
9295
9296 if test x$host_vendor = xsni; then
9297 case $host in
9298 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9299 export_dynamic_flag_spec='${wl}-Blargedynsym'
9300 ;;
9301 esac
9302 fi
9303 fi
9304
9305{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9306$as_echo "$ld_shlibs" >&6; }
9307test "$ld_shlibs" = no && can_build_shared=no
9308
9309with_gnu_ld=$with_gnu_ld
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325#
9326# Do we need to explicitly link libc?
9327#
9328case "x$archive_cmds_need_lc" in
9329x|xyes)
9330 # Assume -lc should be added
9331 archive_cmds_need_lc=yes
9332
9333 if test "$enable_shared" = yes && test "$GCC" = yes; then
9334 case $archive_cmds in
9335 *'~'*)
9336 # FIXME: we may have to deal with multi-command sequences.
9337 ;;
9338 '$CC '*)
9339 # Test whether the compiler implicitly links with -lc since on some
9340 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9341 # to ld, don't add -lc before -lgcc.
9342 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9343$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9344 $RM conftest*
9345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9346
9347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9348 (eval $ac_compile) 2>&5
9349 ac_status=$?
9350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } 2>conftest.err; then
9352 soname=conftest
9353 lib=conftest
9354 libobjs=conftest.$ac_objext
9355 deplibs=
9356 wl=$lt_prog_compiler_wl
9357 pic_flag=$lt_prog_compiler_pic
9358 compiler_flags=-v
9359 linker_flags=-v
9360 verstring=
9361 output_objdir=.
9362 libname=conftest
9363 lt_save_allow_undefined_flag=$allow_undefined_flag
9364 allow_undefined_flag=
9365 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9366 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9367 ac_status=$?
9368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }
9370 then
9371 archive_cmds_need_lc=no
9372 else
9373 archive_cmds_need_lc=yes
9374 fi
9375 allow_undefined_flag=$lt_save_allow_undefined_flag
9376 else
9377 cat conftest.err 1>&5
9378 fi
9379 $RM conftest*
9380 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9381$as_echo "$archive_cmds_need_lc" >&6; }
9382 ;;
9383 esac
9384 fi
9385 ;;
9386esac
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9545$as_echo_n "checking dynamic linker characteristics... " >&6; }
9546
9547if test "$GCC" = yes; then
9548 case $host_os in
9549 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9550 *) lt_awk_arg="/^libraries:/" ;;
9551 esac
9552 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9553 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9554 # if the path contains ";" then we assume it to be the separator
9555 # otherwise default to the standard path separator (i.e. ":") - it is
9556 # assumed that no part of a normal pathname contains ";" but that should
9557 # okay in the real world where ";" in dirpaths is itself problematic.
9558 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9559 else
9560 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9561 fi
9562 # Ok, now we have the path, separated by spaces, we can step through it
9563 # and add multilib dir if necessary.
9564 lt_tmp_lt_search_path_spec=
9565 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9566 for lt_sys_path in $lt_search_path_spec; do
9567 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9568 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9569 else
9570 test -d "$lt_sys_path" && \
9571 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9572 fi
9573 done
9574 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9575BEGIN {RS=" "; FS="/|\n";} {
9576 lt_foo="";
9577 lt_count=0;
9578 for (lt_i = NF; lt_i > 0; lt_i--) {
9579 if ($lt_i != "" && $lt_i != ".") {
9580 if ($lt_i == "..") {
9581 lt_count++;
9582 } else {
9583 if (lt_count == 0) {
9584 lt_foo="/" $lt_i lt_foo;
9585 } else {
9586 lt_count--;
9587 }
9588 }
9589 }
9590 }
9591 if (lt_foo != "") { lt_freq[lt_foo]++; }
9592 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9593}'`
9594 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9595else
9596 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9597fi
9598library_names_spec=
9599libname_spec='lib$name'
9600soname_spec=
9601shrext_cmds=".so"
9602postinstall_cmds=
9603postuninstall_cmds=
9604finish_cmds=
9605finish_eval=
9606shlibpath_var=
9607shlibpath_overrides_runpath=unknown
9608version_type=none
9609dynamic_linker="$host_os ld.so"
9610sys_lib_dlsearch_path_spec="/lib /usr/lib"
9611need_lib_prefix=unknown
9612hardcode_into_libs=no
9613
9614# when you set need_version to no, make sure it does not cause -set_version
9615# flags to be left without arguments
9616need_version=unknown
9617
9618case $host_os in
9619aix3*)
9620 version_type=linux
9621 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9622 shlibpath_var=LIBPATH
9623
9624 # AIX 3 has no versioning support, so we append a major version to the name.
9625 soname_spec='${libname}${release}${shared_ext}$major'
9626 ;;
9627
9628aix[4-9]*)
9629 version_type=linux
9630 need_lib_prefix=no
9631 need_version=no
9632 hardcode_into_libs=yes
9633 if test "$host_cpu" = ia64; then
9634 # AIX 5 supports IA64
9635 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9636 shlibpath_var=LD_LIBRARY_PATH
9637 else
9638 # With GCC up to 2.95.x, collect2 would create an import file
9639 # for dependence libraries. The import file would start with
9640 # the line `#! .'. This would cause the generated library to
9641 # depend on `.', always an invalid library. This was fixed in
9642 # development snapshots of GCC prior to 3.0.
9643 case $host_os in
9644 aix4 | aix4.[01] | aix4.[01].*)
9645 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9646 echo ' yes '
9647 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9648 :
9649 else
9650 can_build_shared=no
9651 fi
9652 ;;
9653 esac
9654 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9655 # soname into executable. Probably we can add versioning support to
9656 # collect2, so additional links can be useful in future.
9657 if test "$aix_use_runtimelinking" = yes; then
9658 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9659 # instead of lib<name>.a to let people know that these are not
9660 # typical AIX shared libraries.
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662 else
9663 # We preserve .a as extension for shared libraries through AIX4.2
9664 # and later when we are not doing run time linking.
9665 library_names_spec='${libname}${release}.a $libname.a'
9666 soname_spec='${libname}${release}${shared_ext}$major'
9667 fi
9668 shlibpath_var=LIBPATH
9669 fi
9670 ;;
9671
9672amigaos*)
9673 case $host_cpu in
9674 powerpc)
9675 # Since July 2007 AmigaOS4 officially supports .so libraries.
9676 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678 ;;
9679 m68k)
9680 library_names_spec='$libname.ixlibrary $libname.a'
9681 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9682 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'
9683 ;;
9684 esac
9685 ;;
9686
9687beos*)
9688 library_names_spec='${libname}${shared_ext}'
9689 dynamic_linker="$host_os ld.so"
9690 shlibpath_var=LIBRARY_PATH
9691 ;;
9692
9693bsdi[45]*)
9694 version_type=linux
9695 need_version=no
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697 soname_spec='${libname}${release}${shared_ext}$major'
9698 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9699 shlibpath_var=LD_LIBRARY_PATH
9700 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9701 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9702 # the default ld.so.conf also contains /usr/contrib/lib and
9703 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9704 # libtool to hard-code these into programs
9705 ;;
9706
9707cygwin* | mingw* | pw32*)
9708 version_type=windows
9709 shrext_cmds=".dll"
9710 need_version=no
9711 need_lib_prefix=no
9712
9713 case $GCC,$host_os in
9714 yes,cygwin* | yes,mingw* | yes,pw32*)
9715 library_names_spec='$libname.dll.a'
9716 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9717 postinstall_cmds='base_file=`basename \${file}`~
9718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9719 dldir=$destdir/`dirname \$dlpath`~
9720 test -d \$dldir || mkdir -p \$dldir~
9721 $install_prog $dir/$dlname \$dldir/$dlname~
9722 chmod a+x \$dldir/$dlname~
9723 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9724 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9725 fi'
9726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9727 dlpath=$dir/\$dldll~
9728 $RM \$dlpath'
9729 shlibpath_overrides_runpath=yes
9730
9731 case $host_os in
9732 cygwin*)
9733 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9734 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9735 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9736 ;;
9737 mingw*)
9738 # MinGW DLLs use traditional 'lib' prefix
9739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9740 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9741 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9742 # It is most probably a Windows format PATH printed by
9743 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9744 # path with ; separators, and with drive letters. We can handle the
9745 # drive letters (cygwin fileutils understands them), so leave them,
9746 # especially as we might pass files found there to a mingw objdump,
9747 # which wouldn't understand a cygwinified path. Ahh.
9748 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9749 else
9750 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9751 fi
9752 ;;
9753 pw32*)
9754 # pw32 DLLs use 'pw' prefix rather than 'lib'
9755 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9756 ;;
9757 esac
9758 ;;
9759
9760 *)
9761 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9762 ;;
9763 esac
9764 dynamic_linker='Win32 ld.exe'
9765 # FIXME: first we should search . and the directory the executable is in
9766 shlibpath_var=PATH
9767 ;;
9768
9769darwin* | rhapsody*)
9770 dynamic_linker="$host_os dyld"
9771 version_type=darwin
9772 need_lib_prefix=no
9773 need_version=no
9774 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9775 soname_spec='${libname}${release}${major}$shared_ext'
9776 shlibpath_overrides_runpath=yes
9777 shlibpath_var=DYLD_LIBRARY_PATH
9778 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9779
9780 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9781 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9782 ;;
9783
9784dgux*)
9785 version_type=linux
9786 need_lib_prefix=no
9787 need_version=no
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9789 soname_spec='${libname}${release}${shared_ext}$major'
9790 shlibpath_var=LD_LIBRARY_PATH
9791 ;;
9792
9793freebsd1*)
9794 dynamic_linker=no
9795 ;;
9796
9797freebsd* | dragonfly*)
9798 # DragonFly does not have aout. When/if they implement a new
9799 # versioning mechanism, adjust this.
9800 if test -x /usr/bin/objformat; then
9801 objformat=`/usr/bin/objformat`
9802 else
9803 case $host_os in
9804 freebsd[123]*) objformat=aout ;;
9805 *) objformat=elf ;;
9806 esac
9807 fi
9808 version_type=freebsd-$objformat
9809 case $version_type in
9810 freebsd-elf*)
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9812 need_version=no
9813 need_lib_prefix=no
9814 ;;
9815 freebsd-*)
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9817 need_version=yes
9818 ;;
9819 esac
9820 shlibpath_var=LD_LIBRARY_PATH
9821 case $host_os in
9822 freebsd2*)
9823 shlibpath_overrides_runpath=yes
9824 ;;
9825 freebsd3.[01]* | freebsdelf3.[01]*)
9826 shlibpath_overrides_runpath=yes
9827 hardcode_into_libs=yes
9828 ;;
9829 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9830 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9831 shlibpath_overrides_runpath=no
9832 hardcode_into_libs=yes
9833 ;;
9834 *) # from 4.6 on, and DragonFly
9835 shlibpath_overrides_runpath=yes
9836 hardcode_into_libs=yes
9837 ;;
9838 esac
9839 ;;
9840
9841gnu*)
9842 version_type=linux
9843 need_lib_prefix=no
9844 need_version=no
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9846 soname_spec='${libname}${release}${shared_ext}$major'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 hardcode_into_libs=yes
9849 ;;
9850
9851hpux9* | hpux10* | hpux11*)
9852 # Give a soname corresponding to the major version so that dld.sl refuses to
9853 # link against other versions.
9854 version_type=sunos
9855 need_lib_prefix=no
9856 need_version=no
9857 case $host_cpu in
9858 ia64*)
9859 shrext_cmds='.so'
9860 hardcode_into_libs=yes
9861 dynamic_linker="$host_os dld.so"
9862 shlibpath_var=LD_LIBRARY_PATH
9863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865 soname_spec='${libname}${release}${shared_ext}$major'
9866 if test "X$HPUX_IA64_MODE" = X32; then
9867 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9868 else
9869 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9870 fi
9871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9872 ;;
9873 hppa*64*)
9874 shrext_cmds='.sl'
9875 hardcode_into_libs=yes
9876 dynamic_linker="$host_os dld.sl"
9877 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880 soname_spec='${libname}${release}${shared_ext}$major'
9881 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9883 ;;
9884 *)
9885 shrext_cmds='.sl'
9886 dynamic_linker="$host_os dld.sl"
9887 shlibpath_var=SHLIB_PATH
9888 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 ;;
9892 esac
9893 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9894 postinstall_cmds='chmod 555 $lib'
9895 ;;
9896
9897interix[3-9]*)
9898 version_type=linux
9899 need_lib_prefix=no
9900 need_version=no
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 shlibpath_overrides_runpath=no
9906 hardcode_into_libs=yes
9907 ;;
9908
9909irix5* | irix6* | nonstopux*)
9910 case $host_os in
9911 nonstopux*) version_type=nonstopux ;;
9912 *)
9913 if test "$lt_cv_prog_gnu_ld" = yes; then
9914 version_type=linux
9915 else
9916 version_type=irix
9917 fi ;;
9918 esac
9919 need_lib_prefix=no
9920 need_version=no
9921 soname_spec='${libname}${release}${shared_ext}$major'
9922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9923 case $host_os in
9924 irix5* | nonstopux*)
9925 libsuff= shlibsuff=
9926 ;;
9927 *)
9928 case $LD in # libtool.m4 will add one of these switches to LD
9929 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9930 libsuff= shlibsuff= libmagic=32-bit;;
9931 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9932 libsuff=32 shlibsuff=N32 libmagic=N32;;
9933 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9934 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9935 *) libsuff= shlibsuff= libmagic=never-match;;
9936 esac
9937 ;;
9938 esac
9939 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9940 shlibpath_overrides_runpath=no
9941 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9942 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9943 hardcode_into_libs=yes
9944 ;;
9945
9946# No shared lib support for Linux oldld, aout, or coff.
9947linux*oldld* | linux*aout* | linux*coff*)
9948 dynamic_linker=no
9949 ;;
9950
9951# This must be Linux ELF.
9952linux* | k*bsd*-gnu)
9953 version_type=linux
9954 need_lib_prefix=no
9955 need_version=no
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957 soname_spec='${libname}${release}${shared_ext}$major'
9958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9959 shlibpath_var=LD_LIBRARY_PATH
9960 shlibpath_overrides_runpath=no
9961 # Some binutils ld are patched to set DT_RUNPATH
9962 save_LDFLAGS=$LDFLAGS
9963 save_libdir=$libdir
9964 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9965 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9966 cat >conftest.$ac_ext <<_ACEOF
9967/* confdefs.h. */
9968_ACEOF
9969cat confdefs.h >>conftest.$ac_ext
9970cat >>conftest.$ac_ext <<_ACEOF
9971/* end confdefs.h. */
9972
9973int
9974main ()
9975{
9976
9977 ;
9978 return 0;
9979}
9980_ACEOF
9981rm -f conftest.$ac_objext conftest$ac_exeext
9982if { (ac_try="$ac_link"
9983case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9986esac
9987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9988$as_echo "$ac_try_echo") >&5
9989 (eval "$ac_link") 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } && {
9996 test -z "$ac_c_werror_flag" ||
9997 test ! -s conftest.err
9998 } && test -s conftest$ac_exeext && {
9999 test "$cross_compiling" = yes ||
10000 $as_test_x conftest$ac_exeext
10001 }; then
10002 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10003 shlibpath_overrides_runpath=yes
10004fi
10005
10006else
10007 $as_echo "$as_me: failed program was:" >&5
10008sed 's/^/| /' conftest.$ac_ext >&5
10009
10010
10011fi
10012
10013rm -rf conftest.dSYM
10014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10015 conftest$ac_exeext conftest.$ac_ext
10016 LDFLAGS=$save_LDFLAGS
10017 libdir=$save_libdir
10018
10019 # This implies no fast_install, which is unacceptable.
10020 # Some rework will be needed to allow for fast_install
10021 # before this can be enabled.
10022 hardcode_into_libs=yes
10023
10024 # Append ld.so.conf contents to the search path
10025 if test -f /etc/ld.so.conf; then
10026 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' ' '`
10027 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10028 fi
10029
10030 # We used to test for /lib/ld.so.1 and disable shared libraries on
10031 # powerpc, because MkLinux only supported shared libraries with the
10032 # GNU dynamic linker. Since this was broken with cross compilers,
10033 # most powerpc-linux boxes support dynamic linking these days and
10034 # people can always --disable-shared, the test was removed, and we
10035 # assume the GNU/Linux dynamic linker is in use.
10036 dynamic_linker='GNU/Linux ld.so'
10037 ;;
10038
10039netbsd*)
10040 version_type=sunos
10041 need_lib_prefix=no
10042 need_version=no
10043 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10046 dynamic_linker='NetBSD (a.out) ld.so'
10047 else
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10049 soname_spec='${libname}${release}${shared_ext}$major'
10050 dynamic_linker='NetBSD ld.elf_so'
10051 fi
10052 shlibpath_var=LD_LIBRARY_PATH
10053 shlibpath_overrides_runpath=yes
10054 hardcode_into_libs=yes
10055 ;;
10056
10057newsos6)
10058 version_type=linux
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060 shlibpath_var=LD_LIBRARY_PATH
10061 shlibpath_overrides_runpath=yes
10062 ;;
10063
10064*nto* | *qnx*)
10065 version_type=qnx
10066 need_lib_prefix=no
10067 need_version=no
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10069 soname_spec='${libname}${release}${shared_ext}$major'
10070 shlibpath_var=LD_LIBRARY_PATH
10071 shlibpath_overrides_runpath=no
10072 hardcode_into_libs=yes
10073 dynamic_linker='ldqnx.so'
10074 ;;
10075
10076openbsd*)
10077 version_type=sunos
10078 sys_lib_dlsearch_path_spec="/usr/lib"
10079 need_lib_prefix=no
10080 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10081 case $host_os in
10082 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10083 *) need_version=no ;;
10084 esac
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10087 shlibpath_var=LD_LIBRARY_PATH
10088 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10089 case $host_os in
10090 openbsd2.[89] | openbsd2.[89].*)
10091 shlibpath_overrides_runpath=no
10092 ;;
10093 *)
10094 shlibpath_overrides_runpath=yes
10095 ;;
10096 esac
10097 else
10098 shlibpath_overrides_runpath=yes
10099 fi
10100 ;;
10101
10102os2*)
10103 libname_spec='$name'
10104 shrext_cmds=".dll"
10105 need_lib_prefix=no
10106 library_names_spec='$libname${shared_ext} $libname.a'
10107 dynamic_linker='OS/2 ld.exe'
10108 shlibpath_var=LIBPATH
10109 ;;
10110
10111osf3* | osf4* | osf5*)
10112 version_type=osf
10113 need_lib_prefix=no
10114 need_version=no
10115 soname_spec='${libname}${release}${shared_ext}$major'
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117 shlibpath_var=LD_LIBRARY_PATH
10118 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10119 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10120 ;;
10121
10122rdos*)
10123 dynamic_linker=no
10124 ;;
10125
10126solaris*)
10127 version_type=linux
10128 need_lib_prefix=no
10129 need_version=no
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 shlibpath_overrides_runpath=yes
10134 hardcode_into_libs=yes
10135 # ldd complains unless libraries are executable
10136 postinstall_cmds='chmod +x $lib'
10137 ;;
10138
10139sunos4*)
10140 version_type=sunos
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10142 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10143 shlibpath_var=LD_LIBRARY_PATH
10144 shlibpath_overrides_runpath=yes
10145 if test "$with_gnu_ld" = yes; then
10146 need_lib_prefix=no
10147 fi
10148 need_version=yes
10149 ;;
10150
10151sysv4 | sysv4.3*)
10152 version_type=linux
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 case $host_vendor in
10157 sni)
10158 shlibpath_overrides_runpath=no
10159 need_lib_prefix=no
10160 runpath_var=LD_RUN_PATH
10161 ;;
10162 siemens)
10163 need_lib_prefix=no
10164 ;;
10165 motorola)
10166 need_lib_prefix=no
10167 need_version=no
10168 shlibpath_overrides_runpath=no
10169 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10170 ;;
10171 esac
10172 ;;
10173
10174sysv4*MP*)
10175 if test -d /usr/nec ;then
10176 version_type=linux
10177 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10178 soname_spec='$libname${shared_ext}.$major'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 fi
10181 ;;
10182
10183sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10184 version_type=freebsd-elf
10185 need_lib_prefix=no
10186 need_version=no
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 shlibpath_var=LD_LIBRARY_PATH
10190 shlibpath_overrides_runpath=yes
10191 hardcode_into_libs=yes
10192 if test "$with_gnu_ld" = yes; then
10193 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10194 else
10195 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10196 case $host_os in
10197 sco3.2v5*)
10198 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10199 ;;
10200 esac
10201 fi
10202 sys_lib_dlsearch_path_spec='/usr/lib'
10203 ;;
10204
10205tpf*)
10206 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10207 version_type=linux
10208 need_lib_prefix=no
10209 need_version=no
10210 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=no
10213 hardcode_into_libs=yes
10214 ;;
10215
10216uts4*)
10217 version_type=linux
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 shlibpath_var=LD_LIBRARY_PATH
10221 ;;
10222
10223*)
10224 dynamic_linker=no
10225 ;;
10226esac
10227{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10228$as_echo "$dynamic_linker" >&6; }
10229test "$dynamic_linker" = no && can_build_shared=no
10230
10231variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10232if test "$GCC" = yes; then
10233 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10234fi
10235
10236if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10237 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10238fi
10239if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10240 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10241fi
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10330$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10331hardcode_action=
10332if test -n "$hardcode_libdir_flag_spec" ||
10333 test -n "$runpath_var" ||
10334 test "X$hardcode_automatic" = "Xyes" ; then
10335
10336 # We can hardcode non-existent directories.
10337 if test "$hardcode_direct" != no &&
10338 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10339 # have to relink, otherwise we might link with an installed library
10340 # when we should be linking with a yet-to-be-installed one
10341 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10342 test "$hardcode_minus_L" != no; then
10343 # Linking always hardcodes the temporary library directory.
10344 hardcode_action=relink
10345 else
10346 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10347 hardcode_action=immediate
10348 fi
10349else
10350 # We cannot hardcode anything, or else we can only hardcode existing
10351 # directories.
10352 hardcode_action=unsupported
10353fi
10354{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10355$as_echo "$hardcode_action" >&6; }
10356
10357if test "$hardcode_action" = relink ||
10358 test "$inherit_rpath" = yes; then
10359 # Fast installation is not supported
10360 enable_fast_install=no
10361elif test "$shlibpath_overrides_runpath" = yes ||
10362 test "$enable_shared" = no; then
10363 # Fast installation is not necessary
10364 enable_fast_install=needless
10365fi
10366
10367
10368
10369
10370
10371
10372 if test "x$enable_dlopen" != xyes; then
10373 enable_dlopen=unknown
10374 enable_dlopen_self=unknown
10375 enable_dlopen_self_static=unknown
10376else
10377 lt_cv_dlopen=no
10378 lt_cv_dlopen_libs=
10379
10380 case $host_os in
10381 beos*)
10382 lt_cv_dlopen="load_add_on"
10383 lt_cv_dlopen_libs=
10384 lt_cv_dlopen_self=yes
10385 ;;
10386
10387 mingw* | pw32*)
10388 lt_cv_dlopen="LoadLibrary"
10389 lt_cv_dlopen_libs=
10390 ;;
10391
10392 cygwin*)
10393 lt_cv_dlopen="dlopen"
10394 lt_cv_dlopen_libs=
10395 ;;
10396
10397 darwin*)
10398 # if libdl is installed we need to link against it
10399 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10400$as_echo_n "checking for dlopen in -ldl... " >&6; }
10401if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10402 $as_echo_n "(cached) " >&6
10403else
10404 ac_check_lib_save_LIBS=$LIBS
10405LIBS="-ldl $LIBS"
10406cat >conftest.$ac_ext <<_ACEOF
10407/* confdefs.h. */
10408_ACEOF
10409cat confdefs.h >>conftest.$ac_ext
10410cat >>conftest.$ac_ext <<_ACEOF
10411/* end confdefs.h. */
10412
10413/* Override any GCC internal prototype to avoid an error.
10414 Use char because int might match the return type of a GCC
10415 builtin and then its argument prototype would still apply. */
10416#ifdef __cplusplus
10417extern "C"
10418#endif
10419char dlopen ();
10420int
10421main ()
10422{
10423return dlopen ();
10424 ;
10425 return 0;
10426}
10427_ACEOF
10428rm -f conftest.$ac_objext conftest$ac_exeext
10429if { (ac_try="$ac_link"
10430case "(($ac_try" in
10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432 *) ac_try_echo=$ac_try;;
10433esac
10434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10435$as_echo "$ac_try_echo") >&5
10436 (eval "$ac_link") 2>conftest.er1
10437 ac_status=$?
10438 grep -v '^ *+' conftest.er1 >conftest.err
10439 rm -f conftest.er1
10440 cat conftest.err >&5
10441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } && {
10443 test -z "$ac_c_werror_flag" ||
10444 test ! -s conftest.err
10445 } && test -s conftest$ac_exeext && {
10446 test "$cross_compiling" = yes ||
10447 $as_test_x conftest$ac_exeext
10448 }; then
10449 ac_cv_lib_dl_dlopen=yes
10450else
10451 $as_echo "$as_me: failed program was:" >&5
10452sed 's/^/| /' conftest.$ac_ext >&5
10453
10454 ac_cv_lib_dl_dlopen=no
10455fi
10456
10457rm -rf conftest.dSYM
10458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10459 conftest$ac_exeext conftest.$ac_ext
10460LIBS=$ac_check_lib_save_LIBS
10461fi
10462{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10463$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10464if test $ac_cv_lib_dl_dlopen = yes; then
10465 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10466else
10467
10468 lt_cv_dlopen="dyld"
10469 lt_cv_dlopen_libs=
10470 lt_cv_dlopen_self=yes
10471
10472fi
10473
10474 ;;
10475
10476 *)
10477 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10478$as_echo_n "checking for shl_load... " >&6; }
10479if test "${ac_cv_func_shl_load+set}" = set; then
10480 $as_echo_n "(cached) " >&6
10481else
10482 cat >conftest.$ac_ext <<_ACEOF
10483/* confdefs.h. */
10484_ACEOF
10485cat confdefs.h >>conftest.$ac_ext
10486cat >>conftest.$ac_ext <<_ACEOF
10487/* end confdefs.h. */
10488/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10490#define shl_load innocuous_shl_load
10491
10492/* System header to define __stub macros and hopefully few prototypes,
10493 which can conflict with char shl_load (); below.
10494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10495 <limits.h> exists even on freestanding compilers. */
10496
10497#ifdef __STDC__
10498# include <limits.h>
10499#else
10500# include <assert.h>
10501#endif
10502
10503#undef shl_load
10504
10505/* Override any GCC internal prototype to avoid an error.
10506 Use char because int might match the return type of a GCC
10507 builtin and then its argument prototype would still apply. */
10508#ifdef __cplusplus
10509extern "C"
10510#endif
10511char shl_load ();
10512/* The GNU C library defines this for functions which it implements
10513 to always fail with ENOSYS. Some functions are actually named
10514 something starting with __ and the normal name is an alias. */
10515#if defined __stub_shl_load || defined __stub___shl_load
10516choke me
10517#endif
10518
10519int
10520main ()
10521{
10522return shl_load ();
10523 ;
10524 return 0;
10525}
10526_ACEOF
10527rm -f conftest.$ac_objext conftest$ac_exeext
10528if { (ac_try="$ac_link"
10529case "(($ac_try" in
10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10532esac
10533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10534$as_echo "$ac_try_echo") >&5
10535 (eval "$ac_link") 2>conftest.er1
10536 ac_status=$?
10537 grep -v '^ *+' conftest.er1 >conftest.err
10538 rm -f conftest.er1
10539 cat conftest.err >&5
10540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && {
10542 test -z "$ac_c_werror_flag" ||
10543 test ! -s conftest.err
10544 } && test -s conftest$ac_exeext && {
10545 test "$cross_compiling" = yes ||
10546 $as_test_x conftest$ac_exeext
10547 }; then
10548 ac_cv_func_shl_load=yes
10549else
10550 $as_echo "$as_me: failed program was:" >&5
10551sed 's/^/| /' conftest.$ac_ext >&5
10552
10553 ac_cv_func_shl_load=no
10554fi
10555
10556rm -rf conftest.dSYM
10557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558 conftest$ac_exeext conftest.$ac_ext
10559fi
10560{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10561$as_echo "$ac_cv_func_shl_load" >&6; }
10562if test $ac_cv_func_shl_load = yes; then
10563 lt_cv_dlopen="shl_load"
10564else
10565 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10566$as_echo_n "checking for shl_load in -ldld... " >&6; }
10567if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10568 $as_echo_n "(cached) " >&6
10569else
10570 ac_check_lib_save_LIBS=$LIBS
10571LIBS="-ldld $LIBS"
10572cat >conftest.$ac_ext <<_ACEOF
10573/* confdefs.h. */
10574_ACEOF
10575cat confdefs.h >>conftest.$ac_ext
10576cat >>conftest.$ac_ext <<_ACEOF
10577/* end confdefs.h. */
10578
10579/* Override any GCC internal prototype to avoid an error.
10580 Use char because int might match the return type of a GCC
10581 builtin and then its argument prototype would still apply. */
10582#ifdef __cplusplus
10583extern "C"
10584#endif
10585char shl_load ();
10586int
10587main ()
10588{
10589return shl_load ();
10590 ;
10591 return 0;
10592}
10593_ACEOF
10594rm -f conftest.$ac_objext conftest$ac_exeext
10595if { (ac_try="$ac_link"
10596case "(($ac_try" in
10597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598 *) ac_try_echo=$ac_try;;
10599esac
10600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10601$as_echo "$ac_try_echo") >&5
10602 (eval "$ac_link") 2>conftest.er1
10603 ac_status=$?
10604 grep -v '^ *+' conftest.er1 >conftest.err
10605 rm -f conftest.er1
10606 cat conftest.err >&5
10607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } && {
10609 test -z "$ac_c_werror_flag" ||
10610 test ! -s conftest.err
10611 } && test -s conftest$ac_exeext && {
10612 test "$cross_compiling" = yes ||
10613 $as_test_x conftest$ac_exeext
10614 }; then
10615 ac_cv_lib_dld_shl_load=yes
10616else
10617 $as_echo "$as_me: failed program was:" >&5
10618sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 ac_cv_lib_dld_shl_load=no
10621fi
10622
10623rm -rf conftest.dSYM
10624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10625 conftest$ac_exeext conftest.$ac_ext
10626LIBS=$ac_check_lib_save_LIBS
10627fi
10628{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10629$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10630if test $ac_cv_lib_dld_shl_load = yes; then
10631 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10632else
10633 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10634$as_echo_n "checking for dlopen... " >&6; }
10635if test "${ac_cv_func_dlopen+set}" = set; then
10636 $as_echo_n "(cached) " >&6
10637else
10638 cat >conftest.$ac_ext <<_ACEOF
10639/* confdefs.h. */
10640_ACEOF
10641cat confdefs.h >>conftest.$ac_ext
10642cat >>conftest.$ac_ext <<_ACEOF
10643/* end confdefs.h. */
10644/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10646#define dlopen innocuous_dlopen
10647
10648/* System header to define __stub macros and hopefully few prototypes,
10649 which can conflict with char dlopen (); below.
10650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10651 <limits.h> exists even on freestanding compilers. */
10652
10653#ifdef __STDC__
10654# include <limits.h>
10655#else
10656# include <assert.h>
10657#endif
10658
10659#undef dlopen
10660
10661/* Override any GCC internal prototype to avoid an error.
10662 Use char because int might match the return type of a GCC
10663 builtin and then its argument prototype would still apply. */
10664#ifdef __cplusplus
10665extern "C"
10666#endif
10667char dlopen ();
10668/* The GNU C library defines this for functions which it implements
10669 to always fail with ENOSYS. Some functions are actually named
10670 something starting with __ and the normal name is an alias. */
10671#if defined __stub_dlopen || defined __stub___dlopen
10672choke me
10673#endif
10674
10675int
10676main ()
10677{
10678return dlopen ();
10679 ;
10680 return 0;
10681}
10682_ACEOF
10683rm -f conftest.$ac_objext conftest$ac_exeext
10684if { (ac_try="$ac_link"
10685case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10688esac
10689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10690$as_echo "$ac_try_echo") >&5
10691 (eval "$ac_link") 2>conftest.er1
10692 ac_status=$?
10693 grep -v '^ *+' conftest.er1 >conftest.err
10694 rm -f conftest.er1
10695 cat conftest.err >&5
10696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } && {
10698 test -z "$ac_c_werror_flag" ||
10699 test ! -s conftest.err
10700 } && test -s conftest$ac_exeext && {
10701 test "$cross_compiling" = yes ||
10702 $as_test_x conftest$ac_exeext
10703 }; then
10704 ac_cv_func_dlopen=yes
10705else
10706 $as_echo "$as_me: failed program was:" >&5
10707sed 's/^/| /' conftest.$ac_ext >&5
10708
10709 ac_cv_func_dlopen=no
10710fi
10711
10712rm -rf conftest.dSYM
10713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10714 conftest$ac_exeext conftest.$ac_ext
10715fi
10716{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10717$as_echo "$ac_cv_func_dlopen" >&6; }
10718if test $ac_cv_func_dlopen = yes; then
10719 lt_cv_dlopen="dlopen"
10720else
10721 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10722$as_echo_n "checking for dlopen in -ldl... " >&6; }
10723if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10724 $as_echo_n "(cached) " >&6
10725else
10726 ac_check_lib_save_LIBS=$LIBS
10727LIBS="-ldl $LIBS"
10728cat >conftest.$ac_ext <<_ACEOF
10729/* confdefs.h. */
10730_ACEOF
10731cat confdefs.h >>conftest.$ac_ext
10732cat >>conftest.$ac_ext <<_ACEOF
10733/* end confdefs.h. */
10734
10735/* Override any GCC internal prototype to avoid an error.
10736 Use char because int might match the return type of a GCC
10737 builtin and then its argument prototype would still apply. */
10738#ifdef __cplusplus
10739extern "C"
10740#endif
10741char dlopen ();
10742int
10743main ()
10744{
10745return dlopen ();
10746 ;
10747 return 0;
10748}
10749_ACEOF
10750rm -f conftest.$ac_objext conftest$ac_exeext
10751if { (ac_try="$ac_link"
10752case "(($ac_try" in
10753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10754 *) ac_try_echo=$ac_try;;
10755esac
10756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10757$as_echo "$ac_try_echo") >&5
10758 (eval "$ac_link") 2>conftest.er1
10759 ac_status=$?
10760 grep -v '^ *+' conftest.er1 >conftest.err
10761 rm -f conftest.er1
10762 cat conftest.err >&5
10763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } && {
10765 test -z "$ac_c_werror_flag" ||
10766 test ! -s conftest.err
10767 } && test -s conftest$ac_exeext && {
10768 test "$cross_compiling" = yes ||
10769 $as_test_x conftest$ac_exeext
10770 }; then
10771 ac_cv_lib_dl_dlopen=yes
10772else
10773 $as_echo "$as_me: failed program was:" >&5
10774sed 's/^/| /' conftest.$ac_ext >&5
10775
10776 ac_cv_lib_dl_dlopen=no
10777fi
10778
10779rm -rf conftest.dSYM
10780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10781 conftest$ac_exeext conftest.$ac_ext
10782LIBS=$ac_check_lib_save_LIBS
10783fi
10784{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10785$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10786if test $ac_cv_lib_dl_dlopen = yes; then
10787 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10788else
10789 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10790$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10791if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10792 $as_echo_n "(cached) " >&6
10793else
10794 ac_check_lib_save_LIBS=$LIBS
10795LIBS="-lsvld $LIBS"
10796cat >conftest.$ac_ext <<_ACEOF
10797/* confdefs.h. */
10798_ACEOF
10799cat confdefs.h >>conftest.$ac_ext
10800cat >>conftest.$ac_ext <<_ACEOF
10801/* end confdefs.h. */
10802
10803/* Override any GCC internal prototype to avoid an error.
10804 Use char because int might match the return type of a GCC
10805 builtin and then its argument prototype would still apply. */
10806#ifdef __cplusplus
10807extern "C"
10808#endif
10809char dlopen ();
10810int
10811main ()
10812{
10813return dlopen ();
10814 ;
10815 return 0;
10816}
10817_ACEOF
10818rm -f conftest.$ac_objext conftest$ac_exeext
10819if { (ac_try="$ac_link"
10820case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10823esac
10824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10825$as_echo "$ac_try_echo") >&5
10826 (eval "$ac_link") 2>conftest.er1
10827 ac_status=$?
10828 grep -v '^ *+' conftest.er1 >conftest.err
10829 rm -f conftest.er1
10830 cat conftest.err >&5
10831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } && {
10833 test -z "$ac_c_werror_flag" ||
10834 test ! -s conftest.err
10835 } && test -s conftest$ac_exeext && {
10836 test "$cross_compiling" = yes ||
10837 $as_test_x conftest$ac_exeext
10838 }; then
10839 ac_cv_lib_svld_dlopen=yes
10840else
10841 $as_echo "$as_me: failed program was:" >&5
10842sed 's/^/| /' conftest.$ac_ext >&5
10843
10844 ac_cv_lib_svld_dlopen=no
10845fi
10846
10847rm -rf conftest.dSYM
10848rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10849 conftest$ac_exeext conftest.$ac_ext
10850LIBS=$ac_check_lib_save_LIBS
10851fi
10852{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10853$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10854if test $ac_cv_lib_svld_dlopen = yes; then
10855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10856else
10857 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10858$as_echo_n "checking for dld_link in -ldld... " >&6; }
10859if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10860 $as_echo_n "(cached) " >&6
10861else
10862 ac_check_lib_save_LIBS=$LIBS
10863LIBS="-ldld $LIBS"
10864cat >conftest.$ac_ext <<_ACEOF
10865/* confdefs.h. */
10866_ACEOF
10867cat confdefs.h >>conftest.$ac_ext
10868cat >>conftest.$ac_ext <<_ACEOF
10869/* end confdefs.h. */
10870
10871/* Override any GCC internal prototype to avoid an error.
10872 Use char because int might match the return type of a GCC
10873 builtin and then its argument prototype would still apply. */
10874#ifdef __cplusplus
10875extern "C"
10876#endif
10877char dld_link ();
10878int
10879main ()
10880{
10881return dld_link ();
10882 ;
10883 return 0;
10884}
10885_ACEOF
10886rm -f conftest.$ac_objext conftest$ac_exeext
10887if { (ac_try="$ac_link"
10888case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10891esac
10892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10893$as_echo "$ac_try_echo") >&5
10894 (eval "$ac_link") 2>conftest.er1
10895 ac_status=$?
10896 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1
10898 cat conftest.err >&5
10899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && {
10901 test -z "$ac_c_werror_flag" ||
10902 test ! -s conftest.err
10903 } && test -s conftest$ac_exeext && {
10904 test "$cross_compiling" = yes ||
10905 $as_test_x conftest$ac_exeext
10906 }; then
10907 ac_cv_lib_dld_dld_link=yes
10908else
10909 $as_echo "$as_me: failed program was:" >&5
10910sed 's/^/| /' conftest.$ac_ext >&5
10911
10912 ac_cv_lib_dld_dld_link=no
10913fi
10914
10915rm -rf conftest.dSYM
10916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10917 conftest$ac_exeext conftest.$ac_ext
10918LIBS=$ac_check_lib_save_LIBS
10919fi
10920{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10921$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10922if test $ac_cv_lib_dld_dld_link = yes; then
10923 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10924fi
10925
10926
10927fi
10928
10929
10930fi
10931
10932
10933fi
10934
10935
10936fi
10937
10938
10939fi
10940
10941 ;;
10942 esac
10943
10944 if test "x$lt_cv_dlopen" != xno; then
10945 enable_dlopen=yes
10946 else
10947 enable_dlopen=no
10948 fi
10949
10950 case $lt_cv_dlopen in
10951 dlopen)
10952 save_CPPFLAGS="$CPPFLAGS"
10953 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10954
10955 save_LDFLAGS="$LDFLAGS"
10956 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10957
10958 save_LIBS="$LIBS"
10959 LIBS="$lt_cv_dlopen_libs $LIBS"
10960
10961 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10962$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10963if test "${lt_cv_dlopen_self+set}" = set; then
10964 $as_echo_n "(cached) " >&6
10965else
10966 if test "$cross_compiling" = yes; then :
10967 lt_cv_dlopen_self=cross
10968else
10969 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10970 lt_status=$lt_dlunknown
10971 cat > conftest.$ac_ext <<_LT_EOF
10972#line 10972 "configure"
10973#include "confdefs.h"
10974
10975#if HAVE_DLFCN_H
10976#include <dlfcn.h>
10977#endif
10978
10979#include <stdio.h>
10980
10981#ifdef RTLD_GLOBAL
10982# define LT_DLGLOBAL RTLD_GLOBAL
10983#else
10984# ifdef DL_GLOBAL
10985# define LT_DLGLOBAL DL_GLOBAL
10986# else
10987# define LT_DLGLOBAL 0
10988# endif
10989#endif
10990
10991/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10992 find out it does not work in some platform. */
10993#ifndef LT_DLLAZY_OR_NOW
10994# ifdef RTLD_LAZY
10995# define LT_DLLAZY_OR_NOW RTLD_LAZY
10996# else
10997# ifdef DL_LAZY
10998# define LT_DLLAZY_OR_NOW DL_LAZY
10999# else
11000# ifdef RTLD_NOW
11001# define LT_DLLAZY_OR_NOW RTLD_NOW
11002# else
11003# ifdef DL_NOW
11004# define LT_DLLAZY_OR_NOW DL_NOW
11005# else
11006# define LT_DLLAZY_OR_NOW 0
11007# endif
11008# endif
11009# endif
11010# endif
11011#endif
11012
11013#ifdef __cplusplus
11014extern "C" void exit (int);
11015#endif
11016
11017void fnord() { int i=42;}
11018int main ()
11019{
11020 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11021 int status = $lt_dlunknown;
11022
11023 if (self)
11024 {
11025 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11026 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11027 /* dlclose (self); */
11028 }
11029 else
11030 puts (dlerror ());
11031
11032 exit (status);
11033}
11034_LT_EOF
11035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11036 (eval $ac_link) 2>&5
11037 ac_status=$?
11038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11040 (./conftest; exit; ) >&5 2>/dev/null
11041 lt_status=$?
11042 case x$lt_status in
11043 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11044 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11045 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11046 esac
11047 else :
11048 # compilation failed
11049 lt_cv_dlopen_self=no
11050 fi
11051fi
11052rm -fr conftest*
11053
11054
11055fi
11056{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11057$as_echo "$lt_cv_dlopen_self" >&6; }
11058
11059 if test "x$lt_cv_dlopen_self" = xyes; then
11060 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11061 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11062$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11063if test "${lt_cv_dlopen_self_static+set}" = set; then
11064 $as_echo_n "(cached) " >&6
11065else
11066 if test "$cross_compiling" = yes; then :
11067 lt_cv_dlopen_self_static=cross
11068else
11069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11070 lt_status=$lt_dlunknown
11071 cat > conftest.$ac_ext <<_LT_EOF
11072#line 11072 "configure"
11073#include "confdefs.h"
11074
11075#if HAVE_DLFCN_H
11076#include <dlfcn.h>
11077#endif
11078
11079#include <stdio.h>
11080
11081#ifdef RTLD_GLOBAL
11082# define LT_DLGLOBAL RTLD_GLOBAL
11083#else
11084# ifdef DL_GLOBAL
11085# define LT_DLGLOBAL DL_GLOBAL
11086# else
11087# define LT_DLGLOBAL 0
11088# endif
11089#endif
11090
11091/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11092 find out it does not work in some platform. */
11093#ifndef LT_DLLAZY_OR_NOW
11094# ifdef RTLD_LAZY
11095# define LT_DLLAZY_OR_NOW RTLD_LAZY
11096# else
11097# ifdef DL_LAZY
11098# define LT_DLLAZY_OR_NOW DL_LAZY
11099# else
11100# ifdef RTLD_NOW
11101# define LT_DLLAZY_OR_NOW RTLD_NOW
11102# else
11103# ifdef DL_NOW
11104# define LT_DLLAZY_OR_NOW DL_NOW
11105# else
11106# define LT_DLLAZY_OR_NOW 0
11107# endif
11108# endif
11109# endif
11110# endif
11111#endif
11112
11113#ifdef __cplusplus
11114extern "C" void exit (int);
11115#endif
11116
11117void fnord() { int i=42;}
11118int main ()
11119{
11120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11121 int status = $lt_dlunknown;
11122
11123 if (self)
11124 {
11125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11126 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11127 /* dlclose (self); */
11128 }
11129 else
11130 puts (dlerror ());
11131
11132 exit (status);
11133}
11134_LT_EOF
11135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11136 (eval $ac_link) 2>&5
11137 ac_status=$?
11138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11140 (./conftest; exit; ) >&5 2>/dev/null
11141 lt_status=$?
11142 case x$lt_status in
11143 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11144 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11145 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11146 esac
11147 else :
11148 # compilation failed
11149 lt_cv_dlopen_self_static=no
11150 fi
11151fi
11152rm -fr conftest*
11153
11154
11155fi
11156{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11157$as_echo "$lt_cv_dlopen_self_static" >&6; }
11158 fi
11159
11160 CPPFLAGS="$save_CPPFLAGS"
11161 LDFLAGS="$save_LDFLAGS"
11162 LIBS="$save_LIBS"
11163 ;;
11164 esac
11165
11166 case $lt_cv_dlopen_self in
11167 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11168 *) enable_dlopen_self=unknown ;;
11169 esac
11170
11171 case $lt_cv_dlopen_self_static in
11172 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11173 *) enable_dlopen_self_static=unknown ;;
11174 esac
11175fi
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193striplib=
11194old_striplib=
11195{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11196$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11197if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11198 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11199 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11200 { $as_echo "$as_me:$LINENO: result: yes" >&5
11201$as_echo "yes" >&6; }
11202else
11203# FIXME - insert some real tests, host_os isn't really good enough
11204 case $host_os in
11205 darwin*)
11206 if test -n "$STRIP" ; then
11207 striplib="$STRIP -x"
11208 old_striplib="$STRIP -S"
11209 { $as_echo "$as_me:$LINENO: result: yes" >&5
11210$as_echo "yes" >&6; }
11211 else
11212 { $as_echo "$as_me:$LINENO: result: no" >&5
11213$as_echo "no" >&6; }
11214 fi
11215 ;;
11216 *)
11217 { $as_echo "$as_me:$LINENO: result: no" >&5
11218$as_echo "no" >&6; }
11219 ;;
11220 esac
11221fi
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234 # Report which library types will actually be built
11235 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11236$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11237 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11238$as_echo "$can_build_shared" >&6; }
11239
11240 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11241$as_echo_n "checking whether to build shared libraries... " >&6; }
11242 test "$can_build_shared" = "no" && enable_shared=no
11243
11244 # On AIX, shared libraries and static libraries use the same namespace, and
11245 # are all built from PIC.
11246 case $host_os in
11247 aix3*)
11248 test "$enable_shared" = yes && enable_static=no
11249 if test -n "$RANLIB"; then
11250 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11251 postinstall_cmds='$RANLIB $lib'
11252 fi
11253 ;;
11254
11255 aix[4-9]*)
11256 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11257 test "$enable_shared" = yes && enable_static=no
11258 fi
11259 ;;
11260 esac
11261 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11262$as_echo "$enable_shared" >&6; }
11263
11264 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11265$as_echo_n "checking whether to build static libraries... " >&6; }
11266 # Make sure either enable_shared or enable_static is yes.
11267 test "$enable_shared" = yes || enable_static=yes
11268 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11269$as_echo "$enable_static" >&6; }
11270
11271
11272
11273
11274fi
11275ac_ext=c
11276ac_cpp='$CPP $CPPFLAGS'
11277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11279ac_compiler_gnu=$ac_cv_c_compiler_gnu
11280
11281CC="$lt_save_CC"
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295 ac_config_commands="$ac_config_commands libtool"
11296
11297
11298
11299
11300# Only expand once:
11301
11302
11303
11304# Checks for header files.
11305{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11306$as_echo_n "checking for ANSI C header files... " >&6; }
11307if test "${ac_cv_header_stdc+set}" = set; then
11308 $as_echo_n "(cached) " >&6
11309else
11310 cat >conftest.$ac_ext <<_ACEOF
11311/* confdefs.h. */
11312_ACEOF
11313cat confdefs.h >>conftest.$ac_ext
11314cat >>conftest.$ac_ext <<_ACEOF
11315/* end confdefs.h. */
11316#include <stdlib.h>
11317#include <stdarg.h>
11318#include <string.h>
11319#include <float.h>
11320
11321int
11322main ()
11323{
11324
11325 ;
11326 return 0;
11327}
11328_ACEOF
11329rm -f conftest.$ac_objext
11330if { (ac_try="$ac_compile"
11331case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334esac
11335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11336$as_echo "$ac_try_echo") >&5
11337 (eval "$ac_compile") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest.$ac_objext; then
11347 ac_cv_header_stdc=yes
11348else
11349 $as_echo "$as_me: failed program was:" >&5
11350sed 's/^/| /' conftest.$ac_ext >&5
11351
11352 ac_cv_header_stdc=no
11353fi
11354
11355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356
11357if test $ac_cv_header_stdc = yes; then
11358 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11359 cat >conftest.$ac_ext <<_ACEOF
11360/* confdefs.h. */
11361_ACEOF
11362cat confdefs.h >>conftest.$ac_ext
11363cat >>conftest.$ac_ext <<_ACEOF
11364/* end confdefs.h. */
11365#include <string.h>
11366
11367_ACEOF
11368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11369 $EGREP "memchr" >/dev/null 2>&1; then
11370 :
11371else
11372 ac_cv_header_stdc=no
11373fi
11374rm -f conftest*
11375
11376fi
11377
11378if test $ac_cv_header_stdc = yes; then
11379 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11380 cat >conftest.$ac_ext <<_ACEOF
11381/* confdefs.h. */
11382_ACEOF
11383cat confdefs.h >>conftest.$ac_ext
11384cat >>conftest.$ac_ext <<_ACEOF
11385/* end confdefs.h. */
11386#include <stdlib.h>
11387
11388_ACEOF
11389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11390 $EGREP "free" >/dev/null 2>&1; then
11391 :
11392else
11393 ac_cv_header_stdc=no
11394fi
11395rm -f conftest*
11396
11397fi
11398
11399if test $ac_cv_header_stdc = yes; then
11400 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11401 if test "$cross_compiling" = yes; then
11402 :
11403else
11404 cat >conftest.$ac_ext <<_ACEOF
11405/* confdefs.h. */
11406_ACEOF
11407cat confdefs.h >>conftest.$ac_ext
11408cat >>conftest.$ac_ext <<_ACEOF
11409/* end confdefs.h. */
11410#include <ctype.h>
11411#include <stdlib.h>
11412#if ((' ' & 0x0FF) == 0x020)
11413# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11414# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11415#else
11416# define ISLOWER(c) \
11417 (('a' <= (c) && (c) <= 'i') \
11418 || ('j' <= (c) && (c) <= 'r') \
11419 || ('s' <= (c) && (c) <= 'z'))
11420# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11421#endif
11422
11423#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11424int
11425main ()
11426{
11427 int i;
11428 for (i = 0; i < 256; i++)
11429 if (XOR (islower (i), ISLOWER (i))
11430 || toupper (i) != TOUPPER (i))
11431 return 2;
11432 return 0;
11433}
11434_ACEOF
11435rm -f conftest$ac_exeext
11436if { (ac_try="$ac_link"
11437case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440esac
11441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11442$as_echo "$ac_try_echo") >&5
11443 (eval "$ac_link") 2>&5
11444 ac_status=$?
11445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11447 { (case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11450esac
11451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11452$as_echo "$ac_try_echo") >&5
11453 (eval "$ac_try") 2>&5
11454 ac_status=$?
11455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 :
11458else
11459 $as_echo "$as_me: program exited with status $ac_status" >&5
11460$as_echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
11463( exit $ac_status )
11464ac_cv_header_stdc=no
11465fi
11466rm -rf conftest.dSYM
11467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11468fi
11469
11470
11471fi
11472fi
11473{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11474$as_echo "$ac_cv_header_stdc" >&6; }
11475if test $ac_cv_header_stdc = yes; then
11476
11477cat >>confdefs.h <<\_ACEOF
11478#define STDC_HEADERS 1
11479_ACEOF
11480
11481fi
11482
11483
11484
11485
11486
11487for ac_header in malloc.h stdlib.h string.h strings.h
11488do
11489as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11491 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11492$as_echo_n "checking for $ac_header... " >&6; }
11493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11494 $as_echo_n "(cached) " >&6
11495fi
11496ac_res=`eval 'as_val=${'$as_ac_Header'}
11497 $as_echo "$as_val"'`
11498 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11499$as_echo "$ac_res" >&6; }
11500else
11501 # Is the header compilable?
11502{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11503$as_echo_n "checking $ac_header usability... " >&6; }
11504cat >conftest.$ac_ext <<_ACEOF
11505/* confdefs.h. */
11506_ACEOF
11507cat confdefs.h >>conftest.$ac_ext
11508cat >>conftest.$ac_ext <<_ACEOF
11509/* end confdefs.h. */
11510$ac_includes_default
11511#include <$ac_header>
11512_ACEOF
11513rm -f conftest.$ac_objext
11514if { (ac_try="$ac_compile"
11515case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11518esac
11519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11520$as_echo "$ac_try_echo") >&5
11521 (eval "$ac_compile") 2>conftest.er1
11522 ac_status=$?
11523 grep -v '^ *+' conftest.er1 >conftest.err
11524 rm -f conftest.er1
11525 cat conftest.err >&5
11526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } && {
11528 test -z "$ac_c_werror_flag" ||
11529 test ! -s conftest.err
11530 } && test -s conftest.$ac_objext; then
11531 ac_header_compiler=yes
11532else
11533 $as_echo "$as_me: failed program was:" >&5
11534sed 's/^/| /' conftest.$ac_ext >&5
11535
11536 ac_header_compiler=no
11537fi
11538
11539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11541$as_echo "$ac_header_compiler" >&6; }
11542
11543# Is the header present?
11544{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11545$as_echo_n "checking $ac_header presence... " >&6; }
11546cat >conftest.$ac_ext <<_ACEOF
11547/* confdefs.h. */
11548_ACEOF
11549cat confdefs.h >>conftest.$ac_ext
11550cat >>conftest.$ac_ext <<_ACEOF
11551/* end confdefs.h. */
11552#include <$ac_header>
11553_ACEOF
11554if { (ac_try="$ac_cpp conftest.$ac_ext"
11555case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558esac
11559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11560$as_echo "$ac_try_echo") >&5
11561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11562 ac_status=$?
11563 grep -v '^ *+' conftest.er1 >conftest.err
11564 rm -f conftest.er1
11565 cat conftest.err >&5
11566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } >/dev/null && {
11568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11569 test ! -s conftest.err
11570 }; then
11571 ac_header_preproc=yes
11572else
11573 $as_echo "$as_me: failed program was:" >&5
11574sed 's/^/| /' conftest.$ac_ext >&5
11575
11576 ac_header_preproc=no
11577fi
11578
11579rm -f conftest.err conftest.$ac_ext
11580{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11581$as_echo "$ac_header_preproc" >&6; }
11582
11583# So? What about this header?
11584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11585 yes:no: )
11586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11587$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11589$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11590 ac_header_preproc=yes
11591 ;;
11592 no:yes:* )
11593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11594$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11596$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11598$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11600$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11602$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11604$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11605 ( cat <<\_ASBOX
11606## ------------------------------------------------------ ##
11607## Report this to png-mng-implement@lists.sourceforge.net ##
11608## ------------------------------------------------------ ##
11609_ASBOX
11610 ) | sed "s/^/$as_me: WARNING: /" >&2
11611 ;;
11612esac
11613{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11614$as_echo_n "checking for $ac_header... " >&6; }
11615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11616 $as_echo_n "(cached) " >&6
11617else
11618 eval "$as_ac_Header=\$ac_header_preproc"
11619fi
11620ac_res=`eval 'as_val=${'$as_ac_Header'}
11621 $as_echo "$as_val"'`
11622 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11623$as_echo "$ac_res" >&6; }
11624
11625fi
11626if test `eval 'as_val=${'$as_ac_Header'}
11627 $as_echo "$as_val"'` = yes; then
11628 cat >>confdefs.h <<_ACEOF
11629#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11630_ACEOF
11631
11632fi
11633
11634done
11635
11636
11637# Checks for typedefs, structures, and compiler characteristics.
11638{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11639$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11640if test "${ac_cv_c_const+set}" = set; then
11641 $as_echo_n "(cached) " >&6
11642else
11643 cat >conftest.$ac_ext <<_ACEOF
11644/* confdefs.h. */
11645_ACEOF
11646cat confdefs.h >>conftest.$ac_ext
11647cat >>conftest.$ac_ext <<_ACEOF
11648/* end confdefs.h. */
11649
11650int
11651main ()
11652{
11653/* FIXME: Include the comments suggested by Paul. */
11654#ifndef __cplusplus
11655 /* Ultrix mips cc rejects this. */
11656 typedef int charset[2];
11657 const charset cs;
11658 /* SunOS 4.1.1 cc rejects this. */
11659 char const *const *pcpcc;
11660 char **ppc;
11661 /* NEC SVR4.0.2 mips cc rejects this. */
11662 struct point {int x, y;};
11663 static struct point const zero = {0,0};
11664 /* AIX XL C 1.02.0.0 rejects this.
11665 It does not let you subtract one const X* pointer from another in
11666 an arm of an if-expression whose if-part is not a constant
11667 expression */
11668 const char *g = "string";
11669 pcpcc = &g + (g ? g-g : 0);
11670 /* HPUX 7.0 cc rejects these. */
11671 ++pcpcc;
11672 ppc = (char**) pcpcc;
11673 pcpcc = (char const *const *) ppc;
11674 { /* SCO 3.2v4 cc rejects this. */
11675 char *t;
11676 char const *s = 0 ? (char *) 0 : (char const *) 0;
11677
11678 *t++ = 0;
11679 if (s) return 0;
11680 }
11681 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11682 int x[] = {25, 17};
11683 const int *foo = &x[0];
11684 ++foo;
11685 }
11686 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11687 typedef const int *iptr;
11688 iptr p = 0;
11689 ++p;
11690 }
11691 { /* AIX XL C 1.02.0.0 rejects this saying
11692 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11693 struct s { int j; const int *ap[3]; };
11694 struct s *b; b->j = 5;
11695 }
11696 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11697 const int foo = 10;
11698 if (!foo) return 0;
11699 }
11700 return !cs[0] && !zero.x;
11701#endif
11702
11703 ;
11704 return 0;
11705}
11706_ACEOF
11707rm -f conftest.$ac_objext
11708if { (ac_try="$ac_compile"
11709case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11712esac
11713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11714$as_echo "$ac_try_echo") >&5
11715 (eval "$ac_compile") 2>conftest.er1
11716 ac_status=$?
11717 grep -v '^ *+' conftest.er1 >conftest.err
11718 rm -f conftest.er1
11719 cat conftest.err >&5
11720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } && {
11722 test -z "$ac_c_werror_flag" ||
11723 test ! -s conftest.err
11724 } && test -s conftest.$ac_objext; then
11725 ac_cv_c_const=yes
11726else
11727 $as_echo "$as_me: failed program was:" >&5
11728sed 's/^/| /' conftest.$ac_ext >&5
11729
11730 ac_cv_c_const=no
11731fi
11732
11733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11734fi
11735{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11736$as_echo "$ac_cv_c_const" >&6; }
11737if test $ac_cv_c_const = no; then
11738
11739cat >>confdefs.h <<\_ACEOF
11740#define const /**/
11741_ACEOF
11742
11743fi
11744
11745{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
11746$as_echo_n "checking for size_t... " >&6; }
11747if test "${ac_cv_type_size_t+set}" = set; then
11748 $as_echo_n "(cached) " >&6
11749else
11750 ac_cv_type_size_t=no
11751cat >conftest.$ac_ext <<_ACEOF
11752/* confdefs.h. */
11753_ACEOF
11754cat confdefs.h >>conftest.$ac_ext
11755cat >>conftest.$ac_ext <<_ACEOF
11756/* end confdefs.h. */
11757$ac_includes_default
11758int
11759main ()
11760{
11761if (sizeof (size_t))
11762 return 0;
11763 ;
11764 return 0;
11765}
11766_ACEOF
11767rm -f conftest.$ac_objext
11768if { (ac_try="$ac_compile"
11769case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11772esac
11773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11774$as_echo "$ac_try_echo") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
11785 cat >conftest.$ac_ext <<_ACEOF
11786/* confdefs.h. */
11787_ACEOF
11788cat confdefs.h >>conftest.$ac_ext
11789cat >>conftest.$ac_ext <<_ACEOF
11790/* end confdefs.h. */
11791$ac_includes_default
11792int
11793main ()
11794{
11795if (sizeof ((size_t)))
11796 return 0;
11797 ;
11798 return 0;
11799}
11800_ACEOF
11801rm -f conftest.$ac_objext
11802if { (ac_try="$ac_compile"
11803case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11806esac
11807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11808$as_echo "$ac_try_echo") >&5
11809 (eval "$ac_compile") 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } && {
11816 test -z "$ac_c_werror_flag" ||
11817 test ! -s conftest.err
11818 } && test -s conftest.$ac_objext; then
11819 :
11820else
11821 $as_echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 ac_cv_type_size_t=yes
11825fi
11826
11827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828else
11829 $as_echo "$as_me: failed program was:" >&5
11830sed 's/^/| /' conftest.$ac_ext >&5
11831
11832
11833fi
11834
11835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836fi
11837{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11838$as_echo "$ac_cv_type_size_t" >&6; }
11839if test $ac_cv_type_size_t = yes; then
11840 :
11841else
11842
11843cat >>confdefs.h <<_ACEOF
11844#define size_t unsigned int
11845_ACEOF
11846
11847fi
11848
11849{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11850$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11851if test "${ac_cv_struct_tm+set}" = set; then
11852 $as_echo_n "(cached) " >&6
11853else
11854 cat >conftest.$ac_ext <<_ACEOF
11855/* confdefs.h. */
11856_ACEOF
11857cat confdefs.h >>conftest.$ac_ext
11858cat >>conftest.$ac_ext <<_ACEOF
11859/* end confdefs.h. */
11860#include <sys/types.h>
11861#include <time.h>
11862
11863int
11864main ()
11865{
11866struct tm tm;
11867 int *p = &tm.tm_sec;
11868 return !p;
11869 ;
11870 return 0;
11871}
11872_ACEOF
11873rm -f conftest.$ac_objext
11874if { (ac_try="$ac_compile"
11875case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11878esac
11879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11880$as_echo "$ac_try_echo") >&5
11881 (eval "$ac_compile") 2>conftest.er1
11882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } && {
11888 test -z "$ac_c_werror_flag" ||
11889 test ! -s conftest.err
11890 } && test -s conftest.$ac_objext; then
11891 ac_cv_struct_tm=time.h
11892else
11893 $as_echo "$as_me: failed program was:" >&5
11894sed 's/^/| /' conftest.$ac_ext >&5
11895
11896 ac_cv_struct_tm=sys/time.h
11897fi
11898
11899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900fi
11901{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11902$as_echo "$ac_cv_struct_tm" >&6; }
11903if test $ac_cv_struct_tm = sys/time.h; then
11904
11905cat >>confdefs.h <<\_ACEOF
11906#define TM_IN_SYS_TIME 1
11907_ACEOF
11908
11909fi
11910
11911
11912# Checks for library functions.
11913{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
11914$as_echo_n "checking for working strtod... " >&6; }
11915if test "${ac_cv_func_strtod+set}" = set; then
11916 $as_echo_n "(cached) " >&6
11917else
11918 if test "$cross_compiling" = yes; then
11919 ac_cv_func_strtod=no
11920else
11921 cat >conftest.$ac_ext <<_ACEOF
11922/* confdefs.h. */
11923_ACEOF
11924cat confdefs.h >>conftest.$ac_ext
11925cat >>conftest.$ac_ext <<_ACEOF
11926/* end confdefs.h. */
11927
11928$ac_includes_default
11929#ifndef strtod
11930double strtod ();
11931#endif
11932int
11933main()
11934{
11935 {
11936 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
11937 char *string = " +69";
11938 char *term;
11939 double value;
11940 value = strtod (string, &term);
11941 if (value != 69 || term != (string + 4))
11942 return 1;
11943 }
11944
11945 {
11946 /* Under Solaris 2.4, strtod returns the wrong value for the
11947 terminating character under some conditions. */
11948 char *string = "NaN";
11949 char *term;
11950 strtod (string, &term);
11951 if (term != string && *(term - 1) == 0)
11952 return 1;
11953 }
11954 return 0;
11955}
11956
11957_ACEOF
11958rm -f conftest$ac_exeext
11959if { (ac_try="$ac_link"
11960case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963esac
11964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11965$as_echo "$ac_try_echo") >&5
11966 (eval "$ac_link") 2>&5
11967 ac_status=$?
11968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11970 { (case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973esac
11974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11975$as_echo "$ac_try_echo") >&5
11976 (eval "$ac_try") 2>&5
11977 ac_status=$?
11978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
11980 ac_cv_func_strtod=yes
11981else
11982 $as_echo "$as_me: program exited with status $ac_status" >&5
11983$as_echo "$as_me: failed program was:" >&5
11984sed 's/^/| /' conftest.$ac_ext >&5
11985
11986( exit $ac_status )
11987ac_cv_func_strtod=no
11988fi
11989rm -rf conftest.dSYM
11990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11991fi
11992
11993
11994fi
11995{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
11996$as_echo "$ac_cv_func_strtod" >&6; }
11997if test $ac_cv_func_strtod = no; then
11998 case " $LIBOBJS " in
11999 *" strtod.$ac_objext "* ) ;;
12000 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12001 ;;
12002esac
12003
12004{ $as_echo "$as_me:$LINENO: checking for pow" >&5
12005$as_echo_n "checking for pow... " >&6; }
12006if test "${ac_cv_func_pow+set}" = set; then
12007 $as_echo_n "(cached) " >&6
12008else
12009 cat >conftest.$ac_ext <<_ACEOF
12010/* confdefs.h. */
12011_ACEOF
12012cat confdefs.h >>conftest.$ac_ext
12013cat >>conftest.$ac_ext <<_ACEOF
12014/* end confdefs.h. */
12015/* Define pow to an innocuous variant, in case <limits.h> declares pow.
12016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12017#define pow innocuous_pow
12018
12019/* System header to define __stub macros and hopefully few prototypes,
12020 which can conflict with char pow (); below.
12021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12022 <limits.h> exists even on freestanding compilers. */
12023
12024#ifdef __STDC__
12025# include <limits.h>
12026#else
12027# include <assert.h>
12028#endif
12029
12030#undef pow
12031
12032/* Override any GCC internal prototype to avoid an error.
12033 Use char because int might match the return type of a GCC
12034 builtin and then its argument prototype would still apply. */
12035#ifdef __cplusplus
12036extern "C"
12037#endif
12038char pow ();
12039/* The GNU C library defines this for functions which it implements
12040 to always fail with ENOSYS. Some functions are actually named
12041 something starting with __ and the normal name is an alias. */
12042#if defined __stub_pow || defined __stub___pow
12043choke me
12044#endif
12045
12046int
12047main ()
12048{
12049return pow ();
12050 ;
12051 return 0;
12052}
12053_ACEOF
12054rm -f conftest.$ac_objext conftest$ac_exeext
12055if { (ac_try="$ac_link"
12056case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12059esac
12060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12061$as_echo "$ac_try_echo") >&5
12062 (eval "$ac_link") 2>conftest.er1
12063 ac_status=$?
12064 grep -v '^ *+' conftest.er1 >conftest.err
12065 rm -f conftest.er1
12066 cat conftest.err >&5
12067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } && {
12069 test -z "$ac_c_werror_flag" ||
12070 test ! -s conftest.err
12071 } && test -s conftest$ac_exeext && {
12072 test "$cross_compiling" = yes ||
12073 $as_test_x conftest$ac_exeext
12074 }; then
12075 ac_cv_func_pow=yes
12076else
12077 $as_echo "$as_me: failed program was:" >&5
12078sed 's/^/| /' conftest.$ac_ext >&5
12079
12080 ac_cv_func_pow=no
12081fi
12082
12083rm -rf conftest.dSYM
12084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12085 conftest$ac_exeext conftest.$ac_ext
12086fi
12087{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12088$as_echo "$ac_cv_func_pow" >&6; }
12089
12090if test $ac_cv_func_pow = no; then
12091 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
12092$as_echo_n "checking for pow in -lm... " >&6; }
12093if test "${ac_cv_lib_m_pow+set}" = set; then
12094 $as_echo_n "(cached) " >&6
12095else
12096 ac_check_lib_save_LIBS=$LIBS
12097LIBS="-lm $LIBS"
12098cat >conftest.$ac_ext <<_ACEOF
12099/* confdefs.h. */
12100_ACEOF
12101cat confdefs.h >>conftest.$ac_ext
12102cat >>conftest.$ac_ext <<_ACEOF
12103/* end confdefs.h. */
12104
12105/* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12108#ifdef __cplusplus
12109extern "C"
12110#endif
12111char pow ();
12112int
12113main ()
12114{
12115return pow ();
12116 ;
12117 return 0;
12118}
12119_ACEOF
12120rm -f conftest.$ac_objext conftest$ac_exeext
12121if { (ac_try="$ac_link"
12122case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12125esac
12126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12127$as_echo "$ac_try_echo") >&5
12128 (eval "$ac_link") 2>conftest.er1
12129 ac_status=$?
12130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
12133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } && {
12135 test -z "$ac_c_werror_flag" ||
12136 test ! -s conftest.err
12137 } && test -s conftest$ac_exeext && {
12138 test "$cross_compiling" = yes ||
12139 $as_test_x conftest$ac_exeext
12140 }; then
12141 ac_cv_lib_m_pow=yes
12142else
12143 $as_echo "$as_me: failed program was:" >&5
12144sed 's/^/| /' conftest.$ac_ext >&5
12145
12146 ac_cv_lib_m_pow=no
12147fi
12148
12149rm -rf conftest.dSYM
12150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12151 conftest$ac_exeext conftest.$ac_ext
12152LIBS=$ac_check_lib_save_LIBS
12153fi
12154{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12155$as_echo "$ac_cv_lib_m_pow" >&6; }
12156if test $ac_cv_lib_m_pow = yes; then
12157 POW_LIB=-lm
12158else
12159 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
12160$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12161fi
12162
12163fi
12164
12165fi
12166
12167
12168for ac_func in memset
12169do
12170as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12171{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12172$as_echo_n "checking for $ac_func... " >&6; }
12173if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12174 $as_echo_n "(cached) " >&6
12175else
12176 cat >conftest.$ac_ext <<_ACEOF
12177/* confdefs.h. */
12178_ACEOF
12179cat confdefs.h >>conftest.$ac_ext
12180cat >>conftest.$ac_ext <<_ACEOF
12181/* end confdefs.h. */
12182/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12184#define $ac_func innocuous_$ac_func
12185
12186/* System header to define __stub macros and hopefully few prototypes,
12187 which can conflict with char $ac_func (); below.
12188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12189 <limits.h> exists even on freestanding compilers. */
12190
12191#ifdef __STDC__
12192# include <limits.h>
12193#else
12194# include <assert.h>
12195#endif
12196
12197#undef $ac_func
12198
12199/* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
12202#ifdef __cplusplus
12203extern "C"
12204#endif
12205char $ac_func ();
12206/* The GNU C library defines this for functions which it implements
12207 to always fail with ENOSYS. Some functions are actually named
12208 something starting with __ and the normal name is an alias. */
12209#if defined __stub_$ac_func || defined __stub___$ac_func
12210choke me
12211#endif
12212
12213int
12214main ()
12215{
12216return $ac_func ();
12217 ;
12218 return 0;
12219}
12220_ACEOF
12221rm -f conftest.$ac_objext conftest$ac_exeext
12222if { (ac_try="$ac_link"
12223case "(($ac_try" in
12224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225 *) ac_try_echo=$ac_try;;
12226esac
12227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12228$as_echo "$ac_try_echo") >&5
12229 (eval "$ac_link") 2>conftest.er1
12230 ac_status=$?
12231 grep -v '^ *+' conftest.er1 >conftest.err
12232 rm -f conftest.er1
12233 cat conftest.err >&5
12234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } && {
12236 test -z "$ac_c_werror_flag" ||
12237 test ! -s conftest.err
12238 } && test -s conftest$ac_exeext && {
12239 test "$cross_compiling" = yes ||
12240 $as_test_x conftest$ac_exeext
12241 }; then
12242 eval "$as_ac_var=yes"
12243else
12244 $as_echo "$as_me: failed program was:" >&5
12245sed 's/^/| /' conftest.$ac_ext >&5
12246
12247 eval "$as_ac_var=no"
12248fi
12249
12250rm -rf conftest.dSYM
12251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12252 conftest$ac_exeext conftest.$ac_ext
12253fi
12254ac_res=`eval 'as_val=${'$as_ac_var'}
12255 $as_echo "$as_val"'`
12256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12257$as_echo "$ac_res" >&6; }
12258if test `eval 'as_val=${'$as_ac_var'}
12259 $as_echo "$as_val"'` = yes; then
12260 cat >>confdefs.h <<_ACEOF
12261#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12262_ACEOF
12263
12264else
12265 { { $as_echo "$as_me:$LINENO: error: memset not found in libc" >&5
12266$as_echo "$as_me: error: memset not found in libc" >&2;}
12267 { (exit 1); exit 1; }; }
12268fi
12269done
12270
12271
12272for ac_func in pow
12273do
12274as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12275{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12276$as_echo_n "checking for $ac_func... " >&6; }
12277if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12278 $as_echo_n "(cached) " >&6
12279else
12280 cat >conftest.$ac_ext <<_ACEOF
12281/* confdefs.h. */
12282_ACEOF
12283cat confdefs.h >>conftest.$ac_ext
12284cat >>conftest.$ac_ext <<_ACEOF
12285/* end confdefs.h. */
12286/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12288#define $ac_func innocuous_$ac_func
12289
12290/* System header to define __stub macros and hopefully few prototypes,
12291 which can conflict with char $ac_func (); below.
12292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12293 <limits.h> exists even on freestanding compilers. */
12294
12295#ifdef __STDC__
12296# include <limits.h>
12297#else
12298# include <assert.h>
12299#endif
12300
12301#undef $ac_func
12302
12303/* Override any GCC internal prototype to avoid an error.
12304 Use char because int might match the return type of a GCC
12305 builtin and then its argument prototype would still apply. */
12306#ifdef __cplusplus
12307extern "C"
12308#endif
12309char $ac_func ();
12310/* The GNU C library defines this for functions which it implements
12311 to always fail with ENOSYS. Some functions are actually named
12312 something starting with __ and the normal name is an alias. */
12313#if defined __stub_$ac_func || defined __stub___$ac_func
12314choke me
12315#endif
12316
12317int
12318main ()
12319{
12320return $ac_func ();
12321 ;
12322 return 0;
12323}
12324_ACEOF
12325rm -f conftest.$ac_objext conftest$ac_exeext
12326if { (ac_try="$ac_link"
12327case "(($ac_try" in
12328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12330esac
12331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12332$as_echo "$ac_try_echo") >&5
12333 (eval "$ac_link") 2>conftest.er1
12334 ac_status=$?
12335 grep -v '^ *+' conftest.er1 >conftest.err
12336 rm -f conftest.er1
12337 cat conftest.err >&5
12338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } && {
12340 test -z "$ac_c_werror_flag" ||
12341 test ! -s conftest.err
12342 } && test -s conftest$ac_exeext && {
12343 test "$cross_compiling" = yes ||
12344 $as_test_x conftest$ac_exeext
12345 }; then
12346 eval "$as_ac_var=yes"
12347else
12348 $as_echo "$as_me: failed program was:" >&5
12349sed 's/^/| /' conftest.$ac_ext >&5
12350
12351 eval "$as_ac_var=no"
12352fi
12353
12354rm -rf conftest.dSYM
12355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12356 conftest$ac_exeext conftest.$ac_ext
12357fi
12358ac_res=`eval 'as_val=${'$as_ac_var'}
12359 $as_echo "$as_val"'`
12360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12361$as_echo "$ac_res" >&6; }
12362if test `eval 'as_val=${'$as_ac_var'}
12363 $as_echo "$as_val"'` = yes; then
12364 cat >>confdefs.h <<_ACEOF
12365#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12366_ACEOF
12367
12368else
12369
12370{ $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
12371$as_echo_n "checking for pow in -lm... " >&6; }
12372if test "${ac_cv_lib_m_pow+set}" = set; then
12373 $as_echo_n "(cached) " >&6
12374else
12375 ac_check_lib_save_LIBS=$LIBS
12376LIBS="-lm $LIBS"
12377cat >conftest.$ac_ext <<_ACEOF
12378/* confdefs.h. */
12379_ACEOF
12380cat confdefs.h >>conftest.$ac_ext
12381cat >>conftest.$ac_ext <<_ACEOF
12382/* end confdefs.h. */
12383
12384/* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
12387#ifdef __cplusplus
12388extern "C"
12389#endif
12390char pow ();
12391int
12392main ()
12393{
12394return pow ();
12395 ;
12396 return 0;
12397}
12398_ACEOF
12399rm -f conftest.$ac_objext conftest$ac_exeext
12400if { (ac_try="$ac_link"
12401case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12404esac
12405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12406$as_echo "$ac_try_echo") >&5
12407 (eval "$ac_link") 2>conftest.er1
12408 ac_status=$?
12409 grep -v '^ *+' conftest.er1 >conftest.err
12410 rm -f conftest.er1
12411 cat conftest.err >&5
12412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } && {
12414 test -z "$ac_c_werror_flag" ||
12415 test ! -s conftest.err
12416 } && test -s conftest$ac_exeext && {
12417 test "$cross_compiling" = yes ||
12418 $as_test_x conftest$ac_exeext
12419 }; then
12420 ac_cv_lib_m_pow=yes
12421else
12422 $as_echo "$as_me: failed program was:" >&5
12423sed 's/^/| /' conftest.$ac_ext >&5
12424
12425 ac_cv_lib_m_pow=no
12426fi
12427
12428rm -rf conftest.dSYM
12429rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12430 conftest$ac_exeext conftest.$ac_ext
12431LIBS=$ac_check_lib_save_LIBS
12432fi
12433{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12434$as_echo "$ac_cv_lib_m_pow" >&6; }
12435if test $ac_cv_lib_m_pow = yes; then
12436 cat >>confdefs.h <<_ACEOF
12437#define HAVE_LIBM 1
12438_ACEOF
12439
12440 LIBS="-lm $LIBS"
12441
12442else
12443 { { $as_echo "$as_me:$LINENO: error: cannot find pow" >&5
12444$as_echo "$as_me: error: cannot find pow" >&2;}
12445 { (exit 1); exit 1; }; }
12446fi
12447
12448fi
12449done
12450
12451
12452{ $as_echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
12453$as_echo_n "checking for zlibVersion in -lz... " >&6; }
12454if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
12455 $as_echo_n "(cached) " >&6
12456else
12457 ac_check_lib_save_LIBS=$LIBS
12458LIBS="-lz $LIBS"
12459cat >conftest.$ac_ext <<_ACEOF
12460/* confdefs.h. */
12461_ACEOF
12462cat confdefs.h >>conftest.$ac_ext
12463cat >>conftest.$ac_ext <<_ACEOF
12464/* end confdefs.h. */
12465
12466/* Override any GCC internal prototype to avoid an error.
12467 Use char because int might match the return type of a GCC
12468 builtin and then its argument prototype would still apply. */
12469#ifdef __cplusplus
12470extern "C"
12471#endif
12472char zlibVersion ();
12473int
12474main ()
12475{
12476return zlibVersion ();
12477 ;
12478 return 0;
12479}
12480_ACEOF
12481rm -f conftest.$ac_objext conftest$ac_exeext
12482if { (ac_try="$ac_link"
12483case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12486esac
12487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12488$as_echo "$ac_try_echo") >&5
12489 (eval "$ac_link") 2>conftest.er1
12490 ac_status=$?
12491 grep -v '^ *+' conftest.er1 >conftest.err
12492 rm -f conftest.er1
12493 cat conftest.err >&5
12494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } && {
12496 test -z "$ac_c_werror_flag" ||
12497 test ! -s conftest.err
12498 } && test -s conftest$ac_exeext && {
12499 test "$cross_compiling" = yes ||
12500 $as_test_x conftest$ac_exeext
12501 }; then
12502 ac_cv_lib_z_zlibVersion=yes
12503else
12504 $as_echo "$as_me: failed program was:" >&5
12505sed 's/^/| /' conftest.$ac_ext >&5
12506
12507 ac_cv_lib_z_zlibVersion=no
12508fi
12509
12510rm -rf conftest.dSYM
12511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12512 conftest$ac_exeext conftest.$ac_ext
12513LIBS=$ac_check_lib_save_LIBS
12514fi
12515{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
12516$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12517if test $ac_cv_lib_z_zlibVersion = yes; then
12518 cat >>confdefs.h <<_ACEOF
12519#define HAVE_LIBZ 1
12520_ACEOF
12521
12522 LIBS="-lz $LIBS"
12523
12524else
12525 { { $as_echo "$as_me:$LINENO: error: zlib not installed" >&5
12526$as_echo "$as_me: error: zlib not installed" >&2;}
12527 { (exit 1); exit 1; }; }
12528fi
12529
12530
12531LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG
12532{ $as_echo "$as_me:$LINENO: checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE" >&5
12533$as_echo_n "checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE... " >&6; }
12534cat >conftest.$ac_ext <<_ACEOF
12535/* confdefs.h. */
12536_ACEOF
12537cat confdefs.h >>conftest.$ac_ext
12538cat >>conftest.$ac_ext <<_ACEOF
12539/* end confdefs.h. */
12540#include "$srcdir/pnggccrd.c"
12541int
12542main ()
12543{
12544return 0;
12545 ;
12546 return 0;
12547}
12548_ACEOF
12549rm -f conftest.$ac_objext
12550if { (ac_try="$ac_compile"
12551case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554esac
12555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12556$as_echo "$ac_try_echo") >&5
12557 (eval "$ac_compile") 2>conftest.er1
12558 ac_status=$?
12559 grep -v '^ *+' conftest.er1 >conftest.err
12560 rm -f conftest.er1
12561 cat conftest.err >&5
12562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } && {
12564 test -z "$ac_c_werror_flag" ||
12565 test ! -s conftest.err
12566 } && test -s conftest.$ac_objext; then
12567 { $as_echo "$as_me:$LINENO: result: yes" >&5
12568$as_echo "yes" >&6; }
12569 LIBPNG_NO_MMX=""
12570else
12571 $as_echo "$as_me: failed program was:" >&5
12572sed 's/^/| /' conftest.$ac_ext >&5
12573
12574 { $as_echo "$as_me:$LINENO: result: no" >&5
12575$as_echo "no" >&6; }
12576 LIBPNG_NO_MMX=-DPNG_NO_MMX_CODE
12577fi
12578
12579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12580LIBPNG_DEFINES=$LIBPNG_DEFINES\ $LIBPNG_NO_MMX
12581
12582
12583
12584{ $as_echo "$as_me:$LINENO: checking if libraries can be versioned" >&5
12585$as_echo_n "checking if libraries can be versioned... " >&6; }
12586GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
12587if test "$GLD"; then
12588 have_ld_version_script=yes
12589 { $as_echo "$as_me:$LINENO: result: yes" >&5
12590$as_echo "yes" >&6; }
12591else
12592 have_ld_version_script=no
12593 { $as_echo "$as_me:$LINENO: result: no" >&5
12594$as_echo "no" >&6; }
12595 { $as_echo "$as_me:$LINENO: WARNING: *** You have not enabled versioned symbols." >&5
12596$as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
12597fi
12598 if test "$have_ld_version_script" = "yes"; then
12599 HAVE_LD_VERSION_SCRIPT_TRUE=
12600 HAVE_LD_VERSION_SCRIPT_FALSE='#'
12601else
12602 HAVE_LD_VERSION_SCRIPT_TRUE='#'
12603 HAVE_LD_VERSION_SCRIPT_FALSE=
12604fi
12605
12606
12607if test "$have_ld_version_script" = "yes"; then
12608 { $as_echo "$as_me:$LINENO: checking for symbol prefix" >&5
12609$as_echo_n "checking for symbol prefix... " >&6; }
12610 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
12611 | ${CPP-${CC-gcc} -E} - 2>&1 \
12612 | ${EGREP-grep} "^PREFIX=" \
12613 | ${SED-sed} "s:^PREFIX=::"`
12614
12615 { $as_echo "$as_me:$LINENO: result: $SYMBOL_PREFIX" >&5
12616$as_echo "$SYMBOL_PREFIX" >&6; }
12617fi
12618
12619# Substitutions for .in files
12620
12621
12622
12623
12624
12625# Additional arguments (and substitutions)
12626# Allow the pkg-config directory to be set
12627
12628# Check whether --with-pkgconfigdir was given.
12629if test "${with_pkgconfigdir+set}" = set; then
12630 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
12631else
12632 pkgconfigdir='${libdir}/pkgconfig'
12633fi
12634
12635
12636
12637{ $as_echo "$as_me:$LINENO: pkgconfig directory is ${pkgconfigdir}" >&5
12638$as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
12639
12640# Make the *-config binary config scripts optional
12641
12642# Check whether --with-binconfigs was given.
12643if test "${with_binconfigs+set}" = set; then
12644 withval=$with_binconfigs; if test "${withval}" = no; then
12645 binconfigs=
12646 { $as_echo "$as_me:$LINENO: libpng-config scripts will not be built" >&5
12647$as_echo "$as_me: libpng-config scripts will not be built" >&6;}
12648 else
12649 binconfigs='${binconfigs}'
12650 fi
12651else
12652 binconfigs='${binconfigs}'
12653fi
12654
12655
12656
12657# Allow the old version number library, libpng.so, to be removed from
12658# the build
12659
12660# Check whether --with-libpng-compat was given.
12661if test "${with_libpng_compat+set}" = set; then
12662 withval=$with_libpng_compat; if test "${withval}" = no; then
12663 compatlib=
12664 { $as_echo "$as_me:$LINENO: libpng.so will not be built" >&5
12665$as_echo "$as_me: libpng.so will not be built" >&6;}
12666 else
12667 compatlib=libpng.la
12668 fi
12669else
12670 compatlib=libpng.la
12671fi
12672
12673
12674
12675# Config files, substituting as above
12676ac_config_files="$ac_config_files Makefile libpng.pc:scripts/libpng.pc-configure.in"
12677
12678ac_config_files="$ac_config_files libpng-config:scripts/libpng-config.in"
12679
12680
12681cat >confcache <<\_ACEOF
12682# This file is a shell script that caches the results of configure
12683# tests run on this system so they can be shared between configure
12684# scripts and configure runs, see configure's option --config-cache.
12685# It is not useful on other systems. If it contains results you don't
12686# want to keep, you may remove or edit it.
12687#
12688# config.status only pays attention to the cache file if you give it
12689# the --recheck option to rerun configure.
12690#
12691# `ac_cv_env_foo' variables (set or unset) will be overridden when
12692# loading this file, other *unset* `ac_cv_foo' will be assigned the
12693# following values.
12694
12695_ACEOF
12696
12697# The following way of writing the cache mishandles newlines in values,
12698# but we know of no workaround that is simple, portable, and efficient.
12699# So, we kill variables containing newlines.
12700# Ultrix sh set writes to stderr and can't be redirected directly,
12701# and sets the high bit in the cache file unless we assign to the vars.
12702(
12703 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12704 eval ac_val=\$$ac_var
12705 case $ac_val in #(
12706 *${as_nl}*)
12707 case $ac_var in #(
12708 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12709$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12710 esac
12711 case $ac_var in #(
12712 _ | IFS | as_nl) ;; #(
12713 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12714 *) $as_unset $ac_var ;;
12715 esac ;;
12716 esac
12717 done
12718
12719 (set) 2>&1 |
12720 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12721 *${as_nl}ac_space=\ *)
12722 # `set' does not quote correctly, so add quotes (double-quote
12723 # substitution turns \\\\ into \\, and sed turns \\ into \).
12724 sed -n \
12725 "s/'/'\\\\''/g;
12726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12727 ;; #(
12728 *)
12729 # `set' quotes correctly as required by POSIX, so do not add quotes.
12730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12731 ;;
12732 esac |
12733 sort
12734) |
12735 sed '
12736 /^ac_cv_env_/b end
12737 t clear
12738 :clear
12739 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12740 t end
12741 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12742 :end' >>confcache
12743if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12744 if test -w "$cache_file"; then
12745 test "x$cache_file" != "x/dev/null" &&
12746 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12747$as_echo "$as_me: updating cache $cache_file" >&6;}
12748 cat confcache >$cache_file
12749 else
12750 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12751$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12752 fi
12753fi
12754rm -f confcache
12755
12756test "x$prefix" = xNONE && prefix=$ac_default_prefix
12757# Let make expand exec_prefix.
12758test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12759
12760DEFS=-DHAVE_CONFIG_H
12761
12762ac_libobjs=
12763ac_ltlibobjs=
12764for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12765 # 1. Remove the extension, and $U if already installed.
12766 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12767 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12768 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12769 # will be set to the directory where LIBOBJS objects are built.
12770 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12771 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12772done
12773LIBOBJS=$ac_libobjs
12774
12775LTLIBOBJS=$ac_ltlibobjs
12776
12777
12778if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12779 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12780Usually this means the macro was only invoked conditionally." >&5
12781$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12782Usually this means the macro was only invoked conditionally." >&2;}
12783 { (exit 1); exit 1; }; }
12784fi
12785if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12786 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12787Usually this means the macro was only invoked conditionally." >&5
12788$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12789Usually this means the macro was only invoked conditionally." >&2;}
12790 { (exit 1); exit 1; }; }
12791fi
12792if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12793 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12794Usually this means the macro was only invoked conditionally." >&5
12795$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12796Usually this means the macro was only invoked conditionally." >&2;}
12797 { (exit 1); exit 1; }; }
12798fi
12799if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
12800 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
12801Usually this means the macro was only invoked conditionally." >&5
12802$as_echo "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
12803Usually this means the macro was only invoked conditionally." >&2;}
12804 { (exit 1); exit 1; }; }
12805fi
12806
12807: ${CONFIG_STATUS=./config.status}
12808ac_write_fail=0
12809ac_clean_files_save=$ac_clean_files
12810ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12811{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12812$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12813cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12814#! $SHELL
12815# Generated by $as_me.
12816# Run this file to recreate the current configuration.
12817# Compiler output produced by configure, useful for debugging
12818# configure, is in config.log if it exists.
12819
12820debug=false
12821ac_cs_recheck=false
12822ac_cs_silent=false
12823SHELL=\${CONFIG_SHELL-$SHELL}
12824_ACEOF
12825
12826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12827## --------------------- ##
12828## M4sh Initialization. ##
12829## --------------------- ##
12830
12831# Be more Bourne compatible
12832DUALCASE=1; export DUALCASE # for MKS sh
12833if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12834 emulate sh
12835 NULLCMD=:
12836 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12837 # is contrary to our usage. Disable this feature.
12838 alias -g '${1+"$@"}'='"$@"'
12839 setopt NO_GLOB_SUBST
12840else
12841 case `(set -o) 2>/dev/null` in
12842 *posix*) set -o posix ;;
12843esac
12844
12845fi
12846
12847
12848
12849
12850# PATH needs CR
12851# Avoid depending upon Character Ranges.
12852as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12853as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12854as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12855as_cr_digits='0123456789'
12856as_cr_alnum=$as_cr_Letters$as_cr_digits
12857
12858as_nl='
12859'
12860export as_nl
12861# Printing a long string crashes Solaris 7 /usr/bin/printf.
12862as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12863as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12864as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12865if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12866 as_echo='printf %s\n'
12867 as_echo_n='printf %s'
12868else
12869 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12870 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12871 as_echo_n='/usr/ucb/echo -n'
12872 else
12873 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12874 as_echo_n_body='eval
12875 arg=$1;
12876 case $arg in
12877 *"$as_nl"*)
12878 expr "X$arg" : "X\\(.*\\)$as_nl";
12879 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12880 esac;
12881 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12882 '
12883 export as_echo_n_body
12884 as_echo_n='sh -c $as_echo_n_body as_echo'
12885 fi
12886 export as_echo_body
12887 as_echo='sh -c $as_echo_body as_echo'
12888fi
12889
12890# The user is always right.
12891if test "${PATH_SEPARATOR+set}" != set; then
12892 PATH_SEPARATOR=:
12893 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12894 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12895 PATH_SEPARATOR=';'
12896 }
12897fi
12898
12899# Support unset when possible.
12900if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12901 as_unset=unset
12902else
12903 as_unset=false
12904fi
12905
12906
12907# IFS
12908# We need space, tab and new line, in precisely that order. Quoting is
12909# there to prevent editors from complaining about space-tab.
12910# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12911# splitting by setting IFS to empty value.)
12912IFS=" "" $as_nl"
12913
12914# Find who we are. Look in the path if we contain no directory separator.
12915case $0 in
12916 *[\\/]* ) as_myself=$0 ;;
12917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12918for as_dir in $PATH
12919do
12920 IFS=$as_save_IFS
12921 test -z "$as_dir" && as_dir=.
12922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12923done
12924IFS=$as_save_IFS
12925
12926 ;;
12927esac
12928# We did not find ourselves, most probably we were run as `sh COMMAND'
12929# in which case we are not to be found in the path.
12930if test "x$as_myself" = x; then
12931 as_myself=$0
12932fi
12933if test ! -f "$as_myself"; then
12934 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12935 { (exit 1); exit 1; }
12936fi
12937
12938# Work around bugs in pre-3.0 UWIN ksh.
12939for as_var in ENV MAIL MAILPATH
12940do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12941done
12942PS1='$ '
12943PS2='> '
12944PS4='+ '
12945
12946# NLS nuisances.
12947LC_ALL=C
12948export LC_ALL
12949LANGUAGE=C
12950export LANGUAGE
12951
12952# Required to use basename.
12953if expr a : '\(a\)' >/dev/null 2>&1 &&
12954 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12955 as_expr=expr
12956else
12957 as_expr=false
12958fi
12959
12960if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12961 as_basename=basename
12962else
12963 as_basename=false
12964fi
12965
12966
12967# Name of the executable.
12968as_me=`$as_basename -- "$0" ||
12969$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12970 X"$0" : 'X\(//\)$' \| \
12971 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12972$as_echo X/"$0" |
12973 sed '/^.*\/\([^/][^/]*\)\/*$/{
12974 s//\1/
12975 q
12976 }
12977 /^X\/\(\/\/\)$/{
12978 s//\1/
12979 q
12980 }
12981 /^X\/\(\/\).*/{
12982 s//\1/
12983 q
12984 }
12985 s/.*/./; q'`
12986
12987# CDPATH.
12988$as_unset CDPATH
12989
12990
12991
12992 as_lineno_1=$LINENO
12993 as_lineno_2=$LINENO
12994 test "x$as_lineno_1" != "x$as_lineno_2" &&
12995 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12996
12997 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12998 # uniformly replaced by the line number. The first 'sed' inserts a
12999 # line-number line after each line using $LINENO; the second 'sed'
13000 # does the real work. The second script uses 'N' to pair each
13001 # line-number line with the line containing $LINENO, and appends
13002 # trailing '-' during substitution so that $LINENO is not a special
13003 # case at line end.
13004 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13005 # scripts with optimization help from Paolo Bonzini. Blame Lee
13006 # E. McMahon (1931-1989) for sed's syntax. :-)
13007 sed -n '
13008 p
13009 /[$]LINENO/=
13010 ' <$as_myself |
13011 sed '
13012 s/[$]LINENO.*/&-/
13013 t lineno
13014 b
13015 :lineno
13016 N
13017 :loop
13018 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13019 t loop
13020 s/-\n.*//
13021 ' >$as_me.lineno &&
13022 chmod +x "$as_me.lineno" ||
13023 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13024 { (exit 1); exit 1; }; }
13025
13026 # Don't try to exec as it changes $[0], causing all sort of problems
13027 # (the dirname of $[0] is not the place where we might find the
13028 # original and so on. Autoconf is especially sensitive to this).
13029 . "./$as_me.lineno"
13030 # Exit status is that of the last command.
13031 exit
13032}
13033
13034
13035if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13036 as_dirname=dirname
13037else
13038 as_dirname=false
13039fi
13040
13041ECHO_C= ECHO_N= ECHO_T=
13042case `echo -n x` in
13043-n*)
13044 case `echo 'x\c'` in
13045 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13046 *) ECHO_C='\c';;
13047 esac;;
13048*)
13049 ECHO_N='-n';;
13050esac
13051if expr a : '\(a\)' >/dev/null 2>&1 &&
13052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13053 as_expr=expr
13054else
13055 as_expr=false
13056fi
13057
13058rm -f conf$$ conf$$.exe conf$$.file
13059if test -d conf$$.dir; then
13060 rm -f conf$$.dir/conf$$.file
13061else
13062 rm -f conf$$.dir
13063 mkdir conf$$.dir 2>/dev/null
13064fi
13065if (echo >conf$$.file) 2>/dev/null; then
13066 if ln -s conf$$.file conf$$ 2>/dev/null; then
13067 as_ln_s='ln -s'
13068 # ... but there are two gotchas:
13069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13071 # In both cases, we have to default to `cp -p'.
13072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13073 as_ln_s='cp -p'
13074 elif ln conf$$.file conf$$ 2>/dev/null; then
13075 as_ln_s=ln
13076 else
13077 as_ln_s='cp -p'
13078 fi
13079else
13080 as_ln_s='cp -p'
13081fi
13082rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13083rmdir conf$$.dir 2>/dev/null
13084
13085if mkdir -p . 2>/dev/null; then
13086 as_mkdir_p=:
13087else
13088 test -d ./-p && rmdir ./-p
13089 as_mkdir_p=false
13090fi
13091
13092if test -x / >/dev/null 2>&1; then
13093 as_test_x='test -x'
13094else
13095 if ls -dL / >/dev/null 2>&1; then
13096 as_ls_L_option=L
13097 else
13098 as_ls_L_option=
13099 fi
13100 as_test_x='
13101 eval sh -c '\''
13102 if test -d "$1"; then
13103 test -d "$1/.";
13104 else
13105 case $1 in
13106 -*)set "./$1";;
13107 esac;
13108 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13109 ???[sx]*):;;*)false;;esac;fi
13110 '\'' sh
13111 '
13112fi
13113as_executable_p=$as_test_x
13114
13115# Sed expression to map a string onto a valid CPP name.
13116as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13117
13118# Sed expression to map a string onto a valid variable name.
13119as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13120
13121
13122exec 6>&1
13123
13124# Save the log message, to keep $[0] and so on meaningful, and to
13125# report actual input values of CONFIG_FILES etc. instead of their
13126# values after options handling.
13127ac_log="
13128This file was extended by libpng $as_me 1.2.34, which was
13129generated by GNU Autoconf 2.62. Invocation command line was
13130
13131 CONFIG_FILES = $CONFIG_FILES
13132 CONFIG_HEADERS = $CONFIG_HEADERS
13133 CONFIG_LINKS = $CONFIG_LINKS
13134 CONFIG_COMMANDS = $CONFIG_COMMANDS
13135 $ $0 $@
13136
13137on `(hostname || uname -n) 2>/dev/null | sed 1q`
13138"
13139
13140_ACEOF
13141
13142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13143# Files that config.status was made for.
13144config_files="$ac_config_files"
13145config_headers="$ac_config_headers"
13146config_commands="$ac_config_commands"
13147
13148_ACEOF
13149
13150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13151ac_cs_usage="\
13152\`$as_me' instantiates files from templates according to the
13153current configuration.
13154
13155Usage: $0 [OPTIONS] [FILE]...
13156
13157 -h, --help print this help, then exit
13158 -V, --version print version number and configuration settings, then exit
13159 -q, --quiet do not print progress messages
13160 -d, --debug don't remove temporary files
13161 --recheck update $as_me by reconfiguring in the same conditions
13162 --file=FILE[:TEMPLATE]
13163 instantiate the configuration file FILE
13164 --header=FILE[:TEMPLATE]
13165 instantiate the configuration header FILE
13166
13167Configuration files:
13168$config_files
13169
13170Configuration headers:
13171$config_headers
13172
13173Configuration commands:
13174$config_commands
13175
13176Report bugs to <bug-autoconf@gnu.org>."
13177
13178_ACEOF
13179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13180ac_cs_version="\\
13181libpng config.status 1.2.34
13182configured by $0, generated by GNU Autoconf 2.62,
13183 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13184
13185Copyright (C) 2008 Free Software Foundation, Inc.
13186This config.status script is free software; the Free Software Foundation
13187gives unlimited permission to copy, distribute and modify it."
13188
13189ac_pwd='$ac_pwd'
13190srcdir='$srcdir'
13191INSTALL='$INSTALL'
13192MKDIR_P='$MKDIR_P'
13193AWK='$AWK'
13194test -n "\$AWK" || AWK=awk
13195_ACEOF
13196
13197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13198# The default lists apply if the user does not specify any file.
13199ac_need_defaults=:
13200while test $# != 0
13201do
13202 case $1 in
13203 --*=*)
13204 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13205 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13206 ac_shift=:
13207 ;;
13208 *)
13209 ac_option=$1
13210 ac_optarg=$2
13211 ac_shift=shift
13212 ;;
13213 esac
13214
13215 case $ac_option in
13216 # Handling of the options.
13217 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13218 ac_cs_recheck=: ;;
13219 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13220 $as_echo "$ac_cs_version"; exit ;;
13221 --debug | --debu | --deb | --de | --d | -d )
13222 debug=: ;;
13223 --file | --fil | --fi | --f )
13224 $ac_shift
13225 case $ac_optarg in
13226 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13227 esac
13228 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13229 ac_need_defaults=false;;
13230 --header | --heade | --head | --hea )
13231 $ac_shift
13232 case $ac_optarg in
13233 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13234 esac
13235 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13236 ac_need_defaults=false;;
13237 --he | --h)
13238 # Conflict between --help and --header
13239 { $as_echo "$as_me: error: ambiguous option: $1
13240Try \`$0 --help' for more information." >&2
13241 { (exit 1); exit 1; }; };;
13242 --help | --hel | -h )
13243 $as_echo "$ac_cs_usage"; exit ;;
13244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13245 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13246 ac_cs_silent=: ;;
13247
13248 # This is an error.
13249 -*) { $as_echo "$as_me: error: unrecognized option: $1
13250Try \`$0 --help' for more information." >&2
13251 { (exit 1); exit 1; }; } ;;
13252
13253 *) ac_config_targets="$ac_config_targets $1"
13254 ac_need_defaults=false ;;
13255
13256 esac
13257 shift
13258done
13259
13260ac_configure_extra_args=
13261
13262if $ac_cs_silent; then
13263 exec 6>/dev/null
13264 ac_configure_extra_args="$ac_configure_extra_args --silent"
13265fi
13266
13267_ACEOF
13268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13269if \$ac_cs_recheck; then
13270 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13271 shift
13272 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13273 CONFIG_SHELL='$SHELL'
13274 export CONFIG_SHELL
13275 exec "\$@"
13276fi
13277
13278_ACEOF
13279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13280exec 5>>config.log
13281{
13282 echo
13283 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13284## Running $as_me. ##
13285_ASBOX
13286 $as_echo "$ac_log"
13287} >&5
13288
13289_ACEOF
13290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13291#
13292# INIT-COMMANDS
13293#
13294AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13295
13296
13297# The HP-UX ksh and POSIX shell print the target directory to stdout
13298# if CDPATH is set.
13299(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13300
13301sed_quote_subst='$sed_quote_subst'
13302double_quote_subst='$double_quote_subst'
13303delay_variable_subst='$delay_variable_subst'
13304SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13305Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13306GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13307EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13308FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13309LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13310AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13311DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13312OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13313macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13314macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13315enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13316enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13317pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13318enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13319host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13320host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13321host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13322build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13323build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13324build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13325NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13326LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13327max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13328ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13329exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13330lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13331lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13332lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13333reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13334reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13335deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13336file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13337AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13338AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13339STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13340RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13341old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13342old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13343old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13344CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13345CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13346compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13347GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13348lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13349lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13350lt_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"`'
13351lt_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"`'
13352objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13353SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13354ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13355MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13356lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13357lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13358lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13359lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13360lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13361need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13362DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13363NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13364LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13365libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13366shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13367extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13368archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13369enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13370export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13371whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13372compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13373old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13374old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13375archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13376archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13377module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13378module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13379with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13380allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13381no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13382hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13383hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13384hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13385hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13386hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13387hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13388hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13389hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13390inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13391link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13392fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13393always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13394export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13395exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13396include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13397prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13398file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13399variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13400need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13401need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13402version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13403runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13404shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13405shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13406libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13407library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13408soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13409postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13410postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13411finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13412finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13413hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13414sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13415sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13416hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13417enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13418enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13419enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13420old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13421striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13422
13423LTCC='$LTCC'
13424LTCFLAGS='$LTCFLAGS'
13425compiler='$compiler_DEFAULT'
13426
13427# Quote evaled strings.
13428for var in SED \
13429GREP \
13430EGREP \
13431FGREP \
13432LD \
13433NM \
13434LN_S \
13435lt_SP2NL \
13436lt_NL2SP \
13437reload_flag \
13438deplibs_check_method \
13439file_magic_cmd \
13440AR \
13441AR_FLAGS \
13442STRIP \
13443RANLIB \
13444CC \
13445CFLAGS \
13446compiler \
13447lt_cv_sys_global_symbol_pipe \
13448lt_cv_sys_global_symbol_to_cdecl \
13449lt_cv_sys_global_symbol_to_c_name_address \
13450lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13451SHELL \
13452ECHO \
13453lt_prog_compiler_no_builtin_flag \
13454lt_prog_compiler_wl \
13455lt_prog_compiler_pic \
13456lt_prog_compiler_static \
13457lt_cv_prog_compiler_c_o \
13458need_locks \
13459DSYMUTIL \
13460NMEDIT \
13461LIPO \
13462shrext_cmds \
13463export_dynamic_flag_spec \
13464whole_archive_flag_spec \
13465compiler_needs_object \
13466with_gnu_ld \
13467allow_undefined_flag \
13468no_undefined_flag \
13469hardcode_libdir_flag_spec \
13470hardcode_libdir_flag_spec_ld \
13471hardcode_libdir_separator \
13472fix_srcfile_path \
13473exclude_expsyms \
13474include_expsyms \
13475file_list_spec \
13476variables_saved_for_relink \
13477libname_spec \
13478library_names_spec \
13479soname_spec \
13480finish_eval \
13481old_striplib \
13482striplib; do
13483 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13484 *[\\\\\\\`\\"\\\$]*)
13485 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13486 ;;
13487 *)
13488 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13489 ;;
13490 esac
13491done
13492
13493# Double-quote double-evaled strings.
13494for var in reload_cmds \
13495old_postinstall_cmds \
13496old_postuninstall_cmds \
13497old_archive_cmds \
13498extract_expsyms_cmds \
13499old_archive_from_new_cmds \
13500old_archive_from_expsyms_cmds \
13501archive_cmds \
13502archive_expsym_cmds \
13503module_cmds \
13504module_expsym_cmds \
13505export_symbols_cmds \
13506prelink_cmds \
13507postinstall_cmds \
13508postuninstall_cmds \
13509finish_cmds \
13510sys_lib_search_path_spec \
13511sys_lib_dlsearch_path_spec; do
13512 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13513 *[\\\\\\\`\\"\\\$]*)
13514 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13515 ;;
13516 *)
13517 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13518 ;;
13519 esac
13520done
13521
13522# Fix-up fallback echo if it was mangled by the above quoting rules.
13523case \$lt_ECHO in
13524*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13525 ;;
13526esac
13527
13528ac_aux_dir='$ac_aux_dir'
13529xsi_shell='$xsi_shell'
13530lt_shell_append='$lt_shell_append'
13531
13532# See if we are running on zsh, and set the options which allow our
13533# commands through without removal of \ escapes INIT.
13534if test -n "\${ZSH_VERSION+set}" ; then
13535 setopt NO_GLOB_SUBST
13536fi
13537
13538
13539 PACKAGE='$PACKAGE'
13540 VERSION='$VERSION'
13541 TIMESTAMP='$TIMESTAMP'
13542 RM='$RM'
13543 ofile='$ofile'
13544
13545
13546
13547
13548_ACEOF
13549
13550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13551
13552# Handling of arguments.
13553for ac_config_target in $ac_config_targets
13554do
13555 case $ac_config_target in
13556 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13557 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13558 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13559 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13560 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:scripts/libpng.pc-configure.in" ;;
13561 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:scripts/libpng-config.in" ;;
13562
13563 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13564$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13565 { (exit 1); exit 1; }; };;
13566 esac
13567done
13568
13569
13570# If the user did not use the arguments to specify the items to instantiate,
13571# then the envvar interface is used. Set only those that are not.
13572# We use the long form for the default assignment because of an extremely
13573# bizarre bug on SunOS 4.1.3.
13574if $ac_need_defaults; then
13575 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13576 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13577 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13578fi
13579
13580# Have a temporary directory for convenience. Make it in the build tree
13581# simply because there is no reason against having it here, and in addition,
13582# creating and moving files from /tmp can sometimes cause problems.
13583# Hook for its removal unless debugging.
13584# Note that there is a small window in which the directory will not be cleaned:
13585# after its creation but before its name has been assigned to `$tmp'.
13586$debug ||
13587{
13588 tmp=
13589 trap 'exit_status=$?
13590 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13591' 0
13592 trap '{ (exit 1); exit 1; }' 1 2 13 15
13593}
13594# Create a (secure) tmp directory for tmp files.
13595
13596{
13597 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13598 test -n "$tmp" && test -d "$tmp"
13599} ||
13600{
13601 tmp=./conf$$-$RANDOM
13602 (umask 077 && mkdir "$tmp")
13603} ||
13604{
13605 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13606 { (exit 1); exit 1; }
13607}
13608
13609# Set up the scripts for CONFIG_FILES section.
13610# No need to generate them if there are no CONFIG_FILES.
13611# This happens for instance with `./config.status config.h'.
13612if test -n "$CONFIG_FILES"; then
13613
13614
13615ac_cr='
13616'
13617ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13618if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13619 ac_cs_awk_cr='\\r'
13620else
13621 ac_cs_awk_cr=$ac_cr
13622fi
13623
13624echo 'BEGIN {' >"$tmp/subs1.awk" &&
13625_ACEOF
13626
13627
13628{
13629 echo "cat >conf$$subs.awk <<_ACEOF" &&
13630 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13631 echo "_ACEOF"
13632} >conf$$subs.sh ||
13633 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13634$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13635 { (exit 1); exit 1; }; }
13636ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13637ac_delim='%!_!# '
13638for ac_last_try in false false false false false :; do
13639 . ./conf$$subs.sh ||
13640 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13641$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13642 { (exit 1); exit 1; }; }
13643
13644 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
13645 break
13646 elif $ac_last_try; then
13647 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13648$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13649 { (exit 1); exit 1; }; }
13650 else
13651 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13652 fi
13653done
13654rm -f conf$$subs.sh
13655
13656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13657cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13658_ACEOF
13659sed -n '
13660h
13661s/^/S["/; s/!.*/"]=/
13662p
13663g
13664s/^[^!]*!//
13665:repl
13666t repl
13667s/'"$ac_delim"'$//
13668t delim
13669:nl
13670h
13671s/\(.\{148\}\).*/\1/
13672t more1
13673s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13674p
13675n
13676b repl
13677:more1
13678s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13679p
13680g
13681s/.\{148\}//
13682t nl
13683:delim
13684h
13685s/\(.\{148\}\).*/\1/
13686t more2
13687s/["\\]/\\&/g; s/^/"/; s/$/"/
13688p
13689b
13690:more2
13691s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13692p
13693g
13694s/.\{148\}//
13695t delim
13696' <conf$$subs.awk | sed '
13697/^[^""]/{
13698 N
13699 s/\n//
13700}
13701' >>$CONFIG_STATUS || ac_write_fail=1
13702rm -f conf$$subs.awk
13703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13704_ACAWK
13705cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13706 for (key in S) S_is_set[key] = 1
13707 FS = "\a"
13708
13709}
13710{
13711 line = $ 0
13712 nfields = split(line, field, "@")
13713 substed = 0
13714 len = length(field[1])
13715 for (i = 2; i < nfields; i++) {
13716 key = field[i]
13717 keylen = length(key)
13718 if (S_is_set[key]) {
13719 value = S[key]
13720 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13721 len += length(value) + length(field[++i])
13722 substed = 1
13723 } else
13724 len += 1 + keylen
13725 }
13726
13727 print line
13728}
13729
13730_ACAWK
13731_ACEOF
13732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13733if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13734 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13735else
13736 cat
13737fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13738 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13739$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13740 { (exit 1); exit 1; }; }
13741_ACEOF
13742
13743# VPATH may cause trouble with some makes, so we remove $(srcdir),
13744# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13745# trailing colons and then remove the whole line if VPATH becomes empty
13746# (actually we leave an empty line to preserve line numbers).
13747if test "x$srcdir" = x.; then
13748 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13749s/:*\$(srcdir):*/:/
13750s/:*\${srcdir}:*/:/
13751s/:*@srcdir@:*/:/
13752s/^\([^=]*=[ ]*\):*/\1/
13753s/:*$//
13754s/^[^=]*=[ ]*$//
13755}'
13756fi
13757
13758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13759fi # test -n "$CONFIG_FILES"
13760
13761# Set up the scripts for CONFIG_HEADERS section.
13762# No need to generate them if there are no CONFIG_HEADERS.
13763# This happens for instance with `./config.status Makefile'.
13764if test -n "$CONFIG_HEADERS"; then
13765cat >"$tmp/defines.awk" <<\_ACAWK ||
13766BEGIN {
13767_ACEOF
13768
13769# Transform confdefs.h into an awk script `defines.awk', embedded as
13770# here-document in config.status, that substitutes the proper values into
13771# config.h.in to produce config.h.
13772
13773# Create a delimiter string that does not exist in confdefs.h, to ease
13774# handling of long lines.
13775ac_delim='%!_!# '
13776for ac_last_try in false false :; do
13777 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13778 if test -z "$ac_t"; then
13779 break
13780 elif $ac_last_try; then
13781 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13782$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13783 { (exit 1); exit 1; }; }
13784 else
13785 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13786 fi
13787done
13788
13789# For the awk script, D is an array of macro values keyed by name,
13790# likewise P contains macro parameters if any. Preserve backslash
13791# newline sequences.
13792
13793ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13794sed -n '
13795s/.\{148\}/&'"$ac_delim"'/g
13796t rset
13797:rset
13798s/^[ ]*#[ ]*define[ ][ ]*/ /
13799t def
13800d
13801:def
13802s/\\$//
13803t bsnl
13804s/["\\]/\\&/g
13805s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13806D["\1"]=" \3"/p
13807s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13808d
13809:bsnl
13810s/["\\]/\\&/g
13811s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13812D["\1"]=" \3\\\\\\n"\\/p
13813t cont
13814s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13815t cont
13816d
13817:cont
13818n
13819s/.\{148\}/&'"$ac_delim"'/g
13820t clear
13821:clear
13822s/\\$//
13823t bsnlc
13824s/["\\]/\\&/g; s/^/"/; s/$/"/p
13825d
13826:bsnlc
13827s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13828b cont
13829' <confdefs.h | sed '
13830s/'"$ac_delim"'/"\\\
13831"/g' >>$CONFIG_STATUS || ac_write_fail=1
13832
13833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13834 for (key in D) D_is_set[key] = 1
13835 FS = "\a"
13836}
13837/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13838 line = \$ 0
13839 split(line, arg, " ")
13840 if (arg[1] == "#") {
13841 defundef = arg[2]
13842 mac1 = arg[3]
13843 } else {
13844 defundef = substr(arg[1], 2)
13845 mac1 = arg[2]
13846 }
13847 split(mac1, mac2, "(") #)
13848 macro = mac2[1]
13849 if (D_is_set[macro]) {
13850 # Preserve the white space surrounding the "#".
13851 prefix = substr(line, 1, index(line, defundef) - 1)
13852 print prefix "define", macro P[macro] D[macro]
13853 next
13854 } else {
13855 # Replace #undef with comments. This is necessary, for example,
13856 # in the case of _POSIX_SOURCE, which is predefined and required
13857 # on some systems where configure will not decide to define it.
13858 if (defundef == "undef") {
13859 print "/*", line, "*/"
13860 next
13861 }
13862 }
13863}
13864{ print }
13865_ACAWK
13866_ACEOF
13867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13868 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13869$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13870 { (exit 1); exit 1; }; }
13871fi # test -n "$CONFIG_HEADERS"
13872
13873
13874eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13875shift
13876for ac_tag
13877do
13878 case $ac_tag in
13879 :[FHLC]) ac_mode=$ac_tag; continue;;
13880 esac
13881 case $ac_mode$ac_tag in
13882 :[FHL]*:*);;
13883 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13884$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13885 { (exit 1); exit 1; }; };;
13886 :[FH]-) ac_tag=-:-;;
13887 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13888 esac
13889 ac_save_IFS=$IFS
13890 IFS=:
13891 set x $ac_tag
13892 IFS=$ac_save_IFS
13893 shift
13894 ac_file=$1
13895 shift
13896
13897 case $ac_mode in
13898 :L) ac_source=$1;;
13899 :[FH])
13900 ac_file_inputs=
13901 for ac_f
13902 do
13903 case $ac_f in
13904 -) ac_f="$tmp/stdin";;
13905 *) # Look for the file first in the build tree, then in the source tree
13906 # (if the path is not absolute). The absolute path cannot be DOS-style,
13907 # because $ac_f cannot contain `:'.
13908 test -f "$ac_f" ||
13909 case $ac_f in
13910 [\\/$]*) false;;
13911 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13912 esac ||
13913 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13914$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13915 { (exit 1); exit 1; }; };;
13916 esac
13917 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13918 ac_file_inputs="$ac_file_inputs '$ac_f'"
13919 done
13920
13921 # Let's still pretend it is `configure' which instantiates (i.e., don't
13922 # use $as_me), people would be surprised to read:
13923 # /* config.h. Generated by config.status. */
13924 configure_input='Generated from '`
13925 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13926 `' by configure.'
13927 if test x"$ac_file" != x-; then
13928 configure_input="$ac_file. $configure_input"
13929 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13930$as_echo "$as_me: creating $ac_file" >&6;}
13931 fi
13932 # Neutralize special characters interpreted by sed in replacement strings.
13933 case $configure_input in #(
13934 *\&* | *\|* | *\\* )
13935 ac_sed_conf_input=`$as_echo "$configure_input" |
13936 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13937 *) ac_sed_conf_input=$configure_input;;
13938 esac
13939
13940 case $ac_tag in
13941 *:-:* | *:-) cat >"$tmp/stdin" \
13942 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13943$as_echo "$as_me: error: could not create $ac_file" >&2;}
13944 { (exit 1); exit 1; }; } ;;
13945 esac
13946 ;;
13947 esac
13948
13949 ac_dir=`$as_dirname -- "$ac_file" ||
13950$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13951 X"$ac_file" : 'X\(//\)[^/]' \| \
13952 X"$ac_file" : 'X\(//\)$' \| \
13953 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13954$as_echo X"$ac_file" |
13955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13956 s//\1/
13957 q
13958 }
13959 /^X\(\/\/\)[^/].*/{
13960 s//\1/
13961 q
13962 }
13963 /^X\(\/\/\)$/{
13964 s//\1/
13965 q
13966 }
13967 /^X\(\/\).*/{
13968 s//\1/
13969 q
13970 }
13971 s/.*/./; q'`
13972 { as_dir="$ac_dir"
13973 case $as_dir in #(
13974 -*) as_dir=./$as_dir;;
13975 esac
13976 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13977 as_dirs=
13978 while :; do
13979 case $as_dir in #(
13980 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13981 *) as_qdir=$as_dir;;
13982 esac
13983 as_dirs="'$as_qdir' $as_dirs"
13984 as_dir=`$as_dirname -- "$as_dir" ||
13985$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13986 X"$as_dir" : 'X\(//\)[^/]' \| \
13987 X"$as_dir" : 'X\(//\)$' \| \
13988 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13989$as_echo X"$as_dir" |
13990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13991 s//\1/
13992 q
13993 }
13994 /^X\(\/\/\)[^/].*/{
13995 s//\1/
13996 q
13997 }
13998 /^X\(\/\/\)$/{
13999 s//\1/
14000 q
14001 }
14002 /^X\(\/\).*/{
14003 s//\1/
14004 q
14005 }
14006 s/.*/./; q'`
14007 test -d "$as_dir" && break
14008 done
14009 test -z "$as_dirs" || eval "mkdir $as_dirs"
14010 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14011$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14012 { (exit 1); exit 1; }; }; }
14013 ac_builddir=.
14014
14015case "$ac_dir" in
14016.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14017*)
14018 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14019 # A ".." for each directory in $ac_dir_suffix.
14020 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14021 case $ac_top_builddir_sub in
14022 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14023 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14024 esac ;;
14025esac
14026ac_abs_top_builddir=$ac_pwd
14027ac_abs_builddir=$ac_pwd$ac_dir_suffix
14028# for backward compatibility:
14029ac_top_builddir=$ac_top_build_prefix
14030
14031case $srcdir in
14032 .) # We are building in place.
14033 ac_srcdir=.
14034 ac_top_srcdir=$ac_top_builddir_sub
14035 ac_abs_top_srcdir=$ac_pwd ;;
14036 [\\/]* | ?:[\\/]* ) # Absolute name.
14037 ac_srcdir=$srcdir$ac_dir_suffix;
14038 ac_top_srcdir=$srcdir
14039 ac_abs_top_srcdir=$srcdir ;;
14040 *) # Relative name.
14041 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14042 ac_top_srcdir=$ac_top_build_prefix$srcdir
14043 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14044esac
14045ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14046
14047
14048 case $ac_mode in
14049 :F)
14050 #
14051 # CONFIG_FILE
14052 #
14053
14054 case $INSTALL in
14055 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14056 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14057 esac
14058 ac_MKDIR_P=$MKDIR_P
14059 case $MKDIR_P in
14060 [\\/$]* | ?:[\\/]* ) ;;
14061 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14062 esac
14063_ACEOF
14064
14065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14066# If the template does not know about datarootdir, expand it.
14067# FIXME: This hack should be removed a few years after 2.60.
14068ac_datarootdir_hack=; ac_datarootdir_seen=
14069
14070ac_sed_dataroot='
14071/datarootdir/ {
14072 p
14073 q
14074}
14075/@datadir@/p
14076/@docdir@/p
14077/@infodir@/p
14078/@localedir@/p
14079/@mandir@/p
14080'
14081case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14082*datarootdir*) ac_datarootdir_seen=yes;;
14083*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14084 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14085$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14086_ACEOF
14087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14088 ac_datarootdir_hack='
14089 s&@datadir@&$datadir&g
14090 s&@docdir@&$docdir&g
14091 s&@infodir@&$infodir&g
14092 s&@localedir@&$localedir&g
14093 s&@mandir@&$mandir&g
14094 s&\\\${datarootdir}&$datarootdir&g' ;;
14095esac
14096_ACEOF
14097
14098# Neutralize VPATH when `$srcdir' = `.'.
14099# Shell code in configure.ac might set extrasub.
14100# FIXME: do we really want to maintain this feature?
14101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14102ac_sed_extra="$ac_vpsub
14103$extrasub
14104_ACEOF
14105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14106:t
14107/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14108s|@configure_input@|$ac_sed_conf_input|;t t
14109s&@top_builddir@&$ac_top_builddir_sub&;t t
14110s&@top_build_prefix@&$ac_top_build_prefix&;t t
14111s&@srcdir@&$ac_srcdir&;t t
14112s&@abs_srcdir@&$ac_abs_srcdir&;t t
14113s&@top_srcdir@&$ac_top_srcdir&;t t
14114s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14115s&@builddir@&$ac_builddir&;t t
14116s&@abs_builddir@&$ac_abs_builddir&;t t
14117s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14118s&@INSTALL@&$ac_INSTALL&;t t
14119s&@MKDIR_P@&$ac_MKDIR_P&;t t
14120$ac_datarootdir_hack
0272a10d 14121"
970f6abe
VZ
14122eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14123 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14124$as_echo "$as_me: error: could not create $ac_file" >&2;}
14125 { (exit 1); exit 1; }; }
14126
14127test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14128 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14129 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14130 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14131which seems to be undefined. Please make sure it is defined." >&5
14132$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14133which seems to be undefined. Please make sure it is defined." >&2;}
14134
14135 rm -f "$tmp/stdin"
14136 case $ac_file in
14137 -) cat "$tmp/out" && rm -f "$tmp/out";;
14138 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14139 esac \
14140 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14141$as_echo "$as_me: error: could not create $ac_file" >&2;}
14142 { (exit 1); exit 1; }; }
14143 ;;
14144 :H)
14145 #
14146 # CONFIG_HEADER
14147 #
14148 if test x"$ac_file" != x-; then
14149 {
14150 $as_echo "/* $configure_input */" \
14151 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14152 } >"$tmp/config.h" \
14153 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14154$as_echo "$as_me: error: could not create $ac_file" >&2;}
14155 { (exit 1); exit 1; }; }
14156 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14157 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14158$as_echo "$as_me: $ac_file is unchanged" >&6;}
14159 else
14160 rm -f "$ac_file"
14161 mv "$tmp/config.h" "$ac_file" \
14162 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14163$as_echo "$as_me: error: could not create $ac_file" >&2;}
14164 { (exit 1); exit 1; }; }
14165 fi
14166 else
14167 $as_echo "/* $configure_input */" \
14168 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14169 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14170$as_echo "$as_me: error: could not create -" >&2;}
14171 { (exit 1); exit 1; }; }
14172 fi
14173# Compute "$ac_file"'s index in $config_headers.
14174_am_arg="$ac_file"
14175_am_stamp_count=1
14176for _am_header in $config_headers :; do
14177 case $_am_header in
14178 $_am_arg | $_am_arg:* )
14179 break ;;
14180 * )
14181 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14182 esac
14183done
14184echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14185$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14186 X"$_am_arg" : 'X\(//\)[^/]' \| \
14187 X"$_am_arg" : 'X\(//\)$' \| \
14188 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14189$as_echo X"$_am_arg" |
14190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14191 s//\1/
14192 q
14193 }
14194 /^X\(\/\/\)[^/].*/{
14195 s//\1/
14196 q
14197 }
14198 /^X\(\/\/\)$/{
14199 s//\1/
14200 q
14201 }
14202 /^X\(\/\).*/{
14203 s//\1/
14204 q
14205 }
14206 s/.*/./; q'`/stamp-h$_am_stamp_count
14207 ;;
14208
14209 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14210$as_echo "$as_me: executing $ac_file commands" >&6;}
14211 ;;
14212 esac
14213
14214
14215 case $ac_file$ac_mode in
14216 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14217 # Strip MF so we end up with the name of the file.
14218 mf=`echo "$mf" | sed -e 's/:.*$//'`
14219 # Check whether this is an Automake generated Makefile or not.
14220 # We used to match only the files named `Makefile.in', but
14221 # some people rename them; so instead we look at the file content.
14222 # Grep'ing the first line is not enough: some people post-process
14223 # each Makefile.in and add a new line on top of each file to say so.
14224 # Grep'ing the whole file is not good either: AIX grep has a line
14225 # limit of 2048, but all sed's we know have understand at least 4000.
14226 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14227 dirpart=`$as_dirname -- "$mf" ||
14228$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14229 X"$mf" : 'X\(//\)[^/]' \| \
14230 X"$mf" : 'X\(//\)$' \| \
14231 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14232$as_echo X"$mf" |
14233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14234 s//\1/
14235 q
14236 }
14237 /^X\(\/\/\)[^/].*/{
14238 s//\1/
14239 q
14240 }
14241 /^X\(\/\/\)$/{
14242 s//\1/
14243 q
14244 }
14245 /^X\(\/\).*/{
14246 s//\1/
14247 q
14248 }
14249 s/.*/./; q'`
14250 else
14251 continue
14252 fi
14253 # Extract the definition of DEPDIR, am__include, and am__quote
14254 # from the Makefile without running `make'.
14255 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14256 test -z "$DEPDIR" && continue
14257 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14258 test -z "am__include" && continue
14259 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14260 # When using ansi2knr, U may be empty or an underscore; expand it
14261 U=`sed -n 's/^U = //p' < "$mf"`
14262 # Find all dependency output files, they are included files with
14263 # $(DEPDIR) in their names. We invoke sed twice because it is the
14264 # simplest approach to changing $(DEPDIR) to its actual value in the
14265 # expansion.
14266 for file in `sed -n "
14267 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14268 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14269 # Make sure the directory exists.
14270 test -f "$dirpart/$file" && continue
14271 fdir=`$as_dirname -- "$file" ||
14272$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14273 X"$file" : 'X\(//\)[^/]' \| \
14274 X"$file" : 'X\(//\)$' \| \
14275 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14276$as_echo X"$file" |
14277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14278 s//\1/
14279 q
14280 }
14281 /^X\(\/\/\)[^/].*/{
14282 s//\1/
14283 q
14284 }
14285 /^X\(\/\/\)$/{
14286 s//\1/
14287 q
14288 }
14289 /^X\(\/\).*/{
14290 s//\1/
14291 q
14292 }
14293 s/.*/./; q'`
14294 { as_dir=$dirpart/$fdir
14295 case $as_dir in #(
14296 -*) as_dir=./$as_dir;;
14297 esac
14298 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14299 as_dirs=
14300 while :; do
14301 case $as_dir in #(
14302 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14303 *) as_qdir=$as_dir;;
14304 esac
14305 as_dirs="'$as_qdir' $as_dirs"
14306 as_dir=`$as_dirname -- "$as_dir" ||
14307$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14308 X"$as_dir" : 'X\(//\)[^/]' \| \
14309 X"$as_dir" : 'X\(//\)$' \| \
14310 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14311$as_echo X"$as_dir" |
14312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14313 s//\1/
14314 q
14315 }
14316 /^X\(\/\/\)[^/].*/{
14317 s//\1/
14318 q
14319 }
14320 /^X\(\/\/\)$/{
14321 s//\1/
14322 q
14323 }
14324 /^X\(\/\).*/{
14325 s//\1/
14326 q
14327 }
14328 s/.*/./; q'`
14329 test -d "$as_dir" && break
14330 done
14331 test -z "$as_dirs" || eval "mkdir $as_dirs"
14332 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14333$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14334 { (exit 1); exit 1; }; }; }
14335 # echo "creating $dirpart/$file"
14336 echo '# dummy' > "$dirpart/$file"
14337 done
14338done
14339 ;;
14340 "libtool":C)
14341
14342 # See if we are running on zsh, and set the options which allow our
14343 # commands through without removal of \ escapes.
14344 if test -n "${ZSH_VERSION+set}" ; then
14345 setopt NO_GLOB_SUBST
14346 fi
14347
14348 cfgfile="${ofile}T"
14349 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14350 $RM "$cfgfile"
14351
14352 cat <<_LT_EOF >> "$cfgfile"
14353#! $SHELL
14354
14355# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14356# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14357# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14358# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14359#
14360# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14361# 2006, 2007, 2008 Free Software Foundation, Inc.
14362# Written by Gordon Matzigkeit, 1996
14363#
14364# This file is part of GNU Libtool.
14365#
14366# GNU Libtool is free software; you can redistribute it and/or
14367# modify it under the terms of the GNU General Public License as
14368# published by the Free Software Foundation; either version 2 of
14369# the License, or (at your option) any later version.
14370#
14371# As a special exception to the GNU General Public License,
14372# if you distribute this file as part of a program or library that
14373# is built using GNU Libtool, you may include this file under the
14374# same distribution terms that you use for the rest of that program.
14375#
14376# GNU Libtool is distributed in the hope that it will be useful,
14377# but WITHOUT ANY WARRANTY; without even the implied warranty of
14378# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14379# GNU General Public License for more details.
14380#
14381# You should have received a copy of the GNU General Public License
14382# along with GNU Libtool; see the file COPYING. If not, a copy
14383# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14384# obtained by writing to the Free Software Foundation, Inc.,
14385# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14386
14387
14388# The names of the tagged configurations supported by this script.
14389available_tags=""
14390
14391# ### BEGIN LIBTOOL CONFIG
14392
14393# A sed program that does not truncate output.
14394SED=$lt_SED
14395
14396# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14397Xsed="\$SED -e 1s/^X//"
14398
14399# A grep program that handles long lines.
14400GREP=$lt_GREP
14401
14402# An ERE matcher.
14403EGREP=$lt_EGREP
14404
14405# A literal string matcher.
14406FGREP=$lt_FGREP
14407
14408# Assembler program.
14409AS=$AS
14410
14411# DLL creation program.
14412DLLTOOL=$DLLTOOL
14413
14414# Object dumper program.
14415OBJDUMP=$OBJDUMP
14416
14417# Which release of libtool.m4 was used?
14418macro_version=$macro_version
14419macro_revision=$macro_revision
14420
14421# Whether or not to build shared libraries.
14422build_libtool_libs=$enable_shared
14423
14424# Whether or not to build static libraries.
14425build_old_libs=$enable_static
14426
14427# What type of objects to build.
14428pic_mode=$pic_mode
14429
14430# Whether or not to optimize for fast installation.
14431fast_install=$enable_fast_install
14432
14433# The host system.
14434host_alias=$host_alias
14435host=$host
14436host_os=$host_os
14437
14438# The build system.
14439build_alias=$build_alias
14440build=$build
14441build_os=$build_os
14442
14443# A BSD- or MS-compatible name lister.
14444NM=$lt_NM
14445
14446# Whether we need soft or hard links.
14447LN_S=$lt_LN_S
14448
14449# What is the maximum length of a command?
14450max_cmd_len=$max_cmd_len
14451
14452# Object file suffix (normally "o").
14453objext=$ac_objext
14454
14455# Executable file suffix (normally "").
14456exeext=$exeext
14457
14458# whether the shell understands "unset".
14459lt_unset=$lt_unset
14460
14461# turn spaces into newlines.
14462SP2NL=$lt_lt_SP2NL
14463
14464# turn newlines into spaces.
14465NL2SP=$lt_lt_NL2SP
14466
14467# How to create reloadable object files.
14468reload_flag=$lt_reload_flag
14469reload_cmds=$lt_reload_cmds
14470
14471# Method to check whether dependent libraries are shared objects.
14472deplibs_check_method=$lt_deplibs_check_method
14473
14474# Command to use when deplibs_check_method == "file_magic".
14475file_magic_cmd=$lt_file_magic_cmd
14476
14477# The archiver.
14478AR=$lt_AR
14479AR_FLAGS=$lt_AR_FLAGS
14480
14481# A symbol stripping program.
14482STRIP=$lt_STRIP
14483
14484# Commands used to install an old-style archive.
14485RANLIB=$lt_RANLIB
14486old_postinstall_cmds=$lt_old_postinstall_cmds
14487old_postuninstall_cmds=$lt_old_postuninstall_cmds
14488
14489# A C compiler.
14490LTCC=$lt_CC
14491
14492# LTCC compiler flags.
14493LTCFLAGS=$lt_CFLAGS
14494
14495# Take the output of nm and produce a listing of raw symbols and C names.
14496global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14497
14498# Transform the output of nm in a proper C declaration.
14499global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14500
14501# Transform the output of nm in a C name address pair.
14502global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14503
14504# Transform the output of nm in a C name address pair when lib prefix is needed.
14505global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14506
14507# The name of the directory that contains temporary libtool files.
14508objdir=$objdir
14509
14510# Shell to use when invoking shell scripts.
14511SHELL=$lt_SHELL
14512
14513# An echo program that does not interpret backslashes.
14514ECHO=$lt_ECHO
14515
14516# Used to examine libraries when file_magic_cmd begins with "file".
14517MAGIC_CMD=$MAGIC_CMD
14518
14519# Must we lock files when doing compilation?
14520need_locks=$lt_need_locks
14521
14522# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14523DSYMUTIL=$lt_DSYMUTIL
14524
14525# Tool to change global to local symbols on Mac OS X.
14526NMEDIT=$lt_NMEDIT
14527
14528# Tool to manipulate fat objects and archives on Mac OS X.
14529LIPO=$lt_LIPO
14530
14531# Old archive suffix (normally "a").
14532libext=$libext
14533
14534# Shared library suffix (normally ".so").
14535shrext_cmds=$lt_shrext_cmds
14536
14537# The commands to extract the exported symbol list from a shared archive.
14538extract_expsyms_cmds=$lt_extract_expsyms_cmds
14539
14540# Variables whose values should be saved in libtool wrapper scripts and
14541# restored at link time.
14542variables_saved_for_relink=$lt_variables_saved_for_relink
14543
14544# Do we need the "lib" prefix for modules?
14545need_lib_prefix=$need_lib_prefix
14546
14547# Do we need a version for libraries?
14548need_version=$need_version
14549
14550# Library versioning type.
14551version_type=$version_type
14552
14553# Shared library runtime path variable.
14554runpath_var=$runpath_var
14555
14556# Shared library path variable.
14557shlibpath_var=$shlibpath_var
14558
14559# Is shlibpath searched before the hard-coded library search path?
14560shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14561
14562# Format of library name prefix.
14563libname_spec=$lt_libname_spec
14564
14565# List of archive names. First name is the real one, the rest are links.
14566# The last name is the one that the linker finds with -lNAME
14567library_names_spec=$lt_library_names_spec
14568
14569# The coded name of the library, if different from the real name.
14570soname_spec=$lt_soname_spec
14571
14572# Command to use after installation of a shared archive.
14573postinstall_cmds=$lt_postinstall_cmds
14574
14575# Command to use after uninstallation of a shared archive.
14576postuninstall_cmds=$lt_postuninstall_cmds
14577
14578# Commands used to finish a libtool library installation in a directory.
14579finish_cmds=$lt_finish_cmds
14580
14581# As "finish_cmds", except a single script fragment to be evaled but
14582# not shown.
14583finish_eval=$lt_finish_eval
14584
14585# Whether we should hardcode library paths into libraries.
14586hardcode_into_libs=$hardcode_into_libs
14587
14588# Compile-time system search path for libraries.
14589sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14590
14591# Run-time system search path for libraries.
14592sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14593
14594# Whether dlopen is supported.
14595dlopen_support=$enable_dlopen
14596
14597# Whether dlopen of programs is supported.
14598dlopen_self=$enable_dlopen_self
14599
14600# Whether dlopen of statically linked programs is supported.
14601dlopen_self_static=$enable_dlopen_self_static
14602
14603# Commands to strip libraries.
14604old_striplib=$lt_old_striplib
14605striplib=$lt_striplib
14606
14607
14608# The linker used to build libraries.
14609LD=$lt_LD
14610
14611# Commands used to build an old-style archive.
14612old_archive_cmds=$lt_old_archive_cmds
14613
14614# A language specific compiler.
14615CC=$lt_compiler
14616
14617# Is the compiler the GNU compiler?
14618with_gcc=$GCC
14619
14620# Compiler flag to turn off builtin functions.
14621no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14622
14623# How to pass a linker flag through the compiler.
14624wl=$lt_lt_prog_compiler_wl
14625
14626# Additional compiler flags for building library objects.
14627pic_flag=$lt_lt_prog_compiler_pic
14628
14629# Compiler flag to prevent dynamic linking.
14630link_static_flag=$lt_lt_prog_compiler_static
14631
14632# Does compiler simultaneously support -c and -o options?
14633compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14634
14635# Whether or not to add -lc for building shared libraries.
14636build_libtool_need_lc=$archive_cmds_need_lc
14637
14638# Whether or not to disallow shared libs when runtime libs are static.
14639allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14640
14641# Compiler flag to allow reflexive dlopens.
14642export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14643
14644# Compiler flag to generate shared objects directly from archives.
14645whole_archive_flag_spec=$lt_whole_archive_flag_spec
14646
14647# Whether the compiler copes with passing no objects directly.
14648compiler_needs_object=$lt_compiler_needs_object
14649
14650# Create an old-style archive from a shared archive.
14651old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14652
14653# Create a temporary old-style archive to link instead of a shared archive.
14654old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14655
14656# Commands used to build a shared archive.
14657archive_cmds=$lt_archive_cmds
14658archive_expsym_cmds=$lt_archive_expsym_cmds
14659
14660# Commands used to build a loadable module if different from building
14661# a shared archive.
14662module_cmds=$lt_module_cmds
14663module_expsym_cmds=$lt_module_expsym_cmds
14664
14665# Whether we are building with GNU ld or not.
14666with_gnu_ld=$lt_with_gnu_ld
14667
14668# Flag that allows shared libraries with undefined symbols to be built.
14669allow_undefined_flag=$lt_allow_undefined_flag
14670
14671# Flag that enforces no undefined symbols.
14672no_undefined_flag=$lt_no_undefined_flag
14673
14674# Flag to hardcode \$libdir into a binary during linking.
14675# This must work even if \$libdir does not exist
14676hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14677
14678# If ld is used when linking, flag to hardcode \$libdir into a binary
14679# during linking. This must work even if \$libdir does not exist.
14680hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14681
14682# Whether we need a single "-rpath" flag with a separated argument.
14683hardcode_libdir_separator=$lt_hardcode_libdir_separator
14684
14685# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14686# DIR into the resulting binary.
14687hardcode_direct=$hardcode_direct
14688
14689# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14690# DIR into the resulting binary and the resulting library dependency is
14691# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14692# library is relocated.
14693hardcode_direct_absolute=$hardcode_direct_absolute
14694
14695# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14696# into the resulting binary.
14697hardcode_minus_L=$hardcode_minus_L
14698
14699# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14700# into the resulting binary.
14701hardcode_shlibpath_var=$hardcode_shlibpath_var
14702
14703# Set to "yes" if building a shared library automatically hardcodes DIR
14704# into the library and all subsequent libraries and executables linked
14705# against it.
14706hardcode_automatic=$hardcode_automatic
14707
14708# Set to yes if linker adds runtime paths of dependent libraries
14709# to runtime path list.
14710inherit_rpath=$inherit_rpath
14711
14712# Whether libtool must link a program against all its dependency libraries.
14713link_all_deplibs=$link_all_deplibs
14714
14715# Fix the shell variable \$srcfile for the compiler.
14716fix_srcfile_path=$lt_fix_srcfile_path
14717
14718# Set to "yes" if exported symbols are required.
14719always_export_symbols=$always_export_symbols
14720
14721# The commands to list exported symbols.
14722export_symbols_cmds=$lt_export_symbols_cmds
14723
14724# Symbols that should not be listed in the preloaded symbols.
14725exclude_expsyms=$lt_exclude_expsyms
14726
14727# Symbols that must always be exported.
14728include_expsyms=$lt_include_expsyms
14729
14730# Commands necessary for linking programs (against libraries) with templates.
14731prelink_cmds=$lt_prelink_cmds
14732
14733# Specify filename containing input files.
14734file_list_spec=$lt_file_list_spec
14735
14736# How to hardcode a shared library path into an executable.
14737hardcode_action=$hardcode_action
14738
14739# ### END LIBTOOL CONFIG
14740
14741_LT_EOF
14742
14743 case $host_os in
14744 aix3*)
14745 cat <<\_LT_EOF >> "$cfgfile"
14746# AIX sometimes has problems with the GCC collect2 program. For some
14747# reason, if we set the COLLECT_NAMES environment variable, the problems
14748# vanish in a puff of smoke.
14749if test "X${COLLECT_NAMES+set}" != Xset; then
14750 COLLECT_NAMES=
14751 export COLLECT_NAMES
14752fi
14753_LT_EOF
14754 ;;
14755 esac
14756
14757
14758ltmain="$ac_aux_dir/ltmain.sh"
14759
14760
14761 # We use sed instead of cat because bash on DJGPP gets confused if
14762 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14763 # text mode, it properly converts lines to CR/LF. This bash problem
14764 # is reportedly fixed, but why not run on old versions too?
14765 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14766 || (rm -f "$cfgfile"; exit 1)
14767
14768 case $xsi_shell in
14769 yes)
14770 cat << \_LT_EOF >> "$cfgfile"
14771
14772# func_dirname file append nondir_replacement
14773# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14774# otherwise set result to NONDIR_REPLACEMENT.
14775func_dirname ()
14776{
14777 case ${1} in
14778 */*) func_dirname_result="${1%/*}${2}" ;;
14779 * ) func_dirname_result="${3}" ;;
14780 esac
14781}
14782
14783# func_basename file
14784func_basename ()
14785{
14786 func_basename_result="${1##*/}"
14787}
14788
14789# func_dirname_and_basename file append nondir_replacement
14790# perform func_basename and func_dirname in a single function
14791# call:
14792# dirname: Compute the dirname of FILE. If nonempty,
14793# add APPEND to the result, otherwise set result
14794# to NONDIR_REPLACEMENT.
14795# value returned in "$func_dirname_result"
14796# basename: Compute filename of FILE.
14797# value retuned in "$func_basename_result"
14798# Implementation must be kept synchronized with func_dirname
14799# and func_basename. For efficiency, we do not delegate to
14800# those functions but instead duplicate the functionality here.
14801func_dirname_and_basename ()
14802{
14803 case ${1} in
14804 */*) func_dirname_result="${1%/*}${2}" ;;
14805 * ) func_dirname_result="${3}" ;;
14806 esac
14807 func_basename_result="${1##*/}"
14808}
14809
14810# func_stripname prefix suffix name
14811# strip PREFIX and SUFFIX off of NAME.
14812# PREFIX and SUFFIX must not contain globbing or regex special
14813# characters, hashes, percent signs, but SUFFIX may contain a leading
14814# dot (in which case that matches only a dot).
14815func_stripname ()
14816{
14817 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14818 # positional parameters, so assign one to ordinary parameter first.
14819 func_stripname_result=${3}
14820 func_stripname_result=${func_stripname_result#"${1}"}
14821 func_stripname_result=${func_stripname_result%"${2}"}
14822}
14823
14824# func_opt_split
14825func_opt_split ()
14826{
14827 func_opt_split_opt=${1%%=*}
14828 func_opt_split_arg=${1#*=}
14829}
14830
14831# func_lo2o object
14832func_lo2o ()
14833{
14834 case ${1} in
14835 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14836 *) func_lo2o_result=${1} ;;
14837 esac
14838}
14839
14840# func_xform libobj-or-source
14841func_xform ()
14842{
14843 func_xform_result=${1%.*}.lo
14844}
14845
14846# func_arith arithmetic-term...
14847func_arith ()
14848{
14849 func_arith_result=$(( $* ))
14850}
14851
14852# func_len string
14853# STRING may not start with a hyphen.
14854func_len ()
14855{
14856 func_len_result=${#1}
14857}
14858
14859_LT_EOF
14860 ;;
14861 *) # Bourne compatible functions.
14862 cat << \_LT_EOF >> "$cfgfile"
14863
14864# func_dirname file append nondir_replacement
14865# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14866# otherwise set result to NONDIR_REPLACEMENT.
14867func_dirname ()
14868{
14869 # Extract subdirectory from the argument.
14870 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14871 if test "X$func_dirname_result" = "X${1}"; then
14872 func_dirname_result="${3}"
14873 else
14874 func_dirname_result="$func_dirname_result${2}"
14875 fi
14876}
14877
14878# func_basename file
14879func_basename ()
14880{
14881 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14882}
14883
14884
14885# func_stripname prefix suffix name
14886# strip PREFIX and SUFFIX off of NAME.
14887# PREFIX and SUFFIX must not contain globbing or regex special
14888# characters, hashes, percent signs, but SUFFIX may contain a leading
14889# dot (in which case that matches only a dot).
14890# func_strip_suffix prefix name
14891func_stripname ()
14892{
14893 case ${2} in
14894 .*) func_stripname_result=`$ECHO "X${3}" \
14895 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14896 *) func_stripname_result=`$ECHO "X${3}" \
14897 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14898 esac
14899}
14900
14901# sed scripts:
14902my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14903my_sed_long_arg='1s/^-[^=]*=//'
14904
14905# func_opt_split
14906func_opt_split ()
14907{
14908 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14909 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14910}
14911
14912# func_lo2o object
14913func_lo2o ()
14914{
14915 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14916}
14917
14918# func_xform libobj-or-source
14919func_xform ()
14920{
14921 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14922}
14923
14924# func_arith arithmetic-term...
14925func_arith ()
14926{
14927 func_arith_result=`expr "$@"`
14928}
14929
14930# func_len string
14931# STRING may not start with a hyphen.
14932func_len ()
14933{
14934 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14935}
14936
14937_LT_EOF
14938esac
14939
14940case $lt_shell_append in
14941 yes)
14942 cat << \_LT_EOF >> "$cfgfile"
14943
14944# func_append var value
14945# Append VALUE to the end of shell variable VAR.
14946func_append ()
14947{
14948 eval "$1+=\$2"
14949}
14950_LT_EOF
14951 ;;
14952 *)
14953 cat << \_LT_EOF >> "$cfgfile"
14954
14955# func_append var value
14956# Append VALUE to the end of shell variable VAR.
14957func_append ()
14958{
14959 eval "$1=\$$1\$2"
14960}
14961
14962_LT_EOF
14963 ;;
14964 esac
14965
14966
14967 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14968 || (rm -f "$cfgfile"; exit 1)
14969
14970 mv -f "$cfgfile" "$ofile" ||
14971 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14972 chmod +x "$ofile"
14973
14974 ;;
14975 "libpng-config":F) chmod +x libpng-config ;;
14976
14977 esac
14978done # for ac_tag
14979
14980
14981{ (exit 0); exit 0; }
14982_ACEOF
14983chmod +x $CONFIG_STATUS
14984ac_clean_files=$ac_clean_files_save
14985
14986test $ac_write_fail = 0 ||
14987 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14988$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14989 { (exit 1); exit 1; }; }
14990
14991
14992# configure is writing to config.log, and then calls config.status.
14993# config.status does its own redirection, appending to config.log.
14994# Unfortunately, on DOS this fails, as config.log is still kept open
14995# by configure, so config.status won't be able to write to it; its
14996# output is simply discarded. So we exec the FD to /dev/null,
14997# effectively closing config.log, so it can be properly (re)opened and
14998# appended to by config.status. When coming back to configure, we
14999# need to make the FD available again.
15000if test "$no_create" != yes; then
15001 ac_cs_success=:
15002 ac_config_status_args=
15003 test "$silent" = yes &&
15004 ac_config_status_args="$ac_config_status_args --quiet"
15005 exec 5>/dev/null
15006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15007 exec 5>>config.log
15008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15009 # would make configure fail if this is the last instruction.
15010 $ac_cs_success || { (exit 1); exit 1; }
15011fi
15012if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15013 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15014$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
15015fi
0272a10d 15016