]> git.saurik.com Git - wxWidgets.git/blob - src/png/configure
fixing focus, fixes #11911
[wxWidgets.git] / src / png / configure
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 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606 $*
607 _LT_EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='libpng'
747 PACKAGE_TARNAME='libpng'
748 PACKAGE_VERSION='1.2.34'
749 PACKAGE_STRING='libpng 1.2.34'
750 PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
751
752 ac_unique_file="pngget.c"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='SHELL
790 PATH_SEPARATOR
791 PACKAGE_NAME
792 PACKAGE_TARNAME
793 PACKAGE_VERSION
794 PACKAGE_STRING
795 PACKAGE_BUGREPORT
796 exec_prefix
797 prefix
798 program_transform_name
799 bindir
800 sbindir
801 libexecdir
802 datarootdir
803 datadir
804 sysconfdir
805 sharedstatedir
806 localstatedir
807 includedir
808 oldincludedir
809 docdir
810 infodir
811 htmldir
812 dvidir
813 pdfdir
814 psdir
815 libdir
816 localedir
817 mandir
818 DEFS
819 ECHO_C
820 ECHO_N
821 ECHO_T
822 LIBS
823 build_alias
824 host_alias
825 target_alias
826 INSTALL_PROGRAM
827 INSTALL_SCRIPT
828 INSTALL_DATA
829 am__isrc
830 CYGPATH_W
831 PACKAGE
832 VERSION
833 ACLOCAL
834 AUTOCONF
835 AUTOMAKE
836 AUTOHEADER
837 MAKEINFO
838 install_sh
839 STRIP
840 INSTALL_STRIP_PROGRAM
841 MKDIR_P
842 mkdir_p
843 AWK
844 SET_MAKE
845 am__leading_dot
846 AMTAR
847 am__tar
848 am__untar
849 MAINTAINER_MODE_TRUE
850 MAINTAINER_MODE_FALSE
851 MAINT
852 CC
853 CFLAGS
854 LDFLAGS
855 CPPFLAGS
856 ac_ct_CC
857 EXEEXT
858 OBJEXT
859 DEPDIR
860 am__include
861 am__quote
862 AMDEP_TRUE
863 AMDEP_FALSE
864 AMDEPBACKSLASH
865 CCDEPMODE
866 am__fastdepCC_TRUE
867 am__fastdepCC_FALSE
868 build
869 build_cpu
870 build_vendor
871 build_os
872 host
873 host_cpu
874 host_vendor
875 host_os
876 SED
877 GREP
878 EGREP
879 FGREP
880 LD
881 CPP
882 AS
883 DLLTOOL
884 OBJDUMP
885 LN_S
886 LIBTOOL
887 DUMPBIN
888 ac_ct_DUMPBIN
889 NM
890 AR
891 RANLIB
892 lt_ECHO
893 DSYMUTIL
894 NMEDIT
895 LIPO
896 POW_LIB
897 LIBOBJS
898 LIBPNG_DEFINES
899 LIBPNG_NO_MMX
900 HAVE_LD_VERSION_SCRIPT_TRUE
901 HAVE_LD_VERSION_SCRIPT_FALSE
902 SYMBOL_PREFIX
903 PNGLIB_VERSION
904 PNGLIB_MAJOR
905 PNGLIB_MINOR
906 PNGLIB_RELEASE
907 pkgconfigdir
908 binconfigs
909 compatlib
910 LTLIBOBJS'
911 ac_subst_files=''
912 ac_user_opts='
913 enable_option_checking
914 enable_maintainer_mode
915 enable_dependency_tracking
916 with_gnu_ld
917 enable_shared
918 enable_static
919 with_pic
920 enable_fast_install
921 enable_libtool_lock
922 with_pkgconfigdir
923 with_binconfigs
924 with_libpng_compat
925 '
926 ac_precious_vars='build_alias
927 host_alias
928 target_alias
929 CC
930 CFLAGS
931 LDFLAGS
932 LIBS
933 CPPFLAGS
934 CPP'
935
936
937 # Initialize some variables set by options.
938 ac_init_help=
939 ac_init_version=false
940 ac_unrecognized_opts=
941 ac_unrecognized_sep=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_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.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976 infodir='${datarootdir}/info'
977 htmldir='${docdir}'
978 dvidir='${docdir}'
979 pdfdir='${docdir}'
980 psdir='${docdir}'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
984
985 ac_prev=
986 ac_dashdash=
987 for ac_option
988 do
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
1324 Try \`$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
1346 done
1347
1348 if 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; }; }
1352 fi
1353
1354 if 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
1361 fi
1362
1363 # Check all directory arguments for consistency.
1364 for 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
1368 do
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; }; }
1383 done
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.
1388 build=$build_alias
1389 host=$host_alias
1390 target=$target_alias
1391
1392 # FIXME: To remove some day.
1393 if 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
1401 fi
1402
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406 test "$silent" = yes && exec 6>/dev/null
1407
1408
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_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; }; }
1414 test "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.
1420 if 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
1450 else
1451 ac_srcdir_defaulted=no
1452 fi
1453 if 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; }; }
1457 fi
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 ac_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=.
1464 if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 srcdir=.
1466 fi
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.
1470 case $srcdir in
1471 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 esac
1473 for 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}
1478 done
1479
1480 #
1481 # Report the --help message.
1482 #
1483 if 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
1489 Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492 VAR=VALUE. See below for descriptions of some of the useful variables.
1493
1494 Defaults for the options are specified in brackets.
1495
1496 Configuration:
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
1507 Installation 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
1513 By default, \`make install' will install all the files in
1514 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516 for instance \`--prefix=\$HOME'.
1517
1518 For better control, use the options below.
1519
1520 Fine 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
1544 Program 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
1549 System 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
1553 fi
1554
1555 if 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
1561 Optional 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
1575 Optional 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
1588 Some 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
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1600
1601 Report bugs to <png-mng-implement@lists.sourceforge.net>.
1602 _ACEOF
1603 ac_status=$?
1604 fi
1605
1606 if 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
1614 case "$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 ;;
1624 esac
1625 ac_abs_top_builddir=$ac_pwd
1626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627 # for backward compatibility:
1628 ac_top_builddir=$ac_top_build_prefix
1629
1630 case $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 ;;
1643 esac
1644 ac_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
1659 fi
1660
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1663 cat <<\_ACEOF
1664 libpng configure 1.2.34
1665 generated by GNU Autoconf 2.62
1666
1667 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1668 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1669 This configure script is free software; the Free Software Foundation
1670 gives unlimited permission to copy, distribute and modify it.
1671 _ACEOF
1672 exit
1673 fi
1674 cat >config.log <<_ACEOF
1675 This file contains any messages produced by compilers while
1676 running configure, to aid debugging if configure makes a mistake.
1677
1678 It was created by libpng $as_me 1.2.34, which was
1679 generated by GNU Autoconf 2.62. Invocation command line was
1680
1681 $ $0 $@
1682
1683 _ACEOF
1684 exec 5>>config.log
1685 {
1686 cat <<_ASUNAME
1687 ## --------- ##
1688 ## Platform. ##
1689 ## --------- ##
1690
1691 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695 uname -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
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1712 do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 $as_echo "PATH: $as_dir"
1716 done
1717 IFS=$as_save_IFS
1718
1719 } >&5
1720
1721 cat >&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.
1736 ac_configure_args=
1737 ac_configure_args0=
1738 ac_configure_args1=
1739 ac_must_keep_next=false
1740 for ac_pass in 1 2
1741 do
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
1775 done
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.
1784 trap '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
1879 for ac_signal in 1 2 13 15; do
1880 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881 done
1882 ac_signal=0
1883
1884 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1885 rm -f -r conftest* confdefs.h
1886
1887 # Predefined preprocessor variables.
1888
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_NAME "$PACKAGE_NAME"
1891 _ACEOF
1892
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1901 _ACEOF
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_STRING "$PACKAGE_STRING"
1906 _ACEOF
1907
1908
1909 cat >>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.
1916 ac_site_file1=NONE
1917 ac_site_file2=NONE
1918 if test -n "$CONFIG_SITE"; then
1919 ac_site_file1=$CONFIG_SITE
1920 elif test "x$prefix" != xNONE; then
1921 ac_site_file1=$prefix/share/config.site
1922 ac_site_file2=$prefix/etc/config.site
1923 else
1924 ac_site_file1=$ac_default_prefix/share/config.site
1925 ac_site_file2=$ac_default_prefix/etc/config.site
1926 fi
1927 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1928 do
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
1936 done
1937
1938 if 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
1949 else
1950 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1951 $as_echo "$as_me: creating cache $cache_file" >&6;}
1952 >$cache_file
1953 fi
1954
1955 # Check that the precious variables saved in the cache have kept the same
1956 # value.
1957 ac_cache_corrupted=false
1958 for 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
2004 done
2005 if $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; }; }
2011 fi
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
2037 ac_ext=c
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042
2043
2044 am__api_version='1.10'
2045
2046 ac_aux_dir=
2047 for 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
2061 done
2062 if 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; }; }
2066 fi
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.
2072 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2073 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2074 ac_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; }
2093 if test -z "$INSTALL"; then
2094 if test "${ac_cv_path_install+set}" = set; then
2095 $as_echo_n "(cached) " >&6
2096 else
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2099 do
2100 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=.
2102 # Account for people who put trailing slashes in PATH elements.
2103 case $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 ;;
2141 esac
2142
2143 done
2144 IFS=$as_save_IFS
2145
2146 rm -rf conftest.one conftest.two conftest.dir
2147
2148 fi
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
2158 fi
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.
2164 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2165
2166 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2167
2168 test -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
2173 sleep 1
2174 echo 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).
2180 if (
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
2195 alias in your environment" >&5
2196 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2197 alias in your environment" >&2;}
2198 { (exit 1); exit 1; }; }
2199 fi
2200
2201 test "$2" = conftest.file
2202 )
2203 then
2204 # Ok.
2205 :
2206 else
2207 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2208 Check your system clock" >&5
2209 $as_echo "$as_me: error: newly created file is older than distributed files!
2210 Check your system clock" >&2;}
2211 { (exit 1); exit 1; }; }
2212 fi
2213 { $as_echo "$as_me:$LINENO: result: yes" >&5
2214 $as_echo "yes" >&6; }
2215 test "$program_prefix" != NONE &&
2216 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2217 # Use a double $ so make ignores it.
2218 test "$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.
2222 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2223 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2224
2225 # expand $ac_aux_dir to an absolute path
2226 am_aux_dir=`cd $ac_aux_dir && pwd`
2227
2228 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2229 # Use eval to expand $SHELL
2230 if eval "$MISSING --run true"; then
2231 am_missing_run="$MISSING --run "
2232 else
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;}
2236 fi
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; }
2240 if test -z "$MKDIR_P"; then
2241 if test "${ac_cv_path_mkdir+set}" = set; then
2242 $as_echo_n "(cached) " >&6
2243 else
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2246 do
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
2261 done
2262 IFS=$as_save_IFS
2263
2264 fi
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
2276 fi
2277 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2278 $as_echo "$MKDIR_P" >&6; }
2279
2280 mkdir_p="$MKDIR_P"
2281 case $mkdir_p in
2282 [\\/$]* | ?:[\\/]*) ;;
2283 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2284 esac
2285
2286 for ac_prog in gawk mawk nawk awk
2287 do
2288 # Extract the first word of "$ac_prog", so it can be a program name with args.
2289 set 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; }
2292 if test "${ac_cv_prog_AWK+set}" = set; then
2293 $as_echo_n "(cached) " >&6
2294 else
2295 if test -n "$AWK"; then
2296 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2297 else
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2300 do
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
2309 done
2310 done
2311 IFS=$as_save_IFS
2312
2313 fi
2314 fi
2315 AWK=$ac_cv_prog_AWK
2316 if test -n "$AWK"; then
2317 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2318 $as_echo "$AWK" >&6; }
2319 else
2320 { $as_echo "$as_me:$LINENO: result: no" >&5
2321 $as_echo "no" >&6; }
2322 fi
2323
2324
2325 test -n "$AWK" && break
2326 done
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; }
2330 set x ${MAKE-make}
2331 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2332 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2333 $as_echo_n "(cached) " >&6
2334 else
2335 cat >conftest.make <<\_ACEOF
2336 SHELL = /bin/sh
2337 all:
2338 @echo '@@@%%%=$(MAKE)=@@@%%%'
2339 _ACEOF
2340 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2341 case `${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;;
2346 esac
2347 rm -f conftest.make
2348 fi
2349 if 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=
2353 else
2354 { $as_echo "$as_me:$LINENO: result: no" >&5
2355 $as_echo "no" >&6; }
2356 SET_MAKE="MAKE=${MAKE-make}"
2357 fi
2358
2359 rm -rf .tst 2>/dev/null
2360 mkdir .tst 2>/dev/null
2361 if test -d .tst; then
2362 am__leading_dot=.
2363 else
2364 am__leading_dot=_
2365 fi
2366 rmdir .tst 2>/dev/null
2367
2368 if 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
2378 fi
2379
2380 # test whether we have cygpath
2381 if 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
2387 fi
2388
2389
2390 # Define the identity of the package.
2391 PACKAGE='libpng'
2392 VERSION='1.2.34'
2393
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE "$PACKAGE"
2397 _ACEOF
2398
2399
2400 cat >>confdefs.h <<_ACEOF
2401 #define VERSION "$VERSION"
2402 _ACEOF
2403
2404 # Some tools Automake needs.
2405
2406 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2407
2408
2409 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2410
2411
2412 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2413
2414
2415 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2416
2417
2418 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2419
2420 install_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.
2426 if 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.
2429 set 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; }
2432 if test "${ac_cv_prog_STRIP+set}" = set; then
2433 $as_echo_n "(cached) " >&6
2434 else
2435 if test -n "$STRIP"; then
2436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2440 do
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
2449 done
2450 done
2451 IFS=$as_save_IFS
2452
2453 fi
2454 fi
2455 STRIP=$ac_cv_prog_STRIP
2456 if test -n "$STRIP"; then
2457 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2458 $as_echo "$STRIP" >&6; }
2459 else
2460 { $as_echo "$as_me:$LINENO: result: no" >&5
2461 $as_echo "no" >&6; }
2462 fi
2463
2464
2465 fi
2466 if 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.
2469 set 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; }
2472 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2473 $as_echo_n "(cached) " >&6
2474 else
2475 if test -n "$ac_ct_STRIP"; then
2476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
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
2489 done
2490 done
2491 IFS=$as_save_IFS
2492
2493 fi
2494 fi
2495 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2496 if test -n "$ac_ct_STRIP"; then
2497 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2498 $as_echo "$ac_ct_STRIP" >&6; }
2499 else
2500 { $as_echo "$as_me:$LINENO: result: no" >&5
2501 $as_echo "no" >&6; }
2502 fi
2503
2504 if test "x$ac_ct_STRIP" = x; then
2505 STRIP=":"
2506 else
2507 case $cross_compiling:$ac_tool_warned in
2508 yes:)
2509 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2510 whose name does not start with the host triplet. If you think this
2511 configuration 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
2513 whose name does not start with the host triplet. If you think this
2514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2515 ac_tool_warned=yes ;;
2516 esac
2517 STRIP=$ac_ct_STRIP
2518 fi
2519 else
2520 STRIP="$ac_cv_prog_STRIP"
2521 fi
2522
2523 fi
2524 INSTALL_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
2530 AMTAR=${AMTAR-"${am_missing_run}tar"}
2531
2532 am__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.
2541 if test "${enable_maintainer_mode+set}" = set; then
2542 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2543 else
2544 USE_MAINTAINER_MODE=no
2545 fi
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='#'
2552 else
2553 MAINTAINER_MODE_TRUE='#'
2554 MAINTAINER_MODE_FALSE=
2555 fi
2556
2557 MAINT=$MAINTAINER_MODE_TRUE
2558
2559
2560
2561 PNGLIB_VERSION=1.2.34
2562 PNGLIB_MAJOR=1
2563 PNGLIB_MINOR=2
2564 PNGLIB_RELEASE=34
2565
2566
2567
2568 ac_config_headers="$ac_config_headers config.h"
2569
2570
2571 # Checks for programs.
2572 ac_ext=c
2573 ac_cpp='$CPP $CPPFLAGS'
2574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577 if 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.
2579 set 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; }
2582 if test "${ac_cv_prog_CC+set}" = set; then
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
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
2599 done
2600 done
2601 IFS=$as_save_IFS
2602
2603 fi
2604 fi
2605 CC=$ac_cv_prog_CC
2606 if test -n "$CC"; then
2607 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2608 $as_echo "$CC" >&6; }
2609 else
2610 { $as_echo "$as_me:$LINENO: result: no" >&5
2611 $as_echo "no" >&6; }
2612 fi
2613
2614
2615 fi
2616 if 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.
2619 set 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; }
2622 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2623 $as_echo_n "(cached) " >&6
2624 else
2625 if test -n "$ac_ct_CC"; then
2626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
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
2639 done
2640 done
2641 IFS=$as_save_IFS
2642
2643 fi
2644 fi
2645 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2646 if test -n "$ac_ct_CC"; then
2647 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2648 $as_echo "$ac_ct_CC" >&6; }
2649 else
2650 { $as_echo "$as_me:$LINENO: result: no" >&5
2651 $as_echo "no" >&6; }
2652 fi
2653
2654 if test "x$ac_ct_CC" = x; then
2655 CC=""
2656 else
2657 case $cross_compiling:$ac_tool_warned in
2658 yes:)
2659 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2660 whose name does not start with the host triplet. If you think this
2661 configuration 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
2663 whose name does not start with the host triplet. If you think this
2664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2665 ac_tool_warned=yes ;;
2666 esac
2667 CC=$ac_ct_CC
2668 fi
2669 else
2670 CC="$ac_cv_prog_CC"
2671 fi
2672
2673 if 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.
2676 set 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; }
2679 if test "${ac_cv_prog_CC+set}" = set; then
2680 $as_echo_n "(cached) " >&6
2681 else
2682 if test -n "$CC"; then
2683 ac_cv_prog_CC="$CC" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
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
2696 done
2697 done
2698 IFS=$as_save_IFS
2699
2700 fi
2701 fi
2702 CC=$ac_cv_prog_CC
2703 if test -n "$CC"; then
2704 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2705 $as_echo "$CC" >&6; }
2706 else
2707 { $as_echo "$as_me:$LINENO: result: no" >&5
2708 $as_echo "no" >&6; }
2709 fi
2710
2711
2712 fi
2713 fi
2714 if test -z "$CC"; then
2715 # Extract the first word of "cc", so it can be a program name with args.
2716 set 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; }
2719 if test "${ac_cv_prog_CC+set}" = set; then
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC="$CC" # Let the user override the test.
2724 else
2725 ac_prog_rejected=no
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
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
2741 done
2742 done
2743 IFS=$as_save_IFS
2744
2745 if 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
2756 fi
2757 fi
2758 fi
2759 CC=$ac_cv_prog_CC
2760 if test -n "$CC"; then
2761 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2762 $as_echo "$CC" >&6; }
2763 else
2764 { $as_echo "$as_me:$LINENO: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768
2769 fi
2770 if 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.
2775 set 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; }
2778 if test "${ac_cv_prog_CC+set}" = set; then
2779 $as_echo_n "(cached) " >&6
2780 else
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC="$CC" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
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
2795 done
2796 done
2797 IFS=$as_save_IFS
2798
2799 fi
2800 fi
2801 CC=$ac_cv_prog_CC
2802 if test -n "$CC"; then
2803 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2804 $as_echo "$CC" >&6; }
2805 else
2806 { $as_echo "$as_me:$LINENO: result: no" >&5
2807 $as_echo "no" >&6; }
2808 fi
2809
2810
2811 test -n "$CC" && break
2812 done
2813 fi
2814 if test -z "$CC"; then
2815 ac_ct_CC=$CC
2816 for ac_prog in cl.exe
2817 do
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set 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; }
2822 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
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
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2846 if test -n "$ac_ct_CC"; then
2847 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2848 $as_echo "$ac_ct_CC" >&6; }
2849 else
2850 { $as_echo "$as_me:$LINENO: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854
2855 test -n "$ac_ct_CC" && break
2856 done
2857
2858 if test "x$ac_ct_CC" = x; then
2859 CC=""
2860 else
2861 case $cross_compiling:$ac_tool_warned in
2862 yes:)
2863 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2864 whose name does not start with the host triplet. If you think this
2865 configuration 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
2867 whose name does not start with the host triplet. If you think this
2868 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2869 ac_tool_warned=yes ;;
2870 esac
2871 CC=$ac_ct_CC
2872 fi
2873 fi
2874
2875 fi
2876
2877
2878 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2879 See \`config.log' for more details." >&5
2880 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2881 See \`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
2886 set X $ac_compile
2887 ac_compiler=$2
2888 { (ac_try="$ac_compiler --version >&5"
2889 case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892 esac
2893 eval 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"
2900 case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903 esac
2904 eval 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"
2911 case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914 esac
2915 eval 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
2922 cat >conftest.$ac_ext <<_ACEOF
2923 /* confdefs.h. */
2924 _ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2928
2929 int
2930 main ()
2931 {
2932
2933 ;
2934 return 0;
2935 }
2936 _ACEOF
2937 ac_clean_files_save=$ac_clean_files
2938 ac_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; }
2944 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2945
2946 # The possible output files:
2947 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2948
2949 ac_rmfiles=
2950 for ac_file in $ac_files
2951 do
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
2956 done
2957 rm -f $ac_rmfiles
2958
2959 if { (ac_try="$ac_link_default"
2960 case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963 esac
2964 eval 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.
2975 for ac_file in $ac_files ''
2976 do
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
2999 done
3000 test "$ac_cv_exeext" = no && ac_cv_exeext=
3001
3002 else
3003 ac_file=''
3004 fi
3005
3006 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3007 $as_echo "$ac_file" >&6; }
3008 if test -z "$ac_file"; then
3009 $as_echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3011
3012 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3013 See \`config.log' for more details." >&5
3014 $as_echo "$as_me: error: C compiler cannot create executables
3015 See \`config.log' for more details." >&2;}
3016 { (exit 77); exit 77; }; }
3017 fi
3018
3019 ac_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.
3027 if 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;;
3032 esac
3033 eval 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.
3045 If you meant to cross compile, use \`--host'.
3046 See \`config.log' for more details." >&5
3047 $as_echo "$as_me: error: cannot run C compiled programs.
3048 If you meant to cross compile, use \`--host'.
3049 See \`config.log' for more details." >&2;}
3050 { (exit 1); exit 1; }; }
3051 fi
3052 fi
3053 fi
3054 { $as_echo "$as_me:$LINENO: result: yes" >&5
3055 $as_echo "yes" >&6; }
3056
3057 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3058 ac_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; }
3068 if { (ac_try="$ac_link"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval 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'.
3083 for 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
3091 done
3092 else
3093 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3094 See \`config.log' for more details." >&5
3095 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3096 See \`config.log' for more details." >&2;}
3097 { (exit 1); exit 1; }; }
3098 fi
3099
3100 rm -f conftest$ac_cv_exeext
3101 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3102 $as_echo "$ac_cv_exeext" >&6; }
3103
3104 rm -f conftest.$ac_ext
3105 EXEEXT=$ac_cv_exeext
3106 ac_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; }
3109 if test "${ac_cv_objext+set}" = set; then
3110 $as_echo_n "(cached) " >&6
3111 else
3112 cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h. */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3118
3119 int
3120 main ()
3121 {
3122
3123 ;
3124 return 0;
3125 }
3126 _ACEOF
3127 rm -f conftest.o conftest.obj
3128 if { (ac_try="$ac_compile"
3129 case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132 esac
3133 eval 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
3146 done
3147 else
3148 $as_echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3152 See \`config.log' for more details." >&5
3153 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3154 See \`config.log' for more details." >&2;}
3155 { (exit 1); exit 1; }; }
3156 fi
3157
3158 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3159 fi
3160 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3161 $as_echo "$ac_cv_objext" >&6; }
3162 OBJEXT=$ac_cv_objext
3163 ac_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; }
3166 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3167 $as_echo_n "(cached) " >&6
3168 else
3169 cat >conftest.$ac_ext <<_ACEOF
3170 /* confdefs.h. */
3171 _ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3175
3176 int
3177 main ()
3178 {
3179 #ifndef __GNUC__
3180 choke me
3181 #endif
3182
3183 ;
3184 return 0;
3185 }
3186 _ACEOF
3187 rm -f conftest.$ac_objext
3188 if { (ac_try="$ac_compile"
3189 case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval 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
3206 else
3207 $as_echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210 ac_compiler_gnu=no
3211 fi
3212
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3215
3216 fi
3217 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3218 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3219 if test $ac_compiler_gnu = yes; then
3220 GCC=yes
3221 else
3222 GCC=
3223 fi
3224 ac_test_CFLAGS=${CFLAGS+set}
3225 ac_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; }
3228 if test "${ac_cv_prog_cc_g+set}" = set; then
3229 $as_echo_n "(cached) " >&6
3230 else
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
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3241
3242 int
3243 main ()
3244 {
3245
3246 ;
3247 return 0;
3248 }
3249 _ACEOF
3250 rm -f conftest.$ac_objext
3251 if { (ac_try="$ac_compile"
3252 case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval 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
3269 else
3270 $as_echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3272
3273 CFLAGS=""
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h. */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3280
3281 int
3282 main ()
3283 {
3284
3285 ;
3286 return 0;
3287 }
3288 _ACEOF
3289 rm -f conftest.$ac_objext
3290 if { (ac_try="$ac_compile"
3291 case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294 esac
3295 eval 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 :
3308 else
3309 $as_echo "$as_me: failed program was:" >&5
3310 sed '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
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3320
3321 int
3322 main ()
3323 {
3324
3325 ;
3326 return 0;
3327 }
3328 _ACEOF
3329 rm -f conftest.$ac_objext
3330 if { (ac_try="$ac_compile"
3331 case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval 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
3348 else
3349 $as_echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352
3353 fi
3354
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 fi
3357
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 fi
3360
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_c_werror_flag=$ac_save_c_werror_flag
3363 fi
3364 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3365 $as_echo "$ac_cv_prog_cc_g" >&6; }
3366 if test "$ac_test_CFLAGS" = set; then
3367 CFLAGS=$ac_save_CFLAGS
3368 elif 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
3374 else
3375 if test "$GCC" = yes; then
3376 CFLAGS="-O2"
3377 else
3378 CFLAGS=
3379 fi
3380 fi
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; }
3383 if test "${ac_cv_prog_cc_c89+set}" = set; then
3384 $as_echo_n "(cached) " >&6
3385 else
3386 ac_cv_prog_cc_c89=no
3387 ac_save_CC=$CC
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h. */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>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. */
3399 struct buf { int x; };
3400 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3401 static char *e (p, i)
3402 char **p;
3403 int i;
3404 {
3405 return p[i];
3406 }
3407 static 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. */
3424 int 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'
3429 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3430
3431 int test (int i, double x);
3432 struct s1 {int (*f) (int a);};
3433 struct s2 {int (*f) (double a);};
3434 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3435 int argc;
3436 char **argv;
3437 int
3438 main ()
3439 {
3440 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3441 ;
3442 return 0;
3443 }
3444 _ACEOF
3445 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3446 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3447 do
3448 CC="$ac_save_CC $ac_arg"
3449 rm -f conftest.$ac_objext
3450 if { (ac_try="$ac_compile"
3451 case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454 esac
3455 eval 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
3468 else
3469 $as_echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472
3473 fi
3474
3475 rm -f core conftest.err conftest.$ac_objext
3476 test "x$ac_cv_prog_cc_c89" != "xno" && break
3477 done
3478 rm -f conftest.$ac_ext
3479 CC=$ac_save_CC
3480
3481 fi
3482 # AC_CACHE_VAL
3483 case "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; } ;;
3494 esac
3495
3496
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502 DEPDIR="${am__leading_dot}deps"
3503
3504 ac_config_commands="$ac_config_commands depfiles"
3505
3506
3507 am_make=${MAKE-make}
3508 cat > confinc << 'END'
3509 am__doit:
3510 @echo done
3511 .PHONY: am__doit
3512 END
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; }
3516 am__include="#"
3517 am__quote=
3518 _am_result=none
3519 # First try GNU make style include.
3520 echo "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'.
3526 if 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
3530 fi
3531 # Now try BSD make style include.
3532 if 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
3539 fi
3540
3541
3542 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3543 $as_echo "$_am_result" >&6; }
3544 rm -f confinc confmf
3545
3546 # Check whether --enable-dependency-tracking was given.
3547 if test "${enable_dependency_tracking+set}" = set; then
3548 enableval=$enable_dependency_tracking;
3549 fi
3550
3551 if test "x$enable_dependency_tracking" != xno; then
3552 am_depcomp="$ac_aux_dir/depcomp"
3553 AMDEPBACKSLASH='\'
3554 fi
3555 if test "x$enable_dependency_tracking" != xno; then
3556 AMDEP_TRUE=
3557 AMDEP_FALSE='#'
3558 else
3559 AMDEP_TRUE='#'
3560 AMDEP_FALSE=
3561 fi
3562
3563
3564
3565 depcc="$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; }
3569 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3570 $as_echo_n "(cached) " >&6
3571 else
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
3653 else
3654 am_cv_CC_dependencies_compiler_type=none
3655 fi
3656
3657 fi
3658 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3659 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3660 CCDEPMODE=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='#'
3667 else
3668 am__fastdepCC_TRUE='#'
3669 am__fastdepCC_FALSE=
3670 fi
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; }
3681 if test "${ac_cv_build+set}" = set; then
3682 $as_echo_n "(cached) " >&6
3683 else
3684 ac_build_alias=$build_alias
3685 test "x$ac_build_alias" = x &&
3686 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3687 test "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; }; }
3691 ac_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
3696 fi
3697 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3698 $as_echo "$ac_cv_build" >&6; }
3699 case $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; }; };;
3704 esac
3705 build=$ac_cv_build
3706 ac_save_IFS=$IFS; IFS='-'
3707 set x $ac_cv_build
3708 shift
3709 build_cpu=$1
3710 build_vendor=$2
3711 shift; shift
3712 # Remember, the first character of IFS is used to create $*,
3713 # except with old shells:
3714 build_os=$*
3715 IFS=$ac_save_IFS
3716 case $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; }
3721 if test "${ac_cv_host+set}" = set; then
3722 $as_echo_n "(cached) " >&6
3723 else
3724 if test "x$host_alias" = x; then
3725 ac_cv_host=$ac_cv_build
3726 else
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; }; }
3731 fi
3732
3733 fi
3734 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3735 $as_echo "$ac_cv_host" >&6; }
3736 case $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; }; };;
3741 esac
3742 host=$ac_cv_host
3743 ac_save_IFS=$IFS; IFS='-'
3744 set x $ac_cv_host
3745 shift
3746 host_cpu=$1
3747 host_vendor=$2
3748 shift; shift
3749 # Remember, the first character of IFS is used to create $*,
3750 # except with old shells:
3751 host_os=$*
3752 IFS=$ac_save_IFS
3753 case $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; }
3758 if test "${ac_cv_path_SED+set}" = set; then
3759 $as_echo_n "(cached) " >&6
3760 else
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
3771 for as_dir in $PATH
3772 do
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
3781 case `"$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;;
3805 esac
3806
3807 $ac_path_SED_found && break 3
3808 done
3809 done
3810 done
3811 IFS=$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
3817 else
3818 ac_cv_path_SED=$SED
3819 fi
3820
3821 fi
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
3827 test -z "$SED" && SED=sed
3828 Xsed="$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; }
3842 if test "${ac_cv_path_GREP+set}" = set; then
3843 $as_echo_n "(cached) " >&6
3844 else
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
3849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3850 do
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
3859 case `"$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;;
3883 esac
3884
3885 $ac_path_GREP_found && break 3
3886 done
3887 done
3888 done
3889 IFS=$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
3895 else
3896 ac_cv_path_GREP=$GREP
3897 fi
3898
3899 fi
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; }
3907 if test "${ac_cv_path_EGREP+set}" = set; then
3908 $as_echo_n "(cached) " >&6
3909 else
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
3917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918 do
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
3927 case `"$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;;
3951 esac
3952
3953 $ac_path_EGREP_found && break 3
3954 done
3955 done
3956 done
3957 IFS=$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
3963 else
3964 ac_cv_path_EGREP=$EGREP
3965 fi
3966
3967 fi
3968 fi
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; }
3976 if test "${ac_cv_path_FGREP+set}" = set; then
3977 $as_echo_n "(cached) " >&6
3978 else
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
3986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3987 do
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
3996 case `"$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;;
4020 esac
4021
4022 $ac_path_FGREP_found && break 3
4023 done
4024 done
4025 done
4026 IFS=$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
4032 else
4033 ac_cv_path_FGREP=$FGREP
4034 fi
4035
4036 fi
4037 fi
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
4043 test -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.
4064 if test "${with_gnu_ld+set}" = set; then
4065 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4066 else
4067 with_gnu_ld=no
4068 fi
4069
4070 ac_prog=ld
4071 if 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
4102 elif 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; }
4105 else
4106 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4107 $as_echo_n "checking for non-GNU ld... " >&6; }
4108 fi
4109 if test "${lt_cv_path_LD+set}" = set; then
4110 $as_echo_n "(cached) " >&6
4111 else
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"
4133 else
4134 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4135 fi
4136 fi
4137
4138 LD="$lt_cv_path_LD"
4139 if test -n "$LD"; then
4140 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4141 $as_echo "$LD" >&6; }
4142 else
4143 { $as_echo "$as_me:$LINENO: result: no" >&5
4144 $as_echo "no" >&6; }
4145 fi
4146 test -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; }
4151 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4152 $as_echo_n "(cached) " >&6
4153 else
4154 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4155 case `$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 ;;
4162 esac
4163 fi
4164 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4165 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4166 with_gnu_ld=$lt_cv_prog_gnu_ld
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176 ac_ext=c
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_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.
4184 if test -n "$CPP" && test -d "$CPP"; then
4185 CPP=
4186 fi
4187 if test -z "$CPP"; then
4188 if test "${ac_cv_prog_CPP+set}" = set; then
4189 $as_echo_n "(cached) " >&6
4190 else
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
4195 for ac_c_preproc_warn_flag in '' yes
4196 do
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
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>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
4216 if { (ac_try="$ac_cpp conftest.$ac_ext"
4217 case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220 esac
4221 eval 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 :
4234 else
4235 $as_echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4237
4238 # Broken: fails on valid input.
4239 continue
4240 fi
4241
4242 rm -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
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 #include <ac_nonexistent.h>
4253 _ACEOF
4254 if { (ac_try="$ac_cpp conftest.$ac_ext"
4255 case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258 esac
4259 eval 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.
4272 continue
4273 else
4274 $as_echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4276
4277 # Passes both tests.
4278 ac_preproc_ok=:
4279 break
4280 fi
4281
4282 rm -f conftest.err conftest.$ac_ext
4283
4284 done
4285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4286 rm -f conftest.err conftest.$ac_ext
4287 if $ac_preproc_ok; then
4288 break
4289 fi
4290
4291 done
4292 ac_cv_prog_CPP=$CPP
4293
4294 fi
4295 CPP=$ac_cv_prog_CPP
4296 else
4297 ac_cv_prog_CPP=$CPP
4298 fi
4299 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4300 $as_echo "$CPP" >&6; }
4301 ac_preproc_ok=false
4302 for ac_c_preproc_warn_flag in '' yes
4303 do
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
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>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
4323 if { (ac_try="$ac_cpp conftest.$ac_ext"
4324 case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327 esac
4328 eval 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 :
4341 else
4342 $as_echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345 # Broken: fails on valid input.
4346 continue
4347 fi
4348
4349 rm -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
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <ac_nonexistent.h>
4360 _ACEOF
4361 if { (ac_try="$ac_cpp conftest.$ac_ext"
4362 case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365 esac
4366 eval 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.
4379 continue
4380 else
4381 $as_echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384 # Passes both tests.
4385 ac_preproc_ok=:
4386 break
4387 fi
4388
4389 rm -f conftest.err conftest.$ac_ext
4390
4391 done
4392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4393 rm -f conftest.err conftest.$ac_ext
4394 if $ac_preproc_ok; then
4395 :
4396 else
4397 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4398 See \`config.log' for more details." >&5
4399 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4400 See \`config.log' for more details." >&2;}
4401 { (exit 1); exit 1; }; }
4402 fi
4403
4404 ac_ext=c
4405 ac_cpp='$CPP $CPPFLAGS'
4406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409
4410 if 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.
4412 set 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; }
4415 if test "${ac_cv_prog_SED+set}" = set; then
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -n "$SED"; then
4419 ac_cv_prog_SED="$SED" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
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
4432 done
4433 done
4434 IFS=$as_save_IFS
4435
4436 fi
4437 fi
4438 SED=$ac_cv_prog_SED
4439 if test -n "$SED"; then
4440 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4441 $as_echo "$SED" >&6; }
4442 else
4443 { $as_echo "$as_me:$LINENO: result: no" >&5
4444 $as_echo "no" >&6; }
4445 fi
4446
4447
4448 fi
4449 if 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.
4452 set 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; }
4455 if test "${ac_cv_prog_ac_ct_SED+set}" = set; then
4456 $as_echo_n "(cached) " >&6
4457 else
4458 if test -n "$ac_ct_SED"; then
4459 ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
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
4472 done
4473 done
4474 IFS=$as_save_IFS
4475
4476 fi
4477 fi
4478 ac_ct_SED=$ac_cv_prog_ac_ct_SED
4479 if test -n "$ac_ct_SED"; then
4480 { $as_echo "$as_me:$LINENO: result: $ac_ct_SED" >&5
4481 $as_echo "$ac_ct_SED" >&6; }
4482 else
4483 { $as_echo "$as_me:$LINENO: result: no" >&5
4484 $as_echo "no" >&6; }
4485 fi
4486
4487 if test "x$ac_ct_SED" = x; then
4488 SED=":"
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4493 whose name does not start with the host triplet. If you think this
4494 configuration 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
4496 whose name does not start with the host triplet. If you think this
4497 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4498 ac_tool_warned=yes ;;
4499 esac
4500 SED=$ac_ct_SED
4501 fi
4502 else
4503 SED="$ac_cv_prog_SED"
4504 fi
4505
4506 enable_win32_dll=yes
4507
4508 case $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.
4512 set 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; }
4515 if test "${ac_cv_prog_AS+set}" = set; then
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -n "$AS"; then
4519 ac_cv_prog_AS="$AS" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
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
4532 done
4533 done
4534 IFS=$as_save_IFS
4535
4536 fi
4537 fi
4538 AS=$ac_cv_prog_AS
4539 if test -n "$AS"; then
4540 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4541 $as_echo "$AS" >&6; }
4542 else
4543 { $as_echo "$as_me:$LINENO: result: no" >&5
4544 $as_echo "no" >&6; }
4545 fi
4546
4547
4548 fi
4549 if 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.
4552 set 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; }
4555 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$ac_ct_AS"; then
4559 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
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
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4579 if test -n "$ac_ct_AS"; then
4580 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4581 $as_echo "$ac_ct_AS" >&6; }
4582 else
4583 { $as_echo "$as_me:$LINENO: result: no" >&5
4584 $as_echo "no" >&6; }
4585 fi
4586
4587 if test "x$ac_ct_AS" = x; then
4588 AS="false"
4589 else
4590 case $cross_compiling:$ac_tool_warned in
4591 yes:)
4592 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4593 whose name does not start with the host triplet. If you think this
4594 configuration 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
4596 whose name does not start with the host triplet. If you think this
4597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4598 ac_tool_warned=yes ;;
4599 esac
4600 AS=$ac_ct_AS
4601 fi
4602 else
4603 AS="$ac_cv_prog_AS"
4604 fi
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.
4608 set 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; }
4611 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4612 $as_echo_n "(cached) " >&6
4613 else
4614 if test -n "$DLLTOOL"; then
4615 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
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
4628 done
4629 done
4630 IFS=$as_save_IFS
4631
4632 fi
4633 fi
4634 DLLTOOL=$ac_cv_prog_DLLTOOL
4635 if test -n "$DLLTOOL"; then
4636 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4637 $as_echo "$DLLTOOL" >&6; }
4638 else
4639 { $as_echo "$as_me:$LINENO: result: no" >&5
4640 $as_echo "no" >&6; }
4641 fi
4642
4643
4644 fi
4645 if 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.
4648 set 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; }
4651 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$ac_ct_DLLTOOL"; then
4655 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
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
4668 done
4669 done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4675 if test -n "$ac_ct_DLLTOOL"; then
4676 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4677 $as_echo "$ac_ct_DLLTOOL" >&6; }
4678 else
4679 { $as_echo "$as_me:$LINENO: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683 if test "x$ac_ct_DLLTOOL" = x; then
4684 DLLTOOL="false"
4685 else
4686 case $cross_compiling:$ac_tool_warned in
4687 yes:)
4688 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4689 whose name does not start with the host triplet. If you think this
4690 configuration 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
4692 whose name does not start with the host triplet. If you think this
4693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4694 ac_tool_warned=yes ;;
4695 esac
4696 DLLTOOL=$ac_ct_DLLTOOL
4697 fi
4698 else
4699 DLLTOOL="$ac_cv_prog_DLLTOOL"
4700 fi
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.
4704 set 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; }
4707 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4708 $as_echo_n "(cached) " >&6
4709 else
4710 if test -n "$OBJDUMP"; then
4711 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
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
4724 done
4725 done
4726 IFS=$as_save_IFS
4727
4728 fi
4729 fi
4730 OBJDUMP=$ac_cv_prog_OBJDUMP
4731 if test -n "$OBJDUMP"; then
4732 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4733 $as_echo "$OBJDUMP" >&6; }
4734 else
4735 { $as_echo "$as_me:$LINENO: result: no" >&5
4736 $as_echo "no" >&6; }
4737 fi
4738
4739
4740 fi
4741 if 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.
4744 set 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; }
4747 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4748 $as_echo_n "(cached) " >&6
4749 else
4750 if test -n "$ac_ct_OBJDUMP"; then
4751 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
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
4764 done
4765 done
4766 IFS=$as_save_IFS
4767
4768 fi
4769 fi
4770 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4771 if test -n "$ac_ct_OBJDUMP"; then
4772 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4773 $as_echo "$ac_ct_OBJDUMP" >&6; }
4774 else
4775 { $as_echo "$as_me:$LINENO: result: no" >&5
4776 $as_echo "no" >&6; }
4777 fi
4778
4779 if test "x$ac_ct_OBJDUMP" = x; then
4780 OBJDUMP="false"
4781 else
4782 case $cross_compiling:$ac_tool_warned in
4783 yes:)
4784 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4785 whose name does not start with the host triplet. If you think this
4786 configuration 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
4788 whose name does not start with the host triplet. If you think this
4789 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4790 ac_tool_warned=yes ;;
4791 esac
4792 OBJDUMP=$ac_ct_OBJDUMP
4793 fi
4794 else
4795 OBJDUMP="$ac_cv_prog_OBJDUMP"
4796 fi
4797
4798 ;;
4799 esac
4800
4801 test -z "$AS" && AS=as
4802
4803
4804
4805
4806
4807 test -z "$DLLTOOL" && DLLTOOL=dlltool
4808
4809
4810
4811
4812
4813 test -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; }
4837 if test -z "$INSTALL"; then
4838 if test "${ac_cv_path_install+set}" = set; then
4839 $as_echo_n "(cached) " >&6
4840 else
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4843 do
4844 IFS=$as_save_IFS
4845 test -z "$as_dir" && as_dir=.
4846 # Account for people who put trailing slashes in PATH elements.
4847 case $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 ;;
4885 esac
4886
4887 done
4888 IFS=$as_save_IFS
4889
4890 rm -rf conftest.one conftest.two conftest.dir
4891
4892 fi
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
4902 fi
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.
4908 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4909
4910 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4911
4912 test -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; }
4916 LN_S=$as_ln_s
4917 if test "$LN_S" = "ln -s"; then
4918 { $as_echo "$as_me:$LINENO: result: yes" >&5
4919 $as_echo "yes" >&6; }
4920 else
4921 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4922 $as_echo "no, using $LN_S" >&6; }
4923 fi
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; }
4927 set x ${MAKE-make}
4928 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4929 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4930 $as_echo_n "(cached) " >&6
4931 else
4932 cat >conftest.make <<\_ACEOF
4933 SHELL = /bin/sh
4934 all:
4935 @echo '@@@%%%=$(MAKE)=@@@%%%'
4936 _ACEOF
4937 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4938 case `${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;;
4943 esac
4944 rm -f conftest.make
4945 fi
4946 if 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=
4950 else
4951 { $as_echo "$as_me:$LINENO: result: no" >&5
4952 $as_echo "no" >&6; }
4953 SET_MAKE="MAKE=${MAKE-make}"
4954 fi
4955
4956 case `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;} ;;
4960 esac
4961
4962
4963
4964 macro_version='2.2.3a'
4965 macro_revision='1.2971'
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979 ltmain="$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; }
4983 if test "${lt_cv_path_NM+set}" = set; then
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -n "$NM"; then
4987 # Let the user override the test.
4988 lt_cv_path_NM="$NM"
4989 else
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}
5028 fi
5029 fi
5030 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5031 $as_echo "$lt_cv_path_NM" >&6; }
5032 if test "$lt_cv_path_NM" != "no"; then
5033 NM="$lt_cv_path_NM"
5034 else
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.
5040 set 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; }
5043 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$DUMPBIN"; then
5047 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
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
5060 done
5061 done
5062 IFS=$as_save_IFS
5063
5064 fi
5065 fi
5066 DUMPBIN=$ac_cv_prog_DUMPBIN
5067 if test -n "$DUMPBIN"; then
5068 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5069 $as_echo "$DUMPBIN" >&6; }
5070 else
5071 { $as_echo "$as_me:$LINENO: result: no" >&5
5072 $as_echo "no" >&6; }
5073 fi
5074
5075
5076 test -n "$DUMPBIN" && break
5077 done
5078 fi
5079 if test -z "$DUMPBIN"; then
5080 ac_ct_DUMPBIN=$DUMPBIN
5081 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5082 do
5083 # Extract the first word of "$ac_prog", so it can be a program name with args.
5084 set 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; }
5087 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5088 $as_echo_n "(cached) " >&6
5089 else
5090 if test -n "$ac_ct_DUMPBIN"; then
5091 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
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
5104 done
5105 done
5106 IFS=$as_save_IFS
5107
5108 fi
5109 fi
5110 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5111 if test -n "$ac_ct_DUMPBIN"; then
5112 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5113 $as_echo "$ac_ct_DUMPBIN" >&6; }
5114 else
5115 { $as_echo "$as_me:$LINENO: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118
5119
5120 test -n "$ac_ct_DUMPBIN" && break
5121 done
5122
5123 if test "x$ac_ct_DUMPBIN" = x; then
5124 DUMPBIN=":"
5125 else
5126 case $cross_compiling:$ac_tool_warned in
5127 yes:)
5128 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5129 whose name does not start with the host triplet. If you think this
5130 configuration 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
5132 whose name does not start with the host triplet. If you think this
5133 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5134 ac_tool_warned=yes ;;
5135 esac
5136 DUMPBIN=$ac_ct_DUMPBIN
5137 fi
5138 fi
5139
5140
5141 if test "$DUMPBIN" != ":"; then
5142 NM="$DUMPBIN"
5143 fi
5144 fi
5145 test -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; }
5154 if test "${lt_cv_nm_interface+set}" = set; then
5155 $as_echo_n "(cached) " >&6
5156 else
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*
5171 fi
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; }
5178 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5179 $as_echo_n "(cached) " >&6
5180 else
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
5293 fi
5294
5295 if 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; }
5298 else
5299 { $as_echo "$as_me:$LINENO: result: none" >&5
5300 $as_echo "none" >&6; }
5301 fi
5302 max_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
5316 xsi_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; }
5329 lt_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
5337 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5338 lt_unset=unset
5339 else
5340 lt_unset=false
5341 fi
5342
5343
5344
5345
5346
5347 # test EBCDIC or ASCII
5348 case `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 ;;
5358 esac
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; }
5370 if test "${lt_cv_ld_reload_flag+set}" = set; then
5371 $as_echo_n "(cached) " >&6
5372 else
5373 lt_cv_ld_reload_flag='-r'
5374 fi
5375 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5376 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5377 reload_flag=$lt_cv_ld_reload_flag
5378 case $reload_flag in
5379 "" | " "*) ;;
5380 *) reload_flag=" $reload_flag" ;;
5381 esac
5382 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5383 case $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 ;;
5391 esac
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; }
5404 if test "${lt_cv_deplibs_check_method+set}" = set; then
5405 $as_echo_n "(cached) " >&6
5406 else
5407 lt_cv_file_magic_cmd='$MAGIC_CMD'
5408 lt_cv_file_magic_test_file=
5409 lt_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
5421 case $host_os in
5422 aix[4-9]*)
5423 lt_cv_deplibs_check_method=pass_all
5424 ;;
5425
5426 beos*)
5427 lt_cv_deplibs_check_method=pass_all
5428 ;;
5429
5430 bsdi[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
5436 cygwin*)
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
5442 mingw* | 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
5455 darwin* | rhapsody*)
5456 lt_cv_deplibs_check_method=pass_all
5457 ;;
5458
5459 freebsd* | 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
5475 gnu*)
5476 lt_cv_deplibs_check_method=pass_all
5477 ;;
5478
5479 hpux10.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
5497 interix[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
5502 irix5* | 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.
5513 linux* | k*bsd*-gnu)
5514 lt_cv_deplibs_check_method=pass_all
5515 ;;
5516
5517 netbsd*)
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
5525 newos6*)
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
5535 openbsd*)
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
5543 osf3* | osf4* | osf5*)
5544 lt_cv_deplibs_check_method=pass_all
5545 ;;
5546
5547 rdos*)
5548 lt_cv_deplibs_check_method=pass_all
5549 ;;
5550
5551 solaris*)
5552 lt_cv_deplibs_check_method=pass_all
5553 ;;
5554
5555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5556 lt_cv_deplibs_check_method=pass_all
5557 ;;
5558
5559 sysv4 | 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
5586 tpf*)
5587 lt_cv_deplibs_check_method=pass_all
5588 ;;
5589 esac
5590
5591 fi
5592 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5593 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5594 file_magic_cmd=$lt_cv_file_magic_cmd
5595 deplibs_check_method=$lt_cv_deplibs_check_method
5596 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609 if 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.
5611 set 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; }
5614 if test "${ac_cv_prog_AR+set}" = set; then
5615 $as_echo_n "(cached) " >&6
5616 else
5617 if test -n "$AR"; then
5618 ac_cv_prog_AR="$AR" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5622 do
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
5631 done
5632 done
5633 IFS=$as_save_IFS
5634
5635 fi
5636 fi
5637 AR=$ac_cv_prog_AR
5638 if test -n "$AR"; then
5639 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5640 $as_echo "$AR" >&6; }
5641 else
5642 { $as_echo "$as_me:$LINENO: result: no" >&5
5643 $as_echo "no" >&6; }
5644 fi
5645
5646
5647 fi
5648 if 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.
5651 set 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; }
5654 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5655 $as_echo_n "(cached) " >&6
5656 else
5657 if test -n "$ac_ct_AR"; then
5658 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5659 else
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5662 do
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
5671 done
5672 done
5673 IFS=$as_save_IFS
5674
5675 fi
5676 fi
5677 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5678 if test -n "$ac_ct_AR"; then
5679 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5680 $as_echo "$ac_ct_AR" >&6; }
5681 else
5682 { $as_echo "$as_me:$LINENO: result: no" >&5
5683 $as_echo "no" >&6; }
5684 fi
5685
5686 if test "x$ac_ct_AR" = x; then
5687 AR="false"
5688 else
5689 case $cross_compiling:$ac_tool_warned in
5690 yes:)
5691 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5692 whose name does not start with the host triplet. If you think this
5693 configuration 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
5695 whose name does not start with the host triplet. If you think this
5696 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5697 ac_tool_warned=yes ;;
5698 esac
5699 AR=$ac_ct_AR
5700 fi
5701 else
5702 AR="$ac_cv_prog_AR"
5703 fi
5704
5705 test -z "$AR" && AR=ar
5706 test -z "$AR_FLAGS" && AR_FLAGS=cru
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718 if 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.
5720 set 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; }
5723 if test "${ac_cv_prog_STRIP+set}" = set; then
5724 $as_echo_n "(cached) " >&6
5725 else
5726 if test -n "$STRIP"; then
5727 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5728 else
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5731 do
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
5740 done
5741 done
5742 IFS=$as_save_IFS
5743
5744 fi
5745 fi
5746 STRIP=$ac_cv_prog_STRIP
5747 if test -n "$STRIP"; then
5748 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5749 $as_echo "$STRIP" >&6; }
5750 else
5751 { $as_echo "$as_me:$LINENO: result: no" >&5
5752 $as_echo "no" >&6; }
5753 fi
5754
5755
5756 fi
5757 if 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.
5760 set 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; }
5763 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5764 $as_echo_n "(cached) " >&6
5765 else
5766 if test -n "$ac_ct_STRIP"; then
5767 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
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
5780 done
5781 done
5782 IFS=$as_save_IFS
5783
5784 fi
5785 fi
5786 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5787 if test -n "$ac_ct_STRIP"; then
5788 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5789 $as_echo "$ac_ct_STRIP" >&6; }
5790 else
5791 { $as_echo "$as_me:$LINENO: result: no" >&5
5792 $as_echo "no" >&6; }
5793 fi
5794
5795 if test "x$ac_ct_STRIP" = x; then
5796 STRIP=":"
5797 else
5798 case $cross_compiling:$ac_tool_warned in
5799 yes:)
5800 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5801 whose name does not start with the host triplet. If you think this
5802 configuration 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
5804 whose name does not start with the host triplet. If you think this
5805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5806 ac_tool_warned=yes ;;
5807 esac
5808 STRIP=$ac_ct_STRIP
5809 fi
5810 else
5811 STRIP="$ac_cv_prog_STRIP"
5812 fi
5813
5814 test -z "$STRIP" && STRIP=:
5815
5816
5817
5818
5819
5820
5821 if 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.
5823 set 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; }
5826 if test "${ac_cv_prog_RANLIB+set}" = set; then
5827 $as_echo_n "(cached) " >&6
5828 else
5829 if test -n "$RANLIB"; then
5830 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
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
5843 done
5844 done
5845 IFS=$as_save_IFS
5846
5847 fi
5848 fi
5849 RANLIB=$ac_cv_prog_RANLIB
5850 if test -n "$RANLIB"; then
5851 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5852 $as_echo "$RANLIB" >&6; }
5853 else
5854 { $as_echo "$as_me:$LINENO: result: no" >&5
5855 $as_echo "no" >&6; }
5856 fi
5857
5858
5859 fi
5860 if 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.
5863 set 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; }
5866 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5867 $as_echo_n "(cached) " >&6
5868 else
5869 if test -n "$ac_ct_RANLIB"; then
5870 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
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
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5890 if test -n "$ac_ct_RANLIB"; then
5891 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5892 $as_echo "$ac_ct_RANLIB" >&6; }
5893 else
5894 { $as_echo "$as_me:$LINENO: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898 if test "x$ac_ct_RANLIB" = x; then
5899 RANLIB=":"
5900 else
5901 case $cross_compiling:$ac_tool_warned in
5902 yes:)
5903 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5904 whose name does not start with the host triplet. If you think this
5905 configuration 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
5907 whose name does not start with the host triplet. If you think this
5908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5909 ac_tool_warned=yes ;;
5910 esac
5911 RANLIB=$ac_ct_RANLIB
5912 fi
5913 else
5914 RANLIB="$ac_cv_prog_RANLIB"
5915 fi
5916
5917 test -z "$RANLIB" && RANLIB=:
5918
5919
5920
5921
5922
5923
5924 # Determine commands to create old-style static archives.
5925 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5926 old_postinstall_cmds='chmod 644 $oldlib'
5927 old_postuninstall_cmds=
5928
5929 if 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"
5939 fi
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.
5975 LTCC=${LTCC-"$CC"}
5976
5977 # If no C compiler flags were specified, use CFLAGS.
5978 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5979
5980 # Allow CC to be a program name with arguments.
5981 compiler=$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; }
5987 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5988 $as_echo_n "(cached) " >&6
5989 else
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.
5995 symcode='[BCDEGRST]'
5996
5997 # Regexp to match symbols that can be accessed directly from C.
5998 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5999
6000 # Define system-specific variables.
6001 case $host_os in
6002 aix*)
6003 symcode='[BCDT]'
6004 ;;
6005 cygwin* | mingw* | pw32*)
6006 symcode='[ABCDGISTW]'
6007 ;;
6008 hpux*)
6009 if test "$host_cpu" = ia64; then
6010 symcode='[ABCDEGRST]'
6011 fi
6012 ;;
6013 irix* | nonstopux*)
6014 symcode='[BCDEGRST]'
6015 ;;
6016 osf*)
6017 symcode='[BCDEGQRST]'
6018 ;;
6019 solaris*)
6020 symcode='[BDRT]'
6021 ;;
6022 sco3.2v5*)
6023 symcode='[DT]'
6024 ;;
6025 sysv4.2uw2*)
6026 symcode='[DT]'
6027 ;;
6028 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6029 symcode='[ABDT]'
6030 ;;
6031 sysv4)
6032 symcode='[DFNSTU]'
6033 ;;
6034 esac
6035
6036 # If we're using GNU nm, then use its standard symbol codes.
6037 case `$NM -V 2>&1` in
6038 *GNU* | *'with BFD'*)
6039 symcode='[ABCDGIRSTW]' ;;
6040 esac
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.
6045 lt_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
6048 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6049 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6050
6051 # Handle CRLF in mingw tool chain
6052 opt_cr=
6053 case $build_os in
6054 mingw*)
6055 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6056 ;;
6057 esac
6058
6059 # Try without a prefix underscore, then with it.
6060 for 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
6092 extern "C" {
6093 #endif
6094 char nm_test_var;
6095 void nm_test_func(void);
6096 void nm_test_func(void){}
6097 #ifdef __cplusplus
6098 }
6099 #endif
6100 int 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
6127 extern "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. */
6137 const struct {
6138 const char *name;
6139 void *address;
6140 }
6141 lt__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
6152 static 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
6197 done
6198
6199 fi
6200
6201 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6202 lt_cv_sys_global_symbol_to_cdecl=
6203 fi
6204 if 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; }
6207 else
6208 { $as_echo "$as_me:$LINENO: result: ok" >&5
6209 $as_echo "ok" >&6; }
6210 fi
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.
6235 if test "${enable_libtool_lock+set}" = set; then
6236 enableval=$enable_libtool_lock;
6237 fi
6238
6239 test "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.
6243 case $host in
6244 ia64-*-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
6300 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6301 s390*-*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; }
6359 if test "${lt_cv_cc_needs_belf+set}" = set; then
6360 $as_echo_n "(cached) " >&6
6361 else
6362 ac_ext=c
6363 ac_cpp='$CPP $CPPFLAGS'
6364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6367
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h. */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374
6375 int
6376 main ()
6377 {
6378
6379 ;
6380 return 0;
6381 }
6382 _ACEOF
6383 rm -f conftest.$ac_objext conftest$ac_exeext
6384 if { (ac_try="$ac_link"
6385 case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388 esac
6389 eval 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
6405 else
6406 $as_echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 lt_cv_cc_needs_belf=no
6410 fi
6411
6412 rm -rf conftest.dSYM
6413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6414 conftest$ac_exeext conftest.$ac_ext
6415 ac_ext=c
6416 ac_cpp='$CPP $CPPFLAGS'
6417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6420
6421 fi
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 ;;
6429 sparc*-*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 ;;
6452 esac
6453
6454 need_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.
6461 set 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; }
6464 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6465 $as_echo_n "(cached) " >&6
6466 else
6467 if test -n "$DSYMUTIL"; then
6468 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6472 do
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
6481 done
6482 done
6483 IFS=$as_save_IFS
6484
6485 fi
6486 fi
6487 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6488 if test -n "$DSYMUTIL"; then
6489 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6490 $as_echo "$DSYMUTIL" >&6; }
6491 else
6492 { $as_echo "$as_me:$LINENO: result: no" >&5
6493 $as_echo "no" >&6; }
6494 fi
6495
6496
6497 fi
6498 if 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.
6501 set 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; }
6504 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6505 $as_echo_n "(cached) " >&6
6506 else
6507 if test -n "$ac_ct_DSYMUTIL"; then
6508 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
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
6521 done
6522 done
6523 IFS=$as_save_IFS
6524
6525 fi
6526 fi
6527 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6528 if test -n "$ac_ct_DSYMUTIL"; then
6529 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6530 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6531 else
6532 { $as_echo "$as_me:$LINENO: result: no" >&5
6533 $as_echo "no" >&6; }
6534 fi
6535
6536 if test "x$ac_ct_DSYMUTIL" = x; then
6537 DSYMUTIL=":"
6538 else
6539 case $cross_compiling:$ac_tool_warned in
6540 yes:)
6541 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6542 whose name does not start with the host triplet. If you think this
6543 configuration 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
6545 whose name does not start with the host triplet. If you think this
6546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6547 ac_tool_warned=yes ;;
6548 esac
6549 DSYMUTIL=$ac_ct_DSYMUTIL
6550 fi
6551 else
6552 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6553 fi
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.
6557 set 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; }
6560 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6561 $as_echo_n "(cached) " >&6
6562 else
6563 if test -n "$NMEDIT"; then
6564 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6565 else
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 for as_dir in $PATH
6568 do
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
6577 done
6578 done
6579 IFS=$as_save_IFS
6580
6581 fi
6582 fi
6583 NMEDIT=$ac_cv_prog_NMEDIT
6584 if test -n "$NMEDIT"; then
6585 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6586 $as_echo "$NMEDIT" >&6; }
6587 else
6588 { $as_echo "$as_me:$LINENO: result: no" >&5
6589 $as_echo "no" >&6; }
6590 fi
6591
6592
6593 fi
6594 if 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.
6597 set 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; }
6600 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6601 $as_echo_n "(cached) " >&6
6602 else
6603 if test -n "$ac_ct_NMEDIT"; then
6604 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6605 else
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
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
6617 done
6618 done
6619 IFS=$as_save_IFS
6620
6621 fi
6622 fi
6623 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6624 if test -n "$ac_ct_NMEDIT"; then
6625 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6626 $as_echo "$ac_ct_NMEDIT" >&6; }
6627 else
6628 { $as_echo "$as_me:$LINENO: result: no" >&5
6629 $as_echo "no" >&6; }
6630 fi
6631
6632 if test "x$ac_ct_NMEDIT" = x; then
6633 NMEDIT=":"
6634 else
6635 case $cross_compiling:$ac_tool_warned in
6636 yes:)
6637 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6638 whose name does not start with the host triplet. If you think this
6639 configuration 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
6641 whose name does not start with the host triplet. If you think this
6642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6643 ac_tool_warned=yes ;;
6644 esac
6645 NMEDIT=$ac_ct_NMEDIT
6646 fi
6647 else
6648 NMEDIT="$ac_cv_prog_NMEDIT"
6649 fi
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.
6653 set 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; }
6656 if test "${ac_cv_prog_LIPO+set}" = set; then
6657 $as_echo_n "(cached) " >&6
6658 else
6659 if test -n "$LIPO"; then
6660 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
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
6673 done
6674 done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 LIPO=$ac_cv_prog_LIPO
6680 if test -n "$LIPO"; then
6681 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6682 $as_echo "$LIPO" >&6; }
6683 else
6684 { $as_echo "$as_me:$LINENO: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688
6689 fi
6690 if 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.
6693 set 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; }
6696 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6697 $as_echo_n "(cached) " >&6
6698 else
6699 if test -n "$ac_ct_LIPO"; then
6700 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
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
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717 fi
6718 fi
6719 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6720 if test -n "$ac_ct_LIPO"; then
6721 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6722 $as_echo "$ac_ct_LIPO" >&6; }
6723 else
6724 { $as_echo "$as_me:$LINENO: result: no" >&5
6725 $as_echo "no" >&6; }
6726 fi
6727
6728 if test "x$ac_ct_LIPO" = x; then
6729 LIPO=":"
6730 else
6731 case $cross_compiling:$ac_tool_warned in
6732 yes:)
6733 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6734 whose name does not start with the host triplet. If you think this
6735 configuration 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
6737 whose name does not start with the host triplet. If you think this
6738 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6739 ac_tool_warned=yes ;;
6740 esac
6741 LIPO=$ac_ct_LIPO
6742 fi
6743 else
6744 LIPO="$ac_cv_prog_LIPO"
6745 fi
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; }
6765 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6766 $as_echo_n "(cached) " >&6
6767 else
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
6789 fi
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; }
6794 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6795 $as_echo_n "(cached) " >&6
6796 else
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
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807
6808 int
6809 main ()
6810 {
6811
6812 ;
6813 return 0;
6814 }
6815 _ACEOF
6816 rm -f conftest.$ac_objext conftest$ac_exeext
6817 if { (ac_try="$ac_link"
6818 case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821 esac
6822 eval 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
6838 else
6839 $as_echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6841
6842 lt_cv_ld_exported_symbols_list=no
6843 fi
6844
6845 rm -rf conftest.dSYM
6846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6847 conftest$ac_exeext conftest.$ac_ext
6848 LDFLAGS="$save_LDFLAGS"
6849
6850 fi
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; }
6891 if test "${ac_cv_header_stdc+set}" = set; then
6892 $as_echo_n "(cached) " >&6
6893 else
6894 cat >conftest.$ac_ext <<_ACEOF
6895 /* confdefs.h. */
6896 _ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>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
6905 int
6906 main ()
6907 {
6908
6909 ;
6910 return 0;
6911 }
6912 _ACEOF
6913 rm -f conftest.$ac_objext
6914 if { (ac_try="$ac_compile"
6915 case "(($ac_try" in
6916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917 *) ac_try_echo=$ac_try;;
6918 esac
6919 eval 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
6932 else
6933 $as_echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6935
6936 ac_cv_header_stdc=no
6937 fi
6938
6939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940
6941 if 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
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 #include <string.h>
6950
6951 _ACEOF
6952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6953 $EGREP "memchr" >/dev/null 2>&1; then
6954 :
6955 else
6956 ac_cv_header_stdc=no
6957 fi
6958 rm -f conftest*
6959
6960 fi
6961
6962 if 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
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6970 #include <stdlib.h>
6971
6972 _ACEOF
6973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6974 $EGREP "free" >/dev/null 2>&1; then
6975 :
6976 else
6977 ac_cv_header_stdc=no
6978 fi
6979 rm -f conftest*
6980
6981 fi
6982
6983 if 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 :
6987 else
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>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)))
7008 int
7009 main ()
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
7019 rm -f conftest$ac_exeext
7020 if { (ac_try="$ac_link"
7021 case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024 esac
7025 eval 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;;
7034 esac
7035 eval 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 :
7042 else
7043 $as_echo "$as_me: program exited with status $ac_status" >&5
7044 $as_echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7046
7047 ( exit $ac_status )
7048 ac_cv_header_stdc=no
7049 fi
7050 rm -rf conftest.dSYM
7051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7052 fi
7053
7054
7055 fi
7056 fi
7057 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7058 $as_echo "$ac_cv_header_stdc" >&6; }
7059 if test $ac_cv_header_stdc = yes; then
7060
7061 cat >>confdefs.h <<\_ACEOF
7062 #define STDC_HEADERS 1
7063 _ACEOF
7064
7065 fi
7066
7067 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7078 inttypes.h stdint.h unistd.h
7079 do
7080 as_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; }
7083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7084 $as_echo_n "(cached) " >&6
7085 else
7086 cat >conftest.$ac_ext <<_ACEOF
7087 /* confdefs.h. */
7088 _ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 $ac_includes_default
7093
7094 #include <$ac_header>
7095 _ACEOF
7096 rm -f conftest.$ac_objext
7097 if { (ac_try="$ac_compile"
7098 case "(($ac_try" in
7099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7100 *) ac_try_echo=$ac_try;;
7101 esac
7102 eval 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"
7115 else
7116 $as_echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7118
7119 eval "$as_ac_Header=no"
7120 fi
7121
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123 fi
7124 ac_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; }
7128 if 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
7134 fi
7135
7136 done
7137
7138
7139
7140 for ac_header in dlfcn.h
7141 do
7142 as_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; }
7145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7146 $as_echo_n "(cached) " >&6
7147 else
7148 cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h. */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7154 $ac_includes_default
7155
7156 #include <$ac_header>
7157 _ACEOF
7158 rm -f conftest.$ac_objext
7159 if { (ac_try="$ac_compile"
7160 case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163 esac
7164 eval 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"
7177 else
7178 $as_echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7180
7181 eval "$as_ac_Header=no"
7182 fi
7183
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 fi
7186 ac_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; }
7190 if 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
7196 fi
7197
7198 done
7199
7200
7201
7202 # Set options
7203
7204
7205
7206 enable_dlopen=no
7207
7208
7209
7210 # Check whether --enable-shared was given.
7211 if 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
7229 else
7230 enable_shared=yes
7231 fi
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241 # Check whether --enable-static was given.
7242 if 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
7260 else
7261 enable_static=yes
7262 fi
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273 # Check whether --with-pic was given.
7274 if test "${with_pic+set}" = set; then
7275 withval=$with_pic; pic_mode="$withval"
7276 else
7277 pic_mode=default
7278 fi
7279
7280
7281 test -z "$pic_mode" && pic_mode=default
7282
7283
7284
7285
7286
7287
7288
7289 # Check whether --enable-fast-install was given.
7290 if 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
7308 else
7309 enable_fast_install=yes
7310 fi
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322 # This can be used to rebuild libtool when needed
7323 LIBTOOL_DEPS="$ltmain"
7324
7325 # Always use our own libtool.
7326 LIBTOOL='$(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
7352 test -z "$LN_S" && LN_S="ln -s"
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367 if test -n "${ZSH_VERSION+set}" ; then
7368 setopt NO_GLOB_SUBST
7369 fi
7370
7371 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7372 $as_echo_n "checking for objdir... " >&6; }
7373 if test "${lt_cv_objdir+set}" = set; then
7374 $as_echo_n "(cached) " >&6
7375 else
7376 rm -f .libs 2>/dev/null
7377 mkdir .libs 2>/dev/null
7378 if test -d .libs; then
7379 lt_cv_objdir=.libs
7380 else
7381 # MS-DOS does not allow filenames that begin with a dot.
7382 lt_cv_objdir=_libs
7383 fi
7384 rmdir .libs 2>/dev/null
7385 fi
7386 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7387 $as_echo "$lt_cv_objdir" >&6; }
7388 objdir=$lt_cv_objdir
7389
7390
7391
7392
7393
7394 cat >>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
7414 case $host_os in
7415 aix3*)
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 ;;
7424 esac
7425
7426 # Sed substitution that helps us do robust quoting. It backslashifies
7427 # metacharacters that are still active within double-quoted strings.
7428 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7429
7430 # Same as above, but do not quote variable references.
7431 double_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.
7435 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7436
7437 # Sed substitution to delay expansion of an escaped single quote.
7438 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7439
7440 # Sed substitution to avoid accidental globbing in evaled expressions
7441 no_glob_subst='s/\*/\\\*/g'
7442
7443 # Global variables:
7444 ofile=libtool
7445 can_build_shared=yes
7446
7447 # All known linkers require a `.a' archive for static linking (except MSVC,
7448 # which needs '.lib').
7449 libext=a
7450
7451 with_gnu_ld="$lt_cv_prog_gnu_ld"
7452
7453 old_CC="$CC"
7454 old_CFLAGS="$CFLAGS"
7455
7456 # Set sane defaults for various variables
7457 test -z "$CC" && CC=cc
7458 test -z "$LTCC" && LTCC=$CC
7459 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7460 test -z "$LD" && LD=ld
7461 test -z "$ac_objext" && ac_objext=o
7462
7463 for 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
7470 done
7471 cc_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
7475 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7476 case $deplibs_check_method in
7477 file_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; }
7481 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7482 $as_echo_n "(cached) " >&6
7483 else
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 ;;
7527 esac
7528 fi
7529
7530 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7531 if test -n "$MAGIC_CMD"; then
7532 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7533 $as_echo "$MAGIC_CMD" >&6; }
7534 else
7535 { $as_echo "$as_me:$LINENO: result: no" >&5
7536 $as_echo "no" >&6; }
7537 fi
7538
7539
7540
7541
7542
7543 if 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; }
7547 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7548 $as_echo_n "(cached) " >&6
7549 else
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 ;;
7593 esac
7594 fi
7595
7596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7597 if test -n "$MAGIC_CMD"; then
7598 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7599 $as_echo "$MAGIC_CMD" >&6; }
7600 else
7601 { $as_echo "$as_me:$LINENO: result: no" >&5
7602 $as_echo "no" >&6; }
7603 fi
7604
7605
7606 else
7607 MAGIC_CMD=:
7608 fi
7609 fi
7610
7611 fi
7612 ;;
7613 esac
7614
7615 # Use C for the default configuration in the libtool script
7616
7617 lt_save_CC="$CC"
7618 ac_ext=c
7619 ac_cpp='$CPP $CPPFLAGS'
7620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623
7624
7625 # Source file extension for C test sources.
7626 ac_ext=c
7627
7628 # Object file extension for compiled C test sources.
7629 objext=o
7630 objext=$objext
7631
7632 # Code to be used in simple compile tests
7633 lt_simple_compile_test_code="int some_variable = 0;"
7634
7635 # Code to be used in simple link tests
7636 lt_simple_link_test_code='int main(){return(0);}'
7637
7638
7639
7640
7641
7642
7643
7644 # If no C compiler was specified, use CC.
7645 LTCC=${LTCC-"$CC"}
7646
7647 # If no C compiler flags were specified, use CFLAGS.
7648 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7649
7650 # Allow CC to be a program name with arguments.
7651 compiler=$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.
7655 compiler_DEFAULT=$CC
7656
7657 # save warnings/boilerplate of simple test code
7658 ac_outfile=conftest.$ac_objext
7659 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7661 _lt_compiler_boilerplate=`cat conftest.err`
7662 $RM conftest*
7663
7664 ac_outfile=conftest.$ac_objext
7665 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7667 _lt_linker_boilerplate=`cat conftest.err`
7668 $RM -r conftest*
7669
7670
7671 if test -n "$compiler"; then
7672
7673 lt_prog_compiler_no_builtin_flag=
7674
7675 if 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; }
7680 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7681 $as_echo_n "(cached) " >&6
7682 else
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
7712 fi
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
7716 if 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"
7718 else
7719 :
7720 fi
7721
7722 fi
7723
7724
7725
7726
7727
7728
7729 lt_prog_compiler_wl=
7730 lt_prog_compiler_pic=
7731 lt_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
7981 case $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 ;;
7989 esac
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 #
8001 if 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; }
8004 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8005 $as_echo_n "(cached) " >&6
8006 else
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
8036 fi
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
8040 if 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
8045 else
8046 lt_prog_compiler_pic=
8047 lt_prog_compiler_can_build_shared=no
8048 fi
8049
8050 fi
8051
8052
8053
8054
8055
8056
8057 #
8058 # Check to make sure the static flag actually works.
8059 #
8060 wl=$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; }
8063 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8064 $as_echo_n "(cached) " >&6
8065 else
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
8088 fi
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
8092 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8093 :
8094 else
8095 lt_prog_compiler_static=
8096 fi
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; }
8106 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8107 $as_echo_n "(cached) " >&6
8108 else
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
8150 fi
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; }
8161 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8162 $as_echo_n "(cached) " >&6
8163 else
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
8205 fi
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
8212 hard_links="nottested"
8213 if 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
8230 else
8231 need_locks=no
8232 fi
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
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8683
8684 int
8685 main ()
8686 {
8687
8688 ;
8689 return 0;
8690 }
8691 _ACEOF
8692 rm -f conftest.$ac_objext conftest$ac_exeext
8693 if { (ac_try="$ac_link"
8694 case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697 esac
8698 eval 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
8714 lt_aix_libpath_sed='
8715 /Import File Strings/,/^$/ {
8716 /^0/ {
8717 s/^0 *\(.*\)$/\1/
8718 p
8719 }
8720 }'
8721 aix_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.
8723 if test -z "$aix_libpath"; then
8724 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8725 fi
8726 else
8727 $as_echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8729
8730
8731 fi
8732
8733 rm -rf conftest.dSYM
8734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8735 conftest$ac_exeext conftest.$ac_ext
8736 if 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
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8754
8755 int
8756 main ()
8757 {
8758
8759 ;
8760 return 0;
8761 }
8762 _ACEOF
8763 rm -f conftest.$ac_objext conftest$ac_exeext
8764 if { (ac_try="$ac_link"
8765 case "(($ac_try" in
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8768 esac
8769 eval 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
8785 lt_aix_libpath_sed='
8786 /Import File Strings/,/^$/ {
8787 /^0/ {
8788 s/^0 *\(.*\)$/\1/
8789 p
8790 }
8791 }'
8792 aix_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.
8794 if test -z "$aix_libpath"; then
8795 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8796 fi
8797 else
8798 $as_echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8800
8801
8802 fi
8803
8804 rm -rf conftest.dSYM
8805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8806 conftest$ac_exeext conftest.$ac_ext
8807 if 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
9015 int foo(void) {}
9016 _ACEOF
9017 rm -f conftest.$ac_objext conftest$ac_exeext
9018 if { (ac_try="$ac_link"
9019 case "(($ac_try" in
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9022 esac
9023 eval 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
9040 else
9041 $as_echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9043
9044
9045 fi
9046
9047 rm -rf conftest.dSYM
9048 rm -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; }
9307 test "$ld_shlibs" = no && can_build_shared=no
9308
9309 with_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 #
9328 case "x$archive_cmds_need_lc" in
9329 x|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 ;;
9386 esac
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
9547 if 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 '
9575 BEGIN {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`
9595 else
9596 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9597 fi
9598 library_names_spec=
9599 libname_spec='lib$name'
9600 soname_spec=
9601 shrext_cmds=".so"
9602 postinstall_cmds=
9603 postuninstall_cmds=
9604 finish_cmds=
9605 finish_eval=
9606 shlibpath_var=
9607 shlibpath_overrides_runpath=unknown
9608 version_type=none
9609 dynamic_linker="$host_os ld.so"
9610 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9611 need_lib_prefix=unknown
9612 hardcode_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
9616 need_version=unknown
9617
9618 case $host_os in
9619 aix3*)
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
9628 aix[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
9672 amigaos*)
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
9687 beos*)
9688 library_names_spec='${libname}${shared_ext}'
9689 dynamic_linker="$host_os ld.so"
9690 shlibpath_var=LIBRARY_PATH
9691 ;;
9692
9693 bsdi[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
9707 cygwin* | 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
9769 darwin* | 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
9784 dgux*)
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
9793 freebsd1*)
9794 dynamic_linker=no
9795 ;;
9796
9797 freebsd* | 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
9841 gnu*)
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
9851 hpux9* | 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
9897 interix[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
9909 irix5* | 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.
9947 linux*oldld* | linux*aout* | linux*coff*)
9948 dynamic_linker=no
9949 ;;
9950
9951 # This must be Linux ELF.
9952 linux* | 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
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9972
9973 int
9974 main ()
9975 {
9976
9977 ;
9978 return 0;
9979 }
9980 _ACEOF
9981 rm -f conftest.$ac_objext conftest$ac_exeext
9982 if { (ac_try="$ac_link"
9983 case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9986 esac
9987 eval 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
10004 fi
10005
10006 else
10007 $as_echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10009
10010
10011 fi
10012
10013 rm -rf conftest.dSYM
10014 rm -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
10039 netbsd*)
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
10057 newsos6)
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
10076 openbsd*)
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
10102 os2*)
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
10111 osf3* | 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
10122 rdos*)
10123 dynamic_linker=no
10124 ;;
10125
10126 solaris*)
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
10139 sunos4*)
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
10151 sysv4 | 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
10174 sysv4*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
10183 sysv5* | 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
10205 tpf*)
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
10216 uts4*)
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 ;;
10226 esac
10227 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10228 $as_echo "$dynamic_linker" >&6; }
10229 test "$dynamic_linker" = no && can_build_shared=no
10230
10231 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10232 if test "$GCC" = yes; then
10233 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10234 fi
10235
10236 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10237 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10238 fi
10239 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10240 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10241 fi
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; }
10331 hardcode_action=
10332 if 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
10349 else
10350 # We cannot hardcode anything, or else we can only hardcode existing
10351 # directories.
10352 hardcode_action=unsupported
10353 fi
10354 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10355 $as_echo "$hardcode_action" >&6; }
10356
10357 if test "$hardcode_action" = relink ||
10358 test "$inherit_rpath" = yes; then
10359 # Fast installation is not supported
10360 enable_fast_install=no
10361 elif test "$shlibpath_overrides_runpath" = yes ||
10362 test "$enable_shared" = no; then
10363 # Fast installation is not necessary
10364 enable_fast_install=needless
10365 fi
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
10376 else
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; }
10401 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10402 $as_echo_n "(cached) " >&6
10403 else
10404 ac_check_lib_save_LIBS=$LIBS
10405 LIBS="-ldl $LIBS"
10406 cat >conftest.$ac_ext <<_ACEOF
10407 /* confdefs.h. */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>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
10417 extern "C"
10418 #endif
10419 char dlopen ();
10420 int
10421 main ()
10422 {
10423 return dlopen ();
10424 ;
10425 return 0;
10426 }
10427 _ACEOF
10428 rm -f conftest.$ac_objext conftest$ac_exeext
10429 if { (ac_try="$ac_link"
10430 case "(($ac_try" in
10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432 *) ac_try_echo=$ac_try;;
10433 esac
10434 eval 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
10450 else
10451 $as_echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10453
10454 ac_cv_lib_dl_dlopen=no
10455 fi
10456
10457 rm -rf conftest.dSYM
10458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10459 conftest$ac_exeext conftest.$ac_ext
10460 LIBS=$ac_check_lib_save_LIBS
10461 fi
10462 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10463 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10464 if test $ac_cv_lib_dl_dlopen = yes; then
10465 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10466 else
10467
10468 lt_cv_dlopen="dyld"
10469 lt_cv_dlopen_libs=
10470 lt_cv_dlopen_self=yes
10471
10472 fi
10473
10474 ;;
10475
10476 *)
10477 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10478 $as_echo_n "checking for shl_load... " >&6; }
10479 if test "${ac_cv_func_shl_load+set}" = set; then
10480 $as_echo_n "(cached) " >&6
10481 else
10482 cat >conftest.$ac_ext <<_ACEOF
10483 /* confdefs.h. */
10484 _ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>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
10509 extern "C"
10510 #endif
10511 char 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
10516 choke me
10517 #endif
10518
10519 int
10520 main ()
10521 {
10522 return shl_load ();
10523 ;
10524 return 0;
10525 }
10526 _ACEOF
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (ac_try="$ac_link"
10529 case "(($ac_try" in
10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10532 esac
10533 eval 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
10549 else
10550 $as_echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553 ac_cv_func_shl_load=no
10554 fi
10555
10556 rm -rf conftest.dSYM
10557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558 conftest$ac_exeext conftest.$ac_ext
10559 fi
10560 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10561 $as_echo "$ac_cv_func_shl_load" >&6; }
10562 if test $ac_cv_func_shl_load = yes; then
10563 lt_cv_dlopen="shl_load"
10564 else
10565 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10566 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10567 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10568 $as_echo_n "(cached) " >&6
10569 else
10570 ac_check_lib_save_LIBS=$LIBS
10571 LIBS="-ldld $LIBS"
10572 cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h. */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>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
10583 extern "C"
10584 #endif
10585 char shl_load ();
10586 int
10587 main ()
10588 {
10589 return shl_load ();
10590 ;
10591 return 0;
10592 }
10593 _ACEOF
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (ac_try="$ac_link"
10596 case "(($ac_try" in
10597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598 *) ac_try_echo=$ac_try;;
10599 esac
10600 eval 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
10616 else
10617 $as_echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 ac_cv_lib_dld_shl_load=no
10621 fi
10622
10623 rm -rf conftest.dSYM
10624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10625 conftest$ac_exeext conftest.$ac_ext
10626 LIBS=$ac_check_lib_save_LIBS
10627 fi
10628 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10629 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10630 if test $ac_cv_lib_dld_shl_load = yes; then
10631 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10632 else
10633 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10634 $as_echo_n "checking for dlopen... " >&6; }
10635 if test "${ac_cv_func_dlopen+set}" = set; then
10636 $as_echo_n "(cached) " >&6
10637 else
10638 cat >conftest.$ac_ext <<_ACEOF
10639 /* confdefs.h. */
10640 _ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>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
10665 extern "C"
10666 #endif
10667 char 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
10672 choke me
10673 #endif
10674
10675 int
10676 main ()
10677 {
10678 return dlopen ();
10679 ;
10680 return 0;
10681 }
10682 _ACEOF
10683 rm -f conftest.$ac_objext conftest$ac_exeext
10684 if { (ac_try="$ac_link"
10685 case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10688 esac
10689 eval 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
10705 else
10706 $as_echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10708
10709 ac_cv_func_dlopen=no
10710 fi
10711
10712 rm -rf conftest.dSYM
10713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10714 conftest$ac_exeext conftest.$ac_ext
10715 fi
10716 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10717 $as_echo "$ac_cv_func_dlopen" >&6; }
10718 if test $ac_cv_func_dlopen = yes; then
10719 lt_cv_dlopen="dlopen"
10720 else
10721 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10722 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10723 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10724 $as_echo_n "(cached) " >&6
10725 else
10726 ac_check_lib_save_LIBS=$LIBS
10727 LIBS="-ldl $LIBS"
10728 cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h. */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>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
10739 extern "C"
10740 #endif
10741 char dlopen ();
10742 int
10743 main ()
10744 {
10745 return dlopen ();
10746 ;
10747 return 0;
10748 }
10749 _ACEOF
10750 rm -f conftest.$ac_objext conftest$ac_exeext
10751 if { (ac_try="$ac_link"
10752 case "(($ac_try" in
10753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10754 *) ac_try_echo=$ac_try;;
10755 esac
10756 eval 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
10772 else
10773 $as_echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10775
10776 ac_cv_lib_dl_dlopen=no
10777 fi
10778
10779 rm -rf conftest.dSYM
10780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10781 conftest$ac_exeext conftest.$ac_ext
10782 LIBS=$ac_check_lib_save_LIBS
10783 fi
10784 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10785 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10786 if test $ac_cv_lib_dl_dlopen = yes; then
10787 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10788 else
10789 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10790 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10791 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10792 $as_echo_n "(cached) " >&6
10793 else
10794 ac_check_lib_save_LIBS=$LIBS
10795 LIBS="-lsvld $LIBS"
10796 cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h. */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>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
10807 extern "C"
10808 #endif
10809 char dlopen ();
10810 int
10811 main ()
10812 {
10813 return dlopen ();
10814 ;
10815 return 0;
10816 }
10817 _ACEOF
10818 rm -f conftest.$ac_objext conftest$ac_exeext
10819 if { (ac_try="$ac_link"
10820 case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10823 esac
10824 eval 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
10840 else
10841 $as_echo "$as_me: failed program was:" >&5
10842 sed 's/^/| /' conftest.$ac_ext >&5
10843
10844 ac_cv_lib_svld_dlopen=no
10845 fi
10846
10847 rm -rf conftest.dSYM
10848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10849 conftest$ac_exeext conftest.$ac_ext
10850 LIBS=$ac_check_lib_save_LIBS
10851 fi
10852 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10853 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10854 if test $ac_cv_lib_svld_dlopen = yes; then
10855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10856 else
10857 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10858 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10859 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10860 $as_echo_n "(cached) " >&6
10861 else
10862 ac_check_lib_save_LIBS=$LIBS
10863 LIBS="-ldld $LIBS"
10864 cat >conftest.$ac_ext <<_ACEOF
10865 /* confdefs.h. */
10866 _ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>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
10875 extern "C"
10876 #endif
10877 char dld_link ();
10878 int
10879 main ()
10880 {
10881 return dld_link ();
10882 ;
10883 return 0;
10884 }
10885 _ACEOF
10886 rm -f conftest.$ac_objext conftest$ac_exeext
10887 if { (ac_try="$ac_link"
10888 case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10891 esac
10892 eval 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
10908 else
10909 $as_echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10911
10912 ac_cv_lib_dld_dld_link=no
10913 fi
10914
10915 rm -rf conftest.dSYM
10916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10917 conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10919 fi
10920 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10921 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10922 if test $ac_cv_lib_dld_dld_link = yes; then
10923 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10924 fi
10925
10926
10927 fi
10928
10929
10930 fi
10931
10932
10933 fi
10934
10935
10936 fi
10937
10938
10939 fi
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; }
10963 if test "${lt_cv_dlopen_self+set}" = set; then
10964 $as_echo_n "(cached) " >&6
10965 else
10966 if test "$cross_compiling" = yes; then :
10967 lt_cv_dlopen_self=cross
10968 else
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
11014 extern "C" void exit (int);
11015 #endif
11016
11017 void fnord() { int i=42;}
11018 int 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
11051 fi
11052 rm -fr conftest*
11053
11054
11055 fi
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; }
11063 if test "${lt_cv_dlopen_self_static+set}" = set; then
11064 $as_echo_n "(cached) " >&6
11065 else
11066 if test "$cross_compiling" = yes; then :
11067 lt_cv_dlopen_self_static=cross
11068 else
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
11114 extern "C" void exit (int);
11115 #endif
11116
11117 void fnord() { int i=42;}
11118 int 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
11151 fi
11152 rm -fr conftest*
11153
11154
11155 fi
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
11175 fi
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193 striplib=
11194 old_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; }
11197 if 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; }
11202 else
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
11221 fi
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
11274 fi
11275 ac_ext=c
11276 ac_cpp='$CPP $CPPFLAGS'
11277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11280
11281 CC="$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; }
11307 if test "${ac_cv_header_stdc+set}" = set; then
11308 $as_echo_n "(cached) " >&6
11309 else
11310 cat >conftest.$ac_ext <<_ACEOF
11311 /* confdefs.h. */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>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
11321 int
11322 main ()
11323 {
11324
11325 ;
11326 return 0;
11327 }
11328 _ACEOF
11329 rm -f conftest.$ac_objext
11330 if { (ac_try="$ac_compile"
11331 case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334 esac
11335 eval 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
11348 else
11349 $as_echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11351
11352 ac_cv_header_stdc=no
11353 fi
11354
11355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356
11357 if 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
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11365 #include <string.h>
11366
11367 _ACEOF
11368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11369 $EGREP "memchr" >/dev/null 2>&1; then
11370 :
11371 else
11372 ac_cv_header_stdc=no
11373 fi
11374 rm -f conftest*
11375
11376 fi
11377
11378 if 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
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11386 #include <stdlib.h>
11387
11388 _ACEOF
11389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11390 $EGREP "free" >/dev/null 2>&1; then
11391 :
11392 else
11393 ac_cv_header_stdc=no
11394 fi
11395 rm -f conftest*
11396
11397 fi
11398
11399 if 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 :
11403 else
11404 cat >conftest.$ac_ext <<_ACEOF
11405 /* confdefs.h. */
11406 _ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>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)))
11424 int
11425 main ()
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
11435 rm -f conftest$ac_exeext
11436 if { (ac_try="$ac_link"
11437 case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440 esac
11441 eval 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;;
11450 esac
11451 eval 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 :
11458 else
11459 $as_echo "$as_me: program exited with status $ac_status" >&5
11460 $as_echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11462
11463 ( exit $ac_status )
11464 ac_cv_header_stdc=no
11465 fi
11466 rm -rf conftest.dSYM
11467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11468 fi
11469
11470
11471 fi
11472 fi
11473 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11474 $as_echo "$ac_cv_header_stdc" >&6; }
11475 if test $ac_cv_header_stdc = yes; then
11476
11477 cat >>confdefs.h <<\_ACEOF
11478 #define STDC_HEADERS 1
11479 _ACEOF
11480
11481 fi
11482
11483
11484
11485
11486
11487 for ac_header in malloc.h stdlib.h string.h strings.h
11488 do
11489 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11490 if { 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; }
11493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11494 $as_echo_n "(cached) " >&6
11495 fi
11496 ac_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; }
11500 else
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; }
11504 cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h. */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 $ac_includes_default
11511 #include <$ac_header>
11512 _ACEOF
11513 rm -f conftest.$ac_objext
11514 if { (ac_try="$ac_compile"
11515 case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11518 esac
11519 eval 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
11532 else
11533 $as_echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11535
11536 ac_header_compiler=no
11537 fi
11538
11539 rm -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; }
11546 cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h. */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11552 #include <$ac_header>
11553 _ACEOF
11554 if { (ac_try="$ac_cpp conftest.$ac_ext"
11555 case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558 esac
11559 eval 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
11572 else
11573 $as_echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11575
11576 ac_header_preproc=no
11577 fi
11578
11579 rm -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?
11584 case $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 ;;
11612 esac
11613 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11614 $as_echo_n "checking for $ac_header... " >&6; }
11615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11616 $as_echo_n "(cached) " >&6
11617 else
11618 eval "$as_ac_Header=\$ac_header_preproc"
11619 fi
11620 ac_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
11625 fi
11626 if 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
11632 fi
11633
11634 done
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; }
11640 if test "${ac_cv_c_const+set}" = set; then
11641 $as_echo_n "(cached) " >&6
11642 else
11643 cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h. */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649
11650 int
11651 main ()
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
11707 rm -f conftest.$ac_objext
11708 if { (ac_try="$ac_compile"
11709 case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11712 esac
11713 eval 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
11726 else
11727 $as_echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11729
11730 ac_cv_c_const=no
11731 fi
11732
11733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11734 fi
11735 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11736 $as_echo "$ac_cv_c_const" >&6; }
11737 if test $ac_cv_c_const = no; then
11738
11739 cat >>confdefs.h <<\_ACEOF
11740 #define const /**/
11741 _ACEOF
11742
11743 fi
11744
11745 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
11746 $as_echo_n "checking for size_t... " >&6; }
11747 if test "${ac_cv_type_size_t+set}" = set; then
11748 $as_echo_n "(cached) " >&6
11749 else
11750 ac_cv_type_size_t=no
11751 cat >conftest.$ac_ext <<_ACEOF
11752 /* confdefs.h. */
11753 _ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11757 $ac_includes_default
11758 int
11759 main ()
11760 {
11761 if (sizeof (size_t))
11762 return 0;
11763 ;
11764 return 0;
11765 }
11766 _ACEOF
11767 rm -f conftest.$ac_objext
11768 if { (ac_try="$ac_compile"
11769 case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11772 esac
11773 eval 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
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791 $ac_includes_default
11792 int
11793 main ()
11794 {
11795 if (sizeof ((size_t)))
11796 return 0;
11797 ;
11798 return 0;
11799 }
11800 _ACEOF
11801 rm -f conftest.$ac_objext
11802 if { (ac_try="$ac_compile"
11803 case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11806 esac
11807 eval 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 :
11820 else
11821 $as_echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 ac_cv_type_size_t=yes
11825 fi
11826
11827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828 else
11829 $as_echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11831
11832
11833 fi
11834
11835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836 fi
11837 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11838 $as_echo "$ac_cv_type_size_t" >&6; }
11839 if test $ac_cv_type_size_t = yes; then
11840 :
11841 else
11842
11843 cat >>confdefs.h <<_ACEOF
11844 #define size_t unsigned int
11845 _ACEOF
11846
11847 fi
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; }
11851 if test "${ac_cv_struct_tm+set}" = set; then
11852 $as_echo_n "(cached) " >&6
11853 else
11854 cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h. */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 #include <sys/types.h>
11861 #include <time.h>
11862
11863 int
11864 main ()
11865 {
11866 struct tm tm;
11867 int *p = &tm.tm_sec;
11868 return !p;
11869 ;
11870 return 0;
11871 }
11872 _ACEOF
11873 rm -f conftest.$ac_objext
11874 if { (ac_try="$ac_compile"
11875 case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11878 esac
11879 eval 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
11892 else
11893 $as_echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11895
11896 ac_cv_struct_tm=sys/time.h
11897 fi
11898
11899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900 fi
11901 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11902 $as_echo "$ac_cv_struct_tm" >&6; }
11903 if test $ac_cv_struct_tm = sys/time.h; then
11904
11905 cat >>confdefs.h <<\_ACEOF
11906 #define TM_IN_SYS_TIME 1
11907 _ACEOF
11908
11909 fi
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; }
11915 if test "${ac_cv_func_strtod+set}" = set; then
11916 $as_echo_n "(cached) " >&6
11917 else
11918 if test "$cross_compiling" = yes; then
11919 ac_cv_func_strtod=no
11920 else
11921 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h. */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927
11928 $ac_includes_default
11929 #ifndef strtod
11930 double strtod ();
11931 #endif
11932 int
11933 main()
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
11958 rm -f conftest$ac_exeext
11959 if { (ac_try="$ac_link"
11960 case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963 esac
11964 eval 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;;
11973 esac
11974 eval 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
11981 else
11982 $as_echo "$as_me: program exited with status $ac_status" >&5
11983 $as_echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11985
11986 ( exit $ac_status )
11987 ac_cv_func_strtod=no
11988 fi
11989 rm -rf conftest.dSYM
11990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11991 fi
11992
11993
11994 fi
11995 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
11996 $as_echo "$ac_cv_func_strtod" >&6; }
11997 if test $ac_cv_func_strtod = no; then
11998 case " $LIBOBJS " in
11999 *" strtod.$ac_objext "* ) ;;
12000 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12001 ;;
12002 esac
12003
12004 { $as_echo "$as_me:$LINENO: checking for pow" >&5
12005 $as_echo_n "checking for pow... " >&6; }
12006 if test "${ac_cv_func_pow+set}" = set; then
12007 $as_echo_n "(cached) " >&6
12008 else
12009 cat >conftest.$ac_ext <<_ACEOF
12010 /* confdefs.h. */
12011 _ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>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
12036 extern "C"
12037 #endif
12038 char 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
12043 choke me
12044 #endif
12045
12046 int
12047 main ()
12048 {
12049 return pow ();
12050 ;
12051 return 0;
12052 }
12053 _ACEOF
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (ac_try="$ac_link"
12056 case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12059 esac
12060 eval 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
12076 else
12077 $as_echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12079
12080 ac_cv_func_pow=no
12081 fi
12082
12083 rm -rf conftest.dSYM
12084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12085 conftest$ac_exeext conftest.$ac_ext
12086 fi
12087 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12088 $as_echo "$ac_cv_func_pow" >&6; }
12089
12090 if 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; }
12093 if test "${ac_cv_lib_m_pow+set}" = set; then
12094 $as_echo_n "(cached) " >&6
12095 else
12096 ac_check_lib_save_LIBS=$LIBS
12097 LIBS="-lm $LIBS"
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h. */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>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
12109 extern "C"
12110 #endif
12111 char pow ();
12112 int
12113 main ()
12114 {
12115 return pow ();
12116 ;
12117 return 0;
12118 }
12119 _ACEOF
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (ac_try="$ac_link"
12122 case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12125 esac
12126 eval 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
12142 else
12143 $as_echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12145
12146 ac_cv_lib_m_pow=no
12147 fi
12148
12149 rm -rf conftest.dSYM
12150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12151 conftest$ac_exeext conftest.$ac_ext
12152 LIBS=$ac_check_lib_save_LIBS
12153 fi
12154 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12155 $as_echo "$ac_cv_lib_m_pow" >&6; }
12156 if test $ac_cv_lib_m_pow = yes; then
12157 POW_LIB=-lm
12158 else
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;}
12161 fi
12162
12163 fi
12164
12165 fi
12166
12167
12168 for ac_func in memset
12169 do
12170 as_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; }
12173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12174 $as_echo_n "(cached) " >&6
12175 else
12176 cat >conftest.$ac_ext <<_ACEOF
12177 /* confdefs.h. */
12178 _ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>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
12203 extern "C"
12204 #endif
12205 char $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
12210 choke me
12211 #endif
12212
12213 int
12214 main ()
12215 {
12216 return $ac_func ();
12217 ;
12218 return 0;
12219 }
12220 _ACEOF
12221 rm -f conftest.$ac_objext conftest$ac_exeext
12222 if { (ac_try="$ac_link"
12223 case "(($ac_try" in
12224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225 *) ac_try_echo=$ac_try;;
12226 esac
12227 eval 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"
12243 else
12244 $as_echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12246
12247 eval "$as_ac_var=no"
12248 fi
12249
12250 rm -rf conftest.dSYM
12251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12252 conftest$ac_exeext conftest.$ac_ext
12253 fi
12254 ac_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; }
12258 if 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
12264 else
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; }; }
12268 fi
12269 done
12270
12271
12272 for ac_func in pow
12273 do
12274 as_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; }
12277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12278 $as_echo_n "(cached) " >&6
12279 else
12280 cat >conftest.$ac_ext <<_ACEOF
12281 /* confdefs.h. */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>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
12307 extern "C"
12308 #endif
12309 char $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
12314 choke me
12315 #endif
12316
12317 int
12318 main ()
12319 {
12320 return $ac_func ();
12321 ;
12322 return 0;
12323 }
12324 _ACEOF
12325 rm -f conftest.$ac_objext conftest$ac_exeext
12326 if { (ac_try="$ac_link"
12327 case "(($ac_try" in
12328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12330 esac
12331 eval 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"
12347 else
12348 $as_echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12350
12351 eval "$as_ac_var=no"
12352 fi
12353
12354 rm -rf conftest.dSYM
12355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12356 conftest$ac_exeext conftest.$ac_ext
12357 fi
12358 ac_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; }
12362 if 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
12368 else
12369
12370 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
12371 $as_echo_n "checking for pow in -lm... " >&6; }
12372 if test "${ac_cv_lib_m_pow+set}" = set; then
12373 $as_echo_n "(cached) " >&6
12374 else
12375 ac_check_lib_save_LIBS=$LIBS
12376 LIBS="-lm $LIBS"
12377 cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h. */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>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
12388 extern "C"
12389 #endif
12390 char pow ();
12391 int
12392 main ()
12393 {
12394 return pow ();
12395 ;
12396 return 0;
12397 }
12398 _ACEOF
12399 rm -f conftest.$ac_objext conftest$ac_exeext
12400 if { (ac_try="$ac_link"
12401 case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12404 esac
12405 eval 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
12421 else
12422 $as_echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12424
12425 ac_cv_lib_m_pow=no
12426 fi
12427
12428 rm -rf conftest.dSYM
12429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12430 conftest$ac_exeext conftest.$ac_ext
12431 LIBS=$ac_check_lib_save_LIBS
12432 fi
12433 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12434 $as_echo "$ac_cv_lib_m_pow" >&6; }
12435 if 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
12442 else
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; }; }
12446 fi
12447
12448 fi
12449 done
12450
12451
12452 { $as_echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
12453 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12454 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
12455 $as_echo_n "(cached) " >&6
12456 else
12457 ac_check_lib_save_LIBS=$LIBS
12458 LIBS="-lz $LIBS"
12459 cat >conftest.$ac_ext <<_ACEOF
12460 /* confdefs.h. */
12461 _ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>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
12470 extern "C"
12471 #endif
12472 char zlibVersion ();
12473 int
12474 main ()
12475 {
12476 return zlibVersion ();
12477 ;
12478 return 0;
12479 }
12480 _ACEOF
12481 rm -f conftest.$ac_objext conftest$ac_exeext
12482 if { (ac_try="$ac_link"
12483 case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12486 esac
12487 eval 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
12503 else
12504 $as_echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12506
12507 ac_cv_lib_z_zlibVersion=no
12508 fi
12509
12510 rm -rf conftest.dSYM
12511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12512 conftest$ac_exeext conftest.$ac_ext
12513 LIBS=$ac_check_lib_save_LIBS
12514 fi
12515 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
12516 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12517 if 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
12524 else
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; }; }
12528 fi
12529
12530
12531 LIBPNG_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; }
12534 cat >conftest.$ac_ext <<_ACEOF
12535 /* confdefs.h. */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12540 #include "$srcdir/pnggccrd.c"
12541 int
12542 main ()
12543 {
12544 return 0;
12545 ;
12546 return 0;
12547 }
12548 _ACEOF
12549 rm -f conftest.$ac_objext
12550 if { (ac_try="$ac_compile"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554 esac
12555 eval 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=""
12570 else
12571 $as_echo "$as_me: failed program was:" >&5
12572 sed '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
12577 fi
12578
12579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12580 LIBPNG_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; }
12586 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
12587 if test "$GLD"; then
12588 have_ld_version_script=yes
12589 { $as_echo "$as_me:$LINENO: result: yes" >&5
12590 $as_echo "yes" >&6; }
12591 else
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;}
12597 fi
12598 if test "$have_ld_version_script" = "yes"; then
12599 HAVE_LD_VERSION_SCRIPT_TRUE=
12600 HAVE_LD_VERSION_SCRIPT_FALSE='#'
12601 else
12602 HAVE_LD_VERSION_SCRIPT_TRUE='#'
12603 HAVE_LD_VERSION_SCRIPT_FALSE=
12604 fi
12605
12606
12607 if 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; }
12617 fi
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.
12629 if test "${with_pkgconfigdir+set}" = set; then
12630 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
12631 else
12632 pkgconfigdir='${libdir}/pkgconfig'
12633 fi
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.
12643 if 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
12651 else
12652 binconfigs='${binconfigs}'
12653 fi
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.
12661 if 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
12669 else
12670 compatlib=libpng.la
12671 fi
12672
12673
12674
12675 # Config files, substituting as above
12676 ac_config_files="$ac_config_files Makefile libpng.pc:scripts/libpng.pc-configure.in"
12677
12678 ac_config_files="$ac_config_files libpng-config:scripts/libpng-config.in"
12679
12680
12681 cat >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
12743 if 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
12753 fi
12754 rm -f confcache
12755
12756 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12757 # Let make expand exec_prefix.
12758 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12759
12760 DEFS=-DHAVE_CONFIG_H
12761
12762 ac_libobjs=
12763 ac_ltlibobjs=
12764 for 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'
12772 done
12773 LIBOBJS=$ac_libobjs
12774
12775 LTLIBOBJS=$ac_ltlibobjs
12776
12777
12778 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12779 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12780 Usually this means the macro was only invoked conditionally." >&5
12781 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12782 Usually this means the macro was only invoked conditionally." >&2;}
12783 { (exit 1); exit 1; }; }
12784 fi
12785 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12786 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12787 Usually this means the macro was only invoked conditionally." >&5
12788 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12789 Usually this means the macro was only invoked conditionally." >&2;}
12790 { (exit 1); exit 1; }; }
12791 fi
12792 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12793 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12794 Usually this means the macro was only invoked conditionally." >&5
12795 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12796 Usually this means the macro was only invoked conditionally." >&2;}
12797 { (exit 1); exit 1; }; }
12798 fi
12799 if 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.
12801 Usually this means the macro was only invoked conditionally." >&5
12802 $as_echo "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
12803 Usually this means the macro was only invoked conditionally." >&2;}
12804 { (exit 1); exit 1; }; }
12805 fi
12806
12807 : ${CONFIG_STATUS=./config.status}
12808 ac_write_fail=0
12809 ac_clean_files_save=$ac_clean_files
12810 ac_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;}
12813 cat >$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
12820 debug=false
12821 ac_cs_recheck=false
12822 ac_cs_silent=false
12823 SHELL=\${CONFIG_SHELL-$SHELL}
12824 _ACEOF
12825
12826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12827 ## --------------------- ##
12828 ## M4sh Initialization. ##
12829 ## --------------------- ##
12830
12831 # Be more Bourne compatible
12832 DUALCASE=1; export DUALCASE # for MKS sh
12833 if 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
12840 else
12841 case `(set -o) 2>/dev/null` in
12842 *posix*) set -o posix ;;
12843 esac
12844
12845 fi
12846
12847
12848
12849
12850 # PATH needs CR
12851 # Avoid depending upon Character Ranges.
12852 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12853 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12854 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12855 as_cr_digits='0123456789'
12856 as_cr_alnum=$as_cr_Letters$as_cr_digits
12857
12858 as_nl='
12859 '
12860 export as_nl
12861 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12862 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12865 if (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'
12868 else
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'
12888 fi
12889
12890 # The user is always right.
12891 if 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 }
12897 fi
12898
12899 # Support unset when possible.
12900 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12901 as_unset=unset
12902 else
12903 as_unset=false
12904 fi
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.)
12912 IFS=" "" $as_nl"
12913
12914 # Find who we are. Look in the path if we contain no directory separator.
12915 case $0 in
12916 *[\\/]* ) as_myself=$0 ;;
12917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12918 for as_dir in $PATH
12919 do
12920 IFS=$as_save_IFS
12921 test -z "$as_dir" && as_dir=.
12922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12923 done
12924 IFS=$as_save_IFS
12925
12926 ;;
12927 esac
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.
12930 if test "x$as_myself" = x; then
12931 as_myself=$0
12932 fi
12933 if 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; }
12936 fi
12937
12938 # Work around bugs in pre-3.0 UWIN ksh.
12939 for as_var in ENV MAIL MAILPATH
12940 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12941 done
12942 PS1='$ '
12943 PS2='> '
12944 PS4='+ '
12945
12946 # NLS nuisances.
12947 LC_ALL=C
12948 export LC_ALL
12949 LANGUAGE=C
12950 export LANGUAGE
12951
12952 # Required to use basename.
12953 if expr a : '\(a\)' >/dev/null 2>&1 &&
12954 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12955 as_expr=expr
12956 else
12957 as_expr=false
12958 fi
12959
12960 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12961 as_basename=basename
12962 else
12963 as_basename=false
12964 fi
12965
12966
12967 # Name of the executable.
12968 as_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
13035 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13036 as_dirname=dirname
13037 else
13038 as_dirname=false
13039 fi
13040
13041 ECHO_C= ECHO_N= ECHO_T=
13042 case `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';;
13050 esac
13051 if expr a : '\(a\)' >/dev/null 2>&1 &&
13052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13053 as_expr=expr
13054 else
13055 as_expr=false
13056 fi
13057
13058 rm -f conf$$ conf$$.exe conf$$.file
13059 if test -d conf$$.dir; then
13060 rm -f conf$$.dir/conf$$.file
13061 else
13062 rm -f conf$$.dir
13063 mkdir conf$$.dir 2>/dev/null
13064 fi
13065 if (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
13079 else
13080 as_ln_s='cp -p'
13081 fi
13082 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13083 rmdir conf$$.dir 2>/dev/null
13084
13085 if mkdir -p . 2>/dev/null; then
13086 as_mkdir_p=:
13087 else
13088 test -d ./-p && rmdir ./-p
13089 as_mkdir_p=false
13090 fi
13091
13092 if test -x / >/dev/null 2>&1; then
13093 as_test_x='test -x'
13094 else
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 '
13112 fi
13113 as_executable_p=$as_test_x
13114
13115 # Sed expression to map a string onto a valid CPP name.
13116 as_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.
13119 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13120
13121
13122 exec 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.
13127 ac_log="
13128 This file was extended by libpng $as_me 1.2.34, which was
13129 generated 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
13137 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13138 "
13139
13140 _ACEOF
13141
13142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13143 # Files that config.status was made for.
13144 config_files="$ac_config_files"
13145 config_headers="$ac_config_headers"
13146 config_commands="$ac_config_commands"
13147
13148 _ACEOF
13149
13150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13151 ac_cs_usage="\
13152 \`$as_me' instantiates files from templates according to the
13153 current configuration.
13154
13155 Usage: $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
13167 Configuration files:
13168 $config_files
13169
13170 Configuration headers:
13171 $config_headers
13172
13173 Configuration commands:
13174 $config_commands
13175
13176 Report bugs to <bug-autoconf@gnu.org>."
13177
13178 _ACEOF
13179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13180 ac_cs_version="\\
13181 libpng config.status 1.2.34
13182 configured by $0, generated by GNU Autoconf 2.62,
13183 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13184
13185 Copyright (C) 2008 Free Software Foundation, Inc.
13186 This config.status script is free software; the Free Software Foundation
13187 gives unlimited permission to copy, distribute and modify it."
13188
13189 ac_pwd='$ac_pwd'
13190 srcdir='$srcdir'
13191 INSTALL='$INSTALL'
13192 MKDIR_P='$MKDIR_P'
13193 AWK='$AWK'
13194 test -n "\$AWK" || AWK=awk
13195 _ACEOF
13196
13197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13198 # The default lists apply if the user does not specify any file.
13199 ac_need_defaults=:
13200 while test $# != 0
13201 do
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
13240 Try \`$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
13250 Try \`$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
13258 done
13259
13260 ac_configure_extra_args=
13261
13262 if $ac_cs_silent; then
13263 exec 6>/dev/null
13264 ac_configure_extra_args="$ac_configure_extra_args --silent"
13265 fi
13266
13267 _ACEOF
13268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13269 if \$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 "\$@"
13276 fi
13277
13278 _ACEOF
13279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13280 exec 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
13290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13291 #
13292 # INIT-COMMANDS
13293 #
13294 AMDEP_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
13301 sed_quote_subst='$sed_quote_subst'
13302 double_quote_subst='$double_quote_subst'
13303 delay_variable_subst='$delay_variable_subst'
13304 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13305 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13306 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13307 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13308 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13309 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13310 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13311 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13312 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13313 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13314 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13315 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13316 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13317 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13318 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13319 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13320 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13321 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13322 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13323 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13324 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13325 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13326 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13327 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13328 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13329 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13330 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13331 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13332 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13333 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13334 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13335 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13336 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13337 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13338 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13339 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13340 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13341 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13342 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13343 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13344 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13345 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13346 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13347 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13348 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13349 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13350 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13351 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13352 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13353 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13354 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13355 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13356 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13357 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13358 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13359 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13360 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13361 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13362 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13363 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13364 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13365 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13366 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13367 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13368 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13369 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13370 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13371 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13372 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13373 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13374 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13375 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13376 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13377 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13378 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13379 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13380 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13381 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13382 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13383 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13384 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13385 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13386 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13387 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13388 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13389 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13390 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13391 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13392 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13393 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13394 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13395 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13396 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13397 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13398 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13399 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13400 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13401 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13402 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13403 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13404 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13405 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13406 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13407 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13408 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13409 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13410 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13411 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13412 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13413 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13414 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13415 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13416 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13417 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13418 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13419 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13420 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13421 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13422
13423 LTCC='$LTCC'
13424 LTCFLAGS='$LTCFLAGS'
13425 compiler='$compiler_DEFAULT'
13426
13427 # Quote evaled strings.
13428 for var in SED \
13429 GREP \
13430 EGREP \
13431 FGREP \
13432 LD \
13433 NM \
13434 LN_S \
13435 lt_SP2NL \
13436 lt_NL2SP \
13437 reload_flag \
13438 deplibs_check_method \
13439 file_magic_cmd \
13440 AR \
13441 AR_FLAGS \
13442 STRIP \
13443 RANLIB \
13444 CC \
13445 CFLAGS \
13446 compiler \
13447 lt_cv_sys_global_symbol_pipe \
13448 lt_cv_sys_global_symbol_to_cdecl \
13449 lt_cv_sys_global_symbol_to_c_name_address \
13450 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13451 SHELL \
13452 ECHO \
13453 lt_prog_compiler_no_builtin_flag \
13454 lt_prog_compiler_wl \
13455 lt_prog_compiler_pic \
13456 lt_prog_compiler_static \
13457 lt_cv_prog_compiler_c_o \
13458 need_locks \
13459 DSYMUTIL \
13460 NMEDIT \
13461 LIPO \
13462 shrext_cmds \
13463 export_dynamic_flag_spec \
13464 whole_archive_flag_spec \
13465 compiler_needs_object \
13466 with_gnu_ld \
13467 allow_undefined_flag \
13468 no_undefined_flag \
13469 hardcode_libdir_flag_spec \
13470 hardcode_libdir_flag_spec_ld \
13471 hardcode_libdir_separator \
13472 fix_srcfile_path \
13473 exclude_expsyms \
13474 include_expsyms \
13475 file_list_spec \
13476 variables_saved_for_relink \
13477 libname_spec \
13478 library_names_spec \
13479 soname_spec \
13480 finish_eval \
13481 old_striplib \
13482 striplib; 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
13491 done
13492
13493 # Double-quote double-evaled strings.
13494 for var in reload_cmds \
13495 old_postinstall_cmds \
13496 old_postuninstall_cmds \
13497 old_archive_cmds \
13498 extract_expsyms_cmds \
13499 old_archive_from_new_cmds \
13500 old_archive_from_expsyms_cmds \
13501 archive_cmds \
13502 archive_expsym_cmds \
13503 module_cmds \
13504 module_expsym_cmds \
13505 export_symbols_cmds \
13506 prelink_cmds \
13507 postinstall_cmds \
13508 postuninstall_cmds \
13509 finish_cmds \
13510 sys_lib_search_path_spec \
13511 sys_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
13520 done
13521
13522 # Fix-up fallback echo if it was mangled by the above quoting rules.
13523 case \$lt_ECHO in
13524 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13525 ;;
13526 esac
13527
13528 ac_aux_dir='$ac_aux_dir'
13529 xsi_shell='$xsi_shell'
13530 lt_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.
13534 if test -n "\${ZSH_VERSION+set}" ; then
13535 setopt NO_GLOB_SUBST
13536 fi
13537
13538
13539 PACKAGE='$PACKAGE'
13540 VERSION='$VERSION'
13541 TIMESTAMP='$TIMESTAMP'
13542 RM='$RM'
13543 ofile='$ofile'
13544
13545
13546
13547
13548 _ACEOF
13549
13550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13551
13552 # Handling of arguments.
13553 for ac_config_target in $ac_config_targets
13554 do
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
13567 done
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.
13574 if $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
13578 fi
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'.
13612 if test -n "$CONFIG_FILES"; then
13613
13614
13615 ac_cr='
13616 '
13617 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13618 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13619 ac_cs_awk_cr='\\r'
13620 else
13621 ac_cs_awk_cr=$ac_cr
13622 fi
13623
13624 echo '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; }; }
13636 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13637 ac_delim='%!_!# '
13638 for 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
13653 done
13654 rm -f conf$$subs.sh
13655
13656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13657 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13658 _ACEOF
13659 sed -n '
13660 h
13661 s/^/S["/; s/!.*/"]=/
13662 p
13663 g
13664 s/^[^!]*!//
13665 :repl
13666 t repl
13667 s/'"$ac_delim"'$//
13668 t delim
13669 :nl
13670 h
13671 s/\(.\{148\}\).*/\1/
13672 t more1
13673 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13674 p
13675 n
13676 b repl
13677 :more1
13678 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13679 p
13680 g
13681 s/.\{148\}//
13682 t nl
13683 :delim
13684 h
13685 s/\(.\{148\}\).*/\1/
13686 t more2
13687 s/["\\]/\\&/g; s/^/"/; s/$/"/
13688 p
13689 b
13690 :more2
13691 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13692 p
13693 g
13694 s/.\{148\}//
13695 t delim
13696 ' <conf$$subs.awk | sed '
13697 /^[^""]/{
13698 N
13699 s/\n//
13700 }
13701 ' >>$CONFIG_STATUS || ac_write_fail=1
13702 rm -f conf$$subs.awk
13703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13704 _ACAWK
13705 cat >>"\$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
13732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13733 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13734 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13735 else
13736 cat
13737 fi < "$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).
13747 if test "x$srcdir" = x.; then
13748 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13749 s/:*\$(srcdir):*/:/
13750 s/:*\${srcdir}:*/:/
13751 s/:*@srcdir@:*/:/
13752 s/^\([^=]*=[ ]*\):*/\1/
13753 s/:*$//
13754 s/^[^=]*=[ ]*$//
13755 }'
13756 fi
13757
13758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13759 fi # 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'.
13764 if test -n "$CONFIG_HEADERS"; then
13765 cat >"$tmp/defines.awk" <<\_ACAWK ||
13766 BEGIN {
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.
13775 ac_delim='%!_!# '
13776 for 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
13787 done
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
13793 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13794 sed -n '
13795 s/.\{148\}/&'"$ac_delim"'/g
13796 t rset
13797 :rset
13798 s/^[ ]*#[ ]*define[ ][ ]*/ /
13799 t def
13800 d
13801 :def
13802 s/\\$//
13803 t bsnl
13804 s/["\\]/\\&/g
13805 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13806 D["\1"]=" \3"/p
13807 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13808 d
13809 :bsnl
13810 s/["\\]/\\&/g
13811 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13812 D["\1"]=" \3\\\\\\n"\\/p
13813 t cont
13814 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13815 t cont
13816 d
13817 :cont
13818 n
13819 s/.\{148\}/&'"$ac_delim"'/g
13820 t clear
13821 :clear
13822 s/\\$//
13823 t bsnlc
13824 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13825 d
13826 :bsnlc
13827 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13828 b cont
13829 ' <confdefs.h | sed '
13830 s/'"$ac_delim"'/"\\\
13831 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13832
13833 cat >>$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
13867 cat >>$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; }; }
13871 fi # test -n "$CONFIG_HEADERS"
13872
13873
13874 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13875 shift
13876 for ac_tag
13877 do
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
14015 case "$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 ;;
14025 esac
14026 ac_abs_top_builddir=$ac_pwd
14027 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14028 # for backward compatibility:
14029 ac_top_builddir=$ac_top_build_prefix
14030
14031 case $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 ;;
14044 esac
14045 ac_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
14065 cat >>$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.
14068 ac_datarootdir_hack=; ac_datarootdir_seen=
14069
14070 ac_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 '
14081 case `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
14087 cat >>$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' ;;
14095 esac
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?
14101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14102 ac_sed_extra="$ac_vpsub
14103 $extrasub
14104 _ACEOF
14105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14106 :t
14107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14108 s|@configure_input@|$ac_sed_conf_input|;t t
14109 s&@top_builddir@&$ac_top_builddir_sub&;t t
14110 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14111 s&@srcdir@&$ac_srcdir&;t t
14112 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14113 s&@top_srcdir@&$ac_top_srcdir&;t t
14114 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14115 s&@builddir@&$ac_builddir&;t t
14116 s&@abs_builddir@&$ac_abs_builddir&;t t
14117 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14118 s&@INSTALL@&$ac_INSTALL&;t t
14119 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14120 $ac_datarootdir_hack
14121 "
14122 eval 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
14127 test -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'
14131 which 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'
14133 which 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
14176 for _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
14183 done
14184 echo "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
14338 done
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.
14389 available_tags=""
14390
14391 # ### BEGIN LIBTOOL CONFIG
14392
14393 # A sed program that does not truncate output.
14394 SED=$lt_SED
14395
14396 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14397 Xsed="\$SED -e 1s/^X//"
14398
14399 # A grep program that handles long lines.
14400 GREP=$lt_GREP
14401
14402 # An ERE matcher.
14403 EGREP=$lt_EGREP
14404
14405 # A literal string matcher.
14406 FGREP=$lt_FGREP
14407
14408 # Assembler program.
14409 AS=$AS
14410
14411 # DLL creation program.
14412 DLLTOOL=$DLLTOOL
14413
14414 # Object dumper program.
14415 OBJDUMP=$OBJDUMP
14416
14417 # Which release of libtool.m4 was used?
14418 macro_version=$macro_version
14419 macro_revision=$macro_revision
14420
14421 # Whether or not to build shared libraries.
14422 build_libtool_libs=$enable_shared
14423
14424 # Whether or not to build static libraries.
14425 build_old_libs=$enable_static
14426
14427 # What type of objects to build.
14428 pic_mode=$pic_mode
14429
14430 # Whether or not to optimize for fast installation.
14431 fast_install=$enable_fast_install
14432
14433 # The host system.
14434 host_alias=$host_alias
14435 host=$host
14436 host_os=$host_os
14437
14438 # The build system.
14439 build_alias=$build_alias
14440 build=$build
14441 build_os=$build_os
14442
14443 # A BSD- or MS-compatible name lister.
14444 NM=$lt_NM
14445
14446 # Whether we need soft or hard links.
14447 LN_S=$lt_LN_S
14448
14449 # What is the maximum length of a command?
14450 max_cmd_len=$max_cmd_len
14451
14452 # Object file suffix (normally "o").
14453 objext=$ac_objext
14454
14455 # Executable file suffix (normally "").
14456 exeext=$exeext
14457
14458 # whether the shell understands "unset".
14459 lt_unset=$lt_unset
14460
14461 # turn spaces into newlines.
14462 SP2NL=$lt_lt_SP2NL
14463
14464 # turn newlines into spaces.
14465 NL2SP=$lt_lt_NL2SP
14466
14467 # How to create reloadable object files.
14468 reload_flag=$lt_reload_flag
14469 reload_cmds=$lt_reload_cmds
14470
14471 # Method to check whether dependent libraries are shared objects.
14472 deplibs_check_method=$lt_deplibs_check_method
14473
14474 # Command to use when deplibs_check_method == "file_magic".
14475 file_magic_cmd=$lt_file_magic_cmd
14476
14477 # The archiver.
14478 AR=$lt_AR
14479 AR_FLAGS=$lt_AR_FLAGS
14480
14481 # A symbol stripping program.
14482 STRIP=$lt_STRIP
14483
14484 # Commands used to install an old-style archive.
14485 RANLIB=$lt_RANLIB
14486 old_postinstall_cmds=$lt_old_postinstall_cmds
14487 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14488
14489 # A C compiler.
14490 LTCC=$lt_CC
14491
14492 # LTCC compiler flags.
14493 LTCFLAGS=$lt_CFLAGS
14494
14495 # Take the output of nm and produce a listing of raw symbols and C names.
14496 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14497
14498 # Transform the output of nm in a proper C declaration.
14499 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14500
14501 # Transform the output of nm in a C name address pair.
14502 global_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.
14505 global_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.
14508 objdir=$objdir
14509
14510 # Shell to use when invoking shell scripts.
14511 SHELL=$lt_SHELL
14512
14513 # An echo program that does not interpret backslashes.
14514 ECHO=$lt_ECHO
14515
14516 # Used to examine libraries when file_magic_cmd begins with "file".
14517 MAGIC_CMD=$MAGIC_CMD
14518
14519 # Must we lock files when doing compilation?
14520 need_locks=$lt_need_locks
14521
14522 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14523 DSYMUTIL=$lt_DSYMUTIL
14524
14525 # Tool to change global to local symbols on Mac OS X.
14526 NMEDIT=$lt_NMEDIT
14527
14528 # Tool to manipulate fat objects and archives on Mac OS X.
14529 LIPO=$lt_LIPO
14530
14531 # Old archive suffix (normally "a").
14532 libext=$libext
14533
14534 # Shared library suffix (normally ".so").
14535 shrext_cmds=$lt_shrext_cmds
14536
14537 # The commands to extract the exported symbol list from a shared archive.
14538 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14539
14540 # Variables whose values should be saved in libtool wrapper scripts and
14541 # restored at link time.
14542 variables_saved_for_relink=$lt_variables_saved_for_relink
14543
14544 # Do we need the "lib" prefix for modules?
14545 need_lib_prefix=$need_lib_prefix
14546
14547 # Do we need a version for libraries?
14548 need_version=$need_version
14549
14550 # Library versioning type.
14551 version_type=$version_type
14552
14553 # Shared library runtime path variable.
14554 runpath_var=$runpath_var
14555
14556 # Shared library path variable.
14557 shlibpath_var=$shlibpath_var
14558
14559 # Is shlibpath searched before the hard-coded library search path?
14560 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14561
14562 # Format of library name prefix.
14563 libname_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
14567 library_names_spec=$lt_library_names_spec
14568
14569 # The coded name of the library, if different from the real name.
14570 soname_spec=$lt_soname_spec
14571
14572 # Command to use after installation of a shared archive.
14573 postinstall_cmds=$lt_postinstall_cmds
14574
14575 # Command to use after uninstallation of a shared archive.
14576 postuninstall_cmds=$lt_postuninstall_cmds
14577
14578 # Commands used to finish a libtool library installation in a directory.
14579 finish_cmds=$lt_finish_cmds
14580
14581 # As "finish_cmds", except a single script fragment to be evaled but
14582 # not shown.
14583 finish_eval=$lt_finish_eval
14584
14585 # Whether we should hardcode library paths into libraries.
14586 hardcode_into_libs=$hardcode_into_libs
14587
14588 # Compile-time system search path for libraries.
14589 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14590
14591 # Run-time system search path for libraries.
14592 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14593
14594 # Whether dlopen is supported.
14595 dlopen_support=$enable_dlopen
14596
14597 # Whether dlopen of programs is supported.
14598 dlopen_self=$enable_dlopen_self
14599
14600 # Whether dlopen of statically linked programs is supported.
14601 dlopen_self_static=$enable_dlopen_self_static
14602
14603 # Commands to strip libraries.
14604 old_striplib=$lt_old_striplib
14605 striplib=$lt_striplib
14606
14607
14608 # The linker used to build libraries.
14609 LD=$lt_LD
14610
14611 # Commands used to build an old-style archive.
14612 old_archive_cmds=$lt_old_archive_cmds
14613
14614 # A language specific compiler.
14615 CC=$lt_compiler
14616
14617 # Is the compiler the GNU compiler?
14618 with_gcc=$GCC
14619
14620 # Compiler flag to turn off builtin functions.
14621 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14622
14623 # How to pass a linker flag through the compiler.
14624 wl=$lt_lt_prog_compiler_wl
14625
14626 # Additional compiler flags for building library objects.
14627 pic_flag=$lt_lt_prog_compiler_pic
14628
14629 # Compiler flag to prevent dynamic linking.
14630 link_static_flag=$lt_lt_prog_compiler_static
14631
14632 # Does compiler simultaneously support -c and -o options?
14633 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14634
14635 # Whether or not to add -lc for building shared libraries.
14636 build_libtool_need_lc=$archive_cmds_need_lc
14637
14638 # Whether or not to disallow shared libs when runtime libs are static.
14639 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14640
14641 # Compiler flag to allow reflexive dlopens.
14642 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14643
14644 # Compiler flag to generate shared objects directly from archives.
14645 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14646
14647 # Whether the compiler copes with passing no objects directly.
14648 compiler_needs_object=$lt_compiler_needs_object
14649
14650 # Create an old-style archive from a shared archive.
14651 old_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.
14654 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14655
14656 # Commands used to build a shared archive.
14657 archive_cmds=$lt_archive_cmds
14658 archive_expsym_cmds=$lt_archive_expsym_cmds
14659
14660 # Commands used to build a loadable module if different from building
14661 # a shared archive.
14662 module_cmds=$lt_module_cmds
14663 module_expsym_cmds=$lt_module_expsym_cmds
14664
14665 # Whether we are building with GNU ld or not.
14666 with_gnu_ld=$lt_with_gnu_ld
14667
14668 # Flag that allows shared libraries with undefined symbols to be built.
14669 allow_undefined_flag=$lt_allow_undefined_flag
14670
14671 # Flag that enforces no undefined symbols.
14672 no_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
14676 hardcode_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.
14680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14681
14682 # Whether we need a single "-rpath" flag with a separated argument.
14683 hardcode_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.
14687 hardcode_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.
14693 hardcode_direct_absolute=$hardcode_direct_absolute
14694
14695 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14696 # into the resulting binary.
14697 hardcode_minus_L=$hardcode_minus_L
14698
14699 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14700 # into the resulting binary.
14701 hardcode_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.
14706 hardcode_automatic=$hardcode_automatic
14707
14708 # Set to yes if linker adds runtime paths of dependent libraries
14709 # to runtime path list.
14710 inherit_rpath=$inherit_rpath
14711
14712 # Whether libtool must link a program against all its dependency libraries.
14713 link_all_deplibs=$link_all_deplibs
14714
14715 # Fix the shell variable \$srcfile for the compiler.
14716 fix_srcfile_path=$lt_fix_srcfile_path
14717
14718 # Set to "yes" if exported symbols are required.
14719 always_export_symbols=$always_export_symbols
14720
14721 # The commands to list exported symbols.
14722 export_symbols_cmds=$lt_export_symbols_cmds
14723
14724 # Symbols that should not be listed in the preloaded symbols.
14725 exclude_expsyms=$lt_exclude_expsyms
14726
14727 # Symbols that must always be exported.
14728 include_expsyms=$lt_include_expsyms
14729
14730 # Commands necessary for linking programs (against libraries) with templates.
14731 prelink_cmds=$lt_prelink_cmds
14732
14733 # Specify filename containing input files.
14734 file_list_spec=$lt_file_list_spec
14735
14736 # How to hardcode a shared library path into an executable.
14737 hardcode_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.
14749 if test "X${COLLECT_NAMES+set}" != Xset; then
14750 COLLECT_NAMES=
14751 export COLLECT_NAMES
14752 fi
14753 _LT_EOF
14754 ;;
14755 esac
14756
14757
14758 ltmain="$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.
14775 func_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
14784 func_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.
14801 func_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).
14815 func_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
14825 func_opt_split ()
14826 {
14827 func_opt_split_opt=${1%%=*}
14828 func_opt_split_arg=${1#*=}
14829 }
14830
14831 # func_lo2o object
14832 func_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
14841 func_xform ()
14842 {
14843 func_xform_result=${1%.*}.lo
14844 }
14845
14846 # func_arith arithmetic-term...
14847 func_arith ()
14848 {
14849 func_arith_result=$(( $* ))
14850 }
14851
14852 # func_len string
14853 # STRING may not start with a hyphen.
14854 func_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.
14867 func_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
14879 func_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
14891 func_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:
14902 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14903 my_sed_long_arg='1s/^-[^=]*=//'
14904
14905 # func_opt_split
14906 func_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
14913 func_lo2o ()
14914 {
14915 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14916 }
14917
14918 # func_xform libobj-or-source
14919 func_xform ()
14920 {
14921 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14922 }
14923
14924 # func_arith arithmetic-term...
14925 func_arith ()
14926 {
14927 func_arith_result=`expr "$@"`
14928 }
14929
14930 # func_len string
14931 # STRING may not start with a hyphen.
14932 func_len ()
14933 {
14934 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14935 }
14936
14937 _LT_EOF
14938 esac
14939
14940 case $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.
14946 func_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.
14957 func_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
14978 done # for ac_tag
14979
14980
14981 { (exit 0); exit 0; }
14982 _ACEOF
14983 chmod +x $CONFIG_STATUS
14984 ac_clean_files=$ac_clean_files_save
14985
14986 test $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.
15000 if 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; }
15011 fi
15012 if 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;}
15015 fi
15016