Cosmetics.
[SDL.s60v3.git] / configure
blobb85e542c2ae9c88d97ff57738cacd16ae73bb90e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$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 # Zsh 3.x and 4.x performs 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 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561 esac
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
584 exit 0
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
602 done
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
626 done
627 IFS="$lt_save_ifs"
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
675 prev="$cmd"
676 done
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714 # Initializations.
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
733 ac_unique_file="README"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 SDL_MAJOR_VERSION
808 SDL_MINOR_VERSION
809 SDL_MICRO_VERSION
810 SDL_INTERFACE_AGE
811 SDL_BINARY_AGE
812 SDL_VERSION
813 LT_RELEASE
814 LT_CURRENT
815 LT_REVISION
816 LT_AGE
817 build
818 build_cpu
819 build_vendor
820 build_os
821 host
822 host_cpu
823 host_vendor
824 host_os
826 CFLAGS
827 LDFLAGS
828 CPPFLAGS
829 ac_ct_CC
830 EXEEXT
831 OBJEXT
833 GREP
834 EGREP
835 LN_S
836 ECHO
838 RANLIB
839 STRIP
840 DLLTOOL
842 OBJDUMP
844 CXXFLAGS
845 ac_ct_CXX
846 CXXCPP
848 FFLAGS
849 ac_ct_F77
850 LIBTOOL
851 INSTALL_PROGRAM
852 INSTALL_SCRIPT
853 INSTALL_DATA
854 SET_MAKE
855 WINDRES
856 ALLOCA
857 LIBOBJS
858 POW_LIB
859 ALSA_CFLAGS
860 ALSA_LIBS
861 ESD_CONFIG
862 ESD_CFLAGS
863 ESD_LIBS
864 PKG_CONFIG
865 ARTSCONFIG
866 NASM
867 NASMFLAGS
868 XMKMF
869 X_CFLAGS
870 X_PRE_LIBS
871 X_LIBS
872 X_EXTRA_LIBS
873 DIRECTFBCONFIG
874 OSMESA_CONFIG
875 PTH_CONFIG
876 SDL_CFLAGS
877 SDL_LIBS
878 SDL_STATIC_LIBS
879 SDL_RLD_FLAGS
880 ENABLE_SHARED_TRUE
881 ENABLE_SHARED_FALSE
882 ENABLE_STATIC_TRUE
883 ENABLE_STATIC_FALSE
884 ac_aux_dir
885 INCLUDE
886 SOURCES
887 OBJECTS
888 SDLMAIN_SOURCES
889 SDLMAIN_OBJECTS
890 BUILD_CFLAGS
891 EXTRA_CFLAGS
892 BUILD_LDFLAGS
893 EXTRA_LDFLAGS
894 LTLIBOBJS'
895 ac_subst_files=''
896 ac_precious_vars='build_alias
897 host_alias
898 target_alias
900 CFLAGS
901 LDFLAGS
902 LIBS
903 CPPFLAGS
906 CXXFLAGS
908 CXXCPP
910 FFLAGS
911 XMKMF'
914 # Initialize some variables set by options.
915 ac_init_help=
916 ac_init_version=false
917 # The variables have the same names as the options, with
918 # dashes changed to underlines.
919 cache_file=/dev/null
920 exec_prefix=NONE
921 no_create=
922 no_recursion=
923 prefix=NONE
924 program_prefix=NONE
925 program_suffix=NONE
926 program_transform_name=s,x,x,
927 silent=
928 site=
929 srcdir=
930 verbose=
931 x_includes=NONE
932 x_libraries=NONE
934 # Installation directory options.
935 # These are left unexpanded so users can "make install exec_prefix=/foo"
936 # and all the variables that are supposed to be based on exec_prefix
937 # by default will actually change.
938 # Use braces instead of parens because sh, perl, etc. also accept them.
939 # (The list follows the same order as the GNU Coding Standards.)
940 bindir='${exec_prefix}/bin'
941 sbindir='${exec_prefix}/sbin'
942 libexecdir='${exec_prefix}/libexec'
943 datarootdir='${prefix}/share'
944 datadir='${datarootdir}'
945 sysconfdir='${prefix}/etc'
946 sharedstatedir='${prefix}/com'
947 localstatedir='${prefix}/var'
948 includedir='${prefix}/include'
949 oldincludedir='/usr/include'
950 docdir='${datarootdir}/doc/${PACKAGE}'
951 infodir='${datarootdir}/info'
952 htmldir='${docdir}'
953 dvidir='${docdir}'
954 pdfdir='${docdir}'
955 psdir='${docdir}'
956 libdir='${exec_prefix}/lib'
957 localedir='${datarootdir}/locale'
958 mandir='${datarootdir}/man'
960 ac_prev=
961 ac_dashdash=
962 for ac_option
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\$ac_option
967 ac_prev=
968 continue
971 case $ac_option in
972 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 *) ac_optarg=yes ;;
974 esac
976 # Accept the important Cygnus configure options, so we can diagnose typos.
978 case $ac_dashdash$ac_option in
980 ac_dashdash=yes ;;
982 -bindir | --bindir | --bindi | --bind | --bin | --bi)
983 ac_prev=bindir ;;
984 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
985 bindir=$ac_optarg ;;
987 -build | --build | --buil | --bui | --bu)
988 ac_prev=build_alias ;;
989 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
990 build_alias=$ac_optarg ;;
992 -cache-file | --cache-file | --cache-fil | --cache-fi \
993 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994 ac_prev=cache_file ;;
995 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
997 cache_file=$ac_optarg ;;
999 --config-cache | -C)
1000 cache_file=config.cache ;;
1002 -datadir | --datadir | --datadi | --datad)
1003 ac_prev=datadir ;;
1004 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1005 datadir=$ac_optarg ;;
1007 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008 | --dataroo | --dataro | --datar)
1009 ac_prev=datarootdir ;;
1010 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012 datarootdir=$ac_optarg ;;
1014 -disable-* | --disable-*)
1015 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019 { (exit 1); exit 1; }; }
1020 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021 eval enable_$ac_feature=no ;;
1023 -docdir | --docdir | --docdi | --doc | --do)
1024 ac_prev=docdir ;;
1025 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1026 docdir=$ac_optarg ;;
1028 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029 ac_prev=dvidir ;;
1030 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1031 dvidir=$ac_optarg ;;
1033 -enable-* | --enable-*)
1034 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1040 eval enable_$ac_feature=\$ac_optarg ;;
1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044 | --exec | --exe | --ex)
1045 ac_prev=exec_prefix ;;
1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048 | --exec=* | --exe=* | --ex=*)
1049 exec_prefix=$ac_optarg ;;
1051 -gas | --gas | --ga | --g)
1052 # Obsolete; use --with-gas.
1053 with_gas=yes ;;
1055 -help | --help | --hel | --he | -h)
1056 ac_init_help=long ;;
1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058 ac_init_help=recursive ;;
1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060 ac_init_help=short ;;
1062 -host | --host | --hos | --ho)
1063 ac_prev=host_alias ;;
1064 -host=* | --host=* | --hos=* | --ho=*)
1065 host_alias=$ac_optarg ;;
1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068 ac_prev=htmldir ;;
1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070 | --ht=*)
1071 htmldir=$ac_optarg ;;
1073 -includedir | --includedir | --includedi | --included | --include \
1074 | --includ | --inclu | --incl | --inc)
1075 ac_prev=includedir ;;
1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077 | --includ=* | --inclu=* | --incl=* | --inc=*)
1078 includedir=$ac_optarg ;;
1080 -infodir | --infodir | --infodi | --infod | --info | --inf)
1081 ac_prev=infodir ;;
1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083 infodir=$ac_optarg ;;
1085 -libdir | --libdir | --libdi | --libd)
1086 ac_prev=libdir ;;
1087 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088 libdir=$ac_optarg ;;
1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091 | --libexe | --libex | --libe)
1092 ac_prev=libexecdir ;;
1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094 | --libexe=* | --libex=* | --libe=*)
1095 libexecdir=$ac_optarg ;;
1097 -localedir | --localedir | --localedi | --localed | --locale)
1098 ac_prev=localedir ;;
1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100 localedir=$ac_optarg ;;
1102 -localstatedir | --localstatedir | --localstatedi | --localstated \
1103 | --localstate | --localstat | --localsta | --localst | --locals)
1104 ac_prev=localstatedir ;;
1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107 localstatedir=$ac_optarg ;;
1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110 ac_prev=mandir ;;
1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112 mandir=$ac_optarg ;;
1114 -nfp | --nfp | --nf)
1115 # Obsolete; use --without-fp.
1116 with_fp=no ;;
1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119 | --no-cr | --no-c | -n)
1120 no_create=yes ;;
1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124 no_recursion=yes ;;
1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128 | --oldin | --oldi | --old | --ol | --o)
1129 ac_prev=oldincludedir ;;
1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133 oldincludedir=$ac_optarg ;;
1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136 ac_prev=prefix ;;
1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138 prefix=$ac_optarg ;;
1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141 | --program-pre | --program-pr | --program-p)
1142 ac_prev=program_prefix ;;
1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145 program_prefix=$ac_optarg ;;
1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148 | --program-suf | --program-su | --program-s)
1149 ac_prev=program_suffix ;;
1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152 program_suffix=$ac_optarg ;;
1154 -program-transform-name | --program-transform-name \
1155 | --program-transform-nam | --program-transform-na \
1156 | --program-transform-n | --program-transform- \
1157 | --program-transform | --program-transfor \
1158 | --program-transfo | --program-transf \
1159 | --program-trans | --program-tran \
1160 | --progr-tra | --program-tr | --program-t)
1161 ac_prev=program_transform_name ;;
1162 -program-transform-name=* | --program-transform-name=* \
1163 | --program-transform-nam=* | --program-transform-na=* \
1164 | --program-transform-n=* | --program-transform-=* \
1165 | --program-transform=* | --program-transfor=* \
1166 | --program-transfo=* | --program-transf=* \
1167 | --program-trans=* | --program-tran=* \
1168 | --progr-tra=* | --program-tr=* | --program-t=*)
1169 program_transform_name=$ac_optarg ;;
1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172 ac_prev=pdfdir ;;
1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174 pdfdir=$ac_optarg ;;
1176 -psdir | --psdir | --psdi | --psd | --ps)
1177 ac_prev=psdir ;;
1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179 psdir=$ac_optarg ;;
1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182 | -silent | --silent | --silen | --sile | --sil)
1183 silent=yes ;;
1185 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186 ac_prev=sbindir ;;
1187 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188 | --sbi=* | --sb=*)
1189 sbindir=$ac_optarg ;;
1191 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193 | --sharedst | --shareds | --shared | --share | --shar \
1194 | --sha | --sh)
1195 ac_prev=sharedstatedir ;;
1196 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199 | --sha=* | --sh=*)
1200 sharedstatedir=$ac_optarg ;;
1202 -site | --site | --sit)
1203 ac_prev=site ;;
1204 -site=* | --site=* | --sit=*)
1205 site=$ac_optarg ;;
1207 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208 ac_prev=srcdir ;;
1209 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210 srcdir=$ac_optarg ;;
1212 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213 | --syscon | --sysco | --sysc | --sys | --sy)
1214 ac_prev=sysconfdir ;;
1215 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217 sysconfdir=$ac_optarg ;;
1219 -target | --target | --targe | --targ | --tar | --ta | --t)
1220 ac_prev=target_alias ;;
1221 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222 target_alias=$ac_optarg ;;
1224 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225 verbose=yes ;;
1227 -version | --version | --versio | --versi | --vers | -V)
1228 ac_init_version=: ;;
1230 -with-* | --with-*)
1231 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 { echo "$as_me: error: invalid package name: $ac_package" >&2
1235 { (exit 1); exit 1; }; }
1236 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1237 eval with_$ac_package=\$ac_optarg ;;
1239 -without-* | --without-*)
1240 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 { echo "$as_me: error: invalid package name: $ac_package" >&2
1244 { (exit 1); exit 1; }; }
1245 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1246 eval with_$ac_package=no ;;
1248 --x)
1249 # Obsolete; use --with-x.
1250 with_x=yes ;;
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1266 -*) { echo "$as_me: error: unrecognized option: $ac_option
1267 Try \`$0 --help' for more information." >&2
1268 { (exit 1); exit 1; }; }
1271 *=*)
1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1275 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1276 { (exit 1); exit 1; }; }
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288 esac
1289 done
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 { echo "$as_me: error: missing argument to $ac_option" >&2
1294 { (exit 1); exit 1; }; }
1297 # Be sure to have absolute directory names.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir
1303 eval ac_val=\$$ac_var
1304 case $ac_val in
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 esac
1308 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309 { (exit 1); exit 1; }; }
1310 done
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1326 cross_compiling=yes
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333 test "$silent" = yes && exec 6>/dev/null
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 { echo "$as_me: error: Working directory cannot be determined" >&2
1340 { (exit 1); exit 1; }; }
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 { echo "$as_me: error: pwd does not report name of working directory" >&2
1343 { (exit 1); exit 1; }; }
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$0" ||
1351 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$0" : 'X\(//\)[^/]' \| \
1353 X"$0" : 'X\(//\)$' \| \
1354 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1355 echo X"$0" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 s//\1/
1360 /^X\(\/\/\)[^/].*/{
1361 s//\1/
1364 /^X\(\/\/\)$/{
1365 s//\1/
1368 /^X\(\/\).*/{
1369 s//\1/
1372 s/.*/./; q'`
1373 srcdir=$ac_confdir
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 srcdir=..
1377 else
1378 ac_srcdir_defaulted=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383 { (exit 1); exit 1; }; }
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1388 { (exit 1); exit 1; }; }
1389 pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 srcdir=.
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1408 # Report the --help message.
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1413 cat <<_ACEOF
1414 \`configure' configures this package to adapt to many kinds of systems.
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1421 Defaults for the options are specified in brackets.
1423 Configuration:
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 [PREFIX]
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1445 For better control, use the options below.
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1467 _ACEOF
1469 cat <<\_ACEOF
1471 X features:
1472 --x-includes=DIR X include files are in DIR
1473 --x-libraries=DIR X library files are in DIR
1475 System types:
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 _ACEOF
1481 if test -n "$ac_init_help"; then
1483 cat <<\_ACEOF
1485 Optional Features:
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-static[=PKGS] build static libraries [default=yes]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1493 --enable-libc Use the system C library [default=yes]
1494 --enable-audio Enable the audio subsystem [default=yes]
1495 --enable-video Enable the video subsystem [default=yes]
1496 --enable-events Enable the events subsystem [default=yes]
1497 --enable-joystick Enable the joystick subsystem [default=yes]
1498 --enable-cdrom Enable the cdrom subsystem [default=yes]
1499 --enable-threads Enable the threading subsystem [default=yes]
1500 --enable-timers Enable the timer subsystem [default=yes]
1501 --enable-file Enable the file subsystem [default=yes]
1502 --enable-loadso Enable the shared object loading subsystem
1503 [default=yes]
1504 --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
1505 --enable-assembly Enable assembly routines [default=yes]
1506 --enable-oss support the OSS audio API [default=yes]
1507 --enable-alsa support the ALSA audio API [default=yes]
1508 --disable-alsatest Do not try to compile and run a test Alsa program
1509 --enable-alsa-shared dynamically load ALSA audio support [default=yes]
1510 --enable-esd support the Enlightened Sound Daemon [default=yes]
1511 --disable-esdtest Do not try to compile and run a test ESD program
1512 --enable-esd-shared dynamically load ESD audio support [default=yes]
1513 --enable-pulseaudio use PulseAudio [default=yes]
1514 --enable-pulseaudio-shared
1515 dynamically load PulseAudio support [default=yes]
1516 --enable-arts support the Analog Real Time Synthesizer
1517 [default=yes]
1518 --enable-arts-shared dynamically load aRts audio support [default=yes]
1519 --enable-nas support the NAS audio API [default=yes]
1520 --enable-diskaudio support the disk writer audio driver [default=yes]
1521 --enable-dummyaudio support the dummy audio driver [default=yes]
1522 --enable-mintaudio support Atari audio driver [default=yes]
1523 --enable-nasm use nasm assembly blitters on x86 [default=yes]
1524 --enable-altivec use altivec assembly blitters on PPC [default=yes]
1525 --enable-ipod configure SDL to work with iPodLinux
1526 default=yes, on, arm-elf
1527 --enable-video-nanox use nanox video driver [default=no]
1528 --enable-nanox-debug print debug messages [default=no]
1529 --enable-nanox-share-memory
1530 use share memory [default=no]
1531 --enable-nanox-direct-fb
1532 use direct framebuffer access [default=no]
1533 --enable-video-x11 use X11 video driver [default=yes]
1534 --enable-x11-shared dynamically load X11 support [default=maybe]
1535 --enable-dga allow use of X11 DGA code [default=yes]
1536 --enable-video-dga use DGA 2.0 video driver [default=yes]
1537 --enable-video-x11-dgamouse
1538 use X11 DGA for mouse events [default=yes]
1539 --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
1540 --enable-video-x11-xv use X11 XvImage extension for video [default=yes]
1541 --enable-video-x11-xinerama
1542 enable X11 Xinerama support [default=yes]
1543 --enable-video-x11-xme enable Xi Graphics XME for fullscreen
1544 [default=yes]
1545 --enable-video-x11-xrandr
1546 enable X11 Xrandr extension for fullscreen
1547 [default=yes]
1548 --enable-video-x11-dpms enable X11 DPMS extension [default=yes]
1549 --enable-video-photon use QNX Photon video driver [default=yes]
1550 --enable-video-carbon use Carbon/QuickDraw video driver [default=no]
1551 --enable-video-cocoa use Cocoa/Quartz video driver [default=yes]
1552 --enable-video-fbcon use framebuffer console video driver [default=yes]
1553 --enable-video-directfb use DirectFB video driver [default=yes]
1554 --enable-video-ps2gs use PlayStation 2 GS video driver [default=yes]
1555 --enable-video-ggi use GGI video driver [default=no]
1556 --enable-video-svga use SVGAlib video driver [default=yes]
1557 --enable-video-vgl use VGL video driver [default=yes]
1558 --enable-video-wscons use wscons video driver [default=yes]
1559 --enable-video-aalib use AAlib video driver [default=no]
1560 --enable-video-qtopia use Qtopia video driver [default=no]
1561 --enable-video-picogui use PicoGUI video driver [default=no]
1562 --enable-video-xbios use Atari Xbios video driver [default=yes]
1563 --enable-video-gem use Atari Gem video driver [default=yes]
1564 --enable-video-dummy use dummy video driver [default=yes]
1565 --enable-video-opengl include OpenGL context creation [default=yes]
1566 --enable-osmesa-shared dynamically load OSMesa OpenGL support
1567 [default=yes]
1568 --enable-input-events use Linux 2.4 unified input interface
1569 [default=yes]
1570 --enable-input-tslib use the Touchscreen library for input
1571 [default=yes]
1572 --enable-pth use GNU pth library for multi-threading
1573 [default=yes]
1574 --enable-pthreads use POSIX threads for multi-threading
1575 [default=yes]
1576 --enable-pthread-sem use pthread semaphores [default=yes]
1577 --enable-stdio-redirect Redirect STDIO to files on Win32 [default=yes]
1578 --enable-directx use DirectX for Win32 audio/video [default=yes]
1579 --enable-sdl-dlopen use dlopen for shared object loading [default=yes]
1580 --enable-atari-ldg use Atari LDG for shared object loading
1581 [default=yes]
1582 --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
1583 UNIX [default=no]
1584 --enable-rpath use an rpath when linking SDL [default=yes]
1586 Optional Packages:
1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1589 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1590 --with-pic try to use only PIC/non-PIC objects [default=use
1591 both]
1592 --with-tags[=TAGS] include additional configurations [automatic]
1593 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
1594 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
1595 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
1596 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1597 --with-x use the X Window System
1599 Some influential environment variables:
1600 CC C compiler command
1601 CFLAGS C compiler flags
1602 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1603 nonstandard directory <lib dir>
1604 LIBS libraries to pass to the linker, e.g. -l<library>
1605 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1606 you have headers in a nonstandard directory <include dir>
1607 CPP C preprocessor
1608 CXX C++ compiler command
1609 CXXFLAGS C++ compiler flags
1610 CXXCPP C++ preprocessor
1611 F77 Fortran 77 compiler command
1612 FFLAGS Fortran 77 compiler flags
1613 XMKMF Path to xmkmf, Makefile generator for X Window System
1615 Use these variables to override the choices made by `configure' or to help
1616 it to find libraries and programs with nonstandard names/locations.
1618 _ACEOF
1619 ac_status=$?
1622 if test "$ac_init_help" = "recursive"; then
1623 # If there are subdirs, report their specific --help.
1624 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1625 test -d "$ac_dir" || continue
1626 ac_builddir=.
1628 case "$ac_dir" in
1629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1632 # A ".." for each directory in $ac_dir_suffix.
1633 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1634 case $ac_top_builddir_sub in
1635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637 esac ;;
1638 esac
1639 ac_abs_top_builddir=$ac_pwd
1640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641 # for backward compatibility:
1642 ac_top_builddir=$ac_top_build_prefix
1644 case $srcdir in
1645 .) # We are building in place.
1646 ac_srcdir=.
1647 ac_top_srcdir=$ac_top_builddir_sub
1648 ac_abs_top_srcdir=$ac_pwd ;;
1649 [\\/]* | ?:[\\/]* ) # Absolute name.
1650 ac_srcdir=$srcdir$ac_dir_suffix;
1651 ac_top_srcdir=$srcdir
1652 ac_abs_top_srcdir=$srcdir ;;
1653 *) # Relative name.
1654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655 ac_top_srcdir=$ac_top_build_prefix$srcdir
1656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1657 esac
1658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660 cd "$ac_dir" || { ac_status=$?; continue; }
1661 # Check for guested configure.
1662 if test -f "$ac_srcdir/configure.gnu"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665 elif test -f "$ac_srcdir/configure"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure" --help=recursive
1668 else
1669 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670 fi || ac_status=$?
1671 cd "$ac_pwd" || { ac_status=$?; break; }
1672 done
1675 test -n "$ac_init_help" && exit $ac_status
1676 if $ac_init_version; then
1677 cat <<\_ACEOF
1678 configure
1679 generated by GNU Autoconf 2.61
1681 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1682 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1683 This configure script is free software; the Free Software Foundation
1684 gives unlimited permission to copy, distribute and modify it.
1685 _ACEOF
1686 exit
1688 cat >config.log <<_ACEOF
1689 This file contains any messages produced by compilers while
1690 running configure, to aid debugging if configure makes a mistake.
1692 It was created by $as_me, which was
1693 generated by GNU Autoconf 2.61. Invocation command line was
1695 $ $0 $@
1697 _ACEOF
1698 exec 5>>config.log
1700 cat <<_ASUNAME
1701 ## --------- ##
1702 ## Platform. ##
1703 ## --------- ##
1705 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1706 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1707 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1708 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1709 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1711 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1712 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1714 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1715 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1716 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1717 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1718 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1719 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1720 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1722 _ASUNAME
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 for as_dir in $PATH
1727 IFS=$as_save_IFS
1728 test -z "$as_dir" && as_dir=.
1729 echo "PATH: $as_dir"
1730 done
1731 IFS=$as_save_IFS
1733 } >&5
1735 cat >&5 <<_ACEOF
1738 ## ----------- ##
1739 ## Core tests. ##
1740 ## ----------- ##
1742 _ACEOF
1745 # Keep a trace of the command line.
1746 # Strip out --no-create and --no-recursion so they do not pile up.
1747 # Strip out --silent because we don't want to record it for future runs.
1748 # Also quote any args containing shell meta-characters.
1749 # Make two passes to allow for proper duplicate-argument suppression.
1750 ac_configure_args=
1751 ac_configure_args0=
1752 ac_configure_args1=
1753 ac_must_keep_next=false
1754 for ac_pass in 1 2
1756 for ac_arg
1758 case $ac_arg in
1759 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1760 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1761 | -silent | --silent | --silen | --sile | --sil)
1762 continue ;;
1763 *\'*)
1764 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1765 esac
1766 case $ac_pass in
1767 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1769 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1770 if test $ac_must_keep_next = true; then
1771 ac_must_keep_next=false # Got value, back to normal.
1772 else
1773 case $ac_arg in
1774 *=* | --config-cache | -C | -disable-* | --disable-* \
1775 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1776 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1777 | -with-* | --with-* | -without-* | --without-* | --x)
1778 case "$ac_configure_args0 " in
1779 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1780 esac
1782 -* ) ac_must_keep_next=true ;;
1783 esac
1785 ac_configure_args="$ac_configure_args '$ac_arg'"
1787 esac
1788 done
1789 done
1790 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1791 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1793 # When interrupted or exit'd, cleanup temporary files, and complete
1794 # config.log. We remove comments because anyway the quotes in there
1795 # would cause problems or look ugly.
1796 # WARNING: Use '\'' to represent an apostrophe within the trap.
1797 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1798 trap 'exit_status=$?
1799 # Save into config.log some information that might help in debugging.
1801 echo
1803 cat <<\_ASBOX
1804 ## ---------------- ##
1805 ## Cache variables. ##
1806 ## ---------------- ##
1807 _ASBOX
1808 echo
1809 # The following way of writing the cache mishandles newlines in values,
1811 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1812 eval ac_val=\$$ac_var
1813 case $ac_val in #(
1814 *${as_nl}*)
1815 case $ac_var in #(
1816 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1817 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1818 esac
1819 case $ac_var in #(
1820 _ | IFS | as_nl) ;; #(
1821 *) $as_unset $ac_var ;;
1822 esac ;;
1823 esac
1824 done
1825 (set) 2>&1 |
1826 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1827 *${as_nl}ac_space=\ *)
1828 sed -n \
1829 "s/'\''/'\''\\\\'\'''\''/g;
1830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1831 ;; #(
1833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1835 esac |
1836 sort
1838 echo
1840 cat <<\_ASBOX
1841 ## ----------------- ##
1842 ## Output variables. ##
1843 ## ----------------- ##
1844 _ASBOX
1845 echo
1846 for ac_var in $ac_subst_vars
1848 eval ac_val=\$$ac_var
1849 case $ac_val in
1850 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1851 esac
1852 echo "$ac_var='\''$ac_val'\''"
1853 done | sort
1854 echo
1856 if test -n "$ac_subst_files"; then
1857 cat <<\_ASBOX
1858 ## ------------------- ##
1859 ## File substitutions. ##
1860 ## ------------------- ##
1861 _ASBOX
1862 echo
1863 for ac_var in $ac_subst_files
1865 eval ac_val=\$$ac_var
1866 case $ac_val in
1867 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1868 esac
1869 echo "$ac_var='\''$ac_val'\''"
1870 done | sort
1871 echo
1874 if test -s confdefs.h; then
1875 cat <<\_ASBOX
1876 ## ----------- ##
1877 ## confdefs.h. ##
1878 ## ----------- ##
1879 _ASBOX
1880 echo
1881 cat confdefs.h
1882 echo
1884 test "$ac_signal" != 0 &&
1885 echo "$as_me: caught signal $ac_signal"
1886 echo "$as_me: exit $exit_status"
1887 } >&5
1888 rm -f core *.core core.conftest.* &&
1889 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1890 exit $exit_status
1892 for ac_signal in 1 2 13 15; do
1893 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1894 done
1895 ac_signal=0
1897 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1898 rm -f -r conftest* confdefs.h
1900 # Predefined preprocessor variables.
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_NAME "$PACKAGE_NAME"
1904 _ACEOF
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1909 _ACEOF
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1914 _ACEOF
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_STRING "$PACKAGE_STRING"
1919 _ACEOF
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1924 _ACEOF
1927 # Let the site file select an alternate cache file if it wants to.
1928 # Prefer explicitly selected file to automatically selected ones.
1929 if test -n "$CONFIG_SITE"; then
1930 set x "$CONFIG_SITE"
1931 elif test "x$prefix" != xNONE; then
1932 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1933 else
1934 set x "$ac_default_prefix/share/config.site" \
1935 "$ac_default_prefix/etc/config.site"
1937 shift
1938 for ac_site_file
1940 if test -r "$ac_site_file"; then
1941 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1942 echo "$as_me: loading site script $ac_site_file" >&6;}
1943 sed 's/^/| /' "$ac_site_file" >&5
1944 . "$ac_site_file"
1946 done
1948 if test -r "$cache_file"; then
1949 # Some versions of bash will fail to source /dev/null (special
1950 # files actually), so we avoid doing that.
1951 if test -f "$cache_file"; then
1952 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1953 echo "$as_me: loading cache $cache_file" >&6;}
1954 case $cache_file in
1955 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1956 *) . "./$cache_file";;
1957 esac
1959 else
1960 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1961 echo "$as_me: creating cache $cache_file" >&6;}
1962 >$cache_file
1965 # Check that the precious variables saved in the cache have kept the same
1966 # value.
1967 ac_cache_corrupted=false
1968 for ac_var in $ac_precious_vars; do
1969 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1970 eval ac_new_set=\$ac_env_${ac_var}_set
1971 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1972 eval ac_new_val=\$ac_env_${ac_var}_value
1973 case $ac_old_set,$ac_new_set in
1974 set,)
1975 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1976 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1977 ac_cache_corrupted=: ;;
1978 ,set)
1979 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1980 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1981 ac_cache_corrupted=: ;;
1982 ,);;
1984 if test "x$ac_old_val" != "x$ac_new_val"; then
1985 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1986 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1987 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1988 echo "$as_me: former value: $ac_old_val" >&2;}
1989 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1990 echo "$as_me: current value: $ac_new_val" >&2;}
1991 ac_cache_corrupted=:
1992 fi;;
1993 esac
1994 # Pass precious variables to config.status.
1995 if test "$ac_new_set" = set; then
1996 case $ac_new_val in
1997 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1998 *) ac_arg=$ac_var=$ac_new_val ;;
1999 esac
2000 case " $ac_configure_args " in
2001 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2002 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2003 esac
2005 done
2006 if $ac_cache_corrupted; then
2007 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2008 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2009 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2010 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2011 { (exit 1); exit 1; }; }
2030 ac_ext=c
2031 ac_cpp='$CPP $CPPFLAGS'
2032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037 ac_config_headers="$ac_config_headers include/SDL_config.h"
2040 cat >>confdefs.h <<\_ACEOF
2041 #define _GNU_SOURCE 1
2042 _ACEOF
2047 # Making releases:
2048 # Edit include/SDL/SDL_version.h and change the version, then:
2049 # SDL_MICRO_VERSION += 1;
2050 # SDL_INTERFACE_AGE += 1;
2051 # SDL_BINARY_AGE += 1;
2052 # if any functions have been added, set SDL_INTERFACE_AGE to 0.
2053 # if backwards compatibility has been broken,
2054 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
2056 SDL_MAJOR_VERSION=1
2057 SDL_MINOR_VERSION=2
2058 SDL_MICRO_VERSION=13
2059 SDL_INTERFACE_AGE=2
2060 SDL_BINARY_AGE=13
2061 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
2070 # libtool versioning
2071 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
2072 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
2073 LT_REVISION=$SDL_INTERFACE_AGE
2074 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
2081 ac_aux_dir=
2082 for ac_dir in $srcdir/build-scripts; do
2083 if test -f "$ac_dir/install-sh"; then
2084 ac_aux_dir=$ac_dir
2085 ac_install_sh="$ac_aux_dir/install-sh -c"
2086 break
2087 elif test -f "$ac_dir/install.sh"; then
2088 ac_aux_dir=$ac_dir
2089 ac_install_sh="$ac_aux_dir/install.sh -c"
2090 break
2091 elif test -f "$ac_dir/shtool"; then
2092 ac_aux_dir=$ac_dir
2093 ac_install_sh="$ac_aux_dir/shtool install -c"
2094 break
2096 done
2097 if test -z "$ac_aux_dir"; then
2098 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir/build-scripts" >&5
2099 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir/build-scripts" >&2;}
2100 { (exit 1); exit 1; }; }
2103 # These three variables are undocumented and unsupported,
2104 # and are intended to be withdrawn in a future Autoconf release.
2105 # They can cause serious problems if a builder's source tree is in a directory
2106 # whose full name contains unusual characters.
2107 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2108 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2109 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2112 # Make sure we can run config.sub.
2113 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2114 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2115 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2116 { (exit 1); exit 1; }; }
2118 { echo "$as_me:$LINENO: checking build system type" >&5
2119 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2120 if test "${ac_cv_build+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123 ac_build_alias=$build_alias
2124 test "x$ac_build_alias" = x &&
2125 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2126 test "x$ac_build_alias" = x &&
2127 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2128 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2129 { (exit 1); exit 1; }; }
2130 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2131 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2132 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2133 { (exit 1); exit 1; }; }
2136 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2137 echo "${ECHO_T}$ac_cv_build" >&6; }
2138 case $ac_cv_build in
2139 *-*-*) ;;
2140 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2141 echo "$as_me: error: invalid value of canonical build" >&2;}
2142 { (exit 1); exit 1; }; };;
2143 esac
2144 build=$ac_cv_build
2145 ac_save_IFS=$IFS; IFS='-'
2146 set x $ac_cv_build
2147 shift
2148 build_cpu=$1
2149 build_vendor=$2
2150 shift; shift
2151 # Remember, the first character of IFS is used to create $*,
2152 # except with old shells:
2153 build_os=$*
2154 IFS=$ac_save_IFS
2155 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2158 { echo "$as_me:$LINENO: checking host system type" >&5
2159 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2160 if test "${ac_cv_host+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163 if test "x$host_alias" = x; then
2164 ac_cv_host=$ac_cv_build
2165 else
2166 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2167 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2168 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2169 { (exit 1); exit 1; }; }
2173 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2174 echo "${ECHO_T}$ac_cv_host" >&6; }
2175 case $ac_cv_host in
2176 *-*-*) ;;
2177 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2178 echo "$as_me: error: invalid value of canonical host" >&2;}
2179 { (exit 1); exit 1; }; };;
2180 esac
2181 host=$ac_cv_host
2182 ac_save_IFS=$IFS; IFS='-'
2183 set x $ac_cv_host
2184 shift
2185 host_cpu=$1
2186 host_vendor=$2
2187 shift; shift
2188 # Remember, the first character of IFS is used to create $*,
2189 # except with old shells:
2190 host_os=$*
2191 IFS=$ac_save_IFS
2192 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2195 ac_ext=c
2196 ac_cpp='$CPP $CPPFLAGS'
2197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200 if test -n "$ac_tool_prefix"; then
2201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2202 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2205 if test "${ac_cv_prog_CC+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208 if test -n "$CC"; then
2209 ac_cv_prog_CC="$CC" # Let the user override the test.
2210 else
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 for as_dir in $PATH
2214 IFS=$as_save_IFS
2215 test -z "$as_dir" && as_dir=.
2216 for ac_exec_ext in '' $ac_executable_extensions; do
2217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2218 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 break 2
2222 done
2223 done
2224 IFS=$as_save_IFS
2228 CC=$ac_cv_prog_CC
2229 if test -n "$CC"; then
2230 { echo "$as_me:$LINENO: result: $CC" >&5
2231 echo "${ECHO_T}$CC" >&6; }
2232 else
2233 { echo "$as_me:$LINENO: result: no" >&5
2234 echo "${ECHO_T}no" >&6; }
2239 if test -z "$ac_cv_prog_CC"; then
2240 ac_ct_CC=$CC
2241 # Extract the first word of "gcc", so it can be a program name with args.
2242 set dummy gcc; ac_word=$2
2243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248 if test -n "$ac_ct_CC"; then
2249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2250 else
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2258 ac_cv_prog_ac_ct_CC="gcc"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 break 2
2262 done
2263 done
2264 IFS=$as_save_IFS
2268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2269 if test -n "$ac_ct_CC"; then
2270 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2271 echo "${ECHO_T}$ac_ct_CC" >&6; }
2272 else
2273 { echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6; }
2277 if test "x$ac_ct_CC" = x; then
2278 CC=""
2279 else
2280 case $cross_compiling:$ac_tool_warned in
2281 yes:)
2282 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2283 whose name does not start with the host triplet. If you think this
2284 configuration is useful to you, please write to autoconf@gnu.org." >&5
2285 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2286 whose name does not start with the host triplet. If you think this
2287 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2288 ac_tool_warned=yes ;;
2289 esac
2290 CC=$ac_ct_CC
2292 else
2293 CC="$ac_cv_prog_CC"
2296 if test -z "$CC"; then
2297 if test -n "$ac_tool_prefix"; then
2298 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2299 set dummy ${ac_tool_prefix}cc; ac_word=$2
2300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2307 else
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2315 ac_cv_prog_CC="${ac_tool_prefix}cc"
2316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 break 2
2319 done
2320 done
2321 IFS=$as_save_IFS
2325 CC=$ac_cv_prog_CC
2326 if test -n "$CC"; then
2327 { echo "$as_me:$LINENO: result: $CC" >&5
2328 echo "${ECHO_T}$CC" >&6; }
2329 else
2330 { echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6; }
2337 if test -z "$CC"; then
2338 # Extract the first word of "cc", so it can be a program name with args.
2339 set dummy cc; ac_word=$2
2340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2342 if test "${ac_cv_prog_CC+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345 if test -n "$CC"; then
2346 ac_cv_prog_CC="$CC" # Let the user override the test.
2347 else
2348 ac_prog_rejected=no
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2357 ac_prog_rejected=yes
2358 continue
2360 ac_cv_prog_CC="cc"
2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 break 2
2364 done
2365 done
2366 IFS=$as_save_IFS
2368 if test $ac_prog_rejected = yes; then
2369 # We found a bogon in the path, so make sure we never use it.
2370 set dummy $ac_cv_prog_CC
2371 shift
2372 if test $# != 0; then
2373 # We chose a different compiler from the bogus one.
2374 # However, it has the same basename, so the bogon will be chosen
2375 # first if we set CC to just the basename; use the full file name.
2376 shift
2377 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2382 CC=$ac_cv_prog_CC
2383 if test -n "$CC"; then
2384 { echo "$as_me:$LINENO: result: $CC" >&5
2385 echo "${ECHO_T}$CC" >&6; }
2386 else
2387 { echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6; }
2393 if test -z "$CC"; then
2394 if test -n "$ac_tool_prefix"; then
2395 for ac_prog in cl.exe
2397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401 if test "${ac_cv_prog_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404 if test -n "$CC"; then
2405 ac_cv_prog_CC="$CC" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 break 2
2418 done
2419 done
2420 IFS=$as_save_IFS
2424 CC=$ac_cv_prog_CC
2425 if test -n "$CC"; then
2426 { echo "$as_me:$LINENO: result: $CC" >&5
2427 echo "${ECHO_T}$CC" >&6; }
2428 else
2429 { echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6; }
2434 test -n "$CC" && break
2435 done
2437 if test -z "$CC"; then
2438 ac_ct_CC=$CC
2439 for ac_prog in cl.exe
2441 # Extract the first word of "$ac_prog", so it can be a program name with args.
2442 set dummy $ac_prog; ac_word=$2
2443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448 if test -n "$ac_ct_CC"; then
2449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458 ac_cv_prog_ac_ct_CC="$ac_prog"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2
2462 done
2463 done
2464 IFS=$as_save_IFS
2468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2469 if test -n "$ac_ct_CC"; then
2470 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2471 echo "${ECHO_T}$ac_ct_CC" >&6; }
2472 else
2473 { echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6; }
2478 test -n "$ac_ct_CC" && break
2479 done
2481 if test "x$ac_ct_CC" = x; then
2482 CC=""
2483 else
2484 case $cross_compiling:$ac_tool_warned in
2485 yes:)
2486 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2487 whose name does not start with the host triplet. If you think this
2488 configuration is useful to you, please write to autoconf@gnu.org." >&5
2489 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2490 whose name does not start with the host triplet. If you think this
2491 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2492 ac_tool_warned=yes ;;
2493 esac
2494 CC=$ac_ct_CC
2501 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: no acceptable C compiler found in \$PATH
2504 See \`config.log' for more details." >&2;}
2505 { (exit 1); exit 1; }; }
2507 # Provide some information about the compiler.
2508 echo "$as_me:$LINENO: checking for C compiler version" >&5
2509 ac_compiler=`set X $ac_compile; echo $2`
2510 { (ac_try="$ac_compiler --version >&5"
2511 case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2514 esac
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516 (eval "$ac_compiler --version >&5") 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }
2520 { (ac_try="$ac_compiler -v >&5"
2521 case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524 esac
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_compiler -v >&5") 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }
2530 { (ac_try="$ac_compiler -V >&5"
2531 case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2534 esac
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_compiler -V >&5") 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }
2541 cat >conftest.$ac_ext <<_ACEOF
2542 /* confdefs.h. */
2543 _ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2549 main ()
2553 return 0;
2555 _ACEOF
2556 ac_clean_files_save=$ac_clean_files
2557 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2558 # Try to create an executable without -o first, disregard a.out.
2559 # It will help us diagnose broken compilers, and finding out an intuition
2560 # of exeext.
2561 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2562 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2563 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2565 # List of possible output files, starting from the most likely.
2566 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2567 # only as a last resort. b.out is created by i960 compilers.
2568 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2570 # The IRIX 6 linker writes into existing files which may not be
2571 # executable, retaining their permissions. Remove them first so a
2572 # subsequent execution test works.
2573 ac_rmfiles=
2574 for ac_file in $ac_files
2576 case $ac_file in
2577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2578 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2579 esac
2580 done
2581 rm -f $ac_rmfiles
2583 if { (ac_try="$ac_link_default"
2584 case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587 esac
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_link_default") 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; then
2593 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2594 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2595 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2596 # so that the user can short-circuit this test for compilers unknown to
2597 # Autoconf.
2598 for ac_file in $ac_files ''
2600 test -f "$ac_file" || continue
2601 case $ac_file in
2602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2604 [ab].out )
2605 # We found the default executable, but exeext='' is most
2606 # certainly right.
2607 break;;
2608 *.* )
2609 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2610 then :; else
2611 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2613 # We set ac_cv_exeext here because the later test for it is not
2614 # safe: cross compilers may not add the suffix if given an `-o'
2615 # argument, so we may need to know it at that point already.
2616 # Even if this section looks crufty: it has the advantage of
2617 # actually working.
2618 break;;
2620 break;;
2621 esac
2622 done
2623 test "$ac_cv_exeext" = no && ac_cv_exeext=
2625 else
2626 ac_file=''
2629 { echo "$as_me:$LINENO: result: $ac_file" >&5
2630 echo "${ECHO_T}$ac_file" >&6; }
2631 if test -z "$ac_file"; then
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2635 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2636 See \`config.log' for more details." >&5
2637 echo "$as_me: error: C compiler cannot create executables
2638 See \`config.log' for more details." >&2;}
2639 { (exit 77); exit 77; }; }
2642 ac_exeext=$ac_cv_exeext
2644 # Check that the compiler produces executables we can run. If not, either
2645 # the compiler is broken, or we cross compile.
2646 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2647 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2648 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2649 # If not cross compiling, check that we can run a simple program.
2650 if test "$cross_compiling" != yes; then
2651 if { ac_try='./$ac_file'
2652 { (case "(($ac_try" in
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2655 esac
2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_try") 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; }; then
2661 cross_compiling=no
2662 else
2663 if test "$cross_compiling" = maybe; then
2664 cross_compiling=yes
2665 else
2666 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2667 If you meant to cross compile, use \`--host'.
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: cannot run C compiled programs.
2670 If you meant to cross compile, use \`--host'.
2671 See \`config.log' for more details." >&2;}
2672 { (exit 1); exit 1; }; }
2676 { echo "$as_me:$LINENO: result: yes" >&5
2677 echo "${ECHO_T}yes" >&6; }
2679 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2680 ac_clean_files=$ac_clean_files_save
2681 # Check that the compiler produces executables we can run. If not, either
2682 # the compiler is broken, or we cross compile.
2683 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2684 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2685 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2686 echo "${ECHO_T}$cross_compiling" >&6; }
2688 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2689 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2690 if { (ac_try="$ac_link"
2691 case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2694 esac
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_link") 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; then
2700 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2701 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2702 # work properly (i.e., refer to `conftest.exe'), while it won't with
2703 # `rm'.
2704 for ac_file in conftest.exe conftest conftest.*; do
2705 test -f "$ac_file" || continue
2706 case $ac_file in
2707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2708 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2709 break;;
2710 * ) break;;
2711 esac
2712 done
2713 else
2714 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2715 See \`config.log' for more details." >&5
2716 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2717 See \`config.log' for more details." >&2;}
2718 { (exit 1); exit 1; }; }
2721 rm -f conftest$ac_cv_exeext
2722 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2723 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2725 rm -f conftest.$ac_ext
2726 EXEEXT=$ac_cv_exeext
2727 ac_exeext=$EXEEXT
2728 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2729 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2730 if test "${ac_cv_objext+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h. */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2741 main ()
2745 return 0;
2747 _ACEOF
2748 rm -f conftest.o conftest.obj
2749 if { (ac_try="$ac_compile"
2750 case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2753 esac
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compile") 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; then
2759 for ac_file in conftest.o conftest.obj conftest.*; do
2760 test -f "$ac_file" || continue;
2761 case $ac_file in
2762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2763 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2764 break;;
2765 esac
2766 done
2767 else
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2771 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2772 See \`config.log' for more details." >&5
2773 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2774 See \`config.log' for more details." >&2;}
2775 { (exit 1); exit 1; }; }
2778 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2780 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2781 echo "${ECHO_T}$ac_cv_objext" >&6; }
2782 OBJEXT=$ac_cv_objext
2783 ac_objext=$OBJEXT
2784 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2785 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2786 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789 cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h. */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2797 main ()
2799 #ifndef __GNUC__
2800 choke me
2801 #endif
2804 return 0;
2806 _ACEOF
2807 rm -f conftest.$ac_objext
2808 if { (ac_try="$ac_compile"
2809 case "(($ac_try" in
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811 *) ac_try_echo=$ac_try;;
2812 esac
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814 (eval "$ac_compile") 2>conftest.er1
2815 ac_status=$?
2816 grep -v '^ *+' conftest.er1 >conftest.err
2817 rm -f conftest.er1
2818 cat conftest.err >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } && {
2821 test -z "$ac_c_werror_flag" ||
2822 test ! -s conftest.err
2823 } && test -s conftest.$ac_objext; then
2824 ac_compiler_gnu=yes
2825 else
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2829 ac_compiler_gnu=no
2832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2833 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2836 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2837 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2838 GCC=`test $ac_compiler_gnu = yes && echo yes`
2839 ac_test_CFLAGS=${CFLAGS+set}
2840 ac_save_CFLAGS=$CFLAGS
2841 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2842 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2843 if test "${ac_cv_prog_cc_g+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846 ac_save_c_werror_flag=$ac_c_werror_flag
2847 ac_c_werror_flag=yes
2848 ac_cv_prog_cc_g=no
2849 CFLAGS="-g"
2850 cat >conftest.$ac_ext <<_ACEOF
2851 /* confdefs.h. */
2852 _ACEOF
2853 cat confdefs.h >>conftest.$ac_ext
2854 cat >>conftest.$ac_ext <<_ACEOF
2855 /* end confdefs.h. */
2858 main ()
2862 return 0;
2864 _ACEOF
2865 rm -f conftest.$ac_objext
2866 if { (ac_try="$ac_compile"
2867 case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870 esac
2871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2872 (eval "$ac_compile") 2>conftest.er1
2873 ac_status=$?
2874 grep -v '^ *+' conftest.er1 >conftest.err
2875 rm -f conftest.er1
2876 cat conftest.err >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } && {
2879 test -z "$ac_c_werror_flag" ||
2880 test ! -s conftest.err
2881 } && test -s conftest.$ac_objext; then
2882 ac_cv_prog_cc_g=yes
2883 else
2884 echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2887 CFLAGS=""
2888 cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h. */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2896 main ()
2900 return 0;
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (ac_try="$ac_compile"
2905 case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compile") 2>conftest.er1
2911 ac_status=$?
2912 grep -v '^ *+' conftest.er1 >conftest.err
2913 rm -f conftest.er1
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } && {
2917 test -z "$ac_c_werror_flag" ||
2918 test ! -s conftest.err
2919 } && test -s conftest.$ac_objext; then
2921 else
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2925 ac_c_werror_flag=$ac_save_c_werror_flag
2926 CFLAGS="-g"
2927 cat >conftest.$ac_ext <<_ACEOF
2928 /* confdefs.h. */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2935 main ()
2939 return 0;
2941 _ACEOF
2942 rm -f conftest.$ac_objext
2943 if { (ac_try="$ac_compile"
2944 case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947 esac
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>conftest.er1
2950 ac_status=$?
2951 grep -v '^ *+' conftest.er1 >conftest.err
2952 rm -f conftest.er1
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } && {
2956 test -z "$ac_c_werror_flag" ||
2957 test ! -s conftest.err
2958 } && test -s conftest.$ac_objext; then
2959 ac_cv_prog_cc_g=yes
2960 else
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974 ac_c_werror_flag=$ac_save_c_werror_flag
2976 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2977 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2978 if test "$ac_test_CFLAGS" = set; then
2979 CFLAGS=$ac_save_CFLAGS
2980 elif test $ac_cv_prog_cc_g = yes; then
2981 if test "$GCC" = yes; then
2982 CFLAGS="-g -O2"
2983 else
2984 CFLAGS="-g"
2986 else
2987 if test "$GCC" = yes; then
2988 CFLAGS="-O2"
2989 else
2990 CFLAGS=
2993 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2994 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_cc_c89+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998 ac_cv_prog_cc_c89=no
2999 ac_save_CC=$CC
3000 cat >conftest.$ac_ext <<_ACEOF
3001 /* confdefs.h. */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3006 #include <stdarg.h>
3007 #include <stdio.h>
3008 #include <sys/types.h>
3009 #include <sys/stat.h>
3010 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3011 struct buf { int x; };
3012 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3013 static char *e (p, i)
3014 char **p;
3015 int i;
3017 return p[i];
3019 static char *f (char * (*g) (char **, int), char **p, ...)
3021 char *s;
3022 va_list v;
3023 va_start (v,p);
3024 s = g (p, va_arg (v,int));
3025 va_end (v);
3026 return s;
3029 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3030 function prototypes and stuff, but not '\xHH' hex character constants.
3031 These don't provoke an error unfortunately, instead are silently treated
3032 as 'x'. The following induces an error, until -std is added to get
3033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3034 array size at least. It's necessary to write '\x00'==0 to get something
3035 that's true only with -std. */
3036 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3038 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3039 inside strings and character constants. */
3040 #define FOO(x) 'x'
3041 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3043 int test (int i, double x);
3044 struct s1 {int (*f) (int a);};
3045 struct s2 {int (*f) (double a);};
3046 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3047 int argc;
3048 char **argv;
3050 main ()
3052 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3054 return 0;
3056 _ACEOF
3057 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3060 CC="$ac_save_CC $ac_arg"
3061 rm -f conftest.$ac_objext
3062 if { (ac_try="$ac_compile"
3063 case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>conftest.er1
3069 ac_status=$?
3070 grep -v '^ *+' conftest.er1 >conftest.err
3071 rm -f conftest.er1
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } && {
3075 test -z "$ac_c_werror_flag" ||
3076 test ! -s conftest.err
3077 } && test -s conftest.$ac_objext; then
3078 ac_cv_prog_cc_c89=$ac_arg
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3086 rm -f core conftest.err conftest.$ac_objext
3087 test "x$ac_cv_prog_cc_c89" != "xno" && break
3088 done
3089 rm -f conftest.$ac_ext
3090 CC=$ac_save_CC
3093 # AC_CACHE_VAL
3094 case "x$ac_cv_prog_cc_c89" in
3096 { echo "$as_me:$LINENO: result: none needed" >&5
3097 echo "${ECHO_T}none needed" >&6; } ;;
3098 xno)
3099 { echo "$as_me:$LINENO: result: unsupported" >&5
3100 echo "${ECHO_T}unsupported" >&6; } ;;
3102 CC="$CC $ac_cv_prog_cc_c89"
3103 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3104 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3105 esac
3108 ac_ext=c
3109 ac_cpp='$CPP $CPPFLAGS'
3110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115 ac_ext=c
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3121 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3122 # On Suns, sometimes $CPP names a directory.
3123 if test -n "$CPP" && test -d "$CPP"; then
3124 CPP=
3126 if test -z "$CPP"; then
3127 if test "${ac_cv_prog_CPP+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 # Double quotes because CPP needs to be expanded
3131 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3133 ac_preproc_ok=false
3134 for ac_c_preproc_warn_flag in '' yes
3136 # Use a header file that comes with gcc, so configuring glibc
3137 # with a fresh cross-compiler works.
3138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3139 # <limits.h> exists even on freestanding compilers.
3140 # On the NeXT, cc -E runs the code through the compiler's parser,
3141 # not just through cpp. "Syntax error" is here to catch this case.
3142 cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h. */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3148 #ifdef __STDC__
3149 # include <limits.h>
3150 #else
3151 # include <assert.h>
3152 #endif
3153 Syntax error
3154 _ACEOF
3155 if { (ac_try="$ac_cpp conftest.$ac_ext"
3156 case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3162 ac_status=$?
3163 grep -v '^ *+' conftest.er1 >conftest.err
3164 rm -f conftest.er1
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } >/dev/null && {
3168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3169 test ! -s conftest.err
3170 }; then
3172 else
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 # Broken: fails on valid input.
3177 continue
3180 rm -f conftest.err conftest.$ac_ext
3182 # OK, works on sane cases. Now check whether nonexistent headers
3183 # can be detected and how.
3184 cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h. */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3190 #include <ac_nonexistent.h>
3191 _ACEOF
3192 if { (ac_try="$ac_cpp conftest.$ac_ext"
3193 case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3199 ac_status=$?
3200 grep -v '^ *+' conftest.er1 >conftest.err
3201 rm -f conftest.er1
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } >/dev/null && {
3205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3206 test ! -s conftest.err
3207 }; then
3208 # Broken: success on invalid input.
3209 continue
3210 else
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3214 # Passes both tests.
3215 ac_preproc_ok=:
3216 break
3219 rm -f conftest.err conftest.$ac_ext
3221 done
3222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3223 rm -f conftest.err conftest.$ac_ext
3224 if $ac_preproc_ok; then
3225 break
3228 done
3229 ac_cv_prog_CPP=$CPP
3232 CPP=$ac_cv_prog_CPP
3233 else
3234 ac_cv_prog_CPP=$CPP
3236 { echo "$as_me:$LINENO: result: $CPP" >&5
3237 echo "${ECHO_T}$CPP" >&6; }
3238 ac_preproc_ok=false
3239 for ac_c_preproc_warn_flag in '' yes
3241 # Use a header file that comes with gcc, so configuring glibc
3242 # with a fresh cross-compiler works.
3243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3244 # <limits.h> exists even on freestanding compilers.
3245 # On the NeXT, cc -E runs the code through the compiler's parser,
3246 # not just through cpp. "Syntax error" is here to catch this case.
3247 cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h. */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3253 #ifdef __STDC__
3254 # include <limits.h>
3255 #else
3256 # include <assert.h>
3257 #endif
3258 Syntax error
3259 _ACEOF
3260 if { (ac_try="$ac_cpp conftest.$ac_ext"
3261 case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3267 ac_status=$?
3268 grep -v '^ *+' conftest.er1 >conftest.err
3269 rm -f conftest.er1
3270 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } >/dev/null && {
3273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3274 test ! -s conftest.err
3275 }; then
3277 else
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 # Broken: fails on valid input.
3282 continue
3285 rm -f conftest.err conftest.$ac_ext
3287 # OK, works on sane cases. Now check whether nonexistent headers
3288 # can be detected and how.
3289 cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h. */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 #include <ac_nonexistent.h>
3296 _ACEOF
3297 if { (ac_try="$ac_cpp conftest.$ac_ext"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3304 ac_status=$?
3305 grep -v '^ *+' conftest.er1 >conftest.err
3306 rm -f conftest.er1
3307 cat conftest.err >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } >/dev/null && {
3310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3311 test ! -s conftest.err
3312 }; then
3313 # Broken: success on invalid input.
3314 continue
3315 else
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 # Passes both tests.
3320 ac_preproc_ok=:
3321 break
3324 rm -f conftest.err conftest.$ac_ext
3326 done
3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328 rm -f conftest.err conftest.$ac_ext
3329 if $ac_preproc_ok; then
3331 else
3332 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3333 See \`config.log' for more details." >&5
3334 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3335 See \`config.log' for more details." >&2;}
3336 { (exit 1); exit 1; }; }
3339 ac_ext=c
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3346 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3347 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3348 if test "${ac_cv_path_GREP+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 # Extract the first word of "grep ggrep" to use in msg output
3352 if test -z "$GREP"; then
3353 set dummy grep ggrep; ac_prog_name=$2
3354 if test "${ac_cv_path_GREP+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357 ac_path_GREP_found=false
3358 # Loop through the user's path and test for each of PROGNAME-LIST
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3362 IFS=$as_save_IFS
3363 test -z "$as_dir" && as_dir=.
3364 for ac_prog in grep ggrep; do
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3367 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3368 # Check for GNU ac_path_GREP and select it if it is found.
3369 # Check for GNU $ac_path_GREP
3370 case `"$ac_path_GREP" --version 2>&1` in
3371 *GNU*)
3372 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3374 ac_count=0
3375 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3376 while :
3378 cat "conftest.in" "conftest.in" >"conftest.tmp"
3379 mv "conftest.tmp" "conftest.in"
3380 cp "conftest.in" "conftest.nl"
3381 echo 'GREP' >> "conftest.nl"
3382 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3384 ac_count=`expr $ac_count + 1`
3385 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3386 # Best one so far, save it but keep looking for a better one
3387 ac_cv_path_GREP="$ac_path_GREP"
3388 ac_path_GREP_max=$ac_count
3390 # 10*(2^10) chars as input seems more than enough
3391 test $ac_count -gt 10 && break
3392 done
3393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3394 esac
3397 $ac_path_GREP_found && break 3
3398 done
3399 done
3401 done
3402 IFS=$as_save_IFS
3407 GREP="$ac_cv_path_GREP"
3408 if test -z "$GREP"; then
3409 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3410 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3411 { (exit 1); exit 1; }; }
3414 else
3415 ac_cv_path_GREP=$GREP
3420 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3421 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3422 GREP="$ac_cv_path_GREP"
3425 { echo "$as_me:$LINENO: checking for egrep" >&5
3426 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3427 if test "${ac_cv_path_EGREP+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3431 then ac_cv_path_EGREP="$GREP -E"
3432 else
3433 # Extract the first word of "egrep" to use in msg output
3434 if test -z "$EGREP"; then
3435 set dummy egrep; ac_prog_name=$2
3436 if test "${ac_cv_path_EGREP+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 ac_path_EGREP_found=false
3440 # Loop through the user's path and test for each of PROGNAME-LIST
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_prog in egrep; do
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3449 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3450 # Check for GNU ac_path_EGREP and select it if it is found.
3451 # Check for GNU $ac_path_EGREP
3452 case `"$ac_path_EGREP" --version 2>&1` in
3453 *GNU*)
3454 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3456 ac_count=0
3457 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3458 while :
3460 cat "conftest.in" "conftest.in" >"conftest.tmp"
3461 mv "conftest.tmp" "conftest.in"
3462 cp "conftest.in" "conftest.nl"
3463 echo 'EGREP' >> "conftest.nl"
3464 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3466 ac_count=`expr $ac_count + 1`
3467 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3468 # Best one so far, save it but keep looking for a better one
3469 ac_cv_path_EGREP="$ac_path_EGREP"
3470 ac_path_EGREP_max=$ac_count
3472 # 10*(2^10) chars as input seems more than enough
3473 test $ac_count -gt 10 && break
3474 done
3475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3476 esac
3479 $ac_path_EGREP_found && break 3
3480 done
3481 done
3483 done
3484 IFS=$as_save_IFS
3489 EGREP="$ac_cv_path_EGREP"
3490 if test -z "$EGREP"; then
3491 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3492 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3493 { (exit 1); exit 1; }; }
3496 else
3497 ac_cv_path_EGREP=$EGREP
3503 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3504 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3505 EGREP="$ac_cv_path_EGREP"
3508 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3509 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3510 if test "${ac_cv_header_stdc+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513 cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h. */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3519 #include <stdlib.h>
3520 #include <stdarg.h>
3521 #include <string.h>
3522 #include <float.h>
3525 main ()
3529 return 0;
3531 _ACEOF
3532 rm -f conftest.$ac_objext
3533 if { (ac_try="$ac_compile"
3534 case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537 esac
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_compile") 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } && {
3546 test -z "$ac_c_werror_flag" ||
3547 test ! -s conftest.err
3548 } && test -s conftest.$ac_objext; then
3549 ac_cv_header_stdc=yes
3550 else
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3554 ac_cv_header_stdc=no
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 if test $ac_cv_header_stdc = yes; then
3560 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3561 cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h. */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3567 #include <string.h>
3569 _ACEOF
3570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3571 $EGREP "memchr" >/dev/null 2>&1; then
3573 else
3574 ac_cv_header_stdc=no
3576 rm -f conftest*
3580 if test $ac_cv_header_stdc = yes; then
3581 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3582 cat >conftest.$ac_ext <<_ACEOF
3583 /* confdefs.h. */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3588 #include <stdlib.h>
3590 _ACEOF
3591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3592 $EGREP "free" >/dev/null 2>&1; then
3594 else
3595 ac_cv_header_stdc=no
3597 rm -f conftest*
3601 if test $ac_cv_header_stdc = yes; then
3602 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3603 if test "$cross_compiling" = yes; then
3605 else
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612 #include <ctype.h>
3613 #include <stdlib.h>
3614 #if ((' ' & 0x0FF) == 0x020)
3615 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3616 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3617 #else
3618 # define ISLOWER(c) \
3619 (('a' <= (c) && (c) <= 'i') \
3620 || ('j' <= (c) && (c) <= 'r') \
3621 || ('s' <= (c) && (c) <= 'z'))
3622 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3623 #endif
3625 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3627 main ()
3629 int i;
3630 for (i = 0; i < 256; i++)
3631 if (XOR (islower (i), ISLOWER (i))
3632 || toupper (i) != TOUPPER (i))
3633 return 2;
3634 return 0;
3636 _ACEOF
3637 rm -f conftest$ac_exeext
3638 if { (ac_try="$ac_link"
3639 case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642 esac
3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_link") 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3648 { (case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651 esac
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653 (eval "$ac_try") 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3658 else
3659 echo "$as_me: program exited with status $ac_status" >&5
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3663 ( exit $ac_status )
3664 ac_cv_header_stdc=no
3666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3672 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3673 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3674 if test $ac_cv_header_stdc = yes; then
3676 cat >>confdefs.h <<\_ACEOF
3677 #define STDC_HEADERS 1
3678 _ACEOF
3682 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3692 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3693 inttypes.h stdint.h unistd.h
3695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 cat >conftest.$ac_ext <<_ACEOF
3702 /* confdefs.h. */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3707 $ac_includes_default
3709 #include <$ac_header>
3710 _ACEOF
3711 rm -f conftest.$ac_objext
3712 if { (ac_try="$ac_compile"
3713 case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_compile") 2>conftest.er1
3719 ac_status=$?
3720 grep -v '^ *+' conftest.er1 >conftest.err
3721 rm -f conftest.er1
3722 cat conftest.err >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } && {
3725 test -z "$ac_c_werror_flag" ||
3726 test ! -s conftest.err
3727 } && test -s conftest.$ac_objext; then
3728 eval "$as_ac_Header=yes"
3729 else
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 eval "$as_ac_Header=no"
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 ac_res=`eval echo '${'$as_ac_Header'}'`
3739 { echo "$as_me:$LINENO: result: $ac_res" >&5
3740 echo "${ECHO_T}$ac_res" >&6; }
3741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3742 cat >>confdefs.h <<_ACEOF
3743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3744 _ACEOF
3748 done
3751 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3752 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3753 if test "${ac_cv_c_bigendian+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756 # See if sys/param.h defines the BYTE_ORDER macro.
3757 cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h. */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3763 #include <sys/types.h>
3764 #include <sys/param.h>
3767 main ()
3769 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3770 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3771 bogus endian macros
3772 #endif
3775 return 0;
3777 _ACEOF
3778 rm -f conftest.$ac_objext
3779 if { (ac_try="$ac_compile"
3780 case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783 esac
3784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3785 (eval "$ac_compile") 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } && {
3792 test -z "$ac_c_werror_flag" ||
3793 test ! -s conftest.err
3794 } && test -s conftest.$ac_objext; then
3795 # It does; now see whether it defined to BIG_ENDIAN or not.
3796 cat >conftest.$ac_ext <<_ACEOF
3797 /* confdefs.h. */
3798 _ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3802 #include <sys/types.h>
3803 #include <sys/param.h>
3806 main ()
3808 #if BYTE_ORDER != BIG_ENDIAN
3809 not big endian
3810 #endif
3813 return 0;
3815 _ACEOF
3816 rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3818 case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821 esac
3822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823 (eval "$ac_compile") 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } && {
3830 test -z "$ac_c_werror_flag" ||
3831 test ! -s conftest.err
3832 } && test -s conftest.$ac_objext; then
3833 ac_cv_c_bigendian=yes
3834 else
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 ac_cv_c_bigendian=no
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 else
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3846 # It does not; compile a test program.
3847 if test "$cross_compiling" = yes; then
3848 # try to guess the endianness by grepping values into an object file
3849 ac_cv_c_bigendian=unknown
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3857 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3858 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3859 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3860 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3861 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3863 main ()
3865 _ascii (); _ebcdic ();
3867 return 0;
3869 _ACEOF
3870 rm -f conftest.$ac_objext
3871 if { (ac_try="$ac_compile"
3872 case "(($ac_try" in
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3875 esac
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_compile") 2>conftest.er1
3878 ac_status=$?
3879 grep -v '^ *+' conftest.er1 >conftest.err
3880 rm -f conftest.er1
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } && {
3884 test -z "$ac_c_werror_flag" ||
3885 test ! -s conftest.err
3886 } && test -s conftest.$ac_objext; then
3887 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3888 ac_cv_c_bigendian=yes
3890 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3891 if test "$ac_cv_c_bigendian" = unknown; then
3892 ac_cv_c_bigendian=no
3893 else
3894 # finding both strings is unlikely to happen, but who knows?
3895 ac_cv_c_bigendian=unknown
3898 else
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 else
3907 cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h. */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3913 $ac_includes_default
3915 main ()
3918 /* Are we little or big endian? From Harbison&Steele. */
3919 union
3921 long int l;
3922 char c[sizeof (long int)];
3923 } u;
3924 u.l = 1;
3925 return u.c[sizeof (long int) - 1] == 1;
3928 return 0;
3930 _ACEOF
3931 rm -f conftest$ac_exeext
3932 if { (ac_try="$ac_link"
3933 case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3936 esac
3937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3938 (eval "$ac_link") 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3942 { (case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945 esac
3946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_try") 2>&5
3948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 ac_cv_c_bigendian=no
3952 else
3953 echo "$as_me: program exited with status $ac_status" >&5
3954 echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3957 ( exit $ac_status )
3958 ac_cv_c_bigendian=yes
3960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3969 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3970 case $ac_cv_c_bigendian in
3971 yes)
3973 cat >>confdefs.h <<\_ACEOF
3974 #define WORDS_BIGENDIAN 1
3975 _ACEOF
3980 { { echo "$as_me:$LINENO: error: unknown endianness
3981 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3982 echo "$as_me: error: unknown endianness
3983 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3984 { (exit 1); exit 1; }; } ;;
3985 esac
3987 if test x$ac_cv_c_bigendian = xyes; then
3988 cat >>confdefs.h <<\_ACEOF
3989 #define SDL_BYTEORDER 4321
3990 _ACEOF
3992 else
3993 cat >>confdefs.h <<\_ACEOF
3994 #define SDL_BYTEORDER 1234
3995 _ACEOF
3999 INCLUDE="-I$srcdir/include"
4000 if test x$srcdir != x.; then
4001 # Remove SDL_config.h from the source directory, since it's the
4002 # default one, and we want to include the one that we generate.
4003 if test -f $srcdir/include/SDL_config.h; then
4004 rm $srcdir/include/SDL_config.h
4006 INCLUDE="-Iinclude $INCLUDE"
4008 case "$host" in
4009 *-*-cygwin*)
4010 # We build SDL on cygwin without the UNIX emulation layer
4011 BASE_CFLAGS="-I/usr/include/mingw -mno-cygwin"
4012 BASE_LDFLAGS="-mno-cygwin"
4015 BASE_CFLAGS="-D_GNU_SOURCE=1"
4016 BASE_LDFLAGS=""
4018 esac
4019 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
4020 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
4021 BUILD_LDFLAGS="$LDFLAGS"
4022 EXTRA_LDFLAGS="$BASE_LDFLAGS"
4023 ## These are common directories to find software packages
4024 #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
4025 # if test -d $path/include; then
4026 # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
4027 # fi
4028 # if test -d $path/lib; then
4029 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
4030 # fi
4031 #done
4032 SDL_CFLAGS="$BASE_CFLAGS"
4033 SDL_LIBS="-lSDL $BASE_LDFLAGS"
4034 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
4035 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
4036 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
4040 # Check whether --enable-shared was given.
4041 if test "${enable_shared+set}" = set; then
4042 enableval=$enable_shared; p=${PACKAGE-default}
4043 case $enableval in
4044 yes) enable_shared=yes ;;
4045 no) enable_shared=no ;;
4047 enable_shared=no
4048 # Look at the argument we got. We use all the common list separators.
4049 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4050 for pkg in $enableval; do
4051 IFS="$lt_save_ifs"
4052 if test "X$pkg" = "X$p"; then
4053 enable_shared=yes
4055 done
4056 IFS="$lt_save_ifs"
4058 esac
4059 else
4060 enable_shared=yes
4064 # Check whether --enable-static was given.
4065 if test "${enable_static+set}" = set; then
4066 enableval=$enable_static; p=${PACKAGE-default}
4067 case $enableval in
4068 yes) enable_static=yes ;;
4069 no) enable_static=no ;;
4071 enable_static=no
4072 # Look at the argument we got. We use all the common list separators.
4073 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4074 for pkg in $enableval; do
4075 IFS="$lt_save_ifs"
4076 if test "X$pkg" = "X$p"; then
4077 enable_static=yes
4079 done
4080 IFS="$lt_save_ifs"
4082 esac
4083 else
4084 enable_static=yes
4088 # Check whether --enable-fast-install was given.
4089 if test "${enable_fast_install+set}" = set; then
4090 enableval=$enable_fast_install; p=${PACKAGE-default}
4091 case $enableval in
4092 yes) enable_fast_install=yes ;;
4093 no) enable_fast_install=no ;;
4095 enable_fast_install=no
4096 # Look at the argument we got. We use all the common list separators.
4097 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4098 for pkg in $enableval; do
4099 IFS="$lt_save_ifs"
4100 if test "X$pkg" = "X$p"; then
4101 enable_fast_install=yes
4103 done
4104 IFS="$lt_save_ifs"
4106 esac
4107 else
4108 enable_fast_install=yes
4112 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4113 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4114 if test "${lt_cv_path_SED+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117 # Loop through the user's path and test for sed and gsed.
4118 # Then use that list of sed's as ones to test for truncation.
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for lt_ac_prog in sed gsed; do
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4127 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4129 done
4130 done
4131 done
4132 lt_ac_max=0
4133 lt_ac_count=0
4134 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4135 # along with /bin/sed that truncates output.
4136 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4137 test ! -f $lt_ac_sed && continue
4138 cat /dev/null > conftest.in
4139 lt_ac_count=0
4140 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4141 # Check for GNU sed and select it if it is found.
4142 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4143 lt_cv_path_SED=$lt_ac_sed
4144 break
4146 while true; do
4147 cat conftest.in conftest.in >conftest.tmp
4148 mv conftest.tmp conftest.in
4149 cp conftest.in conftest.nl
4150 echo >>conftest.nl
4151 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4152 cmp -s conftest.out conftest.nl || break
4153 # 10000 chars as input seems more than enough
4154 test $lt_ac_count -gt 10 && break
4155 lt_ac_count=`expr $lt_ac_count + 1`
4156 if test $lt_ac_count -gt $lt_ac_max; then
4157 lt_ac_max=$lt_ac_count
4158 lt_cv_path_SED=$lt_ac_sed
4160 done
4161 done
4165 SED=$lt_cv_path_SED
4166 { echo "$as_me:$LINENO: result: $SED" >&5
4167 echo "${ECHO_T}$SED" >&6; }
4170 # Check whether --with-gnu-ld was given.
4171 if test "${with_gnu_ld+set}" = set; then
4172 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4173 else
4174 with_gnu_ld=no
4177 ac_prog=ld
4178 if test "$GCC" = yes; then
4179 # Check if gcc -print-prog-name=ld gives a path.
4180 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4181 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4182 case $host in
4183 *-*-mingw*)
4184 # gcc leaves a trailing carriage return which upsets mingw
4185 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4187 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4188 esac
4189 case $ac_prog in
4190 # Accept absolute paths.
4191 [\\/]* | ?:[\\/]*)
4192 re_direlt='/[^/][^/]*/\.\./'
4193 # Canonicalize the pathname of ld
4194 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4195 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4196 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4197 done
4198 test -z "$LD" && LD="$ac_prog"
4201 # If it fails, then pretend we aren't using GCC.
4202 ac_prog=ld
4205 # If it is relative, then search for the first ld in PATH.
4206 with_gnu_ld=unknown
4208 esac
4209 elif test "$with_gnu_ld" = yes; then
4210 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4211 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4212 else
4213 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4214 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4216 if test "${lt_cv_path_LD+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219 if test -z "$LD"; then
4220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4221 for ac_dir in $PATH; do
4222 IFS="$lt_save_ifs"
4223 test -z "$ac_dir" && ac_dir=.
4224 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4225 lt_cv_path_LD="$ac_dir/$ac_prog"
4226 # Check to see if the program is GNU ld. I'd rather use --version,
4227 # but apparently some variants of GNU ld only accept -v.
4228 # Break only if it was the GNU/non-GNU ld that we prefer.
4229 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4230 *GNU* | *'with BFD'*)
4231 test "$with_gnu_ld" != no && break
4234 test "$with_gnu_ld" != yes && break
4236 esac
4238 done
4239 IFS="$lt_save_ifs"
4240 else
4241 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4245 LD="$lt_cv_path_LD"
4246 if test -n "$LD"; then
4247 { echo "$as_me:$LINENO: result: $LD" >&5
4248 echo "${ECHO_T}$LD" >&6; }
4249 else
4250 { echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6; }
4253 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4254 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4255 { (exit 1); exit 1; }; }
4256 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4257 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4258 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 else
4261 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4262 case `$LD -v 2>&1 </dev/null` in
4263 *GNU* | *'with BFD'*)
4264 lt_cv_prog_gnu_ld=yes
4267 lt_cv_prog_gnu_ld=no
4269 esac
4271 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4272 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4273 with_gnu_ld=$lt_cv_prog_gnu_ld
4276 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4277 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4278 if test "${lt_cv_ld_reload_flag+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281 lt_cv_ld_reload_flag='-r'
4283 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4284 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4285 reload_flag=$lt_cv_ld_reload_flag
4286 case $reload_flag in
4287 "" | " "*) ;;
4288 *) reload_flag=" $reload_flag" ;;
4289 esac
4290 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4291 case $host_os in
4292 darwin*)
4293 if test "$GCC" = yes; then
4294 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4295 else
4296 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4299 esac
4301 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4302 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4303 if test "${lt_cv_path_NM+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306 if test -n "$NM"; then
4307 # Let the user override the test.
4308 lt_cv_path_NM="$NM"
4309 else
4310 lt_nm_to_check="${ac_tool_prefix}nm"
4311 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4312 lt_nm_to_check="$lt_nm_to_check nm"
4314 for lt_tmp_nm in $lt_nm_to_check; do
4315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4316 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4317 IFS="$lt_save_ifs"
4318 test -z "$ac_dir" && ac_dir=.
4319 tmp_nm="$ac_dir/$lt_tmp_nm"
4320 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4321 # Check to see if the nm accepts a BSD-compat flag.
4322 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4323 # nm: unknown option "B" ignored
4324 # Tru64's nm complains that /dev/null is an invalid object file
4325 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4326 */dev/null* | *'Invalid file or object type'*)
4327 lt_cv_path_NM="$tmp_nm -B"
4328 break
4331 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4332 */dev/null*)
4333 lt_cv_path_NM="$tmp_nm -p"
4334 break
4337 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4338 continue # so that we can try to find one that supports BSD flags
4340 esac
4342 esac
4344 done
4345 IFS="$lt_save_ifs"
4346 done
4347 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4350 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4351 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4352 NM="$lt_cv_path_NM"
4354 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4355 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4356 LN_S=$as_ln_s
4357 if test "$LN_S" = "ln -s"; then
4358 { echo "$as_me:$LINENO: result: yes" >&5
4359 echo "${ECHO_T}yes" >&6; }
4360 else
4361 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4362 echo "${ECHO_T}no, using $LN_S" >&6; }
4365 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4366 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4367 if test "${lt_cv_deplibs_check_method+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370 lt_cv_file_magic_cmd='$MAGIC_CMD'
4371 lt_cv_file_magic_test_file=
4372 lt_cv_deplibs_check_method='unknown'
4373 # Need to set the preceding variable on all platforms that support
4374 # interlibrary dependencies.
4375 # 'none' -- dependencies not supported.
4376 # `unknown' -- same as none, but documents that we really don't know.
4377 # 'pass_all' -- all dependencies passed with no checks.
4378 # 'test_compile' -- check by making test program.
4379 # 'file_magic [[regex]]' -- check by looking for files in library path
4380 # which responds to the $file_magic_cmd with a given extended regex.
4381 # If you have `file' or equivalent on your system and you're not sure
4382 # whether `pass_all' will *always* work, you probably want this one.
4384 case $host_os in
4385 aix4* | aix5*)
4386 lt_cv_deplibs_check_method=pass_all
4389 beos*)
4390 lt_cv_deplibs_check_method=pass_all
4393 bsdi[45]*)
4394 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4395 lt_cv_file_magic_cmd='/usr/bin/file -L'
4396 lt_cv_file_magic_test_file=/shlib/libc.so
4399 cygwin*)
4400 # func_win32_libid is a shell function defined in ltmain.sh
4401 #lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4402 lt_cv_deplibs_check_method=pass_all
4403 lt_cv_file_magic_cmd='func_win32_libid'
4406 mingw* | pw32*)
4407 # Base MSYS/MinGW do not provide the 'file' command needed by
4408 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4409 #lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4410 lt_cv_deplibs_check_method=pass_all
4411 lt_cv_file_magic_cmd='$OBJDUMP -f'
4414 darwin* | rhapsody*)
4415 lt_cv_deplibs_check_method=pass_all
4418 freebsd* | kfreebsd*-gnu | dragonfly*)
4419 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4420 case $host_cpu in
4421 i*86 )
4422 # Not sure whether the presence of OpenBSD here was a mistake.
4423 # Let's accept both of them until this is cleared up.
4424 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4425 lt_cv_file_magic_cmd=/usr/bin/file
4426 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4428 esac
4429 else
4430 lt_cv_deplibs_check_method=pass_all
4434 gnu*)
4435 lt_cv_deplibs_check_method=pass_all
4438 hpux10.20* | hpux11*)
4439 lt_cv_file_magic_cmd=/usr/bin/file
4440 case $host_cpu in
4441 ia64*)
4442 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4443 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4445 hppa*64*)
4446 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]'
4447 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4450 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4451 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4453 esac
4456 interix3*)
4457 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4461 irix5* | irix6* | nonstopux*)
4462 case $LD in
4463 *-32|*"-32 ") libmagic=32-bit;;
4464 *-n32|*"-n32 ") libmagic=N32;;
4465 *-64|*"-64 ") libmagic=64-bit;;
4466 *) libmagic=never-match;;
4467 esac
4468 lt_cv_deplibs_check_method=pass_all
4471 # This must be Linux ELF.
4472 linux*)
4473 lt_cv_deplibs_check_method=pass_all
4476 netbsd*)
4477 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4479 else
4480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4484 newos6*)
4485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4486 lt_cv_file_magic_cmd=/usr/bin/file
4487 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4490 nto-qnx*)
4491 lt_cv_deplibs_check_method=unknown
4494 openbsd*)
4495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4497 else
4498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4502 osf3* | osf4* | osf5*)
4503 lt_cv_deplibs_check_method=pass_all
4506 solaris*)
4507 lt_cv_deplibs_check_method=pass_all
4510 sysv4 | sysv4.3*)
4511 case $host_vendor in
4512 motorola)
4513 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]'
4514 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4516 ncr)
4517 lt_cv_deplibs_check_method=pass_all
4519 sequent)
4520 lt_cv_file_magic_cmd='/bin/file'
4521 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4523 sni)
4524 lt_cv_file_magic_cmd='/bin/file'
4525 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4526 lt_cv_file_magic_test_file=/lib/libc.so
4528 siemens)
4529 lt_cv_deplibs_check_method=pass_all
4532 lt_cv_deplibs_check_method=pass_all
4534 esac
4537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4538 lt_cv_deplibs_check_method=pass_all
4540 esac
4543 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4544 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4545 file_magic_cmd=$lt_cv_file_magic_cmd
4546 deplibs_check_method=$lt_cv_deplibs_check_method
4547 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4552 # If no C compiler was specified, use CC.
4553 LTCC=${LTCC-"$CC"}
4555 # If no C compiler flags were specified, use CFLAGS.
4556 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4558 # Allow CC to be a program name with arguments.
4559 compiler=$CC
4561 # Check whether --enable-libtool-lock was given.
4562 if test "${enable_libtool_lock+set}" = set; then
4563 enableval=$enable_libtool_lock;
4566 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4568 # Some flags need to be propagated to the compiler or linker for good
4569 # libtool support.
4570 case $host in
4571 ia64-*-hpux*)
4572 # Find out which ABI we are using.
4573 echo 'int i;' > conftest.$ac_ext
4574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4575 (eval $ac_compile) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; then
4579 case `/usr/bin/file conftest.$ac_objext` in
4580 *ELF-32*)
4581 HPUX_IA64_MODE="32"
4583 *ELF-64*)
4584 HPUX_IA64_MODE="64"
4586 esac
4588 rm -rf conftest*
4590 *-*-irix6*)
4591 # Find out which ABI we are using.
4592 echo '#line 4592 "configure"' > conftest.$ac_ext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; then
4598 if test "$lt_cv_prog_gnu_ld" = yes; then
4599 case `/usr/bin/file conftest.$ac_objext` in
4600 *32-bit*)
4601 LD="${LD-ld} -melf32bsmip"
4603 *N32*)
4604 LD="${LD-ld} -melf32bmipn32"
4606 *64-bit*)
4607 LD="${LD-ld} -melf64bmip"
4609 esac
4610 else
4611 case `/usr/bin/file conftest.$ac_objext` in
4612 *32-bit*)
4613 LD="${LD-ld} -32"
4615 *N32*)
4616 LD="${LD-ld} -n32"
4618 *64-bit*)
4619 LD="${LD-ld} -64"
4621 esac
4624 rm -rf conftest*
4627 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4628 # Find out which ABI we are using.
4629 echo 'int i;' > conftest.$ac_ext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631 (eval $ac_compile) 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; then
4635 case `/usr/bin/file conftest.o` in
4636 *32-bit*)
4637 case $host in
4638 x86_64-*linux*)
4639 LD="${LD-ld} -m elf_i386"
4641 ppc64-*linux*|powerpc64-*linux*)
4642 LD="${LD-ld} -m elf32ppclinux"
4644 s390x-*linux*)
4645 LD="${LD-ld} -m elf_s390"
4647 sparc64-*linux*)
4648 LD="${LD-ld} -m elf32_sparc"
4650 esac
4652 *64-bit*)
4653 case $host in
4654 x86_64-*linux*)
4655 LD="${LD-ld} -m elf_x86_64"
4657 ppc*-*linux*|powerpc*-*linux*)
4658 LD="${LD-ld} -m elf64ppc"
4660 s390*-*linux*)
4661 LD="${LD-ld} -m elf64_s390"
4663 sparc*-*linux*)
4664 LD="${LD-ld} -m elf64_sparc"
4666 esac
4668 esac
4670 rm -rf conftest*
4673 *-*-sco3.2v5*)
4674 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4675 SAVE_CFLAGS="$CFLAGS"
4676 CFLAGS="$CFLAGS -belf"
4677 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4678 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4679 if test "${lt_cv_cc_needs_belf+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682 ac_ext=c
4683 ac_cpp='$CPP $CPPFLAGS'
4684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688 cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h. */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4696 main ()
4700 return 0;
4702 _ACEOF
4703 rm -f conftest.$ac_objext conftest$ac_exeext
4704 if { (ac_try="$ac_link"
4705 case "(($ac_try" in
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4708 esac
4709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710 (eval "$ac_link") 2>conftest.er1
4711 ac_status=$?
4712 grep -v '^ *+' conftest.er1 >conftest.err
4713 rm -f conftest.er1
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } && {
4717 test -z "$ac_c_werror_flag" ||
4718 test ! -s conftest.err
4719 } && test -s conftest$ac_exeext &&
4720 $as_test_x conftest$ac_exeext; then
4721 lt_cv_cc_needs_belf=yes
4722 else
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4726 lt_cv_cc_needs_belf=no
4729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4730 conftest$ac_exeext conftest.$ac_ext
4731 ac_ext=c
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4738 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4739 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4740 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4741 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4742 CFLAGS="$SAVE_CFLAGS"
4745 sparc*-*solaris*)
4746 # Find out which ABI we are using.
4747 echo 'int i;' > conftest.$ac_ext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749 (eval $ac_compile) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; then
4753 case `/usr/bin/file conftest.o` in
4754 *64-bit*)
4755 case $lt_cv_prog_gnu_ld in
4756 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4757 *) LD="${LD-ld} -64" ;;
4758 esac
4760 esac
4762 rm -rf conftest*
4765 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4766 if test -n "$ac_tool_prefix"; then
4767 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4768 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4771 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774 if test -n "$DLLTOOL"; then
4775 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4788 done
4789 done
4790 IFS=$as_save_IFS
4794 DLLTOOL=$ac_cv_prog_DLLTOOL
4795 if test -n "$DLLTOOL"; then
4796 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4797 echo "${ECHO_T}$DLLTOOL" >&6; }
4798 else
4799 { echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6; }
4805 if test -z "$ac_cv_prog_DLLTOOL"; then
4806 ac_ct_DLLTOOL=$DLLTOOL
4807 # Extract the first word of "dlltool", so it can be a program name with args.
4808 set dummy dlltool; ac_word=$2
4809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814 if test -n "$ac_ct_DLLTOOL"; then
4815 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4828 done
4829 done
4830 IFS=$as_save_IFS
4834 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4835 if test -n "$ac_ct_DLLTOOL"; then
4836 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4837 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4838 else
4839 { echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6; }
4843 if test "x$ac_ct_DLLTOOL" = x; then
4844 DLLTOOL="false"
4845 else
4846 case $cross_compiling:$ac_tool_warned in
4847 yes:)
4848 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4849 whose name does not start with the host triplet. If you think this
4850 configuration is useful to you, please write to autoconf@gnu.org." >&5
4851 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4852 whose name does not start with the host triplet. If you think this
4853 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4854 ac_tool_warned=yes ;;
4855 esac
4856 DLLTOOL=$ac_ct_DLLTOOL
4858 else
4859 DLLTOOL="$ac_cv_prog_DLLTOOL"
4862 if test -n "$ac_tool_prefix"; then
4863 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4864 set dummy ${ac_tool_prefix}as; ac_word=$2
4865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867 if test "${ac_cv_prog_AS+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870 if test -n "$AS"; then
4871 ac_cv_prog_AS="$AS" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_prog_AS="${ac_tool_prefix}as"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4884 done
4885 done
4886 IFS=$as_save_IFS
4890 AS=$ac_cv_prog_AS
4891 if test -n "$AS"; then
4892 { echo "$as_me:$LINENO: result: $AS" >&5
4893 echo "${ECHO_T}$AS" >&6; }
4894 else
4895 { echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6; }
4901 if test -z "$ac_cv_prog_AS"; then
4902 ac_ct_AS=$AS
4903 # Extract the first word of "as", so it can be a program name with args.
4904 set dummy as; ac_word=$2
4905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4907 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910 if test -n "$ac_ct_AS"; then
4911 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_ac_ct_AS="as"
4921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4924 done
4925 done
4926 IFS=$as_save_IFS
4930 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4931 if test -n "$ac_ct_AS"; then
4932 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4933 echo "${ECHO_T}$ac_ct_AS" >&6; }
4934 else
4935 { echo "$as_me:$LINENO: result: no" >&5
4936 echo "${ECHO_T}no" >&6; }
4939 if test "x$ac_ct_AS" = x; then
4940 AS="false"
4941 else
4942 case $cross_compiling:$ac_tool_warned in
4943 yes:)
4944 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4945 whose name does not start with the host triplet. If you think this
4946 configuration is useful to you, please write to autoconf@gnu.org." >&5
4947 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4948 whose name does not start with the host triplet. If you think this
4949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4950 ac_tool_warned=yes ;;
4951 esac
4952 AS=$ac_ct_AS
4954 else
4955 AS="$ac_cv_prog_AS"
4958 if test -n "$ac_tool_prefix"; then
4959 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4960 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4963 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966 if test -n "$OBJDUMP"; then
4967 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4980 done
4981 done
4982 IFS=$as_save_IFS
4986 OBJDUMP=$ac_cv_prog_OBJDUMP
4987 if test -n "$OBJDUMP"; then
4988 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4989 echo "${ECHO_T}$OBJDUMP" >&6; }
4990 else
4991 { echo "$as_me:$LINENO: result: no" >&5
4992 echo "${ECHO_T}no" >&6; }
4997 if test -z "$ac_cv_prog_OBJDUMP"; then
4998 ac_ct_OBJDUMP=$OBJDUMP
4999 # Extract the first word of "objdump", so it can be a program name with args.
5000 set dummy objdump; ac_word=$2
5001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5003 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006 if test -n "$ac_ct_OBJDUMP"; then
5007 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5020 done
5021 done
5022 IFS=$as_save_IFS
5026 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5027 if test -n "$ac_ct_OBJDUMP"; then
5028 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5029 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5030 else
5031 { echo "$as_me:$LINENO: result: no" >&5
5032 echo "${ECHO_T}no" >&6; }
5035 if test "x$ac_ct_OBJDUMP" = x; then
5036 OBJDUMP="false"
5037 else
5038 case $cross_compiling:$ac_tool_warned in
5039 yes:)
5040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5041 whose name does not start with the host triplet. If you think this
5042 configuration is useful to you, please write to autoconf@gnu.org." >&5
5043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5044 whose name does not start with the host triplet. If you think this
5045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5046 ac_tool_warned=yes ;;
5047 esac
5048 OBJDUMP=$ac_ct_OBJDUMP
5050 else
5051 OBJDUMP="$ac_cv_prog_OBJDUMP"
5056 esac
5058 need_locks="$enable_libtool_lock"
5062 for ac_header in dlfcn.h
5064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5066 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 ac_res=`eval echo '${'$as_ac_Header'}'`
5072 { echo "$as_me:$LINENO: result: $ac_res" >&5
5073 echo "${ECHO_T}$ac_res" >&6; }
5074 else
5075 # Is the header compilable?
5076 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5078 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h. */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 $ac_includes_default
5085 #include <$ac_header>
5086 _ACEOF
5087 rm -f conftest.$ac_objext
5088 if { (ac_try="$ac_compile"
5089 case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092 esac
5093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094 (eval "$ac_compile") 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } && {
5101 test -z "$ac_c_werror_flag" ||
5102 test ! -s conftest.err
5103 } && test -s conftest.$ac_objext; then
5104 ac_header_compiler=yes
5105 else
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 ac_header_compiler=no
5112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5114 echo "${ECHO_T}$ac_header_compiler" >&6; }
5116 # Is the header present?
5117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 #include <$ac_header>
5126 _ACEOF
5127 if { (ac_try="$ac_cpp conftest.$ac_ext"
5128 case "(($ac_try" in
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5134 ac_status=$?
5135 grep -v '^ *+' conftest.er1 >conftest.err
5136 rm -f conftest.er1
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } >/dev/null && {
5140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5142 }; then
5143 ac_header_preproc=yes
5144 else
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 ac_header_preproc=no
5151 rm -f conftest.err conftest.$ac_ext
5152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5153 echo "${ECHO_T}$ac_header_preproc" >&6; }
5155 # So? What about this header?
5156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5157 yes:no: )
5158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5162 ac_header_preproc=yes
5164 no:yes:* )
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5172 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5179 esac
5180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185 eval "$as_ac_Header=\$ac_header_preproc"
5187 ac_res=`eval echo '${'$as_ac_Header'}'`
5188 { echo "$as_me:$LINENO: result: $ac_res" >&5
5189 echo "${ECHO_T}$ac_res" >&6; }
5192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5193 cat >>confdefs.h <<_ACEOF
5194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5195 _ACEOF
5199 done
5201 ac_ext=cpp
5202 ac_cpp='$CXXCPP $CPPFLAGS'
5203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5206 if test -z "$CXX"; then
5207 if test -n "$CCC"; then
5208 CXX=$CCC
5209 else
5210 if test -n "$ac_tool_prefix"; then
5211 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5217 if test "${ac_cv_prog_CXX+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220 if test -n "$CXX"; then
5221 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5222 else
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 break 2
5234 done
5235 done
5236 IFS=$as_save_IFS
5240 CXX=$ac_cv_prog_CXX
5241 if test -n "$CXX"; then
5242 { echo "$as_me:$LINENO: result: $CXX" >&5
5243 echo "${ECHO_T}$CXX" >&6; }
5244 else
5245 { echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6; }
5250 test -n "$CXX" && break
5251 done
5253 if test -z "$CXX"; then
5254 ac_ct_CXX=$CXX
5255 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5257 # Extract the first word of "$ac_prog", so it can be a program name with args.
5258 set dummy $ac_prog; ac_word=$2
5259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5261 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 else
5264 if test -n "$ac_ct_CXX"; then
5265 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5266 else
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5270 IFS=$as_save_IFS
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5274 ac_cv_prog_ac_ct_CXX="$ac_prog"
5275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2
5278 done
5279 done
5280 IFS=$as_save_IFS
5284 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5285 if test -n "$ac_ct_CXX"; then
5286 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5287 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5288 else
5289 { echo "$as_me:$LINENO: result: no" >&5
5290 echo "${ECHO_T}no" >&6; }
5294 test -n "$ac_ct_CXX" && break
5295 done
5297 if test "x$ac_ct_CXX" = x; then
5298 CXX="g++"
5299 else
5300 case $cross_compiling:$ac_tool_warned in
5301 yes:)
5302 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5303 whose name does not start with the host triplet. If you think this
5304 configuration is useful to you, please write to autoconf@gnu.org." >&5
5305 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5306 whose name does not start with the host triplet. If you think this
5307 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5308 ac_tool_warned=yes ;;
5309 esac
5310 CXX=$ac_ct_CXX
5316 # Provide some information about the compiler.
5317 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5318 ac_compiler=`set X $ac_compile; echo $2`
5319 { (ac_try="$ac_compiler --version >&5"
5320 case "(($ac_try" in
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5323 esac
5324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325 (eval "$ac_compiler --version >&5") 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }
5329 { (ac_try="$ac_compiler -v >&5"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compiler -v >&5") 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }
5339 { (ac_try="$ac_compiler -V >&5"
5340 case "(($ac_try" in
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5343 esac
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_compiler -V >&5") 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }
5350 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5351 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5352 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 else
5355 cat >conftest.$ac_ext <<_ACEOF
5356 /* confdefs.h. */
5357 _ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5363 main ()
5365 #ifndef __GNUC__
5366 choke me
5367 #endif
5370 return 0;
5372 _ACEOF
5373 rm -f conftest.$ac_objext
5374 if { (ac_try="$ac_compile"
5375 case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378 esac
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_compile") 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } && {
5387 test -z "$ac_cxx_werror_flag" ||
5388 test ! -s conftest.err
5389 } && test -s conftest.$ac_objext; then
5390 ac_compiler_gnu=yes
5391 else
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 ac_compiler_gnu=no
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5402 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5403 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5404 GXX=`test $ac_compiler_gnu = yes && echo yes`
5405 ac_test_CXXFLAGS=${CXXFLAGS+set}
5406 ac_save_CXXFLAGS=$CXXFLAGS
5407 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5408 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5409 if test "${ac_cv_prog_cxx_g+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5413 ac_cxx_werror_flag=yes
5414 ac_cv_prog_cxx_g=no
5415 CXXFLAGS="-g"
5416 cat >conftest.$ac_ext <<_ACEOF
5417 /* confdefs.h. */
5418 _ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5424 main ()
5428 return 0;
5430 _ACEOF
5431 rm -f conftest.$ac_objext
5432 if { (ac_try="$ac_compile"
5433 case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5436 esac
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_compile") 2>conftest.er1
5439 ac_status=$?
5440 grep -v '^ *+' conftest.er1 >conftest.err
5441 rm -f conftest.er1
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } && {
5445 test -z "$ac_cxx_werror_flag" ||
5446 test ! -s conftest.err
5447 } && test -s conftest.$ac_objext; then
5448 ac_cv_prog_cxx_g=yes
5449 else
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5453 CXXFLAGS=""
5454 cat >conftest.$ac_ext <<_ACEOF
5455 /* confdefs.h. */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5462 main ()
5466 return 0;
5468 _ACEOF
5469 rm -f conftest.$ac_objext
5470 if { (ac_try="$ac_compile"
5471 case "(($ac_try" in
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5474 esac
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_compile") 2>conftest.er1
5477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } && {
5483 test -z "$ac_cxx_werror_flag" ||
5484 test ! -s conftest.err
5485 } && test -s conftest.$ac_objext; then
5487 else
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5491 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5492 CXXFLAGS="-g"
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h. */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5501 main ()
5505 return 0;
5507 _ACEOF
5508 rm -f conftest.$ac_objext
5509 if { (ac_try="$ac_compile"
5510 case "(($ac_try" in
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5513 esac
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_compile") 2>conftest.er1
5516 ac_status=$?
5517 grep -v '^ *+' conftest.er1 >conftest.err
5518 rm -f conftest.er1
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } && {
5522 test -z "$ac_cxx_werror_flag" ||
5523 test ! -s conftest.err
5524 } && test -s conftest.$ac_objext; then
5525 ac_cv_prog_cxx_g=yes
5526 else
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5542 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5543 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5544 if test "$ac_test_CXXFLAGS" = set; then
5545 CXXFLAGS=$ac_save_CXXFLAGS
5546 elif test $ac_cv_prog_cxx_g = yes; then
5547 if test "$GXX" = yes; then
5548 CXXFLAGS="-g -O2"
5549 else
5550 CXXFLAGS="-g"
5552 else
5553 if test "$GXX" = yes; then
5554 CXXFLAGS="-O2"
5555 else
5556 CXXFLAGS=
5559 ac_ext=cpp
5560 ac_cpp='$CXXCPP $CPPFLAGS'
5561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5567 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5568 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5569 (test "X$CXX" != "Xg++"))) ; then
5570 ac_ext=cpp
5571 ac_cpp='$CXXCPP $CPPFLAGS'
5572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5575 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5576 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5577 if test -z "$CXXCPP"; then
5578 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581 # Double quotes because CXXCPP needs to be expanded
5582 for CXXCPP in "$CXX -E" "/lib/cpp"
5584 ac_preproc_ok=false
5585 for ac_cxx_preproc_warn_flag in '' yes
5587 # Use a header file that comes with gcc, so configuring glibc
5588 # with a fresh cross-compiler works.
5589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5590 # <limits.h> exists even on freestanding compilers.
5591 # On the NeXT, cc -E runs the code through the compiler's parser,
5592 # not just through cpp. "Syntax error" is here to catch this case.
5593 cat >conftest.$ac_ext <<_ACEOF
5594 /* confdefs.h. */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 #ifdef __STDC__
5600 # include <limits.h>
5601 #else
5602 # include <assert.h>
5603 #endif
5604 Syntax error
5605 _ACEOF
5606 if { (ac_try="$ac_cpp conftest.$ac_ext"
5607 case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610 esac
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5613 ac_status=$?
5614 grep -v '^ *+' conftest.er1 >conftest.err
5615 rm -f conftest.er1
5616 cat conftest.err >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } >/dev/null && {
5619 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5620 test ! -s conftest.err
5621 }; then
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 # Broken: fails on valid input.
5628 continue
5631 rm -f conftest.err conftest.$ac_ext
5633 # OK, works on sane cases. Now check whether nonexistent headers
5634 # can be detected and how.
5635 cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h. */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5641 #include <ac_nonexistent.h>
5642 _ACEOF
5643 if { (ac_try="$ac_cpp conftest.$ac_ext"
5644 case "(($ac_try" in
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5647 esac
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5650 ac_status=$?
5651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } >/dev/null && {
5656 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5657 test ! -s conftest.err
5658 }; then
5659 # Broken: success on invalid input.
5660 continue
5661 else
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 # Passes both tests.
5666 ac_preproc_ok=:
5667 break
5670 rm -f conftest.err conftest.$ac_ext
5672 done
5673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5674 rm -f conftest.err conftest.$ac_ext
5675 if $ac_preproc_ok; then
5676 break
5679 done
5680 ac_cv_prog_CXXCPP=$CXXCPP
5683 CXXCPP=$ac_cv_prog_CXXCPP
5684 else
5685 ac_cv_prog_CXXCPP=$CXXCPP
5687 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5688 echo "${ECHO_T}$CXXCPP" >&6; }
5689 ac_preproc_ok=false
5690 for ac_cxx_preproc_warn_flag in '' yes
5692 # Use a header file that comes with gcc, so configuring glibc
5693 # with a fresh cross-compiler works.
5694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5695 # <limits.h> exists even on freestanding compilers.
5696 # On the NeXT, cc -E runs the code through the compiler's parser,
5697 # not just through cpp. "Syntax error" is here to catch this case.
5698 cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h. */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 #ifdef __STDC__
5705 # include <limits.h>
5706 #else
5707 # include <assert.h>
5708 #endif
5709 Syntax error
5710 _ACEOF
5711 if { (ac_try="$ac_cpp conftest.$ac_ext"
5712 case "(($ac_try" in
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5715 esac
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } >/dev/null && {
5724 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5725 test ! -s conftest.err
5726 }; then
5728 else
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5732 # Broken: fails on valid input.
5733 continue
5736 rm -f conftest.err conftest.$ac_ext
5738 # OK, works on sane cases. Now check whether nonexistent headers
5739 # can be detected and how.
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h. */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 #include <ac_nonexistent.h>
5747 _ACEOF
5748 if { (ac_try="$ac_cpp conftest.$ac_ext"
5749 case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752 esac
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5755 ac_status=$?
5756 grep -v '^ *+' conftest.er1 >conftest.err
5757 rm -f conftest.er1
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } >/dev/null && {
5761 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5762 test ! -s conftest.err
5763 }; then
5764 # Broken: success on invalid input.
5765 continue
5766 else
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5770 # Passes both tests.
5771 ac_preproc_ok=:
5772 break
5775 rm -f conftest.err conftest.$ac_ext
5777 done
5778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5779 rm -f conftest.err conftest.$ac_ext
5780 if $ac_preproc_ok; then
5782 else
5783 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5784 See \`config.log' for more details." >&5
5785 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5786 See \`config.log' for more details." >&2;}
5787 { (exit 1); exit 1; }; }
5790 ac_ext=cpp
5791 ac_cpp='$CXXCPP $CPPFLAGS'
5792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5799 ac_ext=f
5800 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5801 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5803 if test -n "$ac_tool_prefix"; then
5804 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5810 if test "${ac_cv_prog_F77+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813 if test -n "$F77"; then
5814 ac_cv_prog_F77="$F77" # Let the user override the test.
5815 else
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5827 done
5828 done
5829 IFS=$as_save_IFS
5833 F77=$ac_cv_prog_F77
5834 if test -n "$F77"; then
5835 { echo "$as_me:$LINENO: result: $F77" >&5
5836 echo "${ECHO_T}$F77" >&6; }
5837 else
5838 { echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6; }
5843 test -n "$F77" && break
5844 done
5846 if test -z "$F77"; then
5847 ac_ct_F77=$F77
5848 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5850 # Extract the first word of "$ac_prog", so it can be a program name with args.
5851 set dummy $ac_prog; ac_word=$2
5852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5854 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857 if test -n "$ac_ct_F77"; then
5858 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5859 else
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867 ac_cv_prog_ac_ct_F77="$ac_prog"
5868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5871 done
5872 done
5873 IFS=$as_save_IFS
5877 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5878 if test -n "$ac_ct_F77"; then
5879 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5880 echo "${ECHO_T}$ac_ct_F77" >&6; }
5881 else
5882 { echo "$as_me:$LINENO: result: no" >&5
5883 echo "${ECHO_T}no" >&6; }
5887 test -n "$ac_ct_F77" && break
5888 done
5890 if test "x$ac_ct_F77" = x; then
5891 F77=""
5892 else
5893 case $cross_compiling:$ac_tool_warned in
5894 yes:)
5895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5896 whose name does not start with the host triplet. If you think this
5897 configuration is useful to you, please write to autoconf@gnu.org." >&5
5898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5899 whose name does not start with the host triplet. If you think this
5900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5901 ac_tool_warned=yes ;;
5902 esac
5903 F77=$ac_ct_F77
5908 # Provide some information about the compiler.
5909 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5910 ac_compiler=`set X $ac_compile; echo $2`
5911 { (ac_try="$ac_compiler --version >&5"
5912 case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915 esac
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_compiler --version >&5") 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }
5921 { (ac_try="$ac_compiler -v >&5"
5922 case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5925 esac
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_compiler -v >&5") 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }
5931 { (ac_try="$ac_compiler -V >&5"
5932 case "(($ac_try" in
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5935 esac
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_compiler -V >&5") 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }
5941 rm -f a.out
5943 # If we don't use `.F' as extension, the preprocessor is not run on the
5944 # input file. (Note that this only needs to work for GNU compilers.)
5945 ac_save_ext=$ac_ext
5946 ac_ext=F
5947 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5948 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5949 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952 cat >conftest.$ac_ext <<_ACEOF
5953 program main
5954 #ifndef __GNUC__
5955 choke me
5956 #endif
5959 _ACEOF
5960 rm -f conftest.$ac_objext
5961 if { (ac_try="$ac_compile"
5962 case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965 esac
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_compile") 2>conftest.er1
5968 ac_status=$?
5969 grep -v '^ *+' conftest.er1 >conftest.err
5970 rm -f conftest.er1
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && {
5974 test -z "$ac_f77_werror_flag" ||
5975 test ! -s conftest.err
5976 } && test -s conftest.$ac_objext; then
5977 ac_compiler_gnu=yes
5978 else
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 ac_compiler_gnu=no
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5989 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5990 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5991 ac_ext=$ac_save_ext
5992 ac_test_FFLAGS=${FFLAGS+set}
5993 ac_save_FFLAGS=$FFLAGS
5994 FFLAGS=
5995 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5996 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5997 if test "${ac_cv_prog_f77_g+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000 FFLAGS=-g
6001 cat >conftest.$ac_ext <<_ACEOF
6002 program main
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6008 case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011 esac
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compile") 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } && {
6020 test -z "$ac_f77_werror_flag" ||
6021 test ! -s conftest.err
6022 } && test -s conftest.$ac_objext; then
6023 ac_cv_prog_f77_g=yes
6024 else
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6028 ac_cv_prog_f77_g=no
6031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6035 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6036 if test "$ac_test_FFLAGS" = set; then
6037 FFLAGS=$ac_save_FFLAGS
6038 elif test $ac_cv_prog_f77_g = yes; then
6039 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6040 FFLAGS="-g -O2"
6041 else
6042 FFLAGS="-g"
6044 else
6045 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6046 FFLAGS="-O2"
6047 else
6048 FFLAGS=
6052 G77=`test $ac_compiler_gnu = yes && echo yes`
6053 ac_ext=c
6054 ac_cpp='$CPP $CPPFLAGS'
6055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6063 # find the maximum length of command line arguments
6064 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6065 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6066 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6070 teststring="ABCD"
6072 case $build_os in
6073 msdosdjgpp*)
6074 # On DJGPP, this test can blow up pretty badly due to problems in libc
6075 # (any single argument exceeding 2000 bytes causes a buffer overrun
6076 # during glob expansion). Even if it were fixed, the result of this
6077 # check would be larger than it should be.
6078 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6081 gnu*)
6082 # Under GNU Hurd, this test is not required because there is
6083 # no limit to the length of command line arguments.
6084 # Libtool will interpret -1 as no limit whatsoever
6085 lt_cv_sys_max_cmd_len=-1;
6088 cygwin* | mingw*)
6089 # On Win9x/ME, this test blows up -- it succeeds, but takes
6090 # about 5 minutes as the teststring grows exponentially.
6091 # Worse, since 9x/ME are not pre-emptively multitasking,
6092 # you end up with a "frozen" computer, even though with patience
6093 # the test eventually succeeds (with a max line length of 256k).
6094 # Instead, let's just punt: use the minimum linelength reported by
6095 # all of the supported platforms: 8192 (on NT/2K/XP).
6096 lt_cv_sys_max_cmd_len=8192;
6099 beos*)
6100 # On BeOS, this test takes a really really long time.
6101 # So we just punt and use a minimum line length of 8192.
6102 lt_cv_sys_max_cmd_len=8192;
6105 amigaos*)
6106 # On AmigaOS with pdksh, this test takes hours, literally.
6107 # So we just punt and use a minimum line length of 8192.
6108 lt_cv_sys_max_cmd_len=8192;
6111 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6112 # This has been around since 386BSD, at least. Likely further.
6113 if test -x /sbin/sysctl; then
6114 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6115 elif test -x /usr/sbin/sysctl; then
6116 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6117 else
6118 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6120 # And add a safety zone
6121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6125 interix*)
6126 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6127 lt_cv_sys_max_cmd_len=196608
6130 osf*)
6131 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6132 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6133 # nice to cause kernel panics so lets avoid the loop below.
6134 # First set a reasonable default.
6135 lt_cv_sys_max_cmd_len=16384
6137 if test -x /sbin/sysconfig; then
6138 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6139 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6140 esac
6143 sco3.2v5*)
6144 lt_cv_sys_max_cmd_len=102400
6146 sysv5* | sco5v6* | sysv4.2uw2*)
6147 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6148 if test -n "$kargmax"; then
6149 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6150 else
6151 lt_cv_sys_max_cmd_len=32768
6155 # If test is not a shell built-in, we'll probably end up computing a
6156 # maximum length that is only half of the actual maximum length, but
6157 # we can't tell.
6158 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6159 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6160 = "XX$teststring") >/dev/null 2>&1 &&
6161 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6162 lt_cv_sys_max_cmd_len=$new_result &&
6163 test $i != 17 # 1/2 MB should be enough
6165 i=`expr $i + 1`
6166 teststring=$teststring$teststring
6167 done
6168 teststring=
6169 # Add a significant safety factor because C++ compilers can tack on massive
6170 # amounts of additional arguments before passing them to the linker.
6171 # It appears as though 1/2 is a usable value.
6172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6174 esac
6178 if test -n $lt_cv_sys_max_cmd_len ; then
6179 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6180 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6181 else
6182 { echo "$as_me:$LINENO: result: none" >&5
6183 echo "${ECHO_T}none" >&6; }
6189 # Check for command to grab the raw symbol name followed by C symbol from nm.
6190 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6191 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6192 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6196 # These are sane defaults that work on at least a few old systems.
6197 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6199 # Character class describing NM global symbol codes.
6200 symcode='[BCDEGRST]'
6202 # Regexp to match symbols that can be accessed directly from C.
6203 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6205 # Transform an extracted symbol line into a proper C declaration
6206 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6208 # Transform an extracted symbol line into symbol name and symbol address
6209 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6211 # Define system-specific variables.
6212 case $host_os in
6213 aix*)
6214 symcode='[BCDT]'
6216 cygwin* | mingw* | pw32*)
6217 symcode='[ABCDGISTW]'
6219 hpux*) # Its linker distinguishes data from code symbols
6220 if test "$host_cpu" = ia64; then
6221 symcode='[ABCDEGRST]'
6223 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6224 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6226 linux*)
6227 if test "$host_cpu" = ia64; then
6228 symcode='[ABCDGIRSTW]'
6229 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6230 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6233 irix* | nonstopux*)
6234 symcode='[BCDEGRST]'
6236 osf*)
6237 symcode='[BCDEGQRST]'
6239 solaris*)
6240 symcode='[BDRT]'
6242 sco3.2v5*)
6243 symcode='[DT]'
6245 sysv4.2uw2*)
6246 symcode='[DT]'
6248 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6249 symcode='[ABDT]'
6251 sysv4)
6252 symcode='[DFNSTU]'
6254 esac
6256 # Handle CRLF in mingw tool chain
6257 opt_cr=
6258 case $build_os in
6259 mingw*)
6260 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6262 esac
6264 # If we're using GNU nm, then use its standard symbol codes.
6265 case `$NM -V 2>&1` in
6266 *GNU* | *'with BFD'*)
6267 symcode='[ABCDGIRSTW]' ;;
6268 esac
6270 # Try without a prefix undercore, then with it.
6271 for ac_symprfx in "" "_"; do
6273 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6274 symxfrm="\\1 $ac_symprfx\\2 \\2"
6276 # Write the raw and C identifiers.
6277 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6279 # Check to see that the pipe works correctly.
6280 pipe_works=no
6282 rm -f conftest*
6283 cat > conftest.$ac_ext <<EOF
6284 #ifdef __cplusplus
6285 extern "C" {
6286 #endif
6287 char nm_test_var;
6288 void nm_test_func(){}
6289 #ifdef __cplusplus
6291 #endif
6292 int main(){nm_test_var='a';nm_test_func();return(0);}
6295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296 (eval $ac_compile) 2>&5
6297 ac_status=$?
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; then
6300 # Now try to grab the symbols.
6301 nlist=conftest.nm
6302 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6303 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } && test -s "$nlist"; then
6307 # Try sorting and uniquifying the output.
6308 if sort "$nlist" | uniq > "$nlist"T; then
6309 mv -f "$nlist"T "$nlist"
6310 else
6311 rm -f "$nlist"T
6314 # Make sure that we snagged all the symbols we need.
6315 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6316 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6317 cat <<EOF > conftest.$ac_ext
6318 #ifdef __cplusplus
6319 extern "C" {
6320 #endif
6323 # Now generate the symbol file.
6324 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6326 cat <<EOF >> conftest.$ac_ext
6327 #if defined (__STDC__) && __STDC__
6328 # define lt_ptr_t void *
6329 #else
6330 # define lt_ptr_t char *
6331 # define const
6332 #endif
6334 /* The mapping between symbol names and symbols. */
6335 const struct {
6336 const char *name;
6337 lt_ptr_t address;
6339 lt_preloaded_symbols[] =
6342 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6343 cat <<\EOF >> conftest.$ac_ext
6344 {0, (lt_ptr_t) 0}
6347 #ifdef __cplusplus
6349 #endif
6351 # Now try linking the two files.
6352 mv conftest.$ac_objext conftstm.$ac_objext
6353 lt_save_LIBS="$LIBS"
6354 lt_save_CFLAGS="$CFLAGS"
6355 LIBS="conftstm.$ac_objext"
6356 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6358 (eval $ac_link) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6362 pipe_works=yes
6364 LIBS="$lt_save_LIBS"
6365 CFLAGS="$lt_save_CFLAGS"
6366 else
6367 echo "cannot find nm_test_func in $nlist" >&5
6369 else
6370 echo "cannot find nm_test_var in $nlist" >&5
6372 else
6373 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6375 else
6376 echo "$progname: failed program was:" >&5
6377 cat conftest.$ac_ext >&5
6379 rm -f conftest* conftst*
6381 # Do not use the global_symbol_pipe unless it works.
6382 if test "$pipe_works" = yes; then
6383 break
6384 else
6385 lt_cv_sys_global_symbol_pipe=
6387 done
6391 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6392 lt_cv_sys_global_symbol_to_cdecl=
6394 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6395 { echo "$as_me:$LINENO: result: failed" >&5
6396 echo "${ECHO_T}failed" >&6; }
6397 else
6398 { echo "$as_me:$LINENO: result: ok" >&5
6399 echo "${ECHO_T}ok" >&6; }
6402 { echo "$as_me:$LINENO: checking for objdir" >&5
6403 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6404 if test "${lt_cv_objdir+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407 rm -f .libs 2>/dev/null
6408 mkdir .libs 2>/dev/null
6409 if test -d .libs; then
6410 lt_cv_objdir=.libs
6411 else
6412 # MS-DOS does not allow filenames that begin with a dot.
6413 lt_cv_objdir=_libs
6415 rmdir .libs 2>/dev/null
6417 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6418 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6419 objdir=$lt_cv_objdir
6425 case $host_os in
6426 aix3*)
6427 # AIX sometimes has problems with the GCC collect2 program. For some
6428 # reason, if we set the COLLECT_NAMES environment variable, the problems
6429 # vanish in a puff of smoke.
6430 if test "X${COLLECT_NAMES+set}" != Xset; then
6431 COLLECT_NAMES=
6432 export COLLECT_NAMES
6435 esac
6437 # Sed substitution that helps us do robust quoting. It backslashifies
6438 # metacharacters that are still active within double-quoted strings.
6439 Xsed='sed -e 1s/^X//'
6440 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6442 # Same as above, but do not quote variable references.
6443 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6445 # Sed substitution to delay expansion of an escaped shell variable in a
6446 # double_quote_subst'ed string.
6447 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6449 # Sed substitution to avoid accidental globbing in evaled expressions
6450 no_glob_subst='s/\*/\\\*/g'
6452 # Constants:
6453 rm="rm -f"
6455 # Global variables:
6456 default_ofile=libtool
6457 can_build_shared=yes
6459 # All known linkers require a `.a' archive for static linking (except MSVC,
6460 # which needs '.lib').
6461 libext=a
6462 ltmain="$ac_aux_dir/ltmain.sh"
6463 ofile="$default_ofile"
6464 with_gnu_ld="$lt_cv_prog_gnu_ld"
6466 if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}ar; ac_word=$2
6469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6471 if test "${ac_cv_prog_AR+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 else
6474 if test -n "$AR"; then
6475 ac_cv_prog_AR="$AR" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6484 ac_cv_prog_AR="${ac_tool_prefix}ar"
6485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6488 done
6489 done
6490 IFS=$as_save_IFS
6494 AR=$ac_cv_prog_AR
6495 if test -n "$AR"; then
6496 { echo "$as_me:$LINENO: result: $AR" >&5
6497 echo "${ECHO_T}$AR" >&6; }
6498 else
6499 { echo "$as_me:$LINENO: result: no" >&5
6500 echo "${ECHO_T}no" >&6; }
6505 if test -z "$ac_cv_prog_AR"; then
6506 ac_ct_AR=$AR
6507 # Extract the first word of "ar", so it can be a program name with args.
6508 set dummy ar; ac_word=$2
6509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514 if test -n "$ac_ct_AR"; then
6515 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_prog_ac_ct_AR="ar"
6525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6528 done
6529 done
6530 IFS=$as_save_IFS
6534 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6535 if test -n "$ac_ct_AR"; then
6536 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6537 echo "${ECHO_T}$ac_ct_AR" >&6; }
6538 else
6539 { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6543 if test "x$ac_ct_AR" = x; then
6544 AR="false"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547 yes:)
6548 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6549 whose name does not start with the host triplet. If you think this
6550 configuration is useful to you, please write to autoconf@gnu.org." >&5
6551 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6552 whose name does not start with the host triplet. If you think this
6553 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6554 ac_tool_warned=yes ;;
6555 esac
6556 AR=$ac_ct_AR
6558 else
6559 AR="$ac_cv_prog_AR"
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6564 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_prog_RANLIB+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570 if test -n "$RANLIB"; then
6571 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
6584 done
6585 done
6586 IFS=$as_save_IFS
6590 RANLIB=$ac_cv_prog_RANLIB
6591 if test -n "$RANLIB"; then
6592 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6593 echo "${ECHO_T}$RANLIB" >&6; }
6594 else
6595 { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6601 if test -z "$ac_cv_prog_RANLIB"; then
6602 ac_ct_RANLIB=$RANLIB
6603 # Extract the first word of "ranlib", so it can be a program name with args.
6604 set dummy ranlib; ac_word=$2
6605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 else
6610 if test -n "$ac_ct_RANLIB"; then
6611 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_ac_ct_RANLIB="ranlib"
6621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6624 done
6625 done
6626 IFS=$as_save_IFS
6630 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6631 if test -n "$ac_ct_RANLIB"; then
6632 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6633 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6634 else
6635 { echo "$as_me:$LINENO: result: no" >&5
6636 echo "${ECHO_T}no" >&6; }
6639 if test "x$ac_ct_RANLIB" = x; then
6640 RANLIB=":"
6641 else
6642 case $cross_compiling:$ac_tool_warned in
6643 yes:)
6644 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6645 whose name does not start with the host triplet. If you think this
6646 configuration is useful to you, please write to autoconf@gnu.org." >&5
6647 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6648 whose name does not start with the host triplet. If you think this
6649 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6650 ac_tool_warned=yes ;;
6651 esac
6652 RANLIB=$ac_ct_RANLIB
6654 else
6655 RANLIB="$ac_cv_prog_RANLIB"
6658 if test -n "$ac_tool_prefix"; then
6659 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6660 set dummy ${ac_tool_prefix}strip; ac_word=$2
6661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6663 if test "${ac_cv_prog_STRIP+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 else
6666 if test -n "$STRIP"; then
6667 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6668 else
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6676 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 break 2
6680 done
6681 done
6682 IFS=$as_save_IFS
6686 STRIP=$ac_cv_prog_STRIP
6687 if test -n "$STRIP"; then
6688 { echo "$as_me:$LINENO: result: $STRIP" >&5
6689 echo "${ECHO_T}$STRIP" >&6; }
6690 else
6691 { echo "$as_me:$LINENO: result: no" >&5
6692 echo "${ECHO_T}no" >&6; }
6697 if test -z "$ac_cv_prog_STRIP"; then
6698 ac_ct_STRIP=$STRIP
6699 # Extract the first word of "strip", so it can be a program name with args.
6700 set dummy strip; ac_word=$2
6701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6703 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706 if test -n "$ac_ct_STRIP"; then
6707 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_prog_ac_ct_STRIP="strip"
6717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6720 done
6721 done
6722 IFS=$as_save_IFS
6726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6727 if test -n "$ac_ct_STRIP"; then
6728 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6729 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6730 else
6731 { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6735 if test "x$ac_ct_STRIP" = x; then
6736 STRIP=":"
6737 else
6738 case $cross_compiling:$ac_tool_warned in
6739 yes:)
6740 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6741 whose name does not start with the host triplet. If you think this
6742 configuration is useful to you, please write to autoconf@gnu.org." >&5
6743 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6744 whose name does not start with the host triplet. If you think this
6745 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6746 ac_tool_warned=yes ;;
6747 esac
6748 STRIP=$ac_ct_STRIP
6750 else
6751 STRIP="$ac_cv_prog_STRIP"
6755 old_CC="$CC"
6756 old_CFLAGS="$CFLAGS"
6758 # Set sane defaults for various variables
6759 test -z "$AR" && AR=ar
6760 test -z "$AR_FLAGS" && AR_FLAGS=cru
6761 test -z "$AS" && AS=as
6762 test -z "$CC" && CC=cc
6763 test -z "$LTCC" && LTCC=$CC
6764 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6765 test -z "$DLLTOOL" && DLLTOOL=dlltool
6766 test -z "$LD" && LD=ld
6767 test -z "$LN_S" && LN_S="ln -s"
6768 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6769 test -z "$NM" && NM=nm
6770 test -z "$SED" && SED=sed
6771 test -z "$OBJDUMP" && OBJDUMP=objdump
6772 test -z "$RANLIB" && RANLIB=:
6773 test -z "$STRIP" && STRIP=:
6774 test -z "$ac_objext" && ac_objext=o
6776 # Determine commands to create old-style static archives.
6777 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6778 old_postinstall_cmds='chmod 644 $oldlib'
6779 old_postuninstall_cmds=
6781 if test -n "$RANLIB"; then
6782 case $host_os in
6783 openbsd*)
6784 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6787 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6789 esac
6790 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6793 for cc_temp in $compiler""; do
6794 case $cc_temp in
6795 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6796 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6797 \-*) ;;
6798 *) break;;
6799 esac
6800 done
6801 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6804 # Only perform the check for file, if the check method requires it
6805 case $deplibs_check_method in
6806 file_magic*)
6807 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6808 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6809 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6810 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813 case $MAGIC_CMD in
6814 [\\/*] | ?:[\\/]*)
6815 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6818 lt_save_MAGIC_CMD="$MAGIC_CMD"
6819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6820 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6821 for ac_dir in $ac_dummy; do
6822 IFS="$lt_save_ifs"
6823 test -z "$ac_dir" && ac_dir=.
6824 if test -f $ac_dir/${ac_tool_prefix}file; then
6825 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6826 if test -n "$file_magic_test_file"; then
6827 case $deplibs_check_method in
6828 "file_magic "*)
6829 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6830 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6831 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6832 $EGREP "$file_magic_regex" > /dev/null; then
6834 else
6835 cat <<EOF 1>&2
6837 *** Warning: the command libtool uses to detect shared libraries,
6838 *** $file_magic_cmd, produces output that libtool cannot recognize.
6839 *** The result is that libtool may fail to recognize shared libraries
6840 *** as such. This will affect the creation of libtool libraries that
6841 *** depend on shared libraries, but programs linked with such libtool
6842 *** libraries will work regardless of this problem. Nevertheless, you
6843 *** may want to report the problem to your system manager and/or to
6844 *** bug-libtool@gnu.org
6847 fi ;;
6848 esac
6850 break
6852 done
6853 IFS="$lt_save_ifs"
6854 MAGIC_CMD="$lt_save_MAGIC_CMD"
6856 esac
6859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6860 if test -n "$MAGIC_CMD"; then
6861 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6862 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6863 else
6864 { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6868 if test -z "$lt_cv_path_MAGIC_CMD"; then
6869 if test -n "$ac_tool_prefix"; then
6870 { echo "$as_me:$LINENO: checking for file" >&5
6871 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6872 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875 case $MAGIC_CMD in
6876 [\\/*] | ?:[\\/]*)
6877 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6880 lt_save_MAGIC_CMD="$MAGIC_CMD"
6881 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6882 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6883 for ac_dir in $ac_dummy; do
6884 IFS="$lt_save_ifs"
6885 test -z "$ac_dir" && ac_dir=.
6886 if test -f $ac_dir/file; then
6887 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6888 if test -n "$file_magic_test_file"; then
6889 case $deplibs_check_method in
6890 "file_magic "*)
6891 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6892 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6893 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6894 $EGREP "$file_magic_regex" > /dev/null; then
6896 else
6897 cat <<EOF 1>&2
6899 *** Warning: the command libtool uses to detect shared libraries,
6900 *** $file_magic_cmd, produces output that libtool cannot recognize.
6901 *** The result is that libtool may fail to recognize shared libraries
6902 *** as such. This will affect the creation of libtool libraries that
6903 *** depend on shared libraries, but programs linked with such libtool
6904 *** libraries will work regardless of this problem. Nevertheless, you
6905 *** may want to report the problem to your system manager and/or to
6906 *** bug-libtool@gnu.org
6909 fi ;;
6910 esac
6912 break
6914 done
6915 IFS="$lt_save_ifs"
6916 MAGIC_CMD="$lt_save_MAGIC_CMD"
6918 esac
6921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6922 if test -n "$MAGIC_CMD"; then
6923 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6924 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6925 else
6926 { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6930 else
6931 MAGIC_CMD=:
6937 esac
6939 enable_dlopen=no
6940 enable_win32_dll=yes
6942 # Check whether --enable-libtool-lock was given.
6943 if test "${enable_libtool_lock+set}" = set; then
6944 enableval=$enable_libtool_lock;
6947 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6950 # Check whether --with-pic was given.
6951 if test "${with_pic+set}" = set; then
6952 withval=$with_pic; pic_mode="$withval"
6953 else
6954 pic_mode=default
6957 test -z "$pic_mode" && pic_mode=default
6959 # Use C for the default configuration in the libtool script
6960 tagname=
6961 lt_save_CC="$CC"
6962 ac_ext=c
6963 ac_cpp='$CPP $CPPFLAGS'
6964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6969 # Source file extension for C test sources.
6970 ac_ext=c
6972 # Object file extension for compiled C test sources.
6973 objext=o
6974 objext=$objext
6976 # Code to be used in simple compile tests
6977 lt_simple_compile_test_code="int some_variable = 0;\n"
6979 # Code to be used in simple link tests
6980 lt_simple_link_test_code='int main(){return(0);}\n'
6983 # If no C compiler was specified, use CC.
6984 LTCC=${LTCC-"$CC"}
6986 # If no C compiler flags were specified, use CFLAGS.
6987 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6989 # Allow CC to be a program name with arguments.
6990 compiler=$CC
6993 # save warnings/boilerplate of simple test code
6994 ac_outfile=conftest.$ac_objext
6995 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6996 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6997 _lt_compiler_boilerplate=`cat conftest.err`
6998 $rm conftest*
7000 ac_outfile=conftest.$ac_objext
7001 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7002 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7003 _lt_linker_boilerplate=`cat conftest.err`
7004 $rm conftest*
7007 ## CAVEAT EMPTOR:
7008 ## There is no encapsulation within the following macros, do not change
7009 ## the running order or otherwise move them around unless you know exactly
7010 ## what you are doing...
7012 lt_prog_compiler_no_builtin_flag=
7014 if test "$GCC" = yes; then
7015 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7018 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7019 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7020 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023 lt_cv_prog_compiler_rtti_exceptions=no
7024 ac_outfile=conftest.$ac_objext
7025 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7026 lt_compiler_flag="-fno-rtti -fno-exceptions"
7027 # Insert the option either (1) after the last *FLAGS variable, or
7028 # (2) before a word containing "conftest.", or (3) at the end.
7029 # Note that $ac_compile itself does not contain backslashes and begins
7030 # with a dollar sign (not a hyphen), so the echo should work correctly.
7031 # The option is referenced via a variable to avoid confusing sed.
7032 lt_compile=`echo "$ac_compile" | $SED \
7033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7035 -e 's:$: $lt_compiler_flag:'`
7036 (eval echo "\"\$as_me:7036: $lt_compile\"" >&5)
7037 (eval "$lt_compile" 2>conftest.err)
7038 ac_status=$?
7039 cat conftest.err >&5
7040 echo "$as_me:7040: \$? = $ac_status" >&5
7041 if (exit $ac_status) && test -s "$ac_outfile"; then
7042 # The compiler can only warn and ignore the option if not recognized
7043 # So say no if there are warnings other than the usual output.
7044 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7046 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7047 lt_cv_prog_compiler_rtti_exceptions=yes
7050 $rm conftest*
7053 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7054 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7056 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7057 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7058 else
7064 lt_prog_compiler_wl=
7065 lt_prog_compiler_pic=
7066 lt_prog_compiler_static=
7068 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7069 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7071 if test "$GCC" = yes; then
7072 lt_prog_compiler_wl='-Wl,'
7073 lt_prog_compiler_static='-static'
7075 case $host_os in
7076 aix*)
7077 # All AIX code is PIC.
7078 if test "$host_cpu" = ia64; then
7079 # AIX 5 now supports IA64 processor
7080 lt_prog_compiler_static='-Bstatic'
7084 amigaos*)
7085 # FIXME: we need at least 68020 code to build shared libraries, but
7086 # adding the `-m68020' flag to GCC prevents building anything better,
7087 # like `-m68040'.
7088 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7091 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7092 # PIC is the default for these OSes.
7095 mingw* | pw32* | os2*)
7096 # This hack is so that the source file can tell whether it is being
7097 # built for inclusion in a dll (and should export symbols for example).
7098 lt_prog_compiler_pic='-DDLL_EXPORT'
7101 darwin* | rhapsody*)
7102 # PIC is the default on this platform
7103 # Common symbols not allowed in MH_DYLIB files
7104 lt_prog_compiler_pic='-fno-common'
7107 interix3*)
7108 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7109 # Instead, we relocate shared libraries at runtime.
7112 msdosdjgpp*)
7113 # Just because we use GCC doesn't mean we suddenly get shared libraries
7114 # on systems that don't support them.
7115 lt_prog_compiler_can_build_shared=no
7116 enable_shared=no
7119 sysv4*MP*)
7120 if test -d /usr/nec; then
7121 lt_prog_compiler_pic=-Kconform_pic
7125 hpux*)
7126 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7127 # not for PA HP-UX.
7128 case $host_cpu in
7129 hppa*64*|ia64*)
7130 # +Z the default
7133 lt_prog_compiler_pic='-fPIC'
7135 esac
7139 lt_prog_compiler_pic='-fPIC'
7141 esac
7142 else
7143 # PORTME Check for flag to pass linker flags through the system compiler.
7144 case $host_os in
7145 aix*)
7146 lt_prog_compiler_wl='-Wl,'
7147 if test "$host_cpu" = ia64; then
7148 # AIX 5 now supports IA64 processor
7149 lt_prog_compiler_static='-Bstatic'
7150 else
7151 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7154 darwin*)
7155 # PIC is the default on this platform
7156 # Common symbols not allowed in MH_DYLIB files
7157 case $cc_basename in
7158 xlc*)
7159 lt_prog_compiler_pic='-qnocommon'
7160 lt_prog_compiler_wl='-Wl,'
7162 esac
7165 mingw* | pw32* | os2*)
7166 # This hack is so that the source file can tell whether it is being
7167 # built for inclusion in a dll (and should export symbols for example).
7168 lt_prog_compiler_pic='-DDLL_EXPORT'
7171 hpux9* | hpux10* | hpux11*)
7172 lt_prog_compiler_wl='-Wl,'
7173 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7174 # not for PA HP-UX.
7175 case $host_cpu in
7176 hppa*64*|ia64*)
7177 # +Z the default
7180 lt_prog_compiler_pic='+Z'
7182 esac
7183 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7184 lt_prog_compiler_static='${wl}-a ${wl}archive'
7187 irix5* | irix6* | nonstopux*)
7188 lt_prog_compiler_wl='-Wl,'
7189 # PIC (with -KPIC) is the default.
7190 lt_prog_compiler_static='-non_shared'
7193 newsos6)
7194 lt_prog_compiler_pic='-KPIC'
7195 lt_prog_compiler_static='-Bstatic'
7198 linux*)
7199 case $cc_basename in
7200 icc* | ecc*)
7201 lt_prog_compiler_wl='-Wl,'
7202 lt_prog_compiler_pic='-KPIC'
7203 lt_prog_compiler_static='-static'
7205 pgcc* | pgf77* | pgf90* | pgf95*)
7206 # Portland Group compilers (*not* the Pentium gcc compiler,
7207 # which looks to be a dead project)
7208 lt_prog_compiler_wl='-Wl,'
7209 lt_prog_compiler_pic='-fpic'
7210 lt_prog_compiler_static='-Bstatic'
7212 ccc*)
7213 lt_prog_compiler_wl='-Wl,'
7214 # All Alpha code is PIC.
7215 lt_prog_compiler_static='-non_shared'
7217 esac
7220 osf3* | osf4* | osf5*)
7221 lt_prog_compiler_wl='-Wl,'
7222 # All OSF/1 code is PIC.
7223 lt_prog_compiler_static='-non_shared'
7226 solaris*)
7227 lt_prog_compiler_pic='-KPIC'
7228 lt_prog_compiler_static='-Bstatic'
7229 case $cc_basename in
7230 f77* | f90* | f95*)
7231 lt_prog_compiler_wl='-Qoption ld ';;
7233 lt_prog_compiler_wl='-Wl,';;
7234 esac
7237 sunos4*)
7238 lt_prog_compiler_wl='-Qoption ld '
7239 lt_prog_compiler_pic='-PIC'
7240 lt_prog_compiler_static='-Bstatic'
7243 sysv4 | sysv4.2uw2* | sysv4.3*)
7244 lt_prog_compiler_wl='-Wl,'
7245 lt_prog_compiler_pic='-KPIC'
7246 lt_prog_compiler_static='-Bstatic'
7249 sysv4*MP*)
7250 if test -d /usr/nec ;then
7251 lt_prog_compiler_pic='-Kconform_pic'
7252 lt_prog_compiler_static='-Bstatic'
7256 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7257 lt_prog_compiler_wl='-Wl,'
7258 lt_prog_compiler_pic='-KPIC'
7259 lt_prog_compiler_static='-Bstatic'
7262 unicos*)
7263 lt_prog_compiler_wl='-Wl,'
7264 lt_prog_compiler_can_build_shared=no
7267 uts4*)
7268 lt_prog_compiler_pic='-pic'
7269 lt_prog_compiler_static='-Bstatic'
7273 lt_prog_compiler_can_build_shared=no
7275 esac
7278 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7279 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7282 # Check to make sure the PIC flag actually works.
7284 if test -n "$lt_prog_compiler_pic"; then
7286 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7287 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7288 if test "${lt_prog_compiler_pic_works+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291 lt_prog_compiler_pic_works=no
7292 ac_outfile=conftest.$ac_objext
7293 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7294 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7295 # Insert the option either (1) after the last *FLAGS variable, or
7296 # (2) before a word containing "conftest.", or (3) at the end.
7297 # Note that $ac_compile itself does not contain backslashes and begins
7298 # with a dollar sign (not a hyphen), so the echo should work correctly.
7299 # The option is referenced via a variable to avoid confusing sed.
7300 lt_compile=`echo "$ac_compile" | $SED \
7301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7303 -e 's:$: $lt_compiler_flag:'`
7304 (eval echo "\"\$as_me:7304: $lt_compile\"" >&5)
7305 (eval "$lt_compile" 2>conftest.err)
7306 ac_status=$?
7307 cat conftest.err >&5
7308 echo "$as_me:7308: \$? = $ac_status" >&5
7309 if (exit $ac_status) && test -s "$ac_outfile"; then
7310 # The compiler can only warn and ignore the option if not recognized
7311 # So say no if there are warnings other than the usual output.
7312 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7314 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7315 lt_prog_compiler_pic_works=yes
7318 $rm conftest*
7321 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7322 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7324 if test x"$lt_prog_compiler_pic_works" = xyes; then
7325 case $lt_prog_compiler_pic in
7326 "" | " "*) ;;
7327 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7328 esac
7329 else
7330 lt_prog_compiler_pic=
7331 lt_prog_compiler_can_build_shared=no
7335 case $host_os in
7336 # For platforms which do not support PIC, -DPIC is meaningless:
7337 *djgpp*)
7338 lt_prog_compiler_pic=
7341 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7343 esac
7346 # Check to make sure the static flag actually works.
7348 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7349 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7350 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7351 if test "${lt_prog_compiler_static_works+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354 lt_prog_compiler_static_works=no
7355 save_LDFLAGS="$LDFLAGS"
7356 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7357 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7358 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7359 # The linker can only warn and ignore the option if not recognized
7360 # So say no if there are warnings
7361 if test -s conftest.err; then
7362 # Append any errors to the config.log.
7363 cat conftest.err 1>&5
7364 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7366 if diff conftest.exp conftest.er2 >/dev/null; then
7367 lt_prog_compiler_static_works=yes
7369 else
7370 lt_prog_compiler_static_works=yes
7373 $rm conftest*
7374 LDFLAGS="$save_LDFLAGS"
7377 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7378 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7380 if test x"$lt_prog_compiler_static_works" = xyes; then
7382 else
7383 lt_prog_compiler_static=
7387 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7388 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7389 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392 lt_cv_prog_compiler_c_o=no
7393 $rm -r conftest 2>/dev/null
7394 mkdir conftest
7395 cd conftest
7396 mkdir out
7397 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7399 lt_compiler_flag="-o out/conftest2.$ac_objext"
7400 # Insert the option either (1) after the last *FLAGS variable, or
7401 # (2) before a word containing "conftest.", or (3) at the end.
7402 # Note that $ac_compile itself does not contain backslashes and begins
7403 # with a dollar sign (not a hyphen), so the echo should work correctly.
7404 lt_compile=`echo "$ac_compile" | $SED \
7405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7407 -e 's:$: $lt_compiler_flag:'`
7408 (eval echo "\"\$as_me:7408: $lt_compile\"" >&5)
7409 (eval "$lt_compile" 2>out/conftest.err)
7410 ac_status=$?
7411 cat out/conftest.err >&5
7412 echo "$as_me:7412: \$? = $ac_status" >&5
7413 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7414 then
7415 # The compiler can only warn and ignore the option if not recognized
7416 # So say no if there are warnings
7417 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7418 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7419 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7420 lt_cv_prog_compiler_c_o=yes
7423 chmod u+w . 2>&5
7424 $rm conftest*
7425 # SGI C++ compiler will create directory out/ii_files/ for
7426 # template instantiation
7427 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7428 $rm out/* && rmdir out
7429 cd ..
7430 rmdir conftest
7431 $rm conftest*
7434 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7435 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7438 hard_links="nottested"
7439 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7440 # do not overwrite the value of need_locks provided by the user
7441 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7442 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7443 hard_links=yes
7444 $rm conftest*
7445 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7446 touch conftest.a
7447 ln conftest.a conftest.b 2>&5 || hard_links=no
7448 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7449 { echo "$as_me:$LINENO: result: $hard_links" >&5
7450 echo "${ECHO_T}$hard_links" >&6; }
7451 if test "$hard_links" = no; then
7452 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7453 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7454 need_locks=warn
7456 else
7457 need_locks=no
7460 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7461 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7463 runpath_var=
7464 allow_undefined_flag=
7465 enable_shared_with_static_runtimes=no
7466 archive_cmds=
7467 archive_expsym_cmds=
7468 old_archive_From_new_cmds=
7469 old_archive_from_expsyms_cmds=
7470 export_dynamic_flag_spec=
7471 whole_archive_flag_spec=
7472 thread_safe_flag_spec=
7473 hardcode_libdir_flag_spec=
7474 hardcode_libdir_flag_spec_ld=
7475 hardcode_libdir_separator=
7476 hardcode_direct=no
7477 hardcode_minus_L=no
7478 hardcode_shlibpath_var=unsupported
7479 link_all_deplibs=unknown
7480 hardcode_automatic=no
7481 module_cmds=
7482 module_expsym_cmds=
7483 always_export_symbols=no
7484 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7485 # include_expsyms should be a list of space-separated symbols to be *always*
7486 # included in the symbol list
7487 include_expsyms=
7488 # exclude_expsyms can be an extended regexp of symbols to exclude
7489 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7490 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7491 # as well as any symbol that contains `d'.
7492 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7493 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7494 # platforms (ab)use it in PIC code, but their linkers get confused if
7495 # the symbol is explicitly referenced. Since portable code cannot
7496 # rely on this symbol name, it's probably fine to never include it in
7497 # preloaded symbol tables.
7498 extract_expsyms_cmds=
7499 # Just being paranoid about ensuring that cc_basename is set.
7500 for cc_temp in $compiler""; do
7501 case $cc_temp in
7502 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7503 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7504 \-*) ;;
7505 *) break;;
7506 esac
7507 done
7508 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7510 case $host_os in
7511 cygwin* | mingw* | pw32*)
7512 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7513 # When not using gcc, we currently assume that we are using
7514 # Microsoft Visual C++.
7515 if test "$GCC" != yes; then
7516 with_gnu_ld=no
7519 interix*)
7520 # we just hope/assume this is gcc and not c89 (= MSVC++)
7521 with_gnu_ld=yes
7523 openbsd*)
7524 with_gnu_ld=no
7526 esac
7528 ld_shlibs=yes
7529 if test "$with_gnu_ld" = yes; then
7530 # If archive_cmds runs LD, not CC, wlarc should be empty
7531 wlarc='${wl}'
7533 # Set some defaults for GNU ld with shared library support. These
7534 # are reset later if shared libraries are not supported. Putting them
7535 # here allows them to be overridden if necessary.
7536 runpath_var=LD_RUN_PATH
7537 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7538 export_dynamic_flag_spec='${wl}--export-dynamic'
7539 # ancient GNU ld didn't support --whole-archive et. al.
7540 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7541 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7542 else
7543 whole_archive_flag_spec=
7545 supports_anon_versioning=no
7546 case `$LD -v 2>/dev/null` in
7547 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7548 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7549 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7550 *\ 2.11.*) ;; # other 2.11 versions
7551 *) supports_anon_versioning=yes ;;
7552 esac
7554 # See if GNU ld supports shared libraries.
7555 case $host_os in
7556 aix3* | aix4* | aix5*)
7557 # On AIX/PPC, the GNU linker is very broken
7558 if test "$host_cpu" != ia64; then
7559 ld_shlibs=no
7560 cat <<EOF 1>&2
7562 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7563 *** to be unable to reliably create shared libraries on AIX.
7564 *** Therefore, libtool is disabling shared libraries support. If you
7565 *** really care for shared libraries, you may want to modify your PATH
7566 *** so that a non-GNU linker is found, and then restart.
7572 amigaos*)
7573 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)'
7574 hardcode_libdir_flag_spec='-L$libdir'
7575 hardcode_minus_L=yes
7577 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7578 # that the semantics of dynamic libraries on AmigaOS, at least up
7579 # to version 4, is to share data among multiple programs linked
7580 # with the same dynamic library. Since this doesn't match the
7581 # behavior of shared libraries on other platforms, we can't use
7582 # them.
7583 ld_shlibs=no
7586 beos*)
7587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7588 allow_undefined_flag=unsupported
7589 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7590 # support --undefined. This deserves some investigation. FIXME
7591 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7592 else
7593 ld_shlibs=no
7597 cygwin* | mingw* | pw32*)
7598 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7599 # as there is no search path for DLLs.
7600 hardcode_libdir_flag_spec='-L$libdir'
7601 allow_undefined_flag=unsupported
7602 always_export_symbols=no
7603 enable_shared_with_static_runtimes=yes
7604 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7606 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7608 # If the export-symbols file already is a .def file (1st line
7609 # is EXPORTS), use it as is; otherwise, prepend...
7610 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7611 cp $export_symbols $output_objdir/$soname.def;
7612 else
7613 echo EXPORTS > $output_objdir/$soname.def;
7614 cat $export_symbols >> $output_objdir/$soname.def;
7616 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7617 else
7618 ld_shlibs=no
7622 interix3*)
7623 hardcode_direct=no
7624 hardcode_shlibpath_var=no
7625 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7626 export_dynamic_flag_spec='${wl}-E'
7627 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7628 # Instead, shared libraries are loaded at an image base (0x10000000 by
7629 # default) and relocated if they conflict, which is a slow very memory
7630 # consuming and fragmenting process. To avoid this, we pick a random,
7631 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7632 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7633 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7634 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'
7637 linux*)
7638 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7639 tmp_addflag=
7640 case $cc_basename,$host_cpu in
7641 pgcc*) # Portland Group C compiler
7642 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'
7643 tmp_addflag=' $pic_flag'
7645 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7646 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'
7647 tmp_addflag=' $pic_flag -Mnomain' ;;
7648 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7649 tmp_addflag=' -i_dynamic' ;;
7650 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7651 tmp_addflag=' -i_dynamic -nofor_main' ;;
7652 ifc* | ifort*) # Intel Fortran compiler
7653 tmp_addflag=' -nofor_main' ;;
7654 esac
7655 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7657 if test $supports_anon_versioning = yes; then
7658 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7659 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7660 $echo "local: *; };" >> $output_objdir/$libname.ver~
7661 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7663 else
7664 ld_shlibs=no
7668 netbsd*)
7669 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7670 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7671 wlarc=
7672 else
7673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7674 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7678 solaris*)
7679 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7680 ld_shlibs=no
7681 cat <<EOF 1>&2
7683 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7684 *** create shared libraries on Solaris systems. Therefore, libtool
7685 *** is disabling shared libraries support. We urge you to upgrade GNU
7686 *** binutils to release 2.9.1 or newer. Another option is to modify
7687 *** your PATH or compiler configuration so that the native linker is
7688 *** used, and then restart.
7691 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7693 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7694 else
7695 ld_shlibs=no
7699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7700 case `$LD -v 2>&1` in
7701 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7702 ld_shlibs=no
7703 cat <<_LT_EOF 1>&2
7705 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7706 *** reliably create shared libraries on SCO systems. Therefore, libtool
7707 *** is disabling shared libraries support. We urge you to upgrade GNU
7708 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7709 *** your PATH or compiler configuration so that the native linker is
7710 *** used, and then restart.
7712 _LT_EOF
7715 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7716 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7718 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7719 else
7720 ld_shlibs=no
7723 esac
7726 sunos4*)
7727 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7728 wlarc=
7729 hardcode_direct=yes
7730 hardcode_shlibpath_var=no
7734 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7736 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7737 else
7738 ld_shlibs=no
7741 esac
7743 if test "$ld_shlibs" = no; then
7744 runpath_var=
7745 hardcode_libdir_flag_spec=
7746 export_dynamic_flag_spec=
7747 whole_archive_flag_spec=
7749 else
7750 # PORTME fill in a description of your system's linker (not GNU ld)
7751 case $host_os in
7752 aix3*)
7753 allow_undefined_flag=unsupported
7754 always_export_symbols=yes
7755 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'
7756 # Note: this linker hardcodes the directories in LIBPATH if there
7757 # are no directories specified by -L.
7758 hardcode_minus_L=yes
7759 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7760 # Neither direct hardcoding nor static linking is supported with a
7761 # broken collect2.
7762 hardcode_direct=unsupported
7766 aix4* | aix5*)
7767 if test "$host_cpu" = ia64; then
7768 # On IA64, the linker does run time linking by default, so we don't
7769 # have to do anything special.
7770 aix_use_runtimelinking=no
7771 exp_sym_flag='-Bexport'
7772 no_entry_flag=""
7773 else
7774 # If we're using GNU nm, then we don't want the "-C" option.
7775 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7776 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7777 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'
7778 else
7779 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'
7781 aix_use_runtimelinking=no
7783 # Test if we are trying to use run time linking or normal
7784 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7785 # need to do runtime linking.
7786 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7787 for ld_flag in $LDFLAGS; do
7788 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7789 aix_use_runtimelinking=yes
7790 break
7792 done
7794 esac
7796 exp_sym_flag='-bexport'
7797 no_entry_flag='-bnoentry'
7800 # When large executables or shared objects are built, AIX ld can
7801 # have problems creating the table of contents. If linking a library
7802 # or program results in "error TOC overflow" add -mminimal-toc to
7803 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7804 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7806 archive_cmds=''
7807 hardcode_direct=yes
7808 hardcode_libdir_separator=':'
7809 link_all_deplibs=yes
7811 if test "$GCC" = yes; then
7812 case $host_os in aix4.[012]|aix4.[012].*)
7813 # We only want to do this on AIX 4.2 and lower, the check
7814 # below for broken collect2 doesn't work under 4.3+
7815 collect2name=`${CC} -print-prog-name=collect2`
7816 if test -f "$collect2name" && \
7817 strings "$collect2name" | grep resolve_lib_name >/dev/null
7818 then
7819 # We have reworked collect2
7820 hardcode_direct=yes
7821 else
7822 # We have old collect2
7823 hardcode_direct=unsupported
7824 # It fails to find uninstalled libraries when the uninstalled
7825 # path is not listed in the libpath. Setting hardcode_minus_L
7826 # to unsupported forces relinking
7827 hardcode_minus_L=yes
7828 hardcode_libdir_flag_spec='-L$libdir'
7829 hardcode_libdir_separator=
7832 esac
7833 shared_flag='-shared'
7834 if test "$aix_use_runtimelinking" = yes; then
7835 shared_flag="$shared_flag "'${wl}-G'
7837 else
7838 # not using gcc
7839 if test "$host_cpu" = ia64; then
7840 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7841 # chokes on -Wl,-G. The following line is correct:
7842 shared_flag='-G'
7843 else
7844 if test "$aix_use_runtimelinking" = yes; then
7845 shared_flag='${wl}-G'
7846 else
7847 shared_flag='${wl}-bM:SRE'
7852 # It seems that -bexpall does not export symbols beginning with
7853 # underscore (_), so it is better to generate a list of symbols to export.
7854 always_export_symbols=yes
7855 if test "$aix_use_runtimelinking" = yes; then
7856 # Warning - without using the other runtime loading flags (-brtl),
7857 # -berok will link without error, but may produce a broken library.
7858 allow_undefined_flag='-berok'
7859 # Determine the default libpath from the value encoded in an empty executable.
7860 cat >conftest.$ac_ext <<_ACEOF
7861 /* confdefs.h. */
7862 _ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7868 main ()
7872 return 0;
7874 _ACEOF
7875 rm -f conftest.$ac_objext conftest$ac_exeext
7876 if { (ac_try="$ac_link"
7877 case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7880 esac
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_link") 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && {
7889 test -z "$ac_c_werror_flag" ||
7890 test ! -s conftest.err
7891 } && test -s conftest$ac_exeext &&
7892 $as_test_x conftest$ac_exeext; then
7894 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7896 # Check for a 64-bit object if we didn't find anything.
7897 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7898 }'`; fi
7899 else
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7907 conftest$ac_exeext conftest.$ac_ext
7908 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7910 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7911 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7912 else
7913 if test "$host_cpu" = ia64; then
7914 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7915 allow_undefined_flag="-z nodefs"
7916 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"
7917 else
7918 # Determine the default libpath from the value encoded in an empty executable.
7919 cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h. */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7927 main ()
7931 return 0;
7933 _ACEOF
7934 rm -f conftest.$ac_objext conftest$ac_exeext
7935 if { (ac_try="$ac_link"
7936 case "(($ac_try" in
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7939 esac
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_link") 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } && {
7948 test -z "$ac_c_werror_flag" ||
7949 test ! -s conftest.err
7950 } && test -s conftest$ac_exeext &&
7951 $as_test_x conftest$ac_exeext; then
7953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7955 # Check for a 64-bit object if we didn't find anything.
7956 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7957 }'`; fi
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7966 conftest$ac_exeext conftest.$ac_ext
7967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7969 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7970 # Warning - without using the other run time loading flags,
7971 # -berok will link without error, but may produce a broken library.
7972 no_undefined_flag=' ${wl}-bernotok'
7973 allow_undefined_flag=' ${wl}-berok'
7974 # Exported symbols can be pulled into shared objects from archives
7975 whole_archive_flag_spec='$convenience'
7976 archive_cmds_need_lc=yes
7977 # This is similar to how AIX traditionally builds its shared libraries.
7978 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'
7983 amigaos*)
7984 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)'
7985 hardcode_libdir_flag_spec='-L$libdir'
7986 hardcode_minus_L=yes
7987 # see comment about different semantics on the GNU ld section
7988 ld_shlibs=no
7991 bsdi[45]*)
7992 export_dynamic_flag_spec=-rdynamic
7995 cygwin* | mingw* | pw32*)
7996 # When not using gcc, we currently assume that we are using
7997 # Microsoft Visual C++.
7998 # hardcode_libdir_flag_spec is actually meaningless, as there is
7999 # no search path for DLLs.
8000 hardcode_libdir_flag_spec=' '
8001 allow_undefined_flag=unsupported
8002 # Tell ltmain to make .lib files, not .a files.
8003 libext=lib
8004 # Tell ltmain to make .dll files, not .so files.
8005 shrext_cmds=".dll"
8006 # FIXME: Setting linknames here is a bad hack.
8007 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8008 # The linker will automatically build a .lib file if we build a DLL.
8009 old_archive_From_new_cmds='true'
8010 # FIXME: Should let the user specify the lib program.
8011 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8012 fix_srcfile_path='`cygpath -w "$srcfile"`'
8013 enable_shared_with_static_runtimes=yes
8016 darwin* | rhapsody*)
8017 case $host_os in
8018 rhapsody* | darwin1.[012])
8019 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8021 *) # Darwin 1.3 on
8022 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8023 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8024 else
8025 case ${MACOSX_DEPLOYMENT_TARGET} in
8026 10.[012])
8027 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8029 10.*)
8030 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8032 esac
8035 esac
8036 archive_cmds_need_lc=no
8037 hardcode_direct=no
8038 hardcode_automatic=yes
8039 hardcode_shlibpath_var=unsupported
8040 whole_archive_flag_spec=''
8041 link_all_deplibs=yes
8042 if test "$GCC" = yes ; then
8043 output_verbose_link_cmd='echo'
8044 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8045 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8046 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8047 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8048 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8049 else
8050 case $cc_basename in
8051 xlc*)
8052 output_verbose_link_cmd='echo'
8053 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8054 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8055 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8056 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8057 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8060 ld_shlibs=no
8062 esac
8066 dgux*)
8067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8068 hardcode_libdir_flag_spec='-L$libdir'
8069 hardcode_shlibpath_var=no
8072 freebsd1*)
8073 ld_shlibs=no
8076 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8077 # support. Future versions do this automatically, but an explicit c++rt0.o
8078 # does not break anything, and helps significantly (at the cost of a little
8079 # extra space).
8080 freebsd2.2*)
8081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8082 hardcode_libdir_flag_spec='-R$libdir'
8083 hardcode_direct=yes
8084 hardcode_shlibpath_var=no
8087 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8088 freebsd2*)
8089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8090 hardcode_direct=yes
8091 hardcode_minus_L=yes
8092 hardcode_shlibpath_var=no
8095 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8096 freebsd* | kfreebsd*-gnu | dragonfly*)
8097 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8098 hardcode_libdir_flag_spec='-R$libdir'
8099 hardcode_direct=yes
8100 hardcode_shlibpath_var=no
8103 hpux9*)
8104 if test "$GCC" = yes; then
8105 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'
8106 else
8107 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'
8109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8110 hardcode_libdir_separator=:
8111 hardcode_direct=yes
8113 # hardcode_minus_L: Not really in the search PATH,
8114 # but as the default location of the library.
8115 hardcode_minus_L=yes
8116 export_dynamic_flag_spec='${wl}-E'
8119 hpux10*)
8120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8121 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8122 else
8123 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8125 if test "$with_gnu_ld" = no; then
8126 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8127 hardcode_libdir_separator=:
8129 hardcode_direct=yes
8130 export_dynamic_flag_spec='${wl}-E'
8132 # hardcode_minus_L: Not really in the search PATH,
8133 # but as the default location of the library.
8134 hardcode_minus_L=yes
8138 hpux11*)
8139 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8140 case $host_cpu in
8141 hppa*64*)
8142 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8144 ia64*)
8145 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8148 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8150 esac
8151 else
8152 case $host_cpu in
8153 hppa*64*)
8154 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8156 ia64*)
8157 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8160 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8162 esac
8164 if test "$with_gnu_ld" = no; then
8165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8166 hardcode_libdir_separator=:
8168 case $host_cpu in
8169 hppa*64*|ia64*)
8170 hardcode_libdir_flag_spec_ld='+b $libdir'
8171 hardcode_direct=no
8172 hardcode_shlibpath_var=no
8175 hardcode_direct=yes
8176 export_dynamic_flag_spec='${wl}-E'
8178 # hardcode_minus_L: Not really in the search PATH,
8179 # but as the default location of the library.
8180 hardcode_minus_L=yes
8182 esac
8186 irix5* | irix6* | nonstopux*)
8187 if test "$GCC" = yes; then
8188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8189 else
8190 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8191 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8194 hardcode_libdir_separator=:
8195 link_all_deplibs=yes
8198 netbsd*)
8199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8201 else
8202 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8204 hardcode_libdir_flag_spec='-R$libdir'
8205 hardcode_direct=yes
8206 hardcode_shlibpath_var=no
8209 newsos6)
8210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8211 hardcode_direct=yes
8212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8213 hardcode_libdir_separator=:
8214 hardcode_shlibpath_var=no
8217 openbsd*)
8218 hardcode_direct=yes
8219 hardcode_shlibpath_var=no
8220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8221 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8222 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8223 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8224 export_dynamic_flag_spec='${wl}-E'
8225 else
8226 case $host_os in
8227 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8228 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8229 hardcode_libdir_flag_spec='-R$libdir'
8232 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8235 esac
8239 os2*)
8240 hardcode_libdir_flag_spec='-L$libdir'
8241 hardcode_minus_L=yes
8242 allow_undefined_flag=unsupported
8243 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'
8244 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8247 osf3*)
8248 if test "$GCC" = yes; then
8249 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8250 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8251 else
8252 allow_undefined_flag=' -expect_unresolved \*'
8253 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8256 hardcode_libdir_separator=:
8259 osf4* | osf5*) # as osf3* with the addition of -msym flag
8260 if test "$GCC" = yes; then
8261 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8262 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8264 else
8265 allow_undefined_flag=' -expect_unresolved \*'
8266 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8267 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8268 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8270 # Both c and cxx compiler support -rpath directly
8271 hardcode_libdir_flag_spec='-rpath $libdir'
8273 hardcode_libdir_separator=:
8276 solaris*)
8277 no_undefined_flag=' -z text'
8278 if test "$GCC" = yes; then
8279 wlarc='${wl}'
8280 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8281 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8282 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8283 else
8284 wlarc=''
8285 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8286 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8287 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8289 hardcode_libdir_flag_spec='-R$libdir'
8290 hardcode_shlibpath_var=no
8291 case $host_os in
8292 solaris2.[0-5] | solaris2.[0-5].*) ;;
8294 # The compiler driver will combine linker options so we
8295 # cannot just pass the convience library names through
8296 # without $wl, iff we do not link with $LD.
8297 # Luckily, gcc supports the same syntax we need for Sun Studio.
8298 # Supported since Solaris 2.6 (maybe 2.5.1?)
8299 case $wlarc in
8301 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8303 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8304 esac ;;
8305 esac
8306 link_all_deplibs=yes
8309 sunos4*)
8310 if test "x$host_vendor" = xsequent; then
8311 # Use $CC to link under sequent, because it throws in some extra .o
8312 # files that make .init and .fini sections work.
8313 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8314 else
8315 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8317 hardcode_libdir_flag_spec='-L$libdir'
8318 hardcode_direct=yes
8319 hardcode_minus_L=yes
8320 hardcode_shlibpath_var=no
8323 sysv4)
8324 case $host_vendor in
8325 sni)
8326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8327 hardcode_direct=yes # is this really true???
8329 siemens)
8330 ## LD is ld it makes a PLAMLIB
8331 ## CC just makes a GrossModule.
8332 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8333 reload_cmds='$CC -r -o $output$reload_objs'
8334 hardcode_direct=no
8336 motorola)
8337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8338 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8340 esac
8341 runpath_var='LD_RUN_PATH'
8342 hardcode_shlibpath_var=no
8345 sysv4.3*)
8346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8347 hardcode_shlibpath_var=no
8348 export_dynamic_flag_spec='-Bexport'
8351 sysv4*MP*)
8352 if test -d /usr/nec; then
8353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8354 hardcode_shlibpath_var=no
8355 runpath_var=LD_RUN_PATH
8356 hardcode_runpath_var=yes
8357 ld_shlibs=yes
8361 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8362 no_undefined_flag='${wl}-z,text'
8363 archive_cmds_need_lc=no
8364 hardcode_shlibpath_var=no
8365 runpath_var='LD_RUN_PATH'
8367 if test "$GCC" = yes; then
8368 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8369 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8370 else
8371 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8372 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8376 sysv5* | sco3.2v5* | sco5v6*)
8377 # Note: We can NOT use -z defs as we might desire, because we do not
8378 # link with -lc, and that would cause any symbols used from libc to
8379 # always be unresolved, which means just about no library would
8380 # ever link correctly. If we're not using GNU ld we use -z text
8381 # though, which does catch some bad symbols but isn't as heavy-handed
8382 # as -z defs.
8383 no_undefined_flag='${wl}-z,text'
8384 allow_undefined_flag='${wl}-z,nodefs'
8385 archive_cmds_need_lc=no
8386 hardcode_shlibpath_var=no
8387 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8388 hardcode_libdir_separator=':'
8389 link_all_deplibs=yes
8390 export_dynamic_flag_spec='${wl}-Bexport'
8391 runpath_var='LD_RUN_PATH'
8393 if test "$GCC" = yes; then
8394 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8395 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8396 else
8397 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8398 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8402 uts4*)
8403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8404 hardcode_libdir_flag_spec='-L$libdir'
8405 hardcode_shlibpath_var=no
8409 ld_shlibs=no
8411 esac
8414 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8415 echo "${ECHO_T}$ld_shlibs" >&6; }
8416 test "$ld_shlibs" = no && can_build_shared=no
8419 # Do we need to explicitly link libc?
8421 case "x$archive_cmds_need_lc" in
8422 x|xyes)
8423 # Assume -lc should be added
8424 archive_cmds_need_lc=yes
8426 if test "$enable_shared" = yes && test "$GCC" = yes; then
8427 case $archive_cmds in
8428 *'~'*)
8429 # FIXME: we may have to deal with multi-command sequences.
8431 '$CC '*)
8432 # Test whether the compiler implicitly links with -lc since on some
8433 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8434 # to ld, don't add -lc before -lgcc.
8435 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8436 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8437 $rm conftest*
8438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8441 (eval $ac_compile) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } 2>conftest.err; then
8445 soname=conftest
8446 lib=conftest
8447 libobjs=conftest.$ac_objext
8448 deplibs=
8449 wl=$lt_prog_compiler_wl
8450 pic_flag=$lt_prog_compiler_pic
8451 compiler_flags=-v
8452 linker_flags=-v
8453 verstring=
8454 output_objdir=.
8455 libname=conftest
8456 lt_save_allow_undefined_flag=$allow_undefined_flag
8457 allow_undefined_flag=
8458 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8459 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }
8463 then
8464 archive_cmds_need_lc=no
8465 else
8466 archive_cmds_need_lc=yes
8468 allow_undefined_flag=$lt_save_allow_undefined_flag
8469 else
8470 cat conftest.err 1>&5
8472 $rm conftest*
8473 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8474 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8476 esac
8479 esac
8481 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8482 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8483 library_names_spec=
8484 libname_spec='lib$name'
8485 soname_spec=
8486 shrext_cmds=".so"
8487 postinstall_cmds=
8488 postuninstall_cmds=
8489 finish_cmds=
8490 finish_eval=
8491 shlibpath_var=
8492 shlibpath_overrides_runpath=unknown
8493 version_type=none
8494 dynamic_linker="$host_os ld.so"
8495 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8496 if test "$GCC" = yes; then
8497 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8498 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8499 # if the path contains ";" then we assume it to be the separator
8500 # otherwise default to the standard path separator (i.e. ":") - it is
8501 # assumed that no part of a normal pathname contains ";" but that should
8502 # okay in the real world where ";" in dirpaths is itself problematic.
8503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8504 else
8505 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8507 else
8508 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8510 need_lib_prefix=unknown
8511 hardcode_into_libs=no
8513 # when you set need_version to no, make sure it does not cause -set_version
8514 # flags to be left without arguments
8515 need_version=unknown
8517 case $host_os in
8518 aix3*)
8519 version_type=linux
8520 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8521 shlibpath_var=LIBPATH
8523 # AIX 3 has no versioning support, so we append a major version to the name.
8524 soname_spec='${libname}${release}${shared_ext}$major'
8527 aix4* | aix5*)
8528 version_type=linux
8529 need_lib_prefix=no
8530 need_version=no
8531 hardcode_into_libs=yes
8532 if test "$host_cpu" = ia64; then
8533 # AIX 5 supports IA64
8534 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8535 shlibpath_var=LD_LIBRARY_PATH
8536 else
8537 # With GCC up to 2.95.x, collect2 would create an import file
8538 # for dependence libraries. The import file would start with
8539 # the line `#! .'. This would cause the generated library to
8540 # depend on `.', always an invalid library. This was fixed in
8541 # development snapshots of GCC prior to 3.0.
8542 case $host_os in
8543 aix4 | aix4.[01] | aix4.[01].*)
8544 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8545 echo ' yes '
8546 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8548 else
8549 can_build_shared=no
8552 esac
8553 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8554 # soname into executable. Probably we can add versioning support to
8555 # collect2, so additional links can be useful in future.
8556 if test "$aix_use_runtimelinking" = yes; then
8557 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8558 # instead of lib<name>.a to let people know that these are not
8559 # typical AIX shared libraries.
8560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8561 else
8562 # We preserve .a as extension for shared libraries through AIX4.2
8563 # and later when we are not doing run time linking.
8564 library_names_spec='${libname}${release}.a $libname.a'
8565 soname_spec='${libname}${release}${shared_ext}$major'
8567 shlibpath_var=LIBPATH
8571 amigaos*)
8572 library_names_spec='$libname.ixlibrary $libname.a'
8573 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8574 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'
8577 beos*)
8578 library_names_spec='${libname}${shared_ext}'
8579 dynamic_linker="$host_os ld.so"
8580 shlibpath_var=LIBRARY_PATH
8583 bsdi[45]*)
8584 version_type=linux
8585 need_version=no
8586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8587 soname_spec='${libname}${release}${shared_ext}$major'
8588 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8589 shlibpath_var=LD_LIBRARY_PATH
8590 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8591 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8592 # the default ld.so.conf also contains /usr/contrib/lib and
8593 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8594 # libtool to hard-code these into programs
8597 cygwin* | mingw* | pw32*)
8598 version_type=windows
8599 shrext_cmds=".dll"
8600 need_version=no
8601 need_lib_prefix=no
8603 case $GCC,$host_os in
8604 yes,cygwin* | yes,mingw* | yes,pw32*)
8605 library_names_spec='$libname.dll.a'
8606 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8607 postinstall_cmds='base_file=`basename \${file}`~
8608 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8609 dldir=$destdir/`dirname \$dlpath`~
8610 test -d \$dldir || mkdir -p \$dldir~
8611 $install_prog $dir/$dlname \$dldir/$dlname~
8612 chmod a+x \$dldir/$dlname'
8613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8614 dlpath=$dir/\$dldll~
8615 $rm \$dlpath'
8616 shlibpath_overrides_runpath=yes
8618 case $host_os in
8619 cygwin*)
8620 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8621 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
8622 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
8623 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8625 mingw*)
8626 # MinGW DLLs use traditional 'lib' prefix
8627 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
8628 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
8629 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8630 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8631 # It is most probably a Windows format PATH printed by
8632 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8633 # path with ; separators, and with drive letters. We can handle the
8634 # drive letters (cygwin fileutils understands them), so leave them,
8635 # especially as we might pass files found there to a mingw objdump,
8636 # which wouldn't understand a cygwinified path. Ahh.
8637 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8638 else
8639 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8642 pw32*)
8643 # pw32 DLLs use 'pw' prefix rather than 'lib'
8644 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8646 esac
8650 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8652 esac
8653 dynamic_linker='Win32 ld.exe'
8654 # FIXME: first we should search . and the directory the executable is in
8655 shlibpath_var=PATH
8658 darwin* | rhapsody*)
8659 dynamic_linker="$host_os dyld"
8660 version_type=darwin
8661 need_lib_prefix=no
8662 need_version=no
8663 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8664 soname_spec='${libname}${release}${major}$shared_ext'
8665 shlibpath_overrides_runpath=yes
8666 shlibpath_var=DYLD_LIBRARY_PATH
8667 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8668 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8669 if test "$GCC" = yes; then
8670 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8671 else
8672 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8674 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8677 dgux*)
8678 version_type=linux
8679 need_lib_prefix=no
8680 need_version=no
8681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8682 soname_spec='${libname}${release}${shared_ext}$major'
8683 shlibpath_var=LD_LIBRARY_PATH
8686 freebsd1*)
8687 dynamic_linker=no
8690 kfreebsd*-gnu)
8691 version_type=linux
8692 need_lib_prefix=no
8693 need_version=no
8694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8695 soname_spec='${libname}${release}${shared_ext}$major'
8696 shlibpath_var=LD_LIBRARY_PATH
8697 shlibpath_overrides_runpath=no
8698 hardcode_into_libs=yes
8699 dynamic_linker='GNU ld.so'
8702 freebsd* | dragonfly*)
8703 # DragonFly does not have aout. When/if they implement a new
8704 # versioning mechanism, adjust this.
8705 if test -x /usr/bin/objformat; then
8706 objformat=`/usr/bin/objformat`
8707 else
8708 case $host_os in
8709 freebsd[123]*) objformat=aout ;;
8710 *) objformat=elf ;;
8711 esac
8713 version_type=freebsd-$objformat
8714 case $version_type in
8715 freebsd-elf*)
8716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8717 need_version=no
8718 need_lib_prefix=no
8720 freebsd-*)
8721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8722 need_version=yes
8724 esac
8725 shlibpath_var=LD_LIBRARY_PATH
8726 case $host_os in
8727 freebsd2*)
8728 shlibpath_overrides_runpath=yes
8730 freebsd3.[01]* | freebsdelf3.[01]*)
8731 shlibpath_overrides_runpath=yes
8732 hardcode_into_libs=yes
8734 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8735 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8736 shlibpath_overrides_runpath=no
8737 hardcode_into_libs=yes
8739 freebsd*) # from 4.6 on
8740 shlibpath_overrides_runpath=yes
8741 hardcode_into_libs=yes
8743 esac
8746 gnu*)
8747 version_type=linux
8748 need_lib_prefix=no
8749 need_version=no
8750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8751 soname_spec='${libname}${release}${shared_ext}$major'
8752 shlibpath_var=LD_LIBRARY_PATH
8753 hardcode_into_libs=yes
8756 hpux9* | hpux10* | hpux11*)
8757 # Give a soname corresponding to the major version so that dld.sl refuses to
8758 # link against other versions.
8759 version_type=sunos
8760 need_lib_prefix=no
8761 need_version=no
8762 case $host_cpu in
8763 ia64*)
8764 shrext_cmds='.so'
8765 hardcode_into_libs=yes
8766 dynamic_linker="$host_os dld.so"
8767 shlibpath_var=LD_LIBRARY_PATH
8768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8770 soname_spec='${libname}${release}${shared_ext}$major'
8771 if test "X$HPUX_IA64_MODE" = X32; then
8772 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8773 else
8774 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8776 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8778 hppa*64*)
8779 shrext_cmds='.sl'
8780 hardcode_into_libs=yes
8781 dynamic_linker="$host_os dld.sl"
8782 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8783 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8785 soname_spec='${libname}${release}${shared_ext}$major'
8786 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8790 shrext_cmds='.sl'
8791 dynamic_linker="$host_os dld.sl"
8792 shlibpath_var=SHLIB_PATH
8793 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8795 soname_spec='${libname}${release}${shared_ext}$major'
8797 esac
8798 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8799 postinstall_cmds='chmod 555 $lib'
8802 interix3*)
8803 version_type=linux
8804 need_lib_prefix=no
8805 need_version=no
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8807 soname_spec='${libname}${release}${shared_ext}$major'
8808 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8809 shlibpath_var=LD_LIBRARY_PATH
8810 shlibpath_overrides_runpath=no
8811 hardcode_into_libs=yes
8814 irix5* | irix6* | nonstopux*)
8815 case $host_os in
8816 nonstopux*) version_type=nonstopux ;;
8818 if test "$lt_cv_prog_gnu_ld" = yes; then
8819 version_type=linux
8820 else
8821 version_type=irix
8822 fi ;;
8823 esac
8824 need_lib_prefix=no
8825 need_version=no
8826 soname_spec='${libname}${release}${shared_ext}$major'
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8828 case $host_os in
8829 irix5* | nonstopux*)
8830 libsuff= shlibsuff=
8833 case $LD in # libtool.m4 will add one of these switches to LD
8834 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8835 libsuff= shlibsuff= libmagic=32-bit;;
8836 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8837 libsuff=32 shlibsuff=N32 libmagic=N32;;
8838 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8839 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8840 *) libsuff= shlibsuff= libmagic=never-match;;
8841 esac
8843 esac
8844 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8845 shlibpath_overrides_runpath=no
8846 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8847 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8848 hardcode_into_libs=yes
8851 # No shared lib support for Linux oldld, aout, or coff.
8852 linux*oldld* | linux*aout* | linux*coff*)
8853 dynamic_linker=no
8856 # This must be Linux ELF.
8857 linux*)
8858 version_type=linux
8859 need_lib_prefix=no
8860 need_version=no
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8862 soname_spec='${libname}${release}${shared_ext}$major'
8863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8864 shlibpath_var=LD_LIBRARY_PATH
8865 shlibpath_overrides_runpath=no
8866 # This implies no fast_install, which is unacceptable.
8867 # Some rework will be needed to allow for fast_install
8868 # before this can be enabled.
8869 hardcode_into_libs=yes
8871 # Append ld.so.conf contents to the search path
8872 if test -f /etc/ld.so.conf; then
8873 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8874 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8877 # We used to test for /lib/ld.so.1 and disable shared libraries on
8878 # powerpc, because MkLinux only supported shared libraries with the
8879 # GNU dynamic linker. Since this was broken with cross compilers,
8880 # most powerpc-linux boxes support dynamic linking these days and
8881 # people can always --disable-shared, the test was removed, and we
8882 # assume the GNU/Linux dynamic linker is in use.
8883 dynamic_linker='GNU/Linux ld.so'
8886 knetbsd*-gnu)
8887 version_type=linux
8888 need_lib_prefix=no
8889 need_version=no
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8891 soname_spec='${libname}${release}${shared_ext}$major'
8892 shlibpath_var=LD_LIBRARY_PATH
8893 shlibpath_overrides_runpath=no
8894 hardcode_into_libs=yes
8895 dynamic_linker='GNU ld.so'
8898 netbsd*)
8899 version_type=sunos
8900 need_lib_prefix=no
8901 need_version=no
8902 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8905 dynamic_linker='NetBSD (a.out) ld.so'
8906 else
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 dynamic_linker='NetBSD ld.elf_so'
8911 shlibpath_var=LD_LIBRARY_PATH
8912 shlibpath_overrides_runpath=yes
8913 hardcode_into_libs=yes
8916 newsos6)
8917 version_type=linux
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8919 shlibpath_var=LD_LIBRARY_PATH
8920 shlibpath_overrides_runpath=yes
8923 nto-qnx*)
8924 version_type=linux
8925 need_lib_prefix=no
8926 need_version=no
8927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8928 soname_spec='${libname}${release}${shared_ext}$major'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath=yes
8933 openbsd*)
8934 version_type=sunos
8935 sys_lib_dlsearch_path_spec="/usr/lib"
8936 need_lib_prefix=no
8937 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8938 case $host_os in
8939 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8940 *) need_version=no ;;
8941 esac
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8944 shlibpath_var=LD_LIBRARY_PATH
8945 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8946 case $host_os in
8947 openbsd2.[89] | openbsd2.[89].*)
8948 shlibpath_overrides_runpath=no
8951 shlibpath_overrides_runpath=yes
8953 esac
8954 else
8955 shlibpath_overrides_runpath=yes
8959 os2*)
8960 libname_spec='$name'
8961 shrext_cmds=".dll"
8962 need_lib_prefix=no
8963 library_names_spec='$libname${shared_ext} $libname.a'
8964 dynamic_linker='OS/2 ld.exe'
8965 shlibpath_var=LIBPATH
8968 osf3* | osf4* | osf5*)
8969 version_type=osf
8970 need_lib_prefix=no
8971 need_version=no
8972 soname_spec='${libname}${release}${shared_ext}$major'
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8974 shlibpath_var=LD_LIBRARY_PATH
8975 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8976 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8979 solaris*)
8980 version_type=linux
8981 need_lib_prefix=no
8982 need_version=no
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8984 soname_spec='${libname}${release}${shared_ext}$major'
8985 shlibpath_var=LD_LIBRARY_PATH
8986 shlibpath_overrides_runpath=yes
8987 hardcode_into_libs=yes
8988 # ldd complains unless libraries are executable
8989 postinstall_cmds='chmod +x $lib'
8992 sunos4*)
8993 version_type=sunos
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8995 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8996 shlibpath_var=LD_LIBRARY_PATH
8997 shlibpath_overrides_runpath=yes
8998 if test "$with_gnu_ld" = yes; then
8999 need_lib_prefix=no
9001 need_version=yes
9004 sysv4 | sysv4.3*)
9005 version_type=linux
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 case $host_vendor in
9010 sni)
9011 shlibpath_overrides_runpath=no
9012 need_lib_prefix=no
9013 export_dynamic_flag_spec='${wl}-Blargedynsym'
9014 runpath_var=LD_RUN_PATH
9016 siemens)
9017 need_lib_prefix=no
9019 motorola)
9020 need_lib_prefix=no
9021 need_version=no
9022 shlibpath_overrides_runpath=no
9023 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9025 esac
9028 sysv4*MP*)
9029 if test -d /usr/nec ;then
9030 version_type=linux
9031 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9032 soname_spec='$libname${shared_ext}.$major'
9033 shlibpath_var=LD_LIBRARY_PATH
9037 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9038 version_type=freebsd-elf
9039 need_lib_prefix=no
9040 need_version=no
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 shlibpath_var=LD_LIBRARY_PATH
9044 hardcode_into_libs=yes
9045 if test "$with_gnu_ld" = yes; then
9046 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9047 shlibpath_overrides_runpath=no
9048 else
9049 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9050 shlibpath_overrides_runpath=yes
9051 case $host_os in
9052 sco3.2v5*)
9053 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9055 esac
9057 sys_lib_dlsearch_path_spec='/usr/lib'
9060 uts4*)
9061 version_type=linux
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 shlibpath_var=LD_LIBRARY_PATH
9068 dynamic_linker=no
9070 esac
9071 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9072 echo "${ECHO_T}$dynamic_linker" >&6; }
9073 test "$dynamic_linker" = no && can_build_shared=no
9075 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9076 if test "$GCC" = yes; then
9077 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9080 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9081 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9082 hardcode_action=
9083 if test -n "$hardcode_libdir_flag_spec" || \
9084 test -n "$runpath_var" || \
9085 test "X$hardcode_automatic" = "Xyes" ; then
9087 # We can hardcode non-existant directories.
9088 if test "$hardcode_direct" != no &&
9089 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9090 # have to relink, otherwise we might link with an installed library
9091 # when we should be linking with a yet-to-be-installed one
9092 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9093 test "$hardcode_minus_L" != no; then
9094 # Linking always hardcodes the temporary library directory.
9095 hardcode_action=relink
9096 else
9097 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9098 hardcode_action=immediate
9100 else
9101 # We cannot hardcode anything, or else we can only hardcode existing
9102 # directories.
9103 hardcode_action=unsupported
9105 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9106 echo "${ECHO_T}$hardcode_action" >&6; }
9108 if test "$hardcode_action" = relink; then
9109 # Fast installation is not supported
9110 enable_fast_install=no
9111 elif test "$shlibpath_overrides_runpath" = yes ||
9112 test "$enable_shared" = no; then
9113 # Fast installation is not necessary
9114 enable_fast_install=needless
9117 striplib=
9118 old_striplib=
9119 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9120 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9121 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9122 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9123 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9124 { echo "$as_me:$LINENO: result: yes" >&5
9125 echo "${ECHO_T}yes" >&6; }
9126 else
9127 # FIXME - insert some real tests, host_os isn't really good enough
9128 case $host_os in
9129 darwin*)
9130 if test -n "$STRIP" ; then
9131 striplib="$STRIP -x"
9132 { echo "$as_me:$LINENO: result: yes" >&5
9133 echo "${ECHO_T}yes" >&6; }
9134 else
9135 { echo "$as_me:$LINENO: result: no" >&5
9136 echo "${ECHO_T}no" >&6; }
9140 { echo "$as_me:$LINENO: result: no" >&5
9141 echo "${ECHO_T}no" >&6; }
9143 esac
9146 if test "x$enable_dlopen" != xyes; then
9147 enable_dlopen=unknown
9148 enable_dlopen_self=unknown
9149 enable_dlopen_self_static=unknown
9150 else
9151 lt_cv_dlopen=no
9152 lt_cv_dlopen_libs=
9154 case $host_os in
9155 beos*)
9156 lt_cv_dlopen="load_add_on"
9157 lt_cv_dlopen_libs=
9158 lt_cv_dlopen_self=yes
9161 mingw* | pw32*)
9162 lt_cv_dlopen="LoadLibrary"
9163 lt_cv_dlopen_libs=
9166 cygwin*)
9167 lt_cv_dlopen="dlopen"
9168 lt_cv_dlopen_libs=
9171 darwin*)
9172 # if libdl is installed we need to link against it
9173 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9174 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9175 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178 ac_check_lib_save_LIBS=$LIBS
9179 LIBS="-ldl $LIBS"
9180 cat >conftest.$ac_ext <<_ACEOF
9181 /* confdefs.h. */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9187 /* Override any GCC internal prototype to avoid an error.
9188 Use char because int might match the return type of a GCC
9189 builtin and then its argument prototype would still apply. */
9190 #ifdef __cplusplus
9191 extern "C"
9192 #endif
9193 char dlopen ();
9195 main ()
9197 return dlopen ();
9199 return 0;
9201 _ACEOF
9202 rm -f conftest.$ac_objext conftest$ac_exeext
9203 if { (ac_try="$ac_link"
9204 case "(($ac_try" in
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9207 esac
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_link") 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } && {
9216 test -z "$ac_c_werror_flag" ||
9217 test ! -s conftest.err
9218 } && test -s conftest$ac_exeext &&
9219 $as_test_x conftest$ac_exeext; then
9220 ac_cv_lib_dl_dlopen=yes
9221 else
9222 echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9225 ac_cv_lib_dl_dlopen=no
9228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9229 conftest$ac_exeext conftest.$ac_ext
9230 LIBS=$ac_check_lib_save_LIBS
9232 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9233 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9234 if test $ac_cv_lib_dl_dlopen = yes; then
9235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9236 else
9238 lt_cv_dlopen="dyld"
9239 lt_cv_dlopen_libs=
9240 lt_cv_dlopen_self=yes
9247 { echo "$as_me:$LINENO: checking for shl_load" >&5
9248 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9249 if test "${ac_cv_func_shl_load+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 else
9252 cat >conftest.$ac_ext <<_ACEOF
9253 /* confdefs.h. */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9258 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9260 #define shl_load innocuous_shl_load
9262 /* System header to define __stub macros and hopefully few prototypes,
9263 which can conflict with char shl_load (); below.
9264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9265 <limits.h> exists even on freestanding compilers. */
9267 #ifdef __STDC__
9268 # include <limits.h>
9269 #else
9270 # include <assert.h>
9271 #endif
9273 #undef shl_load
9275 /* Override any GCC internal prototype to avoid an error.
9276 Use char because int might match the return type of a GCC
9277 builtin and then its argument prototype would still apply. */
9278 #ifdef __cplusplus
9279 extern "C"
9280 #endif
9281 char shl_load ();
9282 /* The GNU C library defines this for functions which it implements
9283 to always fail with ENOSYS. Some functions are actually named
9284 something starting with __ and the normal name is an alias. */
9285 #if defined __stub_shl_load || defined __stub___shl_load
9286 choke me
9287 #endif
9290 main ()
9292 return shl_load ();
9294 return 0;
9296 _ACEOF
9297 rm -f conftest.$ac_objext conftest$ac_exeext
9298 if { (ac_try="$ac_link"
9299 case "(($ac_try" in
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9302 esac
9303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304 (eval "$ac_link") 2>conftest.er1
9305 ac_status=$?
9306 grep -v '^ *+' conftest.er1 >conftest.err
9307 rm -f conftest.er1
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } && {
9311 test -z "$ac_c_werror_flag" ||
9312 test ! -s conftest.err
9313 } && test -s conftest$ac_exeext &&
9314 $as_test_x conftest$ac_exeext; then
9315 ac_cv_func_shl_load=yes
9316 else
9317 echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9320 ac_cv_func_shl_load=no
9323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9324 conftest$ac_exeext conftest.$ac_ext
9326 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9327 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9328 if test $ac_cv_func_shl_load = yes; then
9329 lt_cv_dlopen="shl_load"
9330 else
9331 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9332 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9333 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 else
9336 ac_check_lib_save_LIBS=$LIBS
9337 LIBS="-ldld $LIBS"
9338 cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h. */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9345 /* Override any GCC internal prototype to avoid an error.
9346 Use char because int might match the return type of a GCC
9347 builtin and then its argument prototype would still apply. */
9348 #ifdef __cplusplus
9349 extern "C"
9350 #endif
9351 char shl_load ();
9353 main ()
9355 return shl_load ();
9357 return 0;
9359 _ACEOF
9360 rm -f conftest.$ac_objext conftest$ac_exeext
9361 if { (ac_try="$ac_link"
9362 case "(($ac_try" in
9363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9365 esac
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_link") 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } && {
9374 test -z "$ac_c_werror_flag" ||
9375 test ! -s conftest.err
9376 } && test -s conftest$ac_exeext &&
9377 $as_test_x conftest$ac_exeext; then
9378 ac_cv_lib_dld_shl_load=yes
9379 else
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9383 ac_cv_lib_dld_shl_load=no
9386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9387 conftest$ac_exeext conftest.$ac_ext
9388 LIBS=$ac_check_lib_save_LIBS
9390 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9391 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9392 if test $ac_cv_lib_dld_shl_load = yes; then
9393 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9394 else
9395 { echo "$as_me:$LINENO: checking for dlopen" >&5
9396 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9397 if test "${ac_cv_func_dlopen+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 else
9400 cat >conftest.$ac_ext <<_ACEOF
9401 /* confdefs.h. */
9402 _ACEOF
9403 cat confdefs.h >>conftest.$ac_ext
9404 cat >>conftest.$ac_ext <<_ACEOF
9405 /* end confdefs.h. */
9406 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9408 #define dlopen innocuous_dlopen
9410 /* System header to define __stub macros and hopefully few prototypes,
9411 which can conflict with char dlopen (); below.
9412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9413 <limits.h> exists even on freestanding compilers. */
9415 #ifdef __STDC__
9416 # include <limits.h>
9417 #else
9418 # include <assert.h>
9419 #endif
9421 #undef dlopen
9423 /* Override any GCC internal prototype to avoid an error.
9424 Use char because int might match the return type of a GCC
9425 builtin and then its argument prototype would still apply. */
9426 #ifdef __cplusplus
9427 extern "C"
9428 #endif
9429 char dlopen ();
9430 /* The GNU C library defines this for functions which it implements
9431 to always fail with ENOSYS. Some functions are actually named
9432 something starting with __ and the normal name is an alias. */
9433 #if defined __stub_dlopen || defined __stub___dlopen
9434 choke me
9435 #endif
9438 main ()
9440 return dlopen ();
9442 return 0;
9444 _ACEOF
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (ac_try="$ac_link"
9447 case "(($ac_try" in
9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449 *) ac_try_echo=$ac_try;;
9450 esac
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_link") 2>conftest.er1
9453 ac_status=$?
9454 grep -v '^ *+' conftest.er1 >conftest.err
9455 rm -f conftest.er1
9456 cat conftest.err >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } && {
9459 test -z "$ac_c_werror_flag" ||
9460 test ! -s conftest.err
9461 } && test -s conftest$ac_exeext &&
9462 $as_test_x conftest$ac_exeext; then
9463 ac_cv_func_dlopen=yes
9464 else
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9468 ac_cv_func_dlopen=no
9471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9472 conftest$ac_exeext conftest.$ac_ext
9474 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9475 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9476 if test $ac_cv_func_dlopen = yes; then
9477 lt_cv_dlopen="dlopen"
9478 else
9479 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9480 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9481 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484 ac_check_lib_save_LIBS=$LIBS
9485 LIBS="-ldl $LIBS"
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h. */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9493 /* Override any GCC internal prototype to avoid an error.
9494 Use char because int might match the return type of a GCC
9495 builtin and then its argument prototype would still apply. */
9496 #ifdef __cplusplus
9497 extern "C"
9498 #endif
9499 char dlopen ();
9501 main ()
9503 return dlopen ();
9505 return 0;
9507 _ACEOF
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (ac_try="$ac_link"
9510 case "(($ac_try" in
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9513 esac
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_link") 2>conftest.er1
9516 ac_status=$?
9517 grep -v '^ *+' conftest.er1 >conftest.err
9518 rm -f conftest.er1
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } && {
9522 test -z "$ac_c_werror_flag" ||
9523 test ! -s conftest.err
9524 } && test -s conftest$ac_exeext &&
9525 $as_test_x conftest$ac_exeext; then
9526 ac_cv_lib_dl_dlopen=yes
9527 else
9528 echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9531 ac_cv_lib_dl_dlopen=no
9534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9535 conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_lib_save_LIBS
9538 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9539 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9540 if test $ac_cv_lib_dl_dlopen = yes; then
9541 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9542 else
9543 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9544 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9545 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548 ac_check_lib_save_LIBS=$LIBS
9549 LIBS="-lsvld $LIBS"
9550 cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h. */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9560 #ifdef __cplusplus
9561 extern "C"
9562 #endif
9563 char dlopen ();
9565 main ()
9567 return dlopen ();
9569 return 0;
9571 _ACEOF
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (ac_try="$ac_link"
9574 case "(($ac_try" in
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9577 esac
9578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_link") 2>conftest.er1
9580 ac_status=$?
9581 grep -v '^ *+' conftest.er1 >conftest.err
9582 rm -f conftest.er1
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } && {
9586 test -z "$ac_c_werror_flag" ||
9587 test ! -s conftest.err
9588 } && test -s conftest$ac_exeext &&
9589 $as_test_x conftest$ac_exeext; then
9590 ac_cv_lib_svld_dlopen=yes
9591 else
9592 echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9595 ac_cv_lib_svld_dlopen=no
9598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9599 conftest$ac_exeext conftest.$ac_ext
9600 LIBS=$ac_check_lib_save_LIBS
9602 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9603 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9604 if test $ac_cv_lib_svld_dlopen = yes; then
9605 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9606 else
9607 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9608 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9609 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 else
9612 ac_check_lib_save_LIBS=$LIBS
9613 LIBS="-ldld $LIBS"
9614 cat >conftest.$ac_ext <<_ACEOF
9615 /* confdefs.h. */
9616 _ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9621 /* Override any GCC internal prototype to avoid an error.
9622 Use char because int might match the return type of a GCC
9623 builtin and then its argument prototype would still apply. */
9624 #ifdef __cplusplus
9625 extern "C"
9626 #endif
9627 char dld_link ();
9629 main ()
9631 return dld_link ();
9633 return 0;
9635 _ACEOF
9636 rm -f conftest.$ac_objext conftest$ac_exeext
9637 if { (ac_try="$ac_link"
9638 case "(($ac_try" in
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9641 esac
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_link") 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } && {
9650 test -z "$ac_c_werror_flag" ||
9651 test ! -s conftest.err
9652 } && test -s conftest$ac_exeext &&
9653 $as_test_x conftest$ac_exeext; then
9654 ac_cv_lib_dld_dld_link=yes
9655 else
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9659 ac_cv_lib_dld_dld_link=no
9662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9663 conftest$ac_exeext conftest.$ac_ext
9664 LIBS=$ac_check_lib_save_LIBS
9666 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9667 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9668 if test $ac_cv_lib_dld_dld_link = yes; then
9669 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9688 esac
9690 if test "x$lt_cv_dlopen" != xno; then
9691 enable_dlopen=yes
9692 else
9693 enable_dlopen=no
9696 case $lt_cv_dlopen in
9697 dlopen)
9698 save_CPPFLAGS="$CPPFLAGS"
9699 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9701 save_LDFLAGS="$LDFLAGS"
9702 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9704 save_LIBS="$LIBS"
9705 LIBS="$lt_cv_dlopen_libs $LIBS"
9707 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9708 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9709 if test "${lt_cv_dlopen_self+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712 if test "$cross_compiling" = yes; then :
9713 lt_cv_dlopen_self=cross
9714 else
9715 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9716 lt_status=$lt_dlunknown
9717 cat > conftest.$ac_ext <<EOF
9718 #line 9718 "configure"
9719 #include "confdefs.h"
9721 #if HAVE_DLFCN_H
9722 #include <dlfcn.h>
9723 #endif
9725 #include <stdio.h>
9727 #ifdef RTLD_GLOBAL
9728 # define LT_DLGLOBAL RTLD_GLOBAL
9729 #else
9730 # ifdef DL_GLOBAL
9731 # define LT_DLGLOBAL DL_GLOBAL
9732 # else
9733 # define LT_DLGLOBAL 0
9734 # endif
9735 #endif
9737 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9738 find out it does not work in some platform. */
9739 #ifndef LT_DLLAZY_OR_NOW
9740 # ifdef RTLD_LAZY
9741 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9742 # else
9743 # ifdef DL_LAZY
9744 # define LT_DLLAZY_OR_NOW DL_LAZY
9745 # else
9746 # ifdef RTLD_NOW
9747 # define LT_DLLAZY_OR_NOW RTLD_NOW
9748 # else
9749 # ifdef DL_NOW
9750 # define LT_DLLAZY_OR_NOW DL_NOW
9751 # else
9752 # define LT_DLLAZY_OR_NOW 0
9753 # endif
9754 # endif
9755 # endif
9756 # endif
9757 #endif
9759 #ifdef __cplusplus
9760 extern "C" void exit (int);
9761 #endif
9763 void fnord() { int i=42;}
9764 int main ()
9766 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9767 int status = $lt_dlunknown;
9769 if (self)
9771 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9772 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9773 /* dlclose (self); */
9775 else
9776 puts (dlerror ());
9778 exit (status);
9781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9782 (eval $ac_link) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9786 (./conftest; exit; ) >&5 2>/dev/null
9787 lt_status=$?
9788 case x$lt_status in
9789 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9790 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9791 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9792 esac
9793 else :
9794 # compilation failed
9795 lt_cv_dlopen_self=no
9798 rm -fr conftest*
9802 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9803 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9805 if test "x$lt_cv_dlopen_self" = xyes; then
9806 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9807 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9808 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9809 if test "${lt_cv_dlopen_self_static+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812 if test "$cross_compiling" = yes; then :
9813 lt_cv_dlopen_self_static=cross
9814 else
9815 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9816 lt_status=$lt_dlunknown
9817 cat > conftest.$ac_ext <<EOF
9818 #line 9818 "configure"
9819 #include "confdefs.h"
9821 #if HAVE_DLFCN_H
9822 #include <dlfcn.h>
9823 #endif
9825 #include <stdio.h>
9827 #ifdef RTLD_GLOBAL
9828 # define LT_DLGLOBAL RTLD_GLOBAL
9829 #else
9830 # ifdef DL_GLOBAL
9831 # define LT_DLGLOBAL DL_GLOBAL
9832 # else
9833 # define LT_DLGLOBAL 0
9834 # endif
9835 #endif
9837 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9838 find out it does not work in some platform. */
9839 #ifndef LT_DLLAZY_OR_NOW
9840 # ifdef RTLD_LAZY
9841 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9842 # else
9843 # ifdef DL_LAZY
9844 # define LT_DLLAZY_OR_NOW DL_LAZY
9845 # else
9846 # ifdef RTLD_NOW
9847 # define LT_DLLAZY_OR_NOW RTLD_NOW
9848 # else
9849 # ifdef DL_NOW
9850 # define LT_DLLAZY_OR_NOW DL_NOW
9851 # else
9852 # define LT_DLLAZY_OR_NOW 0
9853 # endif
9854 # endif
9855 # endif
9856 # endif
9857 #endif
9859 #ifdef __cplusplus
9860 extern "C" void exit (int);
9861 #endif
9863 void fnord() { int i=42;}
9864 int main ()
9866 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9867 int status = $lt_dlunknown;
9869 if (self)
9871 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9872 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9873 /* dlclose (self); */
9875 else
9876 puts (dlerror ());
9878 exit (status);
9881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9882 (eval $ac_link) 2>&5
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9886 (./conftest; exit; ) >&5 2>/dev/null
9887 lt_status=$?
9888 case x$lt_status in
9889 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9890 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9891 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9892 esac
9893 else :
9894 # compilation failed
9895 lt_cv_dlopen_self_static=no
9898 rm -fr conftest*
9902 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9903 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9906 CPPFLAGS="$save_CPPFLAGS"
9907 LDFLAGS="$save_LDFLAGS"
9908 LIBS="$save_LIBS"
9910 esac
9912 case $lt_cv_dlopen_self in
9913 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9914 *) enable_dlopen_self=unknown ;;
9915 esac
9917 case $lt_cv_dlopen_self_static in
9918 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9919 *) enable_dlopen_self_static=unknown ;;
9920 esac
9924 # Report which library types will actually be built
9925 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9926 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9927 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9928 echo "${ECHO_T}$can_build_shared" >&6; }
9930 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9931 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9932 test "$can_build_shared" = "no" && enable_shared=no
9934 # On AIX, shared libraries and static libraries use the same namespace, and
9935 # are all built from PIC.
9936 case $host_os in
9937 aix3*)
9938 test "$enable_shared" = yes && enable_static=no
9939 if test -n "$RANLIB"; then
9940 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9941 postinstall_cmds='$RANLIB $lib'
9945 aix4* | aix5*)
9946 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9947 test "$enable_shared" = yes && enable_static=no
9950 esac
9951 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9952 echo "${ECHO_T}$enable_shared" >&6; }
9954 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9955 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9956 # Make sure either enable_shared or enable_static is yes.
9957 test "$enable_shared" = yes || enable_static=yes
9958 { echo "$as_me:$LINENO: result: $enable_static" >&5
9959 echo "${ECHO_T}$enable_static" >&6; }
9961 # The else clause should only fire when bootstrapping the
9962 # libtool distribution, otherwise you forgot to ship ltmain.sh
9963 # with your package, and you will get complaints that there are
9964 # no rules to generate ltmain.sh.
9965 if test -f "$ltmain"; then
9966 # See if we are running on zsh, and set the options which allow our commands through
9967 # without removal of \ escapes.
9968 if test -n "${ZSH_VERSION+set}" ; then
9969 setopt NO_GLOB_SUBST
9971 # Now quote all the things that may contain metacharacters while being
9972 # careful not to overquote the AC_SUBSTed values. We take copies of the
9973 # variables and quote the copies for generation of the libtool script.
9974 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9975 SED SHELL STRIP \
9976 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9977 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9978 deplibs_check_method reload_flag reload_cmds need_locks \
9979 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9980 lt_cv_sys_global_symbol_to_c_name_address \
9981 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9982 old_postinstall_cmds old_postuninstall_cmds \
9983 compiler \
9984 CC \
9985 LD \
9986 lt_prog_compiler_wl \
9987 lt_prog_compiler_pic \
9988 lt_prog_compiler_static \
9989 lt_prog_compiler_no_builtin_flag \
9990 export_dynamic_flag_spec \
9991 thread_safe_flag_spec \
9992 whole_archive_flag_spec \
9993 enable_shared_with_static_runtimes \
9994 old_archive_cmds \
9995 old_archive_from_new_cmds \
9996 predep_objects \
9997 postdep_objects \
9998 predeps \
9999 postdeps \
10000 compiler_lib_search_path \
10001 archive_cmds \
10002 archive_expsym_cmds \
10003 postinstall_cmds \
10004 postuninstall_cmds \
10005 old_archive_from_expsyms_cmds \
10006 allow_undefined_flag \
10007 no_undefined_flag \
10008 export_symbols_cmds \
10009 hardcode_libdir_flag_spec \
10010 hardcode_libdir_flag_spec_ld \
10011 hardcode_libdir_separator \
10012 hardcode_automatic \
10013 module_cmds \
10014 module_expsym_cmds \
10015 lt_cv_prog_compiler_c_o \
10016 exclude_expsyms \
10017 include_expsyms; do
10019 case $var in
10020 old_archive_cmds | \
10021 old_archive_from_new_cmds | \
10022 archive_cmds | \
10023 archive_expsym_cmds | \
10024 module_cmds | \
10025 module_expsym_cmds | \
10026 old_archive_from_expsyms_cmds | \
10027 export_symbols_cmds | \
10028 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10029 postinstall_cmds | postuninstall_cmds | \
10030 old_postinstall_cmds | old_postuninstall_cmds | \
10031 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10032 # Double-quote double-evaled strings.
10033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10036 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10038 esac
10039 done
10041 case $lt_echo in
10042 *'\$0 --fallback-echo"')
10043 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10045 esac
10047 cfgfile="${ofile}T"
10048 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10049 $rm -f "$cfgfile"
10050 { echo "$as_me:$LINENO: creating $ofile" >&5
10051 echo "$as_me: creating $ofile" >&6;}
10053 cat <<__EOF__ >> "$cfgfile"
10054 #! $SHELL
10056 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10057 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10058 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10060 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10061 # Free Software Foundation, Inc.
10063 # This file is part of GNU Libtool:
10064 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10066 # This program is free software; you can redistribute it and/or modify
10067 # it under the terms of the GNU General Public License as published by
10068 # the Free Software Foundation; either version 2 of the License, or
10069 # (at your option) any later version.
10071 # This program is distributed in the hope that it will be useful, but
10072 # WITHOUT ANY WARRANTY; without even the implied warranty of
10073 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10074 # General Public License for more details.
10076 # You should have received a copy of the GNU General Public License
10077 # along with this program; if not, write to the Free Software
10078 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10080 # As a special exception to the GNU General Public License, if you
10081 # distribute this file as part of a program that contains a
10082 # configuration script generated by Autoconf, you may include it under
10083 # the same distribution terms that you use for the rest of that program.
10085 # A sed program that does not truncate output.
10086 SED=$lt_SED
10088 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10089 Xsed="$SED -e 1s/^X//"
10091 # The HP-UX ksh and POSIX shell print the target directory to stdout
10092 # if CDPATH is set.
10093 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10095 # The names of the tagged configurations supported by this script.
10096 available_tags=
10098 # ### BEGIN LIBTOOL CONFIG
10100 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10102 # Shell to use when invoking shell scripts.
10103 SHELL=$lt_SHELL
10105 # Whether or not to build shared libraries.
10106 build_libtool_libs=$enable_shared
10108 # Whether or not to build static libraries.
10109 build_old_libs=$enable_static
10111 # Whether or not to add -lc for building shared libraries.
10112 build_libtool_need_lc=$archive_cmds_need_lc
10114 # Whether or not to disallow shared libs when runtime libs are static
10115 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10117 # Whether or not to optimize for fast installation.
10118 fast_install=$enable_fast_install
10120 # The host system.
10121 host_alias=$host_alias
10122 host=$host
10123 host_os=$host_os
10125 # The build system.
10126 build_alias=$build_alias
10127 build=$build
10128 build_os=$build_os
10130 # An echo program that does not interpret backslashes.
10131 echo=$lt_echo
10133 # The archiver.
10134 AR=$lt_AR
10135 AR_FLAGS=$lt_AR_FLAGS
10137 # A C compiler.
10138 LTCC=$lt_LTCC
10140 # LTCC compiler flags.
10141 LTCFLAGS=$lt_LTCFLAGS
10143 # A language-specific compiler.
10144 CC=$lt_compiler
10146 # Is the compiler the GNU C compiler?
10147 with_gcc=$GCC
10149 # An ERE matcher.
10150 EGREP=$lt_EGREP
10152 # The linker used to build libraries.
10153 LD=$lt_LD
10155 # Whether we need hard or soft links.
10156 LN_S=$lt_LN_S
10158 # A BSD-compatible nm program.
10159 NM=$lt_NM
10161 # A symbol stripping program
10162 STRIP=$lt_STRIP
10164 # Used to examine libraries when file_magic_cmd begins "file"
10165 MAGIC_CMD=$MAGIC_CMD
10167 # Used on cygwin: DLL creation program.
10168 DLLTOOL="$DLLTOOL"
10170 # Used on cygwin: object dumper.
10171 OBJDUMP="$OBJDUMP"
10173 # Used on cygwin: assembler.
10174 AS="$AS"
10176 # The name of the directory that contains temporary libtool files.
10177 objdir=$objdir
10179 # How to create reloadable object files.
10180 reload_flag=$lt_reload_flag
10181 reload_cmds=$lt_reload_cmds
10183 # How to pass a linker flag through the compiler.
10184 wl=$lt_lt_prog_compiler_wl
10186 # Object file suffix (normally "o").
10187 objext="$ac_objext"
10189 # Old archive suffix (normally "a").
10190 libext="$libext"
10192 # Shared library suffix (normally ".so").
10193 shrext_cmds='$shrext_cmds'
10195 # Executable file suffix (normally "").
10196 exeext="$exeext"
10198 # Additional compiler flags for building library objects.
10199 pic_flag=$lt_lt_prog_compiler_pic
10200 pic_mode=$pic_mode
10202 # What is the maximum length of a command?
10203 max_cmd_len=$lt_cv_sys_max_cmd_len
10205 # Does compiler simultaneously support -c and -o options?
10206 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10208 # Must we lock files when doing compilation?
10209 need_locks=$lt_need_locks
10211 # Do we need the lib prefix for modules?
10212 need_lib_prefix=$need_lib_prefix
10214 # Do we need a version for libraries?
10215 need_version=$need_version
10217 # Whether dlopen is supported.
10218 dlopen_support=$enable_dlopen
10220 # Whether dlopen of programs is supported.
10221 dlopen_self=$enable_dlopen_self
10223 # Whether dlopen of statically linked programs is supported.
10224 dlopen_self_static=$enable_dlopen_self_static
10226 # Compiler flag to prevent dynamic linking.
10227 link_static_flag=$lt_lt_prog_compiler_static
10229 # Compiler flag to turn off builtin functions.
10230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10232 # Compiler flag to allow reflexive dlopens.
10233 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10235 # Compiler flag to generate shared objects directly from archives.
10236 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10238 # Compiler flag to generate thread-safe objects.
10239 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10241 # Library versioning type.
10242 version_type=$version_type
10244 # Format of library name prefix.
10245 libname_spec=$lt_libname_spec
10247 # List of archive names. First name is the real one, the rest are links.
10248 # The last name is the one that the linker finds with -lNAME.
10249 library_names_spec=$lt_library_names_spec
10251 # The coded name of the library, if different from the real name.
10252 soname_spec=$lt_soname_spec
10254 # Commands used to build and install an old-style archive.
10255 RANLIB=$lt_RANLIB
10256 old_archive_cmds=$lt_old_archive_cmds
10257 old_postinstall_cmds=$lt_old_postinstall_cmds
10258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10260 # Create an old-style archive from a shared archive.
10261 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10263 # Create a temporary old-style archive to link instead of a shared archive.
10264 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10266 # Commands used to build and install a shared archive.
10267 archive_cmds=$lt_archive_cmds
10268 archive_expsym_cmds=$lt_archive_expsym_cmds
10269 postinstall_cmds=$lt_postinstall_cmds
10270 postuninstall_cmds=$lt_postuninstall_cmds
10272 # Commands used to build a loadable module (assumed same as above if empty)
10273 module_cmds=$lt_module_cmds
10274 module_expsym_cmds=$lt_module_expsym_cmds
10276 # Commands to strip libraries.
10277 old_striplib=$lt_old_striplib
10278 striplib=$lt_striplib
10280 # Dependencies to place before the objects being linked to create a
10281 # shared library.
10282 predep_objects=$lt_predep_objects
10284 # Dependencies to place after the objects being linked to create a
10285 # shared library.
10286 postdep_objects=$lt_postdep_objects
10288 # Dependencies to place before the objects being linked to create a
10289 # shared library.
10290 predeps=$lt_predeps
10292 # Dependencies to place after the objects being linked to create a
10293 # shared library.
10294 postdeps=$lt_postdeps
10296 # The library search path used internally by the compiler when linking
10297 # a shared library.
10298 compiler_lib_search_path=$lt_compiler_lib_search_path
10300 # Method to check whether dependent libraries are shared objects.
10301 deplibs_check_method=$lt_deplibs_check_method
10303 # Command to use when deplibs_check_method == file_magic.
10304 file_magic_cmd=$lt_file_magic_cmd
10306 # Flag that allows shared libraries with undefined symbols to be built.
10307 allow_undefined_flag=$lt_allow_undefined_flag
10309 # Flag that forces no undefined symbols.
10310 no_undefined_flag=$lt_no_undefined_flag
10312 # Commands used to finish a libtool library installation in a directory.
10313 finish_cmds=$lt_finish_cmds
10315 # Same as above, but a single script fragment to be evaled but not shown.
10316 finish_eval=$lt_finish_eval
10318 # Take the output of nm and produce a listing of raw symbols and C names.
10319 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10321 # Transform the output of nm in a proper C declaration
10322 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10324 # Transform the output of nm in a C name address pair
10325 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10327 # This is the shared library runtime path variable.
10328 runpath_var=$runpath_var
10330 # This is the shared library path variable.
10331 shlibpath_var=$shlibpath_var
10333 # Is shlibpath searched before the hard-coded library search path?
10334 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10336 # How to hardcode a shared library path into an executable.
10337 hardcode_action=$hardcode_action
10339 # Whether we should hardcode library paths into libraries.
10340 hardcode_into_libs=$hardcode_into_libs
10342 # Flag to hardcode \$libdir into a binary during linking.
10343 # This must work even if \$libdir does not exist.
10344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10346 # If ld is used when linking, flag to hardcode \$libdir into
10347 # a binary during linking. This must work even if \$libdir does
10348 # not exist.
10349 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10351 # Whether we need a single -rpath flag with a separated argument.
10352 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10354 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10355 # resulting binary.
10356 hardcode_direct=$hardcode_direct
10358 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10359 # resulting binary.
10360 hardcode_minus_L=$hardcode_minus_L
10362 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10363 # the resulting binary.
10364 hardcode_shlibpath_var=$hardcode_shlibpath_var
10366 # Set to yes if building a shared library automatically hardcodes DIR into the library
10367 # and all subsequent libraries and executables linked against it.
10368 hardcode_automatic=$hardcode_automatic
10370 # Variables whose values should be saved in libtool wrapper scripts and
10371 # restored at relink time.
10372 variables_saved_for_relink="$variables_saved_for_relink"
10374 # Whether libtool must link a program against all its dependency libraries.
10375 link_all_deplibs=$link_all_deplibs
10377 # Compile-time system search path for libraries
10378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10380 # Run-time system search path for libraries
10381 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10383 # Fix the shell variable \$srcfile for the compiler.
10384 fix_srcfile_path="$fix_srcfile_path"
10386 # Set to yes if exported symbols are required.
10387 always_export_symbols=$always_export_symbols
10389 # The commands to list exported symbols.
10390 export_symbols_cmds=$lt_export_symbols_cmds
10392 # The commands to extract the exported symbol list from a shared archive.
10393 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10395 # Symbols that should not be listed in the preloaded symbols.
10396 exclude_expsyms=$lt_exclude_expsyms
10398 # Symbols that must always be exported.
10399 include_expsyms=$lt_include_expsyms
10401 # ### END LIBTOOL CONFIG
10403 __EOF__
10406 case $host_os in
10407 aix3*)
10408 cat <<\EOF >> "$cfgfile"
10410 # AIX sometimes has problems with the GCC collect2 program. For some
10411 # reason, if we set the COLLECT_NAMES environment variable, the problems
10412 # vanish in a puff of smoke.
10413 if test "X${COLLECT_NAMES+set}" != Xset; then
10414 COLLECT_NAMES=
10415 export COLLECT_NAMES
10419 esac
10421 # We use sed instead of cat because bash on DJGPP gets confused if
10422 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10423 # text mode, it properly converts lines to CR/LF. This bash problem
10424 # is reportedly fixed, but why not run on old versions too?
10425 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10427 mv -f "$cfgfile" "$ofile" || \
10428 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10429 chmod +x "$ofile"
10431 else
10432 # If there is no Makefile yet, we rely on a make rule to execute
10433 # `config.status --recheck' to rerun these tests and create the
10434 # libtool script then.
10435 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10436 if test -f "$ltmain_in"; then
10437 test -f Makefile && make "$ltmain"
10442 ac_ext=c
10443 ac_cpp='$CPP $CPPFLAGS'
10444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10448 CC="$lt_save_CC"
10451 # Check whether --with-tags was given.
10452 if test "${with_tags+set}" = set; then
10453 withval=$with_tags; tagnames="$withval"
10457 if test -f "$ltmain" && test -n "$tagnames"; then
10458 if test ! -f "${ofile}"; then
10459 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10460 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10463 if test -z "$LTCC"; then
10464 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10465 if test -z "$LTCC"; then
10466 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10467 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10468 else
10469 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10470 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10473 if test -z "$LTCFLAGS"; then
10474 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10477 # Extract list of available tagged configurations in $ofile.
10478 # Note that this assumes the entire list is on one line.
10479 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10482 for tagname in $tagnames; do
10483 IFS="$lt_save_ifs"
10484 # Check whether tagname contains only valid characters
10485 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10486 "") ;;
10487 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10488 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10489 { (exit 1); exit 1; }; }
10491 esac
10493 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10494 then
10495 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10496 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10497 { (exit 1); exit 1; }; }
10500 # Update the list of available tags.
10501 if test -n "$tagname"; then
10502 echo appending configuration tag \"$tagname\" to $ofile
10504 case $tagname in
10505 CXX)
10506 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10507 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10508 (test "X$CXX" != "Xg++"))) ; then
10509 ac_ext=cpp
10510 ac_cpp='$CXXCPP $CPPFLAGS'
10511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10518 archive_cmds_need_lc_CXX=no
10519 allow_undefined_flag_CXX=
10520 always_export_symbols_CXX=no
10521 archive_expsym_cmds_CXX=
10522 export_dynamic_flag_spec_CXX=
10523 hardcode_direct_CXX=no
10524 hardcode_libdir_flag_spec_CXX=
10525 hardcode_libdir_flag_spec_ld_CXX=
10526 hardcode_libdir_separator_CXX=
10527 hardcode_minus_L_CXX=no
10528 hardcode_shlibpath_var_CXX=unsupported
10529 hardcode_automatic_CXX=no
10530 module_cmds_CXX=
10531 module_expsym_cmds_CXX=
10532 link_all_deplibs_CXX=unknown
10533 old_archive_cmds_CXX=$old_archive_cmds
10534 no_undefined_flag_CXX=
10535 whole_archive_flag_spec_CXX=
10536 enable_shared_with_static_runtimes_CXX=no
10538 # Dependencies to place before and after the object being linked:
10539 predep_objects_CXX=
10540 postdep_objects_CXX=
10541 predeps_CXX=
10542 postdeps_CXX=
10543 compiler_lib_search_path_CXX=
10545 # Source file extension for C++ test sources.
10546 ac_ext=cpp
10548 # Object file extension for compiled C++ test sources.
10549 objext=o
10550 objext_CXX=$objext
10552 # Code to be used in simple compile tests
10553 lt_simple_compile_test_code="int some_variable = 0;\n"
10555 # Code to be used in simple link tests
10556 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10558 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10560 # If no C compiler was specified, use CC.
10561 LTCC=${LTCC-"$CC"}
10563 # If no C compiler flags were specified, use CFLAGS.
10564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10566 # Allow CC to be a program name with arguments.
10567 compiler=$CC
10570 # save warnings/boilerplate of simple test code
10571 ac_outfile=conftest.$ac_objext
10572 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10573 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10574 _lt_compiler_boilerplate=`cat conftest.err`
10575 $rm conftest*
10577 ac_outfile=conftest.$ac_objext
10578 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10579 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10580 _lt_linker_boilerplate=`cat conftest.err`
10581 $rm conftest*
10584 # Allow CC to be a program name with arguments.
10585 lt_save_CC=$CC
10586 lt_save_LD=$LD
10587 lt_save_GCC=$GCC
10588 GCC=$GXX
10589 lt_save_with_gnu_ld=$with_gnu_ld
10590 lt_save_path_LD=$lt_cv_path_LD
10591 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10592 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10593 else
10594 $as_unset lt_cv_prog_gnu_ld
10596 if test -n "${lt_cv_path_LDCXX+set}"; then
10597 lt_cv_path_LD=$lt_cv_path_LDCXX
10598 else
10599 $as_unset lt_cv_path_LD
10601 test -z "${LDCXX+set}" || LD=$LDCXX
10602 CC=${CXX-"c++"}
10603 compiler=$CC
10604 compiler_CXX=$CC
10605 for cc_temp in $compiler""; do
10606 case $cc_temp in
10607 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10608 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10609 \-*) ;;
10610 *) break;;
10611 esac
10612 done
10613 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10616 # We don't want -fno-exception wen compiling C++ code, so set the
10617 # no_builtin_flag separately
10618 if test "$GXX" = yes; then
10619 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10620 else
10621 lt_prog_compiler_no_builtin_flag_CXX=
10624 if test "$GXX" = yes; then
10625 # Set up default GNU C++ configuration
10628 # Check whether --with-gnu-ld was given.
10629 if test "${with_gnu_ld+set}" = set; then
10630 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10631 else
10632 with_gnu_ld=no
10635 ac_prog=ld
10636 if test "$GCC" = yes; then
10637 # Check if gcc -print-prog-name=ld gives a path.
10638 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10639 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10640 case $host in
10641 *-*-mingw*)
10642 # gcc leaves a trailing carriage return which upsets mingw
10643 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10645 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10646 esac
10647 case $ac_prog in
10648 # Accept absolute paths.
10649 [\\/]* | ?:[\\/]*)
10650 re_direlt='/[^/][^/]*/\.\./'
10651 # Canonicalize the pathname of ld
10652 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10653 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10654 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10655 done
10656 test -z "$LD" && LD="$ac_prog"
10659 # If it fails, then pretend we aren't using GCC.
10660 ac_prog=ld
10663 # If it is relative, then search for the first ld in PATH.
10664 with_gnu_ld=unknown
10666 esac
10667 elif test "$with_gnu_ld" = yes; then
10668 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10669 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10670 else
10671 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10672 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10674 if test "${lt_cv_path_LD+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677 if test -z "$LD"; then
10678 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10679 for ac_dir in $PATH; do
10680 IFS="$lt_save_ifs"
10681 test -z "$ac_dir" && ac_dir=.
10682 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10683 lt_cv_path_LD="$ac_dir/$ac_prog"
10684 # Check to see if the program is GNU ld. I'd rather use --version,
10685 # but apparently some variants of GNU ld only accept -v.
10686 # Break only if it was the GNU/non-GNU ld that we prefer.
10687 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10688 *GNU* | *'with BFD'*)
10689 test "$with_gnu_ld" != no && break
10692 test "$with_gnu_ld" != yes && break
10694 esac
10696 done
10697 IFS="$lt_save_ifs"
10698 else
10699 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10703 LD="$lt_cv_path_LD"
10704 if test -n "$LD"; then
10705 { echo "$as_me:$LINENO: result: $LD" >&5
10706 echo "${ECHO_T}$LD" >&6; }
10707 else
10708 { echo "$as_me:$LINENO: result: no" >&5
10709 echo "${ECHO_T}no" >&6; }
10711 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10712 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10713 { (exit 1); exit 1; }; }
10714 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10715 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10716 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10718 else
10719 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10720 case `$LD -v 2>&1 </dev/null` in
10721 *GNU* | *'with BFD'*)
10722 lt_cv_prog_gnu_ld=yes
10725 lt_cv_prog_gnu_ld=no
10727 esac
10729 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10730 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10731 with_gnu_ld=$lt_cv_prog_gnu_ld
10735 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10736 # archiving commands below assume that GNU ld is being used.
10737 if test "$with_gnu_ld" = yes; then
10738 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10739 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10741 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10744 # If archive_cmds runs LD, not CC, wlarc should be empty
10745 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10746 # investigate it a little bit more. (MM)
10747 wlarc='${wl}'
10749 # ancient GNU ld didn't support --whole-archive et. al.
10750 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10751 grep 'no-whole-archive' > /dev/null; then
10752 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10753 else
10754 whole_archive_flag_spec_CXX=
10756 else
10757 with_gnu_ld=no
10758 wlarc=
10760 # A generic and very simple default shared library creation
10761 # command for GNU C++ for the case where it uses the native
10762 # linker, instead of GNU ld. If possible, this setting should
10763 # overridden to take advantage of the native linker features on
10764 # the platform it is being used on.
10765 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10768 # Commands to make compiler produce verbose output that lists
10769 # what "hidden" libraries, object files and flags are used when
10770 # linking a shared library.
10771 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10773 else
10774 GXX=no
10775 with_gnu_ld=no
10776 wlarc=
10779 # PORTME: fill in a description of your system's C++ link characteristics
10780 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10781 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10782 ld_shlibs_CXX=yes
10783 case $host_os in
10784 aix3*)
10785 # FIXME: insert proper C++ library support
10786 ld_shlibs_CXX=no
10788 aix4* | aix5*)
10789 if test "$host_cpu" = ia64; then
10790 # On IA64, the linker does run time linking by default, so we don't
10791 # have to do anything special.
10792 aix_use_runtimelinking=no
10793 exp_sym_flag='-Bexport'
10794 no_entry_flag=""
10795 else
10796 aix_use_runtimelinking=no
10798 # Test if we are trying to use run time linking or normal
10799 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10800 # need to do runtime linking.
10801 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10802 for ld_flag in $LDFLAGS; do
10803 case $ld_flag in
10804 *-brtl*)
10805 aix_use_runtimelinking=yes
10806 break
10808 esac
10809 done
10811 esac
10813 exp_sym_flag='-bexport'
10814 no_entry_flag='-bnoentry'
10817 # When large executables or shared objects are built, AIX ld can
10818 # have problems creating the table of contents. If linking a library
10819 # or program results in "error TOC overflow" add -mminimal-toc to
10820 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10821 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10823 archive_cmds_CXX=''
10824 hardcode_direct_CXX=yes
10825 hardcode_libdir_separator_CXX=':'
10826 link_all_deplibs_CXX=yes
10828 if test "$GXX" = yes; then
10829 case $host_os in aix4.[012]|aix4.[012].*)
10830 # We only want to do this on AIX 4.2 and lower, the check
10831 # below for broken collect2 doesn't work under 4.3+
10832 collect2name=`${CC} -print-prog-name=collect2`
10833 if test -f "$collect2name" && \
10834 strings "$collect2name" | grep resolve_lib_name >/dev/null
10835 then
10836 # We have reworked collect2
10837 hardcode_direct_CXX=yes
10838 else
10839 # We have old collect2
10840 hardcode_direct_CXX=unsupported
10841 # It fails to find uninstalled libraries when the uninstalled
10842 # path is not listed in the libpath. Setting hardcode_minus_L
10843 # to unsupported forces relinking
10844 hardcode_minus_L_CXX=yes
10845 hardcode_libdir_flag_spec_CXX='-L$libdir'
10846 hardcode_libdir_separator_CXX=
10849 esac
10850 shared_flag='-shared'
10851 if test "$aix_use_runtimelinking" = yes; then
10852 shared_flag="$shared_flag "'${wl}-G'
10854 else
10855 # not using gcc
10856 if test "$host_cpu" = ia64; then
10857 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10858 # chokes on -Wl,-G. The following line is correct:
10859 shared_flag='-G'
10860 else
10861 if test "$aix_use_runtimelinking" = yes; then
10862 shared_flag='${wl}-G'
10863 else
10864 shared_flag='${wl}-bM:SRE'
10869 # It seems that -bexpall does not export symbols beginning with
10870 # underscore (_), so it is better to generate a list of symbols to export.
10871 always_export_symbols_CXX=yes
10872 if test "$aix_use_runtimelinking" = yes; then
10873 # Warning - without using the other runtime loading flags (-brtl),
10874 # -berok will link without error, but may produce a broken library.
10875 allow_undefined_flag_CXX='-berok'
10876 # Determine the default libpath from the value encoded in an empty executable.
10877 cat >conftest.$ac_ext <<_ACEOF
10878 /* confdefs.h. */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10885 main ()
10889 return 0;
10891 _ACEOF
10892 rm -f conftest.$ac_objext conftest$ac_exeext
10893 if { (ac_try="$ac_link"
10894 case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10897 esac
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_link") 2>conftest.er1
10900 ac_status=$?
10901 grep -v '^ *+' conftest.er1 >conftest.err
10902 rm -f conftest.er1
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } && {
10906 test -z "$ac_cxx_werror_flag" ||
10907 test ! -s conftest.err
10908 } && test -s conftest$ac_exeext &&
10909 $as_test_x conftest$ac_exeext; then
10911 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10913 # Check for a 64-bit object if we didn't find anything.
10914 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10915 }'`; fi
10916 else
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10924 conftest$ac_exeext conftest.$ac_ext
10925 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10927 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10929 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10930 else
10931 if test "$host_cpu" = ia64; then
10932 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10933 allow_undefined_flag_CXX="-z nodefs"
10934 archive_expsym_cmds_CXX="\$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"
10935 else
10936 # Determine the default libpath from the value encoded in an empty executable.
10937 cat >conftest.$ac_ext <<_ACEOF
10938 /* confdefs.h. */
10939 _ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10945 main ()
10949 return 0;
10951 _ACEOF
10952 rm -f conftest.$ac_objext conftest$ac_exeext
10953 if { (ac_try="$ac_link"
10954 case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10957 esac
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959 (eval "$ac_link") 2>conftest.er1
10960 ac_status=$?
10961 grep -v '^ *+' conftest.er1 >conftest.err
10962 rm -f conftest.er1
10963 cat conftest.err >&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } && {
10966 test -z "$ac_cxx_werror_flag" ||
10967 test ! -s conftest.err
10968 } && test -s conftest$ac_exeext &&
10969 $as_test_x conftest$ac_exeext; then
10971 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10973 # Check for a 64-bit object if we didn't find anything.
10974 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10975 }'`; fi
10976 else
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10984 conftest$ac_exeext conftest.$ac_ext
10985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10987 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10988 # Warning - without using the other run time loading flags,
10989 # -berok will link without error, but may produce a broken library.
10990 no_undefined_flag_CXX=' ${wl}-bernotok'
10991 allow_undefined_flag_CXX=' ${wl}-berok'
10992 # Exported symbols can be pulled into shared objects from archives
10993 whole_archive_flag_spec_CXX='$convenience'
10994 archive_cmds_need_lc_CXX=yes
10995 # This is similar to how AIX traditionally builds its shared libraries.
10996 archive_expsym_cmds_CXX="\$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'
11001 beos*)
11002 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11003 allow_undefined_flag_CXX=unsupported
11004 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11005 # support --undefined. This deserves some investigation. FIXME
11006 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11007 else
11008 ld_shlibs_CXX=no
11012 chorus*)
11013 case $cc_basename in
11015 # FIXME: insert proper C++ library support
11016 ld_shlibs_CXX=no
11018 esac
11021 cygwin* | mingw* | pw32*)
11022 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11023 # as there is no search path for DLLs.
11024 hardcode_libdir_flag_spec_CXX='-L$libdir'
11025 allow_undefined_flag_CXX=unsupported
11026 always_export_symbols_CXX=no
11027 enable_shared_with_static_runtimes_CXX=yes
11029 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11030 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11031 # If the export-symbols file already is a .def file (1st line
11032 # is EXPORTS), use it as is; otherwise, prepend...
11033 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11034 cp $export_symbols $output_objdir/$soname.def;
11035 else
11036 echo EXPORTS > $output_objdir/$soname.def;
11037 cat $export_symbols >> $output_objdir/$soname.def;
11039 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11040 else
11041 ld_shlibs_CXX=no
11044 darwin* | rhapsody*)
11045 case $host_os in
11046 rhapsody* | darwin1.[012])
11047 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11049 *) # Darwin 1.3 on
11050 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11051 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11052 else
11053 case ${MACOSX_DEPLOYMENT_TARGET} in
11054 10.[012])
11055 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11057 10.*)
11058 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11060 esac
11063 esac
11064 archive_cmds_need_lc_CXX=no
11065 hardcode_direct_CXX=no
11066 hardcode_automatic_CXX=yes
11067 hardcode_shlibpath_var_CXX=unsupported
11068 whole_archive_flag_spec_CXX=''
11069 link_all_deplibs_CXX=yes
11071 if test "$GXX" = yes ; then
11072 lt_int_apple_cc_single_mod=no
11073 output_verbose_link_cmd='echo'
11074 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11075 lt_int_apple_cc_single_mod=yes
11077 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11078 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11079 else
11080 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11082 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11083 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11084 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11085 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11086 else
11087 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11089 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11090 else
11091 case $cc_basename in
11092 xlc*)
11093 output_verbose_link_cmd='echo'
11094 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11095 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11096 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11097 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11098 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11101 ld_shlibs_CXX=no
11103 esac
11107 dgux*)
11108 case $cc_basename in
11109 ec++*)
11110 # FIXME: insert proper C++ library support
11111 ld_shlibs_CXX=no
11113 ghcx*)
11114 # Green Hills C++ Compiler
11115 # FIXME: insert proper C++ library support
11116 ld_shlibs_CXX=no
11119 # FIXME: insert proper C++ library support
11120 ld_shlibs_CXX=no
11122 esac
11124 freebsd[12]*)
11125 # C++ shared libraries reported to be fairly broken before switch to ELF
11126 ld_shlibs_CXX=no
11128 freebsd-elf*)
11129 archive_cmds_need_lc_CXX=no
11131 freebsd* | kfreebsd*-gnu | dragonfly*)
11132 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11133 # conventions
11134 ld_shlibs_CXX=yes
11136 gnu*)
11138 hpux9*)
11139 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11140 hardcode_libdir_separator_CXX=:
11141 export_dynamic_flag_spec_CXX='${wl}-E'
11142 hardcode_direct_CXX=yes
11143 hardcode_minus_L_CXX=yes # Not in the search PATH,
11144 # but as the default
11145 # location of the library.
11147 case $cc_basename in
11148 CC*)
11149 # FIXME: insert proper C++ library support
11150 ld_shlibs_CXX=no
11152 aCC*)
11153 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11154 # Commands to make compiler produce verbose output that lists
11155 # what "hidden" libraries, object files and flags are used when
11156 # linking a shared library.
11158 # There doesn't appear to be a way to prevent this compiler from
11159 # explicitly linking system object files so we need to strip them
11160 # from the output so that they don't get included in the library
11161 # dependencies.
11162 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11165 if test "$GXX" = yes; then
11166 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11167 else
11168 # FIXME: insert proper C++ library support
11169 ld_shlibs_CXX=no
11172 esac
11174 hpux10*|hpux11*)
11175 if test $with_gnu_ld = no; then
11176 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11177 hardcode_libdir_separator_CXX=:
11179 case $host_cpu in
11180 hppa*64*|ia64*)
11181 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11184 export_dynamic_flag_spec_CXX='${wl}-E'
11186 esac
11188 case $host_cpu in
11189 hppa*64*|ia64*)
11190 hardcode_direct_CXX=no
11191 hardcode_shlibpath_var_CXX=no
11194 hardcode_direct_CXX=yes
11195 hardcode_minus_L_CXX=yes # Not in the search PATH,
11196 # but as the default
11197 # location of the library.
11199 esac
11201 case $cc_basename in
11202 CC*)
11203 # FIXME: insert proper C++ library support
11204 ld_shlibs_CXX=no
11206 aCC*)
11207 case $host_cpu in
11208 hppa*64*)
11209 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11211 ia64*)
11212 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11215 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11217 esac
11218 # Commands to make compiler produce verbose output that lists
11219 # what "hidden" libraries, object files and flags are used when
11220 # linking a shared library.
11222 # There doesn't appear to be a way to prevent this compiler from
11223 # explicitly linking system object files so we need to strip them
11224 # from the output so that they don't get included in the library
11225 # dependencies.
11226 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11229 if test "$GXX" = yes; then
11230 if test $with_gnu_ld = no; then
11231 case $host_cpu in
11232 hppa*64*)
11233 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11235 ia64*)
11236 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11239 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11241 esac
11243 else
11244 # FIXME: insert proper C++ library support
11245 ld_shlibs_CXX=no
11248 esac
11250 interix3*)
11251 hardcode_direct_CXX=no
11252 hardcode_shlibpath_var_CXX=no
11253 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11254 export_dynamic_flag_spec_CXX='${wl}-E'
11255 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11256 # Instead, shared libraries are loaded at an image base (0x10000000 by
11257 # default) and relocated if they conflict, which is a slow very memory
11258 # consuming and fragmenting process. To avoid this, we pick a random,
11259 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11260 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11261 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11262 archive_expsym_cmds_CXX='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'
11264 irix5* | irix6*)
11265 case $cc_basename in
11266 CC*)
11267 # SGI C++
11268 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11270 # Archives containing C++ object files must be created using
11271 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11272 # necessary to make sure instantiated templates are included
11273 # in the archive.
11274 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11277 if test "$GXX" = yes; then
11278 if test "$with_gnu_ld" = no; then
11279 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11280 else
11281 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11284 link_all_deplibs_CXX=yes
11286 esac
11287 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11288 hardcode_libdir_separator_CXX=:
11290 linux*)
11291 case $cc_basename in
11292 KCC*)
11293 # Kuck and Associates, Inc. (KAI) C++ Compiler
11295 # KCC will only create a shared library if the output file
11296 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11297 # to its proper name (with version) after linking.
11298 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11299 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11300 # Commands to make compiler produce verbose output that lists
11301 # what "hidden" libraries, object files and flags are used when
11302 # linking a shared library.
11304 # There doesn't appear to be a way to prevent this compiler from
11305 # explicitly linking system object files so we need to strip them
11306 # from the output so that they don't get included in the library
11307 # dependencies.
11308 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11310 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11311 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11313 # Archives containing C++ object files must be created using
11314 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11315 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11317 icpc*)
11318 # Intel C++
11319 with_gnu_ld=yes
11320 # version 8.0 and above of icpc choke on multiply defined symbols
11321 # if we add $predep_objects and $postdep_objects, however 7.1 and
11322 # earlier do not add the objects themselves.
11323 case `$CC -V 2>&1` in
11324 *"Version 7."*)
11325 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11326 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11328 *) # Version 8.0 or newer
11329 tmp_idyn=
11330 case $host_cpu in
11331 ia64*) tmp_idyn=' -i_dynamic';;
11332 esac
11333 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11334 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11336 esac
11337 archive_cmds_need_lc_CXX=no
11338 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11339 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11340 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11342 pgCC*)
11343 # Portland Group C++ compiler
11344 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11345 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11347 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11348 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11349 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11351 cxx*)
11352 # Compaq C++
11353 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11354 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11356 runpath_var=LD_RUN_PATH
11357 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11358 hardcode_libdir_separator_CXX=:
11360 # Commands to make compiler produce verbose output that lists
11361 # what "hidden" libraries, object files and flags are used when
11362 # linking a shared library.
11364 # There doesn't appear to be a way to prevent this compiler from
11365 # explicitly linking system object files so we need to strip them
11366 # from the output so that they don't get included in the library
11367 # dependencies.
11368 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11370 esac
11372 lynxos*)
11373 # FIXME: insert proper C++ library support
11374 ld_shlibs_CXX=no
11376 m88k*)
11377 # FIXME: insert proper C++ library support
11378 ld_shlibs_CXX=no
11380 mvs*)
11381 case $cc_basename in
11382 cxx*)
11383 # FIXME: insert proper C++ library support
11384 ld_shlibs_CXX=no
11387 # FIXME: insert proper C++ library support
11388 ld_shlibs_CXX=no
11390 esac
11392 netbsd*)
11393 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11394 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11395 wlarc=
11396 hardcode_libdir_flag_spec_CXX='-R$libdir'
11397 hardcode_direct_CXX=yes
11398 hardcode_shlibpath_var_CXX=no
11400 # Workaround some broken pre-1.5 toolchains
11401 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11403 openbsd2*)
11404 # C++ shared libraries are fairly broken
11405 ld_shlibs_CXX=no
11407 openbsd*)
11408 hardcode_direct_CXX=yes
11409 hardcode_shlibpath_var_CXX=no
11410 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11411 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11412 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11413 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11414 export_dynamic_flag_spec_CXX='${wl}-E'
11415 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11417 output_verbose_link_cmd='echo'
11419 osf3*)
11420 case $cc_basename in
11421 KCC*)
11422 # Kuck and Associates, Inc. (KAI) C++ Compiler
11424 # KCC will only create a shared library if the output file
11425 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11426 # to its proper name (with version) after linking.
11427 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11429 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11430 hardcode_libdir_separator_CXX=:
11432 # Archives containing C++ object files must be created using
11433 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11434 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11437 RCC*)
11438 # Rational C++ 2.4.1
11439 # FIXME: insert proper C++ library support
11440 ld_shlibs_CXX=no
11442 cxx*)
11443 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11444 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11446 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11447 hardcode_libdir_separator_CXX=:
11449 # Commands to make compiler produce verbose output that lists
11450 # what "hidden" libraries, object files and flags are used when
11451 # linking a shared library.
11453 # There doesn't appear to be a way to prevent this compiler from
11454 # explicitly linking system object files so we need to strip them
11455 # from the output so that they don't get included in the library
11456 # dependencies.
11457 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11460 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11461 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11462 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11464 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11465 hardcode_libdir_separator_CXX=:
11467 # Commands to make compiler produce verbose output that lists
11468 # what "hidden" libraries, object files and flags are used when
11469 # linking a shared library.
11470 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11472 else
11473 # FIXME: insert proper C++ library support
11474 ld_shlibs_CXX=no
11477 esac
11479 osf4* | osf5*)
11480 case $cc_basename in
11481 KCC*)
11482 # Kuck and Associates, Inc. (KAI) C++ Compiler
11484 # KCC will only create a shared library if the output file
11485 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11486 # to its proper name (with version) after linking.
11487 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11489 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11490 hardcode_libdir_separator_CXX=:
11492 # Archives containing C++ object files must be created using
11493 # the KAI C++ compiler.
11494 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11496 RCC*)
11497 # Rational C++ 2.4.1
11498 # FIXME: insert proper C++ library support
11499 ld_shlibs_CXX=no
11501 cxx*)
11502 allow_undefined_flag_CXX=' -expect_unresolved \*'
11503 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11504 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11505 echo "-hidden">> $lib.exp~
11506 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11507 $rm $lib.exp'
11509 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11510 hardcode_libdir_separator_CXX=:
11512 # Commands to make compiler produce verbose output that lists
11513 # what "hidden" libraries, object files and flags are used when
11514 # linking a shared library.
11516 # There doesn't appear to be a way to prevent this compiler from
11517 # explicitly linking system object files so we need to strip them
11518 # from the output so that they don't get included in the library
11519 # dependencies.
11520 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11523 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11524 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11525 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11527 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11528 hardcode_libdir_separator_CXX=:
11530 # Commands to make compiler produce verbose output that lists
11531 # what "hidden" libraries, object files and flags are used when
11532 # linking a shared library.
11533 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11535 else
11536 # FIXME: insert proper C++ library support
11537 ld_shlibs_CXX=no
11540 esac
11542 psos*)
11543 # FIXME: insert proper C++ library support
11544 ld_shlibs_CXX=no
11546 sunos4*)
11547 case $cc_basename in
11548 CC*)
11549 # Sun C++ 4.x
11550 # FIXME: insert proper C++ library support
11551 ld_shlibs_CXX=no
11553 lcc*)
11554 # Lucid
11555 # FIXME: insert proper C++ library support
11556 ld_shlibs_CXX=no
11559 # FIXME: insert proper C++ library support
11560 ld_shlibs_CXX=no
11562 esac
11564 solaris*)
11565 case $cc_basename in
11566 CC*)
11567 # Sun C++ 4.2, 5.x and Centerline C++
11568 archive_cmds_need_lc_CXX=yes
11569 no_undefined_flag_CXX=' -zdefs'
11570 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11571 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11572 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11574 hardcode_libdir_flag_spec_CXX='-R$libdir'
11575 hardcode_shlibpath_var_CXX=no
11576 case $host_os in
11577 solaris2.[0-5] | solaris2.[0-5].*) ;;
11579 # The C++ compiler is used as linker so we must use $wl
11580 # flag to pass the commands to the underlying system
11581 # linker. We must also pass each convience library through
11582 # to the system linker between allextract/defaultextract.
11583 # The C++ compiler will combine linker options so we
11584 # cannot just pass the convience library names through
11585 # without $wl.
11586 # Supported since Solaris 2.6 (maybe 2.5.1?)
11587 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11589 esac
11590 link_all_deplibs_CXX=yes
11592 output_verbose_link_cmd='echo'
11594 # Archives containing C++ object files must be created using
11595 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11596 # necessary to make sure instantiated templates are included
11597 # in the archive.
11598 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11600 gcx*)
11601 # Green Hills C++ Compiler
11602 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11604 # The C++ compiler must be used to create the archive.
11605 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11608 # GNU C++ compiler with Solaris linker
11609 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11610 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11611 if $CC --version | grep -v '^2\.7' > /dev/null; then
11612 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11613 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11614 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11616 # Commands to make compiler produce verbose output that lists
11617 # what "hidden" libraries, object files and flags are used when
11618 # linking a shared library.
11619 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11620 else
11621 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11622 # platform.
11623 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11624 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11625 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11627 # Commands to make compiler produce verbose output that lists
11628 # what "hidden" libraries, object files and flags are used when
11629 # linking a shared library.
11630 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11633 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11636 esac
11638 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11639 no_undefined_flag_CXX='${wl}-z,text'
11640 archive_cmds_need_lc_CXX=no
11641 hardcode_shlibpath_var_CXX=no
11642 runpath_var='LD_RUN_PATH'
11644 case $cc_basename in
11645 CC*)
11646 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11647 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11650 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11651 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11653 esac
11655 sysv5* | sco3.2v5* | sco5v6*)
11656 # Note: We can NOT use -z defs as we might desire, because we do not
11657 # link with -lc, and that would cause any symbols used from libc to
11658 # always be unresolved, which means just about no library would
11659 # ever link correctly. If we're not using GNU ld we use -z text
11660 # though, which does catch some bad symbols but isn't as heavy-handed
11661 # as -z defs.
11662 # For security reasons, it is highly recommended that you always
11663 # use absolute paths for naming shared libraries, and exclude the
11664 # DT_RUNPATH tag from executables and libraries. But doing so
11665 # requires that you compile everything twice, which is a pain.
11666 # So that behaviour is only enabled if SCOABSPATH is set to a
11667 # non-empty value in the environment. Most likely only useful for
11668 # creating official distributions of packages.
11669 # This is a hack until libtool officially supports absolute path
11670 # names for shared libraries.
11671 no_undefined_flag_CXX='${wl}-z,text'
11672 allow_undefined_flag_CXX='${wl}-z,nodefs'
11673 archive_cmds_need_lc_CXX=no
11674 hardcode_shlibpath_var_CXX=no
11675 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11676 hardcode_libdir_separator_CXX=':'
11677 link_all_deplibs_CXX=yes
11678 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11679 runpath_var='LD_RUN_PATH'
11681 case $cc_basename in
11682 CC*)
11683 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11684 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11687 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11688 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11690 esac
11692 tandem*)
11693 case $cc_basename in
11694 NCC*)
11695 # NonStop-UX NCC 3.20
11696 # FIXME: insert proper C++ library support
11697 ld_shlibs_CXX=no
11700 # FIXME: insert proper C++ library support
11701 ld_shlibs_CXX=no
11703 esac
11705 vxworks*)
11706 # FIXME: insert proper C++ library support
11707 ld_shlibs_CXX=no
11710 # FIXME: insert proper C++ library support
11711 ld_shlibs_CXX=no
11713 esac
11714 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11715 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11716 test "$ld_shlibs_CXX" = no && can_build_shared=no
11718 GCC_CXX="$GXX"
11719 LD_CXX="$LD"
11721 ## CAVEAT EMPTOR:
11722 ## There is no encapsulation within the following macros, do not change
11723 ## the running order or otherwise move them around unless you know exactly
11724 ## what you are doing...
11726 cat > conftest.$ac_ext <<EOF
11727 class Foo
11729 public:
11730 Foo (void) { a = 0; }
11731 private:
11732 int a;
11736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11737 (eval $ac_compile) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; then
11741 # Parse the compiler output and extract the necessary
11742 # objects, libraries and library flags.
11744 # Sentinel used to keep track of whether or not we are before
11745 # the conftest object file.
11746 pre_test_object_deps_done=no
11748 # The `*' in the case matches for architectures that use `case' in
11749 # $output_verbose_cmd can trigger glob expansion during the loop
11750 # eval without this substitution.
11751 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11753 for p in `eval $output_verbose_link_cmd`; do
11754 case $p in
11756 -L* | -R* | -l*)
11757 # Some compilers place space between "-{L,R}" and the path.
11758 # Remove the space.
11759 if test $p = "-L" \
11760 || test $p = "-R"; then
11761 prev=$p
11762 continue
11763 else
11764 prev=
11767 if test "$pre_test_object_deps_done" = no; then
11768 case $p in
11769 -L* | -R*)
11770 # Internal compiler library paths should come after those
11771 # provided the user. The postdeps already come after the
11772 # user supplied libs so there is no need to process them.
11773 if test -z "$compiler_lib_search_path_CXX"; then
11774 compiler_lib_search_path_CXX="${prev}${p}"
11775 else
11776 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11779 # The "-l" case would never come before the object being
11780 # linked, so don't bother handling this case.
11781 esac
11782 else
11783 if test -z "$postdeps_CXX"; then
11784 postdeps_CXX="${prev}${p}"
11785 else
11786 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11791 *.$objext)
11792 # This assumes that the test object file only shows up
11793 # once in the compiler output.
11794 if test "$p" = "conftest.$objext"; then
11795 pre_test_object_deps_done=yes
11796 continue
11799 if test "$pre_test_object_deps_done" = no; then
11800 if test -z "$predep_objects_CXX"; then
11801 predep_objects_CXX="$p"
11802 else
11803 predep_objects_CXX="$predep_objects_CXX $p"
11805 else
11806 if test -z "$postdep_objects_CXX"; then
11807 postdep_objects_CXX="$p"
11808 else
11809 postdep_objects_CXX="$postdep_objects_CXX $p"
11814 *) ;; # Ignore the rest.
11816 esac
11817 done
11819 # Clean up.
11820 rm -f a.out a.exe
11821 else
11822 echo "libtool.m4: error: problem compiling CXX test program"
11825 $rm -f confest.$objext
11827 # PORTME: override above test on systems where it is broken
11828 case $host_os in
11829 interix3*)
11830 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11831 # hack all around it, let's just trust "g++" to DTRT.
11832 predep_objects_CXX=
11833 postdep_objects_CXX=
11834 postdeps_CXX=
11837 solaris*)
11838 case $cc_basename in
11839 CC*)
11840 # Adding this requires a known-good setup of shared libraries for
11841 # Sun compiler versions before 5.6, else PIC objects from an old
11842 # archive will be linked into the output, leading to subtle bugs.
11843 postdeps_CXX='-lCstd -lCrun'
11845 esac
11847 esac
11850 case " $postdeps_CXX " in
11851 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11852 esac
11854 lt_prog_compiler_wl_CXX=
11855 lt_prog_compiler_pic_CXX=
11856 lt_prog_compiler_static_CXX=
11858 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11859 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11861 # C++ specific cases for pic, static, wl, etc.
11862 if test "$GXX" = yes; then
11863 lt_prog_compiler_wl_CXX='-Wl,'
11864 lt_prog_compiler_static_CXX='-static'
11866 case $host_os in
11867 aix*)
11868 # All AIX code is PIC.
11869 if test "$host_cpu" = ia64; then
11870 # AIX 5 now supports IA64 processor
11871 lt_prog_compiler_static_CXX='-Bstatic'
11874 amigaos*)
11875 # FIXME: we need at least 68020 code to build shared libraries, but
11876 # adding the `-m68020' flag to GCC prevents building anything better,
11877 # like `-m68040'.
11878 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11880 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11881 # PIC is the default for these OSes.
11883 mingw* | os2* | pw32*)
11884 # This hack is so that the source file can tell whether it is being
11885 # built for inclusion in a dll (and should export symbols for example).
11886 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11888 darwin* | rhapsody*)
11889 # PIC is the default on this platform
11890 # Common symbols not allowed in MH_DYLIB files
11891 lt_prog_compiler_pic_CXX='-fno-common'
11893 *djgpp*)
11894 # DJGPP does not support shared libraries at all
11895 lt_prog_compiler_pic_CXX=
11897 interix3*)
11898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11899 # Instead, we relocate shared libraries at runtime.
11901 sysv4*MP*)
11902 if test -d /usr/nec; then
11903 lt_prog_compiler_pic_CXX=-Kconform_pic
11906 hpux*)
11907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11908 # not for PA HP-UX.
11909 case $host_cpu in
11910 hppa*64*|ia64*)
11913 lt_prog_compiler_pic_CXX='-fPIC'
11915 esac
11918 lt_prog_compiler_pic_CXX='-fPIC'
11920 esac
11921 else
11922 case $host_os in
11923 aix4* | aix5*)
11924 # All AIX code is PIC.
11925 if test "$host_cpu" = ia64; then
11926 # AIX 5 now supports IA64 processor
11927 lt_prog_compiler_static_CXX='-Bstatic'
11928 else
11929 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11932 chorus*)
11933 case $cc_basename in
11934 cxch68*)
11935 # Green Hills C++ Compiler
11936 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11938 esac
11940 darwin*)
11941 # PIC is the default on this platform
11942 # Common symbols not allowed in MH_DYLIB files
11943 case $cc_basename in
11944 xlc*)
11945 lt_prog_compiler_pic_CXX='-qnocommon'
11946 lt_prog_compiler_wl_CXX='-Wl,'
11948 esac
11950 dgux*)
11951 case $cc_basename in
11952 ec++*)
11953 lt_prog_compiler_pic_CXX='-KPIC'
11955 ghcx*)
11956 # Green Hills C++ Compiler
11957 lt_prog_compiler_pic_CXX='-pic'
11961 esac
11963 freebsd* | kfreebsd*-gnu | dragonfly*)
11964 # FreeBSD uses GNU C++
11966 hpux9* | hpux10* | hpux11*)
11967 case $cc_basename in
11968 CC*)
11969 lt_prog_compiler_wl_CXX='-Wl,'
11970 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11971 if test "$host_cpu" != ia64; then
11972 lt_prog_compiler_pic_CXX='+Z'
11975 aCC*)
11976 lt_prog_compiler_wl_CXX='-Wl,'
11977 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11978 case $host_cpu in
11979 hppa*64*|ia64*)
11980 # +Z the default
11983 lt_prog_compiler_pic_CXX='+Z'
11985 esac
11989 esac
11991 interix*)
11992 # This is c89, which is MS Visual C++ (no shared libs)
11993 # Anyone wants to do a port?
11995 irix5* | irix6* | nonstopux*)
11996 case $cc_basename in
11997 CC*)
11998 lt_prog_compiler_wl_CXX='-Wl,'
11999 lt_prog_compiler_static_CXX='-non_shared'
12000 # CC pic flag -KPIC is the default.
12004 esac
12006 linux*)
12007 case $cc_basename in
12008 KCC*)
12009 # KAI C++ Compiler
12010 lt_prog_compiler_wl_CXX='--backend -Wl,'
12011 lt_prog_compiler_pic_CXX='-fPIC'
12013 icpc* | ecpc*)
12014 # Intel C++
12015 lt_prog_compiler_wl_CXX='-Wl,'
12016 lt_prog_compiler_pic_CXX='-KPIC'
12017 lt_prog_compiler_static_CXX='-static'
12019 pgCC*)
12020 # Portland Group C++ compiler.
12021 lt_prog_compiler_wl_CXX='-Wl,'
12022 lt_prog_compiler_pic_CXX='-fpic'
12023 lt_prog_compiler_static_CXX='-Bstatic'
12025 cxx*)
12026 # Compaq C++
12027 # Make sure the PIC flag is empty. It appears that all Alpha
12028 # Linux and Compaq Tru64 Unix objects are PIC.
12029 lt_prog_compiler_pic_CXX=
12030 lt_prog_compiler_static_CXX='-non_shared'
12034 esac
12036 lynxos*)
12038 m88k*)
12040 mvs*)
12041 case $cc_basename in
12042 cxx*)
12043 lt_prog_compiler_pic_CXX='-W c,exportall'
12047 esac
12049 netbsd*)
12051 osf3* | osf4* | osf5*)
12052 case $cc_basename in
12053 KCC*)
12054 lt_prog_compiler_wl_CXX='--backend -Wl,'
12056 RCC*)
12057 # Rational C++ 2.4.1
12058 lt_prog_compiler_pic_CXX='-pic'
12060 cxx*)
12061 # Digital/Compaq C++
12062 lt_prog_compiler_wl_CXX='-Wl,'
12063 # Make sure the PIC flag is empty. It appears that all Alpha
12064 # Linux and Compaq Tru64 Unix objects are PIC.
12065 lt_prog_compiler_pic_CXX=
12066 lt_prog_compiler_static_CXX='-non_shared'
12070 esac
12072 psos*)
12074 solaris*)
12075 case $cc_basename in
12076 CC*)
12077 # Sun C++ 4.2, 5.x and Centerline C++
12078 lt_prog_compiler_pic_CXX='-KPIC'
12079 lt_prog_compiler_static_CXX='-Bstatic'
12080 lt_prog_compiler_wl_CXX='-Qoption ld '
12082 gcx*)
12083 # Green Hills C++ Compiler
12084 lt_prog_compiler_pic_CXX='-PIC'
12088 esac
12090 sunos4*)
12091 case $cc_basename in
12092 CC*)
12093 # Sun C++ 4.x
12094 lt_prog_compiler_pic_CXX='-pic'
12095 lt_prog_compiler_static_CXX='-Bstatic'
12097 lcc*)
12098 # Lucid
12099 lt_prog_compiler_pic_CXX='-pic'
12103 esac
12105 tandem*)
12106 case $cc_basename in
12107 NCC*)
12108 # NonStop-UX NCC 3.20
12109 lt_prog_compiler_pic_CXX='-KPIC'
12113 esac
12115 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12116 case $cc_basename in
12117 CC*)
12118 lt_prog_compiler_wl_CXX='-Wl,'
12119 lt_prog_compiler_pic_CXX='-KPIC'
12120 lt_prog_compiler_static_CXX='-Bstatic'
12122 esac
12124 vxworks*)
12127 lt_prog_compiler_can_build_shared_CXX=no
12129 esac
12132 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12133 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12136 # Check to make sure the PIC flag actually works.
12138 if test -n "$lt_prog_compiler_pic_CXX"; then
12140 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12141 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12142 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12144 else
12145 lt_prog_compiler_pic_works_CXX=no
12146 ac_outfile=conftest.$ac_objext
12147 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12148 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12149 # Insert the option either (1) after the last *FLAGS variable, or
12150 # (2) before a word containing "conftest.", or (3) at the end.
12151 # Note that $ac_compile itself does not contain backslashes and begins
12152 # with a dollar sign (not a hyphen), so the echo should work correctly.
12153 # The option is referenced via a variable to avoid confusing sed.
12154 lt_compile=`echo "$ac_compile" | $SED \
12155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12157 -e 's:$: $lt_compiler_flag:'`
12158 (eval echo "\"\$as_me:12158: $lt_compile\"" >&5)
12159 (eval "$lt_compile" 2>conftest.err)
12160 ac_status=$?
12161 cat conftest.err >&5
12162 echo "$as_me:12162: \$? = $ac_status" >&5
12163 if (exit $ac_status) && test -s "$ac_outfile"; then
12164 # The compiler can only warn and ignore the option if not recognized
12165 # So say no if there are warnings other than the usual output.
12166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12169 lt_prog_compiler_pic_works_CXX=yes
12172 $rm conftest*
12175 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12176 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12178 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12179 case $lt_prog_compiler_pic_CXX in
12180 "" | " "*) ;;
12181 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12182 esac
12183 else
12184 lt_prog_compiler_pic_CXX=
12185 lt_prog_compiler_can_build_shared_CXX=no
12189 case $host_os in
12190 # For platforms which do not support PIC, -DPIC is meaningless:
12191 *djgpp*)
12192 lt_prog_compiler_pic_CXX=
12195 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12197 esac
12200 # Check to make sure the static flag actually works.
12202 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12203 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12204 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12205 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12207 else
12208 lt_prog_compiler_static_works_CXX=no
12209 save_LDFLAGS="$LDFLAGS"
12210 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12211 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12212 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12213 # The linker can only warn and ignore the option if not recognized
12214 # So say no if there are warnings
12215 if test -s conftest.err; then
12216 # Append any errors to the config.log.
12217 cat conftest.err 1>&5
12218 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12220 if diff conftest.exp conftest.er2 >/dev/null; then
12221 lt_prog_compiler_static_works_CXX=yes
12223 else
12224 lt_prog_compiler_static_works_CXX=yes
12227 $rm conftest*
12228 LDFLAGS="$save_LDFLAGS"
12231 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12232 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12234 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12236 else
12237 lt_prog_compiler_static_CXX=
12241 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12242 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12243 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246 lt_cv_prog_compiler_c_o_CXX=no
12247 $rm -r conftest 2>/dev/null
12248 mkdir conftest
12249 cd conftest
12250 mkdir out
12251 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12253 lt_compiler_flag="-o out/conftest2.$ac_objext"
12254 # Insert the option either (1) after the last *FLAGS variable, or
12255 # (2) before a word containing "conftest.", or (3) at the end.
12256 # Note that $ac_compile itself does not contain backslashes and begins
12257 # with a dollar sign (not a hyphen), so the echo should work correctly.
12258 lt_compile=`echo "$ac_compile" | $SED \
12259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12261 -e 's:$: $lt_compiler_flag:'`
12262 (eval echo "\"\$as_me:12262: $lt_compile\"" >&5)
12263 (eval "$lt_compile" 2>out/conftest.err)
12264 ac_status=$?
12265 cat out/conftest.err >&5
12266 echo "$as_me:12266: \$? = $ac_status" >&5
12267 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12268 then
12269 # The compiler can only warn and ignore the option if not recognized
12270 # So say no if there are warnings
12271 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12272 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12273 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12274 lt_cv_prog_compiler_c_o_CXX=yes
12277 chmod u+w . 2>&5
12278 $rm conftest*
12279 # SGI C++ compiler will create directory out/ii_files/ for
12280 # template instantiation
12281 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12282 $rm out/* && rmdir out
12283 cd ..
12284 rmdir conftest
12285 $rm conftest*
12288 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12289 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12292 hard_links="nottested"
12293 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12294 # do not overwrite the value of need_locks provided by the user
12295 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12296 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12297 hard_links=yes
12298 $rm conftest*
12299 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12300 touch conftest.a
12301 ln conftest.a conftest.b 2>&5 || hard_links=no
12302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12303 { echo "$as_me:$LINENO: result: $hard_links" >&5
12304 echo "${ECHO_T}$hard_links" >&6; }
12305 if test "$hard_links" = no; then
12306 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12307 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12308 need_locks=warn
12310 else
12311 need_locks=no
12314 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12315 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12317 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12318 case $host_os in
12319 aix4* | aix5*)
12320 # If we're using GNU nm, then we don't want the "-C" option.
12321 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12322 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12323 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12324 else
12325 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12328 pw32*)
12329 export_symbols_cmds_CXX="$ltdll_cmds"
12331 cygwin* | mingw*)
12332 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12335 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12337 esac
12339 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12340 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12341 test "$ld_shlibs_CXX" = no && can_build_shared=no
12344 # Do we need to explicitly link libc?
12346 case "x$archive_cmds_need_lc_CXX" in
12347 x|xyes)
12348 # Assume -lc should be added
12349 archive_cmds_need_lc_CXX=yes
12351 if test "$enable_shared" = yes && test "$GCC" = yes; then
12352 case $archive_cmds_CXX in
12353 *'~'*)
12354 # FIXME: we may have to deal with multi-command sequences.
12356 '$CC '*)
12357 # Test whether the compiler implicitly links with -lc since on some
12358 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12359 # to ld, don't add -lc before -lgcc.
12360 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12361 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12362 $rm conftest*
12363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12366 (eval $ac_compile) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } 2>conftest.err; then
12370 soname=conftest
12371 lib=conftest
12372 libobjs=conftest.$ac_objext
12373 deplibs=
12374 wl=$lt_prog_compiler_wl_CXX
12375 pic_flag=$lt_prog_compiler_pic_CXX
12376 compiler_flags=-v
12377 linker_flags=-v
12378 verstring=
12379 output_objdir=.
12380 libname=conftest
12381 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12382 allow_undefined_flag_CXX=
12383 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12384 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }
12388 then
12389 archive_cmds_need_lc_CXX=no
12390 else
12391 archive_cmds_need_lc_CXX=yes
12393 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12394 else
12395 cat conftest.err 1>&5
12397 $rm conftest*
12398 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12399 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12401 esac
12404 esac
12406 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12407 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12408 library_names_spec=
12409 libname_spec='lib$name'
12410 soname_spec=
12411 shrext_cmds=".so"
12412 postinstall_cmds=
12413 postuninstall_cmds=
12414 finish_cmds=
12415 finish_eval=
12416 shlibpath_var=
12417 shlibpath_overrides_runpath=unknown
12418 version_type=none
12419 dynamic_linker="$host_os ld.so"
12420 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12421 if test "$GCC" = yes; then
12422 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12423 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12424 # if the path contains ";" then we assume it to be the separator
12425 # otherwise default to the standard path separator (i.e. ":") - it is
12426 # assumed that no part of a normal pathname contains ";" but that should
12427 # okay in the real world where ";" in dirpaths is itself problematic.
12428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12429 else
12430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12432 else
12433 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12435 need_lib_prefix=unknown
12436 hardcode_into_libs=no
12438 # when you set need_version to no, make sure it does not cause -set_version
12439 # flags to be left without arguments
12440 need_version=unknown
12442 case $host_os in
12443 aix3*)
12444 version_type=linux
12445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12446 shlibpath_var=LIBPATH
12448 # AIX 3 has no versioning support, so we append a major version to the name.
12449 soname_spec='${libname}${release}${shared_ext}$major'
12452 aix4* | aix5*)
12453 version_type=linux
12454 need_lib_prefix=no
12455 need_version=no
12456 hardcode_into_libs=yes
12457 if test "$host_cpu" = ia64; then
12458 # AIX 5 supports IA64
12459 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12460 shlibpath_var=LD_LIBRARY_PATH
12461 else
12462 # With GCC up to 2.95.x, collect2 would create an import file
12463 # for dependence libraries. The import file would start with
12464 # the line `#! .'. This would cause the generated library to
12465 # depend on `.', always an invalid library. This was fixed in
12466 # development snapshots of GCC prior to 3.0.
12467 case $host_os in
12468 aix4 | aix4.[01] | aix4.[01].*)
12469 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12470 echo ' yes '
12471 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12473 else
12474 can_build_shared=no
12477 esac
12478 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12479 # soname into executable. Probably we can add versioning support to
12480 # collect2, so additional links can be useful in future.
12481 if test "$aix_use_runtimelinking" = yes; then
12482 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12483 # instead of lib<name>.a to let people know that these are not
12484 # typical AIX shared libraries.
12485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12486 else
12487 # We preserve .a as extension for shared libraries through AIX4.2
12488 # and later when we are not doing run time linking.
12489 library_names_spec='${libname}${release}.a $libname.a'
12490 soname_spec='${libname}${release}${shared_ext}$major'
12492 shlibpath_var=LIBPATH
12496 amigaos*)
12497 library_names_spec='$libname.ixlibrary $libname.a'
12498 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12499 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'
12502 beos*)
12503 library_names_spec='${libname}${shared_ext}'
12504 dynamic_linker="$host_os ld.so"
12505 shlibpath_var=LIBRARY_PATH
12508 bsdi[45]*)
12509 version_type=linux
12510 need_version=no
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12512 soname_spec='${libname}${release}${shared_ext}$major'
12513 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12514 shlibpath_var=LD_LIBRARY_PATH
12515 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12516 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12517 # the default ld.so.conf also contains /usr/contrib/lib and
12518 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12519 # libtool to hard-code these into programs
12522 cygwin* | mingw* | pw32*)
12523 version_type=windows
12524 shrext_cmds=".dll"
12525 need_version=no
12526 need_lib_prefix=no
12528 case $GCC,$host_os in
12529 yes,cygwin* | yes,mingw* | yes,pw32*)
12530 library_names_spec='$libname.dll.a'
12531 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12532 postinstall_cmds='base_file=`basename \${file}`~
12533 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12534 dldir=$destdir/`dirname \$dlpath`~
12535 test -d \$dldir || mkdir -p \$dldir~
12536 $install_prog $dir/$dlname \$dldir/$dlname~
12537 chmod a+x \$dldir/$dlname'
12538 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12539 dlpath=$dir/\$dldll~
12540 $rm \$dlpath'
12541 shlibpath_overrides_runpath=yes
12543 case $host_os in
12544 cygwin*)
12545 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12546 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
12547 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
12548 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12550 mingw*)
12551 # MinGW DLLs use traditional 'lib' prefix
12552 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
12553 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
12554 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12555 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12556 # It is most probably a Windows format PATH printed by
12557 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12558 # path with ; separators, and with drive letters. We can handle the
12559 # drive letters (cygwin fileutils understands them), so leave them,
12560 # especially as we might pass files found there to a mingw objdump,
12561 # which wouldn't understand a cygwinified path. Ahh.
12562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12563 else
12564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12567 pw32*)
12568 # pw32 DLLs use 'pw' prefix rather than 'lib'
12569 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12571 esac
12575 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12577 esac
12578 dynamic_linker='Win32 ld.exe'
12579 # FIXME: first we should search . and the directory the executable is in
12580 shlibpath_var=PATH
12583 darwin* | rhapsody*)
12584 dynamic_linker="$host_os dyld"
12585 version_type=darwin
12586 need_lib_prefix=no
12587 need_version=no
12588 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12589 soname_spec='${libname}${release}${major}$shared_ext'
12590 shlibpath_overrides_runpath=yes
12591 shlibpath_var=DYLD_LIBRARY_PATH
12592 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12593 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12594 if test "$GCC" = yes; then
12595 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12596 else
12597 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12599 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12602 dgux*)
12603 version_type=linux
12604 need_lib_prefix=no
12605 need_version=no
12606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12607 soname_spec='${libname}${release}${shared_ext}$major'
12608 shlibpath_var=LD_LIBRARY_PATH
12611 freebsd1*)
12612 dynamic_linker=no
12615 kfreebsd*-gnu)
12616 version_type=linux
12617 need_lib_prefix=no
12618 need_version=no
12619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12620 soname_spec='${libname}${release}${shared_ext}$major'
12621 shlibpath_var=LD_LIBRARY_PATH
12622 shlibpath_overrides_runpath=no
12623 hardcode_into_libs=yes
12624 dynamic_linker='GNU ld.so'
12627 freebsd* | dragonfly*)
12628 # DragonFly does not have aout. When/if they implement a new
12629 # versioning mechanism, adjust this.
12630 if test -x /usr/bin/objformat; then
12631 objformat=`/usr/bin/objformat`
12632 else
12633 case $host_os in
12634 freebsd[123]*) objformat=aout ;;
12635 *) objformat=elf ;;
12636 esac
12638 version_type=freebsd-$objformat
12639 case $version_type in
12640 freebsd-elf*)
12641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12642 need_version=no
12643 need_lib_prefix=no
12645 freebsd-*)
12646 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12647 need_version=yes
12649 esac
12650 shlibpath_var=LD_LIBRARY_PATH
12651 case $host_os in
12652 freebsd2*)
12653 shlibpath_overrides_runpath=yes
12655 freebsd3.[01]* | freebsdelf3.[01]*)
12656 shlibpath_overrides_runpath=yes
12657 hardcode_into_libs=yes
12659 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12660 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12661 shlibpath_overrides_runpath=no
12662 hardcode_into_libs=yes
12664 freebsd*) # from 4.6 on
12665 shlibpath_overrides_runpath=yes
12666 hardcode_into_libs=yes
12668 esac
12671 gnu*)
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 hardcode_into_libs=yes
12681 hpux9* | hpux10* | hpux11*)
12682 # Give a soname corresponding to the major version so that dld.sl refuses to
12683 # link against other versions.
12684 version_type=sunos
12685 need_lib_prefix=no
12686 need_version=no
12687 case $host_cpu in
12688 ia64*)
12689 shrext_cmds='.so'
12690 hardcode_into_libs=yes
12691 dynamic_linker="$host_os dld.so"
12692 shlibpath_var=LD_LIBRARY_PATH
12693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12695 soname_spec='${libname}${release}${shared_ext}$major'
12696 if test "X$HPUX_IA64_MODE" = X32; then
12697 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12698 else
12699 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12703 hppa*64*)
12704 shrext_cmds='.sl'
12705 hardcode_into_libs=yes
12706 dynamic_linker="$host_os dld.sl"
12707 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12710 soname_spec='${libname}${release}${shared_ext}$major'
12711 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12715 shrext_cmds='.sl'
12716 dynamic_linker="$host_os dld.sl"
12717 shlibpath_var=SHLIB_PATH
12718 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12720 soname_spec='${libname}${release}${shared_ext}$major'
12722 esac
12723 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12724 postinstall_cmds='chmod 555 $lib'
12727 interix3*)
12728 version_type=linux
12729 need_lib_prefix=no
12730 need_version=no
12731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12732 soname_spec='${libname}${release}${shared_ext}$major'
12733 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12734 shlibpath_var=LD_LIBRARY_PATH
12735 shlibpath_overrides_runpath=no
12736 hardcode_into_libs=yes
12739 irix5* | irix6* | nonstopux*)
12740 case $host_os in
12741 nonstopux*) version_type=nonstopux ;;
12743 if test "$lt_cv_prog_gnu_ld" = yes; then
12744 version_type=linux
12745 else
12746 version_type=irix
12747 fi ;;
12748 esac
12749 need_lib_prefix=no
12750 need_version=no
12751 soname_spec='${libname}${release}${shared_ext}$major'
12752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12753 case $host_os in
12754 irix5* | nonstopux*)
12755 libsuff= shlibsuff=
12758 case $LD in # libtool.m4 will add one of these switches to LD
12759 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12760 libsuff= shlibsuff= libmagic=32-bit;;
12761 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12762 libsuff=32 shlibsuff=N32 libmagic=N32;;
12763 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12764 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12765 *) libsuff= shlibsuff= libmagic=never-match;;
12766 esac
12768 esac
12769 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12770 shlibpath_overrides_runpath=no
12771 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12772 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12773 hardcode_into_libs=yes
12776 # No shared lib support for Linux oldld, aout, or coff.
12777 linux*oldld* | linux*aout* | linux*coff*)
12778 dynamic_linker=no
12781 # This must be Linux ELF.
12782 linux*)
12783 version_type=linux
12784 need_lib_prefix=no
12785 need_version=no
12786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12787 soname_spec='${libname}${release}${shared_ext}$major'
12788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12789 shlibpath_var=LD_LIBRARY_PATH
12790 shlibpath_overrides_runpath=no
12791 # This implies no fast_install, which is unacceptable.
12792 # Some rework will be needed to allow for fast_install
12793 # before this can be enabled.
12794 hardcode_into_libs=yes
12796 # Append ld.so.conf contents to the search path
12797 if test -f /etc/ld.so.conf; then
12798 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12799 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12802 # We used to test for /lib/ld.so.1 and disable shared libraries on
12803 # powerpc, because MkLinux only supported shared libraries with the
12804 # GNU dynamic linker. Since this was broken with cross compilers,
12805 # most powerpc-linux boxes support dynamic linking these days and
12806 # people can always --disable-shared, the test was removed, and we
12807 # assume the GNU/Linux dynamic linker is in use.
12808 dynamic_linker='GNU/Linux ld.so'
12811 knetbsd*-gnu)
12812 version_type=linux
12813 need_lib_prefix=no
12814 need_version=no
12815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12816 soname_spec='${libname}${release}${shared_ext}$major'
12817 shlibpath_var=LD_LIBRARY_PATH
12818 shlibpath_overrides_runpath=no
12819 hardcode_into_libs=yes
12820 dynamic_linker='GNU ld.so'
12823 netbsd*)
12824 version_type=sunos
12825 need_lib_prefix=no
12826 need_version=no
12827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12830 dynamic_linker='NetBSD (a.out) ld.so'
12831 else
12832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12833 soname_spec='${libname}${release}${shared_ext}$major'
12834 dynamic_linker='NetBSD ld.elf_so'
12836 shlibpath_var=LD_LIBRARY_PATH
12837 shlibpath_overrides_runpath=yes
12838 hardcode_into_libs=yes
12841 newsos6)
12842 version_type=linux
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 shlibpath_overrides_runpath=yes
12848 nto-qnx*)
12849 version_type=linux
12850 need_lib_prefix=no
12851 need_version=no
12852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12853 soname_spec='${libname}${release}${shared_ext}$major'
12854 shlibpath_var=LD_LIBRARY_PATH
12855 shlibpath_overrides_runpath=yes
12858 openbsd*)
12859 version_type=sunos
12860 sys_lib_dlsearch_path_spec="/usr/lib"
12861 need_lib_prefix=no
12862 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12863 case $host_os in
12864 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12865 *) need_version=no ;;
12866 esac
12867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12869 shlibpath_var=LD_LIBRARY_PATH
12870 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12871 case $host_os in
12872 openbsd2.[89] | openbsd2.[89].*)
12873 shlibpath_overrides_runpath=no
12876 shlibpath_overrides_runpath=yes
12878 esac
12879 else
12880 shlibpath_overrides_runpath=yes
12884 os2*)
12885 libname_spec='$name'
12886 shrext_cmds=".dll"
12887 need_lib_prefix=no
12888 library_names_spec='$libname${shared_ext} $libname.a'
12889 dynamic_linker='OS/2 ld.exe'
12890 shlibpath_var=LIBPATH
12893 osf3* | osf4* | osf5*)
12894 version_type=osf
12895 need_lib_prefix=no
12896 need_version=no
12897 soname_spec='${libname}${release}${shared_ext}$major'
12898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12899 shlibpath_var=LD_LIBRARY_PATH
12900 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12901 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12904 solaris*)
12905 version_type=linux
12906 need_lib_prefix=no
12907 need_version=no
12908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12909 soname_spec='${libname}${release}${shared_ext}$major'
12910 shlibpath_var=LD_LIBRARY_PATH
12911 shlibpath_overrides_runpath=yes
12912 hardcode_into_libs=yes
12913 # ldd complains unless libraries are executable
12914 postinstall_cmds='chmod +x $lib'
12917 sunos4*)
12918 version_type=sunos
12919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12921 shlibpath_var=LD_LIBRARY_PATH
12922 shlibpath_overrides_runpath=yes
12923 if test "$with_gnu_ld" = yes; then
12924 need_lib_prefix=no
12926 need_version=yes
12929 sysv4 | sysv4.3*)
12930 version_type=linux
12931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932 soname_spec='${libname}${release}${shared_ext}$major'
12933 shlibpath_var=LD_LIBRARY_PATH
12934 case $host_vendor in
12935 sni)
12936 shlibpath_overrides_runpath=no
12937 need_lib_prefix=no
12938 export_dynamic_flag_spec='${wl}-Blargedynsym'
12939 runpath_var=LD_RUN_PATH
12941 siemens)
12942 need_lib_prefix=no
12944 motorola)
12945 need_lib_prefix=no
12946 need_version=no
12947 shlibpath_overrides_runpath=no
12948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12950 esac
12953 sysv4*MP*)
12954 if test -d /usr/nec ;then
12955 version_type=linux
12956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12957 soname_spec='$libname${shared_ext}.$major'
12958 shlibpath_var=LD_LIBRARY_PATH
12962 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12963 version_type=freebsd-elf
12964 need_lib_prefix=no
12965 need_version=no
12966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12967 soname_spec='${libname}${release}${shared_ext}$major'
12968 shlibpath_var=LD_LIBRARY_PATH
12969 hardcode_into_libs=yes
12970 if test "$with_gnu_ld" = yes; then
12971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12972 shlibpath_overrides_runpath=no
12973 else
12974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12975 shlibpath_overrides_runpath=yes
12976 case $host_os in
12977 sco3.2v5*)
12978 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12980 esac
12982 sys_lib_dlsearch_path_spec='/usr/lib'
12985 uts4*)
12986 version_type=linux
12987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12988 soname_spec='${libname}${release}${shared_ext}$major'
12989 shlibpath_var=LD_LIBRARY_PATH
12993 dynamic_linker=no
12995 esac
12996 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12997 echo "${ECHO_T}$dynamic_linker" >&6; }
12998 test "$dynamic_linker" = no && can_build_shared=no
13000 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13001 if test "$GCC" = yes; then
13002 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13005 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13006 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13007 hardcode_action_CXX=
13008 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13009 test -n "$runpath_var_CXX" || \
13010 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13012 # We can hardcode non-existant directories.
13013 if test "$hardcode_direct_CXX" != no &&
13014 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13015 # have to relink, otherwise we might link with an installed library
13016 # when we should be linking with a yet-to-be-installed one
13017 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13018 test "$hardcode_minus_L_CXX" != no; then
13019 # Linking always hardcodes the temporary library directory.
13020 hardcode_action_CXX=relink
13021 else
13022 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13023 hardcode_action_CXX=immediate
13025 else
13026 # We cannot hardcode anything, or else we can only hardcode existing
13027 # directories.
13028 hardcode_action_CXX=unsupported
13030 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13031 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13033 if test "$hardcode_action_CXX" = relink; then
13034 # Fast installation is not supported
13035 enable_fast_install=no
13036 elif test "$shlibpath_overrides_runpath" = yes ||
13037 test "$enable_shared" = no; then
13038 # Fast installation is not necessary
13039 enable_fast_install=needless
13043 # The else clause should only fire when bootstrapping the
13044 # libtool distribution, otherwise you forgot to ship ltmain.sh
13045 # with your package, and you will get complaints that there are
13046 # no rules to generate ltmain.sh.
13047 if test -f "$ltmain"; then
13048 # See if we are running on zsh, and set the options which allow our commands through
13049 # without removal of \ escapes.
13050 if test -n "${ZSH_VERSION+set}" ; then
13051 setopt NO_GLOB_SUBST
13053 # Now quote all the things that may contain metacharacters while being
13054 # careful not to overquote the AC_SUBSTed values. We take copies of the
13055 # variables and quote the copies for generation of the libtool script.
13056 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13057 SED SHELL STRIP \
13058 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13059 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13060 deplibs_check_method reload_flag reload_cmds need_locks \
13061 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13062 lt_cv_sys_global_symbol_to_c_name_address \
13063 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13064 old_postinstall_cmds old_postuninstall_cmds \
13065 compiler_CXX \
13066 CC_CXX \
13067 LD_CXX \
13068 lt_prog_compiler_wl_CXX \
13069 lt_prog_compiler_pic_CXX \
13070 lt_prog_compiler_static_CXX \
13071 lt_prog_compiler_no_builtin_flag_CXX \
13072 export_dynamic_flag_spec_CXX \
13073 thread_safe_flag_spec_CXX \
13074 whole_archive_flag_spec_CXX \
13075 enable_shared_with_static_runtimes_CXX \
13076 old_archive_cmds_CXX \
13077 old_archive_from_new_cmds_CXX \
13078 predep_objects_CXX \
13079 postdep_objects_CXX \
13080 predeps_CXX \
13081 postdeps_CXX \
13082 compiler_lib_search_path_CXX \
13083 archive_cmds_CXX \
13084 archive_expsym_cmds_CXX \
13085 postinstall_cmds_CXX \
13086 postuninstall_cmds_CXX \
13087 old_archive_from_expsyms_cmds_CXX \
13088 allow_undefined_flag_CXX \
13089 no_undefined_flag_CXX \
13090 export_symbols_cmds_CXX \
13091 hardcode_libdir_flag_spec_CXX \
13092 hardcode_libdir_flag_spec_ld_CXX \
13093 hardcode_libdir_separator_CXX \
13094 hardcode_automatic_CXX \
13095 module_cmds_CXX \
13096 module_expsym_cmds_CXX \
13097 lt_cv_prog_compiler_c_o_CXX \
13098 exclude_expsyms_CXX \
13099 include_expsyms_CXX; do
13101 case $var in
13102 old_archive_cmds_CXX | \
13103 old_archive_from_new_cmds_CXX | \
13104 archive_cmds_CXX | \
13105 archive_expsym_cmds_CXX | \
13106 module_cmds_CXX | \
13107 module_expsym_cmds_CXX | \
13108 old_archive_from_expsyms_cmds_CXX | \
13109 export_symbols_cmds_CXX | \
13110 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13111 postinstall_cmds | postuninstall_cmds | \
13112 old_postinstall_cmds | old_postuninstall_cmds | \
13113 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13114 # Double-quote double-evaled strings.
13115 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13118 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13120 esac
13121 done
13123 case $lt_echo in
13124 *'\$0 --fallback-echo"')
13125 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13127 esac
13129 cfgfile="$ofile"
13131 cat <<__EOF__ >> "$cfgfile"
13132 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13134 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13136 # Shell to use when invoking shell scripts.
13137 SHELL=$lt_SHELL
13139 # Whether or not to build shared libraries.
13140 build_libtool_libs=$enable_shared
13142 # Whether or not to build static libraries.
13143 build_old_libs=$enable_static
13145 # Whether or not to add -lc for building shared libraries.
13146 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13148 # Whether or not to disallow shared libs when runtime libs are static
13149 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13151 # Whether or not to optimize for fast installation.
13152 fast_install=$enable_fast_install
13154 # The host system.
13155 host_alias=$host_alias
13156 host=$host
13157 host_os=$host_os
13159 # The build system.
13160 build_alias=$build_alias
13161 build=$build
13162 build_os=$build_os
13164 # An echo program that does not interpret backslashes.
13165 echo=$lt_echo
13167 # The archiver.
13168 AR=$lt_AR
13169 AR_FLAGS=$lt_AR_FLAGS
13171 # A C compiler.
13172 LTCC=$lt_LTCC
13174 # LTCC compiler flags.
13175 LTCFLAGS=$lt_LTCFLAGS
13177 # A language-specific compiler.
13178 CC=$lt_compiler_CXX
13180 # Is the compiler the GNU C compiler?
13181 with_gcc=$GCC_CXX
13183 # An ERE matcher.
13184 EGREP=$lt_EGREP
13186 # The linker used to build libraries.
13187 LD=$lt_LD_CXX
13189 # Whether we need hard or soft links.
13190 LN_S=$lt_LN_S
13192 # A BSD-compatible nm program.
13193 NM=$lt_NM
13195 # A symbol stripping program
13196 STRIP=$lt_STRIP
13198 # Used to examine libraries when file_magic_cmd begins "file"
13199 MAGIC_CMD=$MAGIC_CMD
13201 # Used on cygwin: DLL creation program.
13202 DLLTOOL="$DLLTOOL"
13204 # Used on cygwin: object dumper.
13205 OBJDUMP="$OBJDUMP"
13207 # Used on cygwin: assembler.
13208 AS="$AS"
13210 # The name of the directory that contains temporary libtool files.
13211 objdir=$objdir
13213 # How to create reloadable object files.
13214 reload_flag=$lt_reload_flag
13215 reload_cmds=$lt_reload_cmds
13217 # How to pass a linker flag through the compiler.
13218 wl=$lt_lt_prog_compiler_wl_CXX
13220 # Object file suffix (normally "o").
13221 objext="$ac_objext"
13223 # Old archive suffix (normally "a").
13224 libext="$libext"
13226 # Shared library suffix (normally ".so").
13227 shrext_cmds='$shrext_cmds'
13229 # Executable file suffix (normally "").
13230 exeext="$exeext"
13232 # Additional compiler flags for building library objects.
13233 pic_flag=$lt_lt_prog_compiler_pic_CXX
13234 pic_mode=$pic_mode
13236 # What is the maximum length of a command?
13237 max_cmd_len=$lt_cv_sys_max_cmd_len
13239 # Does compiler simultaneously support -c and -o options?
13240 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13242 # Must we lock files when doing compilation?
13243 need_locks=$lt_need_locks
13245 # Do we need the lib prefix for modules?
13246 need_lib_prefix=$need_lib_prefix
13248 # Do we need a version for libraries?
13249 need_version=$need_version
13251 # Whether dlopen is supported.
13252 dlopen_support=$enable_dlopen
13254 # Whether dlopen of programs is supported.
13255 dlopen_self=$enable_dlopen_self
13257 # Whether dlopen of statically linked programs is supported.
13258 dlopen_self_static=$enable_dlopen_self_static
13260 # Compiler flag to prevent dynamic linking.
13261 link_static_flag=$lt_lt_prog_compiler_static_CXX
13263 # Compiler flag to turn off builtin functions.
13264 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13266 # Compiler flag to allow reflexive dlopens.
13267 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13269 # Compiler flag to generate shared objects directly from archives.
13270 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13272 # Compiler flag to generate thread-safe objects.
13273 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13275 # Library versioning type.
13276 version_type=$version_type
13278 # Format of library name prefix.
13279 libname_spec=$lt_libname_spec
13281 # List of archive names. First name is the real one, the rest are links.
13282 # The last name is the one that the linker finds with -lNAME.
13283 library_names_spec=$lt_library_names_spec
13285 # The coded name of the library, if different from the real name.
13286 soname_spec=$lt_soname_spec
13288 # Commands used to build and install an old-style archive.
13289 RANLIB=$lt_RANLIB
13290 old_archive_cmds=$lt_old_archive_cmds_CXX
13291 old_postinstall_cmds=$lt_old_postinstall_cmds
13292 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13294 # Create an old-style archive from a shared archive.
13295 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13297 # Create a temporary old-style archive to link instead of a shared archive.
13298 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13300 # Commands used to build and install a shared archive.
13301 archive_cmds=$lt_archive_cmds_CXX
13302 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13303 postinstall_cmds=$lt_postinstall_cmds
13304 postuninstall_cmds=$lt_postuninstall_cmds
13306 # Commands used to build a loadable module (assumed same as above if empty)
13307 module_cmds=$lt_module_cmds_CXX
13308 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13310 # Commands to strip libraries.
13311 old_striplib=$lt_old_striplib
13312 striplib=$lt_striplib
13314 # Dependencies to place before the objects being linked to create a
13315 # shared library.
13316 predep_objects=$lt_predep_objects_CXX
13318 # Dependencies to place after the objects being linked to create a
13319 # shared library.
13320 postdep_objects=$lt_postdep_objects_CXX
13322 # Dependencies to place before the objects being linked to create a
13323 # shared library.
13324 predeps=$lt_predeps_CXX
13326 # Dependencies to place after the objects being linked to create a
13327 # shared library.
13328 postdeps=$lt_postdeps_CXX
13330 # The library search path used internally by the compiler when linking
13331 # a shared library.
13332 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13334 # Method to check whether dependent libraries are shared objects.
13335 deplibs_check_method=$lt_deplibs_check_method
13337 # Command to use when deplibs_check_method == file_magic.
13338 file_magic_cmd=$lt_file_magic_cmd
13340 # Flag that allows shared libraries with undefined symbols to be built.
13341 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13343 # Flag that forces no undefined symbols.
13344 no_undefined_flag=$lt_no_undefined_flag_CXX
13346 # Commands used to finish a libtool library installation in a directory.
13347 finish_cmds=$lt_finish_cmds
13349 # Same as above, but a single script fragment to be evaled but not shown.
13350 finish_eval=$lt_finish_eval
13352 # Take the output of nm and produce a listing of raw symbols and C names.
13353 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13355 # Transform the output of nm in a proper C declaration
13356 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13358 # Transform the output of nm in a C name address pair
13359 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13361 # This is the shared library runtime path variable.
13362 runpath_var=$runpath_var
13364 # This is the shared library path variable.
13365 shlibpath_var=$shlibpath_var
13367 # Is shlibpath searched before the hard-coded library search path?
13368 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13370 # How to hardcode a shared library path into an executable.
13371 hardcode_action=$hardcode_action_CXX
13373 # Whether we should hardcode library paths into libraries.
13374 hardcode_into_libs=$hardcode_into_libs
13376 # Flag to hardcode \$libdir into a binary during linking.
13377 # This must work even if \$libdir does not exist.
13378 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13380 # If ld is used when linking, flag to hardcode \$libdir into
13381 # a binary during linking. This must work even if \$libdir does
13382 # not exist.
13383 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13385 # Whether we need a single -rpath flag with a separated argument.
13386 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13388 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13389 # resulting binary.
13390 hardcode_direct=$hardcode_direct_CXX
13392 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13393 # resulting binary.
13394 hardcode_minus_L=$hardcode_minus_L_CXX
13396 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13397 # the resulting binary.
13398 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13400 # Set to yes if building a shared library automatically hardcodes DIR into the library
13401 # and all subsequent libraries and executables linked against it.
13402 hardcode_automatic=$hardcode_automatic_CXX
13404 # Variables whose values should be saved in libtool wrapper scripts and
13405 # restored at relink time.
13406 variables_saved_for_relink="$variables_saved_for_relink"
13408 # Whether libtool must link a program against all its dependency libraries.
13409 link_all_deplibs=$link_all_deplibs_CXX
13411 # Compile-time system search path for libraries
13412 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13414 # Run-time system search path for libraries
13415 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13417 # Fix the shell variable \$srcfile for the compiler.
13418 fix_srcfile_path="$fix_srcfile_path_CXX"
13420 # Set to yes if exported symbols are required.
13421 always_export_symbols=$always_export_symbols_CXX
13423 # The commands to list exported symbols.
13424 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13426 # The commands to extract the exported symbol list from a shared archive.
13427 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13429 # Symbols that should not be listed in the preloaded symbols.
13430 exclude_expsyms=$lt_exclude_expsyms_CXX
13432 # Symbols that must always be exported.
13433 include_expsyms=$lt_include_expsyms_CXX
13435 # ### END LIBTOOL TAG CONFIG: $tagname
13437 __EOF__
13440 else
13441 # If there is no Makefile yet, we rely on a make rule to execute
13442 # `config.status --recheck' to rerun these tests and create the
13443 # libtool script then.
13444 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13445 if test -f "$ltmain_in"; then
13446 test -f Makefile && make "$ltmain"
13451 ac_ext=c
13452 ac_cpp='$CPP $CPPFLAGS'
13453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13457 CC=$lt_save_CC
13458 LDCXX=$LD
13459 LD=$lt_save_LD
13460 GCC=$lt_save_GCC
13461 with_gnu_ldcxx=$with_gnu_ld
13462 with_gnu_ld=$lt_save_with_gnu_ld
13463 lt_cv_path_LDCXX=$lt_cv_path_LD
13464 lt_cv_path_LD=$lt_save_path_LD
13465 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13466 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13468 else
13469 tagname=""
13473 F77)
13474 if test -n "$F77" && test "X$F77" != "Xno"; then
13476 ac_ext=f
13477 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13478 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13479 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13482 archive_cmds_need_lc_F77=no
13483 allow_undefined_flag_F77=
13484 always_export_symbols_F77=no
13485 archive_expsym_cmds_F77=
13486 export_dynamic_flag_spec_F77=
13487 hardcode_direct_F77=no
13488 hardcode_libdir_flag_spec_F77=
13489 hardcode_libdir_flag_spec_ld_F77=
13490 hardcode_libdir_separator_F77=
13491 hardcode_minus_L_F77=no
13492 hardcode_automatic_F77=no
13493 module_cmds_F77=
13494 module_expsym_cmds_F77=
13495 link_all_deplibs_F77=unknown
13496 old_archive_cmds_F77=$old_archive_cmds
13497 no_undefined_flag_F77=
13498 whole_archive_flag_spec_F77=
13499 enable_shared_with_static_runtimes_F77=no
13501 # Source file extension for f77 test sources.
13502 ac_ext=f
13504 # Object file extension for compiled f77 test sources.
13505 objext=o
13506 objext_F77=$objext
13508 # Code to be used in simple compile tests
13509 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13511 # Code to be used in simple link tests
13512 lt_simple_link_test_code=" program t\n end\n"
13514 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13516 # If no C compiler was specified, use CC.
13517 LTCC=${LTCC-"$CC"}
13519 # If no C compiler flags were specified, use CFLAGS.
13520 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13522 # Allow CC to be a program name with arguments.
13523 compiler=$CC
13526 # save warnings/boilerplate of simple test code
13527 ac_outfile=conftest.$ac_objext
13528 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13529 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13530 _lt_compiler_boilerplate=`cat conftest.err`
13531 $rm conftest*
13533 ac_outfile=conftest.$ac_objext
13534 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13535 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13536 _lt_linker_boilerplate=`cat conftest.err`
13537 $rm conftest*
13540 # Allow CC to be a program name with arguments.
13541 lt_save_CC="$CC"
13542 CC=${F77-"f77"}
13543 compiler=$CC
13544 compiler_F77=$CC
13545 for cc_temp in $compiler""; do
13546 case $cc_temp in
13547 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13548 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13549 \-*) ;;
13550 *) break;;
13551 esac
13552 done
13553 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13556 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13557 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13558 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13559 echo "${ECHO_T}$can_build_shared" >&6; }
13561 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13562 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13563 test "$can_build_shared" = "no" && enable_shared=no
13565 # On AIX, shared libraries and static libraries use the same namespace, and
13566 # are all built from PIC.
13567 case $host_os in
13568 aix3*)
13569 test "$enable_shared" = yes && enable_static=no
13570 if test -n "$RANLIB"; then
13571 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13572 postinstall_cmds='$RANLIB $lib'
13575 aix4* | aix5*)
13576 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13577 test "$enable_shared" = yes && enable_static=no
13580 esac
13581 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13582 echo "${ECHO_T}$enable_shared" >&6; }
13584 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13585 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13586 # Make sure either enable_shared or enable_static is yes.
13587 test "$enable_shared" = yes || enable_static=yes
13588 { echo "$as_me:$LINENO: result: $enable_static" >&5
13589 echo "${ECHO_T}$enable_static" >&6; }
13591 GCC_F77="$G77"
13592 LD_F77="$LD"
13594 lt_prog_compiler_wl_F77=
13595 lt_prog_compiler_pic_F77=
13596 lt_prog_compiler_static_F77=
13598 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13599 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13601 if test "$GCC" = yes; then
13602 lt_prog_compiler_wl_F77='-Wl,'
13603 lt_prog_compiler_static_F77='-static'
13605 case $host_os in
13606 aix*)
13607 # All AIX code is PIC.
13608 if test "$host_cpu" = ia64; then
13609 # AIX 5 now supports IA64 processor
13610 lt_prog_compiler_static_F77='-Bstatic'
13614 amigaos*)
13615 # FIXME: we need at least 68020 code to build shared libraries, but
13616 # adding the `-m68020' flag to GCC prevents building anything better,
13617 # like `-m68040'.
13618 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13621 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13622 # PIC is the default for these OSes.
13625 mingw* | pw32* | os2*)
13626 # This hack is so that the source file can tell whether it is being
13627 # built for inclusion in a dll (and should export symbols for example).
13628 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13631 darwin* | rhapsody*)
13632 # PIC is the default on this platform
13633 # Common symbols not allowed in MH_DYLIB files
13634 lt_prog_compiler_pic_F77='-fno-common'
13637 interix3*)
13638 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13639 # Instead, we relocate shared libraries at runtime.
13642 msdosdjgpp*)
13643 # Just because we use GCC doesn't mean we suddenly get shared libraries
13644 # on systems that don't support them.
13645 lt_prog_compiler_can_build_shared_F77=no
13646 enable_shared=no
13649 sysv4*MP*)
13650 if test -d /usr/nec; then
13651 lt_prog_compiler_pic_F77=-Kconform_pic
13655 hpux*)
13656 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13657 # not for PA HP-UX.
13658 case $host_cpu in
13659 hppa*64*|ia64*)
13660 # +Z the default
13663 lt_prog_compiler_pic_F77='-fPIC'
13665 esac
13669 lt_prog_compiler_pic_F77='-fPIC'
13671 esac
13672 else
13673 # PORTME Check for flag to pass linker flags through the system compiler.
13674 case $host_os in
13675 aix*)
13676 lt_prog_compiler_wl_F77='-Wl,'
13677 if test "$host_cpu" = ia64; then
13678 # AIX 5 now supports IA64 processor
13679 lt_prog_compiler_static_F77='-Bstatic'
13680 else
13681 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13684 darwin*)
13685 # PIC is the default on this platform
13686 # Common symbols not allowed in MH_DYLIB files
13687 case $cc_basename in
13688 xlc*)
13689 lt_prog_compiler_pic_F77='-qnocommon'
13690 lt_prog_compiler_wl_F77='-Wl,'
13692 esac
13695 mingw* | pw32* | os2*)
13696 # This hack is so that the source file can tell whether it is being
13697 # built for inclusion in a dll (and should export symbols for example).
13698 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13701 hpux9* | hpux10* | hpux11*)
13702 lt_prog_compiler_wl_F77='-Wl,'
13703 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13704 # not for PA HP-UX.
13705 case $host_cpu in
13706 hppa*64*|ia64*)
13707 # +Z the default
13710 lt_prog_compiler_pic_F77='+Z'
13712 esac
13713 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13714 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13717 irix5* | irix6* | nonstopux*)
13718 lt_prog_compiler_wl_F77='-Wl,'
13719 # PIC (with -KPIC) is the default.
13720 lt_prog_compiler_static_F77='-non_shared'
13723 newsos6)
13724 lt_prog_compiler_pic_F77='-KPIC'
13725 lt_prog_compiler_static_F77='-Bstatic'
13728 linux*)
13729 case $cc_basename in
13730 icc* | ecc*)
13731 lt_prog_compiler_wl_F77='-Wl,'
13732 lt_prog_compiler_pic_F77='-KPIC'
13733 lt_prog_compiler_static_F77='-static'
13735 pgcc* | pgf77* | pgf90* | pgf95*)
13736 # Portland Group compilers (*not* the Pentium gcc compiler,
13737 # which looks to be a dead project)
13738 lt_prog_compiler_wl_F77='-Wl,'
13739 lt_prog_compiler_pic_F77='-fpic'
13740 lt_prog_compiler_static_F77='-Bstatic'
13742 ccc*)
13743 lt_prog_compiler_wl_F77='-Wl,'
13744 # All Alpha code is PIC.
13745 lt_prog_compiler_static_F77='-non_shared'
13747 esac
13750 osf3* | osf4* | osf5*)
13751 lt_prog_compiler_wl_F77='-Wl,'
13752 # All OSF/1 code is PIC.
13753 lt_prog_compiler_static_F77='-non_shared'
13756 solaris*)
13757 lt_prog_compiler_pic_F77='-KPIC'
13758 lt_prog_compiler_static_F77='-Bstatic'
13759 case $cc_basename in
13760 f77* | f90* | f95*)
13761 lt_prog_compiler_wl_F77='-Qoption ld ';;
13763 lt_prog_compiler_wl_F77='-Wl,';;
13764 esac
13767 sunos4*)
13768 lt_prog_compiler_wl_F77='-Qoption ld '
13769 lt_prog_compiler_pic_F77='-PIC'
13770 lt_prog_compiler_static_F77='-Bstatic'
13773 sysv4 | sysv4.2uw2* | sysv4.3*)
13774 lt_prog_compiler_wl_F77='-Wl,'
13775 lt_prog_compiler_pic_F77='-KPIC'
13776 lt_prog_compiler_static_F77='-Bstatic'
13779 sysv4*MP*)
13780 if test -d /usr/nec ;then
13781 lt_prog_compiler_pic_F77='-Kconform_pic'
13782 lt_prog_compiler_static_F77='-Bstatic'
13786 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13787 lt_prog_compiler_wl_F77='-Wl,'
13788 lt_prog_compiler_pic_F77='-KPIC'
13789 lt_prog_compiler_static_F77='-Bstatic'
13792 unicos*)
13793 lt_prog_compiler_wl_F77='-Wl,'
13794 lt_prog_compiler_can_build_shared_F77=no
13797 uts4*)
13798 lt_prog_compiler_pic_F77='-pic'
13799 lt_prog_compiler_static_F77='-Bstatic'
13803 lt_prog_compiler_can_build_shared_F77=no
13805 esac
13808 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13809 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13812 # Check to make sure the PIC flag actually works.
13814 if test -n "$lt_prog_compiler_pic_F77"; then
13816 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13817 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13818 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821 lt_prog_compiler_pic_works_F77=no
13822 ac_outfile=conftest.$ac_objext
13823 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13824 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13825 # Insert the option either (1) after the last *FLAGS variable, or
13826 # (2) before a word containing "conftest.", or (3) at the end.
13827 # Note that $ac_compile itself does not contain backslashes and begins
13828 # with a dollar sign (not a hyphen), so the echo should work correctly.
13829 # The option is referenced via a variable to avoid confusing sed.
13830 lt_compile=`echo "$ac_compile" | $SED \
13831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13833 -e 's:$: $lt_compiler_flag:'`
13834 (eval echo "\"\$as_me:13834: $lt_compile\"" >&5)
13835 (eval "$lt_compile" 2>conftest.err)
13836 ac_status=$?
13837 cat conftest.err >&5
13838 echo "$as_me:13838: \$? = $ac_status" >&5
13839 if (exit $ac_status) && test -s "$ac_outfile"; then
13840 # The compiler can only warn and ignore the option if not recognized
13841 # So say no if there are warnings other than the usual output.
13842 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13844 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13845 lt_prog_compiler_pic_works_F77=yes
13848 $rm conftest*
13851 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13852 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13854 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13855 case $lt_prog_compiler_pic_F77 in
13856 "" | " "*) ;;
13857 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13858 esac
13859 else
13860 lt_prog_compiler_pic_F77=
13861 lt_prog_compiler_can_build_shared_F77=no
13865 case $host_os in
13866 # For platforms which do not support PIC, -DPIC is meaningless:
13867 *djgpp*)
13868 lt_prog_compiler_pic_F77=
13871 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13873 esac
13876 # Check to make sure the static flag actually works.
13878 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13879 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13880 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13881 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13884 lt_prog_compiler_static_works_F77=no
13885 save_LDFLAGS="$LDFLAGS"
13886 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13887 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13888 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13889 # The linker can only warn and ignore the option if not recognized
13890 # So say no if there are warnings
13891 if test -s conftest.err; then
13892 # Append any errors to the config.log.
13893 cat conftest.err 1>&5
13894 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13895 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13896 if diff conftest.exp conftest.er2 >/dev/null; then
13897 lt_prog_compiler_static_works_F77=yes
13899 else
13900 lt_prog_compiler_static_works_F77=yes
13903 $rm conftest*
13904 LDFLAGS="$save_LDFLAGS"
13907 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13908 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13910 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13912 else
13913 lt_prog_compiler_static_F77=
13917 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13918 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13919 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13920 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 else
13922 lt_cv_prog_compiler_c_o_F77=no
13923 $rm -r conftest 2>/dev/null
13924 mkdir conftest
13925 cd conftest
13926 mkdir out
13927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13929 lt_compiler_flag="-o out/conftest2.$ac_objext"
13930 # Insert the option either (1) after the last *FLAGS variable, or
13931 # (2) before a word containing "conftest.", or (3) at the end.
13932 # Note that $ac_compile itself does not contain backslashes and begins
13933 # with a dollar sign (not a hyphen), so the echo should work correctly.
13934 lt_compile=`echo "$ac_compile" | $SED \
13935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13937 -e 's:$: $lt_compiler_flag:'`
13938 (eval echo "\"\$as_me:13938: $lt_compile\"" >&5)
13939 (eval "$lt_compile" 2>out/conftest.err)
13940 ac_status=$?
13941 cat out/conftest.err >&5
13942 echo "$as_me:13942: \$? = $ac_status" >&5
13943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13944 then
13945 # The compiler can only warn and ignore the option if not recognized
13946 # So say no if there are warnings
13947 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13950 lt_cv_prog_compiler_c_o_F77=yes
13953 chmod u+w . 2>&5
13954 $rm conftest*
13955 # SGI C++ compiler will create directory out/ii_files/ for
13956 # template instantiation
13957 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13958 $rm out/* && rmdir out
13959 cd ..
13960 rmdir conftest
13961 $rm conftest*
13964 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13965 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13968 hard_links="nottested"
13969 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13970 # do not overwrite the value of need_locks provided by the user
13971 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13972 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13973 hard_links=yes
13974 $rm conftest*
13975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13976 touch conftest.a
13977 ln conftest.a conftest.b 2>&5 || hard_links=no
13978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13979 { echo "$as_me:$LINENO: result: $hard_links" >&5
13980 echo "${ECHO_T}$hard_links" >&6; }
13981 if test "$hard_links" = no; then
13982 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13983 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13984 need_locks=warn
13986 else
13987 need_locks=no
13990 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13991 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13993 runpath_var=
13994 allow_undefined_flag_F77=
13995 enable_shared_with_static_runtimes_F77=no
13996 archive_cmds_F77=
13997 archive_expsym_cmds_F77=
13998 old_archive_From_new_cmds_F77=
13999 old_archive_from_expsyms_cmds_F77=
14000 export_dynamic_flag_spec_F77=
14001 whole_archive_flag_spec_F77=
14002 thread_safe_flag_spec_F77=
14003 hardcode_libdir_flag_spec_F77=
14004 hardcode_libdir_flag_spec_ld_F77=
14005 hardcode_libdir_separator_F77=
14006 hardcode_direct_F77=no
14007 hardcode_minus_L_F77=no
14008 hardcode_shlibpath_var_F77=unsupported
14009 link_all_deplibs_F77=unknown
14010 hardcode_automatic_F77=no
14011 module_cmds_F77=
14012 module_expsym_cmds_F77=
14013 always_export_symbols_F77=no
14014 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14015 # include_expsyms should be a list of space-separated symbols to be *always*
14016 # included in the symbol list
14017 include_expsyms_F77=
14018 # exclude_expsyms can be an extended regexp of symbols to exclude
14019 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14020 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14021 # as well as any symbol that contains `d'.
14022 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14023 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14024 # platforms (ab)use it in PIC code, but their linkers get confused if
14025 # the symbol is explicitly referenced. Since portable code cannot
14026 # rely on this symbol name, it's probably fine to never include it in
14027 # preloaded symbol tables.
14028 extract_expsyms_cmds=
14029 # Just being paranoid about ensuring that cc_basename is set.
14030 for cc_temp in $compiler""; do
14031 case $cc_temp in
14032 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14033 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14034 \-*) ;;
14035 *) break;;
14036 esac
14037 done
14038 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14040 case $host_os in
14041 cygwin* | mingw* | pw32*)
14042 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14043 # When not using gcc, we currently assume that we are using
14044 # Microsoft Visual C++.
14045 if test "$GCC" != yes; then
14046 with_gnu_ld=no
14049 interix*)
14050 # we just hope/assume this is gcc and not c89 (= MSVC++)
14051 with_gnu_ld=yes
14053 openbsd*)
14054 with_gnu_ld=no
14056 esac
14058 ld_shlibs_F77=yes
14059 if test "$with_gnu_ld" = yes; then
14060 # If archive_cmds runs LD, not CC, wlarc should be empty
14061 wlarc='${wl}'
14063 # Set some defaults for GNU ld with shared library support. These
14064 # are reset later if shared libraries are not supported. Putting them
14065 # here allows them to be overridden if necessary.
14066 runpath_var=LD_RUN_PATH
14067 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14068 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14069 # ancient GNU ld didn't support --whole-archive et. al.
14070 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14071 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14072 else
14073 whole_archive_flag_spec_F77=
14075 supports_anon_versioning=no
14076 case `$LD -v 2>/dev/null` in
14077 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14078 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14079 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14080 *\ 2.11.*) ;; # other 2.11 versions
14081 *) supports_anon_versioning=yes ;;
14082 esac
14084 # See if GNU ld supports shared libraries.
14085 case $host_os in
14086 aix3* | aix4* | aix5*)
14087 # On AIX/PPC, the GNU linker is very broken
14088 if test "$host_cpu" != ia64; then
14089 ld_shlibs_F77=no
14090 cat <<EOF 1>&2
14092 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14093 *** to be unable to reliably create shared libraries on AIX.
14094 *** Therefore, libtool is disabling shared libraries support. If you
14095 *** really care for shared libraries, you may want to modify your PATH
14096 *** so that a non-GNU linker is found, and then restart.
14102 amigaos*)
14103 archive_cmds_F77='$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)'
14104 hardcode_libdir_flag_spec_F77='-L$libdir'
14105 hardcode_minus_L_F77=yes
14107 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14108 # that the semantics of dynamic libraries on AmigaOS, at least up
14109 # to version 4, is to share data among multiple programs linked
14110 # with the same dynamic library. Since this doesn't match the
14111 # behavior of shared libraries on other platforms, we can't use
14112 # them.
14113 ld_shlibs_F77=no
14116 beos*)
14117 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14118 allow_undefined_flag_F77=unsupported
14119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14120 # support --undefined. This deserves some investigation. FIXME
14121 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14122 else
14123 ld_shlibs_F77=no
14127 cygwin* | mingw* | pw32*)
14128 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14129 # as there is no search path for DLLs.
14130 hardcode_libdir_flag_spec_F77='-L$libdir'
14131 allow_undefined_flag_F77=unsupported
14132 always_export_symbols_F77=no
14133 enable_shared_with_static_runtimes_F77=yes
14134 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14136 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14137 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14138 # If the export-symbols file already is a .def file (1st line
14139 # is EXPORTS), use it as is; otherwise, prepend...
14140 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14141 cp $export_symbols $output_objdir/$soname.def;
14142 else
14143 echo EXPORTS > $output_objdir/$soname.def;
14144 cat $export_symbols >> $output_objdir/$soname.def;
14146 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14147 else
14148 ld_shlibs_F77=no
14152 interix3*)
14153 hardcode_direct_F77=no
14154 hardcode_shlibpath_var_F77=no
14155 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14156 export_dynamic_flag_spec_F77='${wl}-E'
14157 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14158 # Instead, shared libraries are loaded at an image base (0x10000000 by
14159 # default) and relocated if they conflict, which is a slow very memory
14160 # consuming and fragmenting process. To avoid this, we pick a random,
14161 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14162 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14163 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14164 archive_expsym_cmds_F77='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'
14167 linux*)
14168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14169 tmp_addflag=
14170 case $cc_basename,$host_cpu in
14171 pgcc*) # Portland Group C compiler
14172 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14173 tmp_addflag=' $pic_flag'
14175 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14176 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14177 tmp_addflag=' $pic_flag -Mnomain' ;;
14178 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14179 tmp_addflag=' -i_dynamic' ;;
14180 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14181 tmp_addflag=' -i_dynamic -nofor_main' ;;
14182 ifc* | ifort*) # Intel Fortran compiler
14183 tmp_addflag=' -nofor_main' ;;
14184 esac
14185 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14187 if test $supports_anon_versioning = yes; then
14188 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14190 $echo "local: *; };" >> $output_objdir/$libname.ver~
14191 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14193 else
14194 ld_shlibs_F77=no
14198 netbsd*)
14199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14200 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14201 wlarc=
14202 else
14203 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14204 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14208 solaris*)
14209 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14210 ld_shlibs_F77=no
14211 cat <<EOF 1>&2
14213 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14214 *** create shared libraries on Solaris systems. Therefore, libtool
14215 *** is disabling shared libraries support. We urge you to upgrade GNU
14216 *** binutils to release 2.9.1 or newer. Another option is to modify
14217 *** your PATH or compiler configuration so that the native linker is
14218 *** used, and then restart.
14221 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14222 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14223 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14224 else
14225 ld_shlibs_F77=no
14229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14230 case `$LD -v 2>&1` in
14231 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14232 ld_shlibs_F77=no
14233 cat <<_LT_EOF 1>&2
14235 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14236 *** reliably create shared libraries on SCO systems. Therefore, libtool
14237 *** is disabling shared libraries support. We urge you to upgrade GNU
14238 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14239 *** your PATH or compiler configuration so that the native linker is
14240 *** used, and then restart.
14242 _LT_EOF
14245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14246 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14247 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14248 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14249 else
14250 ld_shlibs_F77=no
14253 esac
14256 sunos4*)
14257 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14258 wlarc=
14259 hardcode_direct_F77=yes
14260 hardcode_shlibpath_var_F77=no
14264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14265 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14266 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14267 else
14268 ld_shlibs_F77=no
14271 esac
14273 if test "$ld_shlibs_F77" = no; then
14274 runpath_var=
14275 hardcode_libdir_flag_spec_F77=
14276 export_dynamic_flag_spec_F77=
14277 whole_archive_flag_spec_F77=
14279 else
14280 # PORTME fill in a description of your system's linker (not GNU ld)
14281 case $host_os in
14282 aix3*)
14283 allow_undefined_flag_F77=unsupported
14284 always_export_symbols_F77=yes
14285 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14286 # Note: this linker hardcodes the directories in LIBPATH if there
14287 # are no directories specified by -L.
14288 hardcode_minus_L_F77=yes
14289 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14290 # Neither direct hardcoding nor static linking is supported with a
14291 # broken collect2.
14292 hardcode_direct_F77=unsupported
14296 aix4* | aix5*)
14297 if test "$host_cpu" = ia64; then
14298 # On IA64, the linker does run time linking by default, so we don't
14299 # have to do anything special.
14300 aix_use_runtimelinking=no
14301 exp_sym_flag='-Bexport'
14302 no_entry_flag=""
14303 else
14304 # If we're using GNU nm, then we don't want the "-C" option.
14305 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14306 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14307 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14308 else
14309 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14311 aix_use_runtimelinking=no
14313 # Test if we are trying to use run time linking or normal
14314 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14315 # need to do runtime linking.
14316 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14317 for ld_flag in $LDFLAGS; do
14318 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14319 aix_use_runtimelinking=yes
14320 break
14322 done
14324 esac
14326 exp_sym_flag='-bexport'
14327 no_entry_flag='-bnoentry'
14330 # When large executables or shared objects are built, AIX ld can
14331 # have problems creating the table of contents. If linking a library
14332 # or program results in "error TOC overflow" add -mminimal-toc to
14333 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14334 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14336 archive_cmds_F77=''
14337 hardcode_direct_F77=yes
14338 hardcode_libdir_separator_F77=':'
14339 link_all_deplibs_F77=yes
14341 if test "$GCC" = yes; then
14342 case $host_os in aix4.[012]|aix4.[012].*)
14343 # We only want to do this on AIX 4.2 and lower, the check
14344 # below for broken collect2 doesn't work under 4.3+
14345 collect2name=`${CC} -print-prog-name=collect2`
14346 if test -f "$collect2name" && \
14347 strings "$collect2name" | grep resolve_lib_name >/dev/null
14348 then
14349 # We have reworked collect2
14350 hardcode_direct_F77=yes
14351 else
14352 # We have old collect2
14353 hardcode_direct_F77=unsupported
14354 # It fails to find uninstalled libraries when the uninstalled
14355 # path is not listed in the libpath. Setting hardcode_minus_L
14356 # to unsupported forces relinking
14357 hardcode_minus_L_F77=yes
14358 hardcode_libdir_flag_spec_F77='-L$libdir'
14359 hardcode_libdir_separator_F77=
14362 esac
14363 shared_flag='-shared'
14364 if test "$aix_use_runtimelinking" = yes; then
14365 shared_flag="$shared_flag "'${wl}-G'
14367 else
14368 # not using gcc
14369 if test "$host_cpu" = ia64; then
14370 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14371 # chokes on -Wl,-G. The following line is correct:
14372 shared_flag='-G'
14373 else
14374 if test "$aix_use_runtimelinking" = yes; then
14375 shared_flag='${wl}-G'
14376 else
14377 shared_flag='${wl}-bM:SRE'
14382 # It seems that -bexpall does not export symbols beginning with
14383 # underscore (_), so it is better to generate a list of symbols to export.
14384 always_export_symbols_F77=yes
14385 if test "$aix_use_runtimelinking" = yes; then
14386 # Warning - without using the other runtime loading flags (-brtl),
14387 # -berok will link without error, but may produce a broken library.
14388 allow_undefined_flag_F77='-berok'
14389 # Determine the default libpath from the value encoded in an empty executable.
14390 cat >conftest.$ac_ext <<_ACEOF
14391 program main
14394 _ACEOF
14395 rm -f conftest.$ac_objext conftest$ac_exeext
14396 if { (ac_try="$ac_link"
14397 case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14400 esac
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_link") 2>conftest.er1
14403 ac_status=$?
14404 grep -v '^ *+' conftest.er1 >conftest.err
14405 rm -f conftest.er1
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } && {
14409 test -z "$ac_f77_werror_flag" ||
14410 test ! -s conftest.err
14411 } && test -s conftest$ac_exeext &&
14412 $as_test_x conftest$ac_exeext; then
14414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14416 # Check for a 64-bit object if we didn't find anything.
14417 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14418 }'`; fi
14419 else
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14427 conftest$ac_exeext conftest.$ac_ext
14428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14430 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14431 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14432 else
14433 if test "$host_cpu" = ia64; then
14434 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14435 allow_undefined_flag_F77="-z nodefs"
14436 archive_expsym_cmds_F77="\$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"
14437 else
14438 # Determine the default libpath from the value encoded in an empty executable.
14439 cat >conftest.$ac_ext <<_ACEOF
14440 program main
14443 _ACEOF
14444 rm -f conftest.$ac_objext conftest$ac_exeext
14445 if { (ac_try="$ac_link"
14446 case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14449 esac
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_link") 2>conftest.er1
14452 ac_status=$?
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } && {
14458 test -z "$ac_f77_werror_flag" ||
14459 test ! -s conftest.err
14460 } && test -s conftest$ac_exeext &&
14461 $as_test_x conftest$ac_exeext; then
14463 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14465 # Check for a 64-bit object if we didn't find anything.
14466 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14467 }'`; fi
14468 else
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14476 conftest$ac_exeext conftest.$ac_ext
14477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14479 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14480 # Warning - without using the other run time loading flags,
14481 # -berok will link without error, but may produce a broken library.
14482 no_undefined_flag_F77=' ${wl}-bernotok'
14483 allow_undefined_flag_F77=' ${wl}-berok'
14484 # Exported symbols can be pulled into shared objects from archives
14485 whole_archive_flag_spec_F77='$convenience'
14486 archive_cmds_need_lc_F77=yes
14487 # This is similar to how AIX traditionally builds its shared libraries.
14488 archive_expsym_cmds_F77="\$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'
14493 amigaos*)
14494 archive_cmds_F77='$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)'
14495 hardcode_libdir_flag_spec_F77='-L$libdir'
14496 hardcode_minus_L_F77=yes
14497 # see comment about different semantics on the GNU ld section
14498 ld_shlibs_F77=no
14501 bsdi[45]*)
14502 export_dynamic_flag_spec_F77=-rdynamic
14505 cygwin* | mingw* | pw32*)
14506 # When not using gcc, we currently assume that we are using
14507 # Microsoft Visual C++.
14508 # hardcode_libdir_flag_spec is actually meaningless, as there is
14509 # no search path for DLLs.
14510 hardcode_libdir_flag_spec_F77=' '
14511 allow_undefined_flag_F77=unsupported
14512 # Tell ltmain to make .lib files, not .a files.
14513 libext=lib
14514 # Tell ltmain to make .dll files, not .so files.
14515 shrext_cmds=".dll"
14516 # FIXME: Setting linknames here is a bad hack.
14517 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14518 # The linker will automatically build a .lib file if we build a DLL.
14519 old_archive_From_new_cmds_F77='true'
14520 # FIXME: Should let the user specify the lib program.
14521 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14522 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14523 enable_shared_with_static_runtimes_F77=yes
14526 darwin* | rhapsody*)
14527 case $host_os in
14528 rhapsody* | darwin1.[012])
14529 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14531 *) # Darwin 1.3 on
14532 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14533 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14534 else
14535 case ${MACOSX_DEPLOYMENT_TARGET} in
14536 10.[012])
14537 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14539 10.*)
14540 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14542 esac
14545 esac
14546 archive_cmds_need_lc_F77=no
14547 hardcode_direct_F77=no
14548 hardcode_automatic_F77=yes
14549 hardcode_shlibpath_var_F77=unsupported
14550 whole_archive_flag_spec_F77=''
14551 link_all_deplibs_F77=yes
14552 if test "$GCC" = yes ; then
14553 output_verbose_link_cmd='echo'
14554 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14555 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14556 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14557 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14558 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14559 else
14560 case $cc_basename in
14561 xlc*)
14562 output_verbose_link_cmd='echo'
14563 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14564 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14565 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14566 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14567 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14570 ld_shlibs_F77=no
14572 esac
14576 dgux*)
14577 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14578 hardcode_libdir_flag_spec_F77='-L$libdir'
14579 hardcode_shlibpath_var_F77=no
14582 freebsd1*)
14583 ld_shlibs_F77=no
14586 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14587 # support. Future versions do this automatically, but an explicit c++rt0.o
14588 # does not break anything, and helps significantly (at the cost of a little
14589 # extra space).
14590 freebsd2.2*)
14591 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14592 hardcode_libdir_flag_spec_F77='-R$libdir'
14593 hardcode_direct_F77=yes
14594 hardcode_shlibpath_var_F77=no
14597 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14598 freebsd2*)
14599 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14600 hardcode_direct_F77=yes
14601 hardcode_minus_L_F77=yes
14602 hardcode_shlibpath_var_F77=no
14605 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14606 freebsd* | kfreebsd*-gnu | dragonfly*)
14607 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14608 hardcode_libdir_flag_spec_F77='-R$libdir'
14609 hardcode_direct_F77=yes
14610 hardcode_shlibpath_var_F77=no
14613 hpux9*)
14614 if test "$GCC" = yes; then
14615 archive_cmds_F77='$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'
14616 else
14617 archive_cmds_F77='$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'
14619 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14620 hardcode_libdir_separator_F77=:
14621 hardcode_direct_F77=yes
14623 # hardcode_minus_L: Not really in the search PATH,
14624 # but as the default location of the library.
14625 hardcode_minus_L_F77=yes
14626 export_dynamic_flag_spec_F77='${wl}-E'
14629 hpux10*)
14630 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14631 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14632 else
14633 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14635 if test "$with_gnu_ld" = no; then
14636 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14637 hardcode_libdir_separator_F77=:
14639 hardcode_direct_F77=yes
14640 export_dynamic_flag_spec_F77='${wl}-E'
14642 # hardcode_minus_L: Not really in the search PATH,
14643 # but as the default location of the library.
14644 hardcode_minus_L_F77=yes
14648 hpux11*)
14649 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14650 case $host_cpu in
14651 hppa*64*)
14652 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14654 ia64*)
14655 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14658 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14660 esac
14661 else
14662 case $host_cpu in
14663 hppa*64*)
14664 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14666 ia64*)
14667 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14670 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14672 esac
14674 if test "$with_gnu_ld" = no; then
14675 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14676 hardcode_libdir_separator_F77=:
14678 case $host_cpu in
14679 hppa*64*|ia64*)
14680 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14681 hardcode_direct_F77=no
14682 hardcode_shlibpath_var_F77=no
14685 hardcode_direct_F77=yes
14686 export_dynamic_flag_spec_F77='${wl}-E'
14688 # hardcode_minus_L: Not really in the search PATH,
14689 # but as the default location of the library.
14690 hardcode_minus_L_F77=yes
14692 esac
14696 irix5* | irix6* | nonstopux*)
14697 if test "$GCC" = yes; then
14698 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14699 else
14700 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14701 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14703 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14704 hardcode_libdir_separator_F77=:
14705 link_all_deplibs_F77=yes
14708 netbsd*)
14709 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14710 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14711 else
14712 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14714 hardcode_libdir_flag_spec_F77='-R$libdir'
14715 hardcode_direct_F77=yes
14716 hardcode_shlibpath_var_F77=no
14719 newsos6)
14720 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14721 hardcode_direct_F77=yes
14722 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14723 hardcode_libdir_separator_F77=:
14724 hardcode_shlibpath_var_F77=no
14727 openbsd*)
14728 hardcode_direct_F77=yes
14729 hardcode_shlibpath_var_F77=no
14730 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14731 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14732 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14733 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14734 export_dynamic_flag_spec_F77='${wl}-E'
14735 else
14736 case $host_os in
14737 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14738 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14739 hardcode_libdir_flag_spec_F77='-R$libdir'
14742 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14743 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14745 esac
14749 os2*)
14750 hardcode_libdir_flag_spec_F77='-L$libdir'
14751 hardcode_minus_L_F77=yes
14752 allow_undefined_flag_F77=unsupported
14753 archive_cmds_F77='$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'
14754 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14757 osf3*)
14758 if test "$GCC" = yes; then
14759 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14760 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14761 else
14762 allow_undefined_flag_F77=' -expect_unresolved \*'
14763 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14765 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14766 hardcode_libdir_separator_F77=:
14769 osf4* | osf5*) # as osf3* with the addition of -msym flag
14770 if test "$GCC" = yes; then
14771 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14772 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14773 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14774 else
14775 allow_undefined_flag_F77=' -expect_unresolved \*'
14776 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14777 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14778 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14780 # Both c and cxx compiler support -rpath directly
14781 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14783 hardcode_libdir_separator_F77=:
14786 solaris*)
14787 no_undefined_flag_F77=' -z text'
14788 if test "$GCC" = yes; then
14789 wlarc='${wl}'
14790 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14791 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14792 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14793 else
14794 wlarc=''
14795 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14796 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14797 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14799 hardcode_libdir_flag_spec_F77='-R$libdir'
14800 hardcode_shlibpath_var_F77=no
14801 case $host_os in
14802 solaris2.[0-5] | solaris2.[0-5].*) ;;
14804 # The compiler driver will combine linker options so we
14805 # cannot just pass the convience library names through
14806 # without $wl, iff we do not link with $LD.
14807 # Luckily, gcc supports the same syntax we need for Sun Studio.
14808 # Supported since Solaris 2.6 (maybe 2.5.1?)
14809 case $wlarc in
14811 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14813 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14814 esac ;;
14815 esac
14816 link_all_deplibs_F77=yes
14819 sunos4*)
14820 if test "x$host_vendor" = xsequent; then
14821 # Use $CC to link under sequent, because it throws in some extra .o
14822 # files that make .init and .fini sections work.
14823 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14824 else
14825 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14827 hardcode_libdir_flag_spec_F77='-L$libdir'
14828 hardcode_direct_F77=yes
14829 hardcode_minus_L_F77=yes
14830 hardcode_shlibpath_var_F77=no
14833 sysv4)
14834 case $host_vendor in
14835 sni)
14836 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14837 hardcode_direct_F77=yes # is this really true???
14839 siemens)
14840 ## LD is ld it makes a PLAMLIB
14841 ## CC just makes a GrossModule.
14842 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14843 reload_cmds_F77='$CC -r -o $output$reload_objs'
14844 hardcode_direct_F77=no
14846 motorola)
14847 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14848 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14850 esac
14851 runpath_var='LD_RUN_PATH'
14852 hardcode_shlibpath_var_F77=no
14855 sysv4.3*)
14856 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14857 hardcode_shlibpath_var_F77=no
14858 export_dynamic_flag_spec_F77='-Bexport'
14861 sysv4*MP*)
14862 if test -d /usr/nec; then
14863 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14864 hardcode_shlibpath_var_F77=no
14865 runpath_var=LD_RUN_PATH
14866 hardcode_runpath_var=yes
14867 ld_shlibs_F77=yes
14871 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14872 no_undefined_flag_F77='${wl}-z,text'
14873 archive_cmds_need_lc_F77=no
14874 hardcode_shlibpath_var_F77=no
14875 runpath_var='LD_RUN_PATH'
14877 if test "$GCC" = yes; then
14878 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14879 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14880 else
14881 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14882 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14886 sysv5* | sco3.2v5* | sco5v6*)
14887 # Note: We can NOT use -z defs as we might desire, because we do not
14888 # link with -lc, and that would cause any symbols used from libc to
14889 # always be unresolved, which means just about no library would
14890 # ever link correctly. If we're not using GNU ld we use -z text
14891 # though, which does catch some bad symbols but isn't as heavy-handed
14892 # as -z defs.
14893 no_undefined_flag_F77='${wl}-z,text'
14894 allow_undefined_flag_F77='${wl}-z,nodefs'
14895 archive_cmds_need_lc_F77=no
14896 hardcode_shlibpath_var_F77=no
14897 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14898 hardcode_libdir_separator_F77=':'
14899 link_all_deplibs_F77=yes
14900 export_dynamic_flag_spec_F77='${wl}-Bexport'
14901 runpath_var='LD_RUN_PATH'
14903 if test "$GCC" = yes; then
14904 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14905 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14906 else
14907 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14908 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14912 uts4*)
14913 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14914 hardcode_libdir_flag_spec_F77='-L$libdir'
14915 hardcode_shlibpath_var_F77=no
14919 ld_shlibs_F77=no
14921 esac
14924 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14925 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14926 test "$ld_shlibs_F77" = no && can_build_shared=no
14929 # Do we need to explicitly link libc?
14931 case "x$archive_cmds_need_lc_F77" in
14932 x|xyes)
14933 # Assume -lc should be added
14934 archive_cmds_need_lc_F77=yes
14936 if test "$enable_shared" = yes && test "$GCC" = yes; then
14937 case $archive_cmds_F77 in
14938 *'~'*)
14939 # FIXME: we may have to deal with multi-command sequences.
14941 '$CC '*)
14942 # Test whether the compiler implicitly links with -lc since on some
14943 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14944 # to ld, don't add -lc before -lgcc.
14945 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14946 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14947 $rm conftest*
14948 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14951 (eval $ac_compile) 2>&5
14952 ac_status=$?
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } 2>conftest.err; then
14955 soname=conftest
14956 lib=conftest
14957 libobjs=conftest.$ac_objext
14958 deplibs=
14959 wl=$lt_prog_compiler_wl_F77
14960 pic_flag=$lt_prog_compiler_pic_F77
14961 compiler_flags=-v
14962 linker_flags=-v
14963 verstring=
14964 output_objdir=.
14965 libname=conftest
14966 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14967 allow_undefined_flag_F77=
14968 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14969 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }
14973 then
14974 archive_cmds_need_lc_F77=no
14975 else
14976 archive_cmds_need_lc_F77=yes
14978 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14979 else
14980 cat conftest.err 1>&5
14982 $rm conftest*
14983 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14984 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14986 esac
14989 esac
14991 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14992 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14993 library_names_spec=
14994 libname_spec='lib$name'
14995 soname_spec=
14996 shrext_cmds=".so"
14997 postinstall_cmds=
14998 postuninstall_cmds=
14999 finish_cmds=
15000 finish_eval=
15001 shlibpath_var=
15002 shlibpath_overrides_runpath=unknown
15003 version_type=none
15004 dynamic_linker="$host_os ld.so"
15005 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15006 if test "$GCC" = yes; then
15007 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15008 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15009 # if the path contains ";" then we assume it to be the separator
15010 # otherwise default to the standard path separator (i.e. ":") - it is
15011 # assumed that no part of a normal pathname contains ";" but that should
15012 # okay in the real world where ";" in dirpaths is itself problematic.
15013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15014 else
15015 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15017 else
15018 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15020 need_lib_prefix=unknown
15021 hardcode_into_libs=no
15023 # when you set need_version to no, make sure it does not cause -set_version
15024 # flags to be left without arguments
15025 need_version=unknown
15027 case $host_os in
15028 aix3*)
15029 version_type=linux
15030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15031 shlibpath_var=LIBPATH
15033 # AIX 3 has no versioning support, so we append a major version to the name.
15034 soname_spec='${libname}${release}${shared_ext}$major'
15037 aix4* | aix5*)
15038 version_type=linux
15039 need_lib_prefix=no
15040 need_version=no
15041 hardcode_into_libs=yes
15042 if test "$host_cpu" = ia64; then
15043 # AIX 5 supports IA64
15044 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15045 shlibpath_var=LD_LIBRARY_PATH
15046 else
15047 # With GCC up to 2.95.x, collect2 would create an import file
15048 # for dependence libraries. The import file would start with
15049 # the line `#! .'. This would cause the generated library to
15050 # depend on `.', always an invalid library. This was fixed in
15051 # development snapshots of GCC prior to 3.0.
15052 case $host_os in
15053 aix4 | aix4.[01] | aix4.[01].*)
15054 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15055 echo ' yes '
15056 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15058 else
15059 can_build_shared=no
15062 esac
15063 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15064 # soname into executable. Probably we can add versioning support to
15065 # collect2, so additional links can be useful in future.
15066 if test "$aix_use_runtimelinking" = yes; then
15067 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15068 # instead of lib<name>.a to let people know that these are not
15069 # typical AIX shared libraries.
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071 else
15072 # We preserve .a as extension for shared libraries through AIX4.2
15073 # and later when we are not doing run time linking.
15074 library_names_spec='${libname}${release}.a $libname.a'
15075 soname_spec='${libname}${release}${shared_ext}$major'
15077 shlibpath_var=LIBPATH
15081 amigaos*)
15082 library_names_spec='$libname.ixlibrary $libname.a'
15083 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15084 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'
15087 beos*)
15088 library_names_spec='${libname}${shared_ext}'
15089 dynamic_linker="$host_os ld.so"
15090 shlibpath_var=LIBRARY_PATH
15093 bsdi[45]*)
15094 version_type=linux
15095 need_version=no
15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15097 soname_spec='${libname}${release}${shared_ext}$major'
15098 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15099 shlibpath_var=LD_LIBRARY_PATH
15100 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15101 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15102 # the default ld.so.conf also contains /usr/contrib/lib and
15103 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15104 # libtool to hard-code these into programs
15107 cygwin* | mingw* | pw32*)
15108 version_type=windows
15109 shrext_cmds=".dll"
15110 need_version=no
15111 need_lib_prefix=no
15113 case $GCC,$host_os in
15114 yes,cygwin* | yes,mingw* | yes,pw32*)
15115 library_names_spec='$libname.dll.a'
15116 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15117 postinstall_cmds='base_file=`basename \${file}`~
15118 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15119 dldir=$destdir/`dirname \$dlpath`~
15120 test -d \$dldir || mkdir -p \$dldir~
15121 $install_prog $dir/$dlname \$dldir/$dlname~
15122 chmod a+x \$dldir/$dlname'
15123 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15124 dlpath=$dir/\$dldll~
15125 $rm \$dlpath'
15126 shlibpath_overrides_runpath=yes
15128 case $host_os in
15129 cygwin*)
15130 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15131 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15132 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
15133 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15135 mingw*)
15136 # MinGW DLLs use traditional 'lib' prefix
15137 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15138 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
15139 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15140 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15141 # It is most probably a Windows format PATH printed by
15142 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15143 # path with ; separators, and with drive letters. We can handle the
15144 # drive letters (cygwin fileutils understands them), so leave them,
15145 # especially as we might pass files found there to a mingw objdump,
15146 # which wouldn't understand a cygwinified path. Ahh.
15147 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15148 else
15149 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15152 pw32*)
15153 # pw32 DLLs use 'pw' prefix rather than 'lib'
15154 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15156 esac
15160 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15162 esac
15163 dynamic_linker='Win32 ld.exe'
15164 # FIXME: first we should search . and the directory the executable is in
15165 shlibpath_var=PATH
15168 darwin* | rhapsody*)
15169 dynamic_linker="$host_os dyld"
15170 version_type=darwin
15171 need_lib_prefix=no
15172 need_version=no
15173 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15174 soname_spec='${libname}${release}${major}$shared_ext'
15175 shlibpath_overrides_runpath=yes
15176 shlibpath_var=DYLD_LIBRARY_PATH
15177 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15178 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15179 if test "$GCC" = yes; then
15180 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15181 else
15182 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15184 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15187 dgux*)
15188 version_type=linux
15189 need_lib_prefix=no
15190 need_version=no
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 shlibpath_var=LD_LIBRARY_PATH
15196 freebsd1*)
15197 dynamic_linker=no
15200 kfreebsd*-gnu)
15201 version_type=linux
15202 need_lib_prefix=no
15203 need_version=no
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15205 soname_spec='${libname}${release}${shared_ext}$major'
15206 shlibpath_var=LD_LIBRARY_PATH
15207 shlibpath_overrides_runpath=no
15208 hardcode_into_libs=yes
15209 dynamic_linker='GNU ld.so'
15212 freebsd* | dragonfly*)
15213 # DragonFly does not have aout. When/if they implement a new
15214 # versioning mechanism, adjust this.
15215 if test -x /usr/bin/objformat; then
15216 objformat=`/usr/bin/objformat`
15217 else
15218 case $host_os in
15219 freebsd[123]*) objformat=aout ;;
15220 *) objformat=elf ;;
15221 esac
15223 version_type=freebsd-$objformat
15224 case $version_type in
15225 freebsd-elf*)
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15227 need_version=no
15228 need_lib_prefix=no
15230 freebsd-*)
15231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15232 need_version=yes
15234 esac
15235 shlibpath_var=LD_LIBRARY_PATH
15236 case $host_os in
15237 freebsd2*)
15238 shlibpath_overrides_runpath=yes
15240 freebsd3.[01]* | freebsdelf3.[01]*)
15241 shlibpath_overrides_runpath=yes
15242 hardcode_into_libs=yes
15244 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15245 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15246 shlibpath_overrides_runpath=no
15247 hardcode_into_libs=yes
15249 freebsd*) # from 4.6 on
15250 shlibpath_overrides_runpath=yes
15251 hardcode_into_libs=yes
15253 esac
15256 gnu*)
15257 version_type=linux
15258 need_lib_prefix=no
15259 need_version=no
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15261 soname_spec='${libname}${release}${shared_ext}$major'
15262 shlibpath_var=LD_LIBRARY_PATH
15263 hardcode_into_libs=yes
15266 hpux9* | hpux10* | hpux11*)
15267 # Give a soname corresponding to the major version so that dld.sl refuses to
15268 # link against other versions.
15269 version_type=sunos
15270 need_lib_prefix=no
15271 need_version=no
15272 case $host_cpu in
15273 ia64*)
15274 shrext_cmds='.so'
15275 hardcode_into_libs=yes
15276 dynamic_linker="$host_os dld.so"
15277 shlibpath_var=LD_LIBRARY_PATH
15278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280 soname_spec='${libname}${release}${shared_ext}$major'
15281 if test "X$HPUX_IA64_MODE" = X32; then
15282 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15283 else
15284 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15288 hppa*64*)
15289 shrext_cmds='.sl'
15290 hardcode_into_libs=yes
15291 dynamic_linker="$host_os dld.sl"
15292 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15295 soname_spec='${libname}${release}${shared_ext}$major'
15296 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15300 shrext_cmds='.sl'
15301 dynamic_linker="$host_os dld.sl"
15302 shlibpath_var=SHLIB_PATH
15303 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305 soname_spec='${libname}${release}${shared_ext}$major'
15307 esac
15308 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15309 postinstall_cmds='chmod 555 $lib'
15312 interix3*)
15313 version_type=linux
15314 need_lib_prefix=no
15315 need_version=no
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15319 shlibpath_var=LD_LIBRARY_PATH
15320 shlibpath_overrides_runpath=no
15321 hardcode_into_libs=yes
15324 irix5* | irix6* | nonstopux*)
15325 case $host_os in
15326 nonstopux*) version_type=nonstopux ;;
15328 if test "$lt_cv_prog_gnu_ld" = yes; then
15329 version_type=linux
15330 else
15331 version_type=irix
15332 fi ;;
15333 esac
15334 need_lib_prefix=no
15335 need_version=no
15336 soname_spec='${libname}${release}${shared_ext}$major'
15337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15338 case $host_os in
15339 irix5* | nonstopux*)
15340 libsuff= shlibsuff=
15343 case $LD in # libtool.m4 will add one of these switches to LD
15344 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15345 libsuff= shlibsuff= libmagic=32-bit;;
15346 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15347 libsuff=32 shlibsuff=N32 libmagic=N32;;
15348 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15349 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15350 *) libsuff= shlibsuff= libmagic=never-match;;
15351 esac
15353 esac
15354 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15355 shlibpath_overrides_runpath=no
15356 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15357 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15358 hardcode_into_libs=yes
15361 # No shared lib support for Linux oldld, aout, or coff.
15362 linux*oldld* | linux*aout* | linux*coff*)
15363 dynamic_linker=no
15366 # This must be Linux ELF.
15367 linux*)
15368 version_type=linux
15369 need_lib_prefix=no
15370 need_version=no
15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15372 soname_spec='${libname}${release}${shared_ext}$major'
15373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15374 shlibpath_var=LD_LIBRARY_PATH
15375 shlibpath_overrides_runpath=no
15376 # This implies no fast_install, which is unacceptable.
15377 # Some rework will be needed to allow for fast_install
15378 # before this can be enabled.
15379 hardcode_into_libs=yes
15381 # Append ld.so.conf contents to the search path
15382 if test -f /etc/ld.so.conf; then
15383 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15384 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15387 # We used to test for /lib/ld.so.1 and disable shared libraries on
15388 # powerpc, because MkLinux only supported shared libraries with the
15389 # GNU dynamic linker. Since this was broken with cross compilers,
15390 # most powerpc-linux boxes support dynamic linking these days and
15391 # people can always --disable-shared, the test was removed, and we
15392 # assume the GNU/Linux dynamic linker is in use.
15393 dynamic_linker='GNU/Linux ld.so'
15396 knetbsd*-gnu)
15397 version_type=linux
15398 need_lib_prefix=no
15399 need_version=no
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15401 soname_spec='${libname}${release}${shared_ext}$major'
15402 shlibpath_var=LD_LIBRARY_PATH
15403 shlibpath_overrides_runpath=no
15404 hardcode_into_libs=yes
15405 dynamic_linker='GNU ld.so'
15408 netbsd*)
15409 version_type=sunos
15410 need_lib_prefix=no
15411 need_version=no
15412 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15415 dynamic_linker='NetBSD (a.out) ld.so'
15416 else
15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15418 soname_spec='${libname}${release}${shared_ext}$major'
15419 dynamic_linker='NetBSD ld.elf_so'
15421 shlibpath_var=LD_LIBRARY_PATH
15422 shlibpath_overrides_runpath=yes
15423 hardcode_into_libs=yes
15426 newsos6)
15427 version_type=linux
15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429 shlibpath_var=LD_LIBRARY_PATH
15430 shlibpath_overrides_runpath=yes
15433 nto-qnx*)
15434 version_type=linux
15435 need_lib_prefix=no
15436 need_version=no
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438 soname_spec='${libname}${release}${shared_ext}$major'
15439 shlibpath_var=LD_LIBRARY_PATH
15440 shlibpath_overrides_runpath=yes
15443 openbsd*)
15444 version_type=sunos
15445 sys_lib_dlsearch_path_spec="/usr/lib"
15446 need_lib_prefix=no
15447 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15448 case $host_os in
15449 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15450 *) need_version=no ;;
15451 esac
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15454 shlibpath_var=LD_LIBRARY_PATH
15455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15456 case $host_os in
15457 openbsd2.[89] | openbsd2.[89].*)
15458 shlibpath_overrides_runpath=no
15461 shlibpath_overrides_runpath=yes
15463 esac
15464 else
15465 shlibpath_overrides_runpath=yes
15469 os2*)
15470 libname_spec='$name'
15471 shrext_cmds=".dll"
15472 need_lib_prefix=no
15473 library_names_spec='$libname${shared_ext} $libname.a'
15474 dynamic_linker='OS/2 ld.exe'
15475 shlibpath_var=LIBPATH
15478 osf3* | osf4* | osf5*)
15479 version_type=osf
15480 need_lib_prefix=no
15481 need_version=no
15482 soname_spec='${libname}${release}${shared_ext}$major'
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484 shlibpath_var=LD_LIBRARY_PATH
15485 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15486 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15489 solaris*)
15490 version_type=linux
15491 need_lib_prefix=no
15492 need_version=no
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15494 soname_spec='${libname}${release}${shared_ext}$major'
15495 shlibpath_var=LD_LIBRARY_PATH
15496 shlibpath_overrides_runpath=yes
15497 hardcode_into_libs=yes
15498 # ldd complains unless libraries are executable
15499 postinstall_cmds='chmod +x $lib'
15502 sunos4*)
15503 version_type=sunos
15504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15505 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15506 shlibpath_var=LD_LIBRARY_PATH
15507 shlibpath_overrides_runpath=yes
15508 if test "$with_gnu_ld" = yes; then
15509 need_lib_prefix=no
15511 need_version=yes
15514 sysv4 | sysv4.3*)
15515 version_type=linux
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15517 soname_spec='${libname}${release}${shared_ext}$major'
15518 shlibpath_var=LD_LIBRARY_PATH
15519 case $host_vendor in
15520 sni)
15521 shlibpath_overrides_runpath=no
15522 need_lib_prefix=no
15523 export_dynamic_flag_spec='${wl}-Blargedynsym'
15524 runpath_var=LD_RUN_PATH
15526 siemens)
15527 need_lib_prefix=no
15529 motorola)
15530 need_lib_prefix=no
15531 need_version=no
15532 shlibpath_overrides_runpath=no
15533 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15535 esac
15538 sysv4*MP*)
15539 if test -d /usr/nec ;then
15540 version_type=linux
15541 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15542 soname_spec='$libname${shared_ext}.$major'
15543 shlibpath_var=LD_LIBRARY_PATH
15547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15548 version_type=freebsd-elf
15549 need_lib_prefix=no
15550 need_version=no
15551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15552 soname_spec='${libname}${release}${shared_ext}$major'
15553 shlibpath_var=LD_LIBRARY_PATH
15554 hardcode_into_libs=yes
15555 if test "$with_gnu_ld" = yes; then
15556 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15557 shlibpath_overrides_runpath=no
15558 else
15559 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15560 shlibpath_overrides_runpath=yes
15561 case $host_os in
15562 sco3.2v5*)
15563 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15565 esac
15567 sys_lib_dlsearch_path_spec='/usr/lib'
15570 uts4*)
15571 version_type=linux
15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573 soname_spec='${libname}${release}${shared_ext}$major'
15574 shlibpath_var=LD_LIBRARY_PATH
15578 dynamic_linker=no
15580 esac
15581 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15582 echo "${ECHO_T}$dynamic_linker" >&6; }
15583 test "$dynamic_linker" = no && can_build_shared=no
15585 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15586 if test "$GCC" = yes; then
15587 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15590 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15591 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15592 hardcode_action_F77=
15593 if test -n "$hardcode_libdir_flag_spec_F77" || \
15594 test -n "$runpath_var_F77" || \
15595 test "X$hardcode_automatic_F77" = "Xyes" ; then
15597 # We can hardcode non-existant directories.
15598 if test "$hardcode_direct_F77" != no &&
15599 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15600 # have to relink, otherwise we might link with an installed library
15601 # when we should be linking with a yet-to-be-installed one
15602 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15603 test "$hardcode_minus_L_F77" != no; then
15604 # Linking always hardcodes the temporary library directory.
15605 hardcode_action_F77=relink
15606 else
15607 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15608 hardcode_action_F77=immediate
15610 else
15611 # We cannot hardcode anything, or else we can only hardcode existing
15612 # directories.
15613 hardcode_action_F77=unsupported
15615 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15616 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15618 if test "$hardcode_action_F77" = relink; then
15619 # Fast installation is not supported
15620 enable_fast_install=no
15621 elif test "$shlibpath_overrides_runpath" = yes ||
15622 test "$enable_shared" = no; then
15623 # Fast installation is not necessary
15624 enable_fast_install=needless
15628 # The else clause should only fire when bootstrapping the
15629 # libtool distribution, otherwise you forgot to ship ltmain.sh
15630 # with your package, and you will get complaints that there are
15631 # no rules to generate ltmain.sh.
15632 if test -f "$ltmain"; then
15633 # See if we are running on zsh, and set the options which allow our commands through
15634 # without removal of \ escapes.
15635 if test -n "${ZSH_VERSION+set}" ; then
15636 setopt NO_GLOB_SUBST
15638 # Now quote all the things that may contain metacharacters while being
15639 # careful not to overquote the AC_SUBSTed values. We take copies of the
15640 # variables and quote the copies for generation of the libtool script.
15641 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15642 SED SHELL STRIP \
15643 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15644 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15645 deplibs_check_method reload_flag reload_cmds need_locks \
15646 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15647 lt_cv_sys_global_symbol_to_c_name_address \
15648 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15649 old_postinstall_cmds old_postuninstall_cmds \
15650 compiler_F77 \
15651 CC_F77 \
15652 LD_F77 \
15653 lt_prog_compiler_wl_F77 \
15654 lt_prog_compiler_pic_F77 \
15655 lt_prog_compiler_static_F77 \
15656 lt_prog_compiler_no_builtin_flag_F77 \
15657 export_dynamic_flag_spec_F77 \
15658 thread_safe_flag_spec_F77 \
15659 whole_archive_flag_spec_F77 \
15660 enable_shared_with_static_runtimes_F77 \
15661 old_archive_cmds_F77 \
15662 old_archive_from_new_cmds_F77 \
15663 predep_objects_F77 \
15664 postdep_objects_F77 \
15665 predeps_F77 \
15666 postdeps_F77 \
15667 compiler_lib_search_path_F77 \
15668 archive_cmds_F77 \
15669 archive_expsym_cmds_F77 \
15670 postinstall_cmds_F77 \
15671 postuninstall_cmds_F77 \
15672 old_archive_from_expsyms_cmds_F77 \
15673 allow_undefined_flag_F77 \
15674 no_undefined_flag_F77 \
15675 export_symbols_cmds_F77 \
15676 hardcode_libdir_flag_spec_F77 \
15677 hardcode_libdir_flag_spec_ld_F77 \
15678 hardcode_libdir_separator_F77 \
15679 hardcode_automatic_F77 \
15680 module_cmds_F77 \
15681 module_expsym_cmds_F77 \
15682 lt_cv_prog_compiler_c_o_F77 \
15683 exclude_expsyms_F77 \
15684 include_expsyms_F77; do
15686 case $var in
15687 old_archive_cmds_F77 | \
15688 old_archive_from_new_cmds_F77 | \
15689 archive_cmds_F77 | \
15690 archive_expsym_cmds_F77 | \
15691 module_cmds_F77 | \
15692 module_expsym_cmds_F77 | \
15693 old_archive_from_expsyms_cmds_F77 | \
15694 export_symbols_cmds_F77 | \
15695 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15696 postinstall_cmds | postuninstall_cmds | \
15697 old_postinstall_cmds | old_postuninstall_cmds | \
15698 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15699 # Double-quote double-evaled strings.
15700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15705 esac
15706 done
15708 case $lt_echo in
15709 *'\$0 --fallback-echo"')
15710 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15712 esac
15714 cfgfile="$ofile"
15716 cat <<__EOF__ >> "$cfgfile"
15717 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15721 # Shell to use when invoking shell scripts.
15722 SHELL=$lt_SHELL
15724 # Whether or not to build shared libraries.
15725 build_libtool_libs=$enable_shared
15727 # Whether or not to build static libraries.
15728 build_old_libs=$enable_static
15730 # Whether or not to add -lc for building shared libraries.
15731 build_libtool_need_lc=$archive_cmds_need_lc_F77
15733 # Whether or not to disallow shared libs when runtime libs are static
15734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15736 # Whether or not to optimize for fast installation.
15737 fast_install=$enable_fast_install
15739 # The host system.
15740 host_alias=$host_alias
15741 host=$host
15742 host_os=$host_os
15744 # The build system.
15745 build_alias=$build_alias
15746 build=$build
15747 build_os=$build_os
15749 # An echo program that does not interpret backslashes.
15750 echo=$lt_echo
15752 # The archiver.
15753 AR=$lt_AR
15754 AR_FLAGS=$lt_AR_FLAGS
15756 # A C compiler.
15757 LTCC=$lt_LTCC
15759 # LTCC compiler flags.
15760 LTCFLAGS=$lt_LTCFLAGS
15762 # A language-specific compiler.
15763 CC=$lt_compiler_F77
15765 # Is the compiler the GNU C compiler?
15766 with_gcc=$GCC_F77
15768 # An ERE matcher.
15769 EGREP=$lt_EGREP
15771 # The linker used to build libraries.
15772 LD=$lt_LD_F77
15774 # Whether we need hard or soft links.
15775 LN_S=$lt_LN_S
15777 # A BSD-compatible nm program.
15778 NM=$lt_NM
15780 # A symbol stripping program
15781 STRIP=$lt_STRIP
15783 # Used to examine libraries when file_magic_cmd begins "file"
15784 MAGIC_CMD=$MAGIC_CMD
15786 # Used on cygwin: DLL creation program.
15787 DLLTOOL="$DLLTOOL"
15789 # Used on cygwin: object dumper.
15790 OBJDUMP="$OBJDUMP"
15792 # Used on cygwin: assembler.
15793 AS="$AS"
15795 # The name of the directory that contains temporary libtool files.
15796 objdir=$objdir
15798 # How to create reloadable object files.
15799 reload_flag=$lt_reload_flag
15800 reload_cmds=$lt_reload_cmds
15802 # How to pass a linker flag through the compiler.
15803 wl=$lt_lt_prog_compiler_wl_F77
15805 # Object file suffix (normally "o").
15806 objext="$ac_objext"
15808 # Old archive suffix (normally "a").
15809 libext="$libext"
15811 # Shared library suffix (normally ".so").
15812 shrext_cmds='$shrext_cmds'
15814 # Executable file suffix (normally "").
15815 exeext="$exeext"
15817 # Additional compiler flags for building library objects.
15818 pic_flag=$lt_lt_prog_compiler_pic_F77
15819 pic_mode=$pic_mode
15821 # What is the maximum length of a command?
15822 max_cmd_len=$lt_cv_sys_max_cmd_len
15824 # Does compiler simultaneously support -c and -o options?
15825 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15827 # Must we lock files when doing compilation?
15828 need_locks=$lt_need_locks
15830 # Do we need the lib prefix for modules?
15831 need_lib_prefix=$need_lib_prefix
15833 # Do we need a version for libraries?
15834 need_version=$need_version
15836 # Whether dlopen is supported.
15837 dlopen_support=$enable_dlopen
15839 # Whether dlopen of programs is supported.
15840 dlopen_self=$enable_dlopen_self
15842 # Whether dlopen of statically linked programs is supported.
15843 dlopen_self_static=$enable_dlopen_self_static
15845 # Compiler flag to prevent dynamic linking.
15846 link_static_flag=$lt_lt_prog_compiler_static_F77
15848 # Compiler flag to turn off builtin functions.
15849 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15851 # Compiler flag to allow reflexive dlopens.
15852 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15854 # Compiler flag to generate shared objects directly from archives.
15855 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15857 # Compiler flag to generate thread-safe objects.
15858 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15860 # Library versioning type.
15861 version_type=$version_type
15863 # Format of library name prefix.
15864 libname_spec=$lt_libname_spec
15866 # List of archive names. First name is the real one, the rest are links.
15867 # The last name is the one that the linker finds with -lNAME.
15868 library_names_spec=$lt_library_names_spec
15870 # The coded name of the library, if different from the real name.
15871 soname_spec=$lt_soname_spec
15873 # Commands used to build and install an old-style archive.
15874 RANLIB=$lt_RANLIB
15875 old_archive_cmds=$lt_old_archive_cmds_F77
15876 old_postinstall_cmds=$lt_old_postinstall_cmds
15877 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15879 # Create an old-style archive from a shared archive.
15880 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15882 # Create a temporary old-style archive to link instead of a shared archive.
15883 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15885 # Commands used to build and install a shared archive.
15886 archive_cmds=$lt_archive_cmds_F77
15887 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15888 postinstall_cmds=$lt_postinstall_cmds
15889 postuninstall_cmds=$lt_postuninstall_cmds
15891 # Commands used to build a loadable module (assumed same as above if empty)
15892 module_cmds=$lt_module_cmds_F77
15893 module_expsym_cmds=$lt_module_expsym_cmds_F77
15895 # Commands to strip libraries.
15896 old_striplib=$lt_old_striplib
15897 striplib=$lt_striplib
15899 # Dependencies to place before the objects being linked to create a
15900 # shared library.
15901 predep_objects=$lt_predep_objects_F77
15903 # Dependencies to place after the objects being linked to create a
15904 # shared library.
15905 postdep_objects=$lt_postdep_objects_F77
15907 # Dependencies to place before the objects being linked to create a
15908 # shared library.
15909 predeps=$lt_predeps_F77
15911 # Dependencies to place after the objects being linked to create a
15912 # shared library.
15913 postdeps=$lt_postdeps_F77
15915 # The library search path used internally by the compiler when linking
15916 # a shared library.
15917 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15919 # Method to check whether dependent libraries are shared objects.
15920 deplibs_check_method=$lt_deplibs_check_method
15922 # Command to use when deplibs_check_method == file_magic.
15923 file_magic_cmd=$lt_file_magic_cmd
15925 # Flag that allows shared libraries with undefined symbols to be built.
15926 allow_undefined_flag=$lt_allow_undefined_flag_F77
15928 # Flag that forces no undefined symbols.
15929 no_undefined_flag=$lt_no_undefined_flag_F77
15931 # Commands used to finish a libtool library installation in a directory.
15932 finish_cmds=$lt_finish_cmds
15934 # Same as above, but a single script fragment to be evaled but not shown.
15935 finish_eval=$lt_finish_eval
15937 # Take the output of nm and produce a listing of raw symbols and C names.
15938 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15940 # Transform the output of nm in a proper C declaration
15941 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15943 # Transform the output of nm in a C name address pair
15944 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15946 # This is the shared library runtime path variable.
15947 runpath_var=$runpath_var
15949 # This is the shared library path variable.
15950 shlibpath_var=$shlibpath_var
15952 # Is shlibpath searched before the hard-coded library search path?
15953 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15955 # How to hardcode a shared library path into an executable.
15956 hardcode_action=$hardcode_action_F77
15958 # Whether we should hardcode library paths into libraries.
15959 hardcode_into_libs=$hardcode_into_libs
15961 # Flag to hardcode \$libdir into a binary during linking.
15962 # This must work even if \$libdir does not exist.
15963 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15965 # If ld is used when linking, flag to hardcode \$libdir into
15966 # a binary during linking. This must work even if \$libdir does
15967 # not exist.
15968 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15970 # Whether we need a single -rpath flag with a separated argument.
15971 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15973 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15974 # resulting binary.
15975 hardcode_direct=$hardcode_direct_F77
15977 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15978 # resulting binary.
15979 hardcode_minus_L=$hardcode_minus_L_F77
15981 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15982 # the resulting binary.
15983 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15985 # Set to yes if building a shared library automatically hardcodes DIR into the library
15986 # and all subsequent libraries and executables linked against it.
15987 hardcode_automatic=$hardcode_automatic_F77
15989 # Variables whose values should be saved in libtool wrapper scripts and
15990 # restored at relink time.
15991 variables_saved_for_relink="$variables_saved_for_relink"
15993 # Whether libtool must link a program against all its dependency libraries.
15994 link_all_deplibs=$link_all_deplibs_F77
15996 # Compile-time system search path for libraries
15997 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15999 # Run-time system search path for libraries
16000 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16002 # Fix the shell variable \$srcfile for the compiler.
16003 fix_srcfile_path="$fix_srcfile_path_F77"
16005 # Set to yes if exported symbols are required.
16006 always_export_symbols=$always_export_symbols_F77
16008 # The commands to list exported symbols.
16009 export_symbols_cmds=$lt_export_symbols_cmds_F77
16011 # The commands to extract the exported symbol list from a shared archive.
16012 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16014 # Symbols that should not be listed in the preloaded symbols.
16015 exclude_expsyms=$lt_exclude_expsyms_F77
16017 # Symbols that must always be exported.
16018 include_expsyms=$lt_include_expsyms_F77
16020 # ### END LIBTOOL TAG CONFIG: $tagname
16022 __EOF__
16025 else
16026 # If there is no Makefile yet, we rely on a make rule to execute
16027 # `config.status --recheck' to rerun these tests and create the
16028 # libtool script then.
16029 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16030 if test -f "$ltmain_in"; then
16031 test -f Makefile && make "$ltmain"
16036 ac_ext=c
16037 ac_cpp='$CPP $CPPFLAGS'
16038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16042 CC="$lt_save_CC"
16044 else
16045 tagname=""
16049 GCJ)
16050 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16053 # Source file extension for Java test sources.
16054 ac_ext=java
16056 # Object file extension for compiled Java test sources.
16057 objext=o
16058 objext_GCJ=$objext
16060 # Code to be used in simple compile tests
16061 lt_simple_compile_test_code="class foo {}\n"
16063 # Code to be used in simple link tests
16064 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16066 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16068 # If no C compiler was specified, use CC.
16069 LTCC=${LTCC-"$CC"}
16071 # If no C compiler flags were specified, use CFLAGS.
16072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16074 # Allow CC to be a program name with arguments.
16075 compiler=$CC
16078 # save warnings/boilerplate of simple test code
16079 ac_outfile=conftest.$ac_objext
16080 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16081 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16082 _lt_compiler_boilerplate=`cat conftest.err`
16083 $rm conftest*
16085 ac_outfile=conftest.$ac_objext
16086 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16087 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16088 _lt_linker_boilerplate=`cat conftest.err`
16089 $rm conftest*
16092 # Allow CC to be a program name with arguments.
16093 lt_save_CC="$CC"
16094 CC=${GCJ-"gcj"}
16095 compiler=$CC
16096 compiler_GCJ=$CC
16097 for cc_temp in $compiler""; do
16098 case $cc_temp in
16099 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16100 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16101 \-*) ;;
16102 *) break;;
16103 esac
16104 done
16105 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16108 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16109 archive_cmds_need_lc_GCJ=no
16111 old_archive_cmds_GCJ=$old_archive_cmds
16113 ## CAVEAT EMPTOR:
16114 ## There is no encapsulation within the following macros, do not change
16115 ## the running order or otherwise move them around unless you know exactly
16116 ## what you are doing...
16118 lt_prog_compiler_no_builtin_flag_GCJ=
16120 if test "$GCC" = yes; then
16121 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16124 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16125 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16126 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16128 else
16129 lt_cv_prog_compiler_rtti_exceptions=no
16130 ac_outfile=conftest.$ac_objext
16131 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16132 lt_compiler_flag="-fno-rtti -fno-exceptions"
16133 # Insert the option either (1) after the last *FLAGS variable, or
16134 # (2) before a word containing "conftest.", or (3) at the end.
16135 # Note that $ac_compile itself does not contain backslashes and begins
16136 # with a dollar sign (not a hyphen), so the echo should work correctly.
16137 # The option is referenced via a variable to avoid confusing sed.
16138 lt_compile=`echo "$ac_compile" | $SED \
16139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16141 -e 's:$: $lt_compiler_flag:'`
16142 (eval echo "\"\$as_me:16142: $lt_compile\"" >&5)
16143 (eval "$lt_compile" 2>conftest.err)
16144 ac_status=$?
16145 cat conftest.err >&5
16146 echo "$as_me:16146: \$? = $ac_status" >&5
16147 if (exit $ac_status) && test -s "$ac_outfile"; then
16148 # The compiler can only warn and ignore the option if not recognized
16149 # So say no if there are warnings other than the usual output.
16150 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16152 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16153 lt_cv_prog_compiler_rtti_exceptions=yes
16156 $rm conftest*
16159 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16160 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16162 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16163 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16164 else
16170 lt_prog_compiler_wl_GCJ=
16171 lt_prog_compiler_pic_GCJ=
16172 lt_prog_compiler_static_GCJ=
16174 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16175 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16177 if test "$GCC" = yes; then
16178 lt_prog_compiler_wl_GCJ='-Wl,'
16179 lt_prog_compiler_static_GCJ='-static'
16181 case $host_os in
16182 aix*)
16183 # All AIX code is PIC.
16184 if test "$host_cpu" = ia64; then
16185 # AIX 5 now supports IA64 processor
16186 lt_prog_compiler_static_GCJ='-Bstatic'
16190 amigaos*)
16191 # FIXME: we need at least 68020 code to build shared libraries, but
16192 # adding the `-m68020' flag to GCC prevents building anything better,
16193 # like `-m68040'.
16194 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16197 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16198 # PIC is the default for these OSes.
16201 mingw* | pw32* | os2*)
16202 # This hack is so that the source file can tell whether it is being
16203 # built for inclusion in a dll (and should export symbols for example).
16204 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16207 darwin* | rhapsody*)
16208 # PIC is the default on this platform
16209 # Common symbols not allowed in MH_DYLIB files
16210 lt_prog_compiler_pic_GCJ='-fno-common'
16213 interix3*)
16214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16215 # Instead, we relocate shared libraries at runtime.
16218 msdosdjgpp*)
16219 # Just because we use GCC doesn't mean we suddenly get shared libraries
16220 # on systems that don't support them.
16221 lt_prog_compiler_can_build_shared_GCJ=no
16222 enable_shared=no
16225 sysv4*MP*)
16226 if test -d /usr/nec; then
16227 lt_prog_compiler_pic_GCJ=-Kconform_pic
16231 hpux*)
16232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16233 # not for PA HP-UX.
16234 case $host_cpu in
16235 hppa*64*|ia64*)
16236 # +Z the default
16239 lt_prog_compiler_pic_GCJ='-fPIC'
16241 esac
16245 lt_prog_compiler_pic_GCJ='-fPIC'
16247 esac
16248 else
16249 # PORTME Check for flag to pass linker flags through the system compiler.
16250 case $host_os in
16251 aix*)
16252 lt_prog_compiler_wl_GCJ='-Wl,'
16253 if test "$host_cpu" = ia64; then
16254 # AIX 5 now supports IA64 processor
16255 lt_prog_compiler_static_GCJ='-Bstatic'
16256 else
16257 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16260 darwin*)
16261 # PIC is the default on this platform
16262 # Common symbols not allowed in MH_DYLIB files
16263 case $cc_basename in
16264 xlc*)
16265 lt_prog_compiler_pic_GCJ='-qnocommon'
16266 lt_prog_compiler_wl_GCJ='-Wl,'
16268 esac
16271 mingw* | pw32* | os2*)
16272 # This hack is so that the source file can tell whether it is being
16273 # built for inclusion in a dll (and should export symbols for example).
16274 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16277 hpux9* | hpux10* | hpux11*)
16278 lt_prog_compiler_wl_GCJ='-Wl,'
16279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16280 # not for PA HP-UX.
16281 case $host_cpu in
16282 hppa*64*|ia64*)
16283 # +Z the default
16286 lt_prog_compiler_pic_GCJ='+Z'
16288 esac
16289 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16290 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16293 irix5* | irix6* | nonstopux*)
16294 lt_prog_compiler_wl_GCJ='-Wl,'
16295 # PIC (with -KPIC) is the default.
16296 lt_prog_compiler_static_GCJ='-non_shared'
16299 newsos6)
16300 lt_prog_compiler_pic_GCJ='-KPIC'
16301 lt_prog_compiler_static_GCJ='-Bstatic'
16304 linux*)
16305 case $cc_basename in
16306 icc* | ecc*)
16307 lt_prog_compiler_wl_GCJ='-Wl,'
16308 lt_prog_compiler_pic_GCJ='-KPIC'
16309 lt_prog_compiler_static_GCJ='-static'
16311 pgcc* | pgf77* | pgf90* | pgf95*)
16312 # Portland Group compilers (*not* the Pentium gcc compiler,
16313 # which looks to be a dead project)
16314 lt_prog_compiler_wl_GCJ='-Wl,'
16315 lt_prog_compiler_pic_GCJ='-fpic'
16316 lt_prog_compiler_static_GCJ='-Bstatic'
16318 ccc*)
16319 lt_prog_compiler_wl_GCJ='-Wl,'
16320 # All Alpha code is PIC.
16321 lt_prog_compiler_static_GCJ='-non_shared'
16323 esac
16326 osf3* | osf4* | osf5*)
16327 lt_prog_compiler_wl_GCJ='-Wl,'
16328 # All OSF/1 code is PIC.
16329 lt_prog_compiler_static_GCJ='-non_shared'
16332 solaris*)
16333 lt_prog_compiler_pic_GCJ='-KPIC'
16334 lt_prog_compiler_static_GCJ='-Bstatic'
16335 case $cc_basename in
16336 f77* | f90* | f95*)
16337 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16339 lt_prog_compiler_wl_GCJ='-Wl,';;
16340 esac
16343 sunos4*)
16344 lt_prog_compiler_wl_GCJ='-Qoption ld '
16345 lt_prog_compiler_pic_GCJ='-PIC'
16346 lt_prog_compiler_static_GCJ='-Bstatic'
16349 sysv4 | sysv4.2uw2* | sysv4.3*)
16350 lt_prog_compiler_wl_GCJ='-Wl,'
16351 lt_prog_compiler_pic_GCJ='-KPIC'
16352 lt_prog_compiler_static_GCJ='-Bstatic'
16355 sysv4*MP*)
16356 if test -d /usr/nec ;then
16357 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16358 lt_prog_compiler_static_GCJ='-Bstatic'
16362 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16363 lt_prog_compiler_wl_GCJ='-Wl,'
16364 lt_prog_compiler_pic_GCJ='-KPIC'
16365 lt_prog_compiler_static_GCJ='-Bstatic'
16368 unicos*)
16369 lt_prog_compiler_wl_GCJ='-Wl,'
16370 lt_prog_compiler_can_build_shared_GCJ=no
16373 uts4*)
16374 lt_prog_compiler_pic_GCJ='-pic'
16375 lt_prog_compiler_static_GCJ='-Bstatic'
16379 lt_prog_compiler_can_build_shared_GCJ=no
16381 esac
16384 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16385 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16388 # Check to make sure the PIC flag actually works.
16390 if test -n "$lt_prog_compiler_pic_GCJ"; then
16392 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16393 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16394 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16395 echo $ECHO_N "(cached) $ECHO_C" >&6
16396 else
16397 lt_prog_compiler_pic_works_GCJ=no
16398 ac_outfile=conftest.$ac_objext
16399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16400 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16401 # Insert the option either (1) after the last *FLAGS variable, or
16402 # (2) before a word containing "conftest.", or (3) at the end.
16403 # Note that $ac_compile itself does not contain backslashes and begins
16404 # with a dollar sign (not a hyphen), so the echo should work correctly.
16405 # The option is referenced via a variable to avoid confusing sed.
16406 lt_compile=`echo "$ac_compile" | $SED \
16407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16409 -e 's:$: $lt_compiler_flag:'`
16410 (eval echo "\"\$as_me:16410: $lt_compile\"" >&5)
16411 (eval "$lt_compile" 2>conftest.err)
16412 ac_status=$?
16413 cat conftest.err >&5
16414 echo "$as_me:16414: \$? = $ac_status" >&5
16415 if (exit $ac_status) && test -s "$ac_outfile"; then
16416 # The compiler can only warn and ignore the option if not recognized
16417 # So say no if there are warnings other than the usual output.
16418 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16420 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16421 lt_prog_compiler_pic_works_GCJ=yes
16424 $rm conftest*
16427 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16428 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16430 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16431 case $lt_prog_compiler_pic_GCJ in
16432 "" | " "*) ;;
16433 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16434 esac
16435 else
16436 lt_prog_compiler_pic_GCJ=
16437 lt_prog_compiler_can_build_shared_GCJ=no
16441 case $host_os in
16442 # For platforms which do not support PIC, -DPIC is meaningless:
16443 *djgpp*)
16444 lt_prog_compiler_pic_GCJ=
16447 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16449 esac
16452 # Check to make sure the static flag actually works.
16454 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16455 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16456 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16457 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16458 echo $ECHO_N "(cached) $ECHO_C" >&6
16459 else
16460 lt_prog_compiler_static_works_GCJ=no
16461 save_LDFLAGS="$LDFLAGS"
16462 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16463 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16464 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16465 # The linker can only warn and ignore the option if not recognized
16466 # So say no if there are warnings
16467 if test -s conftest.err; then
16468 # Append any errors to the config.log.
16469 cat conftest.err 1>&5
16470 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16472 if diff conftest.exp conftest.er2 >/dev/null; then
16473 lt_prog_compiler_static_works_GCJ=yes
16475 else
16476 lt_prog_compiler_static_works_GCJ=yes
16479 $rm conftest*
16480 LDFLAGS="$save_LDFLAGS"
16483 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16484 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16486 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16488 else
16489 lt_prog_compiler_static_GCJ=
16493 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16494 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16495 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16497 else
16498 lt_cv_prog_compiler_c_o_GCJ=no
16499 $rm -r conftest 2>/dev/null
16500 mkdir conftest
16501 cd conftest
16502 mkdir out
16503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16505 lt_compiler_flag="-o out/conftest2.$ac_objext"
16506 # Insert the option either (1) after the last *FLAGS variable, or
16507 # (2) before a word containing "conftest.", or (3) at the end.
16508 # Note that $ac_compile itself does not contain backslashes and begins
16509 # with a dollar sign (not a hyphen), so the echo should work correctly.
16510 lt_compile=`echo "$ac_compile" | $SED \
16511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16513 -e 's:$: $lt_compiler_flag:'`
16514 (eval echo "\"\$as_me:16514: $lt_compile\"" >&5)
16515 (eval "$lt_compile" 2>out/conftest.err)
16516 ac_status=$?
16517 cat out/conftest.err >&5
16518 echo "$as_me:16518: \$? = $ac_status" >&5
16519 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16520 then
16521 # The compiler can only warn and ignore the option if not recognized
16522 # So say no if there are warnings
16523 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16524 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16525 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16526 lt_cv_prog_compiler_c_o_GCJ=yes
16529 chmod u+w . 2>&5
16530 $rm conftest*
16531 # SGI C++ compiler will create directory out/ii_files/ for
16532 # template instantiation
16533 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16534 $rm out/* && rmdir out
16535 cd ..
16536 rmdir conftest
16537 $rm conftest*
16540 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16541 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16544 hard_links="nottested"
16545 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16546 # do not overwrite the value of need_locks provided by the user
16547 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16548 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16549 hard_links=yes
16550 $rm conftest*
16551 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16552 touch conftest.a
16553 ln conftest.a conftest.b 2>&5 || hard_links=no
16554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16555 { echo "$as_me:$LINENO: result: $hard_links" >&5
16556 echo "${ECHO_T}$hard_links" >&6; }
16557 if test "$hard_links" = no; then
16558 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16559 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16560 need_locks=warn
16562 else
16563 need_locks=no
16566 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16567 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16569 runpath_var=
16570 allow_undefined_flag_GCJ=
16571 enable_shared_with_static_runtimes_GCJ=no
16572 archive_cmds_GCJ=
16573 archive_expsym_cmds_GCJ=
16574 old_archive_From_new_cmds_GCJ=
16575 old_archive_from_expsyms_cmds_GCJ=
16576 export_dynamic_flag_spec_GCJ=
16577 whole_archive_flag_spec_GCJ=
16578 thread_safe_flag_spec_GCJ=
16579 hardcode_libdir_flag_spec_GCJ=
16580 hardcode_libdir_flag_spec_ld_GCJ=
16581 hardcode_libdir_separator_GCJ=
16582 hardcode_direct_GCJ=no
16583 hardcode_minus_L_GCJ=no
16584 hardcode_shlibpath_var_GCJ=unsupported
16585 link_all_deplibs_GCJ=unknown
16586 hardcode_automatic_GCJ=no
16587 module_cmds_GCJ=
16588 module_expsym_cmds_GCJ=
16589 always_export_symbols_GCJ=no
16590 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16591 # include_expsyms should be a list of space-separated symbols to be *always*
16592 # included in the symbol list
16593 include_expsyms_GCJ=
16594 # exclude_expsyms can be an extended regexp of symbols to exclude
16595 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16596 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16597 # as well as any symbol that contains `d'.
16598 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16599 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16600 # platforms (ab)use it in PIC code, but their linkers get confused if
16601 # the symbol is explicitly referenced. Since portable code cannot
16602 # rely on this symbol name, it's probably fine to never include it in
16603 # preloaded symbol tables.
16604 extract_expsyms_cmds=
16605 # Just being paranoid about ensuring that cc_basename is set.
16606 for cc_temp in $compiler""; do
16607 case $cc_temp in
16608 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16609 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16610 \-*) ;;
16611 *) break;;
16612 esac
16613 done
16614 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16616 case $host_os in
16617 cygwin* | mingw* | pw32*)
16618 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16619 # When not using gcc, we currently assume that we are using
16620 # Microsoft Visual C++.
16621 if test "$GCC" != yes; then
16622 with_gnu_ld=no
16625 interix*)
16626 # we just hope/assume this is gcc and not c89 (= MSVC++)
16627 with_gnu_ld=yes
16629 openbsd*)
16630 with_gnu_ld=no
16632 esac
16634 ld_shlibs_GCJ=yes
16635 if test "$with_gnu_ld" = yes; then
16636 # If archive_cmds runs LD, not CC, wlarc should be empty
16637 wlarc='${wl}'
16639 # Set some defaults for GNU ld with shared library support. These
16640 # are reset later if shared libraries are not supported. Putting them
16641 # here allows them to be overridden if necessary.
16642 runpath_var=LD_RUN_PATH
16643 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16644 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16645 # ancient GNU ld didn't support --whole-archive et. al.
16646 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16647 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16648 else
16649 whole_archive_flag_spec_GCJ=
16651 supports_anon_versioning=no
16652 case `$LD -v 2>/dev/null` in
16653 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16654 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16655 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16656 *\ 2.11.*) ;; # other 2.11 versions
16657 *) supports_anon_versioning=yes ;;
16658 esac
16660 # See if GNU ld supports shared libraries.
16661 case $host_os in
16662 aix3* | aix4* | aix5*)
16663 # On AIX/PPC, the GNU linker is very broken
16664 if test "$host_cpu" != ia64; then
16665 ld_shlibs_GCJ=no
16666 cat <<EOF 1>&2
16668 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16669 *** to be unable to reliably create shared libraries on AIX.
16670 *** Therefore, libtool is disabling shared libraries support. If you
16671 *** really care for shared libraries, you may want to modify your PATH
16672 *** so that a non-GNU linker is found, and then restart.
16678 amigaos*)
16679 archive_cmds_GCJ='$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)'
16680 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16681 hardcode_minus_L_GCJ=yes
16683 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16684 # that the semantics of dynamic libraries on AmigaOS, at least up
16685 # to version 4, is to share data among multiple programs linked
16686 # with the same dynamic library. Since this doesn't match the
16687 # behavior of shared libraries on other platforms, we can't use
16688 # them.
16689 ld_shlibs_GCJ=no
16692 beos*)
16693 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16694 allow_undefined_flag_GCJ=unsupported
16695 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16696 # support --undefined. This deserves some investigation. FIXME
16697 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16698 else
16699 ld_shlibs_GCJ=no
16703 cygwin* | mingw* | pw32*)
16704 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16705 # as there is no search path for DLLs.
16706 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16707 allow_undefined_flag_GCJ=unsupported
16708 always_export_symbols_GCJ=no
16709 enable_shared_with_static_runtimes_GCJ=yes
16710 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16712 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16713 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16714 # If the export-symbols file already is a .def file (1st line
16715 # is EXPORTS), use it as is; otherwise, prepend...
16716 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16717 cp $export_symbols $output_objdir/$soname.def;
16718 else
16719 echo EXPORTS > $output_objdir/$soname.def;
16720 cat $export_symbols >> $output_objdir/$soname.def;
16722 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16723 else
16724 ld_shlibs_GCJ=no
16728 interix3*)
16729 hardcode_direct_GCJ=no
16730 hardcode_shlibpath_var_GCJ=no
16731 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16732 export_dynamic_flag_spec_GCJ='${wl}-E'
16733 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16734 # Instead, shared libraries are loaded at an image base (0x10000000 by
16735 # default) and relocated if they conflict, which is a slow very memory
16736 # consuming and fragmenting process. To avoid this, we pick a random,
16737 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16738 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16739 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16740 archive_expsym_cmds_GCJ='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'
16743 linux*)
16744 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16745 tmp_addflag=
16746 case $cc_basename,$host_cpu in
16747 pgcc*) # Portland Group C compiler
16748 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16749 tmp_addflag=' $pic_flag'
16751 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16752 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16753 tmp_addflag=' $pic_flag -Mnomain' ;;
16754 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16755 tmp_addflag=' -i_dynamic' ;;
16756 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16757 tmp_addflag=' -i_dynamic -nofor_main' ;;
16758 ifc* | ifort*) # Intel Fortran compiler
16759 tmp_addflag=' -nofor_main' ;;
16760 esac
16761 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16763 if test $supports_anon_versioning = yes; then
16764 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16766 $echo "local: *; };" >> $output_objdir/$libname.ver~
16767 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16769 else
16770 ld_shlibs_GCJ=no
16774 netbsd*)
16775 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16776 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16777 wlarc=
16778 else
16779 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16780 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16784 solaris*)
16785 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16786 ld_shlibs_GCJ=no
16787 cat <<EOF 1>&2
16789 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16790 *** create shared libraries on Solaris systems. Therefore, libtool
16791 *** is disabling shared libraries support. We urge you to upgrade GNU
16792 *** binutils to release 2.9.1 or newer. Another option is to modify
16793 *** your PATH or compiler configuration so that the native linker is
16794 *** used, and then restart.
16797 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16798 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16799 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16800 else
16801 ld_shlibs_GCJ=no
16805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16806 case `$LD -v 2>&1` in
16807 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16808 ld_shlibs_GCJ=no
16809 cat <<_LT_EOF 1>&2
16811 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16812 *** reliably create shared libraries on SCO systems. Therefore, libtool
16813 *** is disabling shared libraries support. We urge you to upgrade GNU
16814 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16815 *** your PATH or compiler configuration so that the native linker is
16816 *** used, and then restart.
16818 _LT_EOF
16821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16822 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16823 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16824 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16825 else
16826 ld_shlibs_GCJ=no
16829 esac
16832 sunos4*)
16833 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16834 wlarc=
16835 hardcode_direct_GCJ=yes
16836 hardcode_shlibpath_var_GCJ=no
16840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16841 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16842 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16843 else
16844 ld_shlibs_GCJ=no
16847 esac
16849 if test "$ld_shlibs_GCJ" = no; then
16850 runpath_var=
16851 hardcode_libdir_flag_spec_GCJ=
16852 export_dynamic_flag_spec_GCJ=
16853 whole_archive_flag_spec_GCJ=
16855 else
16856 # PORTME fill in a description of your system's linker (not GNU ld)
16857 case $host_os in
16858 aix3*)
16859 allow_undefined_flag_GCJ=unsupported
16860 always_export_symbols_GCJ=yes
16861 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16862 # Note: this linker hardcodes the directories in LIBPATH if there
16863 # are no directories specified by -L.
16864 hardcode_minus_L_GCJ=yes
16865 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16866 # Neither direct hardcoding nor static linking is supported with a
16867 # broken collect2.
16868 hardcode_direct_GCJ=unsupported
16872 aix4* | aix5*)
16873 if test "$host_cpu" = ia64; then
16874 # On IA64, the linker does run time linking by default, so we don't
16875 # have to do anything special.
16876 aix_use_runtimelinking=no
16877 exp_sym_flag='-Bexport'
16878 no_entry_flag=""
16879 else
16880 # If we're using GNU nm, then we don't want the "-C" option.
16881 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16882 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16883 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16884 else
16885 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16887 aix_use_runtimelinking=no
16889 # Test if we are trying to use run time linking or normal
16890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16891 # need to do runtime linking.
16892 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16893 for ld_flag in $LDFLAGS; do
16894 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16895 aix_use_runtimelinking=yes
16896 break
16898 done
16900 esac
16902 exp_sym_flag='-bexport'
16903 no_entry_flag='-bnoentry'
16906 # When large executables or shared objects are built, AIX ld can
16907 # have problems creating the table of contents. If linking a library
16908 # or program results in "error TOC overflow" add -mminimal-toc to
16909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16912 archive_cmds_GCJ=''
16913 hardcode_direct_GCJ=yes
16914 hardcode_libdir_separator_GCJ=':'
16915 link_all_deplibs_GCJ=yes
16917 if test "$GCC" = yes; then
16918 case $host_os in aix4.[012]|aix4.[012].*)
16919 # We only want to do this on AIX 4.2 and lower, the check
16920 # below for broken collect2 doesn't work under 4.3+
16921 collect2name=`${CC} -print-prog-name=collect2`
16922 if test -f "$collect2name" && \
16923 strings "$collect2name" | grep resolve_lib_name >/dev/null
16924 then
16925 # We have reworked collect2
16926 hardcode_direct_GCJ=yes
16927 else
16928 # We have old collect2
16929 hardcode_direct_GCJ=unsupported
16930 # It fails to find uninstalled libraries when the uninstalled
16931 # path is not listed in the libpath. Setting hardcode_minus_L
16932 # to unsupported forces relinking
16933 hardcode_minus_L_GCJ=yes
16934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16935 hardcode_libdir_separator_GCJ=
16938 esac
16939 shared_flag='-shared'
16940 if test "$aix_use_runtimelinking" = yes; then
16941 shared_flag="$shared_flag "'${wl}-G'
16943 else
16944 # not using gcc
16945 if test "$host_cpu" = ia64; then
16946 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16947 # chokes on -Wl,-G. The following line is correct:
16948 shared_flag='-G'
16949 else
16950 if test "$aix_use_runtimelinking" = yes; then
16951 shared_flag='${wl}-G'
16952 else
16953 shared_flag='${wl}-bM:SRE'
16958 # It seems that -bexpall does not export symbols beginning with
16959 # underscore (_), so it is better to generate a list of symbols to export.
16960 always_export_symbols_GCJ=yes
16961 if test "$aix_use_runtimelinking" = yes; then
16962 # Warning - without using the other runtime loading flags (-brtl),
16963 # -berok will link without error, but may produce a broken library.
16964 allow_undefined_flag_GCJ='-berok'
16965 # Determine the default libpath from the value encoded in an empty executable.
16966 cat >conftest.$ac_ext <<_ACEOF
16967 /* confdefs.h. */
16968 _ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h. */
16974 main ()
16978 return 0;
16980 _ACEOF
16981 rm -f conftest.$ac_objext conftest$ac_exeext
16982 if { (ac_try="$ac_link"
16983 case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16986 esac
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_link") 2>conftest.er1
16989 ac_status=$?
16990 grep -v '^ *+' conftest.er1 >conftest.err
16991 rm -f conftest.er1
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } && {
16995 test -z "$ac_c_werror_flag" ||
16996 test ! -s conftest.err
16997 } && test -s conftest$ac_exeext &&
16998 $as_test_x conftest$ac_exeext; then
17000 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17002 # Check for a 64-bit object if we didn't find anything.
17003 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17004 }'`; fi
17005 else
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17013 conftest$ac_exeext conftest.$ac_ext
17014 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17016 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17017 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17018 else
17019 if test "$host_cpu" = ia64; then
17020 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17021 allow_undefined_flag_GCJ="-z nodefs"
17022 archive_expsym_cmds_GCJ="\$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"
17023 else
17024 # Determine the default libpath from the value encoded in an empty executable.
17025 cat >conftest.$ac_ext <<_ACEOF
17026 /* confdefs.h. */
17027 _ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h. */
17033 main ()
17037 return 0;
17039 _ACEOF
17040 rm -f conftest.$ac_objext conftest$ac_exeext
17041 if { (ac_try="$ac_link"
17042 case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17045 esac
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_link") 2>conftest.er1
17048 ac_status=$?
17049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } && {
17054 test -z "$ac_c_werror_flag" ||
17055 test ! -s conftest.err
17056 } && test -s conftest$ac_exeext &&
17057 $as_test_x conftest$ac_exeext; then
17059 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17061 # Check for a 64-bit object if we didn't find anything.
17062 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17063 }'`; fi
17064 else
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17072 conftest$ac_exeext conftest.$ac_ext
17073 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17075 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17076 # Warning - without using the other run time loading flags,
17077 # -berok will link without error, but may produce a broken library.
17078 no_undefined_flag_GCJ=' ${wl}-bernotok'
17079 allow_undefined_flag_GCJ=' ${wl}-berok'
17080 # Exported symbols can be pulled into shared objects from archives
17081 whole_archive_flag_spec_GCJ='$convenience'
17082 archive_cmds_need_lc_GCJ=yes
17083 # This is similar to how AIX traditionally builds its shared libraries.
17084 archive_expsym_cmds_GCJ="\$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'
17089 amigaos*)
17090 archive_cmds_GCJ='$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)'
17091 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17092 hardcode_minus_L_GCJ=yes
17093 # see comment about different semantics on the GNU ld section
17094 ld_shlibs_GCJ=no
17097 bsdi[45]*)
17098 export_dynamic_flag_spec_GCJ=-rdynamic
17101 cygwin* | mingw* | pw32*)
17102 # When not using gcc, we currently assume that we are using
17103 # Microsoft Visual C++.
17104 # hardcode_libdir_flag_spec is actually meaningless, as there is
17105 # no search path for DLLs.
17106 hardcode_libdir_flag_spec_GCJ=' '
17107 allow_undefined_flag_GCJ=unsupported
17108 # Tell ltmain to make .lib files, not .a files.
17109 libext=lib
17110 # Tell ltmain to make .dll files, not .so files.
17111 shrext_cmds=".dll"
17112 # FIXME: Setting linknames here is a bad hack.
17113 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17114 # The linker will automatically build a .lib file if we build a DLL.
17115 old_archive_From_new_cmds_GCJ='true'
17116 # FIXME: Should let the user specify the lib program.
17117 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17118 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17119 enable_shared_with_static_runtimes_GCJ=yes
17122 darwin* | rhapsody*)
17123 case $host_os in
17124 rhapsody* | darwin1.[012])
17125 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17127 *) # Darwin 1.3 on
17128 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17129 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17130 else
17131 case ${MACOSX_DEPLOYMENT_TARGET} in
17132 10.[012])
17133 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17135 10.*)
17136 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17138 esac
17141 esac
17142 archive_cmds_need_lc_GCJ=no
17143 hardcode_direct_GCJ=no
17144 hardcode_automatic_GCJ=yes
17145 hardcode_shlibpath_var_GCJ=unsupported
17146 whole_archive_flag_spec_GCJ=''
17147 link_all_deplibs_GCJ=yes
17148 if test "$GCC" = yes ; then
17149 output_verbose_link_cmd='echo'
17150 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17151 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17152 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17153 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17154 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17155 else
17156 case $cc_basename in
17157 xlc*)
17158 output_verbose_link_cmd='echo'
17159 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17160 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17161 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17162 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17163 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17166 ld_shlibs_GCJ=no
17168 esac
17172 dgux*)
17173 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17174 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17175 hardcode_shlibpath_var_GCJ=no
17178 freebsd1*)
17179 ld_shlibs_GCJ=no
17182 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17183 # support. Future versions do this automatically, but an explicit c++rt0.o
17184 # does not break anything, and helps significantly (at the cost of a little
17185 # extra space).
17186 freebsd2.2*)
17187 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17188 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17189 hardcode_direct_GCJ=yes
17190 hardcode_shlibpath_var_GCJ=no
17193 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17194 freebsd2*)
17195 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17196 hardcode_direct_GCJ=yes
17197 hardcode_minus_L_GCJ=yes
17198 hardcode_shlibpath_var_GCJ=no
17201 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17202 freebsd* | kfreebsd*-gnu | dragonfly*)
17203 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17204 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17205 hardcode_direct_GCJ=yes
17206 hardcode_shlibpath_var_GCJ=no
17209 hpux9*)
17210 if test "$GCC" = yes; then
17211 archive_cmds_GCJ='$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'
17212 else
17213 archive_cmds_GCJ='$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'
17215 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17216 hardcode_libdir_separator_GCJ=:
17217 hardcode_direct_GCJ=yes
17219 # hardcode_minus_L: Not really in the search PATH,
17220 # but as the default location of the library.
17221 hardcode_minus_L_GCJ=yes
17222 export_dynamic_flag_spec_GCJ='${wl}-E'
17225 hpux10*)
17226 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17227 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17228 else
17229 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17231 if test "$with_gnu_ld" = no; then
17232 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17233 hardcode_libdir_separator_GCJ=:
17235 hardcode_direct_GCJ=yes
17236 export_dynamic_flag_spec_GCJ='${wl}-E'
17238 # hardcode_minus_L: Not really in the search PATH,
17239 # but as the default location of the library.
17240 hardcode_minus_L_GCJ=yes
17244 hpux11*)
17245 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17246 case $host_cpu in
17247 hppa*64*)
17248 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17250 ia64*)
17251 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17254 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17256 esac
17257 else
17258 case $host_cpu in
17259 hppa*64*)
17260 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17262 ia64*)
17263 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17266 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17268 esac
17270 if test "$with_gnu_ld" = no; then
17271 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17272 hardcode_libdir_separator_GCJ=:
17274 case $host_cpu in
17275 hppa*64*|ia64*)
17276 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17277 hardcode_direct_GCJ=no
17278 hardcode_shlibpath_var_GCJ=no
17281 hardcode_direct_GCJ=yes
17282 export_dynamic_flag_spec_GCJ='${wl}-E'
17284 # hardcode_minus_L: Not really in the search PATH,
17285 # but as the default location of the library.
17286 hardcode_minus_L_GCJ=yes
17288 esac
17292 irix5* | irix6* | nonstopux*)
17293 if test "$GCC" = yes; then
17294 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17295 else
17296 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17297 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17299 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17300 hardcode_libdir_separator_GCJ=:
17301 link_all_deplibs_GCJ=yes
17304 netbsd*)
17305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17306 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17307 else
17308 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17310 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17311 hardcode_direct_GCJ=yes
17312 hardcode_shlibpath_var_GCJ=no
17315 newsos6)
17316 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17317 hardcode_direct_GCJ=yes
17318 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17319 hardcode_libdir_separator_GCJ=:
17320 hardcode_shlibpath_var_GCJ=no
17323 openbsd*)
17324 hardcode_direct_GCJ=yes
17325 hardcode_shlibpath_var_GCJ=no
17326 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17327 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17328 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17329 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17330 export_dynamic_flag_spec_GCJ='${wl}-E'
17331 else
17332 case $host_os in
17333 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17334 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17335 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17338 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17339 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17341 esac
17345 os2*)
17346 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17347 hardcode_minus_L_GCJ=yes
17348 allow_undefined_flag_GCJ=unsupported
17349 archive_cmds_GCJ='$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'
17350 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17353 osf3*)
17354 if test "$GCC" = yes; then
17355 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17356 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17357 else
17358 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17359 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17361 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17362 hardcode_libdir_separator_GCJ=:
17365 osf4* | osf5*) # as osf3* with the addition of -msym flag
17366 if test "$GCC" = yes; then
17367 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17368 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17369 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17370 else
17371 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17372 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17373 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17374 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17376 # Both c and cxx compiler support -rpath directly
17377 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17379 hardcode_libdir_separator_GCJ=:
17382 solaris*)
17383 no_undefined_flag_GCJ=' -z text'
17384 if test "$GCC" = yes; then
17385 wlarc='${wl}'
17386 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17387 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17388 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17389 else
17390 wlarc=''
17391 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17392 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17393 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17395 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17396 hardcode_shlibpath_var_GCJ=no
17397 case $host_os in
17398 solaris2.[0-5] | solaris2.[0-5].*) ;;
17400 # The compiler driver will combine linker options so we
17401 # cannot just pass the convience library names through
17402 # without $wl, iff we do not link with $LD.
17403 # Luckily, gcc supports the same syntax we need for Sun Studio.
17404 # Supported since Solaris 2.6 (maybe 2.5.1?)
17405 case $wlarc in
17407 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17409 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17410 esac ;;
17411 esac
17412 link_all_deplibs_GCJ=yes
17415 sunos4*)
17416 if test "x$host_vendor" = xsequent; then
17417 # Use $CC to link under sequent, because it throws in some extra .o
17418 # files that make .init and .fini sections work.
17419 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17420 else
17421 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17423 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17424 hardcode_direct_GCJ=yes
17425 hardcode_minus_L_GCJ=yes
17426 hardcode_shlibpath_var_GCJ=no
17429 sysv4)
17430 case $host_vendor in
17431 sni)
17432 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17433 hardcode_direct_GCJ=yes # is this really true???
17435 siemens)
17436 ## LD is ld it makes a PLAMLIB
17437 ## CC just makes a GrossModule.
17438 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17439 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17440 hardcode_direct_GCJ=no
17442 motorola)
17443 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17444 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17446 esac
17447 runpath_var='LD_RUN_PATH'
17448 hardcode_shlibpath_var_GCJ=no
17451 sysv4.3*)
17452 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17453 hardcode_shlibpath_var_GCJ=no
17454 export_dynamic_flag_spec_GCJ='-Bexport'
17457 sysv4*MP*)
17458 if test -d /usr/nec; then
17459 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17460 hardcode_shlibpath_var_GCJ=no
17461 runpath_var=LD_RUN_PATH
17462 hardcode_runpath_var=yes
17463 ld_shlibs_GCJ=yes
17467 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17468 no_undefined_flag_GCJ='${wl}-z,text'
17469 archive_cmds_need_lc_GCJ=no
17470 hardcode_shlibpath_var_GCJ=no
17471 runpath_var='LD_RUN_PATH'
17473 if test "$GCC" = yes; then
17474 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17475 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17476 else
17477 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17478 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17482 sysv5* | sco3.2v5* | sco5v6*)
17483 # Note: We can NOT use -z defs as we might desire, because we do not
17484 # link with -lc, and that would cause any symbols used from libc to
17485 # always be unresolved, which means just about no library would
17486 # ever link correctly. If we're not using GNU ld we use -z text
17487 # though, which does catch some bad symbols but isn't as heavy-handed
17488 # as -z defs.
17489 no_undefined_flag_GCJ='${wl}-z,text'
17490 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17491 archive_cmds_need_lc_GCJ=no
17492 hardcode_shlibpath_var_GCJ=no
17493 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17494 hardcode_libdir_separator_GCJ=':'
17495 link_all_deplibs_GCJ=yes
17496 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17497 runpath_var='LD_RUN_PATH'
17499 if test "$GCC" = yes; then
17500 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17501 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17502 else
17503 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17504 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17508 uts4*)
17509 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17510 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17511 hardcode_shlibpath_var_GCJ=no
17515 ld_shlibs_GCJ=no
17517 esac
17520 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17521 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17522 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17525 # Do we need to explicitly link libc?
17527 case "x$archive_cmds_need_lc_GCJ" in
17528 x|xyes)
17529 # Assume -lc should be added
17530 archive_cmds_need_lc_GCJ=yes
17532 if test "$enable_shared" = yes && test "$GCC" = yes; then
17533 case $archive_cmds_GCJ in
17534 *'~'*)
17535 # FIXME: we may have to deal with multi-command sequences.
17537 '$CC '*)
17538 # Test whether the compiler implicitly links with -lc since on some
17539 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17540 # to ld, don't add -lc before -lgcc.
17541 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17542 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17543 $rm conftest*
17544 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17547 (eval $ac_compile) 2>&5
17548 ac_status=$?
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } 2>conftest.err; then
17551 soname=conftest
17552 lib=conftest
17553 libobjs=conftest.$ac_objext
17554 deplibs=
17555 wl=$lt_prog_compiler_wl_GCJ
17556 pic_flag=$lt_prog_compiler_pic_GCJ
17557 compiler_flags=-v
17558 linker_flags=-v
17559 verstring=
17560 output_objdir=.
17561 libname=conftest
17562 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17563 allow_undefined_flag_GCJ=
17564 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17565 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17566 ac_status=$?
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); }
17569 then
17570 archive_cmds_need_lc_GCJ=no
17571 else
17572 archive_cmds_need_lc_GCJ=yes
17574 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17575 else
17576 cat conftest.err 1>&5
17578 $rm conftest*
17579 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17580 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17582 esac
17585 esac
17587 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17588 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17589 library_names_spec=
17590 libname_spec='lib$name'
17591 soname_spec=
17592 shrext_cmds=".so"
17593 postinstall_cmds=
17594 postuninstall_cmds=
17595 finish_cmds=
17596 finish_eval=
17597 shlibpath_var=
17598 shlibpath_overrides_runpath=unknown
17599 version_type=none
17600 dynamic_linker="$host_os ld.so"
17601 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17602 if test "$GCC" = yes; then
17603 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17604 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17605 # if the path contains ";" then we assume it to be the separator
17606 # otherwise default to the standard path separator (i.e. ":") - it is
17607 # assumed that no part of a normal pathname contains ";" but that should
17608 # okay in the real world where ";" in dirpaths is itself problematic.
17609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17610 else
17611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17613 else
17614 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17616 need_lib_prefix=unknown
17617 hardcode_into_libs=no
17619 # when you set need_version to no, make sure it does not cause -set_version
17620 # flags to be left without arguments
17621 need_version=unknown
17623 case $host_os in
17624 aix3*)
17625 version_type=linux
17626 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17627 shlibpath_var=LIBPATH
17629 # AIX 3 has no versioning support, so we append a major version to the name.
17630 soname_spec='${libname}${release}${shared_ext}$major'
17633 aix4* | aix5*)
17634 version_type=linux
17635 need_lib_prefix=no
17636 need_version=no
17637 hardcode_into_libs=yes
17638 if test "$host_cpu" = ia64; then
17639 # AIX 5 supports IA64
17640 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17641 shlibpath_var=LD_LIBRARY_PATH
17642 else
17643 # With GCC up to 2.95.x, collect2 would create an import file
17644 # for dependence libraries. The import file would start with
17645 # the line `#! .'. This would cause the generated library to
17646 # depend on `.', always an invalid library. This was fixed in
17647 # development snapshots of GCC prior to 3.0.
17648 case $host_os in
17649 aix4 | aix4.[01] | aix4.[01].*)
17650 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17651 echo ' yes '
17652 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17654 else
17655 can_build_shared=no
17658 esac
17659 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17660 # soname into executable. Probably we can add versioning support to
17661 # collect2, so additional links can be useful in future.
17662 if test "$aix_use_runtimelinking" = yes; then
17663 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17664 # instead of lib<name>.a to let people know that these are not
17665 # typical AIX shared libraries.
17666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17667 else
17668 # We preserve .a as extension for shared libraries through AIX4.2
17669 # and later when we are not doing run time linking.
17670 library_names_spec='${libname}${release}.a $libname.a'
17671 soname_spec='${libname}${release}${shared_ext}$major'
17673 shlibpath_var=LIBPATH
17677 amigaos*)
17678 library_names_spec='$libname.ixlibrary $libname.a'
17679 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17680 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'
17683 beos*)
17684 library_names_spec='${libname}${shared_ext}'
17685 dynamic_linker="$host_os ld.so"
17686 shlibpath_var=LIBRARY_PATH
17689 bsdi[45]*)
17690 version_type=linux
17691 need_version=no
17692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17693 soname_spec='${libname}${release}${shared_ext}$major'
17694 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17695 shlibpath_var=LD_LIBRARY_PATH
17696 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17697 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17698 # the default ld.so.conf also contains /usr/contrib/lib and
17699 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17700 # libtool to hard-code these into programs
17703 cygwin* | mingw* | pw32*)
17704 version_type=windows
17705 shrext_cmds=".dll"
17706 need_version=no
17707 need_lib_prefix=no
17709 case $GCC,$host_os in
17710 yes,cygwin* | yes,mingw* | yes,pw32*)
17711 library_names_spec='$libname.dll.a'
17712 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17713 postinstall_cmds='base_file=`basename \${file}`~
17714 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17715 dldir=$destdir/`dirname \$dlpath`~
17716 test -d \$dldir || mkdir -p \$dldir~
17717 $install_prog $dir/$dlname \$dldir/$dlname~
17718 chmod a+x \$dldir/$dlname'
17719 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17720 dlpath=$dir/\$dldll~
17721 $rm \$dlpath'
17722 shlibpath_overrides_runpath=yes
17724 case $host_os in
17725 cygwin*)
17726 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17727 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
17728 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
17729 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17731 mingw*)
17732 # MinGW DLLs use traditional 'lib' prefix
17733 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
17734 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
17735 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17736 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17737 # It is most probably a Windows format PATH printed by
17738 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17739 # path with ; separators, and with drive letters. We can handle the
17740 # drive letters (cygwin fileutils understands them), so leave them,
17741 # especially as we might pass files found there to a mingw objdump,
17742 # which wouldn't understand a cygwinified path. Ahh.
17743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17744 else
17745 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17748 pw32*)
17749 # pw32 DLLs use 'pw' prefix rather than 'lib'
17750 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17752 esac
17756 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17758 esac
17759 dynamic_linker='Win32 ld.exe'
17760 # FIXME: first we should search . and the directory the executable is in
17761 shlibpath_var=PATH
17764 darwin* | rhapsody*)
17765 dynamic_linker="$host_os dyld"
17766 version_type=darwin
17767 need_lib_prefix=no
17768 need_version=no
17769 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17770 soname_spec='${libname}${release}${major}$shared_ext'
17771 shlibpath_overrides_runpath=yes
17772 shlibpath_var=DYLD_LIBRARY_PATH
17773 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17774 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17775 if test "$GCC" = yes; then
17776 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17777 else
17778 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17783 dgux*)
17784 version_type=linux
17785 need_lib_prefix=no
17786 need_version=no
17787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17788 soname_spec='${libname}${release}${shared_ext}$major'
17789 shlibpath_var=LD_LIBRARY_PATH
17792 freebsd1*)
17793 dynamic_linker=no
17796 kfreebsd*-gnu)
17797 version_type=linux
17798 need_lib_prefix=no
17799 need_version=no
17800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17801 soname_spec='${libname}${release}${shared_ext}$major'
17802 shlibpath_var=LD_LIBRARY_PATH
17803 shlibpath_overrides_runpath=no
17804 hardcode_into_libs=yes
17805 dynamic_linker='GNU ld.so'
17808 freebsd* | dragonfly*)
17809 # DragonFly does not have aout. When/if they implement a new
17810 # versioning mechanism, adjust this.
17811 if test -x /usr/bin/objformat; then
17812 objformat=`/usr/bin/objformat`
17813 else
17814 case $host_os in
17815 freebsd[123]*) objformat=aout ;;
17816 *) objformat=elf ;;
17817 esac
17819 version_type=freebsd-$objformat
17820 case $version_type in
17821 freebsd-elf*)
17822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17823 need_version=no
17824 need_lib_prefix=no
17826 freebsd-*)
17827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17828 need_version=yes
17830 esac
17831 shlibpath_var=LD_LIBRARY_PATH
17832 case $host_os in
17833 freebsd2*)
17834 shlibpath_overrides_runpath=yes
17836 freebsd3.[01]* | freebsdelf3.[01]*)
17837 shlibpath_overrides_runpath=yes
17838 hardcode_into_libs=yes
17840 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17841 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17842 shlibpath_overrides_runpath=no
17843 hardcode_into_libs=yes
17845 freebsd*) # from 4.6 on
17846 shlibpath_overrides_runpath=yes
17847 hardcode_into_libs=yes
17849 esac
17852 gnu*)
17853 version_type=linux
17854 need_lib_prefix=no
17855 need_version=no
17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17857 soname_spec='${libname}${release}${shared_ext}$major'
17858 shlibpath_var=LD_LIBRARY_PATH
17859 hardcode_into_libs=yes
17862 hpux9* | hpux10* | hpux11*)
17863 # Give a soname corresponding to the major version so that dld.sl refuses to
17864 # link against other versions.
17865 version_type=sunos
17866 need_lib_prefix=no
17867 need_version=no
17868 case $host_cpu in
17869 ia64*)
17870 shrext_cmds='.so'
17871 hardcode_into_libs=yes
17872 dynamic_linker="$host_os dld.so"
17873 shlibpath_var=LD_LIBRARY_PATH
17874 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17876 soname_spec='${libname}${release}${shared_ext}$major'
17877 if test "X$HPUX_IA64_MODE" = X32; then
17878 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17879 else
17880 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17884 hppa*64*)
17885 shrext_cmds='.sl'
17886 hardcode_into_libs=yes
17887 dynamic_linker="$host_os dld.sl"
17888 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17889 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17891 soname_spec='${libname}${release}${shared_ext}$major'
17892 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17893 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17896 shrext_cmds='.sl'
17897 dynamic_linker="$host_os dld.sl"
17898 shlibpath_var=SHLIB_PATH
17899 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17901 soname_spec='${libname}${release}${shared_ext}$major'
17903 esac
17904 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17905 postinstall_cmds='chmod 555 $lib'
17908 interix3*)
17909 version_type=linux
17910 need_lib_prefix=no
17911 need_version=no
17912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17913 soname_spec='${libname}${release}${shared_ext}$major'
17914 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17915 shlibpath_var=LD_LIBRARY_PATH
17916 shlibpath_overrides_runpath=no
17917 hardcode_into_libs=yes
17920 irix5* | irix6* | nonstopux*)
17921 case $host_os in
17922 nonstopux*) version_type=nonstopux ;;
17924 if test "$lt_cv_prog_gnu_ld" = yes; then
17925 version_type=linux
17926 else
17927 version_type=irix
17928 fi ;;
17929 esac
17930 need_lib_prefix=no
17931 need_version=no
17932 soname_spec='${libname}${release}${shared_ext}$major'
17933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17934 case $host_os in
17935 irix5* | nonstopux*)
17936 libsuff= shlibsuff=
17939 case $LD in # libtool.m4 will add one of these switches to LD
17940 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17941 libsuff= shlibsuff= libmagic=32-bit;;
17942 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17943 libsuff=32 shlibsuff=N32 libmagic=N32;;
17944 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17945 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17946 *) libsuff= shlibsuff= libmagic=never-match;;
17947 esac
17949 esac
17950 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17951 shlibpath_overrides_runpath=no
17952 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17953 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17954 hardcode_into_libs=yes
17957 # No shared lib support for Linux oldld, aout, or coff.
17958 linux*oldld* | linux*aout* | linux*coff*)
17959 dynamic_linker=no
17962 # This must be Linux ELF.
17963 linux*)
17964 version_type=linux
17965 need_lib_prefix=no
17966 need_version=no
17967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17968 soname_spec='${libname}${release}${shared_ext}$major'
17969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17970 shlibpath_var=LD_LIBRARY_PATH
17971 shlibpath_overrides_runpath=no
17972 # This implies no fast_install, which is unacceptable.
17973 # Some rework will be needed to allow for fast_install
17974 # before this can be enabled.
17975 hardcode_into_libs=yes
17977 # Append ld.so.conf contents to the search path
17978 if test -f /etc/ld.so.conf; then
17979 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17980 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17983 # We used to test for /lib/ld.so.1 and disable shared libraries on
17984 # powerpc, because MkLinux only supported shared libraries with the
17985 # GNU dynamic linker. Since this was broken with cross compilers,
17986 # most powerpc-linux boxes support dynamic linking these days and
17987 # people can always --disable-shared, the test was removed, and we
17988 # assume the GNU/Linux dynamic linker is in use.
17989 dynamic_linker='GNU/Linux ld.so'
17992 knetbsd*-gnu)
17993 version_type=linux
17994 need_lib_prefix=no
17995 need_version=no
17996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17997 soname_spec='${libname}${release}${shared_ext}$major'
17998 shlibpath_var=LD_LIBRARY_PATH
17999 shlibpath_overrides_runpath=no
18000 hardcode_into_libs=yes
18001 dynamic_linker='GNU ld.so'
18004 netbsd*)
18005 version_type=sunos
18006 need_lib_prefix=no
18007 need_version=no
18008 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18011 dynamic_linker='NetBSD (a.out) ld.so'
18012 else
18013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18014 soname_spec='${libname}${release}${shared_ext}$major'
18015 dynamic_linker='NetBSD ld.elf_so'
18017 shlibpath_var=LD_LIBRARY_PATH
18018 shlibpath_overrides_runpath=yes
18019 hardcode_into_libs=yes
18022 newsos6)
18023 version_type=linux
18024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18025 shlibpath_var=LD_LIBRARY_PATH
18026 shlibpath_overrides_runpath=yes
18029 nto-qnx*)
18030 version_type=linux
18031 need_lib_prefix=no
18032 need_version=no
18033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034 soname_spec='${libname}${release}${shared_ext}$major'
18035 shlibpath_var=LD_LIBRARY_PATH
18036 shlibpath_overrides_runpath=yes
18039 openbsd*)
18040 version_type=sunos
18041 sys_lib_dlsearch_path_spec="/usr/lib"
18042 need_lib_prefix=no
18043 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18044 case $host_os in
18045 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18046 *) need_version=no ;;
18047 esac
18048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18050 shlibpath_var=LD_LIBRARY_PATH
18051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18052 case $host_os in
18053 openbsd2.[89] | openbsd2.[89].*)
18054 shlibpath_overrides_runpath=no
18057 shlibpath_overrides_runpath=yes
18059 esac
18060 else
18061 shlibpath_overrides_runpath=yes
18065 os2*)
18066 libname_spec='$name'
18067 shrext_cmds=".dll"
18068 need_lib_prefix=no
18069 library_names_spec='$libname${shared_ext} $libname.a'
18070 dynamic_linker='OS/2 ld.exe'
18071 shlibpath_var=LIBPATH
18074 osf3* | osf4* | osf5*)
18075 version_type=osf
18076 need_lib_prefix=no
18077 need_version=no
18078 soname_spec='${libname}${release}${shared_ext}$major'
18079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18080 shlibpath_var=LD_LIBRARY_PATH
18081 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18082 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18085 solaris*)
18086 version_type=linux
18087 need_lib_prefix=no
18088 need_version=no
18089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18090 soname_spec='${libname}${release}${shared_ext}$major'
18091 shlibpath_var=LD_LIBRARY_PATH
18092 shlibpath_overrides_runpath=yes
18093 hardcode_into_libs=yes
18094 # ldd complains unless libraries are executable
18095 postinstall_cmds='chmod +x $lib'
18098 sunos4*)
18099 version_type=sunos
18100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18101 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18102 shlibpath_var=LD_LIBRARY_PATH
18103 shlibpath_overrides_runpath=yes
18104 if test "$with_gnu_ld" = yes; then
18105 need_lib_prefix=no
18107 need_version=yes
18110 sysv4 | sysv4.3*)
18111 version_type=linux
18112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18113 soname_spec='${libname}${release}${shared_ext}$major'
18114 shlibpath_var=LD_LIBRARY_PATH
18115 case $host_vendor in
18116 sni)
18117 shlibpath_overrides_runpath=no
18118 need_lib_prefix=no
18119 export_dynamic_flag_spec='${wl}-Blargedynsym'
18120 runpath_var=LD_RUN_PATH
18122 siemens)
18123 need_lib_prefix=no
18125 motorola)
18126 need_lib_prefix=no
18127 need_version=no
18128 shlibpath_overrides_runpath=no
18129 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18131 esac
18134 sysv4*MP*)
18135 if test -d /usr/nec ;then
18136 version_type=linux
18137 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18138 soname_spec='$libname${shared_ext}.$major'
18139 shlibpath_var=LD_LIBRARY_PATH
18143 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18144 version_type=freebsd-elf
18145 need_lib_prefix=no
18146 need_version=no
18147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18148 soname_spec='${libname}${release}${shared_ext}$major'
18149 shlibpath_var=LD_LIBRARY_PATH
18150 hardcode_into_libs=yes
18151 if test "$with_gnu_ld" = yes; then
18152 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18153 shlibpath_overrides_runpath=no
18154 else
18155 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18156 shlibpath_overrides_runpath=yes
18157 case $host_os in
18158 sco3.2v5*)
18159 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18161 esac
18163 sys_lib_dlsearch_path_spec='/usr/lib'
18166 uts4*)
18167 version_type=linux
18168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18169 soname_spec='${libname}${release}${shared_ext}$major'
18170 shlibpath_var=LD_LIBRARY_PATH
18174 dynamic_linker=no
18176 esac
18177 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18178 echo "${ECHO_T}$dynamic_linker" >&6; }
18179 test "$dynamic_linker" = no && can_build_shared=no
18181 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18182 if test "$GCC" = yes; then
18183 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18186 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18187 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18188 hardcode_action_GCJ=
18189 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18190 test -n "$runpath_var_GCJ" || \
18191 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18193 # We can hardcode non-existant directories.
18194 if test "$hardcode_direct_GCJ" != no &&
18195 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18196 # have to relink, otherwise we might link with an installed library
18197 # when we should be linking with a yet-to-be-installed one
18198 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18199 test "$hardcode_minus_L_GCJ" != no; then
18200 # Linking always hardcodes the temporary library directory.
18201 hardcode_action_GCJ=relink
18202 else
18203 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18204 hardcode_action_GCJ=immediate
18206 else
18207 # We cannot hardcode anything, or else we can only hardcode existing
18208 # directories.
18209 hardcode_action_GCJ=unsupported
18211 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18212 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18214 if test "$hardcode_action_GCJ" = relink; then
18215 # Fast installation is not supported
18216 enable_fast_install=no
18217 elif test "$shlibpath_overrides_runpath" = yes ||
18218 test "$enable_shared" = no; then
18219 # Fast installation is not necessary
18220 enable_fast_install=needless
18224 # The else clause should only fire when bootstrapping the
18225 # libtool distribution, otherwise you forgot to ship ltmain.sh
18226 # with your package, and you will get complaints that there are
18227 # no rules to generate ltmain.sh.
18228 if test -f "$ltmain"; then
18229 # See if we are running on zsh, and set the options which allow our commands through
18230 # without removal of \ escapes.
18231 if test -n "${ZSH_VERSION+set}" ; then
18232 setopt NO_GLOB_SUBST
18234 # Now quote all the things that may contain metacharacters while being
18235 # careful not to overquote the AC_SUBSTed values. We take copies of the
18236 # variables and quote the copies for generation of the libtool script.
18237 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18238 SED SHELL STRIP \
18239 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18240 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18241 deplibs_check_method reload_flag reload_cmds need_locks \
18242 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18243 lt_cv_sys_global_symbol_to_c_name_address \
18244 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18245 old_postinstall_cmds old_postuninstall_cmds \
18246 compiler_GCJ \
18247 CC_GCJ \
18248 LD_GCJ \
18249 lt_prog_compiler_wl_GCJ \
18250 lt_prog_compiler_pic_GCJ \
18251 lt_prog_compiler_static_GCJ \
18252 lt_prog_compiler_no_builtin_flag_GCJ \
18253 export_dynamic_flag_spec_GCJ \
18254 thread_safe_flag_spec_GCJ \
18255 whole_archive_flag_spec_GCJ \
18256 enable_shared_with_static_runtimes_GCJ \
18257 old_archive_cmds_GCJ \
18258 old_archive_from_new_cmds_GCJ \
18259 predep_objects_GCJ \
18260 postdep_objects_GCJ \
18261 predeps_GCJ \
18262 postdeps_GCJ \
18263 compiler_lib_search_path_GCJ \
18264 archive_cmds_GCJ \
18265 archive_expsym_cmds_GCJ \
18266 postinstall_cmds_GCJ \
18267 postuninstall_cmds_GCJ \
18268 old_archive_from_expsyms_cmds_GCJ \
18269 allow_undefined_flag_GCJ \
18270 no_undefined_flag_GCJ \
18271 export_symbols_cmds_GCJ \
18272 hardcode_libdir_flag_spec_GCJ \
18273 hardcode_libdir_flag_spec_ld_GCJ \
18274 hardcode_libdir_separator_GCJ \
18275 hardcode_automatic_GCJ \
18276 module_cmds_GCJ \
18277 module_expsym_cmds_GCJ \
18278 lt_cv_prog_compiler_c_o_GCJ \
18279 exclude_expsyms_GCJ \
18280 include_expsyms_GCJ; do
18282 case $var in
18283 old_archive_cmds_GCJ | \
18284 old_archive_from_new_cmds_GCJ | \
18285 archive_cmds_GCJ | \
18286 archive_expsym_cmds_GCJ | \
18287 module_cmds_GCJ | \
18288 module_expsym_cmds_GCJ | \
18289 old_archive_from_expsyms_cmds_GCJ | \
18290 export_symbols_cmds_GCJ | \
18291 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18292 postinstall_cmds | postuninstall_cmds | \
18293 old_postinstall_cmds | old_postuninstall_cmds | \
18294 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18295 # Double-quote double-evaled strings.
18296 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18299 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18301 esac
18302 done
18304 case $lt_echo in
18305 *'\$0 --fallback-echo"')
18306 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18308 esac
18310 cfgfile="$ofile"
18312 cat <<__EOF__ >> "$cfgfile"
18313 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18315 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18317 # Shell to use when invoking shell scripts.
18318 SHELL=$lt_SHELL
18320 # Whether or not to build shared libraries.
18321 build_libtool_libs=$enable_shared
18323 # Whether or not to build static libraries.
18324 build_old_libs=$enable_static
18326 # Whether or not to add -lc for building shared libraries.
18327 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18329 # Whether or not to disallow shared libs when runtime libs are static
18330 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18332 # Whether or not to optimize for fast installation.
18333 fast_install=$enable_fast_install
18335 # The host system.
18336 host_alias=$host_alias
18337 host=$host
18338 host_os=$host_os
18340 # The build system.
18341 build_alias=$build_alias
18342 build=$build
18343 build_os=$build_os
18345 # An echo program that does not interpret backslashes.
18346 echo=$lt_echo
18348 # The archiver.
18349 AR=$lt_AR
18350 AR_FLAGS=$lt_AR_FLAGS
18352 # A C compiler.
18353 LTCC=$lt_LTCC
18355 # LTCC compiler flags.
18356 LTCFLAGS=$lt_LTCFLAGS
18358 # A language-specific compiler.
18359 CC=$lt_compiler_GCJ
18361 # Is the compiler the GNU C compiler?
18362 with_gcc=$GCC_GCJ
18364 # An ERE matcher.
18365 EGREP=$lt_EGREP
18367 # The linker used to build libraries.
18368 LD=$lt_LD_GCJ
18370 # Whether we need hard or soft links.
18371 LN_S=$lt_LN_S
18373 # A BSD-compatible nm program.
18374 NM=$lt_NM
18376 # A symbol stripping program
18377 STRIP=$lt_STRIP
18379 # Used to examine libraries when file_magic_cmd begins "file"
18380 MAGIC_CMD=$MAGIC_CMD
18382 # Used on cygwin: DLL creation program.
18383 DLLTOOL="$DLLTOOL"
18385 # Used on cygwin: object dumper.
18386 OBJDUMP="$OBJDUMP"
18388 # Used on cygwin: assembler.
18389 AS="$AS"
18391 # The name of the directory that contains temporary libtool files.
18392 objdir=$objdir
18394 # How to create reloadable object files.
18395 reload_flag=$lt_reload_flag
18396 reload_cmds=$lt_reload_cmds
18398 # How to pass a linker flag through the compiler.
18399 wl=$lt_lt_prog_compiler_wl_GCJ
18401 # Object file suffix (normally "o").
18402 objext="$ac_objext"
18404 # Old archive suffix (normally "a").
18405 libext="$libext"
18407 # Shared library suffix (normally ".so").
18408 shrext_cmds='$shrext_cmds'
18410 # Executable file suffix (normally "").
18411 exeext="$exeext"
18413 # Additional compiler flags for building library objects.
18414 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18415 pic_mode=$pic_mode
18417 # What is the maximum length of a command?
18418 max_cmd_len=$lt_cv_sys_max_cmd_len
18420 # Does compiler simultaneously support -c and -o options?
18421 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18423 # Must we lock files when doing compilation?
18424 need_locks=$lt_need_locks
18426 # Do we need the lib prefix for modules?
18427 need_lib_prefix=$need_lib_prefix
18429 # Do we need a version for libraries?
18430 need_version=$need_version
18432 # Whether dlopen is supported.
18433 dlopen_support=$enable_dlopen
18435 # Whether dlopen of programs is supported.
18436 dlopen_self=$enable_dlopen_self
18438 # Whether dlopen of statically linked programs is supported.
18439 dlopen_self_static=$enable_dlopen_self_static
18441 # Compiler flag to prevent dynamic linking.
18442 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18444 # Compiler flag to turn off builtin functions.
18445 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18447 # Compiler flag to allow reflexive dlopens.
18448 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18450 # Compiler flag to generate shared objects directly from archives.
18451 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18453 # Compiler flag to generate thread-safe objects.
18454 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18456 # Library versioning type.
18457 version_type=$version_type
18459 # Format of library name prefix.
18460 libname_spec=$lt_libname_spec
18462 # List of archive names. First name is the real one, the rest are links.
18463 # The last name is the one that the linker finds with -lNAME.
18464 library_names_spec=$lt_library_names_spec
18466 # The coded name of the library, if different from the real name.
18467 soname_spec=$lt_soname_spec
18469 # Commands used to build and install an old-style archive.
18470 RANLIB=$lt_RANLIB
18471 old_archive_cmds=$lt_old_archive_cmds_GCJ
18472 old_postinstall_cmds=$lt_old_postinstall_cmds
18473 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18475 # Create an old-style archive from a shared archive.
18476 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18478 # Create a temporary old-style archive to link instead of a shared archive.
18479 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18481 # Commands used to build and install a shared archive.
18482 archive_cmds=$lt_archive_cmds_GCJ
18483 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18484 postinstall_cmds=$lt_postinstall_cmds
18485 postuninstall_cmds=$lt_postuninstall_cmds
18487 # Commands used to build a loadable module (assumed same as above if empty)
18488 module_cmds=$lt_module_cmds_GCJ
18489 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18491 # Commands to strip libraries.
18492 old_striplib=$lt_old_striplib
18493 striplib=$lt_striplib
18495 # Dependencies to place before the objects being linked to create a
18496 # shared library.
18497 predep_objects=$lt_predep_objects_GCJ
18499 # Dependencies to place after the objects being linked to create a
18500 # shared library.
18501 postdep_objects=$lt_postdep_objects_GCJ
18503 # Dependencies to place before the objects being linked to create a
18504 # shared library.
18505 predeps=$lt_predeps_GCJ
18507 # Dependencies to place after the objects being linked to create a
18508 # shared library.
18509 postdeps=$lt_postdeps_GCJ
18511 # The library search path used internally by the compiler when linking
18512 # a shared library.
18513 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18515 # Method to check whether dependent libraries are shared objects.
18516 deplibs_check_method=$lt_deplibs_check_method
18518 # Command to use when deplibs_check_method == file_magic.
18519 file_magic_cmd=$lt_file_magic_cmd
18521 # Flag that allows shared libraries with undefined symbols to be built.
18522 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18524 # Flag that forces no undefined symbols.
18525 no_undefined_flag=$lt_no_undefined_flag_GCJ
18527 # Commands used to finish a libtool library installation in a directory.
18528 finish_cmds=$lt_finish_cmds
18530 # Same as above, but a single script fragment to be evaled but not shown.
18531 finish_eval=$lt_finish_eval
18533 # Take the output of nm and produce a listing of raw symbols and C names.
18534 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18536 # Transform the output of nm in a proper C declaration
18537 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18539 # Transform the output of nm in a C name address pair
18540 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18542 # This is the shared library runtime path variable.
18543 runpath_var=$runpath_var
18545 # This is the shared library path variable.
18546 shlibpath_var=$shlibpath_var
18548 # Is shlibpath searched before the hard-coded library search path?
18549 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18551 # How to hardcode a shared library path into an executable.
18552 hardcode_action=$hardcode_action_GCJ
18554 # Whether we should hardcode library paths into libraries.
18555 hardcode_into_libs=$hardcode_into_libs
18557 # Flag to hardcode \$libdir into a binary during linking.
18558 # This must work even if \$libdir does not exist.
18559 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18561 # If ld is used when linking, flag to hardcode \$libdir into
18562 # a binary during linking. This must work even if \$libdir does
18563 # not exist.
18564 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18566 # Whether we need a single -rpath flag with a separated argument.
18567 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18569 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18570 # resulting binary.
18571 hardcode_direct=$hardcode_direct_GCJ
18573 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18574 # resulting binary.
18575 hardcode_minus_L=$hardcode_minus_L_GCJ
18577 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18578 # the resulting binary.
18579 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18581 # Set to yes if building a shared library automatically hardcodes DIR into the library
18582 # and all subsequent libraries and executables linked against it.
18583 hardcode_automatic=$hardcode_automatic_GCJ
18585 # Variables whose values should be saved in libtool wrapper scripts and
18586 # restored at relink time.
18587 variables_saved_for_relink="$variables_saved_for_relink"
18589 # Whether libtool must link a program against all its dependency libraries.
18590 link_all_deplibs=$link_all_deplibs_GCJ
18592 # Compile-time system search path for libraries
18593 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18595 # Run-time system search path for libraries
18596 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18598 # Fix the shell variable \$srcfile for the compiler.
18599 fix_srcfile_path="$fix_srcfile_path_GCJ"
18601 # Set to yes if exported symbols are required.
18602 always_export_symbols=$always_export_symbols_GCJ
18604 # The commands to list exported symbols.
18605 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18607 # The commands to extract the exported symbol list from a shared archive.
18608 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18610 # Symbols that should not be listed in the preloaded symbols.
18611 exclude_expsyms=$lt_exclude_expsyms_GCJ
18613 # Symbols that must always be exported.
18614 include_expsyms=$lt_include_expsyms_GCJ
18616 # ### END LIBTOOL TAG CONFIG: $tagname
18618 __EOF__
18621 else
18622 # If there is no Makefile yet, we rely on a make rule to execute
18623 # `config.status --recheck' to rerun these tests and create the
18624 # libtool script then.
18625 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18626 if test -f "$ltmain_in"; then
18627 test -f Makefile && make "$ltmain"
18632 ac_ext=c
18633 ac_cpp='$CPP $CPPFLAGS'
18634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18638 CC="$lt_save_CC"
18640 else
18641 tagname=""
18648 # Source file extension for RC test sources.
18649 ac_ext=rc
18651 # Object file extension for compiled RC test sources.
18652 objext=o
18653 objext_RC=$objext
18655 # Code to be used in simple compile tests
18656 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18658 # Code to be used in simple link tests
18659 lt_simple_link_test_code="$lt_simple_compile_test_code"
18661 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18663 # If no C compiler was specified, use CC.
18664 LTCC=${LTCC-"$CC"}
18666 # If no C compiler flags were specified, use CFLAGS.
18667 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18669 # Allow CC to be a program name with arguments.
18670 compiler=$CC
18673 # save warnings/boilerplate of simple test code
18674 ac_outfile=conftest.$ac_objext
18675 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18676 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18677 _lt_compiler_boilerplate=`cat conftest.err`
18678 $rm conftest*
18680 ac_outfile=conftest.$ac_objext
18681 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18682 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18683 _lt_linker_boilerplate=`cat conftest.err`
18684 $rm conftest*
18687 # Allow CC to be a program name with arguments.
18688 lt_save_CC="$CC"
18689 CC=${RC-"windres"}
18690 compiler=$CC
18691 compiler_RC=$CC
18692 for cc_temp in $compiler""; do
18693 case $cc_temp in
18694 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18695 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18696 \-*) ;;
18697 *) break;;
18698 esac
18699 done
18700 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18702 lt_cv_prog_compiler_c_o_RC=yes
18704 # The else clause should only fire when bootstrapping the
18705 # libtool distribution, otherwise you forgot to ship ltmain.sh
18706 # with your package, and you will get complaints that there are
18707 # no rules to generate ltmain.sh.
18708 if test -f "$ltmain"; then
18709 # See if we are running on zsh, and set the options which allow our commands through
18710 # without removal of \ escapes.
18711 if test -n "${ZSH_VERSION+set}" ; then
18712 setopt NO_GLOB_SUBST
18714 # Now quote all the things that may contain metacharacters while being
18715 # careful not to overquote the AC_SUBSTed values. We take copies of the
18716 # variables and quote the copies for generation of the libtool script.
18717 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18718 SED SHELL STRIP \
18719 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18720 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18721 deplibs_check_method reload_flag reload_cmds need_locks \
18722 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18723 lt_cv_sys_global_symbol_to_c_name_address \
18724 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18725 old_postinstall_cmds old_postuninstall_cmds \
18726 compiler_RC \
18727 CC_RC \
18728 LD_RC \
18729 lt_prog_compiler_wl_RC \
18730 lt_prog_compiler_pic_RC \
18731 lt_prog_compiler_static_RC \
18732 lt_prog_compiler_no_builtin_flag_RC \
18733 export_dynamic_flag_spec_RC \
18734 thread_safe_flag_spec_RC \
18735 whole_archive_flag_spec_RC \
18736 enable_shared_with_static_runtimes_RC \
18737 old_archive_cmds_RC \
18738 old_archive_from_new_cmds_RC \
18739 predep_objects_RC \
18740 postdep_objects_RC \
18741 predeps_RC \
18742 postdeps_RC \
18743 compiler_lib_search_path_RC \
18744 archive_cmds_RC \
18745 archive_expsym_cmds_RC \
18746 postinstall_cmds_RC \
18747 postuninstall_cmds_RC \
18748 old_archive_from_expsyms_cmds_RC \
18749 allow_undefined_flag_RC \
18750 no_undefined_flag_RC \
18751 export_symbols_cmds_RC \
18752 hardcode_libdir_flag_spec_RC \
18753 hardcode_libdir_flag_spec_ld_RC \
18754 hardcode_libdir_separator_RC \
18755 hardcode_automatic_RC \
18756 module_cmds_RC \
18757 module_expsym_cmds_RC \
18758 lt_cv_prog_compiler_c_o_RC \
18759 exclude_expsyms_RC \
18760 include_expsyms_RC; do
18762 case $var in
18763 old_archive_cmds_RC | \
18764 old_archive_from_new_cmds_RC | \
18765 archive_cmds_RC | \
18766 archive_expsym_cmds_RC | \
18767 module_cmds_RC | \
18768 module_expsym_cmds_RC | \
18769 old_archive_from_expsyms_cmds_RC | \
18770 export_symbols_cmds_RC | \
18771 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18772 postinstall_cmds | postuninstall_cmds | \
18773 old_postinstall_cmds | old_postuninstall_cmds | \
18774 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18775 # Double-quote double-evaled strings.
18776 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18779 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18781 esac
18782 done
18784 case $lt_echo in
18785 *'\$0 --fallback-echo"')
18786 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18788 esac
18790 cfgfile="$ofile"
18792 cat <<__EOF__ >> "$cfgfile"
18793 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18795 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18797 # Shell to use when invoking shell scripts.
18798 SHELL=$lt_SHELL
18800 # Whether or not to build shared libraries.
18801 build_libtool_libs=$enable_shared
18803 # Whether or not to build static libraries.
18804 build_old_libs=$enable_static
18806 # Whether or not to add -lc for building shared libraries.
18807 build_libtool_need_lc=$archive_cmds_need_lc_RC
18809 # Whether or not to disallow shared libs when runtime libs are static
18810 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18812 # Whether or not to optimize for fast installation.
18813 fast_install=$enable_fast_install
18815 # The host system.
18816 host_alias=$host_alias
18817 host=$host
18818 host_os=$host_os
18820 # The build system.
18821 build_alias=$build_alias
18822 build=$build
18823 build_os=$build_os
18825 # An echo program that does not interpret backslashes.
18826 echo=$lt_echo
18828 # The archiver.
18829 AR=$lt_AR
18830 AR_FLAGS=$lt_AR_FLAGS
18832 # A C compiler.
18833 LTCC=$lt_LTCC
18835 # LTCC compiler flags.
18836 LTCFLAGS=$lt_LTCFLAGS
18838 # A language-specific compiler.
18839 CC=$lt_compiler_RC
18841 # Is the compiler the GNU C compiler?
18842 with_gcc=$GCC_RC
18844 # An ERE matcher.
18845 EGREP=$lt_EGREP
18847 # The linker used to build libraries.
18848 LD=$lt_LD_RC
18850 # Whether we need hard or soft links.
18851 LN_S=$lt_LN_S
18853 # A BSD-compatible nm program.
18854 NM=$lt_NM
18856 # A symbol stripping program
18857 STRIP=$lt_STRIP
18859 # Used to examine libraries when file_magic_cmd begins "file"
18860 MAGIC_CMD=$MAGIC_CMD
18862 # Used on cygwin: DLL creation program.
18863 DLLTOOL="$DLLTOOL"
18865 # Used on cygwin: object dumper.
18866 OBJDUMP="$OBJDUMP"
18868 # Used on cygwin: assembler.
18869 AS="$AS"
18871 # The name of the directory that contains temporary libtool files.
18872 objdir=$objdir
18874 # How to create reloadable object files.
18875 reload_flag=$lt_reload_flag
18876 reload_cmds=$lt_reload_cmds
18878 # How to pass a linker flag through the compiler.
18879 wl=$lt_lt_prog_compiler_wl_RC
18881 # Object file suffix (normally "o").
18882 objext="$ac_objext"
18884 # Old archive suffix (normally "a").
18885 libext="$libext"
18887 # Shared library suffix (normally ".so").
18888 shrext_cmds='$shrext_cmds'
18890 # Executable file suffix (normally "").
18891 exeext="$exeext"
18893 # Additional compiler flags for building library objects.
18894 pic_flag=$lt_lt_prog_compiler_pic_RC
18895 pic_mode=$pic_mode
18897 # What is the maximum length of a command?
18898 max_cmd_len=$lt_cv_sys_max_cmd_len
18900 # Does compiler simultaneously support -c and -o options?
18901 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18903 # Must we lock files when doing compilation?
18904 need_locks=$lt_need_locks
18906 # Do we need the lib prefix for modules?
18907 need_lib_prefix=$need_lib_prefix
18909 # Do we need a version for libraries?
18910 need_version=$need_version
18912 # Whether dlopen is supported.
18913 dlopen_support=$enable_dlopen
18915 # Whether dlopen of programs is supported.
18916 dlopen_self=$enable_dlopen_self
18918 # Whether dlopen of statically linked programs is supported.
18919 dlopen_self_static=$enable_dlopen_self_static
18921 # Compiler flag to prevent dynamic linking.
18922 link_static_flag=$lt_lt_prog_compiler_static_RC
18924 # Compiler flag to turn off builtin functions.
18925 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18927 # Compiler flag to allow reflexive dlopens.
18928 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18930 # Compiler flag to generate shared objects directly from archives.
18931 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18933 # Compiler flag to generate thread-safe objects.
18934 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18936 # Library versioning type.
18937 version_type=$version_type
18939 # Format of library name prefix.
18940 libname_spec=$lt_libname_spec
18942 # List of archive names. First name is the real one, the rest are links.
18943 # The last name is the one that the linker finds with -lNAME.
18944 library_names_spec=$lt_library_names_spec
18946 # The coded name of the library, if different from the real name.
18947 soname_spec=$lt_soname_spec
18949 # Commands used to build and install an old-style archive.
18950 RANLIB=$lt_RANLIB
18951 old_archive_cmds=$lt_old_archive_cmds_RC
18952 old_postinstall_cmds=$lt_old_postinstall_cmds
18953 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18955 # Create an old-style archive from a shared archive.
18956 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18958 # Create a temporary old-style archive to link instead of a shared archive.
18959 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18961 # Commands used to build and install a shared archive.
18962 archive_cmds=$lt_archive_cmds_RC
18963 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18964 postinstall_cmds=$lt_postinstall_cmds
18965 postuninstall_cmds=$lt_postuninstall_cmds
18967 # Commands used to build a loadable module (assumed same as above if empty)
18968 module_cmds=$lt_module_cmds_RC
18969 module_expsym_cmds=$lt_module_expsym_cmds_RC
18971 # Commands to strip libraries.
18972 old_striplib=$lt_old_striplib
18973 striplib=$lt_striplib
18975 # Dependencies to place before the objects being linked to create a
18976 # shared library.
18977 predep_objects=$lt_predep_objects_RC
18979 # Dependencies to place after the objects being linked to create a
18980 # shared library.
18981 postdep_objects=$lt_postdep_objects_RC
18983 # Dependencies to place before the objects being linked to create a
18984 # shared library.
18985 predeps=$lt_predeps_RC
18987 # Dependencies to place after the objects being linked to create a
18988 # shared library.
18989 postdeps=$lt_postdeps_RC
18991 # The library search path used internally by the compiler when linking
18992 # a shared library.
18993 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18995 # Method to check whether dependent libraries are shared objects.
18996 deplibs_check_method=$lt_deplibs_check_method
18998 # Command to use when deplibs_check_method == file_magic.
18999 file_magic_cmd=$lt_file_magic_cmd
19001 # Flag that allows shared libraries with undefined symbols to be built.
19002 allow_undefined_flag=$lt_allow_undefined_flag_RC
19004 # Flag that forces no undefined symbols.
19005 no_undefined_flag=$lt_no_undefined_flag_RC
19007 # Commands used to finish a libtool library installation in a directory.
19008 finish_cmds=$lt_finish_cmds
19010 # Same as above, but a single script fragment to be evaled but not shown.
19011 finish_eval=$lt_finish_eval
19013 # Take the output of nm and produce a listing of raw symbols and C names.
19014 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19016 # Transform the output of nm in a proper C declaration
19017 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19019 # Transform the output of nm in a C name address pair
19020 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19022 # This is the shared library runtime path variable.
19023 runpath_var=$runpath_var
19025 # This is the shared library path variable.
19026 shlibpath_var=$shlibpath_var
19028 # Is shlibpath searched before the hard-coded library search path?
19029 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19031 # How to hardcode a shared library path into an executable.
19032 hardcode_action=$hardcode_action_RC
19034 # Whether we should hardcode library paths into libraries.
19035 hardcode_into_libs=$hardcode_into_libs
19037 # Flag to hardcode \$libdir into a binary during linking.
19038 # This must work even if \$libdir does not exist.
19039 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19041 # If ld is used when linking, flag to hardcode \$libdir into
19042 # a binary during linking. This must work even if \$libdir does
19043 # not exist.
19044 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19046 # Whether we need a single -rpath flag with a separated argument.
19047 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19049 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19050 # resulting binary.
19051 hardcode_direct=$hardcode_direct_RC
19053 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19054 # resulting binary.
19055 hardcode_minus_L=$hardcode_minus_L_RC
19057 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19058 # the resulting binary.
19059 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19061 # Set to yes if building a shared library automatically hardcodes DIR into the library
19062 # and all subsequent libraries and executables linked against it.
19063 hardcode_automatic=$hardcode_automatic_RC
19065 # Variables whose values should be saved in libtool wrapper scripts and
19066 # restored at relink time.
19067 variables_saved_for_relink="$variables_saved_for_relink"
19069 # Whether libtool must link a program against all its dependency libraries.
19070 link_all_deplibs=$link_all_deplibs_RC
19072 # Compile-time system search path for libraries
19073 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19075 # Run-time system search path for libraries
19076 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19078 # Fix the shell variable \$srcfile for the compiler.
19079 fix_srcfile_path="$fix_srcfile_path_RC"
19081 # Set to yes if exported symbols are required.
19082 always_export_symbols=$always_export_symbols_RC
19084 # The commands to list exported symbols.
19085 export_symbols_cmds=$lt_export_symbols_cmds_RC
19087 # The commands to extract the exported symbol list from a shared archive.
19088 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19090 # Symbols that should not be listed in the preloaded symbols.
19091 exclude_expsyms=$lt_exclude_expsyms_RC
19093 # Symbols that must always be exported.
19094 include_expsyms=$lt_include_expsyms_RC
19096 # ### END LIBTOOL TAG CONFIG: $tagname
19098 __EOF__
19101 else
19102 # If there is no Makefile yet, we rely on a make rule to execute
19103 # `config.status --recheck' to rerun these tests and create the
19104 # libtool script then.
19105 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19106 if test -f "$ltmain_in"; then
19107 test -f Makefile && make "$ltmain"
19112 ac_ext=c
19113 ac_cpp='$CPP $CPPFLAGS'
19114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19118 CC="$lt_save_CC"
19123 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19124 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19125 { (exit 1); exit 1; }; }
19127 esac
19129 # Append the new tag name to the list of available tags.
19130 if test -n "$tagname" ; then
19131 available_tags="$available_tags $tagname"
19134 done
19135 IFS="$lt_save_ifs"
19137 # Now substitute the updated list of available tags.
19138 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19139 mv "${ofile}T" "$ofile"
19140 chmod +x "$ofile"
19141 else
19142 rm -f "${ofile}T"
19143 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19144 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19145 { (exit 1); exit 1; }; }
19151 # This can be used to rebuild libtool when needed
19152 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19154 # Always use our own libtool.
19155 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19157 # Prevent multiple expansion
19178 ac_ext=c
19179 ac_cpp='$CPP $CPPFLAGS'
19180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19183 if test -n "$ac_tool_prefix"; then
19184 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19185 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19188 if test "${ac_cv_prog_CC+set}" = set; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19190 else
19191 if test -n "$CC"; then
19192 ac_cv_prog_CC="$CC" # Let the user override the test.
19193 else
19194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19195 for as_dir in $PATH
19197 IFS=$as_save_IFS
19198 test -z "$as_dir" && as_dir=.
19199 for ac_exec_ext in '' $ac_executable_extensions; do
19200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19201 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19203 break 2
19205 done
19206 done
19207 IFS=$as_save_IFS
19211 CC=$ac_cv_prog_CC
19212 if test -n "$CC"; then
19213 { echo "$as_me:$LINENO: result: $CC" >&5
19214 echo "${ECHO_T}$CC" >&6; }
19215 else
19216 { echo "$as_me:$LINENO: result: no" >&5
19217 echo "${ECHO_T}no" >&6; }
19222 if test -z "$ac_cv_prog_CC"; then
19223 ac_ct_CC=$CC
19224 # Extract the first word of "gcc", so it can be a program name with args.
19225 set dummy gcc; ac_word=$2
19226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19230 else
19231 if test -n "$ac_ct_CC"; then
19232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19233 else
19234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19235 for as_dir in $PATH
19237 IFS=$as_save_IFS
19238 test -z "$as_dir" && as_dir=.
19239 for ac_exec_ext in '' $ac_executable_extensions; do
19240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19241 ac_cv_prog_ac_ct_CC="gcc"
19242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19243 break 2
19245 done
19246 done
19247 IFS=$as_save_IFS
19251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19252 if test -n "$ac_ct_CC"; then
19253 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19254 echo "${ECHO_T}$ac_ct_CC" >&6; }
19255 else
19256 { echo "$as_me:$LINENO: result: no" >&5
19257 echo "${ECHO_T}no" >&6; }
19260 if test "x$ac_ct_CC" = x; then
19261 CC=""
19262 else
19263 case $cross_compiling:$ac_tool_warned in
19264 yes:)
19265 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19266 whose name does not start with the host triplet. If you think this
19267 configuration is useful to you, please write to autoconf@gnu.org." >&5
19268 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19269 whose name does not start with the host triplet. If you think this
19270 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19271 ac_tool_warned=yes ;;
19272 esac
19273 CC=$ac_ct_CC
19275 else
19276 CC="$ac_cv_prog_CC"
19279 if test -z "$CC"; then
19280 if test -n "$ac_tool_prefix"; then
19281 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19282 set dummy ${ac_tool_prefix}cc; ac_word=$2
19283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19285 if test "${ac_cv_prog_CC+set}" = set; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19287 else
19288 if test -n "$CC"; then
19289 ac_cv_prog_CC="$CC" # Let the user override the test.
19290 else
19291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19292 for as_dir in $PATH
19294 IFS=$as_save_IFS
19295 test -z "$as_dir" && as_dir=.
19296 for ac_exec_ext in '' $ac_executable_extensions; do
19297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19298 ac_cv_prog_CC="${ac_tool_prefix}cc"
19299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19300 break 2
19302 done
19303 done
19304 IFS=$as_save_IFS
19308 CC=$ac_cv_prog_CC
19309 if test -n "$CC"; then
19310 { echo "$as_me:$LINENO: result: $CC" >&5
19311 echo "${ECHO_T}$CC" >&6; }
19312 else
19313 { echo "$as_me:$LINENO: result: no" >&5
19314 echo "${ECHO_T}no" >&6; }
19320 if test -z "$CC"; then
19321 # Extract the first word of "cc", so it can be a program name with args.
19322 set dummy cc; ac_word=$2
19323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19325 if test "${ac_cv_prog_CC+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19327 else
19328 if test -n "$CC"; then
19329 ac_cv_prog_CC="$CC" # Let the user override the test.
19330 else
19331 ac_prog_rejected=no
19332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19333 for as_dir in $PATH
19335 IFS=$as_save_IFS
19336 test -z "$as_dir" && as_dir=.
19337 for ac_exec_ext in '' $ac_executable_extensions; do
19338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19339 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19340 ac_prog_rejected=yes
19341 continue
19343 ac_cv_prog_CC="cc"
19344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19345 break 2
19347 done
19348 done
19349 IFS=$as_save_IFS
19351 if test $ac_prog_rejected = yes; then
19352 # We found a bogon in the path, so make sure we never use it.
19353 set dummy $ac_cv_prog_CC
19354 shift
19355 if test $# != 0; then
19356 # We chose a different compiler from the bogus one.
19357 # However, it has the same basename, so the bogon will be chosen
19358 # first if we set CC to just the basename; use the full file name.
19359 shift
19360 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19365 CC=$ac_cv_prog_CC
19366 if test -n "$CC"; then
19367 { echo "$as_me:$LINENO: result: $CC" >&5
19368 echo "${ECHO_T}$CC" >&6; }
19369 else
19370 { echo "$as_me:$LINENO: result: no" >&5
19371 echo "${ECHO_T}no" >&6; }
19376 if test -z "$CC"; then
19377 if test -n "$ac_tool_prefix"; then
19378 for ac_prog in cl.exe
19380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19384 if test "${ac_cv_prog_CC+set}" = set; then
19385 echo $ECHO_N "(cached) $ECHO_C" >&6
19386 else
19387 if test -n "$CC"; then
19388 ac_cv_prog_CC="$CC" # Let the user override the test.
19389 else
19390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19391 for as_dir in $PATH
19393 IFS=$as_save_IFS
19394 test -z "$as_dir" && as_dir=.
19395 for ac_exec_ext in '' $ac_executable_extensions; do
19396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19397 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19399 break 2
19401 done
19402 done
19403 IFS=$as_save_IFS
19407 CC=$ac_cv_prog_CC
19408 if test -n "$CC"; then
19409 { echo "$as_me:$LINENO: result: $CC" >&5
19410 echo "${ECHO_T}$CC" >&6; }
19411 else
19412 { echo "$as_me:$LINENO: result: no" >&5
19413 echo "${ECHO_T}no" >&6; }
19417 test -n "$CC" && break
19418 done
19420 if test -z "$CC"; then
19421 ac_ct_CC=$CC
19422 for ac_prog in cl.exe
19424 # Extract the first word of "$ac_prog", so it can be a program name with args.
19425 set dummy $ac_prog; ac_word=$2
19426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19429 echo $ECHO_N "(cached) $ECHO_C" >&6
19430 else
19431 if test -n "$ac_ct_CC"; then
19432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19433 else
19434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19435 for as_dir in $PATH
19437 IFS=$as_save_IFS
19438 test -z "$as_dir" && as_dir=.
19439 for ac_exec_ext in '' $ac_executable_extensions; do
19440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19441 ac_cv_prog_ac_ct_CC="$ac_prog"
19442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19443 break 2
19445 done
19446 done
19447 IFS=$as_save_IFS
19451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19452 if test -n "$ac_ct_CC"; then
19453 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19454 echo "${ECHO_T}$ac_ct_CC" >&6; }
19455 else
19456 { echo "$as_me:$LINENO: result: no" >&5
19457 echo "${ECHO_T}no" >&6; }
19461 test -n "$ac_ct_CC" && break
19462 done
19464 if test "x$ac_ct_CC" = x; then
19465 CC=""
19466 else
19467 case $cross_compiling:$ac_tool_warned in
19468 yes:)
19469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19470 whose name does not start with the host triplet. If you think this
19471 configuration is useful to you, please write to autoconf@gnu.org." >&5
19472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19473 whose name does not start with the host triplet. If you think this
19474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19475 ac_tool_warned=yes ;;
19476 esac
19477 CC=$ac_ct_CC
19484 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19485 See \`config.log' for more details." >&5
19486 echo "$as_me: error: no acceptable C compiler found in \$PATH
19487 See \`config.log' for more details." >&2;}
19488 { (exit 1); exit 1; }; }
19490 # Provide some information about the compiler.
19491 echo "$as_me:$LINENO: checking for C compiler version" >&5
19492 ac_compiler=`set X $ac_compile; echo $2`
19493 { (ac_try="$ac_compiler --version >&5"
19494 case "(($ac_try" in
19495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_compiler --version >&5") 2>&5
19500 ac_status=$?
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }
19503 { (ac_try="$ac_compiler -v >&5"
19504 case "(($ac_try" in
19505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506 *) ac_try_echo=$ac_try;;
19507 esac
19508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19509 (eval "$ac_compiler -v >&5") 2>&5
19510 ac_status=$?
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }
19513 { (ac_try="$ac_compiler -V >&5"
19514 case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19517 esac
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_compiler -V >&5") 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }
19524 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19525 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19526 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19527 echo $ECHO_N "(cached) $ECHO_C" >&6
19528 else
19529 cat >conftest.$ac_ext <<_ACEOF
19530 /* confdefs.h. */
19531 _ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h. */
19537 main ()
19539 #ifndef __GNUC__
19540 choke me
19541 #endif
19544 return 0;
19546 _ACEOF
19547 rm -f conftest.$ac_objext
19548 if { (ac_try="$ac_compile"
19549 case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_compile") 2>conftest.er1
19555 ac_status=$?
19556 grep -v '^ *+' conftest.er1 >conftest.err
19557 rm -f conftest.er1
19558 cat conftest.err >&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } && {
19561 test -z "$ac_c_werror_flag" ||
19562 test ! -s conftest.err
19563 } && test -s conftest.$ac_objext; then
19564 ac_compiler_gnu=yes
19565 else
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 ac_compiler_gnu=no
19572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19573 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19576 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19577 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19578 GCC=`test $ac_compiler_gnu = yes && echo yes`
19579 ac_test_CFLAGS=${CFLAGS+set}
19580 ac_save_CFLAGS=$CFLAGS
19581 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19582 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19583 if test "${ac_cv_prog_cc_g+set}" = set; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19585 else
19586 ac_save_c_werror_flag=$ac_c_werror_flag
19587 ac_c_werror_flag=yes
19588 ac_cv_prog_cc_g=no
19589 CFLAGS="-g"
19590 cat >conftest.$ac_ext <<_ACEOF
19591 /* confdefs.h. */
19592 _ACEOF
19593 cat confdefs.h >>conftest.$ac_ext
19594 cat >>conftest.$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19598 main ()
19602 return 0;
19604 _ACEOF
19605 rm -f conftest.$ac_objext
19606 if { (ac_try="$ac_compile"
19607 case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19610 esac
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_compile") 2>conftest.er1
19613 ac_status=$?
19614 grep -v '^ *+' conftest.er1 >conftest.err
19615 rm -f conftest.er1
19616 cat conftest.err >&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } && {
19619 test -z "$ac_c_werror_flag" ||
19620 test ! -s conftest.err
19621 } && test -s conftest.$ac_objext; then
19622 ac_cv_prog_cc_g=yes
19623 else
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19627 CFLAGS=""
19628 cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h. */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19636 main ()
19640 return 0;
19642 _ACEOF
19643 rm -f conftest.$ac_objext
19644 if { (ac_try="$ac_compile"
19645 case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19648 esac
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_compile") 2>conftest.er1
19651 ac_status=$?
19652 grep -v '^ *+' conftest.er1 >conftest.err
19653 rm -f conftest.er1
19654 cat conftest.err >&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } && {
19657 test -z "$ac_c_werror_flag" ||
19658 test ! -s conftest.err
19659 } && test -s conftest.$ac_objext; then
19661 else
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 ac_c_werror_flag=$ac_save_c_werror_flag
19666 CFLAGS="-g"
19667 cat >conftest.$ac_ext <<_ACEOF
19668 /* confdefs.h. */
19669 _ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19675 main ()
19679 return 0;
19681 _ACEOF
19682 rm -f conftest.$ac_objext
19683 if { (ac_try="$ac_compile"
19684 case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_compile") 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest.$ac_objext; then
19699 ac_cv_prog_cc_g=yes
19700 else
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19714 ac_c_werror_flag=$ac_save_c_werror_flag
19716 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19717 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19718 if test "$ac_test_CFLAGS" = set; then
19719 CFLAGS=$ac_save_CFLAGS
19720 elif test $ac_cv_prog_cc_g = yes; then
19721 if test "$GCC" = yes; then
19722 CFLAGS="-g -O2"
19723 else
19724 CFLAGS="-g"
19726 else
19727 if test "$GCC" = yes; then
19728 CFLAGS="-O2"
19729 else
19730 CFLAGS=
19733 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19734 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19735 if test "${ac_cv_prog_cc_c89+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19737 else
19738 ac_cv_prog_cc_c89=no
19739 ac_save_CC=$CC
19740 cat >conftest.$ac_ext <<_ACEOF
19741 /* confdefs.h. */
19742 _ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h. */
19746 #include <stdarg.h>
19747 #include <stdio.h>
19748 #include <sys/types.h>
19749 #include <sys/stat.h>
19750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19751 struct buf { int x; };
19752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19753 static char *e (p, i)
19754 char **p;
19755 int i;
19757 return p[i];
19759 static char *f (char * (*g) (char **, int), char **p, ...)
19761 char *s;
19762 va_list v;
19763 va_start (v,p);
19764 s = g (p, va_arg (v,int));
19765 va_end (v);
19766 return s;
19769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19770 function prototypes and stuff, but not '\xHH' hex character constants.
19771 These don't provoke an error unfortunately, instead are silently treated
19772 as 'x'. The following induces an error, until -std is added to get
19773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19774 array size at least. It's necessary to write '\x00'==0 to get something
19775 that's true only with -std. */
19776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19778 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19779 inside strings and character constants. */
19780 #define FOO(x) 'x'
19781 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19783 int test (int i, double x);
19784 struct s1 {int (*f) (int a);};
19785 struct s2 {int (*f) (double a);};
19786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19787 int argc;
19788 char **argv;
19790 main ()
19792 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19794 return 0;
19796 _ACEOF
19797 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19798 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19800 CC="$ac_save_CC $ac_arg"
19801 rm -f conftest.$ac_objext
19802 if { (ac_try="$ac_compile"
19803 case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19806 esac
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808 (eval "$ac_compile") 2>conftest.er1
19809 ac_status=$?
19810 grep -v '^ *+' conftest.er1 >conftest.err
19811 rm -f conftest.er1
19812 cat conftest.err >&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } && {
19815 test -z "$ac_c_werror_flag" ||
19816 test ! -s conftest.err
19817 } && test -s conftest.$ac_objext; then
19818 ac_cv_prog_cc_c89=$ac_arg
19819 else
19820 echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19826 rm -f core conftest.err conftest.$ac_objext
19827 test "x$ac_cv_prog_cc_c89" != "xno" && break
19828 done
19829 rm -f conftest.$ac_ext
19830 CC=$ac_save_CC
19833 # AC_CACHE_VAL
19834 case "x$ac_cv_prog_cc_c89" in
19836 { echo "$as_me:$LINENO: result: none needed" >&5
19837 echo "${ECHO_T}none needed" >&6; } ;;
19838 xno)
19839 { echo "$as_me:$LINENO: result: unsupported" >&5
19840 echo "${ECHO_T}unsupported" >&6; } ;;
19842 CC="$CC $ac_cv_prog_cc_c89"
19843 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19844 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19845 esac
19848 ac_ext=c
19849 ac_cpp='$CPP $CPPFLAGS'
19850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19854 ac_ext=cpp
19855 ac_cpp='$CXXCPP $CPPFLAGS'
19856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19859 if test -z "$CXX"; then
19860 if test -n "$CCC"; then
19861 CXX=$CCC
19862 else
19863 if test -n "$ac_tool_prefix"; then
19864 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
19866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19870 if test "${ac_cv_prog_CXX+set}" = set; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19872 else
19873 if test -n "$CXX"; then
19874 ac_cv_prog_CXX="$CXX" # Let the user override the test.
19875 else
19876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19877 for as_dir in $PATH
19879 IFS=$as_save_IFS
19880 test -z "$as_dir" && as_dir=.
19881 for ac_exec_ext in '' $ac_executable_extensions; do
19882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19883 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19885 break 2
19887 done
19888 done
19889 IFS=$as_save_IFS
19893 CXX=$ac_cv_prog_CXX
19894 if test -n "$CXX"; then
19895 { echo "$as_me:$LINENO: result: $CXX" >&5
19896 echo "${ECHO_T}$CXX" >&6; }
19897 else
19898 { echo "$as_me:$LINENO: result: no" >&5
19899 echo "${ECHO_T}no" >&6; }
19903 test -n "$CXX" && break
19904 done
19906 if test -z "$CXX"; then
19907 ac_ct_CXX=$CXX
19908 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
19910 # Extract the first word of "$ac_prog", so it can be a program name with args.
19911 set dummy $ac_prog; ac_word=$2
19912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19914 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19916 else
19917 if test -n "$ac_ct_CXX"; then
19918 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19919 else
19920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19921 for as_dir in $PATH
19923 IFS=$as_save_IFS
19924 test -z "$as_dir" && as_dir=.
19925 for ac_exec_ext in '' $ac_executable_extensions; do
19926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19927 ac_cv_prog_ac_ct_CXX="$ac_prog"
19928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19929 break 2
19931 done
19932 done
19933 IFS=$as_save_IFS
19937 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19938 if test -n "$ac_ct_CXX"; then
19939 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19940 echo "${ECHO_T}$ac_ct_CXX" >&6; }
19941 else
19942 { echo "$as_me:$LINENO: result: no" >&5
19943 echo "${ECHO_T}no" >&6; }
19947 test -n "$ac_ct_CXX" && break
19948 done
19950 if test "x$ac_ct_CXX" = x; then
19951 CXX="g++"
19952 else
19953 case $cross_compiling:$ac_tool_warned in
19954 yes:)
19955 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19956 whose name does not start with the host triplet. If you think this
19957 configuration is useful to you, please write to autoconf@gnu.org." >&5
19958 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19959 whose name does not start with the host triplet. If you think this
19960 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19961 ac_tool_warned=yes ;;
19962 esac
19963 CXX=$ac_ct_CXX
19969 # Provide some information about the compiler.
19970 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
19971 ac_compiler=`set X $ac_compile; echo $2`
19972 { (ac_try="$ac_compiler --version >&5"
19973 case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19976 esac
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_compiler --version >&5") 2>&5
19979 ac_status=$?
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }
19982 { (ac_try="$ac_compiler -v >&5"
19983 case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19986 esac
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988 (eval "$ac_compiler -v >&5") 2>&5
19989 ac_status=$?
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }
19992 { (ac_try="$ac_compiler -V >&5"
19993 case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19996 esac
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998 (eval "$ac_compiler -V >&5") 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }
20003 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20004 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
20005 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20007 else
20008 cat >conftest.$ac_ext <<_ACEOF
20009 /* confdefs.h. */
20010 _ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20016 main ()
20018 #ifndef __GNUC__
20019 choke me
20020 #endif
20023 return 0;
20025 _ACEOF
20026 rm -f conftest.$ac_objext
20027 if { (ac_try="$ac_compile"
20028 case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20031 esac
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_compile") 2>conftest.er1
20034 ac_status=$?
20035 grep -v '^ *+' conftest.er1 >conftest.err
20036 rm -f conftest.er1
20037 cat conftest.err >&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } && {
20040 test -z "$ac_cxx_werror_flag" ||
20041 test ! -s conftest.err
20042 } && test -s conftest.$ac_objext; then
20043 ac_compiler_gnu=yes
20044 else
20045 echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20048 ac_compiler_gnu=no
20051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20052 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20055 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20056 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
20057 GXX=`test $ac_compiler_gnu = yes && echo yes`
20058 ac_test_CXXFLAGS=${CXXFLAGS+set}
20059 ac_save_CXXFLAGS=$CXXFLAGS
20060 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20061 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
20062 if test "${ac_cv_prog_cxx_g+set}" = set; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 else
20065 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
20066 ac_cxx_werror_flag=yes
20067 ac_cv_prog_cxx_g=no
20068 CXXFLAGS="-g"
20069 cat >conftest.$ac_ext <<_ACEOF
20070 /* confdefs.h. */
20071 _ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h. */
20077 main ()
20081 return 0;
20083 _ACEOF
20084 rm -f conftest.$ac_objext
20085 if { (ac_try="$ac_compile"
20086 case "(($ac_try" in
20087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20088 *) ac_try_echo=$ac_try;;
20089 esac
20090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20091 (eval "$ac_compile") 2>conftest.er1
20092 ac_status=$?
20093 grep -v '^ *+' conftest.er1 >conftest.err
20094 rm -f conftest.er1
20095 cat conftest.err >&5
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } && {
20098 test -z "$ac_cxx_werror_flag" ||
20099 test ! -s conftest.err
20100 } && test -s conftest.$ac_objext; then
20101 ac_cv_prog_cxx_g=yes
20102 else
20103 echo "$as_me: failed program was:" >&5
20104 sed 's/^/| /' conftest.$ac_ext >&5
20106 CXXFLAGS=""
20107 cat >conftest.$ac_ext <<_ACEOF
20108 /* confdefs.h. */
20109 _ACEOF
20110 cat confdefs.h >>conftest.$ac_ext
20111 cat >>conftest.$ac_ext <<_ACEOF
20112 /* end confdefs.h. */
20115 main ()
20119 return 0;
20121 _ACEOF
20122 rm -f conftest.$ac_objext
20123 if { (ac_try="$ac_compile"
20124 case "(($ac_try" in
20125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126 *) ac_try_echo=$ac_try;;
20127 esac
20128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20129 (eval "$ac_compile") 2>conftest.er1
20130 ac_status=$?
20131 grep -v '^ *+' conftest.er1 >conftest.err
20132 rm -f conftest.er1
20133 cat conftest.err >&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } && {
20136 test -z "$ac_cxx_werror_flag" ||
20137 test ! -s conftest.err
20138 } && test -s conftest.$ac_objext; then
20140 else
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20144 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20145 CXXFLAGS="-g"
20146 cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h. */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20154 main ()
20158 return 0;
20160 _ACEOF
20161 rm -f conftest.$ac_objext
20162 if { (ac_try="$ac_compile"
20163 case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20166 esac
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168 (eval "$ac_compile") 2>conftest.er1
20169 ac_status=$?
20170 grep -v '^ *+' conftest.er1 >conftest.err
20171 rm -f conftest.er1
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } && {
20175 test -z "$ac_cxx_werror_flag" ||
20176 test ! -s conftest.err
20177 } && test -s conftest.$ac_objext; then
20178 ac_cv_prog_cxx_g=yes
20179 else
20180 echo "$as_me: failed program was:" >&5
20181 sed 's/^/| /' conftest.$ac_ext >&5
20186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20193 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20195 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20196 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
20197 if test "$ac_test_CXXFLAGS" = set; then
20198 CXXFLAGS=$ac_save_CXXFLAGS
20199 elif test $ac_cv_prog_cxx_g = yes; then
20200 if test "$GXX" = yes; then
20201 CXXFLAGS="-g -O2"
20202 else
20203 CXXFLAGS="-g"
20205 else
20206 if test "$GXX" = yes; then
20207 CXXFLAGS="-O2"
20208 else
20209 CXXFLAGS=
20212 ac_ext=c
20213 ac_cpp='$CPP $CPPFLAGS'
20214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20218 # Find a good install program. We prefer a C program (faster),
20219 # so one script is as good as another. But avoid the broken or
20220 # incompatible versions:
20221 # SysV /etc/install, /usr/sbin/install
20222 # SunOS /usr/etc/install
20223 # IRIX /sbin/install
20224 # AIX /bin/install
20225 # AmigaOS /C/install, which installs bootblocks on floppy discs
20226 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20227 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20228 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20229 # OS/2's system install, which has a completely different semantic
20230 # ./install, which can be erroneously created by make from ./install.sh.
20231 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20232 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20233 if test -z "$INSTALL"; then
20234 if test "${ac_cv_path_install+set}" = set; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20236 else
20237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20238 for as_dir in $PATH
20240 IFS=$as_save_IFS
20241 test -z "$as_dir" && as_dir=.
20242 # Account for people who put trailing slashes in PATH elements.
20243 case $as_dir/ in
20244 ./ | .// | /cC/* | \
20245 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20246 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20247 /usr/ucb/* ) ;;
20249 # OSF1 and SCO ODT 3.0 have their own names for install.
20250 # Don't use installbsd from OSF since it installs stuff as root
20251 # by default.
20252 for ac_prog in ginstall scoinst install; do
20253 for ac_exec_ext in '' $ac_executable_extensions; do
20254 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20255 if test $ac_prog = install &&
20256 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20257 # AIX install. It has an incompatible calling convention.
20259 elif test $ac_prog = install &&
20260 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20261 # program-specific install script used by HP pwplus--don't use.
20263 else
20264 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20265 break 3
20268 done
20269 done
20271 esac
20272 done
20273 IFS=$as_save_IFS
20277 if test "${ac_cv_path_install+set}" = set; then
20278 INSTALL=$ac_cv_path_install
20279 else
20280 # As a last resort, use the slow shell script. Don't cache a
20281 # value for INSTALL within a source directory, because that will
20282 # break other packages using the cache if that directory is
20283 # removed, or if the value is a relative name.
20284 INSTALL=$ac_install_sh
20287 { echo "$as_me:$LINENO: result: $INSTALL" >&5
20288 echo "${ECHO_T}$INSTALL" >&6; }
20290 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20291 # It thinks the first close brace ends the variable substitution.
20292 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20294 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20296 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20298 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20299 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20300 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20301 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20302 echo $ECHO_N "(cached) $ECHO_C" >&6
20303 else
20304 cat >conftest.make <<\_ACEOF
20305 SHELL = /bin/sh
20306 all:
20307 @echo '@@@%%%=$(MAKE)=@@@%%%'
20308 _ACEOF
20309 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20310 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20311 *@@@%%%=?*=@@@%%%*)
20312 eval ac_cv_prog_make_${ac_make}_set=yes;;
20314 eval ac_cv_prog_make_${ac_make}_set=no;;
20315 esac
20316 rm -f conftest.make
20318 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20319 { echo "$as_me:$LINENO: result: yes" >&5
20320 echo "${ECHO_T}yes" >&6; }
20321 SET_MAKE=
20322 else
20323 { echo "$as_me:$LINENO: result: no" >&5
20324 echo "${ECHO_T}no" >&6; }
20325 SET_MAKE="MAKE=${MAKE-make}"
20328 if test -z "$host_alias"; then
20329 hostaliaswindres=
20330 else
20331 hostaliaswindres="$host_alias-windres"
20333 for ac_prog in windres $hostaliaswindres $host_os-windres
20335 # Extract the first word of "$ac_prog", so it can be a program name with args.
20336 set dummy $ac_prog; ac_word=$2
20337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20339 if test "${ac_cv_prog_WINDRES+set}" = set; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
20341 else
20342 if test -n "$WINDRES"; then
20343 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20344 else
20345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20346 for as_dir in $PATH
20348 IFS=$as_save_IFS
20349 test -z "$as_dir" && as_dir=.
20350 for ac_exec_ext in '' $ac_executable_extensions; do
20351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20352 ac_cv_prog_WINDRES="$ac_prog"
20353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20354 break 2
20356 done
20357 done
20358 IFS=$as_save_IFS
20362 WINDRES=$ac_cv_prog_WINDRES
20363 if test -n "$WINDRES"; then
20364 { echo "$as_me:$LINENO: result: $WINDRES" >&5
20365 echo "${ECHO_T}$WINDRES" >&6; }
20366 else
20367 { echo "$as_me:$LINENO: result: no" >&5
20368 echo "${ECHO_T}no" >&6; }
20372 test -n "$WINDRES" && break
20373 done
20376 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20377 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20378 if test "${ac_cv_c_const+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 else
20381 cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h. */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20389 main ()
20391 /* FIXME: Include the comments suggested by Paul. */
20392 #ifndef __cplusplus
20393 /* Ultrix mips cc rejects this. */
20394 typedef int charset[2];
20395 const charset cs;
20396 /* SunOS 4.1.1 cc rejects this. */
20397 char const *const *pcpcc;
20398 char **ppc;
20399 /* NEC SVR4.0.2 mips cc rejects this. */
20400 struct point {int x, y;};
20401 static struct point const zero = {0,0};
20402 /* AIX XL C 1.02.0.0 rejects this.
20403 It does not let you subtract one const X* pointer from another in
20404 an arm of an if-expression whose if-part is not a constant
20405 expression */
20406 const char *g = "string";
20407 pcpcc = &g + (g ? g-g : 0);
20408 /* HPUX 7.0 cc rejects these. */
20409 ++pcpcc;
20410 ppc = (char**) pcpcc;
20411 pcpcc = (char const *const *) ppc;
20412 { /* SCO 3.2v4 cc rejects this. */
20413 char *t;
20414 char const *s = 0 ? (char *) 0 : (char const *) 0;
20416 *t++ = 0;
20417 if (s) return 0;
20419 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20420 int x[] = {25, 17};
20421 const int *foo = &x[0];
20422 ++foo;
20424 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20425 typedef const int *iptr;
20426 iptr p = 0;
20427 ++p;
20429 { /* AIX XL C 1.02.0.0 rejects this saying
20430 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20431 struct s { int j; const int *ap[3]; };
20432 struct s *b; b->j = 5;
20434 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20435 const int foo = 10;
20436 if (!foo) return 0;
20438 return !cs[0] && !zero.x;
20439 #endif
20442 return 0;
20444 _ACEOF
20445 rm -f conftest.$ac_objext
20446 if { (ac_try="$ac_compile"
20447 case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_compile") 2>conftest.er1
20453 ac_status=$?
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } && {
20459 test -z "$ac_c_werror_flag" ||
20460 test ! -s conftest.err
20461 } && test -s conftest.$ac_objext; then
20462 ac_cv_c_const=yes
20463 else
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 ac_cv_c_const=no
20470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20472 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20473 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20474 if test $ac_cv_c_const = no; then
20476 cat >>confdefs.h <<\_ACEOF
20477 #define const
20478 _ACEOF
20482 { echo "$as_me:$LINENO: checking for inline" >&5
20483 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20484 if test "${ac_cv_c_inline+set}" = set; then
20485 echo $ECHO_N "(cached) $ECHO_C" >&6
20486 else
20487 ac_cv_c_inline=no
20488 for ac_kw in inline __inline__ __inline; do
20489 cat >conftest.$ac_ext <<_ACEOF
20490 /* confdefs.h. */
20491 _ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h. */
20495 #ifndef __cplusplus
20496 typedef int foo_t;
20497 static $ac_kw foo_t static_foo () {return 0; }
20498 $ac_kw foo_t foo () {return 0; }
20499 #endif
20501 _ACEOF
20502 rm -f conftest.$ac_objext
20503 if { (ac_try="$ac_compile"
20504 case "(($ac_try" in
20505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506 *) ac_try_echo=$ac_try;;
20507 esac
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509 (eval "$ac_compile") 2>conftest.er1
20510 ac_status=$?
20511 grep -v '^ *+' conftest.er1 >conftest.err
20512 rm -f conftest.er1
20513 cat conftest.err >&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); } && {
20516 test -z "$ac_c_werror_flag" ||
20517 test ! -s conftest.err
20518 } && test -s conftest.$ac_objext; then
20519 ac_cv_c_inline=$ac_kw
20520 else
20521 echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20528 test "$ac_cv_c_inline" != no && break
20529 done
20532 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20533 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20536 case $ac_cv_c_inline in
20537 inline | yes) ;;
20539 case $ac_cv_c_inline in
20540 no) ac_val=;;
20541 *) ac_val=$ac_cv_c_inline;;
20542 esac
20543 cat >>confdefs.h <<_ACEOF
20544 #ifndef __cplusplus
20545 #define inline $ac_val
20546 #endif
20547 _ACEOF
20549 esac
20551 { echo "$as_me:$LINENO: checking for working volatile" >&5
20552 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20553 if test "${ac_cv_c_volatile+set}" = set; then
20554 echo $ECHO_N "(cached) $ECHO_C" >&6
20555 else
20556 cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h. */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20564 main ()
20567 volatile int x;
20568 int * volatile y = (int *) 0;
20569 return !x && !y;
20571 return 0;
20573 _ACEOF
20574 rm -f conftest.$ac_objext
20575 if { (ac_try="$ac_compile"
20576 case "(($ac_try" in
20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578 *) ac_try_echo=$ac_try;;
20579 esac
20580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581 (eval "$ac_compile") 2>conftest.er1
20582 ac_status=$?
20583 grep -v '^ *+' conftest.er1 >conftest.err
20584 rm -f conftest.er1
20585 cat conftest.err >&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } && {
20588 test -z "$ac_c_werror_flag" ||
20589 test ! -s conftest.err
20590 } && test -s conftest.$ac_objext; then
20591 ac_cv_c_volatile=yes
20592 else
20593 echo "$as_me: failed program was:" >&5
20594 sed 's/^/| /' conftest.$ac_ext >&5
20596 ac_cv_c_volatile=no
20599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20601 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
20602 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
20603 if test $ac_cv_c_volatile = no; then
20605 cat >>confdefs.h <<\_ACEOF
20606 #define volatile
20607 _ACEOF
20612 # Check whether --enable-libc was given.
20613 if test "${enable_libc+set}" = set; then
20614 enableval=$enable_libc;
20615 else
20616 enable_libc=yes
20619 if test x$enable_libc = xyes; then
20620 cat >>confdefs.h <<\_ACEOF
20621 #define HAVE_LIBC 1
20622 _ACEOF
20625 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20626 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20627 if test "${ac_cv_header_stdc+set}" = set; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20629 else
20630 cat >conftest.$ac_ext <<_ACEOF
20631 /* confdefs.h. */
20632 _ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20636 #include <stdlib.h>
20637 #include <stdarg.h>
20638 #include <string.h>
20639 #include <float.h>
20642 main ()
20646 return 0;
20648 _ACEOF
20649 rm -f conftest.$ac_objext
20650 if { (ac_try="$ac_compile"
20651 case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20654 esac
20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656 (eval "$ac_compile") 2>conftest.er1
20657 ac_status=$?
20658 grep -v '^ *+' conftest.er1 >conftest.err
20659 rm -f conftest.er1
20660 cat conftest.err >&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } && {
20663 test -z "$ac_c_werror_flag" ||
20664 test ! -s conftest.err
20665 } && test -s conftest.$ac_objext; then
20666 ac_cv_header_stdc=yes
20667 else
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20671 ac_cv_header_stdc=no
20674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20676 if test $ac_cv_header_stdc = yes; then
20677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20678 cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h. */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20684 #include <string.h>
20686 _ACEOF
20687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20688 $EGREP "memchr" >/dev/null 2>&1; then
20690 else
20691 ac_cv_header_stdc=no
20693 rm -f conftest*
20697 if test $ac_cv_header_stdc = yes; then
20698 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20699 cat >conftest.$ac_ext <<_ACEOF
20700 /* confdefs.h. */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20705 #include <stdlib.h>
20707 _ACEOF
20708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20709 $EGREP "free" >/dev/null 2>&1; then
20711 else
20712 ac_cv_header_stdc=no
20714 rm -f conftest*
20718 if test $ac_cv_header_stdc = yes; then
20719 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20720 if test "$cross_compiling" = yes; then
20722 else
20723 cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h. */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20729 #include <ctype.h>
20730 #include <stdlib.h>
20731 #if ((' ' & 0x0FF) == 0x020)
20732 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20733 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20734 #else
20735 # define ISLOWER(c) \
20736 (('a' <= (c) && (c) <= 'i') \
20737 || ('j' <= (c) && (c) <= 'r') \
20738 || ('s' <= (c) && (c) <= 'z'))
20739 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20740 #endif
20742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20744 main ()
20746 int i;
20747 for (i = 0; i < 256; i++)
20748 if (XOR (islower (i), ISLOWER (i))
20749 || toupper (i) != TOUPPER (i))
20750 return 2;
20751 return 0;
20753 _ACEOF
20754 rm -f conftest$ac_exeext
20755 if { (ac_try="$ac_link"
20756 case "(($ac_try" in
20757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20758 *) ac_try_echo=$ac_try;;
20759 esac
20760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761 (eval "$ac_link") 2>&5
20762 ac_status=$?
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20765 { (case "(($ac_try" in
20766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767 *) ac_try_echo=$ac_try;;
20768 esac
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770 (eval "$ac_try") 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; }; then
20775 else
20776 echo "$as_me: program exited with status $ac_status" >&5
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20780 ( exit $ac_status )
20781 ac_cv_header_stdc=no
20783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20789 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20790 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20791 if test $ac_cv_header_stdc = yes; then
20793 cat >>confdefs.h <<\_ACEOF
20794 #define STDC_HEADERS 1
20795 _ACEOF
20814 for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
20816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20821 echo $ECHO_N "(cached) $ECHO_C" >&6
20823 ac_res=`eval echo '${'$as_ac_Header'}'`
20824 { echo "$as_me:$LINENO: result: $ac_res" >&5
20825 echo "${ECHO_T}$ac_res" >&6; }
20826 else
20827 # Is the header compilable?
20828 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20830 cat >conftest.$ac_ext <<_ACEOF
20831 /* confdefs.h. */
20832 _ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20836 $ac_includes_default
20837 #include <$ac_header>
20838 _ACEOF
20839 rm -f conftest.$ac_objext
20840 if { (ac_try="$ac_compile"
20841 case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20844 esac
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_compile") 2>conftest.er1
20847 ac_status=$?
20848 grep -v '^ *+' conftest.er1 >conftest.err
20849 rm -f conftest.er1
20850 cat conftest.err >&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } && {
20853 test -z "$ac_c_werror_flag" ||
20854 test ! -s conftest.err
20855 } && test -s conftest.$ac_objext; then
20856 ac_header_compiler=yes
20857 else
20858 echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20861 ac_header_compiler=no
20864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20866 echo "${ECHO_T}$ac_header_compiler" >&6; }
20868 # Is the header present?
20869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20871 cat >conftest.$ac_ext <<_ACEOF
20872 /* confdefs.h. */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877 #include <$ac_header>
20878 _ACEOF
20879 if { (ac_try="$ac_cpp conftest.$ac_ext"
20880 case "(($ac_try" in
20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20883 esac
20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20886 ac_status=$?
20887 grep -v '^ *+' conftest.er1 >conftest.err
20888 rm -f conftest.er1
20889 cat conftest.err >&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } >/dev/null && {
20892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20893 test ! -s conftest.err
20894 }; then
20895 ac_header_preproc=yes
20896 else
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 ac_header_preproc=no
20903 rm -f conftest.err conftest.$ac_ext
20904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20905 echo "${ECHO_T}$ac_header_preproc" >&6; }
20907 # So? What about this header?
20908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20909 yes:no: )
20910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20914 ac_header_preproc=yes
20916 no:yes:* )
20917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20931 esac
20932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20935 echo $ECHO_N "(cached) $ECHO_C" >&6
20936 else
20937 eval "$as_ac_Header=\$ac_header_preproc"
20939 ac_res=`eval echo '${'$as_ac_Header'}'`
20940 { echo "$as_me:$LINENO: result: $ac_res" >&5
20941 echo "${ECHO_T}$ac_res" >&6; }
20944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20945 cat >>confdefs.h <<_ACEOF
20946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20947 _ACEOF
20951 done
20954 { echo "$as_me:$LINENO: checking for size_t" >&5
20955 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20956 if test "${ac_cv_type_size_t+set}" = set; then
20957 echo $ECHO_N "(cached) $ECHO_C" >&6
20958 else
20959 cat >conftest.$ac_ext <<_ACEOF
20960 /* confdefs.h. */
20961 _ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20965 $ac_includes_default
20966 typedef size_t ac__type_new_;
20968 main ()
20970 if ((ac__type_new_ *) 0)
20971 return 0;
20972 if (sizeof (ac__type_new_))
20973 return 0;
20975 return 0;
20977 _ACEOF
20978 rm -f conftest.$ac_objext
20979 if { (ac_try="$ac_compile"
20980 case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20983 esac
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_compile") 2>conftest.er1
20986 ac_status=$?
20987 grep -v '^ *+' conftest.er1 >conftest.err
20988 rm -f conftest.er1
20989 cat conftest.err >&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } && {
20992 test -z "$ac_c_werror_flag" ||
20993 test ! -s conftest.err
20994 } && test -s conftest.$ac_objext; then
20995 ac_cv_type_size_t=yes
20996 else
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
21000 ac_cv_type_size_t=no
21003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21005 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21006 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21007 if test $ac_cv_type_size_t = yes; then
21009 else
21011 cat >>confdefs.h <<_ACEOF
21012 #define size_t unsigned int
21013 _ACEOF
21017 if test x$ac_cv_header_inttypes_h = xyes -o x$ac_cv_header_stdint_h = xyes; then
21018 { echo "$as_me:$LINENO: checking for int64_t" >&5
21019 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
21020 if test "${ac_cv_type_int64_t+set}" = set; then
21021 echo $ECHO_N "(cached) $ECHO_C" >&6
21022 else
21023 cat >conftest.$ac_ext <<_ACEOF
21024 /* confdefs.h. */
21025 _ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21029 $ac_includes_default
21030 typedef int64_t ac__type_new_;
21032 main ()
21034 if ((ac__type_new_ *) 0)
21035 return 0;
21036 if (sizeof (ac__type_new_))
21037 return 0;
21039 return 0;
21041 _ACEOF
21042 rm -f conftest.$ac_objext
21043 if { (ac_try="$ac_compile"
21044 case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21047 esac
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049 (eval "$ac_compile") 2>conftest.er1
21050 ac_status=$?
21051 grep -v '^ *+' conftest.er1 >conftest.err
21052 rm -f conftest.er1
21053 cat conftest.err >&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); } && {
21056 test -z "$ac_c_werror_flag" ||
21057 test ! -s conftest.err
21058 } && test -s conftest.$ac_objext; then
21059 ac_cv_type_int64_t=yes
21060 else
21061 echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21064 ac_cv_type_int64_t=no
21067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21069 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
21070 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
21072 if test x$ac_cv_type_int64_t = xyes; then
21073 cat >>confdefs.h <<\_ACEOF
21074 #define SDL_HAS_64BIT_TYPE 1
21075 _ACEOF
21078 have_inttypes=yes
21081 case "$host" in
21082 *-*-cygwin* | *-*-mingw32*)
21085 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21086 # for constant arguments. Useless!
21087 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
21088 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
21089 if test "${ac_cv_working_alloca_h+set}" = set; then
21090 echo $ECHO_N "(cached) $ECHO_C" >&6
21091 else
21092 cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h. */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 #include <alloca.h>
21100 main ()
21102 char *p = (char *) alloca (2 * sizeof (int));
21103 if (p) return 0;
21105 return 0;
21107 _ACEOF
21108 rm -f conftest.$ac_objext conftest$ac_exeext
21109 if { (ac_try="$ac_link"
21110 case "(($ac_try" in
21111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112 *) ac_try_echo=$ac_try;;
21113 esac
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115 (eval "$ac_link") 2>conftest.er1
21116 ac_status=$?
21117 grep -v '^ *+' conftest.er1 >conftest.err
21118 rm -f conftest.er1
21119 cat conftest.err >&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } && {
21122 test -z "$ac_c_werror_flag" ||
21123 test ! -s conftest.err
21124 } && test -s conftest$ac_exeext &&
21125 $as_test_x conftest$ac_exeext; then
21126 ac_cv_working_alloca_h=yes
21127 else
21128 echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21131 ac_cv_working_alloca_h=no
21134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21135 conftest$ac_exeext conftest.$ac_ext
21137 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21138 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
21139 if test $ac_cv_working_alloca_h = yes; then
21141 cat >>confdefs.h <<\_ACEOF
21142 #define HAVE_ALLOCA_H 1
21143 _ACEOF
21147 { echo "$as_me:$LINENO: checking for alloca" >&5
21148 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
21149 if test "${ac_cv_func_alloca_works+set}" = set; then
21150 echo $ECHO_N "(cached) $ECHO_C" >&6
21151 else
21152 cat >conftest.$ac_ext <<_ACEOF
21153 /* confdefs.h. */
21154 _ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21158 #ifdef __GNUC__
21159 # define alloca __builtin_alloca
21160 #else
21161 # ifdef _MSC_VER
21162 # include <malloc.h>
21163 # define alloca _alloca
21164 # else
21165 # ifdef HAVE_ALLOCA_H
21166 # include <alloca.h>
21167 # else
21168 # ifdef _AIX
21169 #pragma alloca
21170 # else
21171 # ifndef alloca /* predefined by HP cc +Olibcalls */
21172 char *alloca ();
21173 # endif
21174 # endif
21175 # endif
21176 # endif
21177 #endif
21180 main ()
21182 char *p = (char *) alloca (1);
21183 if (p) return 0;
21185 return 0;
21187 _ACEOF
21188 rm -f conftest.$ac_objext conftest$ac_exeext
21189 if { (ac_try="$ac_link"
21190 case "(($ac_try" in
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21193 esac
21194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195 (eval "$ac_link") 2>conftest.er1
21196 ac_status=$?
21197 grep -v '^ *+' conftest.er1 >conftest.err
21198 rm -f conftest.er1
21199 cat conftest.err >&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } && {
21202 test -z "$ac_c_werror_flag" ||
21203 test ! -s conftest.err
21204 } && test -s conftest$ac_exeext &&
21205 $as_test_x conftest$ac_exeext; then
21206 ac_cv_func_alloca_works=yes
21207 else
21208 echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21211 ac_cv_func_alloca_works=no
21214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21215 conftest$ac_exeext conftest.$ac_ext
21217 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21218 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
21220 if test $ac_cv_func_alloca_works = yes; then
21222 cat >>confdefs.h <<\_ACEOF
21223 #define HAVE_ALLOCA 1
21224 _ACEOF
21226 else
21227 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21228 # that cause trouble. Some versions do not even contain alloca or
21229 # contain a buggy version. If you still want to use their alloca,
21230 # use ar to extract alloca.o from them instead of compiling alloca.c.
21232 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21234 cat >>confdefs.h <<\_ACEOF
21235 #define C_ALLOCA 1
21236 _ACEOF
21239 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21240 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
21241 if test "${ac_cv_os_cray+set}" = set; then
21242 echo $ECHO_N "(cached) $ECHO_C" >&6
21243 else
21244 cat >conftest.$ac_ext <<_ACEOF
21245 /* confdefs.h. */
21246 _ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h. */
21250 #if defined CRAY && ! defined CRAY2
21251 webecray
21252 #else
21253 wenotbecray
21254 #endif
21256 _ACEOF
21257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21258 $EGREP "webecray" >/dev/null 2>&1; then
21259 ac_cv_os_cray=yes
21260 else
21261 ac_cv_os_cray=no
21263 rm -f conftest*
21266 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21267 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
21268 if test $ac_cv_os_cray = yes; then
21269 for ac_func in _getb67 GETB67 getb67; do
21270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21275 else
21276 cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h. */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21284 #define $ac_func innocuous_$ac_func
21286 /* System header to define __stub macros and hopefully few prototypes,
21287 which can conflict with char $ac_func (); below.
21288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21289 <limits.h> exists even on freestanding compilers. */
21291 #ifdef __STDC__
21292 # include <limits.h>
21293 #else
21294 # include <assert.h>
21295 #endif
21297 #undef $ac_func
21299 /* Override any GCC internal prototype to avoid an error.
21300 Use char because int might match the return type of a GCC
21301 builtin and then its argument prototype would still apply. */
21302 #ifdef __cplusplus
21303 extern "C"
21304 #endif
21305 char $ac_func ();
21306 /* The GNU C library defines this for functions which it implements
21307 to always fail with ENOSYS. Some functions are actually named
21308 something starting with __ and the normal name is an alias. */
21309 #if defined __stub_$ac_func || defined __stub___$ac_func
21310 choke me
21311 #endif
21314 main ()
21316 return $ac_func ();
21318 return 0;
21320 _ACEOF
21321 rm -f conftest.$ac_objext conftest$ac_exeext
21322 if { (ac_try="$ac_link"
21323 case "(($ac_try" in
21324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21325 *) ac_try_echo=$ac_try;;
21326 esac
21327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21328 (eval "$ac_link") 2>conftest.er1
21329 ac_status=$?
21330 grep -v '^ *+' conftest.er1 >conftest.err
21331 rm -f conftest.er1
21332 cat conftest.err >&5
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } && {
21335 test -z "$ac_c_werror_flag" ||
21336 test ! -s conftest.err
21337 } && test -s conftest$ac_exeext &&
21338 $as_test_x conftest$ac_exeext; then
21339 eval "$as_ac_var=yes"
21340 else
21341 echo "$as_me: failed program was:" >&5
21342 sed 's/^/| /' conftest.$ac_ext >&5
21344 eval "$as_ac_var=no"
21347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21348 conftest$ac_exeext conftest.$ac_ext
21350 ac_res=`eval echo '${'$as_ac_var'}'`
21351 { echo "$as_me:$LINENO: result: $ac_res" >&5
21352 echo "${ECHO_T}$ac_res" >&6; }
21353 if test `eval echo '${'$as_ac_var'}'` = yes; then
21355 cat >>confdefs.h <<_ACEOF
21356 #define CRAY_STACKSEG_END $ac_func
21357 _ACEOF
21359 break
21362 done
21365 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21366 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
21367 if test "${ac_cv_c_stack_direction+set}" = set; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21370 if test "$cross_compiling" = yes; then
21371 ac_cv_c_stack_direction=0
21372 else
21373 cat >conftest.$ac_ext <<_ACEOF
21374 /* confdefs.h. */
21375 _ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 $ac_includes_default
21381 find_stack_direction ()
21383 static char *addr = 0;
21384 auto char dummy;
21385 if (addr == 0)
21387 addr = &dummy;
21388 return find_stack_direction ();
21390 else
21391 return (&dummy > addr) ? 1 : -1;
21395 main ()
21397 return find_stack_direction () < 0;
21399 _ACEOF
21400 rm -f conftest$ac_exeext
21401 if { (ac_try="$ac_link"
21402 case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21405 esac
21406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407 (eval "$ac_link") 2>&5
21408 ac_status=$?
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21411 { (case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21414 esac
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416 (eval "$ac_try") 2>&5
21417 ac_status=$?
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); }; }; then
21420 ac_cv_c_stack_direction=1
21421 else
21422 echo "$as_me: program exited with status $ac_status" >&5
21423 echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21426 ( exit $ac_status )
21427 ac_cv_c_stack_direction=-1
21429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21434 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21435 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
21437 cat >>confdefs.h <<_ACEOF
21438 #define STACK_DIRECTION $ac_cv_c_stack_direction
21439 _ACEOF
21445 esac
21447 { echo "$as_me:$LINENO: checking for working memcmp" >&5
21448 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
21449 if test "${ac_cv_func_memcmp_working+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21451 else
21452 if test "$cross_compiling" = yes; then
21453 ac_cv_func_memcmp_working=no
21454 else
21455 cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h. */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 $ac_includes_default
21463 main ()
21466 /* Some versions of memcmp are not 8-bit clean. */
21467 char c0 = '\100', c1 = '\200', c2 = '\201';
21468 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21469 return 1;
21471 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21472 or more and with at least one buffer not starting on a 4-byte boundary.
21473 William Lewis provided this test program. */
21475 char foo[21];
21476 char bar[21];
21477 int i;
21478 for (i = 0; i < 4; i++)
21480 char *a = foo + i;
21481 char *b = bar + i;
21482 strcpy (a, "--------01111111");
21483 strcpy (b, "--------10000000");
21484 if (memcmp (a, b, 16) >= 0)
21485 return 1;
21487 return 0;
21491 return 0;
21493 _ACEOF
21494 rm -f conftest$ac_exeext
21495 if { (ac_try="$ac_link"
21496 case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21499 esac
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501 (eval "$ac_link") 2>&5
21502 ac_status=$?
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21505 { (case "(($ac_try" in
21506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21507 *) ac_try_echo=$ac_try;;
21508 esac
21509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21510 (eval "$ac_try") 2>&5
21511 ac_status=$?
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); }; }; then
21514 ac_cv_func_memcmp_working=yes
21515 else
21516 echo "$as_me: program exited with status $ac_status" >&5
21517 echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 ( exit $ac_status )
21521 ac_cv_func_memcmp_working=no
21523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21528 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21529 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
21530 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21531 *" memcmp.$ac_objext "* ) ;;
21532 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21534 esac
21537 if test x$ac_cv_func_memcmp_working = xyes; then
21538 cat >>confdefs.h <<\_ACEOF
21539 #define HAVE_MEMCMP 1
21540 _ACEOF
21543 { echo "$as_me:$LINENO: checking for working strtod" >&5
21544 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
21545 if test "${ac_cv_func_strtod+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21547 else
21548 if test "$cross_compiling" = yes; then
21549 ac_cv_func_strtod=no
21550 else
21551 cat >conftest.$ac_ext <<_ACEOF
21552 /* confdefs.h. */
21553 _ACEOF
21554 cat confdefs.h >>conftest.$ac_ext
21555 cat >>conftest.$ac_ext <<_ACEOF
21556 /* end confdefs.h. */
21558 $ac_includes_default
21559 #ifndef strtod
21560 double strtod ();
21561 #endif
21563 main()
21566 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
21567 char *string = " +69";
21568 char *term;
21569 double value;
21570 value = strtod (string, &term);
21571 if (value != 69 || term != (string + 4))
21572 return 1;
21576 /* Under Solaris 2.4, strtod returns the wrong value for the
21577 terminating character under some conditions. */
21578 char *string = "NaN";
21579 char *term;
21580 strtod (string, &term);
21581 if (term != string && *(term - 1) == 0)
21582 return 1;
21584 return 0;
21587 _ACEOF
21588 rm -f conftest$ac_exeext
21589 if { (ac_try="$ac_link"
21590 case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21593 esac
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_link") 2>&5
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21599 { (case "(($ac_try" in
21600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21601 *) ac_try_echo=$ac_try;;
21602 esac
21603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21604 (eval "$ac_try") 2>&5
21605 ac_status=$?
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); }; }; then
21608 ac_cv_func_strtod=yes
21609 else
21610 echo "$as_me: program exited with status $ac_status" >&5
21611 echo "$as_me: failed program was:" >&5
21612 sed 's/^/| /' conftest.$ac_ext >&5
21614 ( exit $ac_status )
21615 ac_cv_func_strtod=no
21617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21622 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
21623 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
21624 if test $ac_cv_func_strtod = no; then
21625 case " $LIBOBJS " in
21626 *" strtod.$ac_objext "* ) ;;
21627 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21629 esac
21631 { echo "$as_me:$LINENO: checking for pow" >&5
21632 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
21633 if test "${ac_cv_func_pow+set}" = set; then
21634 echo $ECHO_N "(cached) $ECHO_C" >&6
21635 else
21636 cat >conftest.$ac_ext <<_ACEOF
21637 /* confdefs.h. */
21638 _ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h. */
21642 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
21643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21644 #define pow innocuous_pow
21646 /* System header to define __stub macros and hopefully few prototypes,
21647 which can conflict with char pow (); below.
21648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21649 <limits.h> exists even on freestanding compilers. */
21651 #ifdef __STDC__
21652 # include <limits.h>
21653 #else
21654 # include <assert.h>
21655 #endif
21657 #undef pow
21659 /* Override any GCC internal prototype to avoid an error.
21660 Use char because int might match the return type of a GCC
21661 builtin and then its argument prototype would still apply. */
21662 #ifdef __cplusplus
21663 extern "C"
21664 #endif
21665 char pow ();
21666 /* The GNU C library defines this for functions which it implements
21667 to always fail with ENOSYS. Some functions are actually named
21668 something starting with __ and the normal name is an alias. */
21669 #if defined __stub_pow || defined __stub___pow
21670 choke me
21671 #endif
21674 main ()
21676 return pow ();
21678 return 0;
21680 _ACEOF
21681 rm -f conftest.$ac_objext conftest$ac_exeext
21682 if { (ac_try="$ac_link"
21683 case "(($ac_try" in
21684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21685 *) ac_try_echo=$ac_try;;
21686 esac
21687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21688 (eval "$ac_link") 2>conftest.er1
21689 ac_status=$?
21690 grep -v '^ *+' conftest.er1 >conftest.err
21691 rm -f conftest.er1
21692 cat conftest.err >&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); } && {
21695 test -z "$ac_c_werror_flag" ||
21696 test ! -s conftest.err
21697 } && test -s conftest$ac_exeext &&
21698 $as_test_x conftest$ac_exeext; then
21699 ac_cv_func_pow=yes
21700 else
21701 echo "$as_me: failed program was:" >&5
21702 sed 's/^/| /' conftest.$ac_ext >&5
21704 ac_cv_func_pow=no
21707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21708 conftest$ac_exeext conftest.$ac_ext
21710 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
21711 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
21713 if test $ac_cv_func_pow = no; then
21714 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
21715 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
21716 if test "${ac_cv_lib_m_pow+set}" = set; then
21717 echo $ECHO_N "(cached) $ECHO_C" >&6
21718 else
21719 ac_check_lib_save_LIBS=$LIBS
21720 LIBS="-lm $LIBS"
21721 cat >conftest.$ac_ext <<_ACEOF
21722 /* confdefs.h. */
21723 _ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h. */
21728 /* Override any GCC internal prototype to avoid an error.
21729 Use char because int might match the return type of a GCC
21730 builtin and then its argument prototype would still apply. */
21731 #ifdef __cplusplus
21732 extern "C"
21733 #endif
21734 char pow ();
21736 main ()
21738 return pow ();
21740 return 0;
21742 _ACEOF
21743 rm -f conftest.$ac_objext conftest$ac_exeext
21744 if { (ac_try="$ac_link"
21745 case "(($ac_try" in
21746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21747 *) ac_try_echo=$ac_try;;
21748 esac
21749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21750 (eval "$ac_link") 2>conftest.er1
21751 ac_status=$?
21752 grep -v '^ *+' conftest.er1 >conftest.err
21753 rm -f conftest.er1
21754 cat conftest.err >&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); } && {
21757 test -z "$ac_c_werror_flag" ||
21758 test ! -s conftest.err
21759 } && test -s conftest$ac_exeext &&
21760 $as_test_x conftest$ac_exeext; then
21761 ac_cv_lib_m_pow=yes
21762 else
21763 echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21766 ac_cv_lib_m_pow=no
21769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21770 conftest$ac_exeext conftest.$ac_ext
21771 LIBS=$ac_check_lib_save_LIBS
21773 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
21774 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
21775 if test $ac_cv_lib_m_pow = yes; then
21776 POW_LIB=-lm
21777 else
21778 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
21779 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21786 if test x$ac_cv_func_strtod = xyes; then
21787 cat >>confdefs.h <<\_ACEOF
21788 #define HAVE_STRTOD 1
21789 _ACEOF
21792 { echo "$as_me:$LINENO: checking for mprotect" >&5
21793 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
21794 if test "${ac_cv_func_mprotect+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21796 else
21797 cat >conftest.$ac_ext <<_ACEOF
21798 /* confdefs.h. */
21799 _ACEOF
21800 cat confdefs.h >>conftest.$ac_ext
21801 cat >>conftest.$ac_ext <<_ACEOF
21802 /* end confdefs.h. */
21803 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
21804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21805 #define mprotect innocuous_mprotect
21807 /* System header to define __stub macros and hopefully few prototypes,
21808 which can conflict with char mprotect (); below.
21809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21810 <limits.h> exists even on freestanding compilers. */
21812 #ifdef __STDC__
21813 # include <limits.h>
21814 #else
21815 # include <assert.h>
21816 #endif
21818 #undef mprotect
21820 /* Override any GCC internal prototype to avoid an error.
21821 Use char because int might match the return type of a GCC
21822 builtin and then its argument prototype would still apply. */
21823 #ifdef __cplusplus
21824 extern "C"
21825 #endif
21826 char mprotect ();
21827 /* The GNU C library defines this for functions which it implements
21828 to always fail with ENOSYS. Some functions are actually named
21829 something starting with __ and the normal name is an alias. */
21830 #if defined __stub_mprotect || defined __stub___mprotect
21831 choke me
21832 #endif
21835 main ()
21837 return mprotect ();
21839 return 0;
21841 _ACEOF
21842 rm -f conftest.$ac_objext conftest$ac_exeext
21843 if { (ac_try="$ac_link"
21844 case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21847 esac
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_link") 2>conftest.er1
21850 ac_status=$?
21851 grep -v '^ *+' conftest.er1 >conftest.err
21852 rm -f conftest.er1
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } && {
21856 test -z "$ac_c_werror_flag" ||
21857 test ! -s conftest.err
21858 } && test -s conftest$ac_exeext &&
21859 $as_test_x conftest$ac_exeext; then
21860 ac_cv_func_mprotect=yes
21861 else
21862 echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21865 ac_cv_func_mprotect=no
21868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21869 conftest$ac_exeext conftest.$ac_ext
21871 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21872 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
21873 if test $ac_cv_func_mprotect = yes; then
21874 cat >conftest.$ac_ext <<_ACEOF
21875 /* confdefs.h. */
21876 _ACEOF
21877 cat confdefs.h >>conftest.$ac_ext
21878 cat >>conftest.$ac_ext <<_ACEOF
21879 /* end confdefs.h. */
21881 #include <sys/types.h>
21882 #include <sys/mman.h>
21885 main ()
21890 return 0;
21892 _ACEOF
21893 rm -f conftest.$ac_objext
21894 if { (ac_try="$ac_compile"
21895 case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21898 esac
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_compile") 2>conftest.er1
21901 ac_status=$?
21902 grep -v '^ *+' conftest.er1 >conftest.err
21903 rm -f conftest.er1
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } && {
21907 test -z "$ac_c_werror_flag" ||
21908 test ! -s conftest.err
21909 } && test -s conftest.$ac_objext; then
21911 cat >>confdefs.h <<\_ACEOF
21912 #define HAVE_MPROTECT 1
21913 _ACEOF
21916 else
21917 echo "$as_me: failed program was:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21974 for ac_func in malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf iconv sigaction setjmp nanosleep
21976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21980 echo $ECHO_N "(cached) $ECHO_C" >&6
21981 else
21982 cat >conftest.$ac_ext <<_ACEOF
21983 /* confdefs.h. */
21984 _ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h. */
21988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21990 #define $ac_func innocuous_$ac_func
21992 /* System header to define __stub macros and hopefully few prototypes,
21993 which can conflict with char $ac_func (); below.
21994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21995 <limits.h> exists even on freestanding compilers. */
21997 #ifdef __STDC__
21998 # include <limits.h>
21999 #else
22000 # include <assert.h>
22001 #endif
22003 #undef $ac_func
22005 /* Override any GCC internal prototype to avoid an error.
22006 Use char because int might match the return type of a GCC
22007 builtin and then its argument prototype would still apply. */
22008 #ifdef __cplusplus
22009 extern "C"
22010 #endif
22011 char $ac_func ();
22012 /* The GNU C library defines this for functions which it implements
22013 to always fail with ENOSYS. Some functions are actually named
22014 something starting with __ and the normal name is an alias. */
22015 #if defined __stub_$ac_func || defined __stub___$ac_func
22016 choke me
22017 #endif
22020 main ()
22022 return $ac_func ();
22024 return 0;
22026 _ACEOF
22027 rm -f conftest.$ac_objext conftest$ac_exeext
22028 if { (ac_try="$ac_link"
22029 case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22032 esac
22033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034 (eval "$ac_link") 2>conftest.er1
22035 ac_status=$?
22036 grep -v '^ *+' conftest.er1 >conftest.err
22037 rm -f conftest.er1
22038 cat conftest.err >&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } && {
22041 test -z "$ac_c_werror_flag" ||
22042 test ! -s conftest.err
22043 } && test -s conftest$ac_exeext &&
22044 $as_test_x conftest$ac_exeext; then
22045 eval "$as_ac_var=yes"
22046 else
22047 echo "$as_me: failed program was:" >&5
22048 sed 's/^/| /' conftest.$ac_ext >&5
22050 eval "$as_ac_var=no"
22053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22054 conftest$ac_exeext conftest.$ac_ext
22056 ac_res=`eval echo '${'$as_ac_var'}'`
22057 { echo "$as_me:$LINENO: result: $ac_res" >&5
22058 echo "${ECHO_T}$ac_res" >&6; }
22059 if test `eval echo '${'$as_ac_var'}'` = yes; then
22060 cat >>confdefs.h <<_ACEOF
22061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22062 _ACEOF
22065 done
22068 { echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
22069 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6; }
22070 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
22071 echo $ECHO_N "(cached) $ECHO_C" >&6
22072 else
22073 ac_check_lib_save_LIBS=$LIBS
22074 LIBS="-liconv $LIBS"
22075 cat >conftest.$ac_ext <<_ACEOF
22076 /* confdefs.h. */
22077 _ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h. */
22082 /* Override any GCC internal prototype to avoid an error.
22083 Use char because int might match the return type of a GCC
22084 builtin and then its argument prototype would still apply. */
22085 #ifdef __cplusplus
22086 extern "C"
22087 #endif
22088 char libiconv_open ();
22090 main ()
22092 return libiconv_open ();
22094 return 0;
22096 _ACEOF
22097 rm -f conftest.$ac_objext conftest$ac_exeext
22098 if { (ac_try="$ac_link"
22099 case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22102 esac
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_link") 2>conftest.er1
22105 ac_status=$?
22106 grep -v '^ *+' conftest.er1 >conftest.err
22107 rm -f conftest.er1
22108 cat conftest.err >&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } && {
22111 test -z "$ac_c_werror_flag" ||
22112 test ! -s conftest.err
22113 } && test -s conftest$ac_exeext &&
22114 $as_test_x conftest$ac_exeext; then
22115 ac_cv_lib_iconv_libiconv_open=yes
22116 else
22117 echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22120 ac_cv_lib_iconv_libiconv_open=no
22123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22124 conftest$ac_exeext conftest.$ac_ext
22125 LIBS=$ac_check_lib_save_LIBS
22127 { echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
22128 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6; }
22129 if test $ac_cv_lib_iconv_libiconv_open = yes; then
22130 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
22133 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
22134 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
22135 if test "${ac_cv_lib_m_pow+set}" = set; then
22136 echo $ECHO_N "(cached) $ECHO_C" >&6
22137 else
22138 ac_check_lib_save_LIBS=$LIBS
22139 LIBS="-lm $LIBS"
22140 cat >conftest.$ac_ext <<_ACEOF
22141 /* confdefs.h. */
22142 _ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h. */
22147 /* Override any GCC internal prototype to avoid an error.
22148 Use char because int might match the return type of a GCC
22149 builtin and then its argument prototype would still apply. */
22150 #ifdef __cplusplus
22151 extern "C"
22152 #endif
22153 char pow ();
22155 main ()
22157 return pow ();
22159 return 0;
22161 _ACEOF
22162 rm -f conftest.$ac_objext conftest$ac_exeext
22163 if { (ac_try="$ac_link"
22164 case "(($ac_try" in
22165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166 *) ac_try_echo=$ac_try;;
22167 esac
22168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22169 (eval "$ac_link") 2>conftest.er1
22170 ac_status=$?
22171 grep -v '^ *+' conftest.er1 >conftest.err
22172 rm -f conftest.er1
22173 cat conftest.err >&5
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } && {
22176 test -z "$ac_c_werror_flag" ||
22177 test ! -s conftest.err
22178 } && test -s conftest$ac_exeext &&
22179 $as_test_x conftest$ac_exeext; then
22180 ac_cv_lib_m_pow=yes
22181 else
22182 echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22185 ac_cv_lib_m_pow=no
22188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22189 conftest$ac_exeext conftest.$ac_ext
22190 LIBS=$ac_check_lib_save_LIBS
22192 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
22193 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
22194 if test $ac_cv_lib_m_pow = yes; then
22195 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
22200 if test x$have_inttypes != xyes; then
22201 { echo "$as_me:$LINENO: checking for char" >&5
22202 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
22203 if test "${ac_cv_type_char+set}" = set; then
22204 echo $ECHO_N "(cached) $ECHO_C" >&6
22205 else
22206 cat >conftest.$ac_ext <<_ACEOF
22207 /* confdefs.h. */
22208 _ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h. */
22212 $ac_includes_default
22213 typedef char ac__type_new_;
22215 main ()
22217 if ((ac__type_new_ *) 0)
22218 return 0;
22219 if (sizeof (ac__type_new_))
22220 return 0;
22222 return 0;
22224 _ACEOF
22225 rm -f conftest.$ac_objext
22226 if { (ac_try="$ac_compile"
22227 case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22230 esac
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_compile") 2>conftest.er1
22233 ac_status=$?
22234 grep -v '^ *+' conftest.er1 >conftest.err
22235 rm -f conftest.er1
22236 cat conftest.err >&5
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest.$ac_objext; then
22242 ac_cv_type_char=yes
22243 else
22244 echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22247 ac_cv_type_char=no
22250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22252 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22253 echo "${ECHO_T}$ac_cv_type_char" >&6; }
22255 # The cast to long int works around a bug in the HP C Compiler
22256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22258 # This bug is HP SR number 8606223364.
22259 { echo "$as_me:$LINENO: checking size of char" >&5
22260 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22261 if test "${ac_cv_sizeof_char+set}" = set; then
22262 echo $ECHO_N "(cached) $ECHO_C" >&6
22263 else
22264 if test "$cross_compiling" = yes; then
22265 # Depending upon the size, compute the lo and hi bounds.
22266 cat >conftest.$ac_ext <<_ACEOF
22267 /* confdefs.h. */
22268 _ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22272 $ac_includes_default
22273 typedef char ac__type_sizeof_;
22275 main ()
22277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22278 test_array [0] = 0
22281 return 0;
22283 _ACEOF
22284 rm -f conftest.$ac_objext
22285 if { (ac_try="$ac_compile"
22286 case "(($ac_try" in
22287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288 *) ac_try_echo=$ac_try;;
22289 esac
22290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291 (eval "$ac_compile") 2>conftest.er1
22292 ac_status=$?
22293 grep -v '^ *+' conftest.er1 >conftest.err
22294 rm -f conftest.er1
22295 cat conftest.err >&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); } && {
22298 test -z "$ac_c_werror_flag" ||
22299 test ! -s conftest.err
22300 } && test -s conftest.$ac_objext; then
22301 ac_lo=0 ac_mid=0
22302 while :; do
22303 cat >conftest.$ac_ext <<_ACEOF
22304 /* confdefs.h. */
22305 _ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 $ac_includes_default
22310 typedef char ac__type_sizeof_;
22312 main ()
22314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22315 test_array [0] = 0
22318 return 0;
22320 _ACEOF
22321 rm -f conftest.$ac_objext
22322 if { (ac_try="$ac_compile"
22323 case "(($ac_try" in
22324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325 *) ac_try_echo=$ac_try;;
22326 esac
22327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22328 (eval "$ac_compile") 2>conftest.er1
22329 ac_status=$?
22330 grep -v '^ *+' conftest.er1 >conftest.err
22331 rm -f conftest.er1
22332 cat conftest.err >&5
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } && {
22335 test -z "$ac_c_werror_flag" ||
22336 test ! -s conftest.err
22337 } && test -s conftest.$ac_objext; then
22338 ac_hi=$ac_mid; break
22339 else
22340 echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22343 ac_lo=`expr $ac_mid + 1`
22344 if test $ac_lo -le $ac_mid; then
22345 ac_lo= ac_hi=
22346 break
22348 ac_mid=`expr 2 '*' $ac_mid + 1`
22351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22352 done
22353 else
22354 echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22357 cat >conftest.$ac_ext <<_ACEOF
22358 /* confdefs.h. */
22359 _ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h. */
22363 $ac_includes_default
22364 typedef char ac__type_sizeof_;
22366 main ()
22368 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22369 test_array [0] = 0
22372 return 0;
22374 _ACEOF
22375 rm -f conftest.$ac_objext
22376 if { (ac_try="$ac_compile"
22377 case "(($ac_try" in
22378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22379 *) ac_try_echo=$ac_try;;
22380 esac
22381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22382 (eval "$ac_compile") 2>conftest.er1
22383 ac_status=$?
22384 grep -v '^ *+' conftest.er1 >conftest.err
22385 rm -f conftest.er1
22386 cat conftest.err >&5
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } && {
22389 test -z "$ac_c_werror_flag" ||
22390 test ! -s conftest.err
22391 } && test -s conftest.$ac_objext; then
22392 ac_hi=-1 ac_mid=-1
22393 while :; do
22394 cat >conftest.$ac_ext <<_ACEOF
22395 /* confdefs.h. */
22396 _ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22400 $ac_includes_default
22401 typedef char ac__type_sizeof_;
22403 main ()
22405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22406 test_array [0] = 0
22409 return 0;
22411 _ACEOF
22412 rm -f conftest.$ac_objext
22413 if { (ac_try="$ac_compile"
22414 case "(($ac_try" in
22415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22416 *) ac_try_echo=$ac_try;;
22417 esac
22418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22419 (eval "$ac_compile") 2>conftest.er1
22420 ac_status=$?
22421 grep -v '^ *+' conftest.er1 >conftest.err
22422 rm -f conftest.er1
22423 cat conftest.err >&5
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } && {
22426 test -z "$ac_c_werror_flag" ||
22427 test ! -s conftest.err
22428 } && test -s conftest.$ac_objext; then
22429 ac_lo=$ac_mid; break
22430 else
22431 echo "$as_me: failed program was:" >&5
22432 sed 's/^/| /' conftest.$ac_ext >&5
22434 ac_hi=`expr '(' $ac_mid ')' - 1`
22435 if test $ac_mid -le $ac_hi; then
22436 ac_lo= ac_hi=
22437 break
22439 ac_mid=`expr 2 '*' $ac_mid`
22442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443 done
22444 else
22445 echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22448 ac_lo= ac_hi=
22451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22455 # Binary search between lo and hi bounds.
22456 while test "x$ac_lo" != "x$ac_hi"; do
22457 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22458 cat >conftest.$ac_ext <<_ACEOF
22459 /* confdefs.h. */
22460 _ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22464 $ac_includes_default
22465 typedef char ac__type_sizeof_;
22467 main ()
22469 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22470 test_array [0] = 0
22473 return 0;
22475 _ACEOF
22476 rm -f conftest.$ac_objext
22477 if { (ac_try="$ac_compile"
22478 case "(($ac_try" in
22479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480 *) ac_try_echo=$ac_try;;
22481 esac
22482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22483 (eval "$ac_compile") 2>conftest.er1
22484 ac_status=$?
22485 grep -v '^ *+' conftest.er1 >conftest.err
22486 rm -f conftest.er1
22487 cat conftest.err >&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } && {
22490 test -z "$ac_c_werror_flag" ||
22491 test ! -s conftest.err
22492 } && test -s conftest.$ac_objext; then
22493 ac_hi=$ac_mid
22494 else
22495 echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22498 ac_lo=`expr '(' $ac_mid ')' + 1`
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 done
22503 case $ac_lo in
22504 ?*) ac_cv_sizeof_char=$ac_lo;;
22505 '') if test "$ac_cv_type_char" = yes; then
22506 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
22507 See \`config.log' for more details." >&5
22508 echo "$as_me: error: cannot compute sizeof (char)
22509 See \`config.log' for more details." >&2;}
22510 { (exit 77); exit 77; }; }
22511 else
22512 ac_cv_sizeof_char=0
22513 fi ;;
22514 esac
22515 else
22516 cat >conftest.$ac_ext <<_ACEOF
22517 /* confdefs.h. */
22518 _ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h. */
22522 $ac_includes_default
22523 typedef char ac__type_sizeof_;
22524 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22525 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22526 #include <stdio.h>
22527 #include <stdlib.h>
22529 main ()
22532 FILE *f = fopen ("conftest.val", "w");
22533 if (! f)
22534 return 1;
22535 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22537 long int i = longval ();
22538 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22539 return 1;
22540 fprintf (f, "%ld\n", i);
22542 else
22544 unsigned long int i = ulongval ();
22545 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22546 return 1;
22547 fprintf (f, "%lu\n", i);
22549 return ferror (f) || fclose (f) != 0;
22552 return 0;
22554 _ACEOF
22555 rm -f conftest$ac_exeext
22556 if { (ac_try="$ac_link"
22557 case "(($ac_try" in
22558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22559 *) ac_try_echo=$ac_try;;
22560 esac
22561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22562 (eval "$ac_link") 2>&5
22563 ac_status=$?
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22566 { (case "(($ac_try" in
22567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568 *) ac_try_echo=$ac_try;;
22569 esac
22570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571 (eval "$ac_try") 2>&5
22572 ac_status=$?
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); }; }; then
22575 ac_cv_sizeof_char=`cat conftest.val`
22576 else
22577 echo "$as_me: program exited with status $ac_status" >&5
22578 echo "$as_me: failed program was:" >&5
22579 sed 's/^/| /' conftest.$ac_ext >&5
22581 ( exit $ac_status )
22582 if test "$ac_cv_type_char" = yes; then
22583 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
22584 See \`config.log' for more details." >&5
22585 echo "$as_me: error: cannot compute sizeof (char)
22586 See \`config.log' for more details." >&2;}
22587 { (exit 77); exit 77; }; }
22588 else
22589 ac_cv_sizeof_char=0
22592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22594 rm -f conftest.val
22596 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
22597 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
22601 cat >>confdefs.h <<_ACEOF
22602 #define SIZEOF_CHAR $ac_cv_sizeof_char
22603 _ACEOF
22606 { echo "$as_me:$LINENO: checking for short" >&5
22607 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
22608 if test "${ac_cv_type_short+set}" = set; then
22609 echo $ECHO_N "(cached) $ECHO_C" >&6
22610 else
22611 cat >conftest.$ac_ext <<_ACEOF
22612 /* confdefs.h. */
22613 _ACEOF
22614 cat confdefs.h >>conftest.$ac_ext
22615 cat >>conftest.$ac_ext <<_ACEOF
22616 /* end confdefs.h. */
22617 $ac_includes_default
22618 typedef short ac__type_new_;
22620 main ()
22622 if ((ac__type_new_ *) 0)
22623 return 0;
22624 if (sizeof (ac__type_new_))
22625 return 0;
22627 return 0;
22629 _ACEOF
22630 rm -f conftest.$ac_objext
22631 if { (ac_try="$ac_compile"
22632 case "(($ac_try" in
22633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22634 *) ac_try_echo=$ac_try;;
22635 esac
22636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22637 (eval "$ac_compile") 2>conftest.er1
22638 ac_status=$?
22639 grep -v '^ *+' conftest.er1 >conftest.err
22640 rm -f conftest.er1
22641 cat conftest.err >&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); } && {
22644 test -z "$ac_c_werror_flag" ||
22645 test ! -s conftest.err
22646 } && test -s conftest.$ac_objext; then
22647 ac_cv_type_short=yes
22648 else
22649 echo "$as_me: failed program was:" >&5
22650 sed 's/^/| /' conftest.$ac_ext >&5
22652 ac_cv_type_short=no
22655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22657 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22658 echo "${ECHO_T}$ac_cv_type_short" >&6; }
22660 # The cast to long int works around a bug in the HP C Compiler
22661 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22662 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22663 # This bug is HP SR number 8606223364.
22664 { echo "$as_me:$LINENO: checking size of short" >&5
22665 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
22666 if test "${ac_cv_sizeof_short+set}" = set; then
22667 echo $ECHO_N "(cached) $ECHO_C" >&6
22668 else
22669 if test "$cross_compiling" = yes; then
22670 # Depending upon the size, compute the lo and hi bounds.
22671 cat >conftest.$ac_ext <<_ACEOF
22672 /* confdefs.h. */
22673 _ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 $ac_includes_default
22678 typedef short ac__type_sizeof_;
22680 main ()
22682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22683 test_array [0] = 0
22686 return 0;
22688 _ACEOF
22689 rm -f conftest.$ac_objext
22690 if { (ac_try="$ac_compile"
22691 case "(($ac_try" in
22692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693 *) ac_try_echo=$ac_try;;
22694 esac
22695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22696 (eval "$ac_compile") 2>conftest.er1
22697 ac_status=$?
22698 grep -v '^ *+' conftest.er1 >conftest.err
22699 rm -f conftest.er1
22700 cat conftest.err >&5
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); } && {
22703 test -z "$ac_c_werror_flag" ||
22704 test ! -s conftest.err
22705 } && test -s conftest.$ac_objext; then
22706 ac_lo=0 ac_mid=0
22707 while :; do
22708 cat >conftest.$ac_ext <<_ACEOF
22709 /* confdefs.h. */
22710 _ACEOF
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h. */
22714 $ac_includes_default
22715 typedef short ac__type_sizeof_;
22717 main ()
22719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22720 test_array [0] = 0
22723 return 0;
22725 _ACEOF
22726 rm -f conftest.$ac_objext
22727 if { (ac_try="$ac_compile"
22728 case "(($ac_try" in
22729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22730 *) ac_try_echo=$ac_try;;
22731 esac
22732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22733 (eval "$ac_compile") 2>conftest.er1
22734 ac_status=$?
22735 grep -v '^ *+' conftest.er1 >conftest.err
22736 rm -f conftest.er1
22737 cat conftest.err >&5
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); } && {
22740 test -z "$ac_c_werror_flag" ||
22741 test ! -s conftest.err
22742 } && test -s conftest.$ac_objext; then
22743 ac_hi=$ac_mid; break
22744 else
22745 echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22748 ac_lo=`expr $ac_mid + 1`
22749 if test $ac_lo -le $ac_mid; then
22750 ac_lo= ac_hi=
22751 break
22753 ac_mid=`expr 2 '*' $ac_mid + 1`
22756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22757 done
22758 else
22759 echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22762 cat >conftest.$ac_ext <<_ACEOF
22763 /* confdefs.h. */
22764 _ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22768 $ac_includes_default
22769 typedef short ac__type_sizeof_;
22771 main ()
22773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22774 test_array [0] = 0
22777 return 0;
22779 _ACEOF
22780 rm -f conftest.$ac_objext
22781 if { (ac_try="$ac_compile"
22782 case "(($ac_try" in
22783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22785 esac
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787 (eval "$ac_compile") 2>conftest.er1
22788 ac_status=$?
22789 grep -v '^ *+' conftest.er1 >conftest.err
22790 rm -f conftest.er1
22791 cat conftest.err >&5
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); } && {
22794 test -z "$ac_c_werror_flag" ||
22795 test ! -s conftest.err
22796 } && test -s conftest.$ac_objext; then
22797 ac_hi=-1 ac_mid=-1
22798 while :; do
22799 cat >conftest.$ac_ext <<_ACEOF
22800 /* confdefs.h. */
22801 _ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h. */
22805 $ac_includes_default
22806 typedef short ac__type_sizeof_;
22808 main ()
22810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22811 test_array [0] = 0
22814 return 0;
22816 _ACEOF
22817 rm -f conftest.$ac_objext
22818 if { (ac_try="$ac_compile"
22819 case "(($ac_try" in
22820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22821 *) ac_try_echo=$ac_try;;
22822 esac
22823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22824 (eval "$ac_compile") 2>conftest.er1
22825 ac_status=$?
22826 grep -v '^ *+' conftest.er1 >conftest.err
22827 rm -f conftest.er1
22828 cat conftest.err >&5
22829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); } && {
22831 test -z "$ac_c_werror_flag" ||
22832 test ! -s conftest.err
22833 } && test -s conftest.$ac_objext; then
22834 ac_lo=$ac_mid; break
22835 else
22836 echo "$as_me: failed program was:" >&5
22837 sed 's/^/| /' conftest.$ac_ext >&5
22839 ac_hi=`expr '(' $ac_mid ')' - 1`
22840 if test $ac_mid -le $ac_hi; then
22841 ac_lo= ac_hi=
22842 break
22844 ac_mid=`expr 2 '*' $ac_mid`
22847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22848 done
22849 else
22850 echo "$as_me: failed program was:" >&5
22851 sed 's/^/| /' conftest.$ac_ext >&5
22853 ac_lo= ac_hi=
22856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22860 # Binary search between lo and hi bounds.
22861 while test "x$ac_lo" != "x$ac_hi"; do
22862 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22863 cat >conftest.$ac_ext <<_ACEOF
22864 /* confdefs.h. */
22865 _ACEOF
22866 cat confdefs.h >>conftest.$ac_ext
22867 cat >>conftest.$ac_ext <<_ACEOF
22868 /* end confdefs.h. */
22869 $ac_includes_default
22870 typedef short ac__type_sizeof_;
22872 main ()
22874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22875 test_array [0] = 0
22878 return 0;
22880 _ACEOF
22881 rm -f conftest.$ac_objext
22882 if { (ac_try="$ac_compile"
22883 case "(($ac_try" in
22884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22885 *) ac_try_echo=$ac_try;;
22886 esac
22887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888 (eval "$ac_compile") 2>conftest.er1
22889 ac_status=$?
22890 grep -v '^ *+' conftest.er1 >conftest.err
22891 rm -f conftest.er1
22892 cat conftest.err >&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } && {
22895 test -z "$ac_c_werror_flag" ||
22896 test ! -s conftest.err
22897 } && test -s conftest.$ac_objext; then
22898 ac_hi=$ac_mid
22899 else
22900 echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22903 ac_lo=`expr '(' $ac_mid ')' + 1`
22906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22907 done
22908 case $ac_lo in
22909 ?*) ac_cv_sizeof_short=$ac_lo;;
22910 '') if test "$ac_cv_type_short" = yes; then
22911 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22912 See \`config.log' for more details." >&5
22913 echo "$as_me: error: cannot compute sizeof (short)
22914 See \`config.log' for more details." >&2;}
22915 { (exit 77); exit 77; }; }
22916 else
22917 ac_cv_sizeof_short=0
22918 fi ;;
22919 esac
22920 else
22921 cat >conftest.$ac_ext <<_ACEOF
22922 /* confdefs.h. */
22923 _ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h. */
22927 $ac_includes_default
22928 typedef short ac__type_sizeof_;
22929 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22930 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22931 #include <stdio.h>
22932 #include <stdlib.h>
22934 main ()
22937 FILE *f = fopen ("conftest.val", "w");
22938 if (! f)
22939 return 1;
22940 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22942 long int i = longval ();
22943 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22944 return 1;
22945 fprintf (f, "%ld\n", i);
22947 else
22949 unsigned long int i = ulongval ();
22950 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22951 return 1;
22952 fprintf (f, "%lu\n", i);
22954 return ferror (f) || fclose (f) != 0;
22957 return 0;
22959 _ACEOF
22960 rm -f conftest$ac_exeext
22961 if { (ac_try="$ac_link"
22962 case "(($ac_try" in
22963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22964 *) ac_try_echo=$ac_try;;
22965 esac
22966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22967 (eval "$ac_link") 2>&5
22968 ac_status=$?
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22971 { (case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22974 esac
22975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_try") 2>&5
22977 ac_status=$?
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); }; }; then
22980 ac_cv_sizeof_short=`cat conftest.val`
22981 else
22982 echo "$as_me: program exited with status $ac_status" >&5
22983 echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22986 ( exit $ac_status )
22987 if test "$ac_cv_type_short" = yes; then
22988 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22989 See \`config.log' for more details." >&5
22990 echo "$as_me: error: cannot compute sizeof (short)
22991 See \`config.log' for more details." >&2;}
22992 { (exit 77); exit 77; }; }
22993 else
22994 ac_cv_sizeof_short=0
22997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22999 rm -f conftest.val
23001 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
23002 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
23006 cat >>confdefs.h <<_ACEOF
23007 #define SIZEOF_SHORT $ac_cv_sizeof_short
23008 _ACEOF
23011 { echo "$as_me:$LINENO: checking for int" >&5
23012 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
23013 if test "${ac_cv_type_int+set}" = set; then
23014 echo $ECHO_N "(cached) $ECHO_C" >&6
23015 else
23016 cat >conftest.$ac_ext <<_ACEOF
23017 /* confdefs.h. */
23018 _ACEOF
23019 cat confdefs.h >>conftest.$ac_ext
23020 cat >>conftest.$ac_ext <<_ACEOF
23021 /* end confdefs.h. */
23022 $ac_includes_default
23023 typedef int ac__type_new_;
23025 main ()
23027 if ((ac__type_new_ *) 0)
23028 return 0;
23029 if (sizeof (ac__type_new_))
23030 return 0;
23032 return 0;
23034 _ACEOF
23035 rm -f conftest.$ac_objext
23036 if { (ac_try="$ac_compile"
23037 case "(($ac_try" in
23038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23039 *) ac_try_echo=$ac_try;;
23040 esac
23041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23042 (eval "$ac_compile") 2>conftest.er1
23043 ac_status=$?
23044 grep -v '^ *+' conftest.er1 >conftest.err
23045 rm -f conftest.er1
23046 cat conftest.err >&5
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); } && {
23049 test -z "$ac_c_werror_flag" ||
23050 test ! -s conftest.err
23051 } && test -s conftest.$ac_objext; then
23052 ac_cv_type_int=yes
23053 else
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23057 ac_cv_type_int=no
23060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23062 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23063 echo "${ECHO_T}$ac_cv_type_int" >&6; }
23065 # The cast to long int works around a bug in the HP C Compiler
23066 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23067 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23068 # This bug is HP SR number 8606223364.
23069 { echo "$as_me:$LINENO: checking size of int" >&5
23070 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
23071 if test "${ac_cv_sizeof_int+set}" = set; then
23072 echo $ECHO_N "(cached) $ECHO_C" >&6
23073 else
23074 if test "$cross_compiling" = yes; then
23075 # Depending upon the size, compute the lo and hi bounds.
23076 cat >conftest.$ac_ext <<_ACEOF
23077 /* confdefs.h. */
23078 _ACEOF
23079 cat confdefs.h >>conftest.$ac_ext
23080 cat >>conftest.$ac_ext <<_ACEOF
23081 /* end confdefs.h. */
23082 $ac_includes_default
23083 typedef int ac__type_sizeof_;
23085 main ()
23087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23088 test_array [0] = 0
23091 return 0;
23093 _ACEOF
23094 rm -f conftest.$ac_objext
23095 if { (ac_try="$ac_compile"
23096 case "(($ac_try" in
23097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23098 *) ac_try_echo=$ac_try;;
23099 esac
23100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23101 (eval "$ac_compile") 2>conftest.er1
23102 ac_status=$?
23103 grep -v '^ *+' conftest.er1 >conftest.err
23104 rm -f conftest.er1
23105 cat conftest.err >&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); } && {
23108 test -z "$ac_c_werror_flag" ||
23109 test ! -s conftest.err
23110 } && test -s conftest.$ac_objext; then
23111 ac_lo=0 ac_mid=0
23112 while :; do
23113 cat >conftest.$ac_ext <<_ACEOF
23114 /* confdefs.h. */
23115 _ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h. */
23119 $ac_includes_default
23120 typedef int ac__type_sizeof_;
23122 main ()
23124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23125 test_array [0] = 0
23128 return 0;
23130 _ACEOF
23131 rm -f conftest.$ac_objext
23132 if { (ac_try="$ac_compile"
23133 case "(($ac_try" in
23134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23135 *) ac_try_echo=$ac_try;;
23136 esac
23137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23138 (eval "$ac_compile") 2>conftest.er1
23139 ac_status=$?
23140 grep -v '^ *+' conftest.er1 >conftest.err
23141 rm -f conftest.er1
23142 cat conftest.err >&5
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); } && {
23145 test -z "$ac_c_werror_flag" ||
23146 test ! -s conftest.err
23147 } && test -s conftest.$ac_objext; then
23148 ac_hi=$ac_mid; break
23149 else
23150 echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23153 ac_lo=`expr $ac_mid + 1`
23154 if test $ac_lo -le $ac_mid; then
23155 ac_lo= ac_hi=
23156 break
23158 ac_mid=`expr 2 '*' $ac_mid + 1`
23161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23162 done
23163 else
23164 echo "$as_me: failed program was:" >&5
23165 sed 's/^/| /' conftest.$ac_ext >&5
23167 cat >conftest.$ac_ext <<_ACEOF
23168 /* confdefs.h. */
23169 _ACEOF
23170 cat confdefs.h >>conftest.$ac_ext
23171 cat >>conftest.$ac_ext <<_ACEOF
23172 /* end confdefs.h. */
23173 $ac_includes_default
23174 typedef int ac__type_sizeof_;
23176 main ()
23178 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23179 test_array [0] = 0
23182 return 0;
23184 _ACEOF
23185 rm -f conftest.$ac_objext
23186 if { (ac_try="$ac_compile"
23187 case "(($ac_try" in
23188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23189 *) ac_try_echo=$ac_try;;
23190 esac
23191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23192 (eval "$ac_compile") 2>conftest.er1
23193 ac_status=$?
23194 grep -v '^ *+' conftest.er1 >conftest.err
23195 rm -f conftest.er1
23196 cat conftest.err >&5
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); } && {
23199 test -z "$ac_c_werror_flag" ||
23200 test ! -s conftest.err
23201 } && test -s conftest.$ac_objext; then
23202 ac_hi=-1 ac_mid=-1
23203 while :; do
23204 cat >conftest.$ac_ext <<_ACEOF
23205 /* confdefs.h. */
23206 _ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23210 $ac_includes_default
23211 typedef int ac__type_sizeof_;
23213 main ()
23215 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23216 test_array [0] = 0
23219 return 0;
23221 _ACEOF
23222 rm -f conftest.$ac_objext
23223 if { (ac_try="$ac_compile"
23224 case "(($ac_try" in
23225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23226 *) ac_try_echo=$ac_try;;
23227 esac
23228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23229 (eval "$ac_compile") 2>conftest.er1
23230 ac_status=$?
23231 grep -v '^ *+' conftest.er1 >conftest.err
23232 rm -f conftest.er1
23233 cat conftest.err >&5
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } && {
23236 test -z "$ac_c_werror_flag" ||
23237 test ! -s conftest.err
23238 } && test -s conftest.$ac_objext; then
23239 ac_lo=$ac_mid; break
23240 else
23241 echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23244 ac_hi=`expr '(' $ac_mid ')' - 1`
23245 if test $ac_mid -le $ac_hi; then
23246 ac_lo= ac_hi=
23247 break
23249 ac_mid=`expr 2 '*' $ac_mid`
23252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23253 done
23254 else
23255 echo "$as_me: failed program was:" >&5
23256 sed 's/^/| /' conftest.$ac_ext >&5
23258 ac_lo= ac_hi=
23261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23265 # Binary search between lo and hi bounds.
23266 while test "x$ac_lo" != "x$ac_hi"; do
23267 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23268 cat >conftest.$ac_ext <<_ACEOF
23269 /* confdefs.h. */
23270 _ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 $ac_includes_default
23275 typedef int ac__type_sizeof_;
23277 main ()
23279 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23280 test_array [0] = 0
23283 return 0;
23285 _ACEOF
23286 rm -f conftest.$ac_objext
23287 if { (ac_try="$ac_compile"
23288 case "(($ac_try" in
23289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23290 *) ac_try_echo=$ac_try;;
23291 esac
23292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23293 (eval "$ac_compile") 2>conftest.er1
23294 ac_status=$?
23295 grep -v '^ *+' conftest.er1 >conftest.err
23296 rm -f conftest.er1
23297 cat conftest.err >&5
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); } && {
23300 test -z "$ac_c_werror_flag" ||
23301 test ! -s conftest.err
23302 } && test -s conftest.$ac_objext; then
23303 ac_hi=$ac_mid
23304 else
23305 echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23308 ac_lo=`expr '(' $ac_mid ')' + 1`
23311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23312 done
23313 case $ac_lo in
23314 ?*) ac_cv_sizeof_int=$ac_lo;;
23315 '') if test "$ac_cv_type_int" = yes; then
23316 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23317 See \`config.log' for more details." >&5
23318 echo "$as_me: error: cannot compute sizeof (int)
23319 See \`config.log' for more details." >&2;}
23320 { (exit 77); exit 77; }; }
23321 else
23322 ac_cv_sizeof_int=0
23323 fi ;;
23324 esac
23325 else
23326 cat >conftest.$ac_ext <<_ACEOF
23327 /* confdefs.h. */
23328 _ACEOF
23329 cat confdefs.h >>conftest.$ac_ext
23330 cat >>conftest.$ac_ext <<_ACEOF
23331 /* end confdefs.h. */
23332 $ac_includes_default
23333 typedef int ac__type_sizeof_;
23334 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23335 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23336 #include <stdio.h>
23337 #include <stdlib.h>
23339 main ()
23342 FILE *f = fopen ("conftest.val", "w");
23343 if (! f)
23344 return 1;
23345 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23347 long int i = longval ();
23348 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23349 return 1;
23350 fprintf (f, "%ld\n", i);
23352 else
23354 unsigned long int i = ulongval ();
23355 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23356 return 1;
23357 fprintf (f, "%lu\n", i);
23359 return ferror (f) || fclose (f) != 0;
23362 return 0;
23364 _ACEOF
23365 rm -f conftest$ac_exeext
23366 if { (ac_try="$ac_link"
23367 case "(($ac_try" in
23368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23369 *) ac_try_echo=$ac_try;;
23370 esac
23371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23372 (eval "$ac_link") 2>&5
23373 ac_status=$?
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23376 { (case "(($ac_try" in
23377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378 *) ac_try_echo=$ac_try;;
23379 esac
23380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23381 (eval "$ac_try") 2>&5
23382 ac_status=$?
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); }; }; then
23385 ac_cv_sizeof_int=`cat conftest.val`
23386 else
23387 echo "$as_me: program exited with status $ac_status" >&5
23388 echo "$as_me: failed program was:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23391 ( exit $ac_status )
23392 if test "$ac_cv_type_int" = yes; then
23393 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23394 See \`config.log' for more details." >&5
23395 echo "$as_me: error: cannot compute sizeof (int)
23396 See \`config.log' for more details." >&2;}
23397 { (exit 77); exit 77; }; }
23398 else
23399 ac_cv_sizeof_int=0
23402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23404 rm -f conftest.val
23406 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23407 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23411 cat >>confdefs.h <<_ACEOF
23412 #define SIZEOF_INT $ac_cv_sizeof_int
23413 _ACEOF
23416 { echo "$as_me:$LINENO: checking for long" >&5
23417 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23418 if test "${ac_cv_type_long+set}" = set; then
23419 echo $ECHO_N "(cached) $ECHO_C" >&6
23420 else
23421 cat >conftest.$ac_ext <<_ACEOF
23422 /* confdefs.h. */
23423 _ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h. */
23427 $ac_includes_default
23428 typedef long ac__type_new_;
23430 main ()
23432 if ((ac__type_new_ *) 0)
23433 return 0;
23434 if (sizeof (ac__type_new_))
23435 return 0;
23437 return 0;
23439 _ACEOF
23440 rm -f conftest.$ac_objext
23441 if { (ac_try="$ac_compile"
23442 case "(($ac_try" in
23443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444 *) ac_try_echo=$ac_try;;
23445 esac
23446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23447 (eval "$ac_compile") 2>conftest.er1
23448 ac_status=$?
23449 grep -v '^ *+' conftest.er1 >conftest.err
23450 rm -f conftest.er1
23451 cat conftest.err >&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); } && {
23454 test -z "$ac_c_werror_flag" ||
23455 test ! -s conftest.err
23456 } && test -s conftest.$ac_objext; then
23457 ac_cv_type_long=yes
23458 else
23459 echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23462 ac_cv_type_long=no
23465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23467 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23468 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23470 # The cast to long int works around a bug in the HP C Compiler
23471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23473 # This bug is HP SR number 8606223364.
23474 { echo "$as_me:$LINENO: checking size of long" >&5
23475 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
23476 if test "${ac_cv_sizeof_long+set}" = set; then
23477 echo $ECHO_N "(cached) $ECHO_C" >&6
23478 else
23479 if test "$cross_compiling" = yes; then
23480 # Depending upon the size, compute the lo and hi bounds.
23481 cat >conftest.$ac_ext <<_ACEOF
23482 /* confdefs.h. */
23483 _ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h. */
23487 $ac_includes_default
23488 typedef long ac__type_sizeof_;
23490 main ()
23492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23493 test_array [0] = 0
23496 return 0;
23498 _ACEOF
23499 rm -f conftest.$ac_objext
23500 if { (ac_try="$ac_compile"
23501 case "(($ac_try" in
23502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23503 *) ac_try_echo=$ac_try;;
23504 esac
23505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23506 (eval "$ac_compile") 2>conftest.er1
23507 ac_status=$?
23508 grep -v '^ *+' conftest.er1 >conftest.err
23509 rm -f conftest.er1
23510 cat conftest.err >&5
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } && {
23513 test -z "$ac_c_werror_flag" ||
23514 test ! -s conftest.err
23515 } && test -s conftest.$ac_objext; then
23516 ac_lo=0 ac_mid=0
23517 while :; do
23518 cat >conftest.$ac_ext <<_ACEOF
23519 /* confdefs.h. */
23520 _ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h. */
23524 $ac_includes_default
23525 typedef long ac__type_sizeof_;
23527 main ()
23529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23530 test_array [0] = 0
23533 return 0;
23535 _ACEOF
23536 rm -f conftest.$ac_objext
23537 if { (ac_try="$ac_compile"
23538 case "(($ac_try" in
23539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23540 *) ac_try_echo=$ac_try;;
23541 esac
23542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23543 (eval "$ac_compile") 2>conftest.er1
23544 ac_status=$?
23545 grep -v '^ *+' conftest.er1 >conftest.err
23546 rm -f conftest.er1
23547 cat conftest.err >&5
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); } && {
23550 test -z "$ac_c_werror_flag" ||
23551 test ! -s conftest.err
23552 } && test -s conftest.$ac_objext; then
23553 ac_hi=$ac_mid; break
23554 else
23555 echo "$as_me: failed program was:" >&5
23556 sed 's/^/| /' conftest.$ac_ext >&5
23558 ac_lo=`expr $ac_mid + 1`
23559 if test $ac_lo -le $ac_mid; then
23560 ac_lo= ac_hi=
23561 break
23563 ac_mid=`expr 2 '*' $ac_mid + 1`
23566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23567 done
23568 else
23569 echo "$as_me: failed program was:" >&5
23570 sed 's/^/| /' conftest.$ac_ext >&5
23572 cat >conftest.$ac_ext <<_ACEOF
23573 /* confdefs.h. */
23574 _ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h. */
23578 $ac_includes_default
23579 typedef long ac__type_sizeof_;
23581 main ()
23583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23584 test_array [0] = 0
23587 return 0;
23589 _ACEOF
23590 rm -f conftest.$ac_objext
23591 if { (ac_try="$ac_compile"
23592 case "(($ac_try" in
23593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23594 *) ac_try_echo=$ac_try;;
23595 esac
23596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23597 (eval "$ac_compile") 2>conftest.er1
23598 ac_status=$?
23599 grep -v '^ *+' conftest.er1 >conftest.err
23600 rm -f conftest.er1
23601 cat conftest.err >&5
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); } && {
23604 test -z "$ac_c_werror_flag" ||
23605 test ! -s conftest.err
23606 } && test -s conftest.$ac_objext; then
23607 ac_hi=-1 ac_mid=-1
23608 while :; do
23609 cat >conftest.$ac_ext <<_ACEOF
23610 /* confdefs.h. */
23611 _ACEOF
23612 cat confdefs.h >>conftest.$ac_ext
23613 cat >>conftest.$ac_ext <<_ACEOF
23614 /* end confdefs.h. */
23615 $ac_includes_default
23616 typedef long ac__type_sizeof_;
23618 main ()
23620 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23621 test_array [0] = 0
23624 return 0;
23626 _ACEOF
23627 rm -f conftest.$ac_objext
23628 if { (ac_try="$ac_compile"
23629 case "(($ac_try" in
23630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23631 *) ac_try_echo=$ac_try;;
23632 esac
23633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23634 (eval "$ac_compile") 2>conftest.er1
23635 ac_status=$?
23636 grep -v '^ *+' conftest.er1 >conftest.err
23637 rm -f conftest.er1
23638 cat conftest.err >&5
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); } && {
23641 test -z "$ac_c_werror_flag" ||
23642 test ! -s conftest.err
23643 } && test -s conftest.$ac_objext; then
23644 ac_lo=$ac_mid; break
23645 else
23646 echo "$as_me: failed program was:" >&5
23647 sed 's/^/| /' conftest.$ac_ext >&5
23649 ac_hi=`expr '(' $ac_mid ')' - 1`
23650 if test $ac_mid -le $ac_hi; then
23651 ac_lo= ac_hi=
23652 break
23654 ac_mid=`expr 2 '*' $ac_mid`
23657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23658 done
23659 else
23660 echo "$as_me: failed program was:" >&5
23661 sed 's/^/| /' conftest.$ac_ext >&5
23663 ac_lo= ac_hi=
23666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23670 # Binary search between lo and hi bounds.
23671 while test "x$ac_lo" != "x$ac_hi"; do
23672 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23673 cat >conftest.$ac_ext <<_ACEOF
23674 /* confdefs.h. */
23675 _ACEOF
23676 cat confdefs.h >>conftest.$ac_ext
23677 cat >>conftest.$ac_ext <<_ACEOF
23678 /* end confdefs.h. */
23679 $ac_includes_default
23680 typedef long ac__type_sizeof_;
23682 main ()
23684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23685 test_array [0] = 0
23688 return 0;
23690 _ACEOF
23691 rm -f conftest.$ac_objext
23692 if { (ac_try="$ac_compile"
23693 case "(($ac_try" in
23694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23695 *) ac_try_echo=$ac_try;;
23696 esac
23697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23698 (eval "$ac_compile") 2>conftest.er1
23699 ac_status=$?
23700 grep -v '^ *+' conftest.er1 >conftest.err
23701 rm -f conftest.er1
23702 cat conftest.err >&5
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); } && {
23705 test -z "$ac_c_werror_flag" ||
23706 test ! -s conftest.err
23707 } && test -s conftest.$ac_objext; then
23708 ac_hi=$ac_mid
23709 else
23710 echo "$as_me: failed program was:" >&5
23711 sed 's/^/| /' conftest.$ac_ext >&5
23713 ac_lo=`expr '(' $ac_mid ')' + 1`
23716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23717 done
23718 case $ac_lo in
23719 ?*) ac_cv_sizeof_long=$ac_lo;;
23720 '') if test "$ac_cv_type_long" = yes; then
23721 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23722 See \`config.log' for more details." >&5
23723 echo "$as_me: error: cannot compute sizeof (long)
23724 See \`config.log' for more details." >&2;}
23725 { (exit 77); exit 77; }; }
23726 else
23727 ac_cv_sizeof_long=0
23728 fi ;;
23729 esac
23730 else
23731 cat >conftest.$ac_ext <<_ACEOF
23732 /* confdefs.h. */
23733 _ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h. */
23737 $ac_includes_default
23738 typedef long ac__type_sizeof_;
23739 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23740 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23741 #include <stdio.h>
23742 #include <stdlib.h>
23744 main ()
23747 FILE *f = fopen ("conftest.val", "w");
23748 if (! f)
23749 return 1;
23750 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23752 long int i = longval ();
23753 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23754 return 1;
23755 fprintf (f, "%ld\n", i);
23757 else
23759 unsigned long int i = ulongval ();
23760 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23761 return 1;
23762 fprintf (f, "%lu\n", i);
23764 return ferror (f) || fclose (f) != 0;
23767 return 0;
23769 _ACEOF
23770 rm -f conftest$ac_exeext
23771 if { (ac_try="$ac_link"
23772 case "(($ac_try" in
23773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23774 *) ac_try_echo=$ac_try;;
23775 esac
23776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23777 (eval "$ac_link") 2>&5
23778 ac_status=$?
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23781 { (case "(($ac_try" in
23782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23783 *) ac_try_echo=$ac_try;;
23784 esac
23785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23786 (eval "$ac_try") 2>&5
23787 ac_status=$?
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); }; }; then
23790 ac_cv_sizeof_long=`cat conftest.val`
23791 else
23792 echo "$as_me: program exited with status $ac_status" >&5
23793 echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23796 ( exit $ac_status )
23797 if test "$ac_cv_type_long" = yes; then
23798 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23799 See \`config.log' for more details." >&5
23800 echo "$as_me: error: cannot compute sizeof (long)
23801 See \`config.log' for more details." >&2;}
23802 { (exit 77); exit 77; }; }
23803 else
23804 ac_cv_sizeof_long=0
23807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23809 rm -f conftest.val
23811 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23812 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
23816 cat >>confdefs.h <<_ACEOF
23817 #define SIZEOF_LONG $ac_cv_sizeof_long
23818 _ACEOF
23821 { echo "$as_me:$LINENO: checking for long long" >&5
23822 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23823 if test "${ac_cv_type_long_long+set}" = set; then
23824 echo $ECHO_N "(cached) $ECHO_C" >&6
23825 else
23826 cat >conftest.$ac_ext <<_ACEOF
23827 /* confdefs.h. */
23828 _ACEOF
23829 cat confdefs.h >>conftest.$ac_ext
23830 cat >>conftest.$ac_ext <<_ACEOF
23831 /* end confdefs.h. */
23832 $ac_includes_default
23833 typedef long long ac__type_new_;
23835 main ()
23837 if ((ac__type_new_ *) 0)
23838 return 0;
23839 if (sizeof (ac__type_new_))
23840 return 0;
23842 return 0;
23844 _ACEOF
23845 rm -f conftest.$ac_objext
23846 if { (ac_try="$ac_compile"
23847 case "(($ac_try" in
23848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23849 *) ac_try_echo=$ac_try;;
23850 esac
23851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23852 (eval "$ac_compile") 2>conftest.er1
23853 ac_status=$?
23854 grep -v '^ *+' conftest.er1 >conftest.err
23855 rm -f conftest.er1
23856 cat conftest.err >&5
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); } && {
23859 test -z "$ac_c_werror_flag" ||
23860 test ! -s conftest.err
23861 } && test -s conftest.$ac_objext; then
23862 ac_cv_type_long_long=yes
23863 else
23864 echo "$as_me: failed program was:" >&5
23865 sed 's/^/| /' conftest.$ac_ext >&5
23867 ac_cv_type_long_long=no
23870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23872 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23873 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23875 # The cast to long int works around a bug in the HP C Compiler
23876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23878 # This bug is HP SR number 8606223364.
23879 { echo "$as_me:$LINENO: checking size of long long" >&5
23880 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23881 if test "${ac_cv_sizeof_long_long+set}" = set; then
23882 echo $ECHO_N "(cached) $ECHO_C" >&6
23883 else
23884 if test "$cross_compiling" = yes; then
23885 # Depending upon the size, compute the lo and hi bounds.
23886 cat >conftest.$ac_ext <<_ACEOF
23887 /* confdefs.h. */
23888 _ACEOF
23889 cat confdefs.h >>conftest.$ac_ext
23890 cat >>conftest.$ac_ext <<_ACEOF
23891 /* end confdefs.h. */
23892 $ac_includes_default
23893 typedef long long ac__type_sizeof_;
23895 main ()
23897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23898 test_array [0] = 0
23901 return 0;
23903 _ACEOF
23904 rm -f conftest.$ac_objext
23905 if { (ac_try="$ac_compile"
23906 case "(($ac_try" in
23907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908 *) ac_try_echo=$ac_try;;
23909 esac
23910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23911 (eval "$ac_compile") 2>conftest.er1
23912 ac_status=$?
23913 grep -v '^ *+' conftest.er1 >conftest.err
23914 rm -f conftest.er1
23915 cat conftest.err >&5
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); } && {
23918 test -z "$ac_c_werror_flag" ||
23919 test ! -s conftest.err
23920 } && test -s conftest.$ac_objext; then
23921 ac_lo=0 ac_mid=0
23922 while :; do
23923 cat >conftest.$ac_ext <<_ACEOF
23924 /* confdefs.h. */
23925 _ACEOF
23926 cat confdefs.h >>conftest.$ac_ext
23927 cat >>conftest.$ac_ext <<_ACEOF
23928 /* end confdefs.h. */
23929 $ac_includes_default
23930 typedef long long ac__type_sizeof_;
23932 main ()
23934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23935 test_array [0] = 0
23938 return 0;
23940 _ACEOF
23941 rm -f conftest.$ac_objext
23942 if { (ac_try="$ac_compile"
23943 case "(($ac_try" in
23944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23945 *) ac_try_echo=$ac_try;;
23946 esac
23947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23948 (eval "$ac_compile") 2>conftest.er1
23949 ac_status=$?
23950 grep -v '^ *+' conftest.er1 >conftest.err
23951 rm -f conftest.er1
23952 cat conftest.err >&5
23953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); } && {
23955 test -z "$ac_c_werror_flag" ||
23956 test ! -s conftest.err
23957 } && test -s conftest.$ac_objext; then
23958 ac_hi=$ac_mid; break
23959 else
23960 echo "$as_me: failed program was:" >&5
23961 sed 's/^/| /' conftest.$ac_ext >&5
23963 ac_lo=`expr $ac_mid + 1`
23964 if test $ac_lo -le $ac_mid; then
23965 ac_lo= ac_hi=
23966 break
23968 ac_mid=`expr 2 '*' $ac_mid + 1`
23971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23972 done
23973 else
23974 echo "$as_me: failed program was:" >&5
23975 sed 's/^/| /' conftest.$ac_ext >&5
23977 cat >conftest.$ac_ext <<_ACEOF
23978 /* confdefs.h. */
23979 _ACEOF
23980 cat confdefs.h >>conftest.$ac_ext
23981 cat >>conftest.$ac_ext <<_ACEOF
23982 /* end confdefs.h. */
23983 $ac_includes_default
23984 typedef long long ac__type_sizeof_;
23986 main ()
23988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23989 test_array [0] = 0
23992 return 0;
23994 _ACEOF
23995 rm -f conftest.$ac_objext
23996 if { (ac_try="$ac_compile"
23997 case "(($ac_try" in
23998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23999 *) ac_try_echo=$ac_try;;
24000 esac
24001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24002 (eval "$ac_compile") 2>conftest.er1
24003 ac_status=$?
24004 grep -v '^ *+' conftest.er1 >conftest.err
24005 rm -f conftest.er1
24006 cat conftest.err >&5
24007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008 (exit $ac_status); } && {
24009 test -z "$ac_c_werror_flag" ||
24010 test ! -s conftest.err
24011 } && test -s conftest.$ac_objext; then
24012 ac_hi=-1 ac_mid=-1
24013 while :; do
24014 cat >conftest.$ac_ext <<_ACEOF
24015 /* confdefs.h. */
24016 _ACEOF
24017 cat confdefs.h >>conftest.$ac_ext
24018 cat >>conftest.$ac_ext <<_ACEOF
24019 /* end confdefs.h. */
24020 $ac_includes_default
24021 typedef long long ac__type_sizeof_;
24023 main ()
24025 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24026 test_array [0] = 0
24029 return 0;
24031 _ACEOF
24032 rm -f conftest.$ac_objext
24033 if { (ac_try="$ac_compile"
24034 case "(($ac_try" in
24035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24036 *) ac_try_echo=$ac_try;;
24037 esac
24038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24039 (eval "$ac_compile") 2>conftest.er1
24040 ac_status=$?
24041 grep -v '^ *+' conftest.er1 >conftest.err
24042 rm -f conftest.er1
24043 cat conftest.err >&5
24044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); } && {
24046 test -z "$ac_c_werror_flag" ||
24047 test ! -s conftest.err
24048 } && test -s conftest.$ac_objext; then
24049 ac_lo=$ac_mid; break
24050 else
24051 echo "$as_me: failed program was:" >&5
24052 sed 's/^/| /' conftest.$ac_ext >&5
24054 ac_hi=`expr '(' $ac_mid ')' - 1`
24055 if test $ac_mid -le $ac_hi; then
24056 ac_lo= ac_hi=
24057 break
24059 ac_mid=`expr 2 '*' $ac_mid`
24062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24063 done
24064 else
24065 echo "$as_me: failed program was:" >&5
24066 sed 's/^/| /' conftest.$ac_ext >&5
24068 ac_lo= ac_hi=
24071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24075 # Binary search between lo and hi bounds.
24076 while test "x$ac_lo" != "x$ac_hi"; do
24077 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24078 cat >conftest.$ac_ext <<_ACEOF
24079 /* confdefs.h. */
24080 _ACEOF
24081 cat confdefs.h >>conftest.$ac_ext
24082 cat >>conftest.$ac_ext <<_ACEOF
24083 /* end confdefs.h. */
24084 $ac_includes_default
24085 typedef long long ac__type_sizeof_;
24087 main ()
24089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24090 test_array [0] = 0
24093 return 0;
24095 _ACEOF
24096 rm -f conftest.$ac_objext
24097 if { (ac_try="$ac_compile"
24098 case "(($ac_try" in
24099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24100 *) ac_try_echo=$ac_try;;
24101 esac
24102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24103 (eval "$ac_compile") 2>conftest.er1
24104 ac_status=$?
24105 grep -v '^ *+' conftest.er1 >conftest.err
24106 rm -f conftest.er1
24107 cat conftest.err >&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } && {
24110 test -z "$ac_c_werror_flag" ||
24111 test ! -s conftest.err
24112 } && test -s conftest.$ac_objext; then
24113 ac_hi=$ac_mid
24114 else
24115 echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24118 ac_lo=`expr '(' $ac_mid ')' + 1`
24121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24122 done
24123 case $ac_lo in
24124 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24125 '') if test "$ac_cv_type_long_long" = yes; then
24126 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24127 See \`config.log' for more details." >&5
24128 echo "$as_me: error: cannot compute sizeof (long long)
24129 See \`config.log' for more details." >&2;}
24130 { (exit 77); exit 77; }; }
24131 else
24132 ac_cv_sizeof_long_long=0
24133 fi ;;
24134 esac
24135 else
24136 cat >conftest.$ac_ext <<_ACEOF
24137 /* confdefs.h. */
24138 _ACEOF
24139 cat confdefs.h >>conftest.$ac_ext
24140 cat >>conftest.$ac_ext <<_ACEOF
24141 /* end confdefs.h. */
24142 $ac_includes_default
24143 typedef long long ac__type_sizeof_;
24144 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24145 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24146 #include <stdio.h>
24147 #include <stdlib.h>
24149 main ()
24152 FILE *f = fopen ("conftest.val", "w");
24153 if (! f)
24154 return 1;
24155 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24157 long int i = longval ();
24158 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24159 return 1;
24160 fprintf (f, "%ld\n", i);
24162 else
24164 unsigned long int i = ulongval ();
24165 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24166 return 1;
24167 fprintf (f, "%lu\n", i);
24169 return ferror (f) || fclose (f) != 0;
24172 return 0;
24174 _ACEOF
24175 rm -f conftest$ac_exeext
24176 if { (ac_try="$ac_link"
24177 case "(($ac_try" in
24178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179 *) ac_try_echo=$ac_try;;
24180 esac
24181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24182 (eval "$ac_link") 2>&5
24183 ac_status=$?
24184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24186 { (case "(($ac_try" in
24187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24188 *) ac_try_echo=$ac_try;;
24189 esac
24190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24191 (eval "$ac_try") 2>&5
24192 ac_status=$?
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); }; }; then
24195 ac_cv_sizeof_long_long=`cat conftest.val`
24196 else
24197 echo "$as_me: program exited with status $ac_status" >&5
24198 echo "$as_me: failed program was:" >&5
24199 sed 's/^/| /' conftest.$ac_ext >&5
24201 ( exit $ac_status )
24202 if test "$ac_cv_type_long_long" = yes; then
24203 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24204 See \`config.log' for more details." >&5
24205 echo "$as_me: error: cannot compute sizeof (long long)
24206 See \`config.log' for more details." >&2;}
24207 { (exit 77); exit 77; }; }
24208 else
24209 ac_cv_sizeof_long_long=0
24212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24214 rm -f conftest.val
24216 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24217 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24221 cat >>confdefs.h <<_ACEOF
24222 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24223 _ACEOF
24226 if test x$ac_cv_sizeof_char = x1; then
24227 cat >>confdefs.h <<\_ACEOF
24228 #define int8_t signed char
24229 _ACEOF
24231 cat >>confdefs.h <<\_ACEOF
24232 #define uint8_t unsigned char
24233 _ACEOF
24236 if test x$ac_cv_sizeof_short = x2; then
24237 cat >>confdefs.h <<\_ACEOF
24238 #define int16_t signed short
24239 _ACEOF
24241 cat >>confdefs.h <<\_ACEOF
24242 #define uint16_t unsigned short
24243 _ACEOF
24245 else
24246 if test x$ac_cv_sizeof_int = x2; then
24247 cat >>confdefs.h <<\_ACEOF
24248 #define int16_t signed int
24249 _ACEOF
24251 cat >>confdefs.h <<\_ACEOF
24252 #define uint16_t unsigned int
24253 _ACEOF
24257 if test x$ac_cv_sizeof_int = x4; then
24258 cat >>confdefs.h <<\_ACEOF
24259 #define int32_t signed int
24260 _ACEOF
24262 cat >>confdefs.h <<\_ACEOF
24263 #define uint32_t unsigned int
24264 _ACEOF
24266 else
24267 if test x$ac_cv_sizeof_long = x4; then
24268 cat >>confdefs.h <<\_ACEOF
24269 #define int32_t signed long
24270 _ACEOF
24272 cat >>confdefs.h <<\_ACEOF
24273 #define uint32_t unsigned long
24274 _ACEOF
24278 if test x$ac_cv_sizeof_long = x8; then
24279 cat >>confdefs.h <<\_ACEOF
24280 #define int64_t signed long
24281 _ACEOF
24283 cat >>confdefs.h <<\_ACEOF
24284 #define uint64_t unsigned long
24285 _ACEOF
24287 cat >>confdefs.h <<\_ACEOF
24288 #define SDL_HAS_64BIT_TYPE 1
24289 _ACEOF
24291 else
24292 if test x$ac_cv_sizeof_long_long = x8; then
24293 cat >>confdefs.h <<\_ACEOF
24294 #define int64_t signed long long
24295 _ACEOF
24297 cat >>confdefs.h <<\_ACEOF
24298 #define uint64_t unsigned long long
24299 _ACEOF
24301 cat >>confdefs.h <<\_ACEOF
24302 #define SDL_HAS_64BIT_TYPE 1
24303 _ACEOF
24307 cat >>confdefs.h <<\_ACEOF
24308 #define size_t unsigned int
24309 _ACEOF
24311 cat >>confdefs.h <<\_ACEOF
24312 #define uintptr_t unsigned long
24313 _ACEOF
24317 # Standard C sources
24318 SOURCES="$SOURCES $srcdir/src/*.c"
24319 SOURCES="$SOURCES $srcdir/src/audio/*.c"
24320 SOURCES="$SOURCES $srcdir/src/cdrom/*.c"
24321 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
24322 SOURCES="$SOURCES $srcdir/src/events/*.c"
24323 SOURCES="$SOURCES $srcdir/src/file/*.c"
24324 SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
24325 SOURCES="$SOURCES $srcdir/src/thread/*.c"
24326 SOURCES="$SOURCES $srcdir/src/timer/*.c"
24327 SOURCES="$SOURCES $srcdir/src/video/*.c"
24330 # Check whether --enable-audio was given.
24331 if test "${enable_audio+set}" = set; then
24332 enableval=$enable_audio;
24333 else
24334 enable_audio=yes
24337 if test x$enable_audio != xyes; then
24338 cat >>confdefs.h <<\_ACEOF
24339 #define SDL_AUDIO_DISABLED 1
24340 _ACEOF
24343 # Check whether --enable-video was given.
24344 if test "${enable_video+set}" = set; then
24345 enableval=$enable_video;
24346 else
24347 enable_video=yes
24350 if test x$enable_video != xyes; then
24351 cat >>confdefs.h <<\_ACEOF
24352 #define SDL_VIDEO_DISABLED 1
24353 _ACEOF
24356 # Check whether --enable-events was given.
24357 if test "${enable_events+set}" = set; then
24358 enableval=$enable_events;
24359 else
24360 enable_events=yes
24363 if test x$enable_events != xyes; then
24364 cat >>confdefs.h <<\_ACEOF
24365 #define SDL_EVENTS_DISABLED 1
24366 _ACEOF
24369 # Check whether --enable-joystick was given.
24370 if test "${enable_joystick+set}" = set; then
24371 enableval=$enable_joystick;
24372 else
24373 enable_joystick=yes
24376 if test x$enable_joystick != xyes; then
24377 cat >>confdefs.h <<\_ACEOF
24378 #define SDL_JOYSTICK_DISABLED 1
24379 _ACEOF
24381 else
24382 SOURCES="$SOURCES $srcdir/src/joystick/*.c"
24384 # Check whether --enable-cdrom was given.
24385 if test "${enable_cdrom+set}" = set; then
24386 enableval=$enable_cdrom;
24387 else
24388 enable_cdrom=yes
24391 if test x$enable_cdrom != xyes; then
24392 cat >>confdefs.h <<\_ACEOF
24393 #define SDL_CDROM_DISABLED 1
24394 _ACEOF
24397 # Check whether --enable-threads was given.
24398 if test "${enable_threads+set}" = set; then
24399 enableval=$enable_threads;
24400 else
24401 enable_threads=yes
24404 if test x$enable_threads != xyes; then
24405 cat >>confdefs.h <<\_ACEOF
24406 #define SDL_THREADS_DISABLED 1
24407 _ACEOF
24410 # Check whether --enable-timers was given.
24411 if test "${enable_timers+set}" = set; then
24412 enableval=$enable_timers;
24413 else
24414 enable_timers=yes
24417 if test x$enable_timers != xyes; then
24418 cat >>confdefs.h <<\_ACEOF
24419 #define SDL_TIMERS_DISABLED 1
24420 _ACEOF
24423 # Check whether --enable-file was given.
24424 if test "${enable_file+set}" = set; then
24425 enableval=$enable_file;
24426 else
24427 enable_file=yes
24430 if test x$enable_file != xyes; then
24431 cat >>confdefs.h <<\_ACEOF
24432 #define SDL_FILE_DISABLED 1
24433 _ACEOF
24436 # Check whether --enable-loadso was given.
24437 if test "${enable_loadso+set}" = set; then
24438 enableval=$enable_loadso;
24439 else
24440 enable_loadso=yes
24443 if test x$enable_loadso != xyes; then
24444 cat >>confdefs.h <<\_ACEOF
24445 #define SDL_LOADSO_DISABLED 1
24446 _ACEOF
24449 # Check whether --enable-cpuinfo was given.
24450 if test "${enable_cpuinfo+set}" = set; then
24451 enableval=$enable_cpuinfo;
24452 else
24453 enable_cpuinfo=yes
24456 if test x$enable_cpuinfo != xyes; then
24457 cat >>confdefs.h <<\_ACEOF
24458 #define SDL_CPUINFO_DISABLED 1
24459 _ACEOF
24462 # Check whether --enable-assembly was given.
24463 if test "${enable_assembly+set}" = set; then
24464 enableval=$enable_assembly;
24465 else
24466 enable_assembly=yes
24469 if test x$enable_assembly = xyes; then
24470 cat >>confdefs.h <<\_ACEOF
24471 #define SDL_ASSEMBLY_ROUTINES 1
24472 _ACEOF
24476 CheckOSS()
24478 # Check whether --enable-oss was given.
24479 if test "${enable_oss+set}" = set; then
24480 enableval=$enable_oss;
24481 else
24482 enable_oss=yes
24485 if test x$enable_audio = xyes -a x$enable_oss = xyes; then
24486 { echo "$as_me:$LINENO: checking for OSS audio support" >&5
24487 echo $ECHO_N "checking for OSS audio support... $ECHO_C" >&6; }
24488 have_oss=no
24489 if test x$have_oss != xyes; then
24490 cat >conftest.$ac_ext <<_ACEOF
24491 /* confdefs.h. */
24492 _ACEOF
24493 cat confdefs.h >>conftest.$ac_ext
24494 cat >>conftest.$ac_ext <<_ACEOF
24495 /* end confdefs.h. */
24497 #include <sys/soundcard.h>
24500 main ()
24503 int arg = SNDCTL_DSP_SETFRAGMENT;
24506 return 0;
24508 _ACEOF
24509 rm -f conftest.$ac_objext
24510 if { (ac_try="$ac_compile"
24511 case "(($ac_try" in
24512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24513 *) ac_try_echo=$ac_try;;
24514 esac
24515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24516 (eval "$ac_compile") 2>conftest.er1
24517 ac_status=$?
24518 grep -v '^ *+' conftest.er1 >conftest.err
24519 rm -f conftest.er1
24520 cat conftest.err >&5
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); } && {
24523 test -z "$ac_c_werror_flag" ||
24524 test ! -s conftest.err
24525 } && test -s conftest.$ac_objext; then
24527 have_oss=yes
24529 else
24530 echo "$as_me: failed program was:" >&5
24531 sed 's/^/| /' conftest.$ac_ext >&5
24536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24538 if test x$have_oss != xyes; then
24539 cat >conftest.$ac_ext <<_ACEOF
24540 /* confdefs.h. */
24541 _ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24546 #include <soundcard.h>
24549 main ()
24552 int arg = SNDCTL_DSP_SETFRAGMENT;
24555 return 0;
24557 _ACEOF
24558 rm -f conftest.$ac_objext
24559 if { (ac_try="$ac_compile"
24560 case "(($ac_try" in
24561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24562 *) ac_try_echo=$ac_try;;
24563 esac
24564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24565 (eval "$ac_compile") 2>conftest.er1
24566 ac_status=$?
24567 grep -v '^ *+' conftest.er1 >conftest.err
24568 rm -f conftest.er1
24569 cat conftest.err >&5
24570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 (exit $ac_status); } && {
24572 test -z "$ac_c_werror_flag" ||
24573 test ! -s conftest.err
24574 } && test -s conftest.$ac_objext; then
24576 have_oss=yes
24577 cat >>confdefs.h <<\_ACEOF
24578 #define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1
24579 _ACEOF
24582 else
24583 echo "$as_me: failed program was:" >&5
24584 sed 's/^/| /' conftest.$ac_ext >&5
24589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24591 { echo "$as_me:$LINENO: result: $have_oss" >&5
24592 echo "${ECHO_T}$have_oss" >&6; }
24593 if test x$have_oss = xyes; then
24594 cat >>confdefs.h <<\_ACEOF
24595 #define SDL_AUDIO_DRIVER_OSS 1
24596 _ACEOF
24598 SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
24599 SOURCES="$SOURCES $srcdir/src/audio/dma/*.c"
24600 have_audio=yes
24602 # We may need to link with ossaudio emulation library
24603 case "$host" in
24604 *-*-openbsd*|*-*-netbsd*)
24605 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
24606 esac
24611 CheckALSA()
24613 # Check whether --enable-alsa was given.
24614 if test "${enable_alsa+set}" = set; then
24615 enableval=$enable_alsa;
24616 else
24617 enable_alsa=yes
24620 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
24621 alsa_save_CFLAGS="$CFLAGS"
24622 alsa_save_LDFLAGS="$LDFLAGS"
24623 alsa_save_LIBS="$LIBS"
24624 alsa_found=yes
24627 # Check whether --with-alsa-prefix was given.
24628 if test "${with_alsa_prefix+set}" = set; then
24629 withval=$with_alsa_prefix; alsa_prefix="$withval"
24630 else
24631 alsa_prefix=""
24636 # Check whether --with-alsa-inc-prefix was given.
24637 if test "${with_alsa_inc_prefix+set}" = set; then
24638 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
24639 else
24640 alsa_inc_prefix=""
24644 # Check whether --enable-alsatest was given.
24645 if test "${enable_alsatest+set}" = set; then
24646 enableval=$enable_alsatest; enable_alsatest="$enableval"
24647 else
24648 enable_alsatest=yes
24652 { echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
24653 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6; }
24654 if test "$alsa_inc_prefix" != "" ; then
24655 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
24656 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
24658 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
24659 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
24661 { echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
24662 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6; }
24663 if test "$alsa_prefix" != "" ; then
24664 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
24665 LDFLAGS="$LDFLAGS $ALSA_LIBS"
24668 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
24669 LIBS=`echo $LIBS | sed 's/-lm//'`
24670 LIBS=`echo $LIBS | sed 's/-ldl//'`
24671 LIBS=`echo $LIBS | sed 's/-lpthread//'`
24672 LIBS=`echo $LIBS | sed 's/ //'`
24673 LIBS="$ALSA_LIBS $LIBS"
24674 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
24675 echo "${ECHO_T}$ALSA_LIBS" >&6; }
24677 min_alsa_version=0.9.0
24678 { echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
24679 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6; }
24680 no_alsa=""
24681 alsa_min_major_version=`echo $min_alsa_version | \
24682 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24683 alsa_min_minor_version=`echo $min_alsa_version | \
24684 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24685 alsa_min_micro_version=`echo $min_alsa_version | \
24686 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24689 ac_ext=c
24690 ac_cpp='$CPP $CPPFLAGS'
24691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24695 cat >conftest.$ac_ext <<_ACEOF
24696 /* confdefs.h. */
24697 _ACEOF
24698 cat confdefs.h >>conftest.$ac_ext
24699 cat >>conftest.$ac_ext <<_ACEOF
24700 /* end confdefs.h. */
24702 #include <alsa/asoundlib.h>
24705 main ()
24708 /* ensure backward compatibility */
24709 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
24710 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
24711 #endif
24712 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
24713 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
24714 #endif
24715 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
24716 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
24717 #endif
24719 # if(SND_LIB_MAJOR > $alsa_min_major_version)
24720 exit(0);
24721 # else
24722 # if(SND_LIB_MAJOR < $alsa_min_major_version)
24723 # error not present
24724 # endif
24726 # if(SND_LIB_MINOR > $alsa_min_minor_version)
24727 exit(0);
24728 # else
24729 # if(SND_LIB_MINOR < $alsa_min_minor_version)
24730 # error not present
24731 # endif
24733 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
24734 # error not present
24735 # endif
24736 # endif
24737 # endif
24738 exit(0);
24741 return 0;
24743 _ACEOF
24744 rm -f conftest.$ac_objext
24745 if { (ac_try="$ac_compile"
24746 case "(($ac_try" in
24747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24748 *) ac_try_echo=$ac_try;;
24749 esac
24750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24751 (eval "$ac_compile") 2>conftest.er1
24752 ac_status=$?
24753 grep -v '^ *+' conftest.er1 >conftest.err
24754 rm -f conftest.er1
24755 cat conftest.err >&5
24756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757 (exit $ac_status); } && {
24758 test -z "$ac_c_werror_flag" ||
24759 test ! -s conftest.err
24760 } && test -s conftest.$ac_objext; then
24761 { echo "$as_me:$LINENO: result: found." >&5
24762 echo "${ECHO_T}found." >&6; }
24763 else
24764 echo "$as_me: failed program was:" >&5
24765 sed 's/^/| /' conftest.$ac_ext >&5
24767 { echo "$as_me:$LINENO: result: not present." >&5
24768 echo "${ECHO_T}not present." >&6; }
24770 alsa_found=no
24774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24775 ac_ext=c
24776 ac_cpp='$CPP $CPPFLAGS'
24777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24782 if test "x$enable_alsatest" = "xyes"; then
24784 { echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
24785 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6; }
24786 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
24787 echo $ECHO_N "(cached) $ECHO_C" >&6
24788 else
24789 ac_check_lib_save_LIBS=$LIBS
24790 LIBS="-lasound $LIBS"
24791 cat >conftest.$ac_ext <<_ACEOF
24792 /* confdefs.h. */
24793 _ACEOF
24794 cat confdefs.h >>conftest.$ac_ext
24795 cat >>conftest.$ac_ext <<_ACEOF
24796 /* end confdefs.h. */
24798 /* Override any GCC internal prototype to avoid an error.
24799 Use char because int might match the return type of a GCC
24800 builtin and then its argument prototype would still apply. */
24801 #ifdef __cplusplus
24802 extern "C"
24803 #endif
24804 char snd_ctl_open ();
24806 main ()
24808 return snd_ctl_open ();
24810 return 0;
24812 _ACEOF
24813 rm -f conftest.$ac_objext conftest$ac_exeext
24814 if { (ac_try="$ac_link"
24815 case "(($ac_try" in
24816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24817 *) ac_try_echo=$ac_try;;
24818 esac
24819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24820 (eval "$ac_link") 2>conftest.er1
24821 ac_status=$?
24822 grep -v '^ *+' conftest.er1 >conftest.err
24823 rm -f conftest.er1
24824 cat conftest.err >&5
24825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826 (exit $ac_status); } && {
24827 test -z "$ac_c_werror_flag" ||
24828 test ! -s conftest.err
24829 } && test -s conftest$ac_exeext &&
24830 $as_test_x conftest$ac_exeext; then
24831 ac_cv_lib_asound_snd_ctl_open=yes
24832 else
24833 echo "$as_me: failed program was:" >&5
24834 sed 's/^/| /' conftest.$ac_ext >&5
24836 ac_cv_lib_asound_snd_ctl_open=no
24839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24840 conftest$ac_exeext conftest.$ac_ext
24841 LIBS=$ac_check_lib_save_LIBS
24843 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
24844 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6; }
24845 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
24846 cat >>confdefs.h <<_ACEOF
24847 #define HAVE_LIBASOUND 1
24848 _ACEOF
24850 LIBS="-lasound $LIBS"
24852 else
24854 alsa_found=no
24860 if test "x$alsa_found" = "xyes" ; then
24861 have_alsa=yes
24862 LIBS=`echo $LIBS | sed 's/-lasound//g'`
24863 LIBS=`echo $LIBS | sed 's/ //'`
24864 LIBS="-lasound $LIBS"
24866 if test "x$alsa_found" = "xno" ; then
24867 have_alsa=no
24868 CFLAGS="$alsa_save_CFLAGS"
24869 LDFLAGS="$alsa_save_LDFLAGS"
24870 LIBS="$alsa_save_LIBS"
24871 ALSA_CFLAGS=""
24872 ALSA_LIBS=""
24878 # Restore all flags from before the ALSA detection runs
24879 CFLAGS="$alsa_save_CFLAGS"
24880 LDFLAGS="$alsa_save_LDFLAGS"
24881 LIBS="$alsa_save_LIBS"
24882 if test x$have_alsa = xyes; then
24883 # Check whether --enable-alsa-shared was given.
24884 if test "${enable_alsa_shared+set}" = set; then
24885 enableval=$enable_alsa_shared;
24886 else
24887 enable_alsa_shared=yes
24890 if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then
24891 if test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then
24892 ALSA_LIBS="-L/lib $ALSA_LIBS"
24893 elif test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then
24894 ALSA_LIBS="-L/usr/lib $ALSA_LIBS"
24895 elif test "x`ls /usr/local/lib/libasound.so.* 2> /dev/null`" != "x"; then
24896 ALSA_LIBS="-L/usr/local/lib $ALSA_LIBS"
24899 alsa_lib_spec=`echo $ALSA_LIBS | sed 's/.*-L\([^ ]*\).*/\1\/libasound.so.*/'`
24900 alsa_lib=`ls -- $alsa_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
24901 echo "-- $alsa_lib_spec -> $alsa_lib"
24903 cat >>confdefs.h <<\_ACEOF
24904 #define SDL_AUDIO_DRIVER_ALSA 1
24905 _ACEOF
24907 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
24908 EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
24909 if test x$have_loadso != xyes && \
24910 test x$enable_alsa_shared = xyes; then
24911 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
24912 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
24914 if test x$have_loadso = xyes && \
24915 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
24916 cat >>confdefs.h <<_ACEOF
24917 #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
24918 _ACEOF
24920 else
24921 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
24923 have_audio=yes
24928 CheckDMEDIA()
24930 if test x$enable_audio = xyes; then
24931 { echo "$as_me:$LINENO: checking for dmedia audio support" >&5
24932 echo $ECHO_N "checking for dmedia audio support... $ECHO_C" >&6; }
24933 have_dmedia=no
24934 cat >conftest.$ac_ext <<_ACEOF
24935 /* confdefs.h. */
24936 _ACEOF
24937 cat confdefs.h >>conftest.$ac_ext
24938 cat >>conftest.$ac_ext <<_ACEOF
24939 /* end confdefs.h. */
24941 #include <dmedia/audio.h>
24944 main ()
24947 ALport audio_port;
24950 return 0;
24952 _ACEOF
24953 rm -f conftest.$ac_objext
24954 if { (ac_try="$ac_compile"
24955 case "(($ac_try" in
24956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24957 *) ac_try_echo=$ac_try;;
24958 esac
24959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24960 (eval "$ac_compile") 2>conftest.er1
24961 ac_status=$?
24962 grep -v '^ *+' conftest.er1 >conftest.err
24963 rm -f conftest.er1
24964 cat conftest.err >&5
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); } && {
24967 test -z "$ac_c_werror_flag" ||
24968 test ! -s conftest.err
24969 } && test -s conftest.$ac_objext; then
24971 have_dmedia=yes
24973 else
24974 echo "$as_me: failed program was:" >&5
24975 sed 's/^/| /' conftest.$ac_ext >&5
24980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24981 { echo "$as_me:$LINENO: result: $have_dmedia" >&5
24982 echo "${ECHO_T}$have_dmedia" >&6; }
24983 # Set up files for the audio library
24984 if test x$have_dmedia = xyes; then
24985 cat >>confdefs.h <<\_ACEOF
24986 #define SDL_AUDIO_DRIVER_DMEDIA 1
24987 _ACEOF
24989 SOURCES="$SOURCES $srcdir/src/audio/dmedia/*.c"
24990 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laudio"
24991 have_audio=yes
24996 CheckMME()
24998 case $ARCH in
24999 osf)
25002 return
25004 esac
25005 if test x$enable_audio = xyes; then
25006 { echo "$as_me:$LINENO: checking for MME audio support" >&5
25007 echo $ECHO_N "checking for MME audio support... $ECHO_C" >&6; }
25008 MME_CFLAGS="-I/usr/include/mme"
25009 MME_LIBS="-lmme"
25010 have_mme=no
25011 save_CFLAGS="$CFLAGS"
25012 CFLAGS="$CFLAGS $MME_CFLAGS"
25013 cat >conftest.$ac_ext <<_ACEOF
25014 /* confdefs.h. */
25015 _ACEOF
25016 cat confdefs.h >>conftest.$ac_ext
25017 cat >>conftest.$ac_ext <<_ACEOF
25018 /* end confdefs.h. */
25020 #include <mme_api.h>
25023 main ()
25026 HWAVEOUT sound;
25029 return 0;
25031 _ACEOF
25032 rm -f conftest.$ac_objext
25033 if { (ac_try="$ac_compile"
25034 case "(($ac_try" in
25035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25036 *) ac_try_echo=$ac_try;;
25037 esac
25038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25039 (eval "$ac_compile") 2>conftest.er1
25040 ac_status=$?
25041 grep -v '^ *+' conftest.er1 >conftest.err
25042 rm -f conftest.er1
25043 cat conftest.err >&5
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); } && {
25046 test -z "$ac_c_werror_flag" ||
25047 test ! -s conftest.err
25048 } && test -s conftest.$ac_objext; then
25050 have_mme=yes
25052 else
25053 echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25060 CFLAGS="$save_CFLAGS"
25061 { echo "$as_me:$LINENO: result: $have_mme" >&5
25062 echo "${ECHO_T}$have_mme" >&6; }
25063 # Set up files for the audio library
25064 if test x$have_mme = xyes; then
25065 cat >>confdefs.h <<\_ACEOF
25066 #define SDL_AUDIO_DRIVER_MMEAUDIO 1
25067 _ACEOF
25069 SOURCES="$SOURCES $srcdir/src/audio/mme/*.c"
25070 EXTRA_CFLAGS="$EXTRA_CFLAGS $MME_CFLAGS"
25071 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MME_LIBS"
25072 have_audio=yes
25077 CheckESD()
25079 # Check whether --enable-esd was given.
25080 if test "${enable_esd+set}" = set; then
25081 enableval=$enable_esd;
25082 else
25083 enable_esd=yes
25086 if test x$enable_audio = xyes -a x$enable_esd = xyes; then
25088 # Check whether --with-esd-prefix was given.
25089 if test "${with_esd_prefix+set}" = set; then
25090 withval=$with_esd_prefix; esd_prefix="$withval"
25091 else
25092 esd_prefix=""
25096 # Check whether --with-esd-exec-prefix was given.
25097 if test "${with_esd_exec_prefix+set}" = set; then
25098 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
25099 else
25100 esd_exec_prefix=""
25103 # Check whether --enable-esdtest was given.
25104 if test "${enable_esdtest+set}" = set; then
25105 enableval=$enable_esdtest;
25106 else
25107 enable_esdtest=yes
25111 if test x$esd_exec_prefix != x ; then
25112 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
25113 if test x${ESD_CONFIG+set} != xset ; then
25114 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
25117 if test x$esd_prefix != x ; then
25118 esd_args="$esd_args --prefix=$esd_prefix"
25119 if test x${ESD_CONFIG+set} != xset ; then
25120 ESD_CONFIG=$esd_prefix/bin/esd-config
25124 # Extract the first word of "esd-config", so it can be a program name with args.
25125 set dummy esd-config; ac_word=$2
25126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25128 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
25129 echo $ECHO_N "(cached) $ECHO_C" >&6
25130 else
25131 case $ESD_CONFIG in
25132 [\\/]* | ?:[\\/]*)
25133 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
25136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25137 for as_dir in $PATH
25139 IFS=$as_save_IFS
25140 test -z "$as_dir" && as_dir=.
25141 for ac_exec_ext in '' $ac_executable_extensions; do
25142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25143 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25145 break 2
25147 done
25148 done
25149 IFS=$as_save_IFS
25151 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
25153 esac
25155 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
25156 if test -n "$ESD_CONFIG"; then
25157 { echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
25158 echo "${ECHO_T}$ESD_CONFIG" >&6; }
25159 else
25160 { echo "$as_me:$LINENO: result: no" >&5
25161 echo "${ECHO_T}no" >&6; }
25165 min_esd_version=0.2.8
25166 { echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
25167 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6; }
25168 no_esd=""
25169 if test "$ESD_CONFIG" = "no" ; then
25170 no_esd=yes
25171 else
25172 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
25173 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
25175 esd_major_version=`$ESD_CONFIG $esd_args --version | \
25176 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25177 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
25178 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25179 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
25180 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25181 if test "x$enable_esdtest" = "xyes" ; then
25182 ac_save_CFLAGS="$CFLAGS"
25183 ac_save_LIBS="$LIBS"
25184 CFLAGS="$CFLAGS $ESD_CFLAGS"
25185 LIBS="$LIBS $ESD_LIBS"
25186 rm -f conf.esdtest
25187 if test "$cross_compiling" = yes; then
25188 echo $ac_n "cross compiling; assumed OK... $ac_c"
25189 else
25190 cat >conftest.$ac_ext <<_ACEOF
25191 /* confdefs.h. */
25192 _ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h. */
25197 #include <stdio.h>
25198 #include <stdlib.h>
25199 #include <string.h>
25200 #include <esd.h>
25202 char*
25203 my_strdup (char *str)
25205 char *new_str;
25207 if (str)
25209 new_str = malloc ((strlen (str) + 1) * sizeof(char));
25210 strcpy (new_str, str);
25212 else
25213 new_str = NULL;
25215 return new_str;
25218 int main ()
25220 int major, minor, micro;
25221 char *tmp_version;
25223 system ("touch conf.esdtest");
25225 /* HP/UX 9 (%@#!) writes to sscanf strings */
25226 tmp_version = my_strdup("$min_esd_version");
25227 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25228 printf("%s, bad version string\n", "$min_esd_version");
25229 exit(1);
25232 if (($esd_major_version > major) ||
25233 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
25234 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
25236 return 0;
25238 else
25240 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
25241 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
25242 printf("*** best to upgrade to the required version.\n");
25243 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
25244 printf("*** to point to the correct copy of esd-config, and remove the file\n");
25245 printf("*** config.cache before re-running configure\n");
25246 return 1;
25251 _ACEOF
25252 rm -f conftest$ac_exeext
25253 if { (ac_try="$ac_link"
25254 case "(($ac_try" in
25255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25256 *) ac_try_echo=$ac_try;;
25257 esac
25258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25259 (eval "$ac_link") 2>&5
25260 ac_status=$?
25261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25263 { (case "(($ac_try" in
25264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25265 *) ac_try_echo=$ac_try;;
25266 esac
25267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25268 (eval "$ac_try") 2>&5
25269 ac_status=$?
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); }; }; then
25273 else
25274 echo "$as_me: program exited with status $ac_status" >&5
25275 echo "$as_me: failed program was:" >&5
25276 sed 's/^/| /' conftest.$ac_ext >&5
25278 ( exit $ac_status )
25279 no_esd=yes
25281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25285 CFLAGS="$ac_save_CFLAGS"
25286 LIBS="$ac_save_LIBS"
25289 if test "x$no_esd" = x ; then
25290 { echo "$as_me:$LINENO: result: yes" >&5
25291 echo "${ECHO_T}yes" >&6; }
25292 have_esd=yes
25293 else
25294 { echo "$as_me:$LINENO: result: no" >&5
25295 echo "${ECHO_T}no" >&6; }
25296 if test "$ESD_CONFIG" = "no" ; then
25297 echo "*** The esd-config script installed by ESD could not be found"
25298 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
25299 echo "*** your path, or set the ESD_CONFIG environment variable to the"
25300 echo "*** full path to esd-config."
25301 else
25302 if test -f conf.esdtest ; then
25304 else
25305 echo "*** Could not run ESD test program, checking why..."
25306 CFLAGS="$CFLAGS $ESD_CFLAGS"
25307 LIBS="$LIBS $ESD_LIBS"
25308 cat >conftest.$ac_ext <<_ACEOF
25309 /* confdefs.h. */
25310 _ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h. */
25315 #include <stdio.h>
25316 #include <esd.h>
25319 main ()
25321 return 0;
25323 return 0;
25325 _ACEOF
25326 rm -f conftest.$ac_objext conftest$ac_exeext
25327 if { (ac_try="$ac_link"
25328 case "(($ac_try" in
25329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25330 *) ac_try_echo=$ac_try;;
25331 esac
25332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25333 (eval "$ac_link") 2>conftest.er1
25334 ac_status=$?
25335 grep -v '^ *+' conftest.er1 >conftest.err
25336 rm -f conftest.er1
25337 cat conftest.err >&5
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); } && {
25340 test -z "$ac_c_werror_flag" ||
25341 test ! -s conftest.err
25342 } && test -s conftest$ac_exeext &&
25343 $as_test_x conftest$ac_exeext; then
25344 echo "*** The test program compiled, but did not run. This usually means"
25345 echo "*** that the run-time linker is not finding ESD or finding the wrong"
25346 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
25347 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25348 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25349 echo "*** is required on your system"
25350 echo "***"
25351 echo "*** If you have an old version installed, it is best to remove it, although"
25352 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25353 else
25354 echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25357 echo "*** The test program failed to compile or link. See the file config.log for the"
25358 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
25359 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
25360 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
25363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25364 conftest$ac_exeext conftest.$ac_ext
25365 CFLAGS="$ac_save_CFLAGS"
25366 LIBS="$ac_save_LIBS"
25369 ESD_CFLAGS=""
25370 ESD_LIBS=""
25371 have_esd=no
25375 rm -f conf.esdtest
25377 if test x$have_esd = xyes; then
25378 # Check whether --enable-esd-shared was given.
25379 if test "${enable_esd_shared+set}" = set; then
25380 enableval=$enable_esd_shared;
25381 else
25382 enable_esd_shared=yes
25385 esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([^ ]*\).*/\1\/libesd.so.*/'`
25386 esd_lib=`ls -- $esd_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
25387 echo "-- $esd_lib_spec -> $esd_lib"
25389 cat >>confdefs.h <<\_ACEOF
25390 #define SDL_AUDIO_DRIVER_ESD 1
25391 _ACEOF
25393 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
25394 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
25395 if test x$have_loadso != xyes && \
25396 test x$enable_esd_shared = xyes; then
25397 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
25398 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
25400 if test x$have_loadso = xyes && \
25401 test x$enable_esd_shared = xyes && test x$esd_lib != x; then
25402 cat >>confdefs.h <<_ACEOF
25403 #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
25404 _ACEOF
25406 else
25407 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
25409 have_audio=yes
25414 CheckPulseAudio()
25416 # Check whether --enable-pulseaudio was given.
25417 if test "${enable_pulseaudio+set}" = set; then
25418 enableval=$enable_pulseaudio;
25419 else
25420 enable_pulse=yes
25423 if test x$enable_audio = xyes -a x$enable_pulse = xyes; then
25424 audio_pulse=no
25426 PULSE_REQUIRED_VERSION=0.9
25428 # Extract the first word of "pkg-config", so it can be a program name with args.
25429 set dummy pkg-config; ac_word=$2
25430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25432 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25433 echo $ECHO_N "(cached) $ECHO_C" >&6
25434 else
25435 case $PKG_CONFIG in
25436 [\\/]* | ?:[\\/]*)
25437 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25441 for as_dir in $PATH
25443 IFS=$as_save_IFS
25444 test -z "$as_dir" && as_dir=.
25445 for ac_exec_ext in '' $ac_executable_extensions; do
25446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25447 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25449 break 2
25451 done
25452 done
25453 IFS=$as_save_IFS
25455 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25457 esac
25459 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25460 if test -n "$PKG_CONFIG"; then
25461 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25462 echo "${ECHO_T}$PKG_CONFIG" >&6; }
25463 else
25464 { echo "$as_me:$LINENO: result: no" >&5
25465 echo "${ECHO_T}no" >&6; }
25469 { echo "$as_me:$LINENO: checking for PulseAudio $PULSE_REQUIRED_VERSION support" >&5
25470 echo $ECHO_N "checking for PulseAudio $PULSE_REQUIRED_VERSION support... $ECHO_C" >&6; }
25471 if test x$PKG_CONFIG != xno; then
25472 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSE_REQUIRED_VERSION libpulse-simple; then
25473 PULSE_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
25474 PULSE_LIBS=`$PKG_CONFIG --libs libpulse-simple`
25475 audio_pulse=yes
25478 { echo "$as_me:$LINENO: result: $audio_pulse" >&5
25479 echo "${ECHO_T}$audio_pulse" >&6; }
25481 if test x$audio_pulse = xyes; then
25482 # Check whether --enable-pulseaudio-shared was given.
25483 if test "${enable_pulseaudio_shared+set}" = set; then
25484 enableval=$enable_pulseaudio_shared;
25485 else
25486 enable_pulse_shared=yes
25489 if test "x`echo $PULSE_LIBS | grep -- -L`" = "x"; then
25490 if test "x`ls /lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then
25491 PULSE_LIBS="-L/lib $PULSE_LIBS"
25492 elif test "x`ls /usr/lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then
25493 PULSE_LIBS="-L/usr/lib $PULSE_LIBS"
25494 elif test "x`ls /usr/local/lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then
25495 PULSE_LIBS="-L/usr/local/lib $PULSE_LIBS"
25498 pulse_lib_spec=`echo $PULSE_LIBS | sed 's/.*-L\([^ ]*\).*/\1\/libpulse-simple.so.*/'`
25499 pulse_lib=`ls -- $pulse_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
25500 echo "-- $pulse_lib_spec -> $pulse_lib"
25502 cat >>confdefs.h <<\_ACEOF
25503 #define SDL_AUDIO_DRIVER_PULSE 1
25504 _ACEOF
25506 SOURCES="$SOURCES $srcdir/src/audio/pulse/*.c"
25507 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSE_CFLAGS"
25508 if test x$have_loadso != xyes && \
25509 test x$enable_pulse_shared = xyes; then
25510 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
25511 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
25513 if test x$have_loadso = xyes && \
25514 test x$enable_pulse_shared = xyes && test x$pulse_lib != x; then
25515 cat >>confdefs.h <<_ACEOF
25516 #define SDL_AUDIO_DRIVER_PULSE_DYNAMIC "$pulse_lib"
25517 _ACEOF
25519 else
25520 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSE_LIBS"
25522 have_audio=yes
25527 CheckARTSC()
25529 # Check whether --enable-arts was given.
25530 if test "${enable_arts+set}" = set; then
25531 enableval=$enable_arts;
25532 else
25533 enable_arts=yes
25536 if test x$enable_audio = xyes -a x$enable_arts = xyes; then
25537 # Extract the first word of "artsc-config", so it can be a program name with args.
25538 set dummy artsc-config; ac_word=$2
25539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25541 if test "${ac_cv_path_ARTSCONFIG+set}" = set; then
25542 echo $ECHO_N "(cached) $ECHO_C" >&6
25543 else
25544 case $ARTSCONFIG in
25545 [\\/]* | ?:[\\/]*)
25546 ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
25549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25550 for as_dir in $PATH
25552 IFS=$as_save_IFS
25553 test -z "$as_dir" && as_dir=.
25554 for ac_exec_ext in '' $ac_executable_extensions; do
25555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25556 ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
25557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25558 break 2
25560 done
25561 done
25562 IFS=$as_save_IFS
25565 esac
25567 ARTSCONFIG=$ac_cv_path_ARTSCONFIG
25568 if test -n "$ARTSCONFIG"; then
25569 { echo "$as_me:$LINENO: result: $ARTSCONFIG" >&5
25570 echo "${ECHO_T}$ARTSCONFIG" >&6; }
25571 else
25572 { echo "$as_me:$LINENO: result: no" >&5
25573 echo "${ECHO_T}no" >&6; }
25577 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
25578 : # arts isn't installed
25579 else
25580 ARTS_CFLAGS=`$ARTSCONFIG --cflags`
25581 ARTS_LIBS=`$ARTSCONFIG --libs`
25582 ARTS_PREFIX=`$ARTSCONFIG --arts-prefix`
25583 { echo "$as_me:$LINENO: checking for aRts development environment" >&5
25584 echo $ECHO_N "checking for aRts development environment... $ECHO_C" >&6; }
25585 audio_arts=no
25586 save_CFLAGS="$CFLAGS"
25587 CFLAGS="$CFLAGS $ARTS_CFLAGS"
25588 cat >conftest.$ac_ext <<_ACEOF
25589 /* confdefs.h. */
25590 _ACEOF
25591 cat confdefs.h >>conftest.$ac_ext
25592 cat >>conftest.$ac_ext <<_ACEOF
25593 /* end confdefs.h. */
25595 #include <artsc.h>
25598 main ()
25601 arts_stream_t stream;
25604 return 0;
25606 _ACEOF
25607 rm -f conftest.$ac_objext
25608 if { (ac_try="$ac_compile"
25609 case "(($ac_try" in
25610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25611 *) ac_try_echo=$ac_try;;
25612 esac
25613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25614 (eval "$ac_compile") 2>conftest.er1
25615 ac_status=$?
25616 grep -v '^ *+' conftest.er1 >conftest.err
25617 rm -f conftest.er1
25618 cat conftest.err >&5
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); } && {
25621 test -z "$ac_c_werror_flag" ||
25622 test ! -s conftest.err
25623 } && test -s conftest.$ac_objext; then
25625 audio_arts=yes
25627 else
25628 echo "$as_me: failed program was:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25635 CFLAGS="$save_CFLAGS"
25636 { echo "$as_me:$LINENO: result: $audio_arts" >&5
25637 echo "${ECHO_T}$audio_arts" >&6; }
25638 if test x$audio_arts = xyes; then
25639 # Check whether --enable-arts-shared was given.
25640 if test "${enable_arts_shared+set}" = set; then
25641 enableval=$enable_arts_shared;
25642 else
25643 enable_arts_shared=yes
25646 arts_lib_spec="$ARTS_PREFIX/lib/libartsc.so.*"
25647 arts_lib=`ls -- $arts_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
25648 echo "-- $arts_lib_spec -> $arts_lib"
25650 cat >>confdefs.h <<\_ACEOF
25651 #define SDL_AUDIO_DRIVER_ARTS 1
25652 _ACEOF
25654 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
25655 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
25656 if test x$have_loadso != xyes && \
25657 test x$enable_arts_shared = xyes; then
25658 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
25659 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
25661 if test x$have_loadso = xyes && \
25662 test x$enable_arts_shared = xyes && test x$arts_lib != x; then
25663 cat >>confdefs.h <<_ACEOF
25664 #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
25665 _ACEOF
25667 else
25668 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
25670 have_audio=yes
25676 CheckNAS()
25678 # Check whether --enable-nas was given.
25679 if test "${enable_nas+set}" = set; then
25680 enableval=$enable_nas;
25681 else
25682 enable_nas=yes
25685 if test x$enable_audio = xyes -a x$enable_nas = xyes; then
25686 save_LDFLAGS="$LDFLAGS"
25687 LDFLAGS="$LDFLAGS -lXt -lm"
25688 if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
25689 { echo "$as_me:$LINENO: checking for audio/audiolib.h" >&5
25690 echo $ECHO_N "checking for audio/audiolib.h... $ECHO_C" >&6; }
25691 if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
25692 echo $ECHO_N "(cached) $ECHO_C" >&6
25694 { echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
25695 echo "${ECHO_T}$ac_cv_header_audio_audiolib_h" >&6; }
25696 else
25697 # Is the header compilable?
25698 { echo "$as_me:$LINENO: checking audio/audiolib.h usability" >&5
25699 echo $ECHO_N "checking audio/audiolib.h usability... $ECHO_C" >&6; }
25700 cat >conftest.$ac_ext <<_ACEOF
25701 /* confdefs.h. */
25702 _ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h. */
25706 $ac_includes_default
25707 #include <audio/audiolib.h>
25708 _ACEOF
25709 rm -f conftest.$ac_objext
25710 if { (ac_try="$ac_compile"
25711 case "(($ac_try" in
25712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25713 *) ac_try_echo=$ac_try;;
25714 esac
25715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25716 (eval "$ac_compile") 2>conftest.er1
25717 ac_status=$?
25718 grep -v '^ *+' conftest.er1 >conftest.err
25719 rm -f conftest.er1
25720 cat conftest.err >&5
25721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); } && {
25723 test -z "$ac_c_werror_flag" ||
25724 test ! -s conftest.err
25725 } && test -s conftest.$ac_objext; then
25726 ac_header_compiler=yes
25727 else
25728 echo "$as_me: failed program was:" >&5
25729 sed 's/^/| /' conftest.$ac_ext >&5
25731 ac_header_compiler=no
25734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25736 echo "${ECHO_T}$ac_header_compiler" >&6; }
25738 # Is the header present?
25739 { echo "$as_me:$LINENO: checking audio/audiolib.h presence" >&5
25740 echo $ECHO_N "checking audio/audiolib.h presence... $ECHO_C" >&6; }
25741 cat >conftest.$ac_ext <<_ACEOF
25742 /* confdefs.h. */
25743 _ACEOF
25744 cat confdefs.h >>conftest.$ac_ext
25745 cat >>conftest.$ac_ext <<_ACEOF
25746 /* end confdefs.h. */
25747 #include <audio/audiolib.h>
25748 _ACEOF
25749 if { (ac_try="$ac_cpp conftest.$ac_ext"
25750 case "(($ac_try" in
25751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752 *) ac_try_echo=$ac_try;;
25753 esac
25754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25756 ac_status=$?
25757 grep -v '^ *+' conftest.er1 >conftest.err
25758 rm -f conftest.er1
25759 cat conftest.err >&5
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); } >/dev/null && {
25762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25763 test ! -s conftest.err
25764 }; then
25765 ac_header_preproc=yes
25766 else
25767 echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25770 ac_header_preproc=no
25773 rm -f conftest.err conftest.$ac_ext
25774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25775 echo "${ECHO_T}$ac_header_preproc" >&6; }
25777 # So? What about this header?
25778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25779 yes:no: )
25780 { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25781 echo "$as_me: WARNING: audio/audiolib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25782 { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: proceeding with the compiler's result" >&5
25783 echo "$as_me: WARNING: audio/audiolib.h: proceeding with the compiler's result" >&2;}
25784 ac_header_preproc=yes
25786 no:yes:* )
25787 { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: present but cannot be compiled" >&5
25788 echo "$as_me: WARNING: audio/audiolib.h: present but cannot be compiled" >&2;}
25789 { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: check for missing prerequisite headers?" >&5
25790 echo "$as_me: WARNING: audio/audiolib.h: check for missing prerequisite headers?" >&2;}
25791 { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: see the Autoconf documentation" >&5
25792 echo "$as_me: WARNING: audio/audiolib.h: see the Autoconf documentation" >&2;}
25793 { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: section \"Present But Cannot Be Compiled\"" >&5
25794 echo "$as_me: WARNING: audio/audiolib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25795 { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: proceeding with the preprocessor's result" >&5
25796 echo "$as_me: WARNING: audio/audiolib.h: proceeding with the preprocessor's result" >&2;}
25797 { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: in the future, the compiler will take precedence" >&5
25798 echo "$as_me: WARNING: audio/audiolib.h: in the future, the compiler will take precedence" >&2;}
25801 esac
25802 { echo "$as_me:$LINENO: checking for audio/audiolib.h" >&5
25803 echo $ECHO_N "checking for audio/audiolib.h... $ECHO_C" >&6; }
25804 if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
25805 echo $ECHO_N "(cached) $ECHO_C" >&6
25806 else
25807 ac_cv_header_audio_audiolib_h=$ac_header_preproc
25809 { echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
25810 echo "${ECHO_T}$ac_cv_header_audio_audiolib_h" >&6; }
25813 if test $ac_cv_header_audio_audiolib_h = yes; then
25814 have_audio_hdr=yes
25818 { echo "$as_me:$LINENO: checking for AuOpenServer in -laudio" >&5
25819 echo $ECHO_N "checking for AuOpenServer in -laudio... $ECHO_C" >&6; }
25820 if test "${ac_cv_lib_audio_AuOpenServer+set}" = set; then
25821 echo $ECHO_N "(cached) $ECHO_C" >&6
25822 else
25823 ac_check_lib_save_LIBS=$LIBS
25824 LIBS="-laudio $LIBS"
25825 cat >conftest.$ac_ext <<_ACEOF
25826 /* confdefs.h. */
25827 _ACEOF
25828 cat confdefs.h >>conftest.$ac_ext
25829 cat >>conftest.$ac_ext <<_ACEOF
25830 /* end confdefs.h. */
25832 /* Override any GCC internal prototype to avoid an error.
25833 Use char because int might match the return type of a GCC
25834 builtin and then its argument prototype would still apply. */
25835 #ifdef __cplusplus
25836 extern "C"
25837 #endif
25838 char AuOpenServer ();
25840 main ()
25842 return AuOpenServer ();
25844 return 0;
25846 _ACEOF
25847 rm -f conftest.$ac_objext conftest$ac_exeext
25848 if { (ac_try="$ac_link"
25849 case "(($ac_try" in
25850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25851 *) ac_try_echo=$ac_try;;
25852 esac
25853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25854 (eval "$ac_link") 2>conftest.er1
25855 ac_status=$?
25856 grep -v '^ *+' conftest.er1 >conftest.err
25857 rm -f conftest.er1
25858 cat conftest.err >&5
25859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860 (exit $ac_status); } && {
25861 test -z "$ac_c_werror_flag" ||
25862 test ! -s conftest.err
25863 } && test -s conftest$ac_exeext &&
25864 $as_test_x conftest$ac_exeext; then
25865 ac_cv_lib_audio_AuOpenServer=yes
25866 else
25867 echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25870 ac_cv_lib_audio_AuOpenServer=no
25873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25874 conftest$ac_exeext conftest.$ac_ext
25875 LIBS=$ac_check_lib_save_LIBS
25877 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuOpenServer" >&5
25878 echo "${ECHO_T}$ac_cv_lib_audio_AuOpenServer" >&6; }
25879 if test $ac_cv_lib_audio_AuOpenServer = yes; then
25880 have_audio_lib=yes
25883 if test "${ac_cv_header_nas_audiolib_h+set}" = set; then
25884 { echo "$as_me:$LINENO: checking for nas/audiolib.h" >&5
25885 echo $ECHO_N "checking for nas/audiolib.h... $ECHO_C" >&6; }
25886 if test "${ac_cv_header_nas_audiolib_h+set}" = set; then
25887 echo $ECHO_N "(cached) $ECHO_C" >&6
25889 { echo "$as_me:$LINENO: result: $ac_cv_header_nas_audiolib_h" >&5
25890 echo "${ECHO_T}$ac_cv_header_nas_audiolib_h" >&6; }
25891 else
25892 # Is the header compilable?
25893 { echo "$as_me:$LINENO: checking nas/audiolib.h usability" >&5
25894 echo $ECHO_N "checking nas/audiolib.h usability... $ECHO_C" >&6; }
25895 cat >conftest.$ac_ext <<_ACEOF
25896 /* confdefs.h. */
25897 _ACEOF
25898 cat confdefs.h >>conftest.$ac_ext
25899 cat >>conftest.$ac_ext <<_ACEOF
25900 /* end confdefs.h. */
25901 $ac_includes_default
25902 #include <nas/audiolib.h>
25903 _ACEOF
25904 rm -f conftest.$ac_objext
25905 if { (ac_try="$ac_compile"
25906 case "(($ac_try" in
25907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25908 *) ac_try_echo=$ac_try;;
25909 esac
25910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25911 (eval "$ac_compile") 2>conftest.er1
25912 ac_status=$?
25913 grep -v '^ *+' conftest.er1 >conftest.err
25914 rm -f conftest.er1
25915 cat conftest.err >&5
25916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); } && {
25918 test -z "$ac_c_werror_flag" ||
25919 test ! -s conftest.err
25920 } && test -s conftest.$ac_objext; then
25921 ac_header_compiler=yes
25922 else
25923 echo "$as_me: failed program was:" >&5
25924 sed 's/^/| /' conftest.$ac_ext >&5
25926 ac_header_compiler=no
25929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25931 echo "${ECHO_T}$ac_header_compiler" >&6; }
25933 # Is the header present?
25934 { echo "$as_me:$LINENO: checking nas/audiolib.h presence" >&5
25935 echo $ECHO_N "checking nas/audiolib.h presence... $ECHO_C" >&6; }
25936 cat >conftest.$ac_ext <<_ACEOF
25937 /* confdefs.h. */
25938 _ACEOF
25939 cat confdefs.h >>conftest.$ac_ext
25940 cat >>conftest.$ac_ext <<_ACEOF
25941 /* end confdefs.h. */
25942 #include <nas/audiolib.h>
25943 _ACEOF
25944 if { (ac_try="$ac_cpp conftest.$ac_ext"
25945 case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25948 esac
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25951 ac_status=$?
25952 grep -v '^ *+' conftest.er1 >conftest.err
25953 rm -f conftest.er1
25954 cat conftest.err >&5
25955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); } >/dev/null && {
25957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25958 test ! -s conftest.err
25959 }; then
25960 ac_header_preproc=yes
25961 else
25962 echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25965 ac_header_preproc=no
25968 rm -f conftest.err conftest.$ac_ext
25969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25970 echo "${ECHO_T}$ac_header_preproc" >&6; }
25972 # So? What about this header?
25973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25974 yes:no: )
25975 { echo "$as_me:$LINENO: WARNING: nas/audiolib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25976 echo "$as_me: WARNING: nas/audiolib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25977 { echo "$as_me:$LINENO: WARNING: nas/audiolib.h: proceeding with the compiler's result" >&5
25978 echo "$as_me: WARNING: nas/audiolib.h: proceeding with the compiler's result" >&2;}
25979 ac_header_preproc=yes
25981 no:yes:* )
25982 { echo "$as_me:$LINENO: WARNING: nas/audiolib.h: present but cannot be compiled" >&5
25983 echo "$as_me: WARNING: nas/audiolib.h: present but cannot be compiled" >&2;}
25984 { echo "$as_me:$LINENO: WARNING: nas/audiolib.h: check for missing prerequisite headers?" >&5
25985 echo "$as_me: WARNING: nas/audiolib.h: check for missing prerequisite headers?" >&2;}
25986 { echo "$as_me:$LINENO: WARNING: nas/audiolib.h: see the Autoconf documentation" >&5
25987 echo "$as_me: WARNING: nas/audiolib.h: see the Autoconf documentation" >&2;}
25988 { echo "$as_me:$LINENO: WARNING: nas/audiolib.h: section \"Present But Cannot Be Compiled\"" >&5
25989 echo "$as_me: WARNING: nas/audiolib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25990 { echo "$as_me:$LINENO: WARNING: nas/audiolib.h: proceeding with the preprocessor's result" >&5
25991 echo "$as_me: WARNING: nas/audiolib.h: proceeding with the preprocessor's result" >&2;}
25992 { echo "$as_me:$LINENO: WARNING: nas/audiolib.h: in the future, the compiler will take precedence" >&5
25993 echo "$as_me: WARNING: nas/audiolib.h: in the future, the compiler will take precedence" >&2;}
25996 esac
25997 { echo "$as_me:$LINENO: checking for nas/audiolib.h" >&5
25998 echo $ECHO_N "checking for nas/audiolib.h... $ECHO_C" >&6; }
25999 if test "${ac_cv_header_nas_audiolib_h+set}" = set; then
26000 echo $ECHO_N "(cached) $ECHO_C" >&6
26001 else
26002 ac_cv_header_nas_audiolib_h=$ac_header_preproc
26004 { echo "$as_me:$LINENO: result: $ac_cv_header_nas_audiolib_h" >&5
26005 echo "${ECHO_T}$ac_cv_header_nas_audiolib_h" >&6; }
26008 if test $ac_cv_header_nas_audiolib_h = yes; then
26009 have_nas_hdr=yes
26013 { echo "$as_me:$LINENO: checking for AuOpenServer in -lnas" >&5
26014 echo $ECHO_N "checking for AuOpenServer in -lnas... $ECHO_C" >&6; }
26015 if test "${ac_cv_lib_nas_AuOpenServer+set}" = set; then
26016 echo $ECHO_N "(cached) $ECHO_C" >&6
26017 else
26018 ac_check_lib_save_LIBS=$LIBS
26019 LIBS="-lnas $LIBS"
26020 cat >conftest.$ac_ext <<_ACEOF
26021 /* confdefs.h. */
26022 _ACEOF
26023 cat confdefs.h >>conftest.$ac_ext
26024 cat >>conftest.$ac_ext <<_ACEOF
26025 /* end confdefs.h. */
26027 /* Override any GCC internal prototype to avoid an error.
26028 Use char because int might match the return type of a GCC
26029 builtin and then its argument prototype would still apply. */
26030 #ifdef __cplusplus
26031 extern "C"
26032 #endif
26033 char AuOpenServer ();
26035 main ()
26037 return AuOpenServer ();
26039 return 0;
26041 _ACEOF
26042 rm -f conftest.$ac_objext conftest$ac_exeext
26043 if { (ac_try="$ac_link"
26044 case "(($ac_try" in
26045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26046 *) ac_try_echo=$ac_try;;
26047 esac
26048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26049 (eval "$ac_link") 2>conftest.er1
26050 ac_status=$?
26051 grep -v '^ *+' conftest.er1 >conftest.err
26052 rm -f conftest.er1
26053 cat conftest.err >&5
26054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055 (exit $ac_status); } && {
26056 test -z "$ac_c_werror_flag" ||
26057 test ! -s conftest.err
26058 } && test -s conftest$ac_exeext &&
26059 $as_test_x conftest$ac_exeext; then
26060 ac_cv_lib_nas_AuOpenServer=yes
26061 else
26062 echo "$as_me: failed program was:" >&5
26063 sed 's/^/| /' conftest.$ac_ext >&5
26065 ac_cv_lib_nas_AuOpenServer=no
26068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26069 conftest$ac_exeext conftest.$ac_ext
26070 LIBS=$ac_check_lib_save_LIBS
26072 { echo "$as_me:$LINENO: result: $ac_cv_lib_nas_AuOpenServer" >&5
26073 echo "${ECHO_T}$ac_cv_lib_nas_AuOpenServer" >&6; }
26074 if test $ac_cv_lib_nas_AuOpenServer = yes; then
26075 have_nas_lib=yes
26078 LDFLAGS="$save_LDFLAGS"
26080 { echo "$as_me:$LINENO: checking for NAS audio support" >&5
26081 echo $ECHO_N "checking for NAS audio support... $ECHO_C" >&6; }
26082 have_nas=no
26083 if test x$have_audio_hdr = xyes -a x$have_audio_lib = xyes; then
26084 have_nas=yes
26085 NAS_LIBS="-laudio -lXt"
26086 elif test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
26087 have_nas=yes
26088 NAS_LIBS="-lnas -lXt"
26090 { echo "$as_me:$LINENO: result: $have_nas" >&5
26091 echo "${ECHO_T}$have_nas" >&6; }
26093 if test x$have_nas = xyes; then
26094 cat >>confdefs.h <<\_ACEOF
26095 #define SDL_AUDIO_DRIVER_NAS 1
26096 _ACEOF
26098 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
26099 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
26100 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
26101 have_audio=yes
26106 CheckDiskAudio()
26108 # Check whether --enable-diskaudio was given.
26109 if test "${enable_diskaudio+set}" = set; then
26110 enableval=$enable_diskaudio;
26111 else
26112 enable_diskaudio=yes
26115 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
26116 cat >>confdefs.h <<\_ACEOF
26117 #define SDL_AUDIO_DRIVER_DISK 1
26118 _ACEOF
26120 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
26124 CheckDummyAudio()
26126 # Check whether --enable-dummyaudio was given.
26127 if test "${enable_dummyaudio+set}" = set; then
26128 enableval=$enable_dummyaudio;
26129 else
26130 enable_dummyaudio=yes
26133 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
26134 cat >>confdefs.h <<\_ACEOF
26135 #define SDL_AUDIO_DRIVER_DUMMY 1
26136 _ACEOF
26138 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
26142 CheckAtariAudio()
26144 # Check whether --enable-mintaudio was given.
26145 if test "${enable_mintaudio+set}" = set; then
26146 enableval=$enable_mintaudio;
26147 else
26148 enable_mintaudio=yes
26151 if test x$enable_audio = xyes -a x$enable_mintaudio = xyes; then
26152 mintaudio=no
26153 if test "${ac_cv_header_mint_falcon_h+set}" = set; then
26154 { echo "$as_me:$LINENO: checking for mint/falcon.h" >&5
26155 echo $ECHO_N "checking for mint/falcon.h... $ECHO_C" >&6; }
26156 if test "${ac_cv_header_mint_falcon_h+set}" = set; then
26157 echo $ECHO_N "(cached) $ECHO_C" >&6
26159 { echo "$as_me:$LINENO: result: $ac_cv_header_mint_falcon_h" >&5
26160 echo "${ECHO_T}$ac_cv_header_mint_falcon_h" >&6; }
26161 else
26162 # Is the header compilable?
26163 { echo "$as_me:$LINENO: checking mint/falcon.h usability" >&5
26164 echo $ECHO_N "checking mint/falcon.h usability... $ECHO_C" >&6; }
26165 cat >conftest.$ac_ext <<_ACEOF
26166 /* confdefs.h. */
26167 _ACEOF
26168 cat confdefs.h >>conftest.$ac_ext
26169 cat >>conftest.$ac_ext <<_ACEOF
26170 /* end confdefs.h. */
26171 $ac_includes_default
26172 #include <mint/falcon.h>
26173 _ACEOF
26174 rm -f conftest.$ac_objext
26175 if { (ac_try="$ac_compile"
26176 case "(($ac_try" in
26177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26178 *) ac_try_echo=$ac_try;;
26179 esac
26180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26181 (eval "$ac_compile") 2>conftest.er1
26182 ac_status=$?
26183 grep -v '^ *+' conftest.er1 >conftest.err
26184 rm -f conftest.er1
26185 cat conftest.err >&5
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); } && {
26188 test -z "$ac_c_werror_flag" ||
26189 test ! -s conftest.err
26190 } && test -s conftest.$ac_objext; then
26191 ac_header_compiler=yes
26192 else
26193 echo "$as_me: failed program was:" >&5
26194 sed 's/^/| /' conftest.$ac_ext >&5
26196 ac_header_compiler=no
26199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26201 echo "${ECHO_T}$ac_header_compiler" >&6; }
26203 # Is the header present?
26204 { echo "$as_me:$LINENO: checking mint/falcon.h presence" >&5
26205 echo $ECHO_N "checking mint/falcon.h presence... $ECHO_C" >&6; }
26206 cat >conftest.$ac_ext <<_ACEOF
26207 /* confdefs.h. */
26208 _ACEOF
26209 cat confdefs.h >>conftest.$ac_ext
26210 cat >>conftest.$ac_ext <<_ACEOF
26211 /* end confdefs.h. */
26212 #include <mint/falcon.h>
26213 _ACEOF
26214 if { (ac_try="$ac_cpp conftest.$ac_ext"
26215 case "(($ac_try" in
26216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26217 *) ac_try_echo=$ac_try;;
26218 esac
26219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26221 ac_status=$?
26222 grep -v '^ *+' conftest.er1 >conftest.err
26223 rm -f conftest.er1
26224 cat conftest.err >&5
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); } >/dev/null && {
26227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26228 test ! -s conftest.err
26229 }; then
26230 ac_header_preproc=yes
26231 else
26232 echo "$as_me: failed program was:" >&5
26233 sed 's/^/| /' conftest.$ac_ext >&5
26235 ac_header_preproc=no
26238 rm -f conftest.err conftest.$ac_ext
26239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26240 echo "${ECHO_T}$ac_header_preproc" >&6; }
26242 # So? What about this header?
26243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26244 yes:no: )
26245 { echo "$as_me:$LINENO: WARNING: mint/falcon.h: accepted by the compiler, rejected by the preprocessor!" >&5
26246 echo "$as_me: WARNING: mint/falcon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26247 { echo "$as_me:$LINENO: WARNING: mint/falcon.h: proceeding with the compiler's result" >&5
26248 echo "$as_me: WARNING: mint/falcon.h: proceeding with the compiler's result" >&2;}
26249 ac_header_preproc=yes
26251 no:yes:* )
26252 { echo "$as_me:$LINENO: WARNING: mint/falcon.h: present but cannot be compiled" >&5
26253 echo "$as_me: WARNING: mint/falcon.h: present but cannot be compiled" >&2;}
26254 { echo "$as_me:$LINENO: WARNING: mint/falcon.h: check for missing prerequisite headers?" >&5
26255 echo "$as_me: WARNING: mint/falcon.h: check for missing prerequisite headers?" >&2;}
26256 { echo "$as_me:$LINENO: WARNING: mint/falcon.h: see the Autoconf documentation" >&5
26257 echo "$as_me: WARNING: mint/falcon.h: see the Autoconf documentation" >&2;}
26258 { echo "$as_me:$LINENO: WARNING: mint/falcon.h: section \"Present But Cannot Be Compiled\"" >&5
26259 echo "$as_me: WARNING: mint/falcon.h: section \"Present But Cannot Be Compiled\"" >&2;}
26260 { echo "$as_me:$LINENO: WARNING: mint/falcon.h: proceeding with the preprocessor's result" >&5
26261 echo "$as_me: WARNING: mint/falcon.h: proceeding with the preprocessor's result" >&2;}
26262 { echo "$as_me:$LINENO: WARNING: mint/falcon.h: in the future, the compiler will take precedence" >&5
26263 echo "$as_me: WARNING: mint/falcon.h: in the future, the compiler will take precedence" >&2;}
26266 esac
26267 { echo "$as_me:$LINENO: checking for mint/falcon.h" >&5
26268 echo $ECHO_N "checking for mint/falcon.h... $ECHO_C" >&6; }
26269 if test "${ac_cv_header_mint_falcon_h+set}" = set; then
26270 echo $ECHO_N "(cached) $ECHO_C" >&6
26271 else
26272 ac_cv_header_mint_falcon_h=$ac_header_preproc
26274 { echo "$as_me:$LINENO: result: $ac_cv_header_mint_falcon_h" >&5
26275 echo "${ECHO_T}$ac_cv_header_mint_falcon_h" >&6; }
26278 if test $ac_cv_header_mint_falcon_h = yes; then
26279 have_mint_falcon_hdr=yes
26283 if test x$have_mint_falcon_hdr = xyes; then
26284 mintaudio=yes
26285 cat >>confdefs.h <<\_ACEOF
26286 #define SDL_AUDIO_DRIVER_MINT 1
26287 _ACEOF
26289 SOURCES="$SOURCES $srcdir/src/audio/mint/*.c"
26290 SOURCES="$SOURCES $srcdir/src/audio/mint/*.S"
26291 have_audio=yes
26296 # NASM is available from: http://nasm.sourceforge.net
26297 CheckNASM()
26299 case $host in
26300 i?86*)
26303 # Nope, bail early.
26304 return
26306 esac
26307 # Check whether --enable-nasm was given.
26308 if test "${enable_nasm+set}" = set; then
26309 enableval=$enable_nasm;
26310 else
26311 enable_nasm=yes
26314 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_nasm = xyes; then
26315 CompileNASM()
26317 # Usage: CompileNASM <filename>
26318 { echo "$as_me:$LINENO: checking to see if $NASM supports $1" >&5
26319 echo $ECHO_N "checking to see if $NASM supports $1... $ECHO_C" >&6; }
26320 if $NASM $NASMFLAGS $1 -o $1.o >&5 2>&1; then
26321 CompileNASM_ret="yes"
26322 else
26323 CompileNASM_ret="no"
26325 rm -f $1 $1.o
26326 { echo "$as_me:$LINENO: result: $CompileNASM_ret" >&5
26327 echo "${ECHO_T}$CompileNASM_ret" >&6; }
26328 test "$CompileNASM_ret" = "yes"
26331 if test x"$NASMFLAGS" = x; then
26332 case $ARCH in
26333 win32)
26334 NASMFLAGS="-f win32"
26336 openbsd)
26337 NASMFLAGS="-f aoutb"
26339 macosx)
26340 NASMFLAGS="-f macho"
26343 NASMFLAGS="-f elf"
26345 esac
26348 # Extract the first word of "yasm", so it can be a program name with args.
26349 set dummy yasm; ac_word=$2
26350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26352 if test "${ac_cv_path_NASM+set}" = set; then
26353 echo $ECHO_N "(cached) $ECHO_C" >&6
26354 else
26355 case $NASM in
26356 [\\/]* | ?:[\\/]*)
26357 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
26360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26361 for as_dir in $PATH
26363 IFS=$as_save_IFS
26364 test -z "$as_dir" && as_dir=.
26365 for ac_exec_ext in '' $ac_executable_extensions; do
26366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26367 ac_cv_path_NASM="$as_dir/$ac_word$ac_exec_ext"
26368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26369 break 2
26371 done
26372 done
26373 IFS=$as_save_IFS
26376 esac
26378 NASM=$ac_cv_path_NASM
26379 if test -n "$NASM"; then
26380 { echo "$as_me:$LINENO: result: $NASM" >&5
26381 echo "${ECHO_T}$NASM" >&6; }
26382 else
26383 { echo "$as_me:$LINENO: result: no" >&5
26384 echo "${ECHO_T}no" >&6; }
26388 echo "%ifidn __OUTPUT_FORMAT__,elf" > unquoted-sections
26389 echo "section .note.GNU-stack noalloc noexec nowrite progbits" >> unquoted-sections
26390 echo "%endif" >> unquoted-sections
26391 CompileNASM unquoted-sections || NASM=""
26393 if test "x$NASM" = x -o "x$NASM" = x'"$NASM"'; then
26394 $as_unset ac_cv_path_NASM
26395 # Extract the first word of "nasm", so it can be a program name with args.
26396 set dummy nasm; ac_word=$2
26397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26399 if test "${ac_cv_path_NASM+set}" = set; then
26400 echo $ECHO_N "(cached) $ECHO_C" >&6
26401 else
26402 case $NASM in
26403 [\\/]* | ?:[\\/]*)
26404 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
26407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26408 for as_dir in $PATH
26410 IFS=$as_save_IFS
26411 test -z "$as_dir" && as_dir=.
26412 for ac_exec_ext in '' $ac_executable_extensions; do
26413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26414 ac_cv_path_NASM="$as_dir/$ac_word$ac_exec_ext"
26415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26416 break 2
26418 done
26419 done
26420 IFS=$as_save_IFS
26423 esac
26425 NASM=$ac_cv_path_NASM
26426 if test -n "$NASM"; then
26427 { echo "$as_me:$LINENO: result: $NASM" >&5
26428 echo "${ECHO_T}$NASM" >&6; }
26429 else
26430 { echo "$as_me:$LINENO: result: no" >&5
26431 echo "${ECHO_T}no" >&6; }
26436 if test "x$NASM" != x -a "x$NASM" != x'"$NASM"'; then
26437 cat >>confdefs.h <<\_ACEOF
26438 #define SDL_HERMES_BLITTERS 1
26439 _ACEOF
26441 SOURCES="$SOURCES $srcdir/src/hermes/*.asm"
26442 NASMFLAGS="$NASMFLAGS -I $srcdir/src/hermes/"
26444 echo "GLOBAL _bar:function hidden" > symbol-visibility
26445 echo "_bar:" >> symbol-visibility
26446 CompileNASM symbol-visibility && NASMFLAGS="$NASMFLAGS -DHIDDEN_VISIBILITY"
26451 case "$host" in
26452 # this line is needed for QNX, because it's not defined the __ELF__
26453 *-*-qnx*)
26454 EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";;
26455 *-*-solaris*)
26456 EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";;
26457 esac
26462 CheckAltivec()
26464 # Check whether --enable-altivec was given.
26465 if test "${enable_altivec+set}" = set; then
26466 enableval=$enable_altivec;
26467 else
26468 enable_altivec=yes
26471 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_altivec = xyes; then
26472 have_altivec_h_hdr=no
26473 if test "${ac_cv_header_altivec_h+set}" = set; then
26474 { echo "$as_me:$LINENO: checking for altivec.h" >&5
26475 echo $ECHO_N "checking for altivec.h... $ECHO_C" >&6; }
26476 if test "${ac_cv_header_altivec_h+set}" = set; then
26477 echo $ECHO_N "(cached) $ECHO_C" >&6
26479 { echo "$as_me:$LINENO: result: $ac_cv_header_altivec_h" >&5
26480 echo "${ECHO_T}$ac_cv_header_altivec_h" >&6; }
26481 else
26482 # Is the header compilable?
26483 { echo "$as_me:$LINENO: checking altivec.h usability" >&5
26484 echo $ECHO_N "checking altivec.h usability... $ECHO_C" >&6; }
26485 cat >conftest.$ac_ext <<_ACEOF
26486 /* confdefs.h. */
26487 _ACEOF
26488 cat confdefs.h >>conftest.$ac_ext
26489 cat >>conftest.$ac_ext <<_ACEOF
26490 /* end confdefs.h. */
26491 $ac_includes_default
26492 #include <altivec.h>
26493 _ACEOF
26494 rm -f conftest.$ac_objext
26495 if { (ac_try="$ac_compile"
26496 case "(($ac_try" in
26497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26498 *) ac_try_echo=$ac_try;;
26499 esac
26500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26501 (eval "$ac_compile") 2>conftest.er1
26502 ac_status=$?
26503 grep -v '^ *+' conftest.er1 >conftest.err
26504 rm -f conftest.er1
26505 cat conftest.err >&5
26506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); } && {
26508 test -z "$ac_c_werror_flag" ||
26509 test ! -s conftest.err
26510 } && test -s conftest.$ac_objext; then
26511 ac_header_compiler=yes
26512 else
26513 echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26516 ac_header_compiler=no
26519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26521 echo "${ECHO_T}$ac_header_compiler" >&6; }
26523 # Is the header present?
26524 { echo "$as_me:$LINENO: checking altivec.h presence" >&5
26525 echo $ECHO_N "checking altivec.h presence... $ECHO_C" >&6; }
26526 cat >conftest.$ac_ext <<_ACEOF
26527 /* confdefs.h. */
26528 _ACEOF
26529 cat confdefs.h >>conftest.$ac_ext
26530 cat >>conftest.$ac_ext <<_ACEOF
26531 /* end confdefs.h. */
26532 #include <altivec.h>
26533 _ACEOF
26534 if { (ac_try="$ac_cpp conftest.$ac_ext"
26535 case "(($ac_try" in
26536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26537 *) ac_try_echo=$ac_try;;
26538 esac
26539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26541 ac_status=$?
26542 grep -v '^ *+' conftest.er1 >conftest.err
26543 rm -f conftest.er1
26544 cat conftest.err >&5
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); } >/dev/null && {
26547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26548 test ! -s conftest.err
26549 }; then
26550 ac_header_preproc=yes
26551 else
26552 echo "$as_me: failed program was:" >&5
26553 sed 's/^/| /' conftest.$ac_ext >&5
26555 ac_header_preproc=no
26558 rm -f conftest.err conftest.$ac_ext
26559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26560 echo "${ECHO_T}$ac_header_preproc" >&6; }
26562 # So? What about this header?
26563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26564 yes:no: )
26565 { echo "$as_me:$LINENO: WARNING: altivec.h: accepted by the compiler, rejected by the preprocessor!" >&5
26566 echo "$as_me: WARNING: altivec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26567 { echo "$as_me:$LINENO: WARNING: altivec.h: proceeding with the compiler's result" >&5
26568 echo "$as_me: WARNING: altivec.h: proceeding with the compiler's result" >&2;}
26569 ac_header_preproc=yes
26571 no:yes:* )
26572 { echo "$as_me:$LINENO: WARNING: altivec.h: present but cannot be compiled" >&5
26573 echo "$as_me: WARNING: altivec.h: present but cannot be compiled" >&2;}
26574 { echo "$as_me:$LINENO: WARNING: altivec.h: check for missing prerequisite headers?" >&5
26575 echo "$as_me: WARNING: altivec.h: check for missing prerequisite headers?" >&2;}
26576 { echo "$as_me:$LINENO: WARNING: altivec.h: see the Autoconf documentation" >&5
26577 echo "$as_me: WARNING: altivec.h: see the Autoconf documentation" >&2;}
26578 { echo "$as_me:$LINENO: WARNING: altivec.h: section \"Present But Cannot Be Compiled\"" >&5
26579 echo "$as_me: WARNING: altivec.h: section \"Present But Cannot Be Compiled\"" >&2;}
26580 { echo "$as_me:$LINENO: WARNING: altivec.h: proceeding with the preprocessor's result" >&5
26581 echo "$as_me: WARNING: altivec.h: proceeding with the preprocessor's result" >&2;}
26582 { echo "$as_me:$LINENO: WARNING: altivec.h: in the future, the compiler will take precedence" >&5
26583 echo "$as_me: WARNING: altivec.h: in the future, the compiler will take precedence" >&2;}
26586 esac
26587 { echo "$as_me:$LINENO: checking for altivec.h" >&5
26588 echo $ECHO_N "checking for altivec.h... $ECHO_C" >&6; }
26589 if test "${ac_cv_header_altivec_h+set}" = set; then
26590 echo $ECHO_N "(cached) $ECHO_C" >&6
26591 else
26592 ac_cv_header_altivec_h=$ac_header_preproc
26594 { echo "$as_me:$LINENO: result: $ac_cv_header_altivec_h" >&5
26595 echo "${ECHO_T}$ac_cv_header_altivec_h" >&6; }
26598 if test $ac_cv_header_altivec_h = yes; then
26599 have_altivec_h_hdr=yes
26604 save_CFLAGS="$CFLAGS"
26605 have_gcc_altivec=no
26606 { echo "$as_me:$LINENO: checking for Altivec with GCC -maltivec option" >&5
26607 echo $ECHO_N "checking for Altivec with GCC -maltivec option... $ECHO_C" >&6; }
26608 altivec_CFLAGS="-maltivec"
26609 CFLAGS="$save_CFLAGS $altivec_CFLAGS"
26611 if test x$have_altivec_h_hdr = xyes; then
26612 cat >conftest.$ac_ext <<_ACEOF
26613 /* confdefs.h. */
26614 _ACEOF
26615 cat confdefs.h >>conftest.$ac_ext
26616 cat >>conftest.$ac_ext <<_ACEOF
26617 /* end confdefs.h. */
26619 #include <altivec.h>
26620 vector unsigned int vzero() {
26621 return vec_splat_u32(0);
26625 main ()
26630 return 0;
26632 _ACEOF
26633 rm -f conftest.$ac_objext
26634 if { (ac_try="$ac_compile"
26635 case "(($ac_try" in
26636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26637 *) ac_try_echo=$ac_try;;
26638 esac
26639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26640 (eval "$ac_compile") 2>conftest.er1
26641 ac_status=$?
26642 grep -v '^ *+' conftest.er1 >conftest.err
26643 rm -f conftest.er1
26644 cat conftest.err >&5
26645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); } && {
26647 test -z "$ac_c_werror_flag" ||
26648 test ! -s conftest.err
26649 } && test -s conftest.$ac_objext; then
26651 have_gcc_altivec=yes
26653 else
26654 echo "$as_me: failed program was:" >&5
26655 sed 's/^/| /' conftest.$ac_ext >&5
26660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26661 { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
26662 echo "${ECHO_T}$have_gcc_altivec" >&6; }
26663 else
26664 cat >conftest.$ac_ext <<_ACEOF
26665 /* confdefs.h. */
26666 _ACEOF
26667 cat confdefs.h >>conftest.$ac_ext
26668 cat >>conftest.$ac_ext <<_ACEOF
26669 /* end confdefs.h. */
26671 vector unsigned int vzero() {
26672 return vec_splat_u32(0);
26676 main ()
26681 return 0;
26683 _ACEOF
26684 rm -f conftest.$ac_objext
26685 if { (ac_try="$ac_compile"
26686 case "(($ac_try" in
26687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26688 *) ac_try_echo=$ac_try;;
26689 esac
26690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26691 (eval "$ac_compile") 2>conftest.er1
26692 ac_status=$?
26693 grep -v '^ *+' conftest.er1 >conftest.err
26694 rm -f conftest.er1
26695 cat conftest.err >&5
26696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697 (exit $ac_status); } && {
26698 test -z "$ac_c_werror_flag" ||
26699 test ! -s conftest.err
26700 } && test -s conftest.$ac_objext; then
26702 have_gcc_altivec=yes
26704 else
26705 echo "$as_me: failed program was:" >&5
26706 sed 's/^/| /' conftest.$ac_ext >&5
26711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26712 { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
26713 echo "${ECHO_T}$have_gcc_altivec" >&6; }
26716 if test x$have_gcc_altivec = xno; then
26717 { echo "$as_me:$LINENO: checking for Altivec with GCC -faltivec option" >&5
26718 echo $ECHO_N "checking for Altivec with GCC -faltivec option... $ECHO_C" >&6; }
26719 altivec_CFLAGS="-faltivec"
26720 CFLAGS="$save_CFLAGS $altivec_CFLAGS"
26721 if test x$have_altivec_h_hdr = xyes; then
26722 cat >conftest.$ac_ext <<_ACEOF
26723 /* confdefs.h. */
26724 _ACEOF
26725 cat confdefs.h >>conftest.$ac_ext
26726 cat >>conftest.$ac_ext <<_ACEOF
26727 /* end confdefs.h. */
26729 #include <altivec.h>
26730 vector unsigned int vzero() {
26731 return vec_splat_u32(0);
26735 main ()
26740 return 0;
26742 _ACEOF
26743 rm -f conftest.$ac_objext
26744 if { (ac_try="$ac_compile"
26745 case "(($ac_try" in
26746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26747 *) ac_try_echo=$ac_try;;
26748 esac
26749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26750 (eval "$ac_compile") 2>conftest.er1
26751 ac_status=$?
26752 grep -v '^ *+' conftest.er1 >conftest.err
26753 rm -f conftest.er1
26754 cat conftest.err >&5
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); } && {
26757 test -z "$ac_c_werror_flag" ||
26758 test ! -s conftest.err
26759 } && test -s conftest.$ac_objext; then
26761 have_gcc_altivec=yes
26763 else
26764 echo "$as_me: failed program was:" >&5
26765 sed 's/^/| /' conftest.$ac_ext >&5
26770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26771 { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
26772 echo "${ECHO_T}$have_gcc_altivec" >&6; }
26773 else
26774 cat >conftest.$ac_ext <<_ACEOF
26775 /* confdefs.h. */
26776 _ACEOF
26777 cat confdefs.h >>conftest.$ac_ext
26778 cat >>conftest.$ac_ext <<_ACEOF
26779 /* end confdefs.h. */
26781 vector unsigned int vzero() {
26782 return vec_splat_u32(0);
26786 main ()
26791 return 0;
26793 _ACEOF
26794 rm -f conftest.$ac_objext
26795 if { (ac_try="$ac_compile"
26796 case "(($ac_try" in
26797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26798 *) ac_try_echo=$ac_try;;
26799 esac
26800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26801 (eval "$ac_compile") 2>conftest.er1
26802 ac_status=$?
26803 grep -v '^ *+' conftest.er1 >conftest.err
26804 rm -f conftest.er1
26805 cat conftest.err >&5
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); } && {
26808 test -z "$ac_c_werror_flag" ||
26809 test ! -s conftest.err
26810 } && test -s conftest.$ac_objext; then
26812 have_gcc_altivec=yes
26814 else
26815 echo "$as_me: failed program was:" >&5
26816 sed 's/^/| /' conftest.$ac_ext >&5
26821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26822 { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
26823 echo "${ECHO_T}$have_gcc_altivec" >&6; }
26826 CFLAGS="$save_CFLAGS"
26828 if test x$have_gcc_altivec = xyes; then
26829 cat >>confdefs.h <<\_ACEOF
26830 #define SDL_ALTIVEC_BLITTERS 1
26831 _ACEOF
26833 if test x$have_altivec_h_hdr = xyes; then
26834 cat >>confdefs.h <<\_ACEOF
26835 #define HAVE_ALTIVEC_H 1
26836 _ACEOF
26839 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
26844 CheckVisibilityHidden()
26846 { echo "$as_me:$LINENO: checking for GCC -fvisibility=hidden option" >&5
26847 echo $ECHO_N "checking for GCC -fvisibility=hidden option... $ECHO_C" >&6; }
26848 have_gcc_fvisibility=no
26850 visibility_CFLAGS="-fvisibility=hidden"
26851 save_CFLAGS="$CFLAGS"
26852 CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
26853 cat >conftest.$ac_ext <<_ACEOF
26854 /* confdefs.h. */
26855 _ACEOF
26856 cat confdefs.h >>conftest.$ac_ext
26857 cat >>conftest.$ac_ext <<_ACEOF
26858 /* end confdefs.h. */
26860 #if !defined(__GNUC__) || __GNUC__ < 4
26861 #error SDL only uses visibility attributes in GCC 4 or newer
26862 #endif
26865 main ()
26870 return 0;
26872 _ACEOF
26873 rm -f conftest.$ac_objext
26874 if { (ac_try="$ac_compile"
26875 case "(($ac_try" in
26876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26877 *) ac_try_echo=$ac_try;;
26878 esac
26879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26880 (eval "$ac_compile") 2>conftest.er1
26881 ac_status=$?
26882 grep -v '^ *+' conftest.er1 >conftest.err
26883 rm -f conftest.er1
26884 cat conftest.err >&5
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); } && {
26887 test -z "$ac_c_werror_flag" ||
26888 test ! -s conftest.err
26889 } && test -s conftest.$ac_objext; then
26891 have_gcc_fvisibility=yes
26893 else
26894 echo "$as_me: failed program was:" >&5
26895 sed 's/^/| /' conftest.$ac_ext >&5
26900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26901 { echo "$as_me:$LINENO: result: $have_gcc_fvisibility" >&5
26902 echo "${ECHO_T}$have_gcc_fvisibility" >&6; }
26903 CFLAGS="$save_CFLAGS"
26905 if test x$have_gcc_fvisibility = xyes; then
26906 EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
26911 CheckIPod()
26913 # Check whether --enable-ipod was given.
26914 if test "${enable_ipod+set}" = set; then
26915 enableval=$enable_ipod;
26916 else
26917 enable_ipod=yes
26921 if test x$enable_ipod = xyes; then
26922 EXTRA_CFLAGS="$EXTRA_CFLAGS -DIPOD"
26923 cat >>confdefs.h <<\_ACEOF
26924 #define SDL_VIDEO_DRIVER_IPOD 1
26925 _ACEOF
26927 SOURCES="$SOURCES $srcdir/src/video/ipod/*.c"
26931 CheckNANOX()
26933 # Check whether --enable-video-nanox was given.
26934 if test "${enable_video_nanox+set}" = set; then
26935 enableval=$enable_video_nanox;
26936 else
26937 enable_video_nanox=no
26941 if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then
26942 # Check whether --enable-nanox-debug was given.
26943 if test "${enable_nanox_debug+set}" = set; then
26944 enableval=$enable_nanox_debug;
26945 else
26946 enable_nanox_debug=no
26949 if test x$enable_nanox_debug = xyes; then
26950 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DEBUG"
26953 # Check whether --enable-nanox-share-memory was given.
26954 if test "${enable_nanox_share_memory+set}" = set; then
26955 enableval=$enable_nanox_share_memory;
26956 else
26957 enable_nanox_share_memory=no
26960 if test x$enable_nanox_share_memory = xyes; then
26961 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNANOX_SHARE_MEMORY"
26964 # Check whether --enable-nanox_direct_fb was given.
26965 if test "${enable_nanox_direct_fb+set}" = set; then
26966 enableval=$enable_nanox_direct_fb;
26967 else
26968 enable_nanox_direct_fb=no
26971 if test x$enable_nanox_direct_fb = xyes; then
26972 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DIRECT_FB"
26975 cat >>confdefs.h <<\_ACEOF
26976 #define SDL_VIDEO_DRIVER_NANOX 1
26977 _ACEOF
26979 SOURCES="$SOURCES $srcdir/src/video/nanox/*.c"
26980 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lnano-X"
26981 have_video=yes
26985 CheckX11()
26987 # Check whether --enable-video-x11 was given.
26988 if test "${enable_video_x11+set}" = set; then
26989 enableval=$enable_video_x11;
26990 else
26991 enable_video_x11=yes
26994 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
26995 case "$host" in
26996 *-*-darwin*)
26997 # This isn't necessary for X11, but fixes GLX detection
26998 if test "x$x_includes" = xNONE && test "x$x_libraries" = xNONE; then
26999 x_includes="/usr/X11R6/include"
27000 x_libraries="/usr/X11R6/lib"
27003 esac
27004 { echo "$as_me:$LINENO: checking for X" >&5
27005 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
27008 # Check whether --with-x was given.
27009 if test "${with_x+set}" = set; then
27010 withval=$with_x;
27013 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27014 if test "x$with_x" = xno; then
27015 # The user explicitly disabled X.
27016 have_x=disabled
27017 else
27018 case $x_includes,$x_libraries in #(
27019 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
27020 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
27021 { (exit 1); exit 1; }; };; #(
27022 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
27023 echo $ECHO_N "(cached) $ECHO_C" >&6
27024 else
27025 # One or both of the vars are not set, and there is no cached value.
27026 ac_x_includes=no ac_x_libraries=no
27027 rm -f -r conftest.dir
27028 if mkdir conftest.dir; then
27029 cd conftest.dir
27030 cat >Imakefile <<'_ACEOF'
27031 incroot:
27032 @echo incroot='${INCROOT}'
27033 usrlibdir:
27034 @echo usrlibdir='${USRLIBDIR}'
27035 libdir:
27036 @echo libdir='${LIBDIR}'
27037 _ACEOF
27038 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
27039 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27040 for ac_var in incroot usrlibdir libdir; do
27041 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27042 done
27043 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27044 for ac_extension in a so sl; do
27045 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27046 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27047 ac_im_usrlibdir=$ac_im_libdir; break
27049 done
27050 # Screen out bogus values from the imake configuration. They are
27051 # bogus both because they are the default anyway, and because
27052 # using them would break gcc on systems where it needs fixed includes.
27053 case $ac_im_incroot in
27054 /usr/include) ac_x_includes= ;;
27055 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27056 esac
27057 case $ac_im_usrlibdir in
27058 /usr/lib | /lib) ;;
27059 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27060 esac
27062 cd ..
27063 rm -f -r conftest.dir
27066 # Standard set of common directories for X headers.
27067 # Check X11 before X11Rn because it is often a symlink to the current release.
27068 ac_x_header_dirs='
27069 /usr/X11/include
27070 /usr/X11R6/include
27071 /usr/X11R5/include
27072 /usr/X11R4/include
27074 /usr/include/X11
27075 /usr/include/X11R6
27076 /usr/include/X11R5
27077 /usr/include/X11R4
27079 /usr/local/X11/include
27080 /usr/local/X11R6/include
27081 /usr/local/X11R5/include
27082 /usr/local/X11R4/include
27084 /usr/local/include/X11
27085 /usr/local/include/X11R6
27086 /usr/local/include/X11R5
27087 /usr/local/include/X11R4
27089 /usr/X386/include
27090 /usr/x386/include
27091 /usr/XFree86/include/X11
27093 /usr/include
27094 /usr/local/include
27095 /usr/unsupported/include
27096 /usr/athena/include
27097 /usr/local/x11r5/include
27098 /usr/lpp/Xamples/include
27100 /usr/openwin/include
27101 /usr/openwin/share/include'
27103 if test "$ac_x_includes" = no; then
27104 # Guess where to find include files, by looking for Xlib.h.
27105 # First, try using that file with no special directory specified.
27106 cat >conftest.$ac_ext <<_ACEOF
27107 /* confdefs.h. */
27108 _ACEOF
27109 cat confdefs.h >>conftest.$ac_ext
27110 cat >>conftest.$ac_ext <<_ACEOF
27111 /* end confdefs.h. */
27112 #include <X11/Xlib.h>
27113 _ACEOF
27114 if { (ac_try="$ac_cpp conftest.$ac_ext"
27115 case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27118 esac
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27121 ac_status=$?
27122 grep -v '^ *+' conftest.er1 >conftest.err
27123 rm -f conftest.er1
27124 cat conftest.err >&5
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); } >/dev/null && {
27127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27128 test ! -s conftest.err
27129 }; then
27130 # We can compile using X headers with no special include directory.
27131 ac_x_includes=
27132 else
27133 echo "$as_me: failed program was:" >&5
27134 sed 's/^/| /' conftest.$ac_ext >&5
27136 for ac_dir in $ac_x_header_dirs; do
27137 if test -r "$ac_dir/X11/Xlib.h"; then
27138 ac_x_includes=$ac_dir
27139 break
27141 done
27144 rm -f conftest.err conftest.$ac_ext
27145 fi # $ac_x_includes = no
27147 if test "$ac_x_libraries" = no; then
27148 # Check for the libraries.
27149 # See if we find them without any special options.
27150 # Don't add to $LIBS permanently.
27151 ac_save_LIBS=$LIBS
27152 LIBS="-lX11 $LIBS"
27153 cat >conftest.$ac_ext <<_ACEOF
27154 /* confdefs.h. */
27155 _ACEOF
27156 cat confdefs.h >>conftest.$ac_ext
27157 cat >>conftest.$ac_ext <<_ACEOF
27158 /* end confdefs.h. */
27159 #include <X11/Xlib.h>
27161 main ()
27163 XrmInitialize ()
27165 return 0;
27167 _ACEOF
27168 rm -f conftest.$ac_objext conftest$ac_exeext
27169 if { (ac_try="$ac_link"
27170 case "(($ac_try" in
27171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27172 *) ac_try_echo=$ac_try;;
27173 esac
27174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27175 (eval "$ac_link") 2>conftest.er1
27176 ac_status=$?
27177 grep -v '^ *+' conftest.er1 >conftest.err
27178 rm -f conftest.er1
27179 cat conftest.err >&5
27180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181 (exit $ac_status); } && {
27182 test -z "$ac_c_werror_flag" ||
27183 test ! -s conftest.err
27184 } && test -s conftest$ac_exeext &&
27185 $as_test_x conftest$ac_exeext; then
27186 LIBS=$ac_save_LIBS
27187 # We can link X programs with no special library path.
27188 ac_x_libraries=
27189 else
27190 echo "$as_me: failed program was:" >&5
27191 sed 's/^/| /' conftest.$ac_ext >&5
27193 LIBS=$ac_save_LIBS
27194 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27196 # Don't even attempt the hair of trying to link an X program!
27197 for ac_extension in a so sl; do
27198 if test -r "$ac_dir/libX11.$ac_extension"; then
27199 ac_x_libraries=$ac_dir
27200 break 2
27202 done
27203 done
27206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27207 conftest$ac_exeext conftest.$ac_ext
27208 fi # $ac_x_libraries = no
27210 case $ac_x_includes,$ac_x_libraries in #(
27211 no,* | *,no | *\'*)
27212 # Didn't find X, or a directory has "'" in its name.
27213 ac_cv_have_x="have_x=no";; #(
27215 # Record where we found X for the cache.
27216 ac_cv_have_x="have_x=yes\
27217 ac_x_includes='$ac_x_includes'\
27218 ac_x_libraries='$ac_x_libraries'"
27219 esac
27221 ;; #(
27222 *) have_x=yes;;
27223 esac
27224 eval "$ac_cv_have_x"
27225 fi # $with_x != no
27227 if test "$have_x" != yes; then
27228 { echo "$as_me:$LINENO: result: $have_x" >&5
27229 echo "${ECHO_T}$have_x" >&6; }
27230 no_x=yes
27231 else
27232 # If each of the values was on the command line, it overrides each guess.
27233 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27234 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27235 # Update the cache value to reflect the command line values.
27236 ac_cv_have_x="have_x=yes\
27237 ac_x_includes='$x_includes'\
27238 ac_x_libraries='$x_libraries'"
27239 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
27240 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
27243 if test "$no_x" = yes; then
27244 # Not all programs may use this symbol, but it does not hurt to define it.
27246 cat >>confdefs.h <<\_ACEOF
27247 #define X_DISPLAY_MISSING 1
27248 _ACEOF
27250 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27251 else
27252 if test -n "$x_includes"; then
27253 X_CFLAGS="$X_CFLAGS -I$x_includes"
27256 # It would also be nice to do this for all -L options, not just this one.
27257 if test -n "$x_libraries"; then
27258 X_LIBS="$X_LIBS -L$x_libraries"
27259 # For Solaris; some versions of Sun CC require a space after -R and
27260 # others require no space. Words are not sufficient . . . .
27261 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27262 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
27263 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27264 ac_xsave_c_werror_flag=$ac_c_werror_flag
27265 ac_c_werror_flag=yes
27266 cat >conftest.$ac_ext <<_ACEOF
27267 /* confdefs.h. */
27268 _ACEOF
27269 cat confdefs.h >>conftest.$ac_ext
27270 cat >>conftest.$ac_ext <<_ACEOF
27271 /* end confdefs.h. */
27274 main ()
27278 return 0;
27280 _ACEOF
27281 rm -f conftest.$ac_objext conftest$ac_exeext
27282 if { (ac_try="$ac_link"
27283 case "(($ac_try" in
27284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27285 *) ac_try_echo=$ac_try;;
27286 esac
27287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27288 (eval "$ac_link") 2>conftest.er1
27289 ac_status=$?
27290 grep -v '^ *+' conftest.er1 >conftest.err
27291 rm -f conftest.er1
27292 cat conftest.err >&5
27293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294 (exit $ac_status); } && {
27295 test -z "$ac_c_werror_flag" ||
27296 test ! -s conftest.err
27297 } && test -s conftest$ac_exeext &&
27298 $as_test_x conftest$ac_exeext; then
27299 { echo "$as_me:$LINENO: result: no" >&5
27300 echo "${ECHO_T}no" >&6; }
27301 X_LIBS="$X_LIBS -R$x_libraries"
27302 else
27303 echo "$as_me: failed program was:" >&5
27304 sed 's/^/| /' conftest.$ac_ext >&5
27306 LIBS="$ac_xsave_LIBS -R $x_libraries"
27307 cat >conftest.$ac_ext <<_ACEOF
27308 /* confdefs.h. */
27309 _ACEOF
27310 cat confdefs.h >>conftest.$ac_ext
27311 cat >>conftest.$ac_ext <<_ACEOF
27312 /* end confdefs.h. */
27315 main ()
27319 return 0;
27321 _ACEOF
27322 rm -f conftest.$ac_objext conftest$ac_exeext
27323 if { (ac_try="$ac_link"
27324 case "(($ac_try" in
27325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326 *) ac_try_echo=$ac_try;;
27327 esac
27328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329 (eval "$ac_link") 2>conftest.er1
27330 ac_status=$?
27331 grep -v '^ *+' conftest.er1 >conftest.err
27332 rm -f conftest.er1
27333 cat conftest.err >&5
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); } && {
27336 test -z "$ac_c_werror_flag" ||
27337 test ! -s conftest.err
27338 } && test -s conftest$ac_exeext &&
27339 $as_test_x conftest$ac_exeext; then
27340 { echo "$as_me:$LINENO: result: yes" >&5
27341 echo "${ECHO_T}yes" >&6; }
27342 X_LIBS="$X_LIBS -R $x_libraries"
27343 else
27344 echo "$as_me: failed program was:" >&5
27345 sed 's/^/| /' conftest.$ac_ext >&5
27347 { echo "$as_me:$LINENO: result: neither works" >&5
27348 echo "${ECHO_T}neither works" >&6; }
27351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27352 conftest$ac_exeext conftest.$ac_ext
27355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27356 conftest$ac_exeext conftest.$ac_ext
27357 ac_c_werror_flag=$ac_xsave_c_werror_flag
27358 LIBS=$ac_xsave_LIBS
27361 # Check for system-dependent libraries X programs must link with.
27362 # Do this before checking for the system-independent R6 libraries
27363 # (-lICE), since we may need -lsocket or whatever for X linking.
27365 if test "$ISC" = yes; then
27366 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27367 else
27368 # Martyn Johnson says this is needed for Ultrix, if the X
27369 # libraries were built with DECnet support. And Karl Berry says
27370 # the Alpha needs dnet_stub (dnet does not exist).
27371 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27372 cat >conftest.$ac_ext <<_ACEOF
27373 /* confdefs.h. */
27374 _ACEOF
27375 cat confdefs.h >>conftest.$ac_ext
27376 cat >>conftest.$ac_ext <<_ACEOF
27377 /* end confdefs.h. */
27379 /* Override any GCC internal prototype to avoid an error.
27380 Use char because int might match the return type of a GCC
27381 builtin and then its argument prototype would still apply. */
27382 #ifdef __cplusplus
27383 extern "C"
27384 #endif
27385 char XOpenDisplay ();
27387 main ()
27389 return XOpenDisplay ();
27391 return 0;
27393 _ACEOF
27394 rm -f conftest.$ac_objext conftest$ac_exeext
27395 if { (ac_try="$ac_link"
27396 case "(($ac_try" in
27397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27398 *) ac_try_echo=$ac_try;;
27399 esac
27400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27401 (eval "$ac_link") 2>conftest.er1
27402 ac_status=$?
27403 grep -v '^ *+' conftest.er1 >conftest.err
27404 rm -f conftest.er1
27405 cat conftest.err >&5
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); } && {
27408 test -z "$ac_c_werror_flag" ||
27409 test ! -s conftest.err
27410 } && test -s conftest$ac_exeext &&
27411 $as_test_x conftest$ac_exeext; then
27413 else
27414 echo "$as_me: failed program was:" >&5
27415 sed 's/^/| /' conftest.$ac_ext >&5
27417 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27418 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
27419 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27420 echo $ECHO_N "(cached) $ECHO_C" >&6
27421 else
27422 ac_check_lib_save_LIBS=$LIBS
27423 LIBS="-ldnet $LIBS"
27424 cat >conftest.$ac_ext <<_ACEOF
27425 /* confdefs.h. */
27426 _ACEOF
27427 cat confdefs.h >>conftest.$ac_ext
27428 cat >>conftest.$ac_ext <<_ACEOF
27429 /* end confdefs.h. */
27431 /* Override any GCC internal prototype to avoid an error.
27432 Use char because int might match the return type of a GCC
27433 builtin and then its argument prototype would still apply. */
27434 #ifdef __cplusplus
27435 extern "C"
27436 #endif
27437 char dnet_ntoa ();
27439 main ()
27441 return dnet_ntoa ();
27443 return 0;
27445 _ACEOF
27446 rm -f conftest.$ac_objext conftest$ac_exeext
27447 if { (ac_try="$ac_link"
27448 case "(($ac_try" in
27449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27450 *) ac_try_echo=$ac_try;;
27451 esac
27452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453 (eval "$ac_link") 2>conftest.er1
27454 ac_status=$?
27455 grep -v '^ *+' conftest.er1 >conftest.err
27456 rm -f conftest.er1
27457 cat conftest.err >&5
27458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459 (exit $ac_status); } && {
27460 test -z "$ac_c_werror_flag" ||
27461 test ! -s conftest.err
27462 } && test -s conftest$ac_exeext &&
27463 $as_test_x conftest$ac_exeext; then
27464 ac_cv_lib_dnet_dnet_ntoa=yes
27465 else
27466 echo "$as_me: failed program was:" >&5
27467 sed 's/^/| /' conftest.$ac_ext >&5
27469 ac_cv_lib_dnet_dnet_ntoa=no
27472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27473 conftest$ac_exeext conftest.$ac_ext
27474 LIBS=$ac_check_lib_save_LIBS
27476 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27477 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
27478 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27479 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27482 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27483 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27484 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
27485 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27486 echo $ECHO_N "(cached) $ECHO_C" >&6
27487 else
27488 ac_check_lib_save_LIBS=$LIBS
27489 LIBS="-ldnet_stub $LIBS"
27490 cat >conftest.$ac_ext <<_ACEOF
27491 /* confdefs.h. */
27492 _ACEOF
27493 cat confdefs.h >>conftest.$ac_ext
27494 cat >>conftest.$ac_ext <<_ACEOF
27495 /* end confdefs.h. */
27497 /* Override any GCC internal prototype to avoid an error.
27498 Use char because int might match the return type of a GCC
27499 builtin and then its argument prototype would still apply. */
27500 #ifdef __cplusplus
27501 extern "C"
27502 #endif
27503 char dnet_ntoa ();
27505 main ()
27507 return dnet_ntoa ();
27509 return 0;
27511 _ACEOF
27512 rm -f conftest.$ac_objext conftest$ac_exeext
27513 if { (ac_try="$ac_link"
27514 case "(($ac_try" in
27515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516 *) ac_try_echo=$ac_try;;
27517 esac
27518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27519 (eval "$ac_link") 2>conftest.er1
27520 ac_status=$?
27521 grep -v '^ *+' conftest.er1 >conftest.err
27522 rm -f conftest.er1
27523 cat conftest.err >&5
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); } && {
27526 test -z "$ac_c_werror_flag" ||
27527 test ! -s conftest.err
27528 } && test -s conftest$ac_exeext &&
27529 $as_test_x conftest$ac_exeext; then
27530 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27531 else
27532 echo "$as_me: failed program was:" >&5
27533 sed 's/^/| /' conftest.$ac_ext >&5
27535 ac_cv_lib_dnet_stub_dnet_ntoa=no
27538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27539 conftest$ac_exeext conftest.$ac_ext
27540 LIBS=$ac_check_lib_save_LIBS
27542 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27543 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
27544 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27545 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27552 conftest$ac_exeext conftest.$ac_ext
27553 LIBS="$ac_xsave_LIBS"
27555 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27556 # to get the SysV transport functions.
27557 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27558 # needs -lnsl.
27559 # The nsl library prevents programs from opening the X display
27560 # on Irix 5.2, according to T.E. Dickey.
27561 # The functions gethostbyname, getservbyname, and inet_addr are
27562 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27563 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
27564 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
27565 if test "${ac_cv_func_gethostbyname+set}" = set; then
27566 echo $ECHO_N "(cached) $ECHO_C" >&6
27567 else
27568 cat >conftest.$ac_ext <<_ACEOF
27569 /* confdefs.h. */
27570 _ACEOF
27571 cat confdefs.h >>conftest.$ac_ext
27572 cat >>conftest.$ac_ext <<_ACEOF
27573 /* end confdefs.h. */
27574 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27576 #define gethostbyname innocuous_gethostbyname
27578 /* System header to define __stub macros and hopefully few prototypes,
27579 which can conflict with char gethostbyname (); below.
27580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27581 <limits.h> exists even on freestanding compilers. */
27583 #ifdef __STDC__
27584 # include <limits.h>
27585 #else
27586 # include <assert.h>
27587 #endif
27589 #undef gethostbyname
27591 /* Override any GCC internal prototype to avoid an error.
27592 Use char because int might match the return type of a GCC
27593 builtin and then its argument prototype would still apply. */
27594 #ifdef __cplusplus
27595 extern "C"
27596 #endif
27597 char gethostbyname ();
27598 /* The GNU C library defines this for functions which it implements
27599 to always fail with ENOSYS. Some functions are actually named
27600 something starting with __ and the normal name is an alias. */
27601 #if defined __stub_gethostbyname || defined __stub___gethostbyname
27602 choke me
27603 #endif
27606 main ()
27608 return gethostbyname ();
27610 return 0;
27612 _ACEOF
27613 rm -f conftest.$ac_objext conftest$ac_exeext
27614 if { (ac_try="$ac_link"
27615 case "(($ac_try" in
27616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617 *) ac_try_echo=$ac_try;;
27618 esac
27619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620 (eval "$ac_link") 2>conftest.er1
27621 ac_status=$?
27622 grep -v '^ *+' conftest.er1 >conftest.err
27623 rm -f conftest.er1
27624 cat conftest.err >&5
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); } && {
27627 test -z "$ac_c_werror_flag" ||
27628 test ! -s conftest.err
27629 } && test -s conftest$ac_exeext &&
27630 $as_test_x conftest$ac_exeext; then
27631 ac_cv_func_gethostbyname=yes
27632 else
27633 echo "$as_me: failed program was:" >&5
27634 sed 's/^/| /' conftest.$ac_ext >&5
27636 ac_cv_func_gethostbyname=no
27639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27640 conftest$ac_exeext conftest.$ac_ext
27642 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
27643 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
27645 if test $ac_cv_func_gethostbyname = no; then
27646 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
27647 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
27648 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
27649 echo $ECHO_N "(cached) $ECHO_C" >&6
27650 else
27651 ac_check_lib_save_LIBS=$LIBS
27652 LIBS="-lnsl $LIBS"
27653 cat >conftest.$ac_ext <<_ACEOF
27654 /* confdefs.h. */
27655 _ACEOF
27656 cat confdefs.h >>conftest.$ac_ext
27657 cat >>conftest.$ac_ext <<_ACEOF
27658 /* end confdefs.h. */
27660 /* Override any GCC internal prototype to avoid an error.
27661 Use char because int might match the return type of a GCC
27662 builtin and then its argument prototype would still apply. */
27663 #ifdef __cplusplus
27664 extern "C"
27665 #endif
27666 char gethostbyname ();
27668 main ()
27670 return gethostbyname ();
27672 return 0;
27674 _ACEOF
27675 rm -f conftest.$ac_objext conftest$ac_exeext
27676 if { (ac_try="$ac_link"
27677 case "(($ac_try" in
27678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679 *) ac_try_echo=$ac_try;;
27680 esac
27681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682 (eval "$ac_link") 2>conftest.er1
27683 ac_status=$?
27684 grep -v '^ *+' conftest.er1 >conftest.err
27685 rm -f conftest.er1
27686 cat conftest.err >&5
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); } && {
27689 test -z "$ac_c_werror_flag" ||
27690 test ! -s conftest.err
27691 } && test -s conftest$ac_exeext &&
27692 $as_test_x conftest$ac_exeext; then
27693 ac_cv_lib_nsl_gethostbyname=yes
27694 else
27695 echo "$as_me: failed program was:" >&5
27696 sed 's/^/| /' conftest.$ac_ext >&5
27698 ac_cv_lib_nsl_gethostbyname=no
27701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27702 conftest$ac_exeext conftest.$ac_ext
27703 LIBS=$ac_check_lib_save_LIBS
27705 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
27706 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
27707 if test $ac_cv_lib_nsl_gethostbyname = yes; then
27708 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27711 if test $ac_cv_lib_nsl_gethostbyname = no; then
27712 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
27713 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
27714 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
27715 echo $ECHO_N "(cached) $ECHO_C" >&6
27716 else
27717 ac_check_lib_save_LIBS=$LIBS
27718 LIBS="-lbsd $LIBS"
27719 cat >conftest.$ac_ext <<_ACEOF
27720 /* confdefs.h. */
27721 _ACEOF
27722 cat confdefs.h >>conftest.$ac_ext
27723 cat >>conftest.$ac_ext <<_ACEOF
27724 /* end confdefs.h. */
27726 /* Override any GCC internal prototype to avoid an error.
27727 Use char because int might match the return type of a GCC
27728 builtin and then its argument prototype would still apply. */
27729 #ifdef __cplusplus
27730 extern "C"
27731 #endif
27732 char gethostbyname ();
27734 main ()
27736 return gethostbyname ();
27738 return 0;
27740 _ACEOF
27741 rm -f conftest.$ac_objext conftest$ac_exeext
27742 if { (ac_try="$ac_link"
27743 case "(($ac_try" in
27744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745 *) ac_try_echo=$ac_try;;
27746 esac
27747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27748 (eval "$ac_link") 2>conftest.er1
27749 ac_status=$?
27750 grep -v '^ *+' conftest.er1 >conftest.err
27751 rm -f conftest.er1
27752 cat conftest.err >&5
27753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754 (exit $ac_status); } && {
27755 test -z "$ac_c_werror_flag" ||
27756 test ! -s conftest.err
27757 } && test -s conftest$ac_exeext &&
27758 $as_test_x conftest$ac_exeext; then
27759 ac_cv_lib_bsd_gethostbyname=yes
27760 else
27761 echo "$as_me: failed program was:" >&5
27762 sed 's/^/| /' conftest.$ac_ext >&5
27764 ac_cv_lib_bsd_gethostbyname=no
27767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27768 conftest$ac_exeext conftest.$ac_ext
27769 LIBS=$ac_check_lib_save_LIBS
27771 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
27772 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
27773 if test $ac_cv_lib_bsd_gethostbyname = yes; then
27774 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27780 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27781 # socket/setsockopt and other routines are undefined under SCO ODT
27782 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27783 # on later versions), says Simon Leinen: it contains gethostby*
27784 # variants that don't use the name server (or something). -lsocket
27785 # must be given before -lnsl if both are needed. We assume that
27786 # if connect needs -lnsl, so does gethostbyname.
27787 { echo "$as_me:$LINENO: checking for connect" >&5
27788 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
27789 if test "${ac_cv_func_connect+set}" = set; then
27790 echo $ECHO_N "(cached) $ECHO_C" >&6
27791 else
27792 cat >conftest.$ac_ext <<_ACEOF
27793 /* confdefs.h. */
27794 _ACEOF
27795 cat confdefs.h >>conftest.$ac_ext
27796 cat >>conftest.$ac_ext <<_ACEOF
27797 /* end confdefs.h. */
27798 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
27799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27800 #define connect innocuous_connect
27802 /* System header to define __stub macros and hopefully few prototypes,
27803 which can conflict with char connect (); below.
27804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27805 <limits.h> exists even on freestanding compilers. */
27807 #ifdef __STDC__
27808 # include <limits.h>
27809 #else
27810 # include <assert.h>
27811 #endif
27813 #undef connect
27815 /* Override any GCC internal prototype to avoid an error.
27816 Use char because int might match the return type of a GCC
27817 builtin and then its argument prototype would still apply. */
27818 #ifdef __cplusplus
27819 extern "C"
27820 #endif
27821 char connect ();
27822 /* The GNU C library defines this for functions which it implements
27823 to always fail with ENOSYS. Some functions are actually named
27824 something starting with __ and the normal name is an alias. */
27825 #if defined __stub_connect || defined __stub___connect
27826 choke me
27827 #endif
27830 main ()
27832 return connect ();
27834 return 0;
27836 _ACEOF
27837 rm -f conftest.$ac_objext conftest$ac_exeext
27838 if { (ac_try="$ac_link"
27839 case "(($ac_try" in
27840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27841 *) ac_try_echo=$ac_try;;
27842 esac
27843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27844 (eval "$ac_link") 2>conftest.er1
27845 ac_status=$?
27846 grep -v '^ *+' conftest.er1 >conftest.err
27847 rm -f conftest.er1
27848 cat conftest.err >&5
27849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850 (exit $ac_status); } && {
27851 test -z "$ac_c_werror_flag" ||
27852 test ! -s conftest.err
27853 } && test -s conftest$ac_exeext &&
27854 $as_test_x conftest$ac_exeext; then
27855 ac_cv_func_connect=yes
27856 else
27857 echo "$as_me: failed program was:" >&5
27858 sed 's/^/| /' conftest.$ac_ext >&5
27860 ac_cv_func_connect=no
27863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27864 conftest$ac_exeext conftest.$ac_ext
27866 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27867 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
27869 if test $ac_cv_func_connect = no; then
27870 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27871 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
27872 if test "${ac_cv_lib_socket_connect+set}" = set; then
27873 echo $ECHO_N "(cached) $ECHO_C" >&6
27874 else
27875 ac_check_lib_save_LIBS=$LIBS
27876 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27877 cat >conftest.$ac_ext <<_ACEOF
27878 /* confdefs.h. */
27879 _ACEOF
27880 cat confdefs.h >>conftest.$ac_ext
27881 cat >>conftest.$ac_ext <<_ACEOF
27882 /* end confdefs.h. */
27884 /* Override any GCC internal prototype to avoid an error.
27885 Use char because int might match the return type of a GCC
27886 builtin and then its argument prototype would still apply. */
27887 #ifdef __cplusplus
27888 extern "C"
27889 #endif
27890 char connect ();
27892 main ()
27894 return connect ();
27896 return 0;
27898 _ACEOF
27899 rm -f conftest.$ac_objext conftest$ac_exeext
27900 if { (ac_try="$ac_link"
27901 case "(($ac_try" in
27902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27903 *) ac_try_echo=$ac_try;;
27904 esac
27905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27906 (eval "$ac_link") 2>conftest.er1
27907 ac_status=$?
27908 grep -v '^ *+' conftest.er1 >conftest.err
27909 rm -f conftest.er1
27910 cat conftest.err >&5
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); } && {
27913 test -z "$ac_c_werror_flag" ||
27914 test ! -s conftest.err
27915 } && test -s conftest$ac_exeext &&
27916 $as_test_x conftest$ac_exeext; then
27917 ac_cv_lib_socket_connect=yes
27918 else
27919 echo "$as_me: failed program was:" >&5
27920 sed 's/^/| /' conftest.$ac_ext >&5
27922 ac_cv_lib_socket_connect=no
27925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27926 conftest$ac_exeext conftest.$ac_ext
27927 LIBS=$ac_check_lib_save_LIBS
27929 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27930 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
27931 if test $ac_cv_lib_socket_connect = yes; then
27932 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27937 # Guillermo Gomez says -lposix is necessary on A/UX.
27938 { echo "$as_me:$LINENO: checking for remove" >&5
27939 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
27940 if test "${ac_cv_func_remove+set}" = set; then
27941 echo $ECHO_N "(cached) $ECHO_C" >&6
27942 else
27943 cat >conftest.$ac_ext <<_ACEOF
27944 /* confdefs.h. */
27945 _ACEOF
27946 cat confdefs.h >>conftest.$ac_ext
27947 cat >>conftest.$ac_ext <<_ACEOF
27948 /* end confdefs.h. */
27949 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
27950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27951 #define remove innocuous_remove
27953 /* System header to define __stub macros and hopefully few prototypes,
27954 which can conflict with char remove (); below.
27955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27956 <limits.h> exists even on freestanding compilers. */
27958 #ifdef __STDC__
27959 # include <limits.h>
27960 #else
27961 # include <assert.h>
27962 #endif
27964 #undef remove
27966 /* Override any GCC internal prototype to avoid an error.
27967 Use char because int might match the return type of a GCC
27968 builtin and then its argument prototype would still apply. */
27969 #ifdef __cplusplus
27970 extern "C"
27971 #endif
27972 char remove ();
27973 /* The GNU C library defines this for functions which it implements
27974 to always fail with ENOSYS. Some functions are actually named
27975 something starting with __ and the normal name is an alias. */
27976 #if defined __stub_remove || defined __stub___remove
27977 choke me
27978 #endif
27981 main ()
27983 return remove ();
27985 return 0;
27987 _ACEOF
27988 rm -f conftest.$ac_objext conftest$ac_exeext
27989 if { (ac_try="$ac_link"
27990 case "(($ac_try" in
27991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27992 *) ac_try_echo=$ac_try;;
27993 esac
27994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27995 (eval "$ac_link") 2>conftest.er1
27996 ac_status=$?
27997 grep -v '^ *+' conftest.er1 >conftest.err
27998 rm -f conftest.er1
27999 cat conftest.err >&5
28000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001 (exit $ac_status); } && {
28002 test -z "$ac_c_werror_flag" ||
28003 test ! -s conftest.err
28004 } && test -s conftest$ac_exeext &&
28005 $as_test_x conftest$ac_exeext; then
28006 ac_cv_func_remove=yes
28007 else
28008 echo "$as_me: failed program was:" >&5
28009 sed 's/^/| /' conftest.$ac_ext >&5
28011 ac_cv_func_remove=no
28014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28015 conftest$ac_exeext conftest.$ac_ext
28017 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28018 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
28020 if test $ac_cv_func_remove = no; then
28021 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28022 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
28023 if test "${ac_cv_lib_posix_remove+set}" = set; then
28024 echo $ECHO_N "(cached) $ECHO_C" >&6
28025 else
28026 ac_check_lib_save_LIBS=$LIBS
28027 LIBS="-lposix $LIBS"
28028 cat >conftest.$ac_ext <<_ACEOF
28029 /* confdefs.h. */
28030 _ACEOF
28031 cat confdefs.h >>conftest.$ac_ext
28032 cat >>conftest.$ac_ext <<_ACEOF
28033 /* end confdefs.h. */
28035 /* Override any GCC internal prototype to avoid an error.
28036 Use char because int might match the return type of a GCC
28037 builtin and then its argument prototype would still apply. */
28038 #ifdef __cplusplus
28039 extern "C"
28040 #endif
28041 char remove ();
28043 main ()
28045 return remove ();
28047 return 0;
28049 _ACEOF
28050 rm -f conftest.$ac_objext conftest$ac_exeext
28051 if { (ac_try="$ac_link"
28052 case "(($ac_try" in
28053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054 *) ac_try_echo=$ac_try;;
28055 esac
28056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057 (eval "$ac_link") 2>conftest.er1
28058 ac_status=$?
28059 grep -v '^ *+' conftest.er1 >conftest.err
28060 rm -f conftest.er1
28061 cat conftest.err >&5
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); } && {
28064 test -z "$ac_c_werror_flag" ||
28065 test ! -s conftest.err
28066 } && test -s conftest$ac_exeext &&
28067 $as_test_x conftest$ac_exeext; then
28068 ac_cv_lib_posix_remove=yes
28069 else
28070 echo "$as_me: failed program was:" >&5
28071 sed 's/^/| /' conftest.$ac_ext >&5
28073 ac_cv_lib_posix_remove=no
28076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28077 conftest$ac_exeext conftest.$ac_ext
28078 LIBS=$ac_check_lib_save_LIBS
28080 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28081 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
28082 if test $ac_cv_lib_posix_remove = yes; then
28083 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28088 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28089 { echo "$as_me:$LINENO: checking for shmat" >&5
28090 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
28091 if test "${ac_cv_func_shmat+set}" = set; then
28092 echo $ECHO_N "(cached) $ECHO_C" >&6
28093 else
28094 cat >conftest.$ac_ext <<_ACEOF
28095 /* confdefs.h. */
28096 _ACEOF
28097 cat confdefs.h >>conftest.$ac_ext
28098 cat >>conftest.$ac_ext <<_ACEOF
28099 /* end confdefs.h. */
28100 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28102 #define shmat innocuous_shmat
28104 /* System header to define __stub macros and hopefully few prototypes,
28105 which can conflict with char shmat (); below.
28106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28107 <limits.h> exists even on freestanding compilers. */
28109 #ifdef __STDC__
28110 # include <limits.h>
28111 #else
28112 # include <assert.h>
28113 #endif
28115 #undef shmat
28117 /* Override any GCC internal prototype to avoid an error.
28118 Use char because int might match the return type of a GCC
28119 builtin and then its argument prototype would still apply. */
28120 #ifdef __cplusplus
28121 extern "C"
28122 #endif
28123 char shmat ();
28124 /* The GNU C library defines this for functions which it implements
28125 to always fail with ENOSYS. Some functions are actually named
28126 something starting with __ and the normal name is an alias. */
28127 #if defined __stub_shmat || defined __stub___shmat
28128 choke me
28129 #endif
28132 main ()
28134 return shmat ();
28136 return 0;
28138 _ACEOF
28139 rm -f conftest.$ac_objext conftest$ac_exeext
28140 if { (ac_try="$ac_link"
28141 case "(($ac_try" in
28142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28143 *) ac_try_echo=$ac_try;;
28144 esac
28145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28146 (eval "$ac_link") 2>conftest.er1
28147 ac_status=$?
28148 grep -v '^ *+' conftest.er1 >conftest.err
28149 rm -f conftest.er1
28150 cat conftest.err >&5
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); } && {
28153 test -z "$ac_c_werror_flag" ||
28154 test ! -s conftest.err
28155 } && test -s conftest$ac_exeext &&
28156 $as_test_x conftest$ac_exeext; then
28157 ac_cv_func_shmat=yes
28158 else
28159 echo "$as_me: failed program was:" >&5
28160 sed 's/^/| /' conftest.$ac_ext >&5
28162 ac_cv_func_shmat=no
28165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28166 conftest$ac_exeext conftest.$ac_ext
28168 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28169 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
28171 if test $ac_cv_func_shmat = no; then
28172 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28173 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
28174 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28175 echo $ECHO_N "(cached) $ECHO_C" >&6
28176 else
28177 ac_check_lib_save_LIBS=$LIBS
28178 LIBS="-lipc $LIBS"
28179 cat >conftest.$ac_ext <<_ACEOF
28180 /* confdefs.h. */
28181 _ACEOF
28182 cat confdefs.h >>conftest.$ac_ext
28183 cat >>conftest.$ac_ext <<_ACEOF
28184 /* end confdefs.h. */
28186 /* Override any GCC internal prototype to avoid an error.
28187 Use char because int might match the return type of a GCC
28188 builtin and then its argument prototype would still apply. */
28189 #ifdef __cplusplus
28190 extern "C"
28191 #endif
28192 char shmat ();
28194 main ()
28196 return shmat ();
28198 return 0;
28200 _ACEOF
28201 rm -f conftest.$ac_objext conftest$ac_exeext
28202 if { (ac_try="$ac_link"
28203 case "(($ac_try" in
28204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28205 *) ac_try_echo=$ac_try;;
28206 esac
28207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28208 (eval "$ac_link") 2>conftest.er1
28209 ac_status=$?
28210 grep -v '^ *+' conftest.er1 >conftest.err
28211 rm -f conftest.er1
28212 cat conftest.err >&5
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); } && {
28215 test -z "$ac_c_werror_flag" ||
28216 test ! -s conftest.err
28217 } && test -s conftest$ac_exeext &&
28218 $as_test_x conftest$ac_exeext; then
28219 ac_cv_lib_ipc_shmat=yes
28220 else
28221 echo "$as_me: failed program was:" >&5
28222 sed 's/^/| /' conftest.$ac_ext >&5
28224 ac_cv_lib_ipc_shmat=no
28227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28228 conftest$ac_exeext conftest.$ac_ext
28229 LIBS=$ac_check_lib_save_LIBS
28231 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28232 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
28233 if test $ac_cv_lib_ipc_shmat = yes; then
28234 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28240 # Check for libraries that X11R6 Xt/Xaw programs need.
28241 ac_save_LDFLAGS=$LDFLAGS
28242 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28243 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28244 # check for ICE first), but we must link in the order -lSM -lICE or
28245 # we get undefined symbols. So assume we have SM if we have ICE.
28246 # These have to be linked with before -lX11, unlike the other
28247 # libraries we check for below, so use a different variable.
28248 # John Interrante, Karl Berry
28249 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28250 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
28251 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28252 echo $ECHO_N "(cached) $ECHO_C" >&6
28253 else
28254 ac_check_lib_save_LIBS=$LIBS
28255 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28256 cat >conftest.$ac_ext <<_ACEOF
28257 /* confdefs.h. */
28258 _ACEOF
28259 cat confdefs.h >>conftest.$ac_ext
28260 cat >>conftest.$ac_ext <<_ACEOF
28261 /* end confdefs.h. */
28263 /* Override any GCC internal prototype to avoid an error.
28264 Use char because int might match the return type of a GCC
28265 builtin and then its argument prototype would still apply. */
28266 #ifdef __cplusplus
28267 extern "C"
28268 #endif
28269 char IceConnectionNumber ();
28271 main ()
28273 return IceConnectionNumber ();
28275 return 0;
28277 _ACEOF
28278 rm -f conftest.$ac_objext conftest$ac_exeext
28279 if { (ac_try="$ac_link"
28280 case "(($ac_try" in
28281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28282 *) ac_try_echo=$ac_try;;
28283 esac
28284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28285 (eval "$ac_link") 2>conftest.er1
28286 ac_status=$?
28287 grep -v '^ *+' conftest.er1 >conftest.err
28288 rm -f conftest.er1
28289 cat conftest.err >&5
28290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291 (exit $ac_status); } && {
28292 test -z "$ac_c_werror_flag" ||
28293 test ! -s conftest.err
28294 } && test -s conftest$ac_exeext &&
28295 $as_test_x conftest$ac_exeext; then
28296 ac_cv_lib_ICE_IceConnectionNumber=yes
28297 else
28298 echo "$as_me: failed program was:" >&5
28299 sed 's/^/| /' conftest.$ac_ext >&5
28301 ac_cv_lib_ICE_IceConnectionNumber=no
28304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28305 conftest$ac_exeext conftest.$ac_ext
28306 LIBS=$ac_check_lib_save_LIBS
28308 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28309 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
28310 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28311 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28314 LDFLAGS=$ac_save_LDFLAGS
28318 if test x$have_x = xyes; then
28319 # Only allow dynamically loaded X11 if the X11 function pointers
28320 # will not end up in the global namespace, which causes problems
28321 # with other libraries calling X11 functions.
28322 x11_symbols_private=$have_gcc_fvisibility
28324 # Check whether --enable-x11-shared was given.
28325 if test "${enable_x11_shared+set}" = set; then
28326 enableval=$enable_x11_shared;
28327 else
28328 enable_x11_shared=maybe
28332 case "$host" in
28333 *-*-darwin*) # Latest Mac OS X actually ships with Xrandr/Xrender libs...
28334 x11_symbols_private=yes
28335 x11_lib='/usr/X11R6/lib/libX11.6.dylib'
28336 x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
28337 xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
28338 xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
28340 *-*-osf*)
28341 x11_lib='libX11.so'
28342 x11ext_lib='libXext.so'
28344 *-*-irix*) # IRIX 6.5 requires that we use /usr/lib32
28345 x11_lib='libX11.so'
28346 x11ext_lib='libXext.so'
28349 x11_lib_path=`echo $X_LIBS | sed 's/.*-L\([^ ]*\).*/\1/'`
28350 for path in $x11_lib_path /usr/lib /usr/X11/lib /usr/X11R6/lib; do
28351 if test "x$x11_lib" = "x"; then
28352 x11_lib=`ls -- $path/libX11.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`
28353 if test "x$x11_lib" = "x"; then
28354 x11_lib=`ls -- $path/libX11.so.[0-9]* 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`
28357 if test "x$x11ext_lib" = "x"; then
28358 x11ext_lib=`ls -- $path/libXext.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`
28359 if test "x$x11ext_lib" = "x"; then
28360 x11ext_lib=`ls -- $path/libXext.so.[0-9]* 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`
28363 if test "x$xrender_lib" = "x"; then
28364 xrender_lib=`ls -- $path/libXrender.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`
28365 if test "x$xrender_lib" = "x"; then
28366 xrender_lib=`ls -- $path/libXrender.so.[0-9]* 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`
28369 if test "x$xrandr_lib" = "x"; then
28370 xrandr_lib=`ls -- $path/libXrandr.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`
28371 if test "x$xrandr_lib" = "x"; then
28372 xrandr_lib=`ls -- $path/libXrandr.so.[0-9]* 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`
28375 done
28377 esac
28379 X_CFLAGS="$X_CFLAGS -DXTHREADS"
28380 if test x$ac_cv_func_shmat != xyes; then
28381 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
28383 CFLAGS="$CFLAGS $X_CFLAGS"
28384 LDFLAGS="$LDFLAGS $X_LIBS"
28386 cat >>confdefs.h <<\_ACEOF
28387 #define SDL_VIDEO_DRIVER_X11 1
28388 _ACEOF
28390 SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
28391 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
28393 if test x$enable_x11_shared = xmaybe; then
28394 enable_x11_shared=$x11_symbols_private
28396 if test x$have_loadso != xyes && \
28397 test x$enable_x11_shared = xyes; then
28398 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
28399 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
28400 enable_x11_shared=no
28402 if test x$x11_symbols_private != xyes && \
28403 test x$enable_x11_shared = xyes; then
28404 { echo "$as_me:$LINENO: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&5
28405 echo "$as_me: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&2;}
28406 enable_x11_shared=no
28409 if test x$have_loadso = xyes && \
28410 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
28411 echo "-- dynamic libX11 -> $x11_lib"
28412 echo "-- dynamic libX11ext -> $x11ext_lib"
28413 cat >>confdefs.h <<_ACEOF
28414 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
28415 _ACEOF
28417 cat >>confdefs.h <<_ACEOF
28418 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
28419 _ACEOF
28421 else
28422 enable_x11_shared=no
28423 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
28425 have_video=yes
28427 # Check whether --enable-dga was given.
28428 if test "${enable_dga+set}" = set; then
28429 enableval=$enable_dga;
28430 else
28431 enable_dga=yes
28434 if test x$enable_dga = xyes; then
28435 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86dga/*.c"
28437 # Check whether --enable-video-dga was given.
28438 if test "${enable_video_dga+set}" = set; then
28439 enableval=$enable_video_dga;
28440 else
28441 enable_video_dga=yes
28444 if test x$enable_dga = xyes -a x$enable_video_dga = xyes; then
28445 cat >>confdefs.h <<\_ACEOF
28446 #define SDL_VIDEO_DRIVER_DGA 1
28447 _ACEOF
28449 SOURCES="$SOURCES $srcdir/src/video/dga/*.c"
28451 # Check whether --enable-video-x11-dgamouse was given.
28452 if test "${enable_video_x11_dgamouse+set}" = set; then
28453 enableval=$enable_video_x11_dgamouse;
28454 else
28455 enable_video_x11_dgamouse=yes
28458 if test x$enable_dga = xyes -a x$enable_video_x11_dgamouse = xyes; then
28459 cat >>confdefs.h <<\_ACEOF
28460 #define SDL_VIDEO_DRIVER_X11_DGAMOUSE 1
28461 _ACEOF
28464 # Check whether --enable-video-x11-vm was given.
28465 if test "${enable_video_x11_vm+set}" = set; then
28466 enableval=$enable_video_x11_vm;
28467 else
28468 enable_video_x11_vm=yes
28471 if test x$enable_video_x11_vm = xyes; then
28472 cat >>confdefs.h <<\_ACEOF
28473 #define SDL_VIDEO_DRIVER_X11_VIDMODE 1
28474 _ACEOF
28476 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86vm/*.c"
28478 # Check whether --enable-video-x11-xv was given.
28479 if test "${enable_video_x11_xv+set}" = set; then
28480 enableval=$enable_video_x11_xv;
28481 else
28482 enable_video_x11_xv=yes
28485 if test x$enable_video_x11_xv = xyes; then
28486 cat >>confdefs.h <<\_ACEOF
28487 #define SDL_VIDEO_DRIVER_X11_XV 1
28488 _ACEOF
28490 SOURCES="$SOURCES $srcdir/src/video/Xext/Xv/*.c"
28492 # Check whether --enable-video-x11-xinerama was given.
28493 if test "${enable_video_x11_xinerama+set}" = set; then
28494 enableval=$enable_video_x11_xinerama;
28495 else
28496 enable_video_x11_xinerama=yes
28499 if test x$enable_video_x11_xinerama = xyes; then
28500 cat >>confdefs.h <<\_ACEOF
28501 #define SDL_VIDEO_DRIVER_X11_XINERAMA 1
28502 _ACEOF
28504 SOURCES="$SOURCES $srcdir/src/video/Xext/Xinerama/*.c"
28506 # Check whether --enable-video-x11-xme was given.
28507 if test "${enable_video_x11_xme+set}" = set; then
28508 enableval=$enable_video_x11_xme;
28509 else
28510 enable_video_x11_xme=yes
28513 if test x$enable_video_x11_xme = xyes; then
28514 cat >>confdefs.h <<\_ACEOF
28515 #define SDL_VIDEO_DRIVER_X11_XME 1
28516 _ACEOF
28518 SOURCES="$SOURCES $srcdir/src/video/Xext/XME/*.c"
28520 # Check whether --enable-video-x11-xrandr was given.
28521 if test "${enable_video_x11_xrandr+set}" = set; then
28522 enableval=$enable_video_x11_xrandr;
28523 else
28524 enable_video_x11_xrandr=yes
28527 if test x$enable_video_x11_xrandr = xyes; then
28528 definitely_enable_video_x11_xrandr=no
28529 { echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
28530 echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6; }
28531 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
28532 echo $ECHO_N "(cached) $ECHO_C" >&6
28533 else
28534 cat >conftest.$ac_ext <<_ACEOF
28535 /* confdefs.h. */
28536 _ACEOF
28537 cat confdefs.h >>conftest.$ac_ext
28538 cat >>conftest.$ac_ext <<_ACEOF
28539 /* end confdefs.h. */
28540 #include <X11/Xlib.h>
28543 #include <X11/extensions/Xrandr.h>
28544 _ACEOF
28545 rm -f conftest.$ac_objext
28546 if { (ac_try="$ac_compile"
28547 case "(($ac_try" in
28548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28549 *) ac_try_echo=$ac_try;;
28550 esac
28551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28552 (eval "$ac_compile") 2>conftest.er1
28553 ac_status=$?
28554 grep -v '^ *+' conftest.er1 >conftest.err
28555 rm -f conftest.er1
28556 cat conftest.err >&5
28557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28558 (exit $ac_status); } && {
28559 test -z "$ac_c_werror_flag" ||
28560 test ! -s conftest.err
28561 } && test -s conftest.$ac_objext; then
28562 ac_cv_header_X11_extensions_Xrandr_h=yes
28563 else
28564 echo "$as_me: failed program was:" >&5
28565 sed 's/^/| /' conftest.$ac_ext >&5
28567 ac_cv_header_X11_extensions_Xrandr_h=no
28570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28572 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
28573 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6; }
28574 if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
28575 have_xrandr_h_hdr=yes
28576 else
28577 have_xrandr_h_hdr=no
28581 if test x$have_xrandr_h_hdr = xyes; then
28582 if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
28583 echo "-- dynamic libXrender -> $xrender_lib"
28584 echo "-- dynamic libXrandr -> $xrandr_lib"
28585 cat >>confdefs.h <<_ACEOF
28586 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER "$xrender_lib"
28587 _ACEOF
28589 cat >>confdefs.h <<_ACEOF
28590 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
28591 _ACEOF
28593 definitely_enable_video_x11_xrandr=yes
28594 else
28595 { echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
28596 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6; }
28597 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
28598 echo $ECHO_N "(cached) $ECHO_C" >&6
28599 else
28600 ac_check_lib_save_LIBS=$LIBS
28601 LIBS="-lXrender $LIBS"
28602 cat >conftest.$ac_ext <<_ACEOF
28603 /* confdefs.h. */
28604 _ACEOF
28605 cat confdefs.h >>conftest.$ac_ext
28606 cat >>conftest.$ac_ext <<_ACEOF
28607 /* end confdefs.h. */
28609 /* Override any GCC internal prototype to avoid an error.
28610 Use char because int might match the return type of a GCC
28611 builtin and then its argument prototype would still apply. */
28612 #ifdef __cplusplus
28613 extern "C"
28614 #endif
28615 char XRenderQueryExtension ();
28617 main ()
28619 return XRenderQueryExtension ();
28621 return 0;
28623 _ACEOF
28624 rm -f conftest.$ac_objext conftest$ac_exeext
28625 if { (ac_try="$ac_link"
28626 case "(($ac_try" in
28627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28628 *) ac_try_echo=$ac_try;;
28629 esac
28630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28631 (eval "$ac_link") 2>conftest.er1
28632 ac_status=$?
28633 grep -v '^ *+' conftest.er1 >conftest.err
28634 rm -f conftest.er1
28635 cat conftest.err >&5
28636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); } && {
28638 test -z "$ac_c_werror_flag" ||
28639 test ! -s conftest.err
28640 } && test -s conftest$ac_exeext &&
28641 $as_test_x conftest$ac_exeext; then
28642 ac_cv_lib_Xrender_XRenderQueryExtension=yes
28643 else
28644 echo "$as_me: failed program was:" >&5
28645 sed 's/^/| /' conftest.$ac_ext >&5
28647 ac_cv_lib_Xrender_XRenderQueryExtension=no
28650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28651 conftest$ac_exeext conftest.$ac_ext
28652 LIBS=$ac_check_lib_save_LIBS
28654 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
28655 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
28656 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
28657 have_xrender_lib=yes
28660 { echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
28661 echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6; }
28662 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
28663 echo $ECHO_N "(cached) $ECHO_C" >&6
28664 else
28665 ac_check_lib_save_LIBS=$LIBS
28666 LIBS="-lXrandr $LIBS"
28667 cat >conftest.$ac_ext <<_ACEOF
28668 /* confdefs.h. */
28669 _ACEOF
28670 cat confdefs.h >>conftest.$ac_ext
28671 cat >>conftest.$ac_ext <<_ACEOF
28672 /* end confdefs.h. */
28674 /* Override any GCC internal prototype to avoid an error.
28675 Use char because int might match the return type of a GCC
28676 builtin and then its argument prototype would still apply. */
28677 #ifdef __cplusplus
28678 extern "C"
28679 #endif
28680 char XRRQueryExtension ();
28682 main ()
28684 return XRRQueryExtension ();
28686 return 0;
28688 _ACEOF
28689 rm -f conftest.$ac_objext conftest$ac_exeext
28690 if { (ac_try="$ac_link"
28691 case "(($ac_try" in
28692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28693 *) ac_try_echo=$ac_try;;
28694 esac
28695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28696 (eval "$ac_link") 2>conftest.er1
28697 ac_status=$?
28698 grep -v '^ *+' conftest.er1 >conftest.err
28699 rm -f conftest.er1
28700 cat conftest.err >&5
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); } && {
28703 test -z "$ac_c_werror_flag" ||
28704 test ! -s conftest.err
28705 } && test -s conftest$ac_exeext &&
28706 $as_test_x conftest$ac_exeext; then
28707 ac_cv_lib_Xrandr_XRRQueryExtension=yes
28708 else
28709 echo "$as_me: failed program was:" >&5
28710 sed 's/^/| /' conftest.$ac_ext >&5
28712 ac_cv_lib_Xrandr_XRRQueryExtension=no
28715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28716 conftest$ac_exeext conftest.$ac_ext
28717 LIBS=$ac_check_lib_save_LIBS
28719 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
28720 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
28721 if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
28722 have_xrandr_lib=yes
28725 if test x$have_xrender_lib = xyes && test x$have_xrandr_lib = xyes ; then
28726 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr -lXrender"
28727 definitely_enable_video_x11_xrandr=yes
28732 if test x$definitely_enable_video_x11_xrandr = xyes; then
28733 cat >>confdefs.h <<\_ACEOF
28734 #define SDL_VIDEO_DRIVER_X11_XRANDR 1
28735 _ACEOF
28738 # Check whether --enable-video-x11-dpms was given.
28739 if test "${enable_video_x11_dpms+set}" = set; then
28740 enableval=$enable_video_x11_dpms;
28741 else
28742 enable_video_x11_dpms=yes
28745 if test x$enable_video_x11_dpms = xyes; then
28746 { echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
28747 echo $ECHO_N "checking for X11/extensions/dpms.h... $ECHO_C" >&6; }
28748 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
28749 echo $ECHO_N "(cached) $ECHO_C" >&6
28750 else
28751 cat >conftest.$ac_ext <<_ACEOF
28752 /* confdefs.h. */
28753 _ACEOF
28754 cat confdefs.h >>conftest.$ac_ext
28755 cat >>conftest.$ac_ext <<_ACEOF
28756 /* end confdefs.h. */
28757 #include <X11/Xlib.h>
28760 #include <X11/extensions/dpms.h>
28761 _ACEOF
28762 rm -f conftest.$ac_objext
28763 if { (ac_try="$ac_compile"
28764 case "(($ac_try" in
28765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766 *) ac_try_echo=$ac_try;;
28767 esac
28768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769 (eval "$ac_compile") 2>conftest.er1
28770 ac_status=$?
28771 grep -v '^ *+' conftest.er1 >conftest.err
28772 rm -f conftest.er1
28773 cat conftest.err >&5
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); } && {
28776 test -z "$ac_c_werror_flag" ||
28777 test ! -s conftest.err
28778 } && test -s conftest.$ac_objext; then
28779 ac_cv_header_X11_extensions_dpms_h=yes
28780 else
28781 echo "$as_me: failed program was:" >&5
28782 sed 's/^/| /' conftest.$ac_ext >&5
28784 ac_cv_header_X11_extensions_dpms_h=no
28787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28789 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
28790 echo "${ECHO_T}$ac_cv_header_X11_extensions_dpms_h" >&6; }
28791 if test $ac_cv_header_X11_extensions_dpms_h = yes; then
28792 have_dpms_h_hdr=yes
28793 else
28794 have_dpms_h_hdr=no
28798 if test x$have_dpms_h_hdr = xyes; then
28799 cat >>confdefs.h <<\_ACEOF
28800 #define SDL_VIDEO_DRIVER_X11_DPMS 1
28801 _ACEOF
28809 CheckPHOTON()
28811 # Check whether --enable-video-photon was given.
28812 if test "${enable_video_photon+set}" = set; then
28813 enableval=$enable_video_photon;
28814 else
28815 enable_video_photon=yes
28818 if test x$enable_video = xyes -a x$enable_video_photon = xyes; then
28819 { echo "$as_me:$LINENO: checking for QNX Photon support" >&5
28820 echo $ECHO_N "checking for QNX Photon support... $ECHO_C" >&6; }
28821 video_photon=no
28822 cat >conftest.$ac_ext <<_ACEOF
28823 /* confdefs.h. */
28824 _ACEOF
28825 cat confdefs.h >>conftest.$ac_ext
28826 cat >>conftest.$ac_ext <<_ACEOF
28827 /* end confdefs.h. */
28829 #include <Ph.h>
28830 #include <Pt.h>
28831 #include <photon/Pg.h>
28832 #include <photon/PdDirect.h>
28835 main ()
28838 PgDisplaySettings_t *visual;
28841 return 0;
28843 _ACEOF
28844 rm -f conftest.$ac_objext
28845 if { (ac_try="$ac_compile"
28846 case "(($ac_try" in
28847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28848 *) ac_try_echo=$ac_try;;
28849 esac
28850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28851 (eval "$ac_compile") 2>conftest.er1
28852 ac_status=$?
28853 grep -v '^ *+' conftest.er1 >conftest.err
28854 rm -f conftest.er1
28855 cat conftest.err >&5
28856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 (exit $ac_status); } && {
28858 test -z "$ac_c_werror_flag" ||
28859 test ! -s conftest.err
28860 } && test -s conftest.$ac_objext; then
28862 video_photon=yes
28864 else
28865 echo "$as_me: failed program was:" >&5
28866 sed 's/^/| /' conftest.$ac_ext >&5
28871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28872 { echo "$as_me:$LINENO: result: $video_photon" >&5
28873 echo "${ECHO_T}$video_photon" >&6; }
28874 if test x$video_photon = xyes; then
28875 cat >>confdefs.h <<\_ACEOF
28876 #define SDL_VIDEO_DRIVER_PHOTON 1
28877 _ACEOF
28879 SOURCES="$SOURCES $srcdir/src/video/photon/*.c"
28880 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lph"
28881 have_video=yes
28883 CheckOpenGLQNX
28888 CheckBWINDOW()
28890 if test x$enable_video = xyes; then
28891 cat >>confdefs.h <<\_ACEOF
28892 #define SDL_VIDEO_DRIVER_BWINDOW 1
28893 _ACEOF
28895 SOURCES="$SOURCES $srcdir/src/video/bwindow/*.cc"
28896 have_video=yes
28900 CheckCARBON()
28902 # Check whether --enable-video-carbon was given.
28903 if test "${enable_video_carbon+set}" = set; then
28904 enableval=$enable_video_carbon;
28905 else
28906 enable_video_carbon=no
28909 if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then
28910 { echo "$as_me:$LINENO: checking for Carbon framework" >&5
28911 echo $ECHO_N "checking for Carbon framework... $ECHO_C" >&6; }
28912 have_carbon=no
28913 cat >conftest.$ac_ext <<_ACEOF
28914 /* confdefs.h. */
28915 _ACEOF
28916 cat confdefs.h >>conftest.$ac_ext
28917 cat >>conftest.$ac_ext <<_ACEOF
28918 /* end confdefs.h. */
28920 #include <Carbon/Carbon.h>
28923 main ()
28928 return 0;
28930 _ACEOF
28931 rm -f conftest.$ac_objext
28932 if { (ac_try="$ac_compile"
28933 case "(($ac_try" in
28934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28935 *) ac_try_echo=$ac_try;;
28936 esac
28937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28938 (eval "$ac_compile") 2>conftest.er1
28939 ac_status=$?
28940 grep -v '^ *+' conftest.er1 >conftest.err
28941 rm -f conftest.er1
28942 cat conftest.err >&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); } && {
28945 test -z "$ac_c_werror_flag" ||
28946 test ! -s conftest.err
28947 } && test -s conftest.$ac_objext; then
28949 have_carbon=yes
28951 else
28952 echo "$as_me: failed program was:" >&5
28953 sed 's/^/| /' conftest.$ac_ext >&5
28958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28959 { echo "$as_me:$LINENO: result: $have_carbon" >&5
28960 echo "${ECHO_T}$have_carbon" >&6; }
28961 if test x$have_carbon = xyes; then
28962 cat >>confdefs.h <<\_ACEOF
28963 #define SDL_VIDEO_DRIVER_TOOLBOX 1
28964 _ACEOF
28966 SOURCES="$SOURCES $srcdir/src/video/maccommon/*.c"
28967 SOURCES="$SOURCES $srcdir/src/video/macrom/*.c"
28968 have_video=yes
28973 CheckCOCOA()
28975 # Check whether --enable-video-cocoa was given.
28976 if test "${enable_video_cocoa+set}" = set; then
28977 enableval=$enable_video_cocoa;
28978 else
28979 enable_video_cocoa=yes
28982 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
28983 save_CFLAGS="$CFLAGS"
28984 CFLAGS="$CFLAGS -x objective-c"
28985 { echo "$as_me:$LINENO: checking for Cocoa framework" >&5
28986 echo $ECHO_N "checking for Cocoa framework... $ECHO_C" >&6; }
28987 have_cocoa=no
28988 cat >conftest.$ac_ext <<_ACEOF
28989 /* confdefs.h. */
28990 _ACEOF
28991 cat confdefs.h >>conftest.$ac_ext
28992 cat >>conftest.$ac_ext <<_ACEOF
28993 /* end confdefs.h. */
28995 #import <Cocoa/Cocoa.h>
28998 main ()
29003 return 0;
29005 _ACEOF
29006 rm -f conftest.$ac_objext
29007 if { (ac_try="$ac_compile"
29008 case "(($ac_try" in
29009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29010 *) ac_try_echo=$ac_try;;
29011 esac
29012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29013 (eval "$ac_compile") 2>conftest.er1
29014 ac_status=$?
29015 grep -v '^ *+' conftest.er1 >conftest.err
29016 rm -f conftest.er1
29017 cat conftest.err >&5
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); } && {
29020 test -z "$ac_c_werror_flag" ||
29021 test ! -s conftest.err
29022 } && test -s conftest.$ac_objext; then
29024 have_cocoa=yes
29026 else
29027 echo "$as_me: failed program was:" >&5
29028 sed 's/^/| /' conftest.$ac_ext >&5
29033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29034 { echo "$as_me:$LINENO: result: $have_cocoa" >&5
29035 echo "${ECHO_T}$have_cocoa" >&6; }
29036 CFLAGS="$save_CFLAGS"
29037 if test x$have_cocoa = xyes; then
29038 cat >>confdefs.h <<\_ACEOF
29039 #define SDL_VIDEO_DRIVER_QUARTZ 1
29040 _ACEOF
29042 SOURCES="$SOURCES $srcdir/src/video/quartz/*.m"
29043 have_video=yes
29048 CheckFBCON()
29050 # Check whether --enable-video-fbcon was given.
29051 if test "${enable_video_fbcon+set}" = set; then
29052 enableval=$enable_video_fbcon;
29053 else
29054 enable_video_fbcon=yes
29057 if test x$enable_video = xyes -a x$enable_video_fbcon = xyes; then
29058 { echo "$as_me:$LINENO: checking for framebuffer console support" >&5
29059 echo $ECHO_N "checking for framebuffer console support... $ECHO_C" >&6; }
29060 video_fbcon=no
29061 cat >conftest.$ac_ext <<_ACEOF
29062 /* confdefs.h. */
29063 _ACEOF
29064 cat confdefs.h >>conftest.$ac_ext
29065 cat >>conftest.$ac_ext <<_ACEOF
29066 /* end confdefs.h. */
29068 #include <linux/fb.h>
29069 #include <linux/kd.h>
29070 #include <linux/keyboard.h>
29073 main ()
29078 return 0;
29080 _ACEOF
29081 rm -f conftest.$ac_objext
29082 if { (ac_try="$ac_compile"
29083 case "(($ac_try" in
29084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29085 *) ac_try_echo=$ac_try;;
29086 esac
29087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29088 (eval "$ac_compile") 2>conftest.er1
29089 ac_status=$?
29090 grep -v '^ *+' conftest.er1 >conftest.err
29091 rm -f conftest.er1
29092 cat conftest.err >&5
29093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); } && {
29095 test -z "$ac_c_werror_flag" ||
29096 test ! -s conftest.err
29097 } && test -s conftest.$ac_objext; then
29099 video_fbcon=yes
29101 else
29102 echo "$as_me: failed program was:" >&5
29103 sed 's/^/| /' conftest.$ac_ext >&5
29108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29109 { echo "$as_me:$LINENO: result: $video_fbcon" >&5
29110 echo "${ECHO_T}$video_fbcon" >&6; }
29111 if test x$video_fbcon = xyes; then
29113 for ac_func in getpagesize
29115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29119 echo $ECHO_N "(cached) $ECHO_C" >&6
29120 else
29121 cat >conftest.$ac_ext <<_ACEOF
29122 /* confdefs.h. */
29123 _ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h. */
29127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29129 #define $ac_func innocuous_$ac_func
29131 /* System header to define __stub macros and hopefully few prototypes,
29132 which can conflict with char $ac_func (); below.
29133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29134 <limits.h> exists even on freestanding compilers. */
29136 #ifdef __STDC__
29137 # include <limits.h>
29138 #else
29139 # include <assert.h>
29140 #endif
29142 #undef $ac_func
29144 /* Override any GCC internal prototype to avoid an error.
29145 Use char because int might match the return type of a GCC
29146 builtin and then its argument prototype would still apply. */
29147 #ifdef __cplusplus
29148 extern "C"
29149 #endif
29150 char $ac_func ();
29151 /* The GNU C library defines this for functions which it implements
29152 to always fail with ENOSYS. Some functions are actually named
29153 something starting with __ and the normal name is an alias. */
29154 #if defined __stub_$ac_func || defined __stub___$ac_func
29155 choke me
29156 #endif
29159 main ()
29161 return $ac_func ();
29163 return 0;
29165 _ACEOF
29166 rm -f conftest.$ac_objext conftest$ac_exeext
29167 if { (ac_try="$ac_link"
29168 case "(($ac_try" in
29169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29170 *) ac_try_echo=$ac_try;;
29171 esac
29172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29173 (eval "$ac_link") 2>conftest.er1
29174 ac_status=$?
29175 grep -v '^ *+' conftest.er1 >conftest.err
29176 rm -f conftest.er1
29177 cat conftest.err >&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); } && {
29180 test -z "$ac_c_werror_flag" ||
29181 test ! -s conftest.err
29182 } && test -s conftest$ac_exeext &&
29183 $as_test_x conftest$ac_exeext; then
29184 eval "$as_ac_var=yes"
29185 else
29186 echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29189 eval "$as_ac_var=no"
29192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29193 conftest$ac_exeext conftest.$ac_ext
29195 ac_res=`eval echo '${'$as_ac_var'}'`
29196 { echo "$as_me:$LINENO: result: $ac_res" >&5
29197 echo "${ECHO_T}$ac_res" >&6; }
29198 if test `eval echo '${'$as_ac_var'}'` = yes; then
29199 cat >>confdefs.h <<_ACEOF
29200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29201 _ACEOF
29204 done
29206 cat >>confdefs.h <<\_ACEOF
29207 #define SDL_VIDEO_DRIVER_FBCON 1
29208 _ACEOF
29210 SOURCES="$SOURCES $srcdir/src/video/fbcon/*.c"
29211 have_video=yes
29216 CheckDirectFB()
29218 # Check whether --enable-video-directfb was given.
29219 if test "${enable_video_directfb+set}" = set; then
29220 enableval=$enable_video_directfb;
29221 else
29222 enable_video_directfb=yes
29225 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
29226 video_directfb=no
29228 DIRECTFB_REQUIRED_VERSION=0.9.15
29230 # Extract the first word of "directfb-config", so it can be a program name with args.
29231 set dummy directfb-config; ac_word=$2
29232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29234 if test "${ac_cv_path_DIRECTFBCONFIG+set}" = set; then
29235 echo $ECHO_N "(cached) $ECHO_C" >&6
29236 else
29237 case $DIRECTFBCONFIG in
29238 [\\/]* | ?:[\\/]*)
29239 ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
29242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29243 for as_dir in $PATH
29245 IFS=$as_save_IFS
29246 test -z "$as_dir" && as_dir=.
29247 for ac_exec_ext in '' $ac_executable_extensions; do
29248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29249 ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
29250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29251 break 2
29253 done
29254 done
29255 IFS=$as_save_IFS
29257 test -z "$ac_cv_path_DIRECTFBCONFIG" && ac_cv_path_DIRECTFBCONFIG="no"
29259 esac
29261 DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
29262 if test -n "$DIRECTFBCONFIG"; then
29263 { echo "$as_me:$LINENO: result: $DIRECTFBCONFIG" >&5
29264 echo "${ECHO_T}$DIRECTFBCONFIG" >&6; }
29265 else
29266 { echo "$as_me:$LINENO: result: no" >&5
29267 echo "${ECHO_T}no" >&6; }
29271 if test x$DIRECTFBCONFIG = xno; then
29272 # Extract the first word of "pkg-config", so it can be a program name with args.
29273 set dummy pkg-config; ac_word=$2
29274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29276 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29277 echo $ECHO_N "(cached) $ECHO_C" >&6
29278 else
29279 case $PKG_CONFIG in
29280 [\\/]* | ?:[\\/]*)
29281 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29285 for as_dir in $PATH
29287 IFS=$as_save_IFS
29288 test -z "$as_dir" && as_dir=.
29289 for ac_exec_ext in '' $ac_executable_extensions; do
29290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29291 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29293 break 2
29295 done
29296 done
29297 IFS=$as_save_IFS
29299 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29301 esac
29303 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29304 if test -n "$PKG_CONFIG"; then
29305 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29306 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29307 else
29308 { echo "$as_me:$LINENO: result: no" >&5
29309 echo "${ECHO_T}no" >&6; }
29313 { echo "$as_me:$LINENO: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
29314 echo $ECHO_N "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... $ECHO_C" >&6; }
29315 if test x$PKG_CONFIG != xno; then
29316 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
29317 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
29318 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
29319 video_directfb=yes
29322 { echo "$as_me:$LINENO: result: $video_directfb" >&5
29323 echo "${ECHO_T}$video_directfb" >&6; }
29324 else
29325 { echo "$as_me:$LINENO: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
29326 echo $ECHO_N "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... $ECHO_C" >&6; }
29327 set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
29328 NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
29329 set -- `directfb-config --version | sed 's/\./ /g'`
29330 HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
29331 if test $HAVE_VERSION -ge $NEED_VERSION; then
29332 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
29333 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
29334 video_directfb=yes
29336 { echo "$as_me:$LINENO: result: $video_directfb" >&5
29337 echo "${ECHO_T}$video_directfb" >&6; }
29340 if test x$video_directfb = xyes; then
29341 cat >>confdefs.h <<\_ACEOF
29342 #define SDL_VIDEO_DRIVER_DIRECTFB 1
29343 _ACEOF
29345 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
29346 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
29347 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
29348 have_video=yes
29353 CheckPS2GS()
29355 # Check whether --enable-video-ps2gs was given.
29356 if test "${enable_video_ps2gs+set}" = set; then
29357 enableval=$enable_video_ps2gs;
29358 else
29359 enable_video_ps2gs=yes
29362 if test x$enable_video = xyes -a x$enable_video_ps2gs = xyes; then
29363 { echo "$as_me:$LINENO: checking for PlayStation 2 GS support" >&5
29364 echo $ECHO_N "checking for PlayStation 2 GS support... $ECHO_C" >&6; }
29365 video_ps2gs=no
29366 cat >conftest.$ac_ext <<_ACEOF
29367 /* confdefs.h. */
29368 _ACEOF
29369 cat confdefs.h >>conftest.$ac_ext
29370 cat >>conftest.$ac_ext <<_ACEOF
29371 /* end confdefs.h. */
29373 #include <linux/ps2/dev.h>
29374 #include <linux/ps2/gs.h>
29377 main ()
29382 return 0;
29384 _ACEOF
29385 rm -f conftest.$ac_objext
29386 if { (ac_try="$ac_compile"
29387 case "(($ac_try" in
29388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29389 *) ac_try_echo=$ac_try;;
29390 esac
29391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29392 (eval "$ac_compile") 2>conftest.er1
29393 ac_status=$?
29394 grep -v '^ *+' conftest.er1 >conftest.err
29395 rm -f conftest.er1
29396 cat conftest.err >&5
29397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); } && {
29399 test -z "$ac_c_werror_flag" ||
29400 test ! -s conftest.err
29401 } && test -s conftest.$ac_objext; then
29403 video_ps2gs=yes
29405 else
29406 echo "$as_me: failed program was:" >&5
29407 sed 's/^/| /' conftest.$ac_ext >&5
29412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29413 { echo "$as_me:$LINENO: result: $video_ps2gs" >&5
29414 echo "${ECHO_T}$video_ps2gs" >&6; }
29415 if test x$video_ps2gs = xyes; then
29416 cat >>confdefs.h <<\_ACEOF
29417 #define SDL_VIDEO_DRIVER_PS2GS 1
29418 _ACEOF
29420 SOURCES="$SOURCES $srcdir/src/video/ps2gs/*.c"
29421 have_video=yes
29426 CheckGGI()
29428 # Check whether --enable-video-ggi was given.
29429 if test "${enable_video_ggi+set}" = set; then
29430 enableval=$enable_video_ggi;
29431 else
29432 enable_video_ggi=no
29435 if test x$enable_video = xyes -a x$enable_video_ggi = xyes; then
29436 { echo "$as_me:$LINENO: checking for GGI support" >&5
29437 echo $ECHO_N "checking for GGI support... $ECHO_C" >&6; }
29438 video_ggi=no
29439 cat >conftest.$ac_ext <<_ACEOF
29440 /* confdefs.h. */
29441 _ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h. */
29446 #include <ggi/ggi.h>
29447 #include <ggi/gii.h>
29450 main ()
29455 return 0;
29457 _ACEOF
29458 rm -f conftest.$ac_objext
29459 if { (ac_try="$ac_compile"
29460 case "(($ac_try" in
29461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462 *) ac_try_echo=$ac_try;;
29463 esac
29464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465 (eval "$ac_compile") 2>conftest.er1
29466 ac_status=$?
29467 grep -v '^ *+' conftest.er1 >conftest.err
29468 rm -f conftest.er1
29469 cat conftest.err >&5
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); } && {
29472 test -z "$ac_c_werror_flag" ||
29473 test ! -s conftest.err
29474 } && test -s conftest.$ac_objext; then
29476 video_ggi=yes
29478 else
29479 echo "$as_me: failed program was:" >&5
29480 sed 's/^/| /' conftest.$ac_ext >&5
29485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29486 { echo "$as_me:$LINENO: result: $video_ggi" >&5
29487 echo "${ECHO_T}$video_ggi" >&6; }
29488 if test x$video_ggi = xyes; then
29489 cat >>confdefs.h <<\_ACEOF
29490 #define SDL_VIDEO_DRIVER_GGI 1
29491 _ACEOF
29493 SOURCES="$SOURCES $srcdir/src/video/ggi/*.c"
29494 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lggi -lgii -lgg"
29495 have_video=yes
29500 CheckSVGA()
29502 # Check whether --enable-video-svga was given.
29503 if test "${enable_video_svga+set}" = set; then
29504 enableval=$enable_video_svga;
29505 else
29506 enable_video_svga=yes
29509 if test x$enable_video = xyes -a x$enable_video_svga = xyes; then
29510 { echo "$as_me:$LINENO: checking for SVGAlib (1.4.0+) support" >&5
29511 echo $ECHO_N "checking for SVGAlib (1.4.0+) support... $ECHO_C" >&6; }
29512 video_svga=no
29513 cat >conftest.$ac_ext <<_ACEOF
29514 /* confdefs.h. */
29515 _ACEOF
29516 cat confdefs.h >>conftest.$ac_ext
29517 cat >>conftest.$ac_ext <<_ACEOF
29518 /* end confdefs.h. */
29520 #include <vga.h>
29521 #include <vgamouse.h>
29522 #include <vgakeyboard.h>
29525 main ()
29528 if ( SCANCODE_RIGHTWIN && SCANCODE_LEFTWIN ) {
29529 exit(0);
29533 return 0;
29535 _ACEOF
29536 rm -f conftest.$ac_objext
29537 if { (ac_try="$ac_compile"
29538 case "(($ac_try" in
29539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540 *) ac_try_echo=$ac_try;;
29541 esac
29542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543 (eval "$ac_compile") 2>conftest.er1
29544 ac_status=$?
29545 grep -v '^ *+' conftest.er1 >conftest.err
29546 rm -f conftest.er1
29547 cat conftest.err >&5
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); } && {
29550 test -z "$ac_c_werror_flag" ||
29551 test ! -s conftest.err
29552 } && test -s conftest.$ac_objext; then
29554 video_svga=yes
29556 else
29557 echo "$as_me: failed program was:" >&5
29558 sed 's/^/| /' conftest.$ac_ext >&5
29563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29564 { echo "$as_me:$LINENO: result: $video_svga" >&5
29565 echo "${ECHO_T}$video_svga" >&6; }
29566 if test x$video_svga = xyes; then
29567 cat >>confdefs.h <<\_ACEOF
29568 #define SDL_VIDEO_DRIVER_SVGALIB 1
29569 _ACEOF
29571 SOURCES="$SOURCES $srcdir/src/video/svga/*.c"
29572 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvga"
29573 have_video=yes
29578 CheckVGL()
29580 # Check whether --enable-video-vgl was given.
29581 if test "${enable_video_vgl+set}" = set; then
29582 enableval=$enable_video_vgl;
29583 else
29584 enable_video_vgl=yes
29587 if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then
29588 { echo "$as_me:$LINENO: checking for libVGL support" >&5
29589 echo $ECHO_N "checking for libVGL support... $ECHO_C" >&6; }
29590 video_vgl=no
29591 cat >conftest.$ac_ext <<_ACEOF
29592 /* confdefs.h. */
29593 _ACEOF
29594 cat confdefs.h >>conftest.$ac_ext
29595 cat >>conftest.$ac_ext <<_ACEOF
29596 /* end confdefs.h. */
29598 #include <sys/fbio.h>
29599 #include <sys/consio.h>
29600 #include <sys/kbio.h>
29601 #include <vgl.h>
29604 main ()
29607 VGLBitmap bitmap;
29608 bitmap.Type = VIDBUF32;
29609 bitmap.PixelBytes = 4;
29610 exit(bitmap.Bitmap);
29613 return 0;
29615 _ACEOF
29616 rm -f conftest.$ac_objext
29617 if { (ac_try="$ac_compile"
29618 case "(($ac_try" in
29619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29620 *) ac_try_echo=$ac_try;;
29621 esac
29622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29623 (eval "$ac_compile") 2>conftest.er1
29624 ac_status=$?
29625 grep -v '^ *+' conftest.er1 >conftest.err
29626 rm -f conftest.er1
29627 cat conftest.err >&5
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); } && {
29630 test -z "$ac_c_werror_flag" ||
29631 test ! -s conftest.err
29632 } && test -s conftest.$ac_objext; then
29634 video_vgl=yes
29636 else
29637 echo "$as_me: failed program was:" >&5
29638 sed 's/^/| /' conftest.$ac_ext >&5
29643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29644 { echo "$as_me:$LINENO: result: $video_vgl" >&5
29645 echo "${ECHO_T}$video_vgl" >&6; }
29646 if test x$video_vgl = xyes; then
29647 cat >>confdefs.h <<\_ACEOF
29648 #define SDL_VIDEO_DRIVER_VGL 1
29649 _ACEOF
29651 SOURCES="$SOURCES $srcdir/src/video/vgl/*.c"
29652 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvgl"
29653 have_video=yes
29658 CheckWscons()
29660 # Check whether --enable-video-wscons was given.
29661 if test "${enable_video_wscons+set}" = set; then
29662 enableval=$enable_video_wscons;
29663 else
29664 enable_video_wscons=yes
29667 if test x$enable_video = xyes -a x$enable_video_wscons = xyes; then
29668 { echo "$as_me:$LINENO: checking for wscons support" >&5
29669 echo $ECHO_N "checking for wscons support... $ECHO_C" >&6; }
29670 video_wscons=no
29671 cat >conftest.$ac_ext <<_ACEOF
29672 /* confdefs.h. */
29673 _ACEOF
29674 cat confdefs.h >>conftest.$ac_ext
29675 cat >>conftest.$ac_ext <<_ACEOF
29676 /* end confdefs.h. */
29678 #include <sys/time.h>
29679 #include <dev/wscons/wsconsio.h>
29680 #include <dev/wscons/wsdisplay_usl_io.h>
29683 main ()
29686 int wsmode = WSDISPLAYIO_MODE_DUMBFB;
29689 return 0;
29691 _ACEOF
29692 rm -f conftest.$ac_objext
29693 if { (ac_try="$ac_compile"
29694 case "(($ac_try" in
29695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29696 *) ac_try_echo=$ac_try;;
29697 esac
29698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29699 (eval "$ac_compile") 2>conftest.er1
29700 ac_status=$?
29701 grep -v '^ *+' conftest.er1 >conftest.err
29702 rm -f conftest.er1
29703 cat conftest.err >&5
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); } && {
29706 test -z "$ac_c_werror_flag" ||
29707 test ! -s conftest.err
29708 } && test -s conftest.$ac_objext; then
29710 video_wscons=yes
29712 else
29713 echo "$as_me: failed program was:" >&5
29714 sed 's/^/| /' conftest.$ac_ext >&5
29719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29720 { echo "$as_me:$LINENO: result: $video_wscons" >&5
29721 echo "${ECHO_T}$video_wscons" >&6; }
29722 if test x$video_wscons = xyes; then
29723 cat >>confdefs.h <<\_ACEOF
29724 #define SDL_VIDEO_DRIVER_WSCONS 1
29725 _ACEOF
29727 SOURCES="$SOURCES $srcdir/src/video/wscons/*.c"
29728 have_video=yes
29734 CheckAAlib()
29736 # Check whether --enable-video-aalib was given.
29737 if test "${enable_video_aalib+set}" = set; then
29738 enableval=$enable_video_aalib;
29739 else
29740 enable_video_aalib=no
29743 if test x$enable_video = xyes -a x$enable_video_aalib = xyes; then
29744 { echo "$as_me:$LINENO: checking for AAlib support" >&5
29745 echo $ECHO_N "checking for AAlib support... $ECHO_C" >&6; }
29746 video_aalib=no
29747 cat >conftest.$ac_ext <<_ACEOF
29748 /* confdefs.h. */
29749 _ACEOF
29750 cat confdefs.h >>conftest.$ac_ext
29751 cat >>conftest.$ac_ext <<_ACEOF
29752 /* end confdefs.h. */
29754 #include <aalib.h>
29757 main ()
29762 return 0;
29764 _ACEOF
29765 rm -f conftest.$ac_objext
29766 if { (ac_try="$ac_compile"
29767 case "(($ac_try" in
29768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29769 *) ac_try_echo=$ac_try;;
29770 esac
29771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29772 (eval "$ac_compile") 2>conftest.er1
29773 ac_status=$?
29774 grep -v '^ *+' conftest.er1 >conftest.err
29775 rm -f conftest.er1
29776 cat conftest.err >&5
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); } && {
29779 test -z "$ac_c_werror_flag" ||
29780 test ! -s conftest.err
29781 } && test -s conftest.$ac_objext; then
29783 video_aalib=yes
29785 else
29786 echo "$as_me: failed program was:" >&5
29787 sed 's/^/| /' conftest.$ac_ext >&5
29792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29793 { echo "$as_me:$LINENO: result: $video_aalib" >&5
29794 echo "${ECHO_T}$video_aalib" >&6; }
29795 if test x$video_aalib = xyes; then
29796 cat >>confdefs.h <<\_ACEOF
29797 #define SDL_VIDEO_DRIVER_AALIB 1
29798 _ACEOF
29800 SOURCES="$SOURCES $srcdir/src/video/aalib/*.c"
29801 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laa"
29802 have_video=yes
29807 CheckQtopia()
29809 # Check whether --enable-video-qtopia was given.
29810 if test "${enable_video_qtopia+set}" = set; then
29811 enableval=$enable_video_qtopia;
29812 else
29813 enable_video_qtopia=no
29816 if test x$enable_video = xyes -a x$enable_video_qtopia = xyes; then
29817 { echo "$as_me:$LINENO: checking for Qtopia support" >&5
29818 echo $ECHO_N "checking for Qtopia support... $ECHO_C" >&6; }
29819 video_qtopia=no
29820 QTOPIA_FLAGS="-DQT_QWS_EBX -DQT_QWS_CUSTOM -DQWS -I${QPEDIR}/include -I${QTDIR}/include/ -DNO_DEBUG -fno-rtti -fno-exceptions"
29821 ac_ext=cpp
29822 ac_cpp='$CXXCPP $CPPFLAGS'
29823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29827 OLD_CXX="$CXXFLAGS"
29828 CXXFLAGS="$QTOPIA_FLAGS"
29829 cat >conftest.$ac_ext <<_ACEOF
29830 /* confdefs.h. */
29831 _ACEOF
29832 cat confdefs.h >>conftest.$ac_ext
29833 cat >>conftest.$ac_ext <<_ACEOF
29834 /* end confdefs.h. */
29836 #include <qpe/qpeapplication.h>
29839 main ()
29844 return 0;
29846 _ACEOF
29847 rm -f conftest.$ac_objext
29848 if { (ac_try="$ac_compile"
29849 case "(($ac_try" in
29850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29851 *) ac_try_echo=$ac_try;;
29852 esac
29853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29854 (eval "$ac_compile") 2>conftest.er1
29855 ac_status=$?
29856 grep -v '^ *+' conftest.er1 >conftest.err
29857 rm -f conftest.er1
29858 cat conftest.err >&5
29859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860 (exit $ac_status); } && {
29861 test -z "$ac_cxx_werror_flag" ||
29862 test ! -s conftest.err
29863 } && test -s conftest.$ac_objext; then
29865 video_qtopia=yes
29867 else
29868 echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29875 CXXFLAGS="$OLD_CXX"
29876 { echo "$as_me:$LINENO: result: $video_qtopia" >&5
29877 echo "${ECHO_T}$video_qtopia" >&6; }
29878 if test x$video_qtopia = xyes; then
29879 cat >>confdefs.h <<\_ACEOF
29880 #define SDL_VIDEO_DRIVER_QTOPIA 1
29881 _ACEOF
29883 SOURCES="$SOURCES $srcdir/src/video/qtopia/*.cc"
29884 SDLMAIN_SOURCES="$srcdir/src/main/qtopia/*.cc"
29885 EXTRA_CFLAGS="$EXTRA_CFLAGS $QTOPIA_FLAGS"
29886 SDL_CFLAGS="$SDL_CFLAGS -DQWS -Dmain=SDL_main"
29887 SDL_LIBS="-lSDLmain $SDL_LIBS -L${QPEDIR}/lib -L${QTDIR}/lib/ -lqpe -lqte"
29888 have_video=yes
29890 ac_ext=c
29891 ac_cpp='$CPP $CPPFLAGS'
29892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29899 CheckPicoGUI()
29901 # Check whether --enable-video-picogui was given.
29902 if test "${enable_video_picogui+set}" = set; then
29903 enableval=$enable_video_picogui;
29904 else
29905 enable_video_picogui=no
29908 if test x$enable_video = xyes -a x$enable_video_picogui = xyes; then
29909 { echo "$as_me:$LINENO: checking for PicoGUI support" >&5
29910 echo $ECHO_N "checking for PicoGUI support... $ECHO_C" >&6; }
29911 video_picogui=no
29912 cat >conftest.$ac_ext <<_ACEOF
29913 /* confdefs.h. */
29914 _ACEOF
29915 cat confdefs.h >>conftest.$ac_ext
29916 cat >>conftest.$ac_ext <<_ACEOF
29917 /* end confdefs.h. */
29919 #include <picogui.h>
29922 main ()
29927 return 0;
29929 _ACEOF
29930 rm -f conftest.$ac_objext
29931 if { (ac_try="$ac_compile"
29932 case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29935 esac
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_compile") 2>conftest.er1
29938 ac_status=$?
29939 grep -v '^ *+' conftest.er1 >conftest.err
29940 rm -f conftest.er1
29941 cat conftest.err >&5
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } && {
29944 test -z "$ac_c_werror_flag" ||
29945 test ! -s conftest.err
29946 } && test -s conftest.$ac_objext; then
29948 video_picogui=yes
29950 else
29951 echo "$as_me: failed program was:" >&5
29952 sed 's/^/| /' conftest.$ac_ext >&5
29957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29958 { echo "$as_me:$LINENO: result: $video_picogui" >&5
29959 echo "${ECHO_T}$video_picogui" >&6; }
29960 if test x$video_picogui = xyes; then
29961 cat >>confdefs.h <<\_ACEOF
29962 #define SDL_VIDEO_DRIVER_PICOGUI 1
29963 _ACEOF
29965 SOURCES="$SOURCES $srcdir/src/video/picogui/*.c"
29966 SDL_LIBS="$SDL_LIBS -lpgui"
29967 have_video=yes
29972 CheckAtariBiosEvent()
29974 SOURCES="$SOURCES $srcdir/src/video/ataricommon/*.c"
29975 SOURCES="$SOURCES $srcdir/src/video/ataricommon/*.S"
29978 CheckAtariXbiosVideo()
29980 # Check whether --enable-xbios was given.
29981 if test "${enable_xbios+set}" = set; then
29982 enableval=$enable_xbios;
29983 else
29984 enable_video_xbios=yes
29987 video_xbios=no
29988 if test x$enable_video = xyes -a x$enable_video_xbios = xyes; then
29989 video_xbios=yes
29990 cat >>confdefs.h <<\_ACEOF
29991 #define SDL_VIDEO_DRIVER_XBIOS 1
29992 _ACEOF
29994 SOURCES="$SOURCES $srcdir/src/video/xbios/*.c"
29995 have_video=yes
29999 CheckAtariGemVideo()
30001 # Check whether --enable-gem was given.
30002 if test "${enable_gem+set}" = set; then
30003 enableval=$enable_gem;
30004 else
30005 enable_video_gem=yes
30008 if test x$enable_video = xyes -a x$enable_video_gem = xyes; then
30009 video_gem=no
30010 if test "${ac_cv_header_gem_h+set}" = set; then
30011 { echo "$as_me:$LINENO: checking for gem.h" >&5
30012 echo $ECHO_N "checking for gem.h... $ECHO_C" >&6; }
30013 if test "${ac_cv_header_gem_h+set}" = set; then
30014 echo $ECHO_N "(cached) $ECHO_C" >&6
30016 { echo "$as_me:$LINENO: result: $ac_cv_header_gem_h" >&5
30017 echo "${ECHO_T}$ac_cv_header_gem_h" >&6; }
30018 else
30019 # Is the header compilable?
30020 { echo "$as_me:$LINENO: checking gem.h usability" >&5
30021 echo $ECHO_N "checking gem.h usability... $ECHO_C" >&6; }
30022 cat >conftest.$ac_ext <<_ACEOF
30023 /* confdefs.h. */
30024 _ACEOF
30025 cat confdefs.h >>conftest.$ac_ext
30026 cat >>conftest.$ac_ext <<_ACEOF
30027 /* end confdefs.h. */
30028 $ac_includes_default
30029 #include <gem.h>
30030 _ACEOF
30031 rm -f conftest.$ac_objext
30032 if { (ac_try="$ac_compile"
30033 case "(($ac_try" in
30034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30035 *) ac_try_echo=$ac_try;;
30036 esac
30037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038 (eval "$ac_compile") 2>conftest.er1
30039 ac_status=$?
30040 grep -v '^ *+' conftest.er1 >conftest.err
30041 rm -f conftest.er1
30042 cat conftest.err >&5
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); } && {
30045 test -z "$ac_c_werror_flag" ||
30046 test ! -s conftest.err
30047 } && test -s conftest.$ac_objext; then
30048 ac_header_compiler=yes
30049 else
30050 echo "$as_me: failed program was:" >&5
30051 sed 's/^/| /' conftest.$ac_ext >&5
30053 ac_header_compiler=no
30056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30058 echo "${ECHO_T}$ac_header_compiler" >&6; }
30060 # Is the header present?
30061 { echo "$as_me:$LINENO: checking gem.h presence" >&5
30062 echo $ECHO_N "checking gem.h presence... $ECHO_C" >&6; }
30063 cat >conftest.$ac_ext <<_ACEOF
30064 /* confdefs.h. */
30065 _ACEOF
30066 cat confdefs.h >>conftest.$ac_ext
30067 cat >>conftest.$ac_ext <<_ACEOF
30068 /* end confdefs.h. */
30069 #include <gem.h>
30070 _ACEOF
30071 if { (ac_try="$ac_cpp conftest.$ac_ext"
30072 case "(($ac_try" in
30073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074 *) ac_try_echo=$ac_try;;
30075 esac
30076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30078 ac_status=$?
30079 grep -v '^ *+' conftest.er1 >conftest.err
30080 rm -f conftest.er1
30081 cat conftest.err >&5
30082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083 (exit $ac_status); } >/dev/null && {
30084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30085 test ! -s conftest.err
30086 }; then
30087 ac_header_preproc=yes
30088 else
30089 echo "$as_me: failed program was:" >&5
30090 sed 's/^/| /' conftest.$ac_ext >&5
30092 ac_header_preproc=no
30095 rm -f conftest.err conftest.$ac_ext
30096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30097 echo "${ECHO_T}$ac_header_preproc" >&6; }
30099 # So? What about this header?
30100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30101 yes:no: )
30102 { echo "$as_me:$LINENO: WARNING: gem.h: accepted by the compiler, rejected by the preprocessor!" >&5
30103 echo "$as_me: WARNING: gem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30104 { echo "$as_me:$LINENO: WARNING: gem.h: proceeding with the compiler's result" >&5
30105 echo "$as_me: WARNING: gem.h: proceeding with the compiler's result" >&2;}
30106 ac_header_preproc=yes
30108 no:yes:* )
30109 { echo "$as_me:$LINENO: WARNING: gem.h: present but cannot be compiled" >&5
30110 echo "$as_me: WARNING: gem.h: present but cannot be compiled" >&2;}
30111 { echo "$as_me:$LINENO: WARNING: gem.h: check for missing prerequisite headers?" >&5
30112 echo "$as_me: WARNING: gem.h: check for missing prerequisite headers?" >&2;}
30113 { echo "$as_me:$LINENO: WARNING: gem.h: see the Autoconf documentation" >&5
30114 echo "$as_me: WARNING: gem.h: see the Autoconf documentation" >&2;}
30115 { echo "$as_me:$LINENO: WARNING: gem.h: section \"Present But Cannot Be Compiled\"" >&5
30116 echo "$as_me: WARNING: gem.h: section \"Present But Cannot Be Compiled\"" >&2;}
30117 { echo "$as_me:$LINENO: WARNING: gem.h: proceeding with the preprocessor's result" >&5
30118 echo "$as_me: WARNING: gem.h: proceeding with the preprocessor's result" >&2;}
30119 { echo "$as_me:$LINENO: WARNING: gem.h: in the future, the compiler will take precedence" >&5
30120 echo "$as_me: WARNING: gem.h: in the future, the compiler will take precedence" >&2;}
30123 esac
30124 { echo "$as_me:$LINENO: checking for gem.h" >&5
30125 echo $ECHO_N "checking for gem.h... $ECHO_C" >&6; }
30126 if test "${ac_cv_header_gem_h+set}" = set; then
30127 echo $ECHO_N "(cached) $ECHO_C" >&6
30128 else
30129 ac_cv_header_gem_h=$ac_header_preproc
30131 { echo "$as_me:$LINENO: result: $ac_cv_header_gem_h" >&5
30132 echo "${ECHO_T}$ac_cv_header_gem_h" >&6; }
30135 if test $ac_cv_header_gem_h = yes; then
30136 have_gem_hdr=yes
30140 { echo "$as_me:$LINENO: checking for appl_init in -lgem" >&5
30141 echo $ECHO_N "checking for appl_init in -lgem... $ECHO_C" >&6; }
30142 if test "${ac_cv_lib_gem_appl_init+set}" = set; then
30143 echo $ECHO_N "(cached) $ECHO_C" >&6
30144 else
30145 ac_check_lib_save_LIBS=$LIBS
30146 LIBS="-lgem $LIBS"
30147 cat >conftest.$ac_ext <<_ACEOF
30148 /* confdefs.h. */
30149 _ACEOF
30150 cat confdefs.h >>conftest.$ac_ext
30151 cat >>conftest.$ac_ext <<_ACEOF
30152 /* end confdefs.h. */
30154 /* Override any GCC internal prototype to avoid an error.
30155 Use char because int might match the return type of a GCC
30156 builtin and then its argument prototype would still apply. */
30157 #ifdef __cplusplus
30158 extern "C"
30159 #endif
30160 char appl_init ();
30162 main ()
30164 return appl_init ();
30166 return 0;
30168 _ACEOF
30169 rm -f conftest.$ac_objext conftest$ac_exeext
30170 if { (ac_try="$ac_link"
30171 case "(($ac_try" in
30172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30173 *) ac_try_echo=$ac_try;;
30174 esac
30175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30176 (eval "$ac_link") 2>conftest.er1
30177 ac_status=$?
30178 grep -v '^ *+' conftest.er1 >conftest.err
30179 rm -f conftest.er1
30180 cat conftest.err >&5
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); } && {
30183 test -z "$ac_c_werror_flag" ||
30184 test ! -s conftest.err
30185 } && test -s conftest$ac_exeext &&
30186 $as_test_x conftest$ac_exeext; then
30187 ac_cv_lib_gem_appl_init=yes
30188 else
30189 echo "$as_me: failed program was:" >&5
30190 sed 's/^/| /' conftest.$ac_ext >&5
30192 ac_cv_lib_gem_appl_init=no
30195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30196 conftest$ac_exeext conftest.$ac_ext
30197 LIBS=$ac_check_lib_save_LIBS
30199 { echo "$as_me:$LINENO: result: $ac_cv_lib_gem_appl_init" >&5
30200 echo "${ECHO_T}$ac_cv_lib_gem_appl_init" >&6; }
30201 if test $ac_cv_lib_gem_appl_init = yes; then
30202 have_gem_lib=yes
30205 if test x$have_gem_hdr = xyes -a x$have_gem_lib = xyes; then
30206 video_gem=yes
30207 cat >>confdefs.h <<\_ACEOF
30208 #define SDL_VIDEO_DRIVER_GEM 1
30209 _ACEOF
30211 SOURCES="$SOURCES $srcdir/src/video/gem/*.c"
30212 SDL_LIBS="$SDL_LIBS -lgem"
30213 have_video=yes
30218 CheckDummyVideo()
30220 # Check whether --enable-video-dummy was given.
30221 if test "${enable_video_dummy+set}" = set; then
30222 enableval=$enable_video_dummy;
30223 else
30224 enable_video_dummy=yes
30227 if test x$enable_video_dummy = xyes; then
30228 cat >>confdefs.h <<\_ACEOF
30229 #define SDL_VIDEO_DRIVER_DUMMY 1
30230 _ACEOF
30232 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
30233 have_video=yes
30237 # Check whether --enable-video-opengl was given.
30238 if test "${enable_video_opengl+set}" = set; then
30239 enableval=$enable_video_opengl;
30240 else
30241 enable_video_opengl=yes
30245 CheckOpenGLX11()
30247 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
30248 { echo "$as_me:$LINENO: checking for OpenGL (GLX) support" >&5
30249 echo $ECHO_N "checking for OpenGL (GLX) support... $ECHO_C" >&6; }
30250 video_opengl=no
30251 cat >conftest.$ac_ext <<_ACEOF
30252 /* confdefs.h. */
30253 _ACEOF
30254 cat confdefs.h >>conftest.$ac_ext
30255 cat >>conftest.$ac_ext <<_ACEOF
30256 /* end confdefs.h. */
30258 #include <GL/gl.h>
30259 #include <GL/glx.h>
30260 #include <GL/glu.h>
30263 main ()
30268 return 0;
30270 _ACEOF
30271 rm -f conftest.$ac_objext
30272 if { (ac_try="$ac_compile"
30273 case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30276 esac
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_compile") 2>conftest.er1
30279 ac_status=$?
30280 grep -v '^ *+' conftest.er1 >conftest.err
30281 rm -f conftest.er1
30282 cat conftest.err >&5
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); } && {
30285 test -z "$ac_c_werror_flag" ||
30286 test ! -s conftest.err
30287 } && test -s conftest.$ac_objext; then
30289 video_opengl=yes
30291 else
30292 echo "$as_me: failed program was:" >&5
30293 sed 's/^/| /' conftest.$ac_ext >&5
30298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30299 { echo "$as_me:$LINENO: result: $video_opengl" >&5
30300 echo "${ECHO_T}$video_opengl" >&6; }
30301 if test x$video_opengl = xyes; then
30302 cat >>confdefs.h <<\_ACEOF
30303 #define SDL_VIDEO_OPENGL 1
30304 _ACEOF
30306 cat >>confdefs.h <<\_ACEOF
30307 #define SDL_VIDEO_OPENGL_GLX 1
30308 _ACEOF
30314 CheckOpenGLQNX()
30316 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
30317 { echo "$as_me:$LINENO: checking for OpenGL (Photon) support" >&5
30318 echo $ECHO_N "checking for OpenGL (Photon) support... $ECHO_C" >&6; }
30319 video_opengl=no
30320 cat >conftest.$ac_ext <<_ACEOF
30321 /* confdefs.h. */
30322 _ACEOF
30323 cat confdefs.h >>conftest.$ac_ext
30324 cat >>conftest.$ac_ext <<_ACEOF
30325 /* end confdefs.h. */
30327 #include <GL/gl.h>
30330 main ()
30335 return 0;
30337 _ACEOF
30338 rm -f conftest.$ac_objext
30339 if { (ac_try="$ac_compile"
30340 case "(($ac_try" in
30341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30342 *) ac_try_echo=$ac_try;;
30343 esac
30344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30345 (eval "$ac_compile") 2>conftest.er1
30346 ac_status=$?
30347 grep -v '^ *+' conftest.er1 >conftest.err
30348 rm -f conftest.er1
30349 cat conftest.err >&5
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); } && {
30352 test -z "$ac_c_werror_flag" ||
30353 test ! -s conftest.err
30354 } && test -s conftest.$ac_objext; then
30356 video_opengl=yes
30358 else
30359 echo "$as_me: failed program was:" >&5
30360 sed 's/^/| /' conftest.$ac_ext >&5
30365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30366 { echo "$as_me:$LINENO: result: $video_opengl" >&5
30367 echo "${ECHO_T}$video_opengl" >&6; }
30368 if test x$video_opengl = xyes; then
30369 cat >>confdefs.h <<\_ACEOF
30370 #define SDL_VIDEO_OPENGL 1
30371 _ACEOF
30373 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
30378 CheckWIN32GL()
30380 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
30381 cat >>confdefs.h <<\_ACEOF
30382 #define SDL_VIDEO_OPENGL 1
30383 _ACEOF
30385 cat >>confdefs.h <<\_ACEOF
30386 #define SDL_VIDEO_OPENGL_WGL 1
30387 _ACEOF
30392 CheckBeGL()
30394 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
30395 cat >>confdefs.h <<\_ACEOF
30396 #define SDL_VIDEO_OPENGL 1
30397 _ACEOF
30399 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
30403 CheckMacGL()
30405 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
30406 cat >>confdefs.h <<\_ACEOF
30407 #define SDL_VIDEO_OPENGL 1
30408 _ACEOF
30410 case "$host" in
30411 *-*-darwin*)
30412 if test x$enable_video_cocoa = xyes; then
30413 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
30415 if test x$enable_video_carbon = xyes; then
30416 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AGL"
30418 esac
30422 CheckAtariOSMesa()
30424 if test "x$enable_video" = "xyes" -a "x$enable_video_opengl" = "xyes"; then
30425 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
30426 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
30427 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
30428 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
30429 echo $ECHO_N "(cached) $ECHO_C" >&6
30431 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
30432 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
30433 else
30434 # Is the header compilable?
30435 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
30436 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
30437 cat >conftest.$ac_ext <<_ACEOF
30438 /* confdefs.h. */
30439 _ACEOF
30440 cat confdefs.h >>conftest.$ac_ext
30441 cat >>conftest.$ac_ext <<_ACEOF
30442 /* end confdefs.h. */
30443 $ac_includes_default
30444 #include <GL/osmesa.h>
30445 _ACEOF
30446 rm -f conftest.$ac_objext
30447 if { (ac_try="$ac_compile"
30448 case "(($ac_try" in
30449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30450 *) ac_try_echo=$ac_try;;
30451 esac
30452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30453 (eval "$ac_compile") 2>conftest.er1
30454 ac_status=$?
30455 grep -v '^ *+' conftest.er1 >conftest.err
30456 rm -f conftest.er1
30457 cat conftest.err >&5
30458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459 (exit $ac_status); } && {
30460 test -z "$ac_c_werror_flag" ||
30461 test ! -s conftest.err
30462 } && test -s conftest.$ac_objext; then
30463 ac_header_compiler=yes
30464 else
30465 echo "$as_me: failed program was:" >&5
30466 sed 's/^/| /' conftest.$ac_ext >&5
30468 ac_header_compiler=no
30471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30473 echo "${ECHO_T}$ac_header_compiler" >&6; }
30475 # Is the header present?
30476 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
30477 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
30478 cat >conftest.$ac_ext <<_ACEOF
30479 /* confdefs.h. */
30480 _ACEOF
30481 cat confdefs.h >>conftest.$ac_ext
30482 cat >>conftest.$ac_ext <<_ACEOF
30483 /* end confdefs.h. */
30484 #include <GL/osmesa.h>
30485 _ACEOF
30486 if { (ac_try="$ac_cpp conftest.$ac_ext"
30487 case "(($ac_try" in
30488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30489 *) ac_try_echo=$ac_try;;
30490 esac
30491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30493 ac_status=$?
30494 grep -v '^ *+' conftest.er1 >conftest.err
30495 rm -f conftest.er1
30496 cat conftest.err >&5
30497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498 (exit $ac_status); } >/dev/null && {
30499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30500 test ! -s conftest.err
30501 }; then
30502 ac_header_preproc=yes
30503 else
30504 echo "$as_me: failed program was:" >&5
30505 sed 's/^/| /' conftest.$ac_ext >&5
30507 ac_header_preproc=no
30510 rm -f conftest.err conftest.$ac_ext
30511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30512 echo "${ECHO_T}$ac_header_preproc" >&6; }
30514 # So? What about this header?
30515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30516 yes:no: )
30517 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
30518 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30519 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
30520 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
30521 ac_header_preproc=yes
30523 no:yes:* )
30524 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
30525 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
30526 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
30527 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
30528 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
30529 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
30530 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
30531 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
30532 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
30533 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
30534 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
30535 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
30538 esac
30539 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
30540 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
30541 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
30542 echo $ECHO_N "(cached) $ECHO_C" >&6
30543 else
30544 ac_cv_header_GL_osmesa_h=$ac_header_preproc
30546 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
30547 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
30550 if test $ac_cv_header_GL_osmesa_h = yes; then
30551 have_osmesa_hdr=yes
30555 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
30556 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
30557 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
30558 echo $ECHO_N "(cached) $ECHO_C" >&6
30559 else
30560 ac_check_lib_save_LIBS=$LIBS
30561 LIBS="-lOSMesa -lm $LIBS"
30562 cat >conftest.$ac_ext <<_ACEOF
30563 /* confdefs.h. */
30564 _ACEOF
30565 cat confdefs.h >>conftest.$ac_ext
30566 cat >>conftest.$ac_ext <<_ACEOF
30567 /* end confdefs.h. */
30569 /* Override any GCC internal prototype to avoid an error.
30570 Use char because int might match the return type of a GCC
30571 builtin and then its argument prototype would still apply. */
30572 #ifdef __cplusplus
30573 extern "C"
30574 #endif
30575 char OSMesaCreateContext ();
30577 main ()
30579 return OSMesaCreateContext ();
30581 return 0;
30583 _ACEOF
30584 rm -f conftest.$ac_objext conftest$ac_exeext
30585 if { (ac_try="$ac_link"
30586 case "(($ac_try" in
30587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588 *) ac_try_echo=$ac_try;;
30589 esac
30590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591 (eval "$ac_link") 2>conftest.er1
30592 ac_status=$?
30593 grep -v '^ *+' conftest.er1 >conftest.err
30594 rm -f conftest.er1
30595 cat conftest.err >&5
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); } && {
30598 test -z "$ac_c_werror_flag" ||
30599 test ! -s conftest.err
30600 } && test -s conftest$ac_exeext &&
30601 $as_test_x conftest$ac_exeext; then
30602 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
30603 else
30604 echo "$as_me: failed program was:" >&5
30605 sed 's/^/| /' conftest.$ac_ext >&5
30607 ac_cv_lib_OSMesa_OSMesaCreateContext=no
30610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30611 conftest$ac_exeext conftest.$ac_ext
30612 LIBS=$ac_check_lib_save_LIBS
30614 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
30615 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
30616 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
30617 have_osmesa_lib=yes
30618 else
30619 have_osmesa_lib=no
30623 # Static linking to -lOSMesa
30624 # Extract the first word of "osmesa-config", so it can be a program name with args.
30625 set dummy osmesa-config; ac_word=$2
30626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30628 if test "${ac_cv_path_OSMESA_CONFIG+set}" = set; then
30629 echo $ECHO_N "(cached) $ECHO_C" >&6
30630 else
30631 case $OSMESA_CONFIG in
30632 [\\/]* | ?:[\\/]*)
30633 ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path.
30636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30637 for as_dir in $PATH
30639 IFS=$as_save_IFS
30640 test -z "$as_dir" && as_dir=.
30641 for ac_exec_ext in '' $ac_executable_extensions; do
30642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30643 ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30645 break 2
30647 done
30648 done
30649 IFS=$as_save_IFS
30651 test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
30653 esac
30655 OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
30656 if test -n "$OSMESA_CONFIG"; then
30657 { echo "$as_me:$LINENO: result: $OSMESA_CONFIG" >&5
30658 echo "${ECHO_T}$OSMESA_CONFIG" >&6; }
30659 else
30660 { echo "$as_me:$LINENO: result: no" >&5
30661 echo "${ECHO_T}no" >&6; }
30665 if test "x$OSMESA_CONFIG" = "xno" -o "x$enable_atari_ldg" = "xno"; then
30666 # -lOSMesa is really the static library
30667 if test "x$have_osmesa_hdr" = "xyes" -a "x$have_osmesa_lib" = "xyes"; then
30668 OSMESA_LIBS="-lOSMesa"
30670 else
30671 # -lOSMesa is a loader for OSMesa.ldg
30672 OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
30673 OSMESA_LIBS=`$OSMESA_CONFIG --libs`
30675 cat >>confdefs.h <<\_ACEOF
30676 #define SDL_VIDEO_OPENGL 1
30677 _ACEOF
30679 cat >>confdefs.h <<\_ACEOF
30680 #define SDL_VIDEO_OPENGL_OSMESA 1
30681 _ACEOF
30683 SDL_CFLAGS="$SDL_CFLAGS $OSMESA_CFLAGS"
30684 SDL_LIBS="$SDL_LIBS $OSMESA_LIBS"
30686 # Check whether --enable-osmesa-shared was given.
30687 if test "${enable_osmesa_shared+set}" = set; then
30688 enableval=$enable_osmesa_shared;
30689 else
30690 enable_osmesa_shared=yes
30693 if test "x$enable_osmesa_shared" = "xyes" -a "x$enable_atari_ldg" = "xyes"; then
30694 # Dynamic linking
30695 if test "x$have_osmesa_hdr" = "xyes"; then
30696 cat >>confdefs.h <<\_ACEOF
30697 #define SDL_VIDEO_OPENGL_OSMESA_DYNAMIC 1
30698 _ACEOF
30705 CheckInputEvents()
30707 # Check whether --enable-input-events was given.
30708 if test "${enable_input_events+set}" = set; then
30709 enableval=$enable_input_events;
30710 else
30711 enable_input_events=yes
30714 if test x$enable_input_events = xyes; then
30715 { echo "$as_me:$LINENO: checking for Linux 2.4 unified input interface" >&5
30716 echo $ECHO_N "checking for Linux 2.4 unified input interface... $ECHO_C" >&6; }
30717 use_input_events=no
30718 cat >conftest.$ac_ext <<_ACEOF
30719 /* confdefs.h. */
30720 _ACEOF
30721 cat confdefs.h >>conftest.$ac_ext
30722 cat >>conftest.$ac_ext <<_ACEOF
30723 /* end confdefs.h. */
30725 #include <linux/input.h>
30728 main ()
30731 #ifndef EVIOCGNAME
30732 #error EVIOCGNAME() ioctl not available
30733 #endif
30736 return 0;
30738 _ACEOF
30739 rm -f conftest.$ac_objext
30740 if { (ac_try="$ac_compile"
30741 case "(($ac_try" in
30742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30743 *) ac_try_echo=$ac_try;;
30744 esac
30745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30746 (eval "$ac_compile") 2>conftest.er1
30747 ac_status=$?
30748 grep -v '^ *+' conftest.er1 >conftest.err
30749 rm -f conftest.er1
30750 cat conftest.err >&5
30751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752 (exit $ac_status); } && {
30753 test -z "$ac_c_werror_flag" ||
30754 test ! -s conftest.err
30755 } && test -s conftest.$ac_objext; then
30757 use_input_events=yes
30759 else
30760 echo "$as_me: failed program was:" >&5
30761 sed 's/^/| /' conftest.$ac_ext >&5
30766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30767 { echo "$as_me:$LINENO: result: $use_input_events" >&5
30768 echo "${ECHO_T}$use_input_events" >&6; }
30769 if test x$use_input_events = xyes; then
30770 cat >>confdefs.h <<\_ACEOF
30771 #define SDL_INPUT_LINUXEV 1
30772 _ACEOF
30778 CheckTslib()
30780 # Check whether --enable-input-tslib was given.
30781 if test "${enable_input_tslib+set}" = set; then
30782 enableval=$enable_input_tslib;
30783 else
30784 enable_input_tslib=yes
30787 if test x$enable_input_tslib = xyes; then
30788 { echo "$as_me:$LINENO: checking for Touchscreen library support" >&5
30789 echo $ECHO_N "checking for Touchscreen library support... $ECHO_C" >&6; }
30790 enable_input_tslib=no
30791 cat >conftest.$ac_ext <<_ACEOF
30792 /* confdefs.h. */
30793 _ACEOF
30794 cat confdefs.h >>conftest.$ac_ext
30795 cat >>conftest.$ac_ext <<_ACEOF
30796 /* end confdefs.h. */
30798 #include "tslib.h"
30801 main ()
30806 return 0;
30808 _ACEOF
30809 rm -f conftest.$ac_objext
30810 if { (ac_try="$ac_compile"
30811 case "(($ac_try" in
30812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30813 *) ac_try_echo=$ac_try;;
30814 esac
30815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30816 (eval "$ac_compile") 2>conftest.er1
30817 ac_status=$?
30818 grep -v '^ *+' conftest.er1 >conftest.err
30819 rm -f conftest.er1
30820 cat conftest.err >&5
30821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822 (exit $ac_status); } && {
30823 test -z "$ac_c_werror_flag" ||
30824 test ! -s conftest.err
30825 } && test -s conftest.$ac_objext; then
30827 enable_input_tslib=yes
30829 else
30830 echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30837 { echo "$as_me:$LINENO: result: $enable_input_tslib" >&5
30838 echo "${ECHO_T}$enable_input_tslib" >&6; }
30839 if test x$enable_input_tslib = xyes; then
30840 cat >>confdefs.h <<\_ACEOF
30841 #define SDL_INPUT_TSLIB 1
30842 _ACEOF
30844 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
30849 CheckPTH()
30851 # Check whether --enable-pth was given.
30852 if test "${enable_pth+set}" = set; then
30853 enableval=$enable_pth;
30854 else
30855 enable_pth=yes
30858 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
30859 # Extract the first word of "pth-config", so it can be a program name with args.
30860 set dummy pth-config; ac_word=$2
30861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30863 if test "${ac_cv_path_PTH_CONFIG+set}" = set; then
30864 echo $ECHO_N "(cached) $ECHO_C" >&6
30865 else
30866 case $PTH_CONFIG in
30867 [\\/]* | ?:[\\/]*)
30868 ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
30871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30872 for as_dir in $PATH
30874 IFS=$as_save_IFS
30875 test -z "$as_dir" && as_dir=.
30876 for ac_exec_ext in '' $ac_executable_extensions; do
30877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30878 ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30880 break 2
30882 done
30883 done
30884 IFS=$as_save_IFS
30886 test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
30888 esac
30890 PTH_CONFIG=$ac_cv_path_PTH_CONFIG
30891 if test -n "$PTH_CONFIG"; then
30892 { echo "$as_me:$LINENO: result: $PTH_CONFIG" >&5
30893 echo "${ECHO_T}$PTH_CONFIG" >&6; }
30894 else
30895 { echo "$as_me:$LINENO: result: no" >&5
30896 echo "${ECHO_T}no" >&6; }
30900 if test "$PTH_CONFIG" = "no"; then
30901 use_pth=no
30902 else
30903 use_pth=yes
30905 { echo "$as_me:$LINENO: checking pth" >&5
30906 echo $ECHO_N "checking pth... $ECHO_C" >&6; }
30907 { echo "$as_me:$LINENO: result: $use_pth" >&5
30908 echo "${ECHO_T}$use_pth" >&6; }
30909 if test "x$use_pth" = xyes; then
30910 cat >>confdefs.h <<\_ACEOF
30911 #define SDL_THREAD_PTH 1
30912 _ACEOF
30914 SOURCES="$SOURCES $srcdir/src/thread/pth/*.c"
30915 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
30916 SDL_CFLAGS="$SDL_CFLAGS `$PTH_CONFIG --cflags`"
30917 SDL_LIBS="$SDL_LIBS `$PTH_CONFIG --libs --all`"
30918 have_threads=yes
30923 CheckPTHREAD()
30925 # Check whether --enable-pthreads was given.
30926 if test "${enable_pthreads+set}" = set; then
30927 enableval=$enable_pthreads;
30928 else
30929 enable_pthreads=yes
30932 # Check whether --enable-pthread-sem was given.
30933 if test "${enable_pthread_sem+set}" = set; then
30934 enableval=$enable_pthread_sem;
30935 else
30936 enable_pthread_sem=yes
30939 case "$host" in
30940 *-*-linux*|*-*-uclinux*)
30941 pthread_cflags="-D_REENTRANT"
30942 pthread_lib="-lpthread"
30944 *-*-bsdi*)
30945 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
30946 pthread_lib=""
30948 *-*-darwin*)
30949 pthread_cflags="-D_THREAD_SAFE"
30950 # causes Carbon.p complaints?
30951 # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
30953 *-*-freebsd*|*-*-dragonfly*)
30954 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
30955 pthread_lib="-pthread"
30957 *-*-netbsd*)
30958 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
30959 pthread_lib="-lpthread"
30961 *-*-openbsd*)
30962 pthread_cflags="-D_REENTRANT"
30963 pthread_lib="-pthread"
30965 *-*-solaris*)
30966 pthread_cflags="-D_REENTRANT"
30967 pthread_lib="-lpthread -lposix4"
30969 *-*-sysv5*)
30970 pthread_cflags="-D_REENTRANT -Kthread"
30971 pthread_lib=""
30973 *-*-irix*)
30974 pthread_cflags="-D_SGI_MP_SOURCE"
30975 pthread_lib="-lpthread"
30977 *-*-aix*)
30978 pthread_cflags="-D_REENTRANT -mthreads"
30979 pthread_lib="-lpthread"
30981 *-*-hpux11*)
30982 pthread_cflags="-D_REENTRANT"
30983 pthread_lib="-L/usr/lib -lpthread"
30985 *-*-qnx*)
30986 pthread_cflags=""
30987 pthread_lib=""
30989 *-*-osf*)
30990 pthread_cflags="-D_REENTRANT"
30991 if test x$ac_cv_c_compiler_gnu = xyes; then
30992 pthread_lib="-lpthread -lrt"
30993 else
30994 pthread_lib="-lpthread -lexc -lrt"
30998 pthread_cflags="-D_REENTRANT"
30999 pthread_lib="-lpthread"
31001 esac
31002 if test x$enable_threads = xyes -a x$enable_pthreads = xyes -a x$enable_ipod != xyes; then
31003 # Save the original compiler flags and libraries
31004 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
31005 # Add the pthread compiler flags and libraries
31006 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
31007 # Check to see if we have pthread support on this system
31008 { echo "$as_me:$LINENO: checking for pthreads" >&5
31009 echo $ECHO_N "checking for pthreads... $ECHO_C" >&6; }
31010 use_pthreads=no
31011 cat >conftest.$ac_ext <<_ACEOF
31012 /* confdefs.h. */
31013 _ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h. */
31018 #include <pthread.h>
31021 main ()
31024 pthread_attr_t type;
31025 pthread_attr_init(&type);
31028 return 0;
31030 _ACEOF
31031 rm -f conftest.$ac_objext conftest$ac_exeext
31032 if { (ac_try="$ac_link"
31033 case "(($ac_try" in
31034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31035 *) ac_try_echo=$ac_try;;
31036 esac
31037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31038 (eval "$ac_link") 2>conftest.er1
31039 ac_status=$?
31040 grep -v '^ *+' conftest.er1 >conftest.err
31041 rm -f conftest.er1
31042 cat conftest.err >&5
31043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044 (exit $ac_status); } && {
31045 test -z "$ac_c_werror_flag" ||
31046 test ! -s conftest.err
31047 } && test -s conftest$ac_exeext &&
31048 $as_test_x conftest$ac_exeext; then
31050 use_pthreads=yes
31052 else
31053 echo "$as_me: failed program was:" >&5
31054 sed 's/^/| /' conftest.$ac_ext >&5
31059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31060 conftest$ac_exeext conftest.$ac_ext
31061 { echo "$as_me:$LINENO: result: $use_pthreads" >&5
31062 echo "${ECHO_T}$use_pthreads" >&6; }
31063 # Restore the compiler flags and libraries
31064 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
31066 # Do futher testing if we have pthread support...
31067 if test x$use_pthreads = xyes; then
31068 cat >>confdefs.h <<\_ACEOF
31069 #define SDL_THREAD_PTHREAD 1
31070 _ACEOF
31072 EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
31073 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
31074 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
31075 SDL_LIBS="$SDL_LIBS $pthread_lib"
31077 # Save the original compiler flags and libraries
31078 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
31079 # Add the pthread compiler flags and libraries
31080 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
31082 # Check to see if recursive mutexes are available
31083 { echo "$as_me:$LINENO: checking for recursive mutexes" >&5
31084 echo $ECHO_N "checking for recursive mutexes... $ECHO_C" >&6; }
31085 has_recursive_mutexes=no
31086 if test x$has_recursive_mutexes = xno; then
31087 cat >conftest.$ac_ext <<_ACEOF
31088 /* confdefs.h. */
31089 _ACEOF
31090 cat confdefs.h >>conftest.$ac_ext
31091 cat >>conftest.$ac_ext <<_ACEOF
31092 /* end confdefs.h. */
31094 #include <pthread.h>
31097 main ()
31100 pthread_mutexattr_t attr;
31101 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
31104 return 0;
31106 _ACEOF
31107 rm -f conftest.$ac_objext
31108 if { (ac_try="$ac_compile"
31109 case "(($ac_try" in
31110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31111 *) ac_try_echo=$ac_try;;
31112 esac
31113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31114 (eval "$ac_compile") 2>conftest.er1
31115 ac_status=$?
31116 grep -v '^ *+' conftest.er1 >conftest.err
31117 rm -f conftest.er1
31118 cat conftest.err >&5
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); } && {
31121 test -z "$ac_c_werror_flag" ||
31122 test ! -s conftest.err
31123 } && test -s conftest.$ac_objext; then
31125 has_recursive_mutexes=yes
31126 cat >>confdefs.h <<\_ACEOF
31127 #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
31128 _ACEOF
31131 else
31132 echo "$as_me: failed program was:" >&5
31133 sed 's/^/| /' conftest.$ac_ext >&5
31138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31140 if test x$has_recursive_mutexes = xno; then
31141 cat >conftest.$ac_ext <<_ACEOF
31142 /* confdefs.h. */
31143 _ACEOF
31144 cat confdefs.h >>conftest.$ac_ext
31145 cat >>conftest.$ac_ext <<_ACEOF
31146 /* end confdefs.h. */
31148 #include <pthread.h>
31151 main ()
31154 pthread_mutexattr_t attr;
31155 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
31158 return 0;
31160 _ACEOF
31161 rm -f conftest.$ac_objext
31162 if { (ac_try="$ac_compile"
31163 case "(($ac_try" in
31164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31165 *) ac_try_echo=$ac_try;;
31166 esac
31167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31168 (eval "$ac_compile") 2>conftest.er1
31169 ac_status=$?
31170 grep -v '^ *+' conftest.er1 >conftest.err
31171 rm -f conftest.er1
31172 cat conftest.err >&5
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); } && {
31175 test -z "$ac_c_werror_flag" ||
31176 test ! -s conftest.err
31177 } && test -s conftest.$ac_objext; then
31179 has_recursive_mutexes=yes
31180 cat >>confdefs.h <<\_ACEOF
31181 #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1
31182 _ACEOF
31185 else
31186 echo "$as_me: failed program was:" >&5
31187 sed 's/^/| /' conftest.$ac_ext >&5
31192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31194 { echo "$as_me:$LINENO: result: $has_recursive_mutexes" >&5
31195 echo "${ECHO_T}$has_recursive_mutexes" >&6; }
31197 # Check to see if pthread semaphore support is missing
31198 if test x$enable_pthread_sem = xyes; then
31199 { echo "$as_me:$LINENO: checking for pthread semaphores" >&5
31200 echo $ECHO_N "checking for pthread semaphores... $ECHO_C" >&6; }
31201 have_pthread_sem=no
31202 cat >conftest.$ac_ext <<_ACEOF
31203 /* confdefs.h. */
31204 _ACEOF
31205 cat confdefs.h >>conftest.$ac_ext
31206 cat >>conftest.$ac_ext <<_ACEOF
31207 /* end confdefs.h. */
31209 #include <pthread.h>
31210 #include <semaphore.h>
31213 main ()
31218 return 0;
31220 _ACEOF
31221 rm -f conftest.$ac_objext
31222 if { (ac_try="$ac_compile"
31223 case "(($ac_try" in
31224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31225 *) ac_try_echo=$ac_try;;
31226 esac
31227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228 (eval "$ac_compile") 2>conftest.er1
31229 ac_status=$?
31230 grep -v '^ *+' conftest.er1 >conftest.err
31231 rm -f conftest.er1
31232 cat conftest.err >&5
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); } && {
31235 test -z "$ac_c_werror_flag" ||
31236 test ! -s conftest.err
31237 } && test -s conftest.$ac_objext; then
31239 have_pthread_sem=yes
31241 else
31242 echo "$as_me: failed program was:" >&5
31243 sed 's/^/| /' conftest.$ac_ext >&5
31248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31249 { echo "$as_me:$LINENO: result: $have_pthread_sem" >&5
31250 echo "${ECHO_T}$have_pthread_sem" >&6; }
31253 # Restore the compiler flags and libraries
31254 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
31256 # Basic thread creation functions
31257 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
31259 # Semaphores
31260 # We can fake these with mutexes and condition variables if necessary
31261 if test x$have_pthread_sem = xyes; then
31262 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
31263 else
31264 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
31267 # Mutexes
31268 # We can fake these with semaphores if necessary
31269 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
31271 # Condition variables
31272 # We can fake these with semaphores and mutexes if necessary
31273 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
31275 have_threads=yes
31276 else
31277 CheckPTH
31282 CheckWIN32()
31284 { echo "$as_me:$LINENO: checking Win32 compiler" >&5
31285 echo $ECHO_N "checking Win32 compiler... $ECHO_C" >&6; }
31286 have_win32_gcc=no
31287 cat >conftest.$ac_ext <<_ACEOF
31288 /* confdefs.h. */
31289 _ACEOF
31290 cat confdefs.h >>conftest.$ac_ext
31291 cat >>conftest.$ac_ext <<_ACEOF
31292 /* end confdefs.h. */
31294 #include <windows.h>
31297 main ()
31302 return 0;
31304 _ACEOF
31305 rm -f conftest.$ac_objext
31306 if { (ac_try="$ac_compile"
31307 case "(($ac_try" in
31308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31309 *) ac_try_echo=$ac_try;;
31310 esac
31311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31312 (eval "$ac_compile") 2>conftest.er1
31313 ac_status=$?
31314 grep -v '^ *+' conftest.er1 >conftest.err
31315 rm -f conftest.er1
31316 cat conftest.err >&5
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); } && {
31319 test -z "$ac_c_werror_flag" ||
31320 test ! -s conftest.err
31321 } && test -s conftest.$ac_objext; then
31323 have_win32_gcc=yes
31325 else
31326 echo "$as_me: failed program was:" >&5
31327 sed 's/^/| /' conftest.$ac_ext >&5
31332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31333 { echo "$as_me:$LINENO: result: $have_win32_gcc" >&5
31334 echo "${ECHO_T}$have_win32_gcc" >&6; }
31335 if test x$have_win32_gcc != xyes; then
31336 { { echo "$as_me:$LINENO: error:
31337 *** Your compiler ($CC) does not produce Win32 executables!
31338 " >&5
31339 echo "$as_me: error:
31340 *** Your compiler ($CC) does not produce Win32 executables!
31341 " >&2;}
31342 { (exit 1); exit 1; }; }
31345 # Check whether --enable-stdio-redirect was given.
31346 if test "${enable_stdio_redirect+set}" = set; then
31347 enableval=$enable_stdio_redirect;
31348 else
31349 enable_stdio_redirect=yes
31352 if test x$enable_stdio_redirect != xyes; then
31353 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_STDIO_REDIRECT"
31356 if test x$enable_video = xyes; then
31357 cat >>confdefs.h <<\_ACEOF
31358 #define SDL_VIDEO_DRIVER_WINDIB 1
31359 _ACEOF
31361 SOURCES="$SOURCES $srcdir/src/video/wincommon/*.c"
31362 SOURCES="$SOURCES $srcdir/src/video/windib/*.c"
31363 have_video=yes
31367 CheckDIRECTX()
31369 # Check whether --enable-directx was given.
31370 if test "${enable_directx+set}" = set; then
31371 enableval=$enable_directx;
31372 else
31373 enable_directx=yes
31376 if test x$enable_directx = xyes; then
31377 have_directx=no
31378 if test "${ac_cv_header_ddraw_h+set}" = set; then
31379 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
31380 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
31381 if test "${ac_cv_header_ddraw_h+set}" = set; then
31382 echo $ECHO_N "(cached) $ECHO_C" >&6
31384 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
31385 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
31386 else
31387 # Is the header compilable?
31388 { echo "$as_me:$LINENO: checking ddraw.h usability" >&5
31389 echo $ECHO_N "checking ddraw.h usability... $ECHO_C" >&6; }
31390 cat >conftest.$ac_ext <<_ACEOF
31391 /* confdefs.h. */
31392 _ACEOF
31393 cat confdefs.h >>conftest.$ac_ext
31394 cat >>conftest.$ac_ext <<_ACEOF
31395 /* end confdefs.h. */
31396 $ac_includes_default
31397 #include <ddraw.h>
31398 _ACEOF
31399 rm -f conftest.$ac_objext
31400 if { (ac_try="$ac_compile"
31401 case "(($ac_try" in
31402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31403 *) ac_try_echo=$ac_try;;
31404 esac
31405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31406 (eval "$ac_compile") 2>conftest.er1
31407 ac_status=$?
31408 grep -v '^ *+' conftest.er1 >conftest.err
31409 rm -f conftest.er1
31410 cat conftest.err >&5
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); } && {
31413 test -z "$ac_c_werror_flag" ||
31414 test ! -s conftest.err
31415 } && test -s conftest.$ac_objext; then
31416 ac_header_compiler=yes
31417 else
31418 echo "$as_me: failed program was:" >&5
31419 sed 's/^/| /' conftest.$ac_ext >&5
31421 ac_header_compiler=no
31424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31426 echo "${ECHO_T}$ac_header_compiler" >&6; }
31428 # Is the header present?
31429 { echo "$as_me:$LINENO: checking ddraw.h presence" >&5
31430 echo $ECHO_N "checking ddraw.h presence... $ECHO_C" >&6; }
31431 cat >conftest.$ac_ext <<_ACEOF
31432 /* confdefs.h. */
31433 _ACEOF
31434 cat confdefs.h >>conftest.$ac_ext
31435 cat >>conftest.$ac_ext <<_ACEOF
31436 /* end confdefs.h. */
31437 #include <ddraw.h>
31438 _ACEOF
31439 if { (ac_try="$ac_cpp conftest.$ac_ext"
31440 case "(($ac_try" in
31441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31442 *) ac_try_echo=$ac_try;;
31443 esac
31444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31446 ac_status=$?
31447 grep -v '^ *+' conftest.er1 >conftest.err
31448 rm -f conftest.er1
31449 cat conftest.err >&5
31450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451 (exit $ac_status); } >/dev/null && {
31452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31453 test ! -s conftest.err
31454 }; then
31455 ac_header_preproc=yes
31456 else
31457 echo "$as_me: failed program was:" >&5
31458 sed 's/^/| /' conftest.$ac_ext >&5
31460 ac_header_preproc=no
31463 rm -f conftest.err conftest.$ac_ext
31464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31465 echo "${ECHO_T}$ac_header_preproc" >&6; }
31467 # So? What about this header?
31468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31469 yes:no: )
31470 { echo "$as_me:$LINENO: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
31471 echo "$as_me: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31472 { echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the compiler's result" >&5
31473 echo "$as_me: WARNING: ddraw.h: proceeding with the compiler's result" >&2;}
31474 ac_header_preproc=yes
31476 no:yes:* )
31477 { echo "$as_me:$LINENO: WARNING: ddraw.h: present but cannot be compiled" >&5
31478 echo "$as_me: WARNING: ddraw.h: present but cannot be compiled" >&2;}
31479 { echo "$as_me:$LINENO: WARNING: ddraw.h: check for missing prerequisite headers?" >&5
31480 echo "$as_me: WARNING: ddraw.h: check for missing prerequisite headers?" >&2;}
31481 { echo "$as_me:$LINENO: WARNING: ddraw.h: see the Autoconf documentation" >&5
31482 echo "$as_me: WARNING: ddraw.h: see the Autoconf documentation" >&2;}
31483 { echo "$as_me:$LINENO: WARNING: ddraw.h: section \"Present But Cannot Be Compiled\"" >&5
31484 echo "$as_me: WARNING: ddraw.h: section \"Present But Cannot Be Compiled\"" >&2;}
31485 { echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the preprocessor's result" >&5
31486 echo "$as_me: WARNING: ddraw.h: proceeding with the preprocessor's result" >&2;}
31487 { echo "$as_me:$LINENO: WARNING: ddraw.h: in the future, the compiler will take precedence" >&5
31488 echo "$as_me: WARNING: ddraw.h: in the future, the compiler will take precedence" >&2;}
31491 esac
31492 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
31493 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
31494 if test "${ac_cv_header_ddraw_h+set}" = set; then
31495 echo $ECHO_N "(cached) $ECHO_C" >&6
31496 else
31497 ac_cv_header_ddraw_h=$ac_header_preproc
31499 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
31500 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
31503 if test $ac_cv_header_ddraw_h = yes; then
31504 have_ddraw=yes
31508 if test "${ac_cv_header_dsound_h+set}" = set; then
31509 { echo "$as_me:$LINENO: checking for dsound.h" >&5
31510 echo $ECHO_N "checking for dsound.h... $ECHO_C" >&6; }
31511 if test "${ac_cv_header_dsound_h+set}" = set; then
31512 echo $ECHO_N "(cached) $ECHO_C" >&6
31514 { echo "$as_me:$LINENO: result: $ac_cv_header_dsound_h" >&5
31515 echo "${ECHO_T}$ac_cv_header_dsound_h" >&6; }
31516 else
31517 # Is the header compilable?
31518 { echo "$as_me:$LINENO: checking dsound.h usability" >&5
31519 echo $ECHO_N "checking dsound.h usability... $ECHO_C" >&6; }
31520 cat >conftest.$ac_ext <<_ACEOF
31521 /* confdefs.h. */
31522 _ACEOF
31523 cat confdefs.h >>conftest.$ac_ext
31524 cat >>conftest.$ac_ext <<_ACEOF
31525 /* end confdefs.h. */
31526 $ac_includes_default
31527 #include <dsound.h>
31528 _ACEOF
31529 rm -f conftest.$ac_objext
31530 if { (ac_try="$ac_compile"
31531 case "(($ac_try" in
31532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533 *) ac_try_echo=$ac_try;;
31534 esac
31535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536 (eval "$ac_compile") 2>conftest.er1
31537 ac_status=$?
31538 grep -v '^ *+' conftest.er1 >conftest.err
31539 rm -f conftest.er1
31540 cat conftest.err >&5
31541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542 (exit $ac_status); } && {
31543 test -z "$ac_c_werror_flag" ||
31544 test ! -s conftest.err
31545 } && test -s conftest.$ac_objext; then
31546 ac_header_compiler=yes
31547 else
31548 echo "$as_me: failed program was:" >&5
31549 sed 's/^/| /' conftest.$ac_ext >&5
31551 ac_header_compiler=no
31554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31556 echo "${ECHO_T}$ac_header_compiler" >&6; }
31558 # Is the header present?
31559 { echo "$as_me:$LINENO: checking dsound.h presence" >&5
31560 echo $ECHO_N "checking dsound.h presence... $ECHO_C" >&6; }
31561 cat >conftest.$ac_ext <<_ACEOF
31562 /* confdefs.h. */
31563 _ACEOF
31564 cat confdefs.h >>conftest.$ac_ext
31565 cat >>conftest.$ac_ext <<_ACEOF
31566 /* end confdefs.h. */
31567 #include <dsound.h>
31568 _ACEOF
31569 if { (ac_try="$ac_cpp conftest.$ac_ext"
31570 case "(($ac_try" in
31571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31572 *) ac_try_echo=$ac_try;;
31573 esac
31574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31576 ac_status=$?
31577 grep -v '^ *+' conftest.er1 >conftest.err
31578 rm -f conftest.er1
31579 cat conftest.err >&5
31580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581 (exit $ac_status); } >/dev/null && {
31582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31583 test ! -s conftest.err
31584 }; then
31585 ac_header_preproc=yes
31586 else
31587 echo "$as_me: failed program was:" >&5
31588 sed 's/^/| /' conftest.$ac_ext >&5
31590 ac_header_preproc=no
31593 rm -f conftest.err conftest.$ac_ext
31594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31595 echo "${ECHO_T}$ac_header_preproc" >&6; }
31597 # So? What about this header?
31598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31599 yes:no: )
31600 { echo "$as_me:$LINENO: WARNING: dsound.h: accepted by the compiler, rejected by the preprocessor!" >&5
31601 echo "$as_me: WARNING: dsound.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31602 { echo "$as_me:$LINENO: WARNING: dsound.h: proceeding with the compiler's result" >&5
31603 echo "$as_me: WARNING: dsound.h: proceeding with the compiler's result" >&2;}
31604 ac_header_preproc=yes
31606 no:yes:* )
31607 { echo "$as_me:$LINENO: WARNING: dsound.h: present but cannot be compiled" >&5
31608 echo "$as_me: WARNING: dsound.h: present but cannot be compiled" >&2;}
31609 { echo "$as_me:$LINENO: WARNING: dsound.h: check for missing prerequisite headers?" >&5
31610 echo "$as_me: WARNING: dsound.h: check for missing prerequisite headers?" >&2;}
31611 { echo "$as_me:$LINENO: WARNING: dsound.h: see the Autoconf documentation" >&5
31612 echo "$as_me: WARNING: dsound.h: see the Autoconf documentation" >&2;}
31613 { echo "$as_me:$LINENO: WARNING: dsound.h: section \"Present But Cannot Be Compiled\"" >&5
31614 echo "$as_me: WARNING: dsound.h: section \"Present But Cannot Be Compiled\"" >&2;}
31615 { echo "$as_me:$LINENO: WARNING: dsound.h: proceeding with the preprocessor's result" >&5
31616 echo "$as_me: WARNING: dsound.h: proceeding with the preprocessor's result" >&2;}
31617 { echo "$as_me:$LINENO: WARNING: dsound.h: in the future, the compiler will take precedence" >&5
31618 echo "$as_me: WARNING: dsound.h: in the future, the compiler will take precedence" >&2;}
31621 esac
31622 { echo "$as_me:$LINENO: checking for dsound.h" >&5
31623 echo $ECHO_N "checking for dsound.h... $ECHO_C" >&6; }
31624 if test "${ac_cv_header_dsound_h+set}" = set; then
31625 echo $ECHO_N "(cached) $ECHO_C" >&6
31626 else
31627 ac_cv_header_dsound_h=$ac_header_preproc
31629 { echo "$as_me:$LINENO: result: $ac_cv_header_dsound_h" >&5
31630 echo "${ECHO_T}$ac_cv_header_dsound_h" >&6; }
31633 if test $ac_cv_header_dsound_h = yes; then
31634 have_dsound=yes
31638 if test "${ac_cv_header_dinput_h+set}" = set; then
31639 { echo "$as_me:$LINENO: checking for dinput.h" >&5
31640 echo $ECHO_N "checking for dinput.h... $ECHO_C" >&6; }
31641 if test "${ac_cv_header_dinput_h+set}" = set; then
31642 echo $ECHO_N "(cached) $ECHO_C" >&6
31644 { echo "$as_me:$LINENO: result: $ac_cv_header_dinput_h" >&5
31645 echo "${ECHO_T}$ac_cv_header_dinput_h" >&6; }
31646 else
31647 # Is the header compilable?
31648 { echo "$as_me:$LINENO: checking dinput.h usability" >&5
31649 echo $ECHO_N "checking dinput.h usability... $ECHO_C" >&6; }
31650 cat >conftest.$ac_ext <<_ACEOF
31651 /* confdefs.h. */
31652 _ACEOF
31653 cat confdefs.h >>conftest.$ac_ext
31654 cat >>conftest.$ac_ext <<_ACEOF
31655 /* end confdefs.h. */
31656 $ac_includes_default
31657 #include <dinput.h>
31658 _ACEOF
31659 rm -f conftest.$ac_objext
31660 if { (ac_try="$ac_compile"
31661 case "(($ac_try" in
31662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31663 *) ac_try_echo=$ac_try;;
31664 esac
31665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31666 (eval "$ac_compile") 2>conftest.er1
31667 ac_status=$?
31668 grep -v '^ *+' conftest.er1 >conftest.err
31669 rm -f conftest.er1
31670 cat conftest.err >&5
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); } && {
31673 test -z "$ac_c_werror_flag" ||
31674 test ! -s conftest.err
31675 } && test -s conftest.$ac_objext; then
31676 ac_header_compiler=yes
31677 else
31678 echo "$as_me: failed program was:" >&5
31679 sed 's/^/| /' conftest.$ac_ext >&5
31681 ac_header_compiler=no
31684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31686 echo "${ECHO_T}$ac_header_compiler" >&6; }
31688 # Is the header present?
31689 { echo "$as_me:$LINENO: checking dinput.h presence" >&5
31690 echo $ECHO_N "checking dinput.h presence... $ECHO_C" >&6; }
31691 cat >conftest.$ac_ext <<_ACEOF
31692 /* confdefs.h. */
31693 _ACEOF
31694 cat confdefs.h >>conftest.$ac_ext
31695 cat >>conftest.$ac_ext <<_ACEOF
31696 /* end confdefs.h. */
31697 #include <dinput.h>
31698 _ACEOF
31699 if { (ac_try="$ac_cpp conftest.$ac_ext"
31700 case "(($ac_try" in
31701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702 *) ac_try_echo=$ac_try;;
31703 esac
31704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31706 ac_status=$?
31707 grep -v '^ *+' conftest.er1 >conftest.err
31708 rm -f conftest.er1
31709 cat conftest.err >&5
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); } >/dev/null && {
31712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31713 test ! -s conftest.err
31714 }; then
31715 ac_header_preproc=yes
31716 else
31717 echo "$as_me: failed program was:" >&5
31718 sed 's/^/| /' conftest.$ac_ext >&5
31720 ac_header_preproc=no
31723 rm -f conftest.err conftest.$ac_ext
31724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31725 echo "${ECHO_T}$ac_header_preproc" >&6; }
31727 # So? What about this header?
31728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31729 yes:no: )
31730 { echo "$as_me:$LINENO: WARNING: dinput.h: accepted by the compiler, rejected by the preprocessor!" >&5
31731 echo "$as_me: WARNING: dinput.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31732 { echo "$as_me:$LINENO: WARNING: dinput.h: proceeding with the compiler's result" >&5
31733 echo "$as_me: WARNING: dinput.h: proceeding with the compiler's result" >&2;}
31734 ac_header_preproc=yes
31736 no:yes:* )
31737 { echo "$as_me:$LINENO: WARNING: dinput.h: present but cannot be compiled" >&5
31738 echo "$as_me: WARNING: dinput.h: present but cannot be compiled" >&2;}
31739 { echo "$as_me:$LINENO: WARNING: dinput.h: check for missing prerequisite headers?" >&5
31740 echo "$as_me: WARNING: dinput.h: check for missing prerequisite headers?" >&2;}
31741 { echo "$as_me:$LINENO: WARNING: dinput.h: see the Autoconf documentation" >&5
31742 echo "$as_me: WARNING: dinput.h: see the Autoconf documentation" >&2;}
31743 { echo "$as_me:$LINENO: WARNING: dinput.h: section \"Present But Cannot Be Compiled\"" >&5
31744 echo "$as_me: WARNING: dinput.h: section \"Present But Cannot Be Compiled\"" >&2;}
31745 { echo "$as_me:$LINENO: WARNING: dinput.h: proceeding with the preprocessor's result" >&5
31746 echo "$as_me: WARNING: dinput.h: proceeding with the preprocessor's result" >&2;}
31747 { echo "$as_me:$LINENO: WARNING: dinput.h: in the future, the compiler will take precedence" >&5
31748 echo "$as_me: WARNING: dinput.h: in the future, the compiler will take precedence" >&2;}
31751 esac
31752 { echo "$as_me:$LINENO: checking for dinput.h" >&5
31753 echo $ECHO_N "checking for dinput.h... $ECHO_C" >&6; }
31754 if test "${ac_cv_header_dinput_h+set}" = set; then
31755 echo $ECHO_N "(cached) $ECHO_C" >&6
31756 else
31757 ac_cv_header_dinput_h=$ac_header_preproc
31759 { echo "$as_me:$LINENO: result: $ac_cv_header_dinput_h" >&5
31760 echo "${ECHO_T}$ac_cv_header_dinput_h" >&6; }
31763 if test $ac_cv_header_dinput_h = yes; then
31764 use_dinput=yes
31768 if test x$have_ddraw = xyes -a x$have_dsound = xyes -a x$use_dinput = xyes; then
31769 have_directx=yes
31771 if test x$enable_video = xyes -a x$have_directx = xyes; then
31772 cat >>confdefs.h <<\_ACEOF
31773 #define SDL_VIDEO_DRIVER_DDRAW 1
31774 _ACEOF
31776 SOURCES="$SOURCES $srcdir/src/video/windx5/*.c"
31777 have_video=yes
31782 CheckDLOPEN()
31784 # Check whether --enable-sdl-dlopen was given.
31785 if test "${enable_sdl_dlopen+set}" = set; then
31786 enableval=$enable_sdl_dlopen;
31787 else
31788 enable_sdl_dlopen=yes
31791 if test x$enable_sdl_dlopen = xyes; then
31792 { echo "$as_me:$LINENO: checking for dlopen" >&5
31793 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
31794 have_dlopen=no
31795 cat >conftest.$ac_ext <<_ACEOF
31796 /* confdefs.h. */
31797 _ACEOF
31798 cat confdefs.h >>conftest.$ac_ext
31799 cat >>conftest.$ac_ext <<_ACEOF
31800 /* end confdefs.h. */
31802 #include <dlfcn.h>
31805 main ()
31808 #if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED <= 1020
31809 #error Use dlcompat for Mac OS X 10.2 compatibility
31810 #endif
31813 return 0;
31815 _ACEOF
31816 rm -f conftest.$ac_objext
31817 if { (ac_try="$ac_compile"
31818 case "(($ac_try" in
31819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31820 *) ac_try_echo=$ac_try;;
31821 esac
31822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31823 (eval "$ac_compile") 2>conftest.er1
31824 ac_status=$?
31825 grep -v '^ *+' conftest.er1 >conftest.err
31826 rm -f conftest.er1
31827 cat conftest.err >&5
31828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31829 (exit $ac_status); } && {
31830 test -z "$ac_c_werror_flag" ||
31831 test ! -s conftest.err
31832 } && test -s conftest.$ac_objext; then
31834 have_dlopen=yes
31836 else
31837 echo "$as_me: failed program was:" >&5
31838 sed 's/^/| /' conftest.$ac_ext >&5
31843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31844 { echo "$as_me:$LINENO: result: $have_dlopen" >&5
31845 echo "${ECHO_T}$have_dlopen" >&6; }
31847 if test x$have_dlopen = xyes; then
31848 { echo "$as_me:$LINENO: checking for dlopen in -lc" >&5
31849 echo $ECHO_N "checking for dlopen in -lc... $ECHO_C" >&6; }
31850 if test "${ac_cv_lib_c_dlopen+set}" = set; then
31851 echo $ECHO_N "(cached) $ECHO_C" >&6
31852 else
31853 ac_check_lib_save_LIBS=$LIBS
31854 LIBS="-lc $LIBS"
31855 cat >conftest.$ac_ext <<_ACEOF
31856 /* confdefs.h. */
31857 _ACEOF
31858 cat confdefs.h >>conftest.$ac_ext
31859 cat >>conftest.$ac_ext <<_ACEOF
31860 /* end confdefs.h. */
31862 /* Override any GCC internal prototype to avoid an error.
31863 Use char because int might match the return type of a GCC
31864 builtin and then its argument prototype would still apply. */
31865 #ifdef __cplusplus
31866 extern "C"
31867 #endif
31868 char dlopen ();
31870 main ()
31872 return dlopen ();
31874 return 0;
31876 _ACEOF
31877 rm -f conftest.$ac_objext conftest$ac_exeext
31878 if { (ac_try="$ac_link"
31879 case "(($ac_try" in
31880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31881 *) ac_try_echo=$ac_try;;
31882 esac
31883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31884 (eval "$ac_link") 2>conftest.er1
31885 ac_status=$?
31886 grep -v '^ *+' conftest.er1 >conftest.err
31887 rm -f conftest.er1
31888 cat conftest.err >&5
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 (exit $ac_status); } && {
31891 test -z "$ac_c_werror_flag" ||
31892 test ! -s conftest.err
31893 } && test -s conftest$ac_exeext &&
31894 $as_test_x conftest$ac_exeext; then
31895 ac_cv_lib_c_dlopen=yes
31896 else
31897 echo "$as_me: failed program was:" >&5
31898 sed 's/^/| /' conftest.$ac_ext >&5
31900 ac_cv_lib_c_dlopen=no
31903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31904 conftest$ac_exeext conftest.$ac_ext
31905 LIBS=$ac_check_lib_save_LIBS
31907 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_dlopen" >&5
31908 echo "${ECHO_T}$ac_cv_lib_c_dlopen" >&6; }
31909 if test $ac_cv_lib_c_dlopen = yes; then
31910 EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
31911 else
31912 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31913 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
31914 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31915 echo $ECHO_N "(cached) $ECHO_C" >&6
31916 else
31917 ac_check_lib_save_LIBS=$LIBS
31918 LIBS="-ldl $LIBS"
31919 cat >conftest.$ac_ext <<_ACEOF
31920 /* confdefs.h. */
31921 _ACEOF
31922 cat confdefs.h >>conftest.$ac_ext
31923 cat >>conftest.$ac_ext <<_ACEOF
31924 /* end confdefs.h. */
31926 /* Override any GCC internal prototype to avoid an error.
31927 Use char because int might match the return type of a GCC
31928 builtin and then its argument prototype would still apply. */
31929 #ifdef __cplusplus
31930 extern "C"
31931 #endif
31932 char dlopen ();
31934 main ()
31936 return dlopen ();
31938 return 0;
31940 _ACEOF
31941 rm -f conftest.$ac_objext conftest$ac_exeext
31942 if { (ac_try="$ac_link"
31943 case "(($ac_try" in
31944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31945 *) ac_try_echo=$ac_try;;
31946 esac
31947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31948 (eval "$ac_link") 2>conftest.er1
31949 ac_status=$?
31950 grep -v '^ *+' conftest.er1 >conftest.err
31951 rm -f conftest.er1
31952 cat conftest.err >&5
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); } && {
31955 test -z "$ac_c_werror_flag" ||
31956 test ! -s conftest.err
31957 } && test -s conftest$ac_exeext &&
31958 $as_test_x conftest$ac_exeext; then
31959 ac_cv_lib_dl_dlopen=yes
31960 else
31961 echo "$as_me: failed program was:" >&5
31962 sed 's/^/| /' conftest.$ac_ext >&5
31964 ac_cv_lib_dl_dlopen=no
31967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31968 conftest$ac_exeext conftest.$ac_ext
31969 LIBS=$ac_check_lib_save_LIBS
31971 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
31973 if test $ac_cv_lib_dl_dlopen = yes; then
31974 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
31975 else
31976 { echo "$as_me:$LINENO: checking for dlopen in -lltdl" >&5
31977 echo $ECHO_N "checking for dlopen in -lltdl... $ECHO_C" >&6; }
31978 if test "${ac_cv_lib_ltdl_dlopen+set}" = set; then
31979 echo $ECHO_N "(cached) $ECHO_C" >&6
31980 else
31981 ac_check_lib_save_LIBS=$LIBS
31982 LIBS="-lltdl $LIBS"
31983 cat >conftest.$ac_ext <<_ACEOF
31984 /* confdefs.h. */
31985 _ACEOF
31986 cat confdefs.h >>conftest.$ac_ext
31987 cat >>conftest.$ac_ext <<_ACEOF
31988 /* end confdefs.h. */
31990 /* Override any GCC internal prototype to avoid an error.
31991 Use char because int might match the return type of a GCC
31992 builtin and then its argument prototype would still apply. */
31993 #ifdef __cplusplus
31994 extern "C"
31995 #endif
31996 char dlopen ();
31998 main ()
32000 return dlopen ();
32002 return 0;
32004 _ACEOF
32005 rm -f conftest.$ac_objext conftest$ac_exeext
32006 if { (ac_try="$ac_link"
32007 case "(($ac_try" in
32008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009 *) ac_try_echo=$ac_try;;
32010 esac
32011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012 (eval "$ac_link") 2>conftest.er1
32013 ac_status=$?
32014 grep -v '^ *+' conftest.er1 >conftest.err
32015 rm -f conftest.er1
32016 cat conftest.err >&5
32017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018 (exit $ac_status); } && {
32019 test -z "$ac_c_werror_flag" ||
32020 test ! -s conftest.err
32021 } && test -s conftest$ac_exeext &&
32022 $as_test_x conftest$ac_exeext; then
32023 ac_cv_lib_ltdl_dlopen=yes
32024 else
32025 echo "$as_me: failed program was:" >&5
32026 sed 's/^/| /' conftest.$ac_ext >&5
32028 ac_cv_lib_ltdl_dlopen=no
32031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32032 conftest$ac_exeext conftest.$ac_ext
32033 LIBS=$ac_check_lib_save_LIBS
32035 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_dlopen" >&5
32036 echo "${ECHO_T}$ac_cv_lib_ltdl_dlopen" >&6; }
32037 if test $ac_cv_lib_ltdl_dlopen = yes; then
32038 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
32045 { echo "$as_me:$LINENO: checking for dlvsym in -ldl" >&5
32046 echo $ECHO_N "checking for dlvsym in -ldl... $ECHO_C" >&6; }
32047 if test "${ac_cv_lib_dl_dlvsym+set}" = set; then
32048 echo $ECHO_N "(cached) $ECHO_C" >&6
32049 else
32050 ac_check_lib_save_LIBS=$LIBS
32051 LIBS="-ldl $LIBS"
32052 cat >conftest.$ac_ext <<_ACEOF
32053 /* confdefs.h. */
32054 _ACEOF
32055 cat confdefs.h >>conftest.$ac_ext
32056 cat >>conftest.$ac_ext <<_ACEOF
32057 /* end confdefs.h. */
32059 /* Override any GCC internal prototype to avoid an error.
32060 Use char because int might match the return type of a GCC
32061 builtin and then its argument prototype would still apply. */
32062 #ifdef __cplusplus
32063 extern "C"
32064 #endif
32065 char dlvsym ();
32067 main ()
32069 return dlvsym ();
32071 return 0;
32073 _ACEOF
32074 rm -f conftest.$ac_objext conftest$ac_exeext
32075 if { (ac_try="$ac_link"
32076 case "(($ac_try" in
32077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32078 *) ac_try_echo=$ac_try;;
32079 esac
32080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32081 (eval "$ac_link") 2>conftest.er1
32082 ac_status=$?
32083 grep -v '^ *+' conftest.er1 >conftest.err
32084 rm -f conftest.er1
32085 cat conftest.err >&5
32086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087 (exit $ac_status); } && {
32088 test -z "$ac_c_werror_flag" ||
32089 test ! -s conftest.err
32090 } && test -s conftest$ac_exeext &&
32091 $as_test_x conftest$ac_exeext; then
32092 ac_cv_lib_dl_dlvsym=yes
32093 else
32094 echo "$as_me: failed program was:" >&5
32095 sed 's/^/| /' conftest.$ac_ext >&5
32097 ac_cv_lib_dl_dlvsym=no
32100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32101 conftest$ac_exeext conftest.$ac_ext
32102 LIBS=$ac_check_lib_save_LIBS
32104 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlvsym" >&5
32105 echo "${ECHO_T}$ac_cv_lib_dl_dlvsym" >&6; }
32106 if test $ac_cv_lib_dl_dlvsym = yes; then
32107 have_dlvsym=yes
32110 if test x$have_dlvsym = xyes; then
32111 cat >>confdefs.h <<\_ACEOF
32112 #define HAVE_DLVSYM 1
32113 _ACEOF
32116 cat >>confdefs.h <<\_ACEOF
32117 #define SDL_LOADSO_DLOPEN 1
32118 _ACEOF
32120 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
32121 have_loadso=yes
32126 CheckAtariLdg()
32128 # Check whether --enable-atari-ldg was given.
32129 if test "${enable_atari_ldg+set}" = set; then
32130 enableval=$enable_atari_ldg;
32131 else
32132 enable_atari_ldg=yes
32135 if test x$video_gem = xyes -a x$enable_atari_ldg = xyes; then
32136 if test "${ac_cv_header_ldg_h+set}" = set; then
32137 { echo "$as_me:$LINENO: checking for ldg.h" >&5
32138 echo $ECHO_N "checking for ldg.h... $ECHO_C" >&6; }
32139 if test "${ac_cv_header_ldg_h+set}" = set; then
32140 echo $ECHO_N "(cached) $ECHO_C" >&6
32142 { echo "$as_me:$LINENO: result: $ac_cv_header_ldg_h" >&5
32143 echo "${ECHO_T}$ac_cv_header_ldg_h" >&6; }
32144 else
32145 # Is the header compilable?
32146 { echo "$as_me:$LINENO: checking ldg.h usability" >&5
32147 echo $ECHO_N "checking ldg.h usability... $ECHO_C" >&6; }
32148 cat >conftest.$ac_ext <<_ACEOF
32149 /* confdefs.h. */
32150 _ACEOF
32151 cat confdefs.h >>conftest.$ac_ext
32152 cat >>conftest.$ac_ext <<_ACEOF
32153 /* end confdefs.h. */
32154 $ac_includes_default
32155 #include <ldg.h>
32156 _ACEOF
32157 rm -f conftest.$ac_objext
32158 if { (ac_try="$ac_compile"
32159 case "(($ac_try" in
32160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161 *) ac_try_echo=$ac_try;;
32162 esac
32163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164 (eval "$ac_compile") 2>conftest.er1
32165 ac_status=$?
32166 grep -v '^ *+' conftest.er1 >conftest.err
32167 rm -f conftest.er1
32168 cat conftest.err >&5
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); } && {
32171 test -z "$ac_c_werror_flag" ||
32172 test ! -s conftest.err
32173 } && test -s conftest.$ac_objext; then
32174 ac_header_compiler=yes
32175 else
32176 echo "$as_me: failed program was:" >&5
32177 sed 's/^/| /' conftest.$ac_ext >&5
32179 ac_header_compiler=no
32182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32184 echo "${ECHO_T}$ac_header_compiler" >&6; }
32186 # Is the header present?
32187 { echo "$as_me:$LINENO: checking ldg.h presence" >&5
32188 echo $ECHO_N "checking ldg.h presence... $ECHO_C" >&6; }
32189 cat >conftest.$ac_ext <<_ACEOF
32190 /* confdefs.h. */
32191 _ACEOF
32192 cat confdefs.h >>conftest.$ac_ext
32193 cat >>conftest.$ac_ext <<_ACEOF
32194 /* end confdefs.h. */
32195 #include <ldg.h>
32196 _ACEOF
32197 if { (ac_try="$ac_cpp conftest.$ac_ext"
32198 case "(($ac_try" in
32199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32200 *) ac_try_echo=$ac_try;;
32201 esac
32202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32204 ac_status=$?
32205 grep -v '^ *+' conftest.er1 >conftest.err
32206 rm -f conftest.er1
32207 cat conftest.err >&5
32208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209 (exit $ac_status); } >/dev/null && {
32210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32211 test ! -s conftest.err
32212 }; then
32213 ac_header_preproc=yes
32214 else
32215 echo "$as_me: failed program was:" >&5
32216 sed 's/^/| /' conftest.$ac_ext >&5
32218 ac_header_preproc=no
32221 rm -f conftest.err conftest.$ac_ext
32222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32223 echo "${ECHO_T}$ac_header_preproc" >&6; }
32225 # So? What about this header?
32226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32227 yes:no: )
32228 { echo "$as_me:$LINENO: WARNING: ldg.h: accepted by the compiler, rejected by the preprocessor!" >&5
32229 echo "$as_me: WARNING: ldg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32230 { echo "$as_me:$LINENO: WARNING: ldg.h: proceeding with the compiler's result" >&5
32231 echo "$as_me: WARNING: ldg.h: proceeding with the compiler's result" >&2;}
32232 ac_header_preproc=yes
32234 no:yes:* )
32235 { echo "$as_me:$LINENO: WARNING: ldg.h: present but cannot be compiled" >&5
32236 echo "$as_me: WARNING: ldg.h: present but cannot be compiled" >&2;}
32237 { echo "$as_me:$LINENO: WARNING: ldg.h: check for missing prerequisite headers?" >&5
32238 echo "$as_me: WARNING: ldg.h: check for missing prerequisite headers?" >&2;}
32239 { echo "$as_me:$LINENO: WARNING: ldg.h: see the Autoconf documentation" >&5
32240 echo "$as_me: WARNING: ldg.h: see the Autoconf documentation" >&2;}
32241 { echo "$as_me:$LINENO: WARNING: ldg.h: section \"Present But Cannot Be Compiled\"" >&5
32242 echo "$as_me: WARNING: ldg.h: section \"Present But Cannot Be Compiled\"" >&2;}
32243 { echo "$as_me:$LINENO: WARNING: ldg.h: proceeding with the preprocessor's result" >&5
32244 echo "$as_me: WARNING: ldg.h: proceeding with the preprocessor's result" >&2;}
32245 { echo "$as_me:$LINENO: WARNING: ldg.h: in the future, the compiler will take precedence" >&5
32246 echo "$as_me: WARNING: ldg.h: in the future, the compiler will take precedence" >&2;}
32249 esac
32250 { echo "$as_me:$LINENO: checking for ldg.h" >&5
32251 echo $ECHO_N "checking for ldg.h... $ECHO_C" >&6; }
32252 if test "${ac_cv_header_ldg_h+set}" = set; then
32253 echo $ECHO_N "(cached) $ECHO_C" >&6
32254 else
32255 ac_cv_header_ldg_h=$ac_header_preproc
32257 { echo "$as_me:$LINENO: result: $ac_cv_header_ldg_h" >&5
32258 echo "${ECHO_T}$ac_cv_header_ldg_h" >&6; }
32261 if test $ac_cv_header_ldg_h = yes; then
32262 have_ldg_hdr=yes
32266 { echo "$as_me:$LINENO: checking for ldg_open in -lldg" >&5
32267 echo $ECHO_N "checking for ldg_open in -lldg... $ECHO_C" >&6; }
32268 if test "${ac_cv_lib_ldg_ldg_open+set}" = set; then
32269 echo $ECHO_N "(cached) $ECHO_C" >&6
32270 else
32271 ac_check_lib_save_LIBS=$LIBS
32272 LIBS="-lldg -lgem $LIBS"
32273 cat >conftest.$ac_ext <<_ACEOF
32274 /* confdefs.h. */
32275 _ACEOF
32276 cat confdefs.h >>conftest.$ac_ext
32277 cat >>conftest.$ac_ext <<_ACEOF
32278 /* end confdefs.h. */
32280 /* Override any GCC internal prototype to avoid an error.
32281 Use char because int might match the return type of a GCC
32282 builtin and then its argument prototype would still apply. */
32283 #ifdef __cplusplus
32284 extern "C"
32285 #endif
32286 char ldg_open ();
32288 main ()
32290 return ldg_open ();
32292 return 0;
32294 _ACEOF
32295 rm -f conftest.$ac_objext conftest$ac_exeext
32296 if { (ac_try="$ac_link"
32297 case "(($ac_try" in
32298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32299 *) ac_try_echo=$ac_try;;
32300 esac
32301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32302 (eval "$ac_link") 2>conftest.er1
32303 ac_status=$?
32304 grep -v '^ *+' conftest.er1 >conftest.err
32305 rm -f conftest.er1
32306 cat conftest.err >&5
32307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32308 (exit $ac_status); } && {
32309 test -z "$ac_c_werror_flag" ||
32310 test ! -s conftest.err
32311 } && test -s conftest$ac_exeext &&
32312 $as_test_x conftest$ac_exeext; then
32313 ac_cv_lib_ldg_ldg_open=yes
32314 else
32315 echo "$as_me: failed program was:" >&5
32316 sed 's/^/| /' conftest.$ac_ext >&5
32318 ac_cv_lib_ldg_ldg_open=no
32321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32322 conftest$ac_exeext conftest.$ac_ext
32323 LIBS=$ac_check_lib_save_LIBS
32325 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldg_ldg_open" >&5
32326 echo "${ECHO_T}$ac_cv_lib_ldg_ldg_open" >&6; }
32327 if test $ac_cv_lib_ldg_ldg_open = yes; then
32328 have_ldg_lib=yes
32329 else
32330 have_ldg_lib=no
32333 if test x$have_ldg_hdr = xyes -a x$have_ldg_lib = xyes; then
32334 cat >>confdefs.h <<\_ACEOF
32335 #define SDL_LOADSO_LDG 1
32336 _ACEOF
32338 SOURCES="$SOURCES $srcdir/src/loadso/mint/*.c"
32339 SDL_LIBS="$SDL_LIBS -lldg -lgem"
32340 have_loadso=yes
32345 CheckUSBHID()
32347 if test x$enable_joystick = xyes; then
32348 { echo "$as_me:$LINENO: checking for hid_init in -lusbhid" >&5
32349 echo $ECHO_N "checking for hid_init in -lusbhid... $ECHO_C" >&6; }
32350 if test "${ac_cv_lib_usbhid_hid_init+set}" = set; then
32351 echo $ECHO_N "(cached) $ECHO_C" >&6
32352 else
32353 ac_check_lib_save_LIBS=$LIBS
32354 LIBS="-lusbhid $LIBS"
32355 cat >conftest.$ac_ext <<_ACEOF
32356 /* confdefs.h. */
32357 _ACEOF
32358 cat confdefs.h >>conftest.$ac_ext
32359 cat >>conftest.$ac_ext <<_ACEOF
32360 /* end confdefs.h. */
32362 /* Override any GCC internal prototype to avoid an error.
32363 Use char because int might match the return type of a GCC
32364 builtin and then its argument prototype would still apply. */
32365 #ifdef __cplusplus
32366 extern "C"
32367 #endif
32368 char hid_init ();
32370 main ()
32372 return hid_init ();
32374 return 0;
32376 _ACEOF
32377 rm -f conftest.$ac_objext conftest$ac_exeext
32378 if { (ac_try="$ac_link"
32379 case "(($ac_try" in
32380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32381 *) ac_try_echo=$ac_try;;
32382 esac
32383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32384 (eval "$ac_link") 2>conftest.er1
32385 ac_status=$?
32386 grep -v '^ *+' conftest.er1 >conftest.err
32387 rm -f conftest.er1
32388 cat conftest.err >&5
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); } && {
32391 test -z "$ac_c_werror_flag" ||
32392 test ! -s conftest.err
32393 } && test -s conftest$ac_exeext &&
32394 $as_test_x conftest$ac_exeext; then
32395 ac_cv_lib_usbhid_hid_init=yes
32396 else
32397 echo "$as_me: failed program was:" >&5
32398 sed 's/^/| /' conftest.$ac_ext >&5
32400 ac_cv_lib_usbhid_hid_init=no
32403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32404 conftest$ac_exeext conftest.$ac_ext
32405 LIBS=$ac_check_lib_save_LIBS
32407 { echo "$as_me:$LINENO: result: $ac_cv_lib_usbhid_hid_init" >&5
32408 echo "${ECHO_T}$ac_cv_lib_usbhid_hid_init" >&6; }
32409 if test $ac_cv_lib_usbhid_hid_init = yes; then
32410 have_libusbhid=yes
32413 if test x$have_libusbhid = xyes; then
32414 if test "${ac_cv_header_usbhid_h+set}" = set; then
32415 { echo "$as_me:$LINENO: checking for usbhid.h" >&5
32416 echo $ECHO_N "checking for usbhid.h... $ECHO_C" >&6; }
32417 if test "${ac_cv_header_usbhid_h+set}" = set; then
32418 echo $ECHO_N "(cached) $ECHO_C" >&6
32420 { echo "$as_me:$LINENO: result: $ac_cv_header_usbhid_h" >&5
32421 echo "${ECHO_T}$ac_cv_header_usbhid_h" >&6; }
32422 else
32423 # Is the header compilable?
32424 { echo "$as_me:$LINENO: checking usbhid.h usability" >&5
32425 echo $ECHO_N "checking usbhid.h usability... $ECHO_C" >&6; }
32426 cat >conftest.$ac_ext <<_ACEOF
32427 /* confdefs.h. */
32428 _ACEOF
32429 cat confdefs.h >>conftest.$ac_ext
32430 cat >>conftest.$ac_ext <<_ACEOF
32431 /* end confdefs.h. */
32432 $ac_includes_default
32433 #include <usbhid.h>
32434 _ACEOF
32435 rm -f conftest.$ac_objext
32436 if { (ac_try="$ac_compile"
32437 case "(($ac_try" in
32438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32439 *) ac_try_echo=$ac_try;;
32440 esac
32441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32442 (eval "$ac_compile") 2>conftest.er1
32443 ac_status=$?
32444 grep -v '^ *+' conftest.er1 >conftest.err
32445 rm -f conftest.er1
32446 cat conftest.err >&5
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); } && {
32449 test -z "$ac_c_werror_flag" ||
32450 test ! -s conftest.err
32451 } && test -s conftest.$ac_objext; then
32452 ac_header_compiler=yes
32453 else
32454 echo "$as_me: failed program was:" >&5
32455 sed 's/^/| /' conftest.$ac_ext >&5
32457 ac_header_compiler=no
32460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32462 echo "${ECHO_T}$ac_header_compiler" >&6; }
32464 # Is the header present?
32465 { echo "$as_me:$LINENO: checking usbhid.h presence" >&5
32466 echo $ECHO_N "checking usbhid.h presence... $ECHO_C" >&6; }
32467 cat >conftest.$ac_ext <<_ACEOF
32468 /* confdefs.h. */
32469 _ACEOF
32470 cat confdefs.h >>conftest.$ac_ext
32471 cat >>conftest.$ac_ext <<_ACEOF
32472 /* end confdefs.h. */
32473 #include <usbhid.h>
32474 _ACEOF
32475 if { (ac_try="$ac_cpp conftest.$ac_ext"
32476 case "(($ac_try" in
32477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32478 *) ac_try_echo=$ac_try;;
32479 esac
32480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32482 ac_status=$?
32483 grep -v '^ *+' conftest.er1 >conftest.err
32484 rm -f conftest.er1
32485 cat conftest.err >&5
32486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487 (exit $ac_status); } >/dev/null && {
32488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32489 test ! -s conftest.err
32490 }; then
32491 ac_header_preproc=yes
32492 else
32493 echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.$ac_ext >&5
32496 ac_header_preproc=no
32499 rm -f conftest.err conftest.$ac_ext
32500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32501 echo "${ECHO_T}$ac_header_preproc" >&6; }
32503 # So? What about this header?
32504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32505 yes:no: )
32506 { echo "$as_me:$LINENO: WARNING: usbhid.h: accepted by the compiler, rejected by the preprocessor!" >&5
32507 echo "$as_me: WARNING: usbhid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32508 { echo "$as_me:$LINENO: WARNING: usbhid.h: proceeding with the compiler's result" >&5
32509 echo "$as_me: WARNING: usbhid.h: proceeding with the compiler's result" >&2;}
32510 ac_header_preproc=yes
32512 no:yes:* )
32513 { echo "$as_me:$LINENO: WARNING: usbhid.h: present but cannot be compiled" >&5
32514 echo "$as_me: WARNING: usbhid.h: present but cannot be compiled" >&2;}
32515 { echo "$as_me:$LINENO: WARNING: usbhid.h: check for missing prerequisite headers?" >&5
32516 echo "$as_me: WARNING: usbhid.h: check for missing prerequisite headers?" >&2;}
32517 { echo "$as_me:$LINENO: WARNING: usbhid.h: see the Autoconf documentation" >&5
32518 echo "$as_me: WARNING: usbhid.h: see the Autoconf documentation" >&2;}
32519 { echo "$as_me:$LINENO: WARNING: usbhid.h: section \"Present But Cannot Be Compiled\"" >&5
32520 echo "$as_me: WARNING: usbhid.h: section \"Present But Cannot Be Compiled\"" >&2;}
32521 { echo "$as_me:$LINENO: WARNING: usbhid.h: proceeding with the preprocessor's result" >&5
32522 echo "$as_me: WARNING: usbhid.h: proceeding with the preprocessor's result" >&2;}
32523 { echo "$as_me:$LINENO: WARNING: usbhid.h: in the future, the compiler will take precedence" >&5
32524 echo "$as_me: WARNING: usbhid.h: in the future, the compiler will take precedence" >&2;}
32527 esac
32528 { echo "$as_me:$LINENO: checking for usbhid.h" >&5
32529 echo $ECHO_N "checking for usbhid.h... $ECHO_C" >&6; }
32530 if test "${ac_cv_header_usbhid_h+set}" = set; then
32531 echo $ECHO_N "(cached) $ECHO_C" >&6
32532 else
32533 ac_cv_header_usbhid_h=$ac_header_preproc
32535 { echo "$as_me:$LINENO: result: $ac_cv_header_usbhid_h" >&5
32536 echo "${ECHO_T}$ac_cv_header_usbhid_h" >&6; }
32539 if test $ac_cv_header_usbhid_h = yes; then
32540 USB_CFLAGS="-DHAVE_USBHID_H"
32544 if test "${ac_cv_header_libusbhid_h+set}" = set; then
32545 { echo "$as_me:$LINENO: checking for libusbhid.h" >&5
32546 echo $ECHO_N "checking for libusbhid.h... $ECHO_C" >&6; }
32547 if test "${ac_cv_header_libusbhid_h+set}" = set; then
32548 echo $ECHO_N "(cached) $ECHO_C" >&6
32550 { echo "$as_me:$LINENO: result: $ac_cv_header_libusbhid_h" >&5
32551 echo "${ECHO_T}$ac_cv_header_libusbhid_h" >&6; }
32552 else
32553 # Is the header compilable?
32554 { echo "$as_me:$LINENO: checking libusbhid.h usability" >&5
32555 echo $ECHO_N "checking libusbhid.h usability... $ECHO_C" >&6; }
32556 cat >conftest.$ac_ext <<_ACEOF
32557 /* confdefs.h. */
32558 _ACEOF
32559 cat confdefs.h >>conftest.$ac_ext
32560 cat >>conftest.$ac_ext <<_ACEOF
32561 /* end confdefs.h. */
32562 $ac_includes_default
32563 #include <libusbhid.h>
32564 _ACEOF
32565 rm -f conftest.$ac_objext
32566 if { (ac_try="$ac_compile"
32567 case "(($ac_try" in
32568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32569 *) ac_try_echo=$ac_try;;
32570 esac
32571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32572 (eval "$ac_compile") 2>conftest.er1
32573 ac_status=$?
32574 grep -v '^ *+' conftest.er1 >conftest.err
32575 rm -f conftest.er1
32576 cat conftest.err >&5
32577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578 (exit $ac_status); } && {
32579 test -z "$ac_c_werror_flag" ||
32580 test ! -s conftest.err
32581 } && test -s conftest.$ac_objext; then
32582 ac_header_compiler=yes
32583 else
32584 echo "$as_me: failed program was:" >&5
32585 sed 's/^/| /' conftest.$ac_ext >&5
32587 ac_header_compiler=no
32590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32592 echo "${ECHO_T}$ac_header_compiler" >&6; }
32594 # Is the header present?
32595 { echo "$as_me:$LINENO: checking libusbhid.h presence" >&5
32596 echo $ECHO_N "checking libusbhid.h presence... $ECHO_C" >&6; }
32597 cat >conftest.$ac_ext <<_ACEOF
32598 /* confdefs.h. */
32599 _ACEOF
32600 cat confdefs.h >>conftest.$ac_ext
32601 cat >>conftest.$ac_ext <<_ACEOF
32602 /* end confdefs.h. */
32603 #include <libusbhid.h>
32604 _ACEOF
32605 if { (ac_try="$ac_cpp conftest.$ac_ext"
32606 case "(($ac_try" in
32607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608 *) ac_try_echo=$ac_try;;
32609 esac
32610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32612 ac_status=$?
32613 grep -v '^ *+' conftest.er1 >conftest.err
32614 rm -f conftest.er1
32615 cat conftest.err >&5
32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 (exit $ac_status); } >/dev/null && {
32618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32619 test ! -s conftest.err
32620 }; then
32621 ac_header_preproc=yes
32622 else
32623 echo "$as_me: failed program was:" >&5
32624 sed 's/^/| /' conftest.$ac_ext >&5
32626 ac_header_preproc=no
32629 rm -f conftest.err conftest.$ac_ext
32630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32631 echo "${ECHO_T}$ac_header_preproc" >&6; }
32633 # So? What about this header?
32634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32635 yes:no: )
32636 { echo "$as_me:$LINENO: WARNING: libusbhid.h: accepted by the compiler, rejected by the preprocessor!" >&5
32637 echo "$as_me: WARNING: libusbhid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32638 { echo "$as_me:$LINENO: WARNING: libusbhid.h: proceeding with the compiler's result" >&5
32639 echo "$as_me: WARNING: libusbhid.h: proceeding with the compiler's result" >&2;}
32640 ac_header_preproc=yes
32642 no:yes:* )
32643 { echo "$as_me:$LINENO: WARNING: libusbhid.h: present but cannot be compiled" >&5
32644 echo "$as_me: WARNING: libusbhid.h: present but cannot be compiled" >&2;}
32645 { echo "$as_me:$LINENO: WARNING: libusbhid.h: check for missing prerequisite headers?" >&5
32646 echo "$as_me: WARNING: libusbhid.h: check for missing prerequisite headers?" >&2;}
32647 { echo "$as_me:$LINENO: WARNING: libusbhid.h: see the Autoconf documentation" >&5
32648 echo "$as_me: WARNING: libusbhid.h: see the Autoconf documentation" >&2;}
32649 { echo "$as_me:$LINENO: WARNING: libusbhid.h: section \"Present But Cannot Be Compiled\"" >&5
32650 echo "$as_me: WARNING: libusbhid.h: section \"Present But Cannot Be Compiled\"" >&2;}
32651 { echo "$as_me:$LINENO: WARNING: libusbhid.h: proceeding with the preprocessor's result" >&5
32652 echo "$as_me: WARNING: libusbhid.h: proceeding with the preprocessor's result" >&2;}
32653 { echo "$as_me:$LINENO: WARNING: libusbhid.h: in the future, the compiler will take precedence" >&5
32654 echo "$as_me: WARNING: libusbhid.h: in the future, the compiler will take precedence" >&2;}
32657 esac
32658 { echo "$as_me:$LINENO: checking for libusbhid.h" >&5
32659 echo $ECHO_N "checking for libusbhid.h... $ECHO_C" >&6; }
32660 if test "${ac_cv_header_libusbhid_h+set}" = set; then
32661 echo $ECHO_N "(cached) $ECHO_C" >&6
32662 else
32663 ac_cv_header_libusbhid_h=$ac_header_preproc
32665 { echo "$as_me:$LINENO: result: $ac_cv_header_libusbhid_h" >&5
32666 echo "${ECHO_T}$ac_cv_header_libusbhid_h" >&6; }
32669 if test $ac_cv_header_libusbhid_h = yes; then
32670 USB_CFLAGS="-DHAVE_LIBUSBHID_H"
32674 USB_LIBS="$USB_LIBS -lusbhid"
32675 else
32676 if test "${ac_cv_header_usb_h+set}" = set; then
32677 { echo "$as_me:$LINENO: checking for usb.h" >&5
32678 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
32679 if test "${ac_cv_header_usb_h+set}" = set; then
32680 echo $ECHO_N "(cached) $ECHO_C" >&6
32682 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
32683 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
32684 else
32685 # Is the header compilable?
32686 { echo "$as_me:$LINENO: checking usb.h usability" >&5
32687 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
32688 cat >conftest.$ac_ext <<_ACEOF
32689 /* confdefs.h. */
32690 _ACEOF
32691 cat confdefs.h >>conftest.$ac_ext
32692 cat >>conftest.$ac_ext <<_ACEOF
32693 /* end confdefs.h. */
32694 $ac_includes_default
32695 #include <usb.h>
32696 _ACEOF
32697 rm -f conftest.$ac_objext
32698 if { (ac_try="$ac_compile"
32699 case "(($ac_try" in
32700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32701 *) ac_try_echo=$ac_try;;
32702 esac
32703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32704 (eval "$ac_compile") 2>conftest.er1
32705 ac_status=$?
32706 grep -v '^ *+' conftest.er1 >conftest.err
32707 rm -f conftest.er1
32708 cat conftest.err >&5
32709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710 (exit $ac_status); } && {
32711 test -z "$ac_c_werror_flag" ||
32712 test ! -s conftest.err
32713 } && test -s conftest.$ac_objext; then
32714 ac_header_compiler=yes
32715 else
32716 echo "$as_me: failed program was:" >&5
32717 sed 's/^/| /' conftest.$ac_ext >&5
32719 ac_header_compiler=no
32722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32724 echo "${ECHO_T}$ac_header_compiler" >&6; }
32726 # Is the header present?
32727 { echo "$as_me:$LINENO: checking usb.h presence" >&5
32728 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
32729 cat >conftest.$ac_ext <<_ACEOF
32730 /* confdefs.h. */
32731 _ACEOF
32732 cat confdefs.h >>conftest.$ac_ext
32733 cat >>conftest.$ac_ext <<_ACEOF
32734 /* end confdefs.h. */
32735 #include <usb.h>
32736 _ACEOF
32737 if { (ac_try="$ac_cpp conftest.$ac_ext"
32738 case "(($ac_try" in
32739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32740 *) ac_try_echo=$ac_try;;
32741 esac
32742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32744 ac_status=$?
32745 grep -v '^ *+' conftest.er1 >conftest.err
32746 rm -f conftest.er1
32747 cat conftest.err >&5
32748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32749 (exit $ac_status); } >/dev/null && {
32750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32751 test ! -s conftest.err
32752 }; then
32753 ac_header_preproc=yes
32754 else
32755 echo "$as_me: failed program was:" >&5
32756 sed 's/^/| /' conftest.$ac_ext >&5
32758 ac_header_preproc=no
32761 rm -f conftest.err conftest.$ac_ext
32762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32763 echo "${ECHO_T}$ac_header_preproc" >&6; }
32765 # So? What about this header?
32766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32767 yes:no: )
32768 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
32769 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32770 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
32771 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
32772 ac_header_preproc=yes
32774 no:yes:* )
32775 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
32776 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
32777 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
32778 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
32779 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
32780 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
32781 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
32782 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
32783 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
32784 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
32785 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
32786 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
32789 esac
32790 { echo "$as_me:$LINENO: checking for usb.h" >&5
32791 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
32792 if test "${ac_cv_header_usb_h+set}" = set; then
32793 echo $ECHO_N "(cached) $ECHO_C" >&6
32794 else
32795 ac_cv_header_usb_h=$ac_header_preproc
32797 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
32798 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
32801 if test $ac_cv_header_usb_h = yes; then
32802 USB_CFLAGS="-DHAVE_USB_H"
32806 if test "${ac_cv_header_libusb_h+set}" = set; then
32807 { echo "$as_me:$LINENO: checking for libusb.h" >&5
32808 echo $ECHO_N "checking for libusb.h... $ECHO_C" >&6; }
32809 if test "${ac_cv_header_libusb_h+set}" = set; then
32810 echo $ECHO_N "(cached) $ECHO_C" >&6
32812 { echo "$as_me:$LINENO: result: $ac_cv_header_libusb_h" >&5
32813 echo "${ECHO_T}$ac_cv_header_libusb_h" >&6; }
32814 else
32815 # Is the header compilable?
32816 { echo "$as_me:$LINENO: checking libusb.h usability" >&5
32817 echo $ECHO_N "checking libusb.h usability... $ECHO_C" >&6; }
32818 cat >conftest.$ac_ext <<_ACEOF
32819 /* confdefs.h. */
32820 _ACEOF
32821 cat confdefs.h >>conftest.$ac_ext
32822 cat >>conftest.$ac_ext <<_ACEOF
32823 /* end confdefs.h. */
32824 $ac_includes_default
32825 #include <libusb.h>
32826 _ACEOF
32827 rm -f conftest.$ac_objext
32828 if { (ac_try="$ac_compile"
32829 case "(($ac_try" in
32830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32832 esac
32833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834 (eval "$ac_compile") 2>conftest.er1
32835 ac_status=$?
32836 grep -v '^ *+' conftest.er1 >conftest.err
32837 rm -f conftest.er1
32838 cat conftest.err >&5
32839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840 (exit $ac_status); } && {
32841 test -z "$ac_c_werror_flag" ||
32842 test ! -s conftest.err
32843 } && test -s conftest.$ac_objext; then
32844 ac_header_compiler=yes
32845 else
32846 echo "$as_me: failed program was:" >&5
32847 sed 's/^/| /' conftest.$ac_ext >&5
32849 ac_header_compiler=no
32852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32854 echo "${ECHO_T}$ac_header_compiler" >&6; }
32856 # Is the header present?
32857 { echo "$as_me:$LINENO: checking libusb.h presence" >&5
32858 echo $ECHO_N "checking libusb.h presence... $ECHO_C" >&6; }
32859 cat >conftest.$ac_ext <<_ACEOF
32860 /* confdefs.h. */
32861 _ACEOF
32862 cat confdefs.h >>conftest.$ac_ext
32863 cat >>conftest.$ac_ext <<_ACEOF
32864 /* end confdefs.h. */
32865 #include <libusb.h>
32866 _ACEOF
32867 if { (ac_try="$ac_cpp conftest.$ac_ext"
32868 case "(($ac_try" in
32869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870 *) ac_try_echo=$ac_try;;
32871 esac
32872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32874 ac_status=$?
32875 grep -v '^ *+' conftest.er1 >conftest.err
32876 rm -f conftest.er1
32877 cat conftest.err >&5
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); } >/dev/null && {
32880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32881 test ! -s conftest.err
32882 }; then
32883 ac_header_preproc=yes
32884 else
32885 echo "$as_me: failed program was:" >&5
32886 sed 's/^/| /' conftest.$ac_ext >&5
32888 ac_header_preproc=no
32891 rm -f conftest.err conftest.$ac_ext
32892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32893 echo "${ECHO_T}$ac_header_preproc" >&6; }
32895 # So? What about this header?
32896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32897 yes:no: )
32898 { echo "$as_me:$LINENO: WARNING: libusb.h: accepted by the compiler, rejected by the preprocessor!" >&5
32899 echo "$as_me: WARNING: libusb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32900 { echo "$as_me:$LINENO: WARNING: libusb.h: proceeding with the compiler's result" >&5
32901 echo "$as_me: WARNING: libusb.h: proceeding with the compiler's result" >&2;}
32902 ac_header_preproc=yes
32904 no:yes:* )
32905 { echo "$as_me:$LINENO: WARNING: libusb.h: present but cannot be compiled" >&5
32906 echo "$as_me: WARNING: libusb.h: present but cannot be compiled" >&2;}
32907 { echo "$as_me:$LINENO: WARNING: libusb.h: check for missing prerequisite headers?" >&5
32908 echo "$as_me: WARNING: libusb.h: check for missing prerequisite headers?" >&2;}
32909 { echo "$as_me:$LINENO: WARNING: libusb.h: see the Autoconf documentation" >&5
32910 echo "$as_me: WARNING: libusb.h: see the Autoconf documentation" >&2;}
32911 { echo "$as_me:$LINENO: WARNING: libusb.h: section \"Present But Cannot Be Compiled\"" >&5
32912 echo "$as_me: WARNING: libusb.h: section \"Present But Cannot Be Compiled\"" >&2;}
32913 { echo "$as_me:$LINENO: WARNING: libusb.h: proceeding with the preprocessor's result" >&5
32914 echo "$as_me: WARNING: libusb.h: proceeding with the preprocessor's result" >&2;}
32915 { echo "$as_me:$LINENO: WARNING: libusb.h: in the future, the compiler will take precedence" >&5
32916 echo "$as_me: WARNING: libusb.h: in the future, the compiler will take precedence" >&2;}
32919 esac
32920 { echo "$as_me:$LINENO: checking for libusb.h" >&5
32921 echo $ECHO_N "checking for libusb.h... $ECHO_C" >&6; }
32922 if test "${ac_cv_header_libusb_h+set}" = set; then
32923 echo $ECHO_N "(cached) $ECHO_C" >&6
32924 else
32925 ac_cv_header_libusb_h=$ac_header_preproc
32927 { echo "$as_me:$LINENO: result: $ac_cv_header_libusb_h" >&5
32928 echo "${ECHO_T}$ac_cv_header_libusb_h" >&6; }
32931 if test $ac_cv_header_libusb_h = yes; then
32932 USB_CFLAGS="-DHAVE_LIBUSB_H"
32936 { echo "$as_me:$LINENO: checking for hid_init in -lusb" >&5
32937 echo $ECHO_N "checking for hid_init in -lusb... $ECHO_C" >&6; }
32938 if test "${ac_cv_lib_usb_hid_init+set}" = set; then
32939 echo $ECHO_N "(cached) $ECHO_C" >&6
32940 else
32941 ac_check_lib_save_LIBS=$LIBS
32942 LIBS="-lusb $LIBS"
32943 cat >conftest.$ac_ext <<_ACEOF
32944 /* confdefs.h. */
32945 _ACEOF
32946 cat confdefs.h >>conftest.$ac_ext
32947 cat >>conftest.$ac_ext <<_ACEOF
32948 /* end confdefs.h. */
32950 /* Override any GCC internal prototype to avoid an error.
32951 Use char because int might match the return type of a GCC
32952 builtin and then its argument prototype would still apply. */
32953 #ifdef __cplusplus
32954 extern "C"
32955 #endif
32956 char hid_init ();
32958 main ()
32960 return hid_init ();
32962 return 0;
32964 _ACEOF
32965 rm -f conftest.$ac_objext conftest$ac_exeext
32966 if { (ac_try="$ac_link"
32967 case "(($ac_try" in
32968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969 *) ac_try_echo=$ac_try;;
32970 esac
32971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972 (eval "$ac_link") 2>conftest.er1
32973 ac_status=$?
32974 grep -v '^ *+' conftest.er1 >conftest.err
32975 rm -f conftest.er1
32976 cat conftest.err >&5
32977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978 (exit $ac_status); } && {
32979 test -z "$ac_c_werror_flag" ||
32980 test ! -s conftest.err
32981 } && test -s conftest$ac_exeext &&
32982 $as_test_x conftest$ac_exeext; then
32983 ac_cv_lib_usb_hid_init=yes
32984 else
32985 echo "$as_me: failed program was:" >&5
32986 sed 's/^/| /' conftest.$ac_ext >&5
32988 ac_cv_lib_usb_hid_init=no
32991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32992 conftest$ac_exeext conftest.$ac_ext
32993 LIBS=$ac_check_lib_save_LIBS
32995 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_hid_init" >&5
32996 echo "${ECHO_T}$ac_cv_lib_usb_hid_init" >&6; }
32997 if test $ac_cv_lib_usb_hid_init = yes; then
32998 USB_LIBS="$USB_LIBS -lusb"
33003 save_CFLAGS="$CFLAGS"
33004 CFLAGS="$CFLAGS $USB_CFLAGS"
33006 { echo "$as_me:$LINENO: checking for usbhid" >&5
33007 echo $ECHO_N "checking for usbhid... $ECHO_C" >&6; }
33008 have_usbhid=no
33009 cat >conftest.$ac_ext <<_ACEOF
33010 /* confdefs.h. */
33011 _ACEOF
33012 cat confdefs.h >>conftest.$ac_ext
33013 cat >>conftest.$ac_ext <<_ACEOF
33014 /* end confdefs.h. */
33016 #include <sys/types.h>
33017 #if defined(HAVE_USB_H)
33018 #include <usb.h>
33019 #endif
33020 #ifdef __DragonFly__
33021 # include <bus/usb/usb.h>
33022 # include <bus/usb/usbhid.h>
33023 #else
33024 # include <dev/usb/usb.h>
33025 # include <dev/usb/usbhid.h>
33026 #endif
33027 #if defined(HAVE_USBHID_H)
33028 #include <usbhid.h>
33029 #elif defined(HAVE_LIBUSB_H)
33030 #include <libusb.h>
33031 #elif defined(HAVE_LIBUSBHID_H)
33032 #include <libusbhid.h>
33033 #endif
33036 main ()
33039 struct report_desc *repdesc;
33040 struct usb_ctl_report *repbuf;
33041 hid_kind_t hidkind;
33044 return 0;
33046 _ACEOF
33047 rm -f conftest.$ac_objext
33048 if { (ac_try="$ac_compile"
33049 case "(($ac_try" in
33050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33051 *) ac_try_echo=$ac_try;;
33052 esac
33053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33054 (eval "$ac_compile") 2>conftest.er1
33055 ac_status=$?
33056 grep -v '^ *+' conftest.er1 >conftest.err
33057 rm -f conftest.er1
33058 cat conftest.err >&5
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); } && {
33061 test -z "$ac_c_werror_flag" ||
33062 test ! -s conftest.err
33063 } && test -s conftest.$ac_objext; then
33065 have_usbhid=yes
33067 else
33068 echo "$as_me: failed program was:" >&5
33069 sed 's/^/| /' conftest.$ac_ext >&5
33074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33075 { echo "$as_me:$LINENO: result: $have_usbhid" >&5
33076 echo "${ECHO_T}$have_usbhid" >&6; }
33078 if test x$have_usbhid = xyes; then
33079 { echo "$as_me:$LINENO: checking for ucr_data member of usb_ctl_report" >&5
33080 echo $ECHO_N "checking for ucr_data member of usb_ctl_report... $ECHO_C" >&6; }
33081 have_usbhid_ucr_data=no
33082 cat >conftest.$ac_ext <<_ACEOF
33083 /* confdefs.h. */
33084 _ACEOF
33085 cat confdefs.h >>conftest.$ac_ext
33086 cat >>conftest.$ac_ext <<_ACEOF
33087 /* end confdefs.h. */
33089 #include <sys/types.h>
33090 #if defined(HAVE_USB_H)
33091 #include <usb.h>
33092 #endif
33093 #ifdef __DragonFly__
33094 # include <bus/usb/usb.h>
33095 # include <bus/usb/usbhid.h>
33096 #else
33097 # include <dev/usb/usb.h>
33098 # include <dev/usb/usbhid.h>
33099 #endif
33100 #if defined(HAVE_USBHID_H)
33101 #include <usbhid.h>
33102 #elif defined(HAVE_LIBUSB_H)
33103 #include <libusb.h>
33104 #elif defined(HAVE_LIBUSBHID_H)
33105 #include <libusbhid.h>
33106 #endif
33109 main ()
33112 struct usb_ctl_report buf;
33113 if (buf.ucr_data) { }
33116 return 0;
33118 _ACEOF
33119 rm -f conftest.$ac_objext
33120 if { (ac_try="$ac_compile"
33121 case "(($ac_try" in
33122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33123 *) ac_try_echo=$ac_try;;
33124 esac
33125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33126 (eval "$ac_compile") 2>conftest.er1
33127 ac_status=$?
33128 grep -v '^ *+' conftest.er1 >conftest.err
33129 rm -f conftest.er1
33130 cat conftest.err >&5
33131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); } && {
33133 test -z "$ac_c_werror_flag" ||
33134 test ! -s conftest.err
33135 } && test -s conftest.$ac_objext; then
33137 have_usbhid_ucr_data=yes
33139 else
33140 echo "$as_me: failed program was:" >&5
33141 sed 's/^/| /' conftest.$ac_ext >&5
33146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33147 if test x$have_usbhid_ucr_data = xyes; then
33148 USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
33150 { echo "$as_me:$LINENO: result: $have_usbhid_ucr_data" >&5
33151 echo "${ECHO_T}$have_usbhid_ucr_data" >&6; }
33153 { echo "$as_me:$LINENO: checking for new usbhid API" >&5
33154 echo $ECHO_N "checking for new usbhid API... $ECHO_C" >&6; }
33155 have_usbhid_new=no
33156 cat >conftest.$ac_ext <<_ACEOF
33157 /* confdefs.h. */
33158 _ACEOF
33159 cat confdefs.h >>conftest.$ac_ext
33160 cat >>conftest.$ac_ext <<_ACEOF
33161 /* end confdefs.h. */
33163 #include <sys/types.h>
33164 #if defined(HAVE_USB_H)
33165 #include <usb.h>
33166 #endif
33167 #ifdef __DragonFly__
33168 #include <bus/usb/usb.h>
33169 #include <bus/usb/usbhid.h>
33170 #else
33171 #include <dev/usb/usb.h>
33172 #include <dev/usb/usbhid.h>
33173 #endif
33174 #if defined(HAVE_USBHID_H)
33175 #include <usbhid.h>
33176 #elif defined(HAVE_LIBUSB_H)
33177 #include <libusb.h>
33178 #elif defined(HAVE_LIBUSBHID_H)
33179 #include <libusbhid.h>
33180 #endif
33183 main ()
33186 report_desc_t d;
33187 hid_start_parse(d, 1, 1);
33190 return 0;
33192 _ACEOF
33193 rm -f conftest.$ac_objext
33194 if { (ac_try="$ac_compile"
33195 case "(($ac_try" in
33196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33197 *) ac_try_echo=$ac_try;;
33198 esac
33199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33200 (eval "$ac_compile") 2>conftest.er1
33201 ac_status=$?
33202 grep -v '^ *+' conftest.er1 >conftest.err
33203 rm -f conftest.er1
33204 cat conftest.err >&5
33205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33206 (exit $ac_status); } && {
33207 test -z "$ac_c_werror_flag" ||
33208 test ! -s conftest.err
33209 } && test -s conftest.$ac_objext; then
33211 have_usbhid_new=yes
33213 else
33214 echo "$as_me: failed program was:" >&5
33215 sed 's/^/| /' conftest.$ac_ext >&5
33220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33221 if test x$have_usbhid_new = xyes; then
33222 USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
33224 { echo "$as_me:$LINENO: result: $have_usbhid_new" >&5
33225 echo "${ECHO_T}$have_usbhid_new" >&6; }
33227 { echo "$as_me:$LINENO: checking for struct joystick in machine/joystick.h" >&5
33228 echo $ECHO_N "checking for struct joystick in machine/joystick.h... $ECHO_C" >&6; }
33229 have_machine_joystick=no
33230 cat >conftest.$ac_ext <<_ACEOF
33231 /* confdefs.h. */
33232 _ACEOF
33233 cat confdefs.h >>conftest.$ac_ext
33234 cat >>conftest.$ac_ext <<_ACEOF
33235 /* end confdefs.h. */
33237 #include <machine/joystick.h>
33240 main ()
33243 struct joystick t;
33246 return 0;
33248 _ACEOF
33249 rm -f conftest.$ac_objext
33250 if { (ac_try="$ac_compile"
33251 case "(($ac_try" in
33252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33253 *) ac_try_echo=$ac_try;;
33254 esac
33255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33256 (eval "$ac_compile") 2>conftest.er1
33257 ac_status=$?
33258 grep -v '^ *+' conftest.er1 >conftest.err
33259 rm -f conftest.er1
33260 cat conftest.err >&5
33261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33262 (exit $ac_status); } && {
33263 test -z "$ac_c_werror_flag" ||
33264 test ! -s conftest.err
33265 } && test -s conftest.$ac_objext; then
33267 have_machine_joystick=yes
33269 else
33270 echo "$as_me: failed program was:" >&5
33271 sed 's/^/| /' conftest.$ac_ext >&5
33276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33277 if test x$have_machine_joystick = xyes; then
33278 cat >>confdefs.h <<\_ACEOF
33279 #define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1
33280 _ACEOF
33283 { echo "$as_me:$LINENO: result: $have_machine_joystick" >&5
33284 echo "${ECHO_T}$have_machine_joystick" >&6; }
33286 cat >>confdefs.h <<\_ACEOF
33287 #define SDL_JOYSTICK_USBHID 1
33288 _ACEOF
33290 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
33291 EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
33292 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
33293 have_joystick=yes
33295 CFLAGS="$save_CFLAGS"
33299 CheckClockGettime()
33301 # Check whether --enable-clock_gettime was given.
33302 if test "${enable_clock_gettime+set}" = set; then
33303 enableval=$enable_clock_gettime;
33304 else
33305 enable_clock_gettime=no
33308 if test x$enable_clock_gettime = xyes; then
33309 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
33310 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
33311 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
33312 echo $ECHO_N "(cached) $ECHO_C" >&6
33313 else
33314 ac_check_lib_save_LIBS=$LIBS
33315 LIBS="-lrt $LIBS"
33316 cat >conftest.$ac_ext <<_ACEOF
33317 /* confdefs.h. */
33318 _ACEOF
33319 cat confdefs.h >>conftest.$ac_ext
33320 cat >>conftest.$ac_ext <<_ACEOF
33321 /* end confdefs.h. */
33323 /* Override any GCC internal prototype to avoid an error.
33324 Use char because int might match the return type of a GCC
33325 builtin and then its argument prototype would still apply. */
33326 #ifdef __cplusplus
33327 extern "C"
33328 #endif
33329 char clock_gettime ();
33331 main ()
33333 return clock_gettime ();
33335 return 0;
33337 _ACEOF
33338 rm -f conftest.$ac_objext conftest$ac_exeext
33339 if { (ac_try="$ac_link"
33340 case "(($ac_try" in
33341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33342 *) ac_try_echo=$ac_try;;
33343 esac
33344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33345 (eval "$ac_link") 2>conftest.er1
33346 ac_status=$?
33347 grep -v '^ *+' conftest.er1 >conftest.err
33348 rm -f conftest.er1
33349 cat conftest.err >&5
33350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); } && {
33352 test -z "$ac_c_werror_flag" ||
33353 test ! -s conftest.err
33354 } && test -s conftest$ac_exeext &&
33355 $as_test_x conftest$ac_exeext; then
33356 ac_cv_lib_rt_clock_gettime=yes
33357 else
33358 echo "$as_me: failed program was:" >&5
33359 sed 's/^/| /' conftest.$ac_ext >&5
33361 ac_cv_lib_rt_clock_gettime=no
33364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33365 conftest$ac_exeext conftest.$ac_ext
33366 LIBS=$ac_check_lib_save_LIBS
33368 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
33369 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
33370 if test $ac_cv_lib_rt_clock_gettime = yes; then
33371 have_clock_gettime=yes
33374 if test x$have_clock_gettime = xyes; then
33375 cat >>confdefs.h <<\_ACEOF
33376 #define HAVE_CLOCK_GETTIME 1
33377 _ACEOF
33379 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
33384 CheckLinuxVersion()
33386 if test "${ac_cv_header_linux_version_h+set}" = set; then
33387 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
33388 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
33389 if test "${ac_cv_header_linux_version_h+set}" = set; then
33390 echo $ECHO_N "(cached) $ECHO_C" >&6
33392 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
33393 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
33394 else
33395 # Is the header compilable?
33396 { echo "$as_me:$LINENO: checking linux/version.h usability" >&5
33397 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
33398 cat >conftest.$ac_ext <<_ACEOF
33399 /* confdefs.h. */
33400 _ACEOF
33401 cat confdefs.h >>conftest.$ac_ext
33402 cat >>conftest.$ac_ext <<_ACEOF
33403 /* end confdefs.h. */
33404 $ac_includes_default
33405 #include <linux/version.h>
33406 _ACEOF
33407 rm -f conftest.$ac_objext
33408 if { (ac_try="$ac_compile"
33409 case "(($ac_try" in
33410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33411 *) ac_try_echo=$ac_try;;
33412 esac
33413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33414 (eval "$ac_compile") 2>conftest.er1
33415 ac_status=$?
33416 grep -v '^ *+' conftest.er1 >conftest.err
33417 rm -f conftest.er1
33418 cat conftest.err >&5
33419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420 (exit $ac_status); } && {
33421 test -z "$ac_c_werror_flag" ||
33422 test ! -s conftest.err
33423 } && test -s conftest.$ac_objext; then
33424 ac_header_compiler=yes
33425 else
33426 echo "$as_me: failed program was:" >&5
33427 sed 's/^/| /' conftest.$ac_ext >&5
33429 ac_header_compiler=no
33432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33434 echo "${ECHO_T}$ac_header_compiler" >&6; }
33436 # Is the header present?
33437 { echo "$as_me:$LINENO: checking linux/version.h presence" >&5
33438 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
33439 cat >conftest.$ac_ext <<_ACEOF
33440 /* confdefs.h. */
33441 _ACEOF
33442 cat confdefs.h >>conftest.$ac_ext
33443 cat >>conftest.$ac_ext <<_ACEOF
33444 /* end confdefs.h. */
33445 #include <linux/version.h>
33446 _ACEOF
33447 if { (ac_try="$ac_cpp conftest.$ac_ext"
33448 case "(($ac_try" in
33449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450 *) ac_try_echo=$ac_try;;
33451 esac
33452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33454 ac_status=$?
33455 grep -v '^ *+' conftest.er1 >conftest.err
33456 rm -f conftest.er1
33457 cat conftest.err >&5
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); } >/dev/null && {
33460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33461 test ! -s conftest.err
33462 }; then
33463 ac_header_preproc=yes
33464 else
33465 echo "$as_me: failed program was:" >&5
33466 sed 's/^/| /' conftest.$ac_ext >&5
33468 ac_header_preproc=no
33471 rm -f conftest.err conftest.$ac_ext
33472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33473 echo "${ECHO_T}$ac_header_preproc" >&6; }
33475 # So? What about this header?
33476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33477 yes:no: )
33478 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
33479 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33480 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
33481 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
33482 ac_header_preproc=yes
33484 no:yes:* )
33485 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
33486 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
33487 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
33488 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
33489 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
33490 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
33491 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
33492 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
33493 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
33494 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
33495 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
33496 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
33499 esac
33500 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
33501 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
33502 if test "${ac_cv_header_linux_version_h+set}" = set; then
33503 echo $ECHO_N "(cached) $ECHO_C" >&6
33504 else
33505 ac_cv_header_linux_version_h=$ac_header_preproc
33507 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
33508 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
33511 if test $ac_cv_header_linux_version_h = yes; then
33512 have_linux_version_h=yes
33516 if test x$have_linux_version_h = xyes; then
33517 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
33521 CheckRPATH()
33523 # Check whether --enable-rpath was given.
33524 if test "${enable_rpath+set}" = set; then
33525 enableval=$enable_rpath;
33526 else
33527 enable_rpath=yes
33532 case "$host" in
33533 arm-*-elf*) # FIXME: Can we get more specific for iPodLinux?
33534 ARCH=linux
33535 CheckDummyVideo
33536 CheckIPod
33537 # Set up files for the timer library
33538 if test x$enable_timers = xyes; then
33539 cat >>confdefs.h <<\_ACEOF
33540 #define SDL_TIMER_UNIX 1
33541 _ACEOF
33543 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
33544 have_timers=yes
33547 *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-irix*|*-*-aix*|*-*-osf*)
33548 case "$host" in
33549 *-*-linux*) ARCH=linux ;;
33550 *-*-uclinux*) ARCH=linux ;;
33551 *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
33552 *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
33553 *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
33554 *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
33555 *-*-bsdi*) ARCH=bsdi ;;
33556 *-*-freebsd*) ARCH=freebsd ;;
33557 *-*-dragonfly*) ARCH=freebsd ;;
33558 *-*-netbsd*) ARCH=netbsd ;;
33559 *-*-openbsd*) ARCH=openbsd ;;
33560 *-*-sysv5*) ARCH=sysv5 ;;
33561 *-*-solaris*) ARCH=solaris ;;
33562 *-*-hpux*) ARCH=hpux ;;
33563 *-*-irix*) ARCH=irix ;;
33564 *-*-aix*) ARCH=aix ;;
33565 *-*-osf*) ARCH=osf ;;
33566 esac
33567 CheckVisibilityHidden
33568 CheckDummyVideo
33569 CheckDiskAudio
33570 CheckDummyAudio
33571 CheckDLOPEN
33572 CheckNASM
33573 CheckAltivec
33574 CheckOSS
33575 CheckDMEDIA
33576 CheckMME
33577 CheckALSA
33578 CheckARTSC
33579 CheckESD
33580 CheckPulseAudio
33581 CheckNAS
33582 CheckX11
33583 CheckNANOX
33584 CheckFBCON
33585 CheckDirectFB
33586 CheckPS2GS
33587 CheckGGI
33588 CheckSVGA
33589 CheckVGL
33590 CheckWscons
33591 CheckAAlib
33592 CheckQtopia
33593 CheckPicoGUI
33594 CheckOpenGLX11
33595 CheckInputEvents
33596 CheckTslib
33597 CheckUSBHID
33598 CheckPTHREAD
33599 CheckClockGettime
33600 CheckLinuxVersion
33601 CheckRPATH
33602 # Set up files for the audio library
33603 if test x$enable_audio = xyes; then
33604 case $ARCH in
33605 sysv5|solaris|hpux)
33606 cat >>confdefs.h <<\_ACEOF
33607 #define SDL_AUDIO_DRIVER_SUNAUDIO 1
33608 _ACEOF
33610 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
33611 have_audio=yes
33613 netbsd|openbsd)
33614 cat >>confdefs.h <<\_ACEOF
33615 #define SDL_AUDIO_DRIVER_BSD 1
33616 _ACEOF
33618 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
33619 have_audio=yes
33621 aix)
33622 cat >>confdefs.h <<\_ACEOF
33623 #define SDL_AUDIO_DRIVER_PAUD 1
33624 _ACEOF
33626 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
33627 have_audio=yes
33629 esac
33631 # Set up files for the joystick library
33632 if test x$enable_joystick = xyes; then
33633 case $ARCH in
33634 linux)
33635 cat >>confdefs.h <<\_ACEOF
33636 #define SDL_JOYSTICK_LINUX 1
33637 _ACEOF
33639 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
33640 have_joystick=yes
33642 esac
33644 # Set up files for the cdrom library
33645 if test x$enable_cdrom = xyes; then
33646 case $ARCH in
33647 linux|solaris)
33648 cat >>confdefs.h <<\_ACEOF
33649 #define SDL_CDROM_LINUX 1
33650 _ACEOF
33652 SOURCES="$SOURCES $srcdir/src/cdrom/linux/*.c"
33653 have_cdrom=yes
33655 *freebsd*)
33656 cat >>confdefs.h <<\_ACEOF
33657 #define SDL_CDROM_FREEBSD 1
33658 _ACEOF
33660 SOURCES="$SOURCES $srcdir/src/cdrom/freebsd/*.c"
33661 have_cdrom=yes
33663 *openbsd*|*netbsd*)
33664 cat >>confdefs.h <<\_ACEOF
33665 #define SDL_CDROM_OPENBSD 1
33666 _ACEOF
33668 SOURCES="$SOURCES $srcdir/src/cdrom/openbsd/*.c"
33669 have_cdrom=yes
33671 bsdi)
33672 cat >>confdefs.h <<\_ACEOF
33673 #define SDL_CDROM_BSDI 1
33674 _ACEOF
33676 SOURCES="$SOURCES $srcdir/src/cdrom/bsdi/*.c"
33677 have_cdrom=yes
33679 aix)
33680 cat >>confdefs.h <<\_ACEOF
33681 #define SDL_CDROM_AIX 1
33682 _ACEOF
33684 SOURCES="$SOURCES $srcdir/src/cdrom/aix/*.c"
33685 have_cdrom=yes
33687 osf)
33688 cat >>confdefs.h <<\_ACEOF
33689 #define SDL_CDROM_OSF 1
33690 _ACEOF
33692 SOURCES="$SOURCES $srcdir/src/cdrom/osf/*.c"
33693 have_cdrom=yes
33695 esac
33697 # Set up files for the thread library
33698 if test x$enable_threads = xyes -a x$use_pthreads != xyes -a x$use_pth != xyes -a x$ARCH = xirix; then
33699 cat >>confdefs.h <<\_ACEOF
33700 #define SDL_THREAD_SPROC 1
33701 _ACEOF
33703 SOURCES="$SOURCES $srcdir/src/thread/irix/*.c"
33704 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
33705 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
33706 have_threads=yes
33708 # Set up files for the timer library
33709 if test x$enable_timers = xyes; then
33710 cat >>confdefs.h <<\_ACEOF
33711 #define SDL_TIMER_UNIX 1
33712 _ACEOF
33714 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
33715 have_timers=yes
33718 *-*-qnx*)
33719 ARCH=qnx
33720 CheckDummyVideo
33721 CheckDiskAudio
33722 CheckDummyAudio
33723 # CheckNASM
33724 CheckDLOPEN
33725 CheckNAS
33726 CheckPHOTON
33727 CheckX11
33728 CheckOpenGLX11
33729 CheckPTHREAD
33730 # Set up files for the audio library
33731 if test x$enable_audio = xyes; then
33732 cat >>confdefs.h <<\_ACEOF
33733 #define SDL_AUDIO_DRIVER_QNXNTO 1
33734 _ACEOF
33736 SOURCES="$SOURCES $srcdir/src/audio/nto/*.c"
33737 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
33738 have_audio=yes
33740 # Set up files for the cdrom library
33741 if test x$enable_cdrom = xyes; then
33742 cat >>confdefs.h <<\_ACEOF
33743 #define SDL_CDROM_QNX 1
33744 _ACEOF
33746 SOURCES="$SOURCES $srcdir/src/cdrom/qnx/*.c"
33747 have_cdrom=yes
33749 # Set up files for the timer library
33750 if test x$enable_timers = xyes; then
33751 cat >>confdefs.h <<\_ACEOF
33752 #define SDL_TIMER_UNIX 1
33753 _ACEOF
33755 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
33756 have_timers=yes
33759 *-*-cygwin* | *-*-mingw32*)
33760 ARCH=win32
33761 if test "$build" != "$host"; then # cross-compiling
33762 # Default cross-compile location
33763 ac_default_prefix=/usr/local/cross-tools/i386-mingw32
33764 else
33765 # Look for the location of the tools and install there
33766 if test "$BUILD_PREFIX" != ""; then
33767 ac_default_prefix=$BUILD_PREFIX
33770 CheckDummyVideo
33771 CheckDiskAudio
33772 CheckDummyAudio
33773 CheckWIN32
33774 CheckWIN32GL
33775 CheckDIRECTX
33776 CheckNASM
33777 # Set up files for the audio library
33778 if test x$enable_audio = xyes; then
33779 cat >>confdefs.h <<\_ACEOF
33780 #define SDL_AUDIO_DRIVER_WAVEOUT 1
33781 _ACEOF
33783 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
33784 if test x$have_directx = xyes; then
33785 cat >>confdefs.h <<\_ACEOF
33786 #define SDL_AUDIO_DRIVER_DSOUND 1
33787 _ACEOF
33789 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c"
33791 have_audio=yes
33793 # Set up files for the joystick library
33794 if test x$enable_joystick = xyes; then
33795 cat >>confdefs.h <<\_ACEOF
33796 #define SDL_JOYSTICK_WINMM 1
33797 _ACEOF
33799 SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c"
33800 have_joystick=yes
33802 # Set up files for the cdrom library
33803 if test x$enable_cdrom = xyes; then
33804 cat >>confdefs.h <<\_ACEOF
33805 #define SDL_CDROM_WIN32 1
33806 _ACEOF
33808 SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c"
33809 have_cdrom=yes
33811 # Set up files for the thread library
33812 if test x$enable_threads = xyes; then
33813 cat >>confdefs.h <<\_ACEOF
33814 #define SDL_THREAD_WIN32 1
33815 _ACEOF
33817 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
33818 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
33819 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
33820 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
33821 have_threads=yes
33823 # Set up files for the timer library
33824 if test x$enable_timers = xyes; then
33825 cat >>confdefs.h <<\_ACEOF
33826 #define SDL_TIMER_WIN32 1
33827 _ACEOF
33829 SOURCES="$SOURCES $srcdir/src/timer/win32/*.c"
33830 have_timers=yes
33832 # Set up files for the shared object loading library
33833 if test x$enable_loadso = xyes; then
33834 cat >>confdefs.h <<\_ACEOF
33835 #define SDL_LOADSO_WIN32 1
33836 _ACEOF
33838 SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
33839 have_loadso=yes
33841 # Set up the system libraries we need
33842 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm"
33843 if test x$have_directx = xyes; then
33844 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldxguid"
33846 # The Win32 platform requires special setup
33847 SOURCES="$SOURCES $srcdir/src/main/win32/*.rc"
33848 SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
33849 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
33850 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows"
33852 *-*-beos*)
33853 ARCH=beos
33854 ac_default_prefix=/boot/develop/tools/gnupro
33855 CheckDummyVideo
33856 CheckDiskAudio
33857 CheckDummyAudio
33858 CheckNASM
33859 CheckBWINDOW
33860 CheckBeGL
33861 # Set up files for the audio library
33862 if test x$enable_audio = xyes; then
33863 cat >>confdefs.h <<\_ACEOF
33864 #define SDL_AUDIO_DRIVER_BAUDIO 1
33865 _ACEOF
33867 SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc"
33868 have_audio=yes
33870 # Set up files for the joystick library
33871 if test x$enable_joystick = xyes; then
33872 cat >>confdefs.h <<\_ACEOF
33873 #define SDL_JOYSTICK_BEOS 1
33874 _ACEOF
33876 SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc"
33877 have_joystick=yes
33879 # Set up files for the cdrom library
33880 if test x$enable_cdrom = xyes; then
33881 cat >>confdefs.h <<\_ACEOF
33882 #define SDL_CDROM_BEOS 1
33883 _ACEOF
33885 SOURCES="$SOURCES $srcdir/src/cdrom/beos/*.cc"
33886 have_cdrom=yes
33888 # Set up files for the thread library
33889 if test x$enable_threads = xyes; then
33890 cat >>confdefs.h <<\_ACEOF
33891 #define SDL_THREAD_BEOS 1
33892 _ACEOF
33894 SOURCES="$SOURCES $srcdir/src/thread/beos/*.c"
33895 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
33896 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
33897 have_threads=yes
33899 # Set up files for the timer library
33900 if test x$enable_timers = xyes; then
33901 cat >>confdefs.h <<\_ACEOF
33902 #define SDL_TIMER_BEOS 1
33903 _ACEOF
33905 SOURCES="$SOURCES $srcdir/src/timer/beos/*.c"
33906 have_timers=yes
33908 # Set up files for the shared object loading library
33909 if test x$enable_loadso = xyes; then
33910 cat >>confdefs.h <<\_ACEOF
33911 #define SDL_LOADSO_BEOS 1
33912 _ACEOF
33914 SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c"
33915 have_loadso=yes
33917 # The BeOS platform requires special setup.
33918 SOURCES="$srcdir/src/main/beos/*.cc $SOURCES"
33919 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
33921 *-*-darwin* )
33922 # This could be either full "Mac OS X", or plain "Darwin" which is
33923 # just the OS X kernel sans upper layers like Carbon and Cocoa.
33924 # Next line is broken, and a few files below require Mac OS X (full)
33925 ARCH=macosx
33927 # Mac OS X builds with both the Carbon and OSX APIs at the moment
33928 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
33929 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
33931 # HACK: Reset EXTRA_LDFLAGS; the only thing it contains at this point
33932 # is -lm which is not needed under Mac OS X. But for some reasons it
33933 # also tends to contain spurious -L switches, which we don't want to
33934 # use here or in sdl-config. Hence we reset it.
33935 EXTRA_LDFLAGS=""
33937 CheckVisibilityHidden
33938 CheckDummyVideo
33939 CheckDiskAudio
33940 CheckDummyAudio
33941 CheckDLOPEN
33942 CheckNASM
33944 # Set up files for the shared object loading library
33945 # (this needs to be done before the dynamic X11 check)
33946 if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then
33947 cat >>confdefs.h <<\_ACEOF
33948 #define SDL_LOADSO_DLCOMPAT 1
33949 _ACEOF
33951 SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c"
33952 have_loadso=yes
33955 CheckCOCOA
33956 CheckCARBON
33957 CheckX11
33958 CheckMacGL
33959 CheckOpenGLX11
33960 CheckPTHREAD
33961 CheckAltivec
33963 # Need this or things might misbuild on a G3.
33964 EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL"
33966 # Set up files for the audio library
33967 if test x$enable_audio = xyes; then
33968 cat >>confdefs.h <<\_ACEOF
33969 #define SDL_AUDIO_DRIVER_COREAUDIO 1
33970 _ACEOF
33972 SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c"
33973 cat >>confdefs.h <<\_ACEOF
33974 #define SDL_AUDIO_DRIVER_SNDMGR 1
33975 _ACEOF
33977 SOURCES="$SOURCES $srcdir/src/audio/macrom/*.c"
33978 have_audio=yes
33980 # Set up files for the joystick library
33981 if test x$enable_joystick = xyes; then
33982 cat >>confdefs.h <<\_ACEOF
33983 #define SDL_JOYSTICK_IOKIT 1
33984 _ACEOF
33986 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
33987 have_joystick=yes
33988 need_iokit_framework=yes
33990 # Set up files for the cdrom library
33991 if test x$enable_cdrom = xyes; then
33992 cat >>confdefs.h <<\_ACEOF
33993 #define SDL_CDROM_MACOSX 1
33994 _ACEOF
33996 SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c"
33997 have_cdrom=yes
33999 # Set up files for the timer library
34000 if test x$enable_timers = xyes; then
34001 cat >>confdefs.h <<\_ACEOF
34002 #define SDL_TIMER_UNIX 1
34003 _ACEOF
34005 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
34006 have_timers=yes
34008 # The Mac OS X platform requires special setup.
34009 SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m"
34010 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
34011 SDL_LIBS="-lSDLmain $SDL_LIBS"
34012 if test x$enable_video_cocoa = xyes; then
34013 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
34014 need_iokit_framework=yes
34016 if test x$enable_video_carbon = xyes -o x$enable_video_cocoa = xyes; then
34017 # The Cocoa backend still needs Carbon, and the YUV code QuickTime
34018 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuickTime -Wl,-framework,ApplicationServices"
34019 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
34021 # If either the audio or CD driver is used, add the AudioUnit framework
34022 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then
34023 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
34025 # Some subsystems reference IOKit...
34026 if test x$need_iokit_framework = xyes; then
34027 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
34030 *-*-mint*)
34031 ARCH=mint
34032 CheckDummyVideo
34033 CheckDiskAudio
34034 CheckDummyAudio
34035 CheckAtariBiosEvent
34036 CheckAtariXbiosVideo
34037 CheckAtariGemVideo
34038 CheckAtariAudio
34039 CheckAtariLdg
34040 CheckAtariOSMesa
34041 CheckPTH
34042 # Set up files for the audio library
34043 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
34044 if test x$enable_audio = xyes; then
34045 cat >>confdefs.h <<\_ACEOF
34046 #define SDL_AUDIO_DRIVER_SUNAUDIO 1
34047 _ACEOF
34049 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
34050 have_audio=yes
34053 # Set up files for the joystick library
34054 if test x$enable_joystick = xyes; then
34055 cat >>confdefs.h <<\_ACEOF
34056 #define SDL_JOYSTICK_MINT 1
34057 _ACEOF
34059 SOURCES="$SOURCES $srcdir/src/joystick/mint/*.c"
34060 have_joystick=yes
34062 # Set up files for the cdrom library
34063 if test x$enable_cdrom = xyes; then
34064 cat >>confdefs.h <<\_ACEOF
34065 #define SDL_CDROM_MINT 1
34066 _ACEOF
34068 SOURCES="$SOURCES $srcdir/src/cdrom/mint/*.c"
34069 have_cdrom=yes
34071 # Set up files for the timer library
34072 if test x$enable_timers = xyes; then
34073 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
34074 cat >>confdefs.h <<\_ACEOF
34075 #define SDL_TIMER_UNIX 1
34076 _ACEOF
34078 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
34079 else
34080 cat >>confdefs.h <<\_ACEOF
34081 #define SDL_TIMER_MINT 1
34082 _ACEOF
34084 SOURCES="$SOURCES $srcdir/src/timer/mint/*.c"
34085 SOURCES="$SOURCES $srcdir/src/timer/mint/*.S"
34087 have_timers=yes
34090 *-riscos)
34091 ARCH=riscos
34092 CheckOSS
34093 CheckPTHREAD
34094 # Set up files for the video library
34095 if test x$enable_video = xyes; then
34096 cat >>confdefs.h <<\_ACEOF
34097 #define SDL_VIDEO_DRIVER_RISCOS 1
34098 _ACEOF
34100 SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
34101 SOURCES="$SOURCES $srcdir/src/video/riscos/*.S"
34102 have_video=yes
34104 # Set up files for the joystick library
34105 if test x$enable_joystick = xyes; then
34106 cat >>confdefs.h <<\_ACEOF
34107 #define SDL_JOYSTICK_RISCOS 1
34108 _ACEOF
34110 SOURCES="$SOURCES $srcdir/src/joystick/riscos/*.c"
34111 have_joystick=yes
34113 # Set up files for the timer library
34114 if test x$enable_timers = xyes; then
34115 cat >>confdefs.h <<\_ACEOF
34116 #define SDL_TIMER_RISCOS 1
34117 _ACEOF
34119 SOURCES="$SOURCES $srcdir/src/timer/riscos/*.c"
34120 have_timers=yes
34122 # The RISC OS platform requires special setup.
34123 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ljpeg -ltiff -lpng -lz"
34126 { { echo "$as_me:$LINENO: error:
34127 *** Unsupported host: Please add to configure.in
34128 " >&5
34129 echo "$as_me: error:
34130 *** Unsupported host: Please add to configure.in
34131 " >&2;}
34132 { (exit 1); exit 1; }; }
34134 esac
34136 # Verify that we have all the platform specific files we need
34138 if test x$enable_joystick = xyes; then
34139 if test x$have_joystick != xyes; then
34140 # Wants joystick subsystem, but doesn't have a platform-specific backend...
34141 cat >>confdefs.h <<\_ACEOF
34142 #define SDL_JOYSTICK_DUMMY 1
34143 _ACEOF
34145 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
34148 if test x$have_cdrom != xyes; then
34149 if test x$enable_cdrom = xyes; then
34150 cat >>confdefs.h <<\_ACEOF
34151 #define SDL_CDROM_DISABLED 1
34152 _ACEOF
34155 SOURCES="$SOURCES $srcdir/src/cdrom/dummy/*.c"
34157 if test x$have_threads != xyes; then
34158 if test x$enable_threads = xyes; then
34159 cat >>confdefs.h <<\_ACEOF
34160 #define SDL_THREADS_DISABLED 1
34161 _ACEOF
34164 SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
34166 if test x$have_timers != xyes; then
34167 if test x$enable_timers = xyes; then
34168 cat >>confdefs.h <<\_ACEOF
34169 #define SDL_TIMERS_DISABLED 1
34170 _ACEOF
34173 SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
34175 if test x$have_loadso != xyes; then
34176 if test x$enable_loadso = xyes; then
34177 cat >>confdefs.h <<\_ACEOF
34178 #define SDL_LOADSO_DISABLED 1
34179 _ACEOF
34182 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
34184 if test x$SDLMAIN_SOURCES = x; then
34185 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
34188 OBJECTS=`echo $SOURCES | sed 's,[^ ]*/\([^ ]*\)\.asm,$(objects)/\1.lo,g'`
34189 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.cc,$(objects)/\1.lo,g'`
34190 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.m,$(objects)/\1.lo,g'`
34191 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
34192 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.S,$(objects)/\1.lo,g'`
34193 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
34195 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES | sed 's,[^ ]*/\([^ ]*\)\.cc,$(objects)/\1.o,g'`
34196 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.m,$(objects)/\1.o,g'`
34197 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
34199 # Set runtime shared library paths as needed
34201 if test "x$enable_rpath" = "xyes"; then
34202 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then
34203 SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
34205 if test $ARCH = solaris; then
34206 SDL_RLD_FLAGS="-R\${libdir}"
34208 else
34209 SDL_RLD_FLAGS=""
34212 case "$ARCH" in
34213 macosx)
34214 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
34215 SDL_LIBS="$SDL_LIBS -Wl,-framework,Cocoa"
34217 if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then
34218 SDL_LIBS="$SDL_LIBS -Wl,-framework,Carbon"
34220 # Evil hack to allow static linking on Mac OS X
34221 SDL_STATIC_LIBS="\${libdir}/libSDLmain.a \${libdir}/libSDL.a $EXTRA_LDFLAGS"
34224 SDL_STATIC_LIBS="$SDL_LIBS"
34226 esac
34232 if test x$enable_shared = xyes; then
34233 ENABLE_SHARED_TRUE=
34234 ENABLE_SHARED_FALSE="#"
34235 else
34236 ENABLE_SHARED_TRUE="#"
34237 ENABLE_SHARED_FALSE=
34239 if test x$enable_static = xyes; then
34240 ENABLE_STATIC_TRUE=
34241 ENABLE_STATIC_FALSE="#"
34242 else
34243 ENABLE_STATIC_TRUE="#"
34244 ENABLE_STATIC_FALSE=
34263 ac_config_files="$ac_config_files Makefile sdl-config SDL.spec SDL.qpg sdl.pc"
34265 ac_config_commands="$ac_config_commands default"
34267 cat >confcache <<\_ACEOF
34268 # This file is a shell script that caches the results of configure
34269 # tests run on this system so they can be shared between configure
34270 # scripts and configure runs, see configure's option --config-cache.
34271 # It is not useful on other systems. If it contains results you don't
34272 # want to keep, you may remove or edit it.
34274 # config.status only pays attention to the cache file if you give it
34275 # the --recheck option to rerun configure.
34277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34279 # following values.
34281 _ACEOF
34283 # The following way of writing the cache mishandles newlines in values,
34284 # but we know of no workaround that is simple, portable, and efficient.
34285 # So, we kill variables containing newlines.
34286 # Ultrix sh set writes to stderr and can't be redirected directly,
34287 # and sets the high bit in the cache file unless we assign to the vars.
34289 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34290 eval ac_val=\$$ac_var
34291 case $ac_val in #(
34292 *${as_nl}*)
34293 case $ac_var in #(
34294 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34295 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34296 esac
34297 case $ac_var in #(
34298 _ | IFS | as_nl) ;; #(
34299 *) $as_unset $ac_var ;;
34300 esac ;;
34301 esac
34302 done
34304 (set) 2>&1 |
34305 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34306 *${as_nl}ac_space=\ *)
34307 # `set' does not quote correctly, so add quotes (double-quote
34308 # substitution turns \\\\ into \\, and sed turns \\ into \).
34309 sed -n \
34310 "s/'/'\\\\''/g;
34311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34312 ;; #(
34314 # `set' quotes correctly as required by POSIX, so do not add quotes.
34315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34317 esac |
34318 sort
34320 sed '
34321 /^ac_cv_env_/b end
34322 t clear
34323 :clear
34324 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34325 t end
34326 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34327 :end' >>confcache
34328 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34329 if test -w "$cache_file"; then
34330 test "x$cache_file" != "x/dev/null" &&
34331 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34332 echo "$as_me: updating cache $cache_file" >&6;}
34333 cat confcache >$cache_file
34334 else
34335 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34336 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34339 rm -f confcache
34341 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34342 # Let make expand exec_prefix.
34343 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34345 DEFS=-DHAVE_CONFIG_H
34347 ac_libobjs=
34348 ac_ltlibobjs=
34349 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34350 # 1. Remove the extension, and $U if already installed.
34351 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34352 ac_i=`echo "$ac_i" | sed "$ac_script"`
34353 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34354 # will be set to the directory where LIBOBJS objects are built.
34355 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34356 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34357 done
34358 LIBOBJS=$ac_libobjs
34360 LTLIBOBJS=$ac_ltlibobjs
34364 : ${CONFIG_STATUS=./config.status}
34365 ac_clean_files_save=$ac_clean_files
34366 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34367 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34368 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34369 cat >$CONFIG_STATUS <<_ACEOF
34370 #! $SHELL
34371 # Generated by $as_me.
34372 # Run this file to recreate the current configuration.
34373 # Compiler output produced by configure, useful for debugging
34374 # configure, is in config.log if it exists.
34376 debug=false
34377 ac_cs_recheck=false
34378 ac_cs_silent=false
34379 SHELL=\${CONFIG_SHELL-$SHELL}
34380 _ACEOF
34382 cat >>$CONFIG_STATUS <<\_ACEOF
34383 ## --------------------- ##
34384 ## M4sh Initialization. ##
34385 ## --------------------- ##
34387 # Be more Bourne compatible
34388 DUALCASE=1; export DUALCASE # for MKS sh
34389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34390 emulate sh
34391 NULLCMD=:
34392 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34393 # is contrary to our usage. Disable this feature.
34394 alias -g '${1+"$@"}'='"$@"'
34395 setopt NO_GLOB_SUBST
34396 else
34397 case `(set -o) 2>/dev/null` in
34398 *posix*) set -o posix ;;
34399 esac
34406 # PATH needs CR
34407 # Avoid depending upon Character Ranges.
34408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34411 as_cr_digits='0123456789'
34412 as_cr_alnum=$as_cr_Letters$as_cr_digits
34414 # The user is always right.
34415 if test "${PATH_SEPARATOR+set}" != set; then
34416 echo "#! /bin/sh" >conf$$.sh
34417 echo "exit 0" >>conf$$.sh
34418 chmod +x conf$$.sh
34419 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34420 PATH_SEPARATOR=';'
34421 else
34422 PATH_SEPARATOR=:
34424 rm -f conf$$.sh
34427 # Support unset when possible.
34428 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34429 as_unset=unset
34430 else
34431 as_unset=false
34435 # IFS
34436 # We need space, tab and new line, in precisely that order. Quoting is
34437 # there to prevent editors from complaining about space-tab.
34438 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34439 # splitting by setting IFS to empty value.)
34440 as_nl='
34442 IFS=" "" $as_nl"
34444 # Find who we are. Look in the path if we contain no directory separator.
34445 case $0 in
34446 *[\\/]* ) as_myself=$0 ;;
34447 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34448 for as_dir in $PATH
34450 IFS=$as_save_IFS
34451 test -z "$as_dir" && as_dir=.
34452 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34453 done
34454 IFS=$as_save_IFS
34457 esac
34458 # We did not find ourselves, most probably we were run as `sh COMMAND'
34459 # in which case we are not to be found in the path.
34460 if test "x$as_myself" = x; then
34461 as_myself=$0
34463 if test ! -f "$as_myself"; then
34464 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34465 { (exit 1); exit 1; }
34468 # Work around bugs in pre-3.0 UWIN ksh.
34469 for as_var in ENV MAIL MAILPATH
34470 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34471 done
34472 PS1='$ '
34473 PS2='> '
34474 PS4='+ '
34476 # NLS nuisances.
34477 for as_var in \
34478 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34479 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34480 LC_TELEPHONE LC_TIME
34482 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34483 eval $as_var=C; export $as_var
34484 else
34485 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34487 done
34489 # Required to use basename.
34490 if expr a : '\(a\)' >/dev/null 2>&1 &&
34491 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34492 as_expr=expr
34493 else
34494 as_expr=false
34497 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34498 as_basename=basename
34499 else
34500 as_basename=false
34504 # Name of the executable.
34505 as_me=`$as_basename -- "$0" ||
34506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34507 X"$0" : 'X\(//\)$' \| \
34508 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34509 echo X/"$0" |
34510 sed '/^.*\/\([^/][^/]*\)\/*$/{
34511 s//\1/
34514 /^X\/\(\/\/\)$/{
34515 s//\1/
34518 /^X\/\(\/\).*/{
34519 s//\1/
34522 s/.*/./; q'`
34524 # CDPATH.
34525 $as_unset CDPATH
34529 as_lineno_1=$LINENO
34530 as_lineno_2=$LINENO
34531 test "x$as_lineno_1" != "x$as_lineno_2" &&
34532 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34534 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34535 # uniformly replaced by the line number. The first 'sed' inserts a
34536 # line-number line after each line using $LINENO; the second 'sed'
34537 # does the real work. The second script uses 'N' to pair each
34538 # line-number line with the line containing $LINENO, and appends
34539 # trailing '-' during substitution so that $LINENO is not a special
34540 # case at line end.
34541 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34542 # scripts with optimization help from Paolo Bonzini. Blame Lee
34543 # E. McMahon (1931-1989) for sed's syntax. :-)
34544 sed -n '
34546 /[$]LINENO/=
34547 ' <$as_myself |
34548 sed '
34549 s/[$]LINENO.*/&-/
34550 t lineno
34552 :lineno
34554 :loop
34555 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34556 t loop
34557 s/-\n.*//
34558 ' >$as_me.lineno &&
34559 chmod +x "$as_me.lineno" ||
34560 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34561 { (exit 1); exit 1; }; }
34563 # Don't try to exec as it changes $[0], causing all sort of problems
34564 # (the dirname of $[0] is not the place where we might find the
34565 # original and so on. Autoconf is especially sensitive to this).
34566 . "./$as_me.lineno"
34567 # Exit status is that of the last command.
34568 exit
34572 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34573 as_dirname=dirname
34574 else
34575 as_dirname=false
34578 ECHO_C= ECHO_N= ECHO_T=
34579 case `echo -n x` in
34580 -n*)
34581 case `echo 'x\c'` in
34582 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34583 *) ECHO_C='\c';;
34584 esac;;
34586 ECHO_N='-n';;
34587 esac
34589 if expr a : '\(a\)' >/dev/null 2>&1 &&
34590 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34591 as_expr=expr
34592 else
34593 as_expr=false
34596 rm -f conf$$ conf$$.exe conf$$.file
34597 if test -d conf$$.dir; then
34598 rm -f conf$$.dir/conf$$.file
34599 else
34600 rm -f conf$$.dir
34601 mkdir conf$$.dir
34603 echo >conf$$.file
34604 if ln -s conf$$.file conf$$ 2>/dev/null; then
34605 as_ln_s='ln -s'
34606 # ... but there are two gotchas:
34607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34609 # In both cases, we have to default to `cp -p'.
34610 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34611 as_ln_s='cp -p'
34612 elif ln conf$$.file conf$$ 2>/dev/null; then
34613 as_ln_s=ln
34614 else
34615 as_ln_s='cp -p'
34617 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34618 rmdir conf$$.dir 2>/dev/null
34620 if mkdir -p . 2>/dev/null; then
34621 as_mkdir_p=:
34622 else
34623 test -d ./-p && rmdir ./-p
34624 as_mkdir_p=false
34627 if test -x / >/dev/null 2>&1; then
34628 as_test_x='test -x'
34629 else
34630 if ls -dL / >/dev/null 2>&1; then
34631 as_ls_L_option=L
34632 else
34633 as_ls_L_option=
34635 as_test_x='
34636 eval sh -c '\''
34637 if test -d "$1"; then
34638 test -d "$1/.";
34639 else
34640 case $1 in
34641 -*)set "./$1";;
34642 esac;
34643 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
34644 ???[sx]*):;;*)false;;esac;fi
34645 '\'' sh
34648 as_executable_p=$as_test_x
34650 # Sed expression to map a string onto a valid CPP name.
34651 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34653 # Sed expression to map a string onto a valid variable name.
34654 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34657 exec 6>&1
34659 # Save the log message, to keep $[0] and so on meaningful, and to
34660 # report actual input values of CONFIG_FILES etc. instead of their
34661 # values after options handling.
34662 ac_log="
34663 This file was extended by $as_me, which was
34664 generated by GNU Autoconf 2.61. Invocation command line was
34666 CONFIG_FILES = $CONFIG_FILES
34667 CONFIG_HEADERS = $CONFIG_HEADERS
34668 CONFIG_LINKS = $CONFIG_LINKS
34669 CONFIG_COMMANDS = $CONFIG_COMMANDS
34670 $ $0 $@
34672 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34675 _ACEOF
34677 cat >>$CONFIG_STATUS <<_ACEOF
34678 # Files that config.status was made for.
34679 config_files="$ac_config_files"
34680 config_headers="$ac_config_headers"
34681 config_commands="$ac_config_commands"
34683 _ACEOF
34685 cat >>$CONFIG_STATUS <<\_ACEOF
34686 ac_cs_usage="\
34687 \`$as_me' instantiates files from templates according to the
34688 current configuration.
34690 Usage: $0 [OPTIONS] [FILE]...
34692 -h, --help print this help, then exit
34693 -V, --version print version number and configuration settings, then exit
34694 -q, --quiet do not print progress messages
34695 -d, --debug don't remove temporary files
34696 --recheck update $as_me by reconfiguring in the same conditions
34697 --file=FILE[:TEMPLATE]
34698 instantiate the configuration file FILE
34699 --header=FILE[:TEMPLATE]
34700 instantiate the configuration header FILE
34702 Configuration files:
34703 $config_files
34705 Configuration headers:
34706 $config_headers
34708 Configuration commands:
34709 $config_commands
34711 Report bugs to <bug-autoconf@gnu.org>."
34713 _ACEOF
34714 cat >>$CONFIG_STATUS <<_ACEOF
34715 ac_cs_version="\\
34716 config.status
34717 configured by $0, generated by GNU Autoconf 2.61,
34718 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34720 Copyright (C) 2006 Free Software Foundation, Inc.
34721 This config.status script is free software; the Free Software Foundation
34722 gives unlimited permission to copy, distribute and modify it."
34724 ac_pwd='$ac_pwd'
34725 srcdir='$srcdir'
34726 INSTALL='$INSTALL'
34727 _ACEOF
34729 cat >>$CONFIG_STATUS <<\_ACEOF
34730 # If no file are specified by the user, then we need to provide default
34731 # value. By we need to know if files were specified by the user.
34732 ac_need_defaults=:
34733 while test $# != 0
34735 case $1 in
34736 --*=*)
34737 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34738 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34739 ac_shift=:
34742 ac_option=$1
34743 ac_optarg=$2
34744 ac_shift=shift
34746 esac
34748 case $ac_option in
34749 # Handling of the options.
34750 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34751 ac_cs_recheck=: ;;
34752 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34753 echo "$ac_cs_version"; exit ;;
34754 --debug | --debu | --deb | --de | --d | -d )
34755 debug=: ;;
34756 --file | --fil | --fi | --f )
34757 $ac_shift
34758 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34759 ac_need_defaults=false;;
34760 --header | --heade | --head | --hea )
34761 $ac_shift
34762 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34763 ac_need_defaults=false;;
34764 --he | --h)
34765 # Conflict between --help and --header
34766 { echo "$as_me: error: ambiguous option: $1
34767 Try \`$0 --help' for more information." >&2
34768 { (exit 1); exit 1; }; };;
34769 --help | --hel | -h )
34770 echo "$ac_cs_usage"; exit ;;
34771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34772 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34773 ac_cs_silent=: ;;
34775 # This is an error.
34776 -*) { echo "$as_me: error: unrecognized option: $1
34777 Try \`$0 --help' for more information." >&2
34778 { (exit 1); exit 1; }; } ;;
34780 *) ac_config_targets="$ac_config_targets $1"
34781 ac_need_defaults=false ;;
34783 esac
34784 shift
34785 done
34787 ac_configure_extra_args=
34789 if $ac_cs_silent; then
34790 exec 6>/dev/null
34791 ac_configure_extra_args="$ac_configure_extra_args --silent"
34794 _ACEOF
34795 cat >>$CONFIG_STATUS <<_ACEOF
34796 if \$ac_cs_recheck; then
34797 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34798 CONFIG_SHELL=$SHELL
34799 export CONFIG_SHELL
34800 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34803 _ACEOF
34804 cat >>$CONFIG_STATUS <<\_ACEOF
34805 exec 5>>config.log
34807 echo
34808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34809 ## Running $as_me. ##
34810 _ASBOX
34811 echo "$ac_log"
34812 } >&5
34814 _ACEOF
34815 cat >>$CONFIG_STATUS <<_ACEOF
34816 _ACEOF
34818 cat >>$CONFIG_STATUS <<\_ACEOF
34820 # Handling of arguments.
34821 for ac_config_target in $ac_config_targets
34823 case $ac_config_target in
34824 "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
34825 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34826 "sdl-config") CONFIG_FILES="$CONFIG_FILES sdl-config" ;;
34827 "SDL.spec") CONFIG_FILES="$CONFIG_FILES SDL.spec" ;;
34828 "SDL.qpg") CONFIG_FILES="$CONFIG_FILES SDL.qpg" ;;
34829 "sdl.pc") CONFIG_FILES="$CONFIG_FILES sdl.pc" ;;
34830 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34832 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34833 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34834 { (exit 1); exit 1; }; };;
34835 esac
34836 done
34839 # If the user did not use the arguments to specify the items to instantiate,
34840 # then the envvar interface is used. Set only those that are not.
34841 # We use the long form for the default assignment because of an extremely
34842 # bizarre bug on SunOS 4.1.3.
34843 if $ac_need_defaults; then
34844 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34845 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34846 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34849 # Have a temporary directory for convenience. Make it in the build tree
34850 # simply because there is no reason against having it here, and in addition,
34851 # creating and moving files from /tmp can sometimes cause problems.
34852 # Hook for its removal unless debugging.
34853 # Note that there is a small window in which the directory will not be cleaned:
34854 # after its creation but before its name has been assigned to `$tmp'.
34855 $debug ||
34857 tmp=
34858 trap 'exit_status=$?
34859 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34861 trap '{ (exit 1); exit 1; }' 1 2 13 15
34863 # Create a (secure) tmp directory for tmp files.
34866 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34867 test -n "$tmp" && test -d "$tmp"
34868 } ||
34870 tmp=./conf$$-$RANDOM
34871 (umask 077 && mkdir "$tmp")
34872 } ||
34874 echo "$me: cannot create a temporary directory in ." >&2
34875 { (exit 1); exit 1; }
34879 # Set up the sed scripts for CONFIG_FILES section.
34882 # No need to generate the scripts if there are no CONFIG_FILES.
34883 # This happens for instance when ./config.status config.h
34884 if test -n "$CONFIG_FILES"; then
34886 _ACEOF
34890 ac_delim='%!_!# '
34891 for ac_last_try in false false false false false :; do
34892 cat >conf$$subs.sed <<_ACEOF
34893 SHELL!$SHELL$ac_delim
34894 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34895 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34896 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34897 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34898 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34899 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34900 exec_prefix!$exec_prefix$ac_delim
34901 prefix!$prefix$ac_delim
34902 program_transform_name!$program_transform_name$ac_delim
34903 bindir!$bindir$ac_delim
34904 sbindir!$sbindir$ac_delim
34905 libexecdir!$libexecdir$ac_delim
34906 datarootdir!$datarootdir$ac_delim
34907 datadir!$datadir$ac_delim
34908 sysconfdir!$sysconfdir$ac_delim
34909 sharedstatedir!$sharedstatedir$ac_delim
34910 localstatedir!$localstatedir$ac_delim
34911 includedir!$includedir$ac_delim
34912 oldincludedir!$oldincludedir$ac_delim
34913 docdir!$docdir$ac_delim
34914 infodir!$infodir$ac_delim
34915 htmldir!$htmldir$ac_delim
34916 dvidir!$dvidir$ac_delim
34917 pdfdir!$pdfdir$ac_delim
34918 psdir!$psdir$ac_delim
34919 libdir!$libdir$ac_delim
34920 localedir!$localedir$ac_delim
34921 mandir!$mandir$ac_delim
34922 DEFS!$DEFS$ac_delim
34923 ECHO_C!$ECHO_C$ac_delim
34924 ECHO_N!$ECHO_N$ac_delim
34925 ECHO_T!$ECHO_T$ac_delim
34926 LIBS!$LIBS$ac_delim
34927 build_alias!$build_alias$ac_delim
34928 host_alias!$host_alias$ac_delim
34929 target_alias!$target_alias$ac_delim
34930 SDL_MAJOR_VERSION!$SDL_MAJOR_VERSION$ac_delim
34931 SDL_MINOR_VERSION!$SDL_MINOR_VERSION$ac_delim
34932 SDL_MICRO_VERSION!$SDL_MICRO_VERSION$ac_delim
34933 SDL_INTERFACE_AGE!$SDL_INTERFACE_AGE$ac_delim
34934 SDL_BINARY_AGE!$SDL_BINARY_AGE$ac_delim
34935 SDL_VERSION!$SDL_VERSION$ac_delim
34936 LT_RELEASE!$LT_RELEASE$ac_delim
34937 LT_CURRENT!$LT_CURRENT$ac_delim
34938 LT_REVISION!$LT_REVISION$ac_delim
34939 LT_AGE!$LT_AGE$ac_delim
34940 build!$build$ac_delim
34941 build_cpu!$build_cpu$ac_delim
34942 build_vendor!$build_vendor$ac_delim
34943 build_os!$build_os$ac_delim
34944 host!$host$ac_delim
34945 host_cpu!$host_cpu$ac_delim
34946 host_vendor!$host_vendor$ac_delim
34947 host_os!$host_os$ac_delim
34948 CC!$CC$ac_delim
34949 CFLAGS!$CFLAGS$ac_delim
34950 LDFLAGS!$LDFLAGS$ac_delim
34951 CPPFLAGS!$CPPFLAGS$ac_delim
34952 ac_ct_CC!$ac_ct_CC$ac_delim
34953 EXEEXT!$EXEEXT$ac_delim
34954 OBJEXT!$OBJEXT$ac_delim
34955 CPP!$CPP$ac_delim
34956 GREP!$GREP$ac_delim
34957 EGREP!$EGREP$ac_delim
34958 LN_S!$LN_S$ac_delim
34959 ECHO!$ECHO$ac_delim
34960 AR!$AR$ac_delim
34961 RANLIB!$RANLIB$ac_delim
34962 STRIP!$STRIP$ac_delim
34963 DLLTOOL!$DLLTOOL$ac_delim
34964 AS!$AS$ac_delim
34965 OBJDUMP!$OBJDUMP$ac_delim
34966 CXX!$CXX$ac_delim
34967 CXXFLAGS!$CXXFLAGS$ac_delim
34968 ac_ct_CXX!$ac_ct_CXX$ac_delim
34969 CXXCPP!$CXXCPP$ac_delim
34970 F77!$F77$ac_delim
34971 FFLAGS!$FFLAGS$ac_delim
34972 ac_ct_F77!$ac_ct_F77$ac_delim
34973 LIBTOOL!$LIBTOOL$ac_delim
34974 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34975 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34976 INSTALL_DATA!$INSTALL_DATA$ac_delim
34977 SET_MAKE!$SET_MAKE$ac_delim
34978 WINDRES!$WINDRES$ac_delim
34979 ALLOCA!$ALLOCA$ac_delim
34980 LIBOBJS!$LIBOBJS$ac_delim
34981 POW_LIB!$POW_LIB$ac_delim
34982 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
34983 ALSA_LIBS!$ALSA_LIBS$ac_delim
34984 ESD_CONFIG!$ESD_CONFIG$ac_delim
34985 ESD_CFLAGS!$ESD_CFLAGS$ac_delim
34986 ESD_LIBS!$ESD_LIBS$ac_delim
34987 PKG_CONFIG!$PKG_CONFIG$ac_delim
34988 ARTSCONFIG!$ARTSCONFIG$ac_delim
34989 NASM!$NASM$ac_delim
34990 _ACEOF
34992 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34993 break
34994 elif $ac_last_try; then
34995 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34996 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34997 { (exit 1); exit 1; }; }
34998 else
34999 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35001 done
35003 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35004 if test -n "$ac_eof"; then
35005 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35006 ac_eof=`expr $ac_eof + 1`
35009 cat >>$CONFIG_STATUS <<_ACEOF
35010 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35011 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35012 _ACEOF
35013 sed '
35014 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35015 s/^/s,@/; s/!/@,|#_!!_#|/
35018 s/'"$ac_delim"'$/,g/; t
35019 s/$/\\/; p
35020 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35021 ' >>$CONFIG_STATUS <conf$$subs.sed
35022 rm -f conf$$subs.sed
35023 cat >>$CONFIG_STATUS <<_ACEOF
35024 CEOF$ac_eof
35025 _ACEOF
35028 ac_delim='%!_!# '
35029 for ac_last_try in false false false false false :; do
35030 cat >conf$$subs.sed <<_ACEOF
35031 NASMFLAGS!$NASMFLAGS$ac_delim
35032 XMKMF!$XMKMF$ac_delim
35033 X_CFLAGS!$X_CFLAGS$ac_delim
35034 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35035 X_LIBS!$X_LIBS$ac_delim
35036 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35037 DIRECTFBCONFIG!$DIRECTFBCONFIG$ac_delim
35038 OSMESA_CONFIG!$OSMESA_CONFIG$ac_delim
35039 PTH_CONFIG!$PTH_CONFIG$ac_delim
35040 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
35041 SDL_LIBS!$SDL_LIBS$ac_delim
35042 SDL_STATIC_LIBS!$SDL_STATIC_LIBS$ac_delim
35043 SDL_RLD_FLAGS!$SDL_RLD_FLAGS$ac_delim
35044 ENABLE_SHARED_TRUE!$ENABLE_SHARED_TRUE$ac_delim
35045 ENABLE_SHARED_FALSE!$ENABLE_SHARED_FALSE$ac_delim
35046 ENABLE_STATIC_TRUE!$ENABLE_STATIC_TRUE$ac_delim
35047 ENABLE_STATIC_FALSE!$ENABLE_STATIC_FALSE$ac_delim
35048 ac_aux_dir!$ac_aux_dir$ac_delim
35049 INCLUDE!$INCLUDE$ac_delim
35050 SOURCES!$SOURCES$ac_delim
35051 OBJECTS!$OBJECTS$ac_delim
35052 SDLMAIN_SOURCES!$SDLMAIN_SOURCES$ac_delim
35053 SDLMAIN_OBJECTS!$SDLMAIN_OBJECTS$ac_delim
35054 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
35055 EXTRA_CFLAGS!$EXTRA_CFLAGS$ac_delim
35056 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
35057 EXTRA_LDFLAGS!$EXTRA_LDFLAGS$ac_delim
35058 LTLIBOBJS!$LTLIBOBJS$ac_delim
35059 _ACEOF
35061 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
35062 break
35063 elif $ac_last_try; then
35064 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35065 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35066 { (exit 1); exit 1; }; }
35067 else
35068 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35070 done
35072 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35073 if test -n "$ac_eof"; then
35074 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35075 ac_eof=`expr $ac_eof + 1`
35078 cat >>$CONFIG_STATUS <<_ACEOF
35079 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35081 _ACEOF
35082 sed '
35083 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35084 s/^/s,@/; s/!/@,|#_!!_#|/
35087 s/'"$ac_delim"'$/,g/; t
35088 s/$/\\/; p
35089 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35090 ' >>$CONFIG_STATUS <conf$$subs.sed
35091 rm -f conf$$subs.sed
35092 cat >>$CONFIG_STATUS <<_ACEOF
35093 :end
35094 s/|#_!!_#|//g
35095 CEOF$ac_eof
35096 _ACEOF
35099 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35100 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35101 # trailing colons and then remove the whole line if VPATH becomes empty
35102 # (actually we leave an empty line to preserve line numbers).
35103 if test "x$srcdir" = x.; then
35104 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35105 s/:*\$(srcdir):*/:/
35106 s/:*\${srcdir}:*/:/
35107 s/:*@srcdir@:*/:/
35108 s/^\([^=]*=[ ]*\):*/\1/
35109 s/:*$//
35110 s/^[^=]*=[ ]*$//
35114 cat >>$CONFIG_STATUS <<\_ACEOF
35115 fi # test -n "$CONFIG_FILES"
35118 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35120 case $ac_tag in
35121 :[FHLC]) ac_mode=$ac_tag; continue;;
35122 esac
35123 case $ac_mode$ac_tag in
35124 :[FHL]*:*);;
35125 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35126 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35127 { (exit 1); exit 1; }; };;
35128 :[FH]-) ac_tag=-:-;;
35129 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35130 esac
35131 ac_save_IFS=$IFS
35132 IFS=:
35133 set x $ac_tag
35134 IFS=$ac_save_IFS
35135 shift
35136 ac_file=$1
35137 shift
35139 case $ac_mode in
35140 :L) ac_source=$1;;
35141 :[FH])
35142 ac_file_inputs=
35143 for ac_f
35145 case $ac_f in
35146 -) ac_f="$tmp/stdin";;
35147 *) # Look for the file first in the build tree, then in the source tree
35148 # (if the path is not absolute). The absolute path cannot be DOS-style,
35149 # because $ac_f cannot contain `:'.
35150 test -f "$ac_f" ||
35151 case $ac_f in
35152 [\\/$]*) false;;
35153 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35154 esac ||
35155 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35156 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35157 { (exit 1); exit 1; }; };;
35158 esac
35159 ac_file_inputs="$ac_file_inputs $ac_f"
35160 done
35162 # Let's still pretend it is `configure' which instantiates (i.e., don't
35163 # use $as_me), people would be surprised to read:
35164 # /* config.h. Generated by config.status. */
35165 configure_input="Generated from "`IFS=:
35166 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35167 if test x"$ac_file" != x-; then
35168 configure_input="$ac_file. $configure_input"
35169 { echo "$as_me:$LINENO: creating $ac_file" >&5
35170 echo "$as_me: creating $ac_file" >&6;}
35173 case $ac_tag in
35174 *:-:* | *:-) cat >"$tmp/stdin";;
35175 esac
35177 esac
35179 ac_dir=`$as_dirname -- "$ac_file" ||
35180 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35181 X"$ac_file" : 'X\(//\)[^/]' \| \
35182 X"$ac_file" : 'X\(//\)$' \| \
35183 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35184 echo X"$ac_file" |
35185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35186 s//\1/
35189 /^X\(\/\/\)[^/].*/{
35190 s//\1/
35193 /^X\(\/\/\)$/{
35194 s//\1/
35197 /^X\(\/\).*/{
35198 s//\1/
35201 s/.*/./; q'`
35202 { as_dir="$ac_dir"
35203 case $as_dir in #(
35204 -*) as_dir=./$as_dir;;
35205 esac
35206 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35207 as_dirs=
35208 while :; do
35209 case $as_dir in #(
35210 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35211 *) as_qdir=$as_dir;;
35212 esac
35213 as_dirs="'$as_qdir' $as_dirs"
35214 as_dir=`$as_dirname -- "$as_dir" ||
35215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35216 X"$as_dir" : 'X\(//\)[^/]' \| \
35217 X"$as_dir" : 'X\(//\)$' \| \
35218 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35219 echo X"$as_dir" |
35220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35221 s//\1/
35224 /^X\(\/\/\)[^/].*/{
35225 s//\1/
35228 /^X\(\/\/\)$/{
35229 s//\1/
35232 /^X\(\/\).*/{
35233 s//\1/
35236 s/.*/./; q'`
35237 test -d "$as_dir" && break
35238 done
35239 test -z "$as_dirs" || eval "mkdir $as_dirs"
35240 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35241 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35242 { (exit 1); exit 1; }; }; }
35243 ac_builddir=.
35245 case "$ac_dir" in
35246 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35248 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35249 # A ".." for each directory in $ac_dir_suffix.
35250 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35251 case $ac_top_builddir_sub in
35252 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35253 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35254 esac ;;
35255 esac
35256 ac_abs_top_builddir=$ac_pwd
35257 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35258 # for backward compatibility:
35259 ac_top_builddir=$ac_top_build_prefix
35261 case $srcdir in
35262 .) # We are building in place.
35263 ac_srcdir=.
35264 ac_top_srcdir=$ac_top_builddir_sub
35265 ac_abs_top_srcdir=$ac_pwd ;;
35266 [\\/]* | ?:[\\/]* ) # Absolute name.
35267 ac_srcdir=$srcdir$ac_dir_suffix;
35268 ac_top_srcdir=$srcdir
35269 ac_abs_top_srcdir=$srcdir ;;
35270 *) # Relative name.
35271 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35272 ac_top_srcdir=$ac_top_build_prefix$srcdir
35273 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35274 esac
35275 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35278 case $ac_mode in
35281 # CONFIG_FILE
35284 case $INSTALL in
35285 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35286 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35287 esac
35288 _ACEOF
35290 cat >>$CONFIG_STATUS <<\_ACEOF
35291 # If the template does not know about datarootdir, expand it.
35292 # FIXME: This hack should be removed a few years after 2.60.
35293 ac_datarootdir_hack=; ac_datarootdir_seen=
35295 case `sed -n '/datarootdir/ {
35299 /@datadir@/p
35300 /@docdir@/p
35301 /@infodir@/p
35302 /@localedir@/p
35303 /@mandir@/p
35304 ' $ac_file_inputs` in
35305 *datarootdir*) ac_datarootdir_seen=yes;;
35306 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35307 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35308 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35309 _ACEOF
35310 cat >>$CONFIG_STATUS <<_ACEOF
35311 ac_datarootdir_hack='
35312 s&@datadir@&$datadir&g
35313 s&@docdir@&$docdir&g
35314 s&@infodir@&$infodir&g
35315 s&@localedir@&$localedir&g
35316 s&@mandir@&$mandir&g
35317 s&\\\${datarootdir}&$datarootdir&g' ;;
35318 esac
35319 _ACEOF
35321 # Neutralize VPATH when `$srcdir' = `.'.
35322 # Shell code in configure.ac might set extrasub.
35323 # FIXME: do we really want to maintain this feature?
35324 cat >>$CONFIG_STATUS <<_ACEOF
35325 sed "$ac_vpsub
35326 $extrasub
35327 _ACEOF
35328 cat >>$CONFIG_STATUS <<\_ACEOF
35330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35331 s&@configure_input@&$configure_input&;t t
35332 s&@top_builddir@&$ac_top_builddir_sub&;t t
35333 s&@srcdir@&$ac_srcdir&;t t
35334 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35335 s&@top_srcdir@&$ac_top_srcdir&;t t
35336 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35337 s&@builddir@&$ac_builddir&;t t
35338 s&@abs_builddir@&$ac_abs_builddir&;t t
35339 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35340 s&@INSTALL@&$ac_INSTALL&;t t
35341 $ac_datarootdir_hack
35342 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35344 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35345 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35346 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35347 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35348 which seems to be undefined. Please make sure it is defined." >&5
35349 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35350 which seems to be undefined. Please make sure it is defined." >&2;}
35352 rm -f "$tmp/stdin"
35353 case $ac_file in
35354 -) cat "$tmp/out"; rm -f "$tmp/out";;
35355 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35356 esac
35360 # CONFIG_HEADER
35362 _ACEOF
35364 # Transform confdefs.h into a sed script `conftest.defines', that
35365 # substitutes the proper values into config.h.in to produce config.h.
35366 rm -f conftest.defines conftest.tail
35367 # First, append a space to every undef/define line, to ease matching.
35368 echo 's/$/ /' >conftest.defines
35369 # Then, protect against being on the right side of a sed subst, or in
35370 # an unquoted here document, in config.status. If some macros were
35371 # called several times there might be several #defines for the same
35372 # symbol, which is useless. But do not sort them, since the last
35373 # AC_DEFINE must be honored.
35374 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35375 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35376 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35377 # PARAMS is the parameter list in the macro definition--in most cases, it's
35378 # just an empty string.
35379 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35380 ac_dB='\\)[ (].*,\\1define\\2'
35381 ac_dC=' '
35382 ac_dD=' ,'
35384 uniq confdefs.h |
35385 sed -n '
35386 t rset
35387 :rset
35388 s/^[ ]*#[ ]*define[ ][ ]*//
35389 t ok
35392 s/[\\&,]/\\&/g
35393 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35394 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35395 ' >>conftest.defines
35397 # Remove the space that was appended to ease matching.
35398 # Then replace #undef with comments. This is necessary, for
35399 # example, in the case of _POSIX_SOURCE, which is predefined and required
35400 # on some systems where configure will not decide to define it.
35401 # (The regexp can be short, since the line contains either #define or #undef.)
35402 echo 's/ $//
35403 s,^[ #]*u.*,/* & */,' >>conftest.defines
35405 # Break up conftest.defines:
35406 ac_max_sed_lines=50
35408 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35409 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35410 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35411 # et cetera.
35412 ac_in='$ac_file_inputs'
35413 ac_out='"$tmp/out1"'
35414 ac_nxt='"$tmp/out2"'
35416 while :
35418 # Write a here document:
35419 cat >>$CONFIG_STATUS <<_ACEOF
35420 # First, check the format of the line:
35421 cat >"\$tmp/defines.sed" <<\\CEOF
35422 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35423 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35425 :def
35426 _ACEOF
35427 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35428 echo 'CEOF
35429 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35430 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35431 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35432 grep . conftest.tail >/dev/null || break
35433 rm -f conftest.defines
35434 mv conftest.tail conftest.defines
35435 done
35436 rm -f conftest.defines conftest.tail
35438 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35439 cat >>$CONFIG_STATUS <<\_ACEOF
35440 if test x"$ac_file" != x-; then
35441 echo "/* $configure_input */" >"$tmp/config.h"
35442 cat "$ac_result" >>"$tmp/config.h"
35443 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35444 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35445 echo "$as_me: $ac_file is unchanged" >&6;}
35446 else
35447 rm -f $ac_file
35448 mv "$tmp/config.h" $ac_file
35450 else
35451 echo "/* $configure_input */"
35452 cat "$ac_result"
35454 rm -f "$tmp/out12"
35457 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35458 echo "$as_me: executing $ac_file commands" >&6;}
35460 esac
35463 case $ac_file$ac_mode in
35464 "default":C)
35465 : >build-deps
35466 if test x"$MAKE" = x; then MAKE=make; fi; $MAKE depend
35469 esac
35470 done # for ac_tag
35473 { (exit 0); exit 0; }
35474 _ACEOF
35475 chmod +x $CONFIG_STATUS
35476 ac_clean_files=$ac_clean_files_save
35479 # configure is writing to config.log, and then calls config.status.
35480 # config.status does its own redirection, appending to config.log.
35481 # Unfortunately, on DOS this fails, as config.log is still kept open
35482 # by configure, so config.status won't be able to write to it; its
35483 # output is simply discarded. So we exec the FD to /dev/null,
35484 # effectively closing config.log, so it can be properly (re)opened and
35485 # appended to by config.status. When coming back to configure, we
35486 # need to make the FD available again.
35487 if test "$no_create" != yes; then
35488 ac_cs_success=:
35489 ac_config_status_args=
35490 test "$silent" = yes &&
35491 ac_config_status_args="$ac_config_status_args --quiet"
35492 exec 5>/dev/null
35493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35494 exec 5>>config.log
35495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35496 # would make configure fail if this is the last instruction.
35497 $ac_cs_success || { (exit 1); exit 1; }