Disabling auto-refresh of game list by default, as it is causing bugs sometimes
[open-ps2-loader.git] / thirdparty / freetype-2.3.12 / builds / unix / configure
blob0c949128f377b77a5b4712a5431640ae657a1b98
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for FreeType 2.3.12.
5 # Report bugs to <freetype@nongnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 as_nl='
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
161 /^X\/\(\/\/\)$/{
162 s//\1/
165 /^X\/\(\/\).*/{
166 s//\1/
169 s/.*/./; q'`
171 # CDPATH.
172 $as_unset CDPATH
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
186 as_func_success () {
187 as_func_return 0
189 as_func_failure () {
190 as_func_return 1
192 as_func_ret_success () {
193 return 0
195 as_func_ret_failure () {
196 return 1
199 exitcode=0
200 if as_func_success; then
202 else
203 exitcode=1
204 echo as_func_success failed.
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 else
227 exitcode=1
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
298 (as_func_return () {
299 (exit $1)
301 as_func_success () {
302 as_func_return 0
304 as_func_failure () {
305 as_func_return 1
307 as_func_ret_success () {
308 return 0
310 as_func_ret_failure () {
311 return 1
314 exitcode=0
315 if as_func_success; then
317 else
318 exitcode=1
319 echo as_func_success failed.
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 else
342 exitcode=1
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354 _ASEOF
355 }; then
356 break
361 done
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
388 (exit \$1)
390 as_func_success () {
391 as_func_return 0
393 as_func_failure () {
394 as_func_return 1
396 as_func_ret_success () {
397 return 0
399 as_func_ret_failure () {
400 return 1
403 exitcode=0
404 if as_func_success; then
406 else
407 exitcode=1
408 echo as_func_success failed.
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 else
431 exitcode=1
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
468 :lineno
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
532 else
533 as_ln_s='cp -p'
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
580 case X$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
585 esac
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
607 _LT_EOF
608 exit 0
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
625 done
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
637 # So, first we look for a working echo in the user's PATH.
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
649 done
650 IFS="$lt_save_ifs"
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
698 prev="$cmd"
699 done
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
725 exec 7<&0 </dev/null 6>&1
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 # Initializations.
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
745 # Identity of this package.
746 PACKAGE_NAME='FreeType'
747 PACKAGE_TARNAME='freetype'
748 PACKAGE_VERSION='2.3.12'
749 PACKAGE_STRING='FreeType 2.3.12'
750 PACKAGE_BUGREPORT='freetype@nongnu.org'
752 ac_unique_file="ftconfig.in"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
789 ac_subst_vars='LTLIBOBJS
790 LIBOBJS
791 build_libtool_libs
793 hardcode_libdir_flag_spec
794 OTOOL64
795 OTOOL
796 LIPO
797 NMEDIT
798 DSYMUTIL
799 lt_ECHO
800 RANLIB
801 STRIP
803 LN_S
805 ac_ct_DUMPBIN
806 DUMPBIN
808 FGREP
810 LIBTOOL
811 OBJDUMP
812 DLLTOOL
814 SYSTEM_ZLIB
815 FT2_EXTRA_LIBS
816 LIBZ
817 ftmac_c
818 FTSYS_SRC
819 EGREP
820 GREP
821 INSTALL_DATA
822 INSTALL_SCRIPT
823 INSTALL_PROGRAM
824 RMDIR
826 XX_ANSIFLAGS
827 XX_CFLAGS
828 EXEEXT_BUILD
829 CC_BUILD
831 OBJEXT
832 EXEEXT
833 ac_ct_CC
834 CPPFLAGS
835 LDFLAGS
836 CFLAGS
838 host_os
839 host_vendor
840 host_cpu
841 host
842 build_os
843 build_vendor
844 build_cpu
845 build
846 ft_version
847 version_info
848 target_alias
849 host_alias
850 build_alias
851 LIBS
852 ECHO_T
853 ECHO_N
854 ECHO_C
855 DEFS
856 mandir
857 localedir
858 libdir
859 psdir
860 pdfdir
861 dvidir
862 htmldir
863 infodir
864 docdir
865 oldincludedir
866 includedir
867 localstatedir
868 sharedstatedir
869 sysconfdir
870 datadir
871 datarootdir
872 libexecdir
873 sbindir
874 bindir
875 program_transform_name
876 prefix
877 exec_prefix
878 PACKAGE_BUGREPORT
879 PACKAGE_STRING
880 PACKAGE_VERSION
881 PACKAGE_TARNAME
882 PACKAGE_NAME
883 PATH_SEPARATOR
884 SHELL'
885 ac_subst_files=''
886 ac_user_opts='
887 enable_option_checking
888 enable_biarch_config
889 with_zlib
890 with_old_mac_fonts
891 with_fsspec
892 with_fsref
893 with_quickdraw_toolbox
894 with_quickdraw_carbon
895 with_ats
896 enable_shared
897 enable_static
898 with_pic
899 enable_fast_install
900 with_gnu_ld
901 enable_libtool_lock
903 ac_precious_vars='build_alias
904 host_alias
905 target_alias
907 CFLAGS
908 LDFLAGS
909 LIBS
910 CPPFLAGS
911 CPP'
914 # Initialize some variables set by options.
915 ac_init_help=
916 ac_init_version=false
917 ac_unrecognized_opts=
918 ac_unrecognized_sep=
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
921 cache_file=/dev/null
922 exec_prefix=NONE
923 no_create=
924 no_recursion=
925 prefix=NONE
926 program_prefix=NONE
927 program_suffix=NONE
928 program_transform_name=s,x,x,
929 silent=
930 site=
931 srcdir=
932 verbose=
933 x_includes=NONE
934 x_libraries=NONE
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir='${exec_prefix}/bin'
943 sbindir='${exec_prefix}/sbin'
944 libexecdir='${exec_prefix}/libexec'
945 datarootdir='${prefix}/share'
946 datadir='${datarootdir}'
947 sysconfdir='${prefix}/etc'
948 sharedstatedir='${prefix}/com'
949 localstatedir='${prefix}/var'
950 includedir='${prefix}/include'
951 oldincludedir='/usr/include'
952 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953 infodir='${datarootdir}/info'
954 htmldir='${docdir}'
955 dvidir='${docdir}'
956 pdfdir='${docdir}'
957 psdir='${docdir}'
958 libdir='${exec_prefix}/lib'
959 localedir='${datarootdir}/locale'
960 mandir='${datarootdir}/man'
962 ac_prev=
963 ac_dashdash=
964 for ac_option
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
968 eval $ac_prev=\$ac_option
969 ac_prev=
970 continue
973 case $ac_option in
974 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 *) ac_optarg=yes ;;
976 esac
978 # Accept the important Cygnus configure options, so we can diagnose typos.
980 case $ac_dashdash$ac_option in
982 ac_dashdash=yes ;;
984 -bindir | --bindir | --bindi | --bind | --bin | --bi)
985 ac_prev=bindir ;;
986 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
987 bindir=$ac_optarg ;;
989 -build | --build | --buil | --bui | --bu)
990 ac_prev=build_alias ;;
991 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
992 build_alias=$ac_optarg ;;
994 -cache-file | --cache-file | --cache-fil | --cache-fi \
995 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996 ac_prev=cache_file ;;
997 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999 cache_file=$ac_optarg ;;
1001 --config-cache | -C)
1002 cache_file=config.cache ;;
1004 -datadir | --datadir | --datadi | --datad)
1005 ac_prev=datadir ;;
1006 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1007 datadir=$ac_optarg ;;
1009 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010 | --dataroo | --dataro | --datar)
1011 ac_prev=datarootdir ;;
1012 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014 datarootdir=$ac_optarg ;;
1016 -disable-* | --disable-*)
1017 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "enable_$ac_useropt"
1027 "*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=no ;;
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
1043 -enable-* | --enable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_$ac_useropt"
1054 "*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=\$ac_optarg ;;
1060 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062 | --exec | --exe | --ex)
1063 ac_prev=exec_prefix ;;
1064 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066 | --exec=* | --exe=* | --ex=*)
1067 exec_prefix=$ac_optarg ;;
1069 -gas | --gas | --ga | --g)
1070 # Obsolete; use --with-gas.
1071 with_gas=yes ;;
1073 -help | --help | --hel | --he | -h)
1074 ac_init_help=long ;;
1075 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076 ac_init_help=recursive ;;
1077 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078 ac_init_help=short ;;
1080 -host | --host | --hos | --ho)
1081 ac_prev=host_alias ;;
1082 -host=* | --host=* | --hos=* | --ho=*)
1083 host_alias=$ac_optarg ;;
1085 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086 ac_prev=htmldir ;;
1087 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088 | --ht=*)
1089 htmldir=$ac_optarg ;;
1091 -includedir | --includedir | --includedi | --included | --include \
1092 | --includ | --inclu | --incl | --inc)
1093 ac_prev=includedir ;;
1094 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095 | --includ=* | --inclu=* | --incl=* | --inc=*)
1096 includedir=$ac_optarg ;;
1098 -infodir | --infodir | --infodi | --infod | --info | --inf)
1099 ac_prev=infodir ;;
1100 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101 infodir=$ac_optarg ;;
1103 -libdir | --libdir | --libdi | --libd)
1104 ac_prev=libdir ;;
1105 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106 libdir=$ac_optarg ;;
1108 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109 | --libexe | --libex | --libe)
1110 ac_prev=libexecdir ;;
1111 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112 | --libexe=* | --libex=* | --libe=*)
1113 libexecdir=$ac_optarg ;;
1115 -localedir | --localedir | --localedi | --localed | --locale)
1116 ac_prev=localedir ;;
1117 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118 localedir=$ac_optarg ;;
1120 -localstatedir | --localstatedir | --localstatedi | --localstated \
1121 | --localstate | --localstat | --localsta | --localst | --locals)
1122 ac_prev=localstatedir ;;
1123 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125 localstatedir=$ac_optarg ;;
1127 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128 ac_prev=mandir ;;
1129 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130 mandir=$ac_optarg ;;
1132 -nfp | --nfp | --nf)
1133 # Obsolete; use --without-fp.
1134 with_fp=no ;;
1136 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137 | --no-cr | --no-c | -n)
1138 no_create=yes ;;
1140 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142 no_recursion=yes ;;
1144 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146 | --oldin | --oldi | --old | --ol | --o)
1147 ac_prev=oldincludedir ;;
1148 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151 oldincludedir=$ac_optarg ;;
1153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154 ac_prev=prefix ;;
1155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156 prefix=$ac_optarg ;;
1158 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159 | --program-pre | --program-pr | --program-p)
1160 ac_prev=program_prefix ;;
1161 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163 program_prefix=$ac_optarg ;;
1165 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166 | --program-suf | --program-su | --program-s)
1167 ac_prev=program_suffix ;;
1168 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170 program_suffix=$ac_optarg ;;
1172 -program-transform-name | --program-transform-name \
1173 | --program-transform-nam | --program-transform-na \
1174 | --program-transform-n | --program-transform- \
1175 | --program-transform | --program-transfor \
1176 | --program-transfo | --program-transf \
1177 | --program-trans | --program-tran \
1178 | --progr-tra | --program-tr | --program-t)
1179 ac_prev=program_transform_name ;;
1180 -program-transform-name=* | --program-transform-name=* \
1181 | --program-transform-nam=* | --program-transform-na=* \
1182 | --program-transform-n=* | --program-transform-=* \
1183 | --program-transform=* | --program-transfor=* \
1184 | --program-transfo=* | --program-transf=* \
1185 | --program-trans=* | --program-tran=* \
1186 | --progr-tra=* | --program-tr=* | --program-t=*)
1187 program_transform_name=$ac_optarg ;;
1189 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190 ac_prev=pdfdir ;;
1191 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192 pdfdir=$ac_optarg ;;
1194 -psdir | --psdir | --psdi | --psd | --ps)
1195 ac_prev=psdir ;;
1196 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197 psdir=$ac_optarg ;;
1199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200 | -silent | --silent | --silen | --sile | --sil)
1201 silent=yes ;;
1203 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204 ac_prev=sbindir ;;
1205 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206 | --sbi=* | --sb=*)
1207 sbindir=$ac_optarg ;;
1209 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211 | --sharedst | --shareds | --shared | --share | --shar \
1212 | --sha | --sh)
1213 ac_prev=sharedstatedir ;;
1214 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217 | --sha=* | --sh=*)
1218 sharedstatedir=$ac_optarg ;;
1220 -site | --site | --sit)
1221 ac_prev=site ;;
1222 -site=* | --site=* | --sit=*)
1223 site=$ac_optarg ;;
1225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226 ac_prev=srcdir ;;
1227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228 srcdir=$ac_optarg ;;
1230 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231 | --syscon | --sysco | --sysc | --sys | --sy)
1232 ac_prev=sysconfdir ;;
1233 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235 sysconfdir=$ac_optarg ;;
1237 -target | --target | --targe | --targ | --tar | --ta | --t)
1238 ac_prev=target_alias ;;
1239 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240 target_alias=$ac_optarg ;;
1242 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243 verbose=yes ;;
1245 -version | --version | --versio | --versi | --vers | -V)
1246 ac_init_version=: ;;
1248 -with-* | --with-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1253 { (exit 1); exit 1; }; }
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1258 "with_$ac_useropt"
1259 "*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=\$ac_optarg ;;
1265 -without-* | --without-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1270 { (exit 1); exit 1; }; }
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1275 "with_$ac_useropt"
1276 "*) ;;
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1279 esac
1280 eval with_$ac_useropt=no ;;
1282 --x)
1283 # Obsolete; use --with-x.
1284 with_x=yes ;;
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1300 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1301 Try \`$0 --help' for more information." >&2
1302 { (exit 1); exit 1; }; }
1305 *=*)
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1309 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1310 { (exit 1); exit 1; }; }
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1315 # FIXME: should be removed in autoconf 3.0.
1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322 esac
1323 done
1325 if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1328 { (exit 1); exit 1; }; }
1331 if test -n "$ac_unrecognized_opts"; then
1332 case $enable_option_checking in
1333 no) ;;
1334 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1335 { (exit 1); exit 1; }; } ;;
1336 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337 esac
1340 # Check all directory arguments for consistency.
1341 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342 datadir sysconfdir sharedstatedir localstatedir includedir \
1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344 libdir localedir mandir
1346 eval ac_val=\$$ac_var
1347 # Remove trailing slashes.
1348 case $ac_val in
1349 */ )
1350 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351 eval $ac_var=\$ac_val;;
1352 esac
1353 # Be sure to have absolute directory names.
1354 case $ac_val in
1355 [\\/$]* | ?:[\\/]* ) continue;;
1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357 esac
1358 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1359 { (exit 1); exit 1; }; }
1360 done
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1365 build=$build_alias
1366 host=$host_alias
1367 target=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1374 If a cross compiler is detected then cross compile mode will be used." >&2
1375 elif test "x$build_alias" != "x$host_alias"; then
1376 cross_compiling=yes
1380 ac_tool_prefix=
1381 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383 test "$silent" = yes && exec 6>/dev/null
1386 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387 ac_ls_di=`ls -di .` &&
1388 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1390 { (exit 1); exit 1; }; }
1391 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1393 { (exit 1); exit 1; }; }
1396 # Find the source files, if location was not specified.
1397 if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$as_myself" ||
1401 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$as_myself" : 'X\(//\)[^/]' \| \
1403 X"$as_myself" : 'X\(//\)$' \| \
1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405 $as_echo X"$as_myself" |
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 s//\1/
1410 /^X\(\/\/\)[^/].*/{
1411 s//\1/
1414 /^X\(\/\/\)$/{
1415 s//\1/
1418 /^X\(\/\).*/{
1419 s//\1/
1422 s/.*/./; q'`
1423 srcdir=$ac_confdir
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 srcdir=..
1427 else
1428 ac_srcdir_defaulted=no
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1433 { (exit 1); exit 1; }; }
1435 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 ac_abs_confdir=`(
1437 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1438 { (exit 1); exit 1; }; }
1439 pwd)`
1440 # When building in place, set srcdir=.
1441 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 srcdir=.
1444 # Remove unnecessary trailing slashes from srcdir.
1445 # Double slashes in file names in object file debugging info
1446 # mess up M-x gdb in Emacs.
1447 case $srcdir in
1448 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449 esac
1450 for ac_var in $ac_precious_vars; do
1451 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_env_${ac_var}_value=\$${ac_var}
1453 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455 done
1458 # Report the --help message.
1460 if test "$ac_init_help" = "long"; then
1461 # Omit some internal or obsolete options to make the list less imposing.
1462 # This message is too long to be a string in the A/UX 3.1 sh.
1463 cat <<_ACEOF
1464 \`configure' configures FreeType 2.3.12 to adapt to many kinds of systems.
1466 Usage: $0 [OPTION]... [VAR=VALUE]...
1468 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469 VAR=VALUE. See below for descriptions of some of the useful variables.
1471 Defaults for the options are specified in brackets.
1473 Configuration:
1474 -h, --help display this help and exit
1475 --help=short display options specific to this package
1476 --help=recursive display the short help of all the included packages
1477 -V, --version display version information and exit
1478 -q, --quiet, --silent do not print \`checking...' messages
1479 --cache-file=FILE cache test results in FILE [disabled]
1480 -C, --config-cache alias for \`--cache-file=config.cache'
1481 -n, --no-create do not create output files
1482 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1484 Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
1486 [$ac_default_prefix]
1487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 [PREFIX]
1490 By default, \`make install' will install all the files in
1491 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1492 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493 for instance \`--prefix=\$HOME'.
1495 For better control, use the options below.
1497 Fine tuning of the installation directories:
1498 --bindir=DIR user executables [EPREFIX/bin]
1499 --sbindir=DIR system admin executables [EPREFIX/sbin]
1500 --libexecdir=DIR program executables [EPREFIX/libexec]
1501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1504 --libdir=DIR object code libraries [EPREFIX/lib]
1505 --includedir=DIR C header files [PREFIX/include]
1506 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1509 --infodir=DIR info documentation [DATAROOTDIR/info]
1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1511 --mandir=DIR man documentation [DATAROOTDIR/man]
1512 --docdir=DIR documentation root [DATAROOTDIR/doc/freetype]
1513 --htmldir=DIR html documentation [DOCDIR]
1514 --dvidir=DIR dvi documentation [DOCDIR]
1515 --pdfdir=DIR pdf documentation [DOCDIR]
1516 --psdir=DIR ps documentation [DOCDIR]
1517 _ACEOF
1519 cat <<\_ACEOF
1521 System types:
1522 --build=BUILD configure for building on BUILD [guessed]
1523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524 _ACEOF
1527 if test -n "$ac_init_help"; then
1528 case $ac_init_help in
1529 short | recursive ) echo "Configuration of FreeType 2.3.12:";;
1530 esac
1531 cat <<\_ACEOF
1533 Optional Features:
1534 --disable-option-checking ignore unrecognized --enable/--with options
1535 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1536 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1537 --enable-biarch-config install biarch ftconfig.h to support multiple
1538 architectures by single file
1539 --enable-shared[=PKGS] build shared libraries [default=yes]
1540 --enable-static[=PKGS] build static libraries [default=yes]
1541 --enable-fast-install[=PKGS]
1542 optimize for fast installation [default=yes]
1543 --disable-libtool-lock avoid locking (might break parallel builds)
1545 Optional Packages:
1546 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1547 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1548 --without-zlib use internal zlib instead of system-wide
1549 --with-old-mac-fonts allow Mac resource-based fonts to be used
1550 --with-fsspec use obsolete FSSpec API of MacOS, if available
1551 (default=yes)
1552 --with-fsref use Carbon FSRef API of MacOS, if available
1553 (default=yes)
1554 --with-quickdraw-toolbox
1555 use MacOS QuickDraw in ToolBox, if available
1556 (default=yes)
1557 --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
1558 (default=yes)
1559 --with-ats use AppleTypeService, if available (default=yes)
1560 --with-pic try to use only PIC/non-PIC objects [default=use
1561 both]
1562 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1564 Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
1572 CPP C preprocessor
1574 Use these variables to override the choices made by `configure' or to help
1575 it to find libraries and programs with nonstandard names/locations.
1577 Report bugs to <freetype@nongnu.org>.
1578 _ACEOF
1579 ac_status=$?
1582 if test "$ac_init_help" = "recursive"; then
1583 # If there are subdirs, report their specific --help.
1584 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1585 test -d "$ac_dir" ||
1586 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1587 continue
1588 ac_builddir=.
1590 case "$ac_dir" in
1591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1594 # A ".." for each directory in $ac_dir_suffix.
1595 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1596 case $ac_top_builddir_sub in
1597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599 esac ;;
1600 esac
1601 ac_abs_top_builddir=$ac_pwd
1602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1603 # for backward compatibility:
1604 ac_top_builddir=$ac_top_build_prefix
1606 case $srcdir in
1607 .) # We are building in place.
1608 ac_srcdir=.
1609 ac_top_srcdir=$ac_top_builddir_sub
1610 ac_abs_top_srcdir=$ac_pwd ;;
1611 [\\/]* | ?:[\\/]* ) # Absolute name.
1612 ac_srcdir=$srcdir$ac_dir_suffix;
1613 ac_top_srcdir=$srcdir
1614 ac_abs_top_srcdir=$srcdir ;;
1615 *) # Relative name.
1616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617 ac_top_srcdir=$ac_top_build_prefix$srcdir
1618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1619 esac
1620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622 cd "$ac_dir" || { ac_status=$?; continue; }
1623 # Check for guested configure.
1624 if test -f "$ac_srcdir/configure.gnu"; then
1625 echo &&
1626 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1627 elif test -f "$ac_srcdir/configure"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure" --help=recursive
1630 else
1631 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1632 fi || ac_status=$?
1633 cd "$ac_pwd" || { ac_status=$?; break; }
1634 done
1637 test -n "$ac_init_help" && exit $ac_status
1638 if $ac_init_version; then
1639 cat <<\_ACEOF
1640 FreeType configure 2.3.12
1641 generated by GNU Autoconf 2.63
1643 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1644 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1645 This configure script is free software; the Free Software Foundation
1646 gives unlimited permission to copy, distribute and modify it.
1647 _ACEOF
1648 exit
1650 cat >config.log <<_ACEOF
1651 This file contains any messages produced by compilers while
1652 running configure, to aid debugging if configure makes a mistake.
1654 It was created by FreeType $as_me 2.3.12, which was
1655 generated by GNU Autoconf 2.63. Invocation command line was
1657 $ $0 $@
1659 _ACEOF
1660 exec 5>>config.log
1662 cat <<_ASUNAME
1663 ## --------- ##
1664 ## Platform. ##
1665 ## --------- ##
1667 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1668 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1669 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1670 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1671 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1673 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1674 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1676 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1677 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1678 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1679 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1680 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1681 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1682 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1684 _ASUNAME
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 for as_dir in $PATH
1689 IFS=$as_save_IFS
1690 test -z "$as_dir" && as_dir=.
1691 $as_echo "PATH: $as_dir"
1692 done
1693 IFS=$as_save_IFS
1695 } >&5
1697 cat >&5 <<_ACEOF
1700 ## ----------- ##
1701 ## Core tests. ##
1702 ## ----------- ##
1704 _ACEOF
1707 # Keep a trace of the command line.
1708 # Strip out --no-create and --no-recursion so they do not pile up.
1709 # Strip out --silent because we don't want to record it for future runs.
1710 # Also quote any args containing shell meta-characters.
1711 # Make two passes to allow for proper duplicate-argument suppression.
1712 ac_configure_args=
1713 ac_configure_args0=
1714 ac_configure_args1=
1715 ac_must_keep_next=false
1716 for ac_pass in 1 2
1718 for ac_arg
1720 case $ac_arg in
1721 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1723 | -silent | --silent | --silen | --sile | --sil)
1724 continue ;;
1725 *\'*)
1726 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1727 esac
1728 case $ac_pass in
1729 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1731 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1732 if test $ac_must_keep_next = true; then
1733 ac_must_keep_next=false # Got value, back to normal.
1734 else
1735 case $ac_arg in
1736 *=* | --config-cache | -C | -disable-* | --disable-* \
1737 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1738 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1739 | -with-* | --with-* | -without-* | --without-* | --x)
1740 case "$ac_configure_args0 " in
1741 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1742 esac
1744 -* ) ac_must_keep_next=true ;;
1745 esac
1747 ac_configure_args="$ac_configure_args '$ac_arg'"
1749 esac
1750 done
1751 done
1752 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1753 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1755 # When interrupted or exit'd, cleanup temporary files, and complete
1756 # config.log. We remove comments because anyway the quotes in there
1757 # would cause problems or look ugly.
1758 # WARNING: Use '\'' to represent an apostrophe within the trap.
1759 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1760 trap 'exit_status=$?
1761 # Save into config.log some information that might help in debugging.
1763 echo
1765 cat <<\_ASBOX
1766 ## ---------------- ##
1767 ## Cache variables. ##
1768 ## ---------------- ##
1769 _ASBOX
1770 echo
1771 # The following way of writing the cache mishandles newlines in values,
1773 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1774 eval ac_val=\$$ac_var
1775 case $ac_val in #(
1776 *${as_nl}*)
1777 case $ac_var in #(
1778 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1779 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1780 esac
1781 case $ac_var in #(
1782 _ | IFS | as_nl) ;; #(
1783 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1784 *) $as_unset $ac_var ;;
1785 esac ;;
1786 esac
1787 done
1788 (set) 2>&1 |
1789 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1790 *${as_nl}ac_space=\ *)
1791 sed -n \
1792 "s/'\''/'\''\\\\'\'''\''/g;
1793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1794 ;; #(
1796 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1798 esac |
1799 sort
1801 echo
1803 cat <<\_ASBOX
1804 ## ----------------- ##
1805 ## Output variables. ##
1806 ## ----------------- ##
1807 _ASBOX
1808 echo
1809 for ac_var in $ac_subst_vars
1811 eval ac_val=\$$ac_var
1812 case $ac_val in
1813 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814 esac
1815 $as_echo "$ac_var='\''$ac_val'\''"
1816 done | sort
1817 echo
1819 if test -n "$ac_subst_files"; then
1820 cat <<\_ASBOX
1821 ## ------------------- ##
1822 ## File substitutions. ##
1823 ## ------------------- ##
1824 _ASBOX
1825 echo
1826 for ac_var in $ac_subst_files
1828 eval ac_val=\$$ac_var
1829 case $ac_val in
1830 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1831 esac
1832 $as_echo "$ac_var='\''$ac_val'\''"
1833 done | sort
1834 echo
1837 if test -s confdefs.h; then
1838 cat <<\_ASBOX
1839 ## ----------- ##
1840 ## confdefs.h. ##
1841 ## ----------- ##
1842 _ASBOX
1843 echo
1844 cat confdefs.h
1845 echo
1847 test "$ac_signal" != 0 &&
1848 $as_echo "$as_me: caught signal $ac_signal"
1849 $as_echo "$as_me: exit $exit_status"
1850 } >&5
1851 rm -f core *.core core.conftest.* &&
1852 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1853 exit $exit_status
1855 for ac_signal in 1 2 13 15; do
1856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1857 done
1858 ac_signal=0
1860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1861 rm -f -r conftest* confdefs.h
1863 # Predefined preprocessor variables.
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_NAME "$PACKAGE_NAME"
1867 _ACEOF
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1872 _ACEOF
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1877 _ACEOF
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_STRING "$PACKAGE_STRING"
1882 _ACEOF
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1887 _ACEOF
1890 # Let the site file select an alternate cache file if it wants to.
1891 # Prefer an explicitly selected file to automatically selected ones.
1892 ac_site_file1=NONE
1893 ac_site_file2=NONE
1894 if test -n "$CONFIG_SITE"; then
1895 ac_site_file1=$CONFIG_SITE
1896 elif test "x$prefix" != xNONE; then
1897 ac_site_file1=$prefix/share/config.site
1898 ac_site_file2=$prefix/etc/config.site
1899 else
1900 ac_site_file1=$ac_default_prefix/share/config.site
1901 ac_site_file2=$ac_default_prefix/etc/config.site
1903 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1905 test "x$ac_site_file" = xNONE && continue
1906 if test -r "$ac_site_file"; then
1907 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1908 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1909 sed 's/^/| /' "$ac_site_file" >&5
1910 . "$ac_site_file"
1912 done
1914 if test -r "$cache_file"; then
1915 # Some versions of bash will fail to source /dev/null (special
1916 # files actually), so we avoid doing that.
1917 if test -f "$cache_file"; then
1918 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1919 $as_echo "$as_me: loading cache $cache_file" >&6;}
1920 case $cache_file in
1921 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1922 *) . "./$cache_file";;
1923 esac
1925 else
1926 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1927 $as_echo "$as_me: creating cache $cache_file" >&6;}
1928 >$cache_file
1931 # Check that the precious variables saved in the cache have kept the same
1932 # value.
1933 ac_cache_corrupted=false
1934 for ac_var in $ac_precious_vars; do
1935 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1936 eval ac_new_set=\$ac_env_${ac_var}_set
1937 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1938 eval ac_new_val=\$ac_env_${ac_var}_value
1939 case $ac_old_set,$ac_new_set in
1940 set,)
1941 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1942 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1943 ac_cache_corrupted=: ;;
1944 ,set)
1945 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1946 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1947 ac_cache_corrupted=: ;;
1948 ,);;
1950 if test "x$ac_old_val" != "x$ac_new_val"; then
1951 # differences in whitespace do not lead to failure.
1952 ac_old_val_w=`echo x $ac_old_val`
1953 ac_new_val_w=`echo x $ac_new_val`
1954 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1955 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1956 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1957 ac_cache_corrupted=:
1958 else
1959 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1960 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1961 eval $ac_var=\$ac_old_val
1963 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1964 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1965 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1966 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1967 fi;;
1968 esac
1969 # Pass precious variables to config.status.
1970 if test "$ac_new_set" = set; then
1971 case $ac_new_val in
1972 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1973 *) ac_arg=$ac_var=$ac_new_val ;;
1974 esac
1975 case " $ac_configure_args " in
1976 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1977 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1978 esac
1980 done
1981 if $ac_cache_corrupted; then
1982 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1984 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1985 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1986 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1987 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1988 { (exit 1); exit 1; }; }
2015 ac_ext=c
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025 # Don't forget to update docs/VERSION.DLL!
2027 version_info='10:0:4'
2029 ft_version=`echo $version_info | tr : .`
2033 # checks for system type
2035 ac_aux_dir=
2036 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2037 if test -f "$ac_dir/install-sh"; then
2038 ac_aux_dir=$ac_dir
2039 ac_install_sh="$ac_aux_dir/install-sh -c"
2040 break
2041 elif test -f "$ac_dir/install.sh"; then
2042 ac_aux_dir=$ac_dir
2043 ac_install_sh="$ac_aux_dir/install.sh -c"
2044 break
2045 elif test -f "$ac_dir/shtool"; then
2046 ac_aux_dir=$ac_dir
2047 ac_install_sh="$ac_aux_dir/shtool install -c"
2048 break
2050 done
2051 if test -z "$ac_aux_dir"; then
2052 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2053 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2054 { (exit 1); exit 1; }; }
2057 # These three variables are undocumented and unsupported,
2058 # and are intended to be withdrawn in a future Autoconf release.
2059 # They can cause serious problems if a builder's source tree is in a directory
2060 # whose full name contains unusual characters.
2061 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2062 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2063 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2066 # Make sure we can run config.sub.
2067 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2068 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2069 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2070 { (exit 1); exit 1; }; }
2072 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2073 $as_echo_n "checking build system type... " >&6; }
2074 if test "${ac_cv_build+set}" = set; then
2075 $as_echo_n "(cached) " >&6
2076 else
2077 ac_build_alias=$build_alias
2078 test "x$ac_build_alias" = x &&
2079 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2080 test "x$ac_build_alias" = x &&
2081 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2082 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2083 { (exit 1); exit 1; }; }
2084 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2085 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2086 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2087 { (exit 1); exit 1; }; }
2090 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2091 $as_echo "$ac_cv_build" >&6; }
2092 case $ac_cv_build in
2093 *-*-*) ;;
2094 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2095 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2096 { (exit 1); exit 1; }; };;
2097 esac
2098 build=$ac_cv_build
2099 ac_save_IFS=$IFS; IFS='-'
2100 set x $ac_cv_build
2101 shift
2102 build_cpu=$1
2103 build_vendor=$2
2104 shift; shift
2105 # Remember, the first character of IFS is used to create $*,
2106 # except with old shells:
2107 build_os=$*
2108 IFS=$ac_save_IFS
2109 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2112 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2113 $as_echo_n "checking host system type... " >&6; }
2114 if test "${ac_cv_host+set}" = set; then
2115 $as_echo_n "(cached) " >&6
2116 else
2117 if test "x$host_alias" = x; then
2118 ac_cv_host=$ac_cv_build
2119 else
2120 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2121 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2122 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2123 { (exit 1); exit 1; }; }
2127 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2128 $as_echo "$ac_cv_host" >&6; }
2129 case $ac_cv_host in
2130 *-*-*) ;;
2131 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2132 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2133 { (exit 1); exit 1; }; };;
2134 esac
2135 host=$ac_cv_host
2136 ac_save_IFS=$IFS; IFS='-'
2137 set x $ac_cv_host
2138 shift
2139 host_cpu=$1
2140 host_vendor=$2
2141 shift; shift
2142 # Remember, the first character of IFS is used to create $*,
2143 # except with old shells:
2144 host_os=$*
2145 IFS=$ac_save_IFS
2146 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2151 # checks for programs
2153 ac_ext=c
2154 ac_cpp='$CPP $CPPFLAGS'
2155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2158 if test -n "$ac_tool_prefix"; then
2159 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2160 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2162 $as_echo_n "checking for $ac_word... " >&6; }
2163 if test "${ac_cv_prog_CC+set}" = set; then
2164 $as_echo_n "(cached) " >&6
2165 else
2166 if test -n "$CC"; then
2167 ac_cv_prog_CC="$CC" # Let the user override the test.
2168 else
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 for ac_exec_ext in '' $ac_executable_extensions; do
2175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2176 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2177 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 break 2
2180 done
2181 done
2182 IFS=$as_save_IFS
2186 CC=$ac_cv_prog_CC
2187 if test -n "$CC"; then
2188 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2189 $as_echo "$CC" >&6; }
2190 else
2191 { $as_echo "$as_me:$LINENO: result: no" >&5
2192 $as_echo "no" >&6; }
2197 if test -z "$ac_cv_prog_CC"; then
2198 ac_ct_CC=$CC
2199 # Extract the first word of "gcc", so it can be a program name with args.
2200 set dummy gcc; ac_word=$2
2201 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 $as_echo_n "checking for $ac_word... " >&6; }
2203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2204 $as_echo_n "(cached) " >&6
2205 else
2206 if test -n "$ac_ct_CC"; then
2207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2208 else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 for ac_exec_ext in '' $ac_executable_extensions; do
2215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2216 ac_cv_prog_ac_ct_CC="gcc"
2217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 break 2
2220 done
2221 done
2222 IFS=$as_save_IFS
2226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2227 if test -n "$ac_ct_CC"; then
2228 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2229 $as_echo "$ac_ct_CC" >&6; }
2230 else
2231 { $as_echo "$as_me:$LINENO: result: no" >&5
2232 $as_echo "no" >&6; }
2235 if test "x$ac_ct_CC" = x; then
2236 CC=""
2237 else
2238 case $cross_compiling:$ac_tool_warned in
2239 yes:)
2240 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2242 ac_tool_warned=yes ;;
2243 esac
2244 CC=$ac_ct_CC
2246 else
2247 CC="$ac_cv_prog_CC"
2250 if test -z "$CC"; then
2251 if test -n "$ac_tool_prefix"; then
2252 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2253 set dummy ${ac_tool_prefix}cc; ac_word=$2
2254 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 $as_echo_n "checking for $ac_word... " >&6; }
2256 if test "${ac_cv_prog_CC+set}" = set; then
2257 $as_echo_n "(cached) " >&6
2258 else
2259 if test -n "$CC"; then
2260 ac_cv_prog_CC="$CC" # Let the user override the test.
2261 else
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2265 IFS=$as_save_IFS
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269 ac_cv_prog_CC="${ac_tool_prefix}cc"
2270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 break 2
2273 done
2274 done
2275 IFS=$as_save_IFS
2279 CC=$ac_cv_prog_CC
2280 if test -n "$CC"; then
2281 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2282 $as_echo "$CC" >&6; }
2283 else
2284 { $as_echo "$as_me:$LINENO: result: no" >&5
2285 $as_echo "no" >&6; }
2291 if test -z "$CC"; then
2292 # Extract the first word of "cc", so it can be a program name with args.
2293 set dummy cc; ac_word=$2
2294 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 $as_echo_n "checking for $ac_word... " >&6; }
2296 if test "${ac_cv_prog_CC+set}" = set; then
2297 $as_echo_n "(cached) " >&6
2298 else
2299 if test -n "$CC"; then
2300 ac_cv_prog_CC="$CC" # Let the user override the test.
2301 else
2302 ac_prog_rejected=no
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2306 IFS=$as_save_IFS
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2311 ac_prog_rejected=yes
2312 continue
2314 ac_cv_prog_CC="cc"
2315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 break 2
2318 done
2319 done
2320 IFS=$as_save_IFS
2322 if test $ac_prog_rejected = yes; then
2323 # We found a bogon in the path, so make sure we never use it.
2324 set dummy $ac_cv_prog_CC
2325 shift
2326 if test $# != 0; then
2327 # We chose a different compiler from the bogus one.
2328 # However, it has the same basename, so the bogon will be chosen
2329 # first if we set CC to just the basename; use the full file name.
2330 shift
2331 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2336 CC=$ac_cv_prog_CC
2337 if test -n "$CC"; then
2338 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2339 $as_echo "$CC" >&6; }
2340 else
2341 { $as_echo "$as_me:$LINENO: result: no" >&5
2342 $as_echo "no" >&6; }
2347 if test -z "$CC"; then
2348 if test -n "$ac_tool_prefix"; then
2349 for ac_prog in cl.exe
2351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2353 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 $as_echo_n "checking for $ac_word... " >&6; }
2355 if test "${ac_cv_prog_CC+set}" = set; then
2356 $as_echo_n "(cached) " >&6
2357 else
2358 if test -n "$CC"; then
2359 ac_cv_prog_CC="$CC" # Let the user override the test.
2360 else
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
2366 for ac_exec_ext in '' $ac_executable_extensions; do
2367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2368 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 break 2
2372 done
2373 done
2374 IFS=$as_save_IFS
2378 CC=$ac_cv_prog_CC
2379 if test -n "$CC"; then
2380 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2381 $as_echo "$CC" >&6; }
2382 else
2383 { $as_echo "$as_me:$LINENO: result: no" >&5
2384 $as_echo "no" >&6; }
2388 test -n "$CC" && break
2389 done
2391 if test -z "$CC"; then
2392 ac_ct_CC=$CC
2393 for ac_prog in cl.exe
2395 # Extract the first word of "$ac_prog", so it can be a program name with args.
2396 set dummy $ac_prog; ac_word=$2
2397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 $as_echo_n "checking for $ac_word... " >&6; }
2399 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2400 $as_echo_n "(cached) " >&6
2401 else
2402 if test -n "$ac_ct_CC"; then
2403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2404 else
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2412 ac_cv_prog_ac_ct_CC="$ac_prog"
2413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 break 2
2416 done
2417 done
2418 IFS=$as_save_IFS
2422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2423 if test -n "$ac_ct_CC"; then
2424 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2425 $as_echo "$ac_ct_CC" >&6; }
2426 else
2427 { $as_echo "$as_me:$LINENO: result: no" >&5
2428 $as_echo "no" >&6; }
2432 test -n "$ac_ct_CC" && break
2433 done
2435 if test "x$ac_ct_CC" = x; then
2436 CC=""
2437 else
2438 case $cross_compiling:$ac_tool_warned in
2439 yes:)
2440 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2442 ac_tool_warned=yes ;;
2443 esac
2444 CC=$ac_ct_CC
2451 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2454 See \`config.log' for more details." >&5
2455 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2456 See \`config.log' for more details." >&2;}
2457 { (exit 1); exit 1; }; }; }
2459 # Provide some information about the compiler.
2460 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2461 set X $ac_compile
2462 ac_compiler=$2
2463 { (ac_try="$ac_compiler --version >&5"
2464 case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2467 esac
2468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2469 $as_echo "$ac_try_echo") >&5
2470 (eval "$ac_compiler --version >&5") 2>&5
2471 ac_status=$?
2472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }
2474 { (ac_try="$ac_compiler -v >&5"
2475 case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2478 esac
2479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2480 $as_echo "$ac_try_echo") >&5
2481 (eval "$ac_compiler -v >&5") 2>&5
2482 ac_status=$?
2483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }
2485 { (ac_try="$ac_compiler -V >&5"
2486 case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489 esac
2490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2491 $as_echo "$ac_try_echo") >&5
2492 (eval "$ac_compiler -V >&5") 2>&5
2493 ac_status=$?
2494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }
2497 cat >conftest.$ac_ext <<_ACEOF
2498 /* confdefs.h. */
2499 _ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2505 main ()
2509 return 0;
2511 _ACEOF
2512 ac_clean_files_save=$ac_clean_files
2513 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2514 # Try to create an executable without -o first, disregard a.out.
2515 # It will help us diagnose broken compilers, and finding out an intuition
2516 # of exeext.
2517 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2518 $as_echo_n "checking for C compiler default output file name... " >&6; }
2519 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2521 # The possible output files:
2522 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2524 ac_rmfiles=
2525 for ac_file in $ac_files
2527 case $ac_file in
2528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2529 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2530 esac
2531 done
2532 rm -f $ac_rmfiles
2534 if { (ac_try="$ac_link_default"
2535 case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2538 esac
2539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2540 $as_echo "$ac_try_echo") >&5
2541 (eval "$ac_link_default") 2>&5
2542 ac_status=$?
2543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; then
2545 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2546 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2547 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2548 # so that the user can short-circuit this test for compilers unknown to
2549 # Autoconf.
2550 for ac_file in $ac_files ''
2552 test -f "$ac_file" || continue
2553 case $ac_file in
2554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2556 [ab].out )
2557 # We found the default executable, but exeext='' is most
2558 # certainly right.
2559 break;;
2560 *.* )
2561 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2562 then :; else
2563 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2565 # We set ac_cv_exeext here because the later test for it is not
2566 # safe: cross compilers may not add the suffix if given an `-o'
2567 # argument, so we may need to know it at that point already.
2568 # Even if this section looks crufty: it has the advantage of
2569 # actually working.
2570 break;;
2572 break;;
2573 esac
2574 done
2575 test "$ac_cv_exeext" = no && ac_cv_exeext=
2577 else
2578 ac_file=''
2581 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2582 $as_echo "$ac_file" >&6; }
2583 if test -z "$ac_file"; then
2584 $as_echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2587 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2589 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2590 See \`config.log' for more details." >&5
2591 $as_echo "$as_me: error: C compiler cannot create executables
2592 See \`config.log' for more details." >&2;}
2593 { (exit 77); exit 77; }; }; }
2596 ac_exeext=$ac_cv_exeext
2598 # Check that the compiler produces executables we can run. If not, either
2599 # the compiler is broken, or we cross compile.
2600 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2601 $as_echo_n "checking whether the C compiler works... " >&6; }
2602 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2603 # If not cross compiling, check that we can run a simple program.
2604 if test "$cross_compiling" != yes; then
2605 if { ac_try='./$ac_file'
2606 { (case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2609 esac
2610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2611 $as_echo "$ac_try_echo") >&5
2612 (eval "$ac_try") 2>&5
2613 ac_status=$?
2614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 cross_compiling=no
2617 else
2618 if test "$cross_compiling" = maybe; then
2619 cross_compiling=yes
2620 else
2621 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2624 If you meant to cross compile, use \`--host'.
2625 See \`config.log' for more details." >&5
2626 $as_echo "$as_me: error: cannot run C compiled programs.
2627 If you meant to cross compile, use \`--host'.
2628 See \`config.log' for more details." >&2;}
2629 { (exit 1); exit 1; }; }; }
2633 { $as_echo "$as_me:$LINENO: result: yes" >&5
2634 $as_echo "yes" >&6; }
2636 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2637 ac_clean_files=$ac_clean_files_save
2638 # Check that the compiler produces executables we can run. If not, either
2639 # the compiler is broken, or we cross compile.
2640 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2641 $as_echo_n "checking whether we are cross compiling... " >&6; }
2642 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2643 $as_echo "$cross_compiling" >&6; }
2645 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2646 $as_echo_n "checking for suffix of executables... " >&6; }
2647 if { (ac_try="$ac_link"
2648 case "(($ac_try" in
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2651 esac
2652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2653 $as_echo "$ac_try_echo") >&5
2654 (eval "$ac_link") 2>&5
2655 ac_status=$?
2656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; then
2658 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2659 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2660 # work properly (i.e., refer to `conftest.exe'), while it won't with
2661 # `rm'.
2662 for ac_file in conftest.exe conftest conftest.*; do
2663 test -f "$ac_file" || continue
2664 case $ac_file in
2665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2666 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2667 break;;
2668 * ) break;;
2669 esac
2670 done
2671 else
2672 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2674 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2675 See \`config.log' for more details." >&5
2676 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2677 See \`config.log' for more details." >&2;}
2678 { (exit 1); exit 1; }; }; }
2681 rm -f conftest$ac_cv_exeext
2682 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2683 $as_echo "$ac_cv_exeext" >&6; }
2685 rm -f conftest.$ac_ext
2686 EXEEXT=$ac_cv_exeext
2687 ac_exeext=$EXEEXT
2688 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2689 $as_echo_n "checking for suffix of object files... " >&6; }
2690 if test "${ac_cv_objext+set}" = set; then
2691 $as_echo_n "(cached) " >&6
2692 else
2693 cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h. */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2701 main ()
2705 return 0;
2707 _ACEOF
2708 rm -f conftest.o conftest.obj
2709 if { (ac_try="$ac_compile"
2710 case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713 esac
2714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2715 $as_echo "$ac_try_echo") >&5
2716 (eval "$ac_compile") 2>&5
2717 ac_status=$?
2718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; then
2720 for ac_file in conftest.o conftest.obj conftest.*; do
2721 test -f "$ac_file" || continue;
2722 case $ac_file in
2723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2724 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2725 break;;
2726 esac
2727 done
2728 else
2729 $as_echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2732 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2734 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2735 See \`config.log' for more details." >&5
2736 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2737 See \`config.log' for more details." >&2;}
2738 { (exit 1); exit 1; }; }; }
2741 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2743 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2744 $as_echo "$ac_cv_objext" >&6; }
2745 OBJEXT=$ac_cv_objext
2746 ac_objext=$OBJEXT
2747 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2748 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2749 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2750 $as_echo_n "(cached) " >&6
2751 else
2752 cat >conftest.$ac_ext <<_ACEOF
2753 /* confdefs.h. */
2754 _ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2760 main ()
2762 #ifndef __GNUC__
2763 choke me
2764 #endif
2767 return 0;
2769 _ACEOF
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2772 case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775 esac
2776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2777 $as_echo "$ac_try_echo") >&5
2778 (eval "$ac_compile") 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } && {
2785 test -z "$ac_c_werror_flag" ||
2786 test ! -s conftest.err
2787 } && test -s conftest.$ac_objext; then
2788 ac_compiler_gnu=yes
2789 else
2790 $as_echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2793 ac_compiler_gnu=no
2796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2800 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2801 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2802 if test $ac_compiler_gnu = yes; then
2803 GCC=yes
2804 else
2805 GCC=
2807 ac_test_CFLAGS=${CFLAGS+set}
2808 ac_save_CFLAGS=$CFLAGS
2809 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2810 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2811 if test "${ac_cv_prog_cc_g+set}" = set; then
2812 $as_echo_n "(cached) " >&6
2813 else
2814 ac_save_c_werror_flag=$ac_c_werror_flag
2815 ac_c_werror_flag=yes
2816 ac_cv_prog_cc_g=no
2817 CFLAGS="-g"
2818 cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h. */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2826 main ()
2830 return 0;
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (ac_try="$ac_compile"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2840 $as_echo "$ac_try_echo") >&5
2841 (eval "$ac_compile") 2>conftest.er1
2842 ac_status=$?
2843 grep -v '^ *+' conftest.er1 >conftest.err
2844 rm -f conftest.er1
2845 cat conftest.err >&5
2846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } && {
2848 test -z "$ac_c_werror_flag" ||
2849 test ! -s conftest.err
2850 } && test -s conftest.$ac_objext; then
2851 ac_cv_prog_cc_g=yes
2852 else
2853 $as_echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2856 CFLAGS=""
2857 cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h. */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2865 main ()
2869 return 0;
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (ac_try="$ac_compile"
2874 case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877 esac
2878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2879 $as_echo "$ac_try_echo") >&5
2880 (eval "$ac_compile") 2>conftest.er1
2881 ac_status=$?
2882 grep -v '^ *+' conftest.er1 >conftest.err
2883 rm -f conftest.er1
2884 cat conftest.err >&5
2885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } && {
2887 test -z "$ac_c_werror_flag" ||
2888 test ! -s conftest.err
2889 } && test -s conftest.$ac_objext; then
2891 else
2892 $as_echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2895 ac_c_werror_flag=$ac_save_c_werror_flag
2896 CFLAGS="-g"
2897 cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h. */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2905 main ()
2909 return 0;
2911 _ACEOF
2912 rm -f conftest.$ac_objext
2913 if { (ac_try="$ac_compile"
2914 case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917 esac
2918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2919 $as_echo "$ac_try_echo") >&5
2920 (eval "$ac_compile") 2>conftest.er1
2921 ac_status=$?
2922 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } && {
2927 test -z "$ac_c_werror_flag" ||
2928 test ! -s conftest.err
2929 } && test -s conftest.$ac_objext; then
2930 ac_cv_prog_cc_g=yes
2931 else
2932 $as_echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2945 ac_c_werror_flag=$ac_save_c_werror_flag
2947 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2948 $as_echo "$ac_cv_prog_cc_g" >&6; }
2949 if test "$ac_test_CFLAGS" = set; then
2950 CFLAGS=$ac_save_CFLAGS
2951 elif test $ac_cv_prog_cc_g = yes; then
2952 if test "$GCC" = yes; then
2953 CFLAGS="-g -O2"
2954 else
2955 CFLAGS="-g"
2957 else
2958 if test "$GCC" = yes; then
2959 CFLAGS="-O2"
2960 else
2961 CFLAGS=
2964 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2965 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2966 if test "${ac_cv_prog_cc_c89+set}" = set; then
2967 $as_echo_n "(cached) " >&6
2968 else
2969 ac_cv_prog_cc_c89=no
2970 ac_save_CC=$CC
2971 cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h. */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2977 #include <stdarg.h>
2978 #include <stdio.h>
2979 #include <sys/types.h>
2980 #include <sys/stat.h>
2981 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2982 struct buf { int x; };
2983 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2984 static char *e (p, i)
2985 char **p;
2986 int i;
2988 return p[i];
2990 static char *f (char * (*g) (char **, int), char **p, ...)
2992 char *s;
2993 va_list v;
2994 va_start (v,p);
2995 s = g (p, va_arg (v,int));
2996 va_end (v);
2997 return s;
3000 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3001 function prototypes and stuff, but not '\xHH' hex character constants.
3002 These don't provoke an error unfortunately, instead are silently treated
3003 as 'x'. The following induces an error, until -std is added to get
3004 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3005 array size at least. It's necessary to write '\x00'==0 to get something
3006 that's true only with -std. */
3007 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3009 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3010 inside strings and character constants. */
3011 #define FOO(x) 'x'
3012 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3014 int test (int i, double x);
3015 struct s1 {int (*f) (int a);};
3016 struct s2 {int (*f) (double a);};
3017 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3018 int argc;
3019 char **argv;
3021 main ()
3023 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3025 return 0;
3027 _ACEOF
3028 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3029 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3031 CC="$ac_save_CC $ac_arg"
3032 rm -f conftest.$ac_objext
3033 if { (ac_try="$ac_compile"
3034 case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037 esac
3038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3039 $as_echo "$ac_try_echo") >&5
3040 (eval "$ac_compile") 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } && {
3047 test -z "$ac_c_werror_flag" ||
3048 test ! -s conftest.err
3049 } && test -s conftest.$ac_objext; then
3050 ac_cv_prog_cc_c89=$ac_arg
3051 else
3052 $as_echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3058 rm -f core conftest.err conftest.$ac_objext
3059 test "x$ac_cv_prog_cc_c89" != "xno" && break
3060 done
3061 rm -f conftest.$ac_ext
3062 CC=$ac_save_CC
3065 # AC_CACHE_VAL
3066 case "x$ac_cv_prog_cc_c89" in
3068 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3069 $as_echo "none needed" >&6; } ;;
3070 xno)
3071 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3072 $as_echo "unsupported" >&6; } ;;
3074 CC="$CC $ac_cv_prog_cc_c89"
3075 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3076 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3077 esac
3080 ac_ext=c
3081 ac_cpp='$CPP $CPPFLAGS'
3082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086 ac_ext=c
3087 ac_cpp='$CPP $CPPFLAGS'
3088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3092 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3093 # On Suns, sometimes $CPP names a directory.
3094 if test -n "$CPP" && test -d "$CPP"; then
3095 CPP=
3097 if test -z "$CPP"; then
3098 if test "${ac_cv_prog_CPP+set}" = set; then
3099 $as_echo_n "(cached) " >&6
3100 else
3101 # Double quotes because CPP needs to be expanded
3102 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3104 ac_preproc_ok=false
3105 for ac_c_preproc_warn_flag in '' yes
3107 # Use a header file that comes with gcc, so configuring glibc
3108 # with a fresh cross-compiler works.
3109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3110 # <limits.h> exists even on freestanding compilers.
3111 # On the NeXT, cc -E runs the code through the compiler's parser,
3112 # not just through cpp. "Syntax error" is here to catch this case.
3113 cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h. */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119 #ifdef __STDC__
3120 # include <limits.h>
3121 #else
3122 # include <assert.h>
3123 #endif
3124 Syntax error
3125 _ACEOF
3126 if { (ac_try="$ac_cpp conftest.$ac_ext"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3132 $as_echo "$ac_try_echo") >&5
3133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null && {
3140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 }; then
3144 else
3145 $as_echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 # Broken: fails on valid input.
3149 continue
3152 rm -f conftest.err conftest.$ac_ext
3154 # OK, works on sane cases. Now check whether nonexistent headers
3155 # can be detected and how.
3156 cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h. */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3162 #include <ac_nonexistent.h>
3163 _ACEOF
3164 if { (ac_try="$ac_cpp conftest.$ac_ext"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3170 $as_echo "$ac_try_echo") >&5
3171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } >/dev/null && {
3178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 }; then
3181 # Broken: success on invalid input.
3182 continue
3183 else
3184 $as_echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 # Passes both tests.
3188 ac_preproc_ok=:
3189 break
3192 rm -f conftest.err conftest.$ac_ext
3194 done
3195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3196 rm -f conftest.err conftest.$ac_ext
3197 if $ac_preproc_ok; then
3198 break
3201 done
3202 ac_cv_prog_CPP=$CPP
3205 CPP=$ac_cv_prog_CPP
3206 else
3207 ac_cv_prog_CPP=$CPP
3209 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3210 $as_echo "$CPP" >&6; }
3211 ac_preproc_ok=false
3212 for ac_c_preproc_warn_flag in '' yes
3214 # Use a header file that comes with gcc, so configuring glibc
3215 # with a fresh cross-compiler works.
3216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3217 # <limits.h> exists even on freestanding compilers.
3218 # On the NeXT, cc -E runs the code through the compiler's parser,
3219 # not just through cpp. "Syntax error" is here to catch this case.
3220 cat >conftest.$ac_ext <<_ACEOF
3221 /* confdefs.h. */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3226 #ifdef __STDC__
3227 # include <limits.h>
3228 #else
3229 # include <assert.h>
3230 #endif
3231 Syntax error
3232 _ACEOF
3233 if { (ac_try="$ac_cpp conftest.$ac_ext"
3234 case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3239 $as_echo "$ac_try_echo") >&5
3240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null && {
3247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3248 test ! -s conftest.err
3249 }; then
3251 else
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 # Broken: fails on valid input.
3256 continue
3259 rm -f conftest.err conftest.$ac_ext
3261 # OK, works on sane cases. Now check whether nonexistent headers
3262 # can be detected and how.
3263 cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h. */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3269 #include <ac_nonexistent.h>
3270 _ACEOF
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3277 $as_echo "$ac_try_echo") >&5
3278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3279 ac_status=$?
3280 grep -v '^ *+' conftest.er1 >conftest.err
3281 rm -f conftest.er1
3282 cat conftest.err >&5
3283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } >/dev/null && {
3285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3286 test ! -s conftest.err
3287 }; then
3288 # Broken: success on invalid input.
3289 continue
3290 else
3291 $as_echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 # Passes both tests.
3295 ac_preproc_ok=:
3296 break
3299 rm -f conftest.err conftest.$ac_ext
3301 done
3302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3303 rm -f conftest.err conftest.$ac_ext
3304 if $ac_preproc_ok; then
3306 else
3307 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3310 See \`config.log' for more details." >&5
3311 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3312 See \`config.log' for more details." >&2;}
3313 { (exit 1); exit 1; }; }; }
3316 ac_ext=c
3317 ac_cpp='$CPP $CPPFLAGS'
3318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325 # checks for native programs to generate building tool
3327 if test ${cross_compiling} = yes; then
3328 # Extract the first word of "${build}-gcc", so it can be a program name with args.
3329 set dummy ${build}-gcc; ac_word=$2
3330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 $as_echo_n "checking for $ac_word... " >&6; }
3332 if test "${ac_cv_prog_CC_BUILD+set}" = set; then
3333 $as_echo_n "(cached) " >&6
3334 else
3335 if test -n "$CC_BUILD"; then
3336 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345 ac_cv_prog_CC_BUILD="${build}-gcc"
3346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3349 done
3350 done
3351 IFS=$as_save_IFS
3355 CC_BUILD=$ac_cv_prog_CC_BUILD
3356 if test -n "$CC_BUILD"; then
3357 { $as_echo "$as_me:$LINENO: result: $CC_BUILD" >&5
3358 $as_echo "$CC_BUILD" >&6; }
3359 else
3360 { $as_echo "$as_me:$LINENO: result: no" >&5
3361 $as_echo "no" >&6; }
3365 test -z "${CC_BUILD}" && # Extract the first word of "gcc", so it can be a program name with args.
3366 set dummy gcc; ac_word=$2
3367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3368 $as_echo_n "checking for $ac_word... " >&6; }
3369 if test "${ac_cv_prog_CC_BUILD+set}" = set; then
3370 $as_echo_n "(cached) " >&6
3371 else
3372 if test -n "$CC_BUILD"; then
3373 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3374 else
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3378 IFS=$as_save_IFS
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382 ac_cv_prog_CC_BUILD="gcc"
3383 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 break 2
3386 done
3387 done
3388 IFS=$as_save_IFS
3392 CC_BUILD=$ac_cv_prog_CC_BUILD
3393 if test -n "$CC_BUILD"; then
3394 { $as_echo "$as_me:$LINENO: result: $CC_BUILD" >&5
3395 $as_echo "$CC_BUILD" >&6; }
3396 else
3397 { $as_echo "$as_me:$LINENO: result: no" >&5
3398 $as_echo "no" >&6; }
3402 test -z "${CC_BUILD}" && # Extract the first word of "cc", so it can be a program name with args.
3403 set dummy cc; ac_word=$2
3404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if test "${ac_cv_prog_CC_BUILD+set}" = set; then
3407 $as_echo_n "(cached) " >&6
3408 else
3409 if test -n "$CC_BUILD"; then
3410 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3411 else
3412 ac_prog_rejected=no
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3421 ac_prog_rejected=yes
3422 continue
3424 ac_cv_prog_CC_BUILD="cc"
3425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3428 done
3429 done
3430 IFS=$as_save_IFS
3432 if test $ac_prog_rejected = yes; then
3433 # We found a bogon in the path, so make sure we never use it.
3434 set dummy $ac_cv_prog_CC_BUILD
3435 shift
3436 if test $# != 0; then
3437 # We chose a different compiler from the bogus one.
3438 # However, it has the same basename, so the bogon will be chosen
3439 # first if we set CC_BUILD to just the basename; use the full file name.
3440 shift
3441 ac_cv_prog_CC_BUILD="$as_dir/$ac_word${1+' '}$@"
3446 CC_BUILD=$ac_cv_prog_CC_BUILD
3447 if test -n "$CC_BUILD"; then
3448 { $as_echo "$as_me:$LINENO: result: $CC_BUILD" >&5
3449 $as_echo "$CC_BUILD" >&6; }
3450 else
3451 { $as_echo "$as_me:$LINENO: result: no" >&5
3452 $as_echo "no" >&6; }
3456 test -z "${CC_BUILD}" && { { $as_echo "$as_me:$LINENO: error: cannot find native C compiler" >&5
3457 $as_echo "$as_me: error: cannot find native C compiler" >&2;}
3458 { (exit 1); exit 1; }; }
3460 { $as_echo "$as_me:$LINENO: checking for suffix of native executables" >&5
3461 $as_echo_n "checking for suffix of native executables... " >&6; }
3462 rm -f a.* b.* a_out.exe conftest.*
3463 echo > conftest.c "int main() { return 0;}"
3464 ${CC_BUILD} conftest.c || { { $as_echo "$as_me:$LINENO: error: native C compiler is not working" >&5
3465 $as_echo "$as_me: error: native C compiler is not working" >&2;}
3466 { (exit 1); exit 1; }; }
3467 rm -f conftest.c
3468 if test -x a.out -o -x b.out -o -x conftest; then
3469 EXEEXT_BUILD=""
3470 elif test -x a_out.exe -o -x conftest.exe; then
3471 EXEEXT_BUILD=".exe"
3472 elif test -x conftest.* ; then
3473 EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
3475 rm -f a.* b.* a_out.exe conftest.*
3476 { $as_echo "$as_me:$LINENO: result: $EXEEXT_BUILD" >&5
3477 $as_echo "$EXEEXT_BUILD" >&6; }
3478 else
3479 CC_BUILD=${CC}
3480 EXEEXT_BUILD=${EXEEXT}
3488 # get compiler flags right
3490 if test "x$GCC" = xyes; then
3491 XX_CFLAGS="-Wall"
3492 XX_ANSIFLAGS="-pedantic -ansi"
3493 else
3494 case "$host" in
3495 *-dec-osf*)
3496 CFLAGS=
3497 XX_CFLAGS="-std1 -g3"
3498 XX_ANSIFLAGS=
3501 XX_CFLAGS=
3502 XX_ANSIFLAGS=
3504 esac
3510 # auxiliary programs
3512 # Extract the first word of "rm", so it can be a program name with args.
3513 set dummy rm; ac_word=$2
3514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if test "${ac_cv_prog_RMF+set}" = set; then
3517 $as_echo_n "(cached) " >&6
3518 else
3519 if test -n "$RMF"; then
3520 ac_cv_prog_RMF="$RMF" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 ac_cv_prog_RMF="rm -f"
3530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3533 done
3534 done
3535 IFS=$as_save_IFS
3539 RMF=$ac_cv_prog_RMF
3540 if test -n "$RMF"; then
3541 { $as_echo "$as_me:$LINENO: result: $RMF" >&5
3542 $as_echo "$RMF" >&6; }
3543 else
3544 { $as_echo "$as_me:$LINENO: result: no" >&5
3545 $as_echo "no" >&6; }
3549 # Extract the first word of "rmdir", so it can be a program name with args.
3550 set dummy rmdir; ac_word=$2
3551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if test "${ac_cv_prog_RMDIR+set}" = set; then
3554 $as_echo_n "(cached) " >&6
3555 else
3556 if test -n "$RMDIR"; then
3557 ac_cv_prog_RMDIR="$RMDIR" # Let the user override the test.
3558 else
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3566 ac_cv_prog_RMDIR="rmdir"
3567 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 break 2
3570 done
3571 done
3572 IFS=$as_save_IFS
3576 RMDIR=$ac_cv_prog_RMDIR
3577 if test -n "$RMDIR"; then
3578 { $as_echo "$as_me:$LINENO: result: $RMDIR" >&5
3579 $as_echo "$RMDIR" >&6; }
3580 else
3581 { $as_echo "$as_me:$LINENO: result: no" >&5
3582 $as_echo "no" >&6; }
3588 # Since this file will be finally moved to another directory we make
3589 # the path of the install script absolute. This small code snippet has
3590 # been taken from automake's `ylwrap' script.
3592 # Find a good install program. We prefer a C program (faster),
3593 # so one script is as good as another. But avoid the broken or
3594 # incompatible versions:
3595 # SysV /etc/install, /usr/sbin/install
3596 # SunOS /usr/etc/install
3597 # IRIX /sbin/install
3598 # AIX /bin/install
3599 # AmigaOS /C/install, which installs bootblocks on floppy discs
3600 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3601 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3602 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3603 # OS/2's system install, which has a completely different semantic
3604 # ./install, which can be erroneously created by make from ./install.sh.
3605 # Reject install programs that cannot install multiple files.
3606 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3607 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3608 if test -z "$INSTALL"; then
3609 if test "${ac_cv_path_install+set}" = set; then
3610 $as_echo_n "(cached) " >&6
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 # Account for people who put trailing slashes in PATH elements.
3618 case $as_dir/ in
3619 ./ | .// | /cC/* | \
3620 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3621 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3622 /usr/ucb/* ) ;;
3624 # OSF1 and SCO ODT 3.0 have their own names for install.
3625 # Don't use installbsd from OSF since it installs stuff as root
3626 # by default.
3627 for ac_prog in ginstall scoinst install; do
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3630 if test $ac_prog = install &&
3631 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3632 # AIX install. It has an incompatible calling convention.
3634 elif test $ac_prog = install &&
3635 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3636 # program-specific install script used by HP pwplus--don't use.
3638 else
3639 rm -rf conftest.one conftest.two conftest.dir
3640 echo one > conftest.one
3641 echo two > conftest.two
3642 mkdir conftest.dir
3643 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3644 test -s conftest.one && test -s conftest.two &&
3645 test -s conftest.dir/conftest.one &&
3646 test -s conftest.dir/conftest.two
3647 then
3648 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3649 break 3
3653 done
3654 done
3656 esac
3658 done
3659 IFS=$as_save_IFS
3661 rm -rf conftest.one conftest.two conftest.dir
3664 if test "${ac_cv_path_install+set}" = set; then
3665 INSTALL=$ac_cv_path_install
3666 else
3667 # As a last resort, use the slow shell script. Don't cache a
3668 # value for INSTALL within a source directory, because that will
3669 # break other packages using the cache if that directory is
3670 # removed, or if the value is a relative name.
3671 INSTALL=$ac_install_sh
3674 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3675 $as_echo "$INSTALL" >&6; }
3677 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3678 # It thinks the first close brace ends the variable substitution.
3679 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3681 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3683 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3685 case "$INSTALL" in
3688 */*)
3689 INSTALL="`pwd`/$INSTALL" ;;
3690 esac
3693 # checks for header files
3697 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3698 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3699 if test "${ac_cv_path_GREP+set}" = set; then
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -z "$GREP"; then
3703 ac_path_GREP_found=false
3704 # Loop through the user's path and test for each of PROGNAME-LIST
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_prog in grep ggrep; do
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3713 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3714 # Check for GNU ac_path_GREP and select it if it is found.
3715 # Check for GNU $ac_path_GREP
3716 case `"$ac_path_GREP" --version 2>&1` in
3717 *GNU*)
3718 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3720 ac_count=0
3721 $as_echo_n 0123456789 >"conftest.in"
3722 while :
3724 cat "conftest.in" "conftest.in" >"conftest.tmp"
3725 mv "conftest.tmp" "conftest.in"
3726 cp "conftest.in" "conftest.nl"
3727 $as_echo 'GREP' >> "conftest.nl"
3728 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3729 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3730 ac_count=`expr $ac_count + 1`
3731 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3732 # Best one so far, save it but keep looking for a better one
3733 ac_cv_path_GREP="$ac_path_GREP"
3734 ac_path_GREP_max=$ac_count
3736 # 10*(2^10) chars as input seems more than enough
3737 test $ac_count -gt 10 && break
3738 done
3739 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3740 esac
3742 $ac_path_GREP_found && break 3
3743 done
3744 done
3745 done
3746 IFS=$as_save_IFS
3747 if test -z "$ac_cv_path_GREP"; then
3748 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3749 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3750 { (exit 1); exit 1; }; }
3752 else
3753 ac_cv_path_GREP=$GREP
3757 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3758 $as_echo "$ac_cv_path_GREP" >&6; }
3759 GREP="$ac_cv_path_GREP"
3762 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3763 $as_echo_n "checking for egrep... " >&6; }
3764 if test "${ac_cv_path_EGREP+set}" = set; then
3765 $as_echo_n "(cached) " >&6
3766 else
3767 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3768 then ac_cv_path_EGREP="$GREP -E"
3769 else
3770 if test -z "$EGREP"; then
3771 ac_path_EGREP_found=false
3772 # Loop through the user's path and test for each of PROGNAME-LIST
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_prog in egrep; do
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3781 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3782 # Check for GNU ac_path_EGREP and select it if it is found.
3783 # Check for GNU $ac_path_EGREP
3784 case `"$ac_path_EGREP" --version 2>&1` in
3785 *GNU*)
3786 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3788 ac_count=0
3789 $as_echo_n 0123456789 >"conftest.in"
3790 while :
3792 cat "conftest.in" "conftest.in" >"conftest.tmp"
3793 mv "conftest.tmp" "conftest.in"
3794 cp "conftest.in" "conftest.nl"
3795 $as_echo 'EGREP' >> "conftest.nl"
3796 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3798 ac_count=`expr $ac_count + 1`
3799 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3800 # Best one so far, save it but keep looking for a better one
3801 ac_cv_path_EGREP="$ac_path_EGREP"
3802 ac_path_EGREP_max=$ac_count
3804 # 10*(2^10) chars as input seems more than enough
3805 test $ac_count -gt 10 && break
3806 done
3807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3808 esac
3810 $ac_path_EGREP_found && break 3
3811 done
3812 done
3813 done
3814 IFS=$as_save_IFS
3815 if test -z "$ac_cv_path_EGREP"; then
3816 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3817 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3818 { (exit 1); exit 1; }; }
3820 else
3821 ac_cv_path_EGREP=$EGREP
3826 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3827 $as_echo "$ac_cv_path_EGREP" >&6; }
3828 EGREP="$ac_cv_path_EGREP"
3831 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3832 $as_echo_n "checking for ANSI C header files... " >&6; }
3833 if test "${ac_cv_header_stdc+set}" = set; then
3834 $as_echo_n "(cached) " >&6
3835 else
3836 cat >conftest.$ac_ext <<_ACEOF
3837 /* confdefs.h. */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3842 #include <stdlib.h>
3843 #include <stdarg.h>
3844 #include <string.h>
3845 #include <float.h>
3848 main ()
3852 return 0;
3854 _ACEOF
3855 rm -f conftest.$ac_objext
3856 if { (ac_try="$ac_compile"
3857 case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860 esac
3861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3862 $as_echo "$ac_try_echo") >&5
3863 (eval "$ac_compile") 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } && {
3870 test -z "$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3872 } && test -s conftest.$ac_objext; then
3873 ac_cv_header_stdc=yes
3874 else
3875 $as_echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3878 ac_cv_header_stdc=no
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 if test $ac_cv_header_stdc = yes; then
3884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3885 cat >conftest.$ac_ext <<_ACEOF
3886 /* confdefs.h. */
3887 _ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3891 #include <string.h>
3893 _ACEOF
3894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3895 $EGREP "memchr" >/dev/null 2>&1; then
3897 else
3898 ac_cv_header_stdc=no
3900 rm -f conftest*
3904 if test $ac_cv_header_stdc = yes; then
3905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3906 cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h. */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3912 #include <stdlib.h>
3914 _ACEOF
3915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3916 $EGREP "free" >/dev/null 2>&1; then
3918 else
3919 ac_cv_header_stdc=no
3921 rm -f conftest*
3925 if test $ac_cv_header_stdc = yes; then
3926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3927 if test "$cross_compiling" = yes; then
3929 else
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h. */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 #include <ctype.h>
3937 #include <stdlib.h>
3938 #if ((' ' & 0x0FF) == 0x020)
3939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3941 #else
3942 # define ISLOWER(c) \
3943 (('a' <= (c) && (c) <= 'i') \
3944 || ('j' <= (c) && (c) <= 'r') \
3945 || ('s' <= (c) && (c) <= 'z'))
3946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3947 #endif
3949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3951 main ()
3953 int i;
3954 for (i = 0; i < 256; i++)
3955 if (XOR (islower (i), ISLOWER (i))
3956 || toupper (i) != TOUPPER (i))
3957 return 2;
3958 return 0;
3960 _ACEOF
3961 rm -f conftest$ac_exeext
3962 if { (ac_try="$ac_link"
3963 case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966 esac
3967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3968 $as_echo "$ac_try_echo") >&5
3969 (eval "$ac_link") 2>&5
3970 ac_status=$?
3971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3973 { (case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976 esac
3977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3978 $as_echo "$ac_try_echo") >&5
3979 (eval "$ac_try") 2>&5
3980 ac_status=$?
3981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
3984 else
3985 $as_echo "$as_me: program exited with status $ac_status" >&5
3986 $as_echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3989 ( exit $ac_status )
3990 ac_cv_header_stdc=no
3992 rm -rf conftest.dSYM
3993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3999 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4000 $as_echo "$ac_cv_header_stdc" >&6; }
4001 if test $ac_cv_header_stdc = yes; then
4003 cat >>confdefs.h <<\_ACEOF
4004 #define STDC_HEADERS 1
4005 _ACEOF
4009 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4019 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4020 inttypes.h stdint.h unistd.h
4022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4023 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4024 $as_echo_n "checking for $ac_header... " >&6; }
4025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4026 $as_echo_n "(cached) " >&6
4027 else
4028 cat >conftest.$ac_ext <<_ACEOF
4029 /* confdefs.h. */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4034 $ac_includes_default
4036 #include <$ac_header>
4037 _ACEOF
4038 rm -f conftest.$ac_objext
4039 if { (ac_try="$ac_compile"
4040 case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4043 esac
4044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4045 $as_echo "$ac_try_echo") >&5
4046 (eval "$ac_compile") 2>conftest.er1
4047 ac_status=$?
4048 grep -v '^ *+' conftest.er1 >conftest.err
4049 rm -f conftest.er1
4050 cat conftest.err >&5
4051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } && {
4053 test -z "$ac_c_werror_flag" ||
4054 test ! -s conftest.err
4055 } && test -s conftest.$ac_objext; then
4056 eval "$as_ac_Header=yes"
4057 else
4058 $as_echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4061 eval "$as_ac_Header=no"
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_res=`eval 'as_val=${'$as_ac_Header'}
4067 $as_echo "$as_val"'`
4068 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4069 $as_echo "$ac_res" >&6; }
4070 as_val=`eval 'as_val=${'$as_ac_Header'}
4071 $as_echo "$as_val"'`
4072 if test "x$as_val" = x""yes; then
4073 cat >>confdefs.h <<_ACEOF
4074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4075 _ACEOF
4079 done
4084 for ac_header in fcntl.h unistd.h
4086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4088 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4089 $as_echo_n "checking for $ac_header... " >&6; }
4090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4091 $as_echo_n "(cached) " >&6
4093 ac_res=`eval 'as_val=${'$as_ac_Header'}
4094 $as_echo "$as_val"'`
4095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4096 $as_echo "$ac_res" >&6; }
4097 else
4098 # Is the header compilable?
4099 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4100 $as_echo_n "checking $ac_header usability... " >&6; }
4101 cat >conftest.$ac_ext <<_ACEOF
4102 /* confdefs.h. */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4107 $ac_includes_default
4108 #include <$ac_header>
4109 _ACEOF
4110 rm -f conftest.$ac_objext
4111 if { (ac_try="$ac_compile"
4112 case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115 esac
4116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4117 $as_echo "$ac_try_echo") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } && {
4125 test -z "$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 } && test -s conftest.$ac_objext; then
4128 ac_header_compiler=yes
4129 else
4130 $as_echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 ac_header_compiler=no
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4138 $as_echo "$ac_header_compiler" >&6; }
4140 # Is the header present?
4141 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4142 $as_echo_n "checking $ac_header presence... " >&6; }
4143 cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h. */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4149 #include <$ac_header>
4150 _ACEOF
4151 if { (ac_try="$ac_cpp conftest.$ac_ext"
4152 case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155 esac
4156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4157 $as_echo "$ac_try_echo") >&5
4158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4159 ac_status=$?
4160 grep -v '^ *+' conftest.er1 >conftest.err
4161 rm -f conftest.er1
4162 cat conftest.err >&5
4163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } >/dev/null && {
4165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4166 test ! -s conftest.err
4167 }; then
4168 ac_header_preproc=yes
4169 else
4170 $as_echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 ac_header_preproc=no
4176 rm -f conftest.err conftest.$ac_ext
4177 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4178 $as_echo "$ac_header_preproc" >&6; }
4180 # So? What about this header?
4181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4182 yes:no: )
4183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4184 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4186 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4187 ac_header_preproc=yes
4189 no:yes:* )
4190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4191 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4193 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4195 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4197 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4199 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4201 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4202 ( cat <<\_ASBOX
4203 ## ---------------------------------- ##
4204 ## Report this to freetype@nongnu.org ##
4205 ## ---------------------------------- ##
4206 _ASBOX
4207 ) | sed "s/^/$as_me: WARNING: /" >&2
4209 esac
4210 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4211 $as_echo_n "checking for $ac_header... " >&6; }
4212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4213 $as_echo_n "(cached) " >&6
4214 else
4215 eval "$as_ac_Header=\$ac_header_preproc"
4217 ac_res=`eval 'as_val=${'$as_ac_Header'}
4218 $as_echo "$as_val"'`
4219 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4220 $as_echo "$ac_res" >&6; }
4223 as_val=`eval 'as_val=${'$as_ac_Header'}
4224 $as_echo "$as_val"'`
4225 if test "x$as_val" = x""yes; then
4226 cat >>confdefs.h <<_ACEOF
4227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4228 _ACEOF
4232 done
4236 # checks for typedefs, structures, and compiler characteristics
4238 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4239 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4240 if test "${ac_cv_c_const+set}" = set; then
4241 $as_echo_n "(cached) " >&6
4242 else
4243 cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h. */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4251 main ()
4253 /* FIXME: Include the comments suggested by Paul. */
4254 #ifndef __cplusplus
4255 /* Ultrix mips cc rejects this. */
4256 typedef int charset[2];
4257 const charset cs;
4258 /* SunOS 4.1.1 cc rejects this. */
4259 char const *const *pcpcc;
4260 char **ppc;
4261 /* NEC SVR4.0.2 mips cc rejects this. */
4262 struct point {int x, y;};
4263 static struct point const zero = {0,0};
4264 /* AIX XL C 1.02.0.0 rejects this.
4265 It does not let you subtract one const X* pointer from another in
4266 an arm of an if-expression whose if-part is not a constant
4267 expression */
4268 const char *g = "string";
4269 pcpcc = &g + (g ? g-g : 0);
4270 /* HPUX 7.0 cc rejects these. */
4271 ++pcpcc;
4272 ppc = (char**) pcpcc;
4273 pcpcc = (char const *const *) ppc;
4274 { /* SCO 3.2v4 cc rejects this. */
4275 char *t;
4276 char const *s = 0 ? (char *) 0 : (char const *) 0;
4278 *t++ = 0;
4279 if (s) return 0;
4281 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4282 int x[] = {25, 17};
4283 const int *foo = &x[0];
4284 ++foo;
4286 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4287 typedef const int *iptr;
4288 iptr p = 0;
4289 ++p;
4291 { /* AIX XL C 1.02.0.0 rejects this saying
4292 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4293 struct s { int j; const int *ap[3]; };
4294 struct s *b; b->j = 5;
4296 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4297 const int foo = 10;
4298 if (!foo) return 0;
4300 return !cs[0] && !zero.x;
4301 #endif
4304 return 0;
4306 _ACEOF
4307 rm -f conftest.$ac_objext
4308 if { (ac_try="$ac_compile"
4309 case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312 esac
4313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4314 $as_echo "$ac_try_echo") >&5
4315 (eval "$ac_compile") 2>conftest.er1
4316 ac_status=$?
4317 grep -v '^ *+' conftest.er1 >conftest.err
4318 rm -f conftest.er1
4319 cat conftest.err >&5
4320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } && {
4322 test -z "$ac_c_werror_flag" ||
4323 test ! -s conftest.err
4324 } && test -s conftest.$ac_objext; then
4325 ac_cv_c_const=yes
4326 else
4327 $as_echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 ac_cv_c_const=no
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4336 $as_echo "$ac_cv_c_const" >&6; }
4337 if test $ac_cv_c_const = no; then
4339 cat >>confdefs.h <<\_ACEOF
4340 #define const /**/
4341 _ACEOF
4345 # The cast to long int works around a bug in the HP C Compiler
4346 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4347 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4348 # This bug is HP SR number 8606223364.
4349 { $as_echo "$as_me:$LINENO: checking size of int" >&5
4350 $as_echo_n "checking size of int... " >&6; }
4351 if test "${ac_cv_sizeof_int+set}" = set; then
4352 $as_echo_n "(cached) " >&6
4353 else
4354 if test "$cross_compiling" = yes; then
4355 # Depending upon the size, compute the lo and hi bounds.
4356 cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h. */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 $ac_includes_default
4364 main ()
4366 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
4367 test_array [0] = 0
4370 return 0;
4372 _ACEOF
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4375 case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378 esac
4379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4380 $as_echo "$ac_try_echo") >&5
4381 (eval "$ac_compile") 2>conftest.er1
4382 ac_status=$?
4383 grep -v '^ *+' conftest.er1 >conftest.err
4384 rm -f conftest.er1
4385 cat conftest.err >&5
4386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } && {
4388 test -z "$ac_c_werror_flag" ||
4389 test ! -s conftest.err
4390 } && test -s conftest.$ac_objext; then
4391 ac_lo=0 ac_mid=0
4392 while :; do
4393 cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h. */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4399 $ac_includes_default
4401 main ()
4403 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
4404 test_array [0] = 0
4407 return 0;
4409 _ACEOF
4410 rm -f conftest.$ac_objext
4411 if { (ac_try="$ac_compile"
4412 case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4415 esac
4416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4417 $as_echo "$ac_try_echo") >&5
4418 (eval "$ac_compile") 2>conftest.er1
4419 ac_status=$?
4420 grep -v '^ *+' conftest.er1 >conftest.err
4421 rm -f conftest.er1
4422 cat conftest.err >&5
4423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } && {
4425 test -z "$ac_c_werror_flag" ||
4426 test ! -s conftest.err
4427 } && test -s conftest.$ac_objext; then
4428 ac_hi=$ac_mid; break
4429 else
4430 $as_echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 ac_lo=`expr $ac_mid + 1`
4434 if test $ac_lo -le $ac_mid; then
4435 ac_lo= ac_hi=
4436 break
4438 ac_mid=`expr 2 '*' $ac_mid + 1`
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 done
4443 else
4444 $as_echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h. */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 $ac_includes_default
4455 main ()
4457 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
4458 test_array [0] = 0
4461 return 0;
4463 _ACEOF
4464 rm -f conftest.$ac_objext
4465 if { (ac_try="$ac_compile"
4466 case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4469 esac
4470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4471 $as_echo "$ac_try_echo") >&5
4472 (eval "$ac_compile") 2>conftest.er1
4473 ac_status=$?
4474 grep -v '^ *+' conftest.er1 >conftest.err
4475 rm -f conftest.er1
4476 cat conftest.err >&5
4477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } && {
4479 test -z "$ac_c_werror_flag" ||
4480 test ! -s conftest.err
4481 } && test -s conftest.$ac_objext; then
4482 ac_hi=-1 ac_mid=-1
4483 while :; do
4484 cat >conftest.$ac_ext <<_ACEOF
4485 /* confdefs.h. */
4486 _ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4490 $ac_includes_default
4492 main ()
4494 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
4495 test_array [0] = 0
4498 return 0;
4500 _ACEOF
4501 rm -f conftest.$ac_objext
4502 if { (ac_try="$ac_compile"
4503 case "(($ac_try" in
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4506 esac
4507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4508 $as_echo "$ac_try_echo") >&5
4509 (eval "$ac_compile") 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } && {
4516 test -z "$ac_c_werror_flag" ||
4517 test ! -s conftest.err
4518 } && test -s conftest.$ac_objext; then
4519 ac_lo=$ac_mid; break
4520 else
4521 $as_echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4524 ac_hi=`expr '(' $ac_mid ')' - 1`
4525 if test $ac_mid -le $ac_hi; then
4526 ac_lo= ac_hi=
4527 break
4529 ac_mid=`expr 2 '*' $ac_mid`
4532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4533 done
4534 else
4535 $as_echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4538 ac_lo= ac_hi=
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 # Binary search between lo and hi bounds.
4546 while test "x$ac_lo" != "x$ac_hi"; do
4547 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4548 cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h. */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4554 $ac_includes_default
4556 main ()
4558 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
4559 test_array [0] = 0
4562 return 0;
4564 _ACEOF
4565 rm -f conftest.$ac_objext
4566 if { (ac_try="$ac_compile"
4567 case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4572 $as_echo "$ac_try_echo") >&5
4573 (eval "$ac_compile") 2>conftest.er1
4574 ac_status=$?
4575 grep -v '^ *+' conftest.er1 >conftest.err
4576 rm -f conftest.er1
4577 cat conftest.err >&5
4578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } && {
4580 test -z "$ac_c_werror_flag" ||
4581 test ! -s conftest.err
4582 } && test -s conftest.$ac_objext; then
4583 ac_hi=$ac_mid
4584 else
4585 $as_echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 ac_lo=`expr '(' $ac_mid ')' + 1`
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 done
4593 case $ac_lo in
4594 ?*) ac_cv_sizeof_int=$ac_lo;;
4595 '') if test "$ac_cv_type_int" = yes; then
4596 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4598 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
4599 See \`config.log' for more details." >&5
4600 $as_echo "$as_me: error: cannot compute sizeof (int)
4601 See \`config.log' for more details." >&2;}
4602 { (exit 77); exit 77; }; }; }
4603 else
4604 ac_cv_sizeof_int=0
4605 fi ;;
4606 esac
4607 else
4608 cat >conftest.$ac_ext <<_ACEOF
4609 /* confdefs.h. */
4610 _ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4614 $ac_includes_default
4615 static long int longval () { return (long int) (sizeof (int)); }
4616 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
4617 #include <stdio.h>
4618 #include <stdlib.h>
4620 main ()
4623 FILE *f = fopen ("conftest.val", "w");
4624 if (! f)
4625 return 1;
4626 if (((long int) (sizeof (int))) < 0)
4628 long int i = longval ();
4629 if (i != ((long int) (sizeof (int))))
4630 return 1;
4631 fprintf (f, "%ld", i);
4633 else
4635 unsigned long int i = ulongval ();
4636 if (i != ((long int) (sizeof (int))))
4637 return 1;
4638 fprintf (f, "%lu", i);
4640 /* Do not output a trailing newline, as this causes \r\n confusion
4641 on some platforms. */
4642 return ferror (f) || fclose (f) != 0;
4645 return 0;
4647 _ACEOF
4648 rm -f conftest$ac_exeext
4649 if { (ac_try="$ac_link"
4650 case "(($ac_try" in
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4653 esac
4654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4655 $as_echo "$ac_try_echo") >&5
4656 (eval "$ac_link") 2>&5
4657 ac_status=$?
4658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4660 { (case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4663 esac
4664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4665 $as_echo "$ac_try_echo") >&5
4666 (eval "$ac_try") 2>&5
4667 ac_status=$?
4668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 ac_cv_sizeof_int=`cat conftest.val`
4671 else
4672 $as_echo "$as_me: program exited with status $ac_status" >&5
4673 $as_echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 ( exit $ac_status )
4677 if test "$ac_cv_type_int" = yes; then
4678 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4680 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
4681 See \`config.log' for more details." >&5
4682 $as_echo "$as_me: error: cannot compute sizeof (int)
4683 See \`config.log' for more details." >&2;}
4684 { (exit 77); exit 77; }; }; }
4685 else
4686 ac_cv_sizeof_int=0
4689 rm -rf conftest.dSYM
4690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4692 rm -f conftest.val
4694 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4695 $as_echo "$ac_cv_sizeof_int" >&6; }
4699 cat >>confdefs.h <<_ACEOF
4700 #define SIZEOF_INT $ac_cv_sizeof_int
4701 _ACEOF
4704 # The cast to long int works around a bug in the HP C Compiler
4705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4707 # This bug is HP SR number 8606223364.
4708 { $as_echo "$as_me:$LINENO: checking size of long" >&5
4709 $as_echo_n "checking size of long... " >&6; }
4710 if test "${ac_cv_sizeof_long+set}" = set; then
4711 $as_echo_n "(cached) " >&6
4712 else
4713 if test "$cross_compiling" = yes; then
4714 # Depending upon the size, compute the lo and hi bounds.
4715 cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h. */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721 $ac_includes_default
4723 main ()
4725 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
4726 test_array [0] = 0
4729 return 0;
4731 _ACEOF
4732 rm -f conftest.$ac_objext
4733 if { (ac_try="$ac_compile"
4734 case "(($ac_try" in
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4737 esac
4738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4739 $as_echo "$ac_try_echo") >&5
4740 (eval "$ac_compile") 2>conftest.er1
4741 ac_status=$?
4742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } && {
4747 test -z "$ac_c_werror_flag" ||
4748 test ! -s conftest.err
4749 } && test -s conftest.$ac_objext; then
4750 ac_lo=0 ac_mid=0
4751 while :; do
4752 cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h. */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4758 $ac_includes_default
4760 main ()
4762 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
4763 test_array [0] = 0
4766 return 0;
4768 _ACEOF
4769 rm -f conftest.$ac_objext
4770 if { (ac_try="$ac_compile"
4771 case "(($ac_try" in
4772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4773 *) ac_try_echo=$ac_try;;
4774 esac
4775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4776 $as_echo "$ac_try_echo") >&5
4777 (eval "$ac_compile") 2>conftest.er1
4778 ac_status=$?
4779 grep -v '^ *+' conftest.er1 >conftest.err
4780 rm -f conftest.er1
4781 cat conftest.err >&5
4782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } && {
4784 test -z "$ac_c_werror_flag" ||
4785 test ! -s conftest.err
4786 } && test -s conftest.$ac_objext; then
4787 ac_hi=$ac_mid; break
4788 else
4789 $as_echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4792 ac_lo=`expr $ac_mid + 1`
4793 if test $ac_lo -le $ac_mid; then
4794 ac_lo= ac_hi=
4795 break
4797 ac_mid=`expr 2 '*' $ac_mid + 1`
4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 done
4802 else
4803 $as_echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4806 cat >conftest.$ac_ext <<_ACEOF
4807 /* confdefs.h. */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 $ac_includes_default
4814 main ()
4816 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
4817 test_array [0] = 0
4820 return 0;
4822 _ACEOF
4823 rm -f conftest.$ac_objext
4824 if { (ac_try="$ac_compile"
4825 case "(($ac_try" in
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4828 esac
4829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4830 $as_echo "$ac_try_echo") >&5
4831 (eval "$ac_compile") 2>conftest.er1
4832 ac_status=$?
4833 grep -v '^ *+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
4836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } && {
4838 test -z "$ac_c_werror_flag" ||
4839 test ! -s conftest.err
4840 } && test -s conftest.$ac_objext; then
4841 ac_hi=-1 ac_mid=-1
4842 while :; do
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h. */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849 $ac_includes_default
4851 main ()
4853 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
4854 test_array [0] = 0
4857 return 0;
4859 _ACEOF
4860 rm -f conftest.$ac_objext
4861 if { (ac_try="$ac_compile"
4862 case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865 esac
4866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4867 $as_echo "$ac_try_echo") >&5
4868 (eval "$ac_compile") 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } && {
4875 test -z "$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 } && test -s conftest.$ac_objext; then
4878 ac_lo=$ac_mid; break
4879 else
4880 $as_echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 ac_hi=`expr '(' $ac_mid ')' - 1`
4884 if test $ac_mid -le $ac_hi; then
4885 ac_lo= ac_hi=
4886 break
4888 ac_mid=`expr 2 '*' $ac_mid`
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 done
4893 else
4894 $as_echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4897 ac_lo= ac_hi=
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904 # Binary search between lo and hi bounds.
4905 while test "x$ac_lo" != "x$ac_hi"; do
4906 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 $ac_includes_default
4915 main ()
4917 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
4918 test_array [0] = 0
4921 return 0;
4923 _ACEOF
4924 rm -f conftest.$ac_objext
4925 if { (ac_try="$ac_compile"
4926 case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929 esac
4930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4931 $as_echo "$ac_try_echo") >&5
4932 (eval "$ac_compile") 2>conftest.er1
4933 ac_status=$?
4934 grep -v '^ *+' conftest.er1 >conftest.err
4935 rm -f conftest.er1
4936 cat conftest.err >&5
4937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } && {
4939 test -z "$ac_c_werror_flag" ||
4940 test ! -s conftest.err
4941 } && test -s conftest.$ac_objext; then
4942 ac_hi=$ac_mid
4943 else
4944 $as_echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 ac_lo=`expr '(' $ac_mid ')' + 1`
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 done
4952 case $ac_lo in
4953 ?*) ac_cv_sizeof_long=$ac_lo;;
4954 '') if test "$ac_cv_type_long" = yes; then
4955 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4957 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
4958 See \`config.log' for more details." >&5
4959 $as_echo "$as_me: error: cannot compute sizeof (long)
4960 See \`config.log' for more details." >&2;}
4961 { (exit 77); exit 77; }; }; }
4962 else
4963 ac_cv_sizeof_long=0
4964 fi ;;
4965 esac
4966 else
4967 cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h. */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4973 $ac_includes_default
4974 static long int longval () { return (long int) (sizeof (long)); }
4975 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
4976 #include <stdio.h>
4977 #include <stdlib.h>
4979 main ()
4982 FILE *f = fopen ("conftest.val", "w");
4983 if (! f)
4984 return 1;
4985 if (((long int) (sizeof (long))) < 0)
4987 long int i = longval ();
4988 if (i != ((long int) (sizeof (long))))
4989 return 1;
4990 fprintf (f, "%ld", i);
4992 else
4994 unsigned long int i = ulongval ();
4995 if (i != ((long int) (sizeof (long))))
4996 return 1;
4997 fprintf (f, "%lu", i);
4999 /* Do not output a trailing newline, as this causes \r\n confusion
5000 on some platforms. */
5001 return ferror (f) || fclose (f) != 0;
5004 return 0;
5006 _ACEOF
5007 rm -f conftest$ac_exeext
5008 if { (ac_try="$ac_link"
5009 case "(($ac_try" in
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5012 esac
5013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5014 $as_echo "$ac_try_echo") >&5
5015 (eval "$ac_link") 2>&5
5016 ac_status=$?
5017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5019 { (case "(($ac_try" in
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5022 esac
5023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5024 $as_echo "$ac_try_echo") >&5
5025 (eval "$ac_try") 2>&5
5026 ac_status=$?
5027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 ac_cv_sizeof_long=`cat conftest.val`
5030 else
5031 $as_echo "$as_me: program exited with status $ac_status" >&5
5032 $as_echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5035 ( exit $ac_status )
5036 if test "$ac_cv_type_long" = yes; then
5037 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5039 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5040 See \`config.log' for more details." >&5
5041 $as_echo "$as_me: error: cannot compute sizeof (long)
5042 See \`config.log' for more details." >&2;}
5043 { (exit 77); exit 77; }; }; }
5044 else
5045 ac_cv_sizeof_long=0
5048 rm -rf conftest.dSYM
5049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5051 rm -f conftest.val
5053 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5054 $as_echo "$ac_cv_sizeof_long" >&6; }
5058 cat >>confdefs.h <<_ACEOF
5059 #define SIZEOF_LONG $ac_cv_sizeof_long
5060 _ACEOF
5065 # check whether cpp computation of size of int and long in ftconfig.in works
5067 { $as_echo "$as_me:$LINENO: checking cpp computation of bit length in ftconfig.in works" >&5
5068 $as_echo_n "checking cpp computation of bit length in ftconfig.in works... " >&6; }
5069 orig_CPPFLAGS="${CPPFLAGS}"
5070 CPPFLAGS="-I${srcdir} -I. ${CPPFLAGS}"
5071 ac_clean_files="ft2build.h ftoption.h ftstdlib.h"
5072 touch ft2build.h ftoption.h ftstdlib.h
5074 cat > conftest.c <<\_ACEOF
5075 #include <limits.h>
5076 #define FT_CONFIG_OPTIONS_H "ftoption.h"
5077 #define FT_CONFIG_STANDARD_LIBRARY_H "ftstdlib.h"
5078 #define FT_UINT_MAX UINT_MAX
5079 #define FT_ULONG_MAX ULONG_MAX
5080 #include "ftconfig.in"
5081 _ACEOF
5082 echo >> conftest.c "#if FT_SIZEOF_INT == "${ac_cv_sizeof_int}
5083 echo >> conftest.c "ac_cpp_ft_sizeof_int="${ac_cv_sizeof_int}
5084 echo >> conftest.c "#endif"
5085 echo >> conftest.c "#if FT_SIZEOF_LONG == "${ac_cv_sizeof_long}
5086 echo >> conftest.c "ac_cpp_ft_sizeof_long="${ac_cv_sizeof_long}
5087 echo >> conftest.c "#endif"
5089 ${CPP} ${CPPFLAGS} conftest.c | ${GREP} ac_cpp_ft > conftest.sh
5090 eval `cat conftest.sh`
5091 ${RMF} conftest.c conftest.sh confft2build.h ftoption.h ftstdlib.h
5093 if test x != "x${ac_cpp_ft_sizeof_int}" \
5094 -a x != x"${ac_cpp_ft_sizeof_long}"; then
5095 unset ft_use_autoconf_sizeof_types
5096 else
5097 ft_use_autoconf_sizeof_types=yes
5100 # Check whether --enable-biarch-config was given.
5101 if test "${enable_biarch_config+set}" = set; then
5102 enableval=$enable_biarch_config;
5106 case :${ft_use_autoconf_sizeof_types}:${enable_biarch_config}: in
5107 :yes:yes:)
5108 { $as_echo "$as_me:$LINENO: result: broken but use it" >&5
5109 $as_echo "broken but use it" >&6; }
5110 unset ft_use_autoconf_sizeof_types
5112 ::no:)
5113 { $as_echo "$as_me:$LINENO: result: works but ignore it" >&5
5114 $as_echo "works but ignore it" >&6; }
5115 ft_use_autoconf_sizeof_types=yes
5117 ::yes: | :::)
5118 { $as_echo "$as_me:$LINENO: result: yes" >&5
5119 $as_echo "yes" >&6; }
5120 unset ft_use_autoconf_sizeof_types
5123 { $as_echo "$as_me:$LINENO: result: no" >&5
5124 $as_echo "no" >&6; }
5125 ft_use_autoconf_sizeof_types=yes
5127 esac
5129 if test x"${ft_use_autoconf_sizeof_types}" = xyes; then
5130 cat >>confdefs.h <<\_ACEOF
5131 #define FT_USE_AUTOCONF_SIZEOF_TYPES 1
5132 _ACEOF
5136 CPPFLAGS="${orig_CPPFLAGS}"
5139 # checks for library functions
5141 # Here we check whether we can use our mmap file component.
5145 for ac_header in stdlib.h unistd.h
5147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5150 $as_echo_n "checking for $ac_header... " >&6; }
5151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5152 $as_echo_n "(cached) " >&6
5154 ac_res=`eval 'as_val=${'$as_ac_Header'}
5155 $as_echo "$as_val"'`
5156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5157 $as_echo "$ac_res" >&6; }
5158 else
5159 # Is the header compilable?
5160 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5161 $as_echo_n "checking $ac_header usability... " >&6; }
5162 cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h. */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 $ac_includes_default
5169 #include <$ac_header>
5170 _ACEOF
5171 rm -f conftest.$ac_objext
5172 if { (ac_try="$ac_compile"
5173 case "(($ac_try" in
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5176 esac
5177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5178 $as_echo "$ac_try_echo") >&5
5179 (eval "$ac_compile") 2>conftest.er1
5180 ac_status=$?
5181 grep -v '^ *+' conftest.er1 >conftest.err
5182 rm -f conftest.er1
5183 cat conftest.err >&5
5184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } && {
5186 test -z "$ac_c_werror_flag" ||
5187 test ! -s conftest.err
5188 } && test -s conftest.$ac_objext; then
5189 ac_header_compiler=yes
5190 else
5191 $as_echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5194 ac_header_compiler=no
5197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5199 $as_echo "$ac_header_compiler" >&6; }
5201 # Is the header present?
5202 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5203 $as_echo_n "checking $ac_header presence... " >&6; }
5204 cat >conftest.$ac_ext <<_ACEOF
5205 /* confdefs.h. */
5206 _ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 #include <$ac_header>
5211 _ACEOF
5212 if { (ac_try="$ac_cpp conftest.$ac_ext"
5213 case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5216 esac
5217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5218 $as_echo "$ac_try_echo") >&5
5219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5220 ac_status=$?
5221 grep -v '^ *+' conftest.er1 >conftest.err
5222 rm -f conftest.er1
5223 cat conftest.err >&5
5224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } >/dev/null && {
5226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5227 test ! -s conftest.err
5228 }; then
5229 ac_header_preproc=yes
5230 else
5231 $as_echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5234 ac_header_preproc=no
5237 rm -f conftest.err conftest.$ac_ext
5238 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5239 $as_echo "$ac_header_preproc" >&6; }
5241 # So? What about this header?
5242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5243 yes:no: )
5244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5245 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5247 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5248 ac_header_preproc=yes
5250 no:yes:* )
5251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5252 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5254 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5256 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5258 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5260 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5262 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5263 ( cat <<\_ASBOX
5264 ## ---------------------------------- ##
5265 ## Report this to freetype@nongnu.org ##
5266 ## ---------------------------------- ##
5267 _ASBOX
5268 ) | sed "s/^/$as_me: WARNING: /" >&2
5270 esac
5271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5272 $as_echo_n "checking for $ac_header... " >&6; }
5273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5274 $as_echo_n "(cached) " >&6
5275 else
5276 eval "$as_ac_Header=\$ac_header_preproc"
5278 ac_res=`eval 'as_val=${'$as_ac_Header'}
5279 $as_echo "$as_val"'`
5280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5281 $as_echo "$ac_res" >&6; }
5284 as_val=`eval 'as_val=${'$as_ac_Header'}
5285 $as_echo "$as_val"'`
5286 if test "x$as_val" = x""yes; then
5287 cat >>confdefs.h <<_ACEOF
5288 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5289 _ACEOF
5293 done
5296 for ac_func in getpagesize
5298 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5299 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5300 $as_echo_n "checking for $ac_func... " >&6; }
5301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5302 $as_echo_n "(cached) " >&6
5303 else
5304 cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h. */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5312 #define $ac_func innocuous_$ac_func
5314 /* System header to define __stub macros and hopefully few prototypes,
5315 which can conflict with char $ac_func (); below.
5316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5317 <limits.h> exists even on freestanding compilers. */
5319 #ifdef __STDC__
5320 # include <limits.h>
5321 #else
5322 # include <assert.h>
5323 #endif
5325 #undef $ac_func
5327 /* Override any GCC internal prototype to avoid an error.
5328 Use char because int might match the return type of a GCC
5329 builtin and then its argument prototype would still apply. */
5330 #ifdef __cplusplus
5331 extern "C"
5332 #endif
5333 char $ac_func ();
5334 /* The GNU C library defines this for functions which it implements
5335 to always fail with ENOSYS. Some functions are actually named
5336 something starting with __ and the normal name is an alias. */
5337 #if defined __stub_$ac_func || defined __stub___$ac_func
5338 choke me
5339 #endif
5342 main ()
5344 return $ac_func ();
5346 return 0;
5348 _ACEOF
5349 rm -f conftest.$ac_objext conftest$ac_exeext
5350 if { (ac_try="$ac_link"
5351 case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5354 esac
5355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5356 $as_echo "$ac_try_echo") >&5
5357 (eval "$ac_link") 2>conftest.er1
5358 ac_status=$?
5359 grep -v '^ *+' conftest.er1 >conftest.err
5360 rm -f conftest.er1
5361 cat conftest.err >&5
5362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } && {
5364 test -z "$ac_c_werror_flag" ||
5365 test ! -s conftest.err
5366 } && test -s conftest$ac_exeext && {
5367 test "$cross_compiling" = yes ||
5368 $as_test_x conftest$ac_exeext
5369 }; then
5370 eval "$as_ac_var=yes"
5371 else
5372 $as_echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5375 eval "$as_ac_var=no"
5378 rm -rf conftest.dSYM
5379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5380 conftest$ac_exeext conftest.$ac_ext
5382 ac_res=`eval 'as_val=${'$as_ac_var'}
5383 $as_echo "$as_val"'`
5384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5385 $as_echo "$ac_res" >&6; }
5386 as_val=`eval 'as_val=${'$as_ac_var'}
5387 $as_echo "$as_val"'`
5388 if test "x$as_val" = x""yes; then
5389 cat >>confdefs.h <<_ACEOF
5390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5391 _ACEOF
5394 done
5396 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
5397 $as_echo_n "checking for working mmap... " >&6; }
5398 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5399 $as_echo_n "(cached) " >&6
5400 else
5401 if test "$cross_compiling" = yes; then
5402 ac_cv_func_mmap_fixed_mapped=no
5403 else
5404 cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h. */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5410 $ac_includes_default
5411 /* malloc might have been renamed as rpl_malloc. */
5412 #undef malloc
5414 /* Thanks to Mike Haertel and Jim Avera for this test.
5415 Here is a matrix of mmap possibilities:
5416 mmap private not fixed
5417 mmap private fixed at somewhere currently unmapped
5418 mmap private fixed at somewhere already mapped
5419 mmap shared not fixed
5420 mmap shared fixed at somewhere currently unmapped
5421 mmap shared fixed at somewhere already mapped
5422 For private mappings, we should verify that changes cannot be read()
5423 back from the file, nor mmap's back from the file at a different
5424 address. (There have been systems where private was not correctly
5425 implemented like the infamous i386 svr4.0, and systems where the
5426 VM page cache was not coherent with the file system buffer cache
5427 like early versions of FreeBSD and possibly contemporary NetBSD.)
5428 For shared mappings, we should conversely verify that changes get
5429 propagated back to all the places they're supposed to be.
5431 Grep wants private fixed already mapped.
5432 The main things grep needs to know about mmap are:
5433 * does it exist and is it safe to write into the mmap'd area
5434 * how to use it (BSD variants) */
5436 #include <fcntl.h>
5437 #include <sys/mman.h>
5439 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5440 char *malloc ();
5441 #endif
5443 /* This mess was copied from the GNU getpagesize.h. */
5444 #ifndef HAVE_GETPAGESIZE
5445 /* Assume that all systems that can run configure have sys/param.h. */
5446 # ifndef HAVE_SYS_PARAM_H
5447 # define HAVE_SYS_PARAM_H 1
5448 # endif
5450 # ifdef _SC_PAGESIZE
5451 # define getpagesize() sysconf(_SC_PAGESIZE)
5452 # else /* no _SC_PAGESIZE */
5453 # ifdef HAVE_SYS_PARAM_H
5454 # include <sys/param.h>
5455 # ifdef EXEC_PAGESIZE
5456 # define getpagesize() EXEC_PAGESIZE
5457 # else /* no EXEC_PAGESIZE */
5458 # ifdef NBPG
5459 # define getpagesize() NBPG * CLSIZE
5460 # ifndef CLSIZE
5461 # define CLSIZE 1
5462 # endif /* no CLSIZE */
5463 # else /* no NBPG */
5464 # ifdef NBPC
5465 # define getpagesize() NBPC
5466 # else /* no NBPC */
5467 # ifdef PAGESIZE
5468 # define getpagesize() PAGESIZE
5469 # endif /* PAGESIZE */
5470 # endif /* no NBPC */
5471 # endif /* no NBPG */
5472 # endif /* no EXEC_PAGESIZE */
5473 # else /* no HAVE_SYS_PARAM_H */
5474 # define getpagesize() 8192 /* punt totally */
5475 # endif /* no HAVE_SYS_PARAM_H */
5476 # endif /* no _SC_PAGESIZE */
5478 #endif /* no HAVE_GETPAGESIZE */
5481 main ()
5483 char *data, *data2, *data3;
5484 int i, pagesize;
5485 int fd;
5487 pagesize = getpagesize ();
5489 /* First, make a file with some known garbage in it. */
5490 data = (char *) malloc (pagesize);
5491 if (!data)
5492 return 1;
5493 for (i = 0; i < pagesize; ++i)
5494 *(data + i) = rand ();
5495 umask (0);
5496 fd = creat ("conftest.mmap", 0600);
5497 if (fd < 0)
5498 return 1;
5499 if (write (fd, data, pagesize) != pagesize)
5500 return 1;
5501 close (fd);
5503 /* Next, try to mmap the file at a fixed address which already has
5504 something else allocated at it. If we can, also make sure that
5505 we see the same garbage. */
5506 fd = open ("conftest.mmap", O_RDWR);
5507 if (fd < 0)
5508 return 1;
5509 data2 = (char *) malloc (2 * pagesize);
5510 if (!data2)
5511 return 1;
5512 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5513 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5514 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5515 return 1;
5516 for (i = 0; i < pagesize; ++i)
5517 if (*(data + i) != *(data2 + i))
5518 return 1;
5520 /* Finally, make sure that changes to the mapped area do not
5521 percolate back to the file as seen by read(). (This is a bug on
5522 some variants of i386 svr4.0.) */
5523 for (i = 0; i < pagesize; ++i)
5524 *(data2 + i) = *(data2 + i) + 1;
5525 data3 = (char *) malloc (pagesize);
5526 if (!data3)
5527 return 1;
5528 if (read (fd, data3, pagesize) != pagesize)
5529 return 1;
5530 for (i = 0; i < pagesize; ++i)
5531 if (*(data + i) != *(data3 + i))
5532 return 1;
5533 close (fd);
5534 return 0;
5536 _ACEOF
5537 rm -f conftest$ac_exeext
5538 if { (ac_try="$ac_link"
5539 case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5542 esac
5543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5544 $as_echo "$ac_try_echo") >&5
5545 (eval "$ac_link") 2>&5
5546 ac_status=$?
5547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5549 { (case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552 esac
5553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5554 $as_echo "$ac_try_echo") >&5
5555 (eval "$ac_try") 2>&5
5556 ac_status=$?
5557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 ac_cv_func_mmap_fixed_mapped=yes
5560 else
5561 $as_echo "$as_me: program exited with status $ac_status" >&5
5562 $as_echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5565 ( exit $ac_status )
5566 ac_cv_func_mmap_fixed_mapped=no
5568 rm -rf conftest.dSYM
5569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5574 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5575 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5576 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5578 cat >>confdefs.h <<\_ACEOF
5579 #define HAVE_MMAP 1
5580 _ACEOF
5583 rm -f conftest.mmap
5585 if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
5586 FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
5587 else
5588 FTSYS_SRC='$(BUILD_DIR)/ftsystem.c'
5590 { $as_echo "$as_me:$LINENO: checking whether munmap is declared" >&5
5591 $as_echo_n "checking whether munmap is declared... " >&6; }
5592 if test "${ac_cv_have_decl_munmap+set}" = set; then
5593 $as_echo_n "(cached) " >&6
5594 else
5595 cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h. */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5603 #ifdef HAVE_UNISTD_H
5604 #include <unistd.h>
5605 #endif
5606 #include <sys/mman.h>
5611 main ()
5613 #ifndef munmap
5614 (void) munmap;
5615 #endif
5618 return 0;
5620 _ACEOF
5621 rm -f conftest.$ac_objext
5622 if { (ac_try="$ac_compile"
5623 case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626 esac
5627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5628 $as_echo "$ac_try_echo") >&5
5629 (eval "$ac_compile") 2>conftest.er1
5630 ac_status=$?
5631 grep -v '^ *+' conftest.er1 >conftest.err
5632 rm -f conftest.er1
5633 cat conftest.err >&5
5634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } && {
5636 test -z "$ac_c_werror_flag" ||
5637 test ! -s conftest.err
5638 } && test -s conftest.$ac_objext; then
5639 ac_cv_have_decl_munmap=yes
5640 else
5641 $as_echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5644 ac_cv_have_decl_munmap=no
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_munmap" >&5
5650 $as_echo "$ac_cv_have_decl_munmap" >&6; }
5651 if test "x$ac_cv_have_decl_munmap" = x""yes; then
5653 cat >>confdefs.h <<_ACEOF
5654 #define HAVE_DECL_MUNMAP 1
5655 _ACEOF
5658 else
5659 cat >>confdefs.h <<_ACEOF
5660 #define HAVE_DECL_MUNMAP 0
5661 _ACEOF
5668 { $as_echo "$as_me:$LINENO: checking for munmap's first parameter type" >&5
5669 $as_echo_n "checking for munmap's first parameter type... " >&6; }
5670 cat >conftest.$ac_ext <<_ACEOF
5672 /* confdefs.h. */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5679 #include <unistd.h>
5680 #include <sys/mman.h>
5681 int munmap(void *, size_t);
5685 _ACEOF
5686 rm -f conftest.$ac_objext
5687 if { (ac_try="$ac_compile"
5688 case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5691 esac
5692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5693 $as_echo "$ac_try_echo") >&5
5694 (eval "$ac_compile") 2>conftest.er1
5695 ac_status=$?
5696 grep -v '^ *+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
5699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && {
5701 test -z "$ac_c_werror_flag" ||
5702 test ! -s conftest.err
5703 } && test -s conftest.$ac_objext; then
5704 { $as_echo "$as_me:$LINENO: result: void *" >&5
5705 $as_echo "void *" >&6; }
5707 cat >>confdefs.h <<\_ACEOF
5708 #define MUNMAP_USES_VOIDP /**/
5709 _ACEOF
5711 else
5712 $as_echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5715 { $as_echo "$as_me:$LINENO: result: char *" >&5
5716 $as_echo "char *" >&6; }
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 for ac_func in memcpy memmove
5728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5729 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5730 $as_echo_n "checking for $ac_func... " >&6; }
5731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5732 $as_echo_n "(cached) " >&6
5733 else
5734 cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h. */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5742 #define $ac_func innocuous_$ac_func
5744 /* System header to define __stub macros and hopefully few prototypes,
5745 which can conflict with char $ac_func (); below.
5746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5747 <limits.h> exists even on freestanding compilers. */
5749 #ifdef __STDC__
5750 # include <limits.h>
5751 #else
5752 # include <assert.h>
5753 #endif
5755 #undef $ac_func
5757 /* Override any GCC internal prototype to avoid an error.
5758 Use char because int might match the return type of a GCC
5759 builtin and then its argument prototype would still apply. */
5760 #ifdef __cplusplus
5761 extern "C"
5762 #endif
5763 char $ac_func ();
5764 /* The GNU C library defines this for functions which it implements
5765 to always fail with ENOSYS. Some functions are actually named
5766 something starting with __ and the normal name is an alias. */
5767 #if defined __stub_$ac_func || defined __stub___$ac_func
5768 choke me
5769 #endif
5772 main ()
5774 return $ac_func ();
5776 return 0;
5778 _ACEOF
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (ac_try="$ac_link"
5781 case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784 esac
5785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5786 $as_echo "$ac_try_echo") >&5
5787 (eval "$ac_link") 2>conftest.er1
5788 ac_status=$?
5789 grep -v '^ *+' conftest.er1 >conftest.err
5790 rm -f conftest.er1
5791 cat conftest.err >&5
5792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } && {
5794 test -z "$ac_c_werror_flag" ||
5795 test ! -s conftest.err
5796 } && test -s conftest$ac_exeext && {
5797 test "$cross_compiling" = yes ||
5798 $as_test_x conftest$ac_exeext
5799 }; then
5800 eval "$as_ac_var=yes"
5801 else
5802 $as_echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5805 eval "$as_ac_var=no"
5808 rm -rf conftest.dSYM
5809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5810 conftest$ac_exeext conftest.$ac_ext
5812 ac_res=`eval 'as_val=${'$as_ac_var'}
5813 $as_echo "$as_val"'`
5814 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5815 $as_echo "$ac_res" >&6; }
5816 as_val=`eval 'as_val=${'$as_ac_var'}
5817 $as_echo "$as_val"'`
5818 if test "x$as_val" = x""yes; then
5819 cat >>confdefs.h <<_ACEOF
5820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5821 _ACEOF
5824 done
5828 # check for system zlib
5830 # don't quote AS_HELP_STRING!
5832 # Check whether --with-zlib was given.
5833 if test "${with_zlib+set}" = set; then
5834 withval=$with_zlib;
5837 if test x$with_zlib != xno && test -z "$LIBZ"; then
5838 { $as_echo "$as_me:$LINENO: checking for gzsetparams in -lz" >&5
5839 $as_echo_n "checking for gzsetparams in -lz... " >&6; }
5840 if test "${ac_cv_lib_z_gzsetparams+set}" = set; then
5841 $as_echo_n "(cached) " >&6
5842 else
5843 ac_check_lib_save_LIBS=$LIBS
5844 LIBS="-lz $LIBS"
5845 cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h. */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5852 /* Override any GCC internal prototype to avoid an error.
5853 Use char because int might match the return type of a GCC
5854 builtin and then its argument prototype would still apply. */
5855 #ifdef __cplusplus
5856 extern "C"
5857 #endif
5858 char gzsetparams ();
5860 main ()
5862 return gzsetparams ();
5864 return 0;
5866 _ACEOF
5867 rm -f conftest.$ac_objext conftest$ac_exeext
5868 if { (ac_try="$ac_link"
5869 case "(($ac_try" in
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5872 esac
5873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5874 $as_echo "$ac_try_echo") >&5
5875 (eval "$ac_link") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } && {
5882 test -z "$ac_c_werror_flag" ||
5883 test ! -s conftest.err
5884 } && test -s conftest$ac_exeext && {
5885 test "$cross_compiling" = yes ||
5886 $as_test_x conftest$ac_exeext
5887 }; then
5888 ac_cv_lib_z_gzsetparams=yes
5889 else
5890 $as_echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5893 ac_cv_lib_z_gzsetparams=no
5896 rm -rf conftest.dSYM
5897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5898 conftest$ac_exeext conftest.$ac_ext
5899 LIBS=$ac_check_lib_save_LIBS
5901 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzsetparams" >&5
5902 $as_echo "$ac_cv_lib_z_gzsetparams" >&6; }
5903 if test "x$ac_cv_lib_z_gzsetparams" = x""yes; then
5904 if test "${ac_cv_header_zlib_h+set}" = set; then
5905 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
5906 $as_echo_n "checking for zlib.h... " >&6; }
5907 if test "${ac_cv_header_zlib_h+set}" = set; then
5908 $as_echo_n "(cached) " >&6
5910 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5911 $as_echo "$ac_cv_header_zlib_h" >&6; }
5912 else
5913 # Is the header compilable?
5914 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
5915 $as_echo_n "checking zlib.h usability... " >&6; }
5916 cat >conftest.$ac_ext <<_ACEOF
5917 /* confdefs.h. */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5922 $ac_includes_default
5923 #include <zlib.h>
5924 _ACEOF
5925 rm -f conftest.$ac_objext
5926 if { (ac_try="$ac_compile"
5927 case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930 esac
5931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5932 $as_echo "$ac_try_echo") >&5
5933 (eval "$ac_compile") 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } && {
5940 test -z "$ac_c_werror_flag" ||
5941 test ! -s conftest.err
5942 } && test -s conftest.$ac_objext; then
5943 ac_header_compiler=yes
5944 else
5945 $as_echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 ac_header_compiler=no
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5953 $as_echo "$ac_header_compiler" >&6; }
5955 # Is the header present?
5956 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
5957 $as_echo_n "checking zlib.h presence... " >&6; }
5958 cat >conftest.$ac_ext <<_ACEOF
5959 /* confdefs.h. */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5964 #include <zlib.h>
5965 _ACEOF
5966 if { (ac_try="$ac_cpp conftest.$ac_ext"
5967 case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970 esac
5971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5972 $as_echo "$ac_try_echo") >&5
5973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5974 ac_status=$?
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
5978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } >/dev/null && {
5980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5981 test ! -s conftest.err
5982 }; then
5983 ac_header_preproc=yes
5984 else
5985 $as_echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5988 ac_header_preproc=no
5991 rm -f conftest.err conftest.$ac_ext
5992 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5993 $as_echo "$ac_header_preproc" >&6; }
5995 # So? What about this header?
5996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5997 yes:no: )
5998 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5999 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6000 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
6001 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
6002 ac_header_preproc=yes
6004 no:yes:* )
6005 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
6006 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
6007 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
6008 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
6009 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
6010 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
6011 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
6012 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
6013 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
6014 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
6015 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
6016 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
6017 ( cat <<\_ASBOX
6018 ## ---------------------------------- ##
6019 ## Report this to freetype@nongnu.org ##
6020 ## ---------------------------------- ##
6021 _ASBOX
6022 ) | sed "s/^/$as_me: WARNING: /" >&2
6024 esac
6025 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
6026 $as_echo_n "checking for zlib.h... " >&6; }
6027 if test "${ac_cv_header_zlib_h+set}" = set; then
6028 $as_echo_n "(cached) " >&6
6029 else
6030 ac_cv_header_zlib_h=$ac_header_preproc
6032 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
6033 $as_echo "$ac_cv_header_zlib_h" >&6; }
6036 if test "x$ac_cv_header_zlib_h" = x""yes; then
6037 LIBZ='-lz'
6044 if test x$with_zlib != xno && test -n "$LIBZ"; then
6045 CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_SYSTEM_ZLIB"
6046 LDFLAGS="$LDFLAGS $LIBZ"
6047 SYSTEM_ZLIB=yes
6051 # Some options handling SDKs/archs in CFLAGS should be copied
6052 # to LDFLAGS. Apple TechNote 2137 recommends to include these
6053 # options in CFLAGS but not in LDFLAGS.
6055 save_config_args=$*
6056 set dummy ${CFLAGS}
6058 while test $i -lt $#
6060 c=$1
6062 case "${c}" in
6063 -isysroot|-arch) # options taking 1 argument
6064 a=$2
6065 { $as_echo "$as_me:$LINENO: checking whether CFLAGS and LDFLAGS share ${c} ${a}" >&5
6066 $as_echo_n "checking whether CFLAGS and LDFLAGS share ${c} ${a}... " >&6; }
6067 if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
6068 then
6069 { $as_echo "$as_me:$LINENO: result: yes" >&5
6070 $as_echo "yes" >&6; }
6071 else
6072 { $as_echo "$as_me:$LINENO: result: no, copy to LDFLAGS" >&5
6073 $as_echo "no, copy to LDFLAGS" >&6; }
6074 LDFLAGS="${LDFLAGS} ${c} ${a}"
6076 shift 1
6078 -m32|-m64) # options taking no argument
6079 { $as_echo "$as_me:$LINENO: result: whether CFLAGS and LDFLAGS share ${c}" >&5
6080 $as_echo "whether CFLAGS and LDFLAGS share ${c}" >&6; }
6081 if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
6082 then
6083 { $as_echo "$as_me:$LINENO: result: yes" >&5
6084 $as_echo "yes" >&6; }
6085 else
6086 { $as_echo "$as_me:$LINENO: result: no, copy to LDFLAGS" >&5
6087 $as_echo "no, copy to LDFLAGS" >&6; }
6088 LDFLAGS="${LDFLAGS} ${c}"
6091 # *)
6092 # AC_MSG_RESULT([${c} is not copied to LDFLAGS])
6093 # ;;
6094 esac
6096 shift 1
6097 done
6098 set ${save_config_args}
6101 # Whether to use Mac OS resource-based fonts.
6103 ftmac_c="" # src/base/ftmac.c should not be included in makefiles by default
6105 # don't quote AS_HELP_STRING!
6107 # Check whether --with-old-mac-fonts was given.
6108 if test "${with_old_mac_fonts+set}" = set; then
6109 withval=$with_old_mac_fonts;
6112 if test x$with_old_mac_fonts = xyes; then
6113 orig_LDFLAGS="${LDFLAGS}"
6114 { $as_echo "$as_me:$LINENO: checking CoreServices & ApplicationServices of Mac OS X" >&5
6115 $as_echo_n "checking CoreServices & ApplicationServices of Mac OS X... " >&6; }
6116 FT2_EXTRA_LIBS="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
6117 LDFLAGS="$LDFLAGS $FT2_EXTRA_LIBS"
6118 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6127 #if defined(__GNUC__) && defined(__APPLE_CC__)
6128 # include <CoreServices/CoreServices.h>
6129 # include <ApplicationServices/ApplicationServices.h>
6130 #else
6131 # include <ConditionalMacros.h>
6132 # include <Files.h>
6133 #endif
6137 main ()
6141 short res = 0;
6144 UseResFile( res );
6148 return 0;
6150 _ACEOF
6151 rm -f conftest.$ac_objext conftest$ac_exeext
6152 if { (ac_try="$ac_link"
6153 case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156 esac
6157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6158 $as_echo "$ac_try_echo") >&5
6159 (eval "$ac_link") 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && {
6166 test -z "$ac_c_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest$ac_exeext && {
6169 test "$cross_compiling" = yes ||
6170 $as_test_x conftest$ac_exeext
6171 }; then
6172 { $as_echo "$as_me:$LINENO: result: ok" >&5
6173 $as_echo "ok" >&6; }
6174 ftmac_c='ftmac.c'
6175 { $as_echo "$as_me:$LINENO: checking OS_INLINE macro is ANSI compatible" >&5
6176 $as_echo_n "checking OS_INLINE macro is ANSI compatible... " >&6; }
6177 orig_CFLAGS="$CFLAGS"
6178 CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
6179 cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h. */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6188 #if defined(__GNUC__) && defined(__APPLE_CC__)
6189 # include <CoreServices/CoreServices.h>
6190 # include <ApplicationServices/ApplicationServices.h>
6191 #else
6192 # include <ConditionalMacros.h>
6193 # include <Files.h>
6194 #endif
6198 main ()
6202 /* OSHostByteOrder() is typed as OS_INLINE */
6203 int32_t os_byte_order = OSHostByteOrder();
6206 if ( OSBigEndian != os_byte_order )
6207 return 1;
6211 return 0;
6213 _ACEOF
6214 rm -f conftest.$ac_objext
6215 if { (ac_try="$ac_compile"
6216 case "(($ac_try" in
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6219 esac
6220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6221 $as_echo "$ac_try_echo") >&5
6222 (eval "$ac_compile") 2>conftest.er1
6223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && {
6229 test -z "$ac_c_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest.$ac_objext; then
6232 { $as_echo "$as_me:$LINENO: result: ok" >&5
6233 $as_echo "ok" >&6; }
6234 CFLAGS="$orig_CFLAGS"
6235 CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
6237 else
6238 $as_echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6241 { $as_echo "$as_me:$LINENO: result: no, ANSI incompatible" >&5
6242 $as_echo "no, ANSI incompatible" >&6; }
6243 CFLAGS="$orig_CFLAGS"
6247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6248 { $as_echo "$as_me:$LINENO: checking type ResourceIndex" >&5
6249 $as_echo_n "checking type ResourceIndex... " >&6; }
6250 orig_CFLAGS="$CFLAGS"
6251 CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
6252 cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h. */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6261 #if defined(__GNUC__) && defined(__APPLE_CC__)
6262 # include <CoreServices/CoreServices.h>
6263 # include <ApplicationServices/ApplicationServices.h>
6264 #else
6265 # include <ConditionalMacros.h>
6266 # include <Files.h>
6267 # include <Resources.h>
6268 #endif
6272 main ()
6276 ResourceIndex i = 0;
6277 return i;
6281 return 0;
6283 _ACEOF
6284 rm -f conftest.$ac_objext
6285 if { (ac_try="$ac_compile"
6286 case "(($ac_try" in
6287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288 *) ac_try_echo=$ac_try;;
6289 esac
6290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6291 $as_echo "$ac_try_echo") >&5
6292 (eval "$ac_compile") 2>conftest.er1
6293 ac_status=$?
6294 grep -v '^ *+' conftest.er1 >conftest.err
6295 rm -f conftest.er1
6296 cat conftest.err >&5
6297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } && {
6299 test -z "$ac_c_werror_flag" ||
6300 test ! -s conftest.err
6301 } && test -s conftest.$ac_objext; then
6302 { $as_echo "$as_me:$LINENO: result: ok" >&5
6303 $as_echo "ok" >&6; }
6304 CFLAGS="$orig_CFLAGS"
6305 CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=1"
6307 else
6308 $as_echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 { $as_echo "$as_me:$LINENO: result: no" >&5
6312 $as_echo "no" >&6; }
6313 CFLAGS="$orig_CFLAGS"
6314 CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=0"
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 else
6320 $as_echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6323 { $as_echo "$as_me:$LINENO: result: not found" >&5
6324 $as_echo "not found" >&6; }
6325 FT2_EXTRA_LIBS=""
6326 LDFLAGS="${orig_LDFLAGS}"
6327 CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
6330 rm -rf conftest.dSYM
6331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6332 conftest$ac_exeext conftest.$ac_ext
6333 else
6334 case x$host_os in
6335 xdarwin*)
6336 CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
6338 *) ;;
6339 esac
6343 # Whether to use FileManager which is deprecated since Mac OS X 10.4.
6346 # Check whether --with-fsspec was given.
6347 if test "${with_fsspec+set}" = set; then
6348 withval=$with_fsspec;
6351 if test x$with_fsspec = xno; then
6352 CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
6353 elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
6354 { $as_echo "$as_me:$LINENO: checking FSSpec-based FileManager" >&5
6355 $as_echo_n "checking FSSpec-based FileManager... " >&6; }
6356 cat >conftest.$ac_ext <<_ACEOF
6358 /* confdefs.h. */
6359 _ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6365 #if defined(__GNUC__) && defined(__APPLE_CC__)
6366 # include <CoreServices/CoreServices.h>
6367 # include <ApplicationServices/ApplicationServices.h>
6368 #else
6369 # include <ConditionalMacros.h>
6370 # include <Files.h>
6371 #endif
6375 main ()
6379 FCBPBPtr paramBlock;
6380 short vRefNum;
6381 long dirID;
6382 ConstStr255Param fileName;
6383 FSSpec* spec;
6386 /* FSSpec functions: deprecated since Mac OS X 10.4 */
6387 PBGetFCBInfoSync( paramBlock );
6388 FSMakeFSSpec( vRefNum, dirID, fileName, spec );
6392 return 0;
6394 _ACEOF
6395 rm -f conftest.$ac_objext conftest$ac_exeext
6396 if { (ac_try="$ac_link"
6397 case "(($ac_try" in
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6400 esac
6401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6402 $as_echo "$ac_try_echo") >&5
6403 (eval "$ac_link") 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } && {
6410 test -z "$ac_c_werror_flag" ||
6411 test ! -s conftest.err
6412 } && test -s conftest$ac_exeext && {
6413 test "$cross_compiling" = yes ||
6414 $as_test_x conftest$ac_exeext
6415 }; then
6416 { $as_echo "$as_me:$LINENO: result: ok" >&5
6417 $as_echo "ok" >&6; }
6418 CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"
6419 else
6420 $as_echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6423 { $as_echo "$as_me:$LINENO: result: not found" >&5
6424 $as_echo "not found" >&6; }
6425 CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
6428 rm -rf conftest.dSYM
6429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6430 conftest$ac_exeext conftest.$ac_ext
6434 # Whether to use FileManager in Carbon since MacOS 9.x.
6437 # Check whether --with-fsref was given.
6438 if test "${with_fsref+set}" = set; then
6439 withval=$with_fsref;
6442 if test x$with_fsref = xno; then
6443 { $as_echo "$as_me:$LINENO: WARNING:
6444 *** WARNING
6445 FreeType2 built without FSRef API cannot load
6446 data-fork fonts on MacOS, except of XXX.dfont.
6447 " >&5
6448 $as_echo "$as_me: WARNING:
6449 *** WARNING
6450 FreeType2 built without FSRef API cannot load
6451 data-fork fonts on MacOS, except of XXX.dfont.
6452 " >&2;}
6453 CFLAGS="$CFLAGS -DHAVE_FSREF=0"
6454 elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
6455 { $as_echo "$as_me:$LINENO: checking FSRef-based FileManager" >&5
6456 $as_echo_n "checking FSRef-based FileManager... " >&6; }
6457 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6466 #if defined(__GNUC__) && defined(__APPLE_CC__)
6467 # include <CoreServices/CoreServices.h>
6468 # include <ApplicationServices/ApplicationServices.h>
6469 #else
6470 # include <ConditionalMacros.h>
6471 # include <Files.h>
6472 #endif
6476 main ()
6480 short vRefNum;
6481 long dirID;
6482 ConstStr255Param fileName;
6484 Boolean* isDirectory;
6485 UInt8* path;
6486 SInt16 desiredRefNum;
6487 SInt16* iterator;
6488 SInt16* actualRefNum;
6489 HFSUniStr255* outForkName;
6490 FSVolumeRefNum volume;
6491 FSCatalogInfoBitmap whichInfo;
6492 FSCatalogInfo* catalogInfo;
6493 FSForkInfo* forkInfo;
6494 FSRef* ref;
6496 #if HAVE_FSSPEC
6497 FSSpec* spec;
6498 #endif
6500 /* FSRef functions: no need to check? */
6501 FSGetForkCBInfo( desiredRefNum, volume, iterator,
6502 actualRefNum, forkInfo, ref,
6503 outForkName );
6504 FSPathMakeRef( path, ref, isDirectory );
6506 #if HAVE_FSSPEC
6507 FSpMakeFSRef ( spec, ref );
6508 FSGetCatalogInfo( ref, whichInfo, catalogInfo,
6509 outForkName, spec, ref );
6510 #endif
6513 return 0;
6515 _ACEOF
6516 rm -f conftest.$ac_objext conftest$ac_exeext
6517 if { (ac_try="$ac_link"
6518 case "(($ac_try" in
6519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520 *) ac_try_echo=$ac_try;;
6521 esac
6522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6523 $as_echo "$ac_try_echo") >&5
6524 (eval "$ac_link") 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } && {
6531 test -z "$ac_c_werror_flag" ||
6532 test ! -s conftest.err
6533 } && test -s conftest$ac_exeext && {
6534 test "$cross_compiling" = yes ||
6535 $as_test_x conftest$ac_exeext
6536 }; then
6537 { $as_echo "$as_me:$LINENO: result: ok" >&5
6538 $as_echo "ok" >&6; }
6539 CFLAGS="$CFLAGS -DHAVE_FSREF=1"
6540 else
6541 $as_echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6544 { $as_echo "$as_me:$LINENO: result: not found" >&5
6545 $as_echo "not found" >&6; }
6546 CFLAGS="$CFLAGS -DHAVE_FSREF=0"
6549 rm -rf conftest.dSYM
6550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6551 conftest$ac_exeext conftest.$ac_ext
6555 # Whether to use QuickDraw API in ToolBox which is deprecated since
6556 # Mac OS X 10.4.
6559 # Check whether --with-quickdraw-toolbox was given.
6560 if test "${with_quickdraw_toolbox+set}" = set; then
6561 withval=$with_quickdraw_toolbox;
6564 if test x$with_quickdraw_toolbox = xno; then
6565 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
6566 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
6567 { $as_echo "$as_me:$LINENO: checking QuickDraw FontManager functions in ToolBox" >&5
6568 $as_echo_n "checking QuickDraw FontManager functions in ToolBox... " >&6; }
6569 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h. */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6578 #if defined(__GNUC__) && defined(__APPLE_CC__)
6579 # include <CoreServices/CoreServices.h>
6580 # include <ApplicationServices/ApplicationServices.h>
6581 #else
6582 # include <ConditionalMacros.h>
6583 # include <Fonts.h>
6584 #endif
6588 main ()
6592 Str255 familyName;
6593 SInt16 familyID = 0;
6594 FMInput* fmIn = NULL;
6595 FMOutput* fmOut = NULL;
6598 GetFontName( familyID, familyName );
6599 GetFNum( familyName, &familyID );
6600 fmOut = FMSwapFont( fmIn );
6604 return 0;
6606 _ACEOF
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (ac_try="$ac_link"
6609 case "(($ac_try" in
6610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611 *) ac_try_echo=$ac_try;;
6612 esac
6613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6614 $as_echo "$ac_try_echo") >&5
6615 (eval "$ac_link") 2>conftest.er1
6616 ac_status=$?
6617 grep -v '^ *+' conftest.er1 >conftest.err
6618 rm -f conftest.er1
6619 cat conftest.err >&5
6620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } && {
6622 test -z "$ac_c_werror_flag" ||
6623 test ! -s conftest.err
6624 } && test -s conftest$ac_exeext && {
6625 test "$cross_compiling" = yes ||
6626 $as_test_x conftest$ac_exeext
6627 }; then
6628 { $as_echo "$as_me:$LINENO: result: ok" >&5
6629 $as_echo "ok" >&6; }
6630 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"
6631 else
6632 $as_echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6635 { $as_echo "$as_me:$LINENO: result: not found" >&5
6636 $as_echo "not found" >&6; }
6637 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
6640 rm -rf conftest.dSYM
6641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6642 conftest$ac_exeext conftest.$ac_ext
6646 # Whether to use QuickDraw API in Carbon which is deprecated since
6647 # Mac OS X 10.4.
6650 # Check whether --with-quickdraw-carbon was given.
6651 if test "${with_quickdraw_carbon+set}" = set; then
6652 withval=$with_quickdraw_carbon;
6655 if test x$with_quickdraw_carbon = xno; then
6656 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
6657 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
6658 { $as_echo "$as_me:$LINENO: checking QuickDraw FontManager functions in Carbon" >&5
6659 $as_echo_n "checking QuickDraw FontManager functions in Carbon... " >&6; }
6660 cat >conftest.$ac_ext <<_ACEOF
6662 /* confdefs.h. */
6663 _ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h. */
6669 #if defined(__GNUC__) && defined(__APPLE_CC__)
6670 # include <CoreServices/CoreServices.h>
6671 # include <ApplicationServices/ApplicationServices.h>
6672 #else
6673 # include <ConditionalMacros.h>
6674 # include <Fonts.h>
6675 #endif
6679 main ()
6683 FMFontFamilyIterator famIter;
6684 FMFontFamily family;
6685 Str255 famNameStr;
6686 FMFontFamilyInstanceIterator instIter;
6687 FMFontStyle style;
6688 FMFontSize size;
6689 FMFont font;
6690 FSSpec* pathSpec;
6693 FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption,
6694 &famIter );
6695 FMGetNextFontFamily( &famIter, &family );
6696 FMGetFontFamilyName( family, famNameStr );
6697 FMCreateFontFamilyInstanceIterator( family, &instIter );
6698 FMGetNextFontFamilyInstance( &instIter, &font, &style, &size );
6699 FMDisposeFontFamilyInstanceIterator( &instIter );
6700 FMDisposeFontFamilyIterator( &famIter );
6701 FMGetFontContainer( font, pathSpec );
6705 return 0;
6707 _ACEOF
6708 rm -f conftest.$ac_objext conftest$ac_exeext
6709 if { (ac_try="$ac_link"
6710 case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6713 esac
6714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6715 $as_echo "$ac_try_echo") >&5
6716 (eval "$ac_link") 2>conftest.er1
6717 ac_status=$?
6718 grep -v '^ *+' conftest.er1 >conftest.err
6719 rm -f conftest.er1
6720 cat conftest.err >&5
6721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } && {
6723 test -z "$ac_c_werror_flag" ||
6724 test ! -s conftest.err
6725 } && test -s conftest$ac_exeext && {
6726 test "$cross_compiling" = yes ||
6727 $as_test_x conftest$ac_exeext
6728 }; then
6729 { $as_echo "$as_me:$LINENO: result: ok" >&5
6730 $as_echo "ok" >&6; }
6731 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"
6732 else
6733 $as_echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6736 { $as_echo "$as_me:$LINENO: result: not found" >&5
6737 $as_echo "not found" >&6; }
6738 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
6741 rm -rf conftest.dSYM
6742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6743 conftest$ac_exeext conftest.$ac_ext
6747 # Whether to use AppleTypeService since Mac OS X.
6749 # don't quote AS_HELP_STRING!
6751 # Check whether --with-ats was given.
6752 if test "${with_ats+set}" = set; then
6753 withval=$with_ats;
6756 if test x$with_ats = xno; then
6757 CFLAGS="$CFLAGS -DHAVE_ATS=0"
6758 elif test x$with_old_mac_fonts = xyes -a x$with_ats != x ; then
6759 { $as_echo "$as_me:$LINENO: checking AppleTypeService functions" >&5
6760 $as_echo_n "checking AppleTypeService functions... " >&6; }
6761 cat >conftest.$ac_ext <<_ACEOF
6763 /* confdefs.h. */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6770 #if defined(__GNUC__) && defined(__APPLE_CC__)
6771 # include <CoreServices/CoreServices.h>
6772 # include <ApplicationServices/ApplicationServices.h>
6773 #else
6774 # include <ConditionalMacros.h>
6775 # include <Files.h>
6776 #endif
6780 main ()
6784 FSSpec* pathSpec;
6787 ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope );
6788 #if HAVE_FSSPEC
6789 ATSFontGetFileSpecification( 0, pathSpec );
6790 #endif
6794 return 0;
6796 _ACEOF
6797 rm -f conftest.$ac_objext conftest$ac_exeext
6798 if { (ac_try="$ac_link"
6799 case "(($ac_try" in
6800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6801 *) ac_try_echo=$ac_try;;
6802 esac
6803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6804 $as_echo "$ac_try_echo") >&5
6805 (eval "$ac_link") 2>conftest.er1
6806 ac_status=$?
6807 grep -v '^ *+' conftest.er1 >conftest.err
6808 rm -f conftest.er1
6809 cat conftest.err >&5
6810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } && {
6812 test -z "$ac_c_werror_flag" ||
6813 test ! -s conftest.err
6814 } && test -s conftest$ac_exeext && {
6815 test "$cross_compiling" = yes ||
6816 $as_test_x conftest$ac_exeext
6817 }; then
6818 { $as_echo "$as_me:$LINENO: result: ok" >&5
6819 $as_echo "ok" >&6; }
6820 CFLAGS="$CFLAGS -DHAVE_ATS=1"
6821 else
6822 $as_echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6825 { $as_echo "$as_me:$LINENO: result: not found" >&5
6826 $as_echo "not found" >&6; }
6827 CFLAGS="$CFLAGS -DHAVE_ATS=0"
6830 rm -rf conftest.dSYM
6831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6832 conftest$ac_exeext conftest.$ac_ext
6835 case "$CFLAGS" in
6836 *HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
6837 { $as_echo "$as_me:$LINENO: WARNING:
6838 *** WARNING
6839 FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
6840 thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
6841 " >&5
6842 $as_echo "$as_me: WARNING:
6843 *** WARNING
6844 FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
6845 thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
6846 " >&2;}
6847 CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
6851 esac
6862 case `pwd` in
6863 *\ * | *\ *)
6864 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6865 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6866 esac
6870 macro_version='2.2.6b'
6871 macro_revision='1.3017'
6885 ltmain="$ac_aux_dir/ltmain.sh"
6887 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6888 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6889 if test "${ac_cv_path_SED+set}" = set; then
6890 $as_echo_n "(cached) " >&6
6891 else
6892 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6893 for ac_i in 1 2 3 4 5 6 7; do
6894 ac_script="$ac_script$as_nl$ac_script"
6895 done
6896 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6897 $as_unset ac_script || ac_script=
6898 if test -z "$SED"; then
6899 ac_path_SED_found=false
6900 # Loop through the user's path and test for each of PROGNAME-LIST
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_prog in sed gsed; do
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6909 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6910 # Check for GNU ac_path_SED and select it if it is found.
6911 # Check for GNU $ac_path_SED
6912 case `"$ac_path_SED" --version 2>&1` in
6913 *GNU*)
6914 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6916 ac_count=0
6917 $as_echo_n 0123456789 >"conftest.in"
6918 while :
6920 cat "conftest.in" "conftest.in" >"conftest.tmp"
6921 mv "conftest.tmp" "conftest.in"
6922 cp "conftest.in" "conftest.nl"
6923 $as_echo '' >> "conftest.nl"
6924 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6925 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6926 ac_count=`expr $ac_count + 1`
6927 if test $ac_count -gt ${ac_path_SED_max-0}; then
6928 # Best one so far, save it but keep looking for a better one
6929 ac_cv_path_SED="$ac_path_SED"
6930 ac_path_SED_max=$ac_count
6932 # 10*(2^10) chars as input seems more than enough
6933 test $ac_count -gt 10 && break
6934 done
6935 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6936 esac
6938 $ac_path_SED_found && break 3
6939 done
6940 done
6941 done
6942 IFS=$as_save_IFS
6943 if test -z "$ac_cv_path_SED"; then
6944 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6945 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6946 { (exit 1); exit 1; }; }
6948 else
6949 ac_cv_path_SED=$SED
6953 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6954 $as_echo "$ac_cv_path_SED" >&6; }
6955 SED="$ac_cv_path_SED"
6956 rm -f conftest.sed
6958 test -z "$SED" && SED=sed
6959 Xsed="$SED -e 1s/^X//"
6971 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6972 $as_echo_n "checking for fgrep... " >&6; }
6973 if test "${ac_cv_path_FGREP+set}" = set; then
6974 $as_echo_n "(cached) " >&6
6975 else
6976 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6977 then ac_cv_path_FGREP="$GREP -F"
6978 else
6979 if test -z "$FGREP"; then
6980 ac_path_FGREP_found=false
6981 # Loop through the user's path and test for each of PROGNAME-LIST
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_prog in fgrep; do
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6990 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6991 # Check for GNU ac_path_FGREP and select it if it is found.
6992 # Check for GNU $ac_path_FGREP
6993 case `"$ac_path_FGREP" --version 2>&1` in
6994 *GNU*)
6995 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6997 ac_count=0
6998 $as_echo_n 0123456789 >"conftest.in"
6999 while :
7001 cat "conftest.in" "conftest.in" >"conftest.tmp"
7002 mv "conftest.tmp" "conftest.in"
7003 cp "conftest.in" "conftest.nl"
7004 $as_echo 'FGREP' >> "conftest.nl"
7005 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7007 ac_count=`expr $ac_count + 1`
7008 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7009 # Best one so far, save it but keep looking for a better one
7010 ac_cv_path_FGREP="$ac_path_FGREP"
7011 ac_path_FGREP_max=$ac_count
7013 # 10*(2^10) chars as input seems more than enough
7014 test $ac_count -gt 10 && break
7015 done
7016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7017 esac
7019 $ac_path_FGREP_found && break 3
7020 done
7021 done
7022 done
7023 IFS=$as_save_IFS
7024 if test -z "$ac_cv_path_FGREP"; then
7025 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7026 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7027 { (exit 1); exit 1; }; }
7029 else
7030 ac_cv_path_FGREP=$FGREP
7035 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
7036 $as_echo "$ac_cv_path_FGREP" >&6; }
7037 FGREP="$ac_cv_path_FGREP"
7040 test -z "$GREP" && GREP=grep
7060 # Check whether --with-gnu-ld was given.
7061 if test "${with_gnu_ld+set}" = set; then
7062 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7063 else
7064 with_gnu_ld=no
7067 ac_prog=ld
7068 if test "$GCC" = yes; then
7069 # Check if gcc -print-prog-name=ld gives a path.
7070 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7071 $as_echo_n "checking for ld used by $CC... " >&6; }
7072 case $host in
7073 *-*-mingw*)
7074 # gcc leaves a trailing carriage return which upsets mingw
7075 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7077 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7078 esac
7079 case $ac_prog in
7080 # Accept absolute paths.
7081 [\\/]* | ?:[\\/]*)
7082 re_direlt='/[^/][^/]*/\.\./'
7083 # Canonicalize the pathname of ld
7084 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7085 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7086 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7087 done
7088 test -z "$LD" && LD="$ac_prog"
7091 # If it fails, then pretend we aren't using GCC.
7092 ac_prog=ld
7095 # If it is relative, then search for the first ld in PATH.
7096 with_gnu_ld=unknown
7098 esac
7099 elif test "$with_gnu_ld" = yes; then
7100 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7101 $as_echo_n "checking for GNU ld... " >&6; }
7102 else
7103 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7104 $as_echo_n "checking for non-GNU ld... " >&6; }
7106 if test "${lt_cv_path_LD+set}" = set; then
7107 $as_echo_n "(cached) " >&6
7108 else
7109 if test -z "$LD"; then
7110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7111 for ac_dir in $PATH; do
7112 IFS="$lt_save_ifs"
7113 test -z "$ac_dir" && ac_dir=.
7114 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7115 lt_cv_path_LD="$ac_dir/$ac_prog"
7116 # Check to see if the program is GNU ld. I'd rather use --version,
7117 # but apparently some variants of GNU ld only accept -v.
7118 # Break only if it was the GNU/non-GNU ld that we prefer.
7119 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7120 *GNU* | *'with BFD'*)
7121 test "$with_gnu_ld" != no && break
7124 test "$with_gnu_ld" != yes && break
7126 esac
7128 done
7129 IFS="$lt_save_ifs"
7130 else
7131 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7135 LD="$lt_cv_path_LD"
7136 if test -n "$LD"; then
7137 { $as_echo "$as_me:$LINENO: result: $LD" >&5
7138 $as_echo "$LD" >&6; }
7139 else
7140 { $as_echo "$as_me:$LINENO: result: no" >&5
7141 $as_echo "no" >&6; }
7143 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7144 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7145 { (exit 1); exit 1; }; }
7146 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7147 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7148 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7149 $as_echo_n "(cached) " >&6
7150 else
7151 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7152 case `$LD -v 2>&1 </dev/null` in
7153 *GNU* | *'with BFD'*)
7154 lt_cv_prog_gnu_ld=yes
7157 lt_cv_prog_gnu_ld=no
7159 esac
7161 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7162 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7163 with_gnu_ld=$lt_cv_prog_gnu_ld
7173 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
7174 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7175 if test "${lt_cv_path_NM+set}" = set; then
7176 $as_echo_n "(cached) " >&6
7177 else
7178 if test -n "$NM"; then
7179 # Let the user override the test.
7180 lt_cv_path_NM="$NM"
7181 else
7182 lt_nm_to_check="${ac_tool_prefix}nm"
7183 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7184 lt_nm_to_check="$lt_nm_to_check nm"
7186 for lt_tmp_nm in $lt_nm_to_check; do
7187 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7188 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7189 IFS="$lt_save_ifs"
7190 test -z "$ac_dir" && ac_dir=.
7191 tmp_nm="$ac_dir/$lt_tmp_nm"
7192 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7193 # Check to see if the nm accepts a BSD-compat flag.
7194 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7195 # nm: unknown option "B" ignored
7196 # Tru64's nm complains that /dev/null is an invalid object file
7197 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7198 */dev/null* | *'Invalid file or object type'*)
7199 lt_cv_path_NM="$tmp_nm -B"
7200 break
7203 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7204 */dev/null*)
7205 lt_cv_path_NM="$tmp_nm -p"
7206 break
7209 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7210 continue # so that we can try to find one that supports BSD flags
7212 esac
7214 esac
7216 done
7217 IFS="$lt_save_ifs"
7218 done
7219 : ${lt_cv_path_NM=no}
7222 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7223 $as_echo "$lt_cv_path_NM" >&6; }
7224 if test "$lt_cv_path_NM" != "no"; then
7225 NM="$lt_cv_path_NM"
7226 else
7227 # Didn't find any BSD compatible name lister, look for dumpbin.
7228 if test -n "$ac_tool_prefix"; then
7229 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7233 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
7236 $as_echo_n "(cached) " >&6
7237 else
7238 if test -n "$DUMPBIN"; then
7239 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7249 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7252 done
7253 done
7254 IFS=$as_save_IFS
7258 DUMPBIN=$ac_cv_prog_DUMPBIN
7259 if test -n "$DUMPBIN"; then
7260 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
7261 $as_echo "$DUMPBIN" >&6; }
7262 else
7263 { $as_echo "$as_me:$LINENO: result: no" >&5
7264 $as_echo "no" >&6; }
7268 test -n "$DUMPBIN" && break
7269 done
7271 if test -z "$DUMPBIN"; then
7272 ac_ct_DUMPBIN=$DUMPBIN
7273 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7275 # Extract the first word of "$ac_prog", so it can be a program name with args.
7276 set dummy $ac_prog; ac_word=$2
7277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7278 $as_echo_n "checking for $ac_word... " >&6; }
7279 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
7280 $as_echo_n "(cached) " >&6
7281 else
7282 if test -n "$ac_ct_DUMPBIN"; then
7283 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7284 else
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 for as_dir in $PATH
7288 IFS=$as_save_IFS
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7292 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 break 2
7296 done
7297 done
7298 IFS=$as_save_IFS
7302 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7303 if test -n "$ac_ct_DUMPBIN"; then
7304 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
7305 $as_echo "$ac_ct_DUMPBIN" >&6; }
7306 else
7307 { $as_echo "$as_me:$LINENO: result: no" >&5
7308 $as_echo "no" >&6; }
7312 test -n "$ac_ct_DUMPBIN" && break
7313 done
7315 if test "x$ac_ct_DUMPBIN" = x; then
7316 DUMPBIN=":"
7317 else
7318 case $cross_compiling:$ac_tool_warned in
7319 yes:)
7320 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7322 ac_tool_warned=yes ;;
7323 esac
7324 DUMPBIN=$ac_ct_DUMPBIN
7329 if test "$DUMPBIN" != ":"; then
7330 NM="$DUMPBIN"
7333 test -z "$NM" && NM=nm
7340 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
7341 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7342 if test "${lt_cv_nm_interface+set}" = set; then
7343 $as_echo_n "(cached) " >&6
7344 else
7345 lt_cv_nm_interface="BSD nm"
7346 echo "int some_variable = 0;" > conftest.$ac_ext
7347 (eval echo "\"\$as_me:7347: $ac_compile\"" >&5)
7348 (eval "$ac_compile" 2>conftest.err)
7349 cat conftest.err >&5
7350 (eval echo "\"\$as_me:7350: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7351 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7352 cat conftest.err >&5
7353 (eval echo "\"\$as_me:7353: output\"" >&5)
7354 cat conftest.out >&5
7355 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7356 lt_cv_nm_interface="MS dumpbin"
7358 rm -f conftest*
7360 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
7361 $as_echo "$lt_cv_nm_interface" >&6; }
7363 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7364 $as_echo_n "checking whether ln -s works... " >&6; }
7365 LN_S=$as_ln_s
7366 if test "$LN_S" = "ln -s"; then
7367 { $as_echo "$as_me:$LINENO: result: yes" >&5
7368 $as_echo "yes" >&6; }
7369 else
7370 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7371 $as_echo "no, using $LN_S" >&6; }
7374 # find the maximum length of command line arguments
7375 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7376 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7377 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7378 $as_echo_n "(cached) " >&6
7379 else
7381 teststring="ABCD"
7383 case $build_os in
7384 msdosdjgpp*)
7385 # On DJGPP, this test can blow up pretty badly due to problems in libc
7386 # (any single argument exceeding 2000 bytes causes a buffer overrun
7387 # during glob expansion). Even if it were fixed, the result of this
7388 # check would be larger than it should be.
7389 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7392 gnu*)
7393 # Under GNU Hurd, this test is not required because there is
7394 # no limit to the length of command line arguments.
7395 # Libtool will interpret -1 as no limit whatsoever
7396 lt_cv_sys_max_cmd_len=-1;
7399 cygwin* | mingw* | cegcc*)
7400 # On Win9x/ME, this test blows up -- it succeeds, but takes
7401 # about 5 minutes as the teststring grows exponentially.
7402 # Worse, since 9x/ME are not pre-emptively multitasking,
7403 # you end up with a "frozen" computer, even though with patience
7404 # the test eventually succeeds (with a max line length of 256k).
7405 # Instead, let's just punt: use the minimum linelength reported by
7406 # all of the supported platforms: 8192 (on NT/2K/XP).
7407 lt_cv_sys_max_cmd_len=8192;
7410 amigaos*)
7411 # On AmigaOS with pdksh, this test takes hours, literally.
7412 # So we just punt and use a minimum line length of 8192.
7413 lt_cv_sys_max_cmd_len=8192;
7416 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7417 # This has been around since 386BSD, at least. Likely further.
7418 if test -x /sbin/sysctl; then
7419 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7420 elif test -x /usr/sbin/sysctl; then
7421 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7422 else
7423 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7425 # And add a safety zone
7426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7430 interix*)
7431 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7432 lt_cv_sys_max_cmd_len=196608
7435 osf*)
7436 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7437 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7438 # nice to cause kernel panics so lets avoid the loop below.
7439 # First set a reasonable default.
7440 lt_cv_sys_max_cmd_len=16384
7442 if test -x /sbin/sysconfig; then
7443 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7444 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7445 esac
7448 sco3.2v5*)
7449 lt_cv_sys_max_cmd_len=102400
7451 sysv5* | sco5v6* | sysv4.2uw2*)
7452 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7453 if test -n "$kargmax"; then
7454 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7455 else
7456 lt_cv_sys_max_cmd_len=32768
7460 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7461 if test -n "$lt_cv_sys_max_cmd_len"; then
7462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7464 else
7465 # Make teststring a little bigger before we do anything with it.
7466 # a 1K string should be a reasonable start.
7467 for i in 1 2 3 4 5 6 7 8 ; do
7468 teststring=$teststring$teststring
7469 done
7470 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7471 # If test is not a shell built-in, we'll probably end up computing a
7472 # maximum length that is only half of the actual maximum length, but
7473 # we can't tell.
7474 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7475 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7476 test $i != 17 # 1/2 MB should be enough
7478 i=`expr $i + 1`
7479 teststring=$teststring$teststring
7480 done
7481 # Only check the string length outside the loop.
7482 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7483 teststring=
7484 # Add a significant safety factor because C++ compilers can tack on
7485 # massive amounts of additional arguments before passing them to the
7486 # linker. It appears as though 1/2 is a usable value.
7487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7490 esac
7494 if test -n $lt_cv_sys_max_cmd_len ; then
7495 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7496 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7497 else
7498 { $as_echo "$as_me:$LINENO: result: none" >&5
7499 $as_echo "none" >&6; }
7501 max_cmd_len=$lt_cv_sys_max_cmd_len
7508 : ${CP="cp -f"}
7509 : ${MV="mv -f"}
7510 : ${RM="rm -f"}
7512 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
7513 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7514 # Try some XSI features
7515 xsi_shell=no
7516 ( _lt_dummy="a/b/c"
7517 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7518 = c,a/b,, \
7519 && eval 'test $(( 1 + 1 )) -eq 2 \
7520 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7521 && xsi_shell=yes
7522 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
7523 $as_echo "$xsi_shell" >&6; }
7526 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
7527 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7528 lt_shell_append=no
7529 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7530 >/dev/null 2>&1 \
7531 && lt_shell_append=yes
7532 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
7533 $as_echo "$lt_shell_append" >&6; }
7536 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7537 lt_unset=unset
7538 else
7539 lt_unset=false
7546 # test EBCDIC or ASCII
7547 case `echo X|tr X '\101'` in
7548 A) # ASCII based system
7549 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7550 lt_SP2NL='tr \040 \012'
7551 lt_NL2SP='tr \015\012 \040\040'
7553 *) # EBCDIC based system
7554 lt_SP2NL='tr \100 \n'
7555 lt_NL2SP='tr \r\n \100\100'
7557 esac
7567 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7568 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7569 if test "${lt_cv_ld_reload_flag+set}" = set; then
7570 $as_echo_n "(cached) " >&6
7571 else
7572 lt_cv_ld_reload_flag='-r'
7574 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7575 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7576 reload_flag=$lt_cv_ld_reload_flag
7577 case $reload_flag in
7578 "" | " "*) ;;
7579 *) reload_flag=" $reload_flag" ;;
7580 esac
7581 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7582 case $host_os in
7583 darwin*)
7584 if test "$GCC" = yes; then
7585 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7586 else
7587 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7590 esac
7600 if test -n "$ac_tool_prefix"; then
7601 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7602 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7606 $as_echo_n "(cached) " >&6
7607 else
7608 if test -n "$OBJDUMP"; then
7609 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 break 2
7622 done
7623 done
7624 IFS=$as_save_IFS
7628 OBJDUMP=$ac_cv_prog_OBJDUMP
7629 if test -n "$OBJDUMP"; then
7630 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7631 $as_echo "$OBJDUMP" >&6; }
7632 else
7633 { $as_echo "$as_me:$LINENO: result: no" >&5
7634 $as_echo "no" >&6; }
7639 if test -z "$ac_cv_prog_OBJDUMP"; then
7640 ac_ct_OBJDUMP=$OBJDUMP
7641 # Extract the first word of "objdump", so it can be a program name with args.
7642 set dummy objdump; ac_word=$2
7643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7646 $as_echo_n "(cached) " >&6
7647 else
7648 if test -n "$ac_ct_OBJDUMP"; then
7649 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 break 2
7662 done
7663 done
7664 IFS=$as_save_IFS
7668 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7669 if test -n "$ac_ct_OBJDUMP"; then
7670 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7671 $as_echo "$ac_ct_OBJDUMP" >&6; }
7672 else
7673 { $as_echo "$as_me:$LINENO: result: no" >&5
7674 $as_echo "no" >&6; }
7677 if test "x$ac_ct_OBJDUMP" = x; then
7678 OBJDUMP="false"
7679 else
7680 case $cross_compiling:$ac_tool_warned in
7681 yes:)
7682 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7684 ac_tool_warned=yes ;;
7685 esac
7686 OBJDUMP=$ac_ct_OBJDUMP
7688 else
7689 OBJDUMP="$ac_cv_prog_OBJDUMP"
7692 test -z "$OBJDUMP" && OBJDUMP=objdump
7699 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7700 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7701 if test "${lt_cv_deplibs_check_method+set}" = set; then
7702 $as_echo_n "(cached) " >&6
7703 else
7704 lt_cv_file_magic_cmd='$MAGIC_CMD'
7705 lt_cv_file_magic_test_file=
7706 lt_cv_deplibs_check_method='unknown'
7707 # Need to set the preceding variable on all platforms that support
7708 # interlibrary dependencies.
7709 # 'none' -- dependencies not supported.
7710 # `unknown' -- same as none, but documents that we really don't know.
7711 # 'pass_all' -- all dependencies passed with no checks.
7712 # 'test_compile' -- check by making test program.
7713 # 'file_magic [[regex]]' -- check by looking for files in library path
7714 # which responds to the $file_magic_cmd with a given extended regex.
7715 # If you have `file' or equivalent on your system and you're not sure
7716 # whether `pass_all' will *always* work, you probably want this one.
7718 case $host_os in
7719 aix[4-9]*)
7720 lt_cv_deplibs_check_method=pass_all
7723 beos*)
7724 lt_cv_deplibs_check_method=pass_all
7727 bsdi[45]*)
7728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7729 lt_cv_file_magic_cmd='/usr/bin/file -L'
7730 lt_cv_file_magic_test_file=/shlib/libc.so
7733 cygwin*)
7734 # func_win32_libid is a shell function defined in ltmain.sh
7735 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7736 lt_cv_file_magic_cmd='func_win32_libid'
7739 mingw* | pw32*)
7740 # Base MSYS/MinGW do not provide the 'file' command needed by
7741 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7742 # unless we find 'file', for example because we are cross-compiling.
7743 if ( file / ) >/dev/null 2>&1; then
7744 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7745 lt_cv_file_magic_cmd='func_win32_libid'
7746 else
7747 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7748 lt_cv_file_magic_cmd='$OBJDUMP -f'
7752 cegcc)
7753 # use the weaker test based on 'objdump'. See mingw*.
7754 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7755 lt_cv_file_magic_cmd='$OBJDUMP -f'
7758 darwin* | rhapsody*)
7759 lt_cv_deplibs_check_method=pass_all
7762 freebsd* | dragonfly*)
7763 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7764 case $host_cpu in
7765 i*86 )
7766 # Not sure whether the presence of OpenBSD here was a mistake.
7767 # Let's accept both of them until this is cleared up.
7768 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7769 lt_cv_file_magic_cmd=/usr/bin/file
7770 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7772 esac
7773 else
7774 lt_cv_deplibs_check_method=pass_all
7778 gnu*)
7779 lt_cv_deplibs_check_method=pass_all
7782 hpux10.20* | hpux11*)
7783 lt_cv_file_magic_cmd=/usr/bin/file
7784 case $host_cpu in
7785 ia64*)
7786 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7787 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7789 hppa*64*)
7790 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]'
7791 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7794 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7795 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7797 esac
7800 interix[3-9]*)
7801 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7805 irix5* | irix6* | nonstopux*)
7806 case $LD in
7807 *-32|*"-32 ") libmagic=32-bit;;
7808 *-n32|*"-n32 ") libmagic=N32;;
7809 *-64|*"-64 ") libmagic=64-bit;;
7810 *) libmagic=never-match;;
7811 esac
7812 lt_cv_deplibs_check_method=pass_all
7815 # This must be Linux ELF.
7816 linux* | k*bsd*-gnu)
7817 lt_cv_deplibs_check_method=pass_all
7820 netbsd*)
7821 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7823 else
7824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7828 newos6*)
7829 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7830 lt_cv_file_magic_cmd=/usr/bin/file
7831 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7834 *nto* | *qnx*)
7835 lt_cv_deplibs_check_method=pass_all
7838 openbsd*)
7839 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7841 else
7842 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7846 osf3* | osf4* | osf5*)
7847 lt_cv_deplibs_check_method=pass_all
7850 rdos*)
7851 lt_cv_deplibs_check_method=pass_all
7854 solaris*)
7855 lt_cv_deplibs_check_method=pass_all
7858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7859 lt_cv_deplibs_check_method=pass_all
7862 sysv4 | sysv4.3*)
7863 case $host_vendor in
7864 motorola)
7865 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]'
7866 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7868 ncr)
7869 lt_cv_deplibs_check_method=pass_all
7871 sequent)
7872 lt_cv_file_magic_cmd='/bin/file'
7873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7875 sni)
7876 lt_cv_file_magic_cmd='/bin/file'
7877 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7878 lt_cv_file_magic_test_file=/lib/libc.so
7880 siemens)
7881 lt_cv_deplibs_check_method=pass_all
7884 lt_cv_deplibs_check_method=pass_all
7886 esac
7889 tpf*)
7890 lt_cv_deplibs_check_method=pass_all
7892 esac
7895 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7896 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7897 file_magic_cmd=$lt_cv_file_magic_cmd
7898 deplibs_check_method=$lt_cv_deplibs_check_method
7899 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7912 if test -n "$ac_tool_prefix"; then
7913 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7914 set dummy ${ac_tool_prefix}ar; ac_word=$2
7915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7916 $as_echo_n "checking for $ac_word... " >&6; }
7917 if test "${ac_cv_prog_AR+set}" = set; then
7918 $as_echo_n "(cached) " >&6
7919 else
7920 if test -n "$AR"; then
7921 ac_cv_prog_AR="$AR" # Let the user override the test.
7922 else
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 for as_dir in $PATH
7926 IFS=$as_save_IFS
7927 test -z "$as_dir" && as_dir=.
7928 for ac_exec_ext in '' $ac_executable_extensions; do
7929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7930 ac_cv_prog_AR="${ac_tool_prefix}ar"
7931 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 break 2
7934 done
7935 done
7936 IFS=$as_save_IFS
7940 AR=$ac_cv_prog_AR
7941 if test -n "$AR"; then
7942 { $as_echo "$as_me:$LINENO: result: $AR" >&5
7943 $as_echo "$AR" >&6; }
7944 else
7945 { $as_echo "$as_me:$LINENO: result: no" >&5
7946 $as_echo "no" >&6; }
7951 if test -z "$ac_cv_prog_AR"; then
7952 ac_ct_AR=$AR
7953 # Extract the first word of "ar", so it can be a program name with args.
7954 set dummy ar; ac_word=$2
7955 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7956 $as_echo_n "checking for $ac_word... " >&6; }
7957 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7958 $as_echo_n "(cached) " >&6
7959 else
7960 if test -n "$ac_ct_AR"; then
7961 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7962 else
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
7968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7970 ac_cv_prog_ac_ct_AR="ar"
7971 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 break 2
7974 done
7975 done
7976 IFS=$as_save_IFS
7980 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7981 if test -n "$ac_ct_AR"; then
7982 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7983 $as_echo "$ac_ct_AR" >&6; }
7984 else
7985 { $as_echo "$as_me:$LINENO: result: no" >&5
7986 $as_echo "no" >&6; }
7989 if test "x$ac_ct_AR" = x; then
7990 AR="false"
7991 else
7992 case $cross_compiling:$ac_tool_warned in
7993 yes:)
7994 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7996 ac_tool_warned=yes ;;
7997 esac
7998 AR=$ac_ct_AR
8000 else
8001 AR="$ac_cv_prog_AR"
8004 test -z "$AR" && AR=ar
8005 test -z "$AR_FLAGS" && AR_FLAGS=cru
8017 if test -n "$ac_tool_prefix"; then
8018 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8019 set dummy ${ac_tool_prefix}strip; ac_word=$2
8020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8021 $as_echo_n "checking for $ac_word... " >&6; }
8022 if test "${ac_cv_prog_STRIP+set}" = set; then
8023 $as_echo_n "(cached) " >&6
8024 else
8025 if test -n "$STRIP"; then
8026 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8027 else
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8035 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 break 2
8039 done
8040 done
8041 IFS=$as_save_IFS
8045 STRIP=$ac_cv_prog_STRIP
8046 if test -n "$STRIP"; then
8047 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8048 $as_echo "$STRIP" >&6; }
8049 else
8050 { $as_echo "$as_me:$LINENO: result: no" >&5
8051 $as_echo "no" >&6; }
8056 if test -z "$ac_cv_prog_STRIP"; then
8057 ac_ct_STRIP=$STRIP
8058 # Extract the first word of "strip", so it can be a program name with args.
8059 set dummy strip; ac_word=$2
8060 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8061 $as_echo_n "checking for $ac_word... " >&6; }
8062 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8063 $as_echo_n "(cached) " >&6
8064 else
8065 if test -n "$ac_ct_STRIP"; then
8066 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8067 else
8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069 for as_dir in $PATH
8071 IFS=$as_save_IFS
8072 test -z "$as_dir" && as_dir=.
8073 for ac_exec_ext in '' $ac_executable_extensions; do
8074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8075 ac_cv_prog_ac_ct_STRIP="strip"
8076 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 break 2
8079 done
8080 done
8081 IFS=$as_save_IFS
8085 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8086 if test -n "$ac_ct_STRIP"; then
8087 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8088 $as_echo "$ac_ct_STRIP" >&6; }
8089 else
8090 { $as_echo "$as_me:$LINENO: result: no" >&5
8091 $as_echo "no" >&6; }
8094 if test "x$ac_ct_STRIP" = x; then
8095 STRIP=":"
8096 else
8097 case $cross_compiling:$ac_tool_warned in
8098 yes:)
8099 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8101 ac_tool_warned=yes ;;
8102 esac
8103 STRIP=$ac_ct_STRIP
8105 else
8106 STRIP="$ac_cv_prog_STRIP"
8109 test -z "$STRIP" && STRIP=:
8116 if test -n "$ac_tool_prefix"; then
8117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8120 $as_echo_n "checking for $ac_word... " >&6; }
8121 if test "${ac_cv_prog_RANLIB+set}" = set; then
8122 $as_echo_n "(cached) " >&6
8123 else
8124 if test -n "$RANLIB"; then
8125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8126 else
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 for as_dir in $PATH
8130 IFS=$as_save_IFS
8131 test -z "$as_dir" && as_dir=.
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8135 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8136 break 2
8138 done
8139 done
8140 IFS=$as_save_IFS
8144 RANLIB=$ac_cv_prog_RANLIB
8145 if test -n "$RANLIB"; then
8146 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8147 $as_echo "$RANLIB" >&6; }
8148 else
8149 { $as_echo "$as_me:$LINENO: result: no" >&5
8150 $as_echo "no" >&6; }
8155 if test -z "$ac_cv_prog_RANLIB"; then
8156 ac_ct_RANLIB=$RANLIB
8157 # Extract the first word of "ranlib", so it can be a program name with args.
8158 set dummy ranlib; ac_word=$2
8159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8160 $as_echo_n "checking for $ac_word... " >&6; }
8161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8162 $as_echo_n "(cached) " >&6
8163 else
8164 if test -n "$ac_ct_RANLIB"; then
8165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8174 ac_cv_prog_ac_ct_RANLIB="ranlib"
8175 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8178 done
8179 done
8180 IFS=$as_save_IFS
8184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8185 if test -n "$ac_ct_RANLIB"; then
8186 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8187 $as_echo "$ac_ct_RANLIB" >&6; }
8188 else
8189 { $as_echo "$as_me:$LINENO: result: no" >&5
8190 $as_echo "no" >&6; }
8193 if test "x$ac_ct_RANLIB" = x; then
8194 RANLIB=":"
8195 else
8196 case $cross_compiling:$ac_tool_warned in
8197 yes:)
8198 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8200 ac_tool_warned=yes ;;
8201 esac
8202 RANLIB=$ac_ct_RANLIB
8204 else
8205 RANLIB="$ac_cv_prog_RANLIB"
8208 test -z "$RANLIB" && RANLIB=:
8215 # Determine commands to create old-style static archives.
8216 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8217 old_postinstall_cmds='chmod 644 $oldlib'
8218 old_postuninstall_cmds=
8220 if test -n "$RANLIB"; then
8221 case $host_os in
8222 openbsd*)
8223 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8226 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8228 esac
8229 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8265 # If no C compiler was specified, use CC.
8266 LTCC=${LTCC-"$CC"}
8268 # If no C compiler flags were specified, use CFLAGS.
8269 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8271 # Allow CC to be a program name with arguments.
8272 compiler=$CC
8275 # Check for command to grab the raw symbol name followed by C symbol from nm.
8276 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8277 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8278 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8279 $as_echo_n "(cached) " >&6
8280 else
8282 # These are sane defaults that work on at least a few old systems.
8283 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8285 # Character class describing NM global symbol codes.
8286 symcode='[BCDEGRST]'
8288 # Regexp to match symbols that can be accessed directly from C.
8289 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8291 # Define system-specific variables.
8292 case $host_os in
8293 aix*)
8294 symcode='[BCDT]'
8296 cygwin* | mingw* | pw32* | cegcc*)
8297 symcode='[ABCDGISTW]'
8299 hpux*)
8300 if test "$host_cpu" = ia64; then
8301 symcode='[ABCDEGRST]'
8304 irix* | nonstopux*)
8305 symcode='[BCDEGRST]'
8307 osf*)
8308 symcode='[BCDEGQRST]'
8310 solaris*)
8311 symcode='[BDRT]'
8313 sco3.2v5*)
8314 symcode='[DT]'
8316 sysv4.2uw2*)
8317 symcode='[DT]'
8319 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8320 symcode='[ABDT]'
8322 sysv4)
8323 symcode='[DFNSTU]'
8325 esac
8327 # If we're using GNU nm, then use its standard symbol codes.
8328 case `$NM -V 2>&1` in
8329 *GNU* | *'with BFD'*)
8330 symcode='[ABCDGIRSTW]' ;;
8331 esac
8333 # Transform an extracted symbol line into a proper C declaration.
8334 # Some systems (esp. on ia64) link data and code symbols differently,
8335 # so use this general approach.
8336 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8338 # Transform an extracted symbol line into symbol name and symbol address
8339 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8340 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'"
8342 # Handle CRLF in mingw tool chain
8343 opt_cr=
8344 case $build_os in
8345 mingw*)
8346 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8348 esac
8350 # Try without a prefix underscore, then with it.
8351 for ac_symprfx in "" "_"; do
8353 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8354 symxfrm="\\1 $ac_symprfx\\2 \\2"
8356 # Write the raw and C identifiers.
8357 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8358 # Fake it for dumpbin and say T for any non-static function
8359 # and D for any global variable.
8360 # Also find C++ and __fastcall symbols from MSVC++,
8361 # which start with @ or ?.
8362 lt_cv_sys_global_symbol_pipe="$AWK '"\
8363 " {last_section=section; section=\$ 3};"\
8364 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8365 " \$ 0!~/External *\|/{next};"\
8366 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8367 " {if(hide[section]) next};"\
8368 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8369 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8370 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8371 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8372 " ' prfx=^$ac_symprfx"
8373 else
8374 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8377 # Check to see that the pipe works correctly.
8378 pipe_works=no
8380 rm -f conftest*
8381 cat > conftest.$ac_ext <<_LT_EOF
8382 #ifdef __cplusplus
8383 extern "C" {
8384 #endif
8385 char nm_test_var;
8386 void nm_test_func(void);
8387 void nm_test_func(void){}
8388 #ifdef __cplusplus
8390 #endif
8391 int main(){nm_test_var='a';nm_test_func();return(0);}
8392 _LT_EOF
8394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8395 (eval $ac_compile) 2>&5
8396 ac_status=$?
8397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; then
8399 # Now try to grab the symbols.
8400 nlist=conftest.nm
8401 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8402 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8403 ac_status=$?
8404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } && test -s "$nlist"; then
8406 # Try sorting and uniquifying the output.
8407 if sort "$nlist" | uniq > "$nlist"T; then
8408 mv -f "$nlist"T "$nlist"
8409 else
8410 rm -f "$nlist"T
8413 # Make sure that we snagged all the symbols we need.
8414 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8415 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8416 cat <<_LT_EOF > conftest.$ac_ext
8417 #ifdef __cplusplus
8418 extern "C" {
8419 #endif
8421 _LT_EOF
8422 # Now generate the symbol file.
8423 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8425 cat <<_LT_EOF >> conftest.$ac_ext
8427 /* The mapping between symbol names and symbols. */
8428 const struct {
8429 const char *name;
8430 void *address;
8432 lt__PROGRAM__LTX_preloaded_symbols[] =
8434 { "@PROGRAM@", (void *) 0 },
8435 _LT_EOF
8436 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8437 cat <<\_LT_EOF >> conftest.$ac_ext
8438 {0, (void *) 0}
8441 /* This works around a problem in FreeBSD linker */
8442 #ifdef FREEBSD_WORKAROUND
8443 static const void *lt_preloaded_setup() {
8444 return lt__PROGRAM__LTX_preloaded_symbols;
8446 #endif
8448 #ifdef __cplusplus
8450 #endif
8451 _LT_EOF
8452 # Now try linking the two files.
8453 mv conftest.$ac_objext conftstm.$ac_objext
8454 lt_save_LIBS="$LIBS"
8455 lt_save_CFLAGS="$CFLAGS"
8456 LIBS="conftstm.$ac_objext"
8457 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8459 (eval $ac_link) 2>&5
8460 ac_status=$?
8461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8463 pipe_works=yes
8465 LIBS="$lt_save_LIBS"
8466 CFLAGS="$lt_save_CFLAGS"
8467 else
8468 echo "cannot find nm_test_func in $nlist" >&5
8470 else
8471 echo "cannot find nm_test_var in $nlist" >&5
8473 else
8474 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8476 else
8477 echo "$progname: failed program was:" >&5
8478 cat conftest.$ac_ext >&5
8480 rm -rf conftest* conftst*
8482 # Do not use the global_symbol_pipe unless it works.
8483 if test "$pipe_works" = yes; then
8484 break
8485 else
8486 lt_cv_sys_global_symbol_pipe=
8488 done
8492 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8493 lt_cv_sys_global_symbol_to_cdecl=
8495 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8496 { $as_echo "$as_me:$LINENO: result: failed" >&5
8497 $as_echo "failed" >&6; }
8498 else
8499 { $as_echo "$as_me:$LINENO: result: ok" >&5
8500 $as_echo "ok" >&6; }
8524 # Check whether --enable-libtool-lock was given.
8525 if test "${enable_libtool_lock+set}" = set; then
8526 enableval=$enable_libtool_lock;
8529 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8531 # Some flags need to be propagated to the compiler or linker for good
8532 # libtool support.
8533 case $host in
8534 ia64-*-hpux*)
8535 # Find out which ABI we are using.
8536 echo 'int i;' > conftest.$ac_ext
8537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8538 (eval $ac_compile) 2>&5
8539 ac_status=$?
8540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; then
8542 case `/usr/bin/file conftest.$ac_objext` in
8543 *ELF-32*)
8544 HPUX_IA64_MODE="32"
8546 *ELF-64*)
8547 HPUX_IA64_MODE="64"
8549 esac
8551 rm -rf conftest*
8553 *-*-irix6*)
8554 # Find out which ABI we are using.
8555 echo '#line 8555 "configure"' > conftest.$ac_ext
8556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8557 (eval $ac_compile) 2>&5
8558 ac_status=$?
8559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; then
8561 if test "$lt_cv_prog_gnu_ld" = yes; then
8562 case `/usr/bin/file conftest.$ac_objext` in
8563 *32-bit*)
8564 LD="${LD-ld} -melf32bsmip"
8566 *N32*)
8567 LD="${LD-ld} -melf32bmipn32"
8569 *64-bit*)
8570 LD="${LD-ld} -melf64bmip"
8572 esac
8573 else
8574 case `/usr/bin/file conftest.$ac_objext` in
8575 *32-bit*)
8576 LD="${LD-ld} -32"
8578 *N32*)
8579 LD="${LD-ld} -n32"
8581 *64-bit*)
8582 LD="${LD-ld} -64"
8584 esac
8587 rm -rf conftest*
8590 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8591 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8592 # Find out which ABI we are using.
8593 echo 'int i;' > conftest.$ac_ext
8594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8595 (eval $ac_compile) 2>&5
8596 ac_status=$?
8597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; then
8599 case `/usr/bin/file conftest.o` in
8600 *32-bit*)
8601 case $host in
8602 x86_64-*kfreebsd*-gnu)
8603 LD="${LD-ld} -m elf_i386_fbsd"
8605 x86_64-*linux*)
8606 LD="${LD-ld} -m elf_i386"
8608 ppc64-*linux*|powerpc64-*linux*)
8609 LD="${LD-ld} -m elf32ppclinux"
8611 s390x-*linux*)
8612 LD="${LD-ld} -m elf_s390"
8614 sparc64-*linux*)
8615 LD="${LD-ld} -m elf32_sparc"
8617 esac
8619 *64-bit*)
8620 case $host in
8621 x86_64-*kfreebsd*-gnu)
8622 LD="${LD-ld} -m elf_x86_64_fbsd"
8624 x86_64-*linux*)
8625 LD="${LD-ld} -m elf_x86_64"
8627 ppc*-*linux*|powerpc*-*linux*)
8628 LD="${LD-ld} -m elf64ppc"
8630 s390*-*linux*|s390*-*tpf*)
8631 LD="${LD-ld} -m elf64_s390"
8633 sparc*-*linux*)
8634 LD="${LD-ld} -m elf64_sparc"
8636 esac
8638 esac
8640 rm -rf conftest*
8643 *-*-sco3.2v5*)
8644 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8645 SAVE_CFLAGS="$CFLAGS"
8646 CFLAGS="$CFLAGS -belf"
8647 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8648 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8649 if test "${lt_cv_cc_needs_belf+set}" = set; then
8650 $as_echo_n "(cached) " >&6
8651 else
8652 ac_ext=c
8653 ac_cpp='$CPP $CPPFLAGS'
8654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8658 cat >conftest.$ac_ext <<_ACEOF
8659 /* confdefs.h. */
8660 _ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h. */
8666 main ()
8670 return 0;
8672 _ACEOF
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (ac_try="$ac_link"
8675 case "(($ac_try" in
8676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677 *) ac_try_echo=$ac_try;;
8678 esac
8679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8680 $as_echo "$ac_try_echo") >&5
8681 (eval "$ac_link") 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } && {
8688 test -z "$ac_c_werror_flag" ||
8689 test ! -s conftest.err
8690 } && test -s conftest$ac_exeext && {
8691 test "$cross_compiling" = yes ||
8692 $as_test_x conftest$ac_exeext
8693 }; then
8694 lt_cv_cc_needs_belf=yes
8695 else
8696 $as_echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 lt_cv_cc_needs_belf=no
8702 rm -rf conftest.dSYM
8703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8704 conftest$ac_exeext conftest.$ac_ext
8705 ac_ext=c
8706 ac_cpp='$CPP $CPPFLAGS'
8707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8712 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8713 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8714 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8715 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8716 CFLAGS="$SAVE_CFLAGS"
8719 sparc*-*solaris*)
8720 # Find out which ABI we are using.
8721 echo 'int i;' > conftest.$ac_ext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723 (eval $ac_compile) 2>&5
8724 ac_status=$?
8725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; then
8727 case `/usr/bin/file conftest.o` in
8728 *64-bit*)
8729 case $lt_cv_prog_gnu_ld in
8730 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8732 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8733 LD="${LD-ld} -64"
8736 esac
8738 esac
8740 rm -rf conftest*
8742 esac
8744 need_locks="$enable_libtool_lock"
8747 case $host_os in
8748 rhapsody* | darwin*)
8749 if test -n "$ac_tool_prefix"; then
8750 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8751 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8753 $as_echo_n "checking for $ac_word... " >&6; }
8754 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8755 $as_echo_n "(cached) " >&6
8756 else
8757 if test -n "$DSYMUTIL"; then
8758 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8759 else
8760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761 for as_dir in $PATH
8763 IFS=$as_save_IFS
8764 test -z "$as_dir" && as_dir=.
8765 for ac_exec_ext in '' $ac_executable_extensions; do
8766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8767 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8769 break 2
8771 done
8772 done
8773 IFS=$as_save_IFS
8777 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8778 if test -n "$DSYMUTIL"; then
8779 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8780 $as_echo "$DSYMUTIL" >&6; }
8781 else
8782 { $as_echo "$as_me:$LINENO: result: no" >&5
8783 $as_echo "no" >&6; }
8788 if test -z "$ac_cv_prog_DSYMUTIL"; then
8789 ac_ct_DSYMUTIL=$DSYMUTIL
8790 # Extract the first word of "dsymutil", so it can be a program name with args.
8791 set dummy dsymutil; ac_word=$2
8792 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8793 $as_echo_n "checking for $ac_word... " >&6; }
8794 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8795 $as_echo_n "(cached) " >&6
8796 else
8797 if test -n "$ac_ct_DSYMUTIL"; then
8798 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8799 else
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801 for as_dir in $PATH
8803 IFS=$as_save_IFS
8804 test -z "$as_dir" && as_dir=.
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8807 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8808 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8809 break 2
8811 done
8812 done
8813 IFS=$as_save_IFS
8817 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8818 if test -n "$ac_ct_DSYMUTIL"; then
8819 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8820 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8821 else
8822 { $as_echo "$as_me:$LINENO: result: no" >&5
8823 $as_echo "no" >&6; }
8826 if test "x$ac_ct_DSYMUTIL" = x; then
8827 DSYMUTIL=":"
8828 else
8829 case $cross_compiling:$ac_tool_warned in
8830 yes:)
8831 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8833 ac_tool_warned=yes ;;
8834 esac
8835 DSYMUTIL=$ac_ct_DSYMUTIL
8837 else
8838 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8841 if test -n "$ac_tool_prefix"; then
8842 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8843 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8844 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8845 $as_echo_n "checking for $ac_word... " >&6; }
8846 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8847 $as_echo_n "(cached) " >&6
8848 else
8849 if test -n "$NMEDIT"; then
8850 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8851 else
8852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 for as_dir in $PATH
8855 IFS=$as_save_IFS
8856 test -z "$as_dir" && as_dir=.
8857 for ac_exec_ext in '' $ac_executable_extensions; do
8858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8859 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8861 break 2
8863 done
8864 done
8865 IFS=$as_save_IFS
8869 NMEDIT=$ac_cv_prog_NMEDIT
8870 if test -n "$NMEDIT"; then
8871 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8872 $as_echo "$NMEDIT" >&6; }
8873 else
8874 { $as_echo "$as_me:$LINENO: result: no" >&5
8875 $as_echo "no" >&6; }
8880 if test -z "$ac_cv_prog_NMEDIT"; then
8881 ac_ct_NMEDIT=$NMEDIT
8882 # Extract the first word of "nmedit", so it can be a program name with args.
8883 set dummy nmedit; ac_word=$2
8884 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8885 $as_echo_n "checking for $ac_word... " >&6; }
8886 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8887 $as_echo_n "(cached) " >&6
8888 else
8889 if test -n "$ac_ct_NMEDIT"; then
8890 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8891 else
8892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893 for as_dir in $PATH
8895 IFS=$as_save_IFS
8896 test -z "$as_dir" && as_dir=.
8897 for ac_exec_ext in '' $ac_executable_extensions; do
8898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8899 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8900 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8901 break 2
8903 done
8904 done
8905 IFS=$as_save_IFS
8909 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8910 if test -n "$ac_ct_NMEDIT"; then
8911 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8912 $as_echo "$ac_ct_NMEDIT" >&6; }
8913 else
8914 { $as_echo "$as_me:$LINENO: result: no" >&5
8915 $as_echo "no" >&6; }
8918 if test "x$ac_ct_NMEDIT" = x; then
8919 NMEDIT=":"
8920 else
8921 case $cross_compiling:$ac_tool_warned in
8922 yes:)
8923 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8925 ac_tool_warned=yes ;;
8926 esac
8927 NMEDIT=$ac_ct_NMEDIT
8929 else
8930 NMEDIT="$ac_cv_prog_NMEDIT"
8933 if test -n "$ac_tool_prefix"; then
8934 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8935 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8936 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8937 $as_echo_n "checking for $ac_word... " >&6; }
8938 if test "${ac_cv_prog_LIPO+set}" = set; then
8939 $as_echo_n "(cached) " >&6
8940 else
8941 if test -n "$LIPO"; then
8942 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8943 else
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8951 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8952 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8955 done
8956 done
8957 IFS=$as_save_IFS
8961 LIPO=$ac_cv_prog_LIPO
8962 if test -n "$LIPO"; then
8963 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8964 $as_echo "$LIPO" >&6; }
8965 else
8966 { $as_echo "$as_me:$LINENO: result: no" >&5
8967 $as_echo "no" >&6; }
8972 if test -z "$ac_cv_prog_LIPO"; then
8973 ac_ct_LIPO=$LIPO
8974 # Extract the first word of "lipo", so it can be a program name with args.
8975 set dummy lipo; ac_word=$2
8976 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8977 $as_echo_n "checking for $ac_word... " >&6; }
8978 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8979 $as_echo_n "(cached) " >&6
8980 else
8981 if test -n "$ac_ct_LIPO"; then
8982 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8983 else
8984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8985 for as_dir in $PATH
8987 IFS=$as_save_IFS
8988 test -z "$as_dir" && as_dir=.
8989 for ac_exec_ext in '' $ac_executable_extensions; do
8990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8991 ac_cv_prog_ac_ct_LIPO="lipo"
8992 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8993 break 2
8995 done
8996 done
8997 IFS=$as_save_IFS
9001 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9002 if test -n "$ac_ct_LIPO"; then
9003 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
9004 $as_echo "$ac_ct_LIPO" >&6; }
9005 else
9006 { $as_echo "$as_me:$LINENO: result: no" >&5
9007 $as_echo "no" >&6; }
9010 if test "x$ac_ct_LIPO" = x; then
9011 LIPO=":"
9012 else
9013 case $cross_compiling:$ac_tool_warned in
9014 yes:)
9015 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9017 ac_tool_warned=yes ;;
9018 esac
9019 LIPO=$ac_ct_LIPO
9021 else
9022 LIPO="$ac_cv_prog_LIPO"
9025 if test -n "$ac_tool_prefix"; then
9026 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9027 set dummy ${ac_tool_prefix}otool; ac_word=$2
9028 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9029 $as_echo_n "checking for $ac_word... " >&6; }
9030 if test "${ac_cv_prog_OTOOL+set}" = set; then
9031 $as_echo_n "(cached) " >&6
9032 else
9033 if test -n "$OTOOL"; then
9034 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9035 else
9036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037 for as_dir in $PATH
9039 IFS=$as_save_IFS
9040 test -z "$as_dir" && as_dir=.
9041 for ac_exec_ext in '' $ac_executable_extensions; do
9042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9043 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9044 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9045 break 2
9047 done
9048 done
9049 IFS=$as_save_IFS
9053 OTOOL=$ac_cv_prog_OTOOL
9054 if test -n "$OTOOL"; then
9055 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
9056 $as_echo "$OTOOL" >&6; }
9057 else
9058 { $as_echo "$as_me:$LINENO: result: no" >&5
9059 $as_echo "no" >&6; }
9064 if test -z "$ac_cv_prog_OTOOL"; then
9065 ac_ct_OTOOL=$OTOOL
9066 # Extract the first word of "otool", so it can be a program name with args.
9067 set dummy otool; ac_word=$2
9068 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
9071 $as_echo_n "(cached) " >&6
9072 else
9073 if test -n "$ac_ct_OTOOL"; then
9074 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9075 else
9076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077 for as_dir in $PATH
9079 IFS=$as_save_IFS
9080 test -z "$as_dir" && as_dir=.
9081 for ac_exec_ext in '' $ac_executable_extensions; do
9082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9083 ac_cv_prog_ac_ct_OTOOL="otool"
9084 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9085 break 2
9087 done
9088 done
9089 IFS=$as_save_IFS
9093 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9094 if test -n "$ac_ct_OTOOL"; then
9095 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
9096 $as_echo "$ac_ct_OTOOL" >&6; }
9097 else
9098 { $as_echo "$as_me:$LINENO: result: no" >&5
9099 $as_echo "no" >&6; }
9102 if test "x$ac_ct_OTOOL" = x; then
9103 OTOOL=":"
9104 else
9105 case $cross_compiling:$ac_tool_warned in
9106 yes:)
9107 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9109 ac_tool_warned=yes ;;
9110 esac
9111 OTOOL=$ac_ct_OTOOL
9113 else
9114 OTOOL="$ac_cv_prog_OTOOL"
9117 if test -n "$ac_tool_prefix"; then
9118 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9119 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9120 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9121 $as_echo_n "checking for $ac_word... " >&6; }
9122 if test "${ac_cv_prog_OTOOL64+set}" = set; then
9123 $as_echo_n "(cached) " >&6
9124 else
9125 if test -n "$OTOOL64"; then
9126 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9127 else
9128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129 for as_dir in $PATH
9131 IFS=$as_save_IFS
9132 test -z "$as_dir" && as_dir=.
9133 for ac_exec_ext in '' $ac_executable_extensions; do
9134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9135 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9136 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9137 break 2
9139 done
9140 done
9141 IFS=$as_save_IFS
9145 OTOOL64=$ac_cv_prog_OTOOL64
9146 if test -n "$OTOOL64"; then
9147 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
9148 $as_echo "$OTOOL64" >&6; }
9149 else
9150 { $as_echo "$as_me:$LINENO: result: no" >&5
9151 $as_echo "no" >&6; }
9156 if test -z "$ac_cv_prog_OTOOL64"; then
9157 ac_ct_OTOOL64=$OTOOL64
9158 # Extract the first word of "otool64", so it can be a program name with args.
9159 set dummy otool64; ac_word=$2
9160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9161 $as_echo_n "checking for $ac_word... " >&6; }
9162 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
9163 $as_echo_n "(cached) " >&6
9164 else
9165 if test -n "$ac_ct_OTOOL64"; then
9166 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9167 else
9168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169 for as_dir in $PATH
9171 IFS=$as_save_IFS
9172 test -z "$as_dir" && as_dir=.
9173 for ac_exec_ext in '' $ac_executable_extensions; do
9174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9175 ac_cv_prog_ac_ct_OTOOL64="otool64"
9176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9177 break 2
9179 done
9180 done
9181 IFS=$as_save_IFS
9185 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9186 if test -n "$ac_ct_OTOOL64"; then
9187 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
9188 $as_echo "$ac_ct_OTOOL64" >&6; }
9189 else
9190 { $as_echo "$as_me:$LINENO: result: no" >&5
9191 $as_echo "no" >&6; }
9194 if test "x$ac_ct_OTOOL64" = x; then
9195 OTOOL64=":"
9196 else
9197 case $cross_compiling:$ac_tool_warned in
9198 yes:)
9199 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9201 ac_tool_warned=yes ;;
9202 esac
9203 OTOOL64=$ac_ct_OTOOL64
9205 else
9206 OTOOL64="$ac_cv_prog_OTOOL64"
9235 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9236 $as_echo_n "checking for -single_module linker flag... " >&6; }
9237 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9238 $as_echo_n "(cached) " >&6
9239 else
9240 lt_cv_apple_cc_single_mod=no
9241 if test -z "${LT_MULTI_MODULE}"; then
9242 # By default we will add the -single_module flag. You can override
9243 # by either setting the environment variable LT_MULTI_MODULE
9244 # non-empty at configure time, or by adding -multi_module to the
9245 # link flags.
9246 rm -rf libconftest.dylib*
9247 echo "int foo(void){return 1;}" > conftest.c
9248 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9249 -dynamiclib -Wl,-single_module conftest.c" >&5
9250 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9251 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9252 _lt_result=$?
9253 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9254 lt_cv_apple_cc_single_mod=yes
9255 else
9256 cat conftest.err >&5
9258 rm -rf libconftest.dylib*
9259 rm -f conftest.*
9262 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9263 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9264 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9265 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9266 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9267 $as_echo_n "(cached) " >&6
9268 else
9269 lt_cv_ld_exported_symbols_list=no
9270 save_LDFLAGS=$LDFLAGS
9271 echo "_main" > conftest.sym
9272 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9273 cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h. */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9281 main ()
9285 return 0;
9287 _ACEOF
9288 rm -f conftest.$ac_objext conftest$ac_exeext
9289 if { (ac_try="$ac_link"
9290 case "(($ac_try" in
9291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9292 *) ac_try_echo=$ac_try;;
9293 esac
9294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9295 $as_echo "$ac_try_echo") >&5
9296 (eval "$ac_link") 2>conftest.er1
9297 ac_status=$?
9298 grep -v '^ *+' conftest.er1 >conftest.err
9299 rm -f conftest.er1
9300 cat conftest.err >&5
9301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); } && {
9303 test -z "$ac_c_werror_flag" ||
9304 test ! -s conftest.err
9305 } && test -s conftest$ac_exeext && {
9306 test "$cross_compiling" = yes ||
9307 $as_test_x conftest$ac_exeext
9308 }; then
9309 lt_cv_ld_exported_symbols_list=yes
9310 else
9311 $as_echo "$as_me: failed program was:" >&5
9312 sed 's/^/| /' conftest.$ac_ext >&5
9314 lt_cv_ld_exported_symbols_list=no
9317 rm -rf conftest.dSYM
9318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9319 conftest$ac_exeext conftest.$ac_ext
9320 LDFLAGS="$save_LDFLAGS"
9323 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9324 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9325 case $host_os in
9326 rhapsody* | darwin1.[012])
9327 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9328 darwin1.*)
9329 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9330 darwin*) # darwin 5.x on
9331 # if running on 10.5 or later, the deployment target defaults
9332 # to the OS version, if on x86, and 10.4, the deployment
9333 # target defaults to 10.4. Don't you love it?
9334 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9335 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9336 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9337 10.[012]*)
9338 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9339 10.*)
9340 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9341 esac
9343 esac
9344 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9345 _lt_dar_single_mod='$single_module'
9347 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9348 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9349 else
9350 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9352 if test "$DSYMUTIL" != ":"; then
9353 _lt_dsymutil='~$DSYMUTIL $lib || :'
9354 else
9355 _lt_dsymutil=
9358 esac
9361 for ac_header in dlfcn.h
9363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9365 $as_echo_n "checking for $ac_header... " >&6; }
9366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9367 $as_echo_n "(cached) " >&6
9368 else
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h. */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 $ac_includes_default
9377 #include <$ac_header>
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (ac_try="$ac_compile"
9381 case "(($ac_try" in
9382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9384 esac
9385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9386 $as_echo "$ac_try_echo") >&5
9387 (eval "$ac_compile") 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } && {
9394 test -z "$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 } && test -s conftest.$ac_objext; then
9397 eval "$as_ac_Header=yes"
9398 else
9399 $as_echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9402 eval "$as_ac_Header=no"
9405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9407 ac_res=`eval 'as_val=${'$as_ac_Header'}
9408 $as_echo "$as_val"'`
9409 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9410 $as_echo "$ac_res" >&6; }
9411 as_val=`eval 'as_val=${'$as_ac_Header'}
9412 $as_echo "$as_val"'`
9413 if test "x$as_val" = x""yes; then
9414 cat >>confdefs.h <<_ACEOF
9415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9416 _ACEOF
9420 done
9424 # Set options
9425 enable_win32_dll=yes
9427 case $host in
9428 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
9429 if test -n "$ac_tool_prefix"; then
9430 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9431 set dummy ${ac_tool_prefix}as; ac_word=$2
9432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9433 $as_echo_n "checking for $ac_word... " >&6; }
9434 if test "${ac_cv_prog_AS+set}" = set; then
9435 $as_echo_n "(cached) " >&6
9436 else
9437 if test -n "$AS"; then
9438 ac_cv_prog_AS="$AS" # Let the user override the test.
9439 else
9440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441 for as_dir in $PATH
9443 IFS=$as_save_IFS
9444 test -z "$as_dir" && as_dir=.
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9447 ac_cv_prog_AS="${ac_tool_prefix}as"
9448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9449 break 2
9451 done
9452 done
9453 IFS=$as_save_IFS
9457 AS=$ac_cv_prog_AS
9458 if test -n "$AS"; then
9459 { $as_echo "$as_me:$LINENO: result: $AS" >&5
9460 $as_echo "$AS" >&6; }
9461 else
9462 { $as_echo "$as_me:$LINENO: result: no" >&5
9463 $as_echo "no" >&6; }
9468 if test -z "$ac_cv_prog_AS"; then
9469 ac_ct_AS=$AS
9470 # Extract the first word of "as", so it can be a program name with args.
9471 set dummy as; ac_word=$2
9472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9473 $as_echo_n "checking for $ac_word... " >&6; }
9474 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
9475 $as_echo_n "(cached) " >&6
9476 else
9477 if test -n "$ac_ct_AS"; then
9478 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9479 else
9480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481 for as_dir in $PATH
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9487 ac_cv_prog_ac_ct_AS="as"
9488 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 break 2
9491 done
9492 done
9493 IFS=$as_save_IFS
9497 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9498 if test -n "$ac_ct_AS"; then
9499 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
9500 $as_echo "$ac_ct_AS" >&6; }
9501 else
9502 { $as_echo "$as_me:$LINENO: result: no" >&5
9503 $as_echo "no" >&6; }
9506 if test "x$ac_ct_AS" = x; then
9507 AS="false"
9508 else
9509 case $cross_compiling:$ac_tool_warned in
9510 yes:)
9511 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9513 ac_tool_warned=yes ;;
9514 esac
9515 AS=$ac_ct_AS
9517 else
9518 AS="$ac_cv_prog_AS"
9521 if test -n "$ac_tool_prefix"; then
9522 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9523 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9524 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9525 $as_echo_n "checking for $ac_word... " >&6; }
9526 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
9527 $as_echo_n "(cached) " >&6
9528 else
9529 if test -n "$DLLTOOL"; then
9530 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9531 else
9532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9533 for as_dir in $PATH
9535 IFS=$as_save_IFS
9536 test -z "$as_dir" && as_dir=.
9537 for ac_exec_ext in '' $ac_executable_extensions; do
9538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9539 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9540 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9541 break 2
9543 done
9544 done
9545 IFS=$as_save_IFS
9549 DLLTOOL=$ac_cv_prog_DLLTOOL
9550 if test -n "$DLLTOOL"; then
9551 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
9552 $as_echo "$DLLTOOL" >&6; }
9553 else
9554 { $as_echo "$as_me:$LINENO: result: no" >&5
9555 $as_echo "no" >&6; }
9560 if test -z "$ac_cv_prog_DLLTOOL"; then
9561 ac_ct_DLLTOOL=$DLLTOOL
9562 # Extract the first word of "dlltool", so it can be a program name with args.
9563 set dummy dlltool; ac_word=$2
9564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9565 $as_echo_n "checking for $ac_word... " >&6; }
9566 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9567 $as_echo_n "(cached) " >&6
9568 else
9569 if test -n "$ac_ct_DLLTOOL"; then
9570 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9571 else
9572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573 for as_dir in $PATH
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
9577 for ac_exec_ext in '' $ac_executable_extensions; do
9578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9579 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9581 break 2
9583 done
9584 done
9585 IFS=$as_save_IFS
9589 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9590 if test -n "$ac_ct_DLLTOOL"; then
9591 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9592 $as_echo "$ac_ct_DLLTOOL" >&6; }
9593 else
9594 { $as_echo "$as_me:$LINENO: result: no" >&5
9595 $as_echo "no" >&6; }
9598 if test "x$ac_ct_DLLTOOL" = x; then
9599 DLLTOOL="false"
9600 else
9601 case $cross_compiling:$ac_tool_warned in
9602 yes:)
9603 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9605 ac_tool_warned=yes ;;
9606 esac
9607 DLLTOOL=$ac_ct_DLLTOOL
9609 else
9610 DLLTOOL="$ac_cv_prog_DLLTOOL"
9613 if test -n "$ac_tool_prefix"; then
9614 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9615 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9617 $as_echo_n "checking for $ac_word... " >&6; }
9618 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
9619 $as_echo_n "(cached) " >&6
9620 else
9621 if test -n "$OBJDUMP"; then
9622 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9623 else
9624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9625 for as_dir in $PATH
9627 IFS=$as_save_IFS
9628 test -z "$as_dir" && as_dir=.
9629 for ac_exec_ext in '' $ac_executable_extensions; do
9630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9631 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9632 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9633 break 2
9635 done
9636 done
9637 IFS=$as_save_IFS
9641 OBJDUMP=$ac_cv_prog_OBJDUMP
9642 if test -n "$OBJDUMP"; then
9643 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
9644 $as_echo "$OBJDUMP" >&6; }
9645 else
9646 { $as_echo "$as_me:$LINENO: result: no" >&5
9647 $as_echo "no" >&6; }
9652 if test -z "$ac_cv_prog_OBJDUMP"; then
9653 ac_ct_OBJDUMP=$OBJDUMP
9654 # Extract the first word of "objdump", so it can be a program name with args.
9655 set dummy objdump; ac_word=$2
9656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
9659 $as_echo_n "(cached) " >&6
9660 else
9661 if test -n "$ac_ct_OBJDUMP"; then
9662 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9663 else
9664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665 for as_dir in $PATH
9667 IFS=$as_save_IFS
9668 test -z "$as_dir" && as_dir=.
9669 for ac_exec_ext in '' $ac_executable_extensions; do
9670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9671 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9672 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9673 break 2
9675 done
9676 done
9677 IFS=$as_save_IFS
9681 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9682 if test -n "$ac_ct_OBJDUMP"; then
9683 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
9684 $as_echo "$ac_ct_OBJDUMP" >&6; }
9685 else
9686 { $as_echo "$as_me:$LINENO: result: no" >&5
9687 $as_echo "no" >&6; }
9690 if test "x$ac_ct_OBJDUMP" = x; then
9691 OBJDUMP="false"
9692 else
9693 case $cross_compiling:$ac_tool_warned in
9694 yes:)
9695 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9697 ac_tool_warned=yes ;;
9698 esac
9699 OBJDUMP=$ac_ct_OBJDUMP
9701 else
9702 OBJDUMP="$ac_cv_prog_OBJDUMP"
9706 esac
9708 test -z "$AS" && AS=as
9714 test -z "$DLLTOOL" && DLLTOOL=dlltool
9720 test -z "$OBJDUMP" && OBJDUMP=objdump
9728 enable_dlopen=no
9732 # Check whether --enable-shared was given.
9733 if test "${enable_shared+set}" = set; then
9734 enableval=$enable_shared; p=${PACKAGE-default}
9735 case $enableval in
9736 yes) enable_shared=yes ;;
9737 no) enable_shared=no ;;
9739 enable_shared=no
9740 # Look at the argument we got. We use all the common list separators.
9741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9742 for pkg in $enableval; do
9743 IFS="$lt_save_ifs"
9744 if test "X$pkg" = "X$p"; then
9745 enable_shared=yes
9747 done
9748 IFS="$lt_save_ifs"
9750 esac
9751 else
9752 enable_shared=yes
9763 # Check whether --enable-static was given.
9764 if test "${enable_static+set}" = set; then
9765 enableval=$enable_static; p=${PACKAGE-default}
9766 case $enableval in
9767 yes) enable_static=yes ;;
9768 no) enable_static=no ;;
9770 enable_static=no
9771 # Look at the argument we got. We use all the common list separators.
9772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9773 for pkg in $enableval; do
9774 IFS="$lt_save_ifs"
9775 if test "X$pkg" = "X$p"; then
9776 enable_static=yes
9778 done
9779 IFS="$lt_save_ifs"
9781 esac
9782 else
9783 enable_static=yes
9795 # Check whether --with-pic was given.
9796 if test "${with_pic+set}" = set; then
9797 withval=$with_pic; pic_mode="$withval"
9798 else
9799 pic_mode=default
9803 test -z "$pic_mode" && pic_mode=default
9811 # Check whether --enable-fast-install was given.
9812 if test "${enable_fast_install+set}" = set; then
9813 enableval=$enable_fast_install; p=${PACKAGE-default}
9814 case $enableval in
9815 yes) enable_fast_install=yes ;;
9816 no) enable_fast_install=no ;;
9818 enable_fast_install=no
9819 # Look at the argument we got. We use all the common list separators.
9820 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9821 for pkg in $enableval; do
9822 IFS="$lt_save_ifs"
9823 if test "X$pkg" = "X$p"; then
9824 enable_fast_install=yes
9826 done
9827 IFS="$lt_save_ifs"
9829 esac
9830 else
9831 enable_fast_install=yes
9844 # This can be used to rebuild libtool when needed
9845 LIBTOOL_DEPS="$ltmain"
9847 # Always use our own libtool.
9848 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9874 test -z "$LN_S" && LN_S="ln -s"
9889 if test -n "${ZSH_VERSION+set}" ; then
9890 setopt NO_GLOB_SUBST
9893 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
9894 $as_echo_n "checking for objdir... " >&6; }
9895 if test "${lt_cv_objdir+set}" = set; then
9896 $as_echo_n "(cached) " >&6
9897 else
9898 rm -f .libs 2>/dev/null
9899 mkdir .libs 2>/dev/null
9900 if test -d .libs; then
9901 lt_cv_objdir=.libs
9902 else
9903 # MS-DOS does not allow filenames that begin with a dot.
9904 lt_cv_objdir=_libs
9906 rmdir .libs 2>/dev/null
9908 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9909 $as_echo "$lt_cv_objdir" >&6; }
9910 objdir=$lt_cv_objdir
9916 cat >>confdefs.h <<_ACEOF
9917 #define LT_OBJDIR "$lt_cv_objdir/"
9918 _ACEOF
9936 case $host_os in
9937 aix3*)
9938 # AIX sometimes has problems with the GCC collect2 program. For some
9939 # reason, if we set the COLLECT_NAMES environment variable, the problems
9940 # vanish in a puff of smoke.
9941 if test "X${COLLECT_NAMES+set}" != Xset; then
9942 COLLECT_NAMES=
9943 export COLLECT_NAMES
9946 esac
9948 # Sed substitution that helps us do robust quoting. It backslashifies
9949 # metacharacters that are still active within double-quoted strings.
9950 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9952 # Same as above, but do not quote variable references.
9953 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9955 # Sed substitution to delay expansion of an escaped shell variable in a
9956 # double_quote_subst'ed string.
9957 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9959 # Sed substitution to delay expansion of an escaped single quote.
9960 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9962 # Sed substitution to avoid accidental globbing in evaled expressions
9963 no_glob_subst='s/\*/\\\*/g'
9965 # Global variables:
9966 ofile=libtool
9967 can_build_shared=yes
9969 # All known linkers require a `.a' archive for static linking (except MSVC,
9970 # which needs '.lib').
9971 libext=a
9973 with_gnu_ld="$lt_cv_prog_gnu_ld"
9975 old_CC="$CC"
9976 old_CFLAGS="$CFLAGS"
9978 # Set sane defaults for various variables
9979 test -z "$CC" && CC=cc
9980 test -z "$LTCC" && LTCC=$CC
9981 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9982 test -z "$LD" && LD=ld
9983 test -z "$ac_objext" && ac_objext=o
9985 for cc_temp in $compiler""; do
9986 case $cc_temp in
9987 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9988 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9989 \-*) ;;
9990 *) break;;
9991 esac
9992 done
9993 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9996 # Only perform the check for file, if the check method requires it
9997 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9998 case $deplibs_check_method in
9999 file_magic*)
10000 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10001 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10002 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10003 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10004 $as_echo_n "(cached) " >&6
10005 else
10006 case $MAGIC_CMD in
10007 [\\/*] | ?:[\\/]*)
10008 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10011 lt_save_MAGIC_CMD="$MAGIC_CMD"
10012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10013 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10014 for ac_dir in $ac_dummy; do
10015 IFS="$lt_save_ifs"
10016 test -z "$ac_dir" && ac_dir=.
10017 if test -f $ac_dir/${ac_tool_prefix}file; then
10018 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10019 if test -n "$file_magic_test_file"; then
10020 case $deplibs_check_method in
10021 "file_magic "*)
10022 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10024 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10025 $EGREP "$file_magic_regex" > /dev/null; then
10027 else
10028 cat <<_LT_EOF 1>&2
10030 *** Warning: the command libtool uses to detect shared libraries,
10031 *** $file_magic_cmd, produces output that libtool cannot recognize.
10032 *** The result is that libtool may fail to recognize shared libraries
10033 *** as such. This will affect the creation of libtool libraries that
10034 *** depend on shared libraries, but programs linked with such libtool
10035 *** libraries will work regardless of this problem. Nevertheless, you
10036 *** may want to report the problem to your system manager and/or to
10037 *** bug-libtool@gnu.org
10039 _LT_EOF
10040 fi ;;
10041 esac
10043 break
10045 done
10046 IFS="$lt_save_ifs"
10047 MAGIC_CMD="$lt_save_MAGIC_CMD"
10049 esac
10052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10053 if test -n "$MAGIC_CMD"; then
10054 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10055 $as_echo "$MAGIC_CMD" >&6; }
10056 else
10057 { $as_echo "$as_me:$LINENO: result: no" >&5
10058 $as_echo "no" >&6; }
10065 if test -z "$lt_cv_path_MAGIC_CMD"; then
10066 if test -n "$ac_tool_prefix"; then
10067 { $as_echo "$as_me:$LINENO: checking for file" >&5
10068 $as_echo_n "checking for file... " >&6; }
10069 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10070 $as_echo_n "(cached) " >&6
10071 else
10072 case $MAGIC_CMD in
10073 [\\/*] | ?:[\\/]*)
10074 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10077 lt_save_MAGIC_CMD="$MAGIC_CMD"
10078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10079 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10080 for ac_dir in $ac_dummy; do
10081 IFS="$lt_save_ifs"
10082 test -z "$ac_dir" && ac_dir=.
10083 if test -f $ac_dir/file; then
10084 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10085 if test -n "$file_magic_test_file"; then
10086 case $deplibs_check_method in
10087 "file_magic "*)
10088 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10089 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10090 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10091 $EGREP "$file_magic_regex" > /dev/null; then
10093 else
10094 cat <<_LT_EOF 1>&2
10096 *** Warning: the command libtool uses to detect shared libraries,
10097 *** $file_magic_cmd, produces output that libtool cannot recognize.
10098 *** The result is that libtool may fail to recognize shared libraries
10099 *** as such. This will affect the creation of libtool libraries that
10100 *** depend on shared libraries, but programs linked with such libtool
10101 *** libraries will work regardless of this problem. Nevertheless, you
10102 *** may want to report the problem to your system manager and/or to
10103 *** bug-libtool@gnu.org
10105 _LT_EOF
10106 fi ;;
10107 esac
10109 break
10111 done
10112 IFS="$lt_save_ifs"
10113 MAGIC_CMD="$lt_save_MAGIC_CMD"
10115 esac
10118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10119 if test -n "$MAGIC_CMD"; then
10120 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10121 $as_echo "$MAGIC_CMD" >&6; }
10122 else
10123 { $as_echo "$as_me:$LINENO: result: no" >&5
10124 $as_echo "no" >&6; }
10128 else
10129 MAGIC_CMD=:
10135 esac
10137 # Use C for the default configuration in the libtool script
10139 lt_save_CC="$CC"
10140 ac_ext=c
10141 ac_cpp='$CPP $CPPFLAGS'
10142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10147 # Source file extension for C test sources.
10148 ac_ext=c
10150 # Object file extension for compiled C test sources.
10151 objext=o
10152 objext=$objext
10154 # Code to be used in simple compile tests
10155 lt_simple_compile_test_code="int some_variable = 0;"
10157 # Code to be used in simple link tests
10158 lt_simple_link_test_code='int main(){return(0);}'
10166 # If no C compiler was specified, use CC.
10167 LTCC=${LTCC-"$CC"}
10169 # If no C compiler flags were specified, use CFLAGS.
10170 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10172 # Allow CC to be a program name with arguments.
10173 compiler=$CC
10175 # Save the default compiler, since it gets overwritten when the other
10176 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10177 compiler_DEFAULT=$CC
10179 # save warnings/boilerplate of simple test code
10180 ac_outfile=conftest.$ac_objext
10181 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10182 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10183 _lt_compiler_boilerplate=`cat conftest.err`
10184 $RM conftest*
10186 ac_outfile=conftest.$ac_objext
10187 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10188 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10189 _lt_linker_boilerplate=`cat conftest.err`
10190 $RM -r conftest*
10193 if test -n "$compiler"; then
10195 lt_prog_compiler_no_builtin_flag=
10197 if test "$GCC" = yes; then
10198 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10200 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10201 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10202 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10203 $as_echo_n "(cached) " >&6
10204 else
10205 lt_cv_prog_compiler_rtti_exceptions=no
10206 ac_outfile=conftest.$ac_objext
10207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10208 lt_compiler_flag="-fno-rtti -fno-exceptions"
10209 # Insert the option either (1) after the last *FLAGS variable, or
10210 # (2) before a word containing "conftest.", or (3) at the end.
10211 # Note that $ac_compile itself does not contain backslashes and begins
10212 # with a dollar sign (not a hyphen), so the echo should work correctly.
10213 # The option is referenced via a variable to avoid confusing sed.
10214 lt_compile=`echo "$ac_compile" | $SED \
10215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10217 -e 's:$: $lt_compiler_flag:'`
10218 (eval echo "\"\$as_me:10218: $lt_compile\"" >&5)
10219 (eval "$lt_compile" 2>conftest.err)
10220 ac_status=$?
10221 cat conftest.err >&5
10222 echo "$as_me:10222: \$? = $ac_status" >&5
10223 if (exit $ac_status) && test -s "$ac_outfile"; then
10224 # The compiler can only warn and ignore the option if not recognized
10225 # So say no if there are warnings other than the usual output.
10226 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10228 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10229 lt_cv_prog_compiler_rtti_exceptions=yes
10232 $RM conftest*
10235 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10236 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10238 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10239 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10240 else
10251 lt_prog_compiler_wl=
10252 lt_prog_compiler_pic=
10253 lt_prog_compiler_static=
10255 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10256 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10258 if test "$GCC" = yes; then
10259 lt_prog_compiler_wl='-Wl,'
10260 lt_prog_compiler_static='-static'
10262 case $host_os in
10263 aix*)
10264 # All AIX code is PIC.
10265 if test "$host_cpu" = ia64; then
10266 # AIX 5 now supports IA64 processor
10267 lt_prog_compiler_static='-Bstatic'
10271 amigaos*)
10272 case $host_cpu in
10273 powerpc)
10274 # see comment about AmigaOS4 .so support
10275 lt_prog_compiler_pic='-fPIC'
10277 m68k)
10278 # FIXME: we need at least 68020 code to build shared libraries, but
10279 # adding the `-m68020' flag to GCC prevents building anything better,
10280 # like `-m68040'.
10281 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10283 esac
10286 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10287 # PIC is the default for these OSes.
10290 mingw* | cygwin* | pw32* | os2* | cegcc*)
10291 # This hack is so that the source file can tell whether it is being
10292 # built for inclusion in a dll (and should export symbols for example).
10293 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10294 # (--disable-auto-import) libraries
10295 lt_prog_compiler_pic='-DDLL_EXPORT'
10298 darwin* | rhapsody*)
10299 # PIC is the default on this platform
10300 # Common symbols not allowed in MH_DYLIB files
10301 lt_prog_compiler_pic='-fno-common'
10304 hpux*)
10305 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10306 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10307 # sets the default TLS model and affects inlining.
10308 case $host_cpu in
10309 hppa*64*)
10310 # +Z the default
10313 lt_prog_compiler_pic='-fPIC'
10315 esac
10318 interix[3-9]*)
10319 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10320 # Instead, we relocate shared libraries at runtime.
10323 msdosdjgpp*)
10324 # Just because we use GCC doesn't mean we suddenly get shared libraries
10325 # on systems that don't support them.
10326 lt_prog_compiler_can_build_shared=no
10327 enable_shared=no
10330 *nto* | *qnx*)
10331 # QNX uses GNU C++, but need to define -shared option too, otherwise
10332 # it will coredump.
10333 lt_prog_compiler_pic='-fPIC -shared'
10336 sysv4*MP*)
10337 if test -d /usr/nec; then
10338 lt_prog_compiler_pic=-Kconform_pic
10343 lt_prog_compiler_pic='-fPIC'
10345 esac
10346 else
10347 # PORTME Check for flag to pass linker flags through the system compiler.
10348 case $host_os in
10349 aix*)
10350 lt_prog_compiler_wl='-Wl,'
10351 if test "$host_cpu" = ia64; then
10352 # AIX 5 now supports IA64 processor
10353 lt_prog_compiler_static='-Bstatic'
10354 else
10355 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10359 mingw* | cygwin* | pw32* | os2* | cegcc*)
10360 # This hack is so that the source file can tell whether it is being
10361 # built for inclusion in a dll (and should export symbols for example).
10362 lt_prog_compiler_pic='-DDLL_EXPORT'
10365 hpux9* | hpux10* | hpux11*)
10366 lt_prog_compiler_wl='-Wl,'
10367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10368 # not for PA HP-UX.
10369 case $host_cpu in
10370 hppa*64*|ia64*)
10371 # +Z the default
10374 lt_prog_compiler_pic='+Z'
10376 esac
10377 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10378 lt_prog_compiler_static='${wl}-a ${wl}archive'
10381 irix5* | irix6* | nonstopux*)
10382 lt_prog_compiler_wl='-Wl,'
10383 # PIC (with -KPIC) is the default.
10384 lt_prog_compiler_static='-non_shared'
10387 linux* | k*bsd*-gnu)
10388 case $cc_basename in
10389 # old Intel for x86_64 which still supported -KPIC.
10390 ecc*)
10391 lt_prog_compiler_wl='-Wl,'
10392 lt_prog_compiler_pic='-KPIC'
10393 lt_prog_compiler_static='-static'
10395 # icc used to be incompatible with GCC.
10396 # ICC 10 doesn't accept -KPIC any more.
10397 icc* | ifort*)
10398 lt_prog_compiler_wl='-Wl,'
10399 lt_prog_compiler_pic='-fPIC'
10400 lt_prog_compiler_static='-static'
10402 # Lahey Fortran 8.1.
10403 lf95*)
10404 lt_prog_compiler_wl='-Wl,'
10405 lt_prog_compiler_pic='--shared'
10406 lt_prog_compiler_static='--static'
10408 pgcc* | pgf77* | pgf90* | pgf95*)
10409 # Portland Group compilers (*not* the Pentium gcc compiler,
10410 # which looks to be a dead project)
10411 lt_prog_compiler_wl='-Wl,'
10412 lt_prog_compiler_pic='-fpic'
10413 lt_prog_compiler_static='-Bstatic'
10415 ccc*)
10416 lt_prog_compiler_wl='-Wl,'
10417 # All Alpha code is PIC.
10418 lt_prog_compiler_static='-non_shared'
10420 xl*)
10421 # IBM XL C 8.0/Fortran 10.1 on PPC
10422 lt_prog_compiler_wl='-Wl,'
10423 lt_prog_compiler_pic='-qpic'
10424 lt_prog_compiler_static='-qstaticlink'
10427 case `$CC -V 2>&1 | sed 5q` in
10428 *Sun\ C*)
10429 # Sun C 5.9
10430 lt_prog_compiler_pic='-KPIC'
10431 lt_prog_compiler_static='-Bstatic'
10432 lt_prog_compiler_wl='-Wl,'
10434 *Sun\ F*)
10435 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10436 lt_prog_compiler_pic='-KPIC'
10437 lt_prog_compiler_static='-Bstatic'
10438 lt_prog_compiler_wl=''
10440 esac
10442 esac
10445 newsos6)
10446 lt_prog_compiler_pic='-KPIC'
10447 lt_prog_compiler_static='-Bstatic'
10450 *nto* | *qnx*)
10451 # QNX uses GNU C++, but need to define -shared option too, otherwise
10452 # it will coredump.
10453 lt_prog_compiler_pic='-fPIC -shared'
10456 osf3* | osf4* | osf5*)
10457 lt_prog_compiler_wl='-Wl,'
10458 # All OSF/1 code is PIC.
10459 lt_prog_compiler_static='-non_shared'
10462 rdos*)
10463 lt_prog_compiler_static='-non_shared'
10466 solaris*)
10467 lt_prog_compiler_pic='-KPIC'
10468 lt_prog_compiler_static='-Bstatic'
10469 case $cc_basename in
10470 f77* | f90* | f95*)
10471 lt_prog_compiler_wl='-Qoption ld ';;
10473 lt_prog_compiler_wl='-Wl,';;
10474 esac
10477 sunos4*)
10478 lt_prog_compiler_wl='-Qoption ld '
10479 lt_prog_compiler_pic='-PIC'
10480 lt_prog_compiler_static='-Bstatic'
10483 sysv4 | sysv4.2uw2* | sysv4.3*)
10484 lt_prog_compiler_wl='-Wl,'
10485 lt_prog_compiler_pic='-KPIC'
10486 lt_prog_compiler_static='-Bstatic'
10489 sysv4*MP*)
10490 if test -d /usr/nec ;then
10491 lt_prog_compiler_pic='-Kconform_pic'
10492 lt_prog_compiler_static='-Bstatic'
10496 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10497 lt_prog_compiler_wl='-Wl,'
10498 lt_prog_compiler_pic='-KPIC'
10499 lt_prog_compiler_static='-Bstatic'
10502 unicos*)
10503 lt_prog_compiler_wl='-Wl,'
10504 lt_prog_compiler_can_build_shared=no
10507 uts4*)
10508 lt_prog_compiler_pic='-pic'
10509 lt_prog_compiler_static='-Bstatic'
10513 lt_prog_compiler_can_build_shared=no
10515 esac
10518 case $host_os in
10519 # For platforms which do not support PIC, -DPIC is meaningless:
10520 *djgpp*)
10521 lt_prog_compiler_pic=
10524 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10526 esac
10527 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10528 $as_echo "$lt_prog_compiler_pic" >&6; }
10536 # Check to make sure the PIC flag actually works.
10538 if test -n "$lt_prog_compiler_pic"; then
10539 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10540 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10541 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10542 $as_echo_n "(cached) " >&6
10543 else
10544 lt_cv_prog_compiler_pic_works=no
10545 ac_outfile=conftest.$ac_objext
10546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10547 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10548 # Insert the option either (1) after the last *FLAGS variable, or
10549 # (2) before a word containing "conftest.", or (3) at the end.
10550 # Note that $ac_compile itself does not contain backslashes and begins
10551 # with a dollar sign (not a hyphen), so the echo should work correctly.
10552 # The option is referenced via a variable to avoid confusing sed.
10553 lt_compile=`echo "$ac_compile" | $SED \
10554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10556 -e 's:$: $lt_compiler_flag:'`
10557 (eval echo "\"\$as_me:10557: $lt_compile\"" >&5)
10558 (eval "$lt_compile" 2>conftest.err)
10559 ac_status=$?
10560 cat conftest.err >&5
10561 echo "$as_me:10561: \$? = $ac_status" >&5
10562 if (exit $ac_status) && test -s "$ac_outfile"; then
10563 # The compiler can only warn and ignore the option if not recognized
10564 # So say no if there are warnings other than the usual output.
10565 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10567 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10568 lt_cv_prog_compiler_pic_works=yes
10571 $RM conftest*
10574 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10575 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10577 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10578 case $lt_prog_compiler_pic in
10579 "" | " "*) ;;
10580 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10581 esac
10582 else
10583 lt_prog_compiler_pic=
10584 lt_prog_compiler_can_build_shared=no
10595 # Check to make sure the static flag actually works.
10597 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10598 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10599 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10600 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10601 $as_echo_n "(cached) " >&6
10602 else
10603 lt_cv_prog_compiler_static_works=no
10604 save_LDFLAGS="$LDFLAGS"
10605 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10606 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10607 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10608 # The linker can only warn and ignore the option if not recognized
10609 # So say no if there are warnings
10610 if test -s conftest.err; then
10611 # Append any errors to the config.log.
10612 cat conftest.err 1>&5
10613 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10614 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10615 if diff conftest.exp conftest.er2 >/dev/null; then
10616 lt_cv_prog_compiler_static_works=yes
10618 else
10619 lt_cv_prog_compiler_static_works=yes
10622 $RM -r conftest*
10623 LDFLAGS="$save_LDFLAGS"
10626 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10627 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10629 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10631 else
10632 lt_prog_compiler_static=
10641 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10642 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10643 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10644 $as_echo_n "(cached) " >&6
10645 else
10646 lt_cv_prog_compiler_c_o=no
10647 $RM -r conftest 2>/dev/null
10648 mkdir conftest
10649 cd conftest
10650 mkdir out
10651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10653 lt_compiler_flag="-o out/conftest2.$ac_objext"
10654 # Insert the option either (1) after the last *FLAGS variable, or
10655 # (2) before a word containing "conftest.", or (3) at the end.
10656 # Note that $ac_compile itself does not contain backslashes and begins
10657 # with a dollar sign (not a hyphen), so the echo should work correctly.
10658 lt_compile=`echo "$ac_compile" | $SED \
10659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10661 -e 's:$: $lt_compiler_flag:'`
10662 (eval echo "\"\$as_me:10662: $lt_compile\"" >&5)
10663 (eval "$lt_compile" 2>out/conftest.err)
10664 ac_status=$?
10665 cat out/conftest.err >&5
10666 echo "$as_me:10666: \$? = $ac_status" >&5
10667 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10668 then
10669 # The compiler can only warn and ignore the option if not recognized
10670 # So say no if there are warnings
10671 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10672 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10673 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10674 lt_cv_prog_compiler_c_o=yes
10677 chmod u+w . 2>&5
10678 $RM conftest*
10679 # SGI C++ compiler will create directory out/ii_files/ for
10680 # template instantiation
10681 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10682 $RM out/* && rmdir out
10683 cd ..
10684 $RM -r conftest
10685 $RM conftest*
10688 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10689 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10696 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10697 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10698 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10699 $as_echo_n "(cached) " >&6
10700 else
10701 lt_cv_prog_compiler_c_o=no
10702 $RM -r conftest 2>/dev/null
10703 mkdir conftest
10704 cd conftest
10705 mkdir out
10706 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10708 lt_compiler_flag="-o out/conftest2.$ac_objext"
10709 # Insert the option either (1) after the last *FLAGS variable, or
10710 # (2) before a word containing "conftest.", or (3) at the end.
10711 # Note that $ac_compile itself does not contain backslashes and begins
10712 # with a dollar sign (not a hyphen), so the echo should work correctly.
10713 lt_compile=`echo "$ac_compile" | $SED \
10714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10716 -e 's:$: $lt_compiler_flag:'`
10717 (eval echo "\"\$as_me:10717: $lt_compile\"" >&5)
10718 (eval "$lt_compile" 2>out/conftest.err)
10719 ac_status=$?
10720 cat out/conftest.err >&5
10721 echo "$as_me:10721: \$? = $ac_status" >&5
10722 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10723 then
10724 # The compiler can only warn and ignore the option if not recognized
10725 # So say no if there are warnings
10726 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10727 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10728 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10729 lt_cv_prog_compiler_c_o=yes
10732 chmod u+w . 2>&5
10733 $RM conftest*
10734 # SGI C++ compiler will create directory out/ii_files/ for
10735 # template instantiation
10736 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10737 $RM out/* && rmdir out
10738 cd ..
10739 $RM -r conftest
10740 $RM conftest*
10743 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10744 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10749 hard_links="nottested"
10750 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10751 # do not overwrite the value of need_locks provided by the user
10752 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10753 $as_echo_n "checking if we can lock with hard links... " >&6; }
10754 hard_links=yes
10755 $RM conftest*
10756 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10757 touch conftest.a
10758 ln conftest.a conftest.b 2>&5 || hard_links=no
10759 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10760 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10761 $as_echo "$hard_links" >&6; }
10762 if test "$hard_links" = no; then
10763 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10764 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10765 need_locks=warn
10767 else
10768 need_locks=no
10776 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10777 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10779 runpath_var=
10780 allow_undefined_flag=
10781 always_export_symbols=no
10782 archive_cmds=
10783 archive_expsym_cmds=
10784 compiler_needs_object=no
10785 enable_shared_with_static_runtimes=no
10786 export_dynamic_flag_spec=
10787 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10788 hardcode_automatic=no
10789 hardcode_direct=no
10790 hardcode_direct_absolute=no
10791 hardcode_libdir_flag_spec=
10792 hardcode_libdir_flag_spec_ld=
10793 hardcode_libdir_separator=
10794 hardcode_minus_L=no
10795 hardcode_shlibpath_var=unsupported
10796 inherit_rpath=no
10797 link_all_deplibs=unknown
10798 module_cmds=
10799 module_expsym_cmds=
10800 old_archive_from_new_cmds=
10801 old_archive_from_expsyms_cmds=
10802 thread_safe_flag_spec=
10803 whole_archive_flag_spec=
10804 # include_expsyms should be a list of space-separated symbols to be *always*
10805 # included in the symbol list
10806 include_expsyms=
10807 # exclude_expsyms can be an extended regexp of symbols to exclude
10808 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10809 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10810 # as well as any symbol that contains `d'.
10811 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10812 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10813 # platforms (ab)use it in PIC code, but their linkers get confused if
10814 # the symbol is explicitly referenced. Since portable code cannot
10815 # rely on this symbol name, it's probably fine to never include it in
10816 # preloaded symbol tables.
10817 # Exclude shared library initialization/finalization symbols.
10818 extract_expsyms_cmds=
10820 case $host_os in
10821 cygwin* | mingw* | pw32* | cegcc*)
10822 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10823 # When not using gcc, we currently assume that we are using
10824 # Microsoft Visual C++.
10825 if test "$GCC" != yes; then
10826 with_gnu_ld=no
10829 interix*)
10830 # we just hope/assume this is gcc and not c89 (= MSVC++)
10831 with_gnu_ld=yes
10833 openbsd*)
10834 with_gnu_ld=no
10836 esac
10838 ld_shlibs=yes
10839 if test "$with_gnu_ld" = yes; then
10840 # If archive_cmds runs LD, not CC, wlarc should be empty
10841 wlarc='${wl}'
10843 # Set some defaults for GNU ld with shared library support. These
10844 # are reset later if shared libraries are not supported. Putting them
10845 # here allows them to be overridden if necessary.
10846 runpath_var=LD_RUN_PATH
10847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10848 export_dynamic_flag_spec='${wl}--export-dynamic'
10849 # ancient GNU ld didn't support --whole-archive et. al.
10850 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10851 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10852 else
10853 whole_archive_flag_spec=
10855 supports_anon_versioning=no
10856 case `$LD -v 2>&1` in
10857 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10858 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10859 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10860 *\ 2.11.*) ;; # other 2.11 versions
10861 *) supports_anon_versioning=yes ;;
10862 esac
10864 # See if GNU ld supports shared libraries.
10865 case $host_os in
10866 aix[3-9]*)
10867 # On AIX/PPC, the GNU linker is very broken
10868 if test "$host_cpu" != ia64; then
10869 ld_shlibs=no
10870 cat <<_LT_EOF 1>&2
10872 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10873 *** to be unable to reliably create shared libraries on AIX.
10874 *** Therefore, libtool is disabling shared libraries support. If you
10875 *** really care for shared libraries, you may want to modify your PATH
10876 *** so that a non-GNU linker is found, and then restart.
10878 _LT_EOF
10882 amigaos*)
10883 case $host_cpu in
10884 powerpc)
10885 # see comment about AmigaOS4 .so support
10886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10887 archive_expsym_cmds=''
10889 m68k)
10890 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)'
10891 hardcode_libdir_flag_spec='-L$libdir'
10892 hardcode_minus_L=yes
10894 esac
10897 beos*)
10898 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10899 allow_undefined_flag=unsupported
10900 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10901 # support --undefined. This deserves some investigation. FIXME
10902 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10903 else
10904 ld_shlibs=no
10908 cygwin* | mingw* | pw32* | cegcc*)
10909 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10910 # as there is no search path for DLLs.
10911 hardcode_libdir_flag_spec='-L$libdir'
10912 allow_undefined_flag=unsupported
10913 always_export_symbols=no
10914 enable_shared_with_static_runtimes=yes
10915 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10917 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10919 # If the export-symbols file already is a .def file (1st line
10920 # is EXPORTS), use it as is; otherwise, prepend...
10921 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10922 cp $export_symbols $output_objdir/$soname.def;
10923 else
10924 echo EXPORTS > $output_objdir/$soname.def;
10925 cat $export_symbols >> $output_objdir/$soname.def;
10927 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10928 else
10929 ld_shlibs=no
10933 interix[3-9]*)
10934 hardcode_direct=no
10935 hardcode_shlibpath_var=no
10936 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10937 export_dynamic_flag_spec='${wl}-E'
10938 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10939 # Instead, shared libraries are loaded at an image base (0x10000000 by
10940 # default) and relocated if they conflict, which is a slow very memory
10941 # consuming and fragmenting process. To avoid this, we pick a random,
10942 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10943 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10944 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10945 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'
10948 gnu* | linux* | tpf* | k*bsd*-gnu)
10949 tmp_diet=no
10950 if test "$host_os" = linux-dietlibc; then
10951 case $cc_basename in
10952 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10953 esac
10955 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10956 && test "$tmp_diet" = no
10957 then
10958 tmp_addflag=
10959 tmp_sharedflag='-shared'
10960 case $cc_basename,$host_cpu in
10961 pgcc*) # Portland Group C compiler
10962 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'
10963 tmp_addflag=' $pic_flag'
10965 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10966 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'
10967 tmp_addflag=' $pic_flag -Mnomain' ;;
10968 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10969 tmp_addflag=' -i_dynamic' ;;
10970 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10971 tmp_addflag=' -i_dynamic -nofor_main' ;;
10972 ifc* | ifort*) # Intel Fortran compiler
10973 tmp_addflag=' -nofor_main' ;;
10974 lf95*) # Lahey Fortran 8.1
10975 whole_archive_flag_spec=
10976 tmp_sharedflag='--shared' ;;
10977 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10978 tmp_sharedflag='-qmkshrobj'
10979 tmp_addflag= ;;
10980 esac
10981 case `$CC -V 2>&1 | sed 5q` in
10982 *Sun\ C*) # Sun C 5.9
10983 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'
10984 compiler_needs_object=yes
10985 tmp_sharedflag='-G' ;;
10986 *Sun\ F*) # Sun Fortran 8.3
10987 tmp_sharedflag='-G' ;;
10988 esac
10989 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10991 if test "x$supports_anon_versioning" = xyes; then
10992 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10994 echo "local: *; };" >> $output_objdir/$libname.ver~
10995 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10998 case $cc_basename in
10999 xlf*)
11000 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11001 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11002 hardcode_libdir_flag_spec=
11003 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11004 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11005 if test "x$supports_anon_versioning" = xyes; then
11006 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11007 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11008 echo "local: *; };" >> $output_objdir/$libname.ver~
11009 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11012 esac
11013 else
11014 ld_shlibs=no
11018 netbsd*)
11019 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11020 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11021 wlarc=
11022 else
11023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11028 solaris*)
11029 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11030 ld_shlibs=no
11031 cat <<_LT_EOF 1>&2
11033 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11034 *** create shared libraries on Solaris systems. Therefore, libtool
11035 *** is disabling shared libraries support. We urge you to upgrade GNU
11036 *** binutils to release 2.9.1 or newer. Another option is to modify
11037 *** your PATH or compiler configuration so that the native linker is
11038 *** used, and then restart.
11040 _LT_EOF
11041 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11043 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11044 else
11045 ld_shlibs=no
11049 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11050 case `$LD -v 2>&1` in
11051 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11052 ld_shlibs=no
11053 cat <<_LT_EOF 1>&2
11055 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11056 *** reliably create shared libraries on SCO systems. Therefore, libtool
11057 *** is disabling shared libraries support. We urge you to upgrade GNU
11058 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11059 *** your PATH or compiler configuration so that the native linker is
11060 *** used, and then restart.
11062 _LT_EOF
11065 # For security reasons, it is highly recommended that you always
11066 # use absolute paths for naming shared libraries, and exclude the
11067 # DT_RUNPATH tag from executables and libraries. But doing so
11068 # requires that you compile everything twice, which is a pain.
11069 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11072 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11073 else
11074 ld_shlibs=no
11077 esac
11080 sunos4*)
11081 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11082 wlarc=
11083 hardcode_direct=yes
11084 hardcode_shlibpath_var=no
11088 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11090 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11091 else
11092 ld_shlibs=no
11095 esac
11097 if test "$ld_shlibs" = no; then
11098 runpath_var=
11099 hardcode_libdir_flag_spec=
11100 export_dynamic_flag_spec=
11101 whole_archive_flag_spec=
11103 else
11104 # PORTME fill in a description of your system's linker (not GNU ld)
11105 case $host_os in
11106 aix3*)
11107 allow_undefined_flag=unsupported
11108 always_export_symbols=yes
11109 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'
11110 # Note: this linker hardcodes the directories in LIBPATH if there
11111 # are no directories specified by -L.
11112 hardcode_minus_L=yes
11113 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11114 # Neither direct hardcoding nor static linking is supported with a
11115 # broken collect2.
11116 hardcode_direct=unsupported
11120 aix[4-9]*)
11121 if test "$host_cpu" = ia64; then
11122 # On IA64, the linker does run time linking by default, so we don't
11123 # have to do anything special.
11124 aix_use_runtimelinking=no
11125 exp_sym_flag='-Bexport'
11126 no_entry_flag=""
11127 else
11128 # If we're using GNU nm, then we don't want the "-C" option.
11129 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11130 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11131 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'
11132 else
11133 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'
11135 aix_use_runtimelinking=no
11137 # Test if we are trying to use run time linking or normal
11138 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11139 # need to do runtime linking.
11140 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11141 for ld_flag in $LDFLAGS; do
11142 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11143 aix_use_runtimelinking=yes
11144 break
11146 done
11148 esac
11150 exp_sym_flag='-bexport'
11151 no_entry_flag='-bnoentry'
11154 # When large executables or shared objects are built, AIX ld can
11155 # have problems creating the table of contents. If linking a library
11156 # or program results in "error TOC overflow" add -mminimal-toc to
11157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11160 archive_cmds=''
11161 hardcode_direct=yes
11162 hardcode_direct_absolute=yes
11163 hardcode_libdir_separator=':'
11164 link_all_deplibs=yes
11165 file_list_spec='${wl}-f,'
11167 if test "$GCC" = yes; then
11168 case $host_os in aix4.[012]|aix4.[012].*)
11169 # We only want to do this on AIX 4.2 and lower, the check
11170 # below for broken collect2 doesn't work under 4.3+
11171 collect2name=`${CC} -print-prog-name=collect2`
11172 if test -f "$collect2name" &&
11173 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11174 then
11175 # We have reworked collect2
11177 else
11178 # We have old collect2
11179 hardcode_direct=unsupported
11180 # It fails to find uninstalled libraries when the uninstalled
11181 # path is not listed in the libpath. Setting hardcode_minus_L
11182 # to unsupported forces relinking
11183 hardcode_minus_L=yes
11184 hardcode_libdir_flag_spec='-L$libdir'
11185 hardcode_libdir_separator=
11188 esac
11189 shared_flag='-shared'
11190 if test "$aix_use_runtimelinking" = yes; then
11191 shared_flag="$shared_flag "'${wl}-G'
11193 else
11194 # not using gcc
11195 if test "$host_cpu" = ia64; then
11196 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11197 # chokes on -Wl,-G. The following line is correct:
11198 shared_flag='-G'
11199 else
11200 if test "$aix_use_runtimelinking" = yes; then
11201 shared_flag='${wl}-G'
11202 else
11203 shared_flag='${wl}-bM:SRE'
11208 export_dynamic_flag_spec='${wl}-bexpall'
11209 # It seems that -bexpall does not export symbols beginning with
11210 # underscore (_), so it is better to generate a list of symbols to export.
11211 always_export_symbols=yes
11212 if test "$aix_use_runtimelinking" = yes; then
11213 # Warning - without using the other runtime loading flags (-brtl),
11214 # -berok will link without error, but may produce a broken library.
11215 allow_undefined_flag='-berok'
11216 # Determine the default libpath from the value encoded in an
11217 # empty executable.
11218 cat >conftest.$ac_ext <<_ACEOF
11219 /* confdefs.h. */
11220 _ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11226 main ()
11230 return 0;
11232 _ACEOF
11233 rm -f conftest.$ac_objext conftest$ac_exeext
11234 if { (ac_try="$ac_link"
11235 case "(($ac_try" in
11236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237 *) ac_try_echo=$ac_try;;
11238 esac
11239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11240 $as_echo "$ac_try_echo") >&5
11241 (eval "$ac_link") 2>conftest.er1
11242 ac_status=$?
11243 grep -v '^ *+' conftest.er1 >conftest.err
11244 rm -f conftest.er1
11245 cat conftest.err >&5
11246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } && {
11248 test -z "$ac_c_werror_flag" ||
11249 test ! -s conftest.err
11250 } && test -s conftest$ac_exeext && {
11251 test "$cross_compiling" = yes ||
11252 $as_test_x conftest$ac_exeext
11253 }; then
11255 lt_aix_libpath_sed='
11256 /Import File Strings/,/^$/ {
11257 /^0/ {
11258 s/^0 *\(.*\)$/\1/
11262 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11263 # Check for a 64-bit object if we didn't find anything.
11264 if test -z "$aix_libpath"; then
11265 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11267 else
11268 $as_echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11274 rm -rf conftest.dSYM
11275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11276 conftest$ac_exeext conftest.$ac_ext
11277 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11279 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11280 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"
11281 else
11282 if test "$host_cpu" = ia64; then
11283 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11284 allow_undefined_flag="-z nodefs"
11285 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"
11286 else
11287 # Determine the default libpath from the value encoded in an
11288 # empty executable.
11289 cat >conftest.$ac_ext <<_ACEOF
11290 /* confdefs.h. */
11291 _ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11297 main ()
11301 return 0;
11303 _ACEOF
11304 rm -f conftest.$ac_objext conftest$ac_exeext
11305 if { (ac_try="$ac_link"
11306 case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11309 esac
11310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11311 $as_echo "$ac_try_echo") >&5
11312 (eval "$ac_link") 2>conftest.er1
11313 ac_status=$?
11314 grep -v '^ *+' conftest.er1 >conftest.err
11315 rm -f conftest.er1
11316 cat conftest.err >&5
11317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } && {
11319 test -z "$ac_c_werror_flag" ||
11320 test ! -s conftest.err
11321 } && test -s conftest$ac_exeext && {
11322 test "$cross_compiling" = yes ||
11323 $as_test_x conftest$ac_exeext
11324 }; then
11326 lt_aix_libpath_sed='
11327 /Import File Strings/,/^$/ {
11328 /^0/ {
11329 s/^0 *\(.*\)$/\1/
11333 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11334 # Check for a 64-bit object if we didn't find anything.
11335 if test -z "$aix_libpath"; then
11336 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11338 else
11339 $as_echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11345 rm -rf conftest.dSYM
11346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11347 conftest$ac_exeext conftest.$ac_ext
11348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11350 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11351 # Warning - without using the other run time loading flags,
11352 # -berok will link without error, but may produce a broken library.
11353 no_undefined_flag=' ${wl}-bernotok'
11354 allow_undefined_flag=' ${wl}-berok'
11355 # Exported symbols can be pulled into shared objects from archives
11356 whole_archive_flag_spec='$convenience'
11357 archive_cmds_need_lc=yes
11358 # This is similar to how AIX traditionally builds its shared libraries.
11359 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'
11364 amigaos*)
11365 case $host_cpu in
11366 powerpc)
11367 # see comment about AmigaOS4 .so support
11368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11369 archive_expsym_cmds=''
11371 m68k)
11372 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)'
11373 hardcode_libdir_flag_spec='-L$libdir'
11374 hardcode_minus_L=yes
11376 esac
11379 bsdi[45]*)
11380 export_dynamic_flag_spec=-rdynamic
11383 cygwin* | mingw* | pw32* | cegcc*)
11384 # When not using gcc, we currently assume that we are using
11385 # Microsoft Visual C++.
11386 # hardcode_libdir_flag_spec is actually meaningless, as there is
11387 # no search path for DLLs.
11388 hardcode_libdir_flag_spec=' '
11389 allow_undefined_flag=unsupported
11390 # Tell ltmain to make .lib files, not .a files.
11391 libext=lib
11392 # Tell ltmain to make .dll files, not .so files.
11393 shrext_cmds=".dll"
11394 # FIXME: Setting linknames here is a bad hack.
11395 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11396 # The linker will automatically build a .lib file if we build a DLL.
11397 old_archive_from_new_cmds='true'
11398 # FIXME: Should let the user specify the lib program.
11399 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11400 fix_srcfile_path='`cygpath -w "$srcfile"`'
11401 enable_shared_with_static_runtimes=yes
11404 darwin* | rhapsody*)
11407 archive_cmds_need_lc=no
11408 hardcode_direct=no
11409 hardcode_automatic=yes
11410 hardcode_shlibpath_var=unsupported
11411 whole_archive_flag_spec=''
11412 link_all_deplibs=yes
11413 allow_undefined_flag="$_lt_dar_allow_undefined"
11414 case $cc_basename in
11415 ifort*) _lt_dar_can_shared=yes ;;
11416 *) _lt_dar_can_shared=$GCC ;;
11417 esac
11418 if test "$_lt_dar_can_shared" = "yes"; then
11419 output_verbose_link_cmd=echo
11420 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11421 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11422 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}"
11423 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}"
11425 else
11426 ld_shlibs=no
11431 dgux*)
11432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11433 hardcode_libdir_flag_spec='-L$libdir'
11434 hardcode_shlibpath_var=no
11437 freebsd1*)
11438 ld_shlibs=no
11441 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11442 # support. Future versions do this automatically, but an explicit c++rt0.o
11443 # does not break anything, and helps significantly (at the cost of a little
11444 # extra space).
11445 freebsd2.2*)
11446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11447 hardcode_libdir_flag_spec='-R$libdir'
11448 hardcode_direct=yes
11449 hardcode_shlibpath_var=no
11452 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11453 freebsd2*)
11454 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11455 hardcode_direct=yes
11456 hardcode_minus_L=yes
11457 hardcode_shlibpath_var=no
11460 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11461 freebsd* | dragonfly*)
11462 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11463 hardcode_libdir_flag_spec='-R$libdir'
11464 hardcode_direct=yes
11465 hardcode_shlibpath_var=no
11468 hpux9*)
11469 if test "$GCC" = yes; then
11470 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'
11471 else
11472 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'
11474 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11475 hardcode_libdir_separator=:
11476 hardcode_direct=yes
11478 # hardcode_minus_L: Not really in the search PATH,
11479 # but as the default location of the library.
11480 hardcode_minus_L=yes
11481 export_dynamic_flag_spec='${wl}-E'
11484 hpux10*)
11485 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11486 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11487 else
11488 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11490 if test "$with_gnu_ld" = no; then
11491 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11492 hardcode_libdir_flag_spec_ld='+b $libdir'
11493 hardcode_libdir_separator=:
11494 hardcode_direct=yes
11495 hardcode_direct_absolute=yes
11496 export_dynamic_flag_spec='${wl}-E'
11497 # hardcode_minus_L: Not really in the search PATH,
11498 # but as the default location of the library.
11499 hardcode_minus_L=yes
11503 hpux11*)
11504 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11505 case $host_cpu in
11506 hppa*64*)
11507 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11509 ia64*)
11510 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11513 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11515 esac
11516 else
11517 case $host_cpu in
11518 hppa*64*)
11519 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11521 ia64*)
11522 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11525 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11527 esac
11529 if test "$with_gnu_ld" = no; then
11530 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11531 hardcode_libdir_separator=:
11533 case $host_cpu in
11534 hppa*64*|ia64*)
11535 hardcode_direct=no
11536 hardcode_shlibpath_var=no
11539 hardcode_direct=yes
11540 hardcode_direct_absolute=yes
11541 export_dynamic_flag_spec='${wl}-E'
11543 # hardcode_minus_L: Not really in the search PATH,
11544 # but as the default location of the library.
11545 hardcode_minus_L=yes
11547 esac
11551 irix5* | irix6* | nonstopux*)
11552 if test "$GCC" = yes; then
11553 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'
11554 # Try to use the -exported_symbol ld option, if it does not
11555 # work, assume that -exports_file does not work either and
11556 # implicitly export all symbols.
11557 save_LDFLAGS="$LDFLAGS"
11558 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11559 cat >conftest.$ac_ext <<_ACEOF
11560 int foo(void) {}
11561 _ACEOF
11562 rm -f conftest.$ac_objext conftest$ac_exeext
11563 if { (ac_try="$ac_link"
11564 case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11567 esac
11568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11569 $as_echo "$ac_try_echo") >&5
11570 (eval "$ac_link") 2>conftest.er1
11571 ac_status=$?
11572 grep -v '^ *+' conftest.er1 >conftest.err
11573 rm -f conftest.er1
11574 cat conftest.err >&5
11575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } && {
11577 test -z "$ac_c_werror_flag" ||
11578 test ! -s conftest.err
11579 } && test -s conftest$ac_exeext && {
11580 test "$cross_compiling" = yes ||
11581 $as_test_x conftest$ac_exeext
11582 }; then
11583 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'
11585 else
11586 $as_echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11592 rm -rf conftest.dSYM
11593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11594 conftest$ac_exeext conftest.$ac_ext
11595 LDFLAGS="$save_LDFLAGS"
11596 else
11597 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'
11598 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'
11600 archive_cmds_need_lc='no'
11601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11602 hardcode_libdir_separator=:
11603 inherit_rpath=yes
11604 link_all_deplibs=yes
11607 netbsd*)
11608 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11609 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11610 else
11611 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11613 hardcode_libdir_flag_spec='-R$libdir'
11614 hardcode_direct=yes
11615 hardcode_shlibpath_var=no
11618 newsos6)
11619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11620 hardcode_direct=yes
11621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11622 hardcode_libdir_separator=:
11623 hardcode_shlibpath_var=no
11626 *nto* | *qnx*)
11629 openbsd*)
11630 if test -f /usr/libexec/ld.so; then
11631 hardcode_direct=yes
11632 hardcode_shlibpath_var=no
11633 hardcode_direct_absolute=yes
11634 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11635 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11636 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11637 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11638 export_dynamic_flag_spec='${wl}-E'
11639 else
11640 case $host_os in
11641 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11643 hardcode_libdir_flag_spec='-R$libdir'
11646 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11647 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11649 esac
11651 else
11652 ld_shlibs=no
11656 os2*)
11657 hardcode_libdir_flag_spec='-L$libdir'
11658 hardcode_minus_L=yes
11659 allow_undefined_flag=unsupported
11660 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'
11661 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11664 osf3*)
11665 if test "$GCC" = yes; then
11666 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11667 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'
11668 else
11669 allow_undefined_flag=' -expect_unresolved \*'
11670 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'
11672 archive_cmds_need_lc='no'
11673 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11674 hardcode_libdir_separator=:
11677 osf4* | osf5*) # as osf3* with the addition of -msym flag
11678 if test "$GCC" = yes; then
11679 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11680 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'
11681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11682 else
11683 allow_undefined_flag=' -expect_unresolved \*'
11684 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'
11685 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~
11686 $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'
11688 # Both c and cxx compiler support -rpath directly
11689 hardcode_libdir_flag_spec='-rpath $libdir'
11691 archive_cmds_need_lc='no'
11692 hardcode_libdir_separator=:
11695 solaris*)
11696 no_undefined_flag=' -z defs'
11697 if test "$GCC" = yes; then
11698 wlarc='${wl}'
11699 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11700 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11701 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11702 else
11703 case `$CC -V 2>&1` in
11704 *"Compilers 5.0"*)
11705 wlarc=''
11706 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11707 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11708 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11711 wlarc='${wl}'
11712 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11713 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11714 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11716 esac
11718 hardcode_libdir_flag_spec='-R$libdir'
11719 hardcode_shlibpath_var=no
11720 case $host_os in
11721 solaris2.[0-5] | solaris2.[0-5].*) ;;
11723 # The compiler driver will combine and reorder linker options,
11724 # but understands `-z linker_flag'. GCC discards it without `$wl',
11725 # but is careful enough not to reorder.
11726 # Supported since Solaris 2.6 (maybe 2.5.1?)
11727 if test "$GCC" = yes; then
11728 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11729 else
11730 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11733 esac
11734 link_all_deplibs=yes
11737 sunos4*)
11738 if test "x$host_vendor" = xsequent; then
11739 # Use $CC to link under sequent, because it throws in some extra .o
11740 # files that make .init and .fini sections work.
11741 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11742 else
11743 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11745 hardcode_libdir_flag_spec='-L$libdir'
11746 hardcode_direct=yes
11747 hardcode_minus_L=yes
11748 hardcode_shlibpath_var=no
11751 sysv4)
11752 case $host_vendor in
11753 sni)
11754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11755 hardcode_direct=yes # is this really true???
11757 siemens)
11758 ## LD is ld it makes a PLAMLIB
11759 ## CC just makes a GrossModule.
11760 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11761 reload_cmds='$CC -r -o $output$reload_objs'
11762 hardcode_direct=no
11764 motorola)
11765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11766 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11768 esac
11769 runpath_var='LD_RUN_PATH'
11770 hardcode_shlibpath_var=no
11773 sysv4.3*)
11774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11775 hardcode_shlibpath_var=no
11776 export_dynamic_flag_spec='-Bexport'
11779 sysv4*MP*)
11780 if test -d /usr/nec; then
11781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11782 hardcode_shlibpath_var=no
11783 runpath_var=LD_RUN_PATH
11784 hardcode_runpath_var=yes
11785 ld_shlibs=yes
11789 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11790 no_undefined_flag='${wl}-z,text'
11791 archive_cmds_need_lc=no
11792 hardcode_shlibpath_var=no
11793 runpath_var='LD_RUN_PATH'
11795 if test "$GCC" = yes; then
11796 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11797 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11798 else
11799 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11800 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11804 sysv5* | sco3.2v5* | sco5v6*)
11805 # Note: We can NOT use -z defs as we might desire, because we do not
11806 # link with -lc, and that would cause any symbols used from libc to
11807 # always be unresolved, which means just about no library would
11808 # ever link correctly. If we're not using GNU ld we use -z text
11809 # though, which does catch some bad symbols but isn't as heavy-handed
11810 # as -z defs.
11811 no_undefined_flag='${wl}-z,text'
11812 allow_undefined_flag='${wl}-z,nodefs'
11813 archive_cmds_need_lc=no
11814 hardcode_shlibpath_var=no
11815 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11816 hardcode_libdir_separator=':'
11817 link_all_deplibs=yes
11818 export_dynamic_flag_spec='${wl}-Bexport'
11819 runpath_var='LD_RUN_PATH'
11821 if test "$GCC" = yes; then
11822 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11823 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11824 else
11825 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11826 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11830 uts4*)
11831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11832 hardcode_libdir_flag_spec='-L$libdir'
11833 hardcode_shlibpath_var=no
11837 ld_shlibs=no
11839 esac
11841 if test x$host_vendor = xsni; then
11842 case $host in
11843 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11844 export_dynamic_flag_spec='${wl}-Blargedynsym'
11846 esac
11850 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11851 $as_echo "$ld_shlibs" >&6; }
11852 test "$ld_shlibs" = no && can_build_shared=no
11854 with_gnu_ld=$with_gnu_ld
11871 # Do we need to explicitly link libc?
11873 case "x$archive_cmds_need_lc" in
11874 x|xyes)
11875 # Assume -lc should be added
11876 archive_cmds_need_lc=yes
11878 if test "$enable_shared" = yes && test "$GCC" = yes; then
11879 case $archive_cmds in
11880 *'~'*)
11881 # FIXME: we may have to deal with multi-command sequences.
11883 '$CC '*)
11884 # Test whether the compiler implicitly links with -lc since on some
11885 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11886 # to ld, don't add -lc before -lgcc.
11887 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11888 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11889 $RM conftest*
11890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11893 (eval $ac_compile) 2>&5
11894 ac_status=$?
11895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } 2>conftest.err; then
11897 soname=conftest
11898 lib=conftest
11899 libobjs=conftest.$ac_objext
11900 deplibs=
11901 wl=$lt_prog_compiler_wl
11902 pic_flag=$lt_prog_compiler_pic
11903 compiler_flags=-v
11904 linker_flags=-v
11905 verstring=
11906 output_objdir=.
11907 libname=conftest
11908 lt_save_allow_undefined_flag=$allow_undefined_flag
11909 allow_undefined_flag=
11910 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11911 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11912 ac_status=$?
11913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }
11915 then
11916 archive_cmds_need_lc=no
11917 else
11918 archive_cmds_need_lc=yes
11920 allow_undefined_flag=$lt_save_allow_undefined_flag
11921 else
11922 cat conftest.err 1>&5
11924 $RM conftest*
11925 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11926 $as_echo "$archive_cmds_need_lc" >&6; }
11928 esac
11931 esac
12089 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12090 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12092 if test "$GCC" = yes; then
12093 case $host_os in
12094 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12095 *) lt_awk_arg="/^libraries:/" ;;
12096 esac
12097 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12098 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12099 # if the path contains ";" then we assume it to be the separator
12100 # otherwise default to the standard path separator (i.e. ":") - it is
12101 # assumed that no part of a normal pathname contains ";" but that should
12102 # okay in the real world where ";" in dirpaths is itself problematic.
12103 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12104 else
12105 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12107 # Ok, now we have the path, separated by spaces, we can step through it
12108 # and add multilib dir if necessary.
12109 lt_tmp_lt_search_path_spec=
12110 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12111 for lt_sys_path in $lt_search_path_spec; do
12112 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12113 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12114 else
12115 test -d "$lt_sys_path" && \
12116 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12118 done
12119 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12120 BEGIN {RS=" "; FS="/|\n";} {
12121 lt_foo="";
12122 lt_count=0;
12123 for (lt_i = NF; lt_i > 0; lt_i--) {
12124 if ($lt_i != "" && $lt_i != ".") {
12125 if ($lt_i == "..") {
12126 lt_count++;
12127 } else {
12128 if (lt_count == 0) {
12129 lt_foo="/" $lt_i lt_foo;
12130 } else {
12131 lt_count--;
12136 if (lt_foo != "") { lt_freq[lt_foo]++; }
12137 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12139 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12140 else
12141 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12143 library_names_spec=
12144 libname_spec='lib$name'
12145 soname_spec=
12146 shrext_cmds=".so"
12147 postinstall_cmds=
12148 postuninstall_cmds=
12149 finish_cmds=
12150 finish_eval=
12151 shlibpath_var=
12152 shlibpath_overrides_runpath=unknown
12153 version_type=none
12154 dynamic_linker="$host_os ld.so"
12155 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12156 need_lib_prefix=unknown
12157 hardcode_into_libs=no
12159 # when you set need_version to no, make sure it does not cause -set_version
12160 # flags to be left without arguments
12161 need_version=unknown
12163 case $host_os in
12164 aix3*)
12165 version_type=linux
12166 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12167 shlibpath_var=LIBPATH
12169 # AIX 3 has no versioning support, so we append a major version to the name.
12170 soname_spec='${libname}${release}${shared_ext}$major'
12173 aix[4-9]*)
12174 version_type=linux
12175 need_lib_prefix=no
12176 need_version=no
12177 hardcode_into_libs=yes
12178 if test "$host_cpu" = ia64; then
12179 # AIX 5 supports IA64
12180 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12181 shlibpath_var=LD_LIBRARY_PATH
12182 else
12183 # With GCC up to 2.95.x, collect2 would create an import file
12184 # for dependence libraries. The import file would start with
12185 # the line `#! .'. This would cause the generated library to
12186 # depend on `.', always an invalid library. This was fixed in
12187 # development snapshots of GCC prior to 3.0.
12188 case $host_os in
12189 aix4 | aix4.[01] | aix4.[01].*)
12190 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12191 echo ' yes '
12192 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12194 else
12195 can_build_shared=no
12198 esac
12199 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12200 # soname into executable. Probably we can add versioning support to
12201 # collect2, so additional links can be useful in future.
12202 if test "$aix_use_runtimelinking" = yes; then
12203 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12204 # instead of lib<name>.a to let people know that these are not
12205 # typical AIX shared libraries.
12206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12207 else
12208 # We preserve .a as extension for shared libraries through AIX4.2
12209 # and later when we are not doing run time linking.
12210 library_names_spec='${libname}${release}.a $libname.a'
12211 soname_spec='${libname}${release}${shared_ext}$major'
12213 shlibpath_var=LIBPATH
12217 amigaos*)
12218 case $host_cpu in
12219 powerpc)
12220 # Since July 2007 AmigaOS4 officially supports .so libraries.
12221 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12224 m68k)
12225 library_names_spec='$libname.ixlibrary $libname.a'
12226 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12227 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'
12229 esac
12232 beos*)
12233 library_names_spec='${libname}${shared_ext}'
12234 dynamic_linker="$host_os ld.so"
12235 shlibpath_var=LIBRARY_PATH
12238 bsdi[45]*)
12239 version_type=linux
12240 need_version=no
12241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12242 soname_spec='${libname}${release}${shared_ext}$major'
12243 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12244 shlibpath_var=LD_LIBRARY_PATH
12245 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12246 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12247 # the default ld.so.conf also contains /usr/contrib/lib and
12248 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12249 # libtool to hard-code these into programs
12252 cygwin* | mingw* | pw32* | cegcc*)
12253 version_type=windows
12254 shrext_cmds=".dll"
12255 need_version=no
12256 need_lib_prefix=no
12258 case $GCC,$host_os in
12259 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12260 library_names_spec='$libname.dll.a'
12261 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12262 postinstall_cmds='base_file=`basename \${file}`~
12263 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12264 dldir=$destdir/`dirname \$dlpath`~
12265 test -d \$dldir || mkdir -p \$dldir~
12266 $install_prog $dir/$dlname \$dldir/$dlname~
12267 chmod a+x \$dldir/$dlname~
12268 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12269 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12271 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12272 dlpath=$dir/\$dldll~
12273 $RM \$dlpath'
12274 shlibpath_overrides_runpath=yes
12276 case $host_os in
12277 cygwin*)
12278 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12279 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12280 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12282 mingw* | cegcc*)
12283 # MinGW DLLs use traditional 'lib' prefix
12284 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12285 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12286 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12287 # It is most probably a Windows format PATH printed by
12288 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12289 # path with ; separators, and with drive letters. We can handle the
12290 # drive letters (cygwin fileutils understands them), so leave them,
12291 # especially as we might pass files found there to a mingw objdump,
12292 # which wouldn't understand a cygwinified path. Ahh.
12293 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12294 else
12295 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12298 pw32*)
12299 # pw32 DLLs use 'pw' prefix rather than 'lib'
12300 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12302 esac
12306 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12308 esac
12309 dynamic_linker='Win32 ld.exe'
12310 # FIXME: first we should search . and the directory the executable is in
12311 shlibpath_var=PATH
12314 darwin* | rhapsody*)
12315 dynamic_linker="$host_os dyld"
12316 version_type=darwin
12317 need_lib_prefix=no
12318 need_version=no
12319 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12320 soname_spec='${libname}${release}${major}$shared_ext'
12321 shlibpath_overrides_runpath=yes
12322 shlibpath_var=DYLD_LIBRARY_PATH
12323 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12325 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12326 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12329 dgux*)
12330 version_type=linux
12331 need_lib_prefix=no
12332 need_version=no
12333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12334 soname_spec='${libname}${release}${shared_ext}$major'
12335 shlibpath_var=LD_LIBRARY_PATH
12338 freebsd1*)
12339 dynamic_linker=no
12342 freebsd* | dragonfly*)
12343 # DragonFly does not have aout. When/if they implement a new
12344 # versioning mechanism, adjust this.
12345 if test -x /usr/bin/objformat; then
12346 objformat=`/usr/bin/objformat`
12347 else
12348 case $host_os in
12349 freebsd[123]*) objformat=aout ;;
12350 *) objformat=elf ;;
12351 esac
12353 version_type=freebsd-$objformat
12354 case $version_type in
12355 freebsd-elf*)
12356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12357 need_version=no
12358 need_lib_prefix=no
12360 freebsd-*)
12361 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12362 need_version=yes
12364 esac
12365 shlibpath_var=LD_LIBRARY_PATH
12366 case $host_os in
12367 freebsd2*)
12368 shlibpath_overrides_runpath=yes
12370 freebsd3.[01]* | freebsdelf3.[01]*)
12371 shlibpath_overrides_runpath=yes
12372 hardcode_into_libs=yes
12374 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12375 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12376 shlibpath_overrides_runpath=no
12377 hardcode_into_libs=yes
12379 *) # from 4.6 on, and DragonFly
12380 shlibpath_overrides_runpath=yes
12381 hardcode_into_libs=yes
12383 esac
12386 gnu*)
12387 version_type=linux
12388 need_lib_prefix=no
12389 need_version=no
12390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12391 soname_spec='${libname}${release}${shared_ext}$major'
12392 shlibpath_var=LD_LIBRARY_PATH
12393 hardcode_into_libs=yes
12396 hpux9* | hpux10* | hpux11*)
12397 # Give a soname corresponding to the major version so that dld.sl refuses to
12398 # link against other versions.
12399 version_type=sunos
12400 need_lib_prefix=no
12401 need_version=no
12402 case $host_cpu in
12403 ia64*)
12404 shrext_cmds='.so'
12405 hardcode_into_libs=yes
12406 dynamic_linker="$host_os dld.so"
12407 shlibpath_var=LD_LIBRARY_PATH
12408 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12410 soname_spec='${libname}${release}${shared_ext}$major'
12411 if test "X$HPUX_IA64_MODE" = X32; then
12412 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12413 else
12414 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12416 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12418 hppa*64*)
12419 shrext_cmds='.sl'
12420 hardcode_into_libs=yes
12421 dynamic_linker="$host_os dld.sl"
12422 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12423 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12425 soname_spec='${libname}${release}${shared_ext}$major'
12426 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12427 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12430 shrext_cmds='.sl'
12431 dynamic_linker="$host_os dld.sl"
12432 shlibpath_var=SHLIB_PATH
12433 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12435 soname_spec='${libname}${release}${shared_ext}$major'
12437 esac
12438 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12439 postinstall_cmds='chmod 555 $lib'
12442 interix[3-9]*)
12443 version_type=linux
12444 need_lib_prefix=no
12445 need_version=no
12446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12447 soname_spec='${libname}${release}${shared_ext}$major'
12448 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12449 shlibpath_var=LD_LIBRARY_PATH
12450 shlibpath_overrides_runpath=no
12451 hardcode_into_libs=yes
12454 irix5* | irix6* | nonstopux*)
12455 case $host_os in
12456 nonstopux*) version_type=nonstopux ;;
12458 if test "$lt_cv_prog_gnu_ld" = yes; then
12459 version_type=linux
12460 else
12461 version_type=irix
12462 fi ;;
12463 esac
12464 need_lib_prefix=no
12465 need_version=no
12466 soname_spec='${libname}${release}${shared_ext}$major'
12467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12468 case $host_os in
12469 irix5* | nonstopux*)
12470 libsuff= shlibsuff=
12473 case $LD in # libtool.m4 will add one of these switches to LD
12474 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12475 libsuff= shlibsuff= libmagic=32-bit;;
12476 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12477 libsuff=32 shlibsuff=N32 libmagic=N32;;
12478 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12479 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12480 *) libsuff= shlibsuff= libmagic=never-match;;
12481 esac
12483 esac
12484 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12485 shlibpath_overrides_runpath=no
12486 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12487 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12488 hardcode_into_libs=yes
12491 # No shared lib support for Linux oldld, aout, or coff.
12492 linux*oldld* | linux*aout* | linux*coff*)
12493 dynamic_linker=no
12496 # This must be Linux ELF.
12497 linux* | k*bsd*-gnu)
12498 version_type=linux
12499 need_lib_prefix=no
12500 need_version=no
12501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12502 soname_spec='${libname}${release}${shared_ext}$major'
12503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12504 shlibpath_var=LD_LIBRARY_PATH
12505 shlibpath_overrides_runpath=no
12506 # Some binutils ld are patched to set DT_RUNPATH
12507 save_LDFLAGS=$LDFLAGS
12508 save_libdir=$libdir
12509 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12510 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12511 cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h. */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12519 main ()
12523 return 0;
12525 _ACEOF
12526 rm -f conftest.$ac_objext conftest$ac_exeext
12527 if { (ac_try="$ac_link"
12528 case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531 esac
12532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12533 $as_echo "$ac_try_echo") >&5
12534 (eval "$ac_link") 2>conftest.er1
12535 ac_status=$?
12536 grep -v '^ *+' conftest.er1 >conftest.err
12537 rm -f conftest.er1
12538 cat conftest.err >&5
12539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } && {
12541 test -z "$ac_c_werror_flag" ||
12542 test ! -s conftest.err
12543 } && test -s conftest$ac_exeext && {
12544 test "$cross_compiling" = yes ||
12545 $as_test_x conftest$ac_exeext
12546 }; then
12547 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
12548 shlibpath_overrides_runpath=yes
12551 else
12552 $as_echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12558 rm -rf conftest.dSYM
12559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12560 conftest$ac_exeext conftest.$ac_ext
12561 LDFLAGS=$save_LDFLAGS
12562 libdir=$save_libdir
12564 # This implies no fast_install, which is unacceptable.
12565 # Some rework will be needed to allow for fast_install
12566 # before this can be enabled.
12567 hardcode_into_libs=yes
12569 # Append ld.so.conf contents to the search path
12570 if test -f /etc/ld.so.conf; then
12571 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' ' '`
12572 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12575 # We used to test for /lib/ld.so.1 and disable shared libraries on
12576 # powerpc, because MkLinux only supported shared libraries with the
12577 # GNU dynamic linker. Since this was broken with cross compilers,
12578 # most powerpc-linux boxes support dynamic linking these days and
12579 # people can always --disable-shared, the test was removed, and we
12580 # assume the GNU/Linux dynamic linker is in use.
12581 dynamic_linker='GNU/Linux ld.so'
12584 netbsd*)
12585 version_type=sunos
12586 need_lib_prefix=no
12587 need_version=no
12588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12591 dynamic_linker='NetBSD (a.out) ld.so'
12592 else
12593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12594 soname_spec='${libname}${release}${shared_ext}$major'
12595 dynamic_linker='NetBSD ld.elf_so'
12597 shlibpath_var=LD_LIBRARY_PATH
12598 shlibpath_overrides_runpath=yes
12599 hardcode_into_libs=yes
12602 newsos6)
12603 version_type=linux
12604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12605 shlibpath_var=LD_LIBRARY_PATH
12606 shlibpath_overrides_runpath=yes
12609 *nto* | *qnx*)
12610 version_type=qnx
12611 need_lib_prefix=no
12612 need_version=no
12613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12614 soname_spec='${libname}${release}${shared_ext}$major'
12615 shlibpath_var=LD_LIBRARY_PATH
12616 shlibpath_overrides_runpath=no
12617 hardcode_into_libs=yes
12618 dynamic_linker='ldqnx.so'
12621 openbsd*)
12622 version_type=sunos
12623 sys_lib_dlsearch_path_spec="/usr/lib"
12624 need_lib_prefix=no
12625 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12626 case $host_os in
12627 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12628 *) need_version=no ;;
12629 esac
12630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12632 shlibpath_var=LD_LIBRARY_PATH
12633 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12634 case $host_os in
12635 openbsd2.[89] | openbsd2.[89].*)
12636 shlibpath_overrides_runpath=no
12639 shlibpath_overrides_runpath=yes
12641 esac
12642 else
12643 shlibpath_overrides_runpath=yes
12647 os2*)
12648 libname_spec='$name'
12649 shrext_cmds=".dll"
12650 need_lib_prefix=no
12651 library_names_spec='$libname${shared_ext} $libname.a'
12652 dynamic_linker='OS/2 ld.exe'
12653 shlibpath_var=LIBPATH
12656 osf3* | osf4* | osf5*)
12657 version_type=osf
12658 need_lib_prefix=no
12659 need_version=no
12660 soname_spec='${libname}${release}${shared_ext}$major'
12661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12662 shlibpath_var=LD_LIBRARY_PATH
12663 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12664 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12667 rdos*)
12668 dynamic_linker=no
12671 solaris*)
12672 version_type=linux
12673 need_lib_prefix=no
12674 need_version=no
12675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12676 soname_spec='${libname}${release}${shared_ext}$major'
12677 shlibpath_var=LD_LIBRARY_PATH
12678 shlibpath_overrides_runpath=yes
12679 hardcode_into_libs=yes
12680 # ldd complains unless libraries are executable
12681 postinstall_cmds='chmod +x $lib'
12684 sunos4*)
12685 version_type=sunos
12686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12687 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12688 shlibpath_var=LD_LIBRARY_PATH
12689 shlibpath_overrides_runpath=yes
12690 if test "$with_gnu_ld" = yes; then
12691 need_lib_prefix=no
12693 need_version=yes
12696 sysv4 | sysv4.3*)
12697 version_type=linux
12698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12699 soname_spec='${libname}${release}${shared_ext}$major'
12700 shlibpath_var=LD_LIBRARY_PATH
12701 case $host_vendor in
12702 sni)
12703 shlibpath_overrides_runpath=no
12704 need_lib_prefix=no
12705 runpath_var=LD_RUN_PATH
12707 siemens)
12708 need_lib_prefix=no
12710 motorola)
12711 need_lib_prefix=no
12712 need_version=no
12713 shlibpath_overrides_runpath=no
12714 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12716 esac
12719 sysv4*MP*)
12720 if test -d /usr/nec ;then
12721 version_type=linux
12722 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12723 soname_spec='$libname${shared_ext}.$major'
12724 shlibpath_var=LD_LIBRARY_PATH
12728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12729 version_type=freebsd-elf
12730 need_lib_prefix=no
12731 need_version=no
12732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12733 soname_spec='${libname}${release}${shared_ext}$major'
12734 shlibpath_var=LD_LIBRARY_PATH
12735 shlibpath_overrides_runpath=yes
12736 hardcode_into_libs=yes
12737 if test "$with_gnu_ld" = yes; then
12738 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12739 else
12740 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12741 case $host_os in
12742 sco3.2v5*)
12743 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12745 esac
12747 sys_lib_dlsearch_path_spec='/usr/lib'
12750 tpf*)
12751 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12752 version_type=linux
12753 need_lib_prefix=no
12754 need_version=no
12755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12756 shlibpath_var=LD_LIBRARY_PATH
12757 shlibpath_overrides_runpath=no
12758 hardcode_into_libs=yes
12761 uts4*)
12762 version_type=linux
12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12764 soname_spec='${libname}${release}${shared_ext}$major'
12765 shlibpath_var=LD_LIBRARY_PATH
12769 dynamic_linker=no
12771 esac
12772 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12773 $as_echo "$dynamic_linker" >&6; }
12774 test "$dynamic_linker" = no && can_build_shared=no
12776 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12777 if test "$GCC" = yes; then
12778 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12781 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12782 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12784 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12785 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12874 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12875 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12876 hardcode_action=
12877 if test -n "$hardcode_libdir_flag_spec" ||
12878 test -n "$runpath_var" ||
12879 test "X$hardcode_automatic" = "Xyes" ; then
12881 # We can hardcode non-existent directories.
12882 if test "$hardcode_direct" != no &&
12883 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12884 # have to relink, otherwise we might link with an installed library
12885 # when we should be linking with a yet-to-be-installed one
12886 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12887 test "$hardcode_minus_L" != no; then
12888 # Linking always hardcodes the temporary library directory.
12889 hardcode_action=relink
12890 else
12891 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12892 hardcode_action=immediate
12894 else
12895 # We cannot hardcode anything, or else we can only hardcode existing
12896 # directories.
12897 hardcode_action=unsupported
12899 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12900 $as_echo "$hardcode_action" >&6; }
12902 if test "$hardcode_action" = relink ||
12903 test "$inherit_rpath" = yes; then
12904 # Fast installation is not supported
12905 enable_fast_install=no
12906 elif test "$shlibpath_overrides_runpath" = yes ||
12907 test "$enable_shared" = no; then
12908 # Fast installation is not necessary
12909 enable_fast_install=needless
12917 if test "x$enable_dlopen" != xyes; then
12918 enable_dlopen=unknown
12919 enable_dlopen_self=unknown
12920 enable_dlopen_self_static=unknown
12921 else
12922 lt_cv_dlopen=no
12923 lt_cv_dlopen_libs=
12925 case $host_os in
12926 beos*)
12927 lt_cv_dlopen="load_add_on"
12928 lt_cv_dlopen_libs=
12929 lt_cv_dlopen_self=yes
12932 mingw* | pw32* | cegcc*)
12933 lt_cv_dlopen="LoadLibrary"
12934 lt_cv_dlopen_libs=
12937 cygwin*)
12938 lt_cv_dlopen="dlopen"
12939 lt_cv_dlopen_libs=
12942 darwin*)
12943 # if libdl is installed we need to link against it
12944 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12945 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12946 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12947 $as_echo_n "(cached) " >&6
12948 else
12949 ac_check_lib_save_LIBS=$LIBS
12950 LIBS="-ldl $LIBS"
12951 cat >conftest.$ac_ext <<_ACEOF
12952 /* confdefs.h. */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12958 /* Override any GCC internal prototype to avoid an error.
12959 Use char because int might match the return type of a GCC
12960 builtin and then its argument prototype would still apply. */
12961 #ifdef __cplusplus
12962 extern "C"
12963 #endif
12964 char dlopen ();
12966 main ()
12968 return dlopen ();
12970 return 0;
12972 _ACEOF
12973 rm -f conftest.$ac_objext conftest$ac_exeext
12974 if { (ac_try="$ac_link"
12975 case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12978 esac
12979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12980 $as_echo "$ac_try_echo") >&5
12981 (eval "$ac_link") 2>conftest.er1
12982 ac_status=$?
12983 grep -v '^ *+' conftest.er1 >conftest.err
12984 rm -f conftest.er1
12985 cat conftest.err >&5
12986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } && {
12988 test -z "$ac_c_werror_flag" ||
12989 test ! -s conftest.err
12990 } && test -s conftest$ac_exeext && {
12991 test "$cross_compiling" = yes ||
12992 $as_test_x conftest$ac_exeext
12993 }; then
12994 ac_cv_lib_dl_dlopen=yes
12995 else
12996 $as_echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12999 ac_cv_lib_dl_dlopen=no
13002 rm -rf conftest.dSYM
13003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13004 conftest$ac_exeext conftest.$ac_ext
13005 LIBS=$ac_check_lib_save_LIBS
13007 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13008 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13009 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13011 else
13013 lt_cv_dlopen="dyld"
13014 lt_cv_dlopen_libs=
13015 lt_cv_dlopen_self=yes
13022 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
13023 $as_echo_n "checking for shl_load... " >&6; }
13024 if test "${ac_cv_func_shl_load+set}" = set; then
13025 $as_echo_n "(cached) " >&6
13026 else
13027 cat >conftest.$ac_ext <<_ACEOF
13028 /* confdefs.h. */
13029 _ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13033 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13035 #define shl_load innocuous_shl_load
13037 /* System header to define __stub macros and hopefully few prototypes,
13038 which can conflict with char shl_load (); below.
13039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13040 <limits.h> exists even on freestanding compilers. */
13042 #ifdef __STDC__
13043 # include <limits.h>
13044 #else
13045 # include <assert.h>
13046 #endif
13048 #undef shl_load
13050 /* Override any GCC internal prototype to avoid an error.
13051 Use char because int might match the return type of a GCC
13052 builtin and then its argument prototype would still apply. */
13053 #ifdef __cplusplus
13054 extern "C"
13055 #endif
13056 char shl_load ();
13057 /* The GNU C library defines this for functions which it implements
13058 to always fail with ENOSYS. Some functions are actually named
13059 something starting with __ and the normal name is an alias. */
13060 #if defined __stub_shl_load || defined __stub___shl_load
13061 choke me
13062 #endif
13065 main ()
13067 return shl_load ();
13069 return 0;
13071 _ACEOF
13072 rm -f conftest.$ac_objext conftest$ac_exeext
13073 if { (ac_try="$ac_link"
13074 case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13077 esac
13078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13079 $as_echo "$ac_try_echo") >&5
13080 (eval "$ac_link") 2>conftest.er1
13081 ac_status=$?
13082 grep -v '^ *+' conftest.er1 >conftest.err
13083 rm -f conftest.er1
13084 cat conftest.err >&5
13085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); } && {
13087 test -z "$ac_c_werror_flag" ||
13088 test ! -s conftest.err
13089 } && test -s conftest$ac_exeext && {
13090 test "$cross_compiling" = yes ||
13091 $as_test_x conftest$ac_exeext
13092 }; then
13093 ac_cv_func_shl_load=yes
13094 else
13095 $as_echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13098 ac_cv_func_shl_load=no
13101 rm -rf conftest.dSYM
13102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13103 conftest$ac_exeext conftest.$ac_ext
13105 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13106 $as_echo "$ac_cv_func_shl_load" >&6; }
13107 if test "x$ac_cv_func_shl_load" = x""yes; then
13108 lt_cv_dlopen="shl_load"
13109 else
13110 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13111 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13112 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13113 $as_echo_n "(cached) " >&6
13114 else
13115 ac_check_lib_save_LIBS=$LIBS
13116 LIBS="-ldld $LIBS"
13117 cat >conftest.$ac_ext <<_ACEOF
13118 /* confdefs.h. */
13119 _ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13124 /* Override any GCC internal prototype to avoid an error.
13125 Use char because int might match the return type of a GCC
13126 builtin and then its argument prototype would still apply. */
13127 #ifdef __cplusplus
13128 extern "C"
13129 #endif
13130 char shl_load ();
13132 main ()
13134 return shl_load ();
13136 return 0;
13138 _ACEOF
13139 rm -f conftest.$ac_objext conftest$ac_exeext
13140 if { (ac_try="$ac_link"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144 esac
13145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13146 $as_echo "$ac_try_echo") >&5
13147 (eval "$ac_link") 2>conftest.er1
13148 ac_status=$?
13149 grep -v '^ *+' conftest.er1 >conftest.err
13150 rm -f conftest.er1
13151 cat conftest.err >&5
13152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } && {
13154 test -z "$ac_c_werror_flag" ||
13155 test ! -s conftest.err
13156 } && test -s conftest$ac_exeext && {
13157 test "$cross_compiling" = yes ||
13158 $as_test_x conftest$ac_exeext
13159 }; then
13160 ac_cv_lib_dld_shl_load=yes
13161 else
13162 $as_echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 ac_cv_lib_dld_shl_load=no
13168 rm -rf conftest.dSYM
13169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13170 conftest$ac_exeext conftest.$ac_ext
13171 LIBS=$ac_check_lib_save_LIBS
13173 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13174 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13175 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
13176 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13177 else
13178 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
13179 $as_echo_n "checking for dlopen... " >&6; }
13180 if test "${ac_cv_func_dlopen+set}" = set; then
13181 $as_echo_n "(cached) " >&6
13182 else
13183 cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h. */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13191 #define dlopen innocuous_dlopen
13193 /* System header to define __stub macros and hopefully few prototypes,
13194 which can conflict with char dlopen (); below.
13195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13196 <limits.h> exists even on freestanding compilers. */
13198 #ifdef __STDC__
13199 # include <limits.h>
13200 #else
13201 # include <assert.h>
13202 #endif
13204 #undef dlopen
13206 /* Override any GCC internal prototype to avoid an error.
13207 Use char because int might match the return type of a GCC
13208 builtin and then its argument prototype would still apply. */
13209 #ifdef __cplusplus
13210 extern "C"
13211 #endif
13212 char dlopen ();
13213 /* The GNU C library defines this for functions which it implements
13214 to always fail with ENOSYS. Some functions are actually named
13215 something starting with __ and the normal name is an alias. */
13216 #if defined __stub_dlopen || defined __stub___dlopen
13217 choke me
13218 #endif
13221 main ()
13223 return dlopen ();
13225 return 0;
13227 _ACEOF
13228 rm -f conftest.$ac_objext conftest$ac_exeext
13229 if { (ac_try="$ac_link"
13230 case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13233 esac
13234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13235 $as_echo "$ac_try_echo") >&5
13236 (eval "$ac_link") 2>conftest.er1
13237 ac_status=$?
13238 grep -v '^ *+' conftest.er1 >conftest.err
13239 rm -f conftest.er1
13240 cat conftest.err >&5
13241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } && {
13243 test -z "$ac_c_werror_flag" ||
13244 test ! -s conftest.err
13245 } && test -s conftest$ac_exeext && {
13246 test "$cross_compiling" = yes ||
13247 $as_test_x conftest$ac_exeext
13248 }; then
13249 ac_cv_func_dlopen=yes
13250 else
13251 $as_echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13254 ac_cv_func_dlopen=no
13257 rm -rf conftest.dSYM
13258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13259 conftest$ac_exeext conftest.$ac_ext
13261 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13262 $as_echo "$ac_cv_func_dlopen" >&6; }
13263 if test "x$ac_cv_func_dlopen" = x""yes; then
13264 lt_cv_dlopen="dlopen"
13265 else
13266 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13267 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13268 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13269 $as_echo_n "(cached) " >&6
13270 else
13271 ac_check_lib_save_LIBS=$LIBS
13272 LIBS="-ldl $LIBS"
13273 cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h. */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13280 /* Override any GCC internal prototype to avoid an error.
13281 Use char because int might match the return type of a GCC
13282 builtin and then its argument prototype would still apply. */
13283 #ifdef __cplusplus
13284 extern "C"
13285 #endif
13286 char dlopen ();
13288 main ()
13290 return dlopen ();
13292 return 0;
13294 _ACEOF
13295 rm -f conftest.$ac_objext conftest$ac_exeext
13296 if { (ac_try="$ac_link"
13297 case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13300 esac
13301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13302 $as_echo "$ac_try_echo") >&5
13303 (eval "$ac_link") 2>conftest.er1
13304 ac_status=$?
13305 grep -v '^ *+' conftest.er1 >conftest.err
13306 rm -f conftest.er1
13307 cat conftest.err >&5
13308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } && {
13310 test -z "$ac_c_werror_flag" ||
13311 test ! -s conftest.err
13312 } && test -s conftest$ac_exeext && {
13313 test "$cross_compiling" = yes ||
13314 $as_test_x conftest$ac_exeext
13315 }; then
13316 ac_cv_lib_dl_dlopen=yes
13317 else
13318 $as_echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13321 ac_cv_lib_dl_dlopen=no
13324 rm -rf conftest.dSYM
13325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13326 conftest$ac_exeext conftest.$ac_ext
13327 LIBS=$ac_check_lib_save_LIBS
13329 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13330 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13331 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13333 else
13334 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13335 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13336 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13337 $as_echo_n "(cached) " >&6
13338 else
13339 ac_check_lib_save_LIBS=$LIBS
13340 LIBS="-lsvld $LIBS"
13341 cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h. */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13348 /* Override any GCC internal prototype to avoid an error.
13349 Use char because int might match the return type of a GCC
13350 builtin and then its argument prototype would still apply. */
13351 #ifdef __cplusplus
13352 extern "C"
13353 #endif
13354 char dlopen ();
13356 main ()
13358 return dlopen ();
13360 return 0;
13362 _ACEOF
13363 rm -f conftest.$ac_objext conftest$ac_exeext
13364 if { (ac_try="$ac_link"
13365 case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13368 esac
13369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13370 $as_echo "$ac_try_echo") >&5
13371 (eval "$ac_link") 2>conftest.er1
13372 ac_status=$?
13373 grep -v '^ *+' conftest.er1 >conftest.err
13374 rm -f conftest.er1
13375 cat conftest.err >&5
13376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } && {
13378 test -z "$ac_c_werror_flag" ||
13379 test ! -s conftest.err
13380 } && test -s conftest$ac_exeext && {
13381 test "$cross_compiling" = yes ||
13382 $as_test_x conftest$ac_exeext
13383 }; then
13384 ac_cv_lib_svld_dlopen=yes
13385 else
13386 $as_echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13389 ac_cv_lib_svld_dlopen=no
13392 rm -rf conftest.dSYM
13393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13394 conftest$ac_exeext conftest.$ac_ext
13395 LIBS=$ac_check_lib_save_LIBS
13397 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13398 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13399 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
13400 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13401 else
13402 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13403 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13404 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13405 $as_echo_n "(cached) " >&6
13406 else
13407 ac_check_lib_save_LIBS=$LIBS
13408 LIBS="-ldld $LIBS"
13409 cat >conftest.$ac_ext <<_ACEOF
13410 /* confdefs.h. */
13411 _ACEOF
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h. */
13416 /* Override any GCC internal prototype to avoid an error.
13417 Use char because int might match the return type of a GCC
13418 builtin and then its argument prototype would still apply. */
13419 #ifdef __cplusplus
13420 extern "C"
13421 #endif
13422 char dld_link ();
13424 main ()
13426 return dld_link ();
13428 return 0;
13430 _ACEOF
13431 rm -f conftest.$ac_objext conftest$ac_exeext
13432 if { (ac_try="$ac_link"
13433 case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13436 esac
13437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13438 $as_echo "$ac_try_echo") >&5
13439 (eval "$ac_link") 2>conftest.er1
13440 ac_status=$?
13441 grep -v '^ *+' conftest.er1 >conftest.err
13442 rm -f conftest.er1
13443 cat conftest.err >&5
13444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); } && {
13446 test -z "$ac_c_werror_flag" ||
13447 test ! -s conftest.err
13448 } && test -s conftest$ac_exeext && {
13449 test "$cross_compiling" = yes ||
13450 $as_test_x conftest$ac_exeext
13451 }; then
13452 ac_cv_lib_dld_dld_link=yes
13453 else
13454 $as_echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13457 ac_cv_lib_dld_dld_link=no
13460 rm -rf conftest.dSYM
13461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13462 conftest$ac_exeext conftest.$ac_ext
13463 LIBS=$ac_check_lib_save_LIBS
13465 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13466 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13467 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
13468 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13487 esac
13489 if test "x$lt_cv_dlopen" != xno; then
13490 enable_dlopen=yes
13491 else
13492 enable_dlopen=no
13495 case $lt_cv_dlopen in
13496 dlopen)
13497 save_CPPFLAGS="$CPPFLAGS"
13498 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13500 save_LDFLAGS="$LDFLAGS"
13501 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13503 save_LIBS="$LIBS"
13504 LIBS="$lt_cv_dlopen_libs $LIBS"
13506 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13507 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13508 if test "${lt_cv_dlopen_self+set}" = set; then
13509 $as_echo_n "(cached) " >&6
13510 else
13511 if test "$cross_compiling" = yes; then :
13512 lt_cv_dlopen_self=cross
13513 else
13514 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13515 lt_status=$lt_dlunknown
13516 cat > conftest.$ac_ext <<_LT_EOF
13517 #line 13517 "configure"
13518 #include "confdefs.h"
13520 #if HAVE_DLFCN_H
13521 #include <dlfcn.h>
13522 #endif
13524 #include <stdio.h>
13526 #ifdef RTLD_GLOBAL
13527 # define LT_DLGLOBAL RTLD_GLOBAL
13528 #else
13529 # ifdef DL_GLOBAL
13530 # define LT_DLGLOBAL DL_GLOBAL
13531 # else
13532 # define LT_DLGLOBAL 0
13533 # endif
13534 #endif
13536 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13537 find out it does not work in some platform. */
13538 #ifndef LT_DLLAZY_OR_NOW
13539 # ifdef RTLD_LAZY
13540 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13541 # else
13542 # ifdef DL_LAZY
13543 # define LT_DLLAZY_OR_NOW DL_LAZY
13544 # else
13545 # ifdef RTLD_NOW
13546 # define LT_DLLAZY_OR_NOW RTLD_NOW
13547 # else
13548 # ifdef DL_NOW
13549 # define LT_DLLAZY_OR_NOW DL_NOW
13550 # else
13551 # define LT_DLLAZY_OR_NOW 0
13552 # endif
13553 # endif
13554 # endif
13555 # endif
13556 #endif
13558 void fnord() { int i=42;}
13559 int main ()
13561 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13562 int status = $lt_dlunknown;
13564 if (self)
13566 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13567 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13568 /* dlclose (self); */
13570 else
13571 puts (dlerror ());
13573 return status;
13575 _LT_EOF
13576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13577 (eval $ac_link) 2>&5
13578 ac_status=$?
13579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13581 (./conftest; exit; ) >&5 2>/dev/null
13582 lt_status=$?
13583 case x$lt_status in
13584 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13585 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13586 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13587 esac
13588 else :
13589 # compilation failed
13590 lt_cv_dlopen_self=no
13593 rm -fr conftest*
13597 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13598 $as_echo "$lt_cv_dlopen_self" >&6; }
13600 if test "x$lt_cv_dlopen_self" = xyes; then
13601 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13602 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13603 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13604 if test "${lt_cv_dlopen_self_static+set}" = set; then
13605 $as_echo_n "(cached) " >&6
13606 else
13607 if test "$cross_compiling" = yes; then :
13608 lt_cv_dlopen_self_static=cross
13609 else
13610 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13611 lt_status=$lt_dlunknown
13612 cat > conftest.$ac_ext <<_LT_EOF
13613 #line 13613 "configure"
13614 #include "confdefs.h"
13616 #if HAVE_DLFCN_H
13617 #include <dlfcn.h>
13618 #endif
13620 #include <stdio.h>
13622 #ifdef RTLD_GLOBAL
13623 # define LT_DLGLOBAL RTLD_GLOBAL
13624 #else
13625 # ifdef DL_GLOBAL
13626 # define LT_DLGLOBAL DL_GLOBAL
13627 # else
13628 # define LT_DLGLOBAL 0
13629 # endif
13630 #endif
13632 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13633 find out it does not work in some platform. */
13634 #ifndef LT_DLLAZY_OR_NOW
13635 # ifdef RTLD_LAZY
13636 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13637 # else
13638 # ifdef DL_LAZY
13639 # define LT_DLLAZY_OR_NOW DL_LAZY
13640 # else
13641 # ifdef RTLD_NOW
13642 # define LT_DLLAZY_OR_NOW RTLD_NOW
13643 # else
13644 # ifdef DL_NOW
13645 # define LT_DLLAZY_OR_NOW DL_NOW
13646 # else
13647 # define LT_DLLAZY_OR_NOW 0
13648 # endif
13649 # endif
13650 # endif
13651 # endif
13652 #endif
13654 void fnord() { int i=42;}
13655 int main ()
13657 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13658 int status = $lt_dlunknown;
13660 if (self)
13662 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13663 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13664 /* dlclose (self); */
13666 else
13667 puts (dlerror ());
13669 return status;
13671 _LT_EOF
13672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13673 (eval $ac_link) 2>&5
13674 ac_status=$?
13675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13677 (./conftest; exit; ) >&5 2>/dev/null
13678 lt_status=$?
13679 case x$lt_status in
13680 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13681 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13682 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13683 esac
13684 else :
13685 # compilation failed
13686 lt_cv_dlopen_self_static=no
13689 rm -fr conftest*
13693 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13694 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13697 CPPFLAGS="$save_CPPFLAGS"
13698 LDFLAGS="$save_LDFLAGS"
13699 LIBS="$save_LIBS"
13701 esac
13703 case $lt_cv_dlopen_self in
13704 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13705 *) enable_dlopen_self=unknown ;;
13706 esac
13708 case $lt_cv_dlopen_self_static in
13709 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13710 *) enable_dlopen_self_static=unknown ;;
13711 esac
13730 striplib=
13731 old_striplib=
13732 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13733 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13734 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13735 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13736 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13737 { $as_echo "$as_me:$LINENO: result: yes" >&5
13738 $as_echo "yes" >&6; }
13739 else
13740 # FIXME - insert some real tests, host_os isn't really good enough
13741 case $host_os in
13742 darwin*)
13743 if test -n "$STRIP" ; then
13744 striplib="$STRIP -x"
13745 old_striplib="$STRIP -S"
13746 { $as_echo "$as_me:$LINENO: result: yes" >&5
13747 $as_echo "yes" >&6; }
13748 else
13749 { $as_echo "$as_me:$LINENO: result: no" >&5
13750 $as_echo "no" >&6; }
13754 { $as_echo "$as_me:$LINENO: result: no" >&5
13755 $as_echo "no" >&6; }
13757 esac
13771 # Report which library types will actually be built
13772 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13773 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13774 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13775 $as_echo "$can_build_shared" >&6; }
13777 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13778 $as_echo_n "checking whether to build shared libraries... " >&6; }
13779 test "$can_build_shared" = "no" && enable_shared=no
13781 # On AIX, shared libraries and static libraries use the same namespace, and
13782 # are all built from PIC.
13783 case $host_os in
13784 aix3*)
13785 test "$enable_shared" = yes && enable_static=no
13786 if test -n "$RANLIB"; then
13787 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13788 postinstall_cmds='$RANLIB $lib'
13792 aix[4-9]*)
13793 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13794 test "$enable_shared" = yes && enable_static=no
13797 esac
13798 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13799 $as_echo "$enable_shared" >&6; }
13801 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13802 $as_echo_n "checking whether to build static libraries... " >&6; }
13803 # Make sure either enable_shared or enable_static is yes.
13804 test "$enable_shared" = yes || enable_static=yes
13805 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13806 $as_echo "$enable_static" >&6; }
13812 ac_ext=c
13813 ac_cpp='$CPP $CPPFLAGS'
13814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13818 CC="$lt_save_CC"
13832 ac_config_commands="$ac_config_commands libtool"
13837 # Only expand once:
13846 # configuration file -- stay in 8.3 limit
13848 # since #undef doesn't survive in configuration header files we replace
13849 # `/undef' with `#undef' after creating the output file
13851 ac_config_headers="$ac_config_headers ftconfig.h:ftconfig.in"
13854 # create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
13855 # and `builds/unix/unix-cc.mk' that will be used by the build system
13857 ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in freetype-config freetype2.pc:freetype2.in"
13860 # re-generate the Jamfile to use libtool now
13862 # AC_CONFIG_FILES([../../Jamfile:../../Jamfile.in])
13864 cat >confcache <<\_ACEOF
13865 # This file is a shell script that caches the results of configure
13866 # tests run on this system so they can be shared between configure
13867 # scripts and configure runs, see configure's option --config-cache.
13868 # It is not useful on other systems. If it contains results you don't
13869 # want to keep, you may remove or edit it.
13871 # config.status only pays attention to the cache file if you give it
13872 # the --recheck option to rerun configure.
13874 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13876 # following values.
13878 _ACEOF
13880 # The following way of writing the cache mishandles newlines in values,
13881 # but we know of no workaround that is simple, portable, and efficient.
13882 # So, we kill variables containing newlines.
13883 # Ultrix sh set writes to stderr and can't be redirected directly,
13884 # and sets the high bit in the cache file unless we assign to the vars.
13886 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13887 eval ac_val=\$$ac_var
13888 case $ac_val in #(
13889 *${as_nl}*)
13890 case $ac_var in #(
13891 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13892 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13893 esac
13894 case $ac_var in #(
13895 _ | IFS | as_nl) ;; #(
13896 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13897 *) $as_unset $ac_var ;;
13898 esac ;;
13899 esac
13900 done
13902 (set) 2>&1 |
13903 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13904 *${as_nl}ac_space=\ *)
13905 # `set' does not quote correctly, so add quotes (double-quote
13906 # substitution turns \\\\ into \\, and sed turns \\ into \).
13907 sed -n \
13908 "s/'/'\\\\''/g;
13909 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13910 ;; #(
13912 # `set' quotes correctly as required by POSIX, so do not add quotes.
13913 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13915 esac |
13916 sort
13918 sed '
13919 /^ac_cv_env_/b end
13920 t clear
13921 :clear
13922 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13923 t end
13924 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13925 :end' >>confcache
13926 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13927 if test -w "$cache_file"; then
13928 test "x$cache_file" != "x/dev/null" &&
13929 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13930 $as_echo "$as_me: updating cache $cache_file" >&6;}
13931 cat confcache >$cache_file
13932 else
13933 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13934 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13937 rm -f confcache
13939 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13940 # Let make expand exec_prefix.
13941 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13943 DEFS=-DHAVE_CONFIG_H
13945 ac_libobjs=
13946 ac_ltlibobjs=
13947 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13948 # 1. Remove the extension, and $U if already installed.
13949 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13950 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13951 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13952 # will be set to the directory where LIBOBJS objects are built.
13953 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13954 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13955 done
13956 LIBOBJS=$ac_libobjs
13958 LTLIBOBJS=$ac_ltlibobjs
13962 : ${CONFIG_STATUS=./config.status}
13963 ac_write_fail=0
13964 ac_clean_files_save=$ac_clean_files
13965 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13966 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13967 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13968 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13969 #! $SHELL
13970 # Generated by $as_me.
13971 # Run this file to recreate the current configuration.
13972 # Compiler output produced by configure, useful for debugging
13973 # configure, is in config.log if it exists.
13975 debug=false
13976 ac_cs_recheck=false
13977 ac_cs_silent=false
13978 SHELL=\${CONFIG_SHELL-$SHELL}
13979 _ACEOF
13981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13982 ## --------------------- ##
13983 ## M4sh Initialization. ##
13984 ## --------------------- ##
13986 # Be more Bourne compatible
13987 DUALCASE=1; export DUALCASE # for MKS sh
13988 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13989 emulate sh
13990 NULLCMD=:
13991 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13992 # is contrary to our usage. Disable this feature.
13993 alias -g '${1+"$@"}'='"$@"'
13994 setopt NO_GLOB_SUBST
13995 else
13996 case `(set -o) 2>/dev/null` in
13997 *posix*) set -o posix ;;
13998 esac
14005 # PATH needs CR
14006 # Avoid depending upon Character Ranges.
14007 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14008 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14009 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14010 as_cr_digits='0123456789'
14011 as_cr_alnum=$as_cr_Letters$as_cr_digits
14013 as_nl='
14015 export as_nl
14016 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14017 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14018 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14019 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14020 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14021 as_echo='printf %s\n'
14022 as_echo_n='printf %s'
14023 else
14024 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14025 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14026 as_echo_n='/usr/ucb/echo -n'
14027 else
14028 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14029 as_echo_n_body='eval
14030 arg=$1;
14031 case $arg in
14032 *"$as_nl"*)
14033 expr "X$arg" : "X\\(.*\\)$as_nl";
14034 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14035 esac;
14036 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14038 export as_echo_n_body
14039 as_echo_n='sh -c $as_echo_n_body as_echo'
14041 export as_echo_body
14042 as_echo='sh -c $as_echo_body as_echo'
14045 # The user is always right.
14046 if test "${PATH_SEPARATOR+set}" != set; then
14047 PATH_SEPARATOR=:
14048 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14049 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14050 PATH_SEPARATOR=';'
14054 # Support unset when possible.
14055 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14056 as_unset=unset
14057 else
14058 as_unset=false
14062 # IFS
14063 # We need space, tab and new line, in precisely that order. Quoting is
14064 # there to prevent editors from complaining about space-tab.
14065 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14066 # splitting by setting IFS to empty value.)
14067 IFS=" "" $as_nl"
14069 # Find who we are. Look in the path if we contain no directory separator.
14070 case $0 in
14071 *[\\/]* ) as_myself=$0 ;;
14072 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14073 for as_dir in $PATH
14075 IFS=$as_save_IFS
14076 test -z "$as_dir" && as_dir=.
14077 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14078 done
14079 IFS=$as_save_IFS
14082 esac
14083 # We did not find ourselves, most probably we were run as `sh COMMAND'
14084 # in which case we are not to be found in the path.
14085 if test "x$as_myself" = x; then
14086 as_myself=$0
14088 if test ! -f "$as_myself"; then
14089 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14090 { (exit 1); exit 1; }
14093 # Work around bugs in pre-3.0 UWIN ksh.
14094 for as_var in ENV MAIL MAILPATH
14095 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14096 done
14097 PS1='$ '
14098 PS2='> '
14099 PS4='+ '
14101 # NLS nuisances.
14102 LC_ALL=C
14103 export LC_ALL
14104 LANGUAGE=C
14105 export LANGUAGE
14107 # Required to use basename.
14108 if expr a : '\(a\)' >/dev/null 2>&1 &&
14109 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14110 as_expr=expr
14111 else
14112 as_expr=false
14115 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14116 as_basename=basename
14117 else
14118 as_basename=false
14122 # Name of the executable.
14123 as_me=`$as_basename -- "$0" ||
14124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14125 X"$0" : 'X\(//\)$' \| \
14126 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14127 $as_echo X/"$0" |
14128 sed '/^.*\/\([^/][^/]*\)\/*$/{
14129 s//\1/
14132 /^X\/\(\/\/\)$/{
14133 s//\1/
14136 /^X\/\(\/\).*/{
14137 s//\1/
14140 s/.*/./; q'`
14142 # CDPATH.
14143 $as_unset CDPATH
14147 as_lineno_1=$LINENO
14148 as_lineno_2=$LINENO
14149 test "x$as_lineno_1" != "x$as_lineno_2" &&
14150 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14152 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14153 # uniformly replaced by the line number. The first 'sed' inserts a
14154 # line-number line after each line using $LINENO; the second 'sed'
14155 # does the real work. The second script uses 'N' to pair each
14156 # line-number line with the line containing $LINENO, and appends
14157 # trailing '-' during substitution so that $LINENO is not a special
14158 # case at line end.
14159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14160 # scripts with optimization help from Paolo Bonzini. Blame Lee
14161 # E. McMahon (1931-1989) for sed's syntax. :-)
14162 sed -n '
14164 /[$]LINENO/=
14165 ' <$as_myself |
14166 sed '
14167 s/[$]LINENO.*/&-/
14168 t lineno
14170 :lineno
14172 :loop
14173 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14174 t loop
14175 s/-\n.*//
14176 ' >$as_me.lineno &&
14177 chmod +x "$as_me.lineno" ||
14178 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14179 { (exit 1); exit 1; }; }
14181 # Don't try to exec as it changes $[0], causing all sort of problems
14182 # (the dirname of $[0] is not the place where we might find the
14183 # original and so on. Autoconf is especially sensitive to this).
14184 . "./$as_me.lineno"
14185 # Exit status is that of the last command.
14186 exit
14190 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14191 as_dirname=dirname
14192 else
14193 as_dirname=false
14196 ECHO_C= ECHO_N= ECHO_T=
14197 case `echo -n x` in
14198 -n*)
14199 case `echo 'x\c'` in
14200 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14201 *) ECHO_C='\c';;
14202 esac;;
14204 ECHO_N='-n';;
14205 esac
14206 if expr a : '\(a\)' >/dev/null 2>&1 &&
14207 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14208 as_expr=expr
14209 else
14210 as_expr=false
14213 rm -f conf$$ conf$$.exe conf$$.file
14214 if test -d conf$$.dir; then
14215 rm -f conf$$.dir/conf$$.file
14216 else
14217 rm -f conf$$.dir
14218 mkdir conf$$.dir 2>/dev/null
14220 if (echo >conf$$.file) 2>/dev/null; then
14221 if ln -s conf$$.file conf$$ 2>/dev/null; then
14222 as_ln_s='ln -s'
14223 # ... but there are two gotchas:
14224 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14225 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14226 # In both cases, we have to default to `cp -p'.
14227 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14228 as_ln_s='cp -p'
14229 elif ln conf$$.file conf$$ 2>/dev/null; then
14230 as_ln_s=ln
14231 else
14232 as_ln_s='cp -p'
14234 else
14235 as_ln_s='cp -p'
14237 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14238 rmdir conf$$.dir 2>/dev/null
14240 if mkdir -p . 2>/dev/null; then
14241 as_mkdir_p=:
14242 else
14243 test -d ./-p && rmdir ./-p
14244 as_mkdir_p=false
14247 if test -x / >/dev/null 2>&1; then
14248 as_test_x='test -x'
14249 else
14250 if ls -dL / >/dev/null 2>&1; then
14251 as_ls_L_option=L
14252 else
14253 as_ls_L_option=
14255 as_test_x='
14256 eval sh -c '\''
14257 if test -d "$1"; then
14258 test -d "$1/.";
14259 else
14260 case $1 in
14261 -*)set "./$1";;
14262 esac;
14263 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14264 ???[sx]*):;;*)false;;esac;fi
14265 '\'' sh
14268 as_executable_p=$as_test_x
14270 # Sed expression to map a string onto a valid CPP name.
14271 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14273 # Sed expression to map a string onto a valid variable name.
14274 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14277 exec 6>&1
14279 # Save the log message, to keep $[0] and so on meaningful, and to
14280 # report actual input values of CONFIG_FILES etc. instead of their
14281 # values after options handling.
14282 ac_log="
14283 This file was extended by FreeType $as_me 2.3.12, which was
14284 generated by GNU Autoconf 2.63. Invocation command line was
14286 CONFIG_FILES = $CONFIG_FILES
14287 CONFIG_HEADERS = $CONFIG_HEADERS
14288 CONFIG_LINKS = $CONFIG_LINKS
14289 CONFIG_COMMANDS = $CONFIG_COMMANDS
14290 $ $0 $@
14292 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14295 _ACEOF
14297 case $ac_config_files in *"
14298 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14299 esac
14301 case $ac_config_headers in *"
14302 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14303 esac
14306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14307 # Files that config.status was made for.
14308 config_files="$ac_config_files"
14309 config_headers="$ac_config_headers"
14310 config_commands="$ac_config_commands"
14312 _ACEOF
14314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14315 ac_cs_usage="\
14316 \`$as_me' instantiates files from templates according to the
14317 current configuration.
14319 Usage: $0 [OPTION]... [FILE]...
14321 -h, --help print this help, then exit
14322 -V, --version print version number and configuration settings, then exit
14323 -q, --quiet, --silent
14324 do not print progress messages
14325 -d, --debug don't remove temporary files
14326 --recheck update $as_me by reconfiguring in the same conditions
14327 --file=FILE[:TEMPLATE]
14328 instantiate the configuration file FILE
14329 --header=FILE[:TEMPLATE]
14330 instantiate the configuration header FILE
14332 Configuration files:
14333 $config_files
14335 Configuration headers:
14336 $config_headers
14338 Configuration commands:
14339 $config_commands
14341 Report bugs to <bug-autoconf@gnu.org>."
14343 _ACEOF
14344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14345 ac_cs_version="\\
14346 FreeType config.status 2.3.12
14347 configured by $0, generated by GNU Autoconf 2.63,
14348 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14350 Copyright (C) 2008 Free Software Foundation, Inc.
14351 This config.status script is free software; the Free Software Foundation
14352 gives unlimited permission to copy, distribute and modify it."
14354 ac_pwd='$ac_pwd'
14355 srcdir='$srcdir'
14356 INSTALL='$INSTALL'
14357 test -n "\$AWK" || AWK=awk
14358 _ACEOF
14360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14361 # The default lists apply if the user does not specify any file.
14362 ac_need_defaults=:
14363 while test $# != 0
14365 case $1 in
14366 --*=*)
14367 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14368 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14369 ac_shift=:
14372 ac_option=$1
14373 ac_optarg=$2
14374 ac_shift=shift
14376 esac
14378 case $ac_option in
14379 # Handling of the options.
14380 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14381 ac_cs_recheck=: ;;
14382 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14383 $as_echo "$ac_cs_version"; exit ;;
14384 --debug | --debu | --deb | --de | --d | -d )
14385 debug=: ;;
14386 --file | --fil | --fi | --f )
14387 $ac_shift
14388 case $ac_optarg in
14389 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14390 esac
14391 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14392 ac_need_defaults=false;;
14393 --header | --heade | --head | --hea )
14394 $ac_shift
14395 case $ac_optarg in
14396 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14397 esac
14398 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14399 ac_need_defaults=false;;
14400 --he | --h)
14401 # Conflict between --help and --header
14402 { $as_echo "$as_me: error: ambiguous option: $1
14403 Try \`$0 --help' for more information." >&2
14404 { (exit 1); exit 1; }; };;
14405 --help | --hel | -h )
14406 $as_echo "$ac_cs_usage"; exit ;;
14407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14408 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14409 ac_cs_silent=: ;;
14411 # This is an error.
14412 -*) { $as_echo "$as_me: error: unrecognized option: $1
14413 Try \`$0 --help' for more information." >&2
14414 { (exit 1); exit 1; }; } ;;
14416 *) ac_config_targets="$ac_config_targets $1"
14417 ac_need_defaults=false ;;
14419 esac
14420 shift
14421 done
14423 ac_configure_extra_args=
14425 if $ac_cs_silent; then
14426 exec 6>/dev/null
14427 ac_configure_extra_args="$ac_configure_extra_args --silent"
14430 _ACEOF
14431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14432 if \$ac_cs_recheck; then
14433 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14434 shift
14435 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14436 CONFIG_SHELL='$SHELL'
14437 export CONFIG_SHELL
14438 exec "\$@"
14441 _ACEOF
14442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14443 exec 5>>config.log
14445 echo
14446 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14447 ## Running $as_me. ##
14448 _ASBOX
14449 $as_echo "$ac_log"
14450 } >&5
14452 _ACEOF
14453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14455 # INIT-COMMANDS
14459 # The HP-UX ksh and POSIX shell print the target directory to stdout
14460 # if CDPATH is set.
14461 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14463 sed_quote_subst='$sed_quote_subst'
14464 double_quote_subst='$double_quote_subst'
14465 delay_variable_subst='$delay_variable_subst'
14466 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14467 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14468 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
14469 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14470 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14471 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14472 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14473 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14474 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14475 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14476 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14477 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14478 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14479 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14480 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14481 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14482 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14483 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14484 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14485 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14486 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14487 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14488 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14489 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14490 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14491 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14492 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14493 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14494 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14495 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14496 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14497 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14498 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14499 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14500 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14501 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14502 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14503 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14504 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14505 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14506 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14507 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14508 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14509 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14510 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14511 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14512 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"`'
14513 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"`'
14514 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14515 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14516 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14517 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14518 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14519 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14520 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14521 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14522 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14523 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14524 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14525 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14526 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14527 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14528 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14529 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14530 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14531 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14532 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14533 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14534 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14535 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14536 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14537 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14538 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14539 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14540 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14541 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14542 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14543 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14544 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14545 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14546 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14547 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14548 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14549 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14550 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14551 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14552 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14553 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14554 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14555 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14556 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14557 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14558 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14559 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14560 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14561 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14562 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14563 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14564 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14565 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14566 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14567 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14568 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14569 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14570 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14571 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14572 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14573 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14574 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14575 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14576 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14577 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14578 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14579 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14580 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14581 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14582 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14583 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14584 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14585 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14587 LTCC='$LTCC'
14588 LTCFLAGS='$LTCFLAGS'
14589 compiler='$compiler_DEFAULT'
14591 # Quote evaled strings.
14592 for var in SED \
14593 GREP \
14594 EGREP \
14595 FGREP \
14596 LD \
14597 NM \
14598 LN_S \
14599 lt_SP2NL \
14600 lt_NL2SP \
14601 reload_flag \
14602 deplibs_check_method \
14603 file_magic_cmd \
14604 AR \
14605 AR_FLAGS \
14606 STRIP \
14607 RANLIB \
14608 CC \
14609 CFLAGS \
14610 compiler \
14611 lt_cv_sys_global_symbol_pipe \
14612 lt_cv_sys_global_symbol_to_cdecl \
14613 lt_cv_sys_global_symbol_to_c_name_address \
14614 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14615 SHELL \
14616 ECHO \
14617 lt_prog_compiler_no_builtin_flag \
14618 lt_prog_compiler_wl \
14619 lt_prog_compiler_pic \
14620 lt_prog_compiler_static \
14621 lt_cv_prog_compiler_c_o \
14622 need_locks \
14623 DSYMUTIL \
14624 NMEDIT \
14625 LIPO \
14626 OTOOL \
14627 OTOOL64 \
14628 shrext_cmds \
14629 export_dynamic_flag_spec \
14630 whole_archive_flag_spec \
14631 compiler_needs_object \
14632 with_gnu_ld \
14633 allow_undefined_flag \
14634 no_undefined_flag \
14635 hardcode_libdir_flag_spec \
14636 hardcode_libdir_flag_spec_ld \
14637 hardcode_libdir_separator \
14638 fix_srcfile_path \
14639 exclude_expsyms \
14640 include_expsyms \
14641 file_list_spec \
14642 variables_saved_for_relink \
14643 libname_spec \
14644 library_names_spec \
14645 soname_spec \
14646 finish_eval \
14647 old_striplib \
14648 striplib; do
14649 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14650 *[\\\\\\\`\\"\\\$]*)
14651 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14654 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14656 esac
14657 done
14659 # Double-quote double-evaled strings.
14660 for var in reload_cmds \
14661 old_postinstall_cmds \
14662 old_postuninstall_cmds \
14663 old_archive_cmds \
14664 extract_expsyms_cmds \
14665 old_archive_from_new_cmds \
14666 old_archive_from_expsyms_cmds \
14667 archive_cmds \
14668 archive_expsym_cmds \
14669 module_cmds \
14670 module_expsym_cmds \
14671 export_symbols_cmds \
14672 prelink_cmds \
14673 postinstall_cmds \
14674 postuninstall_cmds \
14675 finish_cmds \
14676 sys_lib_search_path_spec \
14677 sys_lib_dlsearch_path_spec; do
14678 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14679 *[\\\\\\\`\\"\\\$]*)
14680 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14683 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14685 esac
14686 done
14688 # Fix-up fallback echo if it was mangled by the above quoting rules.
14689 case \$lt_ECHO in
14690 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14692 esac
14694 ac_aux_dir='$ac_aux_dir'
14695 xsi_shell='$xsi_shell'
14696 lt_shell_append='$lt_shell_append'
14698 # See if we are running on zsh, and set the options which allow our
14699 # commands through without removal of \ escapes INIT.
14700 if test -n "\${ZSH_VERSION+set}" ; then
14701 setopt NO_GLOB_SUBST
14705 PACKAGE='$PACKAGE'
14706 VERSION='$VERSION'
14707 TIMESTAMP='$TIMESTAMP'
14708 RM='$RM'
14709 ofile='$ofile'
14714 _ACEOF
14716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14718 # Handling of arguments.
14719 for ac_config_target in $ac_config_targets
14721 case $ac_config_target in
14722 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14723 "ftconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h:ftconfig.in" ;;
14724 "unix-cc.mk") CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
14725 "unix-def.mk") CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
14726 "freetype-config") CONFIG_FILES="$CONFIG_FILES freetype-config" ;;
14727 "freetype2.pc") CONFIG_FILES="$CONFIG_FILES freetype2.pc:freetype2.in" ;;
14729 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14730 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14731 { (exit 1); exit 1; }; };;
14732 esac
14733 done
14736 # If the user did not use the arguments to specify the items to instantiate,
14737 # then the envvar interface is used. Set only those that are not.
14738 # We use the long form for the default assignment because of an extremely
14739 # bizarre bug on SunOS 4.1.3.
14740 if $ac_need_defaults; then
14741 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14742 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14743 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14746 # Have a temporary directory for convenience. Make it in the build tree
14747 # simply because there is no reason against having it here, and in addition,
14748 # creating and moving files from /tmp can sometimes cause problems.
14749 # Hook for its removal unless debugging.
14750 # Note that there is a small window in which the directory will not be cleaned:
14751 # after its creation but before its name has been assigned to `$tmp'.
14752 $debug ||
14754 tmp=
14755 trap 'exit_status=$?
14756 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14758 trap '{ (exit 1); exit 1; }' 1 2 13 15
14760 # Create a (secure) tmp directory for tmp files.
14763 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14764 test -n "$tmp" && test -d "$tmp"
14765 } ||
14767 tmp=./conf$$-$RANDOM
14768 (umask 077 && mkdir "$tmp")
14769 } ||
14771 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14772 { (exit 1); exit 1; }
14775 # Set up the scripts for CONFIG_FILES section.
14776 # No need to generate them if there are no CONFIG_FILES.
14777 # This happens for instance with `./config.status config.h'.
14778 if test -n "$CONFIG_FILES"; then
14781 ac_cr=' '
14782 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14783 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14784 ac_cs_awk_cr='\\r'
14785 else
14786 ac_cs_awk_cr=$ac_cr
14789 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14790 _ACEOF
14794 echo "cat >conf$$subs.awk <<_ACEOF" &&
14795 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14796 echo "_ACEOF"
14797 } >conf$$subs.sh ||
14798 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14799 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14800 { (exit 1); exit 1; }; }
14801 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14802 ac_delim='%!_!# '
14803 for ac_last_try in false false false false false :; do
14804 . ./conf$$subs.sh ||
14805 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14806 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14807 { (exit 1); exit 1; }; }
14809 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14810 if test $ac_delim_n = $ac_delim_num; then
14811 break
14812 elif $ac_last_try; then
14813 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14814 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14815 { (exit 1); exit 1; }; }
14816 else
14817 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14819 done
14820 rm -f conf$$subs.sh
14822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14823 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14824 _ACEOF
14825 sed -n '
14827 s/^/S["/; s/!.*/"]=/
14830 s/^[^!]*!//
14831 :repl
14832 t repl
14833 s/'"$ac_delim"'$//
14834 t delim
14837 s/\(.\{148\}\).*/\1/
14838 t more1
14839 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14842 b repl
14843 :more1
14844 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14847 s/.\{148\}//
14848 t nl
14849 :delim
14851 s/\(.\{148\}\).*/\1/
14852 t more2
14853 s/["\\]/\\&/g; s/^/"/; s/$/"/
14856 :more2
14857 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14860 s/.\{148\}//
14861 t delim
14862 ' <conf$$subs.awk | sed '
14863 /^[^""]/{
14865 s/\n//
14867 ' >>$CONFIG_STATUS || ac_write_fail=1
14868 rm -f conf$$subs.awk
14869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14870 _ACAWK
14871 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14872 for (key in S) S_is_set[key] = 1
14873 FS = "\a"
14877 line = $ 0
14878 nfields = split(line, field, "@")
14879 substed = 0
14880 len = length(field[1])
14881 for (i = 2; i < nfields; i++) {
14882 key = field[i]
14883 keylen = length(key)
14884 if (S_is_set[key]) {
14885 value = S[key]
14886 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14887 len += length(value) + length(field[++i])
14888 substed = 1
14889 } else
14890 len += 1 + keylen
14893 print line
14896 _ACAWK
14897 _ACEOF
14898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14899 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14900 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14901 else
14903 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14904 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14905 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14906 { (exit 1); exit 1; }; }
14907 _ACEOF
14909 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14910 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14911 # trailing colons and then remove the whole line if VPATH becomes empty
14912 # (actually we leave an empty line to preserve line numbers).
14913 if test "x$srcdir" = x.; then
14914 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14915 s/:*\$(srcdir):*/:/
14916 s/:*\${srcdir}:*/:/
14917 s/:*@srcdir@:*/:/
14918 s/^\([^=]*=[ ]*\):*/\1/
14919 s/:*$//
14920 s/^[^=]*=[ ]*$//
14924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14925 fi # test -n "$CONFIG_FILES"
14927 # Set up the scripts for CONFIG_HEADERS section.
14928 # No need to generate them if there are no CONFIG_HEADERS.
14929 # This happens for instance with `./config.status Makefile'.
14930 if test -n "$CONFIG_HEADERS"; then
14931 cat >"$tmp/defines.awk" <<\_ACAWK ||
14932 BEGIN {
14933 _ACEOF
14935 # Transform confdefs.h into an awk script `defines.awk', embedded as
14936 # here-document in config.status, that substitutes the proper values into
14937 # config.h.in to produce config.h.
14939 # Create a delimiter string that does not exist in confdefs.h, to ease
14940 # handling of long lines.
14941 ac_delim='%!_!# '
14942 for ac_last_try in false false :; do
14943 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14944 if test -z "$ac_t"; then
14945 break
14946 elif $ac_last_try; then
14947 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14948 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14949 { (exit 1); exit 1; }; }
14950 else
14951 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14953 done
14955 # For the awk script, D is an array of macro values keyed by name,
14956 # likewise P contains macro parameters if any. Preserve backslash
14957 # newline sequences.
14959 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14960 sed -n '
14961 s/.\{148\}/&'"$ac_delim"'/g
14962 t rset
14963 :rset
14964 s/^[ ]*#[ ]*define[ ][ ]*/ /
14965 t def
14967 :def
14968 s/\\$//
14969 t bsnl
14970 s/["\\]/\\&/g
14971 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14972 D["\1"]=" \3"/p
14973 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14975 :bsnl
14976 s/["\\]/\\&/g
14977 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14978 D["\1"]=" \3\\\\\\n"\\/p
14979 t cont
14980 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14981 t cont
14983 :cont
14985 s/.\{148\}/&'"$ac_delim"'/g
14986 t clear
14987 :clear
14988 s/\\$//
14989 t bsnlc
14990 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14992 :bsnlc
14993 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14994 b cont
14995 ' <confdefs.h | sed '
14996 s/'"$ac_delim"'/"\\\
14997 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15000 for (key in D) D_is_set[key] = 1
15001 FS = "\a"
15003 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15004 line = \$ 0
15005 split(line, arg, " ")
15006 if (arg[1] == "#") {
15007 defundef = arg[2]
15008 mac1 = arg[3]
15009 } else {
15010 defundef = substr(arg[1], 2)
15011 mac1 = arg[2]
15013 split(mac1, mac2, "(") #)
15014 macro = mac2[1]
15015 prefix = substr(line, 1, index(line, defundef) - 1)
15016 if (D_is_set[macro]) {
15017 # Preserve the white space surrounding the "#".
15018 print prefix "define", macro P[macro] D[macro]
15019 next
15020 } else {
15021 # Replace #undef with comments. This is necessary, for example,
15022 # in the case of _POSIX_SOURCE, which is predefined and required
15023 # on some systems where configure will not decide to define it.
15024 if (defundef == "undef") {
15025 print "/*", prefix defundef, macro, "*/"
15026 next
15030 { print }
15031 _ACAWK
15032 _ACEOF
15033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15034 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
15035 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
15036 { (exit 1); exit 1; }; }
15037 fi # test -n "$CONFIG_HEADERS"
15040 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15041 shift
15042 for ac_tag
15044 case $ac_tag in
15045 :[FHLC]) ac_mode=$ac_tag; continue;;
15046 esac
15047 case $ac_mode$ac_tag in
15048 :[FHL]*:*);;
15049 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
15050 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
15051 { (exit 1); exit 1; }; };;
15052 :[FH]-) ac_tag=-:-;;
15053 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15054 esac
15055 ac_save_IFS=$IFS
15056 IFS=:
15057 set x $ac_tag
15058 IFS=$ac_save_IFS
15059 shift
15060 ac_file=$1
15061 shift
15063 case $ac_mode in
15064 :L) ac_source=$1;;
15065 :[FH])
15066 ac_file_inputs=
15067 for ac_f
15069 case $ac_f in
15070 -) ac_f="$tmp/stdin";;
15071 *) # Look for the file first in the build tree, then in the source tree
15072 # (if the path is not absolute). The absolute path cannot be DOS-style,
15073 # because $ac_f cannot contain `:'.
15074 test -f "$ac_f" ||
15075 case $ac_f in
15076 [\\/$]*) false;;
15077 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15078 esac ||
15079 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15080 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15081 { (exit 1); exit 1; }; };;
15082 esac
15083 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15084 ac_file_inputs="$ac_file_inputs '$ac_f'"
15085 done
15087 # Let's still pretend it is `configure' which instantiates (i.e., don't
15088 # use $as_me), people would be surprised to read:
15089 # /* config.h. Generated by config.status. */
15090 configure_input='Generated from '`
15091 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15092 `' by configure.'
15093 if test x"$ac_file" != x-; then
15094 configure_input="$ac_file. $configure_input"
15095 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15096 $as_echo "$as_me: creating $ac_file" >&6;}
15098 # Neutralize special characters interpreted by sed in replacement strings.
15099 case $configure_input in #(
15100 *\&* | *\|* | *\\* )
15101 ac_sed_conf_input=`$as_echo "$configure_input" |
15102 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15103 *) ac_sed_conf_input=$configure_input;;
15104 esac
15106 case $ac_tag in
15107 *:-:* | *:-) cat >"$tmp/stdin" \
15108 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15109 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15110 { (exit 1); exit 1; }; } ;;
15111 esac
15113 esac
15115 ac_dir=`$as_dirname -- "$ac_file" ||
15116 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15117 X"$ac_file" : 'X\(//\)[^/]' \| \
15118 X"$ac_file" : 'X\(//\)$' \| \
15119 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15120 $as_echo X"$ac_file" |
15121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15122 s//\1/
15125 /^X\(\/\/\)[^/].*/{
15126 s//\1/
15129 /^X\(\/\/\)$/{
15130 s//\1/
15133 /^X\(\/\).*/{
15134 s//\1/
15137 s/.*/./; q'`
15138 { as_dir="$ac_dir"
15139 case $as_dir in #(
15140 -*) as_dir=./$as_dir;;
15141 esac
15142 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15143 as_dirs=
15144 while :; do
15145 case $as_dir in #(
15146 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15147 *) as_qdir=$as_dir;;
15148 esac
15149 as_dirs="'$as_qdir' $as_dirs"
15150 as_dir=`$as_dirname -- "$as_dir" ||
15151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15152 X"$as_dir" : 'X\(//\)[^/]' \| \
15153 X"$as_dir" : 'X\(//\)$' \| \
15154 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15155 $as_echo X"$as_dir" |
15156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15157 s//\1/
15160 /^X\(\/\/\)[^/].*/{
15161 s//\1/
15164 /^X\(\/\/\)$/{
15165 s//\1/
15168 /^X\(\/\).*/{
15169 s//\1/
15172 s/.*/./; q'`
15173 test -d "$as_dir" && break
15174 done
15175 test -z "$as_dirs" || eval "mkdir $as_dirs"
15176 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15177 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15178 { (exit 1); exit 1; }; }; }
15179 ac_builddir=.
15181 case "$ac_dir" in
15182 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15184 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15185 # A ".." for each directory in $ac_dir_suffix.
15186 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15187 case $ac_top_builddir_sub in
15188 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15189 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15190 esac ;;
15191 esac
15192 ac_abs_top_builddir=$ac_pwd
15193 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15194 # for backward compatibility:
15195 ac_top_builddir=$ac_top_build_prefix
15197 case $srcdir in
15198 .) # We are building in place.
15199 ac_srcdir=.
15200 ac_top_srcdir=$ac_top_builddir_sub
15201 ac_abs_top_srcdir=$ac_pwd ;;
15202 [\\/]* | ?:[\\/]* ) # Absolute name.
15203 ac_srcdir=$srcdir$ac_dir_suffix;
15204 ac_top_srcdir=$srcdir
15205 ac_abs_top_srcdir=$srcdir ;;
15206 *) # Relative name.
15207 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15208 ac_top_srcdir=$ac_top_build_prefix$srcdir
15209 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15210 esac
15211 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15214 case $ac_mode in
15217 # CONFIG_FILE
15220 case $INSTALL in
15221 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15222 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15223 esac
15224 _ACEOF
15226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15227 # If the template does not know about datarootdir, expand it.
15228 # FIXME: This hack should be removed a few years after 2.60.
15229 ac_datarootdir_hack=; ac_datarootdir_seen=
15231 ac_sed_dataroot='
15232 /datarootdir/ {
15236 /@datadir@/p
15237 /@docdir@/p
15238 /@infodir@/p
15239 /@localedir@/p
15240 /@mandir@/p
15242 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15243 *datarootdir*) ac_datarootdir_seen=yes;;
15244 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15245 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15246 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15247 _ACEOF
15248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15249 ac_datarootdir_hack='
15250 s&@datadir@&$datadir&g
15251 s&@docdir@&$docdir&g
15252 s&@infodir@&$infodir&g
15253 s&@localedir@&$localedir&g
15254 s&@mandir@&$mandir&g
15255 s&\\\${datarootdir}&$datarootdir&g' ;;
15256 esac
15257 _ACEOF
15259 # Neutralize VPATH when `$srcdir' = `.'.
15260 # Shell code in configure.ac might set extrasub.
15261 # FIXME: do we really want to maintain this feature?
15262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15263 ac_sed_extra="$ac_vpsub
15264 $extrasub
15265 _ACEOF
15266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15269 s|@configure_input@|$ac_sed_conf_input|;t t
15270 s&@top_builddir@&$ac_top_builddir_sub&;t t
15271 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15272 s&@srcdir@&$ac_srcdir&;t t
15273 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15274 s&@top_srcdir@&$ac_top_srcdir&;t t
15275 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15276 s&@builddir@&$ac_builddir&;t t
15277 s&@abs_builddir@&$ac_abs_builddir&;t t
15278 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15279 s&@INSTALL@&$ac_INSTALL&;t t
15280 $ac_datarootdir_hack
15282 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15283 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15284 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15285 { (exit 1); exit 1; }; }
15287 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15288 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15289 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15290 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15291 which seems to be undefined. Please make sure it is defined." >&5
15292 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15293 which seems to be undefined. Please make sure it is defined." >&2;}
15295 rm -f "$tmp/stdin"
15296 case $ac_file in
15297 -) cat "$tmp/out" && rm -f "$tmp/out";;
15298 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15299 esac \
15300 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15301 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15302 { (exit 1); exit 1; }; }
15306 # CONFIG_HEADER
15308 if test x"$ac_file" != x-; then
15310 $as_echo "/* $configure_input */" \
15311 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15312 } >"$tmp/config.h" \
15313 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15314 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15315 { (exit 1); exit 1; }; }
15316 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15317 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15318 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15319 else
15320 rm -f "$ac_file"
15321 mv "$tmp/config.h" "$ac_file" \
15322 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15323 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15324 { (exit 1); exit 1; }; }
15326 else
15327 $as_echo "/* $configure_input */" \
15328 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15329 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15330 $as_echo "$as_me: error: could not create -" >&2;}
15331 { (exit 1); exit 1; }; }
15335 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15336 $as_echo "$as_me: executing $ac_file commands" >&6;}
15338 esac
15341 case $ac_file$ac_mode in
15342 "libtool":C)
15344 # See if we are running on zsh, and set the options which allow our
15345 # commands through without removal of \ escapes.
15346 if test -n "${ZSH_VERSION+set}" ; then
15347 setopt NO_GLOB_SUBST
15350 cfgfile="${ofile}T"
15351 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15352 $RM "$cfgfile"
15354 cat <<_LT_EOF >> "$cfgfile"
15355 #! $SHELL
15357 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15358 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15359 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15361 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15362 # 2006, 2007, 2008 Free Software Foundation, Inc.
15363 # Written by Gordon Matzigkeit, 1996
15365 # This file is part of GNU Libtool.
15367 # GNU Libtool is free software; you can redistribute it and/or
15368 # modify it under the terms of the GNU General Public License as
15369 # published by the Free Software Foundation; either version 2 of
15370 # the License, or (at your option) any later version.
15372 # As a special exception to the GNU General Public License,
15373 # if you distribute this file as part of a program or library that
15374 # is built using GNU Libtool, you may include this file under the
15375 # same distribution terms that you use for the rest of that program.
15377 # GNU Libtool is distributed in the hope that it will be useful,
15378 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15379 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15380 # GNU General Public License for more details.
15382 # You should have received a copy of the GNU General Public License
15383 # along with GNU Libtool; see the file COPYING. If not, a copy
15384 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15385 # obtained by writing to the Free Software Foundation, Inc.,
15386 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15389 # The names of the tagged configurations supported by this script.
15390 available_tags=""
15392 # ### BEGIN LIBTOOL CONFIG
15394 # Which release of libtool.m4 was used?
15395 macro_version=$macro_version
15396 macro_revision=$macro_revision
15398 # Assembler program.
15399 AS=$AS
15401 # DLL creation program.
15402 DLLTOOL=$DLLTOOL
15404 # Object dumper program.
15405 OBJDUMP=$OBJDUMP
15407 # Whether or not to build shared libraries.
15408 build_libtool_libs=$enable_shared
15410 # Whether or not to build static libraries.
15411 build_old_libs=$enable_static
15413 # What type of objects to build.
15414 pic_mode=$pic_mode
15416 # Whether or not to optimize for fast installation.
15417 fast_install=$enable_fast_install
15419 # The host system.
15420 host_alias=$host_alias
15421 host=$host
15422 host_os=$host_os
15424 # The build system.
15425 build_alias=$build_alias
15426 build=$build
15427 build_os=$build_os
15429 # A sed program that does not truncate output.
15430 SED=$lt_SED
15432 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15433 Xsed="\$SED -e 1s/^X//"
15435 # A grep program that handles long lines.
15436 GREP=$lt_GREP
15438 # An ERE matcher.
15439 EGREP=$lt_EGREP
15441 # A literal string matcher.
15442 FGREP=$lt_FGREP
15444 # A BSD- or MS-compatible name lister.
15445 NM=$lt_NM
15447 # Whether we need soft or hard links.
15448 LN_S=$lt_LN_S
15450 # What is the maximum length of a command?
15451 max_cmd_len=$max_cmd_len
15453 # Object file suffix (normally "o").
15454 objext=$ac_objext
15456 # Executable file suffix (normally "").
15457 exeext=$exeext
15459 # whether the shell understands "unset".
15460 lt_unset=$lt_unset
15462 # turn spaces into newlines.
15463 SP2NL=$lt_lt_SP2NL
15465 # turn newlines into spaces.
15466 NL2SP=$lt_lt_NL2SP
15468 # How to create reloadable object files.
15469 reload_flag=$lt_reload_flag
15470 reload_cmds=$lt_reload_cmds
15472 # Method to check whether dependent libraries are shared objects.
15473 deplibs_check_method=$lt_deplibs_check_method
15475 # Command to use when deplibs_check_method == "file_magic".
15476 file_magic_cmd=$lt_file_magic_cmd
15478 # The archiver.
15479 AR=$lt_AR
15480 AR_FLAGS=$lt_AR_FLAGS
15482 # A symbol stripping program.
15483 STRIP=$lt_STRIP
15485 # Commands used to install an old-style archive.
15486 RANLIB=$lt_RANLIB
15487 old_postinstall_cmds=$lt_old_postinstall_cmds
15488 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15490 # A C compiler.
15491 LTCC=$lt_CC
15493 # LTCC compiler flags.
15494 LTCFLAGS=$lt_CFLAGS
15496 # Take the output of nm and produce a listing of raw symbols and C names.
15497 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15499 # Transform the output of nm in a proper C declaration.
15500 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15502 # Transform the output of nm in a C name address pair.
15503 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15505 # Transform the output of nm in a C name address pair when lib prefix is needed.
15506 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15508 # The name of the directory that contains temporary libtool files.
15509 objdir=$objdir
15511 # Shell to use when invoking shell scripts.
15512 SHELL=$lt_SHELL
15514 # An echo program that does not interpret backslashes.
15515 ECHO=$lt_ECHO
15517 # Used to examine libraries when file_magic_cmd begins with "file".
15518 MAGIC_CMD=$MAGIC_CMD
15520 # Must we lock files when doing compilation?
15521 need_locks=$lt_need_locks
15523 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15524 DSYMUTIL=$lt_DSYMUTIL
15526 # Tool to change global to local symbols on Mac OS X.
15527 NMEDIT=$lt_NMEDIT
15529 # Tool to manipulate fat objects and archives on Mac OS X.
15530 LIPO=$lt_LIPO
15532 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15533 OTOOL=$lt_OTOOL
15535 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15536 OTOOL64=$lt_OTOOL64
15538 # Old archive suffix (normally "a").
15539 libext=$libext
15541 # Shared library suffix (normally ".so").
15542 shrext_cmds=$lt_shrext_cmds
15544 # The commands to extract the exported symbol list from a shared archive.
15545 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15547 # Variables whose values should be saved in libtool wrapper scripts and
15548 # restored at link time.
15549 variables_saved_for_relink=$lt_variables_saved_for_relink
15551 # Do we need the "lib" prefix for modules?
15552 need_lib_prefix=$need_lib_prefix
15554 # Do we need a version for libraries?
15555 need_version=$need_version
15557 # Library versioning type.
15558 version_type=$version_type
15560 # Shared library runtime path variable.
15561 runpath_var=$runpath_var
15563 # Shared library path variable.
15564 shlibpath_var=$shlibpath_var
15566 # Is shlibpath searched before the hard-coded library search path?
15567 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15569 # Format of library name prefix.
15570 libname_spec=$lt_libname_spec
15572 # List of archive names. First name is the real one, the rest are links.
15573 # The last name is the one that the linker finds with -lNAME
15574 library_names_spec=$lt_library_names_spec
15576 # The coded name of the library, if different from the real name.
15577 soname_spec=$lt_soname_spec
15579 # Command to use after installation of a shared archive.
15580 postinstall_cmds=$lt_postinstall_cmds
15582 # Command to use after uninstallation of a shared archive.
15583 postuninstall_cmds=$lt_postuninstall_cmds
15585 # Commands used to finish a libtool library installation in a directory.
15586 finish_cmds=$lt_finish_cmds
15588 # As "finish_cmds", except a single script fragment to be evaled but
15589 # not shown.
15590 finish_eval=$lt_finish_eval
15592 # Whether we should hardcode library paths into libraries.
15593 hardcode_into_libs=$hardcode_into_libs
15595 # Compile-time system search path for libraries.
15596 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15598 # Run-time system search path for libraries.
15599 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15601 # Whether dlopen is supported.
15602 dlopen_support=$enable_dlopen
15604 # Whether dlopen of programs is supported.
15605 dlopen_self=$enable_dlopen_self
15607 # Whether dlopen of statically linked programs is supported.
15608 dlopen_self_static=$enable_dlopen_self_static
15610 # Commands to strip libraries.
15611 old_striplib=$lt_old_striplib
15612 striplib=$lt_striplib
15615 # The linker used to build libraries.
15616 LD=$lt_LD
15618 # Commands used to build an old-style archive.
15619 old_archive_cmds=$lt_old_archive_cmds
15621 # A language specific compiler.
15622 CC=$lt_compiler
15624 # Is the compiler the GNU compiler?
15625 with_gcc=$GCC
15627 # Compiler flag to turn off builtin functions.
15628 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15630 # How to pass a linker flag through the compiler.
15631 wl=$lt_lt_prog_compiler_wl
15633 # Additional compiler flags for building library objects.
15634 pic_flag=$lt_lt_prog_compiler_pic
15636 # Compiler flag to prevent dynamic linking.
15637 link_static_flag=$lt_lt_prog_compiler_static
15639 # Does compiler simultaneously support -c and -o options?
15640 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15642 # Whether or not to add -lc for building shared libraries.
15643 build_libtool_need_lc=$archive_cmds_need_lc
15645 # Whether or not to disallow shared libs when runtime libs are static.
15646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15648 # Compiler flag to allow reflexive dlopens.
15649 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15651 # Compiler flag to generate shared objects directly from archives.
15652 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15654 # Whether the compiler copes with passing no objects directly.
15655 compiler_needs_object=$lt_compiler_needs_object
15657 # Create an old-style archive from a shared archive.
15658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15660 # Create a temporary old-style archive to link instead of a shared archive.
15661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15663 # Commands used to build a shared archive.
15664 archive_cmds=$lt_archive_cmds
15665 archive_expsym_cmds=$lt_archive_expsym_cmds
15667 # Commands used to build a loadable module if different from building
15668 # a shared archive.
15669 module_cmds=$lt_module_cmds
15670 module_expsym_cmds=$lt_module_expsym_cmds
15672 # Whether we are building with GNU ld or not.
15673 with_gnu_ld=$lt_with_gnu_ld
15675 # Flag that allows shared libraries with undefined symbols to be built.
15676 allow_undefined_flag=$lt_allow_undefined_flag
15678 # Flag that enforces no undefined symbols.
15679 no_undefined_flag=$lt_no_undefined_flag
15681 # Flag to hardcode \$libdir into a binary during linking.
15682 # This must work even if \$libdir does not exist
15683 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15685 # If ld is used when linking, flag to hardcode \$libdir into a binary
15686 # during linking. This must work even if \$libdir does not exist.
15687 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15689 # Whether we need a single "-rpath" flag with a separated argument.
15690 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15692 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15693 # DIR into the resulting binary.
15694 hardcode_direct=$hardcode_direct
15696 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15697 # DIR into the resulting binary and the resulting library dependency is
15698 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15699 # library is relocated.
15700 hardcode_direct_absolute=$hardcode_direct_absolute
15702 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15703 # into the resulting binary.
15704 hardcode_minus_L=$hardcode_minus_L
15706 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15707 # into the resulting binary.
15708 hardcode_shlibpath_var=$hardcode_shlibpath_var
15710 # Set to "yes" if building a shared library automatically hardcodes DIR
15711 # into the library and all subsequent libraries and executables linked
15712 # against it.
15713 hardcode_automatic=$hardcode_automatic
15715 # Set to yes if linker adds runtime paths of dependent libraries
15716 # to runtime path list.
15717 inherit_rpath=$inherit_rpath
15719 # Whether libtool must link a program against all its dependency libraries.
15720 link_all_deplibs=$link_all_deplibs
15722 # Fix the shell variable \$srcfile for the compiler.
15723 fix_srcfile_path=$lt_fix_srcfile_path
15725 # Set to "yes" if exported symbols are required.
15726 always_export_symbols=$always_export_symbols
15728 # The commands to list exported symbols.
15729 export_symbols_cmds=$lt_export_symbols_cmds
15731 # Symbols that should not be listed in the preloaded symbols.
15732 exclude_expsyms=$lt_exclude_expsyms
15734 # Symbols that must always be exported.
15735 include_expsyms=$lt_include_expsyms
15737 # Commands necessary for linking programs (against libraries) with templates.
15738 prelink_cmds=$lt_prelink_cmds
15740 # Specify filename containing input files.
15741 file_list_spec=$lt_file_list_spec
15743 # How to hardcode a shared library path into an executable.
15744 hardcode_action=$hardcode_action
15746 # ### END LIBTOOL CONFIG
15748 _LT_EOF
15750 case $host_os in
15751 aix3*)
15752 cat <<\_LT_EOF >> "$cfgfile"
15753 # AIX sometimes has problems with the GCC collect2 program. For some
15754 # reason, if we set the COLLECT_NAMES environment variable, the problems
15755 # vanish in a puff of smoke.
15756 if test "X${COLLECT_NAMES+set}" != Xset; then
15757 COLLECT_NAMES=
15758 export COLLECT_NAMES
15760 _LT_EOF
15762 esac
15765 ltmain="$ac_aux_dir/ltmain.sh"
15768 # We use sed instead of cat because bash on DJGPP gets confused if
15769 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15770 # text mode, it properly converts lines to CR/LF. This bash problem
15771 # is reportedly fixed, but why not run on old versions too?
15772 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15773 || (rm -f "$cfgfile"; exit 1)
15775 case $xsi_shell in
15776 yes)
15777 cat << \_LT_EOF >> "$cfgfile"
15779 # func_dirname file append nondir_replacement
15780 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15781 # otherwise set result to NONDIR_REPLACEMENT.
15782 func_dirname ()
15784 case ${1} in
15785 */*) func_dirname_result="${1%/*}${2}" ;;
15786 * ) func_dirname_result="${3}" ;;
15787 esac
15790 # func_basename file
15791 func_basename ()
15793 func_basename_result="${1##*/}"
15796 # func_dirname_and_basename file append nondir_replacement
15797 # perform func_basename and func_dirname in a single function
15798 # call:
15799 # dirname: Compute the dirname of FILE. If nonempty,
15800 # add APPEND to the result, otherwise set result
15801 # to NONDIR_REPLACEMENT.
15802 # value returned in "$func_dirname_result"
15803 # basename: Compute filename of FILE.
15804 # value retuned in "$func_basename_result"
15805 # Implementation must be kept synchronized with func_dirname
15806 # and func_basename. For efficiency, we do not delegate to
15807 # those functions but instead duplicate the functionality here.
15808 func_dirname_and_basename ()
15810 case ${1} in
15811 */*) func_dirname_result="${1%/*}${2}" ;;
15812 * ) func_dirname_result="${3}" ;;
15813 esac
15814 func_basename_result="${1##*/}"
15817 # func_stripname prefix suffix name
15818 # strip PREFIX and SUFFIX off of NAME.
15819 # PREFIX and SUFFIX must not contain globbing or regex special
15820 # characters, hashes, percent signs, but SUFFIX may contain a leading
15821 # dot (in which case that matches only a dot).
15822 func_stripname ()
15824 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15825 # positional parameters, so assign one to ordinary parameter first.
15826 func_stripname_result=${3}
15827 func_stripname_result=${func_stripname_result#"${1}"}
15828 func_stripname_result=${func_stripname_result%"${2}"}
15831 # func_opt_split
15832 func_opt_split ()
15834 func_opt_split_opt=${1%%=*}
15835 func_opt_split_arg=${1#*=}
15838 # func_lo2o object
15839 func_lo2o ()
15841 case ${1} in
15842 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15843 *) func_lo2o_result=${1} ;;
15844 esac
15847 # func_xform libobj-or-source
15848 func_xform ()
15850 func_xform_result=${1%.*}.lo
15853 # func_arith arithmetic-term...
15854 func_arith ()
15856 func_arith_result=$(( $* ))
15859 # func_len string
15860 # STRING may not start with a hyphen.
15861 func_len ()
15863 func_len_result=${#1}
15866 _LT_EOF
15868 *) # Bourne compatible functions.
15869 cat << \_LT_EOF >> "$cfgfile"
15871 # func_dirname file append nondir_replacement
15872 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15873 # otherwise set result to NONDIR_REPLACEMENT.
15874 func_dirname ()
15876 # Extract subdirectory from the argument.
15877 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15878 if test "X$func_dirname_result" = "X${1}"; then
15879 func_dirname_result="${3}"
15880 else
15881 func_dirname_result="$func_dirname_result${2}"
15885 # func_basename file
15886 func_basename ()
15888 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15892 # func_stripname prefix suffix name
15893 # strip PREFIX and SUFFIX off of NAME.
15894 # PREFIX and SUFFIX must not contain globbing or regex special
15895 # characters, hashes, percent signs, but SUFFIX may contain a leading
15896 # dot (in which case that matches only a dot).
15897 # func_strip_suffix prefix name
15898 func_stripname ()
15900 case ${2} in
15901 .*) func_stripname_result=`$ECHO "X${3}" \
15902 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15903 *) func_stripname_result=`$ECHO "X${3}" \
15904 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15905 esac
15908 # sed scripts:
15909 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15910 my_sed_long_arg='1s/^-[^=]*=//'
15912 # func_opt_split
15913 func_opt_split ()
15915 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15916 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15919 # func_lo2o object
15920 func_lo2o ()
15922 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15925 # func_xform libobj-or-source
15926 func_xform ()
15928 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15931 # func_arith arithmetic-term...
15932 func_arith ()
15934 func_arith_result=`expr "$@"`
15937 # func_len string
15938 # STRING may not start with a hyphen.
15939 func_len ()
15941 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15944 _LT_EOF
15945 esac
15947 case $lt_shell_append in
15948 yes)
15949 cat << \_LT_EOF >> "$cfgfile"
15951 # func_append var value
15952 # Append VALUE to the end of shell variable VAR.
15953 func_append ()
15955 eval "$1+=\$2"
15957 _LT_EOF
15960 cat << \_LT_EOF >> "$cfgfile"
15962 # func_append var value
15963 # Append VALUE to the end of shell variable VAR.
15964 func_append ()
15966 eval "$1=\$$1\$2"
15969 _LT_EOF
15971 esac
15974 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15975 || (rm -f "$cfgfile"; exit 1)
15977 mv -f "$cfgfile" "$ofile" ||
15978 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15979 chmod +x "$ofile"
15982 "ftconfig.h":H) mv ftconfig.h ftconfig.tmp
15983 sed 's|/undef|#undef|' < ftconfig.tmp > ftconfig.h
15984 rm ftconfig.tmp ;;
15986 esac
15987 done # for ac_tag
15990 { (exit 0); exit 0; }
15991 _ACEOF
15992 chmod +x $CONFIG_STATUS
15993 ac_clean_files=$ac_clean_files_save
15995 test $ac_write_fail = 0 ||
15996 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15997 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15998 { (exit 1); exit 1; }; }
16001 # configure is writing to config.log, and then calls config.status.
16002 # config.status does its own redirection, appending to config.log.
16003 # Unfortunately, on DOS this fails, as config.log is still kept open
16004 # by configure, so config.status won't be able to write to it; its
16005 # output is simply discarded. So we exec the FD to /dev/null,
16006 # effectively closing config.log, so it can be properly (re)opened and
16007 # appended to by config.status. When coming back to configure, we
16008 # need to make the FD available again.
16009 if test "$no_create" != yes; then
16010 ac_cs_success=:
16011 ac_config_status_args=
16012 test "$silent" = yes &&
16013 ac_config_status_args="$ac_config_status_args --quiet"
16014 exec 5>/dev/null
16015 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16016 exec 5>>config.log
16017 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16018 # would make configure fail if this is the last instruction.
16019 $ac_cs_success || { (exit 1); exit 1; }
16021 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16022 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16023 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16027 # end of configure.raw