Fix small problems in .la file
[sdlpango.git] / configure
blob26e7f7e39ba07c1fe7368e2a9a81b62f1e279ff4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
583 esac
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
605 _LT_EOF
606 exit 0
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
623 done
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
647 done
648 IFS="$lt_save_ifs"
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
696 prev="$cmd"
697 done
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731 # Initializations.
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
750 ac_unique_file="README"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 # include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 # include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
787 ac_subst_vars='LTLIBOBJS
788 LIBOBJS
789 SDL_LIBS
790 SDL_CFLAGS
791 SDL_CONFIG
792 PANGOFT2_LIBS
793 PANGOFT2_CFLAGS
794 PANGO_LIBS
795 PANGO_CFLAGS
796 PKG_CONFIG
798 OTOOL64
799 OTOOL
800 LIPO
801 NMEDIT
802 DSYMUTIL
803 lt_ECHO
804 RANLIB
806 LN_S
808 ac_ct_DUMPBIN
809 DUMPBIN
811 FGREP
812 EGREP
813 GREP
815 am__fastdepCC_FALSE
816 am__fastdepCC_TRUE
817 CCDEPMODE
818 AMDEPBACKSLASH
819 AMDEP_FALSE
820 AMDEP_TRUE
821 am__quote
822 am__include
823 DEPDIR
824 OBJEXT
825 EXEEXT
826 ac_ct_CC
827 CPPFLAGS
828 LDFLAGS
829 CFLAGS
831 LIBTOOL
832 OBJDUMP
833 DLLTOOL
835 am__untar
836 am__tar
837 AMTAR
838 am__leading_dot
839 SET_MAKE
841 mkdir_p
842 MKDIR_P
843 INSTALL_STRIP_PROGRAM
844 STRIP
845 install_sh
846 MAKEINFO
847 AUTOHEADER
848 AUTOMAKE
849 AUTOCONF
850 ACLOCAL
851 PACKAGE
852 CYGPATH_W
853 am__isrc
854 INSTALL_DATA
855 INSTALL_SCRIPT
856 INSTALL_PROGRAM
857 target_os
858 target_vendor
859 target_cpu
860 target
861 host_os
862 host_vendor
863 host_cpu
864 host
865 build_os
866 build_vendor
867 build_cpu
868 build
869 LT_AGE
870 LT_REVISION
871 LT_CURRENT
872 LT_RELEASE
873 VERSION
874 BINARY_AGE
875 INTERFACE_AGE
876 MICRO_VERSION
877 MINOR_VERSION
878 MAJOR_VERSION
879 MAINT
880 MAINTAINER_MODE_FALSE
881 MAINTAINER_MODE_TRUE
882 target_alias
883 host_alias
884 build_alias
885 LIBS
886 ECHO_T
887 ECHO_N
888 ECHO_C
889 DEFS
890 mandir
891 localedir
892 libdir
893 psdir
894 pdfdir
895 dvidir
896 htmldir
897 infodir
898 docdir
899 oldincludedir
900 includedir
901 localstatedir
902 sharedstatedir
903 sysconfdir
904 datadir
905 datarootdir
906 libexecdir
907 sbindir
908 bindir
909 program_transform_name
910 prefix
911 exec_prefix
912 PACKAGE_BUGREPORT
913 PACKAGE_STRING
914 PACKAGE_VERSION
915 PACKAGE_TARNAME
916 PACKAGE_NAME
917 PATH_SEPARATOR
918 SHELL'
919 ac_subst_files=''
920 ac_user_opts='
921 enable_option_checking
922 enable_maintainer_mode
923 enable_shared
924 enable_static
925 with_pic
926 enable_fast_install
927 enable_dependency_tracking
928 with_gnu_ld
929 enable_libtool_lock
930 with_sdl_prefix
931 with_sdl_exec_prefix
932 enable_sdltest
934 ac_precious_vars='build_alias
935 host_alias
936 target_alias
938 CFLAGS
939 LDFLAGS
940 LIBS
941 CPPFLAGS
943 PKG_CONFIG
944 PANGO_CFLAGS
945 PANGO_LIBS
946 PANGOFT2_CFLAGS
947 PANGOFT2_LIBS'
950 # Initialize some variables set by options.
951 ac_init_help=
952 ac_init_version=false
953 ac_unrecognized_opts=
954 ac_unrecognized_sep=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
957 cache_file=/dev/null
958 exec_prefix=NONE
959 no_create=
960 no_recursion=
961 prefix=NONE
962 program_prefix=NONE
963 program_suffix=NONE
964 program_transform_name=s,x,x,
965 silent=
966 site=
967 srcdir=
968 verbose=
969 x_includes=NONE
970 x_libraries=NONE
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE}'
989 infodir='${datarootdir}/info'
990 htmldir='${docdir}'
991 dvidir='${docdir}'
992 pdfdir='${docdir}'
993 psdir='${docdir}'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
998 ac_prev=
999 ac_dashdash=
1000 for ac_option
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
1004 eval $ac_prev=\$ac_option
1005 ac_prev=
1006 continue
1009 case $ac_option in
1010 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 *) ac_optarg=yes ;;
1012 esac
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1016 case $ac_dashdash$ac_option in
1018 ac_dashdash=yes ;;
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 ac_prev=bindir ;;
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1040 -datadir | --datadir | --datadi | --datad)
1041 ac_prev=datadir ;;
1042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043 datadir=$ac_optarg ;;
1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1052 -disable-* | --disable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1063 "*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval enable_$ac_useropt=no ;;
1069 -docdir | --docdir | --docdi | --doc | --do)
1070 ac_prev=docdir ;;
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 ac_prev=dvidir ;;
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
1079 -enable-* | --enable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1089 "enable_$ac_useropt"
1090 "*) ;;
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1093 esac
1094 eval enable_$ac_useropt=\$ac_optarg ;;
1096 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1097 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1098 | --exec | --exe | --ex)
1099 ac_prev=exec_prefix ;;
1100 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1101 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1102 | --exec=* | --exe=* | --ex=*)
1103 exec_prefix=$ac_optarg ;;
1105 -gas | --gas | --ga | --g)
1106 # Obsolete; use --with-gas.
1107 with_gas=yes ;;
1109 -help | --help | --hel | --he | -h)
1110 ac_init_help=long ;;
1111 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1112 ac_init_help=recursive ;;
1113 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1114 ac_init_help=short ;;
1116 -host | --host | --hos | --ho)
1117 ac_prev=host_alias ;;
1118 -host=* | --host=* | --hos=* | --ho=*)
1119 host_alias=$ac_optarg ;;
1121 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122 ac_prev=htmldir ;;
1123 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124 | --ht=*)
1125 htmldir=$ac_optarg ;;
1127 -includedir | --includedir | --includedi | --included | --include \
1128 | --includ | --inclu | --incl | --inc)
1129 ac_prev=includedir ;;
1130 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1131 | --includ=* | --inclu=* | --incl=* | --inc=*)
1132 includedir=$ac_optarg ;;
1134 -infodir | --infodir | --infodi | --infod | --info | --inf)
1135 ac_prev=infodir ;;
1136 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1137 infodir=$ac_optarg ;;
1139 -libdir | --libdir | --libdi | --libd)
1140 ac_prev=libdir ;;
1141 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1142 libdir=$ac_optarg ;;
1144 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1145 | --libexe | --libex | --libe)
1146 ac_prev=libexecdir ;;
1147 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1148 | --libexe=* | --libex=* | --libe=*)
1149 libexecdir=$ac_optarg ;;
1151 -localedir | --localedir | --localedi | --localed | --locale)
1152 ac_prev=localedir ;;
1153 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1154 localedir=$ac_optarg ;;
1156 -localstatedir | --localstatedir | --localstatedi | --localstated \
1157 | --localstate | --localstat | --localsta | --localst | --locals)
1158 ac_prev=localstatedir ;;
1159 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1160 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1161 localstatedir=$ac_optarg ;;
1163 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164 ac_prev=mandir ;;
1165 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1166 mandir=$ac_optarg ;;
1168 -nfp | --nfp | --nf)
1169 # Obsolete; use --without-fp.
1170 with_fp=no ;;
1172 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1173 | --no-cr | --no-c | -n)
1174 no_create=yes ;;
1176 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1177 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178 no_recursion=yes ;;
1180 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1181 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1182 | --oldin | --oldi | --old | --ol | --o)
1183 ac_prev=oldincludedir ;;
1184 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1185 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1186 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1187 oldincludedir=$ac_optarg ;;
1189 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190 ac_prev=prefix ;;
1191 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1192 prefix=$ac_optarg ;;
1194 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1195 | --program-pre | --program-pr | --program-p)
1196 ac_prev=program_prefix ;;
1197 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1198 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1199 program_prefix=$ac_optarg ;;
1201 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1202 | --program-suf | --program-su | --program-s)
1203 ac_prev=program_suffix ;;
1204 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1205 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1206 program_suffix=$ac_optarg ;;
1208 -program-transform-name | --program-transform-name \
1209 | --program-transform-nam | --program-transform-na \
1210 | --program-transform-n | --program-transform- \
1211 | --program-transform | --program-transfor \
1212 | --program-transfo | --program-transf \
1213 | --program-trans | --program-tran \
1214 | --progr-tra | --program-tr | --program-t)
1215 ac_prev=program_transform_name ;;
1216 -program-transform-name=* | --program-transform-name=* \
1217 | --program-transform-nam=* | --program-transform-na=* \
1218 | --program-transform-n=* | --program-transform-=* \
1219 | --program-transform=* | --program-transfor=* \
1220 | --program-transfo=* | --program-transf=* \
1221 | --program-trans=* | --program-tran=* \
1222 | --progr-tra=* | --program-tr=* | --program-t=*)
1223 program_transform_name=$ac_optarg ;;
1225 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226 ac_prev=pdfdir ;;
1227 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1228 pdfdir=$ac_optarg ;;
1230 -psdir | --psdir | --psdi | --psd | --ps)
1231 ac_prev=psdir ;;
1232 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233 psdir=$ac_optarg ;;
1235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236 | -silent | --silent | --silen | --sile | --sil)
1237 silent=yes ;;
1239 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240 ac_prev=sbindir ;;
1241 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242 | --sbi=* | --sb=*)
1243 sbindir=$ac_optarg ;;
1245 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1246 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1247 | --sharedst | --shareds | --shared | --share | --shar \
1248 | --sha | --sh)
1249 ac_prev=sharedstatedir ;;
1250 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1251 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1252 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253 | --sha=* | --sh=*)
1254 sharedstatedir=$ac_optarg ;;
1256 -site | --site | --sit)
1257 ac_prev=site ;;
1258 -site=* | --site=* | --sit=*)
1259 site=$ac_optarg ;;
1261 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262 ac_prev=srcdir ;;
1263 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1264 srcdir=$ac_optarg ;;
1266 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1267 | --syscon | --sysco | --sysc | --sys | --sy)
1268 ac_prev=sysconfdir ;;
1269 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1270 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1271 sysconfdir=$ac_optarg ;;
1273 -target | --target | --targe | --targ | --tar | --ta | --t)
1274 ac_prev=target_alias ;;
1275 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1276 target_alias=$ac_optarg ;;
1278 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279 verbose=yes ;;
1281 -version | --version | --versio | --versi | --vers | -V)
1282 ac_init_version=: ;;
1284 -with-* | --with-*)
1285 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1289 { (exit 1); exit 1; }; }
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=\$ac_optarg ;;
1301 -without-* | --without-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1306 { (exit 1); exit 1; }; }
1307 ac_useropt_orig=$ac_useropt
1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1309 case $ac_user_opts in
1311 "with_$ac_useropt"
1312 "*) ;;
1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1314 ac_unrecognized_sep=', ';;
1315 esac
1316 eval with_$ac_useropt=no ;;
1318 --x)
1319 # Obsolete; use --with-x.
1320 with_x=yes ;;
1322 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1323 | --x-incl | --x-inc | --x-in | --x-i)
1324 ac_prev=x_includes ;;
1325 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1326 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1327 x_includes=$ac_optarg ;;
1329 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1330 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1331 ac_prev=x_libraries ;;
1332 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1333 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1334 x_libraries=$ac_optarg ;;
1336 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1337 Try \`$0 --help' for more information." >&2
1338 { (exit 1); exit 1; }; }
1341 *=*)
1342 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1343 # Reject names that are not valid shell variable names.
1344 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1345 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1346 { (exit 1); exit 1; }; }
1347 eval $ac_envvar=\$ac_optarg
1348 export $ac_envvar ;;
1351 # FIXME: should be removed in autoconf 3.0.
1352 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1353 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1354 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1355 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1358 esac
1359 done
1361 if test -n "$ac_prev"; then
1362 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1363 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1364 { (exit 1); exit 1; }; }
1367 if test -n "$ac_unrecognized_opts"; then
1368 case $enable_option_checking in
1369 no) ;;
1370 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1371 { (exit 1); exit 1; }; } ;;
1372 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1373 esac
1376 # Check all directory arguments for consistency.
1377 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1378 datadir sysconfdir sharedstatedir localstatedir includedir \
1379 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1380 libdir localedir mandir
1382 eval ac_val=\$$ac_var
1383 # Remove trailing slashes.
1384 case $ac_val in
1385 */ )
1386 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1387 eval $ac_var=\$ac_val;;
1388 esac
1389 # Be sure to have absolute directory names.
1390 case $ac_val in
1391 [\\/$]* | ?:[\\/]* ) continue;;
1392 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1393 esac
1394 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1395 { (exit 1); exit 1; }; }
1396 done
1398 # There might be people who depend on the old broken behavior: `$host'
1399 # used to hold the argument of --host etc.
1400 # FIXME: To remove some day.
1401 build=$build_alias
1402 host=$host_alias
1403 target=$target_alias
1405 # FIXME: To remove some day.
1406 if test "x$host_alias" != x; then
1407 if test "x$build_alias" = x; then
1408 cross_compiling=maybe
1409 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1410 If a cross compiler is detected then cross compile mode will be used." >&2
1411 elif test "x$build_alias" != "x$host_alias"; then
1412 cross_compiling=yes
1416 ac_tool_prefix=
1417 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1419 test "$silent" = yes && exec 6>/dev/null
1422 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di=`ls -di .` &&
1424 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1425 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1426 { (exit 1); exit 1; }; }
1427 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1428 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1429 { (exit 1); exit 1; }; }
1432 # Find the source files, if location was not specified.
1433 if test -z "$srcdir"; then
1434 ac_srcdir_defaulted=yes
1435 # Try the directory containing this script, then the parent directory.
1436 ac_confdir=`$as_dirname -- "$as_myself" ||
1437 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1438 X"$as_myself" : 'X\(//\)[^/]' \| \
1439 X"$as_myself" : 'X\(//\)$' \| \
1440 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1441 $as_echo X"$as_myself" |
1442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443 s//\1/
1446 /^X\(\/\/\)[^/].*/{
1447 s//\1/
1450 /^X\(\/\/\)$/{
1451 s//\1/
1454 /^X\(\/\).*/{
1455 s//\1/
1458 s/.*/./; q'`
1459 srcdir=$ac_confdir
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 srcdir=..
1463 else
1464 ac_srcdir_defaulted=no
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1468 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1469 { (exit 1); exit 1; }; }
1471 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1472 ac_abs_confdir=`(
1473 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1474 { (exit 1); exit 1; }; }
1475 pwd)`
1476 # When building in place, set srcdir=.
1477 if test "$ac_abs_confdir" = "$ac_pwd"; then
1478 srcdir=.
1480 # Remove unnecessary trailing slashes from srcdir.
1481 # Double slashes in file names in object file debugging info
1482 # mess up M-x gdb in Emacs.
1483 case $srcdir in
1484 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1485 esac
1486 for ac_var in $ac_precious_vars; do
1487 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1488 eval ac_env_${ac_var}_value=\$${ac_var}
1489 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1490 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1491 done
1494 # Report the --help message.
1496 if test "$ac_init_help" = "long"; then
1497 # Omit some internal or obsolete options to make the list less imposing.
1498 # This message is too long to be a string in the A/UX 3.1 sh.
1499 cat <<_ACEOF
1500 \`configure' configures this package to adapt to many kinds of systems.
1502 Usage: $0 [OPTION]... [VAR=VALUE]...
1504 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1505 VAR=VALUE. See below for descriptions of some of the useful variables.
1507 Defaults for the options are specified in brackets.
1509 Configuration:
1510 -h, --help display this help and exit
1511 --help=short display options specific to this package
1512 --help=recursive display the short help of all the included packages
1513 -V, --version display version information and exit
1514 -q, --quiet, --silent do not print \`checking...' messages
1515 --cache-file=FILE cache test results in FILE [disabled]
1516 -C, --config-cache alias for \`--cache-file=config.cache'
1517 -n, --no-create do not create output files
1518 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1520 Installation directories:
1521 --prefix=PREFIX install architecture-independent files in PREFIX
1522 [$ac_default_prefix]
1523 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1524 [PREFIX]
1526 By default, \`make install' will install all the files in
1527 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1528 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1529 for instance \`--prefix=\$HOME'.
1531 For better control, use the options below.
1533 Fine tuning of the installation directories:
1534 --bindir=DIR user executables [EPREFIX/bin]
1535 --sbindir=DIR system admin executables [EPREFIX/sbin]
1536 --libexecdir=DIR program executables [EPREFIX/libexec]
1537 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1538 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1539 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1553 _ACEOF
1555 cat <<\_ACEOF
1557 Program names:
1558 --program-prefix=PREFIX prepend PREFIX to installed program names
1559 --program-suffix=SUFFIX append SUFFIX to installed program names
1560 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1562 System types:
1563 --build=BUILD configure for building on BUILD [guessed]
1564 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1565 --target=TARGET configure for building compilers for TARGET [HOST]
1566 _ACEOF
1569 if test -n "$ac_init_help"; then
1571 cat <<\_ACEOF
1573 Optional Features:
1574 --disable-option-checking ignore unrecognized --enable/--with options
1575 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1576 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1577 --enable-maintainer-mode enable make rules and dependencies not useful
1578 (and sometimes confusing) to the casual installer
1579 --enable-shared[=PKGS] build shared libraries [default=yes]
1580 --enable-static[=PKGS] build static libraries [default=yes]
1581 --enable-fast-install[=PKGS]
1582 optimize for fast installation [default=yes]
1583 --disable-dependency-tracking speeds up one-time build
1584 --enable-dependency-tracking do not reject slow dependency extractors
1585 --disable-libtool-lock avoid locking (might break parallel builds)
1586 --disable-sdltest Do not try to compile and run a test SDL program
1588 Optional Packages:
1589 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1590 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1591 --with-pic try to use only PIC/non-PIC objects [default=use
1592 both]
1593 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1594 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1595 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1597 Some influential environment variables:
1598 CC C compiler command
1599 CFLAGS C compiler flags
1600 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1601 nonstandard directory <lib dir>
1602 LIBS libraries to pass to the linker, e.g. -l<library>
1603 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1604 you have headers in a nonstandard directory <include dir>
1605 CPP C preprocessor
1606 PKG_CONFIG path to pkg-config utility
1607 PANGO_CFLAGS
1608 C compiler flags for PANGO, overriding pkg-config
1609 PANGO_LIBS linker flags for PANGO, overriding pkg-config
1610 PANGOFT2_CFLAGS
1611 C compiler flags for PANGOFT2, overriding pkg-config
1612 PANGOFT2_LIBS
1613 linker flags for PANGOFT2, overriding pkg-config
1615 Use these variables to override the choices made by `configure' or to help
1616 it to find libraries and programs with nonstandard names/locations.
1618 _ACEOF
1619 ac_status=$?
1622 if test "$ac_init_help" = "recursive"; then
1623 # If there are subdirs, report their specific --help.
1624 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1625 test -d "$ac_dir" ||
1626 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1627 continue
1628 ac_builddir=.
1630 case "$ac_dir" in
1631 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1634 # A ".." for each directory in $ac_dir_suffix.
1635 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1636 case $ac_top_builddir_sub in
1637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1639 esac ;;
1640 esac
1641 ac_abs_top_builddir=$ac_pwd
1642 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1643 # for backward compatibility:
1644 ac_top_builddir=$ac_top_build_prefix
1646 case $srcdir in
1647 .) # We are building in place.
1648 ac_srcdir=.
1649 ac_top_srcdir=$ac_top_builddir_sub
1650 ac_abs_top_srcdir=$ac_pwd ;;
1651 [\\/]* | ?:[\\/]* ) # Absolute name.
1652 ac_srcdir=$srcdir$ac_dir_suffix;
1653 ac_top_srcdir=$srcdir
1654 ac_abs_top_srcdir=$srcdir ;;
1655 *) # Relative name.
1656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1657 ac_top_srcdir=$ac_top_build_prefix$srcdir
1658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1659 esac
1660 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1662 cd "$ac_dir" || { ac_status=$?; continue; }
1663 # Check for guested configure.
1664 if test -f "$ac_srcdir/configure.gnu"; then
1665 echo &&
1666 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1667 elif test -f "$ac_srcdir/configure"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure" --help=recursive
1670 else
1671 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1672 fi || ac_status=$?
1673 cd "$ac_pwd" || { ac_status=$?; break; }
1674 done
1677 test -n "$ac_init_help" && exit $ac_status
1678 if $ac_init_version; then
1679 cat <<\_ACEOF
1680 configure
1681 generated by GNU Autoconf 2.63
1683 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1684 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1685 This configure script is free software; the Free Software Foundation
1686 gives unlimited permission to copy, distribute and modify it.
1687 _ACEOF
1688 exit
1690 cat >config.log <<_ACEOF
1691 This file contains any messages produced by compilers while
1692 running configure, to aid debugging if configure makes a mistake.
1694 It was created by $as_me, which was
1695 generated by GNU Autoconf 2.63. Invocation command line was
1697 $ $0 $@
1699 _ACEOF
1700 exec 5>>config.log
1702 cat <<_ASUNAME
1703 ## --------- ##
1704 ## Platform. ##
1705 ## --------- ##
1707 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1708 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1709 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1710 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1711 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1713 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1714 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1716 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1717 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1718 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1719 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1720 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1721 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1722 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1724 _ASUNAME
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 for as_dir in $PATH
1729 IFS=$as_save_IFS
1730 test -z "$as_dir" && as_dir=.
1731 $as_echo "PATH: $as_dir"
1732 done
1733 IFS=$as_save_IFS
1735 } >&5
1737 cat >&5 <<_ACEOF
1740 ## ----------- ##
1741 ## Core tests. ##
1742 ## ----------- ##
1744 _ACEOF
1747 # Keep a trace of the command line.
1748 # Strip out --no-create and --no-recursion so they do not pile up.
1749 # Strip out --silent because we don't want to record it for future runs.
1750 # Also quote any args containing shell meta-characters.
1751 # Make two passes to allow for proper duplicate-argument suppression.
1752 ac_configure_args=
1753 ac_configure_args0=
1754 ac_configure_args1=
1755 ac_must_keep_next=false
1756 for ac_pass in 1 2
1758 for ac_arg
1760 case $ac_arg in
1761 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1763 | -silent | --silent | --silen | --sile | --sil)
1764 continue ;;
1765 *\'*)
1766 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1767 esac
1768 case $ac_pass in
1769 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1771 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1772 if test $ac_must_keep_next = true; then
1773 ac_must_keep_next=false # Got value, back to normal.
1774 else
1775 case $ac_arg in
1776 *=* | --config-cache | -C | -disable-* | --disable-* \
1777 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1778 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1779 | -with-* | --with-* | -without-* | --without-* | --x)
1780 case "$ac_configure_args0 " in
1781 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1782 esac
1784 -* ) ac_must_keep_next=true ;;
1785 esac
1787 ac_configure_args="$ac_configure_args '$ac_arg'"
1789 esac
1790 done
1791 done
1792 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1793 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1795 # When interrupted or exit'd, cleanup temporary files, and complete
1796 # config.log. We remove comments because anyway the quotes in there
1797 # would cause problems or look ugly.
1798 # WARNING: Use '\'' to represent an apostrophe within the trap.
1799 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1800 trap 'exit_status=$?
1801 # Save into config.log some information that might help in debugging.
1803 echo
1805 cat <<\_ASBOX
1806 ## ---------------- ##
1807 ## Cache variables. ##
1808 ## ---------------- ##
1809 _ASBOX
1810 echo
1811 # The following way of writing the cache mishandles newlines in values,
1813 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1814 eval ac_val=\$$ac_var
1815 case $ac_val in #(
1816 *${as_nl}*)
1817 case $ac_var in #(
1818 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1819 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1820 esac
1821 case $ac_var in #(
1822 _ | IFS | as_nl) ;; #(
1823 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1824 *) $as_unset $ac_var ;;
1825 esac ;;
1826 esac
1827 done
1828 (set) 2>&1 |
1829 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1830 *${as_nl}ac_space=\ *)
1831 sed -n \
1832 "s/'\''/'\''\\\\'\'''\''/g;
1833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1834 ;; #(
1836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1838 esac |
1839 sort
1841 echo
1843 cat <<\_ASBOX
1844 ## ----------------- ##
1845 ## Output variables. ##
1846 ## ----------------- ##
1847 _ASBOX
1848 echo
1849 for ac_var in $ac_subst_vars
1851 eval ac_val=\$$ac_var
1852 case $ac_val in
1853 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 esac
1855 $as_echo "$ac_var='\''$ac_val'\''"
1856 done | sort
1857 echo
1859 if test -n "$ac_subst_files"; then
1860 cat <<\_ASBOX
1861 ## ------------------- ##
1862 ## File substitutions. ##
1863 ## ------------------- ##
1864 _ASBOX
1865 echo
1866 for ac_var in $ac_subst_files
1868 eval ac_val=\$$ac_var
1869 case $ac_val in
1870 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1871 esac
1872 $as_echo "$ac_var='\''$ac_val'\''"
1873 done | sort
1874 echo
1877 if test -s confdefs.h; then
1878 cat <<\_ASBOX
1879 ## ----------- ##
1880 ## confdefs.h. ##
1881 ## ----------- ##
1882 _ASBOX
1883 echo
1884 cat confdefs.h
1885 echo
1887 test "$ac_signal" != 0 &&
1888 $as_echo "$as_me: caught signal $ac_signal"
1889 $as_echo "$as_me: exit $exit_status"
1890 } >&5
1891 rm -f core *.core core.conftest.* &&
1892 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1893 exit $exit_status
1895 for ac_signal in 1 2 13 15; do
1896 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1897 done
1898 ac_signal=0
1900 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1901 rm -f -r conftest* confdefs.h
1903 # Predefined preprocessor variables.
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_NAME "$PACKAGE_NAME"
1907 _ACEOF
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1912 _ACEOF
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1917 _ACEOF
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_STRING "$PACKAGE_STRING"
1922 _ACEOF
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1927 _ACEOF
1930 # Let the site file select an alternate cache file if it wants to.
1931 # Prefer an explicitly selected file to automatically selected ones.
1932 ac_site_file1=NONE
1933 ac_site_file2=NONE
1934 if test -n "$CONFIG_SITE"; then
1935 ac_site_file1=$CONFIG_SITE
1936 elif test "x$prefix" != xNONE; then
1937 ac_site_file1=$prefix/share/config.site
1938 ac_site_file2=$prefix/etc/config.site
1939 else
1940 ac_site_file1=$ac_default_prefix/share/config.site
1941 ac_site_file2=$ac_default_prefix/etc/config.site
1943 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1945 test "x$ac_site_file" = xNONE && continue
1946 if test -r "$ac_site_file"; then
1947 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1948 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1949 sed 's/^/| /' "$ac_site_file" >&5
1950 . "$ac_site_file"
1952 done
1954 if test -r "$cache_file"; then
1955 # Some versions of bash will fail to source /dev/null (special
1956 # files actually), so we avoid doing that.
1957 if test -f "$cache_file"; then
1958 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1959 $as_echo "$as_me: loading cache $cache_file" >&6;}
1960 case $cache_file in
1961 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1962 *) . "./$cache_file";;
1963 esac
1965 else
1966 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1967 $as_echo "$as_me: creating cache $cache_file" >&6;}
1968 >$cache_file
1971 # Check that the precious variables saved in the cache have kept the same
1972 # value.
1973 ac_cache_corrupted=false
1974 for ac_var in $ac_precious_vars; do
1975 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1976 eval ac_new_set=\$ac_env_${ac_var}_set
1977 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1978 eval ac_new_val=\$ac_env_${ac_var}_value
1979 case $ac_old_set,$ac_new_set in
1980 set,)
1981 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1982 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1983 ac_cache_corrupted=: ;;
1984 ,set)
1985 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1986 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1987 ac_cache_corrupted=: ;;
1988 ,);;
1990 if test "x$ac_old_val" != "x$ac_new_val"; then
1991 # differences in whitespace do not lead to failure.
1992 ac_old_val_w=`echo x $ac_old_val`
1993 ac_new_val_w=`echo x $ac_new_val`
1994 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1995 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1996 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1997 ac_cache_corrupted=:
1998 else
1999 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2000 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2001 eval $ac_var=\$ac_old_val
2003 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2004 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2005 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2006 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2007 fi;;
2008 esac
2009 # Pass precious variables to config.status.
2010 if test "$ac_new_set" = set; then
2011 case $ac_new_val in
2012 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2013 *) ac_arg=$ac_var=$ac_new_val ;;
2014 esac
2015 case " $ac_configure_args " in
2016 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2017 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2018 esac
2020 done
2021 if $ac_cache_corrupted; then
2022 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2024 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2025 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2026 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2027 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2028 { (exit 1); exit 1; }; }
2047 ac_ext=c
2048 ac_cpp='$CPP $CPPFLAGS'
2049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2055 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2056 # Check whether --enable-maintainer-mode was given.
2057 if test "${enable_maintainer_mode+set}" = set; then
2058 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2059 else
2060 USE_MAINTAINER_MODE=no
2063 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2064 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2065 if test $USE_MAINTAINER_MODE = yes; then
2066 MAINTAINER_MODE_TRUE=
2067 MAINTAINER_MODE_FALSE='#'
2068 else
2069 MAINTAINER_MODE_TRUE='#'
2070 MAINTAINER_MODE_FALSE=
2073 MAINT=$MAINTAINER_MODE_TRUE
2077 # Set various version strings - taken gratefully from the GTk sources
2079 # Making releases:
2080 # MICRO_VERSION += 1;
2081 # INTERFACE_AGE += 1;
2082 # BINARY_AGE += 1;
2083 # if any functions have been added, set INTERFACE_AGE to 0.
2084 # if backwards compatibility has been broken,
2085 # set BINARY_AGE and INTERFACE_AGE to 0.
2087 MAJOR_VERSION=0
2088 MINOR_VERSION=1
2089 MICRO_VERSION=2
2090 INTERFACE_AGE=0
2091 BINARY_AGE=1
2092 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
2101 # libtool versioning
2103 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
2104 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
2105 LT_REVISION=$INTERFACE_AGE
2106 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
2113 # Detect the canonical host and target build environment
2115 ac_aux_dir=
2116 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2117 if test -f "$ac_dir/install-sh"; then
2118 ac_aux_dir=$ac_dir
2119 ac_install_sh="$ac_aux_dir/install-sh -c"
2120 break
2121 elif test -f "$ac_dir/install.sh"; then
2122 ac_aux_dir=$ac_dir
2123 ac_install_sh="$ac_aux_dir/install.sh -c"
2124 break
2125 elif test -f "$ac_dir/shtool"; then
2126 ac_aux_dir=$ac_dir
2127 ac_install_sh="$ac_aux_dir/shtool install -c"
2128 break
2130 done
2131 if test -z "$ac_aux_dir"; then
2132 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2133 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2134 { (exit 1); exit 1; }; }
2137 # These three variables are undocumented and unsupported,
2138 # and are intended to be withdrawn in a future Autoconf release.
2139 # They can cause serious problems if a builder's source tree is in a directory
2140 # whose full name contains unusual characters.
2141 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2142 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2143 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2146 # Make sure we can run config.sub.
2147 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2148 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2149 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2150 { (exit 1); exit 1; }; }
2152 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2153 $as_echo_n "checking build system type... " >&6; }
2154 if test "${ac_cv_build+set}" = set; then
2155 $as_echo_n "(cached) " >&6
2156 else
2157 ac_build_alias=$build_alias
2158 test "x$ac_build_alias" = x &&
2159 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2160 test "x$ac_build_alias" = x &&
2161 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2162 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2163 { (exit 1); exit 1; }; }
2164 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2165 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2166 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2167 { (exit 1); exit 1; }; }
2170 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2171 $as_echo "$ac_cv_build" >&6; }
2172 case $ac_cv_build in
2173 *-*-*) ;;
2174 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2175 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2176 { (exit 1); exit 1; }; };;
2177 esac
2178 build=$ac_cv_build
2179 ac_save_IFS=$IFS; IFS='-'
2180 set x $ac_cv_build
2181 shift
2182 build_cpu=$1
2183 build_vendor=$2
2184 shift; shift
2185 # Remember, the first character of IFS is used to create $*,
2186 # except with old shells:
2187 build_os=$*
2188 IFS=$ac_save_IFS
2189 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2192 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2193 $as_echo_n "checking host system type... " >&6; }
2194 if test "${ac_cv_host+set}" = set; then
2195 $as_echo_n "(cached) " >&6
2196 else
2197 if test "x$host_alias" = x; then
2198 ac_cv_host=$ac_cv_build
2199 else
2200 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2201 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2202 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2203 { (exit 1); exit 1; }; }
2207 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2208 $as_echo "$ac_cv_host" >&6; }
2209 case $ac_cv_host in
2210 *-*-*) ;;
2211 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2212 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2213 { (exit 1); exit 1; }; };;
2214 esac
2215 host=$ac_cv_host
2216 ac_save_IFS=$IFS; IFS='-'
2217 set x $ac_cv_host
2218 shift
2219 host_cpu=$1
2220 host_vendor=$2
2221 shift; shift
2222 # Remember, the first character of IFS is used to create $*,
2223 # except with old shells:
2224 host_os=$*
2225 IFS=$ac_save_IFS
2226 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2229 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2230 $as_echo_n "checking target system type... " >&6; }
2231 if test "${ac_cv_target+set}" = set; then
2232 $as_echo_n "(cached) " >&6
2233 else
2234 if test "x$target_alias" = x; then
2235 ac_cv_target=$ac_cv_host
2236 else
2237 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2238 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2239 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2240 { (exit 1); exit 1; }; }
2244 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2245 $as_echo "$ac_cv_target" >&6; }
2246 case $ac_cv_target in
2247 *-*-*) ;;
2248 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2249 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2250 { (exit 1); exit 1; }; };;
2251 esac
2252 target=$ac_cv_target
2253 ac_save_IFS=$IFS; IFS='-'
2254 set x $ac_cv_target
2255 shift
2256 target_cpu=$1
2257 target_vendor=$2
2258 shift; shift
2259 # Remember, the first character of IFS is used to create $*,
2260 # except with old shells:
2261 target_os=$*
2262 IFS=$ac_save_IFS
2263 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2266 # The aliases save the names the user supplied, while $host etc.
2267 # will get canonicalized.
2268 test -n "$target_alias" &&
2269 test "$program_prefix$program_suffix$program_transform_name" = \
2270 NONENONEs,x,x, &&
2271 program_prefix=${target_alias}-
2273 # Setup for automake
2275 am__api_version='1.10'
2277 # Find a good install program. We prefer a C program (faster),
2278 # so one script is as good as another. But avoid the broken or
2279 # incompatible versions:
2280 # SysV /etc/install, /usr/sbin/install
2281 # SunOS /usr/etc/install
2282 # IRIX /sbin/install
2283 # AIX /bin/install
2284 # AmigaOS /C/install, which installs bootblocks on floppy discs
2285 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2286 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2287 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2288 # OS/2's system install, which has a completely different semantic
2289 # ./install, which can be erroneously created by make from ./install.sh.
2290 # Reject install programs that cannot install multiple files.
2291 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2292 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2293 if test -z "$INSTALL"; then
2294 if test "${ac_cv_path_install+set}" = set; then
2295 $as_echo_n "(cached) " >&6
2296 else
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2300 IFS=$as_save_IFS
2301 test -z "$as_dir" && as_dir=.
2302 # Account for people who put trailing slashes in PATH elements.
2303 case $as_dir/ in
2304 ./ | .// | /cC/* | \
2305 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2306 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2307 /usr/ucb/* ) ;;
2309 # OSF1 and SCO ODT 3.0 have their own names for install.
2310 # Don't use installbsd from OSF since it installs stuff as root
2311 # by default.
2312 for ac_prog in ginstall scoinst install; do
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2315 if test $ac_prog = install &&
2316 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317 # AIX install. It has an incompatible calling convention.
2319 elif test $ac_prog = install &&
2320 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2321 # program-specific install script used by HP pwplus--don't use.
2323 else
2324 rm -rf conftest.one conftest.two conftest.dir
2325 echo one > conftest.one
2326 echo two > conftest.two
2327 mkdir conftest.dir
2328 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2329 test -s conftest.one && test -s conftest.two &&
2330 test -s conftest.dir/conftest.one &&
2331 test -s conftest.dir/conftest.two
2332 then
2333 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2334 break 3
2338 done
2339 done
2341 esac
2343 done
2344 IFS=$as_save_IFS
2346 rm -rf conftest.one conftest.two conftest.dir
2349 if test "${ac_cv_path_install+set}" = set; then
2350 INSTALL=$ac_cv_path_install
2351 else
2352 # As a last resort, use the slow shell script. Don't cache a
2353 # value for INSTALL within a source directory, because that will
2354 # break other packages using the cache if that directory is
2355 # removed, or if the value is a relative name.
2356 INSTALL=$ac_install_sh
2359 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2360 $as_echo "$INSTALL" >&6; }
2362 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2363 # It thinks the first close brace ends the variable substitution.
2364 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2366 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2368 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2370 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2371 $as_echo_n "checking whether build environment is sane... " >&6; }
2372 # Just in case
2373 sleep 1
2374 echo timestamp > conftest.file
2375 # Do `set' in a subshell so we don't clobber the current shell's
2376 # arguments. Must try -L first in case configure is actually a
2377 # symlink; some systems play weird games with the mod time of symlinks
2378 # (eg FreeBSD returns the mod time of the symlink's containing
2379 # directory).
2380 if (
2381 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2382 if test "$*" = "X"; then
2383 # -L didn't work.
2384 set X `ls -t $srcdir/configure conftest.file`
2386 rm -f conftest.file
2387 if test "$*" != "X $srcdir/configure conftest.file" \
2388 && test "$*" != "X conftest.file $srcdir/configure"; then
2390 # If neither matched, then we have a broken ls. This can happen
2391 # if, for instance, CONFIG_SHELL is bash and it inherits a
2392 # broken ls alias from the environment. This has actually
2393 # happened. Such a system could not be considered "sane".
2394 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2395 alias in your environment" >&5
2396 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2397 alias in your environment" >&2;}
2398 { (exit 1); exit 1; }; }
2401 test "$2" = conftest.file
2403 then
2404 # Ok.
2406 else
2407 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2408 Check your system clock" >&5
2409 $as_echo "$as_me: error: newly created file is older than distributed files!
2410 Check your system clock" >&2;}
2411 { (exit 1); exit 1; }; }
2413 { $as_echo "$as_me:$LINENO: result: yes" >&5
2414 $as_echo "yes" >&6; }
2415 test "$program_prefix" != NONE &&
2416 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2417 # Use a double $ so make ignores it.
2418 test "$program_suffix" != NONE &&
2419 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2420 # Double any \ or $.
2421 # By default was `s,x,x', remove it if useless.
2422 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2423 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2425 # expand $ac_aux_dir to an absolute path
2426 am_aux_dir=`cd $ac_aux_dir && pwd`
2428 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2429 # Use eval to expand $SHELL
2430 if eval "$MISSING --run true"; then
2431 am_missing_run="$MISSING --run "
2432 else
2433 am_missing_run=
2434 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2435 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2438 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2439 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2440 if test -z "$MKDIR_P"; then
2441 if test "${ac_cv_path_mkdir+set}" = set; then
2442 $as_echo_n "(cached) " >&6
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_prog in mkdir gmkdir; do
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2452 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2453 'mkdir (GNU coreutils) '* | \
2454 'mkdir (coreutils) '* | \
2455 'mkdir (fileutils) '4.1*)
2456 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2457 break 3;;
2458 esac
2459 done
2460 done
2461 done
2462 IFS=$as_save_IFS
2466 if test "${ac_cv_path_mkdir+set}" = set; then
2467 MKDIR_P="$ac_cv_path_mkdir -p"
2468 else
2469 # As a last resort, use the slow shell script. Don't cache a
2470 # value for MKDIR_P within a source directory, because that will
2471 # break other packages using the cache if that directory is
2472 # removed, or if the value is a relative name.
2473 test -d ./--version && rmdir ./--version
2474 MKDIR_P="$ac_install_sh -d"
2477 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2478 $as_echo "$MKDIR_P" >&6; }
2480 mkdir_p="$MKDIR_P"
2481 case $mkdir_p in
2482 [\\/$]* | ?:[\\/]*) ;;
2483 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2484 esac
2486 for ac_prog in gawk mawk nawk awk
2488 # Extract the first word of "$ac_prog", so it can be a program name with args.
2489 set dummy $ac_prog; ac_word=$2
2490 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 $as_echo_n "checking for $ac_word... " >&6; }
2492 if test "${ac_cv_prog_AWK+set}" = set; then
2493 $as_echo_n "(cached) " >&6
2494 else
2495 if test -n "$AWK"; then
2496 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_AWK="$ac_prog"
2506 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2509 done
2510 done
2511 IFS=$as_save_IFS
2515 AWK=$ac_cv_prog_AWK
2516 if test -n "$AWK"; then
2517 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2518 $as_echo "$AWK" >&6; }
2519 else
2520 { $as_echo "$as_me:$LINENO: result: no" >&5
2521 $as_echo "no" >&6; }
2525 test -n "$AWK" && break
2526 done
2528 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2529 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2530 set x ${MAKE-make}
2531 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2532 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2533 $as_echo_n "(cached) " >&6
2534 else
2535 cat >conftest.make <<\_ACEOF
2536 SHELL = /bin/sh
2537 all:
2538 @echo '@@@%%%=$(MAKE)=@@@%%%'
2539 _ACEOF
2540 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2541 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2542 *@@@%%%=?*=@@@%%%*)
2543 eval ac_cv_prog_make_${ac_make}_set=yes;;
2545 eval ac_cv_prog_make_${ac_make}_set=no;;
2546 esac
2547 rm -f conftest.make
2549 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2550 { $as_echo "$as_me:$LINENO: result: yes" >&5
2551 $as_echo "yes" >&6; }
2552 SET_MAKE=
2553 else
2554 { $as_echo "$as_me:$LINENO: result: no" >&5
2555 $as_echo "no" >&6; }
2556 SET_MAKE="MAKE=${MAKE-make}"
2559 rm -rf .tst 2>/dev/null
2560 mkdir .tst 2>/dev/null
2561 if test -d .tst; then
2562 am__leading_dot=.
2563 else
2564 am__leading_dot=_
2566 rmdir .tst 2>/dev/null
2568 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2569 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2570 # is not polluted with repeated "-I."
2571 am__isrc=' -I$(srcdir)'
2572 # test to see if srcdir already configured
2573 if test -f $srcdir/config.status; then
2574 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2575 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2576 { (exit 1); exit 1; }; }
2580 # test whether we have cygpath
2581 if test -z "$CYGPATH_W"; then
2582 if (cygpath --version) >/dev/null 2>/dev/null; then
2583 CYGPATH_W='cygpath -w'
2584 else
2585 CYGPATH_W=echo
2590 # Define the identity of the package.
2591 PACKAGE=SDL_Pango
2592 VERSION=$VERSION
2595 cat >>confdefs.h <<_ACEOF
2596 #define PACKAGE "$PACKAGE"
2597 _ACEOF
2600 cat >>confdefs.h <<_ACEOF
2601 #define VERSION "$VERSION"
2602 _ACEOF
2604 # Some tools Automake needs.
2606 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2609 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2612 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2615 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2618 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2620 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2622 # Installed binaries are usually stripped using `strip' when the user
2623 # run `make install-strip'. However `strip' might not be the right
2624 # tool to use in cross-compilation environments, therefore Automake
2625 # will honor the `STRIP' environment variable to overrule this program.
2626 if test "$cross_compiling" != no; then
2627 if test -n "$ac_tool_prefix"; then
2628 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2629 set dummy ${ac_tool_prefix}strip; ac_word=$2
2630 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if test "${ac_cv_prog_STRIP+set}" = set; then
2633 $as_echo_n "(cached) " >&6
2634 else
2635 if test -n "$STRIP"; then
2636 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2646 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2649 done
2650 done
2651 IFS=$as_save_IFS
2655 STRIP=$ac_cv_prog_STRIP
2656 if test -n "$STRIP"; then
2657 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2658 $as_echo "$STRIP" >&6; }
2659 else
2660 { $as_echo "$as_me:$LINENO: result: no" >&5
2661 $as_echo "no" >&6; }
2666 if test -z "$ac_cv_prog_STRIP"; then
2667 ac_ct_STRIP=$STRIP
2668 # Extract the first word of "strip", so it can be a program name with args.
2669 set dummy strip; ac_word=$2
2670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2673 $as_echo_n "(cached) " >&6
2674 else
2675 if test -n "$ac_ct_STRIP"; then
2676 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_ac_ct_STRIP="strip"
2686 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2689 done
2690 done
2691 IFS=$as_save_IFS
2695 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2696 if test -n "$ac_ct_STRIP"; then
2697 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2698 $as_echo "$ac_ct_STRIP" >&6; }
2699 else
2700 { $as_echo "$as_me:$LINENO: result: no" >&5
2701 $as_echo "no" >&6; }
2704 if test "x$ac_ct_STRIP" = x; then
2705 STRIP=":"
2706 else
2707 case $cross_compiling:$ac_tool_warned in
2708 yes:)
2709 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2711 ac_tool_warned=yes ;;
2712 esac
2713 STRIP=$ac_ct_STRIP
2715 else
2716 STRIP="$ac_cv_prog_STRIP"
2720 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2722 # We need awk for the "check" target. The system "awk" is bad on
2723 # some platforms.
2724 # Always define AMTAR for backward compatibility.
2726 AMTAR=${AMTAR-"${am_missing_run}tar"}
2728 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2735 # Check for tools
2737 enable_win32_dll=yes
2739 case $host in
2740 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
2741 if test -n "$ac_tool_prefix"; then
2742 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2743 set dummy ${ac_tool_prefix}as; ac_word=$2
2744 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if test "${ac_cv_prog_AS+set}" = set; then
2747 $as_echo_n "(cached) " >&6
2748 else
2749 if test -n "$AS"; then
2750 ac_cv_prog_AS="$AS" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 ac_cv_prog_AS="${ac_tool_prefix}as"
2760 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2763 done
2764 done
2765 IFS=$as_save_IFS
2769 AS=$ac_cv_prog_AS
2770 if test -n "$AS"; then
2771 { $as_echo "$as_me:$LINENO: result: $AS" >&5
2772 $as_echo "$AS" >&6; }
2773 else
2774 { $as_echo "$as_me:$LINENO: result: no" >&5
2775 $as_echo "no" >&6; }
2780 if test -z "$ac_cv_prog_AS"; then
2781 ac_ct_AS=$AS
2782 # Extract the first word of "as", so it can be a program name with args.
2783 set dummy as; ac_word=$2
2784 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2787 $as_echo_n "(cached) " >&6
2788 else
2789 if test -n "$ac_ct_AS"; then
2790 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_ac_ct_AS="as"
2800 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2803 done
2804 done
2805 IFS=$as_save_IFS
2809 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2810 if test -n "$ac_ct_AS"; then
2811 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2812 $as_echo "$ac_ct_AS" >&6; }
2813 else
2814 { $as_echo "$as_me:$LINENO: result: no" >&5
2815 $as_echo "no" >&6; }
2818 if test "x$ac_ct_AS" = x; then
2819 AS="false"
2820 else
2821 case $cross_compiling:$ac_tool_warned in
2822 yes:)
2823 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825 ac_tool_warned=yes ;;
2826 esac
2827 AS=$ac_ct_AS
2829 else
2830 AS="$ac_cv_prog_AS"
2833 if test -n "$ac_tool_prefix"; then
2834 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2835 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2836 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
2839 $as_echo_n "(cached) " >&6
2840 else
2841 if test -n "$DLLTOOL"; then
2842 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2852 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2855 done
2856 done
2857 IFS=$as_save_IFS
2861 DLLTOOL=$ac_cv_prog_DLLTOOL
2862 if test -n "$DLLTOOL"; then
2863 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
2864 $as_echo "$DLLTOOL" >&6; }
2865 else
2866 { $as_echo "$as_me:$LINENO: result: no" >&5
2867 $as_echo "no" >&6; }
2872 if test -z "$ac_cv_prog_DLLTOOL"; then
2873 ac_ct_DLLTOOL=$DLLTOOL
2874 # Extract the first word of "dlltool", so it can be a program name with args.
2875 set dummy dlltool; ac_word=$2
2876 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
2879 $as_echo_n "(cached) " >&6
2880 else
2881 if test -n "$ac_ct_DLLTOOL"; then
2882 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
2892 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2895 done
2896 done
2897 IFS=$as_save_IFS
2901 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
2902 if test -n "$ac_ct_DLLTOOL"; then
2903 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
2904 $as_echo "$ac_ct_DLLTOOL" >&6; }
2905 else
2906 { $as_echo "$as_me:$LINENO: result: no" >&5
2907 $as_echo "no" >&6; }
2910 if test "x$ac_ct_DLLTOOL" = x; then
2911 DLLTOOL="false"
2912 else
2913 case $cross_compiling:$ac_tool_warned in
2914 yes:)
2915 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2917 ac_tool_warned=yes ;;
2918 esac
2919 DLLTOOL=$ac_ct_DLLTOOL
2921 else
2922 DLLTOOL="$ac_cv_prog_DLLTOOL"
2925 if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2927 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2928 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
2931 $as_echo_n "(cached) " >&6
2932 else
2933 if test -n "$OBJDUMP"; then
2934 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2944 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2947 done
2948 done
2949 IFS=$as_save_IFS
2953 OBJDUMP=$ac_cv_prog_OBJDUMP
2954 if test -n "$OBJDUMP"; then
2955 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
2956 $as_echo "$OBJDUMP" >&6; }
2957 else
2958 { $as_echo "$as_me:$LINENO: result: no" >&5
2959 $as_echo "no" >&6; }
2964 if test -z "$ac_cv_prog_OBJDUMP"; then
2965 ac_ct_OBJDUMP=$OBJDUMP
2966 # Extract the first word of "objdump", so it can be a program name with args.
2967 set dummy objdump; ac_word=$2
2968 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$ac_ct_OBJDUMP"; then
2974 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_ac_ct_OBJDUMP="objdump"
2984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2987 done
2988 done
2989 IFS=$as_save_IFS
2993 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
2994 if test -n "$ac_ct_OBJDUMP"; then
2995 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
2996 $as_echo "$ac_ct_OBJDUMP" >&6; }
2997 else
2998 { $as_echo "$as_me:$LINENO: result: no" >&5
2999 $as_echo "no" >&6; }
3002 if test "x$ac_ct_OBJDUMP" = x; then
3003 OBJDUMP="false"
3004 else
3005 case $cross_compiling:$ac_tool_warned in
3006 yes:)
3007 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009 ac_tool_warned=yes ;;
3010 esac
3011 OBJDUMP=$ac_ct_OBJDUMP
3013 else
3014 OBJDUMP="$ac_cv_prog_OBJDUMP"
3018 esac
3020 test -z "$AS" && AS=as
3026 test -z "$DLLTOOL" && DLLTOOL=dlltool
3032 test -z "$OBJDUMP" && OBJDUMP=objdump
3040 case `pwd` in
3041 *\ * | *\ *)
3042 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3043 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3044 esac
3048 macro_version='2.2.6'
3049 macro_revision='1.3012'
3063 ltmain="$ac_aux_dir/ltmain.sh"
3065 DEPDIR="${am__leading_dot}deps"
3067 ac_config_commands="$ac_config_commands depfiles"
3070 am_make=${MAKE-make}
3071 cat > confinc << 'END'
3072 am__doit:
3073 @echo done
3074 .PHONY: am__doit
3076 # If we don't find an include directive, just comment out the code.
3077 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3078 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3079 am__include="#"
3080 am__quote=
3081 _am_result=none
3082 # First try GNU make style include.
3083 echo "include confinc" > confmf
3084 # We grep out `Entering directory' and `Leaving directory'
3085 # messages which can occur if `w' ends up in MAKEFLAGS.
3086 # In particular we don't look at `^make:' because GNU make might
3087 # be invoked under some other name (usually "gmake"), in which
3088 # case it prints its new name instead of `make'.
3089 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3090 am__include=include
3091 am__quote=
3092 _am_result=GNU
3094 # Now try BSD make style include.
3095 if test "$am__include" = "#"; then
3096 echo '.include "confinc"' > confmf
3097 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3098 am__include=.include
3099 am__quote="\""
3100 _am_result=BSD
3105 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3106 $as_echo "$_am_result" >&6; }
3107 rm -f confinc confmf
3109 # Check whether --enable-dependency-tracking was given.
3110 if test "${enable_dependency_tracking+set}" = set; then
3111 enableval=$enable_dependency_tracking;
3114 if test "x$enable_dependency_tracking" != xno; then
3115 am_depcomp="$ac_aux_dir/depcomp"
3116 AMDEPBACKSLASH='\'
3118 if test "x$enable_dependency_tracking" != xno; then
3119 AMDEP_TRUE=
3120 AMDEP_FALSE='#'
3121 else
3122 AMDEP_TRUE='#'
3123 AMDEP_FALSE=
3127 ac_ext=c
3128 ac_cpp='$CPP $CPPFLAGS'
3129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132 if test -n "$ac_tool_prefix"; then
3133 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if test "${ac_cv_prog_CC+set}" = set; then
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3154 done
3155 done
3156 IFS=$as_save_IFS
3160 CC=$ac_cv_prog_CC
3161 if test -n "$CC"; then
3162 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3164 else
3165 { $as_echo "$as_me:$LINENO: result: no" >&5
3166 $as_echo "no" >&6; }
3171 if test -z "$ac_cv_prog_CC"; then
3172 ac_ct_CC=$CC
3173 # Extract the first word of "gcc", so it can be a program name with args.
3174 set dummy gcc; ac_word=$2
3175 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$ac_ct_CC"; then
3181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190 ac_cv_prog_ac_ct_CC="gcc"
3191 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3194 done
3195 done
3196 IFS=$as_save_IFS
3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201 if test -n "$ac_ct_CC"; then
3202 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3203 $as_echo "$ac_ct_CC" >&6; }
3204 else
3205 { $as_echo "$as_me:$LINENO: result: no" >&5
3206 $as_echo "no" >&6; }
3209 if test "x$ac_ct_CC" = x; then
3210 CC=""
3211 else
3212 case $cross_compiling:$ac_tool_warned in
3213 yes:)
3214 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3216 ac_tool_warned=yes ;;
3217 esac
3218 CC=$ac_ct_CC
3220 else
3221 CC="$ac_cv_prog_CC"
3224 if test -z "$CC"; then
3225 if test -n "$ac_tool_prefix"; then
3226 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3227 set dummy ${ac_tool_prefix}cc; ac_word=$2
3228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if test "${ac_cv_prog_CC+set}" = set; then
3231 $as_echo_n "(cached) " >&6
3232 else
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_prog_CC="${ac_tool_prefix}cc"
3244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3247 done
3248 done
3249 IFS=$as_save_IFS
3253 CC=$ac_cv_prog_CC
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3257 else
3258 { $as_echo "$as_me:$LINENO: result: no" >&5
3259 $as_echo "no" >&6; }
3265 if test -z "$CC"; then
3266 # Extract the first word of "cc", so it can be a program name with args.
3267 set dummy cc; ac_word=$2
3268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if test "${ac_cv_prog_CC+set}" = set; then
3271 $as_echo_n "(cached) " >&6
3272 else
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3275 else
3276 ac_prog_rejected=no
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3285 ac_prog_rejected=yes
3286 continue
3288 ac_cv_prog_CC="cc"
3289 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3292 done
3293 done
3294 IFS=$as_save_IFS
3296 if test $ac_prog_rejected = yes; then
3297 # We found a bogon in the path, so make sure we never use it.
3298 set dummy $ac_cv_prog_CC
3299 shift
3300 if test $# != 0; then
3301 # We chose a different compiler from the bogus one.
3302 # However, it has the same basename, so the bogon will be chosen
3303 # first if we set CC to just the basename; use the full file name.
3304 shift
3305 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3310 CC=$ac_cv_prog_CC
3311 if test -n "$CC"; then
3312 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3314 else
3315 { $as_echo "$as_me:$LINENO: result: no" >&5
3316 $as_echo "no" >&6; }
3321 if test -z "$CC"; then
3322 if test -n "$ac_tool_prefix"; then
3323 for ac_prog in cl.exe
3325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if test "${ac_cv_prog_CC+set}" = set; then
3330 $as_echo_n "(cached) " >&6
3331 else
3332 if test -n "$CC"; then
3333 ac_cv_prog_CC="$CC" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 break 2
3346 done
3347 done
3348 IFS=$as_save_IFS
3352 CC=$ac_cv_prog_CC
3353 if test -n "$CC"; then
3354 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3355 $as_echo "$CC" >&6; }
3356 else
3357 { $as_echo "$as_me:$LINENO: result: no" >&5
3358 $as_echo "no" >&6; }
3362 test -n "$CC" && break
3363 done
3365 if test -z "$CC"; then
3366 ac_ct_CC=$CC
3367 for ac_prog in cl.exe
3369 # Extract the first word of "$ac_prog", so it can be a program name with args.
3370 set dummy $ac_prog; ac_word=$2
3371 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3374 $as_echo_n "(cached) " >&6
3375 else
3376 if test -n "$ac_ct_CC"; then
3377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386 ac_cv_prog_ac_ct_CC="$ac_prog"
3387 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3388 break 2
3390 done
3391 done
3392 IFS=$as_save_IFS
3396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3397 if test -n "$ac_ct_CC"; then
3398 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3399 $as_echo "$ac_ct_CC" >&6; }
3400 else
3401 { $as_echo "$as_me:$LINENO: result: no" >&5
3402 $as_echo "no" >&6; }
3406 test -n "$ac_ct_CC" && break
3407 done
3409 if test "x$ac_ct_CC" = x; then
3410 CC=""
3411 else
3412 case $cross_compiling:$ac_tool_warned in
3413 yes:)
3414 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3416 ac_tool_warned=yes ;;
3417 esac
3418 CC=$ac_ct_CC
3425 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3428 See \`config.log' for more details." >&5
3429 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3430 See \`config.log' for more details." >&2;}
3431 { (exit 1); exit 1; }; }; }
3433 # Provide some information about the compiler.
3434 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3435 set X $ac_compile
3436 ac_compiler=$2
3437 { (ac_try="$ac_compiler --version >&5"
3438 case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3443 $as_echo "$ac_try_echo") >&5
3444 (eval "$ac_compiler --version >&5") 2>&5
3445 ac_status=$?
3446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }
3448 { (ac_try="$ac_compiler -v >&5"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3454 $as_echo "$ac_try_echo") >&5
3455 (eval "$ac_compiler -v >&5") 2>&5
3456 ac_status=$?
3457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }
3459 { (ac_try="$ac_compiler -V >&5"
3460 case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3465 $as_echo "$ac_try_echo") >&5
3466 (eval "$ac_compiler -V >&5") 2>&5
3467 ac_status=$?
3468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }
3471 cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h. */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3479 main ()
3483 return 0;
3485 _ACEOF
3486 ac_clean_files_save=$ac_clean_files
3487 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3488 # Try to create an executable without -o first, disregard a.out.
3489 # It will help us diagnose broken compilers, and finding out an intuition
3490 # of exeext.
3491 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3492 $as_echo_n "checking for C compiler default output file name... " >&6; }
3493 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3495 # The possible output files:
3496 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3498 ac_rmfiles=
3499 for ac_file in $ac_files
3501 case $ac_file in
3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3503 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3504 esac
3505 done
3506 rm -f $ac_rmfiles
3508 if { (ac_try="$ac_link_default"
3509 case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512 esac
3513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3514 $as_echo "$ac_try_echo") >&5
3515 (eval "$ac_link_default") 2>&5
3516 ac_status=$?
3517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; then
3519 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3520 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3521 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3522 # so that the user can short-circuit this test for compilers unknown to
3523 # Autoconf.
3524 for ac_file in $ac_files ''
3526 test -f "$ac_file" || continue
3527 case $ac_file in
3528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3530 [ab].out )
3531 # We found the default executable, but exeext='' is most
3532 # certainly right.
3533 break;;
3534 *.* )
3535 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3536 then :; else
3537 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3539 # We set ac_cv_exeext here because the later test for it is not
3540 # safe: cross compilers may not add the suffix if given an `-o'
3541 # argument, so we may need to know it at that point already.
3542 # Even if this section looks crufty: it has the advantage of
3543 # actually working.
3544 break;;
3546 break;;
3547 esac
3548 done
3549 test "$ac_cv_exeext" = no && ac_cv_exeext=
3551 else
3552 ac_file=''
3555 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3556 $as_echo "$ac_file" >&6; }
3557 if test -z "$ac_file"; then
3558 $as_echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3561 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3564 See \`config.log' for more details." >&5
3565 $as_echo "$as_me: error: C compiler cannot create executables
3566 See \`config.log' for more details." >&2;}
3567 { (exit 77); exit 77; }; }; }
3570 ac_exeext=$ac_cv_exeext
3572 # Check that the compiler produces executables we can run. If not, either
3573 # the compiler is broken, or we cross compile.
3574 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3575 $as_echo_n "checking whether the C compiler works... " >&6; }
3576 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3577 # If not cross compiling, check that we can run a simple program.
3578 if test "$cross_compiling" != yes; then
3579 if { ac_try='./$ac_file'
3580 { (case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3585 $as_echo "$ac_try_echo") >&5
3586 (eval "$ac_try") 2>&5
3587 ac_status=$?
3588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; }; then
3590 cross_compiling=no
3591 else
3592 if test "$cross_compiling" = maybe; then
3593 cross_compiling=yes
3594 else
3595 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3598 If you meant to cross compile, use \`--host'.
3599 See \`config.log' for more details." >&5
3600 $as_echo "$as_me: error: cannot run C compiled programs.
3601 If you meant to cross compile, use \`--host'.
3602 See \`config.log' for more details." >&2;}
3603 { (exit 1); exit 1; }; }; }
3607 { $as_echo "$as_me:$LINENO: result: yes" >&5
3608 $as_echo "yes" >&6; }
3610 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3611 ac_clean_files=$ac_clean_files_save
3612 # Check that the compiler produces executables we can run. If not, either
3613 # the compiler is broken, or we cross compile.
3614 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3615 $as_echo_n "checking whether we are cross compiling... " >&6; }
3616 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3617 $as_echo "$cross_compiling" >&6; }
3619 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3620 $as_echo_n "checking for suffix of executables... " >&6; }
3621 if { (ac_try="$ac_link"
3622 case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625 esac
3626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3627 $as_echo "$ac_try_echo") >&5
3628 (eval "$ac_link") 2>&5
3629 ac_status=$?
3630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; then
3632 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3633 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3634 # work properly (i.e., refer to `conftest.exe'), while it won't with
3635 # `rm'.
3636 for ac_file in conftest.exe conftest conftest.*; do
3637 test -f "$ac_file" || continue
3638 case $ac_file in
3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3640 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3641 break;;
3642 * ) break;;
3643 esac
3644 done
3645 else
3646 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3649 See \`config.log' for more details." >&5
3650 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3651 See \`config.log' for more details." >&2;}
3652 { (exit 1); exit 1; }; }; }
3655 rm -f conftest$ac_cv_exeext
3656 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3657 $as_echo "$ac_cv_exeext" >&6; }
3659 rm -f conftest.$ac_ext
3660 EXEEXT=$ac_cv_exeext
3661 ac_exeext=$EXEEXT
3662 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3663 $as_echo_n "checking for suffix of object files... " >&6; }
3664 if test "${ac_cv_objext+set}" = set; then
3665 $as_echo_n "(cached) " >&6
3666 else
3667 cat >conftest.$ac_ext <<_ACEOF
3668 /* confdefs.h. */
3669 _ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3675 main ()
3679 return 0;
3681 _ACEOF
3682 rm -f conftest.o conftest.obj
3683 if { (ac_try="$ac_compile"
3684 case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3687 esac
3688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3689 $as_echo "$ac_try_echo") >&5
3690 (eval "$ac_compile") 2>&5
3691 ac_status=$?
3692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; then
3694 for ac_file in conftest.o conftest.obj conftest.*; do
3695 test -f "$ac_file" || continue;
3696 case $ac_file in
3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3698 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3699 break;;
3700 esac
3701 done
3702 else
3703 $as_echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3709 See \`config.log' for more details." >&5
3710 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3711 See \`config.log' for more details." >&2;}
3712 { (exit 1); exit 1; }; }; }
3715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3717 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3718 $as_echo "$ac_cv_objext" >&6; }
3719 OBJEXT=$ac_cv_objext
3720 ac_objext=$OBJEXT
3721 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3722 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3723 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3724 $as_echo_n "(cached) " >&6
3725 else
3726 cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h. */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3734 main ()
3736 #ifndef __GNUC__
3737 choke me
3738 #endif
3741 return 0;
3743 _ACEOF
3744 rm -f conftest.$ac_objext
3745 if { (ac_try="$ac_compile"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3751 $as_echo "$ac_try_echo") >&5
3752 (eval "$ac_compile") 2>conftest.er1
3753 ac_status=$?
3754 grep -v '^ *+' conftest.er1 >conftest.err
3755 rm -f conftest.er1
3756 cat conftest.err >&5
3757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } && {
3759 test -z "$ac_c_werror_flag" ||
3760 test ! -s conftest.err
3761 } && test -s conftest.$ac_objext; then
3762 ac_compiler_gnu=yes
3763 else
3764 $as_echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3767 ac_compiler_gnu=no
3770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3774 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3775 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3776 if test $ac_compiler_gnu = yes; then
3777 GCC=yes
3778 else
3779 GCC=
3781 ac_test_CFLAGS=${CFLAGS+set}
3782 ac_save_CFLAGS=$CFLAGS
3783 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3784 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3785 if test "${ac_cv_prog_cc_g+set}" = set; then
3786 $as_echo_n "(cached) " >&6
3787 else
3788 ac_save_c_werror_flag=$ac_c_werror_flag
3789 ac_c_werror_flag=yes
3790 ac_cv_prog_cc_g=no
3791 CFLAGS="-g"
3792 cat >conftest.$ac_ext <<_ACEOF
3793 /* confdefs.h. */
3794 _ACEOF
3795 cat confdefs.h >>conftest.$ac_ext
3796 cat >>conftest.$ac_ext <<_ACEOF
3797 /* end confdefs.h. */
3800 main ()
3804 return 0;
3806 _ACEOF
3807 rm -f conftest.$ac_objext
3808 if { (ac_try="$ac_compile"
3809 case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3814 $as_echo "$ac_try_echo") >&5
3815 (eval "$ac_compile") 2>conftest.er1
3816 ac_status=$?
3817 grep -v '^ *+' conftest.er1 >conftest.err
3818 rm -f conftest.er1
3819 cat conftest.err >&5
3820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } && {
3822 test -z "$ac_c_werror_flag" ||
3823 test ! -s conftest.err
3824 } && test -s conftest.$ac_objext; then
3825 ac_cv_prog_cc_g=yes
3826 else
3827 $as_echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3830 CFLAGS=""
3831 cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h. */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3839 main ()
3843 return 0;
3845 _ACEOF
3846 rm -f conftest.$ac_objext
3847 if { (ac_try="$ac_compile"
3848 case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3853 $as_echo "$ac_try_echo") >&5
3854 (eval "$ac_compile") 2>conftest.er1
3855 ac_status=$?
3856 grep -v '^ *+' conftest.er1 >conftest.err
3857 rm -f conftest.er1
3858 cat conftest.err >&5
3859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } && {
3861 test -z "$ac_c_werror_flag" ||
3862 test ! -s conftest.err
3863 } && test -s conftest.$ac_objext; then
3865 else
3866 $as_echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3869 ac_c_werror_flag=$ac_save_c_werror_flag
3870 CFLAGS="-g"
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h. */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3879 main ()
3883 return 0;
3885 _ACEOF
3886 rm -f conftest.$ac_objext
3887 if { (ac_try="$ac_compile"
3888 case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891 esac
3892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3893 $as_echo "$ac_try_echo") >&5
3894 (eval "$ac_compile") 2>conftest.er1
3895 ac_status=$?
3896 grep -v '^ *+' conftest.er1 >conftest.err
3897 rm -f conftest.er1
3898 cat conftest.err >&5
3899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } && {
3901 test -z "$ac_c_werror_flag" ||
3902 test ! -s conftest.err
3903 } && test -s conftest.$ac_objext; then
3904 ac_cv_prog_cc_g=yes
3905 else
3906 $as_echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 ac_c_werror_flag=$ac_save_c_werror_flag
3921 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3922 $as_echo "$ac_cv_prog_cc_g" >&6; }
3923 if test "$ac_test_CFLAGS" = set; then
3924 CFLAGS=$ac_save_CFLAGS
3925 elif test $ac_cv_prog_cc_g = yes; then
3926 if test "$GCC" = yes; then
3927 CFLAGS="-g -O2"
3928 else
3929 CFLAGS="-g"
3931 else
3932 if test "$GCC" = yes; then
3933 CFLAGS="-O2"
3934 else
3935 CFLAGS=
3938 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3939 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3940 if test "${ac_cv_prog_cc_c89+set}" = set; then
3941 $as_echo_n "(cached) " >&6
3942 else
3943 ac_cv_prog_cc_c89=no
3944 ac_save_CC=$CC
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 #include <stdarg.h>
3952 #include <stdio.h>
3953 #include <sys/types.h>
3954 #include <sys/stat.h>
3955 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3956 struct buf { int x; };
3957 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3958 static char *e (p, i)
3959 char **p;
3960 int i;
3962 return p[i];
3964 static char *f (char * (*g) (char **, int), char **p, ...)
3966 char *s;
3967 va_list v;
3968 va_start (v,p);
3969 s = g (p, va_arg (v,int));
3970 va_end (v);
3971 return s;
3974 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3975 function prototypes and stuff, but not '\xHH' hex character constants.
3976 These don't provoke an error unfortunately, instead are silently treated
3977 as 'x'. The following induces an error, until -std is added to get
3978 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3979 array size at least. It's necessary to write '\x00'==0 to get something
3980 that's true only with -std. */
3981 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3983 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3984 inside strings and character constants. */
3985 #define FOO(x) 'x'
3986 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3988 int test (int i, double x);
3989 struct s1 {int (*f) (int a);};
3990 struct s2 {int (*f) (double a);};
3991 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3992 int argc;
3993 char **argv;
3995 main ()
3997 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3999 return 0;
4001 _ACEOF
4002 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4003 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4005 CC="$ac_save_CC $ac_arg"
4006 rm -f conftest.$ac_objext
4007 if { (ac_try="$ac_compile"
4008 case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4013 $as_echo "$ac_try_echo") >&5
4014 (eval "$ac_compile") 2>conftest.er1
4015 ac_status=$?
4016 grep -v '^ *+' conftest.er1 >conftest.err
4017 rm -f conftest.er1
4018 cat conftest.err >&5
4019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } && {
4021 test -z "$ac_c_werror_flag" ||
4022 test ! -s conftest.err
4023 } && test -s conftest.$ac_objext; then
4024 ac_cv_prog_cc_c89=$ac_arg
4025 else
4026 $as_echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4032 rm -f core conftest.err conftest.$ac_objext
4033 test "x$ac_cv_prog_cc_c89" != "xno" && break
4034 done
4035 rm -f conftest.$ac_ext
4036 CC=$ac_save_CC
4039 # AC_CACHE_VAL
4040 case "x$ac_cv_prog_cc_c89" in
4042 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4043 $as_echo "none needed" >&6; } ;;
4044 xno)
4045 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4046 $as_echo "unsupported" >&6; } ;;
4048 CC="$CC $ac_cv_prog_cc_c89"
4049 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4050 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4051 esac
4054 ac_ext=c
4055 ac_cpp='$CPP $CPPFLAGS'
4056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060 depcc="$CC" am_compiler_list=
4062 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4063 $as_echo_n "checking dependency style of $depcc... " >&6; }
4064 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4065 $as_echo_n "(cached) " >&6
4066 else
4067 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4068 # We make a subdir and do the tests there. Otherwise we can end up
4069 # making bogus files that we don't know about and never remove. For
4070 # instance it was reported that on HP-UX the gcc test will end up
4071 # making a dummy file named `D' -- because `-MD' means `put the output
4072 # in D'.
4073 mkdir conftest.dir
4074 # Copy depcomp to subdir because otherwise we won't find it if we're
4075 # using a relative directory.
4076 cp "$am_depcomp" conftest.dir
4077 cd conftest.dir
4078 # We will build objects and dependencies in a subdirectory because
4079 # it helps to detect inapplicable dependency modes. For instance
4080 # both Tru64's cc and ICC support -MD to output dependencies as a
4081 # side effect of compilation, but ICC will put the dependencies in
4082 # the current directory while Tru64 will put them in the object
4083 # directory.
4084 mkdir sub
4086 am_cv_CC_dependencies_compiler_type=none
4087 if test "$am_compiler_list" = ""; then
4088 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4090 for depmode in $am_compiler_list; do
4091 # Setup a source with many dependencies, because some compilers
4092 # like to wrap large dependency lists on column 80 (with \), and
4093 # we should not choose a depcomp mode which is confused by this.
4095 # We need to recreate these files for each test, as the compiler may
4096 # overwrite some of them when testing with obscure command lines.
4097 # This happens at least with the AIX C compiler.
4098 : > sub/conftest.c
4099 for i in 1 2 3 4 5 6; do
4100 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4101 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4102 # Solaris 8's {/usr,}/bin/sh.
4103 touch sub/conftst$i.h
4104 done
4105 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4107 case $depmode in
4108 nosideeffect)
4109 # after this tag, mechanisms are not by side-effect, so they'll
4110 # only be used when explicitly requested
4111 if test "x$enable_dependency_tracking" = xyes; then
4112 continue
4113 else
4114 break
4117 none) break ;;
4118 esac
4119 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4120 # mode. It turns out that the SunPro C++ compiler does not properly
4121 # handle `-M -o', and we need to detect this.
4122 if depmode=$depmode \
4123 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4124 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4125 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4126 >/dev/null 2>conftest.err &&
4127 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4128 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4129 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4130 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4131 # icc doesn't choke on unknown options, it will just issue warnings
4132 # or remarks (even with -Werror). So we grep stderr for any message
4133 # that says an option was ignored or not supported.
4134 # When given -MP, icc 7.0 and 7.1 complain thusly:
4135 # icc: Command line warning: ignoring option '-M'; no argument required
4136 # The diagnosis changed in icc 8.0:
4137 # icc: Command line remark: option '-MP' not supported
4138 if (grep 'ignoring option' conftest.err ||
4139 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4140 am_cv_CC_dependencies_compiler_type=$depmode
4141 break
4144 done
4146 cd ..
4147 rm -rf conftest.dir
4148 else
4149 am_cv_CC_dependencies_compiler_type=none
4153 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4154 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4155 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4158 test "x$enable_dependency_tracking" != xno \
4159 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4160 am__fastdepCC_TRUE=
4161 am__fastdepCC_FALSE='#'
4162 else
4163 am__fastdepCC_TRUE='#'
4164 am__fastdepCC_FALSE=
4168 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4169 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4170 if test "${ac_cv_path_SED+set}" = set; then
4171 $as_echo_n "(cached) " >&6
4172 else
4173 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4174 for ac_i in 1 2 3 4 5 6 7; do
4175 ac_script="$ac_script$as_nl$ac_script"
4176 done
4177 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4178 $as_unset ac_script || ac_script=
4179 if test -z "$SED"; then
4180 ac_path_SED_found=false
4181 # Loop through the user's path and test for each of PROGNAME-LIST
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_prog in sed gsed; do
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4190 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4191 # Check for GNU ac_path_SED and select it if it is found.
4192 # Check for GNU $ac_path_SED
4193 case `"$ac_path_SED" --version 2>&1` in
4194 *GNU*)
4195 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4197 ac_count=0
4198 $as_echo_n 0123456789 >"conftest.in"
4199 while :
4201 cat "conftest.in" "conftest.in" >"conftest.tmp"
4202 mv "conftest.tmp" "conftest.in"
4203 cp "conftest.in" "conftest.nl"
4204 $as_echo '' >> "conftest.nl"
4205 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4207 ac_count=`expr $ac_count + 1`
4208 if test $ac_count -gt ${ac_path_SED_max-0}; then
4209 # Best one so far, save it but keep looking for a better one
4210 ac_cv_path_SED="$ac_path_SED"
4211 ac_path_SED_max=$ac_count
4213 # 10*(2^10) chars as input seems more than enough
4214 test $ac_count -gt 10 && break
4215 done
4216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4217 esac
4219 $ac_path_SED_found && break 3
4220 done
4221 done
4222 done
4223 IFS=$as_save_IFS
4224 if test -z "$ac_cv_path_SED"; then
4225 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4226 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4227 { (exit 1); exit 1; }; }
4229 else
4230 ac_cv_path_SED=$SED
4234 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4235 $as_echo "$ac_cv_path_SED" >&6; }
4236 SED="$ac_cv_path_SED"
4237 rm -f conftest.sed
4239 test -z "$SED" && SED=sed
4240 Xsed="$SED -e 1s/^X//"
4252 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4253 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4254 if test "${ac_cv_path_GREP+set}" = set; then
4255 $as_echo_n "(cached) " >&6
4256 else
4257 if test -z "$GREP"; then
4258 ac_path_GREP_found=false
4259 # Loop through the user's path and test for each of PROGNAME-LIST
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_prog in grep ggrep; do
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4268 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4269 # Check for GNU ac_path_GREP and select it if it is found.
4270 # Check for GNU $ac_path_GREP
4271 case `"$ac_path_GREP" --version 2>&1` in
4272 *GNU*)
4273 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4275 ac_count=0
4276 $as_echo_n 0123456789 >"conftest.in"
4277 while :
4279 cat "conftest.in" "conftest.in" >"conftest.tmp"
4280 mv "conftest.tmp" "conftest.in"
4281 cp "conftest.in" "conftest.nl"
4282 $as_echo 'GREP' >> "conftest.nl"
4283 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4285 ac_count=`expr $ac_count + 1`
4286 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4287 # Best one so far, save it but keep looking for a better one
4288 ac_cv_path_GREP="$ac_path_GREP"
4289 ac_path_GREP_max=$ac_count
4291 # 10*(2^10) chars as input seems more than enough
4292 test $ac_count -gt 10 && break
4293 done
4294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4295 esac
4297 $ac_path_GREP_found && break 3
4298 done
4299 done
4300 done
4301 IFS=$as_save_IFS
4302 if test -z "$ac_cv_path_GREP"; then
4303 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4304 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4305 { (exit 1); exit 1; }; }
4307 else
4308 ac_cv_path_GREP=$GREP
4312 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4313 $as_echo "$ac_cv_path_GREP" >&6; }
4314 GREP="$ac_cv_path_GREP"
4317 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4318 $as_echo_n "checking for egrep... " >&6; }
4319 if test "${ac_cv_path_EGREP+set}" = set; then
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4323 then ac_cv_path_EGREP="$GREP -E"
4324 else
4325 if test -z "$EGREP"; then
4326 ac_path_EGREP_found=false
4327 # Loop through the user's path and test for each of PROGNAME-LIST
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_prog in egrep; do
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4336 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4337 # Check for GNU ac_path_EGREP and select it if it is found.
4338 # Check for GNU $ac_path_EGREP
4339 case `"$ac_path_EGREP" --version 2>&1` in
4340 *GNU*)
4341 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4343 ac_count=0
4344 $as_echo_n 0123456789 >"conftest.in"
4345 while :
4347 cat "conftest.in" "conftest.in" >"conftest.tmp"
4348 mv "conftest.tmp" "conftest.in"
4349 cp "conftest.in" "conftest.nl"
4350 $as_echo 'EGREP' >> "conftest.nl"
4351 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4352 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4353 ac_count=`expr $ac_count + 1`
4354 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4355 # Best one so far, save it but keep looking for a better one
4356 ac_cv_path_EGREP="$ac_path_EGREP"
4357 ac_path_EGREP_max=$ac_count
4359 # 10*(2^10) chars as input seems more than enough
4360 test $ac_count -gt 10 && break
4361 done
4362 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4363 esac
4365 $ac_path_EGREP_found && break 3
4366 done
4367 done
4368 done
4369 IFS=$as_save_IFS
4370 if test -z "$ac_cv_path_EGREP"; then
4371 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4372 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4373 { (exit 1); exit 1; }; }
4375 else
4376 ac_cv_path_EGREP=$EGREP
4381 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4382 $as_echo "$ac_cv_path_EGREP" >&6; }
4383 EGREP="$ac_cv_path_EGREP"
4386 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4387 $as_echo_n "checking for fgrep... " >&6; }
4388 if test "${ac_cv_path_FGREP+set}" = set; then
4389 $as_echo_n "(cached) " >&6
4390 else
4391 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4392 then ac_cv_path_FGREP="$GREP -F"
4393 else
4394 if test -z "$FGREP"; then
4395 ac_path_FGREP_found=false
4396 # Loop through the user's path and test for each of PROGNAME-LIST
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_prog in fgrep; do
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4405 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4406 # Check for GNU ac_path_FGREP and select it if it is found.
4407 # Check for GNU $ac_path_FGREP
4408 case `"$ac_path_FGREP" --version 2>&1` in
4409 *GNU*)
4410 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4412 ac_count=0
4413 $as_echo_n 0123456789 >"conftest.in"
4414 while :
4416 cat "conftest.in" "conftest.in" >"conftest.tmp"
4417 mv "conftest.tmp" "conftest.in"
4418 cp "conftest.in" "conftest.nl"
4419 $as_echo 'FGREP' >> "conftest.nl"
4420 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4422 ac_count=`expr $ac_count + 1`
4423 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4424 # Best one so far, save it but keep looking for a better one
4425 ac_cv_path_FGREP="$ac_path_FGREP"
4426 ac_path_FGREP_max=$ac_count
4428 # 10*(2^10) chars as input seems more than enough
4429 test $ac_count -gt 10 && break
4430 done
4431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4432 esac
4434 $ac_path_FGREP_found && break 3
4435 done
4436 done
4437 done
4438 IFS=$as_save_IFS
4439 if test -z "$ac_cv_path_FGREP"; then
4440 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4441 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4442 { (exit 1); exit 1; }; }
4444 else
4445 ac_cv_path_FGREP=$FGREP
4450 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4451 $as_echo "$ac_cv_path_FGREP" >&6; }
4452 FGREP="$ac_cv_path_FGREP"
4455 test -z "$GREP" && GREP=grep
4475 # Check whether --with-gnu-ld was given.
4476 if test "${with_gnu_ld+set}" = set; then
4477 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4478 else
4479 with_gnu_ld=no
4482 ac_prog=ld
4483 if test "$GCC" = yes; then
4484 # Check if gcc -print-prog-name=ld gives a path.
4485 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4486 $as_echo_n "checking for ld used by $CC... " >&6; }
4487 case $host in
4488 *-*-mingw*)
4489 # gcc leaves a trailing carriage return which upsets mingw
4490 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4492 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4493 esac
4494 case $ac_prog in
4495 # Accept absolute paths.
4496 [\\/]* | ?:[\\/]*)
4497 re_direlt='/[^/][^/]*/\.\./'
4498 # Canonicalize the pathname of ld
4499 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4500 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4501 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4502 done
4503 test -z "$LD" && LD="$ac_prog"
4506 # If it fails, then pretend we aren't using GCC.
4507 ac_prog=ld
4510 # If it is relative, then search for the first ld in PATH.
4511 with_gnu_ld=unknown
4513 esac
4514 elif test "$with_gnu_ld" = yes; then
4515 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4516 $as_echo_n "checking for GNU ld... " >&6; }
4517 else
4518 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4519 $as_echo_n "checking for non-GNU ld... " >&6; }
4521 if test "${lt_cv_path_LD+set}" = set; then
4522 $as_echo_n "(cached) " >&6
4523 else
4524 if test -z "$LD"; then
4525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4526 for ac_dir in $PATH; do
4527 IFS="$lt_save_ifs"
4528 test -z "$ac_dir" && ac_dir=.
4529 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4530 lt_cv_path_LD="$ac_dir/$ac_prog"
4531 # Check to see if the program is GNU ld. I'd rather use --version,
4532 # but apparently some variants of GNU ld only accept -v.
4533 # Break only if it was the GNU/non-GNU ld that we prefer.
4534 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4535 *GNU* | *'with BFD'*)
4536 test "$with_gnu_ld" != no && break
4539 test "$with_gnu_ld" != yes && break
4541 esac
4543 done
4544 IFS="$lt_save_ifs"
4545 else
4546 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4550 LD="$lt_cv_path_LD"
4551 if test -n "$LD"; then
4552 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4553 $as_echo "$LD" >&6; }
4554 else
4555 { $as_echo "$as_me:$LINENO: result: no" >&5
4556 $as_echo "no" >&6; }
4558 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4559 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4560 { (exit 1); exit 1; }; }
4561 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4562 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4563 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4564 $as_echo_n "(cached) " >&6
4565 else
4566 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4567 case `$LD -v 2>&1 </dev/null` in
4568 *GNU* | *'with BFD'*)
4569 lt_cv_prog_gnu_ld=yes
4572 lt_cv_prog_gnu_ld=no
4574 esac
4576 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4577 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4578 with_gnu_ld=$lt_cv_prog_gnu_ld
4588 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4589 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4590 if test "${lt_cv_path_NM+set}" = set; then
4591 $as_echo_n "(cached) " >&6
4592 else
4593 if test -n "$NM"; then
4594 # Let the user override the test.
4595 lt_cv_path_NM="$NM"
4596 else
4597 lt_nm_to_check="${ac_tool_prefix}nm"
4598 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4599 lt_nm_to_check="$lt_nm_to_check nm"
4601 for lt_tmp_nm in $lt_nm_to_check; do
4602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4603 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4604 IFS="$lt_save_ifs"
4605 test -z "$ac_dir" && ac_dir=.
4606 tmp_nm="$ac_dir/$lt_tmp_nm"
4607 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4608 # Check to see if the nm accepts a BSD-compat flag.
4609 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4610 # nm: unknown option "B" ignored
4611 # Tru64's nm complains that /dev/null is an invalid object file
4612 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4613 */dev/null* | *'Invalid file or object type'*)
4614 lt_cv_path_NM="$tmp_nm -B"
4615 break
4618 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4619 */dev/null*)
4620 lt_cv_path_NM="$tmp_nm -p"
4621 break
4624 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4625 continue # so that we can try to find one that supports BSD flags
4627 esac
4629 esac
4631 done
4632 IFS="$lt_save_ifs"
4633 done
4634 : ${lt_cv_path_NM=no}
4637 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4638 $as_echo "$lt_cv_path_NM" >&6; }
4639 if test "$lt_cv_path_NM" != "no"; then
4640 NM="$lt_cv_path_NM"
4641 else
4642 # Didn't find any BSD compatible name lister, look for dumpbin.
4643 if test -n "$ac_tool_prefix"; then
4644 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if test -n "$DUMPBIN"; then
4654 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4667 done
4668 done
4669 IFS=$as_save_IFS
4673 DUMPBIN=$ac_cv_prog_DUMPBIN
4674 if test -n "$DUMPBIN"; then
4675 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4676 $as_echo "$DUMPBIN" >&6; }
4677 else
4678 { $as_echo "$as_me:$LINENO: result: no" >&5
4679 $as_echo "no" >&6; }
4683 test -n "$DUMPBIN" && break
4684 done
4686 if test -z "$DUMPBIN"; then
4687 ac_ct_DUMPBIN=$DUMPBIN
4688 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4690 # Extract the first word of "$ac_prog", so it can be a program name with args.
4691 set dummy $ac_prog; ac_word=$2
4692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4695 $as_echo_n "(cached) " >&6
4696 else
4697 if test -n "$ac_ct_DUMPBIN"; then
4698 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4711 done
4712 done
4713 IFS=$as_save_IFS
4717 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4718 if test -n "$ac_ct_DUMPBIN"; then
4719 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4720 $as_echo "$ac_ct_DUMPBIN" >&6; }
4721 else
4722 { $as_echo "$as_me:$LINENO: result: no" >&5
4723 $as_echo "no" >&6; }
4727 test -n "$ac_ct_DUMPBIN" && break
4728 done
4730 if test "x$ac_ct_DUMPBIN" = x; then
4731 DUMPBIN=":"
4732 else
4733 case $cross_compiling:$ac_tool_warned in
4734 yes:)
4735 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4737 ac_tool_warned=yes ;;
4738 esac
4739 DUMPBIN=$ac_ct_DUMPBIN
4744 if test "$DUMPBIN" != ":"; then
4745 NM="$DUMPBIN"
4748 test -z "$NM" && NM=nm
4755 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4756 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4757 if test "${lt_cv_nm_interface+set}" = set; then
4758 $as_echo_n "(cached) " >&6
4759 else
4760 lt_cv_nm_interface="BSD nm"
4761 echo "int some_variable = 0;" > conftest.$ac_ext
4762 (eval echo "\"\$as_me:4762: $ac_compile\"" >&5)
4763 (eval "$ac_compile" 2>conftest.err)
4764 cat conftest.err >&5
4765 (eval echo "\"\$as_me:4765: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4766 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4767 cat conftest.err >&5
4768 (eval echo "\"\$as_me:4768: output\"" >&5)
4769 cat conftest.out >&5
4770 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4771 lt_cv_nm_interface="MS dumpbin"
4773 rm -f conftest*
4775 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4776 $as_echo "$lt_cv_nm_interface" >&6; }
4778 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4779 $as_echo_n "checking whether ln -s works... " >&6; }
4780 LN_S=$as_ln_s
4781 if test "$LN_S" = "ln -s"; then
4782 { $as_echo "$as_me:$LINENO: result: yes" >&5
4783 $as_echo "yes" >&6; }
4784 else
4785 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4786 $as_echo "no, using $LN_S" >&6; }
4789 # find the maximum length of command line arguments
4790 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4791 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4792 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4793 $as_echo_n "(cached) " >&6
4794 else
4796 teststring="ABCD"
4798 case $build_os in
4799 msdosdjgpp*)
4800 # On DJGPP, this test can blow up pretty badly due to problems in libc
4801 # (any single argument exceeding 2000 bytes causes a buffer overrun
4802 # during glob expansion). Even if it were fixed, the result of this
4803 # check would be larger than it should be.
4804 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4807 gnu*)
4808 # Under GNU Hurd, this test is not required because there is
4809 # no limit to the length of command line arguments.
4810 # Libtool will interpret -1 as no limit whatsoever
4811 lt_cv_sys_max_cmd_len=-1;
4814 cygwin* | mingw* | cegcc*)
4815 # On Win9x/ME, this test blows up -- it succeeds, but takes
4816 # about 5 minutes as the teststring grows exponentially.
4817 # Worse, since 9x/ME are not pre-emptively multitasking,
4818 # you end up with a "frozen" computer, even though with patience
4819 # the test eventually succeeds (with a max line length of 256k).
4820 # Instead, let's just punt: use the minimum linelength reported by
4821 # all of the supported platforms: 8192 (on NT/2K/XP).
4822 lt_cv_sys_max_cmd_len=8192;
4825 amigaos*)
4826 # On AmigaOS with pdksh, this test takes hours, literally.
4827 # So we just punt and use a minimum line length of 8192.
4828 lt_cv_sys_max_cmd_len=8192;
4831 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4832 # This has been around since 386BSD, at least. Likely further.
4833 if test -x /sbin/sysctl; then
4834 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4835 elif test -x /usr/sbin/sysctl; then
4836 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4837 else
4838 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4840 # And add a safety zone
4841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4845 interix*)
4846 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4847 lt_cv_sys_max_cmd_len=196608
4850 osf*)
4851 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4852 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4853 # nice to cause kernel panics so lets avoid the loop below.
4854 # First set a reasonable default.
4855 lt_cv_sys_max_cmd_len=16384
4857 if test -x /sbin/sysconfig; then
4858 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4859 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4860 esac
4863 sco3.2v5*)
4864 lt_cv_sys_max_cmd_len=102400
4866 sysv5* | sco5v6* | sysv4.2uw2*)
4867 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4868 if test -n "$kargmax"; then
4869 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4870 else
4871 lt_cv_sys_max_cmd_len=32768
4875 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4876 if test -n "$lt_cv_sys_max_cmd_len"; then
4877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4879 else
4880 # Make teststring a little bigger before we do anything with it.
4881 # a 1K string should be a reasonable start.
4882 for i in 1 2 3 4 5 6 7 8 ; do
4883 teststring=$teststring$teststring
4884 done
4885 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4886 # If test is not a shell built-in, we'll probably end up computing a
4887 # maximum length that is only half of the actual maximum length, but
4888 # we can't tell.
4889 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4890 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4891 test $i != 17 # 1/2 MB should be enough
4893 i=`expr $i + 1`
4894 teststring=$teststring$teststring
4895 done
4896 # Only check the string length outside the loop.
4897 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4898 teststring=
4899 # Add a significant safety factor because C++ compilers can tack on
4900 # massive amounts of additional arguments before passing them to the
4901 # linker. It appears as though 1/2 is a usable value.
4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4905 esac
4909 if test -n $lt_cv_sys_max_cmd_len ; then
4910 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4911 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4912 else
4913 { $as_echo "$as_me:$LINENO: result: none" >&5
4914 $as_echo "none" >&6; }
4916 max_cmd_len=$lt_cv_sys_max_cmd_len
4923 : ${CP="cp -f"}
4924 : ${MV="mv -f"}
4925 : ${RM="rm -f"}
4927 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4928 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4929 # Try some XSI features
4930 xsi_shell=no
4931 ( _lt_dummy="a/b/c"
4932 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4933 = c,a/b,, \
4934 && eval 'test $(( 1 + 1 )) -eq 2 \
4935 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4936 && xsi_shell=yes
4937 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4938 $as_echo "$xsi_shell" >&6; }
4941 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4942 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4943 lt_shell_append=no
4944 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4945 >/dev/null 2>&1 \
4946 && lt_shell_append=yes
4947 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4948 $as_echo "$lt_shell_append" >&6; }
4951 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4952 lt_unset=unset
4953 else
4954 lt_unset=false
4961 # test EBCDIC or ASCII
4962 case `echo X|tr X '\101'` in
4963 A) # ASCII based system
4964 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4965 lt_SP2NL='tr \040 \012'
4966 lt_NL2SP='tr \015\012 \040\040'
4968 *) # EBCDIC based system
4969 lt_SP2NL='tr \100 \n'
4970 lt_NL2SP='tr \r\n \100\100'
4972 esac
4982 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4983 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4984 if test "${lt_cv_ld_reload_flag+set}" = set; then
4985 $as_echo_n "(cached) " >&6
4986 else
4987 lt_cv_ld_reload_flag='-r'
4989 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4990 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4991 reload_flag=$lt_cv_ld_reload_flag
4992 case $reload_flag in
4993 "" | " "*) ;;
4994 *) reload_flag=" $reload_flag" ;;
4995 esac
4996 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4997 case $host_os in
4998 darwin*)
4999 if test "$GCC" = yes; then
5000 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5001 else
5002 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5005 esac
5015 if test -n "$ac_tool_prefix"; then
5016 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5017 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5021 $as_echo_n "(cached) " >&6
5022 else
5023 if test -n "$OBJDUMP"; then
5024 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5034 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 break 2
5037 done
5038 done
5039 IFS=$as_save_IFS
5043 OBJDUMP=$ac_cv_prog_OBJDUMP
5044 if test -n "$OBJDUMP"; then
5045 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5046 $as_echo "$OBJDUMP" >&6; }
5047 else
5048 { $as_echo "$as_me:$LINENO: result: no" >&5
5049 $as_echo "no" >&6; }
5054 if test -z "$ac_cv_prog_OBJDUMP"; then
5055 ac_ct_OBJDUMP=$OBJDUMP
5056 # Extract the first word of "objdump", so it can be a program name with args.
5057 set dummy objdump; ac_word=$2
5058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5061 $as_echo_n "(cached) " >&6
5062 else
5063 if test -n "$ac_ct_OBJDUMP"; then
5064 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5074 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5077 done
5078 done
5079 IFS=$as_save_IFS
5083 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5084 if test -n "$ac_ct_OBJDUMP"; then
5085 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5086 $as_echo "$ac_ct_OBJDUMP" >&6; }
5087 else
5088 { $as_echo "$as_me:$LINENO: result: no" >&5
5089 $as_echo "no" >&6; }
5092 if test "x$ac_ct_OBJDUMP" = x; then
5093 OBJDUMP="false"
5094 else
5095 case $cross_compiling:$ac_tool_warned in
5096 yes:)
5097 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5099 ac_tool_warned=yes ;;
5100 esac
5101 OBJDUMP=$ac_ct_OBJDUMP
5103 else
5104 OBJDUMP="$ac_cv_prog_OBJDUMP"
5107 test -z "$OBJDUMP" && OBJDUMP=objdump
5114 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5115 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5116 if test "${lt_cv_deplibs_check_method+set}" = set; then
5117 $as_echo_n "(cached) " >&6
5118 else
5119 lt_cv_file_magic_cmd='$MAGIC_CMD'
5120 lt_cv_file_magic_test_file=
5121 lt_cv_deplibs_check_method='unknown'
5122 # Need to set the preceding variable on all platforms that support
5123 # interlibrary dependencies.
5124 # 'none' -- dependencies not supported.
5125 # `unknown' -- same as none, but documents that we really don't know.
5126 # 'pass_all' -- all dependencies passed with no checks.
5127 # 'test_compile' -- check by making test program.
5128 # 'file_magic [[regex]]' -- check by looking for files in library path
5129 # which responds to the $file_magic_cmd with a given extended regex.
5130 # If you have `file' or equivalent on your system and you're not sure
5131 # whether `pass_all' will *always* work, you probably want this one.
5133 case $host_os in
5134 aix[4-9]*)
5135 lt_cv_deplibs_check_method=pass_all
5138 beos*)
5139 lt_cv_deplibs_check_method=pass_all
5142 bsdi[45]*)
5143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5144 lt_cv_file_magic_cmd='/usr/bin/file -L'
5145 lt_cv_file_magic_test_file=/shlib/libc.so
5148 cygwin*)
5149 # func_win32_libid is a shell function defined in ltmain.sh
5150 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5151 lt_cv_file_magic_cmd='func_win32_libid'
5154 mingw* | pw32*)
5155 # Base MSYS/MinGW do not provide the 'file' command needed by
5156 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5157 # unless we find 'file', for example because we are cross-compiling.
5158 if ( file / ) >/dev/null 2>&1; then
5159 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5160 lt_cv_file_magic_cmd='func_win32_libid'
5161 else
5162 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5163 lt_cv_file_magic_cmd='$OBJDUMP -f'
5167 cegcc)
5168 # use the weaker test based on 'objdump'. See mingw*.
5169 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5170 lt_cv_file_magic_cmd='$OBJDUMP -f'
5173 darwin* | rhapsody*)
5174 lt_cv_deplibs_check_method=pass_all
5177 freebsd* | dragonfly*)
5178 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5179 case $host_cpu in
5180 i*86 )
5181 # Not sure whether the presence of OpenBSD here was a mistake.
5182 # Let's accept both of them until this is cleared up.
5183 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5184 lt_cv_file_magic_cmd=/usr/bin/file
5185 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5187 esac
5188 else
5189 lt_cv_deplibs_check_method=pass_all
5193 gnu*)
5194 lt_cv_deplibs_check_method=pass_all
5197 hpux10.20* | hpux11*)
5198 lt_cv_file_magic_cmd=/usr/bin/file
5199 case $host_cpu in
5200 ia64*)
5201 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5202 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5204 hppa*64*)
5205 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]'
5206 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5209 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5210 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5212 esac
5215 interix[3-9]*)
5216 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5220 irix5* | irix6* | nonstopux*)
5221 case $LD in
5222 *-32|*"-32 ") libmagic=32-bit;;
5223 *-n32|*"-n32 ") libmagic=N32;;
5224 *-64|*"-64 ") libmagic=64-bit;;
5225 *) libmagic=never-match;;
5226 esac
5227 lt_cv_deplibs_check_method=pass_all
5230 # This must be Linux ELF.
5231 linux* | k*bsd*-gnu)
5232 lt_cv_deplibs_check_method=pass_all
5235 netbsd* | netbsdelf*-gnu)
5236 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5238 else
5239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5243 newos6*)
5244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5245 lt_cv_file_magic_cmd=/usr/bin/file
5246 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5249 *nto* | *qnx*)
5250 lt_cv_deplibs_check_method=pass_all
5253 openbsd*)
5254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5256 else
5257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5261 osf3* | osf4* | osf5*)
5262 lt_cv_deplibs_check_method=pass_all
5265 rdos*)
5266 lt_cv_deplibs_check_method=pass_all
5269 solaris*)
5270 lt_cv_deplibs_check_method=pass_all
5273 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5274 lt_cv_deplibs_check_method=pass_all
5277 sysv4 | sysv4.3*)
5278 case $host_vendor in
5279 motorola)
5280 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]'
5281 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5283 ncr)
5284 lt_cv_deplibs_check_method=pass_all
5286 sequent)
5287 lt_cv_file_magic_cmd='/bin/file'
5288 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5290 sni)
5291 lt_cv_file_magic_cmd='/bin/file'
5292 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5293 lt_cv_file_magic_test_file=/lib/libc.so
5295 siemens)
5296 lt_cv_deplibs_check_method=pass_all
5299 lt_cv_deplibs_check_method=pass_all
5301 esac
5304 tpf*)
5305 lt_cv_deplibs_check_method=pass_all
5307 esac
5310 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5311 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5312 file_magic_cmd=$lt_cv_file_magic_cmd
5313 deplibs_check_method=$lt_cv_deplibs_check_method
5314 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5327 if test -n "$ac_tool_prefix"; then
5328 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5329 set dummy ${ac_tool_prefix}ar; ac_word=$2
5330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if test "${ac_cv_prog_AR+set}" = set; then
5333 $as_echo_n "(cached) " >&6
5334 else
5335 if test -n "$AR"; then
5336 ac_cv_prog_AR="$AR" # Let the user override the test.
5337 else
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5341 IFS=$as_save_IFS
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5345 ac_cv_prog_AR="${ac_tool_prefix}ar"
5346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 break 2
5349 done
5350 done
5351 IFS=$as_save_IFS
5355 AR=$ac_cv_prog_AR
5356 if test -n "$AR"; then
5357 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5358 $as_echo "$AR" >&6; }
5359 else
5360 { $as_echo "$as_me:$LINENO: result: no" >&5
5361 $as_echo "no" >&6; }
5366 if test -z "$ac_cv_prog_AR"; then
5367 ac_ct_AR=$AR
5368 # Extract the first word of "ar", so it can be a program name with args.
5369 set dummy ar; ac_word=$2
5370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5373 $as_echo_n "(cached) " >&6
5374 else
5375 if test -n "$ac_ct_AR"; then
5376 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385 ac_cv_prog_ac_ct_AR="ar"
5386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 break 2
5389 done
5390 done
5391 IFS=$as_save_IFS
5395 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5396 if test -n "$ac_ct_AR"; then
5397 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5398 $as_echo "$ac_ct_AR" >&6; }
5399 else
5400 { $as_echo "$as_me:$LINENO: result: no" >&5
5401 $as_echo "no" >&6; }
5404 if test "x$ac_ct_AR" = x; then
5405 AR="false"
5406 else
5407 case $cross_compiling:$ac_tool_warned in
5408 yes:)
5409 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5411 ac_tool_warned=yes ;;
5412 esac
5413 AR=$ac_ct_AR
5415 else
5416 AR="$ac_cv_prog_AR"
5419 test -z "$AR" && AR=ar
5420 test -z "$AR_FLAGS" && AR_FLAGS=cru
5432 if test -n "$ac_tool_prefix"; then
5433 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5434 set dummy ${ac_tool_prefix}strip; ac_word=$2
5435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if test "${ac_cv_prog_STRIP+set}" = set; then
5438 $as_echo_n "(cached) " >&6
5439 else
5440 if test -n "$STRIP"; then
5441 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5442 else
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5451 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5454 done
5455 done
5456 IFS=$as_save_IFS
5460 STRIP=$ac_cv_prog_STRIP
5461 if test -n "$STRIP"; then
5462 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5463 $as_echo "$STRIP" >&6; }
5464 else
5465 { $as_echo "$as_me:$LINENO: result: no" >&5
5466 $as_echo "no" >&6; }
5471 if test -z "$ac_cv_prog_STRIP"; then
5472 ac_ct_STRIP=$STRIP
5473 # Extract the first word of "strip", so it can be a program name with args.
5474 set dummy strip; ac_word=$2
5475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5478 $as_echo_n "(cached) " >&6
5479 else
5480 if test -n "$ac_ct_STRIP"; then
5481 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490 ac_cv_prog_ac_ct_STRIP="strip"
5491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5494 done
5495 done
5496 IFS=$as_save_IFS
5500 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5501 if test -n "$ac_ct_STRIP"; then
5502 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5503 $as_echo "$ac_ct_STRIP" >&6; }
5504 else
5505 { $as_echo "$as_me:$LINENO: result: no" >&5
5506 $as_echo "no" >&6; }
5509 if test "x$ac_ct_STRIP" = x; then
5510 STRIP=":"
5511 else
5512 case $cross_compiling:$ac_tool_warned in
5513 yes:)
5514 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5516 ac_tool_warned=yes ;;
5517 esac
5518 STRIP=$ac_ct_STRIP
5520 else
5521 STRIP="$ac_cv_prog_STRIP"
5524 test -z "$STRIP" && STRIP=:
5531 if test -n "$ac_tool_prefix"; then
5532 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5533 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5534 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if test "${ac_cv_prog_RANLIB+set}" = set; then
5537 $as_echo_n "(cached) " >&6
5538 else
5539 if test -n "$RANLIB"; then
5540 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 break 2
5553 done
5554 done
5555 IFS=$as_save_IFS
5559 RANLIB=$ac_cv_prog_RANLIB
5560 if test -n "$RANLIB"; then
5561 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5562 $as_echo "$RANLIB" >&6; }
5563 else
5564 { $as_echo "$as_me:$LINENO: result: no" >&5
5565 $as_echo "no" >&6; }
5570 if test -z "$ac_cv_prog_RANLIB"; then
5571 ac_ct_RANLIB=$RANLIB
5572 # Extract the first word of "ranlib", so it can be a program name with args.
5573 set dummy ranlib; ac_word=$2
5574 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5577 $as_echo_n "(cached) " >&6
5578 else
5579 if test -n "$ac_ct_RANLIB"; then
5580 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5585 IFS=$as_save_IFS
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589 ac_cv_prog_ac_ct_RANLIB="ranlib"
5590 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 break 2
5593 done
5594 done
5595 IFS=$as_save_IFS
5599 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5600 if test -n "$ac_ct_RANLIB"; then
5601 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5602 $as_echo "$ac_ct_RANLIB" >&6; }
5603 else
5604 { $as_echo "$as_me:$LINENO: result: no" >&5
5605 $as_echo "no" >&6; }
5608 if test "x$ac_ct_RANLIB" = x; then
5609 RANLIB=":"
5610 else
5611 case $cross_compiling:$ac_tool_warned in
5612 yes:)
5613 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5615 ac_tool_warned=yes ;;
5616 esac
5617 RANLIB=$ac_ct_RANLIB
5619 else
5620 RANLIB="$ac_cv_prog_RANLIB"
5623 test -z "$RANLIB" && RANLIB=:
5630 # Determine commands to create old-style static archives.
5631 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5632 old_postinstall_cmds='chmod 644 $oldlib'
5633 old_postuninstall_cmds=
5635 if test -n "$RANLIB"; then
5636 case $host_os in
5637 openbsd*)
5638 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5641 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5643 esac
5644 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5680 # If no C compiler was specified, use CC.
5681 LTCC=${LTCC-"$CC"}
5683 # If no C compiler flags were specified, use CFLAGS.
5684 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5686 # Allow CC to be a program name with arguments.
5687 compiler=$CC
5690 # Check for command to grab the raw symbol name followed by C symbol from nm.
5691 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5692 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5693 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5694 $as_echo_n "(cached) " >&6
5695 else
5697 # These are sane defaults that work on at least a few old systems.
5698 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5700 # Character class describing NM global symbol codes.
5701 symcode='[BCDEGRST]'
5703 # Regexp to match symbols that can be accessed directly from C.
5704 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5706 # Define system-specific variables.
5707 case $host_os in
5708 aix*)
5709 symcode='[BCDT]'
5711 cygwin* | mingw* | pw32* | cegcc*)
5712 symcode='[ABCDGISTW]'
5714 hpux*)
5715 if test "$host_cpu" = ia64; then
5716 symcode='[ABCDEGRST]'
5719 irix* | nonstopux*)
5720 symcode='[BCDEGRST]'
5722 osf*)
5723 symcode='[BCDEGQRST]'
5725 solaris*)
5726 symcode='[BDRT]'
5728 sco3.2v5*)
5729 symcode='[DT]'
5731 sysv4.2uw2*)
5732 symcode='[DT]'
5734 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5735 symcode='[ABDT]'
5737 sysv4)
5738 symcode='[DFNSTU]'
5740 esac
5742 # If we're using GNU nm, then use its standard symbol codes.
5743 case `$NM -V 2>&1` in
5744 *GNU* | *'with BFD'*)
5745 symcode='[ABCDGIRSTW]' ;;
5746 esac
5748 # Transform an extracted symbol line into a proper C declaration.
5749 # Some systems (esp. on ia64) link data and code symbols differently,
5750 # so use this general approach.
5751 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5753 # Transform an extracted symbol line into symbol name and symbol address
5754 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5755 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'"
5757 # Handle CRLF in mingw tool chain
5758 opt_cr=
5759 case $build_os in
5760 mingw*)
5761 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5763 esac
5765 # Try without a prefix underscore, then with it.
5766 for ac_symprfx in "" "_"; do
5768 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5769 symxfrm="\\1 $ac_symprfx\\2 \\2"
5771 # Write the raw and C identifiers.
5772 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5773 # Fake it for dumpbin and say T for any non-static function
5774 # and D for any global variable.
5775 # Also find C++ and __fastcall symbols from MSVC++,
5776 # which start with @ or ?.
5777 lt_cv_sys_global_symbol_pipe="$AWK '"\
5778 " {last_section=section; section=\$ 3};"\
5779 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5780 " \$ 0!~/External *\|/{next};"\
5781 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5782 " {if(hide[section]) next};"\
5783 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5784 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5785 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5786 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5787 " ' prfx=^$ac_symprfx"
5788 else
5789 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5792 # Check to see that the pipe works correctly.
5793 pipe_works=no
5795 rm -f conftest*
5796 cat > conftest.$ac_ext <<_LT_EOF
5797 #ifdef __cplusplus
5798 extern "C" {
5799 #endif
5800 char nm_test_var;
5801 void nm_test_func(void);
5802 void nm_test_func(void){}
5803 #ifdef __cplusplus
5805 #endif
5806 int main(){nm_test_var='a';nm_test_func();return(0);}
5807 _LT_EOF
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>&5
5811 ac_status=$?
5812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; then
5814 # Now try to grab the symbols.
5815 nlist=conftest.nm
5816 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5817 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5818 ac_status=$?
5819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } && test -s "$nlist"; then
5821 # Try sorting and uniquifying the output.
5822 if sort "$nlist" | uniq > "$nlist"T; then
5823 mv -f "$nlist"T "$nlist"
5824 else
5825 rm -f "$nlist"T
5828 # Make sure that we snagged all the symbols we need.
5829 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5830 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5831 cat <<_LT_EOF > conftest.$ac_ext
5832 #ifdef __cplusplus
5833 extern "C" {
5834 #endif
5836 _LT_EOF
5837 # Now generate the symbol file.
5838 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5840 cat <<_LT_EOF >> conftest.$ac_ext
5842 /* The mapping between symbol names and symbols. */
5843 const struct {
5844 const char *name;
5845 void *address;
5847 lt__PROGRAM__LTX_preloaded_symbols[] =
5849 { "@PROGRAM@", (void *) 0 },
5850 _LT_EOF
5851 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5852 cat <<\_LT_EOF >> conftest.$ac_ext
5853 {0, (void *) 0}
5856 /* This works around a problem in FreeBSD linker */
5857 #ifdef FREEBSD_WORKAROUND
5858 static const void *lt_preloaded_setup() {
5859 return lt__PROGRAM__LTX_preloaded_symbols;
5861 #endif
5863 #ifdef __cplusplus
5865 #endif
5866 _LT_EOF
5867 # Now try linking the two files.
5868 mv conftest.$ac_objext conftstm.$ac_objext
5869 lt_save_LIBS="$LIBS"
5870 lt_save_CFLAGS="$CFLAGS"
5871 LIBS="conftstm.$ac_objext"
5872 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5874 (eval $ac_link) 2>&5
5875 ac_status=$?
5876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5878 pipe_works=yes
5880 LIBS="$lt_save_LIBS"
5881 CFLAGS="$lt_save_CFLAGS"
5882 else
5883 echo "cannot find nm_test_func in $nlist" >&5
5885 else
5886 echo "cannot find nm_test_var in $nlist" >&5
5888 else
5889 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5891 else
5892 echo "$progname: failed program was:" >&5
5893 cat conftest.$ac_ext >&5
5895 rm -rf conftest* conftst*
5897 # Do not use the global_symbol_pipe unless it works.
5898 if test "$pipe_works" = yes; then
5899 break
5900 else
5901 lt_cv_sys_global_symbol_pipe=
5903 done
5907 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5908 lt_cv_sys_global_symbol_to_cdecl=
5910 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5911 { $as_echo "$as_me:$LINENO: result: failed" >&5
5912 $as_echo "failed" >&6; }
5913 else
5914 { $as_echo "$as_me:$LINENO: result: ok" >&5
5915 $as_echo "ok" >&6; }
5940 # Check whether --enable-libtool-lock was given.
5941 if test "${enable_libtool_lock+set}" = set; then
5942 enableval=$enable_libtool_lock;
5945 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5947 # Some flags need to be propagated to the compiler or linker for good
5948 # libtool support.
5949 case $host in
5950 ia64-*-hpux*)
5951 # Find out which ABI we are using.
5952 echo 'int i;' > conftest.$ac_ext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5954 (eval $ac_compile) 2>&5
5955 ac_status=$?
5956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; then
5958 case `/usr/bin/file conftest.$ac_objext` in
5959 *ELF-32*)
5960 HPUX_IA64_MODE="32"
5962 *ELF-64*)
5963 HPUX_IA64_MODE="64"
5965 esac
5967 rm -rf conftest*
5969 *-*-irix6*)
5970 # Find out which ABI we are using.
5971 echo '#line 5971 "configure"' > conftest.$ac_ext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>&5
5974 ac_status=$?
5975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; then
5977 if test "$lt_cv_prog_gnu_ld" = yes; then
5978 case `/usr/bin/file conftest.$ac_objext` in
5979 *32-bit*)
5980 LD="${LD-ld} -melf32bsmip"
5982 *N32*)
5983 LD="${LD-ld} -melf32bmipn32"
5985 *64-bit*)
5986 LD="${LD-ld} -melf64bmip"
5988 esac
5989 else
5990 case `/usr/bin/file conftest.$ac_objext` in
5991 *32-bit*)
5992 LD="${LD-ld} -32"
5994 *N32*)
5995 LD="${LD-ld} -n32"
5997 *64-bit*)
5998 LD="${LD-ld} -64"
6000 esac
6003 rm -rf conftest*
6006 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6007 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6008 # Find out which ABI we are using.
6009 echo 'int i;' > conftest.$ac_ext
6010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6011 (eval $ac_compile) 2>&5
6012 ac_status=$?
6013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; then
6015 case `/usr/bin/file conftest.o` in
6016 *32-bit*)
6017 case $host in
6018 x86_64-*kfreebsd*-gnu)
6019 LD="${LD-ld} -m elf_i386_fbsd"
6021 x86_64-*linux*)
6022 LD="${LD-ld} -m elf_i386"
6024 ppc64-*linux*|powerpc64-*linux*)
6025 LD="${LD-ld} -m elf32ppclinux"
6027 s390x-*linux*)
6028 LD="${LD-ld} -m elf_s390"
6030 sparc64-*linux*)
6031 LD="${LD-ld} -m elf32_sparc"
6033 esac
6035 *64-bit*)
6036 case $host in
6037 x86_64-*kfreebsd*-gnu)
6038 LD="${LD-ld} -m elf_x86_64_fbsd"
6040 x86_64-*linux*)
6041 LD="${LD-ld} -m elf_x86_64"
6043 ppc*-*linux*|powerpc*-*linux*)
6044 LD="${LD-ld} -m elf64ppc"
6046 s390*-*linux*|s390*-*tpf*)
6047 LD="${LD-ld} -m elf64_s390"
6049 sparc*-*linux*)
6050 LD="${LD-ld} -m elf64_sparc"
6052 esac
6054 esac
6056 rm -rf conftest*
6059 *-*-sco3.2v5*)
6060 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6061 SAVE_CFLAGS="$CFLAGS"
6062 CFLAGS="$CFLAGS -belf"
6063 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6064 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6065 if test "${lt_cv_cc_needs_belf+set}" = set; then
6066 $as_echo_n "(cached) " >&6
6067 else
6068 ac_ext=c
6069 ac_cpp='$CPP $CPPFLAGS'
6070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6074 cat >conftest.$ac_ext <<_ACEOF
6075 /* confdefs.h. */
6076 _ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h. */
6082 main ()
6086 return 0;
6088 _ACEOF
6089 rm -f conftest.$ac_objext conftest$ac_exeext
6090 if { (ac_try="$ac_link"
6091 case "(($ac_try" in
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6094 esac
6095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6096 $as_echo "$ac_try_echo") >&5
6097 (eval "$ac_link") 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } && {
6104 test -z "$ac_c_werror_flag" ||
6105 test ! -s conftest.err
6106 } && test -s conftest$ac_exeext && {
6107 test "$cross_compiling" = yes ||
6108 $as_test_x conftest$ac_exeext
6109 }; then
6110 lt_cv_cc_needs_belf=yes
6111 else
6112 $as_echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6115 lt_cv_cc_needs_belf=no
6118 rm -rf conftest.dSYM
6119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6120 conftest$ac_exeext conftest.$ac_ext
6121 ac_ext=c
6122 ac_cpp='$CPP $CPPFLAGS'
6123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6128 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6129 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6130 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6131 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6132 CFLAGS="$SAVE_CFLAGS"
6135 sparc*-*solaris*)
6136 # Find out which ABI we are using.
6137 echo 'int i;' > conftest.$ac_ext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139 (eval $ac_compile) 2>&5
6140 ac_status=$?
6141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; then
6143 case `/usr/bin/file conftest.o` in
6144 *64-bit*)
6145 case $lt_cv_prog_gnu_ld in
6146 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6148 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6149 LD="${LD-ld} -64"
6152 esac
6154 esac
6156 rm -rf conftest*
6158 esac
6160 need_locks="$enable_libtool_lock"
6163 case $host_os in
6164 rhapsody* | darwin*)
6165 if test -n "$ac_tool_prefix"; then
6166 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6167 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6168 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6171 $as_echo_n "(cached) " >&6
6172 else
6173 if test -n "$DSYMUTIL"; then
6174 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 break 2
6187 done
6188 done
6189 IFS=$as_save_IFS
6193 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6194 if test -n "$DSYMUTIL"; then
6195 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6196 $as_echo "$DSYMUTIL" >&6; }
6197 else
6198 { $as_echo "$as_me:$LINENO: result: no" >&5
6199 $as_echo "no" >&6; }
6204 if test -z "$ac_cv_prog_DSYMUTIL"; then
6205 ac_ct_DSYMUTIL=$DSYMUTIL
6206 # Extract the first word of "dsymutil", so it can be a program name with args.
6207 set dummy dsymutil; ac_word=$2
6208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6211 $as_echo_n "(cached) " >&6
6212 else
6213 if test -n "$ac_ct_DSYMUTIL"; then
6214 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6227 done
6228 done
6229 IFS=$as_save_IFS
6233 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6234 if test -n "$ac_ct_DSYMUTIL"; then
6235 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6236 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6237 else
6238 { $as_echo "$as_me:$LINENO: result: no" >&5
6239 $as_echo "no" >&6; }
6242 if test "x$ac_ct_DSYMUTIL" = x; then
6243 DSYMUTIL=":"
6244 else
6245 case $cross_compiling:$ac_tool_warned in
6246 yes:)
6247 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249 ac_tool_warned=yes ;;
6250 esac
6251 DSYMUTIL=$ac_ct_DSYMUTIL
6253 else
6254 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6257 if test -n "$ac_tool_prefix"; then
6258 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6259 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6261 $as_echo_n "checking for $ac_word... " >&6; }
6262 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6263 $as_echo_n "(cached) " >&6
6264 else
6265 if test -n "$NMEDIT"; then
6266 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6267 else
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6275 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 break 2
6279 done
6280 done
6281 IFS=$as_save_IFS
6285 NMEDIT=$ac_cv_prog_NMEDIT
6286 if test -n "$NMEDIT"; then
6287 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6288 $as_echo "$NMEDIT" >&6; }
6289 else
6290 { $as_echo "$as_me:$LINENO: result: no" >&5
6291 $as_echo "no" >&6; }
6296 if test -z "$ac_cv_prog_NMEDIT"; then
6297 ac_ct_NMEDIT=$NMEDIT
6298 # Extract the first word of "nmedit", so it can be a program name with args.
6299 set dummy nmedit; ac_word=$2
6300 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 $as_echo_n "checking for $ac_word... " >&6; }
6302 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6303 $as_echo_n "(cached) " >&6
6304 else
6305 if test -n "$ac_ct_NMEDIT"; then
6306 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6307 else
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6319 done
6320 done
6321 IFS=$as_save_IFS
6325 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6326 if test -n "$ac_ct_NMEDIT"; then
6327 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6328 $as_echo "$ac_ct_NMEDIT" >&6; }
6329 else
6330 { $as_echo "$as_me:$LINENO: result: no" >&5
6331 $as_echo "no" >&6; }
6334 if test "x$ac_ct_NMEDIT" = x; then
6335 NMEDIT=":"
6336 else
6337 case $cross_compiling:$ac_tool_warned in
6338 yes:)
6339 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6341 ac_tool_warned=yes ;;
6342 esac
6343 NMEDIT=$ac_ct_NMEDIT
6345 else
6346 NMEDIT="$ac_cv_prog_NMEDIT"
6349 if test -n "$ac_tool_prefix"; then
6350 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if test "${ac_cv_prog_LIPO+set}" = set; then
6355 $as_echo_n "(cached) " >&6
6356 else
6357 if test -n "$LIPO"; then
6358 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6363 IFS=$as_save_IFS
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 break 2
6371 done
6372 done
6373 IFS=$as_save_IFS
6377 LIPO=$ac_cv_prog_LIPO
6378 if test -n "$LIPO"; then
6379 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6380 $as_echo "$LIPO" >&6; }
6381 else
6382 { $as_echo "$as_me:$LINENO: result: no" >&5
6383 $as_echo "no" >&6; }
6388 if test -z "$ac_cv_prog_LIPO"; then
6389 ac_ct_LIPO=$LIPO
6390 # Extract the first word of "lipo", so it can be a program name with args.
6391 set dummy lipo; ac_word=$2
6392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6395 $as_echo_n "(cached) " >&6
6396 else
6397 if test -n "$ac_ct_LIPO"; then
6398 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6403 IFS=$as_save_IFS
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407 ac_cv_prog_ac_ct_LIPO="lipo"
6408 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 break 2
6411 done
6412 done
6413 IFS=$as_save_IFS
6417 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6418 if test -n "$ac_ct_LIPO"; then
6419 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6420 $as_echo "$ac_ct_LIPO" >&6; }
6421 else
6422 { $as_echo "$as_me:$LINENO: result: no" >&5
6423 $as_echo "no" >&6; }
6426 if test "x$ac_ct_LIPO" = x; then
6427 LIPO=":"
6428 else
6429 case $cross_compiling:$ac_tool_warned in
6430 yes:)
6431 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6434 esac
6435 LIPO=$ac_ct_LIPO
6437 else
6438 LIPO="$ac_cv_prog_LIPO"
6441 if test -n "$ac_tool_prefix"; then
6442 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6443 set dummy ${ac_tool_prefix}otool; ac_word=$2
6444 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if test "${ac_cv_prog_OTOOL+set}" = set; then
6447 $as_echo_n "(cached) " >&6
6448 else
6449 if test -n "$OTOOL"; then
6450 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6460 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6463 done
6464 done
6465 IFS=$as_save_IFS
6469 OTOOL=$ac_cv_prog_OTOOL
6470 if test -n "$OTOOL"; then
6471 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6472 $as_echo "$OTOOL" >&6; }
6473 else
6474 { $as_echo "$as_me:$LINENO: result: no" >&5
6475 $as_echo "no" >&6; }
6480 if test -z "$ac_cv_prog_OTOOL"; then
6481 ac_ct_OTOOL=$OTOOL
6482 # Extract the first word of "otool", so it can be a program name with args.
6483 set dummy otool; ac_word=$2
6484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6487 $as_echo_n "(cached) " >&6
6488 else
6489 if test -n "$ac_ct_OTOOL"; then
6490 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 ac_cv_prog_ac_ct_OTOOL="otool"
6500 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6503 done
6504 done
6505 IFS=$as_save_IFS
6509 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6510 if test -n "$ac_ct_OTOOL"; then
6511 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6512 $as_echo "$ac_ct_OTOOL" >&6; }
6513 else
6514 { $as_echo "$as_me:$LINENO: result: no" >&5
6515 $as_echo "no" >&6; }
6518 if test "x$ac_ct_OTOOL" = x; then
6519 OTOOL=":"
6520 else
6521 case $cross_compiling:$ac_tool_warned in
6522 yes:)
6523 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525 ac_tool_warned=yes ;;
6526 esac
6527 OTOOL=$ac_ct_OTOOL
6529 else
6530 OTOOL="$ac_cv_prog_OTOOL"
6533 if test -n "$ac_tool_prefix"; then
6534 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6535 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6536 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6539 $as_echo_n "(cached) " >&6
6540 else
6541 if test -n "$OTOOL64"; then
6542 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6552 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6555 done
6556 done
6557 IFS=$as_save_IFS
6561 OTOOL64=$ac_cv_prog_OTOOL64
6562 if test -n "$OTOOL64"; then
6563 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6564 $as_echo "$OTOOL64" >&6; }
6565 else
6566 { $as_echo "$as_me:$LINENO: result: no" >&5
6567 $as_echo "no" >&6; }
6572 if test -z "$ac_cv_prog_OTOOL64"; then
6573 ac_ct_OTOOL64=$OTOOL64
6574 # Extract the first word of "otool64", so it can be a program name with args.
6575 set dummy otool64; ac_word=$2
6576 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6579 $as_echo_n "(cached) " >&6
6580 else
6581 if test -n "$ac_ct_OTOOL64"; then
6582 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_prog_ac_ct_OTOOL64="otool64"
6592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 break 2
6595 done
6596 done
6597 IFS=$as_save_IFS
6601 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6602 if test -n "$ac_ct_OTOOL64"; then
6603 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6604 $as_echo "$ac_ct_OTOOL64" >&6; }
6605 else
6606 { $as_echo "$as_me:$LINENO: result: no" >&5
6607 $as_echo "no" >&6; }
6610 if test "x$ac_ct_OTOOL64" = x; then
6611 OTOOL64=":"
6612 else
6613 case $cross_compiling:$ac_tool_warned in
6614 yes:)
6615 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617 ac_tool_warned=yes ;;
6618 esac
6619 OTOOL64=$ac_ct_OTOOL64
6621 else
6622 OTOOL64="$ac_cv_prog_OTOOL64"
6651 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6652 $as_echo_n "checking for -single_module linker flag... " >&6; }
6653 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6654 $as_echo_n "(cached) " >&6
6655 else
6656 lt_cv_apple_cc_single_mod=no
6657 if test -z "${LT_MULTI_MODULE}"; then
6658 # By default we will add the -single_module flag. You can override
6659 # by either setting the environment variable LT_MULTI_MODULE
6660 # non-empty at configure time, or by adding -multi_module to the
6661 # link flags.
6662 rm -rf libconftest.dylib*
6663 echo "int foo(void){return 1;}" > conftest.c
6664 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6665 -dynamiclib -Wl,-single_module conftest.c" >&5
6666 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6667 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6668 _lt_result=$?
6669 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6670 lt_cv_apple_cc_single_mod=yes
6671 else
6672 cat conftest.err >&5
6674 rm -rf libconftest.dylib*
6675 rm -f conftest.*
6678 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6679 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6680 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6681 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6682 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6683 $as_echo_n "(cached) " >&6
6684 else
6685 lt_cv_ld_exported_symbols_list=no
6686 save_LDFLAGS=$LDFLAGS
6687 echo "_main" > conftest.sym
6688 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6689 cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h. */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6697 main ()
6701 return 0;
6703 _ACEOF
6704 rm -f conftest.$ac_objext conftest$ac_exeext
6705 if { (ac_try="$ac_link"
6706 case "(($ac_try" in
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6709 esac
6710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6711 $as_echo "$ac_try_echo") >&5
6712 (eval "$ac_link") 2>conftest.er1
6713 ac_status=$?
6714 grep -v '^ *+' conftest.er1 >conftest.err
6715 rm -f conftest.er1
6716 cat conftest.err >&5
6717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest$ac_exeext && {
6722 test "$cross_compiling" = yes ||
6723 $as_test_x conftest$ac_exeext
6724 }; then
6725 lt_cv_ld_exported_symbols_list=yes
6726 else
6727 $as_echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6730 lt_cv_ld_exported_symbols_list=no
6733 rm -rf conftest.dSYM
6734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6735 conftest$ac_exeext conftest.$ac_ext
6736 LDFLAGS="$save_LDFLAGS"
6739 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6740 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6741 case $host_os in
6742 rhapsody* | darwin1.[012])
6743 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6744 darwin1.*)
6745 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6746 darwin*) # darwin 5.x on
6747 # if running on 10.5 or later, the deployment target defaults
6748 # to the OS version, if on x86, and 10.4, the deployment
6749 # target defaults to 10.4. Don't you love it?
6750 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6751 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6752 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6753 10.[012]*)
6754 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6755 10.*)
6756 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6757 esac
6759 esac
6760 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6761 _lt_dar_single_mod='$single_module'
6763 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6764 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6765 else
6766 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6768 if test "$DSYMUTIL" != ":"; then
6769 _lt_dsymutil='~$DSYMUTIL $lib || :'
6770 else
6771 _lt_dsymutil=
6774 esac
6776 ac_ext=c
6777 ac_cpp='$CPP $CPPFLAGS'
6778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6781 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6782 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6783 # On Suns, sometimes $CPP names a directory.
6784 if test -n "$CPP" && test -d "$CPP"; then
6785 CPP=
6787 if test -z "$CPP"; then
6788 if test "${ac_cv_prog_CPP+set}" = set; then
6789 $as_echo_n "(cached) " >&6
6790 else
6791 # Double quotes because CPP needs to be expanded
6792 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6794 ac_preproc_ok=false
6795 for ac_c_preproc_warn_flag in '' yes
6797 # Use a header file that comes with gcc, so configuring glibc
6798 # with a fresh cross-compiler works.
6799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6800 # <limits.h> exists even on freestanding compilers.
6801 # On the NeXT, cc -E runs the code through the compiler's parser,
6802 # not just through cpp. "Syntax error" is here to catch this case.
6803 cat >conftest.$ac_ext <<_ACEOF
6804 /* confdefs.h. */
6805 _ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6809 #ifdef __STDC__
6810 # include <limits.h>
6811 #else
6812 # include <assert.h>
6813 #endif
6814 Syntax error
6815 _ACEOF
6816 if { (ac_try="$ac_cpp conftest.$ac_ext"
6817 case "(($ac_try" in
6818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6819 *) ac_try_echo=$ac_try;;
6820 esac
6821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6822 $as_echo "$ac_try_echo") >&5
6823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } >/dev/null && {
6830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6831 test ! -s conftest.err
6832 }; then
6834 else
6835 $as_echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6838 # Broken: fails on valid input.
6839 continue
6842 rm -f conftest.err conftest.$ac_ext
6844 # OK, works on sane cases. Now check whether nonexistent headers
6845 # can be detected and how.
6846 cat >conftest.$ac_ext <<_ACEOF
6847 /* confdefs.h. */
6848 _ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6852 #include <ac_nonexistent.h>
6853 _ACEOF
6854 if { (ac_try="$ac_cpp conftest.$ac_ext"
6855 case "(($ac_try" in
6856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6857 *) ac_try_echo=$ac_try;;
6858 esac
6859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6860 $as_echo "$ac_try_echo") >&5
6861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6862 ac_status=$?
6863 grep -v '^ *+' conftest.er1 >conftest.err
6864 rm -f conftest.er1
6865 cat conftest.err >&5
6866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } >/dev/null && {
6868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6869 test ! -s conftest.err
6870 }; then
6871 # Broken: success on invalid input.
6872 continue
6873 else
6874 $as_echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 # Passes both tests.
6878 ac_preproc_ok=:
6879 break
6882 rm -f conftest.err conftest.$ac_ext
6884 done
6885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6886 rm -f conftest.err conftest.$ac_ext
6887 if $ac_preproc_ok; then
6888 break
6891 done
6892 ac_cv_prog_CPP=$CPP
6895 CPP=$ac_cv_prog_CPP
6896 else
6897 ac_cv_prog_CPP=$CPP
6899 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6900 $as_echo "$CPP" >&6; }
6901 ac_preproc_ok=false
6902 for ac_c_preproc_warn_flag in '' yes
6904 # Use a header file that comes with gcc, so configuring glibc
6905 # with a fresh cross-compiler works.
6906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6907 # <limits.h> exists even on freestanding compilers.
6908 # On the NeXT, cc -E runs the code through the compiler's parser,
6909 # not just through cpp. "Syntax error" is here to catch this case.
6910 cat >conftest.$ac_ext <<_ACEOF
6911 /* confdefs.h. */
6912 _ACEOF
6913 cat confdefs.h >>conftest.$ac_ext
6914 cat >>conftest.$ac_ext <<_ACEOF
6915 /* end confdefs.h. */
6916 #ifdef __STDC__
6917 # include <limits.h>
6918 #else
6919 # include <assert.h>
6920 #endif
6921 Syntax error
6922 _ACEOF
6923 if { (ac_try="$ac_cpp conftest.$ac_ext"
6924 case "(($ac_try" in
6925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6926 *) ac_try_echo=$ac_try;;
6927 esac
6928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6929 $as_echo "$ac_try_echo") >&5
6930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6931 ac_status=$?
6932 grep -v '^ *+' conftest.er1 >conftest.err
6933 rm -f conftest.er1
6934 cat conftest.err >&5
6935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); } >/dev/null && {
6937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6938 test ! -s conftest.err
6939 }; then
6941 else
6942 $as_echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6945 # Broken: fails on valid input.
6946 continue
6949 rm -f conftest.err conftest.$ac_ext
6951 # OK, works on sane cases. Now check whether nonexistent headers
6952 # can be detected and how.
6953 cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h. */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6959 #include <ac_nonexistent.h>
6960 _ACEOF
6961 if { (ac_try="$ac_cpp conftest.$ac_ext"
6962 case "(($ac_try" in
6963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964 *) ac_try_echo=$ac_try;;
6965 esac
6966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6967 $as_echo "$ac_try_echo") >&5
6968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6969 ac_status=$?
6970 grep -v '^ *+' conftest.er1 >conftest.err
6971 rm -f conftest.er1
6972 cat conftest.err >&5
6973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } >/dev/null && {
6975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 }; then
6978 # Broken: success on invalid input.
6979 continue
6980 else
6981 $as_echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6984 # Passes both tests.
6985 ac_preproc_ok=:
6986 break
6989 rm -f conftest.err conftest.$ac_ext
6991 done
6992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6993 rm -f conftest.err conftest.$ac_ext
6994 if $ac_preproc_ok; then
6996 else
6997 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6999 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7000 See \`config.log' for more details." >&5
7001 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7002 See \`config.log' for more details." >&2;}
7003 { (exit 1); exit 1; }; }; }
7006 ac_ext=c
7007 ac_cpp='$CPP $CPPFLAGS'
7008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7013 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7014 $as_echo_n "checking for ANSI C header files... " >&6; }
7015 if test "${ac_cv_header_stdc+set}" = set; then
7016 $as_echo_n "(cached) " >&6
7017 else
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h. */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 #include <stdlib.h>
7025 #include <stdarg.h>
7026 #include <string.h>
7027 #include <float.h>
7030 main ()
7034 return 0;
7036 _ACEOF
7037 rm -f conftest.$ac_objext
7038 if { (ac_try="$ac_compile"
7039 case "(($ac_try" in
7040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7041 *) ac_try_echo=$ac_try;;
7042 esac
7043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7044 $as_echo "$ac_try_echo") >&5
7045 (eval "$ac_compile") 2>conftest.er1
7046 ac_status=$?
7047 grep -v '^ *+' conftest.er1 >conftest.err
7048 rm -f conftest.er1
7049 cat conftest.err >&5
7050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } && {
7052 test -z "$ac_c_werror_flag" ||
7053 test ! -s conftest.err
7054 } && test -s conftest.$ac_objext; then
7055 ac_cv_header_stdc=yes
7056 else
7057 $as_echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 ac_cv_header_stdc=no
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 if test $ac_cv_header_stdc = yes; then
7066 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7067 cat >conftest.$ac_ext <<_ACEOF
7068 /* confdefs.h. */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7073 #include <string.h>
7075 _ACEOF
7076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7077 $EGREP "memchr" >/dev/null 2>&1; then
7079 else
7080 ac_cv_header_stdc=no
7082 rm -f conftest*
7086 if test $ac_cv_header_stdc = yes; then
7087 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 #include <stdlib.h>
7096 _ACEOF
7097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7098 $EGREP "free" >/dev/null 2>&1; then
7100 else
7101 ac_cv_header_stdc=no
7103 rm -f conftest*
7107 if test $ac_cv_header_stdc = yes; then
7108 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7109 if test "$cross_compiling" = yes; then
7111 else
7112 cat >conftest.$ac_ext <<_ACEOF
7113 /* confdefs.h. */
7114 _ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 #include <ctype.h>
7119 #include <stdlib.h>
7120 #if ((' ' & 0x0FF) == 0x020)
7121 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7122 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7123 #else
7124 # define ISLOWER(c) \
7125 (('a' <= (c) && (c) <= 'i') \
7126 || ('j' <= (c) && (c) <= 'r') \
7127 || ('s' <= (c) && (c) <= 'z'))
7128 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7129 #endif
7131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7133 main ()
7135 int i;
7136 for (i = 0; i < 256; i++)
7137 if (XOR (islower (i), ISLOWER (i))
7138 || toupper (i) != TOUPPER (i))
7139 return 2;
7140 return 0;
7142 _ACEOF
7143 rm -f conftest$ac_exeext
7144 if { (ac_try="$ac_link"
7145 case "(($ac_try" in
7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7148 esac
7149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7150 $as_echo "$ac_try_echo") >&5
7151 (eval "$ac_link") 2>&5
7152 ac_status=$?
7153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7155 { (case "(($ac_try" in
7156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7157 *) ac_try_echo=$ac_try;;
7158 esac
7159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7160 $as_echo "$ac_try_echo") >&5
7161 (eval "$ac_try") 2>&5
7162 ac_status=$?
7163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7166 else
7167 $as_echo "$as_me: program exited with status $ac_status" >&5
7168 $as_echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7171 ( exit $ac_status )
7172 ac_cv_header_stdc=no
7174 rm -rf conftest.dSYM
7175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7181 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7182 $as_echo "$ac_cv_header_stdc" >&6; }
7183 if test $ac_cv_header_stdc = yes; then
7185 cat >>confdefs.h <<\_ACEOF
7186 #define STDC_HEADERS 1
7187 _ACEOF
7191 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7201 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7202 inttypes.h stdint.h unistd.h
7204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7205 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7206 $as_echo_n "checking for $ac_header... " >&6; }
7207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7208 $as_echo_n "(cached) " >&6
7209 else
7210 cat >conftest.$ac_ext <<_ACEOF
7211 /* confdefs.h. */
7212 _ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h. */
7216 $ac_includes_default
7218 #include <$ac_header>
7219 _ACEOF
7220 rm -f conftest.$ac_objext
7221 if { (ac_try="$ac_compile"
7222 case "(($ac_try" in
7223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7224 *) ac_try_echo=$ac_try;;
7225 esac
7226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7227 $as_echo "$ac_try_echo") >&5
7228 (eval "$ac_compile") 2>conftest.er1
7229 ac_status=$?
7230 grep -v '^ *+' conftest.er1 >conftest.err
7231 rm -f conftest.er1
7232 cat conftest.err >&5
7233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } && {
7235 test -z "$ac_c_werror_flag" ||
7236 test ! -s conftest.err
7237 } && test -s conftest.$ac_objext; then
7238 eval "$as_ac_Header=yes"
7239 else
7240 $as_echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7243 eval "$as_ac_Header=no"
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 ac_res=`eval 'as_val=${'$as_ac_Header'}
7249 $as_echo "$as_val"'`
7250 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7251 $as_echo "$ac_res" >&6; }
7252 as_val=`eval 'as_val=${'$as_ac_Header'}
7253 $as_echo "$as_val"'`
7254 if test "x$as_val" = x""yes; then
7255 cat >>confdefs.h <<_ACEOF
7256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7257 _ACEOF
7261 done
7265 for ac_header in dlfcn.h
7267 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7268 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7269 $as_echo_n "checking for $ac_header... " >&6; }
7270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7271 $as_echo_n "(cached) " >&6
7272 else
7273 cat >conftest.$ac_ext <<_ACEOF
7274 /* confdefs.h. */
7275 _ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7279 $ac_includes_default
7281 #include <$ac_header>
7282 _ACEOF
7283 rm -f conftest.$ac_objext
7284 if { (ac_try="$ac_compile"
7285 case "(($ac_try" in
7286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287 *) ac_try_echo=$ac_try;;
7288 esac
7289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7290 $as_echo "$ac_try_echo") >&5
7291 (eval "$ac_compile") 2>conftest.er1
7292 ac_status=$?
7293 grep -v '^ *+' conftest.er1 >conftest.err
7294 rm -f conftest.er1
7295 cat conftest.err >&5
7296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } && {
7298 test -z "$ac_c_werror_flag" ||
7299 test ! -s conftest.err
7300 } && test -s conftest.$ac_objext; then
7301 eval "$as_ac_Header=yes"
7302 else
7303 $as_echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7306 eval "$as_ac_Header=no"
7309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 ac_res=`eval 'as_val=${'$as_ac_Header'}
7312 $as_echo "$as_val"'`
7313 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7314 $as_echo "$ac_res" >&6; }
7315 as_val=`eval 'as_val=${'$as_ac_Header'}
7316 $as_echo "$as_val"'`
7317 if test "x$as_val" = x""yes; then
7318 cat >>confdefs.h <<_ACEOF
7319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7320 _ACEOF
7324 done
7328 # Set options
7332 enable_dlopen=no
7336 # Check whether --enable-shared was given.
7337 if test "${enable_shared+set}" = set; then
7338 enableval=$enable_shared; p=${PACKAGE-default}
7339 case $enableval in
7340 yes) enable_shared=yes ;;
7341 no) enable_shared=no ;;
7343 enable_shared=no
7344 # Look at the argument we got. We use all the common list separators.
7345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7346 for pkg in $enableval; do
7347 IFS="$lt_save_ifs"
7348 if test "X$pkg" = "X$p"; then
7349 enable_shared=yes
7351 done
7352 IFS="$lt_save_ifs"
7354 esac
7355 else
7356 enable_shared=yes
7367 # Check whether --enable-static was given.
7368 if test "${enable_static+set}" = set; then
7369 enableval=$enable_static; p=${PACKAGE-default}
7370 case $enableval in
7371 yes) enable_static=yes ;;
7372 no) enable_static=no ;;
7374 enable_static=no
7375 # Look at the argument we got. We use all the common list separators.
7376 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7377 for pkg in $enableval; do
7378 IFS="$lt_save_ifs"
7379 if test "X$pkg" = "X$p"; then
7380 enable_static=yes
7382 done
7383 IFS="$lt_save_ifs"
7385 esac
7386 else
7387 enable_static=yes
7399 # Check whether --with-pic was given.
7400 if test "${with_pic+set}" = set; then
7401 withval=$with_pic; pic_mode="$withval"
7402 else
7403 pic_mode=default
7407 test -z "$pic_mode" && pic_mode=default
7415 # Check whether --enable-fast-install was given.
7416 if test "${enable_fast_install+set}" = set; then
7417 enableval=$enable_fast_install; p=${PACKAGE-default}
7418 case $enableval in
7419 yes) enable_fast_install=yes ;;
7420 no) enable_fast_install=no ;;
7422 enable_fast_install=no
7423 # Look at the argument we got. We use all the common list separators.
7424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7425 for pkg in $enableval; do
7426 IFS="$lt_save_ifs"
7427 if test "X$pkg" = "X$p"; then
7428 enable_fast_install=yes
7430 done
7431 IFS="$lt_save_ifs"
7433 esac
7434 else
7435 enable_fast_install=yes
7448 # This can be used to rebuild libtool when needed
7449 LIBTOOL_DEPS="$ltmain"
7451 # Always use our own libtool.
7452 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7478 test -z "$LN_S" && LN_S="ln -s"
7493 if test -n "${ZSH_VERSION+set}" ; then
7494 setopt NO_GLOB_SUBST
7497 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7498 $as_echo_n "checking for objdir... " >&6; }
7499 if test "${lt_cv_objdir+set}" = set; then
7500 $as_echo_n "(cached) " >&6
7501 else
7502 rm -f .libs 2>/dev/null
7503 mkdir .libs 2>/dev/null
7504 if test -d .libs; then
7505 lt_cv_objdir=.libs
7506 else
7507 # MS-DOS does not allow filenames that begin with a dot.
7508 lt_cv_objdir=_libs
7510 rmdir .libs 2>/dev/null
7512 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7513 $as_echo "$lt_cv_objdir" >&6; }
7514 objdir=$lt_cv_objdir
7520 cat >>confdefs.h <<_ACEOF
7521 #define LT_OBJDIR "$lt_cv_objdir/"
7522 _ACEOF
7540 case $host_os in
7541 aix3*)
7542 # AIX sometimes has problems with the GCC collect2 program. For some
7543 # reason, if we set the COLLECT_NAMES environment variable, the problems
7544 # vanish in a puff of smoke.
7545 if test "X${COLLECT_NAMES+set}" != Xset; then
7546 COLLECT_NAMES=
7547 export COLLECT_NAMES
7550 esac
7552 # Sed substitution that helps us do robust quoting. It backslashifies
7553 # metacharacters that are still active within double-quoted strings.
7554 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7556 # Same as above, but do not quote variable references.
7557 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7559 # Sed substitution to delay expansion of an escaped shell variable in a
7560 # double_quote_subst'ed string.
7561 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7563 # Sed substitution to delay expansion of an escaped single quote.
7564 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7566 # Sed substitution to avoid accidental globbing in evaled expressions
7567 no_glob_subst='s/\*/\\\*/g'
7569 # Global variables:
7570 ofile=libtool
7571 can_build_shared=yes
7573 # All known linkers require a `.a' archive for static linking (except MSVC,
7574 # which needs '.lib').
7575 libext=a
7577 with_gnu_ld="$lt_cv_prog_gnu_ld"
7579 old_CC="$CC"
7580 old_CFLAGS="$CFLAGS"
7582 # Set sane defaults for various variables
7583 test -z "$CC" && CC=cc
7584 test -z "$LTCC" && LTCC=$CC
7585 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7586 test -z "$LD" && LD=ld
7587 test -z "$ac_objext" && ac_objext=o
7589 for cc_temp in $compiler""; do
7590 case $cc_temp in
7591 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7592 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7593 \-*) ;;
7594 *) break;;
7595 esac
7596 done
7597 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7600 # Only perform the check for file, if the check method requires it
7601 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7602 case $deplibs_check_method in
7603 file_magic*)
7604 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7605 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7606 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7607 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7608 $as_echo_n "(cached) " >&6
7609 else
7610 case $MAGIC_CMD in
7611 [\\/*] | ?:[\\/]*)
7612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7615 lt_save_MAGIC_CMD="$MAGIC_CMD"
7616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7617 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7618 for ac_dir in $ac_dummy; do
7619 IFS="$lt_save_ifs"
7620 test -z "$ac_dir" && ac_dir=.
7621 if test -f $ac_dir/${ac_tool_prefix}file; then
7622 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7623 if test -n "$file_magic_test_file"; then
7624 case $deplibs_check_method in
7625 "file_magic "*)
7626 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7628 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7629 $EGREP "$file_magic_regex" > /dev/null; then
7631 else
7632 cat <<_LT_EOF 1>&2
7634 *** Warning: the command libtool uses to detect shared libraries,
7635 *** $file_magic_cmd, produces output that libtool cannot recognize.
7636 *** The result is that libtool may fail to recognize shared libraries
7637 *** as such. This will affect the creation of libtool libraries that
7638 *** depend on shared libraries, but programs linked with such libtool
7639 *** libraries will work regardless of this problem. Nevertheless, you
7640 *** may want to report the problem to your system manager and/or to
7641 *** bug-libtool@gnu.org
7643 _LT_EOF
7644 fi ;;
7645 esac
7647 break
7649 done
7650 IFS="$lt_save_ifs"
7651 MAGIC_CMD="$lt_save_MAGIC_CMD"
7653 esac
7656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7657 if test -n "$MAGIC_CMD"; then
7658 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7659 $as_echo "$MAGIC_CMD" >&6; }
7660 else
7661 { $as_echo "$as_me:$LINENO: result: no" >&5
7662 $as_echo "no" >&6; }
7669 if test -z "$lt_cv_path_MAGIC_CMD"; then
7670 if test -n "$ac_tool_prefix"; then
7671 { $as_echo "$as_me:$LINENO: checking for file" >&5
7672 $as_echo_n "checking for file... " >&6; }
7673 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7674 $as_echo_n "(cached) " >&6
7675 else
7676 case $MAGIC_CMD in
7677 [\\/*] | ?:[\\/]*)
7678 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7681 lt_save_MAGIC_CMD="$MAGIC_CMD"
7682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7683 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7684 for ac_dir in $ac_dummy; do
7685 IFS="$lt_save_ifs"
7686 test -z "$ac_dir" && ac_dir=.
7687 if test -f $ac_dir/file; then
7688 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7689 if test -n "$file_magic_test_file"; then
7690 case $deplibs_check_method in
7691 "file_magic "*)
7692 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7693 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7694 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7695 $EGREP "$file_magic_regex" > /dev/null; then
7697 else
7698 cat <<_LT_EOF 1>&2
7700 *** Warning: the command libtool uses to detect shared libraries,
7701 *** $file_magic_cmd, produces output that libtool cannot recognize.
7702 *** The result is that libtool may fail to recognize shared libraries
7703 *** as such. This will affect the creation of libtool libraries that
7704 *** depend on shared libraries, but programs linked with such libtool
7705 *** libraries will work regardless of this problem. Nevertheless, you
7706 *** may want to report the problem to your system manager and/or to
7707 *** bug-libtool@gnu.org
7709 _LT_EOF
7710 fi ;;
7711 esac
7713 break
7715 done
7716 IFS="$lt_save_ifs"
7717 MAGIC_CMD="$lt_save_MAGIC_CMD"
7719 esac
7722 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7723 if test -n "$MAGIC_CMD"; then
7724 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7725 $as_echo "$MAGIC_CMD" >&6; }
7726 else
7727 { $as_echo "$as_me:$LINENO: result: no" >&5
7728 $as_echo "no" >&6; }
7732 else
7733 MAGIC_CMD=:
7739 esac
7741 # Use C for the default configuration in the libtool script
7743 lt_save_CC="$CC"
7744 ac_ext=c
7745 ac_cpp='$CPP $CPPFLAGS'
7746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7751 # Source file extension for C test sources.
7752 ac_ext=c
7754 # Object file extension for compiled C test sources.
7755 objext=o
7756 objext=$objext
7758 # Code to be used in simple compile tests
7759 lt_simple_compile_test_code="int some_variable = 0;"
7761 # Code to be used in simple link tests
7762 lt_simple_link_test_code='int main(){return(0);}'
7770 # If no C compiler was specified, use CC.
7771 LTCC=${LTCC-"$CC"}
7773 # If no C compiler flags were specified, use CFLAGS.
7774 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7776 # Allow CC to be a program name with arguments.
7777 compiler=$CC
7779 # Save the default compiler, since it gets overwritten when the other
7780 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7781 compiler_DEFAULT=$CC
7783 # save warnings/boilerplate of simple test code
7784 ac_outfile=conftest.$ac_objext
7785 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7786 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7787 _lt_compiler_boilerplate=`cat conftest.err`
7788 $RM conftest*
7790 ac_outfile=conftest.$ac_objext
7791 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7792 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7793 _lt_linker_boilerplate=`cat conftest.err`
7794 $RM -r conftest*
7797 if test -n "$compiler"; then
7799 lt_prog_compiler_no_builtin_flag=
7801 if test "$GCC" = yes; then
7802 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7804 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7805 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7806 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7807 $as_echo_n "(cached) " >&6
7808 else
7809 lt_cv_prog_compiler_rtti_exceptions=no
7810 ac_outfile=conftest.$ac_objext
7811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7812 lt_compiler_flag="-fno-rtti -fno-exceptions"
7813 # Insert the option either (1) after the last *FLAGS variable, or
7814 # (2) before a word containing "conftest.", or (3) at the end.
7815 # Note that $ac_compile itself does not contain backslashes and begins
7816 # with a dollar sign (not a hyphen), so the echo should work correctly.
7817 # The option is referenced via a variable to avoid confusing sed.
7818 lt_compile=`echo "$ac_compile" | $SED \
7819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7821 -e 's:$: $lt_compiler_flag:'`
7822 (eval echo "\"\$as_me:7822: $lt_compile\"" >&5)
7823 (eval "$lt_compile" 2>conftest.err)
7824 ac_status=$?
7825 cat conftest.err >&5
7826 echo "$as_me:7826: \$? = $ac_status" >&5
7827 if (exit $ac_status) && test -s "$ac_outfile"; then
7828 # The compiler can only warn and ignore the option if not recognized
7829 # So say no if there are warnings other than the usual output.
7830 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7832 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7833 lt_cv_prog_compiler_rtti_exceptions=yes
7836 $RM conftest*
7839 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7840 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7842 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7843 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7844 else
7855 lt_prog_compiler_wl=
7856 lt_prog_compiler_pic=
7857 lt_prog_compiler_static=
7859 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7860 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7862 if test "$GCC" = yes; then
7863 lt_prog_compiler_wl='-Wl,'
7864 lt_prog_compiler_static='-static'
7866 case $host_os in
7867 aix*)
7868 # All AIX code is PIC.
7869 if test "$host_cpu" = ia64; then
7870 # AIX 5 now supports IA64 processor
7871 lt_prog_compiler_static='-Bstatic'
7875 amigaos*)
7876 case $host_cpu in
7877 powerpc)
7878 # see comment about AmigaOS4 .so support
7879 lt_prog_compiler_pic='-fPIC'
7881 m68k)
7882 # FIXME: we need at least 68020 code to build shared libraries, but
7883 # adding the `-m68020' flag to GCC prevents building anything better,
7884 # like `-m68040'.
7885 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7887 esac
7890 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7891 # PIC is the default for these OSes.
7894 mingw* | cygwin* | pw32* | os2* | cegcc*)
7895 # This hack is so that the source file can tell whether it is being
7896 # built for inclusion in a dll (and should export symbols for example).
7897 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7898 # (--disable-auto-import) libraries
7899 lt_prog_compiler_pic='-DDLL_EXPORT'
7902 darwin* | rhapsody*)
7903 # PIC is the default on this platform
7904 # Common symbols not allowed in MH_DYLIB files
7905 lt_prog_compiler_pic='-fno-common'
7908 hpux*)
7909 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7910 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7911 # sets the default TLS model and affects inlining.
7912 case $host_cpu in
7913 hppa*64*)
7914 # +Z the default
7917 lt_prog_compiler_pic='-fPIC'
7919 esac
7922 interix[3-9]*)
7923 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7924 # Instead, we relocate shared libraries at runtime.
7927 msdosdjgpp*)
7928 # Just because we use GCC doesn't mean we suddenly get shared libraries
7929 # on systems that don't support them.
7930 lt_prog_compiler_can_build_shared=no
7931 enable_shared=no
7934 *nto* | *qnx*)
7935 # QNX uses GNU C++, but need to define -shared option too, otherwise
7936 # it will coredump.
7937 lt_prog_compiler_pic='-fPIC -shared'
7940 sysv4*MP*)
7941 if test -d /usr/nec; then
7942 lt_prog_compiler_pic=-Kconform_pic
7947 lt_prog_compiler_pic='-fPIC'
7949 esac
7950 else
7951 # PORTME Check for flag to pass linker flags through the system compiler.
7952 case $host_os in
7953 aix*)
7954 lt_prog_compiler_wl='-Wl,'
7955 if test "$host_cpu" = ia64; then
7956 # AIX 5 now supports IA64 processor
7957 lt_prog_compiler_static='-Bstatic'
7958 else
7959 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7963 mingw* | cygwin* | pw32* | os2* | cegcc*)
7964 # This hack is so that the source file can tell whether it is being
7965 # built for inclusion in a dll (and should export symbols for example).
7966 lt_prog_compiler_pic='-DDLL_EXPORT'
7969 hpux9* | hpux10* | hpux11*)
7970 lt_prog_compiler_wl='-Wl,'
7971 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7972 # not for PA HP-UX.
7973 case $host_cpu in
7974 hppa*64*|ia64*)
7975 # +Z the default
7978 lt_prog_compiler_pic='+Z'
7980 esac
7981 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7982 lt_prog_compiler_static='${wl}-a ${wl}archive'
7985 irix5* | irix6* | nonstopux*)
7986 lt_prog_compiler_wl='-Wl,'
7987 # PIC (with -KPIC) is the default.
7988 lt_prog_compiler_static='-non_shared'
7991 linux* | k*bsd*-gnu)
7992 case $cc_basename in
7993 # old Intel for x86_64 which still supported -KPIC.
7994 ecc*)
7995 lt_prog_compiler_wl='-Wl,'
7996 lt_prog_compiler_pic='-KPIC'
7997 lt_prog_compiler_static='-static'
7999 # icc used to be incompatible with GCC.
8000 # ICC 10 doesn't accept -KPIC any more.
8001 icc* | ifort*)
8002 lt_prog_compiler_wl='-Wl,'
8003 lt_prog_compiler_pic='-fPIC'
8004 lt_prog_compiler_static='-static'
8006 # Lahey Fortran 8.1.
8007 lf95*)
8008 lt_prog_compiler_wl='-Wl,'
8009 lt_prog_compiler_pic='--shared'
8010 lt_prog_compiler_static='--static'
8012 pgcc* | pgf77* | pgf90* | pgf95*)
8013 # Portland Group compilers (*not* the Pentium gcc compiler,
8014 # which looks to be a dead project)
8015 lt_prog_compiler_wl='-Wl,'
8016 lt_prog_compiler_pic='-fpic'
8017 lt_prog_compiler_static='-Bstatic'
8019 ccc*)
8020 lt_prog_compiler_wl='-Wl,'
8021 # All Alpha code is PIC.
8022 lt_prog_compiler_static='-non_shared'
8024 xl*)
8025 # IBM XL C 8.0/Fortran 10.1 on PPC
8026 lt_prog_compiler_wl='-Wl,'
8027 lt_prog_compiler_pic='-qpic'
8028 lt_prog_compiler_static='-qstaticlink'
8031 case `$CC -V 2>&1 | sed 5q` in
8032 *Sun\ C*)
8033 # Sun C 5.9
8034 lt_prog_compiler_pic='-KPIC'
8035 lt_prog_compiler_static='-Bstatic'
8036 lt_prog_compiler_wl='-Wl,'
8038 *Sun\ F*)
8039 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8040 lt_prog_compiler_pic='-KPIC'
8041 lt_prog_compiler_static='-Bstatic'
8042 lt_prog_compiler_wl=''
8044 esac
8046 esac
8049 newsos6)
8050 lt_prog_compiler_pic='-KPIC'
8051 lt_prog_compiler_static='-Bstatic'
8054 *nto* | *qnx*)
8055 # QNX uses GNU C++, but need to define -shared option too, otherwise
8056 # it will coredump.
8057 lt_prog_compiler_pic='-fPIC -shared'
8060 osf3* | osf4* | osf5*)
8061 lt_prog_compiler_wl='-Wl,'
8062 # All OSF/1 code is PIC.
8063 lt_prog_compiler_static='-non_shared'
8066 rdos*)
8067 lt_prog_compiler_static='-non_shared'
8070 solaris*)
8071 lt_prog_compiler_pic='-KPIC'
8072 lt_prog_compiler_static='-Bstatic'
8073 case $cc_basename in
8074 f77* | f90* | f95*)
8075 lt_prog_compiler_wl='-Qoption ld ';;
8077 lt_prog_compiler_wl='-Wl,';;
8078 esac
8081 sunos4*)
8082 lt_prog_compiler_wl='-Qoption ld '
8083 lt_prog_compiler_pic='-PIC'
8084 lt_prog_compiler_static='-Bstatic'
8087 sysv4 | sysv4.2uw2* | sysv4.3*)
8088 lt_prog_compiler_wl='-Wl,'
8089 lt_prog_compiler_pic='-KPIC'
8090 lt_prog_compiler_static='-Bstatic'
8093 sysv4*MP*)
8094 if test -d /usr/nec ;then
8095 lt_prog_compiler_pic='-Kconform_pic'
8096 lt_prog_compiler_static='-Bstatic'
8100 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8101 lt_prog_compiler_wl='-Wl,'
8102 lt_prog_compiler_pic='-KPIC'
8103 lt_prog_compiler_static='-Bstatic'
8106 unicos*)
8107 lt_prog_compiler_wl='-Wl,'
8108 lt_prog_compiler_can_build_shared=no
8111 uts4*)
8112 lt_prog_compiler_pic='-pic'
8113 lt_prog_compiler_static='-Bstatic'
8117 lt_prog_compiler_can_build_shared=no
8119 esac
8122 case $host_os in
8123 # For platforms which do not support PIC, -DPIC is meaningless:
8124 *djgpp*)
8125 lt_prog_compiler_pic=
8128 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8130 esac
8131 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8132 $as_echo "$lt_prog_compiler_pic" >&6; }
8140 # Check to make sure the PIC flag actually works.
8142 if test -n "$lt_prog_compiler_pic"; then
8143 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8144 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8145 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8146 $as_echo_n "(cached) " >&6
8147 else
8148 lt_cv_prog_compiler_pic_works=no
8149 ac_outfile=conftest.$ac_objext
8150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8151 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8152 # Insert the option either (1) after the last *FLAGS variable, or
8153 # (2) before a word containing "conftest.", or (3) at the end.
8154 # Note that $ac_compile itself does not contain backslashes and begins
8155 # with a dollar sign (not a hyphen), so the echo should work correctly.
8156 # The option is referenced via a variable to avoid confusing sed.
8157 lt_compile=`echo "$ac_compile" | $SED \
8158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8160 -e 's:$: $lt_compiler_flag:'`
8161 (eval echo "\"\$as_me:8161: $lt_compile\"" >&5)
8162 (eval "$lt_compile" 2>conftest.err)
8163 ac_status=$?
8164 cat conftest.err >&5
8165 echo "$as_me:8165: \$? = $ac_status" >&5
8166 if (exit $ac_status) && test -s "$ac_outfile"; then
8167 # The compiler can only warn and ignore the option if not recognized
8168 # So say no if there are warnings other than the usual output.
8169 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8171 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8172 lt_cv_prog_compiler_pic_works=yes
8175 $RM conftest*
8178 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8179 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8181 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8182 case $lt_prog_compiler_pic in
8183 "" | " "*) ;;
8184 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8185 esac
8186 else
8187 lt_prog_compiler_pic=
8188 lt_prog_compiler_can_build_shared=no
8199 # Check to make sure the static flag actually works.
8201 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8202 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8203 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8204 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8205 $as_echo_n "(cached) " >&6
8206 else
8207 lt_cv_prog_compiler_static_works=no
8208 save_LDFLAGS="$LDFLAGS"
8209 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8210 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8211 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8212 # The linker can only warn and ignore the option if not recognized
8213 # So say no if there are warnings
8214 if test -s conftest.err; then
8215 # Append any errors to the config.log.
8216 cat conftest.err 1>&5
8217 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8219 if diff conftest.exp conftest.er2 >/dev/null; then
8220 lt_cv_prog_compiler_static_works=yes
8222 else
8223 lt_cv_prog_compiler_static_works=yes
8226 $RM -r conftest*
8227 LDFLAGS="$save_LDFLAGS"
8230 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8231 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8233 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8235 else
8236 lt_prog_compiler_static=
8245 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8246 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8247 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8248 $as_echo_n "(cached) " >&6
8249 else
8250 lt_cv_prog_compiler_c_o=no
8251 $RM -r conftest 2>/dev/null
8252 mkdir conftest
8253 cd conftest
8254 mkdir out
8255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8257 lt_compiler_flag="-o out/conftest2.$ac_objext"
8258 # Insert the option either (1) after the last *FLAGS variable, or
8259 # (2) before a word containing "conftest.", or (3) at the end.
8260 # Note that $ac_compile itself does not contain backslashes and begins
8261 # with a dollar sign (not a hyphen), so the echo should work correctly.
8262 lt_compile=`echo "$ac_compile" | $SED \
8263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8265 -e 's:$: $lt_compiler_flag:'`
8266 (eval echo "\"\$as_me:8266: $lt_compile\"" >&5)
8267 (eval "$lt_compile" 2>out/conftest.err)
8268 ac_status=$?
8269 cat out/conftest.err >&5
8270 echo "$as_me:8270: \$? = $ac_status" >&5
8271 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8272 then
8273 # The compiler can only warn and ignore the option if not recognized
8274 # So say no if there are warnings
8275 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8276 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8277 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8278 lt_cv_prog_compiler_c_o=yes
8281 chmod u+w . 2>&5
8282 $RM conftest*
8283 # SGI C++ compiler will create directory out/ii_files/ for
8284 # template instantiation
8285 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8286 $RM out/* && rmdir out
8287 cd ..
8288 $RM -r conftest
8289 $RM conftest*
8292 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8293 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8300 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8301 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8302 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8303 $as_echo_n "(cached) " >&6
8304 else
8305 lt_cv_prog_compiler_c_o=no
8306 $RM -r conftest 2>/dev/null
8307 mkdir conftest
8308 cd conftest
8309 mkdir out
8310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8312 lt_compiler_flag="-o out/conftest2.$ac_objext"
8313 # Insert the option either (1) after the last *FLAGS variable, or
8314 # (2) before a word containing "conftest.", or (3) at the end.
8315 # Note that $ac_compile itself does not contain backslashes and begins
8316 # with a dollar sign (not a hyphen), so the echo should work correctly.
8317 lt_compile=`echo "$ac_compile" | $SED \
8318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8320 -e 's:$: $lt_compiler_flag:'`
8321 (eval echo "\"\$as_me:8321: $lt_compile\"" >&5)
8322 (eval "$lt_compile" 2>out/conftest.err)
8323 ac_status=$?
8324 cat out/conftest.err >&5
8325 echo "$as_me:8325: \$? = $ac_status" >&5
8326 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8327 then
8328 # The compiler can only warn and ignore the option if not recognized
8329 # So say no if there are warnings
8330 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8331 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8332 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8333 lt_cv_prog_compiler_c_o=yes
8336 chmod u+w . 2>&5
8337 $RM conftest*
8338 # SGI C++ compiler will create directory out/ii_files/ for
8339 # template instantiation
8340 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8341 $RM out/* && rmdir out
8342 cd ..
8343 $RM -r conftest
8344 $RM conftest*
8347 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8348 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8353 hard_links="nottested"
8354 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8355 # do not overwrite the value of need_locks provided by the user
8356 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8357 $as_echo_n "checking if we can lock with hard links... " >&6; }
8358 hard_links=yes
8359 $RM conftest*
8360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8361 touch conftest.a
8362 ln conftest.a conftest.b 2>&5 || hard_links=no
8363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8364 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8365 $as_echo "$hard_links" >&6; }
8366 if test "$hard_links" = no; then
8367 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8368 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8369 need_locks=warn
8371 else
8372 need_locks=no
8380 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8381 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8383 runpath_var=
8384 allow_undefined_flag=
8385 always_export_symbols=no
8386 archive_cmds=
8387 archive_expsym_cmds=
8388 compiler_needs_object=no
8389 enable_shared_with_static_runtimes=no
8390 export_dynamic_flag_spec=
8391 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8392 hardcode_automatic=no
8393 hardcode_direct=no
8394 hardcode_direct_absolute=no
8395 hardcode_libdir_flag_spec=
8396 hardcode_libdir_flag_spec_ld=
8397 hardcode_libdir_separator=
8398 hardcode_minus_L=no
8399 hardcode_shlibpath_var=unsupported
8400 inherit_rpath=no
8401 link_all_deplibs=unknown
8402 module_cmds=
8403 module_expsym_cmds=
8404 old_archive_from_new_cmds=
8405 old_archive_from_expsyms_cmds=
8406 thread_safe_flag_spec=
8407 whole_archive_flag_spec=
8408 # include_expsyms should be a list of space-separated symbols to be *always*
8409 # included in the symbol list
8410 include_expsyms=
8411 # exclude_expsyms can be an extended regexp of symbols to exclude
8412 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8413 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8414 # as well as any symbol that contains `d'.
8415 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8416 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8417 # platforms (ab)use it in PIC code, but their linkers get confused if
8418 # the symbol is explicitly referenced. Since portable code cannot
8419 # rely on this symbol name, it's probably fine to never include it in
8420 # preloaded symbol tables.
8421 # Exclude shared library initialization/finalization symbols.
8422 extract_expsyms_cmds=
8424 case $host_os in
8425 cygwin* | mingw* | pw32* | cegcc*)
8426 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8427 # When not using gcc, we currently assume that we are using
8428 # Microsoft Visual C++.
8429 if test "$GCC" != yes; then
8430 with_gnu_ld=no
8433 interix*)
8434 # we just hope/assume this is gcc and not c89 (= MSVC++)
8435 with_gnu_ld=yes
8437 openbsd*)
8438 with_gnu_ld=no
8440 esac
8442 ld_shlibs=yes
8443 if test "$with_gnu_ld" = yes; then
8444 # If archive_cmds runs LD, not CC, wlarc should be empty
8445 wlarc='${wl}'
8447 # Set some defaults for GNU ld with shared library support. These
8448 # are reset later if shared libraries are not supported. Putting them
8449 # here allows them to be overridden if necessary.
8450 runpath_var=LD_RUN_PATH
8451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8452 export_dynamic_flag_spec='${wl}--export-dynamic'
8453 # ancient GNU ld didn't support --whole-archive et. al.
8454 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8455 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8456 else
8457 whole_archive_flag_spec=
8459 supports_anon_versioning=no
8460 case `$LD -v 2>&1` in
8461 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8462 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8463 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8464 *\ 2.11.*) ;; # other 2.11 versions
8465 *) supports_anon_versioning=yes ;;
8466 esac
8468 # See if GNU ld supports shared libraries.
8469 case $host_os in
8470 aix[3-9]*)
8471 # On AIX/PPC, the GNU linker is very broken
8472 if test "$host_cpu" != ia64; then
8473 ld_shlibs=no
8474 cat <<_LT_EOF 1>&2
8476 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8477 *** to be unable to reliably create shared libraries on AIX.
8478 *** Therefore, libtool is disabling shared libraries support. If you
8479 *** really care for shared libraries, you may want to modify your PATH
8480 *** so that a non-GNU linker is found, and then restart.
8482 _LT_EOF
8486 amigaos*)
8487 case $host_cpu in
8488 powerpc)
8489 # see comment about AmigaOS4 .so support
8490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8491 archive_expsym_cmds=''
8493 m68k)
8494 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)'
8495 hardcode_libdir_flag_spec='-L$libdir'
8496 hardcode_minus_L=yes
8498 esac
8501 beos*)
8502 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8503 allow_undefined_flag=unsupported
8504 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8505 # support --undefined. This deserves some investigation. FIXME
8506 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8507 else
8508 ld_shlibs=no
8512 cygwin* | mingw* | pw32* | cegcc*)
8513 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8514 # as there is no search path for DLLs.
8515 hardcode_libdir_flag_spec='-L$libdir'
8516 allow_undefined_flag=unsupported
8517 always_export_symbols=no
8518 enable_shared_with_static_runtimes=yes
8519 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8521 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8523 # If the export-symbols file already is a .def file (1st line
8524 # is EXPORTS), use it as is; otherwise, prepend...
8525 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8526 cp $export_symbols $output_objdir/$soname.def;
8527 else
8528 echo EXPORTS > $output_objdir/$soname.def;
8529 cat $export_symbols >> $output_objdir/$soname.def;
8531 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8532 else
8533 ld_shlibs=no
8537 interix[3-9]*)
8538 hardcode_direct=no
8539 hardcode_shlibpath_var=no
8540 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8541 export_dynamic_flag_spec='${wl}-E'
8542 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8543 # Instead, shared libraries are loaded at an image base (0x10000000 by
8544 # default) and relocated if they conflict, which is a slow very memory
8545 # consuming and fragmenting process. To avoid this, we pick a random,
8546 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8547 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8548 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8549 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'
8552 gnu* | linux* | tpf* | k*bsd*-gnu)
8553 tmp_diet=no
8554 if test "$host_os" = linux-dietlibc; then
8555 case $cc_basename in
8556 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8557 esac
8559 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8560 && test "$tmp_diet" = no
8561 then
8562 tmp_addflag=
8563 tmp_sharedflag='-shared'
8564 case $cc_basename,$host_cpu in
8565 pgcc*) # Portland Group C compiler
8566 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'
8567 tmp_addflag=' $pic_flag'
8569 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8570 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'
8571 tmp_addflag=' $pic_flag -Mnomain' ;;
8572 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8573 tmp_addflag=' -i_dynamic' ;;
8574 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8575 tmp_addflag=' -i_dynamic -nofor_main' ;;
8576 ifc* | ifort*) # Intel Fortran compiler
8577 tmp_addflag=' -nofor_main' ;;
8578 lf95*) # Lahey Fortran 8.1
8579 whole_archive_flag_spec=
8580 tmp_sharedflag='--shared' ;;
8581 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8582 tmp_sharedflag='-qmkshrobj'
8583 tmp_addflag= ;;
8584 esac
8585 case `$CC -V 2>&1 | sed 5q` in
8586 *Sun\ C*) # Sun C 5.9
8587 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'
8588 compiler_needs_object=yes
8589 tmp_sharedflag='-G' ;;
8590 *Sun\ F*) # Sun Fortran 8.3
8591 tmp_sharedflag='-G' ;;
8592 esac
8593 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8595 if test "x$supports_anon_versioning" = xyes; then
8596 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8597 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8598 echo "local: *; };" >> $output_objdir/$libname.ver~
8599 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8602 case $cc_basename in
8603 xlf*)
8604 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8605 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8606 hardcode_libdir_flag_spec=
8607 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8608 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8609 if test "x$supports_anon_versioning" = xyes; then
8610 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8611 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8612 echo "local: *; };" >> $output_objdir/$libname.ver~
8613 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8616 esac
8617 else
8618 ld_shlibs=no
8622 netbsd* | netbsdelf*-gnu)
8623 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8624 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8625 wlarc=
8626 else
8627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8628 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8632 solaris*)
8633 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8634 ld_shlibs=no
8635 cat <<_LT_EOF 1>&2
8637 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8638 *** create shared libraries on Solaris systems. Therefore, libtool
8639 *** is disabling shared libraries support. We urge you to upgrade GNU
8640 *** binutils to release 2.9.1 or newer. Another option is to modify
8641 *** your PATH or compiler configuration so that the native linker is
8642 *** used, and then restart.
8644 _LT_EOF
8645 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8647 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8648 else
8649 ld_shlibs=no
8653 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8654 case `$LD -v 2>&1` in
8655 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8656 ld_shlibs=no
8657 cat <<_LT_EOF 1>&2
8659 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8660 *** reliably create shared libraries on SCO systems. Therefore, libtool
8661 *** is disabling shared libraries support. We urge you to upgrade GNU
8662 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8663 *** your PATH or compiler configuration so that the native linker is
8664 *** used, and then restart.
8666 _LT_EOF
8669 # For security reasons, it is highly recommended that you always
8670 # use absolute paths for naming shared libraries, and exclude the
8671 # DT_RUNPATH tag from executables and libraries. But doing so
8672 # requires that you compile everything twice, which is a pain.
8673 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8677 else
8678 ld_shlibs=no
8681 esac
8684 sunos4*)
8685 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8686 wlarc=
8687 hardcode_direct=yes
8688 hardcode_shlibpath_var=no
8692 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8695 else
8696 ld_shlibs=no
8699 esac
8701 if test "$ld_shlibs" = no; then
8702 runpath_var=
8703 hardcode_libdir_flag_spec=
8704 export_dynamic_flag_spec=
8705 whole_archive_flag_spec=
8707 else
8708 # PORTME fill in a description of your system's linker (not GNU ld)
8709 case $host_os in
8710 aix3*)
8711 allow_undefined_flag=unsupported
8712 always_export_symbols=yes
8713 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'
8714 # Note: this linker hardcodes the directories in LIBPATH if there
8715 # are no directories specified by -L.
8716 hardcode_minus_L=yes
8717 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8718 # Neither direct hardcoding nor static linking is supported with a
8719 # broken collect2.
8720 hardcode_direct=unsupported
8724 aix[4-9]*)
8725 if test "$host_cpu" = ia64; then
8726 # On IA64, the linker does run time linking by default, so we don't
8727 # have to do anything special.
8728 aix_use_runtimelinking=no
8729 exp_sym_flag='-Bexport'
8730 no_entry_flag=""
8731 else
8732 # If we're using GNU nm, then we don't want the "-C" option.
8733 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8734 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8735 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'
8736 else
8737 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'
8739 aix_use_runtimelinking=no
8741 # Test if we are trying to use run time linking or normal
8742 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8743 # need to do runtime linking.
8744 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8745 for ld_flag in $LDFLAGS; do
8746 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8747 aix_use_runtimelinking=yes
8748 break
8750 done
8752 esac
8754 exp_sym_flag='-bexport'
8755 no_entry_flag='-bnoentry'
8758 # When large executables or shared objects are built, AIX ld can
8759 # have problems creating the table of contents. If linking a library
8760 # or program results in "error TOC overflow" add -mminimal-toc to
8761 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8762 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8764 archive_cmds=''
8765 hardcode_direct=yes
8766 hardcode_direct_absolute=yes
8767 hardcode_libdir_separator=':'
8768 link_all_deplibs=yes
8769 file_list_spec='${wl}-f,'
8771 if test "$GCC" = yes; then
8772 case $host_os in aix4.[012]|aix4.[012].*)
8773 # We only want to do this on AIX 4.2 and lower, the check
8774 # below for broken collect2 doesn't work under 4.3+
8775 collect2name=`${CC} -print-prog-name=collect2`
8776 if test -f "$collect2name" &&
8777 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8778 then
8779 # We have reworked collect2
8781 else
8782 # We have old collect2
8783 hardcode_direct=unsupported
8784 # It fails to find uninstalled libraries when the uninstalled
8785 # path is not listed in the libpath. Setting hardcode_minus_L
8786 # to unsupported forces relinking
8787 hardcode_minus_L=yes
8788 hardcode_libdir_flag_spec='-L$libdir'
8789 hardcode_libdir_separator=
8792 esac
8793 shared_flag='-shared'
8794 if test "$aix_use_runtimelinking" = yes; then
8795 shared_flag="$shared_flag "'${wl}-G'
8797 link_all_deplibs=no
8798 else
8799 # not using gcc
8800 if test "$host_cpu" = ia64; then
8801 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8802 # chokes on -Wl,-G. The following line is correct:
8803 shared_flag='-G'
8804 else
8805 if test "$aix_use_runtimelinking" = yes; then
8806 shared_flag='${wl}-G'
8807 else
8808 shared_flag='${wl}-bM:SRE'
8813 export_dynamic_flag_spec='${wl}-bexpall'
8814 # It seems that -bexpall does not export symbols beginning with
8815 # underscore (_), so it is better to generate a list of symbols to export.
8816 always_export_symbols=yes
8817 if test "$aix_use_runtimelinking" = yes; then
8818 # Warning - without using the other runtime loading flags (-brtl),
8819 # -berok will link without error, but may produce a broken library.
8820 allow_undefined_flag='-berok'
8821 # Determine the default libpath from the value encoded in an
8822 # empty executable.
8823 cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h. */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8831 main ()
8835 return 0;
8837 _ACEOF
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (ac_try="$ac_link"
8840 case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843 esac
8844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8845 $as_echo "$ac_try_echo") >&5
8846 (eval "$ac_link") 2>conftest.er1
8847 ac_status=$?
8848 grep -v '^ *+' conftest.er1 >conftest.err
8849 rm -f conftest.er1
8850 cat conftest.err >&5
8851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } && {
8853 test -z "$ac_c_werror_flag" ||
8854 test ! -s conftest.err
8855 } && test -s conftest$ac_exeext && {
8856 test "$cross_compiling" = yes ||
8857 $as_test_x conftest$ac_exeext
8858 }; then
8860 lt_aix_libpath_sed='
8861 /Import File Strings/,/^$/ {
8862 /^0/ {
8863 s/^0 *\(.*\)$/\1/
8867 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8868 # Check for a 64-bit object if we didn't find anything.
8869 if test -z "$aix_libpath"; then
8870 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8872 else
8873 $as_echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8879 rm -rf conftest.dSYM
8880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8881 conftest$ac_exeext conftest.$ac_ext
8882 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8884 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8885 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"
8886 else
8887 if test "$host_cpu" = ia64; then
8888 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8889 allow_undefined_flag="-z nodefs"
8890 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"
8891 else
8892 # Determine the default libpath from the value encoded in an
8893 # empty executable.
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h. */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8902 main ()
8906 return 0;
8908 _ACEOF
8909 rm -f conftest.$ac_objext conftest$ac_exeext
8910 if { (ac_try="$ac_link"
8911 case "(($ac_try" in
8912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8913 *) ac_try_echo=$ac_try;;
8914 esac
8915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8916 $as_echo "$ac_try_echo") >&5
8917 (eval "$ac_link") 2>conftest.er1
8918 ac_status=$?
8919 grep -v '^ *+' conftest.er1 >conftest.err
8920 rm -f conftest.er1
8921 cat conftest.err >&5
8922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && {
8924 test -z "$ac_c_werror_flag" ||
8925 test ! -s conftest.err
8926 } && test -s conftest$ac_exeext && {
8927 test "$cross_compiling" = yes ||
8928 $as_test_x conftest$ac_exeext
8929 }; then
8931 lt_aix_libpath_sed='
8932 /Import File Strings/,/^$/ {
8933 /^0/ {
8934 s/^0 *\(.*\)$/\1/
8938 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8939 # Check for a 64-bit object if we didn't find anything.
8940 if test -z "$aix_libpath"; then
8941 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8943 else
8944 $as_echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8950 rm -rf conftest.dSYM
8951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8952 conftest$ac_exeext conftest.$ac_ext
8953 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8955 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8956 # Warning - without using the other run time loading flags,
8957 # -berok will link without error, but may produce a broken library.
8958 no_undefined_flag=' ${wl}-bernotok'
8959 allow_undefined_flag=' ${wl}-berok'
8960 # Exported symbols can be pulled into shared objects from archives
8961 whole_archive_flag_spec='$convenience'
8962 archive_cmds_need_lc=yes
8963 # This is similar to how AIX traditionally builds its shared libraries.
8964 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'
8969 amigaos*)
8970 case $host_cpu in
8971 powerpc)
8972 # see comment about AmigaOS4 .so support
8973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8974 archive_expsym_cmds=''
8976 m68k)
8977 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)'
8978 hardcode_libdir_flag_spec='-L$libdir'
8979 hardcode_minus_L=yes
8981 esac
8984 bsdi[45]*)
8985 export_dynamic_flag_spec=-rdynamic
8988 cygwin* | mingw* | pw32* | cegcc*)
8989 # When not using gcc, we currently assume that we are using
8990 # Microsoft Visual C++.
8991 # hardcode_libdir_flag_spec is actually meaningless, as there is
8992 # no search path for DLLs.
8993 hardcode_libdir_flag_spec=' '
8994 allow_undefined_flag=unsupported
8995 # Tell ltmain to make .lib files, not .a files.
8996 libext=lib
8997 # Tell ltmain to make .dll files, not .so files.
8998 shrext_cmds=".dll"
8999 # FIXME: Setting linknames here is a bad hack.
9000 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9001 # The linker will automatically build a .lib file if we build a DLL.
9002 old_archive_from_new_cmds='true'
9003 # FIXME: Should let the user specify the lib program.
9004 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9005 fix_srcfile_path='`cygpath -w "$srcfile"`'
9006 enable_shared_with_static_runtimes=yes
9009 darwin* | rhapsody*)
9012 archive_cmds_need_lc=no
9013 hardcode_direct=no
9014 hardcode_automatic=yes
9015 hardcode_shlibpath_var=unsupported
9016 whole_archive_flag_spec=''
9017 link_all_deplibs=yes
9018 allow_undefined_flag="$_lt_dar_allow_undefined"
9019 case $cc_basename in
9020 ifort*) _lt_dar_can_shared=yes ;;
9021 *) _lt_dar_can_shared=$GCC ;;
9022 esac
9023 if test "$_lt_dar_can_shared" = "yes"; then
9024 output_verbose_link_cmd=echo
9025 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9026 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9027 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}"
9028 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}"
9030 else
9031 ld_shlibs=no
9036 dgux*)
9037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9038 hardcode_libdir_flag_spec='-L$libdir'
9039 hardcode_shlibpath_var=no
9042 freebsd1*)
9043 ld_shlibs=no
9046 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9047 # support. Future versions do this automatically, but an explicit c++rt0.o
9048 # does not break anything, and helps significantly (at the cost of a little
9049 # extra space).
9050 freebsd2.2*)
9051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9052 hardcode_libdir_flag_spec='-R$libdir'
9053 hardcode_direct=yes
9054 hardcode_shlibpath_var=no
9057 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9058 freebsd2*)
9059 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9060 hardcode_direct=yes
9061 hardcode_minus_L=yes
9062 hardcode_shlibpath_var=no
9065 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9066 freebsd* | dragonfly*)
9067 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9068 hardcode_libdir_flag_spec='-R$libdir'
9069 hardcode_direct=yes
9070 hardcode_shlibpath_var=no
9073 hpux9*)
9074 if test "$GCC" = yes; then
9075 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'
9076 else
9077 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'
9079 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9080 hardcode_libdir_separator=:
9081 hardcode_direct=yes
9083 # hardcode_minus_L: Not really in the search PATH,
9084 # but as the default location of the library.
9085 hardcode_minus_L=yes
9086 export_dynamic_flag_spec='${wl}-E'
9089 hpux10*)
9090 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9091 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9092 else
9093 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9095 if test "$with_gnu_ld" = no; then
9096 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9097 hardcode_libdir_flag_spec_ld='+b $libdir'
9098 hardcode_libdir_separator=:
9099 hardcode_direct=yes
9100 hardcode_direct_absolute=yes
9101 export_dynamic_flag_spec='${wl}-E'
9102 # hardcode_minus_L: Not really in the search PATH,
9103 # but as the default location of the library.
9104 hardcode_minus_L=yes
9108 hpux11*)
9109 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9110 case $host_cpu in
9111 hppa*64*)
9112 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9114 ia64*)
9115 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9118 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9120 esac
9121 else
9122 case $host_cpu in
9123 hppa*64*)
9124 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9126 ia64*)
9127 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9130 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9132 esac
9134 if test "$with_gnu_ld" = no; then
9135 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9136 hardcode_libdir_separator=:
9138 case $host_cpu in
9139 hppa*64*|ia64*)
9140 hardcode_direct=no
9141 hardcode_shlibpath_var=no
9144 hardcode_direct=yes
9145 hardcode_direct_absolute=yes
9146 export_dynamic_flag_spec='${wl}-E'
9148 # hardcode_minus_L: Not really in the search PATH,
9149 # but as the default location of the library.
9150 hardcode_minus_L=yes
9152 esac
9156 irix5* | irix6* | nonstopux*)
9157 if test "$GCC" = yes; then
9158 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'
9159 # Try to use the -exported_symbol ld option, if it does not
9160 # work, assume that -exports_file does not work either and
9161 # implicitly export all symbols.
9162 save_LDFLAGS="$LDFLAGS"
9163 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9164 cat >conftest.$ac_ext <<_ACEOF
9165 int foo(void) {}
9166 _ACEOF
9167 rm -f conftest.$ac_objext conftest$ac_exeext
9168 if { (ac_try="$ac_link"
9169 case "(($ac_try" in
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9172 esac
9173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9174 $as_echo "$ac_try_echo") >&5
9175 (eval "$ac_link") 2>conftest.er1
9176 ac_status=$?
9177 grep -v '^ *+' conftest.er1 >conftest.err
9178 rm -f conftest.er1
9179 cat conftest.err >&5
9180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } && {
9182 test -z "$ac_c_werror_flag" ||
9183 test ! -s conftest.err
9184 } && test -s conftest$ac_exeext && {
9185 test "$cross_compiling" = yes ||
9186 $as_test_x conftest$ac_exeext
9187 }; then
9188 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'
9190 else
9191 $as_echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9197 rm -rf conftest.dSYM
9198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9199 conftest$ac_exeext conftest.$ac_ext
9200 LDFLAGS="$save_LDFLAGS"
9201 else
9202 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'
9203 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'
9205 archive_cmds_need_lc='no'
9206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9207 hardcode_libdir_separator=:
9208 inherit_rpath=yes
9209 link_all_deplibs=yes
9212 netbsd* | netbsdelf*-gnu)
9213 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9215 else
9216 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9218 hardcode_libdir_flag_spec='-R$libdir'
9219 hardcode_direct=yes
9220 hardcode_shlibpath_var=no
9223 newsos6)
9224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9225 hardcode_direct=yes
9226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9227 hardcode_libdir_separator=:
9228 hardcode_shlibpath_var=no
9231 *nto* | *qnx*)
9234 openbsd*)
9235 if test -f /usr/libexec/ld.so; then
9236 hardcode_direct=yes
9237 hardcode_shlibpath_var=no
9238 hardcode_direct_absolute=yes
9239 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9240 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9241 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9243 export_dynamic_flag_spec='${wl}-E'
9244 else
9245 case $host_os in
9246 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9248 hardcode_libdir_flag_spec='-R$libdir'
9251 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9252 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9254 esac
9256 else
9257 ld_shlibs=no
9261 os2*)
9262 hardcode_libdir_flag_spec='-L$libdir'
9263 hardcode_minus_L=yes
9264 allow_undefined_flag=unsupported
9265 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'
9266 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9269 osf3*)
9270 if test "$GCC" = yes; then
9271 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9272 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'
9273 else
9274 allow_undefined_flag=' -expect_unresolved \*'
9275 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'
9277 archive_cmds_need_lc='no'
9278 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9279 hardcode_libdir_separator=:
9282 osf4* | osf5*) # as osf3* with the addition of -msym flag
9283 if test "$GCC" = yes; then
9284 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9285 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'
9286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9287 else
9288 allow_undefined_flag=' -expect_unresolved \*'
9289 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'
9290 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~
9291 $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'
9293 # Both c and cxx compiler support -rpath directly
9294 hardcode_libdir_flag_spec='-rpath $libdir'
9296 archive_cmds_need_lc='no'
9297 hardcode_libdir_separator=:
9300 solaris*)
9301 no_undefined_flag=' -z defs'
9302 if test "$GCC" = yes; then
9303 wlarc='${wl}'
9304 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9305 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9306 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9307 else
9308 case `$CC -V 2>&1` in
9309 *"Compilers 5.0"*)
9310 wlarc=''
9311 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9312 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9313 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9316 wlarc='${wl}'
9317 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9318 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9319 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9321 esac
9323 hardcode_libdir_flag_spec='-R$libdir'
9324 hardcode_shlibpath_var=no
9325 case $host_os in
9326 solaris2.[0-5] | solaris2.[0-5].*) ;;
9328 # The compiler driver will combine and reorder linker options,
9329 # but understands `-z linker_flag'. GCC discards it without `$wl',
9330 # but is careful enough not to reorder.
9331 # Supported since Solaris 2.6 (maybe 2.5.1?)
9332 if test "$GCC" = yes; then
9333 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9334 else
9335 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9338 esac
9339 link_all_deplibs=yes
9342 sunos4*)
9343 if test "x$host_vendor" = xsequent; then
9344 # Use $CC to link under sequent, because it throws in some extra .o
9345 # files that make .init and .fini sections work.
9346 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9347 else
9348 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_libdir_flag_spec='-L$libdir'
9351 hardcode_direct=yes
9352 hardcode_minus_L=yes
9353 hardcode_shlibpath_var=no
9356 sysv4)
9357 case $host_vendor in
9358 sni)
9359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360 hardcode_direct=yes # is this really true???
9362 siemens)
9363 ## LD is ld it makes a PLAMLIB
9364 ## CC just makes a GrossModule.
9365 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9366 reload_cmds='$CC -r -o $output$reload_objs'
9367 hardcode_direct=no
9369 motorola)
9370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9373 esac
9374 runpath_var='LD_RUN_PATH'
9375 hardcode_shlibpath_var=no
9378 sysv4.3*)
9379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_shlibpath_var=no
9381 export_dynamic_flag_spec='-Bexport'
9384 sysv4*MP*)
9385 if test -d /usr/nec; then
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_shlibpath_var=no
9388 runpath_var=LD_RUN_PATH
9389 hardcode_runpath_var=yes
9390 ld_shlibs=yes
9394 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9395 no_undefined_flag='${wl}-z,text'
9396 archive_cmds_need_lc=no
9397 hardcode_shlibpath_var=no
9398 runpath_var='LD_RUN_PATH'
9400 if test "$GCC" = yes; then
9401 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9403 else
9404 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9405 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409 sysv5* | sco3.2v5* | sco5v6*)
9410 # Note: We can NOT use -z defs as we might desire, because we do not
9411 # link with -lc, and that would cause any symbols used from libc to
9412 # always be unresolved, which means just about no library would
9413 # ever link correctly. If we're not using GNU ld we use -z text
9414 # though, which does catch some bad symbols but isn't as heavy-handed
9415 # as -z defs.
9416 no_undefined_flag='${wl}-z,text'
9417 allow_undefined_flag='${wl}-z,nodefs'
9418 archive_cmds_need_lc=no
9419 hardcode_shlibpath_var=no
9420 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9421 hardcode_libdir_separator=':'
9422 link_all_deplibs=yes
9423 export_dynamic_flag_spec='${wl}-Bexport'
9424 runpath_var='LD_RUN_PATH'
9426 if test "$GCC" = yes; then
9427 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9429 else
9430 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9431 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9435 uts4*)
9436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9437 hardcode_libdir_flag_spec='-L$libdir'
9438 hardcode_shlibpath_var=no
9442 ld_shlibs=no
9444 esac
9446 if test x$host_vendor = xsni; then
9447 case $host in
9448 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9449 export_dynamic_flag_spec='${wl}-Blargedynsym'
9451 esac
9455 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9456 $as_echo "$ld_shlibs" >&6; }
9457 test "$ld_shlibs" = no && can_build_shared=no
9459 with_gnu_ld=$with_gnu_ld
9476 # Do we need to explicitly link libc?
9478 case "x$archive_cmds_need_lc" in
9479 x|xyes)
9480 # Assume -lc should be added
9481 archive_cmds_need_lc=yes
9483 if test "$enable_shared" = yes && test "$GCC" = yes; then
9484 case $archive_cmds in
9485 *'~'*)
9486 # FIXME: we may have to deal with multi-command sequences.
9488 '$CC '*)
9489 # Test whether the compiler implicitly links with -lc since on some
9490 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9491 # to ld, don't add -lc before -lgcc.
9492 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9493 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9494 $RM conftest*
9495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9498 (eval $ac_compile) 2>&5
9499 ac_status=$?
9500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } 2>conftest.err; then
9502 soname=conftest
9503 lib=conftest
9504 libobjs=conftest.$ac_objext
9505 deplibs=
9506 wl=$lt_prog_compiler_wl
9507 pic_flag=$lt_prog_compiler_pic
9508 compiler_flags=-v
9509 linker_flags=-v
9510 verstring=
9511 output_objdir=.
9512 libname=conftest
9513 lt_save_allow_undefined_flag=$allow_undefined_flag
9514 allow_undefined_flag=
9515 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9516 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9517 ac_status=$?
9518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }
9520 then
9521 archive_cmds_need_lc=no
9522 else
9523 archive_cmds_need_lc=yes
9525 allow_undefined_flag=$lt_save_allow_undefined_flag
9526 else
9527 cat conftest.err 1>&5
9529 $RM conftest*
9530 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9531 $as_echo "$archive_cmds_need_lc" >&6; }
9533 esac
9536 esac
9694 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9695 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9697 if test "$GCC" = yes; then
9698 case $host_os in
9699 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9700 *) lt_awk_arg="/^libraries:/" ;;
9701 esac
9702 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9703 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9704 # if the path contains ";" then we assume it to be the separator
9705 # otherwise default to the standard path separator (i.e. ":") - it is
9706 # assumed that no part of a normal pathname contains ";" but that should
9707 # okay in the real world where ";" in dirpaths is itself problematic.
9708 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9709 else
9710 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9712 # Ok, now we have the path, separated by spaces, we can step through it
9713 # and add multilib dir if necessary.
9714 lt_tmp_lt_search_path_spec=
9715 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9716 for lt_sys_path in $lt_search_path_spec; do
9717 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9718 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9719 else
9720 test -d "$lt_sys_path" && \
9721 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9723 done
9724 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9725 BEGIN {RS=" "; FS="/|\n";} {
9726 lt_foo="";
9727 lt_count=0;
9728 for (lt_i = NF; lt_i > 0; lt_i--) {
9729 if ($lt_i != "" && $lt_i != ".") {
9730 if ($lt_i == "..") {
9731 lt_count++;
9732 } else {
9733 if (lt_count == 0) {
9734 lt_foo="/" $lt_i lt_foo;
9735 } else {
9736 lt_count--;
9741 if (lt_foo != "") { lt_freq[lt_foo]++; }
9742 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9744 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9745 else
9746 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9748 library_names_spec=
9749 libname_spec='lib$name'
9750 soname_spec=
9751 shrext_cmds=".so"
9752 postinstall_cmds=
9753 postuninstall_cmds=
9754 finish_cmds=
9755 finish_eval=
9756 shlibpath_var=
9757 shlibpath_overrides_runpath=unknown
9758 version_type=none
9759 dynamic_linker="$host_os ld.so"
9760 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9761 need_lib_prefix=unknown
9762 hardcode_into_libs=no
9764 # when you set need_version to no, make sure it does not cause -set_version
9765 # flags to be left without arguments
9766 need_version=unknown
9768 case $host_os in
9769 aix3*)
9770 version_type=linux
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9772 shlibpath_var=LIBPATH
9774 # AIX 3 has no versioning support, so we append a major version to the name.
9775 soname_spec='${libname}${release}${shared_ext}$major'
9778 aix[4-9]*)
9779 version_type=linux
9780 need_lib_prefix=no
9781 need_version=no
9782 hardcode_into_libs=yes
9783 if test "$host_cpu" = ia64; then
9784 # AIX 5 supports IA64
9785 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9786 shlibpath_var=LD_LIBRARY_PATH
9787 else
9788 # With GCC up to 2.95.x, collect2 would create an import file
9789 # for dependence libraries. The import file would start with
9790 # the line `#! .'. This would cause the generated library to
9791 # depend on `.', always an invalid library. This was fixed in
9792 # development snapshots of GCC prior to 3.0.
9793 case $host_os in
9794 aix4 | aix4.[01] | aix4.[01].*)
9795 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9796 echo ' yes '
9797 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9799 else
9800 can_build_shared=no
9803 esac
9804 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9805 # soname into executable. Probably we can add versioning support to
9806 # collect2, so additional links can be useful in future.
9807 if test "$aix_use_runtimelinking" = yes; then
9808 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9809 # instead of lib<name>.a to let people know that these are not
9810 # typical AIX shared libraries.
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9812 else
9813 # We preserve .a as extension for shared libraries through AIX4.2
9814 # and later when we are not doing run time linking.
9815 library_names_spec='${libname}${release}.a $libname.a'
9816 soname_spec='${libname}${release}${shared_ext}$major'
9818 shlibpath_var=LIBPATH
9822 amigaos*)
9823 case $host_cpu in
9824 powerpc)
9825 # Since July 2007 AmigaOS4 officially supports .so libraries.
9826 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829 m68k)
9830 library_names_spec='$libname.ixlibrary $libname.a'
9831 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9832 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'
9834 esac
9837 beos*)
9838 library_names_spec='${libname}${shared_ext}'
9839 dynamic_linker="$host_os ld.so"
9840 shlibpath_var=LIBRARY_PATH
9843 bsdi[45]*)
9844 version_type=linux
9845 need_version=no
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847 soname_spec='${libname}${release}${shared_ext}$major'
9848 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9849 shlibpath_var=LD_LIBRARY_PATH
9850 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9851 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9852 # the default ld.so.conf also contains /usr/contrib/lib and
9853 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9854 # libtool to hard-code these into programs
9857 cygwin* | mingw* | pw32* | cegcc*)
9858 version_type=windows
9859 shrext_cmds=".dll"
9860 need_version=no
9861 need_lib_prefix=no
9863 case $GCC,$host_os in
9864 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9865 library_names_spec='$libname.dll.a'
9866 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9867 postinstall_cmds='base_file=`basename \${file}`~
9868 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9869 dldir=$destdir/`dirname \$dlpath`~
9870 test -d \$dldir || mkdir -p \$dldir~
9871 $install_prog $dir/$dlname \$dldir/$dlname~
9872 chmod a+x \$dldir/$dlname~
9873 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9874 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9876 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9877 dlpath=$dir/\$dldll~
9878 $RM \$dlpath'
9879 shlibpath_overrides_runpath=yes
9881 case $host_os in
9882 cygwin*)
9883 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9884 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9885 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9887 mingw* | cegcc*)
9888 # MinGW DLLs use traditional 'lib' prefix
9889 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9890 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9891 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9892 # It is most probably a Windows format PATH printed by
9893 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9894 # path with ; separators, and with drive letters. We can handle the
9895 # drive letters (cygwin fileutils understands them), so leave them,
9896 # especially as we might pass files found there to a mingw objdump,
9897 # which wouldn't understand a cygwinified path. Ahh.
9898 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9899 else
9900 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9903 pw32*)
9904 # pw32 DLLs use 'pw' prefix rather than 'lib'
9905 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9907 esac
9911 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9913 esac
9914 dynamic_linker='Win32 ld.exe'
9915 # FIXME: first we should search . and the directory the executable is in
9916 shlibpath_var=PATH
9919 darwin* | rhapsody*)
9920 dynamic_linker="$host_os dyld"
9921 version_type=darwin
9922 need_lib_prefix=no
9923 need_version=no
9924 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9925 soname_spec='${libname}${release}${major}$shared_ext'
9926 shlibpath_overrides_runpath=yes
9927 shlibpath_var=DYLD_LIBRARY_PATH
9928 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9930 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9931 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9934 dgux*)
9935 version_type=linux
9936 need_lib_prefix=no
9937 need_version=no
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9939 soname_spec='${libname}${release}${shared_ext}$major'
9940 shlibpath_var=LD_LIBRARY_PATH
9943 freebsd1*)
9944 dynamic_linker=no
9947 freebsd* | dragonfly*)
9948 # DragonFly does not have aout. When/if they implement a new
9949 # versioning mechanism, adjust this.
9950 if test -x /usr/bin/objformat; then
9951 objformat=`/usr/bin/objformat`
9952 else
9953 case $host_os in
9954 freebsd[123]*) objformat=aout ;;
9955 *) objformat=elf ;;
9956 esac
9958 version_type=freebsd-$objformat
9959 case $version_type in
9960 freebsd-elf*)
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9962 need_version=no
9963 need_lib_prefix=no
9965 freebsd-*)
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9967 need_version=yes
9969 esac
9970 shlibpath_var=LD_LIBRARY_PATH
9971 case $host_os in
9972 freebsd2*)
9973 shlibpath_overrides_runpath=yes
9975 freebsd3.[01]* | freebsdelf3.[01]*)
9976 shlibpath_overrides_runpath=yes
9977 hardcode_into_libs=yes
9979 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9980 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9981 shlibpath_overrides_runpath=no
9982 hardcode_into_libs=yes
9984 *) # from 4.6 on, and DragonFly
9985 shlibpath_overrides_runpath=yes
9986 hardcode_into_libs=yes
9988 esac
9991 gnu*)
9992 version_type=linux
9993 need_lib_prefix=no
9994 need_version=no
9995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9996 soname_spec='${libname}${release}${shared_ext}$major'
9997 shlibpath_var=LD_LIBRARY_PATH
9998 hardcode_into_libs=yes
10001 hpux9* | hpux10* | hpux11*)
10002 # Give a soname corresponding to the major version so that dld.sl refuses to
10003 # link against other versions.
10004 version_type=sunos
10005 need_lib_prefix=no
10006 need_version=no
10007 case $host_cpu in
10008 ia64*)
10009 shrext_cmds='.so'
10010 hardcode_into_libs=yes
10011 dynamic_linker="$host_os dld.so"
10012 shlibpath_var=LD_LIBRARY_PATH
10013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 if test "X$HPUX_IA64_MODE" = X32; then
10017 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10018 else
10019 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10023 hppa*64*)
10024 shrext_cmds='.sl'
10025 hardcode_into_libs=yes
10026 dynamic_linker="$host_os dld.sl"
10027 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10035 shrext_cmds='.sl'
10036 dynamic_linker="$host_os dld.sl"
10037 shlibpath_var=SHLIB_PATH
10038 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10042 esac
10043 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10044 postinstall_cmds='chmod 555 $lib'
10047 interix[3-9]*)
10048 version_type=linux
10049 need_lib_prefix=no
10050 need_version=no
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10052 soname_spec='${libname}${release}${shared_ext}$major'
10053 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10054 shlibpath_var=LD_LIBRARY_PATH
10055 shlibpath_overrides_runpath=no
10056 hardcode_into_libs=yes
10059 irix5* | irix6* | nonstopux*)
10060 case $host_os in
10061 nonstopux*) version_type=nonstopux ;;
10063 if test "$lt_cv_prog_gnu_ld" = yes; then
10064 version_type=linux
10065 else
10066 version_type=irix
10067 fi ;;
10068 esac
10069 need_lib_prefix=no
10070 need_version=no
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10073 case $host_os in
10074 irix5* | nonstopux*)
10075 libsuff= shlibsuff=
10078 case $LD in # libtool.m4 will add one of these switches to LD
10079 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10080 libsuff= shlibsuff= libmagic=32-bit;;
10081 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10082 libsuff=32 shlibsuff=N32 libmagic=N32;;
10083 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10084 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10085 *) libsuff= shlibsuff= libmagic=never-match;;
10086 esac
10088 esac
10089 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10090 shlibpath_overrides_runpath=no
10091 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10092 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10093 hardcode_into_libs=yes
10096 # No shared lib support for Linux oldld, aout, or coff.
10097 linux*oldld* | linux*aout* | linux*coff*)
10098 dynamic_linker=no
10101 # This must be Linux ELF.
10102 linux* | k*bsd*-gnu)
10103 version_type=linux
10104 need_lib_prefix=no
10105 need_version=no
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107 soname_spec='${libname}${release}${shared_ext}$major'
10108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10109 shlibpath_var=LD_LIBRARY_PATH
10110 shlibpath_overrides_runpath=no
10111 # Some binutils ld are patched to set DT_RUNPATH
10112 save_LDFLAGS=$LDFLAGS
10113 save_libdir=$libdir
10114 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10115 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10116 cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h. */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10124 main ()
10128 return 0;
10130 _ACEOF
10131 rm -f conftest.$ac_objext conftest$ac_exeext
10132 if { (ac_try="$ac_link"
10133 case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136 esac
10137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10138 $as_echo "$ac_try_echo") >&5
10139 (eval "$ac_link") 2>conftest.er1
10140 ac_status=$?
10141 grep -v '^ *+' conftest.er1 >conftest.err
10142 rm -f conftest.er1
10143 cat conftest.err >&5
10144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && {
10146 test -z "$ac_c_werror_flag" ||
10147 test ! -s conftest.err
10148 } && test -s conftest$ac_exeext && {
10149 test "$cross_compiling" = yes ||
10150 $as_test_x conftest$ac_exeext
10151 }; then
10152 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10153 shlibpath_overrides_runpath=yes
10156 else
10157 $as_echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10163 rm -rf conftest.dSYM
10164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10165 conftest$ac_exeext conftest.$ac_ext
10166 LDFLAGS=$save_LDFLAGS
10167 libdir=$save_libdir
10169 # This implies no fast_install, which is unacceptable.
10170 # Some rework will be needed to allow for fast_install
10171 # before this can be enabled.
10172 hardcode_into_libs=yes
10174 # Append ld.so.conf contents to the search path
10175 if test -f /etc/ld.so.conf; then
10176 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' ' '`
10177 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10180 # We used to test for /lib/ld.so.1 and disable shared libraries on
10181 # powerpc, because MkLinux only supported shared libraries with the
10182 # GNU dynamic linker. Since this was broken with cross compilers,
10183 # most powerpc-linux boxes support dynamic linking these days and
10184 # people can always --disable-shared, the test was removed, and we
10185 # assume the GNU/Linux dynamic linker is in use.
10186 dynamic_linker='GNU/Linux ld.so'
10189 netbsdelf*-gnu)
10190 version_type=linux
10191 need_lib_prefix=no
10192 need_version=no
10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10194 soname_spec='${libname}${release}${shared_ext}$major'
10195 shlibpath_var=LD_LIBRARY_PATH
10196 shlibpath_overrides_runpath=no
10197 hardcode_into_libs=yes
10198 dynamic_linker='NetBSD ld.elf_so'
10201 netbsd*)
10202 version_type=sunos
10203 need_lib_prefix=no
10204 need_version=no
10205 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10208 dynamic_linker='NetBSD (a.out) ld.so'
10209 else
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 dynamic_linker='NetBSD ld.elf_so'
10214 shlibpath_var=LD_LIBRARY_PATH
10215 shlibpath_overrides_runpath=yes
10216 hardcode_into_libs=yes
10219 newsos6)
10220 version_type=linux
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222 shlibpath_var=LD_LIBRARY_PATH
10223 shlibpath_overrides_runpath=yes
10226 *nto* | *qnx*)
10227 version_type=qnx
10228 need_lib_prefix=no
10229 need_version=no
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10231 soname_spec='${libname}${release}${shared_ext}$major'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 shlibpath_overrides_runpath=no
10234 hardcode_into_libs=yes
10235 dynamic_linker='ldqnx.so'
10238 openbsd*)
10239 version_type=sunos
10240 sys_lib_dlsearch_path_spec="/usr/lib"
10241 need_lib_prefix=no
10242 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10243 case $host_os in
10244 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10245 *) need_version=no ;;
10246 esac
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10249 shlibpath_var=LD_LIBRARY_PATH
10250 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10251 case $host_os in
10252 openbsd2.[89] | openbsd2.[89].*)
10253 shlibpath_overrides_runpath=no
10256 shlibpath_overrides_runpath=yes
10258 esac
10259 else
10260 shlibpath_overrides_runpath=yes
10264 os2*)
10265 libname_spec='$name'
10266 shrext_cmds=".dll"
10267 need_lib_prefix=no
10268 library_names_spec='$libname${shared_ext} $libname.a'
10269 dynamic_linker='OS/2 ld.exe'
10270 shlibpath_var=LIBPATH
10273 osf3* | osf4* | osf5*)
10274 version_type=osf
10275 need_lib_prefix=no
10276 need_version=no
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10284 rdos*)
10285 dynamic_linker=no
10288 solaris*)
10289 version_type=linux
10290 need_lib_prefix=no
10291 need_version=no
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 shlibpath_overrides_runpath=yes
10296 hardcode_into_libs=yes
10297 # ldd complains unless libraries are executable
10298 postinstall_cmds='chmod +x $lib'
10301 sunos4*)
10302 version_type=sunos
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes
10307 if test "$with_gnu_ld" = yes; then
10308 need_lib_prefix=no
10310 need_version=yes
10313 sysv4 | sysv4.3*)
10314 version_type=linux
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10316 soname_spec='${libname}${release}${shared_ext}$major'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 case $host_vendor in
10319 sni)
10320 shlibpath_overrides_runpath=no
10321 need_lib_prefix=no
10322 runpath_var=LD_RUN_PATH
10324 siemens)
10325 need_lib_prefix=no
10327 motorola)
10328 need_lib_prefix=no
10329 need_version=no
10330 shlibpath_overrides_runpath=no
10331 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10333 esac
10336 sysv4*MP*)
10337 if test -d /usr/nec ;then
10338 version_type=linux
10339 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10340 soname_spec='$libname${shared_ext}.$major'
10341 shlibpath_var=LD_LIBRARY_PATH
10345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10346 version_type=freebsd-elf
10347 need_lib_prefix=no
10348 need_version=no
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes
10353 hardcode_into_libs=yes
10354 if test "$with_gnu_ld" = yes; then
10355 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10356 else
10357 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10358 case $host_os in
10359 sco3.2v5*)
10360 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10362 esac
10364 sys_lib_dlsearch_path_spec='/usr/lib'
10367 tpf*)
10368 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10369 version_type=linux
10370 need_lib_prefix=no
10371 need_version=no
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 shlibpath_overrides_runpath=no
10375 hardcode_into_libs=yes
10378 uts4*)
10379 version_type=linux
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 shlibpath_var=LD_LIBRARY_PATH
10386 dynamic_linker=no
10388 esac
10389 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10390 $as_echo "$dynamic_linker" >&6; }
10391 test "$dynamic_linker" = no && can_build_shared=no
10393 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10394 if test "$GCC" = yes; then
10395 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10398 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10399 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10401 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10402 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10491 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10492 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10493 hardcode_action=
10494 if test -n "$hardcode_libdir_flag_spec" ||
10495 test -n "$runpath_var" ||
10496 test "X$hardcode_automatic" = "Xyes" ; then
10498 # We can hardcode non-existent directories.
10499 if test "$hardcode_direct" != no &&
10500 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10501 # have to relink, otherwise we might link with an installed library
10502 # when we should be linking with a yet-to-be-installed one
10503 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10504 test "$hardcode_minus_L" != no; then
10505 # Linking always hardcodes the temporary library directory.
10506 hardcode_action=relink
10507 else
10508 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10509 hardcode_action=immediate
10511 else
10512 # We cannot hardcode anything, or else we can only hardcode existing
10513 # directories.
10514 hardcode_action=unsupported
10516 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10517 $as_echo "$hardcode_action" >&6; }
10519 if test "$hardcode_action" = relink ||
10520 test "$inherit_rpath" = yes; then
10521 # Fast installation is not supported
10522 enable_fast_install=no
10523 elif test "$shlibpath_overrides_runpath" = yes ||
10524 test "$enable_shared" = no; then
10525 # Fast installation is not necessary
10526 enable_fast_install=needless
10534 if test "x$enable_dlopen" != xyes; then
10535 enable_dlopen=unknown
10536 enable_dlopen_self=unknown
10537 enable_dlopen_self_static=unknown
10538 else
10539 lt_cv_dlopen=no
10540 lt_cv_dlopen_libs=
10542 case $host_os in
10543 beos*)
10544 lt_cv_dlopen="load_add_on"
10545 lt_cv_dlopen_libs=
10546 lt_cv_dlopen_self=yes
10549 mingw* | pw32* | cegcc*)
10550 lt_cv_dlopen="LoadLibrary"
10551 lt_cv_dlopen_libs=
10554 cygwin*)
10555 lt_cv_dlopen="dlopen"
10556 lt_cv_dlopen_libs=
10559 darwin*)
10560 # if libdl is installed we need to link against it
10561 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10562 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10563 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10564 $as_echo_n "(cached) " >&6
10565 else
10566 ac_check_lib_save_LIBS=$LIBS
10567 LIBS="-ldl $LIBS"
10568 cat >conftest.$ac_ext <<_ACEOF
10569 /* confdefs.h. */
10570 _ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10575 /* Override any GCC internal prototype to avoid an error.
10576 Use char because int might match the return type of a GCC
10577 builtin and then its argument prototype would still apply. */
10578 #ifdef __cplusplus
10579 extern "C"
10580 #endif
10581 char dlopen ();
10583 main ()
10585 return dlopen ();
10587 return 0;
10589 _ACEOF
10590 rm -f conftest.$ac_objext conftest$ac_exeext
10591 if { (ac_try="$ac_link"
10592 case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10595 esac
10596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10597 $as_echo "$ac_try_echo") >&5
10598 (eval "$ac_link") 2>conftest.er1
10599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } && {
10605 test -z "$ac_c_werror_flag" ||
10606 test ! -s conftest.err
10607 } && test -s conftest$ac_exeext && {
10608 test "$cross_compiling" = yes ||
10609 $as_test_x conftest$ac_exeext
10610 }; then
10611 ac_cv_lib_dl_dlopen=yes
10612 else
10613 $as_echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_cv_lib_dl_dlopen=no
10619 rm -rf conftest.dSYM
10620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10621 conftest$ac_exeext conftest.$ac_ext
10622 LIBS=$ac_check_lib_save_LIBS
10624 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10625 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10626 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10627 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10628 else
10630 lt_cv_dlopen="dyld"
10631 lt_cv_dlopen_libs=
10632 lt_cv_dlopen_self=yes
10639 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10640 $as_echo_n "checking for shl_load... " >&6; }
10641 if test "${ac_cv_func_shl_load+set}" = set; then
10642 $as_echo_n "(cached) " >&6
10643 else
10644 cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h. */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10652 #define shl_load innocuous_shl_load
10654 /* System header to define __stub macros and hopefully few prototypes,
10655 which can conflict with char shl_load (); below.
10656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10657 <limits.h> exists even on freestanding compilers. */
10659 #ifdef __STDC__
10660 # include <limits.h>
10661 #else
10662 # include <assert.h>
10663 #endif
10665 #undef shl_load
10667 /* Override any GCC internal prototype to avoid an error.
10668 Use char because int might match the return type of a GCC
10669 builtin and then its argument prototype would still apply. */
10670 #ifdef __cplusplus
10671 extern "C"
10672 #endif
10673 char shl_load ();
10674 /* The GNU C library defines this for functions which it implements
10675 to always fail with ENOSYS. Some functions are actually named
10676 something starting with __ and the normal name is an alias. */
10677 #if defined __stub_shl_load || defined __stub___shl_load
10678 choke me
10679 #endif
10682 main ()
10684 return shl_load ();
10686 return 0;
10688 _ACEOF
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (ac_try="$ac_link"
10691 case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694 esac
10695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10696 $as_echo "$ac_try_echo") >&5
10697 (eval "$ac_link") 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && {
10704 test -z "$ac_c_werror_flag" ||
10705 test ! -s conftest.err
10706 } && test -s conftest$ac_exeext && {
10707 test "$cross_compiling" = yes ||
10708 $as_test_x conftest$ac_exeext
10709 }; then
10710 ac_cv_func_shl_load=yes
10711 else
10712 $as_echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10715 ac_cv_func_shl_load=no
10718 rm -rf conftest.dSYM
10719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10720 conftest$ac_exeext conftest.$ac_ext
10722 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10723 $as_echo "$ac_cv_func_shl_load" >&6; }
10724 if test "x$ac_cv_func_shl_load" = x""yes; then
10725 lt_cv_dlopen="shl_load"
10726 else
10727 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10728 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10729 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10730 $as_echo_n "(cached) " >&6
10731 else
10732 ac_check_lib_save_LIBS=$LIBS
10733 LIBS="-ldld $LIBS"
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h. */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10741 /* Override any GCC internal prototype to avoid an error.
10742 Use char because int might match the return type of a GCC
10743 builtin and then its argument prototype would still apply. */
10744 #ifdef __cplusplus
10745 extern "C"
10746 #endif
10747 char shl_load ();
10749 main ()
10751 return shl_load ();
10753 return 0;
10755 _ACEOF
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (ac_try="$ac_link"
10758 case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10761 esac
10762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10763 $as_echo "$ac_try_echo") >&5
10764 (eval "$ac_link") 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } && {
10771 test -z "$ac_c_werror_flag" ||
10772 test ! -s conftest.err
10773 } && test -s conftest$ac_exeext && {
10774 test "$cross_compiling" = yes ||
10775 $as_test_x conftest$ac_exeext
10776 }; then
10777 ac_cv_lib_dld_shl_load=yes
10778 else
10779 $as_echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10782 ac_cv_lib_dld_shl_load=no
10785 rm -rf conftest.dSYM
10786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10787 conftest$ac_exeext conftest.$ac_ext
10788 LIBS=$ac_check_lib_save_LIBS
10790 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10791 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10792 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10793 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10794 else
10795 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10796 $as_echo_n "checking for dlopen... " >&6; }
10797 if test "${ac_cv_func_dlopen+set}" = set; then
10798 $as_echo_n "(cached) " >&6
10799 else
10800 cat >conftest.$ac_ext <<_ACEOF
10801 /* confdefs.h. */
10802 _ACEOF
10803 cat confdefs.h >>conftest.$ac_ext
10804 cat >>conftest.$ac_ext <<_ACEOF
10805 /* end confdefs.h. */
10806 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10808 #define dlopen innocuous_dlopen
10810 /* System header to define __stub macros and hopefully few prototypes,
10811 which can conflict with char dlopen (); below.
10812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10813 <limits.h> exists even on freestanding compilers. */
10815 #ifdef __STDC__
10816 # include <limits.h>
10817 #else
10818 # include <assert.h>
10819 #endif
10821 #undef dlopen
10823 /* Override any GCC internal prototype to avoid an error.
10824 Use char because int might match the return type of a GCC
10825 builtin and then its argument prototype would still apply. */
10826 #ifdef __cplusplus
10827 extern "C"
10828 #endif
10829 char dlopen ();
10830 /* The GNU C library defines this for functions which it implements
10831 to always fail with ENOSYS. Some functions are actually named
10832 something starting with __ and the normal name is an alias. */
10833 #if defined __stub_dlopen || defined __stub___dlopen
10834 choke me
10835 #endif
10838 main ()
10840 return dlopen ();
10842 return 0;
10844 _ACEOF
10845 rm -f conftest.$ac_objext conftest$ac_exeext
10846 if { (ac_try="$ac_link"
10847 case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10850 esac
10851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10852 $as_echo "$ac_try_echo") >&5
10853 (eval "$ac_link") 2>conftest.er1
10854 ac_status=$?
10855 grep -v '^ *+' conftest.er1 >conftest.err
10856 rm -f conftest.er1
10857 cat conftest.err >&5
10858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } && {
10860 test -z "$ac_c_werror_flag" ||
10861 test ! -s conftest.err
10862 } && test -s conftest$ac_exeext && {
10863 test "$cross_compiling" = yes ||
10864 $as_test_x conftest$ac_exeext
10865 }; then
10866 ac_cv_func_dlopen=yes
10867 else
10868 $as_echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10871 ac_cv_func_dlopen=no
10874 rm -rf conftest.dSYM
10875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10876 conftest$ac_exeext conftest.$ac_ext
10878 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10879 $as_echo "$ac_cv_func_dlopen" >&6; }
10880 if test "x$ac_cv_func_dlopen" = x""yes; then
10881 lt_cv_dlopen="dlopen"
10882 else
10883 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10884 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10885 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10886 $as_echo_n "(cached) " >&6
10887 else
10888 ac_check_lib_save_LIBS=$LIBS
10889 LIBS="-ldl $LIBS"
10890 cat >conftest.$ac_ext <<_ACEOF
10891 /* confdefs.h. */
10892 _ACEOF
10893 cat confdefs.h >>conftest.$ac_ext
10894 cat >>conftest.$ac_ext <<_ACEOF
10895 /* end confdefs.h. */
10897 /* Override any GCC internal prototype to avoid an error.
10898 Use char because int might match the return type of a GCC
10899 builtin and then its argument prototype would still apply. */
10900 #ifdef __cplusplus
10901 extern "C"
10902 #endif
10903 char dlopen ();
10905 main ()
10907 return dlopen ();
10909 return 0;
10911 _ACEOF
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (ac_try="$ac_link"
10914 case "(($ac_try" in
10915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10917 esac
10918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10919 $as_echo "$ac_try_echo") >&5
10920 (eval "$ac_link") 2>conftest.er1
10921 ac_status=$?
10922 grep -v '^ *+' conftest.er1 >conftest.err
10923 rm -f conftest.er1
10924 cat conftest.err >&5
10925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } && {
10927 test -z "$ac_c_werror_flag" ||
10928 test ! -s conftest.err
10929 } && test -s conftest$ac_exeext && {
10930 test "$cross_compiling" = yes ||
10931 $as_test_x conftest$ac_exeext
10932 }; then
10933 ac_cv_lib_dl_dlopen=yes
10934 else
10935 $as_echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10938 ac_cv_lib_dl_dlopen=no
10941 rm -rf conftest.dSYM
10942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10943 conftest$ac_exeext conftest.$ac_ext
10944 LIBS=$ac_check_lib_save_LIBS
10946 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10947 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10948 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10949 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10950 else
10951 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10952 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10953 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10954 $as_echo_n "(cached) " >&6
10955 else
10956 ac_check_lib_save_LIBS=$LIBS
10957 LIBS="-lsvld $LIBS"
10958 cat >conftest.$ac_ext <<_ACEOF
10959 /* confdefs.h. */
10960 _ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10965 /* Override any GCC internal prototype to avoid an error.
10966 Use char because int might match the return type of a GCC
10967 builtin and then its argument prototype would still apply. */
10968 #ifdef __cplusplus
10969 extern "C"
10970 #endif
10971 char dlopen ();
10973 main ()
10975 return dlopen ();
10977 return 0;
10979 _ACEOF
10980 rm -f conftest.$ac_objext conftest$ac_exeext
10981 if { (ac_try="$ac_link"
10982 case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10985 esac
10986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10987 $as_echo "$ac_try_echo") >&5
10988 (eval "$ac_link") 2>conftest.er1
10989 ac_status=$?
10990 grep -v '^ *+' conftest.er1 >conftest.err
10991 rm -f conftest.er1
10992 cat conftest.err >&5
10993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && {
10995 test -z "$ac_c_werror_flag" ||
10996 test ! -s conftest.err
10997 } && test -s conftest$ac_exeext && {
10998 test "$cross_compiling" = yes ||
10999 $as_test_x conftest$ac_exeext
11000 }; then
11001 ac_cv_lib_svld_dlopen=yes
11002 else
11003 $as_echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11006 ac_cv_lib_svld_dlopen=no
11009 rm -rf conftest.dSYM
11010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11011 conftest$ac_exeext conftest.$ac_ext
11012 LIBS=$ac_check_lib_save_LIBS
11014 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11015 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11016 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11018 else
11019 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11020 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11021 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11022 $as_echo_n "(cached) " >&6
11023 else
11024 ac_check_lib_save_LIBS=$LIBS
11025 LIBS="-ldld $LIBS"
11026 cat >conftest.$ac_ext <<_ACEOF
11027 /* confdefs.h. */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 char dld_link ();
11041 main ()
11043 return dld_link ();
11045 return 0;
11047 _ACEOF
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (ac_try="$ac_link"
11050 case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11053 esac
11054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11055 $as_echo "$ac_try_echo") >&5
11056 (eval "$ac_link") 2>conftest.er1
11057 ac_status=$?
11058 grep -v '^ *+' conftest.er1 >conftest.err
11059 rm -f conftest.er1
11060 cat conftest.err >&5
11061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } && {
11063 test -z "$ac_c_werror_flag" ||
11064 test ! -s conftest.err
11065 } && test -s conftest$ac_exeext && {
11066 test "$cross_compiling" = yes ||
11067 $as_test_x conftest$ac_exeext
11068 }; then
11069 ac_cv_lib_dld_dld_link=yes
11070 else
11071 $as_echo "$as_me: failed program was:" >&5
11072 sed 's/^/| /' conftest.$ac_ext >&5
11074 ac_cv_lib_dld_dld_link=no
11077 rm -rf conftest.dSYM
11078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11079 conftest$ac_exeext conftest.$ac_ext
11080 LIBS=$ac_check_lib_save_LIBS
11082 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11083 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11084 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11085 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11104 esac
11106 if test "x$lt_cv_dlopen" != xno; then
11107 enable_dlopen=yes
11108 else
11109 enable_dlopen=no
11112 case $lt_cv_dlopen in
11113 dlopen)
11114 save_CPPFLAGS="$CPPFLAGS"
11115 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11117 save_LDFLAGS="$LDFLAGS"
11118 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11120 save_LIBS="$LIBS"
11121 LIBS="$lt_cv_dlopen_libs $LIBS"
11123 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11124 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11125 if test "${lt_cv_dlopen_self+set}" = set; then
11126 $as_echo_n "(cached) " >&6
11127 else
11128 if test "$cross_compiling" = yes; then :
11129 lt_cv_dlopen_self=cross
11130 else
11131 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11132 lt_status=$lt_dlunknown
11133 cat > conftest.$ac_ext <<_LT_EOF
11134 #line 11134 "configure"
11135 #include "confdefs.h"
11137 #if HAVE_DLFCN_H
11138 #include <dlfcn.h>
11139 #endif
11141 #include <stdio.h>
11143 #ifdef RTLD_GLOBAL
11144 # define LT_DLGLOBAL RTLD_GLOBAL
11145 #else
11146 # ifdef DL_GLOBAL
11147 # define LT_DLGLOBAL DL_GLOBAL
11148 # else
11149 # define LT_DLGLOBAL 0
11150 # endif
11151 #endif
11153 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11154 find out it does not work in some platform. */
11155 #ifndef LT_DLLAZY_OR_NOW
11156 # ifdef RTLD_LAZY
11157 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11158 # else
11159 # ifdef DL_LAZY
11160 # define LT_DLLAZY_OR_NOW DL_LAZY
11161 # else
11162 # ifdef RTLD_NOW
11163 # define LT_DLLAZY_OR_NOW RTLD_NOW
11164 # else
11165 # ifdef DL_NOW
11166 # define LT_DLLAZY_OR_NOW DL_NOW
11167 # else
11168 # define LT_DLLAZY_OR_NOW 0
11169 # endif
11170 # endif
11171 # endif
11172 # endif
11173 #endif
11175 void fnord() { int i=42;}
11176 int main ()
11178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11179 int status = $lt_dlunknown;
11181 if (self)
11183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11184 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11185 /* dlclose (self); */
11187 else
11188 puts (dlerror ());
11190 return status;
11192 _LT_EOF
11193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11194 (eval $ac_link) 2>&5
11195 ac_status=$?
11196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11198 (./conftest; exit; ) >&5 2>/dev/null
11199 lt_status=$?
11200 case x$lt_status in
11201 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11202 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11203 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11204 esac
11205 else :
11206 # compilation failed
11207 lt_cv_dlopen_self=no
11210 rm -fr conftest*
11214 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11215 $as_echo "$lt_cv_dlopen_self" >&6; }
11217 if test "x$lt_cv_dlopen_self" = xyes; then
11218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11219 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11220 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11221 if test "${lt_cv_dlopen_self_static+set}" = set; then
11222 $as_echo_n "(cached) " >&6
11223 else
11224 if test "$cross_compiling" = yes; then :
11225 lt_cv_dlopen_self_static=cross
11226 else
11227 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11228 lt_status=$lt_dlunknown
11229 cat > conftest.$ac_ext <<_LT_EOF
11230 #line 11230 "configure"
11231 #include "confdefs.h"
11233 #if HAVE_DLFCN_H
11234 #include <dlfcn.h>
11235 #endif
11237 #include <stdio.h>
11239 #ifdef RTLD_GLOBAL
11240 # define LT_DLGLOBAL RTLD_GLOBAL
11241 #else
11242 # ifdef DL_GLOBAL
11243 # define LT_DLGLOBAL DL_GLOBAL
11244 # else
11245 # define LT_DLGLOBAL 0
11246 # endif
11247 #endif
11249 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11250 find out it does not work in some platform. */
11251 #ifndef LT_DLLAZY_OR_NOW
11252 # ifdef RTLD_LAZY
11253 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11254 # else
11255 # ifdef DL_LAZY
11256 # define LT_DLLAZY_OR_NOW DL_LAZY
11257 # else
11258 # ifdef RTLD_NOW
11259 # define LT_DLLAZY_OR_NOW RTLD_NOW
11260 # else
11261 # ifdef DL_NOW
11262 # define LT_DLLAZY_OR_NOW DL_NOW
11263 # else
11264 # define LT_DLLAZY_OR_NOW 0
11265 # endif
11266 # endif
11267 # endif
11268 # endif
11269 #endif
11271 void fnord() { int i=42;}
11272 int main ()
11274 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11275 int status = $lt_dlunknown;
11277 if (self)
11279 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11280 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11281 /* dlclose (self); */
11283 else
11284 puts (dlerror ());
11286 return status;
11288 _LT_EOF
11289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11290 (eval $ac_link) 2>&5
11291 ac_status=$?
11292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11294 (./conftest; exit; ) >&5 2>/dev/null
11295 lt_status=$?
11296 case x$lt_status in
11297 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11298 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11299 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11300 esac
11301 else :
11302 # compilation failed
11303 lt_cv_dlopen_self_static=no
11306 rm -fr conftest*
11310 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11311 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11314 CPPFLAGS="$save_CPPFLAGS"
11315 LDFLAGS="$save_LDFLAGS"
11316 LIBS="$save_LIBS"
11318 esac
11320 case $lt_cv_dlopen_self in
11321 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11322 *) enable_dlopen_self=unknown ;;
11323 esac
11325 case $lt_cv_dlopen_self_static in
11326 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11327 *) enable_dlopen_self_static=unknown ;;
11328 esac
11347 striplib=
11348 old_striplib=
11349 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11350 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11351 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11352 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11353 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11354 { $as_echo "$as_me:$LINENO: result: yes" >&5
11355 $as_echo "yes" >&6; }
11356 else
11357 # FIXME - insert some real tests, host_os isn't really good enough
11358 case $host_os in
11359 darwin*)
11360 if test -n "$STRIP" ; then
11361 striplib="$STRIP -x"
11362 old_striplib="$STRIP -S"
11363 { $as_echo "$as_me:$LINENO: result: yes" >&5
11364 $as_echo "yes" >&6; }
11365 else
11366 { $as_echo "$as_me:$LINENO: result: no" >&5
11367 $as_echo "no" >&6; }
11371 { $as_echo "$as_me:$LINENO: result: no" >&5
11372 $as_echo "no" >&6; }
11374 esac
11388 # Report which library types will actually be built
11389 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11390 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11391 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11392 $as_echo "$can_build_shared" >&6; }
11394 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11395 $as_echo_n "checking whether to build shared libraries... " >&6; }
11396 test "$can_build_shared" = "no" && enable_shared=no
11398 # On AIX, shared libraries and static libraries use the same namespace, and
11399 # are all built from PIC.
11400 case $host_os in
11401 aix3*)
11402 test "$enable_shared" = yes && enable_static=no
11403 if test -n "$RANLIB"; then
11404 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11405 postinstall_cmds='$RANLIB $lib'
11409 aix[4-9]*)
11410 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11411 test "$enable_shared" = yes && enable_static=no
11414 esac
11415 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11416 $as_echo "$enable_shared" >&6; }
11418 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11419 $as_echo_n "checking whether to build static libraries... " >&6; }
11420 # Make sure either enable_shared or enable_static is yes.
11421 test "$enable_shared" = yes || enable_static=yes
11422 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11423 $as_echo "$enable_static" >&6; }
11429 ac_ext=c
11430 ac_cpp='$CPP $CPPFLAGS'
11431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11435 CC="$lt_save_CC"
11449 ac_config_commands="$ac_config_commands libtool"
11454 # Only expand once:
11457 ac_ext=c
11458 ac_cpp='$CPP $CPPFLAGS'
11459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11462 if test -n "$ac_tool_prefix"; then
11463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11464 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11466 $as_echo_n "checking for $ac_word... " >&6; }
11467 if test "${ac_cv_prog_CC+set}" = set; then
11468 $as_echo_n "(cached) " >&6
11469 else
11470 if test -n "$CC"; then
11471 ac_cv_prog_CC="$CC" # Let the user override the test.
11472 else
11473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474 for as_dir in $PATH
11476 IFS=$as_save_IFS
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11480 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 break 2
11484 done
11485 done
11486 IFS=$as_save_IFS
11490 CC=$ac_cv_prog_CC
11491 if test -n "$CC"; then
11492 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11493 $as_echo "$CC" >&6; }
11494 else
11495 { $as_echo "$as_me:$LINENO: result: no" >&5
11496 $as_echo "no" >&6; }
11501 if test -z "$ac_cv_prog_CC"; then
11502 ac_ct_CC=$CC
11503 # Extract the first word of "gcc", so it can be a program name with args.
11504 set dummy gcc; ac_word=$2
11505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11506 $as_echo_n "checking for $ac_word... " >&6; }
11507 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11508 $as_echo_n "(cached) " >&6
11509 else
11510 if test -n "$ac_ct_CC"; then
11511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11512 else
11513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514 for as_dir in $PATH
11516 IFS=$as_save_IFS
11517 test -z "$as_dir" && as_dir=.
11518 for ac_exec_ext in '' $ac_executable_extensions; do
11519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11520 ac_cv_prog_ac_ct_CC="gcc"
11521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11522 break 2
11524 done
11525 done
11526 IFS=$as_save_IFS
11530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11531 if test -n "$ac_ct_CC"; then
11532 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11533 $as_echo "$ac_ct_CC" >&6; }
11534 else
11535 { $as_echo "$as_me:$LINENO: result: no" >&5
11536 $as_echo "no" >&6; }
11539 if test "x$ac_ct_CC" = x; then
11540 CC=""
11541 else
11542 case $cross_compiling:$ac_tool_warned in
11543 yes:)
11544 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11546 ac_tool_warned=yes ;;
11547 esac
11548 CC=$ac_ct_CC
11550 else
11551 CC="$ac_cv_prog_CC"
11554 if test -z "$CC"; then
11555 if test -n "$ac_tool_prefix"; then
11556 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11557 set dummy ${ac_tool_prefix}cc; ac_word=$2
11558 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11559 $as_echo_n "checking for $ac_word... " >&6; }
11560 if test "${ac_cv_prog_CC+set}" = set; then
11561 $as_echo_n "(cached) " >&6
11562 else
11563 if test -n "$CC"; then
11564 ac_cv_prog_CC="$CC" # Let the user override the test.
11565 else
11566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567 for as_dir in $PATH
11569 IFS=$as_save_IFS
11570 test -z "$as_dir" && as_dir=.
11571 for ac_exec_ext in '' $ac_executable_extensions; do
11572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11573 ac_cv_prog_CC="${ac_tool_prefix}cc"
11574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11575 break 2
11577 done
11578 done
11579 IFS=$as_save_IFS
11583 CC=$ac_cv_prog_CC
11584 if test -n "$CC"; then
11585 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11586 $as_echo "$CC" >&6; }
11587 else
11588 { $as_echo "$as_me:$LINENO: result: no" >&5
11589 $as_echo "no" >&6; }
11595 if test -z "$CC"; then
11596 # Extract the first word of "cc", so it can be a program name with args.
11597 set dummy cc; ac_word=$2
11598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11599 $as_echo_n "checking for $ac_word... " >&6; }
11600 if test "${ac_cv_prog_CC+set}" = set; then
11601 $as_echo_n "(cached) " >&6
11602 else
11603 if test -n "$CC"; then
11604 ac_cv_prog_CC="$CC" # Let the user override the test.
11605 else
11606 ac_prog_rejected=no
11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608 for as_dir in $PATH
11610 IFS=$as_save_IFS
11611 test -z "$as_dir" && as_dir=.
11612 for ac_exec_ext in '' $ac_executable_extensions; do
11613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11615 ac_prog_rejected=yes
11616 continue
11618 ac_cv_prog_CC="cc"
11619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11620 break 2
11622 done
11623 done
11624 IFS=$as_save_IFS
11626 if test $ac_prog_rejected = yes; then
11627 # We found a bogon in the path, so make sure we never use it.
11628 set dummy $ac_cv_prog_CC
11629 shift
11630 if test $# != 0; then
11631 # We chose a different compiler from the bogus one.
11632 # However, it has the same basename, so the bogon will be chosen
11633 # first if we set CC to just the basename; use the full file name.
11634 shift
11635 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11640 CC=$ac_cv_prog_CC
11641 if test -n "$CC"; then
11642 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11643 $as_echo "$CC" >&6; }
11644 else
11645 { $as_echo "$as_me:$LINENO: result: no" >&5
11646 $as_echo "no" >&6; }
11651 if test -z "$CC"; then
11652 if test -n "$ac_tool_prefix"; then
11653 for ac_prog in cl.exe
11655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11658 $as_echo_n "checking for $ac_word... " >&6; }
11659 if test "${ac_cv_prog_CC+set}" = set; then
11660 $as_echo_n "(cached) " >&6
11661 else
11662 if test -n "$CC"; then
11663 ac_cv_prog_CC="$CC" # Let the user override the test.
11664 else
11665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666 for as_dir in $PATH
11668 IFS=$as_save_IFS
11669 test -z "$as_dir" && as_dir=.
11670 for ac_exec_ext in '' $ac_executable_extensions; do
11671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11674 break 2
11676 done
11677 done
11678 IFS=$as_save_IFS
11682 CC=$ac_cv_prog_CC
11683 if test -n "$CC"; then
11684 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11685 $as_echo "$CC" >&6; }
11686 else
11687 { $as_echo "$as_me:$LINENO: result: no" >&5
11688 $as_echo "no" >&6; }
11692 test -n "$CC" && break
11693 done
11695 if test -z "$CC"; then
11696 ac_ct_CC=$CC
11697 for ac_prog in cl.exe
11699 # Extract the first word of "$ac_prog", so it can be a program name with args.
11700 set dummy $ac_prog; ac_word=$2
11701 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11702 $as_echo_n "checking for $ac_word... " >&6; }
11703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11704 $as_echo_n "(cached) " >&6
11705 else
11706 if test -n "$ac_ct_CC"; then
11707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11708 else
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $PATH
11712 IFS=$as_save_IFS
11713 test -z "$as_dir" && as_dir=.
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11716 ac_cv_prog_ac_ct_CC="$ac_prog"
11717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11718 break 2
11720 done
11721 done
11722 IFS=$as_save_IFS
11726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11727 if test -n "$ac_ct_CC"; then
11728 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11729 $as_echo "$ac_ct_CC" >&6; }
11730 else
11731 { $as_echo "$as_me:$LINENO: result: no" >&5
11732 $as_echo "no" >&6; }
11736 test -n "$ac_ct_CC" && break
11737 done
11739 if test "x$ac_ct_CC" = x; then
11740 CC=""
11741 else
11742 case $cross_compiling:$ac_tool_warned in
11743 yes:)
11744 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11746 ac_tool_warned=yes ;;
11747 esac
11748 CC=$ac_ct_CC
11755 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11757 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11758 See \`config.log' for more details." >&5
11759 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11760 See \`config.log' for more details." >&2;}
11761 { (exit 1); exit 1; }; }; }
11763 # Provide some information about the compiler.
11764 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11765 set X $ac_compile
11766 ac_compiler=$2
11767 { (ac_try="$ac_compiler --version >&5"
11768 case "(($ac_try" in
11769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770 *) ac_try_echo=$ac_try;;
11771 esac
11772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11773 $as_echo "$ac_try_echo") >&5
11774 (eval "$ac_compiler --version >&5") 2>&5
11775 ac_status=$?
11776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }
11778 { (ac_try="$ac_compiler -v >&5"
11779 case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11782 esac
11783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11784 $as_echo "$ac_try_echo") >&5
11785 (eval "$ac_compiler -v >&5") 2>&5
11786 ac_status=$?
11787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }
11789 { (ac_try="$ac_compiler -V >&5"
11790 case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11793 esac
11794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11795 $as_echo "$ac_try_echo") >&5
11796 (eval "$ac_compiler -V >&5") 2>&5
11797 ac_status=$?
11798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }
11801 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11802 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11803 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11804 $as_echo_n "(cached) " >&6
11805 else
11806 cat >conftest.$ac_ext <<_ACEOF
11807 /* confdefs.h. */
11808 _ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h. */
11814 main ()
11816 #ifndef __GNUC__
11817 choke me
11818 #endif
11821 return 0;
11823 _ACEOF
11824 rm -f conftest.$ac_objext
11825 if { (ac_try="$ac_compile"
11826 case "(($ac_try" in
11827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828 *) ac_try_echo=$ac_try;;
11829 esac
11830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11831 $as_echo "$ac_try_echo") >&5
11832 (eval "$ac_compile") 2>conftest.er1
11833 ac_status=$?
11834 grep -v '^ *+' conftest.er1 >conftest.err
11835 rm -f conftest.er1
11836 cat conftest.err >&5
11837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } && {
11839 test -z "$ac_c_werror_flag" ||
11840 test ! -s conftest.err
11841 } && test -s conftest.$ac_objext; then
11842 ac_compiler_gnu=yes
11843 else
11844 $as_echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11847 ac_compiler_gnu=no
11850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11851 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11854 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11855 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11856 if test $ac_compiler_gnu = yes; then
11857 GCC=yes
11858 else
11859 GCC=
11861 ac_test_CFLAGS=${CFLAGS+set}
11862 ac_save_CFLAGS=$CFLAGS
11863 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11864 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11865 if test "${ac_cv_prog_cc_g+set}" = set; then
11866 $as_echo_n "(cached) " >&6
11867 else
11868 ac_save_c_werror_flag=$ac_c_werror_flag
11869 ac_c_werror_flag=yes
11870 ac_cv_prog_cc_g=no
11871 CFLAGS="-g"
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h. */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11880 main ()
11884 return 0;
11886 _ACEOF
11887 rm -f conftest.$ac_objext
11888 if { (ac_try="$ac_compile"
11889 case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11892 esac
11893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11894 $as_echo "$ac_try_echo") >&5
11895 (eval "$ac_compile") 2>conftest.er1
11896 ac_status=$?
11897 grep -v '^ *+' conftest.er1 >conftest.err
11898 rm -f conftest.er1
11899 cat conftest.err >&5
11900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } && {
11902 test -z "$ac_c_werror_flag" ||
11903 test ! -s conftest.err
11904 } && test -s conftest.$ac_objext; then
11905 ac_cv_prog_cc_g=yes
11906 else
11907 $as_echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11910 CFLAGS=""
11911 cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h. */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11919 main ()
11923 return 0;
11925 _ACEOF
11926 rm -f conftest.$ac_objext
11927 if { (ac_try="$ac_compile"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931 esac
11932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11933 $as_echo "$ac_try_echo") >&5
11934 (eval "$ac_compile") 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } && {
11941 test -z "$ac_c_werror_flag" ||
11942 test ! -s conftest.err
11943 } && test -s conftest.$ac_objext; then
11945 else
11946 $as_echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11949 ac_c_werror_flag=$ac_save_c_werror_flag
11950 CFLAGS="-g"
11951 cat >conftest.$ac_ext <<_ACEOF
11952 /* confdefs.h. */
11953 _ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11959 main ()
11963 return 0;
11965 _ACEOF
11966 rm -f conftest.$ac_objext
11967 if { (ac_try="$ac_compile"
11968 case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11971 esac
11972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11973 $as_echo "$ac_try_echo") >&5
11974 (eval "$ac_compile") 2>conftest.er1
11975 ac_status=$?
11976 grep -v '^ *+' conftest.er1 >conftest.err
11977 rm -f conftest.er1
11978 cat conftest.err >&5
11979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } && {
11981 test -z "$ac_c_werror_flag" ||
11982 test ! -s conftest.err
11983 } && test -s conftest.$ac_objext; then
11984 ac_cv_prog_cc_g=yes
11985 else
11986 $as_echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999 ac_c_werror_flag=$ac_save_c_werror_flag
12001 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12002 $as_echo "$ac_cv_prog_cc_g" >&6; }
12003 if test "$ac_test_CFLAGS" = set; then
12004 CFLAGS=$ac_save_CFLAGS
12005 elif test $ac_cv_prog_cc_g = yes; then
12006 if test "$GCC" = yes; then
12007 CFLAGS="-g -O2"
12008 else
12009 CFLAGS="-g"
12011 else
12012 if test "$GCC" = yes; then
12013 CFLAGS="-O2"
12014 else
12015 CFLAGS=
12018 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12019 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12020 if test "${ac_cv_prog_cc_c89+set}" = set; then
12021 $as_echo_n "(cached) " >&6
12022 else
12023 ac_cv_prog_cc_c89=no
12024 ac_save_CC=$CC
12025 cat >conftest.$ac_ext <<_ACEOF
12026 /* confdefs.h. */
12027 _ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h. */
12031 #include <stdarg.h>
12032 #include <stdio.h>
12033 #include <sys/types.h>
12034 #include <sys/stat.h>
12035 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12036 struct buf { int x; };
12037 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12038 static char *e (p, i)
12039 char **p;
12040 int i;
12042 return p[i];
12044 static char *f (char * (*g) (char **, int), char **p, ...)
12046 char *s;
12047 va_list v;
12048 va_start (v,p);
12049 s = g (p, va_arg (v,int));
12050 va_end (v);
12051 return s;
12054 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12055 function prototypes and stuff, but not '\xHH' hex character constants.
12056 These don't provoke an error unfortunately, instead are silently treated
12057 as 'x'. The following induces an error, until -std is added to get
12058 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12059 array size at least. It's necessary to write '\x00'==0 to get something
12060 that's true only with -std. */
12061 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12063 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12064 inside strings and character constants. */
12065 #define FOO(x) 'x'
12066 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12068 int test (int i, double x);
12069 struct s1 {int (*f) (int a);};
12070 struct s2 {int (*f) (double a);};
12071 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12072 int argc;
12073 char **argv;
12075 main ()
12077 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12079 return 0;
12081 _ACEOF
12082 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12083 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12085 CC="$ac_save_CC $ac_arg"
12086 rm -f conftest.$ac_objext
12087 if { (ac_try="$ac_compile"
12088 case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12091 esac
12092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12093 $as_echo "$ac_try_echo") >&5
12094 (eval "$ac_compile") 2>conftest.er1
12095 ac_status=$?
12096 grep -v '^ *+' conftest.er1 >conftest.err
12097 rm -f conftest.er1
12098 cat conftest.err >&5
12099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } && {
12101 test -z "$ac_c_werror_flag" ||
12102 test ! -s conftest.err
12103 } && test -s conftest.$ac_objext; then
12104 ac_cv_prog_cc_c89=$ac_arg
12105 else
12106 $as_echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12112 rm -f core conftest.err conftest.$ac_objext
12113 test "x$ac_cv_prog_cc_c89" != "xno" && break
12114 done
12115 rm -f conftest.$ac_ext
12116 CC=$ac_save_CC
12119 # AC_CACHE_VAL
12120 case "x$ac_cv_prog_cc_c89" in
12122 { $as_echo "$as_me:$LINENO: result: none needed" >&5
12123 $as_echo "none needed" >&6; } ;;
12124 xno)
12125 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12126 $as_echo "unsupported" >&6; } ;;
12128 CC="$CC $ac_cv_prog_cc_c89"
12129 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12130 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12131 esac
12134 ac_ext=c
12135 ac_cpp='$CPP $CPPFLAGS'
12136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12140 depcc="$CC" am_compiler_list=
12142 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12143 $as_echo_n "checking dependency style of $depcc... " >&6; }
12144 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12145 $as_echo_n "(cached) " >&6
12146 else
12147 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12148 # We make a subdir and do the tests there. Otherwise we can end up
12149 # making bogus files that we don't know about and never remove. For
12150 # instance it was reported that on HP-UX the gcc test will end up
12151 # making a dummy file named `D' -- because `-MD' means `put the output
12152 # in D'.
12153 mkdir conftest.dir
12154 # Copy depcomp to subdir because otherwise we won't find it if we're
12155 # using a relative directory.
12156 cp "$am_depcomp" conftest.dir
12157 cd conftest.dir
12158 # We will build objects and dependencies in a subdirectory because
12159 # it helps to detect inapplicable dependency modes. For instance
12160 # both Tru64's cc and ICC support -MD to output dependencies as a
12161 # side effect of compilation, but ICC will put the dependencies in
12162 # the current directory while Tru64 will put them in the object
12163 # directory.
12164 mkdir sub
12166 am_cv_CC_dependencies_compiler_type=none
12167 if test "$am_compiler_list" = ""; then
12168 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12170 for depmode in $am_compiler_list; do
12171 # Setup a source with many dependencies, because some compilers
12172 # like to wrap large dependency lists on column 80 (with \), and
12173 # we should not choose a depcomp mode which is confused by this.
12175 # We need to recreate these files for each test, as the compiler may
12176 # overwrite some of them when testing with obscure command lines.
12177 # This happens at least with the AIX C compiler.
12178 : > sub/conftest.c
12179 for i in 1 2 3 4 5 6; do
12180 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12181 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12182 # Solaris 8's {/usr,}/bin/sh.
12183 touch sub/conftst$i.h
12184 done
12185 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12187 case $depmode in
12188 nosideeffect)
12189 # after this tag, mechanisms are not by side-effect, so they'll
12190 # only be used when explicitly requested
12191 if test "x$enable_dependency_tracking" = xyes; then
12192 continue
12193 else
12194 break
12197 none) break ;;
12198 esac
12199 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12200 # mode. It turns out that the SunPro C++ compiler does not properly
12201 # handle `-M -o', and we need to detect this.
12202 if depmode=$depmode \
12203 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12204 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12205 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12206 >/dev/null 2>conftest.err &&
12207 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12209 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12211 # icc doesn't choke on unknown options, it will just issue warnings
12212 # or remarks (even with -Werror). So we grep stderr for any message
12213 # that says an option was ignored or not supported.
12214 # When given -MP, icc 7.0 and 7.1 complain thusly:
12215 # icc: Command line warning: ignoring option '-M'; no argument required
12216 # The diagnosis changed in icc 8.0:
12217 # icc: Command line remark: option '-MP' not supported
12218 if (grep 'ignoring option' conftest.err ||
12219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12220 am_cv_CC_dependencies_compiler_type=$depmode
12221 break
12224 done
12226 cd ..
12227 rm -rf conftest.dir
12228 else
12229 am_cv_CC_dependencies_compiler_type=none
12233 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12234 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12235 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12238 test "x$enable_dependency_tracking" != xno \
12239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12240 am__fastdepCC_TRUE=
12241 am__fastdepCC_FALSE='#'
12242 else
12243 am__fastdepCC_TRUE='#'
12244 am__fastdepCC_FALSE=
12248 # Find a good install program. We prefer a C program (faster),
12249 # so one script is as good as another. But avoid the broken or
12250 # incompatible versions:
12251 # SysV /etc/install, /usr/sbin/install
12252 # SunOS /usr/etc/install
12253 # IRIX /sbin/install
12254 # AIX /bin/install
12255 # AmigaOS /C/install, which installs bootblocks on floppy discs
12256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12259 # OS/2's system install, which has a completely different semantic
12260 # ./install, which can be erroneously created by make from ./install.sh.
12261 # Reject install programs that cannot install multiple files.
12262 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12263 $as_echo_n "checking for a BSD-compatible install... " >&6; }
12264 if test -z "$INSTALL"; then
12265 if test "${ac_cv_path_install+set}" = set; then
12266 $as_echo_n "(cached) " >&6
12267 else
12268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269 for as_dir in $PATH
12271 IFS=$as_save_IFS
12272 test -z "$as_dir" && as_dir=.
12273 # Account for people who put trailing slashes in PATH elements.
12274 case $as_dir/ in
12275 ./ | .// | /cC/* | \
12276 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12277 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12278 /usr/ucb/* ) ;;
12280 # OSF1 and SCO ODT 3.0 have their own names for install.
12281 # Don't use installbsd from OSF since it installs stuff as root
12282 # by default.
12283 for ac_prog in ginstall scoinst install; do
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12286 if test $ac_prog = install &&
12287 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12288 # AIX install. It has an incompatible calling convention.
12290 elif test $ac_prog = install &&
12291 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12292 # program-specific install script used by HP pwplus--don't use.
12294 else
12295 rm -rf conftest.one conftest.two conftest.dir
12296 echo one > conftest.one
12297 echo two > conftest.two
12298 mkdir conftest.dir
12299 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12300 test -s conftest.one && test -s conftest.two &&
12301 test -s conftest.dir/conftest.one &&
12302 test -s conftest.dir/conftest.two
12303 then
12304 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12305 break 3
12309 done
12310 done
12312 esac
12314 done
12315 IFS=$as_save_IFS
12317 rm -rf conftest.one conftest.two conftest.dir
12320 if test "${ac_cv_path_install+set}" = set; then
12321 INSTALL=$ac_cv_path_install
12322 else
12323 # As a last resort, use the slow shell script. Don't cache a
12324 # value for INSTALL within a source directory, because that will
12325 # break other packages using the cache if that directory is
12326 # removed, or if the value is a relative name.
12327 INSTALL=$ac_install_sh
12330 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12331 $as_echo "$INSTALL" >&6; }
12333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12334 # It thinks the first close brace ends the variable substitution.
12335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12339 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12342 # The alpha architecture needs special flags for binary portability
12343 case "$target" in
12344 alpha*-*-linux*)
12345 CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall"
12347 *-*-beos*)
12348 ac_default_prefix=/boot/develop/tools/gnupro
12350 *-*-cygwin* | *-*-mingw32*)
12351 if test "$build" != "$target"; then # cross-compiling
12352 ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc
12355 esac
12357 # Check for Pango
12361 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12362 if test -n "$ac_tool_prefix"; then
12363 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12364 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12365 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12368 $as_echo_n "(cached) " >&6
12369 else
12370 case $PKG_CONFIG in
12371 [\\/]* | ?:[\\/]*)
12372 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376 for as_dir in $PATH
12378 IFS=$as_save_IFS
12379 test -z "$as_dir" && as_dir=.
12380 for ac_exec_ext in '' $ac_executable_extensions; do
12381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12382 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12383 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12384 break 2
12386 done
12387 done
12388 IFS=$as_save_IFS
12391 esac
12393 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12394 if test -n "$PKG_CONFIG"; then
12395 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12396 $as_echo "$PKG_CONFIG" >&6; }
12397 else
12398 { $as_echo "$as_me:$LINENO: result: no" >&5
12399 $as_echo "no" >&6; }
12404 if test -z "$ac_cv_path_PKG_CONFIG"; then
12405 ac_pt_PKG_CONFIG=$PKG_CONFIG
12406 # Extract the first word of "pkg-config", so it can be a program name with args.
12407 set dummy pkg-config; ac_word=$2
12408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12409 $as_echo_n "checking for $ac_word... " >&6; }
12410 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12411 $as_echo_n "(cached) " >&6
12412 else
12413 case $ac_pt_PKG_CONFIG in
12414 [\\/]* | ?:[\\/]*)
12415 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12419 for as_dir in $PATH
12421 IFS=$as_save_IFS
12422 test -z "$as_dir" && as_dir=.
12423 for ac_exec_ext in '' $ac_executable_extensions; do
12424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12425 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12427 break 2
12429 done
12430 done
12431 IFS=$as_save_IFS
12434 esac
12436 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12437 if test -n "$ac_pt_PKG_CONFIG"; then
12438 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12439 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12440 else
12441 { $as_echo "$as_me:$LINENO: result: no" >&5
12442 $as_echo "no" >&6; }
12445 if test "x$ac_pt_PKG_CONFIG" = x; then
12446 PKG_CONFIG=""
12447 else
12448 case $cross_compiling:$ac_tool_warned in
12449 yes:)
12450 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12452 ac_tool_warned=yes ;;
12453 esac
12454 PKG_CONFIG=$ac_pt_PKG_CONFIG
12456 else
12457 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12461 if test -n "$PKG_CONFIG"; then
12462 _pkg_min_version=0.9.0
12463 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12464 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12465 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12466 { $as_echo "$as_me:$LINENO: result: yes" >&5
12467 $as_echo "yes" >&6; }
12468 else
12469 { $as_echo "$as_me:$LINENO: result: no" >&5
12470 $as_echo "no" >&6; }
12471 PKG_CONFIG=""
12476 pkg_failed=no
12477 { $as_echo "$as_me:$LINENO: checking for PANGO" >&5
12478 $as_echo_n "checking for PANGO... " >&6; }
12480 if test -n "$PKG_CONFIG"; then
12481 if test -n "$PANGO_CFLAGS"; then
12482 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
12483 else
12484 if test -n "$PKG_CONFIG" && \
12485 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pango >= 1.2.0\"") >&5
12486 ($PKG_CONFIG --exists --print-errors "pango >= 1.2.0") 2>&5
12487 ac_status=$?
12488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; then
12490 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.2.0" 2>/dev/null`
12491 else
12492 pkg_failed=yes
12495 else
12496 pkg_failed=untried
12498 if test -n "$PKG_CONFIG"; then
12499 if test -n "$PANGO_LIBS"; then
12500 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
12501 else
12502 if test -n "$PKG_CONFIG" && \
12503 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pango >= 1.2.0\"") >&5
12504 ($PKG_CONFIG --exists --print-errors "pango >= 1.2.0") 2>&5
12505 ac_status=$?
12506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; then
12508 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.2.0" 2>/dev/null`
12509 else
12510 pkg_failed=yes
12513 else
12514 pkg_failed=untried
12519 if test $pkg_failed = yes; then
12521 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12522 _pkg_short_errors_supported=yes
12523 else
12524 _pkg_short_errors_supported=no
12526 if test $_pkg_short_errors_supported = yes; then
12527 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pango >= 1.2.0"`
12528 else
12529 PANGO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pango >= 1.2.0"`
12531 # Put the nasty error message in config.log where it belongs
12532 echo "$PANGO_PKG_ERRORS" >&5
12534 { $as_echo "$as_me:$LINENO: result: no" >&5
12535 $as_echo "no" >&6; }
12536 { { $as_echo "$as_me:$LINENO: error: *** pango >= 1.2.0 not found!" >&5
12537 $as_echo "$as_me: error: *** pango >= 1.2.0 not found!" >&2;}
12538 { (exit 1); exit 1; }; }
12539 elif test $pkg_failed = untried; then
12540 { { $as_echo "$as_me:$LINENO: error: *** pango >= 1.2.0 not found!" >&5
12541 $as_echo "$as_me: error: *** pango >= 1.2.0 not found!" >&2;}
12542 { (exit 1); exit 1; }; }
12543 else
12544 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
12545 PANGO_LIBS=$pkg_cv_PANGO_LIBS
12546 { $as_echo "$as_me:$LINENO: result: yes" >&5
12547 $as_echo "yes" >&6; }
12550 CFLAGS="$CFLAGS $PANGO_CFLAGS"
12551 LIBS="$LIBS $PANGO_LIBS"
12554 pkg_failed=no
12555 { $as_echo "$as_me:$LINENO: checking for PANGOFT2" >&5
12556 $as_echo_n "checking for PANGOFT2... " >&6; }
12558 if test -n "$PKG_CONFIG"; then
12559 if test -n "$PANGOFT2_CFLAGS"; then
12560 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
12561 else
12562 if test -n "$PKG_CONFIG" && \
12563 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.2.0\"") >&5
12564 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.2.0") 2>&5
12565 ac_status=$?
12566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; then
12568 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.2.0" 2>/dev/null`
12569 else
12570 pkg_failed=yes
12573 else
12574 pkg_failed=untried
12576 if test -n "$PKG_CONFIG"; then
12577 if test -n "$PANGOFT2_LIBS"; then
12578 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
12579 else
12580 if test -n "$PKG_CONFIG" && \
12581 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.2.0\"") >&5
12582 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.2.0") 2>&5
12583 ac_status=$?
12584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; then
12586 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.2.0" 2>/dev/null`
12587 else
12588 pkg_failed=yes
12591 else
12592 pkg_failed=untried
12597 if test $pkg_failed = yes; then
12599 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12600 _pkg_short_errors_supported=yes
12601 else
12602 _pkg_short_errors_supported=no
12604 if test $_pkg_short_errors_supported = yes; then
12605 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2 >= 1.2.0"`
12606 else
12607 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.2.0"`
12609 # Put the nasty error message in config.log where it belongs
12610 echo "$PANGOFT2_PKG_ERRORS" >&5
12612 { $as_echo "$as_me:$LINENO: result: no" >&5
12613 $as_echo "no" >&6; }
12614 { { $as_echo "$as_me:$LINENO: error: *** pangoft2 >= 1.2.0 not found!" >&5
12615 $as_echo "$as_me: error: *** pangoft2 >= 1.2.0 not found!" >&2;}
12616 { (exit 1); exit 1; }; }
12617 elif test $pkg_failed = untried; then
12618 { { $as_echo "$as_me:$LINENO: error: *** pangoft2 >= 1.2.0 not found!" >&5
12619 $as_echo "$as_me: error: *** pangoft2 >= 1.2.0 not found!" >&2;}
12620 { (exit 1); exit 1; }; }
12621 else
12622 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
12623 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
12624 { $as_echo "$as_me:$LINENO: result: yes" >&5
12625 $as_echo "yes" >&6; }
12628 CFLAGS="$CFLAGS $PANGOFT2_CFLAGS"
12629 LIBS="$LIBS $PANGOFT2_LIBS"
12631 # Check for SDL
12633 SDL_VERSION=1.2.4
12635 # Check whether --with-sdl-prefix was given.
12636 if test "${with_sdl_prefix+set}" = set; then
12637 withval=$with_sdl_prefix; sdl_prefix="$withval"
12638 else
12639 sdl_prefix=""
12643 # Check whether --with-sdl-exec-prefix was given.
12644 if test "${with_sdl_exec_prefix+set}" = set; then
12645 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12646 else
12647 sdl_exec_prefix=""
12650 # Check whether --enable-sdltest was given.
12651 if test "${enable_sdltest+set}" = set; then
12652 enableval=$enable_sdltest;
12653 else
12654 enable_sdltest=yes
12658 if test x$sdl_exec_prefix != x ; then
12659 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
12660 if test x${SDL_CONFIG+set} != xset ; then
12661 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12664 if test x$sdl_prefix != x ; then
12665 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
12666 if test x${SDL_CONFIG+set} != xset ; then
12667 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12671 if test "x$prefix" != xNONE; then
12672 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12674 # Extract the first word of "sdl-config", so it can be a program name with args.
12675 set dummy sdl-config; ac_word=$2
12676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12677 $as_echo_n "checking for $ac_word... " >&6; }
12678 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12679 $as_echo_n "(cached) " >&6
12680 else
12681 case $SDL_CONFIG in
12682 [\\/]* | ?:[\\/]*)
12683 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in $PATH
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for ac_exec_ext in '' $ac_executable_extensions; do
12692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12693 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 break 2
12697 done
12698 done
12699 IFS=$as_save_IFS
12701 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12703 esac
12705 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12706 if test -n "$SDL_CONFIG"; then
12707 { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12708 $as_echo "$SDL_CONFIG" >&6; }
12709 else
12710 { $as_echo "$as_me:$LINENO: result: no" >&5
12711 $as_echo "no" >&6; }
12715 min_sdl_version=$SDL_VERSION
12716 { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12717 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12718 no_sdl=""
12719 if test "$SDL_CONFIG" = "no" ; then
12720 no_sdl=yes
12721 else
12722 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
12723 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
12725 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
12726 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12727 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
12728 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12729 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12730 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12731 if test "x$enable_sdltest" = "xyes" ; then
12732 ac_save_CFLAGS="$CFLAGS"
12733 ac_save_CXXFLAGS="$CXXFLAGS"
12734 ac_save_LIBS="$LIBS"
12735 CFLAGS="$CFLAGS $SDL_CFLAGS"
12736 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12737 LIBS="$LIBS $SDL_LIBS"
12738 rm -f conf.sdltest
12739 if test "$cross_compiling" = yes; then
12740 echo $ac_n "cross compiling; assumed OK... $ac_c"
12741 else
12742 cat >conftest.$ac_ext <<_ACEOF
12743 /* confdefs.h. */
12744 _ACEOF
12745 cat confdefs.h >>conftest.$ac_ext
12746 cat >>conftest.$ac_ext <<_ACEOF
12747 /* end confdefs.h. */
12749 #include <stdio.h>
12750 #include <stdlib.h>
12751 #include <string.h>
12752 #include "SDL.h"
12754 char*
12755 my_strdup (char *str)
12757 char *new_str;
12759 if (str)
12761 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12762 strcpy (new_str, str);
12764 else
12765 new_str = NULL;
12767 return new_str;
12770 int main (int argc, char *argv[])
12772 int major, minor, micro;
12773 char *tmp_version;
12775 /* This hangs on some systems (?)
12776 system ("touch conf.sdltest");
12778 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12780 /* HP/UX 9 (%@#!) writes to sscanf strings */
12781 tmp_version = my_strdup("$min_sdl_version");
12782 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12783 printf("%s, bad version string\n", "$min_sdl_version");
12784 exit(1);
12787 if (($sdl_major_version > major) ||
12788 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12789 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12791 return 0;
12793 else
12795 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12796 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12797 printf("*** best to upgrade to the required version.\n");
12798 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12799 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12800 printf("*** config.cache before re-running configure\n");
12801 return 1;
12806 _ACEOF
12807 rm -f conftest$ac_exeext
12808 if { (ac_try="$ac_link"
12809 case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12812 esac
12813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12814 $as_echo "$ac_try_echo") >&5
12815 (eval "$ac_link") 2>&5
12816 ac_status=$?
12817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12819 { (case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12822 esac
12823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12824 $as_echo "$ac_try_echo") >&5
12825 (eval "$ac_try") 2>&5
12826 ac_status=$?
12827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; }; then
12830 else
12831 $as_echo "$as_me: program exited with status $ac_status" >&5
12832 $as_echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12835 ( exit $ac_status )
12836 no_sdl=yes
12838 rm -rf conftest.dSYM
12839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12843 CFLAGS="$ac_save_CFLAGS"
12844 CXXFLAGS="$ac_save_CXXFLAGS"
12845 LIBS="$ac_save_LIBS"
12848 if test "x$no_sdl" = x ; then
12849 { $as_echo "$as_me:$LINENO: result: yes" >&5
12850 $as_echo "yes" >&6; }
12852 else
12853 { $as_echo "$as_me:$LINENO: result: no" >&5
12854 $as_echo "no" >&6; }
12855 if test "$SDL_CONFIG" = "no" ; then
12856 echo "*** The sdl-config script installed by SDL could not be found"
12857 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12858 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12859 echo "*** full path to sdl-config."
12860 else
12861 if test -f conf.sdltest ; then
12863 else
12864 echo "*** Could not run SDL test program, checking why..."
12865 CFLAGS="$CFLAGS $SDL_CFLAGS"
12866 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12867 LIBS="$LIBS $SDL_LIBS"
12868 cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h. */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12875 #include <stdio.h>
12876 #include "SDL.h"
12878 int main(int argc, char *argv[])
12879 { return 0; }
12880 #undef main
12881 #define main K_and_R_C_main
12884 main ()
12886 return 0;
12888 return 0;
12890 _ACEOF
12891 rm -f conftest.$ac_objext conftest$ac_exeext
12892 if { (ac_try="$ac_link"
12893 case "(($ac_try" in
12894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12896 esac
12897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12898 $as_echo "$ac_try_echo") >&5
12899 (eval "$ac_link") 2>conftest.er1
12900 ac_status=$?
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
12904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } && {
12906 test -z "$ac_c_werror_flag" ||
12907 test ! -s conftest.err
12908 } && test -s conftest$ac_exeext && {
12909 test "$cross_compiling" = yes ||
12910 $as_test_x conftest$ac_exeext
12911 }; then
12912 echo "*** The test program compiled, but did not run. This usually means"
12913 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12914 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12915 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12916 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12917 echo "*** is required on your system"
12918 echo "***"
12919 echo "*** If you have an old version installed, it is best to remove it, although"
12920 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12921 else
12922 $as_echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12925 echo "*** The test program failed to compile or link. See the file config.log for the"
12926 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12927 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12928 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12931 rm -rf conftest.dSYM
12932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12933 conftest$ac_exeext conftest.$ac_ext
12934 CFLAGS="$ac_save_CFLAGS"
12935 CXXFLAGS="$ac_save_CXXFLAGS"
12936 LIBS="$ac_save_LIBS"
12939 SDL_CFLAGS=""
12940 SDL_LIBS=""
12941 { { $as_echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
12942 $as_echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
12943 { (exit 1); exit 1; }; }
12948 rm -f conf.sdltest
12950 CFLAGS="$CFLAGS $SDL_CFLAGS"
12951 LIBS="$LIBS $SDL_LIBS"
12953 ac_config_files="$ac_config_files Makefile src/Makefile SDL_Pango.pc docs/Makefile docs/Doxyfile VisualC2003/Makefile Wix/Makefile Wix/merge_module.xml Wix/dev.xml Wix/testbench.xml"
12956 # Finally create all the generated files
12957 cat >confcache <<\_ACEOF
12958 # This file is a shell script that caches the results of configure
12959 # tests run on this system so they can be shared between configure
12960 # scripts and configure runs, see configure's option --config-cache.
12961 # It is not useful on other systems. If it contains results you don't
12962 # want to keep, you may remove or edit it.
12964 # config.status only pays attention to the cache file if you give it
12965 # the --recheck option to rerun configure.
12967 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12968 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12969 # following values.
12971 _ACEOF
12973 # The following way of writing the cache mishandles newlines in values,
12974 # but we know of no workaround that is simple, portable, and efficient.
12975 # So, we kill variables containing newlines.
12976 # Ultrix sh set writes to stderr and can't be redirected directly,
12977 # and sets the high bit in the cache file unless we assign to the vars.
12979 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12980 eval ac_val=\$$ac_var
12981 case $ac_val in #(
12982 *${as_nl}*)
12983 case $ac_var in #(
12984 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12986 esac
12987 case $ac_var in #(
12988 _ | IFS | as_nl) ;; #(
12989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12990 *) $as_unset $ac_var ;;
12991 esac ;;
12992 esac
12993 done
12995 (set) 2>&1 |
12996 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12997 *${as_nl}ac_space=\ *)
12998 # `set' does not quote correctly, so add quotes (double-quote
12999 # substitution turns \\\\ into \\, and sed turns \\ into \).
13000 sed -n \
13001 "s/'/'\\\\''/g;
13002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13003 ;; #(
13005 # `set' quotes correctly as required by POSIX, so do not add quotes.
13006 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13008 esac |
13009 sort
13011 sed '
13012 /^ac_cv_env_/b end
13013 t clear
13014 :clear
13015 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13016 t end
13017 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13018 :end' >>confcache
13019 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13020 if test -w "$cache_file"; then
13021 test "x$cache_file" != "x/dev/null" &&
13022 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13023 $as_echo "$as_me: updating cache $cache_file" >&6;}
13024 cat confcache >$cache_file
13025 else
13026 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13027 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13030 rm -f confcache
13032 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13033 # Let make expand exec_prefix.
13034 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13036 # Transform confdefs.h into DEFS.
13037 # Protect against shell expansion while executing Makefile rules.
13038 # Protect against Makefile macro expansion.
13040 # If the first sed substitution is executed (which looks for macros that
13041 # take arguments), then branch to the quote section. Otherwise,
13042 # look for a macro that doesn't take arguments.
13043 ac_script='
13044 :mline
13045 /\\$/{
13047 s,\\\n,,
13048 b mline
13050 t clear
13051 :clear
13052 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13053 t quote
13054 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13055 t quote
13056 b any
13057 :quote
13058 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13059 s/\[/\\&/g
13060 s/\]/\\&/g
13061 s/\$/$$/g
13063 :any
13066 s/^\n//
13067 s/\n/ /g
13071 DEFS=`sed -n "$ac_script" confdefs.h`
13074 ac_libobjs=
13075 ac_ltlibobjs=
13076 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13077 # 1. Remove the extension, and $U if already installed.
13078 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13079 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13080 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13081 # will be set to the directory where LIBOBJS objects are built.
13082 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13083 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13084 done
13085 LIBOBJS=$ac_libobjs
13087 LTLIBOBJS=$ac_ltlibobjs
13090 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13091 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13092 Usually this means the macro was only invoked conditionally." >&5
13093 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13094 Usually this means the macro was only invoked conditionally." >&2;}
13095 { (exit 1); exit 1; }; }
13097 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13098 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13099 Usually this means the macro was only invoked conditionally." >&5
13100 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13101 Usually this means the macro was only invoked conditionally." >&2;}
13102 { (exit 1); exit 1; }; }
13104 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13105 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13106 Usually this means the macro was only invoked conditionally." >&5
13107 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13108 Usually this means the macro was only invoked conditionally." >&2;}
13109 { (exit 1); exit 1; }; }
13111 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13112 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13113 Usually this means the macro was only invoked conditionally." >&5
13114 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13115 Usually this means the macro was only invoked conditionally." >&2;}
13116 { (exit 1); exit 1; }; }
13119 : ${CONFIG_STATUS=./config.status}
13120 ac_write_fail=0
13121 ac_clean_files_save=$ac_clean_files
13122 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13123 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13124 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13125 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13126 #! $SHELL
13127 # Generated by $as_me.
13128 # Run this file to recreate the current configuration.
13129 # Compiler output produced by configure, useful for debugging
13130 # configure, is in config.log if it exists.
13132 debug=false
13133 ac_cs_recheck=false
13134 ac_cs_silent=false
13135 SHELL=\${CONFIG_SHELL-$SHELL}
13136 _ACEOF
13138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13139 ## --------------------- ##
13140 ## M4sh Initialization. ##
13141 ## --------------------- ##
13143 # Be more Bourne compatible
13144 DUALCASE=1; export DUALCASE # for MKS sh
13145 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13146 emulate sh
13147 NULLCMD=:
13148 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13149 # is contrary to our usage. Disable this feature.
13150 alias -g '${1+"$@"}'='"$@"'
13151 setopt NO_GLOB_SUBST
13152 else
13153 case `(set -o) 2>/dev/null` in
13154 *posix*) set -o posix ;;
13155 esac
13162 # PATH needs CR
13163 # Avoid depending upon Character Ranges.
13164 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13165 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13166 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13167 as_cr_digits='0123456789'
13168 as_cr_alnum=$as_cr_Letters$as_cr_digits
13170 as_nl='
13172 export as_nl
13173 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13174 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13175 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13176 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13177 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13178 as_echo='printf %s\n'
13179 as_echo_n='printf %s'
13180 else
13181 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13182 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13183 as_echo_n='/usr/ucb/echo -n'
13184 else
13185 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13186 as_echo_n_body='eval
13187 arg=$1;
13188 case $arg in
13189 *"$as_nl"*)
13190 expr "X$arg" : "X\\(.*\\)$as_nl";
13191 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13192 esac;
13193 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13195 export as_echo_n_body
13196 as_echo_n='sh -c $as_echo_n_body as_echo'
13198 export as_echo_body
13199 as_echo='sh -c $as_echo_body as_echo'
13202 # The user is always right.
13203 if test "${PATH_SEPARATOR+set}" != set; then
13204 PATH_SEPARATOR=:
13205 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13206 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13207 PATH_SEPARATOR=';'
13211 # Support unset when possible.
13212 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13213 as_unset=unset
13214 else
13215 as_unset=false
13219 # IFS
13220 # We need space, tab and new line, in precisely that order. Quoting is
13221 # there to prevent editors from complaining about space-tab.
13222 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13223 # splitting by setting IFS to empty value.)
13224 IFS=" "" $as_nl"
13226 # Find who we are. Look in the path if we contain no directory separator.
13227 case $0 in
13228 *[\\/]* ) as_myself=$0 ;;
13229 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13230 for as_dir in $PATH
13232 IFS=$as_save_IFS
13233 test -z "$as_dir" && as_dir=.
13234 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13235 done
13236 IFS=$as_save_IFS
13239 esac
13240 # We did not find ourselves, most probably we were run as `sh COMMAND'
13241 # in which case we are not to be found in the path.
13242 if test "x$as_myself" = x; then
13243 as_myself=$0
13245 if test ! -f "$as_myself"; then
13246 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13247 { (exit 1); exit 1; }
13250 # Work around bugs in pre-3.0 UWIN ksh.
13251 for as_var in ENV MAIL MAILPATH
13252 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13253 done
13254 PS1='$ '
13255 PS2='> '
13256 PS4='+ '
13258 # NLS nuisances.
13259 LC_ALL=C
13260 export LC_ALL
13261 LANGUAGE=C
13262 export LANGUAGE
13264 # Required to use basename.
13265 if expr a : '\(a\)' >/dev/null 2>&1 &&
13266 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13267 as_expr=expr
13268 else
13269 as_expr=false
13272 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13273 as_basename=basename
13274 else
13275 as_basename=false
13279 # Name of the executable.
13280 as_me=`$as_basename -- "$0" ||
13281 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13282 X"$0" : 'X\(//\)$' \| \
13283 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13284 $as_echo X/"$0" |
13285 sed '/^.*\/\([^/][^/]*\)\/*$/{
13286 s//\1/
13289 /^X\/\(\/\/\)$/{
13290 s//\1/
13293 /^X\/\(\/\).*/{
13294 s//\1/
13297 s/.*/./; q'`
13299 # CDPATH.
13300 $as_unset CDPATH
13304 as_lineno_1=$LINENO
13305 as_lineno_2=$LINENO
13306 test "x$as_lineno_1" != "x$as_lineno_2" &&
13307 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13309 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13310 # uniformly replaced by the line number. The first 'sed' inserts a
13311 # line-number line after each line using $LINENO; the second 'sed'
13312 # does the real work. The second script uses 'N' to pair each
13313 # line-number line with the line containing $LINENO, and appends
13314 # trailing '-' during substitution so that $LINENO is not a special
13315 # case at line end.
13316 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13317 # scripts with optimization help from Paolo Bonzini. Blame Lee
13318 # E. McMahon (1931-1989) for sed's syntax. :-)
13319 sed -n '
13321 /[$]LINENO/=
13322 ' <$as_myself |
13323 sed '
13324 s/[$]LINENO.*/&-/
13325 t lineno
13327 :lineno
13329 :loop
13330 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13331 t loop
13332 s/-\n.*//
13333 ' >$as_me.lineno &&
13334 chmod +x "$as_me.lineno" ||
13335 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13336 { (exit 1); exit 1; }; }
13338 # Don't try to exec as it changes $[0], causing all sort of problems
13339 # (the dirname of $[0] is not the place where we might find the
13340 # original and so on. Autoconf is especially sensitive to this).
13341 . "./$as_me.lineno"
13342 # Exit status is that of the last command.
13343 exit
13347 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13348 as_dirname=dirname
13349 else
13350 as_dirname=false
13353 ECHO_C= ECHO_N= ECHO_T=
13354 case `echo -n x` in
13355 -n*)
13356 case `echo 'x\c'` in
13357 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13358 *) ECHO_C='\c';;
13359 esac;;
13361 ECHO_N='-n';;
13362 esac
13363 if expr a : '\(a\)' >/dev/null 2>&1 &&
13364 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13365 as_expr=expr
13366 else
13367 as_expr=false
13370 rm -f conf$$ conf$$.exe conf$$.file
13371 if test -d conf$$.dir; then
13372 rm -f conf$$.dir/conf$$.file
13373 else
13374 rm -f conf$$.dir
13375 mkdir conf$$.dir 2>/dev/null
13377 if (echo >conf$$.file) 2>/dev/null; then
13378 if ln -s conf$$.file conf$$ 2>/dev/null; then
13379 as_ln_s='ln -s'
13380 # ... but there are two gotchas:
13381 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13382 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13383 # In both cases, we have to default to `cp -p'.
13384 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13385 as_ln_s='cp -p'
13386 elif ln conf$$.file conf$$ 2>/dev/null; then
13387 as_ln_s=ln
13388 else
13389 as_ln_s='cp -p'
13391 else
13392 as_ln_s='cp -p'
13394 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13395 rmdir conf$$.dir 2>/dev/null
13397 if mkdir -p . 2>/dev/null; then
13398 as_mkdir_p=:
13399 else
13400 test -d ./-p && rmdir ./-p
13401 as_mkdir_p=false
13404 if test -x / >/dev/null 2>&1; then
13405 as_test_x='test -x'
13406 else
13407 if ls -dL / >/dev/null 2>&1; then
13408 as_ls_L_option=L
13409 else
13410 as_ls_L_option=
13412 as_test_x='
13413 eval sh -c '\''
13414 if test -d "$1"; then
13415 test -d "$1/.";
13416 else
13417 case $1 in
13418 -*)set "./$1";;
13419 esac;
13420 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13421 ???[sx]*):;;*)false;;esac;fi
13422 '\'' sh
13425 as_executable_p=$as_test_x
13427 # Sed expression to map a string onto a valid CPP name.
13428 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13430 # Sed expression to map a string onto a valid variable name.
13431 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13434 exec 6>&1
13436 # Save the log message, to keep $[0] and so on meaningful, and to
13437 # report actual input values of CONFIG_FILES etc. instead of their
13438 # values after options handling.
13439 ac_log="
13440 This file was extended by $as_me, which was
13441 generated by GNU Autoconf 2.63. Invocation command line was
13443 CONFIG_FILES = $CONFIG_FILES
13444 CONFIG_HEADERS = $CONFIG_HEADERS
13445 CONFIG_LINKS = $CONFIG_LINKS
13446 CONFIG_COMMANDS = $CONFIG_COMMANDS
13447 $ $0 $@
13449 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13452 _ACEOF
13454 case $ac_config_files in *"
13455 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13456 esac
13460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13461 # Files that config.status was made for.
13462 config_files="$ac_config_files"
13463 config_commands="$ac_config_commands"
13465 _ACEOF
13467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13468 ac_cs_usage="\
13469 \`$as_me' instantiates files from templates according to the
13470 current configuration.
13472 Usage: $0 [OPTION]... [FILE]...
13474 -h, --help print this help, then exit
13475 -V, --version print version number and configuration settings, then exit
13476 -q, --quiet, --silent
13477 do not print progress messages
13478 -d, --debug don't remove temporary files
13479 --recheck update $as_me by reconfiguring in the same conditions
13480 --file=FILE[:TEMPLATE]
13481 instantiate the configuration file FILE
13483 Configuration files:
13484 $config_files
13486 Configuration commands:
13487 $config_commands
13489 Report bugs to <bug-autoconf@gnu.org>."
13491 _ACEOF
13492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13493 ac_cs_version="\\
13494 config.status
13495 configured by $0, generated by GNU Autoconf 2.63,
13496 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13498 Copyright (C) 2008 Free Software Foundation, Inc.
13499 This config.status script is free software; the Free Software Foundation
13500 gives unlimited permission to copy, distribute and modify it."
13502 ac_pwd='$ac_pwd'
13503 srcdir='$srcdir'
13504 INSTALL='$INSTALL'
13505 MKDIR_P='$MKDIR_P'
13506 AWK='$AWK'
13507 test -n "\$AWK" || AWK=awk
13508 _ACEOF
13510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13511 # The default lists apply if the user does not specify any file.
13512 ac_need_defaults=:
13513 while test $# != 0
13515 case $1 in
13516 --*=*)
13517 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13518 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13519 ac_shift=:
13522 ac_option=$1
13523 ac_optarg=$2
13524 ac_shift=shift
13526 esac
13528 case $ac_option in
13529 # Handling of the options.
13530 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13531 ac_cs_recheck=: ;;
13532 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13533 $as_echo "$ac_cs_version"; exit ;;
13534 --debug | --debu | --deb | --de | --d | -d )
13535 debug=: ;;
13536 --file | --fil | --fi | --f )
13537 $ac_shift
13538 case $ac_optarg in
13539 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13540 esac
13541 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13542 ac_need_defaults=false;;
13543 --he | --h | --help | --hel | -h )
13544 $as_echo "$ac_cs_usage"; exit ;;
13545 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13546 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13547 ac_cs_silent=: ;;
13549 # This is an error.
13550 -*) { $as_echo "$as_me: error: unrecognized option: $1
13551 Try \`$0 --help' for more information." >&2
13552 { (exit 1); exit 1; }; } ;;
13554 *) ac_config_targets="$ac_config_targets $1"
13555 ac_need_defaults=false ;;
13557 esac
13558 shift
13559 done
13561 ac_configure_extra_args=
13563 if $ac_cs_silent; then
13564 exec 6>/dev/null
13565 ac_configure_extra_args="$ac_configure_extra_args --silent"
13568 _ACEOF
13569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13570 if \$ac_cs_recheck; then
13571 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13572 shift
13573 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13574 CONFIG_SHELL='$SHELL'
13575 export CONFIG_SHELL
13576 exec "\$@"
13579 _ACEOF
13580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13581 exec 5>>config.log
13583 echo
13584 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13585 ## Running $as_me. ##
13586 _ASBOX
13587 $as_echo "$ac_log"
13588 } >&5
13590 _ACEOF
13591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13593 # INIT-COMMANDS
13595 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13598 # The HP-UX ksh and POSIX shell print the target directory to stdout
13599 # if CDPATH is set.
13600 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13602 sed_quote_subst='$sed_quote_subst'
13603 double_quote_subst='$double_quote_subst'
13604 delay_variable_subst='$delay_variable_subst'
13605 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13606 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13607 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13608 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13609 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13610 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13611 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13612 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13613 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13614 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13615 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13616 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13617 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13618 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13619 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13620 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13621 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13622 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13623 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13624 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13625 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13626 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13627 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13628 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13629 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13630 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13631 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13632 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13633 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13634 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13635 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13636 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13637 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13638 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13639 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13640 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13641 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13642 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13643 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13644 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13645 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13646 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13647 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13648 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13649 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13650 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13651 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"`'
13652 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"`'
13653 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13654 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13655 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13656 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13657 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13658 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13659 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13660 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13661 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13662 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13663 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13664 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13665 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13666 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13667 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13668 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13669 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13670 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13671 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13672 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13673 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13674 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13675 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13676 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13677 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13678 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13679 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13680 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13681 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13682 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13683 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13684 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13685 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13686 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13687 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13688 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13689 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13690 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13691 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13692 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13693 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13694 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13695 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13696 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13697 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13698 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13699 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13700 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13701 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13702 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13703 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13704 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13705 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13706 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13707 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13708 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13709 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13710 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13711 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13712 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13713 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13714 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13715 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13716 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13717 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13718 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13719 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13720 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13721 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13722 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13723 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13724 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13726 LTCC='$LTCC'
13727 LTCFLAGS='$LTCFLAGS'
13728 compiler='$compiler_DEFAULT'
13730 # Quote evaled strings.
13731 for var in SED \
13732 GREP \
13733 EGREP \
13734 FGREP \
13735 LD \
13736 NM \
13737 LN_S \
13738 lt_SP2NL \
13739 lt_NL2SP \
13740 reload_flag \
13741 deplibs_check_method \
13742 file_magic_cmd \
13743 AR \
13744 AR_FLAGS \
13745 STRIP \
13746 RANLIB \
13747 CC \
13748 CFLAGS \
13749 compiler \
13750 lt_cv_sys_global_symbol_pipe \
13751 lt_cv_sys_global_symbol_to_cdecl \
13752 lt_cv_sys_global_symbol_to_c_name_address \
13753 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13754 SHELL \
13755 ECHO \
13756 lt_prog_compiler_no_builtin_flag \
13757 lt_prog_compiler_wl \
13758 lt_prog_compiler_pic \
13759 lt_prog_compiler_static \
13760 lt_cv_prog_compiler_c_o \
13761 need_locks \
13762 DSYMUTIL \
13763 NMEDIT \
13764 LIPO \
13765 OTOOL \
13766 OTOOL64 \
13767 shrext_cmds \
13768 export_dynamic_flag_spec \
13769 whole_archive_flag_spec \
13770 compiler_needs_object \
13771 with_gnu_ld \
13772 allow_undefined_flag \
13773 no_undefined_flag \
13774 hardcode_libdir_flag_spec \
13775 hardcode_libdir_flag_spec_ld \
13776 hardcode_libdir_separator \
13777 fix_srcfile_path \
13778 exclude_expsyms \
13779 include_expsyms \
13780 file_list_spec \
13781 variables_saved_for_relink \
13782 libname_spec \
13783 library_names_spec \
13784 soname_spec \
13785 finish_eval \
13786 old_striplib \
13787 striplib; do
13788 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13789 *[\\\\\\\`\\"\\\$]*)
13790 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13793 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13795 esac
13796 done
13798 # Double-quote double-evaled strings.
13799 for var in reload_cmds \
13800 old_postinstall_cmds \
13801 old_postuninstall_cmds \
13802 old_archive_cmds \
13803 extract_expsyms_cmds \
13804 old_archive_from_new_cmds \
13805 old_archive_from_expsyms_cmds \
13806 archive_cmds \
13807 archive_expsym_cmds \
13808 module_cmds \
13809 module_expsym_cmds \
13810 export_symbols_cmds \
13811 prelink_cmds \
13812 postinstall_cmds \
13813 postuninstall_cmds \
13814 finish_cmds \
13815 sys_lib_search_path_spec \
13816 sys_lib_dlsearch_path_spec; do
13817 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13818 *[\\\\\\\`\\"\\\$]*)
13819 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13822 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13824 esac
13825 done
13827 # Fix-up fallback echo if it was mangled by the above quoting rules.
13828 case \$lt_ECHO in
13829 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13831 esac
13833 ac_aux_dir='$ac_aux_dir'
13834 xsi_shell='$xsi_shell'
13835 lt_shell_append='$lt_shell_append'
13837 # See if we are running on zsh, and set the options which allow our
13838 # commands through without removal of \ escapes INIT.
13839 if test -n "\${ZSH_VERSION+set}" ; then
13840 setopt NO_GLOB_SUBST
13844 PACKAGE='$PACKAGE'
13845 VERSION='$VERSION'
13846 TIMESTAMP='$TIMESTAMP'
13847 RM='$RM'
13848 ofile='$ofile'
13853 _ACEOF
13855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13857 # Handling of arguments.
13858 for ac_config_target in $ac_config_targets
13860 case $ac_config_target in
13861 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13862 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13863 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13864 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13865 "SDL_Pango.pc") CONFIG_FILES="$CONFIG_FILES SDL_Pango.pc" ;;
13866 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
13867 "docs/Doxyfile") CONFIG_FILES="$CONFIG_FILES docs/Doxyfile" ;;
13868 "VisualC2003/Makefile") CONFIG_FILES="$CONFIG_FILES VisualC2003/Makefile" ;;
13869 "Wix/Makefile") CONFIG_FILES="$CONFIG_FILES Wix/Makefile" ;;
13870 "Wix/merge_module.xml") CONFIG_FILES="$CONFIG_FILES Wix/merge_module.xml" ;;
13871 "Wix/dev.xml") CONFIG_FILES="$CONFIG_FILES Wix/dev.xml" ;;
13872 "Wix/testbench.xml") CONFIG_FILES="$CONFIG_FILES Wix/testbench.xml" ;;
13874 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13875 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13876 { (exit 1); exit 1; }; };;
13877 esac
13878 done
13881 # If the user did not use the arguments to specify the items to instantiate,
13882 # then the envvar interface is used. Set only those that are not.
13883 # We use the long form for the default assignment because of an extremely
13884 # bizarre bug on SunOS 4.1.3.
13885 if $ac_need_defaults; then
13886 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13887 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13890 # Have a temporary directory for convenience. Make it in the build tree
13891 # simply because there is no reason against having it here, and in addition,
13892 # creating and moving files from /tmp can sometimes cause problems.
13893 # Hook for its removal unless debugging.
13894 # Note that there is a small window in which the directory will not be cleaned:
13895 # after its creation but before its name has been assigned to `$tmp'.
13896 $debug ||
13898 tmp=
13899 trap 'exit_status=$?
13900 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13902 trap '{ (exit 1); exit 1; }' 1 2 13 15
13904 # Create a (secure) tmp directory for tmp files.
13907 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13908 test -n "$tmp" && test -d "$tmp"
13909 } ||
13911 tmp=./conf$$-$RANDOM
13912 (umask 077 && mkdir "$tmp")
13913 } ||
13915 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13916 { (exit 1); exit 1; }
13919 # Set up the scripts for CONFIG_FILES section.
13920 # No need to generate them if there are no CONFIG_FILES.
13921 # This happens for instance with `./config.status config.h'.
13922 if test -n "$CONFIG_FILES"; then
13925 ac_cr=' '
13926 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13927 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13928 ac_cs_awk_cr='\\r'
13929 else
13930 ac_cs_awk_cr=$ac_cr
13933 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13934 _ACEOF
13938 echo "cat >conf$$subs.awk <<_ACEOF" &&
13939 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13940 echo "_ACEOF"
13941 } >conf$$subs.sh ||
13942 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13943 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13944 { (exit 1); exit 1; }; }
13945 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13946 ac_delim='%!_!# '
13947 for ac_last_try in false false false false false :; do
13948 . ./conf$$subs.sh ||
13949 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13950 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13951 { (exit 1); exit 1; }; }
13953 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13954 if test $ac_delim_n = $ac_delim_num; then
13955 break
13956 elif $ac_last_try; then
13957 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13958 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13959 { (exit 1); exit 1; }; }
13960 else
13961 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13963 done
13964 rm -f conf$$subs.sh
13966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13967 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13968 _ACEOF
13969 sed -n '
13971 s/^/S["/; s/!.*/"]=/
13974 s/^[^!]*!//
13975 :repl
13976 t repl
13977 s/'"$ac_delim"'$//
13978 t delim
13981 s/\(.\{148\}\).*/\1/
13982 t more1
13983 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13986 b repl
13987 :more1
13988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13991 s/.\{148\}//
13992 t nl
13993 :delim
13995 s/\(.\{148\}\).*/\1/
13996 t more2
13997 s/["\\]/\\&/g; s/^/"/; s/$/"/
14000 :more2
14001 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14004 s/.\{148\}//
14005 t delim
14006 ' <conf$$subs.awk | sed '
14007 /^[^""]/{
14009 s/\n//
14011 ' >>$CONFIG_STATUS || ac_write_fail=1
14012 rm -f conf$$subs.awk
14013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14014 _ACAWK
14015 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14016 for (key in S) S_is_set[key] = 1
14017 FS = "\a"
14021 line = $ 0
14022 nfields = split(line, field, "@")
14023 substed = 0
14024 len = length(field[1])
14025 for (i = 2; i < nfields; i++) {
14026 key = field[i]
14027 keylen = length(key)
14028 if (S_is_set[key]) {
14029 value = S[key]
14030 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14031 len += length(value) + length(field[++i])
14032 substed = 1
14033 } else
14034 len += 1 + keylen
14037 print line
14040 _ACAWK
14041 _ACEOF
14042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14043 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14044 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14045 else
14047 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14048 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14049 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14050 { (exit 1); exit 1; }; }
14051 _ACEOF
14053 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14054 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14055 # trailing colons and then remove the whole line if VPATH becomes empty
14056 # (actually we leave an empty line to preserve line numbers).
14057 if test "x$srcdir" = x.; then
14058 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14059 s/:*\$(srcdir):*/:/
14060 s/:*\${srcdir}:*/:/
14061 s/:*@srcdir@:*/:/
14062 s/^\([^=]*=[ ]*\):*/\1/
14063 s/:*$//
14064 s/^[^=]*=[ ]*$//
14068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14069 fi # test -n "$CONFIG_FILES"
14072 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
14073 shift
14074 for ac_tag
14076 case $ac_tag in
14077 :[FHLC]) ac_mode=$ac_tag; continue;;
14078 esac
14079 case $ac_mode$ac_tag in
14080 :[FHL]*:*);;
14081 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14082 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14083 { (exit 1); exit 1; }; };;
14084 :[FH]-) ac_tag=-:-;;
14085 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14086 esac
14087 ac_save_IFS=$IFS
14088 IFS=:
14089 set x $ac_tag
14090 IFS=$ac_save_IFS
14091 shift
14092 ac_file=$1
14093 shift
14095 case $ac_mode in
14096 :L) ac_source=$1;;
14097 :[FH])
14098 ac_file_inputs=
14099 for ac_f
14101 case $ac_f in
14102 -) ac_f="$tmp/stdin";;
14103 *) # Look for the file first in the build tree, then in the source tree
14104 # (if the path is not absolute). The absolute path cannot be DOS-style,
14105 # because $ac_f cannot contain `:'.
14106 test -f "$ac_f" ||
14107 case $ac_f in
14108 [\\/$]*) false;;
14109 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14110 esac ||
14111 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14112 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14113 { (exit 1); exit 1; }; };;
14114 esac
14115 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14116 ac_file_inputs="$ac_file_inputs '$ac_f'"
14117 done
14119 # Let's still pretend it is `configure' which instantiates (i.e., don't
14120 # use $as_me), people would be surprised to read:
14121 # /* config.h. Generated by config.status. */
14122 configure_input='Generated from '`
14123 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14124 `' by configure.'
14125 if test x"$ac_file" != x-; then
14126 configure_input="$ac_file. $configure_input"
14127 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14128 $as_echo "$as_me: creating $ac_file" >&6;}
14130 # Neutralize special characters interpreted by sed in replacement strings.
14131 case $configure_input in #(
14132 *\&* | *\|* | *\\* )
14133 ac_sed_conf_input=`$as_echo "$configure_input" |
14134 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14135 *) ac_sed_conf_input=$configure_input;;
14136 esac
14138 case $ac_tag in
14139 *:-:* | *:-) cat >"$tmp/stdin" \
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 esac
14145 esac
14147 ac_dir=`$as_dirname -- "$ac_file" ||
14148 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14149 X"$ac_file" : 'X\(//\)[^/]' \| \
14150 X"$ac_file" : 'X\(//\)$' \| \
14151 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14152 $as_echo X"$ac_file" |
14153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14154 s//\1/
14157 /^X\(\/\/\)[^/].*/{
14158 s//\1/
14161 /^X\(\/\/\)$/{
14162 s//\1/
14165 /^X\(\/\).*/{
14166 s//\1/
14169 s/.*/./; q'`
14170 { as_dir="$ac_dir"
14171 case $as_dir in #(
14172 -*) as_dir=./$as_dir;;
14173 esac
14174 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14175 as_dirs=
14176 while :; do
14177 case $as_dir in #(
14178 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14179 *) as_qdir=$as_dir;;
14180 esac
14181 as_dirs="'$as_qdir' $as_dirs"
14182 as_dir=`$as_dirname -- "$as_dir" ||
14183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14184 X"$as_dir" : 'X\(//\)[^/]' \| \
14185 X"$as_dir" : 'X\(//\)$' \| \
14186 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14187 $as_echo X"$as_dir" |
14188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14189 s//\1/
14192 /^X\(\/\/\)[^/].*/{
14193 s//\1/
14196 /^X\(\/\/\)$/{
14197 s//\1/
14200 /^X\(\/\).*/{
14201 s//\1/
14204 s/.*/./; q'`
14205 test -d "$as_dir" && break
14206 done
14207 test -z "$as_dirs" || eval "mkdir $as_dirs"
14208 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14209 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14210 { (exit 1); exit 1; }; }; }
14211 ac_builddir=.
14213 case "$ac_dir" in
14214 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14216 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14217 # A ".." for each directory in $ac_dir_suffix.
14218 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14219 case $ac_top_builddir_sub in
14220 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14221 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14222 esac ;;
14223 esac
14224 ac_abs_top_builddir=$ac_pwd
14225 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14226 # for backward compatibility:
14227 ac_top_builddir=$ac_top_build_prefix
14229 case $srcdir in
14230 .) # We are building in place.
14231 ac_srcdir=.
14232 ac_top_srcdir=$ac_top_builddir_sub
14233 ac_abs_top_srcdir=$ac_pwd ;;
14234 [\\/]* | ?:[\\/]* ) # Absolute name.
14235 ac_srcdir=$srcdir$ac_dir_suffix;
14236 ac_top_srcdir=$srcdir
14237 ac_abs_top_srcdir=$srcdir ;;
14238 *) # Relative name.
14239 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14240 ac_top_srcdir=$ac_top_build_prefix$srcdir
14241 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14242 esac
14243 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14246 case $ac_mode in
14249 # CONFIG_FILE
14252 case $INSTALL in
14253 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14254 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14255 esac
14256 ac_MKDIR_P=$MKDIR_P
14257 case $MKDIR_P in
14258 [\\/$]* | ?:[\\/]* ) ;;
14259 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14260 esac
14261 _ACEOF
14263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14264 # If the template does not know about datarootdir, expand it.
14265 # FIXME: This hack should be removed a few years after 2.60.
14266 ac_datarootdir_hack=; ac_datarootdir_seen=
14268 ac_sed_dataroot='
14269 /datarootdir/ {
14273 /@datadir@/p
14274 /@docdir@/p
14275 /@infodir@/p
14276 /@localedir@/p
14277 /@mandir@/p
14279 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14280 *datarootdir*) ac_datarootdir_seen=yes;;
14281 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14282 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14283 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14284 _ACEOF
14285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14286 ac_datarootdir_hack='
14287 s&@datadir@&$datadir&g
14288 s&@docdir@&$docdir&g
14289 s&@infodir@&$infodir&g
14290 s&@localedir@&$localedir&g
14291 s&@mandir@&$mandir&g
14292 s&\\\${datarootdir}&$datarootdir&g' ;;
14293 esac
14294 _ACEOF
14296 # Neutralize VPATH when `$srcdir' = `.'.
14297 # Shell code in configure.ac might set extrasub.
14298 # FIXME: do we really want to maintain this feature?
14299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14300 ac_sed_extra="$ac_vpsub
14301 $extrasub
14302 _ACEOF
14303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14306 s|@configure_input@|$ac_sed_conf_input|;t t
14307 s&@top_builddir@&$ac_top_builddir_sub&;t t
14308 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14309 s&@srcdir@&$ac_srcdir&;t t
14310 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14311 s&@top_srcdir@&$ac_top_srcdir&;t t
14312 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14313 s&@builddir@&$ac_builddir&;t t
14314 s&@abs_builddir@&$ac_abs_builddir&;t t
14315 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14316 s&@INSTALL@&$ac_INSTALL&;t t
14317 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14318 $ac_datarootdir_hack
14320 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14321 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14322 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14323 { (exit 1); exit 1; }; }
14325 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14326 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14327 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14328 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14329 which seems to be undefined. Please make sure it is defined." >&5
14330 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14331 which seems to be undefined. Please make sure it is defined." >&2;}
14333 rm -f "$tmp/stdin"
14334 case $ac_file in
14335 -) cat "$tmp/out" && rm -f "$tmp/out";;
14336 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14337 esac \
14338 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14339 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14340 { (exit 1); exit 1; }; }
14344 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14345 $as_echo "$as_me: executing $ac_file commands" >&6;}
14347 esac
14350 case $ac_file$ac_mode in
14351 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14352 # Strip MF so we end up with the name of the file.
14353 mf=`echo "$mf" | sed -e 's/:.*$//'`
14354 # Check whether this is an Automake generated Makefile or not.
14355 # We used to match only the files named `Makefile.in', but
14356 # some people rename them; so instead we look at the file content.
14357 # Grep'ing the first line is not enough: some people post-process
14358 # each Makefile.in and add a new line on top of each file to say so.
14359 # Grep'ing the whole file is not good either: AIX grep has a line
14360 # limit of 2048, but all sed's we know have understand at least 4000.
14361 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14362 dirpart=`$as_dirname -- "$mf" ||
14363 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14364 X"$mf" : 'X\(//\)[^/]' \| \
14365 X"$mf" : 'X\(//\)$' \| \
14366 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14367 $as_echo X"$mf" |
14368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14369 s//\1/
14372 /^X\(\/\/\)[^/].*/{
14373 s//\1/
14376 /^X\(\/\/\)$/{
14377 s//\1/
14380 /^X\(\/\).*/{
14381 s//\1/
14384 s/.*/./; q'`
14385 else
14386 continue
14388 # Extract the definition of DEPDIR, am__include, and am__quote
14389 # from the Makefile without running `make'.
14390 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14391 test -z "$DEPDIR" && continue
14392 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14393 test -z "am__include" && continue
14394 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14395 # When using ansi2knr, U may be empty or an underscore; expand it
14396 U=`sed -n 's/^U = //p' < "$mf"`
14397 # Find all dependency output files, they are included files with
14398 # $(DEPDIR) in their names. We invoke sed twice because it is the
14399 # simplest approach to changing $(DEPDIR) to its actual value in the
14400 # expansion.
14401 for file in `sed -n "
14402 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14403 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14404 # Make sure the directory exists.
14405 test -f "$dirpart/$file" && continue
14406 fdir=`$as_dirname -- "$file" ||
14407 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14408 X"$file" : 'X\(//\)[^/]' \| \
14409 X"$file" : 'X\(//\)$' \| \
14410 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14411 $as_echo X"$file" |
14412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14413 s//\1/
14416 /^X\(\/\/\)[^/].*/{
14417 s//\1/
14420 /^X\(\/\/\)$/{
14421 s//\1/
14424 /^X\(\/\).*/{
14425 s//\1/
14428 s/.*/./; q'`
14429 { as_dir=$dirpart/$fdir
14430 case $as_dir in #(
14431 -*) as_dir=./$as_dir;;
14432 esac
14433 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14434 as_dirs=
14435 while :; do
14436 case $as_dir in #(
14437 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14438 *) as_qdir=$as_dir;;
14439 esac
14440 as_dirs="'$as_qdir' $as_dirs"
14441 as_dir=`$as_dirname -- "$as_dir" ||
14442 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14443 X"$as_dir" : 'X\(//\)[^/]' \| \
14444 X"$as_dir" : 'X\(//\)$' \| \
14445 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14446 $as_echo X"$as_dir" |
14447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14448 s//\1/
14451 /^X\(\/\/\)[^/].*/{
14452 s//\1/
14455 /^X\(\/\/\)$/{
14456 s//\1/
14459 /^X\(\/\).*/{
14460 s//\1/
14463 s/.*/./; q'`
14464 test -d "$as_dir" && break
14465 done
14466 test -z "$as_dirs" || eval "mkdir $as_dirs"
14467 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14468 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14469 { (exit 1); exit 1; }; }; }
14470 # echo "creating $dirpart/$file"
14471 echo '# dummy' > "$dirpart/$file"
14472 done
14473 done
14475 "libtool":C)
14477 # See if we are running on zsh, and set the options which allow our
14478 # commands through without removal of \ escapes.
14479 if test -n "${ZSH_VERSION+set}" ; then
14480 setopt NO_GLOB_SUBST
14483 cfgfile="${ofile}T"
14484 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14485 $RM "$cfgfile"
14487 cat <<_LT_EOF >> "$cfgfile"
14488 #! $SHELL
14490 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14491 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14492 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14493 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14495 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14496 # 2006, 2007, 2008 Free Software Foundation, Inc.
14497 # Written by Gordon Matzigkeit, 1996
14499 # This file is part of GNU Libtool.
14501 # GNU Libtool is free software; you can redistribute it and/or
14502 # modify it under the terms of the GNU General Public License as
14503 # published by the Free Software Foundation; either version 2 of
14504 # the License, or (at your option) any later version.
14506 # As a special exception to the GNU General Public License,
14507 # if you distribute this file as part of a program or library that
14508 # is built using GNU Libtool, you may include this file under the
14509 # same distribution terms that you use for the rest of that program.
14511 # GNU Libtool is distributed in the hope that it will be useful,
14512 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14513 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14514 # GNU General Public License for more details.
14516 # You should have received a copy of the GNU General Public License
14517 # along with GNU Libtool; see the file COPYING. If not, a copy
14518 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14519 # obtained by writing to the Free Software Foundation, Inc.,
14520 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14523 # The names of the tagged configurations supported by this script.
14524 available_tags=""
14526 # ### BEGIN LIBTOOL CONFIG
14528 # Assembler program.
14529 AS=$AS
14531 # DLL creation program.
14532 DLLTOOL=$DLLTOOL
14534 # Object dumper program.
14535 OBJDUMP=$OBJDUMP
14537 # Which release of libtool.m4 was used?
14538 macro_version=$macro_version
14539 macro_revision=$macro_revision
14541 # Whether or not to build shared libraries.
14542 build_libtool_libs=$enable_shared
14544 # Whether or not to build static libraries.
14545 build_old_libs=$enable_static
14547 # What type of objects to build.
14548 pic_mode=$pic_mode
14550 # Whether or not to optimize for fast installation.
14551 fast_install=$enable_fast_install
14553 # The host system.
14554 host_alias=$host_alias
14555 host=$host
14556 host_os=$host_os
14558 # The build system.
14559 build_alias=$build_alias
14560 build=$build
14561 build_os=$build_os
14563 # A sed program that does not truncate output.
14564 SED=$lt_SED
14566 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14567 Xsed="\$SED -e 1s/^X//"
14569 # A grep program that handles long lines.
14570 GREP=$lt_GREP
14572 # An ERE matcher.
14573 EGREP=$lt_EGREP
14575 # A literal string matcher.
14576 FGREP=$lt_FGREP
14578 # A BSD- or MS-compatible name lister.
14579 NM=$lt_NM
14581 # Whether we need soft or hard links.
14582 LN_S=$lt_LN_S
14584 # What is the maximum length of a command?
14585 max_cmd_len=$max_cmd_len
14587 # Object file suffix (normally "o").
14588 objext=$ac_objext
14590 # Executable file suffix (normally "").
14591 exeext=$exeext
14593 # whether the shell understands "unset".
14594 lt_unset=$lt_unset
14596 # turn spaces into newlines.
14597 SP2NL=$lt_lt_SP2NL
14599 # turn newlines into spaces.
14600 NL2SP=$lt_lt_NL2SP
14602 # How to create reloadable object files.
14603 reload_flag=$lt_reload_flag
14604 reload_cmds=$lt_reload_cmds
14606 # Method to check whether dependent libraries are shared objects.
14607 deplibs_check_method=$lt_deplibs_check_method
14609 # Command to use when deplibs_check_method == "file_magic".
14610 file_magic_cmd=$lt_file_magic_cmd
14612 # The archiver.
14613 AR=$lt_AR
14614 AR_FLAGS=$lt_AR_FLAGS
14616 # A symbol stripping program.
14617 STRIP=$lt_STRIP
14619 # Commands used to install an old-style archive.
14620 RANLIB=$lt_RANLIB
14621 old_postinstall_cmds=$lt_old_postinstall_cmds
14622 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14624 # A C compiler.
14625 LTCC=$lt_CC
14627 # LTCC compiler flags.
14628 LTCFLAGS=$lt_CFLAGS
14630 # Take the output of nm and produce a listing of raw symbols and C names.
14631 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14633 # Transform the output of nm in a proper C declaration.
14634 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14636 # Transform the output of nm in a C name address pair.
14637 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14639 # Transform the output of nm in a C name address pair when lib prefix is needed.
14640 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14642 # The name of the directory that contains temporary libtool files.
14643 objdir=$objdir
14645 # Shell to use when invoking shell scripts.
14646 SHELL=$lt_SHELL
14648 # An echo program that does not interpret backslashes.
14649 ECHO=$lt_ECHO
14651 # Used to examine libraries when file_magic_cmd begins with "file".
14652 MAGIC_CMD=$MAGIC_CMD
14654 # Must we lock files when doing compilation?
14655 need_locks=$lt_need_locks
14657 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14658 DSYMUTIL=$lt_DSYMUTIL
14660 # Tool to change global to local symbols on Mac OS X.
14661 NMEDIT=$lt_NMEDIT
14663 # Tool to manipulate fat objects and archives on Mac OS X.
14664 LIPO=$lt_LIPO
14666 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14667 OTOOL=$lt_OTOOL
14669 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14670 OTOOL64=$lt_OTOOL64
14672 # Old archive suffix (normally "a").
14673 libext=$libext
14675 # Shared library suffix (normally ".so").
14676 shrext_cmds=$lt_shrext_cmds
14678 # The commands to extract the exported symbol list from a shared archive.
14679 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14681 # Variables whose values should be saved in libtool wrapper scripts and
14682 # restored at link time.
14683 variables_saved_for_relink=$lt_variables_saved_for_relink
14685 # Do we need the "lib" prefix for modules?
14686 need_lib_prefix=$need_lib_prefix
14688 # Do we need a version for libraries?
14689 need_version=$need_version
14691 # Library versioning type.
14692 version_type=$version_type
14694 # Shared library runtime path variable.
14695 runpath_var=$runpath_var
14697 # Shared library path variable.
14698 shlibpath_var=$shlibpath_var
14700 # Is shlibpath searched before the hard-coded library search path?
14701 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14703 # Format of library name prefix.
14704 libname_spec=$lt_libname_spec
14706 # List of archive names. First name is the real one, the rest are links.
14707 # The last name is the one that the linker finds with -lNAME
14708 library_names_spec=$lt_library_names_spec
14710 # The coded name of the library, if different from the real name.
14711 soname_spec=$lt_soname_spec
14713 # Command to use after installation of a shared archive.
14714 postinstall_cmds=$lt_postinstall_cmds
14716 # Command to use after uninstallation of a shared archive.
14717 postuninstall_cmds=$lt_postuninstall_cmds
14719 # Commands used to finish a libtool library installation in a directory.
14720 finish_cmds=$lt_finish_cmds
14722 # As "finish_cmds", except a single script fragment to be evaled but
14723 # not shown.
14724 finish_eval=$lt_finish_eval
14726 # Whether we should hardcode library paths into libraries.
14727 hardcode_into_libs=$hardcode_into_libs
14729 # Compile-time system search path for libraries.
14730 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14732 # Run-time system search path for libraries.
14733 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14735 # Whether dlopen is supported.
14736 dlopen_support=$enable_dlopen
14738 # Whether dlopen of programs is supported.
14739 dlopen_self=$enable_dlopen_self
14741 # Whether dlopen of statically linked programs is supported.
14742 dlopen_self_static=$enable_dlopen_self_static
14744 # Commands to strip libraries.
14745 old_striplib=$lt_old_striplib
14746 striplib=$lt_striplib
14749 # The linker used to build libraries.
14750 LD=$lt_LD
14752 # Commands used to build an old-style archive.
14753 old_archive_cmds=$lt_old_archive_cmds
14755 # A language specific compiler.
14756 CC=$lt_compiler
14758 # Is the compiler the GNU compiler?
14759 with_gcc=$GCC
14761 # Compiler flag to turn off builtin functions.
14762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14764 # How to pass a linker flag through the compiler.
14765 wl=$lt_lt_prog_compiler_wl
14767 # Additional compiler flags for building library objects.
14768 pic_flag=$lt_lt_prog_compiler_pic
14770 # Compiler flag to prevent dynamic linking.
14771 link_static_flag=$lt_lt_prog_compiler_static
14773 # Does compiler simultaneously support -c and -o options?
14774 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14776 # Whether or not to add -lc for building shared libraries.
14777 build_libtool_need_lc=$archive_cmds_need_lc
14779 # Whether or not to disallow shared libs when runtime libs are static.
14780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14782 # Compiler flag to allow reflexive dlopens.
14783 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14785 # Compiler flag to generate shared objects directly from archives.
14786 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14788 # Whether the compiler copes with passing no objects directly.
14789 compiler_needs_object=$lt_compiler_needs_object
14791 # Create an old-style archive from a shared archive.
14792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14794 # Create a temporary old-style archive to link instead of a shared archive.
14795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14797 # Commands used to build a shared archive.
14798 archive_cmds=$lt_archive_cmds
14799 archive_expsym_cmds=$lt_archive_expsym_cmds
14801 # Commands used to build a loadable module if different from building
14802 # a shared archive.
14803 module_cmds=$lt_module_cmds
14804 module_expsym_cmds=$lt_module_expsym_cmds
14806 # Whether we are building with GNU ld or not.
14807 with_gnu_ld=$lt_with_gnu_ld
14809 # Flag that allows shared libraries with undefined symbols to be built.
14810 allow_undefined_flag=$lt_allow_undefined_flag
14812 # Flag that enforces no undefined symbols.
14813 no_undefined_flag=$lt_no_undefined_flag
14815 # Flag to hardcode \$libdir into a binary during linking.
14816 # This must work even if \$libdir does not exist
14817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14819 # If ld is used when linking, flag to hardcode \$libdir into a binary
14820 # during linking. This must work even if \$libdir does not exist.
14821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14823 # Whether we need a single "-rpath" flag with a separated argument.
14824 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14826 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14827 # DIR into the resulting binary.
14828 hardcode_direct=$hardcode_direct
14830 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14831 # DIR into the resulting binary and the resulting library dependency is
14832 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14833 # library is relocated.
14834 hardcode_direct_absolute=$hardcode_direct_absolute
14836 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14837 # into the resulting binary.
14838 hardcode_minus_L=$hardcode_minus_L
14840 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14841 # into the resulting binary.
14842 hardcode_shlibpath_var=$hardcode_shlibpath_var
14844 # Set to "yes" if building a shared library automatically hardcodes DIR
14845 # into the library and all subsequent libraries and executables linked
14846 # against it.
14847 hardcode_automatic=$hardcode_automatic
14849 # Set to yes if linker adds runtime paths of dependent libraries
14850 # to runtime path list.
14851 inherit_rpath=$inherit_rpath
14853 # Whether libtool must link a program against all its dependency libraries.
14854 link_all_deplibs=$link_all_deplibs
14856 # Fix the shell variable \$srcfile for the compiler.
14857 fix_srcfile_path=$lt_fix_srcfile_path
14859 # Set to "yes" if exported symbols are required.
14860 always_export_symbols=$always_export_symbols
14862 # The commands to list exported symbols.
14863 export_symbols_cmds=$lt_export_symbols_cmds
14865 # Symbols that should not be listed in the preloaded symbols.
14866 exclude_expsyms=$lt_exclude_expsyms
14868 # Symbols that must always be exported.
14869 include_expsyms=$lt_include_expsyms
14871 # Commands necessary for linking programs (against libraries) with templates.
14872 prelink_cmds=$lt_prelink_cmds
14874 # Specify filename containing input files.
14875 file_list_spec=$lt_file_list_spec
14877 # How to hardcode a shared library path into an executable.
14878 hardcode_action=$hardcode_action
14880 # ### END LIBTOOL CONFIG
14882 _LT_EOF
14884 case $host_os in
14885 aix3*)
14886 cat <<\_LT_EOF >> "$cfgfile"
14887 # AIX sometimes has problems with the GCC collect2 program. For some
14888 # reason, if we set the COLLECT_NAMES environment variable, the problems
14889 # vanish in a puff of smoke.
14890 if test "X${COLLECT_NAMES+set}" != Xset; then
14891 COLLECT_NAMES=
14892 export COLLECT_NAMES
14894 _LT_EOF
14896 esac
14899 ltmain="$ac_aux_dir/ltmain.sh"
14902 # We use sed instead of cat because bash on DJGPP gets confused if
14903 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14904 # text mode, it properly converts lines to CR/LF. This bash problem
14905 # is reportedly fixed, but why not run on old versions too?
14906 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14907 || (rm -f "$cfgfile"; exit 1)
14909 case $xsi_shell in
14910 yes)
14911 cat << \_LT_EOF >> "$cfgfile"
14913 # func_dirname file append nondir_replacement
14914 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14915 # otherwise set result to NONDIR_REPLACEMENT.
14916 func_dirname ()
14918 case ${1} in
14919 */*) func_dirname_result="${1%/*}${2}" ;;
14920 * ) func_dirname_result="${3}" ;;
14921 esac
14924 # func_basename file
14925 func_basename ()
14927 func_basename_result="${1##*/}"
14930 # func_dirname_and_basename file append nondir_replacement
14931 # perform func_basename and func_dirname in a single function
14932 # call:
14933 # dirname: Compute the dirname of FILE. If nonempty,
14934 # add APPEND to the result, otherwise set result
14935 # to NONDIR_REPLACEMENT.
14936 # value returned in "$func_dirname_result"
14937 # basename: Compute filename of FILE.
14938 # value retuned in "$func_basename_result"
14939 # Implementation must be kept synchronized with func_dirname
14940 # and func_basename. For efficiency, we do not delegate to
14941 # those functions but instead duplicate the functionality here.
14942 func_dirname_and_basename ()
14944 case ${1} in
14945 */*) func_dirname_result="${1%/*}${2}" ;;
14946 * ) func_dirname_result="${3}" ;;
14947 esac
14948 func_basename_result="${1##*/}"
14951 # func_stripname prefix suffix name
14952 # strip PREFIX and SUFFIX off of NAME.
14953 # PREFIX and SUFFIX must not contain globbing or regex special
14954 # characters, hashes, percent signs, but SUFFIX may contain a leading
14955 # dot (in which case that matches only a dot).
14956 func_stripname ()
14958 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14959 # positional parameters, so assign one to ordinary parameter first.
14960 func_stripname_result=${3}
14961 func_stripname_result=${func_stripname_result#"${1}"}
14962 func_stripname_result=${func_stripname_result%"${2}"}
14965 # func_opt_split
14966 func_opt_split ()
14968 func_opt_split_opt=${1%%=*}
14969 func_opt_split_arg=${1#*=}
14972 # func_lo2o object
14973 func_lo2o ()
14975 case ${1} in
14976 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14977 *) func_lo2o_result=${1} ;;
14978 esac
14981 # func_xform libobj-or-source
14982 func_xform ()
14984 func_xform_result=${1%.*}.lo
14987 # func_arith arithmetic-term...
14988 func_arith ()
14990 func_arith_result=$(( $* ))
14993 # func_len string
14994 # STRING may not start with a hyphen.
14995 func_len ()
14997 func_len_result=${#1}
15000 _LT_EOF
15002 *) # Bourne compatible functions.
15003 cat << \_LT_EOF >> "$cfgfile"
15005 # func_dirname file append nondir_replacement
15006 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15007 # otherwise set result to NONDIR_REPLACEMENT.
15008 func_dirname ()
15010 # Extract subdirectory from the argument.
15011 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15012 if test "X$func_dirname_result" = "X${1}"; then
15013 func_dirname_result="${3}"
15014 else
15015 func_dirname_result="$func_dirname_result${2}"
15019 # func_basename file
15020 func_basename ()
15022 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15026 # func_stripname prefix suffix name
15027 # strip PREFIX and SUFFIX off of NAME.
15028 # PREFIX and SUFFIX must not contain globbing or regex special
15029 # characters, hashes, percent signs, but SUFFIX may contain a leading
15030 # dot (in which case that matches only a dot).
15031 # func_strip_suffix prefix name
15032 func_stripname ()
15034 case ${2} in
15035 .*) func_stripname_result=`$ECHO "X${3}" \
15036 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15037 *) func_stripname_result=`$ECHO "X${3}" \
15038 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15039 esac
15042 # sed scripts:
15043 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15044 my_sed_long_arg='1s/^-[^=]*=//'
15046 # func_opt_split
15047 func_opt_split ()
15049 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15050 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15053 # func_lo2o object
15054 func_lo2o ()
15056 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15059 # func_xform libobj-or-source
15060 func_xform ()
15062 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15065 # func_arith arithmetic-term...
15066 func_arith ()
15068 func_arith_result=`expr "$@"`
15071 # func_len string
15072 # STRING may not start with a hyphen.
15073 func_len ()
15075 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15078 _LT_EOF
15079 esac
15081 case $lt_shell_append in
15082 yes)
15083 cat << \_LT_EOF >> "$cfgfile"
15085 # func_append var value
15086 # Append VALUE to the end of shell variable VAR.
15087 func_append ()
15089 eval "$1+=\$2"
15091 _LT_EOF
15094 cat << \_LT_EOF >> "$cfgfile"
15096 # func_append var value
15097 # Append VALUE to the end of shell variable VAR.
15098 func_append ()
15100 eval "$1=\$$1\$2"
15103 _LT_EOF
15105 esac
15108 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15109 || (rm -f "$cfgfile"; exit 1)
15111 mv -f "$cfgfile" "$ofile" ||
15112 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15113 chmod +x "$ofile"
15117 esac
15118 done # for ac_tag
15121 { (exit 0); exit 0; }
15122 _ACEOF
15123 chmod +x $CONFIG_STATUS
15124 ac_clean_files=$ac_clean_files_save
15126 test $ac_write_fail = 0 ||
15127 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15128 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15129 { (exit 1); exit 1; }; }
15132 # configure is writing to config.log, and then calls config.status.
15133 # config.status does its own redirection, appending to config.log.
15134 # Unfortunately, on DOS this fails, as config.log is still kept open
15135 # by configure, so config.status won't be able to write to it; its
15136 # output is simply discarded. So we exec the FD to /dev/null,
15137 # effectively closing config.log, so it can be properly (re)opened and
15138 # appended to by config.status. When coming back to configure, we
15139 # need to make the FD available again.
15140 if test "$no_create" != yes; then
15141 ac_cs_success=:
15142 ac_config_status_args=
15143 test "$silent" = yes &&
15144 ac_config_status_args="$ac_config_status_args --quiet"
15145 exec 5>/dev/null
15146 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15147 exec 5>>config.log
15148 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15149 # would make configure fail if this is the last instruction.
15150 $ac_cs_success || { (exit 1); exit 1; }
15152 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15153 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15154 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}