2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
595 ac_unique_file="README.txt"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='LTLIBOBJS
753 program_transform_name
766 enable_option_checking
775 enable_dependency_tracking
811 enable_pulseaudio_shared
821 enable_video_wayland_qt_touch
822 enable_wayland_shared
829 enable_video_x11_xcursor
830 enable_video_x11_xdbe
831 enable_video_x11_xinerama
832 enable_video_x11_xinput
833 enable_video_x11_xrandr
834 enable_video_x11_scrnsaver
835 enable_video_x11_xshape
839 enable_video_directfb
840 enable_directfb_shared
842 enable_fusionsound_shared
845 enable_video_opengles
846 enable_video_opengles1
847 enable_video_opengles2
861 ac_precious_vars='build_alias
877 # Initialize some variables set by options.
879 ac_init_version=false
880 ac_unrecognized_opts=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
891 program_transform_name=s,x,x,
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE}'
916 infodir='${datarootdir}/info'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
931 eval $ac_prev=\$ac_option
937 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 # Accept the important Cygnus configure options, so we can diagnose typos.
944 case $ac_dashdash$ac_option in
948 -bindir | --bindir | --bindi | --bind | --bin | --bi)
950 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953 -build | --build | --buil | --bui | --bu)
954 ac_prev=build_alias ;;
955 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956 build_alias=$ac_optarg ;;
958 -cache-file | --cache-file | --cache-fil | --cache-fi \
959 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960 ac_prev=cache_file ;;
961 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963 cache_file=$ac_optarg ;;
966 cache_file=config.cache ;;
968 -datadir | --datadir | --datadi | --datad)
970 -datadir=* | --datadir=* | --datadi=* | --datad=*)
971 datadir=$ac_optarg ;;
973 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974 | --dataroo | --dataro | --datar)
975 ac_prev=datarootdir ;;
976 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978 datarootdir=$ac_optarg ;;
980 -disable-* | --disable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: $ac_useropt"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
994 eval enable_$ac_useropt=no ;;
996 -docdir | --docdir | --docdi | --doc | --do)
998 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004 dvidir=$ac_optarg ;;
1006 -enable-* | --enable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1015 "enable_$ac_useropt"
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1020 eval enable_$ac_useropt=\$ac_optarg ;;
1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024 | --exec | --exe | --ex)
1025 ac_prev=exec_prefix ;;
1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028 | --exec=* | --exe=* | --ex=*)
1029 exec_prefix=$ac_optarg ;;
1031 -gas | --gas | --ga | --g)
1032 # Obsolete; use --with-gas.
1035 -help | --help | --hel | --he | -h)
1036 ac_init_help=long ;;
1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038 ac_init_help=recursive ;;
1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040 ac_init_help=short ;;
1042 -host | --host | --hos | --ho)
1043 ac_prev=host_alias ;;
1044 -host=* | --host=* | --hos=* | --ho=*)
1045 host_alias=$ac_optarg ;;
1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051 htmldir=$ac_optarg ;;
1053 -includedir | --includedir | --includedi | --included | --include \
1054 | --includ | --inclu | --incl | --inc)
1055 ac_prev=includedir ;;
1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057 | --includ=* | --inclu=* | --incl=* | --inc=*)
1058 includedir=$ac_optarg ;;
1060 -infodir | --infodir | --infodi | --infod | --info | --inf)
1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063 infodir=$ac_optarg ;;
1065 -libdir | --libdir | --libdi | --libd)
1067 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068 libdir=$ac_optarg ;;
1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071 | --libexe | --libex | --libe)
1072 ac_prev=libexecdir ;;
1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074 | --libexe=* | --libex=* | --libe=*)
1075 libexecdir=$ac_optarg ;;
1077 -localedir | --localedir | --localedi | --localed | --locale)
1078 ac_prev=localedir ;;
1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080 localedir=$ac_optarg ;;
1082 -localstatedir | --localstatedir | --localstatedi | --localstated \
1083 | --localstate | --localstat | --localsta | --localst | --locals)
1084 ac_prev=localstatedir ;;
1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087 localstatedir=$ac_optarg ;;
1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092 mandir=$ac_optarg ;;
1094 -nfp | --nfp | --nf)
1095 # Obsolete; use --without-fp.
1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099 | --no-cr | --no-c | -n)
1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108 | --oldin | --oldi | --old | --ol | --o)
1109 ac_prev=oldincludedir ;;
1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113 oldincludedir=$ac_optarg ;;
1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118 prefix=$ac_optarg ;;
1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121 | --program-pre | --program-pr | --program-p)
1122 ac_prev=program_prefix ;;
1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125 program_prefix=$ac_optarg ;;
1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128 | --program-suf | --program-su | --program-s)
1129 ac_prev=program_suffix ;;
1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132 program_suffix=$ac_optarg ;;
1134 -program-transform-name | --program-transform-name \
1135 | --program-transform-nam | --program-transform-na \
1136 | --program-transform-n | --program-transform- \
1137 | --program-transform | --program-transfor \
1138 | --program-transfo | --program-transf \
1139 | --program-trans | --program-tran \
1140 | --progr-tra | --program-tr | --program-t)
1141 ac_prev=program_transform_name ;;
1142 -program-transform-name=* | --program-transform-name=* \
1143 | --program-transform-nam=* | --program-transform-na=* \
1144 | --program-transform-n=* | --program-transform-=* \
1145 | --program-transform=* | --program-transfor=* \
1146 | --program-transfo=* | --program-transf=* \
1147 | --program-trans=* | --program-tran=* \
1148 | --progr-tra=* | --program-tr=* | --program-t=*)
1149 program_transform_name=$ac_optarg ;;
1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154 pdfdir=$ac_optarg ;;
1156 -psdir | --psdir | --psdi | --psd | --ps)
1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162 | -silent | --silent | --silen | --sile | --sil)
1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 sbindir=$ac_optarg ;;
1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173 | --sharedst | --shareds | --shared | --share | --shar \
1175 ac_prev=sharedstatedir ;;
1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 sharedstatedir=$ac_optarg ;;
1182 -site | --site | --sit)
1184 -site=* | --site=* | --sit=*)
1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190 srcdir=$ac_optarg ;;
1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193 | --syscon | --sysco | --sysc | --sys | --sy)
1194 ac_prev=sysconfdir ;;
1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197 sysconfdir=$ac_optarg ;;
1199 -target | --target | --targe | --targ | --tar | --ta | --t)
1200 ac_prev=target_alias ;;
1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202 target_alias=$ac_optarg ;;
1204 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 -version | --version | --versio | --versi | --vers | -V)
1208 ac_init_version=: ;;
1211 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid package name: $ac_useropt"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1224 eval with_$ac_useropt=\$ac_optarg ;;
1226 -without-* | --without-*)
1227 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230 as_fn_error $? "invalid package name: $ac_useropt"
1231 ac_useropt_orig=$ac_useropt
1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238 ac_unrecognized_sep=', ';;
1240 eval with_$ac_useropt=no ;;
1243 # Obsolete; use --with-x.
1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247 | --x-incl | --x-inc | --x-in | --x-i)
1248 ac_prev=x_includes ;;
1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251 x_includes=$ac_optarg ;;
1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255 ac_prev=x_libraries ;;
1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258 x_libraries=$ac_optarg ;;
1260 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1261 Try \`$0 --help' for more information"
1265 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 case $ac_envvar in #(
1268 '' | [0-9]* | *[!_$as_cr_alnum]* )
1269 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1271 eval $ac_envvar=\$ac_optarg
1272 export $ac_envvar ;;
1275 # FIXME: should be removed in autoconf 3.0.
1276 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1285 if test -n "$ac_prev"; then
1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287 as_fn_error $? "missing argument to $ac_option"
1290 if test -n "$ac_unrecognized_opts"; then
1291 case $enable_option_checking in
1293 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1294 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 # Check all directory arguments for consistency.
1299 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1304 eval ac_val=\$$ac_var
1305 # Remove trailing slashes.
1308 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309 eval $ac_var=\$ac_val;;
1311 # Be sure to have absolute directory names.
1313 [\\/$]* | ?:[\\/]* ) continue;;
1314 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1324 target=$target_alias
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x; then
1328 if test "x$build_alias" = x; then
1329 cross_compiling=maybe
1330 elif test "x$build_alias" != "x$host_alias"; then
1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338 test "$silent" = yes && exec 6>/dev/null
1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di=`ls -di .` &&
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344 as_fn_error $? "working directory cannot be determined"
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 as_fn_error $? "pwd does not report name of working directory"
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
1352 # Try the directory containing this script, then the parent directory.
1353 ac_confdir=`$as_dirname -- "$as_myself" ||
1354 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$as_myself" : 'X\(//\)[^/]' \| \
1356 X"$as_myself" : 'X\(//\)$' \| \
1357 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358 $as_echo X"$as_myself" |
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1381 ac_srcdir_defaulted=no
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1415 \`configure' configures this package to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking ...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1473 --x-includes=DIR X include files are in DIR
1474 --x-libraries=DIR X library files are in DIR
1477 --build=BUILD configure for building on BUILD [guessed]
1478 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1482 if test -n "$ac_init_help"; then
1487 --disable-option-checking ignore unrecognized --enable/--with options
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-static[=PKGS] build static libraries [default=yes]
1492 --enable-fast-install[=PKGS]
1493 optimize for fast installation [default=yes]
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1495 --enable-assertions Enable internal sanity checks
1496 (auto/disabled/release/enabled/paranoid)
1498 --enable-dependency-tracking
1499 Use gcc -MMD -MT dependency tracking [[default=yes]]
1500 --enable-libc Use the system C library [[default=yes]]
1501 --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
1502 --enable-atomic Enable the atomic operations subsystem
1504 --enable-audio Enable the audio subsystem [[default=yes]]
1505 --enable-video Enable the video subsystem [[default=yes]]
1506 --enable-render Enable the render subsystem [[default=yes]]
1507 --enable-events Enable the events subsystem [[default=yes]]
1508 --enable-joystick Enable the joystick subsystem [[default=yes]]
1509 --enable-haptic Enable the haptic (force feedback) subsystem
1511 --enable-power Enable the power subsystem [[default=yes]]
1512 --enable-filesystem Enable the filesystem subsystem [[default=yes]]
1513 --enable-threads Enable the threading subsystem [[default=yes]]
1514 --enable-timers Enable the timer subsystem [[default=yes]]
1515 --enable-file Enable the file subsystem [[default=yes]]
1516 --enable-loadso Enable the shared object loading subsystem
1518 --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
1519 --enable-assembly Enable assembly routines [[default=yes]]
1520 --enable-ssemath Allow GCC to use SSE floating point math
1522 --enable-mmx use MMX assembly routines [[default=yes]]
1523 --enable-3dnow use 3DNow! assembly routines [[default=yes]]
1524 --enable-sse use SSE assembly routines [[default=yes]]
1525 --enable-sse2 use SSE2 assembly routines [[default=no]]
1526 --enable-altivec use Altivec assembly routines [[default=yes]]
1527 --enable-oss support the OSS audio API [[default=maybe]]
1528 --enable-alsa support the ALSA audio API [[default=yes]]
1529 --disable-alsatest Do not try to compile and run a test Alsa program
1530 --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
1531 --enable-esd support the Enlightened Sound Daemon [[default=yes]]
1532 --disable-esdtest Do not try to compile and run a test ESD program
1533 --enable-esd-shared dynamically load ESD audio support [[default=yes]]
1534 --enable-pulseaudio use PulseAudio [[default=yes]]
1535 --enable-pulseaudio-shared
1536 dynamically load PulseAudio support [[default=yes]]
1537 --enable-arts support the Analog Real Time Synthesizer
1539 --enable-arts-shared dynamically load aRts audio support [[default=yes]]
1540 --enable-nas support the NAS audio API [[default=yes]]
1541 --enable-nas-shared dynamically load NAS audio support [[default=yes]]
1542 --enable-sndio support the sndio audio API [[default=yes]]
1543 --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
1544 --enable-diskaudio support the disk writer audio driver [[default=yes]]
1545 --enable-dummyaudio support the dummy audio driver [[default=yes]]
1546 --enable-video-wayland use Wayland video driver [[default=yes]]
1547 --enable-video-wayland-qt-touch
1548 QtWayland server support for Wayland video driver
1550 --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
1551 --enable-video-tizen use tizen video driver [[default=yes]]
1552 --enable-video-mir use Mir video driver [[default=yes]]
1553 --enable-mir-shared dynamically load Mir support [[default=maybe]]
1554 --enable-video-x11 use X11 video driver [[default=yes]]
1555 --enable-x11-shared dynamically load X11 support [[default=maybe]]
1556 --enable-video-x11-xcursor
1557 enable X11 Xcursor support [[default=yes]]
1558 --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
1559 --enable-video-x11-xinerama
1560 enable X11 Xinerama support [[default=yes]]
1561 --enable-video-x11-xinput
1562 enable X11 XInput extension for manymouse, tablets,
1564 --enable-video-x11-xrandr
1565 enable X11 Xrandr extension for fullscreen
1567 --enable-video-x11-scrnsaver
1568 enable X11 screensaver extension [[default=yes]]
1569 --enable-video-x11-xshape
1570 enable X11 XShape support [[default=yes]]
1571 --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
1572 --enable-video-vivante use Vivante EGL video driver [[default=yes]]
1573 --enable-video-cocoa use Cocoa video driver [[default=yes]]
1574 --enable-video-directfb use DirectFB video driver [[default=no]]
1575 --enable-directfb-shared
1576 dynamically load directfb support [[default=yes]]
1577 --enable-fusionsound use FusionSound audio driver [[default=no]]
1578 --enable-fusionsound-shared
1579 dynamically load fusionsound audio support
1581 --enable-video-dummy use dummy video driver [[default=yes]]
1582 --enable-video-opengl include OpenGL support [[default=yes]]
1583 --enable-video-opengles include OpenGL ES support [[default=yes]]
1584 --enable-video-opengles1
1585 include OpenGL ES 1.1 support [[default=yes]]
1586 --enable-video-opengles2
1587 include OpenGL ES 2.0 support [[default=yes]]
1588 --enable-video-vulkan include Vulkan support [[default=yes]]
1589 --enable-libudev enable libudev support [[default=yes]]
1590 --enable-dbus enable D-Bus support [[default=yes]]
1591 --enable-ibus enable IBus support [[default=yes]]
1592 --enable-input-tslib use the Touchscreen library for input
1594 --enable-pthreads use POSIX threads for multi-threading
1596 --enable-pthread-sem use pthread semaphores [[default=yes]]
1597 --enable-directx use DirectX for Windows audio/video [[default=yes]]
1598 --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
1599 --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
1600 UNIX [[default=yes]]
1601 --enable-rpath use an rpath when linking SDL [[default=yes]]
1602 --enable-render-d3d enable the Direct3D render driver [[default=yes]]
1605 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1606 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1607 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1609 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1610 --with-sysroot=DIR Search for dependent libraries within DIR
1611 (or the compiler's sysroot if not specified).
1612 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
1613 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
1614 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
1615 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1616 --with-x use the X Window System
1618 Some influential environment variables:
1619 CC C compiler command
1620 CFLAGS C compiler flags
1621 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1622 nonstandard directory <lib dir>
1623 LIBS libraries to pass to the linker, e.g. -l<library>
1624 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1625 you have headers in a nonstandard directory <include dir>
1627 CXX C++ compiler command
1628 CXXFLAGS C++ compiler flags
1629 CXXCPP C++ preprocessor
1630 XMKMF Path to xmkmf, Makefile generator for X Window System
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1635 Report bugs to the package provider.
1640 if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1665 .) # We are building in place.
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
1670 ac_srcdir=$srcdir$ac_dir_suffix;
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1699 generated by GNU Autoconf 2.69
1701 Copyright (C) 2012 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1748 } # ac_fn_c_try_compile
1750 # ac_fn_c_try_link LINENO
1751 # -----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded.
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext conftest$ac_exeext
1757 if { { ac_try="$ac_link"
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>conftest.err
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest$ac_exeext && {
1776 test "$cross_compiling" = yes ||
1777 test -x conftest$ac_exeext
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1786 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1787 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1788 # interfere with the next link command; also delete a directory that is
1789 # left behind by Apple's compiler. We do this before executing the actions.
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1794 } # ac_fn_c_try_link
1796 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_c_check_header_compile ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1813 if ac_fn_c_try_compile "$LINENO"; then :
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 } # ac_fn_c_check_header_compile
1827 # ac_fn_c_try_cpp LINENO
1828 # ----------------------
1829 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 if { { ac_try="$ac_cpp conftest.$ac_ext"
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } > conftest.i && {
1849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1850 test ! -s conftest.err
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1864 # ac_fn_c_try_run LINENO
1865 # ----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867 # that executables *can* be run.
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_link"
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>&5
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882 { { case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_try") 2>&5
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; }; }; then :
1894 $as_echo "$as_me: program exited with status $ac_status" >&5
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1898 ac_retval=$ac_status
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1906 # ac_fn_c_check_func LINENO FUNC VAR
1907 # ----------------------------------
1908 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909 ac_fn_c_check_func ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if eval \${$3+:} false; then :
1915 $as_echo_n "(cached) " >&6
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921 #define $2 innocuous_$2
1923 /* System header to define __stub macros and hopefully few prototypes,
1924 which can conflict with char $2 (); below.
1925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926 <limits.h> exists even on freestanding compilers. */
1929 # include <limits.h>
1931 # include <assert.h>
1936 /* Override any GCC internal prototype to avoid an error.
1937 Use char because int might match the return type of a GCC
1938 builtin and then its argument prototype would still apply. */
1943 /* The GNU C library defines this for functions which it implements
1944 to always fail with ENOSYS. Some functions are actually named
1945 something starting with __ and the normal name is an alias. */
1946 #if defined __stub_$2 || defined __stub___$2
1958 if ac_fn_c_try_link "$LINENO"; then :
1963 rm -f core conftest.err conftest.$ac_objext \
1964 conftest$ac_exeext conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 } # ac_fn_c_check_func
1973 # ac_fn_cxx_try_compile LINENO
1974 # ----------------------------
1975 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1976 ac_fn_cxx_try_compile ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 rm -f conftest.$ac_objext
1980 if { { ac_try="$ac_compile"
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_compile") 2>conftest.err
1989 if test -s conftest.err; then
1990 grep -v '^ *+' conftest.err >conftest.er1
1991 cat conftest.er1 >&5
1992 mv -f conftest.er1 conftest.err
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; } && {
1996 test -z "$ac_cxx_werror_flag" ||
1997 test ! -s conftest.err
1998 } && test -s conftest.$ac_objext; then :
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 as_fn_set_status $ac_retval
2009 } # ac_fn_cxx_try_compile
2011 # ac_fn_cxx_try_cpp LINENO
2012 # ------------------------
2013 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2014 ac_fn_cxx_try_cpp ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 if { { ac_try="$ac_cpp conftest.$ac_ext"
2019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020 *) ac_try_echo=$ac_try;;
2022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2026 if test -s conftest.err; then
2027 grep -v '^ *+' conftest.err >conftest.er1
2028 cat conftest.er1 >&5
2029 mv -f conftest.er1 conftest.err
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } > conftest.i && {
2033 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2034 test ! -s conftest.err
2038 $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 as_fn_set_status $ac_retval
2046 } # ac_fn_cxx_try_cpp
2048 # ac_fn_cxx_try_link LINENO
2049 # -------------------------
2050 # Try to link conftest.$ac_ext, and return whether this succeeded.
2051 ac_fn_cxx_try_link ()
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 rm -f conftest.$ac_objext conftest$ac_exeext
2055 if { { ac_try="$ac_link"
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_link") 2>conftest.err
2064 if test -s conftest.err; then
2065 grep -v '^ *+' conftest.err >conftest.er1
2066 cat conftest.er1 >&5
2067 mv -f conftest.er1 conftest.err
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070 test $ac_status = 0; } && {
2071 test -z "$ac_cxx_werror_flag" ||
2072 test ! -s conftest.err
2073 } && test -s conftest$ac_exeext && {
2074 test "$cross_compiling" = yes ||
2075 test -x conftest$ac_exeext
2079 $as_echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2084 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2085 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2086 # interfere with the next link command; also delete a directory that is
2087 # left behind by Apple's compiler. We do this before executing the actions.
2088 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 as_fn_set_status $ac_retval
2092 } # ac_fn_cxx_try_link
2094 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2095 # -------------------------------------------------------
2096 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2097 # the include files in INCLUDES and setting the cache variable VAR
2099 ac_fn_c_check_header_mongrel ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 if eval \${$3+:} false; then :
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if eval \${$3+:} false; then :
2106 $as_echo_n "(cached) " >&6
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2112 # Is the header compilable?
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2114 $as_echo_n "checking $2 usability... " >&6; }
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_header_compiler=yes
2123 ac_header_compiler=no
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2127 $as_echo "$ac_header_compiler" >&6; }
2129 # Is the header present?
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2131 $as_echo_n "checking $2 presence... " >&6; }
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2136 if ac_fn_c_try_cpp "$LINENO"; then :
2137 ac_header_preproc=yes
2139 ac_header_preproc=no
2141 rm -f conftest.err conftest.i conftest.$ac_ext
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2143 $as_echo "$ac_header_preproc" >&6; }
2145 # So? What about this header?
2146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2149 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2151 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2155 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2157 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2159 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2161 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2163 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2167 $as_echo_n "checking for $2... " >&6; }
2168 if eval \${$3+:} false; then :
2169 $as_echo_n "(cached) " >&6
2171 eval "$3=\$ac_header_compiler"
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2177 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179 } # ac_fn_c_check_header_mongrel
2181 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2182 # -------------------------------------------
2183 # Tests whether TYPE exists after having included INCLUDES, setting cache
2184 # variable VAR accordingly.
2185 ac_fn_c_check_type ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if eval \${$3+:} false; then :
2191 $as_echo_n "(cached) " >&6
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2206 if ac_fn_c_try_compile "$LINENO"; then :
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2219 if ac_fn_c_try_compile "$LINENO"; then :
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230 $as_echo "$ac_res" >&6; }
2231 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2233 } # ac_fn_c_check_type
2235 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2236 # ----------------------------------------------------
2237 # Tries to find if the field MEMBER exists in type AGGR, after including
2238 # INCLUDES, setting cache variable VAR accordingly.
2239 ac_fn_c_check_member ()
2241 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2243 $as_echo_n "checking for $2.$3... " >&6; }
2244 if eval \${$4+:} false; then :
2245 $as_echo_n "(cached) " >&6
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2260 if ac_fn_c_try_compile "$LINENO"; then :
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2270 if (sizeof ac_aggr.$3)
2276 if ac_fn_c_try_compile "$LINENO"; then :
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290 } # ac_fn_c_check_member
2291 cat >config.log <<_ACEOF
2292 This file contains any messages produced by compilers while
2293 running configure, to aid debugging if configure makes a mistake.
2295 It was created by $as_me, which was
2296 generated by GNU Autoconf 2.69. Invocation command line was
2308 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2309 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2310 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2311 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2312 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2314 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2315 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2317 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2318 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2319 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2320 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2321 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2322 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2323 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 test -z "$as_dir" && as_dir=.
2332 $as_echo "PATH: $as_dir"
2348 # Keep a trace of the command line.
2349 # Strip out --no-create and --no-recursion so they do not pile up.
2350 # Strip out --silent because we don't want to record it for future runs.
2351 # Also quote any args containing shell meta-characters.
2352 # Make two passes to allow for proper duplicate-argument suppression.
2356 ac_must_keep_next=false
2362 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2364 | -silent | --silent | --silen | --sile | --sil)
2367 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2370 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2372 as_fn_append ac_configure_args1 " '$ac_arg'"
2373 if test $ac_must_keep_next = true; then
2374 ac_must_keep_next=false # Got value, back to normal.
2377 *=* | --config-cache | -C | -disable-* | --disable-* \
2378 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2379 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2380 | -with-* | --with-* | -without-* | --without-* | --x)
2381 case "$ac_configure_args0 " in
2382 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2385 -* ) ac_must_keep_next=true ;;
2388 as_fn_append ac_configure_args " '$ac_arg'"
2393 { ac_configure_args0=; unset ac_configure_args0;}
2394 { ac_configure_args1=; unset ac_configure_args1;}
2396 # When interrupted or exit'd, cleanup temporary files, and complete
2397 # config.log. We remove comments because anyway the quotes in there
2398 # would cause problems or look ugly.
2399 # WARNING: Use '\'' to represent an apostrophe within the trap.
2400 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2401 trap 'exit_status=$?
2402 # Save into config.log some information that might help in debugging.
2406 $as_echo "## ---------------- ##
2407 ## Cache variables. ##
2408 ## ---------------- ##"
2410 # The following way of writing the cache mishandles newlines in values,
2412 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2413 eval ac_val=\$$ac_var
2417 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2418 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2421 _ | IFS | as_nl) ;; #(
2422 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2423 *) { eval $ac_var=; unset $ac_var;} ;;
2428 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2429 *${as_nl}ac_space=\ *)
2431 "s/'\''/'\''\\\\'\'''\''/g;
2432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2435 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2442 $as_echo "## ----------------- ##
2443 ## Output variables. ##
2444 ## ----------------- ##"
2446 for ac_var in $ac_subst_vars
2448 eval ac_val=\$$ac_var
2450 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2452 $as_echo "$ac_var='\''$ac_val'\''"
2456 if test -n "$ac_subst_files"; then
2457 $as_echo "## ------------------- ##
2458 ## File substitutions. ##
2459 ## ------------------- ##"
2461 for ac_var in $ac_subst_files
2463 eval ac_val=\$$ac_var
2465 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467 $as_echo "$ac_var='\''$ac_val'\''"
2472 if test -s confdefs.h; then
2473 $as_echo "## ----------- ##
2480 test "$ac_signal" != 0 &&
2481 $as_echo "$as_me: caught signal $ac_signal"
2482 $as_echo "$as_me: exit $exit_status"
2484 rm -f core *.core core.conftest.* &&
2485 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2488 for ac_signal in 1 2 13 15; do
2489 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2494 rm -f -r conftest* confdefs.h
2496 $as_echo "/* confdefs.h */" > confdefs.h
2498 # Predefined preprocessor variables.
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_NAME "$PACKAGE_NAME"
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_STRING "$PACKAGE_STRING"
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_URL "$PACKAGE_URL"
2525 # Let the site file select an alternate cache file if it wants to.
2526 # Prefer an explicitly selected file to automatically selected ones.
2529 if test -n "$CONFIG_SITE"; then
2530 # We do not want a PATH search for config.site.
2531 case $CONFIG_SITE in #((
2532 -*) ac_site_file1=./$CONFIG_SITE;;
2533 */*) ac_site_file1=$CONFIG_SITE;;
2534 *) ac_site_file1=./$CONFIG_SITE;;
2536 elif test "x$prefix" != xNONE; then
2537 ac_site_file1=$prefix/share/config.site
2538 ac_site_file2=$prefix/etc/config.site
2540 ac_site_file1=$ac_default_prefix/share/config.site
2541 ac_site_file2=$ac_default_prefix/etc/config.site
2543 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2545 test "x$ac_site_file" = xNONE && continue
2546 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2548 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2549 sed 's/^/| /' "$ac_site_file" >&5
2551 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553 as_fn_error $? "failed to load site script $ac_site_file
2554 See \`config.log' for more details" "$LINENO" 5; }
2558 if test -r "$cache_file"; then
2559 # Some versions of bash will fail to source /dev/null (special files
2560 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2561 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2563 $as_echo "$as_me: loading cache $cache_file" >&6;}
2565 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2566 *) . "./$cache_file";;
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2571 $as_echo "$as_me: creating cache $cache_file" >&6;}
2575 # Check that the precious variables saved in the cache have kept the same
2577 ac_cache_corrupted=false
2578 for ac_var in $ac_precious_vars; do
2579 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2580 eval ac_new_set=\$ac_env_${ac_var}_set
2581 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2582 eval ac_new_val=\$ac_env_${ac_var}_value
2583 case $ac_old_set,$ac_new_set in
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2586 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2587 ac_cache_corrupted=: ;;
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2590 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2591 ac_cache_corrupted=: ;;
2594 if test "x$ac_old_val" != "x$ac_new_val"; then
2595 # differences in whitespace do not lead to failure.
2596 ac_old_val_w=`echo x $ac_old_val`
2597 ac_new_val_w=`echo x $ac_new_val`
2598 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2600 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2601 ac_cache_corrupted=:
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2604 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2605 eval $ac_var=\$ac_old_val
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2608 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2610 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2613 # Pass precious variables to config.status.
2614 if test "$ac_new_set" = set; then
2616 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2617 *) ac_arg=$ac_var=$ac_new_val ;;
2619 case " $ac_configure_args " in
2620 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2621 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2625 if $ac_cache_corrupted; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2629 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2630 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2632 ## -------------------- ##
2633 ## Main body of script. ##
2634 ## -------------------- ##
2637 ac_cpp='$CPP $CPPFLAGS'
2638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643 ac_config_headers="$ac_config_headers include/SDL_config.h"
2646 for ac_dir in build-scripts "$srcdir"/build-scripts; do
2647 if test -f "$ac_dir/install-sh"; then
2649 ac_install_sh="$ac_aux_dir/install-sh -c"
2651 elif test -f "$ac_dir/install.sh"; then
2653 ac_install_sh="$ac_aux_dir/install.sh -c"
2655 elif test -f "$ac_dir/shtool"; then
2657 ac_install_sh="$ac_aux_dir/shtool install -c"
2661 if test -z "$ac_aux_dir"; then
2662 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
2665 # These three variables are undocumented and unsupported,
2666 # and are intended to be withdrawn in a future Autoconf release.
2667 # They can cause serious problems if a builder's source tree is in a directory
2668 # whose full name contains unusual characters.
2669 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2670 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2671 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2676 orig_CFLAGS="$CFLAGS"
2680 # Edit include/SDL_version.h and change the version, then:
2681 # SDL_MICRO_VERSION += 1;
2682 # SDL_INTERFACE_AGE += 1;
2683 # SDL_BINARY_AGE += 1;
2684 # if any functions have been added, set SDL_INTERFACE_AGE to 0.
2685 # if backwards compatibility has been broken,
2686 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
2693 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
2702 # libtool versioning
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2706 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2711 macro_version='2.4.2'
2712 macro_revision='1.3337'
2726 ltmain="$ac_aux_dir/ltmain.sh"
2728 # Make sure we can run config.sub.
2729 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2730 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2733 $as_echo_n "checking build system type... " >&6; }
2734 if ${ac_cv_build+:} false; then :
2735 $as_echo_n "(cached) " >&6
2737 ac_build_alias=$build_alias
2738 test "x$ac_build_alias" = x &&
2739 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2740 test "x$ac_build_alias" = x &&
2741 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2742 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2743 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2747 $as_echo "$ac_cv_build" >&6; }
2748 case $ac_cv_build in
2750 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2753 ac_save_IFS=$IFS; IFS='-'
2759 # Remember, the first character of IFS is used to create $*,
2760 # except with old shells:
2763 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2767 $as_echo_n "checking host system type... " >&6; }
2768 if ${ac_cv_host+:} false; then :
2769 $as_echo_n "(cached) " >&6
2771 if test "x$host_alias" = x; then
2772 ac_cv_host=$ac_cv_build
2774 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2780 $as_echo "$ac_cv_host" >&6; }
2783 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2786 ac_save_IFS=$IFS; IFS='-'
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2796 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2799 # Backslashify metacharacters that are still active within
2800 # double-quoted strings.
2801 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2803 # Same as above, but do not quote variable references.
2804 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2806 # Sed substitution to delay expansion of an escaped shell variable in a
2807 # double_quote_subst'ed string.
2808 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2810 # Sed substitution to delay expansion of an escaped single quote.
2811 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2813 # Sed substitution to avoid accidental globbing in evaled expressions
2814 no_glob_subst='s/\*/\\\*/g'
2816 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2817 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2818 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2821 $as_echo_n "checking how to print strings... " >&6; }
2822 # Test print first, because it will be a builtin if present.
2823 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2824 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2826 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2829 # Use this function as a fallback that always works.
2830 func_fallback_echo ()
2832 eval 'cat <<_LTECHO_EOF
2836 ECHO='func_fallback_echo'
2839 # func_echo_all arg...
2840 # Invoke $ECHO with all args, space-separated.
2847 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2848 $as_echo "printf" >&6; } ;;
2849 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2850 $as_echo "print -r" >&6; } ;;
2851 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2852 $as_echo "cat" >&6; } ;;
2869 ac_cpp='$CPP $CPPFLAGS'
2870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_CC+:} false; then :
2879 $as_echo_n "(cached) " >&6
2881 if test -n "$CC"; then
2882 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 if test -n "$CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904 $as_echo "$CC" >&6; }
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2912 if test -z "$ac_cv_prog_CC"; then
2914 # Extract the first word of "gcc", so it can be a program name with args.
2915 set dummy gcc; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2919 $as_echo_n "(cached) " >&6
2921 if test -n "$ac_ct_CC"; then
2922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931 ac_cv_prog_ac_ct_CC="gcc"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2942 if test -n "$ac_ct_CC"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2944 $as_echo "$ac_ct_CC" >&6; }
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2950 if test "x$ac_ct_CC" = x; then
2953 case $cross_compiling:$ac_tool_warned in
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2957 ac_tool_warned=yes ;;
2965 if test -z "$CC"; then
2966 if test -n "$ac_tool_prefix"; then
2967 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2968 set dummy ${ac_tool_prefix}cc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_CC+:} false; then :
2972 $as_echo_n "(cached) " >&6
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_CC="${ac_tool_prefix}cc"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 if test -n "$CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 $as_echo "$CC" >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3006 if test -z "$CC"; then
3007 # Extract the first word of "cc", so it can be a program name with args.
3008 set dummy cc; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if ${ac_cv_prog_CC+:} false; then :
3012 $as_echo_n "(cached) " >&6
3014 if test -n "$CC"; then
3015 ac_cv_prog_CC="$CC" # Let the user override the test.
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3026 ac_prog_rejected=yes
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 if test $ac_prog_rejected = yes; then
3038 # We found a bogon in the path, so make sure we never use it.
3039 set dummy $ac_cv_prog_CC
3041 if test $# != 0; then
3042 # We chose a different compiler from the bogus one.
3043 # However, it has the same basename, so the bogon will be chosen
3044 # first if we set CC to just the basename; use the full file name.
3046 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3052 if test -n "$CC"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3054 $as_echo "$CC" >&6; }
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3062 if test -z "$CC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 for ac_prog in cl.exe
3066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_CC+:} false; then :
3071 $as_echo_n "(cached) " >&6
3073 if test -n "$CC"; then
3074 ac_cv_prog_CC="$CC" # Let the user override the test.
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 if test -n "$CC"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096 $as_echo "$CC" >&6; }
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3103 test -n "$CC" && break
3106 if test -z "$CC"; then
3108 for ac_prog in cl.exe
3110 # Extract the first word of "$ac_prog", so it can be a program name with args.
3111 set dummy $ac_prog; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3115 $as_echo_n "(cached) " >&6
3117 if test -n "$ac_ct_CC"; then
3118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_ac_ct_CC="$ac_prog"
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3138 if test -n "$ac_ct_CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3140 $as_echo "$ac_ct_CC" >&6; }
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3147 test -n "$ac_ct_CC" && break
3150 if test "x$ac_ct_CC" = x; then
3153 case $cross_compiling:$ac_tool_warned in
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157 ac_tool_warned=yes ;;
3166 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error $? "no acceptable C compiler found in \$PATH
3169 See \`config.log' for more details" "$LINENO" 5; }
3171 # Provide some information about the compiler.
3172 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3175 for ac_option in --version -v -V -qversion; do
3176 { { ac_try="$ac_compiler $ac_option >&5"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182 $as_echo "$ac_try_echo"; } >&5
3183 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3185 if test -s conftest.err; then
3187 ... rest of stderr output deleted ...
3188 10q' conftest.err >conftest.er1
3189 cat conftest.er1 >&5
3191 rm -f conftest.er1 conftest.err
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3207 ac_clean_files_save=$ac_clean_files
3208 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3209 # Try to create an executable without -o first, disregard a.out.
3210 # It will help us diagnose broken compilers, and finding out an intuition
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3213 $as_echo_n "checking whether the C compiler works... " >&6; }
3214 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3216 # The possible output files:
3217 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3220 for ac_file in $ac_files
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3224 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3229 if { { ac_try="$ac_link_default"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_link_default") 2>&5
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }; then :
3240 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3241 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3242 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3243 # so that the user can short-circuit this test for compilers unknown to
3245 for ac_file in $ac_files ''
3247 test -f "$ac_file" || continue
3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3252 # We found the default executable, but exeext='' is most
3256 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3258 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3260 # We set ac_cv_exeext here because the later test for it is not
3261 # safe: cross compilers may not add the suffix if given an `-o'
3262 # argument, so we may need to know it at that point already.
3263 # Even if this section looks crufty: it has the advantage of
3270 test "$ac_cv_exeext" = no && ac_cv_exeext=
3275 if test -z "$ac_file"; then :
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3278 $as_echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 as_fn_error 77 "C compiler cannot create executables
3284 See \`config.log' for more details" "$LINENO" 5; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287 $as_echo "yes" >&6; }
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3290 $as_echo_n "checking for C compiler default output file name... " >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3292 $as_echo "$ac_file" >&6; }
3293 ac_exeext=$ac_cv_exeext
3295 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3296 ac_clean_files=$ac_clean_files_save
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3298 $as_echo_n "checking for suffix of executables... " >&6; }
3299 if { { ac_try="$ac_link"
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3305 $as_echo "$ac_try_echo"; } >&5
3306 (eval "$ac_link") 2>&5
3308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309 test $ac_status = 0; }; then :
3310 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3311 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3312 # work properly (i.e., refer to `conftest.exe'), while it won't with
3314 for ac_file in conftest.exe conftest conftest.*; do
3315 test -f "$ac_file" || continue
3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3318 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3327 See \`config.log' for more details" "$LINENO" 5; }
3329 rm -f conftest conftest$ac_cv_exeext
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3331 $as_echo "$ac_cv_exeext" >&6; }
3333 rm -f conftest.$ac_ext
3334 EXEEXT=$ac_cv_exeext
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3342 FILE *f = fopen ("conftest.out", "w");
3343 return ferror (f) || fclose (f) != 0;
3349 ac_clean_files="$ac_clean_files conftest.out"
3350 # Check that the compiler produces executables we can run. If not, either
3351 # the compiler is broken, or we cross compile.
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3353 $as_echo_n "checking whether we are cross compiling... " >&6; }
3354 if test "$cross_compiling" != yes; then
3355 { { ac_try="$ac_link"
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_link") 2>&5
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }
3366 if { ac_try='./conftest$ac_cv_exeext'
3367 { { case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372 $as_echo "$ac_try_echo"; } >&5
3373 (eval "$ac_try") 2>&5
3375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376 test $ac_status = 0; }; }; then
3379 if test "$cross_compiling" = maybe; then
3382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 as_fn_error $? "cannot run C compiled programs.
3385 If you meant to cross compile, use \`--host'.
3386 See \`config.log' for more details" "$LINENO" 5; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3391 $as_echo "$cross_compiling" >&6; }
3393 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3394 ac_clean_files=$ac_clean_files_save
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3396 $as_echo_n "checking for suffix of object files... " >&6; }
3397 if ${ac_cv_objext+:} false; then :
3398 $as_echo_n "(cached) " >&6
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3411 rm -f conftest.o conftest.obj
3412 if { { ac_try="$ac_compile"
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 $as_echo "$ac_try_echo"; } >&5
3419 (eval "$ac_compile") 2>&5
3421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422 test $ac_status = 0; }; then :
3423 for ac_file in conftest.o conftest.obj conftest.*; do
3424 test -f "$ac_file" || continue;
3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3427 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3432 $as_echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437 as_fn_error $? "cannot compute suffix of object files: cannot compile
3438 See \`config.log' for more details" "$LINENO" 5; }
3440 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3443 $as_echo "$ac_cv_objext" >&6; }
3444 OBJEXT=$ac_cv_objext
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3447 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3448 if ${ac_cv_c_compiler_gnu+:} false; then :
3449 $as_echo_n "(cached) " >&6
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3465 if ac_fn_c_try_compile "$LINENO"; then :
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3475 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3476 if test $ac_compiler_gnu = yes; then
3481 ac_test_CFLAGS=${CFLAGS+set}
3482 ac_save_CFLAGS=$CFLAGS
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3484 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3485 if ${ac_cv_prog_cc_g+:} false; then :
3486 $as_echo_n "(cached) " >&6
3488 ac_save_c_werror_flag=$ac_c_werror_flag
3489 ac_c_werror_flag=yes
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3503 if ac_fn_c_try_compile "$LINENO"; then :
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3518 if ac_fn_c_try_compile "$LINENO"; then :
3521 ac_c_werror_flag=$ac_save_c_werror_flag
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3534 if ac_fn_c_try_compile "$LINENO"; then :
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 ac_c_werror_flag=$ac_save_c_werror_flag
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3545 $as_echo "$ac_cv_prog_cc_g" >&6; }
3546 if test "$ac_test_CFLAGS" = set; then
3547 CFLAGS=$ac_save_CFLAGS
3548 elif test $ac_cv_prog_cc_g = yes; then
3549 if test "$GCC" = yes; then
3555 if test "$GCC" = yes; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3562 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3563 if ${ac_cv_prog_cc_c89+:} false; then :
3564 $as_echo_n "(cached) " >&6
3566 ac_cv_prog_cc_c89=no
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3573 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3574 struct buf { int x; };
3575 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3576 static char *e (p, i)
3582 static char *f (char * (*g) (char **, int), char **p, ...)
3587 s = g (p, va_arg (v,int));
3592 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3593 function prototypes and stuff, but not '\xHH' hex character constants.
3594 These don't provoke an error unfortunately, instead are silently treated
3595 as 'x'. The following induces an error, until -std is added to get
3596 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3597 array size at least. It's necessary to write '\x00'==0 to get something
3598 that's true only with -std. */
3599 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3601 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3602 inside strings and character constants. */
3604 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3606 int test (int i, double x);
3607 struct s1 {int (*f) (int a);};
3608 struct s2 {int (*f) (double a);};
3609 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3615 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3620 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3621 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3623 CC="$ac_save_CC $ac_arg"
3624 if ac_fn_c_try_compile "$LINENO"; then :
3625 ac_cv_prog_cc_c89=$ac_arg
3627 rm -f core conftest.err conftest.$ac_objext
3628 test "x$ac_cv_prog_cc_c89" != "xno" && break
3630 rm -f conftest.$ac_ext
3635 case "x$ac_cv_prog_cc_c89" in
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3638 $as_echo "none needed" >&6; } ;;
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3641 $as_echo "unsupported" >&6; } ;;
3643 CC="$CC $ac_cv_prog_cc_c89"
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3645 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3647 if test "x$ac_cv_prog_cc_c89" != xno; then :
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3658 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3659 if ${ac_cv_path_SED+:} false; then :
3660 $as_echo_n "(cached) " >&6
3662 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3663 for ac_i in 1 2 3 4 5 6 7; do
3664 ac_script="$ac_script$as_nl$ac_script"
3666 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3667 { ac_script=; unset ac_script;}
3668 if test -z "$SED"; then
3669 ac_path_SED_found=false
3670 # Loop through the user's path and test for each of PROGNAME-LIST
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 test -z "$as_dir" && as_dir=.
3676 for ac_prog in sed gsed; do
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3679 as_fn_executable_p "$ac_path_SED" || continue
3680 # Check for GNU ac_path_SED and select it if it is found.
3681 # Check for GNU $ac_path_SED
3682 case `"$ac_path_SED" --version 2>&1` in
3684 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3687 $as_echo_n 0123456789 >"conftest.in"
3690 cat "conftest.in" "conftest.in" >"conftest.tmp"
3691 mv "conftest.tmp" "conftest.in"
3692 cp "conftest.in" "conftest.nl"
3693 $as_echo '' >> "conftest.nl"
3694 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3696 as_fn_arith $ac_count + 1 && ac_count=$as_val
3697 if test $ac_count -gt ${ac_path_SED_max-0}; then
3698 # Best one so far, save it but keep looking for a better one
3699 ac_cv_path_SED="$ac_path_SED"
3700 ac_path_SED_max=$ac_count
3702 # 10*(2^10) chars as input seems more than enough
3703 test $ac_count -gt 10 && break
3705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3708 $ac_path_SED_found && break 3
3713 if test -z "$ac_cv_path_SED"; then
3714 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3722 $as_echo "$ac_cv_path_SED" >&6; }
3723 SED="$ac_cv_path_SED"
3726 test -z "$SED" && SED=sed
3727 Xsed="$SED -e 1s/^X//"
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3740 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3741 if ${ac_cv_path_GREP+:} false; then :
3742 $as_echo_n "(cached) " >&6
3744 if test -z "$GREP"; then
3745 ac_path_GREP_found=false
3746 # Loop through the user's path and test for each of PROGNAME-LIST
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3751 test -z "$as_dir" && as_dir=.
3752 for ac_prog in grep ggrep; do
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3755 as_fn_executable_p "$ac_path_GREP" || continue
3756 # Check for GNU ac_path_GREP and select it if it is found.
3757 # Check for GNU $ac_path_GREP
3758 case `"$ac_path_GREP" --version 2>&1` in
3760 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3763 $as_echo_n 0123456789 >"conftest.in"
3766 cat "conftest.in" "conftest.in" >"conftest.tmp"
3767 mv "conftest.tmp" "conftest.in"
3768 cp "conftest.in" "conftest.nl"
3769 $as_echo 'GREP' >> "conftest.nl"
3770 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772 as_fn_arith $ac_count + 1 && ac_count=$as_val
3773 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3774 # Best one so far, save it but keep looking for a better one
3775 ac_cv_path_GREP="$ac_path_GREP"
3776 ac_path_GREP_max=$ac_count
3778 # 10*(2^10) chars as input seems more than enough
3779 test $ac_count -gt 10 && break
3781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3784 $ac_path_GREP_found && break 3
3789 if test -z "$ac_cv_path_GREP"; then
3790 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3793 ac_cv_path_GREP=$GREP
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3798 $as_echo "$ac_cv_path_GREP" >&6; }
3799 GREP="$ac_cv_path_GREP"
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3803 $as_echo_n "checking for egrep... " >&6; }
3804 if ${ac_cv_path_EGREP+:} false; then :
3805 $as_echo_n "(cached) " >&6
3807 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3808 then ac_cv_path_EGREP="$GREP -E"
3810 if test -z "$EGREP"; then
3811 ac_path_EGREP_found=false
3812 # Loop through the user's path and test for each of PROGNAME-LIST
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3817 test -z "$as_dir" && as_dir=.
3818 for ac_prog in egrep; do
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3821 as_fn_executable_p "$ac_path_EGREP" || continue
3822 # Check for GNU ac_path_EGREP and select it if it is found.
3823 # Check for GNU $ac_path_EGREP
3824 case `"$ac_path_EGREP" --version 2>&1` in
3826 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3829 $as_echo_n 0123456789 >"conftest.in"
3832 cat "conftest.in" "conftest.in" >"conftest.tmp"
3833 mv "conftest.tmp" "conftest.in"
3834 cp "conftest.in" "conftest.nl"
3835 $as_echo 'EGREP' >> "conftest.nl"
3836 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3838 as_fn_arith $ac_count + 1 && ac_count=$as_val
3839 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3840 # Best one so far, save it but keep looking for a better one
3841 ac_cv_path_EGREP="$ac_path_EGREP"
3842 ac_path_EGREP_max=$ac_count
3844 # 10*(2^10) chars as input seems more than enough
3845 test $ac_count -gt 10 && break
3847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3850 $ac_path_EGREP_found && break 3
3855 if test -z "$ac_cv_path_EGREP"; then
3856 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3859 ac_cv_path_EGREP=$EGREP
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3865 $as_echo "$ac_cv_path_EGREP" >&6; }
3866 EGREP="$ac_cv_path_EGREP"
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3870 $as_echo_n "checking for fgrep... " >&6; }
3871 if ${ac_cv_path_FGREP+:} false; then :
3872 $as_echo_n "(cached) " >&6
3874 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3875 then ac_cv_path_FGREP="$GREP -F"
3877 if test -z "$FGREP"; then
3878 ac_path_FGREP_found=false
3879 # Loop through the user's path and test for each of PROGNAME-LIST
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3884 test -z "$as_dir" && as_dir=.
3885 for ac_prog in fgrep; do
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3888 as_fn_executable_p "$ac_path_FGREP" || continue
3889 # Check for GNU ac_path_FGREP and select it if it is found.
3890 # Check for GNU $ac_path_FGREP
3891 case `"$ac_path_FGREP" --version 2>&1` in
3893 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3896 $as_echo_n 0123456789 >"conftest.in"
3899 cat "conftest.in" "conftest.in" >"conftest.tmp"
3900 mv "conftest.tmp" "conftest.in"
3901 cp "conftest.in" "conftest.nl"
3902 $as_echo 'FGREP' >> "conftest.nl"
3903 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3905 as_fn_arith $ac_count + 1 && ac_count=$as_val
3906 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3907 # Best one so far, save it but keep looking for a better one
3908 ac_cv_path_FGREP="$ac_path_FGREP"
3909 ac_path_FGREP_max=$ac_count
3911 # 10*(2^10) chars as input seems more than enough
3912 test $ac_count -gt 10 && break
3914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3917 $ac_path_FGREP_found && break 3
3922 if test -z "$ac_cv_path_FGREP"; then
3923 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3926 ac_cv_path_FGREP=$FGREP
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3932 $as_echo "$ac_cv_path_FGREP" >&6; }
3933 FGREP="$ac_cv_path_FGREP"
3936 test -z "$GREP" && GREP=grep
3956 # Check whether --with-gnu-ld was given.
3957 if test "${with_gnu_ld+set}" = set; then :
3958 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3964 if test "$GCC" = yes; then
3965 # Check if gcc -print-prog-name=ld gives a path.
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3967 $as_echo_n "checking for ld used by $CC... " >&6; }
3970 # gcc leaves a trailing carriage return which upsets mingw
3971 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3973 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3976 # Accept absolute paths.
3978 re_direlt='/[^/][^/]*/\.\./'
3979 # Canonicalize the pathname of ld
3980 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3981 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3982 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3984 test -z "$LD" && LD="$ac_prog"
3987 # If it fails, then pretend we aren't using GCC.
3991 # If it is relative, then search for the first ld in PATH.
3995 elif test "$with_gnu_ld" = yes; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3997 $as_echo_n "checking for GNU ld... " >&6; }
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4000 $as_echo_n "checking for non-GNU ld... " >&6; }
4002 if ${lt_cv_path_LD+:} false; then :
4003 $as_echo_n "(cached) " >&6
4005 if test -z "$LD"; then
4006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4007 for ac_dir in $PATH; do
4009 test -z "$ac_dir" && ac_dir=.
4010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4011 lt_cv_path_LD="$ac_dir/$ac_prog"
4012 # Check to see if the program is GNU ld. I'd rather use --version,
4013 # but apparently some variants of GNU ld only accept -v.
4014 # Break only if it was the GNU/non-GNU ld that we prefer.
4015 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4016 *GNU* | *'with BFD'*)
4017 test "$with_gnu_ld" != no && break
4020 test "$with_gnu_ld" != yes && break
4027 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4032 if test -n "$LD"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4034 $as_echo "$LD" >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4039 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4041 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4042 if ${lt_cv_prog_gnu_ld+:} false; then :
4043 $as_echo_n "(cached) " >&6
4045 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4046 case `$LD -v 2>&1 </dev/null` in
4047 *GNU* | *'with BFD'*)
4048 lt_cv_prog_gnu_ld=yes
4051 lt_cv_prog_gnu_ld=no
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4056 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4057 with_gnu_ld=$lt_cv_prog_gnu_ld
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4068 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4069 if ${lt_cv_path_NM+:} false; then :
4070 $as_echo_n "(cached) " >&6
4072 if test -n "$NM"; then
4073 # Let the user override the test.
4076 lt_nm_to_check="${ac_tool_prefix}nm"
4077 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4078 lt_nm_to_check="$lt_nm_to_check nm"
4080 for lt_tmp_nm in $lt_nm_to_check; do
4081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4082 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4084 test -z "$ac_dir" && ac_dir=.
4085 tmp_nm="$ac_dir/$lt_tmp_nm"
4086 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4087 # Check to see if the nm accepts a BSD-compat flag.
4088 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4089 # nm: unknown option "B" ignored
4090 # Tru64's nm complains that /dev/null is an invalid object file
4091 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4092 */dev/null* | *'Invalid file or object type'*)
4093 lt_cv_path_NM="$tmp_nm -B"
4097 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4099 lt_cv_path_NM="$tmp_nm -p"
4103 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4104 continue # so that we can try to find one that supports BSD flags
4113 : ${lt_cv_path_NM=no}
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4117 $as_echo "$lt_cv_path_NM" >&6; }
4118 if test "$lt_cv_path_NM" != "no"; then
4121 # Didn't find any BSD compatible name lister, look for dumpbin.
4122 if test -n "$DUMPBIN"; then :
4123 # Let the user override the test.
4125 if test -n "$ac_tool_prefix"; then
4126 for ac_prog in dumpbin "link -dump"
4128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_DUMPBIN+:} false; then :
4133 $as_echo_n "(cached) " >&6
4135 if test -n "$DUMPBIN"; then
4136 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 DUMPBIN=$ac_cv_prog_DUMPBIN
4156 if test -n "$DUMPBIN"; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4158 $as_echo "$DUMPBIN" >&6; }
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4165 test -n "$DUMPBIN" && break
4168 if test -z "$DUMPBIN"; then
4169 ac_ct_DUMPBIN=$DUMPBIN
4170 for ac_prog in dumpbin "link -dump"
4172 # Extract the first word of "$ac_prog", so it can be a program name with args.
4173 set dummy $ac_prog; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4177 $as_echo_n "(cached) " >&6
4179 if test -n "$ac_ct_DUMPBIN"; then
4180 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4199 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4200 if test -n "$ac_ct_DUMPBIN"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4202 $as_echo "$ac_ct_DUMPBIN" >&6; }
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4209 test -n "$ac_ct_DUMPBIN" && break
4212 if test "x$ac_ct_DUMPBIN" = x; then
4215 case $cross_compiling:$ac_tool_warned in
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4219 ac_tool_warned=yes ;;
4221 DUMPBIN=$ac_ct_DUMPBIN
4225 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4227 DUMPBIN="$DUMPBIN -symbols"
4235 if test "$DUMPBIN" != ":"; then
4239 test -z "$NM" && NM=nm
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4247 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4248 if ${lt_cv_nm_interface+:} false; then :
4249 $as_echo_n "(cached) " >&6
4251 lt_cv_nm_interface="BSD nm"
4252 echo "int some_variable = 0;" > conftest.$ac_ext
4253 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4254 (eval "$ac_compile" 2>conftest.err)
4255 cat conftest.err >&5
4256 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4257 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4258 cat conftest.err >&5
4259 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4260 cat conftest.out >&5
4261 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4262 lt_cv_nm_interface="MS dumpbin"
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4267 $as_echo "$lt_cv_nm_interface" >&6; }
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4270 $as_echo_n "checking whether ln -s works... " >&6; }
4272 if test "$LN_S" = "ln -s"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4274 $as_echo "yes" >&6; }
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4277 $as_echo "no, using $LN_S" >&6; }
4280 # find the maximum length of command line arguments
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4282 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4283 if ${lt_cv_sys_max_cmd_len+:} false; then :
4284 $as_echo_n "(cached) " >&6
4291 # On DJGPP, this test can blow up pretty badly due to problems in libc
4292 # (any single argument exceeding 2000 bytes causes a buffer overrun
4293 # during glob expansion). Even if it were fixed, the result of this
4294 # check would be larger than it should be.
4295 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4299 # Under GNU Hurd, this test is not required because there is
4300 # no limit to the length of command line arguments.
4301 # Libtool will interpret -1 as no limit whatsoever
4302 lt_cv_sys_max_cmd_len=-1;
4305 cygwin* | mingw* | cegcc*)
4306 # On Win9x/ME, this test blows up -- it succeeds, but takes
4307 # about 5 minutes as the teststring grows exponentially.
4308 # Worse, since 9x/ME are not pre-emptively multitasking,
4309 # you end up with a "frozen" computer, even though with patience
4310 # the test eventually succeeds (with a max line length of 256k).
4311 # Instead, let's just punt: use the minimum linelength reported by
4312 # all of the supported platforms: 8192 (on NT/2K/XP).
4313 lt_cv_sys_max_cmd_len=8192;
4317 # On MiNT this can take a long time and run out of memory.
4318 lt_cv_sys_max_cmd_len=8192;
4322 # On AmigaOS with pdksh, this test takes hours, literally.
4323 # So we just punt and use a minimum line length of 8192.
4324 lt_cv_sys_max_cmd_len=8192;
4327 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4328 # This has been around since 386BSD, at least. Likely further.
4329 if test -x /sbin/sysctl; then
4330 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4331 elif test -x /usr/sbin/sysctl; then
4332 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4334 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4336 # And add a safety zone
4337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4342 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4343 lt_cv_sys_max_cmd_len=196608
4347 # The test takes a long time on OS/2.
4348 lt_cv_sys_max_cmd_len=8192
4352 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4353 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4354 # nice to cause kernel panics so lets avoid the loop below.
4355 # First set a reasonable default.
4356 lt_cv_sys_max_cmd_len=16384
4358 if test -x /sbin/sysconfig; then
4359 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4360 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4365 lt_cv_sys_max_cmd_len=102400
4367 sysv5* | sco5v6* | sysv4.2uw2*)
4368 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4369 if test -n "$kargmax"; then
4370 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4372 lt_cv_sys_max_cmd_len=32768
4376 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4377 if test -n "$lt_cv_sys_max_cmd_len"; then
4378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4381 # Make teststring a little bigger before we do anything with it.
4382 # a 1K string should be a reasonable start.
4383 for i in 1 2 3 4 5 6 7 8 ; do
4384 teststring=$teststring$teststring
4386 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4387 # If test is not a shell built-in, we'll probably end up computing a
4388 # maximum length that is only half of the actual maximum length, but
4390 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4391 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4392 test $i != 17 # 1/2 MB should be enough
4395 teststring=$teststring$teststring
4397 # Only check the string length outside the loop.
4398 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4400 # Add a significant safety factor because C++ compilers can tack on
4401 # massive amounts of additional arguments before passing them to the
4402 # linker. It appears as though 1/2 is a usable value.
4403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4410 if test -n $lt_cv_sys_max_cmd_len ; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4412 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4415 $as_echo "none" >&6; }
4417 max_cmd_len=$lt_cv_sys_max_cmd_len
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4429 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4430 # Try some XSI features
4433 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4435 && eval 'test $(( 1 + 1 )) -eq 2 \
4436 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4439 $as_echo "$xsi_shell" >&6; }
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4443 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4445 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4447 && lt_shell_append=yes
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4449 $as_echo "$lt_shell_append" >&6; }
4452 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4462 # test EBCDIC or ASCII
4463 case `echo X|tr X '\101'` in
4464 A) # ASCII based system
4465 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4466 lt_SP2NL='tr \040 \012'
4467 lt_NL2SP='tr \015\012 \040\040'
4469 *) # EBCDIC based system
4470 lt_SP2NL='tr \100 \n'
4471 lt_NL2SP='tr \r\n \100\100'
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4484 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4485 if ${lt_cv_to_host_file_cmd+:} false; then :
4486 $as_echo_n "(cached) " >&6
4491 *-*-mingw* ) # actually msys
4492 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4495 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4497 * ) # otherwise, assume *nix
4498 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4504 *-*-mingw* ) # actually msys
4505 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4508 lt_cv_to_host_file_cmd=func_convert_file_noop
4510 * ) # otherwise, assume *nix
4511 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4515 * ) # unhandled hosts (and "normal" native builds)
4516 lt_cv_to_host_file_cmd=func_convert_file_noop
4522 to_host_file_cmd=$lt_cv_to_host_file_cmd
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4524 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4531 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4532 if ${lt_cv_to_tool_file_cmd+:} false; then :
4533 $as_echo_n "(cached) " >&6
4535 #assume ordinary cross tools, or native build.
4536 lt_cv_to_tool_file_cmd=func_convert_file_noop
4540 *-*-mingw* ) # actually msys
4541 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4549 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4551 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4558 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4559 if ${lt_cv_ld_reload_flag+:} false; then :
4560 $as_echo_n "(cached) " >&6
4562 lt_cv_ld_reload_flag='-r'
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4565 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4566 reload_flag=$lt_cv_ld_reload_flag
4567 case $reload_flag in
4569 *) reload_flag=" $reload_flag" ;;
4571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4573 cygwin* | mingw* | pw32* | cegcc*)
4574 if test "$GCC" != yes; then
4579 if test "$GCC" = yes; then
4580 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4582 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4595 if test -n "$ac_tool_prefix"; then
4596 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4597 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if ${ac_cv_prog_OBJDUMP+:} false; then :
4601 $as_echo_n "(cached) " >&6
4603 if test -n "$OBJDUMP"; then
4604 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 OBJDUMP=$ac_cv_prog_OBJDUMP
4624 if test -n "$OBJDUMP"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4626 $as_echo "$OBJDUMP" >&6; }
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4634 if test -z "$ac_cv_prog_OBJDUMP"; then
4635 ac_ct_OBJDUMP=$OBJDUMP
4636 # Extract the first word of "objdump", so it can be a program name with args.
4637 set dummy objdump; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4641 $as_echo_n "(cached) " >&6
4643 if test -n "$ac_ct_OBJDUMP"; then
4644 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4664 if test -n "$ac_ct_OBJDUMP"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4666 $as_echo "$ac_ct_OBJDUMP" >&6; }
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4672 if test "x$ac_ct_OBJDUMP" = x; then
4675 case $cross_compiling:$ac_tool_warned in
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4679 ac_tool_warned=yes ;;
4681 OBJDUMP=$ac_ct_OBJDUMP
4684 OBJDUMP="$ac_cv_prog_OBJDUMP"
4687 test -z "$OBJDUMP" && OBJDUMP=objdump
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4695 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4696 if ${lt_cv_deplibs_check_method+:} false; then :
4697 $as_echo_n "(cached) " >&6
4699 lt_cv_file_magic_cmd='$MAGIC_CMD'
4700 lt_cv_file_magic_test_file=
4701 lt_cv_deplibs_check_method='unknown'
4702 # Need to set the preceding variable on all platforms that support
4703 # interlibrary dependencies.
4704 # 'none' -- dependencies not supported.
4705 # `unknown' -- same as none, but documents that we really don't know.
4706 # 'pass_all' -- all dependencies passed with no checks.
4707 # 'test_compile' -- check by making test program.
4708 # 'file_magic [[regex]]' -- check by looking for files in library path
4709 # which responds to the $file_magic_cmd with a given extended regex.
4710 # If you have `file' or equivalent on your system and you're not sure
4711 # whether `pass_all' will *always* work, you probably want this one.
4715 lt_cv_deplibs_check_method=pass_all
4719 lt_cv_deplibs_check_method=pass_all
4723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4724 lt_cv_file_magic_cmd='/usr/bin/file -L'
4725 lt_cv_file_magic_test_file=/shlib/libc.so
4729 # func_win32_libid is a shell function defined in ltmain.sh
4730 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4731 lt_cv_file_magic_cmd='func_win32_libid'
4732 lt_cv_deplibs_check_method=pass_all
4736 # Base MSYS/MinGW do not provide the 'file' command needed by
4737 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4738 # unless we find 'file', for example because we are cross-compiling.
4739 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4740 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4741 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4742 lt_cv_file_magic_cmd='func_win32_libid'
4744 # Keep this pattern in sync with the one in func_win32_libid.
4745 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4746 lt_cv_file_magic_cmd='$OBJDUMP -f'
4748 lt_cv_deplibs_check_method=pass_all
4752 # use the weaker test based on 'objdump'. See mingw*.
4753 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4754 lt_cv_file_magic_cmd='$OBJDUMP -f'
4757 darwin* | rhapsody*)
4758 lt_cv_deplibs_check_method=pass_all
4761 freebsd* | dragonfly*)
4762 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4765 # Not sure whether the presence of OpenBSD here was a mistake.
4766 # Let's accept both of them until this is cleared up.
4767 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4768 lt_cv_file_magic_cmd=/usr/bin/file
4769 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4773 lt_cv_deplibs_check_method=pass_all
4778 lt_cv_deplibs_check_method=pass_all
4782 lt_cv_deplibs_check_method=pass_all
4785 hpux10.20* | hpux11*)
4786 lt_cv_file_magic_cmd=/usr/bin/file
4789 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4790 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4793 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4794 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4797 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4798 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4804 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4808 irix5* | irix6* | nonstopux*)
4810 *-32|*"-32 ") libmagic=32-bit;;
4811 *-n32|*"-n32 ") libmagic=N32;;
4812 *-64|*"-64 ") libmagic=64-bit;;
4813 *) libmagic=never-match;;
4815 lt_cv_deplibs_check_method=pass_all
4818 # This must be glibc/ELF.
4819 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4820 lt_cv_deplibs_check_method=pass_all
4824 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4825 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4833 lt_cv_file_magic_cmd=/usr/bin/file
4834 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4838 lt_cv_deplibs_check_method=pass_all
4842 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4843 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4849 osf3* | osf4* | osf5*)
4850 lt_cv_deplibs_check_method=pass_all
4854 lt_cv_deplibs_check_method=pass_all
4858 lt_cv_deplibs_check_method=pass_all
4861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4862 lt_cv_deplibs_check_method=pass_all
4866 case $host_vendor in
4868 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]'
4869 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4872 lt_cv_deplibs_check_method=pass_all
4875 lt_cv_file_magic_cmd='/bin/file'
4876 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4879 lt_cv_file_magic_cmd='/bin/file'
4880 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4881 lt_cv_file_magic_test_file=/lib/libc.so
4884 lt_cv_deplibs_check_method=pass_all
4887 lt_cv_deplibs_check_method=pass_all
4893 lt_cv_deplibs_check_method=pass_all
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4899 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4903 if test "$build" = "$host"; then
4906 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4909 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4915 file_magic_cmd=$lt_cv_file_magic_cmd
4916 deplibs_check_method=$lt_cv_deplibs_check_method
4917 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4940 if test -n "$ac_tool_prefix"; then
4941 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4942 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_prog_DLLTOOL+:} false; then :
4946 $as_echo_n "(cached) " >&6
4948 if test -n "$DLLTOOL"; then
4949 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 DLLTOOL=$ac_cv_prog_DLLTOOL
4969 if test -n "$DLLTOOL"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4971 $as_echo "$DLLTOOL" >&6; }
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4979 if test -z "$ac_cv_prog_DLLTOOL"; then
4980 ac_ct_DLLTOOL=$DLLTOOL
4981 # Extract the first word of "dlltool", so it can be a program name with args.
4982 set dummy dlltool; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4986 $as_echo_n "(cached) " >&6
4988 if test -n "$ac_ct_DLLTOOL"; then
4989 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5009 if test -n "$ac_ct_DLLTOOL"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5011 $as_echo "$ac_ct_DLLTOOL" >&6; }
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5017 if test "x$ac_ct_DLLTOOL" = x; then
5020 case $cross_compiling:$ac_tool_warned in
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5024 ac_tool_warned=yes ;;
5026 DLLTOOL=$ac_ct_DLLTOOL
5029 DLLTOOL="$ac_cv_prog_DLLTOOL"
5032 test -z "$DLLTOOL" && DLLTOOL=dlltool
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5041 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5042 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5043 $as_echo_n "(cached) " >&6
5045 lt_cv_sharedlib_from_linklib_cmd='unknown'
5048 cygwin* | mingw* | pw32* | cegcc*)
5049 # two different shell functions defined in ltmain.sh
5050 # decide which to use based on capabilities of $DLLTOOL
5051 case `$DLLTOOL --help 2>&1` in
5052 *--identify-strict*)
5053 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5056 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5061 # fallback: assume linklib IS sharedlib
5062 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5068 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5069 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5070 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5079 if test -n "$ac_tool_prefix"; then
5082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if ${ac_cv_prog_AR+:} false; then :
5087 $as_echo_n "(cached) " >&6
5089 if test -n "$AR"; then
5090 ac_cv_prog_AR="$AR" # Let the user override the test.
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 if test -n "$AR"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5112 $as_echo "$AR" >&6; }
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5119 test -n "$AR" && break
5122 if test -z "$AR"; then
5126 # Extract the first word of "$ac_prog", so it can be a program name with args.
5127 set dummy $ac_prog; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5131 $as_echo_n "(cached) " >&6
5133 if test -n "$ac_ct_AR"; then
5134 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143 ac_cv_prog_ac_ct_AR="$ac_prog"
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5154 if test -n "$ac_ct_AR"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5156 $as_echo "$ac_ct_AR" >&6; }
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5163 test -n "$ac_ct_AR" && break
5166 if test "x$ac_ct_AR" = x; then
5169 case $cross_compiling:$ac_tool_warned in
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5173 ac_tool_warned=yes ;;
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5193 $as_echo_n "checking for archiver @FILE support... " >&6; }
5194 if ${lt_cv_ar_at_file+:} false; then :
5195 $as_echo_n "(cached) " >&6
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5209 if ac_fn_c_try_compile "$LINENO"; then :
5210 echo conftest.$ac_objext > conftest.lst
5211 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5213 (eval $lt_ar_try) 2>&5
5215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5216 test $ac_status = 0; }
5217 if test "$ac_status" -eq 0; then
5218 # Ensure the archiver fails upon bogus file names.
5219 rm -f conftest.$ac_objext libconftest.a
5220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5221 (eval $lt_ar_try) 2>&5
5223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5224 test $ac_status = 0; }
5225 if test "$ac_status" -ne 0; then
5229 rm -f conftest.* libconftest.a
5232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5236 $as_echo "$lt_cv_ar_at_file" >&6; }
5238 if test "x$lt_cv_ar_at_file" = xno; then
5241 archiver_list_spec=$lt_cv_ar_at_file
5250 if test -n "$ac_tool_prefix"; then
5251 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5252 set dummy ${ac_tool_prefix}strip; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if ${ac_cv_prog_STRIP+:} false; then :
5256 $as_echo_n "(cached) " >&6
5258 if test -n "$STRIP"; then
5259 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 STRIP=$ac_cv_prog_STRIP
5279 if test -n "$STRIP"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5281 $as_echo "$STRIP" >&6; }
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5289 if test -z "$ac_cv_prog_STRIP"; then
5291 # Extract the first word of "strip", so it can be a program name with args.
5292 set dummy strip; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5296 $as_echo_n "(cached) " >&6
5298 if test -n "$ac_ct_STRIP"; then
5299 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308 ac_cv_prog_ac_ct_STRIP="strip"
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5319 if test -n "$ac_ct_STRIP"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5321 $as_echo "$ac_ct_STRIP" >&6; }
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5327 if test "x$ac_ct_STRIP" = x; then
5330 case $cross_compiling:$ac_tool_warned in
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5334 ac_tool_warned=yes ;;
5339 STRIP="$ac_cv_prog_STRIP"
5342 test -z "$STRIP" && STRIP=:
5349 if test -n "$ac_tool_prefix"; then
5350 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if ${ac_cv_prog_RANLIB+:} false; then :
5355 $as_echo_n "(cached) " >&6
5357 if test -n "$RANLIB"; then
5358 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5377 RANLIB=$ac_cv_prog_RANLIB
5378 if test -n "$RANLIB"; then
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5380 $as_echo "$RANLIB" >&6; }
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5388 if test -z "$ac_cv_prog_RANLIB"; then
5389 ac_ct_RANLIB=$RANLIB
5390 # Extract the first word of "ranlib", so it can be a program name with args.
5391 set dummy ranlib; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5395 $as_echo_n "(cached) " >&6
5397 if test -n "$ac_ct_RANLIB"; then
5398 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407 ac_cv_prog_ac_ct_RANLIB="ranlib"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5418 if test -n "$ac_ct_RANLIB"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5420 $as_echo "$ac_ct_RANLIB" >&6; }
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5426 if test "x$ac_ct_RANLIB" = x; then
5429 case $cross_compiling:$ac_tool_warned in
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5433 ac_tool_warned=yes ;;
5435 RANLIB=$ac_ct_RANLIB
5438 RANLIB="$ac_cv_prog_RANLIB"
5441 test -z "$RANLIB" && RANLIB=:
5448 # Determine commands to create old-style static archives.
5449 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5450 old_postinstall_cmds='chmod 644 $oldlib'
5451 old_postuninstall_cmds=
5453 if test -n "$RANLIB"; then
5456 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5459 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5462 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5467 lock_old_archive_extraction=yes ;;
5469 lock_old_archive_extraction=no ;;
5492 for ac_prog in gawk mawk nawk awk
5494 # Extract the first word of "$ac_prog", so it can be a program name with args.
5495 set dummy $ac_prog; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if ${ac_cv_prog_AWK+:} false; then :
5499 $as_echo_n "(cached) " >&6
5501 if test -n "$AWK"; then
5502 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511 ac_cv_prog_AWK="$ac_prog"
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 if test -n "$AWK"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5524 $as_echo "$AWK" >&6; }
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5531 test -n "$AWK" && break
5552 # If no C compiler was specified, use CC.
5555 # If no C compiler flags were specified, use CFLAGS.
5556 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5558 # Allow CC to be a program name with arguments.
5562 # Check for command to grab the raw symbol name followed by C symbol from nm.
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5564 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5565 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5566 $as_echo_n "(cached) " >&6
5569 # These are sane defaults that work on at least a few old systems.
5570 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5572 # Character class describing NM global symbol codes.
5573 symcode='[BCDEGRST]'
5575 # Regexp to match symbols that can be accessed directly from C.
5576 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5578 # Define system-specific variables.
5583 cygwin* | mingw* | pw32* | cegcc*)
5584 symcode='[ABCDGISTW]'
5587 if test "$host_cpu" = ia64; then
5588 symcode='[ABCDEGRST]'
5592 symcode='[BCDEGRST]'
5595 symcode='[BCDEGQRST]'
5606 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5614 # If we're using GNU nm, then use its standard symbol codes.
5615 case `$NM -V 2>&1` in
5616 *GNU* | *'with BFD'*)
5617 symcode='[ABCDGIRSTW]' ;;
5620 # Transform an extracted symbol line into a proper C declaration.
5621 # Some systems (esp. on ia64) link data and code symbols differently,
5622 # so use this general approach.
5623 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5625 # Transform an extracted symbol line into symbol name and symbol address
5626 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5627 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5629 # Handle CRLF in mingw tool chain
5633 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5637 # Try without a prefix underscore, then with it.
5638 for ac_symprfx in "" "_"; do
5640 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5641 symxfrm="\\1 $ac_symprfx\\2 \\2"
5643 # Write the raw and C identifiers.
5644 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5645 # Fake it for dumpbin and say T for any non-static function
5646 # and D for any global variable.
5647 # Also find C++ and __fastcall symbols from MSVC++,
5648 # which start with @ or ?.
5649 lt_cv_sys_global_symbol_pipe="$AWK '"\
5650 " {last_section=section; section=\$ 3};"\
5651 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5652 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5653 " \$ 0!~/External *\|/{next};"\
5654 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5655 " {if(hide[section]) next};"\
5656 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5657 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5658 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5659 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5660 " ' prfx=^$ac_symprfx"
5662 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5664 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5666 # Check to see that the pipe works correctly.
5670 cat > conftest.$ac_ext <<_LT_EOF
5675 void nm_test_func(void);
5676 void nm_test_func(void){}
5680 int main(){nm_test_var='a';nm_test_func();return(0);}
5683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5684 (eval $ac_compile) 2>&5
5686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5687 test $ac_status = 0; }; then
5688 # Now try to grab the symbols.
5690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5691 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5694 test $ac_status = 0; } && test -s "$nlist"; then
5695 # Try sorting and uniquifying the output.
5696 if sort "$nlist" | uniq > "$nlist"T; then
5697 mv -f "$nlist"T "$nlist"
5702 # Make sure that we snagged all the symbols we need.
5703 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5704 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5705 cat <<_LT_EOF > conftest.$ac_ext
5706 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5707 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5708 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5709 relocations are performed -- see ld's documentation on pseudo-relocs. */
5710 # define LT_DLSYM_CONST
5711 #elif defined(__osf__)
5712 /* This system does not cope well with relocations in const data. */
5713 # define LT_DLSYM_CONST
5715 # define LT_DLSYM_CONST const
5723 # Now generate the symbol file.
5724 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5726 cat <<_LT_EOF >> conftest.$ac_ext
5728 /* The mapping between symbol names and symbols. */
5729 LT_DLSYM_CONST struct {
5733 lt__PROGRAM__LTX_preloaded_symbols[] =
5735 { "@PROGRAM@", (void *) 0 },
5737 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5738 cat <<\_LT_EOF >> conftest.$ac_ext
5742 /* This works around a problem in FreeBSD linker */
5743 #ifdef FREEBSD_WORKAROUND
5744 static const void *lt_preloaded_setup() {
5745 return lt__PROGRAM__LTX_preloaded_symbols;
5753 # Now try linking the two files.
5754 mv conftest.$ac_objext conftstm.$ac_objext
5755 lt_globsym_save_LIBS=$LIBS
5756 lt_globsym_save_CFLAGS=$CFLAGS
5757 LIBS="conftstm.$ac_objext"
5758 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5760 (eval $ac_link) 2>&5
5762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5763 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5766 LIBS=$lt_globsym_save_LIBS
5767 CFLAGS=$lt_globsym_save_CFLAGS
5769 echo "cannot find nm_test_func in $nlist" >&5
5772 echo "cannot find nm_test_var in $nlist" >&5
5775 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5778 echo "$progname: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5781 rm -rf conftest* conftst*
5783 # Do not use the global_symbol_pipe unless it works.
5784 if test "$pipe_works" = yes; then
5787 lt_cv_sys_global_symbol_pipe=
5793 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5794 lt_cv_sys_global_symbol_to_cdecl=
5796 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5798 $as_echo "failed" >&6; }
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5801 $as_echo "ok" >&6; }
5804 # Response file support.
5805 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5806 nm_file_list_spec='@'
5807 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5808 nm_file_list_spec='@'
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5838 $as_echo_n "checking for sysroot... " >&6; }
5840 # Check whether --with-sysroot was given.
5841 if test "${with_sysroot+set}" = set; then :
5842 withval=$with_sysroot;
5849 case ${with_sysroot} in #(
5851 if test "$GCC" = yes; then
5852 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5856 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5862 $as_echo "${with_sysroot}" >&6; }
5863 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5868 $as_echo "${lt_sysroot:-no}" >&6; }
5874 # Check whether --enable-libtool-lock was given.
5875 if test "${enable_libtool_lock+set}" = set; then :
5876 enableval=$enable_libtool_lock;
5879 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5881 # Some flags need to be propagated to the compiler or linker for good
5885 # Find out which ABI we are using.
5886 echo 'int i;' > conftest.$ac_ext
5887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5888 (eval $ac_compile) 2>&5
5890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5891 test $ac_status = 0; }; then
5892 case `/usr/bin/file conftest.$ac_objext` in
5904 # Find out which ABI we are using.
5905 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5907 (eval $ac_compile) 2>&5
5909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5910 test $ac_status = 0; }; then
5911 if test "$lt_cv_prog_gnu_ld" = yes; then
5912 case `/usr/bin/file conftest.$ac_objext` in
5914 LD="${LD-ld} -melf32bsmip"
5917 LD="${LD-ld} -melf32bmipn32"
5920 LD="${LD-ld} -melf64bmip"
5924 case `/usr/bin/file conftest.$ac_objext` in
5940 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5941 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5942 # Find out which ABI we are using.
5943 echo 'int i;' > conftest.$ac_ext
5944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5945 (eval $ac_compile) 2>&5
5947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5948 test $ac_status = 0; }; then
5949 case `/usr/bin/file conftest.o` in
5952 x86_64-*kfreebsd*-gnu)
5953 LD="${LD-ld} -m elf_i386_fbsd"
5956 LD="${LD-ld} -m elf_i386"
5958 ppc64-*linux*|powerpc64-*linux*)
5959 LD="${LD-ld} -m elf32ppclinux"
5962 LD="${LD-ld} -m elf_s390"
5965 LD="${LD-ld} -m elf32_sparc"
5971 x86_64-*kfreebsd*-gnu)
5972 LD="${LD-ld} -m elf_x86_64_fbsd"
5975 LD="${LD-ld} -m elf_x86_64"
5977 ppc*-*linux*|powerpc*-*linux*)
5978 LD="${LD-ld} -m elf64ppc"
5980 s390*-*linux*|s390*-*tpf*)
5981 LD="${LD-ld} -m elf64_s390"
5984 LD="${LD-ld} -m elf64_sparc"
5994 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5995 SAVE_CFLAGS="$CFLAGS"
5996 CFLAGS="$CFLAGS -belf"
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5998 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5999 if ${lt_cv_cc_needs_belf+:} false; then :
6000 $as_echo_n "(cached) " >&6
6003 ac_cpp='$CPP $CPPFLAGS'
6004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6019 if ac_fn_c_try_link "$LINENO"; then :
6020 lt_cv_cc_needs_belf=yes
6022 lt_cv_cc_needs_belf=no
6024 rm -f core conftest.err conftest.$ac_objext \
6025 conftest$ac_exeext conftest.$ac_ext
6027 ac_cpp='$CPP $CPPFLAGS'
6028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6034 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6035 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6036 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6037 CFLAGS="$SAVE_CFLAGS"
6041 # Find out which ABI we are using.
6042 echo 'int i;' > conftest.$ac_ext
6043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6044 (eval $ac_compile) 2>&5
6046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6047 test $ac_status = 0; }; then
6048 case `/usr/bin/file conftest.o` in
6050 case $lt_cv_prog_gnu_ld in
6054 LD="${LD-ld} -m elf_x86_64"
6057 LD="${LD-ld} -m elf64_sparc"
6060 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6061 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6066 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6078 need_locks="$enable_libtool_lock"
6080 if test -n "$ac_tool_prefix"; then
6081 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6082 set dummy ${ac_tool_prefix}mt; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6086 $as_echo_n "(cached) " >&6
6088 if test -n "$MANIFEST_TOOL"; then
6089 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6109 if test -n "$MANIFEST_TOOL"; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6111 $as_echo "$MANIFEST_TOOL" >&6; }
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114 $as_echo "no" >&6; }
6119 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6120 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6121 # Extract the first word of "mt", so it can be a program name with args.
6122 set dummy mt; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6126 $as_echo_n "(cached) " >&6
6128 if test -n "$ac_ct_MANIFEST_TOOL"; then
6129 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6149 if test -n "$ac_ct_MANIFEST_TOOL"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6151 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6157 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6160 case $cross_compiling:$ac_tool_warned in
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6164 ac_tool_warned=yes ;;
6166 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6169 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6172 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6174 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6175 if ${lt_cv_path_mainfest_tool+:} false; then :
6176 $as_echo_n "(cached) " >&6
6178 lt_cv_path_mainfest_tool=no
6179 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6180 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6181 cat conftest.err >&5
6182 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6183 lt_cv_path_mainfest_tool=yes
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6188 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6189 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6199 rhapsody* | darwin*)
6200 if test -n "$ac_tool_prefix"; then
6201 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6202 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6206 $as_echo_n "(cached) " >&6
6208 if test -n "$DSYMUTIL"; then
6209 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6229 if test -n "$DSYMUTIL"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6231 $as_echo "$DSYMUTIL" >&6; }
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6239 if test -z "$ac_cv_prog_DSYMUTIL"; then
6240 ac_ct_DSYMUTIL=$DSYMUTIL
6241 # Extract the first word of "dsymutil", so it can be a program name with args.
6242 set dummy dsymutil; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6246 $as_echo_n "(cached) " >&6
6248 if test -n "$ac_ct_DSYMUTIL"; then
6249 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6258 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6269 if test -n "$ac_ct_DSYMUTIL"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6271 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6277 if test "x$ac_ct_DSYMUTIL" = x; then
6280 case $cross_compiling:$ac_tool_warned in
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6284 ac_tool_warned=yes ;;
6286 DSYMUTIL=$ac_ct_DSYMUTIL
6289 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6292 if test -n "$ac_tool_prefix"; then
6293 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6294 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if ${ac_cv_prog_NMEDIT+:} false; then :
6298 $as_echo_n "(cached) " >&6
6300 if test -n "$NMEDIT"; then
6301 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6310 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 NMEDIT=$ac_cv_prog_NMEDIT
6321 if test -n "$NMEDIT"; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6323 $as_echo "$NMEDIT" >&6; }
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6331 if test -z "$ac_cv_prog_NMEDIT"; then
6332 ac_ct_NMEDIT=$NMEDIT
6333 # Extract the first word of "nmedit", so it can be a program name with args.
6334 set dummy nmedit; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6338 $as_echo_n "(cached) " >&6
6340 if test -n "$ac_ct_NMEDIT"; then
6341 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6361 if test -n "$ac_ct_NMEDIT"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6363 $as_echo "$ac_ct_NMEDIT" >&6; }
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6369 if test "x$ac_ct_NMEDIT" = x; then
6372 case $cross_compiling:$ac_tool_warned in
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376 ac_tool_warned=yes ;;
6378 NMEDIT=$ac_ct_NMEDIT
6381 NMEDIT="$ac_cv_prog_NMEDIT"
6384 if test -n "$ac_tool_prefix"; then
6385 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6386 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if ${ac_cv_prog_LIPO+:} false; then :
6390 $as_echo_n "(cached) " >&6
6392 if test -n "$LIPO"; then
6393 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6402 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 LIPO=$ac_cv_prog_LIPO
6413 if test -n "$LIPO"; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6415 $as_echo "$LIPO" >&6; }
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6423 if test -z "$ac_cv_prog_LIPO"; then
6425 # Extract the first word of "lipo", so it can be a program name with args.
6426 set dummy lipo; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6430 $as_echo_n "(cached) " >&6
6432 if test -n "$ac_ct_LIPO"; then
6433 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6442 ac_cv_prog_ac_ct_LIPO="lipo"
6443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6453 if test -n "$ac_ct_LIPO"; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6455 $as_echo "$ac_ct_LIPO" >&6; }
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6461 if test "x$ac_ct_LIPO" = x; then
6464 case $cross_compiling:$ac_tool_warned in
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6468 ac_tool_warned=yes ;;
6473 LIPO="$ac_cv_prog_LIPO"
6476 if test -n "$ac_tool_prefix"; then
6477 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6478 set dummy ${ac_tool_prefix}otool; ac_word=$2
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480 $as_echo_n "checking for $ac_word... " >&6; }
6481 if ${ac_cv_prog_OTOOL+:} false; then :
6482 $as_echo_n "(cached) " >&6
6484 if test -n "$OTOOL"; then
6485 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6494 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 OTOOL=$ac_cv_prog_OTOOL
6505 if test -n "$OTOOL"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6507 $as_echo "$OTOOL" >&6; }
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6515 if test -z "$ac_cv_prog_OTOOL"; then
6517 # Extract the first word of "otool", so it can be a program name with args.
6518 set dummy otool; ac_word=$2
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520 $as_echo_n "checking for $ac_word... " >&6; }
6521 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6522 $as_echo_n "(cached) " >&6
6524 if test -n "$ac_ct_OTOOL"; then
6525 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534 ac_cv_prog_ac_ct_OTOOL="otool"
6535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6545 if test -n "$ac_ct_OTOOL"; then
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6547 $as_echo "$ac_ct_OTOOL" >&6; }
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550 $as_echo "no" >&6; }
6553 if test "x$ac_ct_OTOOL" = x; then
6556 case $cross_compiling:$ac_tool_warned in
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6560 ac_tool_warned=yes ;;
6565 OTOOL="$ac_cv_prog_OTOOL"
6568 if test -n "$ac_tool_prefix"; then
6569 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6570 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_prog_OTOOL64+:} false; then :
6574 $as_echo_n "(cached) " >&6
6576 if test -n "$OTOOL64"; then
6577 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 OTOOL64=$ac_cv_prog_OTOOL64
6597 if test -n "$OTOOL64"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6599 $as_echo "$OTOOL64" >&6; }
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6607 if test -z "$ac_cv_prog_OTOOL64"; then
6608 ac_ct_OTOOL64=$OTOOL64
6609 # Extract the first word of "otool64", so it can be a program name with args.
6610 set dummy otool64; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6614 $as_echo_n "(cached) " >&6
6616 if test -n "$ac_ct_OTOOL64"; then
6617 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626 ac_cv_prog_ac_ct_OTOOL64="otool64"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6637 if test -n "$ac_ct_OTOOL64"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6639 $as_echo "$ac_ct_OTOOL64" >&6; }
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6645 if test "x$ac_ct_OTOOL64" = x; then
6648 case $cross_compiling:$ac_tool_warned in
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6652 ac_tool_warned=yes ;;
6654 OTOOL64=$ac_ct_OTOOL64
6657 OTOOL64="$ac_cv_prog_OTOOL64"
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6687 $as_echo_n "checking for -single_module linker flag... " >&6; }
6688 if ${lt_cv_apple_cc_single_mod+:} false; then :
6689 $as_echo_n "(cached) " >&6
6691 lt_cv_apple_cc_single_mod=no
6692 if test -z "${LT_MULTI_MODULE}"; then
6693 # By default we will add the -single_module flag. You can override
6694 # by either setting the environment variable LT_MULTI_MODULE
6695 # non-empty at configure time, or by adding -multi_module to the
6697 rm -rf libconftest.dylib*
6698 echo "int foo(void){return 1;}" > conftest.c
6699 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6700 -dynamiclib -Wl,-single_module conftest.c" >&5
6701 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6702 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6704 # If there is a non-empty error log, and "single_module"
6705 # appears in it, assume the flag caused a linker warning
6706 if test -s conftest.err && $GREP single_module conftest.err; then
6707 cat conftest.err >&5
6708 # Otherwise, if the output was created with a 0 exit code from
6709 # the compiler, it worked.
6710 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6711 lt_cv_apple_cc_single_mod=yes
6713 cat conftest.err >&5
6715 rm -rf libconftest.dylib*
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6720 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6723 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6724 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6725 $as_echo_n "(cached) " >&6
6727 lt_cv_ld_exported_symbols_list=no
6728 save_LDFLAGS=$LDFLAGS
6729 echo "_main" > conftest.sym
6730 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6742 if ac_fn_c_try_link "$LINENO"; then :
6743 lt_cv_ld_exported_symbols_list=yes
6745 lt_cv_ld_exported_symbols_list=no
6747 rm -f core conftest.err conftest.$ac_objext \
6748 conftest$ac_exeext conftest.$ac_ext
6749 LDFLAGS="$save_LDFLAGS"
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6753 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6756 $as_echo_n "checking for -force_load linker flag... " >&6; }
6757 if ${lt_cv_ld_force_load+:} false; then :
6758 $as_echo_n "(cached) " >&6
6760 lt_cv_ld_force_load=no
6761 cat > conftest.c << _LT_EOF
6762 int forced_loaded() { return 2;}
6764 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6765 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6766 echo "$AR cru libconftest.a conftest.o" >&5
6767 $AR cru libconftest.a conftest.o 2>&5
6768 echo "$RANLIB libconftest.a" >&5
6769 $RANLIB libconftest.a 2>&5
6770 cat > conftest.c << _LT_EOF
6771 int main() { return 0;}
6773 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6774 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6776 if test -s conftest.err && $GREP force_load conftest.err; then
6777 cat conftest.err >&5
6778 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6779 lt_cv_ld_force_load=yes
6781 cat conftest.err >&5
6783 rm -f conftest.err libconftest.a conftest conftest.c
6784 rm -rf conftest.dSYM
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6788 $as_echo "$lt_cv_ld_force_load" >&6; }
6790 rhapsody* | darwin1.[012])
6791 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6793 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6794 darwin*) # darwin 5.x on
6795 # if running on 10.5 or later, the deployment target defaults
6796 # to the OS version, if on x86, and 10.4, the deployment
6797 # target defaults to 10.4. Don't you love it?
6798 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6799 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6800 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6802 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6804 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6808 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6809 _lt_dar_single_mod='$single_module'
6811 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6812 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6814 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6816 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6817 _lt_dsymutil='~$DSYMUTIL $lib || :'
6825 ac_cpp='$CPP $CPPFLAGS'
6826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6830 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6831 # On Suns, sometimes $CPP names a directory.
6832 if test -n "$CPP" && test -d "$CPP"; then
6835 if test -z "$CPP"; then
6836 if ${ac_cv_prog_CPP+:} false; then :
6837 $as_echo_n "(cached) " >&6
6839 # Double quotes because CPP needs to be expanded
6840 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6843 for ac_c_preproc_warn_flag in '' yes
6845 # Use a header file that comes with gcc, so configuring glibc
6846 # with a fresh cross-compiler works.
6847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6848 # <limits.h> exists even on freestanding compilers.
6849 # On the NeXT, cc -E runs the code through the compiler's parser,
6850 # not just through cpp. "Syntax error" is here to catch this case.
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6854 # include <limits.h>
6856 # include <assert.h>
6860 if ac_fn_c_try_cpp "$LINENO"; then :
6863 # Broken: fails on valid input.
6866 rm -f conftest.err conftest.i conftest.$ac_ext
6868 # OK, works on sane cases. Now check whether nonexistent headers
6869 # can be detected and how.
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 #include <ac_nonexistent.h>
6874 if ac_fn_c_try_cpp "$LINENO"; then :
6875 # Broken: success on invalid input.
6878 # Passes both tests.
6882 rm -f conftest.err conftest.i conftest.$ac_ext
6885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6886 rm -f conftest.i conftest.err conftest.$ac_ext
6887 if $ac_preproc_ok; then :
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6900 $as_echo "$CPP" >&6; }
6902 for ac_c_preproc_warn_flag in '' yes
6904 # Use a header file that comes with gcc, so configuring glibc
6905 # with a fresh cross-compiler works.
6906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6907 # <limits.h> exists even on freestanding compilers.
6908 # On the NeXT, cc -E runs the code through the compiler's parser,
6909 # not just through cpp. "Syntax error" is here to catch this case.
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6913 # include <limits.h>
6915 # include <assert.h>
6919 if ac_fn_c_try_cpp "$LINENO"; then :
6922 # Broken: fails on valid input.
6925 rm -f conftest.err conftest.i conftest.$ac_ext
6927 # OK, works on sane cases. Now check whether nonexistent headers
6928 # can be detected and how.
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 #include <ac_nonexistent.h>
6933 if ac_fn_c_try_cpp "$LINENO"; then :
6934 # Broken: success on invalid input.
6937 # Passes both tests.
6941 rm -f conftest.err conftest.i conftest.$ac_ext
6944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6945 rm -f conftest.i conftest.err conftest.$ac_ext
6946 if $ac_preproc_ok; then :
6949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6951 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6952 See \`config.log' for more details" "$LINENO" 5; }
6956 ac_cpp='$CPP $CPPFLAGS'
6957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6963 $as_echo_n "checking for ANSI C header files... " >&6; }
6964 if ${ac_cv_header_stdc+:} false; then :
6965 $as_echo_n "(cached) " >&6
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6982 if ac_fn_c_try_compile "$LINENO"; then :
6983 ac_cv_header_stdc=yes
6985 ac_cv_header_stdc=no
6987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989 if test $ac_cv_header_stdc = yes; then
6990 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6997 $EGREP "memchr" >/dev/null 2>&1; then :
7000 ac_cv_header_stdc=no
7006 if test $ac_cv_header_stdc = yes; then
7007 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7014 $EGREP "free" >/dev/null 2>&1; then :
7017 ac_cv_header_stdc=no
7023 if test $ac_cv_header_stdc = yes; then
7024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7025 if test "$cross_compiling" = yes; then :
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7032 #if ((' ' & 0x0FF) == 0x020)
7033 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7034 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7036 # define ISLOWER(c) \
7037 (('a' <= (c) && (c) <= 'i') \
7038 || ('j' <= (c) && (c) <= 'r') \
7039 || ('s' <= (c) && (c) <= 'z'))
7040 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7043 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7048 for (i = 0; i < 256; i++)
7049 if (XOR (islower (i), ISLOWER (i))
7050 || toupper (i) != TOUPPER (i))
7055 if ac_fn_c_try_run "$LINENO"; then :
7058 ac_cv_header_stdc=no
7060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7061 conftest.$ac_objext conftest.beam conftest.$ac_ext
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7067 $as_echo "$ac_cv_header_stdc" >&6; }
7068 if test $ac_cv_header_stdc = yes; then
7070 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7074 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7075 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7076 inttypes.h stdint.h unistd.h
7078 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7079 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7081 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7082 cat >>confdefs.h <<_ACEOF
7083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7091 for ac_header in dlfcn.h
7093 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7095 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7096 cat >>confdefs.h <<_ACEOF
7097 #define HAVE_DLFCN_H 1
7109 enable_win32_dll=yes
7112 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7113 if test -n "$ac_tool_prefix"; then
7114 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7115 set dummy ${ac_tool_prefix}as; ac_word=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 $as_echo_n "checking for $ac_word... " >&6; }
7118 if ${ac_cv_prog_AS+:} false; then :
7119 $as_echo_n "(cached) " >&6
7121 if test -n "$AS"; then
7122 ac_cv_prog_AS="$AS" # Let the user override the test.
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131 ac_cv_prog_AS="${ac_tool_prefix}as"
7132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 if test -n "$AS"; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7144 $as_echo "$AS" >&6; }
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7152 if test -z "$ac_cv_prog_AS"; then
7154 # Extract the first word of "as", so it can be a program name with args.
7155 set dummy as; ac_word=$2
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 $as_echo_n "checking for $ac_word... " >&6; }
7158 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7159 $as_echo_n "(cached) " >&6
7161 if test -n "$ac_ct_AS"; then
7162 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171 ac_cv_prog_ac_ct_AS="as"
7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7182 if test -n "$ac_ct_AS"; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7184 $as_echo "$ac_ct_AS" >&6; }
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7190 if test "x$ac_ct_AS" = x; then
7193 case $cross_compiling:$ac_tool_warned in
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7197 ac_tool_warned=yes ;;
7205 if test -n "$ac_tool_prefix"; then
7206 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7207 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_DLLTOOL+:} false; then :
7211 $as_echo_n "(cached) " >&6
7213 if test -n "$DLLTOOL"; then
7214 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 DLLTOOL=$ac_cv_prog_DLLTOOL
7234 if test -n "$DLLTOOL"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7236 $as_echo "$DLLTOOL" >&6; }
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7244 if test -z "$ac_cv_prog_DLLTOOL"; then
7245 ac_ct_DLLTOOL=$DLLTOOL
7246 # Extract the first word of "dlltool", so it can be a program name with args.
7247 set dummy dlltool; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7251 $as_echo_n "(cached) " >&6
7253 if test -n "$ac_ct_DLLTOOL"; then
7254 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7274 if test -n "$ac_ct_DLLTOOL"; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7276 $as_echo "$ac_ct_DLLTOOL" >&6; }
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7282 if test "x$ac_ct_DLLTOOL" = x; then
7285 case $cross_compiling:$ac_tool_warned in
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289 ac_tool_warned=yes ;;
7291 DLLTOOL=$ac_ct_DLLTOOL
7294 DLLTOOL="$ac_cv_prog_DLLTOOL"
7297 if test -n "$ac_tool_prefix"; then
7298 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7299 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_prog_OBJDUMP+:} false; then :
7303 $as_echo_n "(cached) " >&6
7305 if test -n "$OBJDUMP"; then
7306 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 OBJDUMP=$ac_cv_prog_OBJDUMP
7326 if test -n "$OBJDUMP"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7328 $as_echo "$OBJDUMP" >&6; }
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7336 if test -z "$ac_cv_prog_OBJDUMP"; then
7337 ac_ct_OBJDUMP=$OBJDUMP
7338 # Extract the first word of "objdump", so it can be a program name with args.
7339 set dummy objdump; ac_word=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7343 $as_echo_n "(cached) " >&6
7345 if test -n "$ac_ct_OBJDUMP"; then
7346 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7355 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7366 if test -n "$ac_ct_OBJDUMP"; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7368 $as_echo "$ac_ct_OBJDUMP" >&6; }
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7374 if test "x$ac_ct_OBJDUMP" = x; then
7377 case $cross_compiling:$ac_tool_warned in
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7381 ac_tool_warned=yes ;;
7383 OBJDUMP=$ac_ct_OBJDUMP
7386 OBJDUMP="$ac_cv_prog_OBJDUMP"
7392 test -z "$AS" && AS=as
7398 test -z "$DLLTOOL" && DLLTOOL=dlltool
7404 test -z "$OBJDUMP" && OBJDUMP=objdump
7416 # Check whether --enable-shared was given.
7417 if test "${enable_shared+set}" = set; then :
7418 enableval=$enable_shared; p=${PACKAGE-default}
7420 yes) enable_shared=yes ;;
7421 no) enable_shared=no ;;
7424 # Look at the argument we got. We use all the common list separators.
7425 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7426 for pkg in $enableval; do
7428 if test "X$pkg" = "X$p"; then
7447 # Check whether --enable-static was given.
7448 if test "${enable_static+set}" = set; then :
7449 enableval=$enable_static; p=${PACKAGE-default}
7451 yes) enable_static=yes ;;
7452 no) enable_static=no ;;
7455 # Look at the argument we got. We use all the common list separators.
7456 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7457 for pkg in $enableval; do
7459 if test "X$pkg" = "X$p"; then
7479 # Check whether --with-pic was given.
7480 if test "${with_pic+set}" = set; then :
7481 withval=$with_pic; lt_p=${PACKAGE-default}
7483 yes|no) pic_mode=$withval ;;
7486 # Look at the argument we got. We use all the common list separators.
7487 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7488 for lt_pkg in $withval; do
7490 if test "X$lt_pkg" = "X$lt_p"; then
7502 test -z "$pic_mode" && pic_mode=default
7510 # Check whether --enable-fast-install was given.
7511 if test "${enable_fast_install+set}" = set; then :
7512 enableval=$enable_fast_install; p=${PACKAGE-default}
7514 yes) enable_fast_install=yes ;;
7515 no) enable_fast_install=no ;;
7517 enable_fast_install=no
7518 # Look at the argument we got. We use all the common list separators.
7519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7520 for pkg in $enableval; do
7522 if test "X$pkg" = "X$p"; then
7523 enable_fast_install=yes
7530 enable_fast_install=yes
7543 # This can be used to rebuild libtool when needed
7544 LIBTOOL_DEPS="$ltmain"
7546 # Always use our own libtool.
7547 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7578 test -z "$LN_S" && LN_S="ln -s"
7593 if test -n "${ZSH_VERSION+set}" ; then
7594 setopt NO_GLOB_SUBST
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7598 $as_echo_n "checking for objdir... " >&6; }
7599 if ${lt_cv_objdir+:} false; then :
7600 $as_echo_n "(cached) " >&6
7602 rm -f .libs 2>/dev/null
7603 mkdir .libs 2>/dev/null
7604 if test -d .libs; then
7607 # MS-DOS does not allow filenames that begin with a dot.
7610 rmdir .libs 2>/dev/null
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7613 $as_echo "$lt_cv_objdir" >&6; }
7614 objdir=$lt_cv_objdir
7620 cat >>confdefs.h <<_ACEOF
7621 #define LT_OBJDIR "$lt_cv_objdir/"
7629 # AIX sometimes has problems with the GCC collect2 program. For some
7630 # reason, if we set the COLLECT_NAMES environment variable, the problems
7631 # vanish in a puff of smoke.
7632 if test "X${COLLECT_NAMES+set}" != Xset; then
7634 export COLLECT_NAMES
7641 can_build_shared=yes
7643 # All known linkers require a `.a' archive for static linking (except MSVC,
7644 # which needs '.lib').
7647 with_gnu_ld="$lt_cv_prog_gnu_ld"
7650 old_CFLAGS="$CFLAGS"
7652 # Set sane defaults for various variables
7653 test -z "$CC" && CC=cc
7654 test -z "$LTCC" && LTCC=$CC
7655 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7656 test -z "$LD" && LD=ld
7657 test -z "$ac_objext" && ac_objext=o
7659 for cc_temp in $compiler""; do
7661 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7662 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7667 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7670 # Only perform the check for file, if the check method requires it
7671 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7672 case $deplibs_check_method in
7674 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7676 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7677 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7678 $as_echo_n "(cached) " >&6
7682 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7685 lt_save_MAGIC_CMD="$MAGIC_CMD"
7686 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7687 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7688 for ac_dir in $ac_dummy; do
7690 test -z "$ac_dir" && ac_dir=.
7691 if test -f $ac_dir/${ac_tool_prefix}file; then
7692 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7693 if test -n "$file_magic_test_file"; then
7694 case $deplibs_check_method in
7696 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7698 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7699 $EGREP "$file_magic_regex" > /dev/null; then
7704 *** Warning: the command libtool uses to detect shared libraries,
7705 *** $file_magic_cmd, produces output that libtool cannot recognize.
7706 *** The result is that libtool may fail to recognize shared libraries
7707 *** as such. This will affect the creation of libtool libraries that
7708 *** depend on shared libraries, but programs linked with such libtool
7709 *** libraries will work regardless of this problem. Nevertheless, you
7710 *** may want to report the problem to your system manager and/or to
7711 *** bug-libtool@gnu.org
7721 MAGIC_CMD="$lt_save_MAGIC_CMD"
7726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7727 if test -n "$MAGIC_CMD"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7729 $as_echo "$MAGIC_CMD" >&6; }
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7739 if test -z "$lt_cv_path_MAGIC_CMD"; then
7740 if test -n "$ac_tool_prefix"; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7742 $as_echo_n "checking for file... " >&6; }
7743 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7744 $as_echo_n "(cached) " >&6
7748 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7751 lt_save_MAGIC_CMD="$MAGIC_CMD"
7752 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7753 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7754 for ac_dir in $ac_dummy; do
7756 test -z "$ac_dir" && ac_dir=.
7757 if test -f $ac_dir/file; then
7758 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7759 if test -n "$file_magic_test_file"; then
7760 case $deplibs_check_method in
7762 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7763 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7764 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7765 $EGREP "$file_magic_regex" > /dev/null; then
7770 *** Warning: the command libtool uses to detect shared libraries,
7771 *** $file_magic_cmd, produces output that libtool cannot recognize.
7772 *** The result is that libtool may fail to recognize shared libraries
7773 *** as such. This will affect the creation of libtool libraries that
7774 *** depend on shared libraries, but programs linked with such libtool
7775 *** libraries will work regardless of this problem. Nevertheless, you
7776 *** may want to report the problem to your system manager and/or to
7777 *** bug-libtool@gnu.org
7787 MAGIC_CMD="$lt_save_MAGIC_CMD"
7792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7793 if test -n "$MAGIC_CMD"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7795 $as_echo "$MAGIC_CMD" >&6; }
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7811 # Use C for the default configuration in the libtool script
7815 ac_cpp='$CPP $CPPFLAGS'
7816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821 # Source file extension for C test sources.
7824 # Object file extension for compiled C test sources.
7828 # Code to be used in simple compile tests
7829 lt_simple_compile_test_code="int some_variable = 0;"
7831 # Code to be used in simple link tests
7832 lt_simple_link_test_code='int main(){return(0);}'
7840 # If no C compiler was specified, use CC.
7843 # If no C compiler flags were specified, use CFLAGS.
7844 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7846 # Allow CC to be a program name with arguments.
7849 # Save the default compiler, since it gets overwritten when the other
7850 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7851 compiler_DEFAULT=$CC
7853 # save warnings/boilerplate of simple test code
7854 ac_outfile=conftest.$ac_objext
7855 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7856 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7857 _lt_compiler_boilerplate=`cat conftest.err`
7860 ac_outfile=conftest.$ac_objext
7861 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7862 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7863 _lt_linker_boilerplate=`cat conftest.err`
7868 ## There is no encapsulation within the following macros, do not change
7869 ## the running order or otherwise move them around unless you know exactly
7870 ## what you are doing...
7871 if test -n "$compiler"; then
7873 lt_prog_compiler_no_builtin_flag=
7875 if test "$GCC" = yes; then
7876 case $cc_basename in
7878 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7880 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7884 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7885 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7886 $as_echo_n "(cached) " >&6
7888 lt_cv_prog_compiler_rtti_exceptions=no
7889 ac_outfile=conftest.$ac_objext
7890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7891 lt_compiler_flag="-fno-rtti -fno-exceptions"
7892 # Insert the option either (1) after the last *FLAGS variable, or
7893 # (2) before a word containing "conftest.", or (3) at the end.
7894 # Note that $ac_compile itself does not contain backslashes and begins
7895 # with a dollar sign (not a hyphen), so the echo should work correctly.
7896 # The option is referenced via a variable to avoid confusing sed.
7897 lt_compile=`echo "$ac_compile" | $SED \
7898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7900 -e 's:$: $lt_compiler_flag:'`
7901 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7902 (eval "$lt_compile" 2>conftest.err)
7904 cat conftest.err >&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 if (exit $ac_status) && test -s "$ac_outfile"; then
7907 # The compiler can only warn and ignore the option if not recognized
7908 # So say no if there are warnings other than the usual output.
7909 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7911 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7912 lt_cv_prog_compiler_rtti_exceptions=yes
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7919 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7921 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7922 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7934 lt_prog_compiler_wl=
7935 lt_prog_compiler_pic=
7936 lt_prog_compiler_static=
7939 if test "$GCC" = yes; then
7940 lt_prog_compiler_wl='-Wl,'
7941 lt_prog_compiler_static='-static'
7945 # All AIX code is PIC.
7946 if test "$host_cpu" = ia64; then
7947 # AIX 5 now supports IA64 processor
7948 lt_prog_compiler_static='-Bstatic'
7955 # see comment about AmigaOS4 .so support
7956 lt_prog_compiler_pic='-fPIC'
7959 # FIXME: we need at least 68020 code to build shared libraries, but
7960 # adding the `-m68020' flag to GCC prevents building anything better,
7962 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7967 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7968 # PIC is the default for these OSes.
7971 mingw* | cygwin* | pw32* | os2* | cegcc*)
7972 # This hack is so that the source file can tell whether it is being
7973 # built for inclusion in a dll (and should export symbols for example).
7974 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7975 # (--disable-auto-import) libraries
7976 lt_prog_compiler_pic='-DDLL_EXPORT'
7979 darwin* | rhapsody*)
7980 # PIC is the default on this platform
7981 # Common symbols not allowed in MH_DYLIB files
7982 lt_prog_compiler_pic='-fno-common'
7986 # PIC is the default for Haiku.
7987 # The "-static" flag exists, but is broken.
7988 lt_prog_compiler_static=
7992 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7993 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7994 # sets the default TLS model and affects inlining.
8000 lt_prog_compiler_pic='-fPIC'
8006 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8007 # Instead, we relocate shared libraries at runtime.
8011 # Just because we use GCC doesn't mean we suddenly get shared libraries
8012 # on systems that don't support them.
8013 lt_prog_compiler_can_build_shared=no
8018 # QNX uses GNU C++, but need to define -shared option too, otherwise
8020 lt_prog_compiler_pic='-fPIC -shared'
8024 if test -d /usr/nec; then
8025 lt_prog_compiler_pic=-Kconform_pic
8030 lt_prog_compiler_pic='-fPIC'
8034 case $cc_basename in
8035 nvcc*) # Cuda Compiler Driver 2.2
8036 lt_prog_compiler_wl='-Xlinker '
8037 if test -n "$lt_prog_compiler_pic"; then
8038 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8043 # PORTME Check for flag to pass linker flags through the system compiler.
8046 lt_prog_compiler_wl='-Wl,'
8047 if test "$host_cpu" = ia64; then
8048 # AIX 5 now supports IA64 processor
8049 lt_prog_compiler_static='-Bstatic'
8051 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8055 mingw* | cygwin* | pw32* | os2* | cegcc*)
8056 # This hack is so that the source file can tell whether it is being
8057 # built for inclusion in a dll (and should export symbols for example).
8058 lt_prog_compiler_pic='-DDLL_EXPORT'
8061 hpux9* | hpux10* | hpux11*)
8062 lt_prog_compiler_wl='-Wl,'
8063 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8070 lt_prog_compiler_pic='+Z'
8073 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8074 lt_prog_compiler_static='${wl}-a ${wl}archive'
8077 irix5* | irix6* | nonstopux*)
8078 lt_prog_compiler_wl='-Wl,'
8079 # PIC (with -KPIC) is the default.
8080 lt_prog_compiler_static='-non_shared'
8083 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8084 case $cc_basename in
8085 # old Intel for x86_64 which still supported -KPIC.
8087 lt_prog_compiler_wl='-Wl,'
8088 lt_prog_compiler_pic='-KPIC'
8089 lt_prog_compiler_static='-static'
8091 # icc used to be incompatible with GCC.
8092 # ICC 10 doesn't accept -KPIC any more.
8094 lt_prog_compiler_wl='-Wl,'
8095 lt_prog_compiler_pic='-fPIC'
8096 lt_prog_compiler_static='-static'
8098 # Lahey Fortran 8.1.
8100 lt_prog_compiler_wl='-Wl,'
8101 lt_prog_compiler_pic='--shared'
8102 lt_prog_compiler_static='--static'
8105 # NAG Fortran compiler
8106 lt_prog_compiler_wl='-Wl,-Wl,,'
8107 lt_prog_compiler_pic='-PIC'
8108 lt_prog_compiler_static='-Bstatic'
8110 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8111 # Portland Group compilers (*not* the Pentium gcc compiler,
8112 # which looks to be a dead project)
8113 lt_prog_compiler_wl='-Wl,'
8114 lt_prog_compiler_pic='-fpic'
8115 lt_prog_compiler_static='-Bstatic'
8118 lt_prog_compiler_wl='-Wl,'
8119 # All Alpha code is PIC.
8120 lt_prog_compiler_static='-non_shared'
8122 xl* | bgxl* | bgf* | mpixl*)
8123 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8124 lt_prog_compiler_wl='-Wl,'
8125 lt_prog_compiler_pic='-qpic'
8126 lt_prog_compiler_static='-qstaticlink'
8129 case `$CC -V 2>&1 | sed 5q` in
8130 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8131 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8132 lt_prog_compiler_pic='-KPIC'
8133 lt_prog_compiler_static='-Bstatic'
8134 lt_prog_compiler_wl=''
8136 *Sun\ F* | *Sun*Fortran*)
8137 lt_prog_compiler_pic='-KPIC'
8138 lt_prog_compiler_static='-Bstatic'
8139 lt_prog_compiler_wl='-Qoption ld '
8143 lt_prog_compiler_pic='-KPIC'
8144 lt_prog_compiler_static='-Bstatic'
8145 lt_prog_compiler_wl='-Wl,'
8147 *Intel*\ [CF]*Compiler*)
8148 lt_prog_compiler_wl='-Wl,'
8149 lt_prog_compiler_pic='-fPIC'
8150 lt_prog_compiler_static='-static'
8153 lt_prog_compiler_wl='-Wl,'
8154 lt_prog_compiler_pic='-fpic'
8155 lt_prog_compiler_static='-Bstatic'
8163 lt_prog_compiler_pic='-KPIC'
8164 lt_prog_compiler_static='-Bstatic'
8168 # QNX uses GNU C++, but need to define -shared option too, otherwise
8170 lt_prog_compiler_pic='-fPIC -shared'
8173 osf3* | osf4* | osf5*)
8174 lt_prog_compiler_wl='-Wl,'
8175 # All OSF/1 code is PIC.
8176 lt_prog_compiler_static='-non_shared'
8180 lt_prog_compiler_static='-non_shared'
8184 lt_prog_compiler_pic='-KPIC'
8185 lt_prog_compiler_static='-Bstatic'
8186 case $cc_basename in
8187 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8188 lt_prog_compiler_wl='-Qoption ld ';;
8190 lt_prog_compiler_wl='-Wl,';;
8195 lt_prog_compiler_wl='-Qoption ld '
8196 lt_prog_compiler_pic='-PIC'
8197 lt_prog_compiler_static='-Bstatic'
8200 sysv4 | sysv4.2uw2* | sysv4.3*)
8201 lt_prog_compiler_wl='-Wl,'
8202 lt_prog_compiler_pic='-KPIC'
8203 lt_prog_compiler_static='-Bstatic'
8207 if test -d /usr/nec ;then
8208 lt_prog_compiler_pic='-Kconform_pic'
8209 lt_prog_compiler_static='-Bstatic'
8213 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8214 lt_prog_compiler_wl='-Wl,'
8215 lt_prog_compiler_pic='-KPIC'
8216 lt_prog_compiler_static='-Bstatic'
8220 lt_prog_compiler_wl='-Wl,'
8221 lt_prog_compiler_can_build_shared=no
8225 lt_prog_compiler_pic='-pic'
8226 lt_prog_compiler_static='-Bstatic'
8230 lt_prog_compiler_can_build_shared=no
8236 # For platforms which do not support PIC, -DPIC is meaningless:
8238 lt_prog_compiler_pic=
8241 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8246 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8247 if ${lt_cv_prog_compiler_pic+:} false; then :
8248 $as_echo_n "(cached) " >&6
8250 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8253 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8254 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8257 # Check to make sure the PIC flag actually works.
8259 if test -n "$lt_prog_compiler_pic"; then
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8261 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8262 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8263 $as_echo_n "(cached) " >&6
8265 lt_cv_prog_compiler_pic_works=no
8266 ac_outfile=conftest.$ac_objext
8267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8268 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8269 # Insert the option either (1) after the last *FLAGS variable, or
8270 # (2) before a word containing "conftest.", or (3) at the end.
8271 # Note that $ac_compile itself does not contain backslashes and begins
8272 # with a dollar sign (not a hyphen), so the echo should work correctly.
8273 # The option is referenced via a variable to avoid confusing sed.
8274 lt_compile=`echo "$ac_compile" | $SED \
8275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8277 -e 's:$: $lt_compiler_flag:'`
8278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8279 (eval "$lt_compile" 2>conftest.err)
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 if (exit $ac_status) && test -s "$ac_outfile"; then
8284 # The compiler can only warn and ignore the option if not recognized
8285 # So say no if there are warnings other than the usual output.
8286 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8288 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8289 lt_cv_prog_compiler_pic_works=yes
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8296 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8298 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8299 case $lt_prog_compiler_pic in
8301 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8304 lt_prog_compiler_pic=
8305 lt_prog_compiler_can_build_shared=no
8321 # Check to make sure the static flag actually works.
8323 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8325 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8326 if ${lt_cv_prog_compiler_static_works+:} false; then :
8327 $as_echo_n "(cached) " >&6
8329 lt_cv_prog_compiler_static_works=no
8330 save_LDFLAGS="$LDFLAGS"
8331 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8332 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8333 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8334 # The linker can only warn and ignore the option if not recognized
8335 # So say no if there are warnings
8336 if test -s conftest.err; then
8337 # Append any errors to the config.log.
8338 cat conftest.err 1>&5
8339 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8341 if diff conftest.exp conftest.er2 >/dev/null; then
8342 lt_cv_prog_compiler_static_works=yes
8345 lt_cv_prog_compiler_static_works=yes
8349 LDFLAGS="$save_LDFLAGS"
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8353 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8355 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8358 lt_prog_compiler_static=
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8368 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8369 if ${lt_cv_prog_compiler_c_o+:} false; then :
8370 $as_echo_n "(cached) " >&6
8372 lt_cv_prog_compiler_c_o=no
8373 $RM -r conftest 2>/dev/null
8377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8379 lt_compiler_flag="-o out/conftest2.$ac_objext"
8380 # Insert the option either (1) after the last *FLAGS variable, or
8381 # (2) before a word containing "conftest.", or (3) at the end.
8382 # Note that $ac_compile itself does not contain backslashes and begins
8383 # with a dollar sign (not a hyphen), so the echo should work correctly.
8384 lt_compile=`echo "$ac_compile" | $SED \
8385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8387 -e 's:$: $lt_compiler_flag:'`
8388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8389 (eval "$lt_compile" 2>out/conftest.err)
8391 cat out/conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8395 # The compiler can only warn and ignore the option if not recognized
8396 # So say no if there are warnings
8397 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8398 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8399 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8400 lt_cv_prog_compiler_c_o=yes
8405 # SGI C++ compiler will create directory out/ii_files/ for
8406 # template instantiation
8407 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8408 $RM out/* && rmdir out
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8415 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8423 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8424 if ${lt_cv_prog_compiler_c_o+:} false; then :
8425 $as_echo_n "(cached) " >&6
8427 lt_cv_prog_compiler_c_o=no
8428 $RM -r conftest 2>/dev/null
8432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8434 lt_compiler_flag="-o out/conftest2.$ac_objext"
8435 # Insert the option either (1) after the last *FLAGS variable, or
8436 # (2) before a word containing "conftest.", or (3) at the end.
8437 # Note that $ac_compile itself does not contain backslashes and begins
8438 # with a dollar sign (not a hyphen), so the echo should work correctly.
8439 lt_compile=`echo "$ac_compile" | $SED \
8440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8442 -e 's:$: $lt_compiler_flag:'`
8443 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8444 (eval "$lt_compile" 2>out/conftest.err)
8446 cat out/conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8450 # The compiler can only warn and ignore the option if not recognized
8451 # So say no if there are warnings
8452 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8453 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8454 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8455 lt_cv_prog_compiler_c_o=yes
8460 # SGI C++ compiler will create directory out/ii_files/ for
8461 # template instantiation
8462 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8463 $RM out/* && rmdir out
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8470 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8475 hard_links="nottested"
8476 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8477 # do not overwrite the value of need_locks provided by the user
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8479 $as_echo_n "checking if we can lock with hard links... " >&6; }
8482 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8484 ln conftest.a conftest.b 2>&5 || hard_links=no
8485 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8487 $as_echo "$hard_links" >&6; }
8488 if test "$hard_links" = no; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8490 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8503 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8506 allow_undefined_flag=
8507 always_export_symbols=no
8509 archive_expsym_cmds=
8510 compiler_needs_object=no
8511 enable_shared_with_static_runtimes=no
8512 export_dynamic_flag_spec=
8513 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8514 hardcode_automatic=no
8516 hardcode_direct_absolute=no
8517 hardcode_libdir_flag_spec=
8518 hardcode_libdir_separator=
8520 hardcode_shlibpath_var=unsupported
8522 link_all_deplibs=unknown
8525 old_archive_from_new_cmds=
8526 old_archive_from_expsyms_cmds=
8527 thread_safe_flag_spec=
8528 whole_archive_flag_spec=
8529 # include_expsyms should be a list of space-separated symbols to be *always*
8530 # included in the symbol list
8532 # exclude_expsyms can be an extended regexp of symbols to exclude
8533 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8534 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8535 # as well as any symbol that contains `d'.
8536 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8537 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8538 # platforms (ab)use it in PIC code, but their linkers get confused if
8539 # the symbol is explicitly referenced. Since portable code cannot
8540 # rely on this symbol name, it's probably fine to never include it in
8541 # preloaded symbol tables.
8542 # Exclude shared library initialization/finalization symbols.
8543 extract_expsyms_cmds=
8546 cygwin* | mingw* | pw32* | cegcc*)
8547 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8548 # When not using gcc, we currently assume that we are using
8549 # Microsoft Visual C++.
8550 if test "$GCC" != yes; then
8555 # we just hope/assume this is gcc and not c89 (= MSVC++)
8565 # On some targets, GNU ld is compatible enough with the native linker
8566 # that we're better off using the native interface for both.
8567 lt_use_gnu_ld_interface=no
8568 if test "$with_gnu_ld" = yes; then
8571 # The AIX port of GNU ld has always aspired to compatibility
8572 # with the native linker. However, as the warning in the GNU ld
8573 # block says, versions before 2.19.5* couldn't really create working
8574 # shared libraries, regardless of the interface used.
8575 case `$LD -v 2>&1` in
8576 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8577 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8578 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8580 lt_use_gnu_ld_interface=yes
8585 lt_use_gnu_ld_interface=yes
8590 if test "$lt_use_gnu_ld_interface" = yes; then
8591 # If archive_cmds runs LD, not CC, wlarc should be empty
8594 # Set some defaults for GNU ld with shared library support. These
8595 # are reset later if shared libraries are not supported. Putting them
8596 # here allows them to be overridden if necessary.
8597 runpath_var=LD_RUN_PATH
8598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8599 export_dynamic_flag_spec='${wl}--export-dynamic'
8600 # ancient GNU ld didn't support --whole-archive et. al.
8601 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8602 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8604 whole_archive_flag_spec=
8606 supports_anon_versioning=no
8607 case `$LD -v 2>&1` in
8608 *GNU\ gold*) supports_anon_versioning=yes ;;
8609 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8610 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8611 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8612 *\ 2.11.*) ;; # other 2.11 versions
8613 *) supports_anon_versioning=yes ;;
8616 # See if GNU ld supports shared libraries.
8619 # On AIX/PPC, the GNU linker is very broken
8620 if test "$host_cpu" != ia64; then
8624 *** Warning: the GNU linker, at least up to release 2.19, is reported
8625 *** to be unable to reliably create shared libraries on AIX.
8626 *** Therefore, libtool is disabling shared libraries support. If you
8627 *** really care for shared libraries, you may want to install binutils
8628 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8629 *** You will then need to restart the configuration process.
8638 # see comment about AmigaOS4 .so support
8639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8640 archive_expsym_cmds=''
8643 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)'
8644 hardcode_libdir_flag_spec='-L$libdir'
8645 hardcode_minus_L=yes
8651 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8652 allow_undefined_flag=unsupported
8653 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8654 # support --undefined. This deserves some investigation. FIXME
8655 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661 cygwin* | mingw* | pw32* | cegcc*)
8662 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8663 # as there is no search path for DLLs.
8664 hardcode_libdir_flag_spec='-L$libdir'
8665 export_dynamic_flag_spec='${wl}--export-all-symbols'
8666 allow_undefined_flag=unsupported
8667 always_export_symbols=no
8668 enable_shared_with_static_runtimes=yes
8669 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8670 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8672 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8674 # If the export-symbols file already is a .def file (1st line
8675 # is EXPORTS), use it as is; otherwise, prepend...
8676 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8677 cp $export_symbols $output_objdir/$soname.def;
8679 echo EXPORTS > $output_objdir/$soname.def;
8680 cat $export_symbols >> $output_objdir/$soname.def;
8682 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690 link_all_deplibs=yes
8695 hardcode_shlibpath_var=no
8696 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8697 export_dynamic_flag_spec='${wl}-E'
8698 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8699 # Instead, shared libraries are loaded at an image base (0x10000000 by
8700 # default) and relocated if they conflict, which is a slow very memory
8701 # consuming and fragmenting process. To avoid this, we pick a random,
8702 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8703 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8704 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8705 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'
8708 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8710 if test "$host_os" = linux-dietlibc; then
8711 case $cc_basename in
8712 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8715 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8716 && test "$tmp_diet" = no
8718 tmp_addflag=' $pic_flag'
8719 tmp_sharedflag='-shared'
8720 case $cc_basename,$host_cpu in
8721 pgcc*) # Portland Group C compiler
8722 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8723 tmp_addflag=' $pic_flag'
8725 pgf77* | pgf90* | pgf95* | pgfortran*)
8726 # Portland Group f77 and f90 compilers
8727 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8728 tmp_addflag=' $pic_flag -Mnomain' ;;
8729 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8730 tmp_addflag=' -i_dynamic' ;;
8731 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8732 tmp_addflag=' -i_dynamic -nofor_main' ;;
8733 ifc* | ifort*) # Intel Fortran compiler
8734 tmp_addflag=' -nofor_main' ;;
8735 lf95*) # Lahey Fortran 8.1
8736 whole_archive_flag_spec=
8737 tmp_sharedflag='--shared' ;;
8738 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8739 tmp_sharedflag='-qmkshrobj'
8741 nvcc*) # Cuda Compiler Driver 2.2
8742 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8743 compiler_needs_object=yes
8746 case `$CC -V 2>&1 | sed 5q` in
8747 *Sun\ C*) # Sun C 5.9
8748 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8749 compiler_needs_object=yes
8750 tmp_sharedflag='-G' ;;
8751 *Sun\ F*) # Sun Fortran 8.3
8752 tmp_sharedflag='-G' ;;
8754 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8756 if test "x$supports_anon_versioning" = xyes; then
8757 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8758 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8759 echo "local: *; };" >> $output_objdir/$libname.ver~
8760 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8763 case $cc_basename in
8764 xlf* | bgf* | bgxlf* | mpixlf*)
8765 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8766 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8769 if test "x$supports_anon_versioning" = xyes; then
8770 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8771 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8772 echo "local: *; };" >> $output_objdir/$libname.ver~
8773 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8783 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8784 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8787 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8788 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8793 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8797 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8798 *** create shared libraries on Solaris systems. Therefore, libtool
8799 *** is disabling shared libraries support. We urge you to upgrade GNU
8800 *** binutils to release 2.9.1 or newer. Another option is to modify
8801 *** your PATH or compiler configuration so that the native linker is
8802 *** used, and then restart.
8805 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8806 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8807 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8813 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8814 case `$LD -v 2>&1` in
8815 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8819 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8820 *** reliably create shared libraries on SCO systems. Therefore, libtool
8821 *** is disabling shared libraries support. We urge you to upgrade GNU
8822 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8823 *** your PATH or compiler configuration so that the native linker is
8824 *** used, and then restart.
8829 # For security reasons, it is highly recommended that you always
8830 # use absolute paths for naming shared libraries, and exclude the
8831 # DT_RUNPATH tag from executables and libraries. But doing so
8832 # requires that you compile everything twice, which is a pain.
8833 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8836 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8845 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8848 hardcode_shlibpath_var=no
8852 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8853 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8861 if test "$ld_shlibs" = no; then
8863 hardcode_libdir_flag_spec=
8864 export_dynamic_flag_spec=
8865 whole_archive_flag_spec=
8868 # PORTME fill in a description of your system's linker (not GNU ld)
8871 allow_undefined_flag=unsupported
8872 always_export_symbols=yes
8873 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'
8874 # Note: this linker hardcodes the directories in LIBPATH if there
8875 # are no directories specified by -L.
8876 hardcode_minus_L=yes
8877 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8878 # Neither direct hardcoding nor static linking is supported with a
8880 hardcode_direct=unsupported
8885 if test "$host_cpu" = ia64; then
8886 # On IA64, the linker does run time linking by default, so we don't
8887 # have to do anything special.
8888 aix_use_runtimelinking=no
8889 exp_sym_flag='-Bexport'
8892 # If we're using GNU nm, then we don't want the "-C" option.
8893 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8894 # Also, AIX nm treats weak defined symbols like other global
8895 # defined symbols, whereas GNU nm marks them as "W".
8896 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8897 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8899 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'
8901 aix_use_runtimelinking=no
8903 # Test if we are trying to use run time linking or normal
8904 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8905 # need to do runtime linking.
8906 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8907 for ld_flag in $LDFLAGS; do
8908 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8909 aix_use_runtimelinking=yes
8916 exp_sym_flag='-bexport'
8917 no_entry_flag='-bnoentry'
8920 # When large executables or shared objects are built, AIX ld can
8921 # have problems creating the table of contents. If linking a library
8922 # or program results in "error TOC overflow" add -mminimal-toc to
8923 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8924 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8928 hardcode_direct_absolute=yes
8929 hardcode_libdir_separator=':'
8930 link_all_deplibs=yes
8931 file_list_spec='${wl}-f,'
8933 if test "$GCC" = yes; then
8934 case $host_os in aix4.[012]|aix4.[012].*)
8935 # We only want to do this on AIX 4.2 and lower, the check
8936 # below for broken collect2 doesn't work under 4.3+
8937 collect2name=`${CC} -print-prog-name=collect2`
8938 if test -f "$collect2name" &&
8939 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8941 # We have reworked collect2
8944 # We have old collect2
8945 hardcode_direct=unsupported
8946 # It fails to find uninstalled libraries when the uninstalled
8947 # path is not listed in the libpath. Setting hardcode_minus_L
8948 # to unsupported forces relinking
8949 hardcode_minus_L=yes
8950 hardcode_libdir_flag_spec='-L$libdir'
8951 hardcode_libdir_separator=
8955 shared_flag='-shared'
8956 if test "$aix_use_runtimelinking" = yes; then
8957 shared_flag="$shared_flag "'${wl}-G'
8961 if test "$host_cpu" = ia64; then
8962 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8963 # chokes on -Wl,-G. The following line is correct:
8966 if test "$aix_use_runtimelinking" = yes; then
8967 shared_flag='${wl}-G'
8969 shared_flag='${wl}-bM:SRE'
8974 export_dynamic_flag_spec='${wl}-bexpall'
8975 # It seems that -bexpall does not export symbols beginning with
8976 # underscore (_), so it is better to generate a list of symbols to export.
8977 always_export_symbols=yes
8978 if test "$aix_use_runtimelinking" = yes; then
8979 # Warning - without using the other runtime loading flags (-brtl),
8980 # -berok will link without error, but may produce a broken library.
8981 allow_undefined_flag='-berok'
8982 # Determine the default libpath from the value encoded in an
8984 if test "${lt_cv_aix_libpath+set}" = set; then
8985 aix_libpath=$lt_cv_aix_libpath
8987 if ${lt_cv_aix_libpath_+:} false; then :
8988 $as_echo_n "(cached) " >&6
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
9001 if ac_fn_c_try_link "$LINENO"; then :
9003 lt_aix_libpath_sed='
9004 /Import File Strings/,/^$/ {
9006 s/^0 *\([^ ]*\) *$/\1/
9010 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9011 # Check for a 64-bit object if we didn't find anything.
9012 if test -z "$lt_cv_aix_libpath_"; then
9013 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9016 rm -f core conftest.err conftest.$ac_objext \
9017 conftest$ac_exeext conftest.$ac_ext
9018 if test -z "$lt_cv_aix_libpath_"; then
9019 lt_cv_aix_libpath_="/usr/lib:/lib"
9024 aix_libpath=$lt_cv_aix_libpath_
9027 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9028 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9030 if test "$host_cpu" = ia64; then
9031 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9032 allow_undefined_flag="-z nodefs"
9033 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"
9035 # Determine the default libpath from the value encoded in an
9037 if test "${lt_cv_aix_libpath+set}" = set; then
9038 aix_libpath=$lt_cv_aix_libpath
9040 if ${lt_cv_aix_libpath_+:} false; then :
9041 $as_echo_n "(cached) " >&6
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9054 if ac_fn_c_try_link "$LINENO"; then :
9056 lt_aix_libpath_sed='
9057 /Import File Strings/,/^$/ {
9059 s/^0 *\([^ ]*\) *$/\1/
9063 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9064 # Check for a 64-bit object if we didn't find anything.
9065 if test -z "$lt_cv_aix_libpath_"; then
9066 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9069 rm -f core conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
9071 if test -z "$lt_cv_aix_libpath_"; then
9072 lt_cv_aix_libpath_="/usr/lib:/lib"
9077 aix_libpath=$lt_cv_aix_libpath_
9080 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9081 # Warning - without using the other run time loading flags,
9082 # -berok will link without error, but may produce a broken library.
9083 no_undefined_flag=' ${wl}-bernotok'
9084 allow_undefined_flag=' ${wl}-berok'
9085 if test "$with_gnu_ld" = yes; then
9086 # We only use this code for GNU lds that support --whole-archive.
9087 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9089 # Exported symbols can be pulled into shared objects from archives
9090 whole_archive_flag_spec='$convenience'
9092 archive_cmds_need_lc=yes
9093 # This is similar to how AIX traditionally builds its shared libraries.
9094 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'
9102 # see comment about AmigaOS4 .so support
9103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9104 archive_expsym_cmds=''
9107 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)'
9108 hardcode_libdir_flag_spec='-L$libdir'
9109 hardcode_minus_L=yes
9115 export_dynamic_flag_spec=-rdynamic
9118 cygwin* | mingw* | pw32* | cegcc*)
9119 # When not using gcc, we currently assume that we are using
9120 # Microsoft Visual C++.
9121 # hardcode_libdir_flag_spec is actually meaningless, as there is
9122 # no search path for DLLs.
9123 case $cc_basename in
9126 hardcode_libdir_flag_spec=' '
9127 allow_undefined_flag=unsupported
9128 always_export_symbols=yes
9130 # Tell ltmain to make .lib files, not .a files.
9132 # Tell ltmain to make .dll files, not .so files.
9134 # FIXME: Setting linknames here is a bad hack.
9135 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9136 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9137 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9139 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9141 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9143 # The linker will not automatically build a static lib if we build a DLL.
9144 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9145 enable_shared_with_static_runtimes=yes
9146 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9147 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9149 old_postinstall_cmds='chmod 644 $oldlib'
9150 postlink_cmds='lt_outputfile="@OUTPUT@"~
9151 lt_tool_outputfile="@TOOL_OUTPUT@"~
9152 case $lt_outputfile in
9155 lt_outputfile="$lt_outputfile.exe"
9156 lt_tool_outputfile="$lt_tool_outputfile.exe"
9159 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9160 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9161 $RM "$lt_outputfile.manifest";
9165 # Assume MSVC wrapper
9166 hardcode_libdir_flag_spec=' '
9167 allow_undefined_flag=unsupported
9168 # Tell ltmain to make .lib files, not .a files.
9170 # Tell ltmain to make .dll files, not .so files.
9172 # FIXME: Setting linknames here is a bad hack.
9173 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9174 # The linker will automatically build a .lib file if we build a DLL.
9175 old_archive_from_new_cmds='true'
9176 # FIXME: Should let the user specify the lib program.
9177 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9178 enable_shared_with_static_runtimes=yes
9183 darwin* | rhapsody*)
9186 archive_cmds_need_lc=no
9188 hardcode_automatic=yes
9189 hardcode_shlibpath_var=unsupported
9190 if test "$lt_cv_ld_force_load" = "yes"; then
9191 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9194 whole_archive_flag_spec=''
9196 link_all_deplibs=yes
9197 allow_undefined_flag="$_lt_dar_allow_undefined"
9198 case $cc_basename in
9199 ifort*) _lt_dar_can_shared=yes ;;
9200 *) _lt_dar_can_shared=$GCC ;;
9202 if test "$_lt_dar_can_shared" = "yes"; then
9203 output_verbose_link_cmd=func_echo_all
9204 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9205 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9206 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9207 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9217 hardcode_libdir_flag_spec='-L$libdir'
9218 hardcode_shlibpath_var=no
9221 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9222 # support. Future versions do this automatically, but an explicit c++rt0.o
9223 # does not break anything, and helps significantly (at the cost of a little
9226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9227 hardcode_libdir_flag_spec='-R$libdir'
9229 hardcode_shlibpath_var=no
9232 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9234 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9236 hardcode_minus_L=yes
9237 hardcode_shlibpath_var=no
9240 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9241 freebsd* | dragonfly*)
9242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9243 hardcode_libdir_flag_spec='-R$libdir'
9245 hardcode_shlibpath_var=no
9249 if test "$GCC" = yes; then
9250 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9252 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'
9254 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9255 hardcode_libdir_separator=:
9258 # hardcode_minus_L: Not really in the search PATH,
9259 # but as the default location of the library.
9260 hardcode_minus_L=yes
9261 export_dynamic_flag_spec='${wl}-E'
9265 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9266 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9268 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9270 if test "$with_gnu_ld" = no; then
9271 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9272 hardcode_libdir_separator=:
9274 hardcode_direct_absolute=yes
9275 export_dynamic_flag_spec='${wl}-E'
9276 # hardcode_minus_L: Not really in the search PATH,
9277 # but as the default location of the library.
9278 hardcode_minus_L=yes
9283 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9286 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9289 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9292 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9298 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9301 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9305 # Older versions of the 11.00 compiler do not understand -b yet
9306 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9308 $as_echo_n "checking if $CC understands -b... " >&6; }
9309 if ${lt_cv_prog_compiler__b+:} false; then :
9310 $as_echo_n "(cached) " >&6
9312 lt_cv_prog_compiler__b=no
9313 save_LDFLAGS="$LDFLAGS"
9314 LDFLAGS="$LDFLAGS -b"
9315 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9316 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9317 # The linker can only warn and ignore the option if not recognized
9318 # So say no if there are warnings
9319 if test -s conftest.err; then
9320 # Append any errors to the config.log.
9321 cat conftest.err 1>&5
9322 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9324 if diff conftest.exp conftest.er2 >/dev/null; then
9325 lt_cv_prog_compiler__b=yes
9328 lt_cv_prog_compiler__b=yes
9332 LDFLAGS="$save_LDFLAGS"
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9336 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9338 if test x"$lt_cv_prog_compiler__b" = xyes; then
9339 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9341 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9347 if test "$with_gnu_ld" = no; then
9348 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9349 hardcode_libdir_separator=:
9354 hardcode_shlibpath_var=no
9358 hardcode_direct_absolute=yes
9359 export_dynamic_flag_spec='${wl}-E'
9361 # hardcode_minus_L: Not really in the search PATH,
9362 # but as the default location of the library.
9363 hardcode_minus_L=yes
9369 irix5* | irix6* | nonstopux*)
9370 if test "$GCC" = yes; then
9371 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9372 # Try to use the -exported_symbol ld option, if it does not
9373 # work, assume that -exports_file does not work either and
9374 # implicitly export all symbols.
9375 # This should be the same for all languages, so no per-tag cache variable.
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9377 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9378 if ${lt_cv_irix_exported_symbol+:} false; then :
9379 $as_echo_n "(cached) " >&6
9381 save_LDFLAGS="$LDFLAGS"
9382 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h. */
9385 int foo (void) { return 0; }
9387 if ac_fn_c_try_link "$LINENO"; then :
9388 lt_cv_irix_exported_symbol=yes
9390 lt_cv_irix_exported_symbol=no
9392 rm -f core conftest.err conftest.$ac_objext \
9393 conftest$ac_exeext conftest.$ac_ext
9394 LDFLAGS="$save_LDFLAGS"
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9397 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9398 if test "$lt_cv_irix_exported_symbol" = yes; then
9399 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9403 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9405 archive_cmds_need_lc='no'
9406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9407 hardcode_libdir_separator=:
9409 link_all_deplibs=yes
9413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9414 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9416 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9418 hardcode_libdir_flag_spec='-R$libdir'
9420 hardcode_shlibpath_var=no
9424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9426 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427 hardcode_libdir_separator=:
9428 hardcode_shlibpath_var=no
9435 if test -f /usr/libexec/ld.so; then
9437 hardcode_shlibpath_var=no
9438 hardcode_direct_absolute=yes
9439 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9440 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9441 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9442 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9443 export_dynamic_flag_spec='${wl}-E'
9446 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9447 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9448 hardcode_libdir_flag_spec='-R$libdir'
9451 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9452 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9462 hardcode_libdir_flag_spec='-L$libdir'
9463 hardcode_minus_L=yes
9464 allow_undefined_flag=unsupported
9465 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'
9466 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9470 if test "$GCC" = yes; then
9471 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9472 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9474 allow_undefined_flag=' -expect_unresolved \*'
9475 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9477 archive_cmds_need_lc='no'
9478 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9479 hardcode_libdir_separator=:
9482 osf4* | osf5*) # as osf3* with the addition of -msym flag
9483 if test "$GCC" = yes; then
9484 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9485 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9488 allow_undefined_flag=' -expect_unresolved \*'
9489 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9490 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9491 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9493 # Both c and cxx compiler support -rpath directly
9494 hardcode_libdir_flag_spec='-rpath $libdir'
9496 archive_cmds_need_lc='no'
9497 hardcode_libdir_separator=:
9501 no_undefined_flag=' -z defs'
9502 if test "$GCC" = yes; then
9504 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9505 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9506 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9508 case `$CC -V 2>&1` in
9511 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9512 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9513 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9517 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9518 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9519 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9523 hardcode_libdir_flag_spec='-R$libdir'
9524 hardcode_shlibpath_var=no
9526 solaris2.[0-5] | solaris2.[0-5].*) ;;
9528 # The compiler driver will combine and reorder linker options,
9529 # but understands `-z linker_flag'. GCC discards it without `$wl',
9530 # but is careful enough not to reorder.
9531 # Supported since Solaris 2.6 (maybe 2.5.1?)
9532 if test "$GCC" = yes; then
9533 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9535 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9539 link_all_deplibs=yes
9543 if test "x$host_vendor" = xsequent; then
9544 # Use $CC to link under sequent, because it throws in some extra .o
9545 # files that make .init and .fini sections work.
9546 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9548 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9550 hardcode_libdir_flag_spec='-L$libdir'
9552 hardcode_minus_L=yes
9553 hardcode_shlibpath_var=no
9557 case $host_vendor in
9559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560 hardcode_direct=yes # is this really true???
9563 ## LD is ld it makes a PLAMLIB
9564 ## CC just makes a GrossModule.
9565 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9566 reload_cmds='$CC -r -o $output$reload_objs'
9570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9571 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9574 runpath_var='LD_RUN_PATH'
9575 hardcode_shlibpath_var=no
9579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_shlibpath_var=no
9581 export_dynamic_flag_spec='-Bexport'
9585 if test -d /usr/nec; then
9586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9587 hardcode_shlibpath_var=no
9588 runpath_var=LD_RUN_PATH
9589 hardcode_runpath_var=yes
9594 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9595 no_undefined_flag='${wl}-z,text'
9596 archive_cmds_need_lc=no
9597 hardcode_shlibpath_var=no
9598 runpath_var='LD_RUN_PATH'
9600 if test "$GCC" = yes; then
9601 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9602 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9605 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9609 sysv5* | sco3.2v5* | sco5v6*)
9610 # Note: We can NOT use -z defs as we might desire, because we do not
9611 # link with -lc, and that would cause any symbols used from libc to
9612 # always be unresolved, which means just about no library would
9613 # ever link correctly. If we're not using GNU ld we use -z text
9614 # though, which does catch some bad symbols but isn't as heavy-handed
9616 no_undefined_flag='${wl}-z,text'
9617 allow_undefined_flag='${wl}-z,nodefs'
9618 archive_cmds_need_lc=no
9619 hardcode_shlibpath_var=no
9620 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9621 hardcode_libdir_separator=':'
9622 link_all_deplibs=yes
9623 export_dynamic_flag_spec='${wl}-Bexport'
9624 runpath_var='LD_RUN_PATH'
9626 if test "$GCC" = yes; then
9627 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9628 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9631 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_libdir_flag_spec='-L$libdir'
9638 hardcode_shlibpath_var=no
9646 if test x$host_vendor = xsni; then
9648 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9649 export_dynamic_flag_spec='${wl}-Blargedynsym'
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9656 $as_echo "$ld_shlibs" >&6; }
9657 test "$ld_shlibs" = no && can_build_shared=no
9659 with_gnu_ld=$with_gnu_ld
9676 # Do we need to explicitly link libc?
9678 case "x$archive_cmds_need_lc" in
9680 # Assume -lc should be added
9681 archive_cmds_need_lc=yes
9683 if test "$enable_shared" = yes && test "$GCC" = yes; then
9684 case $archive_cmds in
9686 # FIXME: we may have to deal with multi-command sequences.
9689 # Test whether the compiler implicitly links with -lc since on some
9690 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9691 # to ld, don't add -lc before -lgcc.
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9693 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9694 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9695 $as_echo_n "(cached) " >&6
9698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9701 (eval $ac_compile) 2>&5
9703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9704 test $ac_status = 0; } 2>conftest.err; then
9707 libobjs=conftest.$ac_objext
9709 wl=$lt_prog_compiler_wl
9710 pic_flag=$lt_prog_compiler_pic
9716 lt_save_allow_undefined_flag=$allow_undefined_flag
9717 allow_undefined_flag=
9718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9719 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9722 test $ac_status = 0; }
9724 lt_cv_archive_cmds_need_lc=no
9726 lt_cv_archive_cmds_need_lc=yes
9728 allow_undefined_flag=$lt_save_allow_undefined_flag
9730 cat conftest.err 1>&5
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9736 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9737 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9896 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9898 if test "$GCC" = yes; then
9900 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9901 *) lt_awk_arg="/^libraries:/" ;;
9904 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9905 *) lt_sed_strip_eq="s,=/,/,g" ;;
9907 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9908 case $lt_search_path_spec in
9910 # if the path contains ";" then we assume it to be the separator
9911 # otherwise default to the standard path separator (i.e. ":") - it is
9912 # assumed that no part of a normal pathname contains ";" but that should
9913 # okay in the real world where ";" in dirpaths is itself problematic.
9914 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9917 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9920 # Ok, now we have the path, separated by spaces, we can step through it
9921 # and add multilib dir if necessary...
9922 lt_tmp_lt_search_path_spec=
9923 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9924 # ...but if some path already ends with the multilib dir we assume
9925 # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
9926 case "$lt_multi_os_dir; $lt_search_path_spec " in
9927 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9931 for lt_sys_path in $lt_search_path_spec; do
9932 if test -d "$lt_sys_path$lt_multi_os_dir"; then
9933 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9934 elif test -n "$lt_multi_os_dir"; then
9935 test -d "$lt_sys_path" && \
9936 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9939 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9940 BEGIN {RS=" "; FS="/|\n";} {
9943 for (lt_i = NF; lt_i > 0; lt_i--) {
9944 if ($lt_i != "" && $lt_i != ".") {
9945 if ($lt_i == "..") {
9948 if (lt_count == 0) {
9949 lt_foo="/" $lt_i lt_foo;
9956 if (lt_foo != "") { lt_freq[lt_foo]++; }
9957 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9959 # AWK program above erroneously prepends '/' to C:/dos/paths
9962 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9963 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9965 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9967 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9970 libname_spec='lib$name'
9978 shlibpath_overrides_runpath=unknown
9980 dynamic_linker="$host_os ld.so"
9981 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9982 need_lib_prefix=unknown
9983 hardcode_into_libs=no
9985 # when you set need_version to no, make sure it does not cause -set_version
9986 # flags to be left without arguments
9987 need_version=unknown
9991 version_type=linux # correct to gnu/linux during the next big refactor
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9993 shlibpath_var=LIBPATH
9995 # AIX 3 has no versioning support, so we append a major version to the name.
9996 soname_spec='${libname}${release}${shared_ext}$major'
10000 version_type=linux # correct to gnu/linux during the next big refactor
10003 hardcode_into_libs=yes
10004 if test "$host_cpu" = ia64; then
10005 # AIX 5 supports IA64
10006 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10007 shlibpath_var=LD_LIBRARY_PATH
10009 # With GCC up to 2.95.x, collect2 would create an import file
10010 # for dependence libraries. The import file would start with
10011 # the line `#! .'. This would cause the generated library to
10012 # depend on `.', always an invalid library. This was fixed in
10013 # development snapshots of GCC prior to 3.0.
10015 aix4 | aix4.[01] | aix4.[01].*)
10016 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10018 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10021 can_build_shared=no
10025 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10026 # soname into executable. Probably we can add versioning support to
10027 # collect2, so additional links can be useful in future.
10028 if test "$aix_use_runtimelinking" = yes; then
10029 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10030 # instead of lib<name>.a to let people know that these are not
10031 # typical AIX shared libraries.
10032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10034 # We preserve .a as extension for shared libraries through AIX4.2
10035 # and later when we are not doing run time linking.
10036 library_names_spec='${libname}${release}.a $libname.a'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10039 shlibpath_var=LIBPATH
10046 # Since July 2007 AmigaOS4 officially supports .so libraries.
10047 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051 library_names_spec='$libname.ixlibrary $libname.a'
10052 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10053 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10059 library_names_spec='${libname}${shared_ext}'
10060 dynamic_linker="$host_os ld.so"
10061 shlibpath_var=LIBRARY_PATH
10065 version_type=linux # correct to gnu/linux during the next big refactor
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068 soname_spec='${libname}${release}${shared_ext}$major'
10069 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10070 shlibpath_var=LD_LIBRARY_PATH
10071 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10072 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10073 # the default ld.so.conf also contains /usr/contrib/lib and
10074 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10075 # libtool to hard-code these into programs
10078 cygwin* | mingw* | pw32* | cegcc*)
10079 version_type=windows
10084 case $GCC,$cc_basename in
10087 library_names_spec='$libname.dll.a'
10088 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10089 postinstall_cmds='base_file=`basename \${file}`~
10090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10091 dldir=$destdir/`dirname \$dlpath`~
10092 test -d \$dldir || mkdir -p \$dldir~
10093 $install_prog $dir/$dlname \$dldir/$dlname~
10094 chmod a+x \$dldir/$dlname~
10095 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10096 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10098 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10099 dlpath=$dir/\$dldll~
10101 shlibpath_overrides_runpath=yes
10105 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10106 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
10107 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
10109 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10112 # MinGW DLLs use traditional 'lib' prefix
10113 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
10114 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
10117 # pw32 DLLs use 'pw' prefix rather than 'lib'
10118 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10121 dynamic_linker='Win32 ld.exe'
10126 libname_spec='$name'
10127 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10128 library_names_spec='${libname}.dll.lib'
10132 sys_lib_search_path_spec=
10135 for lt_path in $LIB
10138 # Let DOS variable expansion print the short 8.3 style file name.
10139 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10140 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10143 # Convert to MSYS style.
10144 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10147 # Convert to unix form, then to dos form, then back to unix form
10148 # but this time dos style (no spaces!) so that the unix form looks
10149 # like /cygdrive/c/PROGRA~1:/cygdr...
10150 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10151 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10152 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10155 sys_lib_search_path_spec="$LIB"
10156 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10157 # It is most probably a Windows format PATH.
10158 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10160 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10162 # FIXME: find the short name or the path components, as spaces are
10163 # common. (e.g. "Program Files" -> "PROGRA~1")
10167 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10168 postinstall_cmds='base_file=`basename \${file}`~
10169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10170 dldir=$destdir/`dirname \$dlpath`~
10171 test -d \$dldir || mkdir -p \$dldir~
10172 $install_prog $dir/$dlname \$dldir/$dlname'
10173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10174 dlpath=$dir/\$dldll~
10176 shlibpath_overrides_runpath=yes
10177 dynamic_linker='Win32 link.exe'
10181 # Assume MSVC wrapper
10182 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10183 dynamic_linker='Win32 ld.exe'
10186 # FIXME: first we should search . and the directory the executable is in
10190 darwin* | rhapsody*)
10191 dynamic_linker="$host_os dyld"
10192 version_type=darwin
10195 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10196 soname_spec='${libname}${release}${major}$shared_ext'
10197 shlibpath_overrides_runpath=yes
10198 shlibpath_var=DYLD_LIBRARY_PATH
10199 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10201 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10202 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10206 version_type=linux # correct to gnu/linux during the next big refactor
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10210 soname_spec='${libname}${release}${shared_ext}$major'
10211 shlibpath_var=LD_LIBRARY_PATH
10214 freebsd* | dragonfly*)
10215 # DragonFly does not have aout. When/if they implement a new
10216 # versioning mechanism, adjust this.
10217 if test -x /usr/bin/objformat; then
10218 objformat=`/usr/bin/objformat`
10221 freebsd[23].*) objformat=aout ;;
10222 *) objformat=elf ;;
10225 version_type=freebsd-$objformat
10226 case $version_type in
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10237 shlibpath_var=LD_LIBRARY_PATH
10240 shlibpath_overrides_runpath=yes
10242 freebsd3.[01]* | freebsdelf3.[01]*)
10243 shlibpath_overrides_runpath=yes
10244 hardcode_into_libs=yes
10246 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10247 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10248 shlibpath_overrides_runpath=no
10249 hardcode_into_libs=yes
10251 *) # from 4.6 on, and DragonFly
10252 shlibpath_overrides_runpath=yes
10253 hardcode_into_libs=yes
10259 version_type=linux # correct to gnu/linux during the next big refactor
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10263 soname_spec='${libname}${release}${shared_ext}$major'
10264 shlibpath_var=LD_LIBRARY_PATH
10265 shlibpath_overrides_runpath=no
10266 hardcode_into_libs=yes
10270 version_type=linux # correct to gnu/linux during the next big refactor
10273 dynamic_linker="$host_os runtime_loader"
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 shlibpath_var=LIBRARY_PATH
10277 shlibpath_overrides_runpath=yes
10278 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10279 hardcode_into_libs=yes
10282 hpux9* | hpux10* | hpux11*)
10283 # Give a soname corresponding to the major version so that dld.sl refuses to
10284 # link against other versions.
10291 hardcode_into_libs=yes
10292 dynamic_linker="$host_os dld.so"
10293 shlibpath_var=LD_LIBRARY_PATH
10294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 if test "X$HPUX_IA64_MODE" = X32; then
10298 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10300 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10306 hardcode_into_libs=yes
10307 dynamic_linker="$host_os dld.sl"
10308 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10309 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10317 dynamic_linker="$host_os dld.sl"
10318 shlibpath_var=SHLIB_PATH
10319 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321 soname_spec='${libname}${release}${shared_ext}$major'
10324 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10325 postinstall_cmds='chmod 555 $lib'
10326 # or fails outright, so override atomically:
10327 install_override_mode=555
10331 version_type=linux # correct to gnu/linux during the next big refactor
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10335 soname_spec='${libname}${release}${shared_ext}$major'
10336 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 shlibpath_overrides_runpath=no
10339 hardcode_into_libs=yes
10342 irix5* | irix6* | nonstopux*)
10344 nonstopux*) version_type=nonstopux ;;
10346 if test "$lt_cv_prog_gnu_ld" = yes; then
10347 version_type=linux # correct to gnu/linux during the next big refactor
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10357 irix5* | nonstopux*)
10358 libsuff= shlibsuff=
10361 case $LD in # libtool.m4 will add one of these switches to LD
10362 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10363 libsuff= shlibsuff= libmagic=32-bit;;
10364 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10365 libsuff=32 shlibsuff=N32 libmagic=N32;;
10366 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10367 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10368 *) libsuff= shlibsuff= libmagic=never-match;;
10372 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10373 shlibpath_overrides_runpath=no
10374 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10375 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10376 hardcode_into_libs=yes
10379 # No shared lib support for Linux oldld, aout, or coff.
10380 linux*oldld* | linux*aout* | linux*coff*)
10384 # This must be glibc/ELF.
10385 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10386 version_type=linux # correct to gnu/linux during the next big refactor
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 shlibpath_overrides_runpath=no
10395 # Some binutils ld are patched to set DT_RUNPATH
10396 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10397 $as_echo_n "(cached) " >&6
10399 lt_cv_shlibpath_overrides_runpath=no
10400 save_LDFLAGS=$LDFLAGS
10401 save_libdir=$libdir
10402 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10403 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10415 if ac_fn_c_try_link "$LINENO"; then :
10416 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10417 lt_cv_shlibpath_overrides_runpath=yes
10420 rm -f core conftest.err conftest.$ac_objext \
10421 conftest$ac_exeext conftest.$ac_ext
10422 LDFLAGS=$save_LDFLAGS
10423 libdir=$save_libdir
10427 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10429 # This implies no fast_install, which is unacceptable.
10430 # Some rework will be needed to allow for fast_install
10431 # before this can be enabled.
10432 hardcode_into_libs=yes
10434 # Append ld.so.conf contents to the search path
10435 if test -f /etc/ld.so.conf; then
10436 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10437 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10440 # We used to test for /lib/ld.so.1 and disable shared libraries on
10441 # powerpc, because MkLinux only supported shared libraries with the
10442 # GNU dynamic linker. Since this was broken with cross compilers,
10443 # most powerpc-linux boxes support dynamic linking these days and
10444 # people can always --disable-shared, the test was removed, and we
10445 # assume the GNU/Linux dynamic linker is in use.
10446 dynamic_linker='GNU/Linux ld.so'
10453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10456 dynamic_linker='NetBSD (a.out) ld.so'
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 dynamic_linker='NetBSD ld.elf_so'
10462 shlibpath_var=LD_LIBRARY_PATH
10463 shlibpath_overrides_runpath=yes
10464 hardcode_into_libs=yes
10468 version_type=linux # correct to gnu/linux during the next big refactor
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470 shlibpath_var=LD_LIBRARY_PATH
10471 shlibpath_overrides_runpath=yes
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479 soname_spec='${libname}${release}${shared_ext}$major'
10480 shlibpath_var=LD_LIBRARY_PATH
10481 shlibpath_overrides_runpath=no
10482 hardcode_into_libs=yes
10483 dynamic_linker='ldqnx.so'
10488 sys_lib_dlsearch_path_spec="/usr/lib"
10490 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10492 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10493 *) need_version=no ;;
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10500 openbsd2.[89] | openbsd2.[89].*)
10501 shlibpath_overrides_runpath=no
10504 shlibpath_overrides_runpath=yes
10508 shlibpath_overrides_runpath=yes
10513 libname_spec='$name'
10516 library_names_spec='$libname${shared_ext} $libname.a'
10517 dynamic_linker='OS/2 ld.exe'
10518 shlibpath_var=LIBPATH
10521 osf3* | osf4* | osf5*)
10525 soname_spec='${libname}${release}${shared_ext}$major'
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10537 version_type=linux # correct to gnu/linux during the next big refactor
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 soname_spec='${libname}${release}${shared_ext}$major'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 shlibpath_overrides_runpath=yes
10544 hardcode_into_libs=yes
10545 # ldd complains unless libraries are executable
10546 postinstall_cmds='chmod +x $lib'
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10552 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 shlibpath_overrides_runpath=yes
10555 if test "$with_gnu_ld" = yes; then
10562 version_type=linux # correct to gnu/linux during the next big refactor
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564 soname_spec='${libname}${release}${shared_ext}$major'
10565 shlibpath_var=LD_LIBRARY_PATH
10566 case $host_vendor in
10568 shlibpath_overrides_runpath=no
10570 runpath_var=LD_RUN_PATH
10578 shlibpath_overrides_runpath=no
10579 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10585 if test -d /usr/nec ;then
10586 version_type=linux # correct to gnu/linux during the next big refactor
10587 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10588 soname_spec='$libname${shared_ext}.$major'
10589 shlibpath_var=LD_LIBRARY_PATH
10593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10594 version_type=freebsd-elf
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes
10601 hardcode_into_libs=yes
10602 if test "$with_gnu_ld" = yes; then
10603 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10605 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10612 sys_lib_dlsearch_path_spec='/usr/lib'
10616 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10617 version_type=linux # correct to gnu/linux during the next big refactor
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 shlibpath_overrides_runpath=no
10623 hardcode_into_libs=yes
10627 version_type=linux # correct to gnu/linux during the next big refactor
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 shlibpath_var=LD_LIBRARY_PATH
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10638 $as_echo "$dynamic_linker" >&6; }
10639 test "$dynamic_linker" = no && can_build_shared=no
10641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10642 if test "$GCC" = yes; then
10643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10646 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10647 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10649 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10650 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10745 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10747 if test -n "$hardcode_libdir_flag_spec" ||
10748 test -n "$runpath_var" ||
10749 test "X$hardcode_automatic" = "Xyes" ; then
10751 # We can hardcode non-existent directories.
10752 if test "$hardcode_direct" != no &&
10753 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10754 # have to relink, otherwise we might link with an installed library
10755 # when we should be linking with a yet-to-be-installed one
10756 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10757 test "$hardcode_minus_L" != no; then
10758 # Linking always hardcodes the temporary library directory.
10759 hardcode_action=relink
10761 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10762 hardcode_action=immediate
10765 # We cannot hardcode anything, or else we can only hardcode existing
10767 hardcode_action=unsupported
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10770 $as_echo "$hardcode_action" >&6; }
10772 if test "$hardcode_action" = relink ||
10773 test "$inherit_rpath" = yes; then
10774 # Fast installation is not supported
10775 enable_fast_install=no
10776 elif test "$shlibpath_overrides_runpath" = yes ||
10777 test "$enable_shared" = no; then
10778 # Fast installation is not necessary
10779 enable_fast_install=needless
10787 if test "x$enable_dlopen" != xyes; then
10788 enable_dlopen=unknown
10789 enable_dlopen_self=unknown
10790 enable_dlopen_self_static=unknown
10797 lt_cv_dlopen="load_add_on"
10799 lt_cv_dlopen_self=yes
10802 mingw* | pw32* | cegcc*)
10803 lt_cv_dlopen="LoadLibrary"
10808 lt_cv_dlopen="dlopen"
10813 # if libdl is installed we need to link against it
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10815 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10816 if ${ac_cv_lib_dl_dlopen+:} false; then :
10817 $as_echo_n "(cached) " >&6
10819 ac_check_lib_save_LIBS=$LIBS
10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822 /* end confdefs.h. */
10824 /* Override any GCC internal prototype to avoid an error.
10825 Use char because int might match the return type of a GCC
10826 builtin and then its argument prototype would still apply. */
10839 if ac_fn_c_try_link "$LINENO"; then :
10840 ac_cv_lib_dl_dlopen=yes
10842 ac_cv_lib_dl_dlopen=no
10844 rm -f core conftest.err conftest.$ac_objext \
10845 conftest$ac_exeext conftest.$ac_ext
10846 LIBS=$ac_check_lib_save_LIBS
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10849 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10850 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10851 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10854 lt_cv_dlopen="dyld"
10856 lt_cv_dlopen_self=yes
10863 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10864 if test "x$ac_cv_func_shl_load" = xyes; then :
10865 lt_cv_dlopen="shl_load"
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10868 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10869 if ${ac_cv_lib_dld_shl_load+:} false; then :
10870 $as_echo_n "(cached) " >&6
10872 ac_check_lib_save_LIBS=$LIBS
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10877 /* Override any GCC internal prototype to avoid an error.
10878 Use char because int might match the return type of a GCC
10879 builtin and then its argument prototype would still apply. */
10887 return shl_load ();
10892 if ac_fn_c_try_link "$LINENO"; then :
10893 ac_cv_lib_dld_shl_load=yes
10895 ac_cv_lib_dld_shl_load=no
10897 rm -f core conftest.err conftest.$ac_objext \
10898 conftest$ac_exeext conftest.$ac_ext
10899 LIBS=$ac_check_lib_save_LIBS
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10902 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10903 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10904 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10906 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10907 if test "x$ac_cv_func_dlopen" = xyes; then :
10908 lt_cv_dlopen="dlopen"
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10911 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10912 if ${ac_cv_lib_dl_dlopen+:} false; then :
10913 $as_echo_n "(cached) " >&6
10915 ac_check_lib_save_LIBS=$LIBS
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10920 /* Override any GCC internal prototype to avoid an error.
10921 Use char because int might match the return type of a GCC
10922 builtin and then its argument prototype would still apply. */
10935 if ac_fn_c_try_link "$LINENO"; then :
10936 ac_cv_lib_dl_dlopen=yes
10938 ac_cv_lib_dl_dlopen=no
10940 rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
10942 LIBS=$ac_check_lib_save_LIBS
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10945 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10946 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10950 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10951 if ${ac_cv_lib_svld_dlopen+:} false; then :
10952 $as_echo_n "(cached) " >&6
10954 ac_check_lib_save_LIBS=$LIBS
10955 LIBS="-lsvld $LIBS"
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10959 /* Override any GCC internal prototype to avoid an error.
10960 Use char because int might match the return type of a GCC
10961 builtin and then its argument prototype would still apply. */
10974 if ac_fn_c_try_link "$LINENO"; then :
10975 ac_cv_lib_svld_dlopen=yes
10977 ac_cv_lib_svld_dlopen=no
10979 rm -f core conftest.err conftest.$ac_objext \
10980 conftest$ac_exeext conftest.$ac_ext
10981 LIBS=$ac_check_lib_save_LIBS
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10984 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10985 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10986 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10989 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10990 if ${ac_cv_lib_dld_dld_link+:} false; then :
10991 $as_echo_n "(cached) " >&6
10993 ac_check_lib_save_LIBS=$LIBS
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10998 /* Override any GCC internal prototype to avoid an error.
10999 Use char because int might match the return type of a GCC
11000 builtin and then its argument prototype would still apply. */
11008 return dld_link ();
11013 if ac_fn_c_try_link "$LINENO"; then :
11014 ac_cv_lib_dld_dld_link=yes
11016 ac_cv_lib_dld_dld_link=no
11018 rm -f core conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11020 LIBS=$ac_check_lib_save_LIBS
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11023 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11024 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11025 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11046 if test "x$lt_cv_dlopen" != xno; then
11052 case $lt_cv_dlopen in
11054 save_CPPFLAGS="$CPPFLAGS"
11055 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11057 save_LDFLAGS="$LDFLAGS"
11058 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11061 LIBS="$lt_cv_dlopen_libs $LIBS"
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11064 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11065 if ${lt_cv_dlopen_self+:} false; then :
11066 $as_echo_n "(cached) " >&6
11068 if test "$cross_compiling" = yes; then :
11069 lt_cv_dlopen_self=cross
11071 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11072 lt_status=$lt_dlunknown
11073 cat > conftest.$ac_ext <<_LT_EOF
11074 #line $LINENO "configure"
11075 #include "confdefs.h"
11084 # define LT_DLGLOBAL RTLD_GLOBAL
11087 # define LT_DLGLOBAL DL_GLOBAL
11089 # define LT_DLGLOBAL 0
11093 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11094 find out it does not work in some platform. */
11095 #ifndef LT_DLLAZY_OR_NOW
11097 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11100 # define LT_DLLAZY_OR_NOW DL_LAZY
11103 # define LT_DLLAZY_OR_NOW RTLD_NOW
11106 # define LT_DLLAZY_OR_NOW DL_NOW
11108 # define LT_DLLAZY_OR_NOW 0
11115 /* When -fvisbility=hidden is used, assume the code has been annotated
11116 correspondingly for the symbols needed. */
11117 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11118 int fnord () __attribute__((visibility("default")));
11121 int fnord () { return 42; }
11124 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11125 int status = $lt_dlunknown;
11129 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11132 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11133 else puts (dlerror ());
11135 /* dlclose (self); */
11143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11144 (eval $ac_link) 2>&5
11146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11147 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11148 (./conftest; exit; ) >&5 2>/dev/null
11150 case x$lt_status in
11151 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11152 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11153 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11156 # compilation failed
11157 lt_cv_dlopen_self=no
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11165 $as_echo "$lt_cv_dlopen_self" >&6; }
11167 if test "x$lt_cv_dlopen_self" = xyes; then
11168 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11170 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11171 if ${lt_cv_dlopen_self_static+:} false; then :
11172 $as_echo_n "(cached) " >&6
11174 if test "$cross_compiling" = yes; then :
11175 lt_cv_dlopen_self_static=cross
11177 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11178 lt_status=$lt_dlunknown
11179 cat > conftest.$ac_ext <<_LT_EOF
11180 #line $LINENO "configure"
11181 #include "confdefs.h"
11190 # define LT_DLGLOBAL RTLD_GLOBAL
11193 # define LT_DLGLOBAL DL_GLOBAL
11195 # define LT_DLGLOBAL 0
11199 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11200 find out it does not work in some platform. */
11201 #ifndef LT_DLLAZY_OR_NOW
11203 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11206 # define LT_DLLAZY_OR_NOW DL_LAZY
11209 # define LT_DLLAZY_OR_NOW RTLD_NOW
11212 # define LT_DLLAZY_OR_NOW DL_NOW
11214 # define LT_DLLAZY_OR_NOW 0
11221 /* When -fvisbility=hidden is used, assume the code has been annotated
11222 correspondingly for the symbols needed. */
11223 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11224 int fnord () __attribute__((visibility("default")));
11227 int fnord () { return 42; }
11230 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11231 int status = $lt_dlunknown;
11235 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11238 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11239 else puts (dlerror ());
11241 /* dlclose (self); */
11249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11250 (eval $ac_link) 2>&5
11252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11253 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11254 (./conftest; exit; ) >&5 2>/dev/null
11256 case x$lt_status in
11257 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11258 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11259 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11262 # compilation failed
11263 lt_cv_dlopen_self_static=no
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11271 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11274 CPPFLAGS="$save_CPPFLAGS"
11275 LDFLAGS="$save_LDFLAGS"
11280 case $lt_cv_dlopen_self in
11281 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11282 *) enable_dlopen_self=unknown ;;
11285 case $lt_cv_dlopen_self_static in
11286 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11287 *) enable_dlopen_self_static=unknown ;;
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11310 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11311 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11312 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11313 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11315 $as_echo "yes" >&6; }
11317 # FIXME - insert some real tests, host_os isn't really good enough
11320 if test -n "$STRIP" ; then
11321 striplib="$STRIP -x"
11322 old_striplib="$STRIP -S"
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11324 $as_echo "yes" >&6; }
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327 $as_echo "no" >&6; }
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 $as_echo "no" >&6; }
11348 # Report which library types will actually be built
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11350 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11352 $as_echo "$can_build_shared" >&6; }
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11355 $as_echo_n "checking whether to build shared libraries... " >&6; }
11356 test "$can_build_shared" = "no" && enable_shared=no
11358 # On AIX, shared libraries and static libraries use the same namespace, and
11359 # are all built from PIC.
11362 test "$enable_shared" = yes && enable_static=no
11363 if test -n "$RANLIB"; then
11364 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11365 postinstall_cmds='$RANLIB $lib'
11370 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11371 test "$enable_shared" = yes && enable_static=no
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11376 $as_echo "$enable_shared" >&6; }
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11379 $as_echo_n "checking whether to build static libraries... " >&6; }
11380 # Make sure either enable_shared or enable_static is yes.
11381 test "$enable_shared" = yes || enable_static=yes
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11383 $as_echo "$enable_static" >&6; }
11390 ac_cpp='$CPP $CPPFLAGS'
11391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11411 ac_config_commands="$ac_config_commands libtool"
11416 # Only expand once:
11420 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
11421 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
11422 LT_REVISION=$SDL_INTERFACE_AGE
11423 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
11434 ac_cpp='$CPP $CPPFLAGS'
11435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11438 if test -n "$ac_tool_prefix"; then
11439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11442 $as_echo_n "checking for $ac_word... " >&6; }
11443 if ${ac_cv_prog_CC+:} false; then :
11444 $as_echo_n "(cached) " >&6
11446 if test -n "$CC"; then
11447 ac_cv_prog_CC="$CC" # Let the user override the test.
11449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11450 for as_dir in $PATH
11453 test -z "$as_dir" && as_dir=.
11454 for ac_exec_ext in '' $ac_executable_extensions; do
11455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11467 if test -n "$CC"; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11469 $as_echo "$CC" >&6; }
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11477 if test -z "$ac_cv_prog_CC"; then
11479 # Extract the first word of "gcc", so it can be a program name with args.
11480 set dummy gcc; ac_word=$2
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482 $as_echo_n "checking for $ac_word... " >&6; }
11483 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11484 $as_echo_n "(cached) " >&6
11486 if test -n "$ac_ct_CC"; then
11487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11493 test -z "$as_dir" && as_dir=.
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11496 ac_cv_prog_ac_ct_CC="gcc"
11497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11507 if test -n "$ac_ct_CC"; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11509 $as_echo "$ac_ct_CC" >&6; }
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11515 if test "x$ac_ct_CC" = x; then
11518 case $cross_compiling:$ac_tool_warned in
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11522 ac_tool_warned=yes ;;
11527 CC="$ac_cv_prog_CC"
11530 if test -z "$CC"; then
11531 if test -n "$ac_tool_prefix"; then
11532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11533 set dummy ${ac_tool_prefix}cc; ac_word=$2
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11535 $as_echo_n "checking for $ac_word... " >&6; }
11536 if ${ac_cv_prog_CC+:} false; then :
11537 $as_echo_n "(cached) " >&6
11539 if test -n "$CC"; then
11540 ac_cv_prog_CC="$CC" # Let the user override the test.
11542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543 for as_dir in $PATH
11546 test -z "$as_dir" && as_dir=.
11547 for ac_exec_ext in '' $ac_executable_extensions; do
11548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11549 ac_cv_prog_CC="${ac_tool_prefix}cc"
11550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11560 if test -n "$CC"; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11562 $as_echo "$CC" >&6; }
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; }
11571 if test -z "$CC"; then
11572 # Extract the first word of "cc", so it can be a program name with args.
11573 set dummy cc; ac_word=$2
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575 $as_echo_n "checking for $ac_word... " >&6; }
11576 if ${ac_cv_prog_CC+:} false; then :
11577 $as_echo_n "(cached) " >&6
11579 if test -n "$CC"; then
11580 ac_cv_prog_CC="$CC" # Let the user override the test.
11582 ac_prog_rejected=no
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
11589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11591 ac_prog_rejected=yes
11595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11602 if test $ac_prog_rejected = yes; then
11603 # We found a bogon in the path, so make sure we never use it.
11604 set dummy $ac_cv_prog_CC
11606 if test $# != 0; then
11607 # We chose a different compiler from the bogus one.
11608 # However, it has the same basename, so the bogon will be chosen
11609 # first if we set CC to just the basename; use the full file name.
11611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11617 if test -n "$CC"; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11619 $as_echo "$CC" >&6; }
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11622 $as_echo "no" >&6; }
11627 if test -z "$CC"; then
11628 if test -n "$ac_tool_prefix"; then
11629 for ac_prog in cl.exe
11631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11634 $as_echo_n "checking for $ac_word... " >&6; }
11635 if ${ac_cv_prog_CC+:} false; then :
11636 $as_echo_n "(cached) " >&6
11638 if test -n "$CC"; then
11639 ac_cv_prog_CC="$CC" # Let the user override the test.
11641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11642 for as_dir in $PATH
11645 test -z "$as_dir" && as_dir=.
11646 for ac_exec_ext in '' $ac_executable_extensions; do
11647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11659 if test -n "$CC"; then
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11661 $as_echo "$CC" >&6; }
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; }
11668 test -n "$CC" && break
11671 if test -z "$CC"; then
11673 for ac_prog in cl.exe
11675 # Extract the first word of "$ac_prog", so it can be a program name with args.
11676 set dummy $ac_prog; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11680 $as_echo_n "(cached) " >&6
11682 if test -n "$ac_ct_CC"; then
11683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692 ac_cv_prog_ac_ct_CC="$ac_prog"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11703 if test -n "$ac_ct_CC"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11705 $as_echo "$ac_ct_CC" >&6; }
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11712 test -n "$ac_ct_CC" && break
11715 if test "x$ac_ct_CC" = x; then
11718 case $cross_compiling:$ac_tool_warned in
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11722 ac_tool_warned=yes ;;
11731 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11733 as_fn_error $? "no acceptable C compiler found in \$PATH
11734 See \`config.log' for more details" "$LINENO" 5; }
11736 # Provide some information about the compiler.
11737 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11740 for ac_option in --version -v -V -qversion; do
11741 { { ac_try="$ac_compiler $ac_option >&5"
11742 case "(($ac_try" in
11743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11747 $as_echo "$ac_try_echo"; } >&5
11748 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11750 if test -s conftest.err; then
11752 ... rest of stderr output deleted ...
11753 10q' conftest.err >conftest.er1
11754 cat conftest.er1 >&5
11756 rm -f conftest.er1 conftest.err
11757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11758 test $ac_status = 0; }
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11762 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11763 if ${ac_cv_c_compiler_gnu+:} false; then :
11764 $as_echo_n "(cached) " >&6
11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h. */
11780 if ac_fn_c_try_compile "$LINENO"; then :
11781 ac_compiler_gnu=yes
11785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11790 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11791 if test $ac_compiler_gnu = yes; then
11796 ac_test_CFLAGS=${CFLAGS+set}
11797 ac_save_CFLAGS=$CFLAGS
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11799 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11800 if ${ac_cv_prog_cc_g+:} false; then :
11801 $as_echo_n "(cached) " >&6
11803 ac_save_c_werror_flag=$ac_c_werror_flag
11804 ac_c_werror_flag=yes
11807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h. */
11818 if ac_fn_c_try_compile "$LINENO"; then :
11819 ac_cv_prog_cc_g=yes
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h. */
11833 if ac_fn_c_try_compile "$LINENO"; then :
11836 ac_c_werror_flag=$ac_save_c_werror_flag
11838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11839 /* end confdefs.h. */
11849 if ac_fn_c_try_compile "$LINENO"; then :
11850 ac_cv_prog_cc_g=yes
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857 ac_c_werror_flag=$ac_save_c_werror_flag
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11860 $as_echo "$ac_cv_prog_cc_g" >&6; }
11861 if test "$ac_test_CFLAGS" = set; then
11862 CFLAGS=$ac_save_CFLAGS
11863 elif test $ac_cv_prog_cc_g = yes; then
11864 if test "$GCC" = yes; then
11870 if test "$GCC" = yes; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11877 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11878 if ${ac_cv_prog_cc_c89+:} false; then :
11879 $as_echo_n "(cached) " >&6
11881 ac_cv_prog_cc_c89=no
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11885 #include <stdarg.h>
11888 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11889 struct buf { int x; };
11890 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11891 static char *e (p, i)
11897 static char *f (char * (*g) (char **, int), char **p, ...)
11902 s = g (p, va_arg (v,int));
11907 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11908 function prototypes and stuff, but not '\xHH' hex character constants.
11909 These don't provoke an error unfortunately, instead are silently treated
11910 as 'x'. The following induces an error, until -std is added to get
11911 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11912 array size at least. It's necessary to write '\x00'==0 to get something
11913 that's true only with -std. */
11914 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11916 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11917 inside strings and character constants. */
11919 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11921 int test (int i, double x);
11922 struct s1 {int (*f) (int a);};
11923 struct s2 {int (*f) (double a);};
11924 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11930 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11935 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11936 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11938 CC="$ac_save_CC $ac_arg"
11939 if ac_fn_c_try_compile "$LINENO"; then :
11940 ac_cv_prog_cc_c89=$ac_arg
11942 rm -f core conftest.err conftest.$ac_objext
11943 test "x$ac_cv_prog_cc_c89" != "xno" && break
11945 rm -f conftest.$ac_ext
11950 case "x$ac_cv_prog_cc_c89" in
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11953 $as_echo "none needed" >&6; } ;;
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11956 $as_echo "unsupported" >&6; } ;;
11958 CC="$CC $ac_cv_prog_cc_c89"
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11960 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11962 if test "x$ac_cv_prog_cc_c89" != xno; then :
11967 ac_cpp='$CPP $CPPFLAGS'
11968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11973 ac_cpp='$CXXCPP $CPPFLAGS'
11974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11977 if test -z "$CXX"; then
11978 if test -n "$CCC"; then
11981 if test -n "$ac_tool_prefix"; then
11982 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if ${ac_cv_prog_CXX+:} false; then :
11989 $as_echo_n "(cached) " >&6
11991 if test -n "$CXX"; then
11992 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 for as_dir in $PATH
11998 test -z "$as_dir" && as_dir=.
11999 for ac_exec_ext in '' $ac_executable_extensions; do
12000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12001 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011 CXX=$ac_cv_prog_CXX
12012 if test -n "$CXX"; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12014 $as_echo "$CXX" >&6; }
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017 $as_echo "no" >&6; }
12021 test -n "$CXX" && break
12024 if test -z "$CXX"; then
12026 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12028 # Extract the first word of "$ac_prog", so it can be a program name with args.
12029 set dummy $ac_prog; ac_word=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12033 $as_echo_n "(cached) " >&6
12035 if test -n "$ac_ct_CXX"; then
12036 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12039 for as_dir in $PATH
12042 test -z "$as_dir" && as_dir=.
12043 for ac_exec_ext in '' $ac_executable_extensions; do
12044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12045 ac_cv_prog_ac_ct_CXX="$ac_prog"
12046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12055 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12056 if test -n "$ac_ct_CXX"; then
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12058 $as_echo "$ac_ct_CXX" >&6; }
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061 $as_echo "no" >&6; }
12065 test -n "$ac_ct_CXX" && break
12068 if test "x$ac_ct_CXX" = x; then
12071 case $cross_compiling:$ac_tool_warned in
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12075 ac_tool_warned=yes ;;
12083 # Provide some information about the compiler.
12084 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12087 for ac_option in --version -v -V -qversion; do
12088 { { ac_try="$ac_compiler $ac_option >&5"
12089 case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12094 $as_echo "$ac_try_echo"; } >&5
12095 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12097 if test -s conftest.err; then
12099 ... rest of stderr output deleted ...
12100 10q' conftest.err >conftest.er1
12101 cat conftest.er1 >&5
12103 rm -f conftest.er1 conftest.err
12104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12105 test $ac_status = 0; }
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12109 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12110 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12111 $as_echo_n "(cached) " >&6
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12127 if ac_fn_cxx_try_compile "$LINENO"; then :
12128 ac_compiler_gnu=yes
12132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12133 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12137 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12138 if test $ac_compiler_gnu = yes; then
12143 ac_test_CXXFLAGS=${CXXFLAGS+set}
12144 ac_save_CXXFLAGS=$CXXFLAGS
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12146 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12147 if ${ac_cv_prog_cxx_g+:} false; then :
12148 $as_echo_n "(cached) " >&6
12150 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12151 ac_cxx_werror_flag=yes
12152 ac_cv_prog_cxx_g=no
12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12165 if ac_fn_cxx_try_compile "$LINENO"; then :
12166 ac_cv_prog_cxx_g=yes
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12180 if ac_fn_cxx_try_compile "$LINENO"; then :
12183 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12196 if ac_fn_cxx_try_compile "$LINENO"; then :
12197 ac_cv_prog_cxx_g=yes
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12207 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12208 if test "$ac_test_CXXFLAGS" = set; then
12209 CXXFLAGS=$ac_save_CXXFLAGS
12210 elif test $ac_cv_prog_cxx_g = yes; then
12211 if test "$GXX" = yes; then
12217 if test "$GXX" = yes; then
12224 ac_cpp='$CPP $CPPFLAGS'
12225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12231 func_stripname_cnf ()
12234 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12235 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12237 } # func_stripname_cnf
12239 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12240 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12241 (test "X$CXX" != "Xg++"))) ; then
12243 ac_cpp='$CXXCPP $CPPFLAGS'
12244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12248 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12249 if test -z "$CXXCPP"; then
12250 if ${ac_cv_prog_CXXCPP+:} false; then :
12251 $as_echo_n "(cached) " >&6
12253 # Double quotes because CXXCPP needs to be expanded
12254 for CXXCPP in "$CXX -E" "/lib/cpp"
12256 ac_preproc_ok=false
12257 for ac_cxx_preproc_warn_flag in '' yes
12259 # Use a header file that comes with gcc, so configuring glibc
12260 # with a fresh cross-compiler works.
12261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12262 # <limits.h> exists even on freestanding compilers.
12263 # On the NeXT, cc -E runs the code through the compiler's parser,
12264 # not just through cpp. "Syntax error" is here to catch this case.
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12268 # include <limits.h>
12270 # include <assert.h>
12274 if ac_fn_cxx_try_cpp "$LINENO"; then :
12277 # Broken: fails on valid input.
12280 rm -f conftest.err conftest.i conftest.$ac_ext
12282 # OK, works on sane cases. Now check whether nonexistent headers
12283 # can be detected and how.
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12286 #include <ac_nonexistent.h>
12288 if ac_fn_cxx_try_cpp "$LINENO"; then :
12289 # Broken: success on invalid input.
12292 # Passes both tests.
12296 rm -f conftest.err conftest.i conftest.$ac_ext
12299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12300 rm -f conftest.i conftest.err conftest.$ac_ext
12301 if $ac_preproc_ok; then :
12306 ac_cv_prog_CXXCPP=$CXXCPP
12309 CXXCPP=$ac_cv_prog_CXXCPP
12311 ac_cv_prog_CXXCPP=$CXXCPP
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12314 $as_echo "$CXXCPP" >&6; }
12315 ac_preproc_ok=false
12316 for ac_cxx_preproc_warn_flag in '' yes
12318 # Use a header file that comes with gcc, so configuring glibc
12319 # with a fresh cross-compiler works.
12320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12321 # <limits.h> exists even on freestanding compilers.
12322 # On the NeXT, cc -E runs the code through the compiler's parser,
12323 # not just through cpp. "Syntax error" is here to catch this case.
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12327 # include <limits.h>
12329 # include <assert.h>
12333 if ac_fn_cxx_try_cpp "$LINENO"; then :
12336 # Broken: fails on valid input.
12339 rm -f conftest.err conftest.i conftest.$ac_ext
12341 # OK, works on sane cases. Now check whether nonexistent headers
12342 # can be detected and how.
12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12345 #include <ac_nonexistent.h>
12347 if ac_fn_cxx_try_cpp "$LINENO"; then :
12348 # Broken: success on invalid input.
12351 # Passes both tests.
12355 rm -f conftest.err conftest.i conftest.$ac_ext
12358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12359 rm -f conftest.i conftest.err conftest.$ac_ext
12360 if $ac_preproc_ok; then :
12363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12365 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12366 See \`config.log' for more details" "$LINENO" 5; }
12370 ac_cpp='$CPP $CPPFLAGS'
12371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12376 _lt_caught_CXX_error=yes
12380 ac_cpp='$CXXCPP $CPPFLAGS'
12381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12385 archive_cmds_need_lc_CXX=no
12386 allow_undefined_flag_CXX=
12387 always_export_symbols_CXX=no
12388 archive_expsym_cmds_CXX=
12389 compiler_needs_object_CXX=no
12390 export_dynamic_flag_spec_CXX=
12391 hardcode_direct_CXX=no
12392 hardcode_direct_absolute_CXX=no
12393 hardcode_libdir_flag_spec_CXX=
12394 hardcode_libdir_separator_CXX=
12395 hardcode_minus_L_CXX=no
12396 hardcode_shlibpath_var_CXX=unsupported
12397 hardcode_automatic_CXX=no
12398 inherit_rpath_CXX=no
12400 module_expsym_cmds_CXX=
12401 link_all_deplibs_CXX=unknown
12402 old_archive_cmds_CXX=$old_archive_cmds
12403 reload_flag_CXX=$reload_flag
12404 reload_cmds_CXX=$reload_cmds
12405 no_undefined_flag_CXX=
12406 whole_archive_flag_spec_CXX=
12407 enable_shared_with_static_runtimes_CXX=no
12409 # Source file extension for C++ test sources.
12412 # Object file extension for compiled C++ test sources.
12416 # No sense in running all these tests if we already determined that
12417 # the CXX compiler isn't working. Some variables (like enable_shared)
12418 # are currently assumed to apply to all compilers on this platform,
12419 # and will be corrupted by setting them based on a non-working compiler.
12420 if test "$_lt_caught_CXX_error" != yes; then
12421 # Code to be used in simple compile tests
12422 lt_simple_compile_test_code="int some_variable = 0;"
12424 # Code to be used in simple link tests
12425 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12427 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12434 # If no C compiler was specified, use CC.
12437 # If no C compiler flags were specified, use CFLAGS.
12438 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12440 # Allow CC to be a program name with arguments.
12444 # save warnings/boilerplate of simple test code
12445 ac_outfile=conftest.$ac_objext
12446 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12447 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12448 _lt_compiler_boilerplate=`cat conftest.err`
12451 ac_outfile=conftest.$ac_objext
12452 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12453 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12454 _lt_linker_boilerplate=`cat conftest.err`
12458 # Allow CC to be a program name with arguments.
12460 lt_save_CFLAGS=$CFLAGS
12464 lt_save_with_gnu_ld=$with_gnu_ld
12465 lt_save_path_LD=$lt_cv_path_LD
12466 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12467 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12469 $as_unset lt_cv_prog_gnu_ld
12471 if test -n "${lt_cv_path_LDCXX+set}"; then
12472 lt_cv_path_LD=$lt_cv_path_LDCXX
12474 $as_unset lt_cv_path_LD
12476 test -z "${LDCXX+set}" || LD=$LDCXX
12481 for cc_temp in $compiler""; do
12483 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12484 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12489 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12492 if test -n "$compiler"; then
12493 # We don't want -fno-exception when compiling C++ code, so set the
12494 # no_builtin_flag separately
12495 if test "$GXX" = yes; then
12496 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12498 lt_prog_compiler_no_builtin_flag_CXX=
12501 if test "$GXX" = yes; then
12502 # Set up default GNU C++ configuration
12506 # Check whether --with-gnu-ld was given.
12507 if test "${with_gnu_ld+set}" = set; then :
12508 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12514 if test "$GCC" = yes; then
12515 # Check if gcc -print-prog-name=ld gives a path.
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12517 $as_echo_n "checking for ld used by $CC... " >&6; }
12520 # gcc leaves a trailing carriage return which upsets mingw
12521 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12523 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12526 # Accept absolute paths.
12528 re_direlt='/[^/][^/]*/\.\./'
12529 # Canonicalize the pathname of ld
12530 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12531 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12532 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12534 test -z "$LD" && LD="$ac_prog"
12537 # If it fails, then pretend we aren't using GCC.
12541 # If it is relative, then search for the first ld in PATH.
12542 with_gnu_ld=unknown
12545 elif test "$with_gnu_ld" = yes; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12547 $as_echo_n "checking for GNU ld... " >&6; }
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12550 $as_echo_n "checking for non-GNU ld... " >&6; }
12552 if ${lt_cv_path_LD+:} false; then :
12553 $as_echo_n "(cached) " >&6
12555 if test -z "$LD"; then
12556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12557 for ac_dir in $PATH; do
12559 test -z "$ac_dir" && ac_dir=.
12560 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12561 lt_cv_path_LD="$ac_dir/$ac_prog"
12562 # Check to see if the program is GNU ld. I'd rather use --version,
12563 # but apparently some variants of GNU ld only accept -v.
12564 # Break only if it was the GNU/non-GNU ld that we prefer.
12565 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12566 *GNU* | *'with BFD'*)
12567 test "$with_gnu_ld" != no && break
12570 test "$with_gnu_ld" != yes && break
12577 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12581 LD="$lt_cv_path_LD"
12582 if test -n "$LD"; then
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12584 $as_echo "$LD" >&6; }
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12589 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12591 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12592 if ${lt_cv_prog_gnu_ld+:} false; then :
12593 $as_echo_n "(cached) " >&6
12595 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12596 case `$LD -v 2>&1 </dev/null` in
12597 *GNU* | *'with BFD'*)
12598 lt_cv_prog_gnu_ld=yes
12601 lt_cv_prog_gnu_ld=no
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12606 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12607 with_gnu_ld=$lt_cv_prog_gnu_ld
12615 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12616 # archiving commands below assume that GNU ld is being used.
12617 if test "$with_gnu_ld" = yes; then
12618 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12619 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12621 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12622 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12624 # If archive_cmds runs LD, not CC, wlarc should be empty
12625 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12626 # investigate it a little bit more. (MM)
12629 # ancient GNU ld didn't support --whole-archive et. al.
12630 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12631 $GREP 'no-whole-archive' > /dev/null; then
12632 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12634 whole_archive_flag_spec_CXX=
12640 # A generic and very simple default shared library creation
12641 # command for GNU C++ for the case where it uses the native
12642 # linker, instead of GNU ld. If possible, this setting should
12643 # overridden to take advantage of the native linker features on
12644 # the platform it is being used on.
12645 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12648 # Commands to make compiler produce verbose output that lists
12649 # what "hidden" libraries, object files and flags are used when
12650 # linking a shared library.
12651 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12659 # PORTME: fill in a description of your system's C++ link characteristics
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12661 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12665 # FIXME: insert proper C++ library support
12669 if test "$host_cpu" = ia64; then
12670 # On IA64, the linker does run time linking by default, so we don't
12671 # have to do anything special.
12672 aix_use_runtimelinking=no
12673 exp_sym_flag='-Bexport'
12676 aix_use_runtimelinking=no
12678 # Test if we are trying to use run time linking or normal
12679 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12680 # need to do runtime linking.
12681 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12682 for ld_flag in $LDFLAGS; do
12685 aix_use_runtimelinking=yes
12693 exp_sym_flag='-bexport'
12694 no_entry_flag='-bnoentry'
12697 # When large executables or shared objects are built, AIX ld can
12698 # have problems creating the table of contents. If linking a library
12699 # or program results in "error TOC overflow" add -mminimal-toc to
12700 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12701 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12703 archive_cmds_CXX=''
12704 hardcode_direct_CXX=yes
12705 hardcode_direct_absolute_CXX=yes
12706 hardcode_libdir_separator_CXX=':'
12707 link_all_deplibs_CXX=yes
12708 file_list_spec_CXX='${wl}-f,'
12710 if test "$GXX" = yes; then
12711 case $host_os in aix4.[012]|aix4.[012].*)
12712 # We only want to do this on AIX 4.2 and lower, the check
12713 # below for broken collect2 doesn't work under 4.3+
12714 collect2name=`${CC} -print-prog-name=collect2`
12715 if test -f "$collect2name" &&
12716 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12718 # We have reworked collect2
12721 # We have old collect2
12722 hardcode_direct_CXX=unsupported
12723 # It fails to find uninstalled libraries when the uninstalled
12724 # path is not listed in the libpath. Setting hardcode_minus_L
12725 # to unsupported forces relinking
12726 hardcode_minus_L_CXX=yes
12727 hardcode_libdir_flag_spec_CXX='-L$libdir'
12728 hardcode_libdir_separator_CXX=
12731 shared_flag='-shared'
12732 if test "$aix_use_runtimelinking" = yes; then
12733 shared_flag="$shared_flag "'${wl}-G'
12737 if test "$host_cpu" = ia64; then
12738 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12739 # chokes on -Wl,-G. The following line is correct:
12742 if test "$aix_use_runtimelinking" = yes; then
12743 shared_flag='${wl}-G'
12745 shared_flag='${wl}-bM:SRE'
12750 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12751 # It seems that -bexpall does not export symbols beginning with
12752 # underscore (_), so it is better to generate a list of symbols to
12754 always_export_symbols_CXX=yes
12755 if test "$aix_use_runtimelinking" = yes; then
12756 # Warning - without using the other runtime loading flags (-brtl),
12757 # -berok will link without error, but may produce a broken library.
12758 allow_undefined_flag_CXX='-berok'
12759 # Determine the default libpath from the value encoded in an empty
12761 if test "${lt_cv_aix_libpath+set}" = set; then
12762 aix_libpath=$lt_cv_aix_libpath
12764 if ${lt_cv_aix_libpath__CXX+:} false; then :
12765 $as_echo_n "(cached) " >&6
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12778 if ac_fn_cxx_try_link "$LINENO"; then :
12780 lt_aix_libpath_sed='
12781 /Import File Strings/,/^$/ {
12783 s/^0 *\([^ ]*\) *$/\1/
12787 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12788 # Check for a 64-bit object if we didn't find anything.
12789 if test -z "$lt_cv_aix_libpath__CXX"; then
12790 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12793 rm -f core conftest.err conftest.$ac_objext \
12794 conftest$ac_exeext conftest.$ac_ext
12795 if test -z "$lt_cv_aix_libpath__CXX"; then
12796 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12801 aix_libpath=$lt_cv_aix_libpath__CXX
12804 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12806 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12808 if test "$host_cpu" = ia64; then
12809 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12810 allow_undefined_flag_CXX="-z nodefs"
12811 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"
12813 # Determine the default libpath from the value encoded in an
12814 # empty executable.
12815 if test "${lt_cv_aix_libpath+set}" = set; then
12816 aix_libpath=$lt_cv_aix_libpath
12818 if ${lt_cv_aix_libpath__CXX+:} false; then :
12819 $as_echo_n "(cached) " >&6
12821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h. */
12832 if ac_fn_cxx_try_link "$LINENO"; then :
12834 lt_aix_libpath_sed='
12835 /Import File Strings/,/^$/ {
12837 s/^0 *\([^ ]*\) *$/\1/
12841 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12842 # Check for a 64-bit object if we didn't find anything.
12843 if test -z "$lt_cv_aix_libpath__CXX"; then
12844 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12847 rm -f core conftest.err conftest.$ac_objext \
12848 conftest$ac_exeext conftest.$ac_ext
12849 if test -z "$lt_cv_aix_libpath__CXX"; then
12850 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12855 aix_libpath=$lt_cv_aix_libpath__CXX
12858 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12859 # Warning - without using the other run time loading flags,
12860 # -berok will link without error, but may produce a broken library.
12861 no_undefined_flag_CXX=' ${wl}-bernotok'
12862 allow_undefined_flag_CXX=' ${wl}-berok'
12863 if test "$with_gnu_ld" = yes; then
12864 # We only use this code for GNU lds that support --whole-archive.
12865 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12867 # Exported symbols can be pulled into shared objects from archives
12868 whole_archive_flag_spec_CXX='$convenience'
12870 archive_cmds_need_lc_CXX=yes
12871 # This is similar to how AIX traditionally builds its shared
12873 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'
12879 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12880 allow_undefined_flag_CXX=unsupported
12881 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12882 # support --undefined. This deserves some investigation. FIXME
12883 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12890 case $cc_basename in
12892 # FIXME: insert proper C++ library support
12898 cygwin* | mingw* | pw32* | cegcc*)
12899 case $GXX,$cc_basename in
12902 # hardcode_libdir_flag_spec is actually meaningless, as there is
12903 # no search path for DLLs.
12904 hardcode_libdir_flag_spec_CXX=' '
12905 allow_undefined_flag_CXX=unsupported
12906 always_export_symbols_CXX=yes
12907 file_list_spec_CXX='@'
12908 # Tell ltmain to make .lib files, not .a files.
12910 # Tell ltmain to make .dll files, not .so files.
12912 # FIXME: Setting linknames here is a bad hack.
12913 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12914 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12915 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12917 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12919 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12921 # The linker will not automatically build a static lib if we build a DLL.
12922 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12923 enable_shared_with_static_runtimes_CXX=yes
12925 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12926 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12927 lt_tool_outputfile="@TOOL_OUTPUT@"~
12928 case $lt_outputfile in
12931 lt_outputfile="$lt_outputfile.exe"
12932 lt_tool_outputfile="$lt_tool_outputfile.exe"
12935 func_to_tool_file "$lt_outputfile"~
12936 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12937 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12938 $RM "$lt_outputfile.manifest";
12943 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12944 # as there is no search path for DLLs.
12945 hardcode_libdir_flag_spec_CXX='-L$libdir'
12946 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12947 allow_undefined_flag_CXX=unsupported
12948 always_export_symbols_CXX=no
12949 enable_shared_with_static_runtimes_CXX=yes
12951 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12952 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'
12953 # If the export-symbols file already is a .def file (1st line
12954 # is EXPORTS), use it as is; otherwise, prepend...
12955 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12956 cp $export_symbols $output_objdir/$soname.def;
12958 echo EXPORTS > $output_objdir/$soname.def;
12959 cat $export_symbols >> $output_objdir/$soname.def;
12961 $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'
12968 darwin* | rhapsody*)
12971 archive_cmds_need_lc_CXX=no
12972 hardcode_direct_CXX=no
12973 hardcode_automatic_CXX=yes
12974 hardcode_shlibpath_var_CXX=unsupported
12975 if test "$lt_cv_ld_force_load" = "yes"; then
12976 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12979 whole_archive_flag_spec_CXX=''
12981 link_all_deplibs_CXX=yes
12982 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12983 case $cc_basename in
12984 ifort*) _lt_dar_can_shared=yes ;;
12985 *) _lt_dar_can_shared=$GCC ;;
12987 if test "$_lt_dar_can_shared" = "yes"; then
12988 output_verbose_link_cmd=func_echo_all
12989 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12990 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12991 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12992 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12993 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12994 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${_lt_dsymutil}"
12995 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
13005 case $cc_basename in
13007 # FIXME: insert proper C++ library support
13011 # Green Hills C++ Compiler
13012 # FIXME: insert proper C++ library support
13016 # FIXME: insert proper C++ library support
13023 # C++ shared libraries reported to be fairly broken before
13029 archive_cmds_need_lc_CXX=no
13032 freebsd* | dragonfly*)
13033 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13042 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13043 link_all_deplibs_CXX=yes
13047 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13048 hardcode_libdir_separator_CXX=:
13049 export_dynamic_flag_spec_CXX='${wl}-E'
13050 hardcode_direct_CXX=yes
13051 hardcode_minus_L_CXX=yes # Not in the search PATH,
13052 # but as the default
13053 # location of the library.
13055 case $cc_basename in
13057 # FIXME: insert proper C++ library support
13061 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'
13062 # Commands to make compiler produce verbose output that lists
13063 # what "hidden" libraries, object files and flags are used when
13064 # linking a shared library.
13066 # There doesn't appear to be a way to prevent this compiler from
13067 # explicitly linking system object files so we need to strip them
13068 # from the output so that they don't get included in the library
13070 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13073 if test "$GXX" = yes; then
13074 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13076 # FIXME: insert proper C++ library support
13084 if test $with_gnu_ld = no; then
13085 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13086 hardcode_libdir_separator_CXX=:
13092 export_dynamic_flag_spec_CXX='${wl}-E'
13098 hardcode_direct_CXX=no
13099 hardcode_shlibpath_var_CXX=no
13102 hardcode_direct_CXX=yes
13103 hardcode_direct_absolute_CXX=yes
13104 hardcode_minus_L_CXX=yes # Not in the search PATH,
13105 # but as the default
13106 # location of the library.
13110 case $cc_basename in
13112 # FIXME: insert proper C++ library support
13118 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13121 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13124 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13127 # Commands to make compiler produce verbose output that lists
13128 # what "hidden" libraries, object files and flags are used when
13129 # linking a shared library.
13131 # There doesn't appear to be a way to prevent this compiler from
13132 # explicitly linking system object files so we need to strip them
13133 # from the output so that they don't get included in the library
13135 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; func_echo_all "$list"'
13138 if test "$GXX" = yes; then
13139 if test $with_gnu_ld = no; then
13142 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13145 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13148 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13153 # FIXME: insert proper C++ library support
13161 hardcode_direct_CXX=no
13162 hardcode_shlibpath_var_CXX=no
13163 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13164 export_dynamic_flag_spec_CXX='${wl}-E'
13165 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13166 # Instead, shared libraries are loaded at an image base (0x10000000 by
13167 # default) and relocated if they conflict, which is a slow very memory
13168 # consuming and fragmenting process. To avoid this, we pick a random,
13169 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13170 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13171 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'
13172 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'
13175 case $cc_basename in
13178 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13180 # Archives containing C++ object files must be created using
13181 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13182 # necessary to make sure instantiated templates are included
13184 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13187 if test "$GXX" = yes; then
13188 if test "$with_gnu_ld" = no; then
13189 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13191 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13194 link_all_deplibs_CXX=yes
13197 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13198 hardcode_libdir_separator_CXX=:
13199 inherit_rpath_CXX=yes
13202 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13203 case $cc_basename in
13205 # Kuck and Associates, Inc. (KAI) C++ Compiler
13207 # KCC will only create a shared library if the output file
13208 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13209 # to its proper name (with version) after linking.
13210 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'
13211 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'
13212 # Commands to make compiler produce verbose output that lists
13213 # what "hidden" libraries, object files and flags are used when
13214 # linking a shared library.
13216 # There doesn't appear to be a way to prevent this compiler from
13217 # explicitly linking system object files so we need to strip them
13218 # from the output so that they don't get included in the library
13220 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; func_echo_all "$list"'
13222 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13223 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13225 # Archives containing C++ object files must be created using
13226 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13227 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13232 # version 8.0 and above of icpc choke on multiply defined symbols
13233 # if we add $predep_objects and $postdep_objects, however 7.1 and
13234 # earlier do not add the objects themselves.
13235 case `$CC -V 2>&1` in
13237 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13238 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'
13240 *) # Version 8.0 or newer
13243 ia64*) tmp_idyn=' -i_dynamic';;
13245 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13246 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'
13249 archive_cmds_need_lc_CXX=no
13250 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13251 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13252 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13255 # Portland Group C++ compiler
13257 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13258 prelink_cmds_CXX='tpldir=Template.dir~
13260 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13261 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13262 old_archive_cmds_CXX='tpldir=Template.dir~
13264 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13265 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13267 archive_cmds_CXX='tpldir=Template.dir~
13269 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13270 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13271 archive_expsym_cmds_CXX='tpldir=Template.dir~
13273 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13274 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13276 *) # Version 6 and above use weak symbols
13277 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13278 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'
13282 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13283 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13284 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13288 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13289 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'
13291 runpath_var=LD_RUN_PATH
13292 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13293 hardcode_libdir_separator_CXX=:
13295 # Commands to make compiler produce verbose output that lists
13296 # what "hidden" libraries, object files and flags are used when
13297 # linking a shared library.
13299 # There doesn't appear to be a way to prevent this compiler from
13300 # explicitly linking system object files so we need to strip them
13301 # from the output so that they don't get included in the library
13303 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
13305 xl* | mpixl* | bgxl*)
13306 # IBM XL 8.0 on PPC, with GNU ld
13307 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13309 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13310 if test "x$supports_anon_versioning" = xyes; then
13311 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13312 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13313 echo "local: *; };" >> $output_objdir/$libname.ver~
13314 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13318 case `$CC -V 2>&1 | sed 5q` in
13321 no_undefined_flag_CXX=' -zdefs'
13322 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13323 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13324 hardcode_libdir_flag_spec_CXX='-R$libdir'
13325 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13326 compiler_needs_object_CXX=yes
13328 # Not sure whether something based on
13329 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13331 output_verbose_link_cmd='func_echo_all'
13333 # Archives containing C++ object files must be created using
13334 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13335 # necessary to make sure instantiated templates are included
13337 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13345 # FIXME: insert proper C++ library support
13350 # FIXME: insert proper C++ library support
13355 case $cc_basename in
13357 # FIXME: insert proper C++ library support
13361 # FIXME: insert proper C++ library support
13368 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13369 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13371 hardcode_libdir_flag_spec_CXX='-R$libdir'
13372 hardcode_direct_CXX=yes
13373 hardcode_shlibpath_var_CXX=no
13375 # Workaround some broken pre-1.5 toolchains
13376 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13384 # C++ shared libraries are fairly broken
13389 if test -f /usr/libexec/ld.so; then
13390 hardcode_direct_CXX=yes
13391 hardcode_shlibpath_var_CXX=no
13392 hardcode_direct_absolute_CXX=yes
13393 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13394 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13395 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13396 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13397 export_dynamic_flag_spec_CXX='${wl}-E'
13398 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13400 output_verbose_link_cmd=func_echo_all
13406 osf3* | osf4* | osf5*)
13407 case $cc_basename in
13409 # Kuck and Associates, Inc. (KAI) C++ Compiler
13411 # KCC will only create a shared library if the output file
13412 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13413 # to its proper name (with version) after linking.
13414 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'
13416 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13417 hardcode_libdir_separator_CXX=:
13419 # Archives containing C++ object files must be created using
13420 # the KAI C++ compiler.
13422 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13423 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13427 # Rational C++ 2.4.1
13428 # FIXME: insert proper C++ library support
13434 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13435 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13436 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13439 allow_undefined_flag_CXX=' -expect_unresolved \*'
13440 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13441 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13442 echo "-hidden">> $lib.exp~
13443 $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~
13445 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13449 hardcode_libdir_separator_CXX=:
13451 # Commands to make compiler produce verbose output that lists
13452 # what "hidden" libraries, object files and flags are used when
13453 # linking a shared library.
13455 # There doesn't appear to be a way to prevent this compiler from
13456 # explicitly linking system object files so we need to strip them
13457 # from the output so that they don't get included in the library
13459 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
13462 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13463 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13466 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13469 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13473 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13474 hardcode_libdir_separator_CXX=:
13476 # Commands to make compiler produce verbose output that lists
13477 # what "hidden" libraries, object files and flags are used when
13478 # linking a shared library.
13479 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13482 # FIXME: insert proper C++ library support
13490 # FIXME: insert proper C++ library support
13495 case $cc_basename in
13498 # FIXME: insert proper C++ library support
13503 # FIXME: insert proper C++ library support
13507 # FIXME: insert proper C++ library support
13514 case $cc_basename in
13516 # Sun C++ 4.2, 5.x and Centerline C++
13517 archive_cmds_need_lc_CXX=yes
13518 no_undefined_flag_CXX=' -zdefs'
13519 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13520 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13521 $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'
13523 hardcode_libdir_flag_spec_CXX='-R$libdir'
13524 hardcode_shlibpath_var_CXX=no
13526 solaris2.[0-5] | solaris2.[0-5].*) ;;
13528 # The compiler driver will combine and reorder linker options,
13529 # but understands `-z linker_flag'.
13530 # Supported since Solaris 2.6 (maybe 2.5.1?)
13531 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13534 link_all_deplibs_CXX=yes
13536 output_verbose_link_cmd='func_echo_all'
13538 # Archives containing C++ object files must be created using
13539 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13540 # necessary to make sure instantiated templates are included
13542 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13545 # Green Hills C++ Compiler
13546 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13548 # The C++ compiler must be used to create the archive.
13549 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13552 # GNU C++ compiler with Solaris linker
13553 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13554 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13555 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13556 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13557 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13558 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13560 # Commands to make compiler produce verbose output that lists
13561 # what "hidden" libraries, object files and flags are used when
13562 # linking a shared library.
13563 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13565 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13567 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13568 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13569 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13571 # Commands to make compiler produce verbose output that lists
13572 # what "hidden" libraries, object files and flags are used when
13573 # linking a shared library.
13574 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13577 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13579 solaris2.[0-5] | solaris2.[0-5].*) ;;
13581 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13589 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13590 no_undefined_flag_CXX='${wl}-z,text'
13591 archive_cmds_need_lc_CXX=no
13592 hardcode_shlibpath_var_CXX=no
13593 runpath_var='LD_RUN_PATH'
13595 case $cc_basename in
13597 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13598 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13601 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13602 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13607 sysv5* | sco3.2v5* | sco5v6*)
13608 # Note: We can NOT use -z defs as we might desire, because we do not
13609 # link with -lc, and that would cause any symbols used from libc to
13610 # always be unresolved, which means just about no library would
13611 # ever link correctly. If we're not using GNU ld we use -z text
13612 # though, which does catch some bad symbols but isn't as heavy-handed
13614 no_undefined_flag_CXX='${wl}-z,text'
13615 allow_undefined_flag_CXX='${wl}-z,nodefs'
13616 archive_cmds_need_lc_CXX=no
13617 hardcode_shlibpath_var_CXX=no
13618 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13619 hardcode_libdir_separator_CXX=':'
13620 link_all_deplibs_CXX=yes
13621 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13622 runpath_var='LD_RUN_PATH'
13624 case $cc_basename in
13626 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13627 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13628 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13629 '"$old_archive_cmds_CXX"
13630 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13631 '"$reload_cmds_CXX"
13634 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13635 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13641 case $cc_basename in
13643 # NonStop-UX NCC 3.20
13644 # FIXME: insert proper C++ library support
13648 # FIXME: insert proper C++ library support
13655 # FIXME: insert proper C++ library support
13660 # FIXME: insert proper C++ library support
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13666 $as_echo "$ld_shlibs_CXX" >&6; }
13667 test "$ld_shlibs_CXX" = no && can_build_shared=no
13673 ## There is no encapsulation within the following macros, do not change
13674 ## the running order or otherwise move them around unless you know exactly
13675 ## what you are doing...
13676 # Dependencies to place before and after the object being linked:
13677 predep_objects_CXX=
13678 postdep_objects_CXX=
13681 compiler_lib_search_path_CXX=
13683 cat > conftest.$ac_ext <<_LT_EOF
13687 Foo (void) { a = 0; }
13694 _lt_libdeps_save_CFLAGS=$CFLAGS
13695 case "$CC $CFLAGS " in #(
13696 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13697 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13698 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13702 (eval $ac_compile) 2>&5
13704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13705 test $ac_status = 0; }; then
13706 # Parse the compiler output and extract the necessary
13707 # objects, libraries and library flags.
13709 # Sentinel used to keep track of whether or not we are before
13710 # the conftest object file.
13711 pre_test_object_deps_done=no
13713 for p in `eval "$output_verbose_link_cmd"`; do
13714 case ${prev}${p} in
13717 # Some compilers place space between "-{L,R}" and the path.
13718 # Remove the space.
13719 if test $p = "-L" ||
13720 test $p = "-R"; then
13725 # Expand the sysroot to ease extracting the directories later.
13726 if test -z "$prev"; then
13728 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13729 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13730 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13734 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13736 if test "$pre_test_object_deps_done" = no; then
13739 # Internal compiler library paths should come after those
13740 # provided the user. The postdeps already come after the
13741 # user supplied libs so there is no need to process them.
13742 if test -z "$compiler_lib_search_path_CXX"; then
13743 compiler_lib_search_path_CXX="${prev}${p}"
13745 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13748 # The "-l" case would never come before the object being
13749 # linked, so don't bother handling this case.
13752 if test -z "$postdeps_CXX"; then
13753 postdeps_CXX="${prev}${p}"
13755 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13761 *.lto.$objext) ;; # Ignore GCC LTO objects
13763 # This assumes that the test object file only shows up
13764 # once in the compiler output.
13765 if test "$p" = "conftest.$objext"; then
13766 pre_test_object_deps_done=yes
13770 if test "$pre_test_object_deps_done" = no; then
13771 if test -z "$predep_objects_CXX"; then
13772 predep_objects_CXX="$p"
13774 predep_objects_CXX="$predep_objects_CXX $p"
13777 if test -z "$postdep_objects_CXX"; then
13778 postdep_objects_CXX="$p"
13780 postdep_objects_CXX="$postdep_objects_CXX $p"
13785 *) ;; # Ignore the rest.
13793 echo "libtool.m4: error: problem compiling CXX test program"
13796 $RM -f confest.$objext
13797 CFLAGS=$_lt_libdeps_save_CFLAGS
13799 # PORTME: override above test on systems where it is broken
13802 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13803 # hack all around it, let's just trust "g++" to DTRT.
13804 predep_objects_CXX=
13805 postdep_objects_CXX=
13810 case `$CC -V 2>&1 | sed 5q` in
13814 # The more standards-conforming stlport4 library is
13815 # incompatible with the Cstd library. Avoid specifying
13816 # it if it's in CXXFLAGS. Ignore libCrun as
13817 # -library=stlport4 depends on it.
13818 case " $CXX $CXXFLAGS " in
13819 *" -library=stlport4 "*)
13820 solaris_use_stlport4=yes
13824 if test "$solaris_use_stlport4" != yes; then
13825 postdeps_CXX='-library=Cstd -library=Crun'
13832 case $cc_basename in
13834 # The more standards-conforming stlport4 library is
13835 # incompatible with the Cstd library. Avoid specifying
13836 # it if it's in CXXFLAGS. Ignore libCrun as
13837 # -library=stlport4 depends on it.
13838 case " $CXX $CXXFLAGS " in
13839 *" -library=stlport4 "*)
13840 solaris_use_stlport4=yes
13844 # Adding this requires a known-good setup of shared libraries for
13845 # Sun compiler versions before 5.6, else PIC objects from an old
13846 # archive will be linked into the output, leading to subtle bugs.
13847 if test "$solaris_use_stlport4" != yes; then
13848 postdeps_CXX='-library=Cstd -library=Crun'
13856 case " $postdeps_CXX " in
13857 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13859 compiler_lib_search_dirs_CXX=
13860 if test -n "${compiler_lib_search_path_CXX}"; then
13861 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13894 lt_prog_compiler_wl_CXX=
13895 lt_prog_compiler_pic_CXX=
13896 lt_prog_compiler_static_CXX=
13899 # C++ specific cases for pic, static, wl, etc.
13900 if test "$GXX" = yes; then
13901 lt_prog_compiler_wl_CXX='-Wl,'
13902 lt_prog_compiler_static_CXX='-static'
13906 # All AIX code is PIC.
13907 if test "$host_cpu" = ia64; then
13908 # AIX 5 now supports IA64 processor
13909 lt_prog_compiler_static_CXX='-Bstatic'
13916 # see comment about AmigaOS4 .so support
13917 lt_prog_compiler_pic_CXX='-fPIC'
13920 # FIXME: we need at least 68020 code to build shared libraries, but
13921 # adding the `-m68020' flag to GCC prevents building anything better,
13923 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13928 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13929 # PIC is the default for these OSes.
13931 mingw* | cygwin* | os2* | pw32* | cegcc*)
13932 # This hack is so that the source file can tell whether it is being
13933 # built for inclusion in a dll (and should export symbols for example).
13934 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13935 # (--disable-auto-import) libraries
13936 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13938 darwin* | rhapsody*)
13939 # PIC is the default on this platform
13940 # Common symbols not allowed in MH_DYLIB files
13941 lt_prog_compiler_pic_CXX='-fno-common'
13944 # DJGPP does not support shared libraries at all
13945 lt_prog_compiler_pic_CXX=
13948 # PIC is the default for Haiku.
13949 # The "-static" flag exists, but is broken.
13950 lt_prog_compiler_static_CXX=
13953 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13954 # Instead, we relocate shared libraries at runtime.
13957 if test -d /usr/nec; then
13958 lt_prog_compiler_pic_CXX=-Kconform_pic
13962 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13963 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13964 # sets the default TLS model and affects inlining.
13969 lt_prog_compiler_pic_CXX='-fPIC'
13974 # QNX uses GNU C++, but need to define -shared option too, otherwise
13975 # it will coredump.
13976 lt_prog_compiler_pic_CXX='-fPIC -shared'
13979 lt_prog_compiler_pic_CXX='-fPIC'
13985 # All AIX code is PIC.
13986 if test "$host_cpu" = ia64; then
13987 # AIX 5 now supports IA64 processor
13988 lt_prog_compiler_static_CXX='-Bstatic'
13990 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13994 case $cc_basename in
13996 # Green Hills C++ Compiler
13997 # _LT_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"
14001 mingw* | cygwin* | os2* | pw32* | cegcc*)
14002 # This hack is so that the source file can tell whether it is being
14003 # built for inclusion in a dll (and should export symbols for example).
14004 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14007 case $cc_basename in
14009 lt_prog_compiler_pic_CXX='-KPIC'
14012 # Green Hills C++ Compiler
14013 lt_prog_compiler_pic_CXX='-pic'
14019 freebsd* | dragonfly*)
14020 # FreeBSD uses GNU C++
14022 hpux9* | hpux10* | hpux11*)
14023 case $cc_basename in
14025 lt_prog_compiler_wl_CXX='-Wl,'
14026 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14027 if test "$host_cpu" != ia64; then
14028 lt_prog_compiler_pic_CXX='+Z'
14032 lt_prog_compiler_wl_CXX='-Wl,'
14033 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14039 lt_prog_compiler_pic_CXX='+Z'
14048 # This is c89, which is MS Visual C++ (no shared libs)
14049 # Anyone wants to do a port?
14051 irix5* | irix6* | nonstopux*)
14052 case $cc_basename in
14054 lt_prog_compiler_wl_CXX='-Wl,'
14055 lt_prog_compiler_static_CXX='-non_shared'
14056 # CC pic flag -KPIC is the default.
14062 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14063 case $cc_basename in
14066 lt_prog_compiler_wl_CXX='--backend -Wl,'
14067 lt_prog_compiler_pic_CXX='-fPIC'
14070 # old Intel C++ for x86_64 which still supported -KPIC.
14071 lt_prog_compiler_wl_CXX='-Wl,'
14072 lt_prog_compiler_pic_CXX='-KPIC'
14073 lt_prog_compiler_static_CXX='-static'
14076 # Intel C++, used to be incompatible with GCC.
14077 # ICC 10 doesn't accept -KPIC any more.
14078 lt_prog_compiler_wl_CXX='-Wl,'
14079 lt_prog_compiler_pic_CXX='-fPIC'
14080 lt_prog_compiler_static_CXX='-static'
14083 # Portland Group C++ compiler
14084 lt_prog_compiler_wl_CXX='-Wl,'
14085 lt_prog_compiler_pic_CXX='-fpic'
14086 lt_prog_compiler_static_CXX='-Bstatic'
14090 # Make sure the PIC flag is empty. It appears that all Alpha
14091 # Linux and Compaq Tru64 Unix objects are PIC.
14092 lt_prog_compiler_pic_CXX=
14093 lt_prog_compiler_static_CXX='-non_shared'
14095 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14096 # IBM XL 8.0, 9.0 on PPC and BlueGene
14097 lt_prog_compiler_wl_CXX='-Wl,'
14098 lt_prog_compiler_pic_CXX='-qpic'
14099 lt_prog_compiler_static_CXX='-qstaticlink'
14102 case `$CC -V 2>&1 | sed 5q` in
14105 lt_prog_compiler_pic_CXX='-KPIC'
14106 lt_prog_compiler_static_CXX='-Bstatic'
14107 lt_prog_compiler_wl_CXX='-Qoption ld '
14118 case $cc_basename in
14120 lt_prog_compiler_pic_CXX='-W c,exportall'
14129 # QNX uses GNU C++, but need to define -shared option too, otherwise
14130 # it will coredump.
14131 lt_prog_compiler_pic_CXX='-fPIC -shared'
14133 osf3* | osf4* | osf5*)
14134 case $cc_basename in
14136 lt_prog_compiler_wl_CXX='--backend -Wl,'
14139 # Rational C++ 2.4.1
14140 lt_prog_compiler_pic_CXX='-pic'
14143 # Digital/Compaq C++
14144 lt_prog_compiler_wl_CXX='-Wl,'
14145 # Make sure the PIC flag is empty. It appears that all Alpha
14146 # Linux and Compaq Tru64 Unix objects are PIC.
14147 lt_prog_compiler_pic_CXX=
14148 lt_prog_compiler_static_CXX='-non_shared'
14157 case $cc_basename in
14159 # Sun C++ 4.2, 5.x and Centerline C++
14160 lt_prog_compiler_pic_CXX='-KPIC'
14161 lt_prog_compiler_static_CXX='-Bstatic'
14162 lt_prog_compiler_wl_CXX='-Qoption ld '
14165 # Green Hills C++ Compiler
14166 lt_prog_compiler_pic_CXX='-PIC'
14173 case $cc_basename in
14176 lt_prog_compiler_pic_CXX='-pic'
14177 lt_prog_compiler_static_CXX='-Bstatic'
14181 lt_prog_compiler_pic_CXX='-pic'
14187 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14188 case $cc_basename in
14190 lt_prog_compiler_wl_CXX='-Wl,'
14191 lt_prog_compiler_pic_CXX='-KPIC'
14192 lt_prog_compiler_static_CXX='-Bstatic'
14197 case $cc_basename in
14199 # NonStop-UX NCC 3.20
14200 lt_prog_compiler_pic_CXX='-KPIC'
14209 lt_prog_compiler_can_build_shared_CXX=no
14215 # For platforms which do not support PIC, -DPIC is meaningless:
14217 lt_prog_compiler_pic_CXX=
14220 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14225 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14226 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14227 $as_echo_n "(cached) " >&6
14229 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14232 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14233 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14236 # Check to make sure the PIC flag actually works.
14238 if test -n "$lt_prog_compiler_pic_CXX"; then
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14240 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14241 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14242 $as_echo_n "(cached) " >&6
14244 lt_cv_prog_compiler_pic_works_CXX=no
14245 ac_outfile=conftest.$ac_objext
14246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14247 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14248 # Insert the option either (1) after the last *FLAGS variable, or
14249 # (2) before a word containing "conftest.", or (3) at the end.
14250 # Note that $ac_compile itself does not contain backslashes and begins
14251 # with a dollar sign (not a hyphen), so the echo should work correctly.
14252 # The option is referenced via a variable to avoid confusing sed.
14253 lt_compile=`echo "$ac_compile" | $SED \
14254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14256 -e 's:$: $lt_compiler_flag:'`
14257 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14258 (eval "$lt_compile" 2>conftest.err)
14260 cat conftest.err >&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 if (exit $ac_status) && test -s "$ac_outfile"; then
14263 # The compiler can only warn and ignore the option if not recognized
14264 # So say no if there are warnings other than the usual output.
14265 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14267 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14268 lt_cv_prog_compiler_pic_works_CXX=yes
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14275 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14277 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14278 case $lt_prog_compiler_pic_CXX in
14280 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14283 lt_prog_compiler_pic_CXX=
14284 lt_prog_compiler_can_build_shared_CXX=no
14294 # Check to make sure the static flag actually works.
14296 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14298 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14299 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14300 $as_echo_n "(cached) " >&6
14302 lt_cv_prog_compiler_static_works_CXX=no
14303 save_LDFLAGS="$LDFLAGS"
14304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14305 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14307 # The linker can only warn and ignore the option if not recognized
14308 # So say no if there are warnings
14309 if test -s conftest.err; then
14310 # Append any errors to the config.log.
14311 cat conftest.err 1>&5
14312 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14314 if diff conftest.exp conftest.er2 >/dev/null; then
14315 lt_cv_prog_compiler_static_works_CXX=yes
14318 lt_cv_prog_compiler_static_works_CXX=yes
14322 LDFLAGS="$save_LDFLAGS"
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14326 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14328 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14331 lt_prog_compiler_static_CXX=
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14339 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14340 $as_echo_n "(cached) " >&6
14342 lt_cv_prog_compiler_c_o_CXX=no
14343 $RM -r conftest 2>/dev/null
14347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14349 lt_compiler_flag="-o out/conftest2.$ac_objext"
14350 # Insert the option either (1) after the last *FLAGS variable, or
14351 # (2) before a word containing "conftest.", or (3) at the end.
14352 # Note that $ac_compile itself does not contain backslashes and begins
14353 # with a dollar sign (not a hyphen), so the echo should work correctly.
14354 lt_compile=`echo "$ac_compile" | $SED \
14355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14357 -e 's:$: $lt_compiler_flag:'`
14358 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14359 (eval "$lt_compile" 2>out/conftest.err)
14361 cat out/conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14365 # The compiler can only warn and ignore the option if not recognized
14366 # So say no if there are warnings
14367 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14368 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14369 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14370 lt_cv_prog_compiler_c_o_CXX=yes
14375 # SGI C++ compiler will create directory out/ii_files/ for
14376 # template instantiation
14377 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14378 $RM out/* && rmdir out
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14385 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14390 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14391 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14392 $as_echo_n "(cached) " >&6
14394 lt_cv_prog_compiler_c_o_CXX=no
14395 $RM -r conftest 2>/dev/null
14399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14401 lt_compiler_flag="-o out/conftest2.$ac_objext"
14402 # Insert the option either (1) after the last *FLAGS variable, or
14403 # (2) before a word containing "conftest.", or (3) at the end.
14404 # Note that $ac_compile itself does not contain backslashes and begins
14405 # with a dollar sign (not a hyphen), so the echo should work correctly.
14406 lt_compile=`echo "$ac_compile" | $SED \
14407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14409 -e 's:$: $lt_compiler_flag:'`
14410 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14411 (eval "$lt_compile" 2>out/conftest.err)
14413 cat out/conftest.err >&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14417 # The compiler can only warn and ignore the option if not recognized
14418 # So say no if there are warnings
14419 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14420 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14421 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14422 lt_cv_prog_compiler_c_o_CXX=yes
14427 # SGI C++ compiler will create directory out/ii_files/ for
14428 # template instantiation
14429 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14430 $RM out/* && rmdir out
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14437 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14442 hard_links="nottested"
14443 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14444 # do not overwrite the value of need_locks provided by the user
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14446 $as_echo_n "checking if we can lock with hard links... " >&6; }
14449 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14451 ln conftest.a conftest.b 2>&5 || hard_links=no
14452 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14454 $as_echo "$hard_links" >&6; }
14455 if test "$hard_links" = no; then
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14457 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14467 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14469 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14470 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14473 # If we're using GNU nm, then we don't want the "-C" option.
14474 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14475 # Also, AIX nm treats weak defined symbols like other global defined
14476 # symbols, whereas GNU nm marks them as "W".
14477 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14478 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14480 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'
14484 export_symbols_cmds_CXX="$ltdll_cmds"
14486 cygwin* | mingw* | cegcc*)
14487 case $cc_basename in
14489 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14492 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14493 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14498 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14503 $as_echo "$ld_shlibs_CXX" >&6; }
14504 test "$ld_shlibs_CXX" = no && can_build_shared=no
14506 with_gnu_ld_CXX=$with_gnu_ld
14514 # Do we need to explicitly link libc?
14516 case "x$archive_cmds_need_lc_CXX" in
14518 # Assume -lc should be added
14519 archive_cmds_need_lc_CXX=yes
14521 if test "$enable_shared" = yes && test "$GCC" = yes; then
14522 case $archive_cmds_CXX in
14524 # FIXME: we may have to deal with multi-command sequences.
14527 # Test whether the compiler implicitly links with -lc since on some
14528 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14529 # to ld, don't add -lc before -lgcc.
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14531 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14532 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14533 $as_echo_n "(cached) " >&6
14536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14539 (eval $ac_compile) 2>&5
14541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14542 test $ac_status = 0; } 2>conftest.err; then
14545 libobjs=conftest.$ac_objext
14547 wl=$lt_prog_compiler_wl_CXX
14548 pic_flag=$lt_prog_compiler_pic_CXX
14554 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14555 allow_undefined_flag_CXX=
14556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14557 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14560 test $ac_status = 0; }
14562 lt_cv_archive_cmds_need_lc_CXX=no
14564 lt_cv_archive_cmds_need_lc_CXX=yes
14566 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14568 cat conftest.err 1>&5
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14574 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14575 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14644 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14646 library_names_spec=
14647 libname_spec='lib$name'
14651 postuninstall_cmds=
14655 shlibpath_overrides_runpath=unknown
14657 dynamic_linker="$host_os ld.so"
14658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14659 need_lib_prefix=unknown
14660 hardcode_into_libs=no
14662 # when you set need_version to no, make sure it does not cause -set_version
14663 # flags to be left without arguments
14664 need_version=unknown
14668 version_type=linux # correct to gnu/linux during the next big refactor
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14670 shlibpath_var=LIBPATH
14672 # AIX 3 has no versioning support, so we append a major version to the name.
14673 soname_spec='${libname}${release}${shared_ext}$major'
14677 version_type=linux # correct to gnu/linux during the next big refactor
14680 hardcode_into_libs=yes
14681 if test "$host_cpu" = ia64; then
14682 # AIX 5 supports IA64
14683 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14684 shlibpath_var=LD_LIBRARY_PATH
14686 # With GCC up to 2.95.x, collect2 would create an import file
14687 # for dependence libraries. The import file would start with
14688 # the line `#! .'. This would cause the generated library to
14689 # depend on `.', always an invalid library. This was fixed in
14690 # development snapshots of GCC prior to 3.0.
14692 aix4 | aix4.[01] | aix4.[01].*)
14693 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14695 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14698 can_build_shared=no
14702 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14703 # soname into executable. Probably we can add versioning support to
14704 # collect2, so additional links can be useful in future.
14705 if test "$aix_use_runtimelinking" = yes; then
14706 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14707 # instead of lib<name>.a to let people know that these are not
14708 # typical AIX shared libraries.
14709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711 # We preserve .a as extension for shared libraries through AIX4.2
14712 # and later when we are not doing run time linking.
14713 library_names_spec='${libname}${release}.a $libname.a'
14714 soname_spec='${libname}${release}${shared_ext}$major'
14716 shlibpath_var=LIBPATH
14723 # Since July 2007 AmigaOS4 officially supports .so libraries.
14724 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14728 library_names_spec='$libname.ixlibrary $libname.a'
14729 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14730 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14736 library_names_spec='${libname}${shared_ext}'
14737 dynamic_linker="$host_os ld.so"
14738 shlibpath_var=LIBRARY_PATH
14742 version_type=linux # correct to gnu/linux during the next big refactor
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745 soname_spec='${libname}${release}${shared_ext}$major'
14746 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14749 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14750 # the default ld.so.conf also contains /usr/contrib/lib and
14751 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14752 # libtool to hard-code these into programs
14755 cygwin* | mingw* | pw32* | cegcc*)
14756 version_type=windows
14761 case $GCC,$cc_basename in
14764 library_names_spec='$libname.dll.a'
14765 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14766 postinstall_cmds='base_file=`basename \${file}`~
14767 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14768 dldir=$destdir/`dirname \$dlpath`~
14769 test -d \$dldir || mkdir -p \$dldir~
14770 $install_prog $dir/$dlname \$dldir/$dlname~
14771 chmod a+x \$dldir/$dlname~
14772 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14773 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14775 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14776 dlpath=$dir/\$dldll~
14778 shlibpath_overrides_runpath=yes
14782 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14783 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
14784 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
14788 # MinGW DLLs use traditional 'lib' prefix
14789 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
14790 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
14793 # pw32 DLLs use 'pw' prefix rather than 'lib'
14794 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14797 dynamic_linker='Win32 ld.exe'
14802 libname_spec='$name'
14803 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14804 library_names_spec='${libname}.dll.lib'
14808 sys_lib_search_path_spec=
14811 for lt_path in $LIB
14814 # Let DOS variable expansion print the short 8.3 style file name.
14815 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14816 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14819 # Convert to MSYS style.
14820 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14823 # Convert to unix form, then to dos form, then back to unix form
14824 # but this time dos style (no spaces!) so that the unix form looks
14825 # like /cygdrive/c/PROGRA~1:/cygdr...
14826 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14827 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14828 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14831 sys_lib_search_path_spec="$LIB"
14832 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14833 # It is most probably a Windows format PATH.
14834 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14836 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14838 # FIXME: find the short name or the path components, as spaces are
14839 # common. (e.g. "Program Files" -> "PROGRA~1")
14843 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14844 postinstall_cmds='base_file=`basename \${file}`~
14845 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14846 dldir=$destdir/`dirname \$dlpath`~
14847 test -d \$dldir || mkdir -p \$dldir~
14848 $install_prog $dir/$dlname \$dldir/$dlname'
14849 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14850 dlpath=$dir/\$dldll~
14852 shlibpath_overrides_runpath=yes
14853 dynamic_linker='Win32 link.exe'
14857 # Assume MSVC wrapper
14858 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14859 dynamic_linker='Win32 ld.exe'
14862 # FIXME: first we should search . and the directory the executable is in
14866 darwin* | rhapsody*)
14867 dynamic_linker="$host_os dyld"
14868 version_type=darwin
14871 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14872 soname_spec='${libname}${release}${major}$shared_ext'
14873 shlibpath_overrides_runpath=yes
14874 shlibpath_var=DYLD_LIBRARY_PATH
14875 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14877 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14881 version_type=linux # correct to gnu/linux during the next big refactor
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14885 soname_spec='${libname}${release}${shared_ext}$major'
14886 shlibpath_var=LD_LIBRARY_PATH
14889 freebsd* | dragonfly*)
14890 # DragonFly does not have aout. When/if they implement a new
14891 # versioning mechanism, adjust this.
14892 if test -x /usr/bin/objformat; then
14893 objformat=`/usr/bin/objformat`
14896 freebsd[23].*) objformat=aout ;;
14897 *) objformat=elf ;;
14900 version_type=freebsd-$objformat
14901 case $version_type in
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14912 shlibpath_var=LD_LIBRARY_PATH
14915 shlibpath_overrides_runpath=yes
14917 freebsd3.[01]* | freebsdelf3.[01]*)
14918 shlibpath_overrides_runpath=yes
14919 hardcode_into_libs=yes
14921 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14922 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14923 shlibpath_overrides_runpath=no
14924 hardcode_into_libs=yes
14926 *) # from 4.6 on, and DragonFly
14927 shlibpath_overrides_runpath=yes
14928 hardcode_into_libs=yes
14934 version_type=linux # correct to gnu/linux during the next big refactor
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 shlibpath_overrides_runpath=no
14941 hardcode_into_libs=yes
14945 version_type=linux # correct to gnu/linux during the next big refactor
14948 dynamic_linker="$host_os runtime_loader"
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14950 soname_spec='${libname}${release}${shared_ext}$major'
14951 shlibpath_var=LIBRARY_PATH
14952 shlibpath_overrides_runpath=yes
14953 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14954 hardcode_into_libs=yes
14957 hpux9* | hpux10* | hpux11*)
14958 # Give a soname corresponding to the major version so that dld.sl refuses to
14959 # link against other versions.
14966 hardcode_into_libs=yes
14967 dynamic_linker="$host_os dld.so"
14968 shlibpath_var=LD_LIBRARY_PATH
14969 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971 soname_spec='${libname}${release}${shared_ext}$major'
14972 if test "X$HPUX_IA64_MODE" = X32; then
14973 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14975 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14981 hardcode_into_libs=yes
14982 dynamic_linker="$host_os dld.sl"
14983 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14984 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986 soname_spec='${libname}${release}${shared_ext}$major'
14987 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14992 dynamic_linker="$host_os dld.sl"
14993 shlibpath_var=SHLIB_PATH
14994 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996 soname_spec='${libname}${release}${shared_ext}$major'
14999 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15000 postinstall_cmds='chmod 555 $lib'
15001 # or fails outright, so override atomically:
15002 install_override_mode=555
15006 version_type=linux # correct to gnu/linux during the next big refactor
15009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15010 soname_spec='${libname}${release}${shared_ext}$major'
15011 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15012 shlibpath_var=LD_LIBRARY_PATH
15013 shlibpath_overrides_runpath=no
15014 hardcode_into_libs=yes
15017 irix5* | irix6* | nonstopux*)
15019 nonstopux*) version_type=nonstopux ;;
15021 if test "$lt_cv_prog_gnu_ld" = yes; then
15022 version_type=linux # correct to gnu/linux during the next big refactor
15029 soname_spec='${libname}${release}${shared_ext}$major'
15030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15032 irix5* | nonstopux*)
15033 libsuff= shlibsuff=
15036 case $LD in # libtool.m4 will add one of these switches to LD
15037 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15038 libsuff= shlibsuff= libmagic=32-bit;;
15039 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15040 libsuff=32 shlibsuff=N32 libmagic=N32;;
15041 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15042 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15043 *) libsuff= shlibsuff= libmagic=never-match;;
15047 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15048 shlibpath_overrides_runpath=no
15049 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15050 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15051 hardcode_into_libs=yes
15054 # No shared lib support for Linux oldld, aout, or coff.
15055 linux*oldld* | linux*aout* | linux*coff*)
15059 # This must be glibc/ELF.
15060 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15061 version_type=linux # correct to gnu/linux during the next big refactor
15064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15065 soname_spec='${libname}${release}${shared_ext}$major'
15066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15067 shlibpath_var=LD_LIBRARY_PATH
15068 shlibpath_overrides_runpath=no
15070 # Some binutils ld are patched to set DT_RUNPATH
15071 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15072 $as_echo_n "(cached) " >&6
15074 lt_cv_shlibpath_overrides_runpath=no
15075 save_LDFLAGS=$LDFLAGS
15076 save_libdir=$libdir
15077 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15078 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h. */
15090 if ac_fn_cxx_try_link "$LINENO"; then :
15091 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15092 lt_cv_shlibpath_overrides_runpath=yes
15095 rm -f core conftest.err conftest.$ac_objext \
15096 conftest$ac_exeext conftest.$ac_ext
15097 LDFLAGS=$save_LDFLAGS
15098 libdir=$save_libdir
15102 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15104 # This implies no fast_install, which is unacceptable.
15105 # Some rework will be needed to allow for fast_install
15106 # before this can be enabled.
15107 hardcode_into_libs=yes
15109 # Append ld.so.conf contents to the search path
15110 if test -f /etc/ld.so.conf; then
15111 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15112 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15115 # We used to test for /lib/ld.so.1 and disable shared libraries on
15116 # powerpc, because MkLinux only supported shared libraries with the
15117 # GNU dynamic linker. Since this was broken with cross compilers,
15118 # most powerpc-linux boxes support dynamic linking these days and
15119 # people can always --disable-shared, the test was removed, and we
15120 # assume the GNU/Linux dynamic linker is in use.
15121 dynamic_linker='GNU/Linux ld.so'
15128 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15131 dynamic_linker='NetBSD (a.out) ld.so'
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15134 soname_spec='${libname}${release}${shared_ext}$major'
15135 dynamic_linker='NetBSD ld.elf_so'
15137 shlibpath_var=LD_LIBRARY_PATH
15138 shlibpath_overrides_runpath=yes
15139 hardcode_into_libs=yes
15143 version_type=linux # correct to gnu/linux during the next big refactor
15144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15145 shlibpath_var=LD_LIBRARY_PATH
15146 shlibpath_overrides_runpath=yes
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15154 soname_spec='${libname}${release}${shared_ext}$major'
15155 shlibpath_var=LD_LIBRARY_PATH
15156 shlibpath_overrides_runpath=no
15157 hardcode_into_libs=yes
15158 dynamic_linker='ldqnx.so'
15163 sys_lib_dlsearch_path_spec="/usr/lib"
15165 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15167 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15168 *) need_version=no ;;
15170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15172 shlibpath_var=LD_LIBRARY_PATH
15173 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15175 openbsd2.[89] | openbsd2.[89].*)
15176 shlibpath_overrides_runpath=no
15179 shlibpath_overrides_runpath=yes
15183 shlibpath_overrides_runpath=yes
15188 libname_spec='$name'
15191 library_names_spec='$libname${shared_ext} $libname.a'
15192 dynamic_linker='OS/2 ld.exe'
15193 shlibpath_var=LIBPATH
15196 osf3* | osf4* | osf5*)
15200 soname_spec='${libname}${release}${shared_ext}$major'
15201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15202 shlibpath_var=LD_LIBRARY_PATH
15203 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15204 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15212 version_type=linux # correct to gnu/linux during the next big refactor
15215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15216 soname_spec='${libname}${release}${shared_ext}$major'
15217 shlibpath_var=LD_LIBRARY_PATH
15218 shlibpath_overrides_runpath=yes
15219 hardcode_into_libs=yes
15220 # ldd complains unless libraries are executable
15221 postinstall_cmds='chmod +x $lib'
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15227 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15228 shlibpath_var=LD_LIBRARY_PATH
15229 shlibpath_overrides_runpath=yes
15230 if test "$with_gnu_ld" = yes; then
15237 version_type=linux # correct to gnu/linux during the next big refactor
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15239 soname_spec='${libname}${release}${shared_ext}$major'
15240 shlibpath_var=LD_LIBRARY_PATH
15241 case $host_vendor in
15243 shlibpath_overrides_runpath=no
15245 runpath_var=LD_RUN_PATH
15253 shlibpath_overrides_runpath=no
15254 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15260 if test -d /usr/nec ;then
15261 version_type=linux # correct to gnu/linux during the next big refactor
15262 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15263 soname_spec='$libname${shared_ext}.$major'
15264 shlibpath_var=LD_LIBRARY_PATH
15268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15269 version_type=freebsd-elf
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15273 soname_spec='${libname}${release}${shared_ext}$major'
15274 shlibpath_var=LD_LIBRARY_PATH
15275 shlibpath_overrides_runpath=yes
15276 hardcode_into_libs=yes
15277 if test "$with_gnu_ld" = yes; then
15278 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15280 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15283 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15287 sys_lib_dlsearch_path_spec='/usr/lib'
15291 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15292 version_type=linux # correct to gnu/linux during the next big refactor
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296 shlibpath_var=LD_LIBRARY_PATH
15297 shlibpath_overrides_runpath=no
15298 hardcode_into_libs=yes
15302 version_type=linux # correct to gnu/linux during the next big refactor
15303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15304 soname_spec='${libname}${release}${shared_ext}$major'
15305 shlibpath_var=LD_LIBRARY_PATH
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15313 $as_echo "$dynamic_linker" >&6; }
15314 test "$dynamic_linker" = no && can_build_shared=no
15316 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15317 if test "$GCC" = yes; then
15318 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15321 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15322 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15324 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15325 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15366 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15367 hardcode_action_CXX=
15368 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15369 test -n "$runpath_var_CXX" ||
15370 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15372 # We can hardcode non-existent directories.
15373 if test "$hardcode_direct_CXX" != no &&
15374 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15375 # have to relink, otherwise we might link with an installed library
15376 # when we should be linking with a yet-to-be-installed one
15377 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15378 test "$hardcode_minus_L_CXX" != no; then
15379 # Linking always hardcodes the temporary library directory.
15380 hardcode_action_CXX=relink
15382 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15383 hardcode_action_CXX=immediate
15386 # We cannot hardcode anything, or else we can only hardcode existing
15388 hardcode_action_CXX=unsupported
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15391 $as_echo "$hardcode_action_CXX" >&6; }
15393 if test "$hardcode_action_CXX" = relink ||
15394 test "$inherit_rpath_CXX" = yes; then
15395 # Fast installation is not supported
15396 enable_fast_install=no
15397 elif test "$shlibpath_overrides_runpath" = yes ||
15398 test "$enable_shared" = no; then
15399 # Fast installation is not necessary
15400 enable_fast_install=needless
15409 fi # test -n "$compiler"
15412 CFLAGS=$lt_save_CFLAGS
15416 with_gnu_ld=$lt_save_with_gnu_ld
15417 lt_cv_path_LDCXX=$lt_cv_path_LD
15418 lt_cv_path_LD=$lt_save_path_LD
15419 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15420 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15421 fi # test "$_lt_caught_CXX_error" != yes
15424 ac_cpp='$CPP $CPPFLAGS'
15425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15430 # Find a good install program. We prefer a C program (faster),
15431 # so one script is as good as another. But avoid the broken or
15432 # incompatible versions:
15433 # SysV /etc/install, /usr/sbin/install
15434 # SunOS /usr/etc/install
15435 # IRIX /sbin/install
15437 # AmigaOS /C/install, which installs bootblocks on floppy discs
15438 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15441 # OS/2's system install, which has a completely different semantic
15442 # ./install, which can be erroneously created by make from ./install.sh.
15443 # Reject install programs that cannot install multiple files.
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15445 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15446 if test -z "$INSTALL"; then
15447 if ${ac_cv_path_install+:} false; then :
15448 $as_echo_n "(cached) " >&6
15450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15451 for as_dir in $PATH
15454 test -z "$as_dir" && as_dir=.
15455 # Account for people who put trailing slashes in PATH elements.
15456 case $as_dir/ in #((
15457 ./ | .// | /[cC]/* | \
15458 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15459 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15462 # OSF1 and SCO ODT 3.0 have their own names for install.
15463 # Don't use installbsd from OSF since it installs stuff as root
15465 for ac_prog in ginstall scoinst install; do
15466 for ac_exec_ext in '' $ac_executable_extensions; do
15467 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15468 if test $ac_prog = install &&
15469 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15470 # AIX install. It has an incompatible calling convention.
15472 elif test $ac_prog = install &&
15473 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15474 # program-specific install script used by HP pwplus--don't use.
15477 rm -rf conftest.one conftest.two conftest.dir
15478 echo one > conftest.one
15479 echo two > conftest.two
15481 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15482 test -s conftest.one && test -s conftest.two &&
15483 test -s conftest.dir/conftest.one &&
15484 test -s conftest.dir/conftest.two
15486 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15499 rm -rf conftest.one conftest.two conftest.dir
15502 if test "${ac_cv_path_install+set}" = set; then
15503 INSTALL=$ac_cv_path_install
15505 # As a last resort, use the slow shell script. Don't cache a
15506 # value for INSTALL within a source directory, because that will
15507 # break other packages using the cache if that directory is
15508 # removed, or if the value is a relative name.
15509 INSTALL=$ac_install_sh
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15513 $as_echo "$INSTALL" >&6; }
15515 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15516 # It thinks the first close brace ends the variable substitution.
15517 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15519 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15521 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15524 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15526 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15527 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15528 $as_echo_n "(cached) " >&6
15530 cat >conftest.make <<\_ACEOF
15533 @echo '@@@%%%=$(MAKE)=@@@%%%'
15535 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15536 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15537 *@@@%%%=?*=@@@%%%*)
15538 eval ac_cv_prog_make_${ac_make}_set=yes;;
15540 eval ac_cv_prog_make_${ac_make}_set=no;;
15542 rm -f conftest.make
15544 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15546 $as_echo "yes" >&6; }
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15550 $as_echo "no" >&6; }
15551 SET_MAKE="MAKE=${MAKE-make}"
15554 if test -n "$ac_tool_prefix"; then
15555 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15556 set dummy ${ac_tool_prefix}windres; ac_word=$2
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15558 $as_echo_n "checking for $ac_word... " >&6; }
15559 if ${ac_cv_prog_WINDRES+:} false; then :
15560 $as_echo_n "(cached) " >&6
15562 if test -n "$WINDRES"; then
15563 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15566 for as_dir in $PATH
15569 test -z "$as_dir" && as_dir=.
15570 for ac_exec_ext in '' $ac_executable_extensions; do
15571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15572 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15582 WINDRES=$ac_cv_prog_WINDRES
15583 if test -n "$WINDRES"; then
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
15585 $as_echo "$WINDRES" >&6; }
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15588 $as_echo "no" >&6; }
15593 if test -z "$ac_cv_prog_WINDRES"; then
15594 ac_ct_WINDRES=$WINDRES
15595 # Extract the first word of "windres", so it can be a program name with args.
15596 set dummy windres; ac_word=$2
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15598 $as_echo_n "checking for $ac_word... " >&6; }
15599 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
15600 $as_echo_n "(cached) " >&6
15602 if test -n "$ac_ct_WINDRES"; then
15603 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15606 for as_dir in $PATH
15609 test -z "$as_dir" && as_dir=.
15610 for ac_exec_ext in '' $ac_executable_extensions; do
15611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15612 ac_cv_prog_ac_ct_WINDRES="windres"
15613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15622 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15623 if test -n "$ac_ct_WINDRES"; then
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
15625 $as_echo "$ac_ct_WINDRES" >&6; }
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15628 $as_echo "no" >&6; }
15631 if test "x$ac_ct_WINDRES" = x; then
15634 case $cross_compiling:$ac_tool_warned in
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15638 ac_tool_warned=yes ;;
15640 WINDRES=$ac_ct_WINDRES
15643 WINDRES="$ac_cv_prog_WINDRES"
15649 # Except on msys, where make can't handle full pathnames (bug 1972)
15652 srcdir=`cd $srcdir && pwd`
15656 INCLUDE="-I$srcdir/include"
15657 if test x$srcdir != x.; then
15658 INCLUDE="-Iinclude $INCLUDE"
15659 elif test -d .hg; then
15661 *** When building from Mercurial you should configure and build in a
15662 separate directory so you don't clobber SDL_config.h, SDL_revision.h
15669 # We build SDL on cygwin without the UNIX emulation layer
15670 save_CFLAGS="$CFLAGS"
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
15673 $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
15674 CFLAGS="$save_CFLAGS -mno-cygwin"
15676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h. */
15689 if ac_fn_c_try_compile "$LINENO"; then :
15694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
15696 $as_echo "$have_no_cygwin" >&6; }
15697 CFLAGS="$save_CFLAGS"
15699 if test x$have_no_cygwin = xyes; then
15700 BASE_CFLAGS="-mno-cygwin"
15701 BASE_LDFLAGS="-mno-cygwin"
15703 BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
15706 # Uncomment the following line if you want to force SDL and applications
15707 # built with it to be compiled for a particular architecture.
15708 #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
15709 BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
15710 # The default optimization for SDL is -O3 (Bug #31)
15711 if test "x$orig_CFLAGS" = x; then
15712 BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
15714 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
15715 BUILD_LDFLAGS="$LDFLAGS"
15716 EXTRA_LDFLAGS="$BASE_LDFLAGS"
15717 ## These are common directories to find software packages
15718 #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
15719 # if test -d $path/include; then
15720 # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
15722 # if test -d $path/lib; then
15723 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
15726 SDL_CFLAGS="$BASE_CFLAGS"
15727 SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
15728 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
15729 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
15730 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
15732 base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
15736 gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
15737 gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
15738 env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
15739 if test "$cross_compiling" = yes; then
15742 host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
15744 for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
15745 lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
15746 if test x$lib != x; then
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15754 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15755 if ${ac_cv_c_const+:} false; then :
15756 $as_echo_n "(cached) " >&6
15758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15759 /* end confdefs.h. */
15765 #ifndef __cplusplus
15766 /* Ultrix mips cc rejects this sort of thing. */
15767 typedef int charset[2];
15768 const charset cs = { 0, 0 };
15769 /* SunOS 4.1.1 cc rejects this. */
15770 char const *const *pcpcc;
15772 /* NEC SVR4.0.2 mips cc rejects this. */
15773 struct point {int x, y;};
15774 static struct point const zero = {0,0};
15775 /* AIX XL C 1.02.0.0 rejects this.
15776 It does not let you subtract one const X* pointer from another in
15777 an arm of an if-expression whose if-part is not a constant
15779 const char *g = "string";
15780 pcpcc = &g + (g ? g-g : 0);
15781 /* HPUX 7.0 cc rejects these. */
15783 ppc = (char**) pcpcc;
15784 pcpcc = (char const *const *) ppc;
15785 { /* SCO 3.2v4 cc rejects this sort of thing. */
15788 char const *s = 0 ? (char *) 0 : (char const *) 0;
15793 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15794 int x[] = {25, 17};
15795 const int *foo = &x[0];
15798 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15799 typedef const int *iptr;
15803 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15804 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15805 struct s { int j; const int *ap[3]; } bx;
15806 struct s *b = &bx; b->j = 5;
15808 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15809 const int foo = 10;
15810 if (!foo) return 0;
15812 return !cs[0] && !zero.x;
15819 if ac_fn_c_try_compile "$LINENO"; then :
15824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15827 $as_echo "$ac_cv_c_const" >&6; }
15828 if test $ac_cv_c_const = no; then
15830 $as_echo "#define const /**/" >>confdefs.h
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15835 $as_echo_n "checking for inline... " >&6; }
15836 if ${ac_cv_c_inline+:} false; then :
15837 $as_echo_n "(cached) " >&6
15840 for ac_kw in inline __inline__ __inline; do
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15843 #ifndef __cplusplus
15845 static $ac_kw foo_t static_foo () {return 0; }
15846 $ac_kw foo_t foo () {return 0; }
15850 if ac_fn_c_try_compile "$LINENO"; then :
15851 ac_cv_c_inline=$ac_kw
15853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15854 test "$ac_cv_c_inline" != no && break
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15859 $as_echo "$ac_cv_c_inline" >&6; }
15861 case $ac_cv_c_inline in
15864 case $ac_cv_c_inline in
15866 *) ac_val=$ac_cv_c_inline;;
15868 cat >>confdefs.h <<_ACEOF
15869 #ifndef __cplusplus
15870 #define inline $ac_val
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
15877 $as_echo_n "checking for working volatile... " >&6; }
15878 if ${ac_cv_c_volatile+:} false; then :
15879 $as_echo_n "(cached) " >&6
15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15889 int * volatile y = (int *) 0;
15895 if ac_fn_c_try_compile "$LINENO"; then :
15896 ac_cv_c_volatile=yes
15898 ac_cv_c_volatile=no
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
15903 $as_echo "$ac_cv_c_volatile" >&6; }
15904 if test $ac_cv_c_volatile = no; then
15906 $as_echo "#define volatile /**/" >>confdefs.h
15911 # Check whether --enable-assertions was given.
15912 if test "${enable_assertions+set}" = set; then :
15913 enableval=$enable_assertions;
15915 enable_assertions=auto
15918 case "$enable_assertions" in
15919 auto) # Use optimization settings to determine assertion level
15923 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
15928 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
15933 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
15938 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
15942 as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
15946 # Check whether --enable-dependency-tracking was given.
15947 if test "${enable_dependency_tracking+set}" = set; then :
15948 enableval=$enable_dependency_tracking;
15950 enable_dependency_tracking=yes
15953 if test x$enable_dependency_tracking = xyes; then
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
15956 $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
15957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h. */
15960 #if !defined(__GNUC__) || __GNUC__ < 3
15961 #error Dependency tracking requires GCC 3.0 or newer
15973 if ac_fn_c_try_compile "$LINENO"; then :
15975 have_gcc_mmd_mt=yes
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
15980 $as_echo "$have_gcc_mmd_mt" >&6; }
15982 if test x$have_gcc_mmd_mt = xyes; then
15983 DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
15988 $as_echo_n "checking for linker option --no-undefined... " >&6; }
15989 have_no_undefined=no
15995 save_LDFLAGS="$LDFLAGS"
15996 LDFLAGS="$LDFLAGS -Wl,--no-undefined"
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
16010 if ac_fn_c_try_link "$LINENO"; then :
16012 have_no_undefined=yes
16013 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
16016 rm -f core conftest.err conftest.$ac_objext \
16017 conftest$ac_exeext conftest.$ac_ext
16018 LDFLAGS="$save_LDFLAGS"
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
16022 $as_echo "$have_no_undefined" >&6; }
16024 # Check whether --enable-libc was given.
16025 if test "${enable_libc+set}" = set; then :
16026 enableval=$enable_libc;
16031 if test x$enable_libc = xyes; then
16033 $as_echo "#define HAVE_LIBC 1" >>confdefs.h
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16037 $as_echo_n "checking for ANSI C header files... " >&6; }
16038 if ${ac_cv_header_stdc+:} false; then :
16039 $as_echo_n "(cached) " >&6
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16043 #include <stdlib.h>
16044 #include <stdarg.h>
16045 #include <string.h>
16056 if ac_fn_c_try_compile "$LINENO"; then :
16057 ac_cv_header_stdc=yes
16059 ac_cv_header_stdc=no
16061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16063 if test $ac_cv_header_stdc = yes; then
16064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16066 /* end confdefs.h. */
16067 #include <string.h>
16070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16071 $EGREP "memchr" >/dev/null 2>&1; then :
16074 ac_cv_header_stdc=no
16080 if test $ac_cv_header_stdc = yes; then
16081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084 #include <stdlib.h>
16087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16088 $EGREP "free" >/dev/null 2>&1; then :
16091 ac_cv_header_stdc=no
16097 if test $ac_cv_header_stdc = yes; then
16098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16099 if test "$cross_compiling" = yes; then :
16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h. */
16105 #include <stdlib.h>
16106 #if ((' ' & 0x0FF) == 0x020)
16107 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16108 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16110 # define ISLOWER(c) \
16111 (('a' <= (c) && (c) <= 'i') \
16112 || ('j' <= (c) && (c) <= 'r') \
16113 || ('s' <= (c) && (c) <= 'z'))
16114 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16117 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16122 for (i = 0; i < 256; i++)
16123 if (XOR (islower (i), ISLOWER (i))
16124 || toupper (i) != TOUPPER (i))
16129 if ac_fn_c_try_run "$LINENO"; then :
16132 ac_cv_header_stdc=no
16134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16135 conftest.$ac_objext conftest.beam conftest.$ac_ext
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16141 $as_echo "$ac_cv_header_stdc" >&6; }
16142 if test $ac_cv_header_stdc = yes; then
16144 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16148 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
16150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16151 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16152 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16153 cat >>confdefs.h <<_ACEOF
16154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16162 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16163 if test "x$ac_cv_type_size_t" = xyes; then :
16167 cat >>confdefs.h <<_ACEOF
16168 #define size_t unsigned int
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
16175 $as_echo_n "checking for M_PI in math.h... " >&6; }
16176 if ${ac_cv_define_M_PI+:} false; then :
16177 $as_echo_n "(cached) " >&6
16179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16180 /* end confdefs.h. */
16188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16189 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
16190 ac_cv_define_M_PI=yes
16192 ac_cv_define_M_PI=no
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
16199 $as_echo "$ac_cv_define_M_PI" >&6; }
16200 if test "$ac_cv_define_M_PI" = "yes" ; then
16202 $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
16208 *-*-cygwin* | *-*-mingw32*)
16211 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16212 # for constant arguments. Useless!
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16214 $as_echo_n "checking for working alloca.h... " >&6; }
16215 if ${ac_cv_working_alloca_h+:} false; then :
16216 $as_echo_n "(cached) " >&6
16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h. */
16220 #include <alloca.h>
16224 char *p = (char *) alloca (2 * sizeof (int));
16230 if ac_fn_c_try_link "$LINENO"; then :
16231 ac_cv_working_alloca_h=yes
16233 ac_cv_working_alloca_h=no
16235 rm -f core conftest.err conftest.$ac_objext \
16236 conftest$ac_exeext conftest.$ac_ext
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16239 $as_echo "$ac_cv_working_alloca_h" >&6; }
16240 if test $ac_cv_working_alloca_h = yes; then
16242 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16247 $as_echo_n "checking for alloca... " >&6; }
16248 if ${ac_cv_func_alloca_works+:} false; then :
16249 $as_echo_n "(cached) " >&6
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16254 # define alloca __builtin_alloca
16257 # include <malloc.h>
16258 # define alloca _alloca
16260 # ifdef HAVE_ALLOCA_H
16261 # include <alloca.h>
16266 # ifndef alloca /* predefined by HP cc +Olibcalls */
16267 void *alloca (size_t);
16277 char *p = (char *) alloca (1);
16283 if ac_fn_c_try_link "$LINENO"; then :
16284 ac_cv_func_alloca_works=yes
16286 ac_cv_func_alloca_works=no
16288 rm -f core conftest.err conftest.$ac_objext \
16289 conftest$ac_exeext conftest.$ac_ext
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16292 $as_echo "$ac_cv_func_alloca_works" >&6; }
16294 if test $ac_cv_func_alloca_works = yes; then
16296 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16299 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16300 # that cause trouble. Some versions do not even contain alloca or
16301 # contain a buggy version. If you still want to use their alloca,
16302 # use ar to extract alloca.o from them instead of compiling alloca.c.
16304 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16306 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16310 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16311 if ${ac_cv_os_cray+:} false; then :
16312 $as_echo_n "(cached) " >&6
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h. */
16316 #if defined CRAY && ! defined CRAY2
16323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16324 $EGREP "webecray" >/dev/null 2>&1; then :
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16333 $as_echo "$ac_cv_os_cray" >&6; }
16334 if test $ac_cv_os_cray = yes; then
16335 for ac_func in _getb67 GETB67 getb67; do
16336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16337 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16338 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16340 cat >>confdefs.h <<_ACEOF
16341 #define CRAY_STACKSEG_END $ac_func
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16351 $as_echo_n "checking stack direction for C alloca... " >&6; }
16352 if ${ac_cv_c_stack_direction+:} false; then :
16353 $as_echo_n "(cached) " >&6
16355 if test "$cross_compiling" = yes; then :
16356 ac_cv_c_stack_direction=0
16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h. */
16360 $ac_includes_default
16362 find_stack_direction (int *addr, int depth)
16364 int dir, dummy = 0;
16367 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16368 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16369 return dir + dummy;
16373 main (int argc, char **argv)
16375 return find_stack_direction (0, argc + !argv + 20) < 0;
16378 if ac_fn_c_try_run "$LINENO"; then :
16379 ac_cv_c_stack_direction=1
16381 ac_cv_c_stack_direction=-1
16383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16384 conftest.$ac_objext conftest.beam conftest.$ac_ext
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16389 $as_echo "$ac_cv_c_stack_direction" >&6; }
16390 cat >>confdefs.h <<_ACEOF
16391 #define STACK_DIRECTION $ac_cv_c_stack_direction
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
16401 $as_echo_n "checking for working memcmp... " >&6; }
16402 if ${ac_cv_func_memcmp_working+:} false; then :
16403 $as_echo_n "(cached) " >&6
16405 if test "$cross_compiling" = yes; then :
16406 ac_cv_func_memcmp_working=no
16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h. */
16410 $ac_includes_default
16415 /* Some versions of memcmp are not 8-bit clean. */
16416 char c0 = '\100', c1 = '\200', c2 = '\201';
16417 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16420 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16421 or more and with at least one buffer not starting on a 4-byte boundary.
16422 William Lewis provided this test program. */
16427 for (i = 0; i < 4; i++)
16431 strcpy (a, "--------01111111");
16432 strcpy (b, "--------10000000");
16433 if (memcmp (a, b, 16) >= 0)
16443 if ac_fn_c_try_run "$LINENO"; then :
16444 ac_cv_func_memcmp_working=yes
16446 ac_cv_func_memcmp_working=no
16448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16449 conftest.$ac_objext conftest.beam conftest.$ac_ext
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16454 $as_echo "$ac_cv_func_memcmp_working" >&6; }
16455 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16456 *" memcmp.$ac_objext "* ) ;;
16457 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16462 if test x$ac_cv_func_memcmp_working = xyes; then
16464 $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
16468 $as_echo_n "checking for working strtod... " >&6; }
16469 if ${ac_cv_func_strtod+:} false; then :
16470 $as_echo_n "(cached) " >&6
16472 if test "$cross_compiling" = yes; then :
16473 ac_cv_func_strtod=no
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16478 $ac_includes_default
16486 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
16487 char *string = " +69";
16490 value = strtod (string, &term);
16491 if (value != 69 || term != (string + 4))
16496 /* Under Solaris 2.4, strtod returns the wrong value for the
16497 terminating character under some conditions. */
16498 char *string = "NaN";
16500 strtod (string, &term);
16501 if (term != string && *(term - 1) == 0)
16508 if ac_fn_c_try_run "$LINENO"; then :
16509 ac_cv_func_strtod=yes
16511 ac_cv_func_strtod=no
16513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16514 conftest.$ac_objext conftest.beam conftest.$ac_ext
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
16519 $as_echo "$ac_cv_func_strtod" >&6; }
16520 if test $ac_cv_func_strtod = no; then
16521 case " $LIBOBJS " in
16522 *" strtod.$ac_objext "* ) ;;
16523 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
16527 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
16528 if test "x$ac_cv_func_pow" = xyes; then :
16532 if test $ac_cv_func_pow = no; then
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16534 $as_echo_n "checking for pow in -lm... " >&6; }
16535 if ${ac_cv_lib_m_pow+:} false; then :
16536 $as_echo_n "(cached) " >&6
16538 ac_check_lib_save_LIBS=$LIBS
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16543 /* Override any GCC internal prototype to avoid an error.
16544 Use char because int might match the return type of a GCC
16545 builtin and then its argument prototype would still apply. */
16558 if ac_fn_c_try_link "$LINENO"; then :
16559 ac_cv_lib_m_pow=yes
16563 rm -f core conftest.err conftest.$ac_objext \
16564 conftest$ac_exeext conftest.$ac_ext
16565 LIBS=$ac_check_lib_save_LIBS
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16568 $as_echo "$ac_cv_lib_m_pow" >&6; }
16569 if test "x$ac_cv_lib_m_pow" = xyes; then :
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
16573 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
16580 if test x$ac_cv_func_strtod = xyes; then
16582 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
16585 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
16586 if test "x$ac_cv_func_mprotect" = xyes; then :
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16590 #include <sys/types.h>
16591 #include <sys/mman.h>
16602 if ac_fn_c_try_compile "$LINENO"; then :
16605 $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
16609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16612 for ac_func in malloc calloc realloc free getenv setenv 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 vsscanf vsnprintf fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname
16614 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16615 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16616 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16617 cat >>confdefs.h <<_ACEOF
16618 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16626 $as_echo_n "checking for pow in -lm... " >&6; }
16627 if ${ac_cv_lib_m_pow+:} false; then :
16628 $as_echo_n "(cached) " >&6
16630 ac_check_lib_save_LIBS=$LIBS
16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16635 /* Override any GCC internal prototype to avoid an error.
16636 Use char because int might match the return type of a GCC
16637 builtin and then its argument prototype would still apply. */
16650 if ac_fn_c_try_link "$LINENO"; then :
16651 ac_cv_lib_m_pow=yes
16655 rm -f core conftest.err conftest.$ac_objext \
16656 conftest$ac_exeext conftest.$ac_ext
16657 LIBS=$ac_check_lib_save_LIBS
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16660 $as_echo "$ac_cv_lib_m_pow" >&6; }
16661 if test "x$ac_cv_lib_m_pow" = xyes; then :
16662 LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
16665 for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
16667 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16668 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16669 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16670 cat >>confdefs.h <<_ACEOF
16671 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
16679 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
16680 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
16681 $as_echo_n "(cached) " >&6
16683 ac_check_lib_save_LIBS=$LIBS
16684 LIBS="-liconv $LIBS"
16685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686 /* end confdefs.h. */
16688 /* Override any GCC internal prototype to avoid an error.
16689 Use char because int might match the return type of a GCC
16690 builtin and then its argument prototype would still apply. */
16694 char iconv_open ();
16698 return iconv_open ();
16703 if ac_fn_c_try_link "$LINENO"; then :
16704 ac_cv_lib_iconv_iconv_open=yes
16706 ac_cv_lib_iconv_iconv_open=no
16708 rm -f core conftest.err conftest.$ac_objext \
16709 conftest$ac_exeext conftest.$ac_ext
16710 LIBS=$ac_check_lib_save_LIBS
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
16713 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
16714 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
16715 LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
16718 for ac_func in iconv
16720 ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
16721 if test "x$ac_cv_func_iconv" = xyes; then :
16722 cat >>confdefs.h <<_ACEOF
16723 #define HAVE_ICONV 1
16730 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
16732 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
16733 $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
16740 # Check whether --enable-gcc-atomics was given.
16741 if test "${enable_gcc_atomics+set}" = set; then :
16742 enableval=$enable_gcc_atomics;
16744 enable_gcc_atomics=yes
16747 if test x$enable_gcc_atomics = xyes; then
16748 have_gcc_atomics=no
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
16750 $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16761 __sync_lock_test_and_set(&a, 4);
16762 __sync_lock_test_and_set(&x, y);
16763 __sync_fetch_and_add(&a, 1);
16764 __sync_bool_compare_and_swap(&a, 5, 10);
16765 __sync_bool_compare_and_swap(&x, y, z);
16771 if ac_fn_c_try_link "$LINENO"; then :
16773 have_gcc_atomics=yes
16776 rm -f core conftest.err conftest.$ac_objext \
16777 conftest$ac_exeext conftest.$ac_ext
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
16779 $as_echo "$have_gcc_atomics" >&6; }
16781 if test x$have_gcc_atomics = xyes; then
16783 $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
16786 # See if we have the minimum operation needed for GCC atomics
16787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 /* end confdefs.h. */
16796 __sync_lock_test_and_set(&a, 1);
16797 __sync_lock_release(&a);
16803 if ac_fn_c_try_link "$LINENO"; then :
16805 have_gcc_sync_lock_test_and_set=yes
16808 rm -f core conftest.err conftest.$ac_objext \
16809 conftest$ac_exeext conftest.$ac_ext
16810 if test x$have_gcc_sync_lock_test_and_set = xyes; then
16812 $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
16818 # Standard C sources
16819 SOURCES="$SOURCES $srcdir/src/*.c"
16820 SOURCES="$SOURCES $srcdir/src/atomic/*.c"
16821 SOURCES="$SOURCES $srcdir/src/audio/*.c"
16822 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
16823 SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
16824 SOURCES="$SOURCES $srcdir/src/events/*.c"
16825 SOURCES="$SOURCES $srcdir/src/file/*.c"
16826 SOURCES="$SOURCES $srcdir/src/haptic/*.c"
16827 SOURCES="$SOURCES $srcdir/src/joystick/*.c"
16828 SOURCES="$SOURCES $srcdir/src/libm/*.c"
16829 SOURCES="$SOURCES $srcdir/src/power/*.c"
16830 #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
16831 SOURCES="$SOURCES $srcdir/src/render/*.c"
16832 SOURCES="$SOURCES $srcdir/src/render/*/*.c"
16833 SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
16834 SOURCES="$SOURCES $srcdir/src/thread/*.c"
16835 SOURCES="$SOURCES $srcdir/src/timer/*.c"
16836 SOURCES="$SOURCES $srcdir/src/video/*.c"
16839 # Check whether --enable-atomic was given.
16840 if test "${enable_atomic+set}" = set; then :
16841 enableval=$enable_atomic;
16846 if test x$enable_atomic != xyes; then
16848 $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
16851 SUMMARY_modules="${SUMMARY_modules} atomic"
16853 # Check whether --enable-audio was given.
16854 if test "${enable_audio+set}" = set; then :
16855 enableval=$enable_audio;
16860 if test x$enable_audio != xyes; then
16862 $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
16865 SUMMARY_modules="${SUMMARY_modules} audio"
16867 # Check whether --enable-video was given.
16868 if test "${enable_video+set}" = set; then :
16869 enableval=$enable_video;
16874 if test x$enable_video != xyes; then
16876 $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
16879 SUMMARY_modules="${SUMMARY_modules} video"
16881 # Check whether --enable-render was given.
16882 if test "${enable_render+set}" = set; then :
16883 enableval=$enable_render;
16888 if test x$enable_render != xyes; then
16890 $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
16893 SUMMARY_modules="${SUMMARY_modules} render"
16895 # Check whether --enable-events was given.
16896 if test "${enable_events+set}" = set; then :
16897 enableval=$enable_events;
16902 if test x$enable_events != xyes; then
16904 $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
16907 SUMMARY_modules="${SUMMARY_modules} events"
16909 # Check whether --enable-joystick was given.
16910 if test "${enable_joystick+set}" = set; then :
16911 enableval=$enable_joystick;
16913 enable_joystick=yes
16916 if test x$enable_joystick != xyes; then
16918 $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
16921 SUMMARY_modules="${SUMMARY_modules} joystick"
16923 # Check whether --enable-haptic was given.
16924 if test "${enable_haptic+set}" = set; then :
16925 enableval=$enable_haptic;
16930 if test x$enable_haptic != xyes; then
16932 $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
16935 SUMMARY_modules="${SUMMARY_modules} haptic"
16937 # Check whether --enable-power was given.
16938 if test "${enable_power+set}" = set; then :
16939 enableval=$enable_power;
16944 if test x$enable_power != xyes; then
16946 $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
16949 SUMMARY_modules="${SUMMARY_modules} power"
16951 # Check whether --enable-filesystem was given.
16952 if test "${enable_filesystem+set}" = set; then :
16953 enableval=$enable_filesystem;
16955 enable_filesystem=yes
16958 if test x$enable_filesystem != xyes; then
16960 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
16963 SUMMARY_modules="${SUMMARY_modules} filesystem"
16965 # Check whether --enable-threads was given.
16966 if test "${enable_threads+set}" = set; then :
16967 enableval=$enable_threads;
16972 if test x$enable_threads != xyes; then
16974 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
16977 SUMMARY_modules="${SUMMARY_modules} threads"
16979 # Check whether --enable-timers was given.
16980 if test "${enable_timers+set}" = set; then :
16981 enableval=$enable_timers;
16986 if test x$enable_timers != xyes; then
16988 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
16991 SUMMARY_modules="${SUMMARY_modules} timers"
16993 # Check whether --enable-file was given.
16994 if test "${enable_file+set}" = set; then :
16995 enableval=$enable_file;
17000 if test x$enable_file != xyes; then
17002 $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
17005 SUMMARY_modules="${SUMMARY_modules} file"
17007 # Check whether --enable-loadso was given.
17008 if test "${enable_loadso+set}" = set; then :
17009 enableval=$enable_loadso;
17014 if test x$enable_loadso != xyes; then
17016 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
17019 SUMMARY_modules="${SUMMARY_modules} loadso"
17021 # Check whether --enable-cpuinfo was given.
17022 if test "${enable_cpuinfo+set}" = set; then :
17023 enableval=$enable_cpuinfo;
17028 if test x$enable_cpuinfo != xyes; then
17030 $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
17033 SUMMARY_modules="${SUMMARY_modules} cpuinfo"
17035 # Check whether --enable-assembly was given.
17036 if test "${enable_assembly+set}" = set; then :
17037 enableval=$enable_assembly;
17039 enable_assembly=yes
17042 if test x$enable_assembly = xyes; then
17043 SUMMARY_modules="${SUMMARY_modules} assembly"
17046 $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
17049 # Make sure that we don't generate floating point code that would
17050 # cause illegal instruction exceptions on older processors
17053 # Don't need to worry about Apple hardware, it's all SSE capable
17054 default_ssemath=yes
17057 # x86 64-bit architectures all have SSE instructions
17058 default_ssemath=yes
17064 # Check whether --enable-ssemath was given.
17065 if test "${enable_ssemath+set}" = set; then :
17066 enableval=$enable_ssemath;
17068 enable_ssemath=$default_ssemath
17071 if test x$enable_ssemath = xno; then
17072 if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
17073 EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
17077 # Check whether --enable-mmx was given.
17078 if test "${enable_mmx+set}" = set; then :
17079 enableval=$enable_mmx;
17084 if test x$enable_mmx = xyes; then
17085 save_CFLAGS="$CFLAGS"
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
17088 $as_echo_n "checking for GCC -mmmx option... " >&6; }
17090 CFLAGS="$save_CFLAGS $mmx_CFLAGS"
17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h. */
17096 #include <_mingw.h>
17097 #ifdef __MINGW64_VERSION_MAJOR
17098 #include <intrin.h>
17100 #include <mmintrin.h>
17103 #include <mmintrin.h>
17106 #error Assembler CPP flag not enabled
17118 if ac_fn_c_try_compile "$LINENO"; then :
17123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
17125 $as_echo "$have_gcc_mmx" >&6; }
17126 CFLAGS="$save_CFLAGS"
17128 if test x$have_gcc_mmx = xyes; then
17129 EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
17130 SUMMARY_math="${SUMMARY_math} mmx"
17134 # Check whether --enable-3dnow was given.
17135 if test "${enable_3dnow+set}" = set; then :
17136 enableval=$enable_3dnow;
17141 if test x$enable_3dnow = xyes; then
17142 save_CFLAGS="$CFLAGS"
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
17145 $as_echo_n "checking for GCC -m3dnow option... " >&6; }
17146 amd3dnow_CFLAGS="-m3dnow"
17147 CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
17149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h. */
17152 #include <mm3dnow.h>
17154 #error Assembler CPP flag not enabled
17168 if ac_fn_c_try_link "$LINENO"; then :
17173 rm -f core conftest.err conftest.$ac_objext \
17174 conftest$ac_exeext conftest.$ac_ext
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
17176 $as_echo "$have_gcc_3dnow" >&6; }
17177 CFLAGS="$save_CFLAGS"
17179 if test x$have_gcc_3dnow = xyes; then
17180 EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
17181 SUMMARY_math="${SUMMARY_math} 3dnow"
17185 # Check whether --enable-sse was given.
17186 if test "${enable_sse+set}" = set; then :
17187 enableval=$enable_sse;
17192 if test x$enable_sse = xyes; then
17193 save_CFLAGS="$CFLAGS"
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
17196 $as_echo_n "checking for GCC -msse option... " >&6; }
17198 CFLAGS="$save_CFLAGS $sse_CFLAGS"
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h. */
17204 #include <_mingw.h>
17205 #ifdef __MINGW64_VERSION_MAJOR
17206 #include <intrin.h>
17208 #include <xmmintrin.h>
17211 #include <xmmintrin.h>
17214 #error Assembler CPP flag not enabled
17226 if ac_fn_c_try_compile "$LINENO"; then :
17231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
17233 $as_echo "$have_gcc_sse" >&6; }
17234 CFLAGS="$save_CFLAGS"
17236 if test x$have_gcc_sse = xyes; then
17237 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
17238 SUMMARY_math="${SUMMARY_math} sse"
17242 # Check whether --enable-sse2 was given.
17243 if test "${enable_sse2+set}" = set; then :
17244 enableval=$enable_sse2;
17246 enable_sse2=$default_ssemath
17249 if test x$enable_sse2 = xyes; then
17250 save_CFLAGS="$CFLAGS"
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
17253 $as_echo_n "checking for GCC -msse2 option... " >&6; }
17254 sse2_CFLAGS="-msse2"
17255 CFLAGS="$save_CFLAGS $sse2_CFLAGS"
17257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258 /* end confdefs.h. */
17261 #include <_mingw.h>
17262 #ifdef __MINGW64_VERSION_MAJOR
17263 #include <intrin.h>
17265 #include <emmintrin.h>
17268 #include <emmintrin.h>
17271 #error Assembler CPP flag not enabled
17283 if ac_fn_c_try_compile "$LINENO"; then :
17288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
17290 $as_echo "$have_gcc_sse2" >&6; }
17291 CFLAGS="$save_CFLAGS"
17293 if test x$have_gcc_sse2 = xyes; then
17294 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
17295 SUMMARY_math="${SUMMARY_math} sse2"
17299 # Check whether --enable-altivec was given.
17300 if test "${enable_altivec+set}" = set; then :
17301 enableval=$enable_altivec;
17306 if test x$enable_altivec = xyes; then
17307 save_CFLAGS="$CFLAGS"
17308 have_gcc_altivec=no
17309 have_altivec_h_hdr=no
17310 altivec_CFLAGS="-maltivec"
17311 CFLAGS="$save_CFLAGS $altivec_CFLAGS"
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
17314 $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17316 /* end confdefs.h. */
17318 #include <altivec.h>
17319 vector unsigned int vzero() {
17320 return vec_splat_u32(0);
17332 if ac_fn_c_try_compile "$LINENO"; then :
17334 have_gcc_altivec=yes
17335 have_altivec_h_hdr=yes
17338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17340 $as_echo "$have_gcc_altivec" >&6; }
17342 if test x$have_gcc_altivec = xno; then
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
17344 $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17348 vector unsigned int vzero() {
17349 return vec_splat_u32(0);
17361 if ac_fn_c_try_compile "$LINENO"; then :
17363 have_gcc_altivec=yes
17366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17368 $as_echo "$have_gcc_altivec" >&6; }
17371 if test x$have_gcc_altivec = xno; then
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
17373 $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
17374 altivec_CFLAGS="-faltivec"
17375 CFLAGS="$save_CFLAGS $altivec_CFLAGS"
17376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h. */
17379 #include <altivec.h>
17380 vector unsigned int vzero() {
17381 return vec_splat_u32(0);
17393 if ac_fn_c_try_compile "$LINENO"; then :
17395 have_gcc_altivec=yes
17396 have_altivec_h_hdr=yes
17399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17401 $as_echo "$have_gcc_altivec" >&6; }
17404 if test x$have_gcc_altivec = xno; then
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
17406 $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
17407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408 /* end confdefs.h. */
17410 vector unsigned int vzero() {
17411 return vec_splat_u32(0);
17423 if ac_fn_c_try_compile "$LINENO"; then :
17425 have_gcc_altivec=yes
17428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17430 $as_echo "$have_gcc_altivec" >&6; }
17432 CFLAGS="$save_CFLAGS"
17434 if test x$have_gcc_altivec = xyes; then
17436 $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
17438 if test x$have_altivec_h_hdr = xyes; then
17440 $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
17443 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
17444 SUMMARY_math="${SUMMARY_math} altivec"
17451 # Check whether --enable-oss was given.
17452 if test "${enable_oss+set}" = set; then :
17453 enableval=$enable_oss;
17459 # OpenBSD "has" OSS, but it's not really for app use. They want you to
17460 # use sndio instead. So on there, we default to disabled. You can force
17461 # it on if you really want, though.
17462 if test x$enable_oss = xmaybe; then
17470 if test x$enable_audio = xyes -a x$enable_oss = xyes; then
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
17472 $as_echo_n "checking for OSS audio support... " >&6; }
17474 if test x$have_oss != xyes; then
17475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17476 /* end confdefs.h. */
17478 #include <sys/soundcard.h>
17484 int arg = SNDCTL_DSP_SETFRAGMENT;
17490 if ac_fn_c_try_compile "$LINENO"; then :
17495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17497 if test x$have_oss != xyes; then
17498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h. */
17501 #include <soundcard.h>
17507 int arg = SNDCTL_DSP_SETFRAGMENT;
17513 if ac_fn_c_try_compile "$LINENO"; then :
17517 $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
17524 $as_echo "$have_oss" >&6; }
17525 if test x$have_oss = xyes; then
17526 SUMMARY_audio="${SUMMARY_audio} oss"
17528 $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
17530 SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
17533 # We may need to link with ossaudio emulation library
17535 *-*-openbsd*|*-*-netbsd*)
17536 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
17544 # Check whether --enable-alsa was given.
17545 if test "${enable_alsa+set}" = set; then :
17546 enableval=$enable_alsa;
17551 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
17552 alsa_save_CFLAGS="$CFLAGS"
17553 alsa_save_LDFLAGS="$LDFLAGS"
17554 alsa_save_LIBS="$LIBS"
17558 # Check whether --with-alsa-prefix was given.
17559 if test "${with_alsa_prefix+set}" = set; then :
17560 withval=$with_alsa_prefix; alsa_prefix="$withval"
17567 # Check whether --with-alsa-inc-prefix was given.
17568 if test "${with_alsa_inc_prefix+set}" = set; then :
17569 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
17575 # Check whether --enable-alsatest was given.
17576 if test "${enable_alsatest+set}" = set; then :
17577 enableval=$enable_alsatest; enable_alsatest="$enableval"
17579 enable_alsatest=yes
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
17584 $as_echo_n "checking for ALSA CFLAGS... " >&6; }
17585 if test "$alsa_inc_prefix" != "" ; then
17586 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17587 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
17590 $as_echo "$ALSA_CFLAGS" >&6; }
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
17593 $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
17594 if test "$alsa_prefix" != "" ; then
17595 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17596 LDFLAGS="$LDFLAGS $ALSA_LIBS"
17599 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17600 LIBS=`echo $LIBS | sed 's/-lm//'`
17601 LIBS=`echo $LIBS | sed 's/-ldl//'`
17602 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17603 LIBS=`echo $LIBS | sed 's/ //'`
17604 LIBS="$ALSA_LIBS $LIBS"
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
17606 $as_echo "$ALSA_LIBS" >&6; }
17608 min_alsa_version=0.9.0
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
17610 $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
17612 alsa_min_major_version=`echo $min_alsa_version | \
17613 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17614 alsa_min_minor_version=`echo $min_alsa_version | \
17615 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17616 alsa_min_micro_version=`echo $min_alsa_version | \
17617 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17621 ac_cpp='$CPP $CPPFLAGS'
17622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17627 /* end confdefs.h. */
17629 #include <alsa/asoundlib.h>
17635 /* ensure backward compatibility */
17636 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17637 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17639 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17640 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17642 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17643 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17646 # if(SND_LIB_MAJOR > $alsa_min_major_version)
17649 # if(SND_LIB_MAJOR < $alsa_min_major_version)
17650 # error not present
17653 # if(SND_LIB_MINOR > $alsa_min_minor_version)
17656 # if(SND_LIB_MINOR < $alsa_min_minor_version)
17657 # error not present
17660 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17661 # error not present
17671 if ac_fn_c_try_compile "$LINENO"; then :
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
17673 $as_echo "found." >&6; }
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
17676 $as_echo "not present." >&6; }
17681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17683 ac_cpp='$CPP $CPPFLAGS'
17684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17689 if test "x$enable_alsatest" = "xyes"; then
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
17691 $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
17692 if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
17693 $as_echo_n "(cached) " >&6
17695 ac_check_lib_save_LIBS=$LIBS
17696 LIBS="-lasound $LIBS"
17697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698 /* end confdefs.h. */
17700 /* Override any GCC internal prototype to avoid an error.
17701 Use char because int might match the return type of a GCC
17702 builtin and then its argument prototype would still apply. */
17706 char snd_ctl_open ();
17710 return snd_ctl_open ();
17715 if ac_fn_c_try_link "$LINENO"; then :
17716 ac_cv_lib_asound_snd_ctl_open=yes
17718 ac_cv_lib_asound_snd_ctl_open=no
17720 rm -f core conftest.err conftest.$ac_objext \
17721 conftest$ac_exeext conftest.$ac_ext
17722 LIBS=$ac_check_lib_save_LIBS
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
17725 $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
17726 if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
17727 cat >>confdefs.h <<_ACEOF
17728 #define HAVE_LIBASOUND 1
17731 LIBS="-lasound $LIBS"
17741 if test "x$alsa_found" = "xyes" ; then
17743 LIBS=`echo $LIBS | sed 's/-lasound//g'`
17744 LIBS=`echo $LIBS | sed 's/ //'`
17745 LIBS="-lasound $LIBS"
17747 if test "x$alsa_found" = "xno" ; then
17749 CFLAGS="$alsa_save_CFLAGS"
17750 LDFLAGS="$alsa_save_LDFLAGS"
17751 LIBS="$alsa_save_LIBS"
17759 # Restore all flags from before the ALSA detection runs
17760 CFLAGS="$alsa_save_CFLAGS"
17761 LDFLAGS="$alsa_save_LDFLAGS"
17762 LIBS="$alsa_save_LIBS"
17763 if test x$have_alsa = xyes; then
17764 # Check whether --enable-alsa-shared was given.
17765 if test "${enable_alsa_shared+set}" = set; then :
17766 enableval=$enable_alsa_shared;
17768 enable_alsa_shared=yes
17771 alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
17774 $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
17776 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
17777 EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
17778 if test x$have_loadso != xyes && \
17779 test x$enable_alsa_shared = xyes; then
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
17781 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
17783 if test x$have_loadso = xyes && \
17784 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
17785 echo "-- dynamic libasound -> $alsa_lib"
17787 cat >>confdefs.h <<_ACEOF
17788 #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
17791 SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
17793 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
17794 SUMMARY_audio="${SUMMARY_audio} alsa"
17803 # Check whether --enable-esd was given.
17804 if test "${enable_esd+set}" = set; then :
17805 enableval=$enable_esd;
17810 if test x$enable_audio = xyes -a x$enable_esd = xyes; then
17812 # Check whether --with-esd-prefix was given.
17813 if test "${with_esd_prefix+set}" = set; then :
17814 withval=$with_esd_prefix; esd_prefix="$withval"
17820 # Check whether --with-esd-exec-prefix was given.
17821 if test "${with_esd_exec_prefix+set}" = set; then :
17822 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
17827 # Check whether --enable-esdtest was given.
17828 if test "${enable_esdtest+set}" = set; then :
17829 enableval=$enable_esdtest;
17835 if test x$esd_exec_prefix != x ; then
17836 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
17837 if test x${ESD_CONFIG+set} != xset ; then
17838 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
17841 if test x$esd_prefix != x ; then
17842 esd_args="$esd_args --prefix=$esd_prefix"
17843 if test x${ESD_CONFIG+set} != xset ; then
17844 ESD_CONFIG=$esd_prefix/bin/esd-config
17848 # Extract the first word of "esd-config", so it can be a program name with args.
17849 set dummy esd-config; ac_word=$2
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17851 $as_echo_n "checking for $ac_word... " >&6; }
17852 if ${ac_cv_path_ESD_CONFIG+:} false; then :
17853 $as_echo_n "(cached) " >&6
17855 case $ESD_CONFIG in
17857 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
17860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17861 for as_dir in $PATH
17864 test -z "$as_dir" && as_dir=.
17865 for ac_exec_ext in '' $ac_executable_extensions; do
17866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17867 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17875 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
17879 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
17880 if test -n "$ESD_CONFIG"; then
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
17882 $as_echo "$ESD_CONFIG" >&6; }
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17885 $as_echo "no" >&6; }
17889 min_esd_version=0.2.8
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
17891 $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
17893 if test "$ESD_CONFIG" = "no" ; then
17896 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
17897 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
17899 esd_major_version=`$ESD_CONFIG $esd_args --version | \
17900 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17901 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
17902 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17903 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
17904 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17905 if test "x$enable_esdtest" = "xyes" ; then
17906 ac_save_CFLAGS="$CFLAGS"
17907 ac_save_LIBS="$LIBS"
17908 CFLAGS="$CFLAGS $ESD_CFLAGS"
17909 LIBS="$LIBS $ESD_LIBS"
17911 if test "$cross_compiling" = yes; then :
17912 echo $ac_n "cross compiling; assumed OK... $ac_c"
17914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h. */
17918 #include <stdlib.h>
17919 #include <string.h>
17923 my_strdup (char *str)
17929 new_str = malloc ((strlen (str) + 1) * sizeof(char));
17930 strcpy (new_str, str);
17940 int major, minor, micro;
17943 system ("touch conf.esdtest");
17945 /* HP/UX 9 (%@#!) writes to sscanf strings */
17946 tmp_version = my_strdup("$min_esd_version");
17947 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17948 printf("%s, bad version string\n", "$min_esd_version");
17952 if (($esd_major_version > major) ||
17953 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
17954 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
17960 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
17961 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
17962 printf("*** best to upgrade to the required version.\n");
17963 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
17964 printf("*** to point to the correct copy of esd-config, and remove the file\n");
17965 printf("*** config.cache before re-running configure\n");
17972 if ac_fn_c_try_run "$LINENO"; then :
17977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17978 conftest.$ac_objext conftest.beam conftest.$ac_ext
17981 CFLAGS="$ac_save_CFLAGS"
17982 LIBS="$ac_save_LIBS"
17985 if test "x$no_esd" = x ; then
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17987 $as_echo "yes" >&6; }
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17991 $as_echo "no" >&6; }
17992 if test "$ESD_CONFIG" = "no" ; then
17993 echo "*** The esd-config script installed by ESD could not be found"
17994 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
17995 echo "*** your path, or set the ESD_CONFIG environment variable to the"
17996 echo "*** full path to esd-config."
17998 if test -f conf.esdtest ; then
18001 echo "*** Could not run ESD test program, checking why..."
18002 CFLAGS="$CFLAGS $ESD_CFLAGS"
18003 LIBS="$LIBS $ESD_LIBS"
18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h. */
18018 if ac_fn_c_try_link "$LINENO"; then :
18019 echo "*** The test program compiled, but did not run. This usually means"
18020 echo "*** that the run-time linker is not finding ESD or finding the wrong"
18021 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
18022 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18023 echo "*** to the installed location Also, make sure you have run ldconfig if that"
18024 echo "*** is required on your system"
18026 echo "*** If you have an old version installed, it is best to remove it, although"
18027 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18029 echo "*** The test program failed to compile or link. See the file config.log for the"
18030 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
18031 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
18032 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
18034 rm -f core conftest.err conftest.$ac_objext \
18035 conftest$ac_exeext conftest.$ac_ext
18036 CFLAGS="$ac_save_CFLAGS"
18037 LIBS="$ac_save_LIBS"
18048 if test x$have_esd = xyes; then
18049 # Check whether --enable-esd-shared was given.
18050 if test "${enable_esd_shared+set}" = set; then :
18051 enableval=$enable_esd_shared;
18053 enable_esd_shared=yes
18056 esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18059 $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
18061 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
18062 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
18063 if test x$have_loadso != xyes && \
18064 test x$enable_esd_shared = xyes; then
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
18066 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
18068 if test x$have_loadso = xyes && \
18069 test x$enable_esd_shared = xyes && test x$esd_lib != x; then
18070 echo "-- dynamic libesd -> $esd_lib"
18072 cat >>confdefs.h <<_ACEOF
18073 #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
18076 SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
18078 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
18079 SUMMARY_audio="${SUMMARY_audio} esd"
18088 # Check whether --enable-pulseaudio was given.
18089 if test "${enable_pulseaudio+set}" = set; then :
18090 enableval=$enable_pulseaudio;
18092 enable_pulseaudio=yes
18095 if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
18096 audio_pulseaudio=no
18098 PULSEAUDIO_REQUIRED_VERSION=0.9
18100 # Extract the first word of "pkg-config", so it can be a program name with args.
18101 set dummy pkg-config; ac_word=$2
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18103 $as_echo_n "checking for $ac_word... " >&6; }
18104 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18105 $as_echo_n "(cached) " >&6
18107 case $PKG_CONFIG in
18109 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18113 for as_dir in $PATH
18116 test -z "$as_dir" && as_dir=.
18117 for ac_exec_ext in '' $ac_executable_extensions; do
18118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18119 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18127 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18131 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18132 if test -n "$PKG_CONFIG"; then
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18134 $as_echo "$PKG_CONFIG" >&6; }
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18137 $as_echo "no" >&6; }
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
18142 $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
18143 if test x$PKG_CONFIG != xno; then
18144 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
18145 PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
18146 PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
18147 audio_pulseaudio=yes
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
18151 $as_echo "$audio_pulseaudio" >&6; }
18153 if test x$audio_pulseaudio = xyes; then
18154 # Check whether --enable-pulseaudio-shared was given.
18155 if test "${enable_pulseaudio_shared+set}" = set; then :
18156 enableval=$enable_pulseaudio_shared;
18158 enable_pulseaudio_shared=yes
18161 pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18164 $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
18166 SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
18167 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
18168 if test x$have_loadso != xyes && \
18169 test x$enable_pulseaudio_shared = xyes; then
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
18171 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
18173 if test x$have_loadso = xyes && \
18174 test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
18175 echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
18177 cat >>confdefs.h <<_ACEOF
18178 #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
18181 SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
18184 # On Solaris, pulseaudio must be linked deferred explicitly
18185 # to prevent undefined symbol failures.
18187 PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
18188 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
18191 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
18192 SUMMARY_audio="${SUMMARY_audio} pulse"
18201 # Check whether --enable-arts was given.
18202 if test "${enable_arts+set}" = set; then :
18203 enableval=$enable_arts;
18208 if test x$enable_audio = xyes -a x$enable_arts = xyes; then
18209 # Extract the first word of "artsc-config", so it can be a program name with args.
18210 set dummy artsc-config; ac_word=$2
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18212 $as_echo_n "checking for $ac_word... " >&6; }
18213 if ${ac_cv_path_ARTSCONFIG+:} false; then :
18214 $as_echo_n "(cached) " >&6
18216 case $ARTSCONFIG in
18218 ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
18221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18222 for as_dir in $PATH
18225 test -z "$as_dir" && as_dir=.
18226 for ac_exec_ext in '' $ac_executable_extensions; do
18227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18228 ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
18229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18239 ARTSCONFIG=$ac_cv_path_ARTSCONFIG
18240 if test -n "$ARTSCONFIG"; then
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
18242 $as_echo "$ARTSCONFIG" >&6; }
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18245 $as_echo "no" >&6; }
18249 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
18250 : # arts isn't installed
18252 ARTS_CFLAGS=`$ARTSCONFIG --cflags`
18253 ARTS_LIBS=`$ARTSCONFIG --libs`
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
18255 $as_echo_n "checking for aRts development environment... " >&6; }
18257 save_CFLAGS="$CFLAGS"
18258 CFLAGS="$CFLAGS $ARTS_CFLAGS"
18259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18260 /* end confdefs.h. */
18268 arts_stream_t stream;
18274 if ac_fn_c_try_compile "$LINENO"; then :
18279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18280 CFLAGS="$save_CFLAGS"
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
18282 $as_echo "$audio_arts" >&6; }
18283 if test x$audio_arts = xyes; then
18284 # Check whether --enable-arts-shared was given.
18285 if test "${enable_arts_shared+set}" = set; then :
18286 enableval=$enable_arts_shared;
18288 enable_arts_shared=yes
18291 arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18294 $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
18296 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
18297 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
18298 if test x$have_loadso != xyes && \
18299 test x$enable_arts_shared = xyes; then
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
18301 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
18303 if test x$have_loadso = xyes && \
18304 test x$enable_arts_shared = xyes && test x$arts_lib != x; then
18305 echo "-- dynamic libartsc -> $arts_lib"
18307 cat >>confdefs.h <<_ACEOF
18308 #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
18311 SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
18313 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
18314 SUMMARY_audio="${SUMMARY_audio} arts"
18324 # Check whether --enable-nas was given.
18325 if test "${enable_nas+set}" = set; then :
18326 enableval=$enable_nas;
18331 if test x$enable_audio = xyes -a x$enable_nas = xyes; then
18332 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
18333 if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
18339 $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
18340 if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
18341 $as_echo_n "(cached) " >&6
18343 ac_check_lib_save_LIBS=$LIBS
18344 LIBS="-laudio $LIBS"
18345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h. */
18348 /* Override any GCC internal prototype to avoid an error.
18349 Use char because int might match the return type of a GCC
18350 builtin and then its argument prototype would still apply. */
18354 char AuOpenServer ();
18358 return AuOpenServer ();
18363 if ac_fn_c_try_link "$LINENO"; then :
18364 ac_cv_lib_audio_AuOpenServer=yes
18366 ac_cv_lib_audio_AuOpenServer=no
18368 rm -f core conftest.err conftest.$ac_objext \
18369 conftest$ac_exeext conftest.$ac_ext
18370 LIBS=$ac_check_lib_save_LIBS
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
18373 $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
18374 if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
18380 $as_echo_n "checking for NAS audio support... " >&6; }
18383 if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
18387 elif test -r /usr/X11R6/include/audio/audiolib.h; then
18389 NAS_CFLAGS="-I/usr/X11R6/include/"
18390 NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
18395 $as_echo "$have_nas" >&6; }
18397 if test x$have_nas = xyes; then
18398 # Check whether --enable-nas-shared was given.
18399 if test "${enable_nas_shared+set}" = set; then :
18400 enableval=$enable_nas_shared;
18402 enable_nas_shared=yes
18405 nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18407 if test x$have_loadso != xyes && \
18408 test x$enable_nas_shared = xyes; then
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
18410 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
18412 if test x$have_loadso = xyes && \
18413 test x$enable_nas_shared = xyes && test x$nas_lib != x; then
18414 echo "-- dynamic libaudio -> $nas_lib"
18416 cat >>confdefs.h <<_ACEOF
18417 #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
18420 SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
18422 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
18423 SUMMARY_audio="${SUMMARY_audio} nas"
18427 $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
18429 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
18430 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
18438 # Check whether --enable-sndio was given.
18439 if test "${enable_sndio+set}" = set; then :
18440 enableval=$enable_sndio;
18445 if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
18446 ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
18447 if test "x$ac_cv_header_sndio_h" = xyes; then :
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
18453 $as_echo_n "checking for sio_open in -lsndio... " >&6; }
18454 if ${ac_cv_lib_sndio_sio_open+:} false; then :
18455 $as_echo_n "(cached) " >&6
18457 ac_check_lib_save_LIBS=$LIBS
18458 LIBS="-lsndio $LIBS"
18459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18460 /* end confdefs.h. */
18462 /* Override any GCC internal prototype to avoid an error.
18463 Use char because int might match the return type of a GCC
18464 builtin and then its argument prototype would still apply. */
18472 return sio_open ();
18477 if ac_fn_c_try_link "$LINENO"; then :
18478 ac_cv_lib_sndio_sio_open=yes
18480 ac_cv_lib_sndio_sio_open=no
18482 rm -f core conftest.err conftest.$ac_objext \
18483 conftest$ac_exeext conftest.$ac_ext
18484 LIBS=$ac_check_lib_save_LIBS
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
18487 $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
18488 if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
18494 $as_echo_n "checking for sndio audio support... " >&6; }
18497 if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
18499 SNDIO_LIBS="-lsndio"
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
18503 $as_echo "$have_sndio" >&6; }
18505 if test x$have_sndio = xyes; then
18506 # Check whether --enable-sndio-shared was given.
18507 if test "${enable_sndio_shared+set}" = set; then :
18508 enableval=$enable_sndio_shared;
18510 enable_sndio_shared=yes
18513 sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18515 if test x$have_loadso != xyes && \
18516 test x$enable_sndio_shared = xyes; then
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
18518 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
18520 if test x$have_loadso = xyes && \
18521 test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
18522 echo "-- dynamic libsndio -> $sndio_lib"
18524 cat >>confdefs.h <<_ACEOF
18525 #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
18528 SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
18530 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
18531 SUMMARY_audio="${SUMMARY_audio} sndio"
18535 $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
18537 SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
18538 EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
18546 # Check whether --enable-diskaudio was given.
18547 if test "${enable_diskaudio+set}" = set; then :
18548 enableval=$enable_diskaudio;
18550 enable_diskaudio=yes
18553 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
18555 $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
18557 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
18558 SUMMARY_audio="${SUMMARY_audio} disk"
18564 # Check whether --enable-dummyaudio was given.
18565 if test "${enable_dummyaudio+set}" = set; then :
18566 enableval=$enable_dummyaudio;
18568 enable_dummyaudio=yes
18571 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
18573 $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
18575 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
18576 SUMMARY_audio="${SUMMARY_audio} dummy"
18580 CheckVisibilityHidden()
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
18583 $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
18584 have_gcc_fvisibility=no
18586 visibility_CFLAGS="-fvisibility=hidden"
18587 save_CFLAGS="$CFLAGS"
18588 CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
18589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h. */
18592 #if !defined(__GNUC__) || __GNUC__ < 4
18593 #error SDL only uses visibility attributes in GCC 4 or newer
18605 if ac_fn_c_try_compile "$LINENO"; then :
18607 have_gcc_fvisibility=yes
18610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
18612 $as_echo "$have_gcc_fvisibility" >&6; }
18613 CFLAGS="$save_CFLAGS"
18615 if test x$have_gcc_fvisibility = xyes; then
18616 EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
18620 CheckStackBoundary()
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
18623 $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
18624 have_gcc_preferred_stack_boundary=no
18626 save_CFLAGS="$CFLAGS"
18627 CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
18628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18629 /* end confdefs.h. */
18642 if ac_fn_c_try_compile "$LINENO"; then :
18644 have_gcc_preferred_stack_boundary=yes
18647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
18649 $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
18650 CFLAGS="$save_CFLAGS"
18652 if test x$have_gcc_preferred_stack_boundary = xyes; then
18653 EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
18660 $as_echo_n "checking for GCC -Wall option... " >&6; }
18663 save_CFLAGS="$CFLAGS"
18664 CFLAGS="$save_CFLAGS -Wall"
18665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18666 /* end confdefs.h. */
18679 if ac_fn_c_try_compile "$LINENO"; then :
18684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
18686 $as_echo "$have_gcc_Wall" >&6; }
18687 CFLAGS="$save_CFLAGS"
18689 if test x$have_gcc_Wall = xyes; then
18690 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
18693 $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
18694 need_gcc_Wno_multichar=no
18697 need_gcc_Wno_multichar=yes
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
18701 $as_echo "$need_gcc_Wno_multichar" >&6; }
18702 if test x$need_gcc_Wno_multichar = xyes; then
18703 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
18710 # Check whether --enable-video-wayland was given.
18711 if test "${enable_video_wayland+set}" = set; then :
18712 enableval=$enable_video_wayland;
18714 enable_video_wayland=yes
18718 # Check whether --enable-video-wayland-qt-touch was given.
18719 if test "${enable_video_wayland_qt_touch+set}" = set; then :
18720 enableval=$enable_video_wayland_qt_touch;
18722 enable_video_wayland_qt_touch=yes
18726 if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
18727 # Extract the first word of "pkg-config", so it can be a program name with args.
18728 set dummy pkg-config; ac_word=$2
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18730 $as_echo_n "checking for $ac_word... " >&6; }
18731 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18732 $as_echo_n "(cached) " >&6
18734 case $PKG_CONFIG in
18736 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18740 for as_dir in $PATH
18743 test -z "$as_dir" && as_dir=.
18744 for ac_exec_ext in '' $ac_executable_extensions; do
18745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18746 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18754 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18758 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18759 if test -n "$PKG_CONFIG"; then
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18761 $as_echo "$PKG_CONFIG" >&6; }
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18764 $as_echo "no" >&6; }
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
18769 $as_echo_n "checking for Wayland support... " >&6; }
18771 if test x$PKG_CONFIG != xno && \
18772 test x$video_opengl_egl = xyes && \
18773 test x$video_opengles_v2 = xyes; then
18774 if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon xdg-shell-client text-client tizen-extension-client; then
18775 WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon xdg-shell-client text-client tizen-extension-client`
18776 WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon xdg-shell-client text-client tizen-extension-client`
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
18781 $as_echo "$video_wayland" >&6; }
18783 if test x$video_wayland = xyes; then
18785 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
18787 if test x$enable_video_wayland_qt_touch = xyes; then
18789 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
18792 SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
18793 EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
18794 # Check whether --enable-wayland-shared was given.
18795 if test "${enable_wayland_shared+set}" = set; then :
18796 enableval=$enable_wayland_shared;
18798 enable_wayland_shared=maybe
18804 wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18805 wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18806 if test x$wayland_egl_lib = x; then
18807 wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18809 wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18810 xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18811 xdg_shell_client_lib=`find_lib "libxdg-shell-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18812 text_client_lib=`find_lib "libtext-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18813 tizen_extension_client_lib=`find_lib "libtizen-extension-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18817 if test x$enable_wayland_shared = xmaybe; then
18818 enable_wayland_shared=yes
18820 if test x$have_loadso != xyes && \
18821 test x$enable_wayland_shared = xyes; then
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
18823 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
18824 enable_wayland_shared=no
18826 if test x$have_loadso = xyes && \
18827 test x$enable_wayland_shared = xyes && \
18828 test x$wayland_client_lib != x && \
18829 test x$wayland_egl_lib != x && \
18830 test x$wayland_cursor_lib != x && \
18831 test x$xdg_shell_client_lib != x && \
18832 test x$text_client_lib != x && \
18833 test x$tizen_extension_client_lib != x && \
18834 test x$xkbcommon_lib != x; then
18835 echo "-- dynamic libwayland-client -> $wayland_client_lib"
18836 echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
18837 echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
18838 echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
18839 echo "-- dynamic libxdg_shell_client -> $xdg_shell_client_lib"
18840 echo "-- dynamic libtext_client -> $xtext_client_lib"
18841 echo "-- dynamic libtizen_extension_client -> $xtizen_extension_client_lib"
18843 cat >>confdefs.h <<_ACEOF
18844 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
18848 cat >>confdefs.h <<_ACEOF
18849 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
18853 cat >>confdefs.h <<_ACEOF
18854 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
18858 cat >>confdefs.h <<_ACEOF
18859 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
18863 cat >>confdefs.h <<_ACEOF
18864 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XDGSHELLCLIENT "$xdg_shell_client_lib"
18868 cat >>confdefs.h <<_ACEOF
18869 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_TEXTCLIENT "$text_client_lib"
18873 cat >>confdefs.h <<_ACEOF
18874 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_TIZENEXTENSIONCLIENT "$tizen_extension_client_lib"
18877 SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
18879 enable_wayland_shared=no
18880 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
18881 SUMMARY_video="${SUMMARY_video} wayland"
18890 # Check whether --enable-video-tizen was given.
18891 if test "${enable_video_tizen+set}" = set; then :
18892 enableval=$enable_video_tizen;
18894 enable_video_tizen=yes
18898 if test x$enable_video = xyes -a x$enable_video_tizen = xyes; then
18899 # Extract the first word of "pkg-config", so it can be a program name with args.
18900 set dummy pkg-config; ac_word=$2
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18902 $as_echo_n "checking for $ac_word... " >&6; }
18903 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18904 $as_echo_n "(cached) " >&6
18906 case $PKG_CONFIG in
18908 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18912 for as_dir in $PATH
18915 test -z "$as_dir" && as_dir=.
18916 for ac_exec_ext in '' $ac_executable_extensions; do
18917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18918 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18926 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18930 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18931 if test -n "$PKG_CONFIG"; then
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18933 $as_echo "$PKG_CONFIG" >&6; }
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18936 $as_echo "no" >&6; }
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tizen support" >&5
18941 $as_echo_n "checking for Tizen support... " >&6; }
18943 if test x$PKG_CONFIG != xno && \
18944 test x$video_opengl_egl = xyes && \
18945 test x$video_opengles_v2 = xyes; then
18946 if $PKG_CONFIG --exists wayland-client wayland-egl ecore ecore-wayland xdg-shell-client text-client tizen-extension-client eina elementary capi-appfw-application capi-system-system-settings ecore-input dlog ecore-imf libdrm ecore-ipc; then
18947 TIZEN_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl ecore ecore-wayland xdg-shell-client text-client tizen-extension-client eina elementary capi-appfw-application capi-system-system-settings ecore-input dlog ecore-imf libdrm aul ecore-ipc`
18948 TIZEN_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl ecore ecore-wayland xdg-shell-client text-client tizen-extension-client eina elementary capi-appfw-application capi-system-system-settings ecore-input dlog ecore-imf libdrm aul ecore-ipc`
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_tizen" >&5
18954 $as_echo "$video_tizen" >&6; }
18956 if test x$video_tizen = xyes; then
18958 $as_echo "#define SDL_VIDEO_DRIVER_TIZEN 1" >>confdefs.h
18960 SOURCES="$SOURCES $srcdir/src/video/tizen/*.c"
18961 SOURCES="$SOURCES $srcdir/src/core/tizen/*.c"
18962 SDLMAIN_SOURCES="$srcdir/src/main/tizen/*.c"
18964 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
18965 SDL_LIBS="-lSDL2main $SDL_LIBS"
18967 EXTRA_CFLAGS="$EXTRA_CFLAGS $TIZEN_CFLAGS -DTIZEN"
18968 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $TIZEN_LIBS"
18969 SUMMARY_video="${SUMMARY_video} tizen"
18974 if test x$enable_joystick = xyes; then
18975 SUMMARY="${SUMMARY}SDL2 tizen joystick in:\n"
18977 $as_echo "#define SDL_JOYSTICK_TIZEN 1" >>confdefs.h
18979 SOURCES="$SOURCES $srcdir/src/joystick/tizen/*.c"
18986 # Check whether --enable-video-mir was given.
18987 if test "${enable_video_mir+set}" = set; then :
18988 enableval=$enable_video_mir;
18990 enable_video_mir=yes
18994 if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
18995 # Extract the first word of "pkg-config", so it can be a program name with args.
18996 set dummy pkg-config; ac_word=$2
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18998 $as_echo_n "checking for $ac_word... " >&6; }
18999 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19000 $as_echo_n "(cached) " >&6
19002 case $PKG_CONFIG in
19004 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19008 for as_dir in $PATH
19011 test -z "$as_dir" && as_dir=.
19012 for ac_exec_ext in '' $ac_executable_extensions; do
19013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19014 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19022 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19026 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19027 if test -n "$PKG_CONFIG"; then
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19029 $as_echo "$PKG_CONFIG" >&6; }
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19032 $as_echo "no" >&6; }
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
19037 $as_echo_n "checking for Mir support... " >&6; }
19039 if test x$PKG_CONFIG != xno; then
19040 if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
19041 MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
19042 MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
19043 save_CFLAGS="$CFLAGS"
19044 CFLAGS="$save_CFLAGS $MIR_CFLAGS"
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19049 #include <mir_toolkit/mir_client_library.h>
19055 MirMotionToolType tool = mir_motion_tool_type_mouse;
19061 if ac_fn_c_try_compile "$LINENO"; then :
19066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19067 CFLAGS="$save_CFLAGS"
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
19071 $as_echo "$video_mir" >&6; }
19073 if test x$video_mir = xyes; then
19075 $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
19077 SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
19078 EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
19079 # Check whether --enable-mir-shared was given.
19080 if test "${enable_mir_shared+set}" = set; then :
19081 enableval=$enable_mir_shared;
19083 enable_mir_shared=maybe
19089 mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19090 xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19094 if test x$enable_mir_shared = xmaybe; then
19095 enable_mir_shared=yes
19097 if test x$have_loadso != xyes && \
19098 test x$enable_mir_shared = xyes; then
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
19100 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
19101 enable_mir_shared=no
19103 if test x$have_loadso = xyes && \
19104 test x$enable_mir_shared = xyes && \
19105 test x$mirclient_lib != x && \
19106 test x$xkbcommon_lib != x; then
19107 echo "-- dynamic libmirclient -> $mirclient_lib"
19108 echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
19110 cat >>confdefs.h <<_ACEOF
19111 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
19115 cat >>confdefs.h <<_ACEOF
19116 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
19119 SUMMARY_video="${SUMMARY_video} mir(dynamic)"
19121 enable_mir_shared=no
19122 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
19123 SUMMARY_video="${SUMMARY_video} mir"
19130 CheckNativeClient()
19132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19133 /* end confdefs.h. */
19135 #if !defined(__native_client__)
19148 if ac_fn_c_try_compile "$LINENO"; then :
19150 $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
19152 $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
19155 $as_echo "#define HAVE_POW 1" >>confdefs.h
19158 $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
19161 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
19164 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
19167 SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
19169 SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
19170 SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
19171 SUMMARY_audio="${SUMMARY_audio} nacl"
19172 SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
19173 SUMMARY_video="${SUMMARY_video} nacl opengles2"
19176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19184 # Check whether --enable-video-x11 was given.
19185 if test "${enable_video_x11+set}" = set; then :
19186 enableval=$enable_video_x11;
19188 enable_video_x11=yes
19191 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
19194 # This isn't necessary for X11, but fixes GLX detection
19195 if test "x$x_includes" = xNONE && \
19196 test "x$x_libraries" = xNONE && \
19197 test -d /usr/X11R6/include && \
19198 test -d /usr/X11R6/lib; then
19199 x_includes="/usr/X11R6/include"
19200 x_libraries="/usr/X11R6/lib"
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19205 $as_echo_n "checking for X... " >&6; }
19208 # Check whether --with-x was given.
19209 if test "${with_x+set}" = set; then :
19213 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19214 if test "x$with_x" = xno; then
19215 # The user explicitly disabled X.
19218 case $x_includes,$x_libraries in #(
19219 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
19220 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
19221 $as_echo_n "(cached) " >&6
19223 # One or both of the vars are not set, and there is no cached value.
19224 ac_x_includes=no ac_x_libraries=no
19225 rm -f -r conftest.dir
19226 if mkdir conftest.dir; then
19228 cat >Imakefile <<'_ACEOF'
19230 @echo incroot='${INCROOT}'
19232 @echo usrlibdir='${USRLIBDIR}'
19234 @echo libdir='${LIBDIR}'
19236 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19237 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
19238 for ac_var in incroot usrlibdir libdir; do
19239 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19241 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19242 for ac_extension in a so sl dylib la dll; do
19243 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19244 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19245 ac_im_usrlibdir=$ac_im_libdir; break
19248 # Screen out bogus values from the imake configuration. They are
19249 # bogus both because they are the default anyway, and because
19250 # using them would break gcc on systems where it needs fixed includes.
19251 case $ac_im_incroot in
19252 /usr/include) ac_x_includes= ;;
19253 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19255 case $ac_im_usrlibdir in
19256 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19257 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19261 rm -f -r conftest.dir
19264 # Standard set of common directories for X headers.
19265 # Check X11 before X11Rn because it is often a symlink to the current release.
19279 /usr/local/X11/include
19280 /usr/local/X11R7/include
19281 /usr/local/X11R6/include
19282 /usr/local/X11R5/include
19283 /usr/local/X11R4/include
19285 /usr/local/include/X11
19286 /usr/local/include/X11R7
19287 /usr/local/include/X11R6
19288 /usr/local/include/X11R5
19289 /usr/local/include/X11R4
19293 /usr/XFree86/include/X11
19297 /usr/unsupported/include
19298 /usr/athena/include
19299 /usr/local/x11r5/include
19300 /usr/lpp/Xamples/include
19302 /usr/openwin/include
19303 /usr/openwin/share/include'
19305 if test "$ac_x_includes" = no; then
19306 # Guess where to find include files, by looking for Xlib.h.
19307 # First, try using that file with no special directory specified.
19308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19309 /* end confdefs.h. */
19310 #include <X11/Xlib.h>
19312 if ac_fn_c_try_cpp "$LINENO"; then :
19313 # We can compile using X headers with no special include directory.
19316 for ac_dir in $ac_x_header_dirs; do
19317 if test -r "$ac_dir/X11/Xlib.h"; then
19318 ac_x_includes=$ac_dir
19323 rm -f conftest.err conftest.i conftest.$ac_ext
19324 fi # $ac_x_includes = no
19326 if test "$ac_x_libraries" = no; then
19327 # Check for the libraries.
19328 # See if we find them without any special options.
19329 # Don't add to $LIBS permanently.
19332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19333 /* end confdefs.h. */
19334 #include <X11/Xlib.h>
19343 if ac_fn_c_try_link "$LINENO"; then :
19345 # We can link X programs with no special library path.
19349 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19351 # Don't even attempt the hair of trying to link an X program!
19352 for ac_extension in a so sl dylib la dll; do
19353 if test -r "$ac_dir/libX11.$ac_extension"; then
19354 ac_x_libraries=$ac_dir
19360 rm -f core conftest.err conftest.$ac_objext \
19361 conftest$ac_exeext conftest.$ac_ext
19362 fi # $ac_x_libraries = no
19364 case $ac_x_includes,$ac_x_libraries in #(
19365 no,* | *,no | *\'*)
19366 # Didn't find X, or a directory has "'" in its name.
19367 ac_cv_have_x="have_x=no";; #(
19369 # Record where we found X for the cache.
19370 ac_cv_have_x="have_x=yes\
19371 ac_x_includes='$ac_x_includes'\
19372 ac_x_libraries='$ac_x_libraries'"
19378 eval "$ac_cv_have_x"
19381 if test "$have_x" != yes; then
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19383 $as_echo "$have_x" >&6; }
19386 # If each of the values was on the command line, it overrides each guess.
19387 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19388 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19389 # Update the cache value to reflect the command line values.
19390 ac_cv_have_x="have_x=yes\
19391 ac_x_includes='$x_includes'\
19392 ac_x_libraries='$x_libraries'"
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19394 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19397 if test "$no_x" = yes; then
19398 # Not all programs may use this symbol, but it does not hurt to define it.
19400 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19402 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19404 if test -n "$x_includes"; then
19405 X_CFLAGS="$X_CFLAGS -I$x_includes"
19408 # It would also be nice to do this for all -L options, not just this one.
19409 if test -n "$x_libraries"; then
19410 X_LIBS="$X_LIBS -L$x_libraries"
19411 # For Solaris; some versions of Sun CC require a space after -R and
19412 # others require no space. Words are not sufficient . . . .
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19414 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19415 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19416 ac_xsave_c_werror_flag=$ac_c_werror_flag
19417 ac_c_werror_flag=yes
19418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19419 /* end confdefs.h. */
19429 if ac_fn_c_try_link "$LINENO"; then :
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19431 $as_echo "no" >&6; }
19432 X_LIBS="$X_LIBS -R$x_libraries"
19434 LIBS="$ac_xsave_LIBS -R $x_libraries"
19435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19436 /* end confdefs.h. */
19446 if ac_fn_c_try_link "$LINENO"; then :
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19448 $as_echo "yes" >&6; }
19449 X_LIBS="$X_LIBS -R $x_libraries"
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19452 $as_echo "neither works" >&6; }
19454 rm -f core conftest.err conftest.$ac_objext \
19455 conftest$ac_exeext conftest.$ac_ext
19457 rm -f core conftest.err conftest.$ac_objext \
19458 conftest$ac_exeext conftest.$ac_ext
19459 ac_c_werror_flag=$ac_xsave_c_werror_flag
19460 LIBS=$ac_xsave_LIBS
19463 # Check for system-dependent libraries X programs must link with.
19464 # Do this before checking for the system-independent R6 libraries
19465 # (-lICE), since we may need -lsocket or whatever for X linking.
19467 if test "$ISC" = yes; then
19468 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19470 # Martyn Johnson says this is needed for Ultrix, if the X
19471 # libraries were built with DECnet support. And Karl Berry says
19472 # the Alpha needs dnet_stub (dnet does not exist).
19473 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19475 /* end confdefs.h. */
19477 /* Override any GCC internal prototype to avoid an error.
19478 Use char because int might match the return type of a GCC
19479 builtin and then its argument prototype would still apply. */
19483 char XOpenDisplay ();
19487 return XOpenDisplay ();
19492 if ac_fn_c_try_link "$LINENO"; then :
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19496 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19497 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
19498 $as_echo_n "(cached) " >&6
19500 ac_check_lib_save_LIBS=$LIBS
19501 LIBS="-ldnet $LIBS"
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h. */
19505 /* Override any GCC internal prototype to avoid an error.
19506 Use char because int might match the return type of a GCC
19507 builtin and then its argument prototype would still apply. */
19515 return dnet_ntoa ();
19520 if ac_fn_c_try_link "$LINENO"; then :
19521 ac_cv_lib_dnet_dnet_ntoa=yes
19523 ac_cv_lib_dnet_dnet_ntoa=no
19525 rm -f core conftest.err conftest.$ac_objext \
19526 conftest$ac_exeext conftest.$ac_ext
19527 LIBS=$ac_check_lib_save_LIBS
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19530 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19531 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
19532 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19535 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19537 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19538 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
19539 $as_echo_n "(cached) " >&6
19541 ac_check_lib_save_LIBS=$LIBS
19542 LIBS="-ldnet_stub $LIBS"
19543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h. */
19546 /* Override any GCC internal prototype to avoid an error.
19547 Use char because int might match the return type of a GCC
19548 builtin and then its argument prototype would still apply. */
19556 return dnet_ntoa ();
19561 if ac_fn_c_try_link "$LINENO"; then :
19562 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19564 ac_cv_lib_dnet_stub_dnet_ntoa=no
19566 rm -f core conftest.err conftest.$ac_objext \
19567 conftest$ac_exeext conftest.$ac_ext
19568 LIBS=$ac_check_lib_save_LIBS
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19571 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19572 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
19573 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19578 rm -f core conftest.err conftest.$ac_objext \
19579 conftest$ac_exeext conftest.$ac_ext
19580 LIBS="$ac_xsave_LIBS"
19582 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19583 # to get the SysV transport functions.
19584 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19586 # The nsl library prevents programs from opening the X display
19587 # on Irix 5.2, according to T.E. Dickey.
19588 # The functions gethostbyname, getservbyname, and inet_addr are
19589 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19590 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19591 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19595 if test $ac_cv_func_gethostbyname = no; then
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19597 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19598 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19599 $as_echo_n "(cached) " >&6
19601 ac_check_lib_save_LIBS=$LIBS
19603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19604 /* end confdefs.h. */
19606 /* Override any GCC internal prototype to avoid an error.
19607 Use char because int might match the return type of a GCC
19608 builtin and then its argument prototype would still apply. */
19612 char gethostbyname ();
19616 return gethostbyname ();
19621 if ac_fn_c_try_link "$LINENO"; then :
19622 ac_cv_lib_nsl_gethostbyname=yes
19624 ac_cv_lib_nsl_gethostbyname=no
19626 rm -f core conftest.err conftest.$ac_objext \
19627 conftest$ac_exeext conftest.$ac_ext
19628 LIBS=$ac_check_lib_save_LIBS
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19631 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19632 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19633 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19636 if test $ac_cv_lib_nsl_gethostbyname = no; then
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19638 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19639 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
19640 $as_echo_n "(cached) " >&6
19642 ac_check_lib_save_LIBS=$LIBS
19644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645 /* end confdefs.h. */
19647 /* Override any GCC internal prototype to avoid an error.
19648 Use char because int might match the return type of a GCC
19649 builtin and then its argument prototype would still apply. */
19653 char gethostbyname ();
19657 return gethostbyname ();
19662 if ac_fn_c_try_link "$LINENO"; then :
19663 ac_cv_lib_bsd_gethostbyname=yes
19665 ac_cv_lib_bsd_gethostbyname=no
19667 rm -f core conftest.err conftest.$ac_objext \
19668 conftest$ac_exeext conftest.$ac_ext
19669 LIBS=$ac_check_lib_save_LIBS
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19672 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19673 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
19674 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19680 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19681 # socket/setsockopt and other routines are undefined under SCO ODT
19682 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19683 # on later versions), says Simon Leinen: it contains gethostby*
19684 # variants that don't use the name server (or something). -lsocket
19685 # must be given before -lnsl if both are needed. We assume that
19686 # if connect needs -lnsl, so does gethostbyname.
19687 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19688 if test "x$ac_cv_func_connect" = xyes; then :
19692 if test $ac_cv_func_connect = no; then
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19694 $as_echo_n "checking for connect in -lsocket... " >&6; }
19695 if ${ac_cv_lib_socket_connect+:} false; then :
19696 $as_echo_n "(cached) " >&6
19698 ac_check_lib_save_LIBS=$LIBS
19699 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19701 /* end confdefs.h. */
19703 /* Override any GCC internal prototype to avoid an error.
19704 Use char because int might match the return type of a GCC
19705 builtin and then its argument prototype would still apply. */
19718 if ac_fn_c_try_link "$LINENO"; then :
19719 ac_cv_lib_socket_connect=yes
19721 ac_cv_lib_socket_connect=no
19723 rm -f core conftest.err conftest.$ac_objext \
19724 conftest$ac_exeext conftest.$ac_ext
19725 LIBS=$ac_check_lib_save_LIBS
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19728 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19729 if test "x$ac_cv_lib_socket_connect" = xyes; then :
19730 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19735 # Guillermo Gomez says -lposix is necessary on A/UX.
19736 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19737 if test "x$ac_cv_func_remove" = xyes; then :
19741 if test $ac_cv_func_remove = no; then
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19743 $as_echo_n "checking for remove in -lposix... " >&6; }
19744 if ${ac_cv_lib_posix_remove+:} false; then :
19745 $as_echo_n "(cached) " >&6
19747 ac_check_lib_save_LIBS=$LIBS
19748 LIBS="-lposix $LIBS"
19749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19750 /* end confdefs.h. */
19752 /* Override any GCC internal prototype to avoid an error.
19753 Use char because int might match the return type of a GCC
19754 builtin and then its argument prototype would still apply. */
19767 if ac_fn_c_try_link "$LINENO"; then :
19768 ac_cv_lib_posix_remove=yes
19770 ac_cv_lib_posix_remove=no
19772 rm -f core conftest.err conftest.$ac_objext \
19773 conftest$ac_exeext conftest.$ac_ext
19774 LIBS=$ac_check_lib_save_LIBS
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19777 $as_echo "$ac_cv_lib_posix_remove" >&6; }
19778 if test "x$ac_cv_lib_posix_remove" = xyes; then :
19779 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19784 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19785 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19786 if test "x$ac_cv_func_shmat" = xyes; then :
19790 if test $ac_cv_func_shmat = no; then
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19792 $as_echo_n "checking for shmat in -lipc... " >&6; }
19793 if ${ac_cv_lib_ipc_shmat+:} false; then :
19794 $as_echo_n "(cached) " >&6
19796 ac_check_lib_save_LIBS=$LIBS
19798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19799 /* end confdefs.h. */
19801 /* Override any GCC internal prototype to avoid an error.
19802 Use char because int might match the return type of a GCC
19803 builtin and then its argument prototype would still apply. */
19816 if ac_fn_c_try_link "$LINENO"; then :
19817 ac_cv_lib_ipc_shmat=yes
19819 ac_cv_lib_ipc_shmat=no
19821 rm -f core conftest.err conftest.$ac_objext \
19822 conftest$ac_exeext conftest.$ac_ext
19823 LIBS=$ac_check_lib_save_LIBS
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19826 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19827 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
19828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19834 # Check for libraries that X11R6 Xt/Xaw programs need.
19835 ac_save_LDFLAGS=$LDFLAGS
19836 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19837 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19838 # check for ICE first), but we must link in the order -lSM -lICE or
19839 # we get undefined symbols. So assume we have SM if we have ICE.
19840 # These have to be linked with before -lX11, unlike the other
19841 # libraries we check for below, so use a different variable.
19842 # John Interrante, Karl Berry
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19844 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19845 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
19846 $as_echo_n "(cached) " >&6
19848 ac_check_lib_save_LIBS=$LIBS
19849 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19851 /* end confdefs.h. */
19853 /* Override any GCC internal prototype to avoid an error.
19854 Use char because int might match the return type of a GCC
19855 builtin and then its argument prototype would still apply. */
19859 char IceConnectionNumber ();
19863 return IceConnectionNumber ();
19868 if ac_fn_c_try_link "$LINENO"; then :
19869 ac_cv_lib_ICE_IceConnectionNumber=yes
19871 ac_cv_lib_ICE_IceConnectionNumber=no
19873 rm -f core conftest.err conftest.$ac_objext \
19874 conftest$ac_exeext conftest.$ac_ext
19875 LIBS=$ac_check_lib_save_LIBS
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19878 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19879 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
19880 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19883 LDFLAGS=$ac_save_LDFLAGS
19887 if test x$have_x = xyes; then
19888 # Check whether --enable-x11-shared was given.
19889 if test "${enable_x11_shared+set}" = set; then :
19890 enableval=$enable_x11_shared;
19892 enable_x11_shared=maybe
19898 x11_lib='/usr/X11R6/lib/libX11.6.dylib'
19899 x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
19900 xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
19901 xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
19902 xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
19903 xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
19904 xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
19905 xss_lib='/usr/X11R6/lib/libXss.1.dylib'
19906 xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
19909 x11_lib='libX11.so'
19910 x11ext_lib='libXext.so'
19911 xcursor_lib='libXcursor.so'
19912 xinerama_lib='libXinerama.so'
19913 xinput_lib='libXi.so'
19914 xrandr_lib='libXrandr.so'
19915 xrender_lib='libXrender.so'
19916 xss_lib='libXss.so'
19917 xvidmode_lib='libXxf86vm.so'
19920 x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19921 x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19922 xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19923 xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19924 xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19925 xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19926 xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19927 xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19928 xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19932 if test x$ac_cv_func_shmat != xyes; then
19933 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
19935 CFLAGS="$CFLAGS $X_CFLAGS"
19936 LDFLAGS="$LDFLAGS $X_LIBS"
19938 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
19939 #include <X11/Xproto.h>
19942 if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
19943 have_xext_h_hdr=yes
19949 if test x$have_xext_h_hdr != xyes; then
19951 *** Missing Xext.h, maybe you need to install the libxext-dev package?
19956 $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
19958 SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
19959 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
19961 # Needed so SDL applications can include SDL_syswm.h
19962 SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
19964 if test x$enable_x11_shared = xmaybe; then
19965 enable_x11_shared=yes
19967 if test x$have_loadso != xyes && \
19968 test x$enable_x11_shared = xyes; then
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
19970 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
19971 enable_x11_shared=no
19973 if test x$have_loadso = xyes && \
19974 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
19975 echo "-- dynamic libX11 -> $x11_lib"
19976 echo "-- dynamic libX11ext -> $x11ext_lib"
19978 cat >>confdefs.h <<_ACEOF
19979 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
19983 cat >>confdefs.h <<_ACEOF
19984 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
19987 SUMMARY_video="${SUMMARY_video} x11(dynamic)"
19989 enable_x11_shared=no
19990 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
19991 SUMMARY_video="${SUMMARY_video} x11"
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
19996 $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
19997 have_const_param_XextAddDisplay=no
19998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19999 /* end confdefs.h. */
20001 #include <X11/Xlib.h>
20002 #include <X11/Xproto.h>
20003 #include <X11/extensions/Xext.h>
20004 #include <X11/extensions/extutil.h>
20005 extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
20016 if ac_fn_c_try_compile "$LINENO"; then :
20018 have_const_param_XextAddDisplay=yes
20019 $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
20023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
20025 $as_echo "$have_const_param_XextAddDisplay" >&6; }
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
20028 $as_echo_n "checking for XGenericEvent... " >&6; }
20029 have_XGenericEvent=no
20030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20031 /* end confdefs.h. */
20033 #include <X11/Xlib.h>
20041 XGenericEventCookie *cookie = &event.xcookie;
20042 XNextEvent(display, &event);
20043 XGetEventData(display, cookie);
20044 XFreeEventData(display, cookie);
20050 if ac_fn_c_try_compile "$LINENO"; then :
20052 have_XGenericEvent=yes
20053 $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
20057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
20059 $as_echo "$have_XGenericEvent" >&6; }
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
20062 $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
20063 if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
20064 $as_echo_n "(cached) " >&6
20066 ac_check_lib_save_LIBS=$LIBS
20068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20069 /* end confdefs.h. */
20071 /* Override any GCC internal prototype to avoid an error.
20072 Use char because int might match the return type of a GCC
20073 builtin and then its argument prototype would still apply. */
20077 char XkbKeycodeToKeysym ();
20081 return XkbKeycodeToKeysym ();
20086 if ac_fn_c_try_link "$LINENO"; then :
20087 ac_cv_lib_X11_XkbKeycodeToKeysym=yes
20089 ac_cv_lib_X11_XkbKeycodeToKeysym=no
20091 rm -f core conftest.err conftest.$ac_objext \
20092 conftest$ac_exeext conftest.$ac_ext
20093 LIBS=$ac_check_lib_save_LIBS
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
20096 $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
20097 if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
20099 $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
20104 # Check whether --enable-video-x11-xcursor was given.
20105 if test "${enable_video_x11_xcursor+set}" = set; then :
20106 enableval=$enable_video_x11_xcursor;
20108 enable_video_x11_xcursor=yes
20111 if test x$enable_video_x11_xcursor = xyes; then
20112 definitely_enable_video_x11_xcursor=no
20113 ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
20116 if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
20117 have_xcursor_h_hdr=yes
20119 have_xcursor_h_hdr=no
20123 if test x$have_xcursor_h_hdr = xyes; then
20124 if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
20125 echo "-- dynamic libXcursor -> $xcursor_lib"
20127 cat >>confdefs.h <<_ACEOF
20128 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
20131 definitely_enable_video_x11_xcursor=yes
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
20134 $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
20135 if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
20136 $as_echo_n "(cached) " >&6
20138 ac_check_lib_save_LIBS=$LIBS
20139 LIBS="-lXcursor $LIBS"
20140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20141 /* end confdefs.h. */
20143 /* Override any GCC internal prototype to avoid an error.
20144 Use char because int might match the return type of a GCC
20145 builtin and then its argument prototype would still apply. */
20149 char XcursorImageCreate ();
20153 return XcursorImageCreate ();
20158 if ac_fn_c_try_link "$LINENO"; then :
20159 ac_cv_lib_Xcursor_XcursorImageCreate=yes
20161 ac_cv_lib_Xcursor_XcursorImageCreate=no
20163 rm -f core conftest.err conftest.$ac_objext \
20164 conftest$ac_exeext conftest.$ac_ext
20165 LIBS=$ac_check_lib_save_LIBS
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
20168 $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
20169 if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
20170 have_xcursor_lib=yes
20173 if test x$have_xcursor_lib = xyes ; then
20174 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
20175 definitely_enable_video_x11_xcursor=yes
20180 if test x$definitely_enable_video_x11_xcursor = xyes; then
20182 $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
20184 SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
20186 # Check whether --enable-video-x11-xdbe was given.
20187 if test "${enable_video_x11_xdbe+set}" = set; then :
20188 enableval=$enable_video_x11_xdbe;
20190 enable_video_x11_xdbe=yes
20193 if test x$enable_video_x11_xdbe = xyes; then
20194 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
20197 if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
20204 if test x$have_dbe_h_hdr = xyes; then
20206 $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
20208 SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
20211 # Check whether --enable-video-x11-xinerama was given.
20212 if test "${enable_video_x11_xinerama+set}" = set; then :
20213 enableval=$enable_video_x11_xinerama;
20215 enable_video_x11_xinerama=yes
20218 if test x$enable_video_x11_xinerama = xyes; then
20219 definitely_enable_video_x11_xinerama=no
20220 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
20223 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
20224 have_xinerama_h_hdr=yes
20226 have_xinerama_h_hdr=no
20230 if test x$have_xinerama_h_hdr = xyes; then
20231 if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
20232 echo "-- dynamic libXinerama -> $xinerama_lib"
20234 cat >>confdefs.h <<_ACEOF
20235 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
20238 definitely_enable_video_x11_xinerama=yes
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
20241 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
20242 if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
20243 $as_echo_n "(cached) " >&6
20245 ac_check_lib_save_LIBS=$LIBS
20246 LIBS="-lXinerama $LIBS"
20247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248 /* end confdefs.h. */
20250 /* Override any GCC internal prototype to avoid an error.
20251 Use char because int might match the return type of a GCC
20252 builtin and then its argument prototype would still apply. */
20256 char XineramaQueryExtension ();
20260 return XineramaQueryExtension ();
20265 if ac_fn_c_try_link "$LINENO"; then :
20266 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
20268 ac_cv_lib_Xinerama_XineramaQueryExtension=no
20270 rm -f core conftest.err conftest.$ac_objext \
20271 conftest$ac_exeext conftest.$ac_ext
20272 LIBS=$ac_check_lib_save_LIBS
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
20275 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
20276 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
20277 have_xinerama_lib=yes
20280 if test x$have_xinerama_lib = xyes ; then
20281 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
20282 definitely_enable_video_x11_xinerama=yes
20287 if test x$definitely_enable_video_x11_xinerama = xyes; then
20289 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
20291 SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
20293 # Check whether --enable-video-x11-xinput was given.
20294 if test "${enable_video_x11_xinput+set}" = set; then :
20295 enableval=$enable_video_x11_xinput;
20297 enable_video_x11_xinput=yes
20300 if test x$enable_video_x11_xinput = xyes; then
20301 definitely_enable_video_x11_xinput=no
20302 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
20305 if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
20306 have_xinput_h_hdr=yes
20308 have_xinput_h_hdr=no
20312 if test x$have_xinput_h_hdr = xyes; then
20313 if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
20314 echo "-- dynamic libXi -> $xinput_lib"
20316 cat >>confdefs.h <<_ACEOF
20317 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
20320 definitely_enable_video_x11_xinput=yes
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
20323 $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
20324 if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
20325 $as_echo_n "(cached) " >&6
20327 ac_check_lib_save_LIBS=$LIBS
20329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20330 /* end confdefs.h. */
20332 /* Override any GCC internal prototype to avoid an error.
20333 Use char because int might match the return type of a GCC
20334 builtin and then its argument prototype would still apply. */
20338 char XOpenDevice ();
20342 return XOpenDevice ();
20347 if ac_fn_c_try_link "$LINENO"; then :
20348 ac_cv_lib_Xi_XOpenDevice=yes
20350 ac_cv_lib_Xi_XOpenDevice=no
20352 rm -f core conftest.err conftest.$ac_objext \
20353 conftest$ac_exeext conftest.$ac_ext
20354 LIBS=$ac_check_lib_save_LIBS
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
20357 $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
20358 if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
20359 have_xinput_lib=yes
20362 if test x$have_xinput_lib = xyes ; then
20363 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
20364 definitely_enable_video_x11_xinput=yes
20369 if test x$definitely_enable_video_x11_xinput = xyes; then
20370 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
20372 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
20375 $as_echo_n "checking for xinput2 multitouch... " >&6; }
20376 have_xinput2_multitouch=no
20377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378 /* end confdefs.h. */
20380 #include <X11/Xlib.h>
20381 #include <X11/Xproto.h>
20382 #include <X11/extensions/XInput2.h>
20388 int event_type = XI_TouchBegin;
20389 XITouchClassInfo *t;
20395 if ac_fn_c_try_compile "$LINENO"; then :
20397 have_xinput2_multitouch=yes
20398 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
20400 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
20403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
20405 $as_echo "$have_xinput2_multitouch" >&6; }
20407 # Check whether --enable-video-x11-xrandr was given.
20408 if test "${enable_video_x11_xrandr+set}" = set; then :
20409 enableval=$enable_video_x11_xrandr;
20411 enable_video_x11_xrandr=yes
20414 if test x$enable_video_x11_xrandr = xyes; then
20415 definitely_enable_video_x11_xrandr=no
20416 have_xrandr_h_hdr=no
20417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20418 /* end confdefs.h. */
20420 #include <X11/Xlib.h>
20421 #include <X11/extensions/Xrandr.h>
20427 XRRScreenResources *res = NULL;
20433 if ac_fn_c_try_compile "$LINENO"; then :
20435 have_xrandr_h_hdr=yes
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439 if test x$have_xrandr_h_hdr = xyes; then
20440 if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
20441 echo "-- dynamic libXrandr -> $xrandr_lib"
20443 cat >>confdefs.h <<_ACEOF
20444 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
20447 definitely_enable_video_x11_xrandr=yes
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
20450 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
20451 if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
20452 $as_echo_n "(cached) " >&6
20454 ac_check_lib_save_LIBS=$LIBS
20455 LIBS="-lXrandr $LIBS"
20456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20457 /* end confdefs.h. */
20459 /* Override any GCC internal prototype to avoid an error.
20460 Use char because int might match the return type of a GCC
20461 builtin and then its argument prototype would still apply. */
20465 char XRRQueryExtension ();
20469 return XRRQueryExtension ();
20474 if ac_fn_c_try_link "$LINENO"; then :
20475 ac_cv_lib_Xrandr_XRRQueryExtension=yes
20477 ac_cv_lib_Xrandr_XRRQueryExtension=no
20479 rm -f core conftest.err conftest.$ac_objext \
20480 conftest$ac_exeext conftest.$ac_ext
20481 LIBS=$ac_check_lib_save_LIBS
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
20484 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
20485 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
20486 have_xrandr_lib=yes
20489 if test x$have_xrandr_lib = xyes ; then
20490 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
20491 definitely_enable_video_x11_xrandr=yes
20496 if test x$definitely_enable_video_x11_xrandr = xyes; then
20498 $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
20500 SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
20502 # Check whether --enable-video-x11-scrnsaver was given.
20503 if test "${enable_video_x11_scrnsaver+set}" = set; then :
20504 enableval=$enable_video_x11_scrnsaver;
20506 enable_video_x11_scrnsaver=yes
20509 if test x$enable_video_x11_scrnsaver = xyes; then
20510 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
20513 if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
20514 have_scrnsaver_h_hdr=yes
20516 have_scrnsaver_h_hdr=no
20520 if test x$have_scrnsaver_h_hdr = xyes; then
20521 if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
20522 echo "-- dynamic libXss -> $xss_lib"
20524 cat >>confdefs.h <<_ACEOF
20525 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
20528 definitely_enable_video_x11_scrnsaver=yes
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
20531 $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
20532 if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
20533 $as_echo_n "(cached) " >&6
20535 ac_check_lib_save_LIBS=$LIBS
20537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20538 /* end confdefs.h. */
20540 /* Override any GCC internal prototype to avoid an error.
20541 Use char because int might match the return type of a GCC
20542 builtin and then its argument prototype would still apply. */
20546 char XScreenSaverSuspend ();
20550 return XScreenSaverSuspend ();
20555 if ac_fn_c_try_link "$LINENO"; then :
20556 ac_cv_lib_Xss_XScreenSaverSuspend=yes
20558 ac_cv_lib_Xss_XScreenSaverSuspend=no
20560 rm -f core conftest.err conftest.$ac_objext \
20561 conftest$ac_exeext conftest.$ac_ext
20562 LIBS=$ac_check_lib_save_LIBS
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
20565 $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
20566 if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
20570 if test x$have_xss_lib = xyes ; then
20571 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
20572 definitely_enable_video_x11_scrnsaver=yes
20577 if test x$definitely_enable_video_x11_scrnsaver = xyes; then
20579 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
20581 SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
20583 # Check whether --enable-video-x11-xshape was given.
20584 if test "${enable_video_x11_xshape+set}" = set; then :
20585 enableval=$enable_video_x11_xshape;
20587 enable_video_x11_xshape=yes
20590 if test x$enable_video_x11_xshape = xyes; then
20591 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
20594 if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
20595 have_shape_h_hdr=yes
20597 have_shape_h_hdr=no
20601 if test x$have_shape_h_hdr = xyes; then
20603 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
20605 SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
20608 # Check whether --enable-video-x11-vm was given.
20609 if test "${enable_video_x11_vm+set}" = set; then :
20610 enableval=$enable_video_x11_vm;
20612 enable_video_x11_vm=yes
20615 if test x$enable_video_x11_vm = xyes; then
20616 definitely_enable_video_x11_vm=no
20617 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
20620 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
20627 if test x$have_vm_h_hdr = xyes; then
20628 if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
20629 echo "-- dynamic libXxf86vm -> $xvidmode_lib"
20631 cat >>confdefs.h <<_ACEOF
20632 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
20635 definitely_enable_video_x11_vm=yes
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
20638 $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
20639 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
20640 $as_echo_n "(cached) " >&6
20642 ac_check_lib_save_LIBS=$LIBS
20643 LIBS="-lXxf86vm $LIBS"
20644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20645 /* end confdefs.h. */
20647 /* Override any GCC internal prototype to avoid an error.
20648 Use char because int might match the return type of a GCC
20649 builtin and then its argument prototype would still apply. */
20653 char XF86VidModeQueryVersion ();
20657 return XF86VidModeQueryVersion ();
20662 if ac_fn_c_try_link "$LINENO"; then :
20663 ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
20665 ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
20667 rm -f core conftest.err conftest.$ac_objext \
20668 conftest$ac_exeext conftest.$ac_ext
20669 LIBS=$ac_check_lib_save_LIBS
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
20672 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
20673 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
20677 if test x$have_vm_lib = xyes ; then
20678 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
20679 definitely_enable_video_x11_vm=yes
20684 if test x$definitely_enable_video_x11_vm = xyes; then
20686 $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
20688 SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
20694 CheckVivanteVideo()
20696 # Check whether --enable-video-vivante was given.
20697 if test "${enable_video_vivante+set}" = set; then :
20698 enableval=$enable_video_vivante;
20700 enable_video_vivante=yes
20703 if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
20705 $as_echo_n "checking for Vivante VDK API... " >&6; }
20706 have_vivante_vdk=no
20707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20708 /* end confdefs.h. */
20712 #include <gc_vdk.h>
20723 if ac_fn_c_try_compile "$LINENO"; then :
20725 have_vivante_vdk=yes
20728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
20730 $as_echo "$have_vivante_vdk" >&6; }
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
20733 $as_echo_n "checking for Vivante FB API... " >&6; }
20734 have_vivante_egl=no
20735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20736 /* end confdefs.h. */
20740 #include <EGL/eglvivante.h>
20751 if ac_fn_c_try_compile "$LINENO"; then :
20753 have_vivante_egl=yes
20756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
20758 $as_echo "$have_vivante_egl" >&6; }
20760 if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
20762 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
20764 EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
20765 if test x$have_vivante_vdk = xyes; then
20767 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
20769 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
20771 SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
20772 SUMMARY_video="${SUMMARY_video} vivante"
20780 if test x$enable_video = xyes; then
20782 $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
20784 SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
20786 SUMMARY_video="${SUMMARY_video} haiku"
20792 # Check whether --enable-video-cocoa was given.
20793 if test "${enable_video_cocoa+set}" = set; then :
20794 enableval=$enable_video_cocoa;
20796 enable_video_cocoa=yes
20799 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
20800 save_CFLAGS="$CFLAGS"
20801 CFLAGS="$CFLAGS -x objective-c"
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
20803 $as_echo_n "checking for Cocoa framework... " >&6; }
20805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20806 /* end confdefs.h. */
20808 #import <Cocoa/Cocoa.h>
20819 if ac_fn_c_try_compile "$LINENO"; then :
20824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
20826 $as_echo "$have_cocoa" >&6; }
20827 CFLAGS="$save_CFLAGS"
20828 if test x$have_cocoa = xyes; then
20830 $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
20832 SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
20833 SUMMARY_video="${SUMMARY_video} cocoa"
20841 # Check whether --enable-video-directfb was given.
20842 if test "${enable_video_directfb+set}" = set; then :
20843 enableval=$enable_video_directfb;
20845 enable_video_directfb=no
20848 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
20851 DIRECTFB_REQUIRED_VERSION=1.0.0
20852 for ac_prog in directfb-config
20854 # Extract the first word of "$ac_prog", so it can be a program name with args.
20855 set dummy $ac_prog; ac_word=$2
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20857 $as_echo_n "checking for $ac_word... " >&6; }
20858 if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
20859 $as_echo_n "(cached) " >&6
20861 case $DIRECTFBCONFIG in
20863 ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
20866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20867 as_dummy="$prefix/bin:$PATH"
20868 for as_dir in $as_dummy
20871 test -z "$as_dir" && as_dir=.
20872 for ac_exec_ext in '' $ac_executable_extensions; do
20873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20874 ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
20875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20885 DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
20886 if test -n "$DIRECTFBCONFIG"; then
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
20888 $as_echo "$DIRECTFBCONFIG" >&6; }
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20891 $as_echo "no" >&6; }
20895 test -n "$DIRECTFBCONFIG" && break
20897 test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
20899 if test x$DIRECTFBCONFIG = xno; then
20900 # Extract the first word of "pkg-config", so it can be a program name with args.
20901 set dummy pkg-config; ac_word=$2
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20903 $as_echo_n "checking for $ac_word... " >&6; }
20904 if ${ac_cv_path_PKG_CONFIG+:} false; then :
20905 $as_echo_n "(cached) " >&6
20907 case $PKG_CONFIG in
20909 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20913 for as_dir in $PATH
20916 test -z "$as_dir" && as_dir=.
20917 for ac_exec_ext in '' $ac_executable_extensions; do
20918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20919 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20927 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20931 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20932 if test -n "$PKG_CONFIG"; then
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20934 $as_echo "$PKG_CONFIG" >&6; }
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20937 $as_echo "no" >&6; }
20941 if test x$PKG_CONFIG != xno; then
20942 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
20943 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
20944 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
20945 DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
20950 set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
20951 NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
20952 set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
20953 HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
20954 if test $HAVE_VERSION -ge $NEED_VERSION; then
20955 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
20956 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
20957 DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
20961 if test x$video_directfb = xyes; then
20962 # SuSE 11.1 installs directfb-config without directfb-devel
20963 save_CPPFLAGS="$CPPFLAGS"
20964 CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
20965 ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
20966 if test "x$ac_cv_header_directfb_h" = xyes; then :
20967 have_directfb_hdr=yes
20969 have_directfb_hdr=no
20973 CPPFLAGS="$save_CPPFLAGS"
20974 video_directfb=$have_directfb_hdr
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
20977 $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
20979 $as_echo "$video_directfb" >&6; }
20981 if test x$video_directfb = xyes; then
20982 # Check whether --enable-directfb-shared was given.
20983 if test "${enable_directfb_shared+set}" = set; then :
20984 enableval=$enable_directfb_shared;
20986 enable_directfb_shared=yes
20991 $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
20994 $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
20996 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
20997 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
21000 $as_echo_n "checking for directfb dynamic loading support... " >&6; }
21002 directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
21003 # | sed 's/.*\/\(.*\)/\1/; q'`]
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
21005 $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
21006 if test x$have_loadso != xyes && \
21007 test x$enable_directfb_shared = xyes; then
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
21009 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
21011 if test x$have_loadso = xyes && \
21012 test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
21013 directfb_shared=yes
21014 echo "-- $directfb_lib_spec -> $directfb_lib"
21016 cat >>confdefs.h <<_ACEOF
21017 #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
21020 SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
21022 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
21023 SUMMARY_video="${SUMMARY_video} directfb"
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
21026 $as_echo "$directfb_shared" >&6; }
21027 SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
21035 # Check whether --enable-fusionsound was given.
21036 if test "${enable_fusionsound+set}" = set; then :
21037 enableval=$enable_fusionsound;
21039 enable_fusionsound=no
21042 if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
21045 FUSIONSOUND_REQUIRED_VERSION=1.1.1
21047 # Extract the first word of "pkg-config", so it can be a program name with args.
21048 set dummy pkg-config; ac_word=$2
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21050 $as_echo_n "checking for $ac_word... " >&6; }
21051 if ${ac_cv_path_PKG_CONFIG+:} false; then :
21052 $as_echo_n "(cached) " >&6
21054 case $PKG_CONFIG in
21056 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21060 for as_dir in $PATH
21063 test -z "$as_dir" && as_dir=.
21064 for ac_exec_ext in '' $ac_executable_extensions; do
21065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21066 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21074 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21078 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21079 if test -n "$PKG_CONFIG"; then
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21081 $as_echo "$PKG_CONFIG" >&6; }
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21084 $as_echo "no" >&6; }
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
21089 $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
21090 if test x$PKG_CONFIG != xno; then
21091 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
21092 FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
21093 FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
21098 $as_echo "$fusionsound" >&6; }
21100 if test x$fusionsound = xyes; then
21102 $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
21104 SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
21105 EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
21107 # Check whether --enable-fusionsound-shared was given.
21108 if test "${enable_fusionsound_shared+set}" = set; then :
21109 enableval=$enable_fusionsound_shared;
21111 enable_fusionsound_shared=yes
21114 fusionsound_shared=no
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
21116 $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
21117 if test x$have_loadso != xyes && \
21118 test x$enable_fusionsound_shared = xyes; then
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
21120 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
21122 if test x$have_loadso = xyes && \
21123 test x$enable_fusionsound_shared = xyes; then
21125 cat >>confdefs.h <<_ACEOF
21126 #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
21129 fusionsound_shared=yes
21130 SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
21132 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
21133 SUMMARY_audio="${SUMMARY_audio} fusionsound"
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
21136 $as_echo "$fusionsound_shared" >&6; }
21145 # Check whether --enable-video-dummy was given.
21146 if test "${enable_video_dummy+set}" = set; then :
21147 enableval=$enable_video_dummy;
21149 enable_video_dummy=yes
21152 if test x$enable_video_dummy = xyes; then
21154 $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
21156 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
21158 SUMMARY_video="${SUMMARY_video} dummy"
21162 # Check whether --enable-video-opengl was given.
21163 if test "${enable_video_opengl+set}" = set; then :
21164 enableval=$enable_video_opengl;
21166 enable_video_opengl=yes
21172 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
21174 $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
21176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21177 /* end confdefs.h. */
21180 #include <GL/glx.h>
21191 if ac_fn_c_try_compile "$LINENO"; then :
21196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
21198 $as_echo "$video_opengl" >&6; }
21199 if test x$video_opengl = xyes; then
21201 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21204 $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
21207 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21209 SUMMARY_video="${SUMMARY_video} opengl"
21214 # Check whether --enable-video-opengles was given.
21215 if test "${enable_video_opengles+set}" = set; then :
21216 enableval=$enable_video_opengles;
21218 enable_video_opengles=yes
21221 # Check whether --enable-video-opengles1 was given.
21222 if test "${enable_video_opengles1+set}" = set; then :
21223 enableval=$enable_video_opengles1;
21225 enable_video_opengles1=yes
21228 # Check whether --enable-video-opengles2 was given.
21229 if test "${enable_video_opengles2+set}" = set; then :
21230 enableval=$enable_video_opengles2;
21232 enable_video_opengles2=yes
21235 # Check whether --enable-video-vulkan was given.
21236 if test "${enable_video_vulkan+set}" = set; then :
21237 enableval=$enable_video_vulkan;
21239 enable_video_vulkan=yes
21246 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
21248 $as_echo_n "checking for EGL support... " >&6; }
21249 video_opengl_egl=no
21250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21251 /* end confdefs.h. */
21255 #include <EGL/egl.h>
21256 #include <EGL/eglext.h>
21267 if ac_fn_c_try_compile "$LINENO"; then :
21269 video_opengl_egl=yes
21272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
21274 $as_echo "$video_opengl_egl" >&6; }
21275 if test x$video_opengl_egl = xyes; then
21277 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
21281 if test x$enable_video_opengles1 = xyes; then
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
21283 $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
21284 video_opengles_v1=no
21285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21286 /* end confdefs.h. */
21288 #include <GLES/gl.h>
21289 #include <GLES/glext.h>
21300 if ac_fn_c_try_compile "$LINENO"; then :
21302 video_opengles_v1=yes
21305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
21307 $as_echo "$video_opengles_v1" >&6; }
21308 if test x$video_opengles_v1 = xyes; then
21310 $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
21313 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
21315 SUMMARY_video="${SUMMARY_video} opengl_es1"
21319 if test x$enable_video_opengles2 = xyes; then
21320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
21321 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
21322 video_opengles_v2=no
21323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21324 /* end confdefs.h. */
21326 #include <GLES2/gl2.h>
21327 #include <GLES2/gl2ext.h>
21338 if ac_fn_c_try_compile "$LINENO"; then :
21340 video_opengles_v2=yes
21343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
21345 $as_echo "$video_opengles_v2" >&6; }
21346 if test x$video_opengles_v2 = xyes; then
21348 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
21351 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
21353 SUMMARY_video="${SUMMARY_video} opengl_es2"
21361 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21363 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21366 $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
21369 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21371 SUMMARY_video="${SUMMARY_video} opengl"
21377 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
21380 $as_echo_n "checking for EGL support... " >&6; }
21381 video_opengl_egl=no
21382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21383 /* end confdefs.h. */
21385 #include <EGL/egl.h>
21396 if ac_fn_c_try_compile "$LINENO"; then :
21398 video_opengl_egl=yes
21401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
21403 $as_echo "$video_opengl_egl" >&6; }
21404 if test x$video_opengl_egl = xyes; then
21406 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21409 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
21411 SUMMARY_video="${SUMMARY_video} opengl_es1"
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
21415 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
21416 video_opengles_v2=no
21417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21418 /* end confdefs.h. */
21420 #include <GLES2/gl2.h>
21421 #include <GLES2/gl2ext.h>
21432 if ac_fn_c_try_compile "$LINENO"; then :
21434 video_opengles_v2=yes
21437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
21439 $as_echo "$video_opengles_v2" >&6; }
21440 if test x$video_opengles_v2 = xyes; then
21442 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21445 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
21448 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
21450 SUMMARY_video="${SUMMARY_video} opengl_es2"
21457 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21459 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21462 $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
21465 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21467 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
21468 SUMMARY_video="${SUMMARY_video} opengl"
21474 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21476 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21479 $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
21482 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21484 SUMMARY_video="${SUMMARY_video} opengl"
21488 CheckEmscriptenGLES()
21490 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
21492 $as_echo_n "checking for EGL support... " >&6; }
21493 video_opengl_egl=no
21494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21495 /* end confdefs.h. */
21497 #include <EGL/egl.h>
21508 if ac_fn_c_try_compile "$LINENO"; then :
21510 video_opengl_egl=yes
21513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
21515 $as_echo "$video_opengl_egl" >&6; }
21516 if test x$video_opengl_egl = xyes; then
21518 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
21523 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
21524 video_opengles_v2=no
21525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21526 /* end confdefs.h. */
21528 #include <GLES2/gl2.h>
21529 #include <GLES2/gl2ext.h>
21540 if ac_fn_c_try_compile "$LINENO"; then :
21542 video_opengles_v2=yes
21545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
21547 $as_echo "$video_opengles_v2" >&6; }
21548 if test x$video_opengles_v2 = xyes; then
21550 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
21553 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
21555 SUMMARY_video="${SUMMARY_video} opengl_es2"
21562 if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vulkan support" >&5
21564 $as_echo_n "checking for Vulkan support... " >&6; }
21566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21567 /* end confdefs.h. */
21569 #include <vulkan/vulkan.h>
21575 uint32_t instance_layer_count = 0;
21576 vkEnumerateInstanceLayerProperties(&instance_layer_count, NULL);
21582 if ac_fn_c_try_compile "$LINENO"; then :
21587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_vulkan" >&5
21589 $as_echo "$video_vulkan" >&6; }
21590 if test x$video_vulkan = xyes; then
21592 $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
21594 SUMMARY_video="${SUMMARY_video} vulkan"
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
21602 $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
21603 use_input_events=no
21604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21605 /* end confdefs.h. */
21607 #include <linux/input.h>
21614 #error EVIOCGNAME() ioctl not available
21621 if ac_fn_c_try_compile "$LINENO"; then :
21623 use_input_events=yes
21626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
21628 $as_echo "$use_input_events" >&6; }
21629 if test x$use_input_events = xyes; then
21631 $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
21633 SUMMARY_input="${SUMMARY_input} linuxev"
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
21641 $as_echo_n "checking for Linux kd.h... " >&6; }
21643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21644 /* end confdefs.h. */
21646 #include <linux/kd.h>
21647 #include <linux/keyboard.h>
21653 struct kbentry kbe;
21654 kbe.kb_table = KG_CTRL;
21655 ioctl(0, KDGKBENT, &kbe);
21661 if ac_fn_c_try_compile "$LINENO"; then :
21666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
21668 $as_echo "$use_input_kd" >&6; }
21669 if test x$use_input_kd = xyes; then
21671 $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
21673 SUMMARY_input="${SUMMARY_input} linuxkd"
21679 # Check whether --enable-libudev was given.
21680 if test "${enable_libudev+set}" = set; then :
21681 enableval=$enable_libudev;
21686 if test x$enable_libudev = xyes; then
21687 ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
21688 if test "x$ac_cv_header_libudev_h" = xyes; then :
21689 have_libudev_h_hdr=yes
21691 have_libudev_h_hdr=no
21695 if test x$have_libudev_h_hdr = xyes; then
21697 $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
21705 # Check whether --enable-dbus was given.
21706 if test "${enable_dbus+set}" = set; then :
21707 enableval=$enable_dbus;
21712 if test x$enable_dbus = xyes; then
21713 # Extract the first word of "pkg-config", so it can be a program name with args.
21714 set dummy pkg-config; ac_word=$2
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21716 $as_echo_n "checking for $ac_word... " >&6; }
21717 if ${ac_cv_path_PKG_CONFIG+:} false; then :
21718 $as_echo_n "(cached) " >&6
21720 case $PKG_CONFIG in
21722 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21726 for as_dir in $PATH
21729 test -z "$as_dir" && as_dir=.
21730 for ac_exec_ext in '' $ac_executable_extensions; do
21731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21732 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21740 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21744 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21745 if test -n "$PKG_CONFIG"; then
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21747 $as_echo "$PKG_CONFIG" >&6; }
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21750 $as_echo "no" >&6; }
21754 if test x$PKG_CONFIG != xno; then
21755 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
21756 save_CFLAGS="$CFLAGS"
21757 CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
21758 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
21759 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
21760 have_dbus_dbus_h_hdr=yes
21762 have_dbus_dbus_h_hdr=no
21766 CFLAGS="$save_CFLAGS"
21767 if test x$have_dbus_dbus_h_hdr = xyes; then
21769 $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
21771 EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
21772 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
21780 # Check whether --enable-ibus was given.
21781 if test "${enable_ibus+set}" = set; then :
21782 enableval=$enable_ibus;
21787 if test x$enable_ibus = xyes; then
21788 # Extract the first word of "pkg-config", so it can be a program name with args.
21789 set dummy pkg-config; ac_word=$2
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21791 $as_echo_n "checking for $ac_word... " >&6; }
21792 if ${ac_cv_path_PKG_CONFIG+:} false; then :
21793 $as_echo_n "(cached) " >&6
21795 case $PKG_CONFIG in
21797 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21801 for as_dir in $PATH
21804 test -z "$as_dir" && as_dir=.
21805 for ac_exec_ext in '' $ac_executable_extensions; do
21806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21807 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21815 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21819 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21820 if test -n "$PKG_CONFIG"; then
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21822 $as_echo "$PKG_CONFIG" >&6; }
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21825 $as_echo "no" >&6; }
21829 if test x$PKG_CONFIG != xno; then
21830 IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
21831 save_CFLAGS="$CFLAGS"
21832 CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
21833 ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
21834 if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
21835 have_ibus_ibus_h_hdr=yes
21837 have_ibus_ibus_h_hdr=no
21841 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
21842 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
21843 have_inotify_inotify_h_hdr=yes
21845 have_inotify_inotify_h_hdr=no
21849 CFLAGS="$save_CFLAGS"
21850 if test x$have_ibus_ibus_h_hdr = xyes; then
21851 if test x$enable_dbus != xyes; then
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
21853 $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
21854 have_ibus_ibus_h_hdr=no
21855 elif test x$have_inotify_inotify_h_hdr != xyes; then
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
21857 $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
21858 have_ibus_ibus_h_hdr=no
21861 $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
21863 EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
21864 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
21873 # Check whether --enable-input-tslib was given.
21874 if test "${enable_input_tslib+set}" = set; then :
21875 enableval=$enable_input_tslib;
21877 enable_input_tslib=yes
21880 if test x$enable_input_tslib = xyes; then
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
21882 $as_echo_n "checking for Touchscreen library support... " >&6; }
21883 enable_input_tslib=no
21884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21885 /* end confdefs.h. */
21898 if ac_fn_c_try_compile "$LINENO"; then :
21900 enable_input_tslib=yes
21903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
21905 $as_echo "$enable_input_tslib" >&6; }
21906 if test x$enable_input_tslib = xyes; then
21908 $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
21910 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
21911 SUMMARY_input="${SUMMARY_input} ts"
21918 # Check whether --enable-pthreads was given.
21919 if test "${enable_pthreads+set}" = set; then :
21920 enableval=$enable_pthreads;
21922 enable_pthreads=yes
21925 # Check whether --enable-pthread-sem was given.
21926 if test "${enable_pthread_sem+set}" = set; then :
21927 enableval=$enable_pthread_sem;
21929 enable_pthread_sem=yes
21934 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21937 *-*-linux*|*-*-uclinux*)
21938 pthread_cflags="-D_REENTRANT"
21939 pthread_lib="-lpthread"
21942 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21946 pthread_cflags="-D_THREAD_SAFE"
21947 # causes Carbon.p complaints?
21948 # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21950 *-*-freebsd*|*-*-dragonfly*)
21951 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21952 pthread_lib="-pthread"
21955 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21956 pthread_lib="-lpthread"
21959 pthread_cflags="-D_REENTRANT"
21960 pthread_lib="-pthread"
21963 # From Solaris 9+, posix4's preferred name is rt.
21964 pthread_cflags="-D_REENTRANT"
21965 pthread_lib="-lpthread -lrt"
21968 # Solaris 10+ merged pthread into libc.
21969 pthread_cflags="-D_REENTRANT"
21973 # Solaris 11+ merged rt into libc.
21974 pthread_cflags="-D_REENTRANT"
21978 pthread_cflags="-D_REENTRANT -Kthread"
21982 pthread_cflags="-D_REENTRANT -mthreads"
21983 pthread_lib="-lpthread"
21986 pthread_cflags="-D_REENTRANT"
21987 pthread_lib="-L/usr/lib -lpthread"
21990 pthread_cflags="-D_REENTRANT"
21994 pthread_cflags="-D_REENTRANT"
21995 pthread_lib="-lpthread"
21998 if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
21999 # Save the original compiler flags and libraries
22000 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
22001 # Add the pthread compiler flags and libraries
22002 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
22003 # Check to see if we have pthread support on this system
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
22005 $as_echo_n "checking for pthreads... " >&6; }
22007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22008 /* end confdefs.h. */
22010 #include <pthread.h>
22016 pthread_attr_t type;
22017 pthread_attr_init(&type);
22023 if ac_fn_c_try_link "$LINENO"; then :
22028 rm -f core conftest.err conftest.$ac_objext \
22029 conftest$ac_exeext conftest.$ac_ext
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
22031 $as_echo "$use_pthreads" >&6; }
22032 # Restore the compiler flags and libraries
22033 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
22035 # Do futher testing if we have pthread support...
22036 if test x$use_pthreads = xyes; then
22038 $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
22040 EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
22041 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
22042 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
22044 # Save the original compiler flags and libraries
22045 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
22046 # Add the pthread compiler flags and libraries
22047 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
22049 # Check to see if recursive mutexes are available
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
22051 $as_echo_n "checking for recursive mutexes... " >&6; }
22052 has_recursive_mutexes=no
22053 if test x$has_recursive_mutexes = xno; then
22054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22055 /* end confdefs.h. */
22057 #define _GNU_SOURCE 1
22058 #include <pthread.h>
22064 pthread_mutexattr_t attr;
22065 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
22071 if ac_fn_c_try_link "$LINENO"; then :
22073 has_recursive_mutexes=yes
22075 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
22079 rm -f core conftest.err conftest.$ac_objext \
22080 conftest$ac_exeext conftest.$ac_ext
22082 if test x$has_recursive_mutexes = xno; then
22083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22084 /* end confdefs.h. */
22086 #define _GNU_SOURCE 1
22087 #include <pthread.h>
22093 pthread_mutexattr_t attr;
22094 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
22100 if ac_fn_c_try_link "$LINENO"; then :
22102 has_recursive_mutexes=yes
22104 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
22108 rm -f core conftest.err conftest.$ac_objext \
22109 conftest$ac_exeext conftest.$ac_ext
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
22112 $as_echo "$has_recursive_mutexes" >&6; }
22114 # Check to see if pthread semaphore support is missing
22115 if test x$enable_pthread_sem = xyes; then
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
22117 $as_echo_n "checking for pthread semaphores... " >&6; }
22118 have_pthread_sem=no
22119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22120 /* end confdefs.h. */
22122 #include <pthread.h>
22123 #include <semaphore.h>
22134 if ac_fn_c_try_compile "$LINENO"; then :
22136 have_pthread_sem=yes
22139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
22141 $as_echo "$have_pthread_sem" >&6; }
22143 if test x$have_pthread_sem = xyes; then
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
22145 $as_echo_n "checking for sem_timedwait... " >&6; }
22146 have_sem_timedwait=no
22147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22148 /* end confdefs.h. */
22150 #include <pthread.h>
22151 #include <semaphore.h>
22157 sem_timedwait(NULL, NULL);
22163 if ac_fn_c_try_link "$LINENO"; then :
22165 have_sem_timedwait=yes
22166 $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
22170 rm -f core conftest.err conftest.$ac_objext \
22171 conftest$ac_exeext conftest.$ac_ext
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
22173 $as_echo "$have_sem_timedwait" >&6; }
22176 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
22178 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
22179 have_pthread_np_h=yes
22181 have_pthread_np_h=no
22185 if test x$have_pthread_np_h = xyes; then
22187 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
22191 # Check to see if pthread naming is available
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
22193 $as_echo_n "checking for pthread_setname_np... " >&6; }
22194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22195 /* end confdefs.h. */
22197 /* Override any GCC internal prototype to avoid an error.
22198 Use char because int might match the return type of a GCC
22199 builtin and then its argument prototype would still apply. */
22203 char pthread_setname_np ();
22207 return pthread_setname_np ();
22212 if ac_fn_c_try_link "$LINENO"; then :
22214 has_pthread_setname_np=yes
22216 $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
22221 has_pthread_setname_np=no
22224 rm -f core conftest.err conftest.$ac_objext \
22225 conftest$ac_exeext conftest.$ac_ext
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
22227 $as_echo "$has_pthread_setname_np" >&6; }
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
22230 $as_echo_n "checking for pthread_set_name_np... " >&6; }
22231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22232 /* end confdefs.h. */
22234 /* Override any GCC internal prototype to avoid an error.
22235 Use char because int might match the return type of a GCC
22236 builtin and then its argument prototype would still apply. */
22240 char pthread_set_name_np ();
22244 return pthread_set_name_np ();
22249 if ac_fn_c_try_link "$LINENO"; then :
22251 has_pthread_set_name_np=yes
22253 $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
22258 has_pthread_set_name_np=no
22261 rm -f core conftest.err conftest.$ac_objext \
22262 conftest$ac_exeext conftest.$ac_ext
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
22264 $as_echo "$has_pthread_set_name_np" >&6; }
22266 # Restore the compiler flags and libraries
22267 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
22269 # Basic thread creation functions
22270 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
22273 # We can fake these with mutexes and condition variables if necessary
22274 if test x$have_pthread_sem = xyes; then
22275 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
22277 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
22281 # We can fake these with semaphores if necessary
22282 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
22284 # Condition variables
22285 # We can fake these with semaphores and mutexes if necessary
22286 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
22288 # Thread local storage
22289 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
22299 $as_echo_n "checking Windows compiler... " >&6; }
22301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22302 /* end confdefs.h. */
22304 #include <windows.h>
22315 if ac_fn_c_try_compile "$LINENO"; then :
22320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
22322 $as_echo "$have_win32_gcc" >&6; }
22323 if test x$have_win32_gcc != xyes; then
22325 *** Your compiler ($CC) does not produce Windows executables!
22329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
22330 $as_echo_n "checking Windows CE... " >&6; }
22332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22333 /* end confdefs.h. */
22335 #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
22336 #error This is not Windows CE
22348 if ac_fn_c_try_compile "$LINENO"; then :
22352 *** Sorry, Windows CE is no longer supported.
22356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
22358 $as_echo "$have_wince" >&6; }
22360 # This fixes Windows stack alignment with newer GCC
22366 # Check whether --enable-directx was given.
22367 if test "${enable_directx+set}" = set; then :
22368 enableval=$enable_directx;
22373 if test x$enable_directx = xyes; then
22374 ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
22375 if test "x$ac_cv_header_d3d9_h" = xyes; then :
22380 ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
22381 if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
22386 ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
22387 if test "x$ac_cv_header_ddraw_h" = xyes; then :
22392 ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
22393 if test "x$ac_cv_header_dsound_h" = xyes; then :
22398 ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
22399 if test "x$ac_cv_header_dinput_h" = xyes; then :
22404 ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
22405 if test "x$ac_cv_header_dxgi_h" = xyes; then :
22410 ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
22411 if test "x$ac_cv_header_xaudio2_h" = xyes; then :
22416 ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
22417 if test "x$ac_cv_header_xinput_h" = xyes; then :
22423 if test x$have_ddraw = xyes; then
22425 $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
22428 if test x$have_dinput = xyes; then
22430 $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
22433 if test x$have_dsound = xyes; then
22435 $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
22438 if test x$have_dxgi = xyes; then
22440 $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
22443 if test x$have_xinput = xyes; then
22445 $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
22449 SUMMARY_video="${SUMMARY_video} directx"
22450 SUMMARY_audio="${SUMMARY_audio} directx"
22452 # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
22453 # FIXME: ...so force it off for now.
22464 # Check whether --enable-sdl-dlopen was given.
22465 if test "${enable_sdl_dlopen+set}" = set; then :
22466 enableval=$enable_sdl_dlopen;
22468 enable_sdl_dlopen=yes
22471 if test x$enable_sdl_dlopen = xyes; then
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
22473 $as_echo_n "checking for dlopen... " >&6; }
22475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22476 /* end confdefs.h. */
22484 void *handle = dlopen("", RTLD_NOW);
22485 const char *loaderror = (char *) dlerror();
22491 if ac_fn_c_try_compile "$LINENO"; then :
22496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
22498 $as_echo "$have_dlopen" >&6; }
22500 if test x$have_dlopen = xyes; then
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
22502 $as_echo_n "checking for dlopen in -lc... " >&6; }
22503 if ${ac_cv_lib_c_dlopen+:} false; then :
22504 $as_echo_n "(cached) " >&6
22506 ac_check_lib_save_LIBS=$LIBS
22508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22509 /* end confdefs.h. */
22511 /* Override any GCC internal prototype to avoid an error.
22512 Use char because int might match the return type of a GCC
22513 builtin and then its argument prototype would still apply. */
22526 if ac_fn_c_try_link "$LINENO"; then :
22527 ac_cv_lib_c_dlopen=yes
22529 ac_cv_lib_c_dlopen=no
22531 rm -f core conftest.err conftest.$ac_objext \
22532 conftest$ac_exeext conftest.$ac_ext
22533 LIBS=$ac_check_lib_save_LIBS
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
22536 $as_echo "$ac_cv_lib_c_dlopen" >&6; }
22537 if test "x$ac_cv_lib_c_dlopen" = xyes; then :
22538 EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22541 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22542 if ${ac_cv_lib_dl_dlopen+:} false; then :
22543 $as_echo_n "(cached) " >&6
22545 ac_check_lib_save_LIBS=$LIBS
22547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22548 /* end confdefs.h. */
22550 /* Override any GCC internal prototype to avoid an error.
22551 Use char because int might match the return type of a GCC
22552 builtin and then its argument prototype would still apply. */
22565 if ac_fn_c_try_link "$LINENO"; then :
22566 ac_cv_lib_dl_dlopen=yes
22568 ac_cv_lib_dl_dlopen=no
22570 rm -f core conftest.err conftest.$ac_objext \
22571 conftest$ac_exeext conftest.$ac_ext
22572 LIBS=$ac_check_lib_save_LIBS
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22575 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22576 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22577 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
22580 $as_echo_n "checking for dlopen in -lltdl... " >&6; }
22581 if ${ac_cv_lib_ltdl_dlopen+:} false; then :
22582 $as_echo_n "(cached) " >&6
22584 ac_check_lib_save_LIBS=$LIBS
22585 LIBS="-lltdl $LIBS"
22586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22587 /* end confdefs.h. */
22589 /* Override any GCC internal prototype to avoid an error.
22590 Use char because int might match the return type of a GCC
22591 builtin and then its argument prototype would still apply. */
22604 if ac_fn_c_try_link "$LINENO"; then :
22605 ac_cv_lib_ltdl_dlopen=yes
22607 ac_cv_lib_ltdl_dlopen=no
22609 rm -f core conftest.err conftest.$ac_objext \
22610 conftest$ac_exeext conftest.$ac_ext
22611 LIBS=$ac_check_lib_save_LIBS
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
22614 $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
22615 if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
22616 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
22624 $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
22626 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
22636 if test x$enable_joystick = xyes; then
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
22638 $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
22639 if ${ac_cv_lib_usbhid_hid_init+:} false; then :
22640 $as_echo_n "(cached) " >&6
22642 ac_check_lib_save_LIBS=$LIBS
22643 LIBS="-lusbhid $LIBS"
22644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22645 /* end confdefs.h. */
22647 /* Override any GCC internal prototype to avoid an error.
22648 Use char because int might match the return type of a GCC
22649 builtin and then its argument prototype would still apply. */
22657 return hid_init ();
22662 if ac_fn_c_try_link "$LINENO"; then :
22663 ac_cv_lib_usbhid_hid_init=yes
22665 ac_cv_lib_usbhid_hid_init=no
22667 rm -f core conftest.err conftest.$ac_objext \
22668 conftest$ac_exeext conftest.$ac_ext
22669 LIBS=$ac_check_lib_save_LIBS
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
22672 $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
22673 if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
22677 if test x$have_libusbhid = xyes; then
22678 ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
22679 if test "x$ac_cv_header_usbhid_h" = xyes; then :
22680 USB_CFLAGS="-DHAVE_USBHID_H"
22684 ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
22685 if test "x$ac_cv_header_libusbhid_h" = xyes; then :
22686 USB_CFLAGS="-DHAVE_LIBUSBHID_H"
22690 USB_LIBS="$USB_LIBS -lusbhid"
22692 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
22693 if test "x$ac_cv_header_usb_h" = xyes; then :
22694 USB_CFLAGS="-DHAVE_USB_H"
22698 ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
22699 if test "x$ac_cv_header_libusb_h" = xyes; then :
22700 USB_CFLAGS="-DHAVE_LIBUSB_H"
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
22705 $as_echo_n "checking for hid_init in -lusb... " >&6; }
22706 if ${ac_cv_lib_usb_hid_init+:} false; then :
22707 $as_echo_n "(cached) " >&6
22709 ac_check_lib_save_LIBS=$LIBS
22711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22712 /* end confdefs.h. */
22714 /* Override any GCC internal prototype to avoid an error.
22715 Use char because int might match the return type of a GCC
22716 builtin and then its argument prototype would still apply. */
22724 return hid_init ();
22729 if ac_fn_c_try_link "$LINENO"; then :
22730 ac_cv_lib_usb_hid_init=yes
22732 ac_cv_lib_usb_hid_init=no
22734 rm -f core conftest.err conftest.$ac_objext \
22735 conftest$ac_exeext conftest.$ac_ext
22736 LIBS=$ac_check_lib_save_LIBS
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
22739 $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
22740 if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
22741 USB_LIBS="$USB_LIBS -lusb"
22746 save_CFLAGS="$CFLAGS"
22747 CFLAGS="$CFLAGS $USB_CFLAGS"
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
22750 $as_echo_n "checking for usbhid... " >&6; }
22752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22753 /* end confdefs.h. */
22755 #include <sys/types.h>
22756 #if defined(HAVE_USB_H)
22759 #ifdef __DragonFly__
22760 # include <bus/usb/usb.h>
22761 # include <bus/usb/usbhid.h>
22763 # include <dev/usb/usb.h>
22764 # include <dev/usb/usbhid.h>
22766 #if defined(HAVE_USBHID_H)
22767 #include <usbhid.h>
22768 #elif defined(HAVE_LIBUSB_H)
22769 #include <libusb.h>
22770 #elif defined(HAVE_LIBUSBHID_H)
22771 #include <libusbhid.h>
22778 struct report_desc *repdesc;
22779 struct usb_ctl_report *repbuf;
22780 hid_kind_t hidkind;
22786 if ac_fn_c_try_compile "$LINENO"; then :
22791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
22793 $as_echo "$have_usbhid" >&6; }
22795 if test x$have_usbhid = xyes; then
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
22797 $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
22798 have_usbhid_ucr_data=no
22799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22800 /* end confdefs.h. */
22802 #include <sys/types.h>
22803 #if defined(HAVE_USB_H)
22806 #ifdef __DragonFly__
22807 # include <bus/usb/usb.h>
22808 # include <bus/usb/usbhid.h>
22810 # include <dev/usb/usb.h>
22811 # include <dev/usb/usbhid.h>
22813 #if defined(HAVE_USBHID_H)
22814 #include <usbhid.h>
22815 #elif defined(HAVE_LIBUSB_H)
22816 #include <libusb.h>
22817 #elif defined(HAVE_LIBUSBHID_H)
22818 #include <libusbhid.h>
22825 struct usb_ctl_report buf;
22826 if (buf.ucr_data) { }
22832 if ac_fn_c_try_compile "$LINENO"; then :
22834 have_usbhid_ucr_data=yes
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838 if test x$have_usbhid_ucr_data = xyes; then
22839 USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
22842 $as_echo "$have_usbhid_ucr_data" >&6; }
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
22845 $as_echo_n "checking for new usbhid API... " >&6; }
22847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22848 /* end confdefs.h. */
22850 #include <sys/types.h>
22851 #if defined(HAVE_USB_H)
22854 #ifdef __DragonFly__
22855 #include <bus/usb/usb.h>
22856 #include <bus/usb/usbhid.h>
22858 #include <dev/usb/usb.h>
22859 #include <dev/usb/usbhid.h>
22861 #if defined(HAVE_USBHID_H)
22862 #include <usbhid.h>
22863 #elif defined(HAVE_LIBUSB_H)
22864 #include <libusb.h>
22865 #elif defined(HAVE_LIBUSBHID_H)
22866 #include <libusbhid.h>
22874 hid_start_parse(d, 1, 1);
22880 if ac_fn_c_try_compile "$LINENO"; then :
22882 have_usbhid_new=yes
22885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886 if test x$have_usbhid_new = xyes; then
22887 USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
22890 $as_echo "$have_usbhid_new" >&6; }
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
22893 $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
22894 have_machine_joystick=no
22895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22896 /* end confdefs.h. */
22898 #include <machine/joystick.h>
22910 if ac_fn_c_try_compile "$LINENO"; then :
22912 have_machine_joystick=yes
22915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22916 if test x$have_machine_joystick = xyes; then
22918 $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
22922 $as_echo "$have_machine_joystick" >&6; }
22925 $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
22927 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
22928 EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
22929 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
22932 CFLAGS="$save_CFLAGS"
22938 CheckClockGettime()
22940 # Check whether --enable-clock_gettime was given.
22941 if test "${enable_clock_gettime+set}" = set; then :
22942 enableval=$enable_clock_gettime;
22944 enable_clock_gettime=yes
22947 if test x$enable_clock_gettime = xyes; then
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22949 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22950 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
22951 $as_echo_n "(cached) " >&6
22953 ac_check_lib_save_LIBS=$LIBS
22955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22956 /* end confdefs.h. */
22958 /* Override any GCC internal prototype to avoid an error.
22959 Use char because int might match the return type of a GCC
22960 builtin and then its argument prototype would still apply. */
22964 char clock_gettime ();
22968 return clock_gettime ();
22973 if ac_fn_c_try_link "$LINENO"; then :
22974 ac_cv_lib_rt_clock_gettime=yes
22976 ac_cv_lib_rt_clock_gettime=no
22978 rm -f core conftest.err conftest.$ac_objext \
22979 conftest$ac_exeext conftest.$ac_ext
22980 LIBS=$ac_check_lib_save_LIBS
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22983 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22984 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
22985 have_clock_gettime=yes
22988 if test x$have_clock_gettime = xyes; then
22990 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22992 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
22995 $as_echo_n "checking for clock_gettime in -lc... " >&6; }
22996 if ${ac_cv_lib_c_clock_gettime+:} false; then :
22997 $as_echo_n "(cached) " >&6
22999 ac_check_lib_save_LIBS=$LIBS
23001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23002 /* end confdefs.h. */
23004 /* Override any GCC internal prototype to avoid an error.
23005 Use char because int might match the return type of a GCC
23006 builtin and then its argument prototype would still apply. */
23010 char clock_gettime ();
23014 return clock_gettime ();
23019 if ac_fn_c_try_link "$LINENO"; then :
23020 ac_cv_lib_c_clock_gettime=yes
23022 ac_cv_lib_c_clock_gettime=no
23024 rm -f core conftest.err conftest.$ac_objext \
23025 conftest$ac_exeext conftest.$ac_ext
23026 LIBS=$ac_check_lib_save_LIBS
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
23029 $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
23030 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
23031 have_clock_gettime=yes
23034 if test x$have_clock_gettime = xyes; then
23036 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23038 EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
23044 CheckLinuxVersion()
23046 ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
23047 if test "x$ac_cv_header_linux_version_h" = xyes; then :
23048 have_linux_version_h=yes
23052 if test x$have_linux_version_h = xyes; then
23053 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
23059 # Check whether --enable-rpath was given.
23060 if test "${enable_rpath+set}" = set; then :
23061 enableval=$enable_rpath;
23069 *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
23071 *-raspberry-linux*)
23074 RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
23075 CFLAGS="$CFLAGS $RPI_CFLAGS"
23076 SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
23077 EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
23078 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
23080 if test x$enable_video = xyes; then
23081 SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
23082 # FIXME: confdefs? Not AC_DEFINE?
23083 $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
23084 SUMMARY_video="${SUMMARY_video} rpi"
23090 ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
23091 CFLAGS="$CFLAGS $ANDROID_CFLAGS"
23092 SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
23093 EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
23094 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
23096 if test x$enable_video = xyes; then
23097 SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
23098 # FIXME: confdefs? Not AC_DEFINE?
23099 $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
23100 SUMMARY_video="${SUMMARY_video} android"
23103 *-*-linux*) ARCH=linux ;;
23104 *-*-uclinux*) ARCH=linux ;;
23105 *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
23106 *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
23107 *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
23108 *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
23109 *-*-bsdi*) ARCH=bsdi ;;
23110 *-*-freebsd*) ARCH=freebsd ;;
23111 *-*-dragonfly*) ARCH=freebsd ;;
23112 *-raspberry-netbsd*)
23115 RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
23116 CFLAGS="$CFLAGS $RPI_CFLAGS"
23117 SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
23118 EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
23119 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
23121 if test x$enable_video = xyes; then
23122 SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
23123 $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
23124 SUMMARY_video="${SUMMARY_video} raspberry"
23127 *-*-netbsd*) ARCH=netbsd ;;
23128 *-*-openbsd*) ARCH=openbsd ;;
23129 *-*-sysv5*) ARCH=sysv5 ;;
23130 *-*-solaris*) ARCH=solaris ;;
23131 *-*-hpux*) ARCH=hpux ;;
23132 *-*-aix*) ARCH=aix ;;
23133 *-*-minix*) ARCH=minix ;;
23135 CheckVisibilityHidden
23172 # Set up files for the audio library
23173 if test x$enable_audio = xyes; then
23175 sysv5|solaris|hpux)
23177 $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
23179 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
23182 netbsd) # Don't use this on OpenBSD, it's busted.
23184 $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
23186 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
23191 $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
23193 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
23198 $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
23200 SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
23201 SUMMARY_audio="${SUMMARY_audio} android"
23206 # Set up files for the joystick library
23207 if test x$have_joystick != xyes; then
23208 if test x$enable_joystick = xyes; then
23212 $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
23214 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
23219 $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
23221 SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
23227 # Set up files for the haptic library
23228 if test x$enable_haptic = xyes; then
23229 if test x$use_input_events = xyes; then
23233 $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
23235 SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
23241 # Set up files for the power library
23242 if test x$enable_power = xyes; then
23246 $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
23248 SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
23253 $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
23255 SOURCES="$SOURCES $srcdir/src/power/android/*.c"
23260 # Set up files for the filesystem library
23261 if test x$enable_filesystem = xyes; then
23265 $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
23267 SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
23268 have_filesystem=yes
23272 $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
23274 SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
23275 have_filesystem=yes
23279 # Set up files for the timer library
23280 if test x$enable_timers = xyes; then
23282 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
23284 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23287 # Set up files for udev hotplugging support
23288 if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
23289 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
23291 # Set up files for evdev input
23292 if test x$use_input_events = xyes; then
23293 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
23296 *-*-cygwin* | *-*-mingw32*)
23298 if test "$build" != "$host"; then # cross-compiling
23299 # Default cross-compile location
23300 ac_default_prefix=/usr/local/cross-tools/$host
23302 # Look for the location of the tools and install there
23303 if test "$BUILD_PREFIX" != ""; then
23304 ac_default_prefix=$BUILD_PREFIX
23315 # Set up the core platform files
23316 SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
23318 # Set up files for the video library
23319 if test x$enable_video = xyes; then
23321 $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
23323 SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
23325 # Check whether --enable-render-d3d was given.
23326 if test "${enable_render_d3d+set}" = set; then :
23327 enableval=$enable_render_d3d;
23329 enable_render_d3d=yes
23332 if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
23334 $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
23337 if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
23339 $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
23343 # Set up files for the audio library
23344 if test x$enable_audio = xyes; then
23346 $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
23348 SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
23349 if test x$have_dsound = xyes; then
23351 $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
23353 SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
23355 if test x$have_xaudio2 = xyes; then
23357 $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
23359 SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
23363 # Set up files for the joystick library
23364 if test x$enable_joystick = xyes; then
23365 if test x$have_dinput = xyes -o x$have_xinput = xyes; then
23366 if test x$have_xinput = xyes; then
23368 $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
23371 if test x$have_dinput = xyes; then
23373 $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
23375 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
23379 $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
23382 SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
23385 if test x$enable_haptic = xyes; then
23386 if test x$have_dinput = xyes -o x$have_xinput = xyes; then
23387 if test x$have_xinput = xyes; then
23389 $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
23392 if test x$have_dinput = xyes; then
23394 $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
23397 SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
23401 if test x$enable_power = xyes; then
23403 $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
23405 SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
23408 if test x$enable_filesystem = xyes; then
23410 $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
23412 SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
23413 have_filesystem=yes
23415 # Set up files for the thread library
23416 if test x$enable_threads = xyes; then
23418 $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
23420 SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
23421 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
23424 # Set up files for the timer library
23425 if test x$enable_timers = xyes; then
23427 $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
23429 SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
23432 # Set up files for the shared object loading library
23433 if test x$enable_loadso = xyes; then
23435 $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
23437 SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
23440 # Set up the system libraries we need
23441 if test -f /lib/w32api/libuuid.a; then
23442 LIBUUID=/lib/w32api/libuuid.a
23446 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
23447 # The Windows platform requires special setup
23448 VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
23449 SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
23450 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
23451 SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
23453 # Check to see if this is a mingw or cygwin build
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
23456 $as_echo_n "checking for main in -lmingw32... " >&6; }
23457 if ${ac_cv_lib_mingw32_main+:} false; then :
23458 $as_echo_n "(cached) " >&6
23460 ac_check_lib_save_LIBS=$LIBS
23461 LIBS="-lmingw32 $LIBS"
23462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23463 /* end confdefs.h. */
23474 if ac_fn_c_try_link "$LINENO"; then :
23475 ac_cv_lib_mingw32_main=yes
23477 ac_cv_lib_mingw32_main=no
23479 rm -f core conftest.err conftest.$ac_objext \
23480 conftest$ac_exeext conftest.$ac_ext
23481 LIBS=$ac_check_lib_save_LIBS
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
23484 $as_echo "$ac_cv_lib_mingw32_main" >&6; }
23485 if test "x$ac_cv_lib_mingw32_main" = xyes; then :
23489 if test x$have_mingw32 = xyes; then
23490 SDL_LIBS="-lmingw32 $SDL_LIBS"
23492 SDL_LIBS="-lcygwin $SDL_LIBS"
23498 *** BeOS support has been removed as of SDL 2.0.2.
23504 ac_default_prefix=/boot/system
23512 # Set up files for the audio library
23513 if test x$enable_audio = xyes; then
23515 $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
23517 SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
23520 # Set up files for the joystick library
23521 if test x$enable_joystick = xyes; then
23523 $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
23525 SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
23528 # Set up files for the timer library
23529 if test x$enable_timers = xyes; then
23531 $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
23533 SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
23536 # Set up files for the shared object loading library
23537 if test x$enable_loadso = xyes; then
23539 $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
23541 SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
23544 # Set up files for the system power library
23545 if test x$enable_power = xyes; then
23547 $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
23549 SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
23552 # Set up files for the system filesystem library
23553 if test x$enable_filesystem = xyes; then
23555 $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
23557 SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
23558 have_filesystem=yes
23560 # The Haiku platform requires special setup.
23561 SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
23562 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
23564 arm*-apple-darwin*)
23565 # iOS - We are not writing anything to confdefs.h because you have to replace
23566 # SDL_config.h for SDL_config_iphoneos.h anyway
23569 CheckVisibilityHidden
23578 # Set up files for the audio library
23579 if test x$enable_audio = xyes; then
23580 SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
23581 SUMMARY_audio="${SUMMARY_audio} coreaudio"
23584 # Set up files for the joystick library
23585 if test x$enable_joystick = xyes; then
23586 SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
23589 # Set up files for the haptic library
23590 #if test x$enable_haptic = xyes; then
23591 # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
23593 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
23595 # Set up files for the power library
23596 if test x$enable_power = xyes; then
23597 SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
23600 # Set up files for the filesystem library
23601 if test x$enable_filesystem = xyes; then
23602 SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
23603 have_filesystem=yes
23605 # Set up files for the timer library
23606 if test x$enable_timers = xyes; then
23607 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23610 # Set up additional files for the file library
23611 if test x$enable_file = xyes; then
23612 SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
23614 # The iOS platform requires special setup.
23615 SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
23616 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
23617 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
23618 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
23619 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
23620 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
23621 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
23622 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
23623 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
23624 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
23625 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
23626 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
23629 # This could be either full "Mac OS X", or plain "Darwin" which is
23630 # just the OS X kernel sans upper layers like Carbon and Cocoa.
23631 # Next line is broken, and a few files below require Mac OS X (full)
23634 # Mac OS X builds with both the Carbon and OSX APIs at the moment
23635 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
23636 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
23638 CheckVisibilityHidden
23649 # Set up files for the audio library
23650 if test x$enable_audio = xyes; then
23652 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
23654 SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
23655 SUMMARY_audio="${SUMMARY_audio} coreaudio"
23658 # Set up files for the joystick library
23659 if test x$enable_joystick = xyes; then
23661 $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
23663 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
23666 # Set up files for the haptic library
23667 if test x$enable_haptic = xyes; then
23669 $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
23671 SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
23673 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
23675 # Set up files for the power library
23676 if test x$enable_power = xyes; then
23678 $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
23680 SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
23683 # Set up files for the filesystem library
23684 if test x$enable_filesystem = xyes; then
23686 $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
23688 SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
23689 have_filesystem=yes
23691 # Set up files for the timer library
23692 if test x$enable_timers = xyes; then
23694 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
23696 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23699 # Set up additional files for the file library
23700 if test x$enable_file = xyes; then
23701 SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
23703 # The Mac OS X platform requires special setup.
23704 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
23705 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
23706 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
23707 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
23708 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
23709 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
23710 # If audio is used, add the AudioUnit framework
23711 if test x$enable_audio = xyes; then
23712 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
23723 # Set up files for the timer library
23724 if test x$enable_timers = xyes; then
23725 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
23727 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23731 if test x$enable_filesystem = xyes; then
23733 $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
23735 SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
23736 have_filesystem=yes
23740 if test x$enable_video = xyes; then
23742 $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
23744 SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
23746 SUMMARY_video="${SUMMARY_video} emscripten"
23749 if test x$enable_audio = xyes; then
23751 $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
23753 SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
23755 SUMMARY_audio="${SUMMARY_audio} emscripten"
23758 CheckVisibilityHidden
23764 CheckEmscriptenGLES
23766 # Set up files for the power library
23767 if test x$enable_power = xyes; then
23769 $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
23771 SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
23775 # Set up files for the power library
23776 if test x$enable_joystick = xyes; then
23778 $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
23780 SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
23784 # Set up files for the filesystem library
23785 if test x$enable_filesystem = xyes; then
23787 $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
23789 SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
23790 have_filesystem=yes
23792 # Set up files for the timer library
23793 if test x$enable_timers = xyes; then
23795 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
23797 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23803 *** Unsupported host: Please add to configure.in
23810 # Verify that we have all the platform specific files we need
23812 if test x$have_joystick != xyes; then
23813 if test x$enable_joystick = xyes; then
23815 $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
23818 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
23820 if test x$have_haptic != xyes; then
23821 if test x$enable_haptic = xyes; then
23823 $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
23826 SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
23828 if test x$have_threads != xyes; then
23829 if test x$enable_threads = xyes; then
23831 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
23834 SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
23836 if test x$have_timers != xyes; then
23837 if test x$enable_timers = xyes; then
23839 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
23842 SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
23844 if test x$have_filesystem != xyes; then
23845 if test x$enable_filesystem = xyes; then
23847 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
23850 SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
23852 if test x$have_loadso != xyes; then
23853 if test x$enable_loadso = xyes; then
23855 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
23858 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
23860 if test x$SDLMAIN_SOURCES = x; then
23861 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
23863 SDLTEST_SOURCES="$srcdir/src/test/*.c"
23865 OBJECTS=`echo $SOURCES`
23866 DEPENDS=`echo $SOURCES | tr ' ' '\n'`
23867 for EXT in asm cc m c S; do
23868 OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
23869 DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
23870 \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
23871 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
23874 VERSION_OBJECTS=`echo $VERSION_SOURCES`
23875 VERSION_DEPENDS=`echo $VERSION_SOURCES`
23876 VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
23877 VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
23878 \\$(objects)/\\2.o: \\1/\\2.rc\\\\
23879 \\$(WINDRES) \\$< \\$@,g"`
23881 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
23882 SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
23883 SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
23884 SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
23885 \\$(objects)/\\2.o: \\1/\\2.c\\\\
23886 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
23888 SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
23889 SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
23890 SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
23891 SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
23892 \\$(objects)/\\2.o: \\1/\\2.c\\\\
23893 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
23895 # Set runtime shared library paths as needed
23897 if test "x$enable_rpath" = "xyes"; then
23898 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
23899 SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
23901 if test $ARCH = solaris; then
23902 SDL_RLD_FLAGS="-R\${libdir}"
23908 SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
23914 if test x$enable_shared = xyes; then
23915 ENABLE_SHARED_TRUE=
23916 ENABLE_SHARED_FALSE="#"
23918 ENABLE_SHARED_TRUE="#"
23919 ENABLE_SHARED_FALSE=
23921 if test x$enable_static = xyes; then
23922 ENABLE_STATIC_TRUE=
23923 ENABLE_STATIC_FALSE="#"
23925 ENABLE_STATIC_TRUE="#"
23926 ENABLE_STATIC_FALSE=
23945 cat >Makefile.rules <<__EOF__
23947 # Build rules for objects
23948 -include \$(OBJECTS:.lo=.d)
23950 # Special dependency for SDL.c, since it depends on SDL_revision.h
23951 $srcdir/src/SDL.c: update-revision
23958 ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
23960 ac_config_commands="$ac_config_commands sdl2_config"
23963 SUMMARY="${SUMMARY}SDL2 Configure Summary:\n"
23964 if test x$enable_shared = xyes; then
23965 SUMMARY="${SUMMARY}Building Shared Libraries\n"
23967 if test x$enable_static = xyes; then
23968 SUMMARY="${SUMMARY}Building Static Libraries\n"
23970 SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
23971 SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
23972 SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
23973 SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
23974 if test x$have_x = xyes; then
23975 SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
23977 SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
23978 if test x$enable_libudev = xyes; then
23979 SUMMARY="${SUMMARY}Using libudev : YES\n"
23981 SUMMARY="${SUMMARY}Using libudev : NO\n"
23983 if test x$have_dbus_dbus_h_hdr = xyes; then
23984 SUMMARY="${SUMMARY}Using dbus : YES\n"
23986 SUMMARY="${SUMMARY}Using dbus : NO\n"
23988 if test x$have_ibus_ibus_h_hdr = xyes; then
23989 SUMMARY="${SUMMARY}Using ibus : YES\n"
23991 SUMMARY="${SUMMARY}Using ibus : NO\n"
23993 ac_config_commands="$ac_config_commands summary"
23996 cat >confcache <<\_ACEOF
23997 # This file is a shell script that caches the results of configure
23998 # tests run on this system so they can be shared between configure
23999 # scripts and configure runs, see configure's option --config-cache.
24000 # It is not useful on other systems. If it contains results you don't
24001 # want to keep, you may remove or edit it.
24003 # config.status only pays attention to the cache file if you give it
24004 # the --recheck option to rerun configure.
24006 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24007 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24008 # following values.
24012 # The following way of writing the cache mishandles newlines in values,
24013 # but we know of no workaround that is simple, portable, and efficient.
24014 # So, we kill variables containing newlines.
24015 # Ultrix sh set writes to stderr and can't be redirected directly,
24016 # and sets the high bit in the cache file unless we assign to the vars.
24018 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24019 eval ac_val=\$$ac_var
24023 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24024 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24027 _ | IFS | as_nl) ;; #(
24028 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24029 *) { eval $ac_var=; unset $ac_var;} ;;
24035 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24036 *${as_nl}ac_space=\ *)
24037 # `set' does not quote correctly, so add quotes: double-quote
24038 # substitution turns \\\\ into \\, and sed turns \\ into \.
24041 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24044 # `set' quotes correctly as required by POSIX, so do not add quotes.
24045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24054 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24056 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24058 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24059 if test -w "$cache_file"; then
24060 if test "x$cache_file" != "x/dev/null"; then
24061 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24062 $as_echo "$as_me: updating cache $cache_file" >&6;}
24063 if test ! -f "$cache_file" || test -h "$cache_file"; then
24064 cat confcache >"$cache_file"
24066 case $cache_file in #(
24068 mv -f confcache "$cache_file"$$ &&
24069 mv -f "$cache_file"$$ "$cache_file" ;; #(
24071 mv -f confcache "$cache_file" ;;
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24077 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24082 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24083 # Let make expand exec_prefix.
24084 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24086 DEFS=-DHAVE_CONFIG_H
24091 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24092 # 1. Remove the extension, and $U if already installed.
24093 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24094 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24095 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24096 # will be set to the directory where LIBOBJS objects are built.
24097 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24098 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24100 LIBOBJS=$ac_libobjs
24102 LTLIBOBJS=$ac_ltlibobjs
24106 : "${CONFIG_STATUS=./config.status}"
24108 ac_clean_files_save=$ac_clean_files
24109 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24111 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24113 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24115 # Generated by $as_me.
24116 # Run this file to recreate the current configuration.
24117 # Compiler output produced by configure, useful for debugging
24118 # configure, is in config.log if it exists.
24121 ac_cs_recheck=false
24124 SHELL=\${CONFIG_SHELL-$SHELL}
24127 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24128 ## -------------------- ##
24129 ## M4sh Initialization. ##
24130 ## -------------------- ##
24132 # Be more Bourne compatible
24133 DUALCASE=1; export DUALCASE # for MKS sh
24134 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24137 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24138 # is contrary to our usage. Disable this feature.
24139 alias -g '${1+"$@"}'='"$@"'
24140 setopt NO_GLOB_SUBST
24142 case `(set -o) 2>/dev/null` in #(
24154 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24155 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24156 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24157 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24158 # Prefer a ksh shell builtin over an external printf program on Solaris,
24159 # but without wasting forks for bash or zsh.
24160 if test -z "$BASH_VERSION$ZSH_VERSION" \
24161 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24162 as_echo='print -r --'
24163 as_echo_n='print -rn --'
24164 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24165 as_echo='printf %s\n'
24166 as_echo_n='printf %s'
24168 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24169 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24170 as_echo_n='/usr/ucb/echo -n'
24172 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24173 as_echo_n_body='eval
24177 expr "X$arg" : "X\\(.*\\)$as_nl";
24178 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24180 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24182 export as_echo_n_body
24183 as_echo_n='sh -c $as_echo_n_body as_echo'
24185 export as_echo_body
24186 as_echo='sh -c $as_echo_body as_echo'
24189 # The user is always right.
24190 if test "${PATH_SEPARATOR+set}" != set; then
24192 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24193 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24200 # We need space, tab and new line, in precisely that order. Quoting is
24201 # there to prevent editors from complaining about space-tab.
24202 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24203 # splitting by setting IFS to empty value.)
24206 # Find who we are. Look in the path if we contain no directory separator.
24209 *[\\/]* ) as_myself=$0 ;;
24210 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24211 for as_dir in $PATH
24214 test -z "$as_dir" && as_dir=.
24215 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24221 # We did not find ourselves, most probably we were run as `sh COMMAND'
24222 # in which case we are not to be found in the path.
24223 if test "x$as_myself" = x; then
24226 if test ! -f "$as_myself"; then
24227 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24231 # Unset variables that we do not need and which cause bugs (e.g. in
24232 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24233 # suppresses any "Segmentation fault" message there. '((' could
24234 # trigger a bug in pdksh 5.2.14.
24235 for as_var in BASH_ENV ENV MAIL MAILPATH
24236 do eval test x\${$as_var+set} = xset \
24237 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24250 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24253 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24254 # ----------------------------------------
24255 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24256 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24257 # script with STATUS, using 1 if that was 0.
24260 as_status=$1; test $as_status -eq 0 && as_status=1
24262 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24263 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24265 $as_echo "$as_me: error: $2" >&2
24266 as_fn_exit $as_status
24270 # as_fn_set_status STATUS
24271 # -----------------------
24272 # Set $? to STATUS, without forking.
24273 as_fn_set_status ()
24276 } # as_fn_set_status
24278 # as_fn_exit STATUS
24279 # -----------------
24280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24284 as_fn_set_status $1
24290 # Portably unset VAR.
24293 { eval $1=; unset $1;}
24295 as_unset=as_fn_unset
24296 # as_fn_append VAR VALUE
24297 # ----------------------
24298 # Append the text in VALUE to the end of the definition contained in VAR. Take
24299 # advantage of any shell optimizations that allow amortized linear growth over
24300 # repeated appends, instead of the typical quadratic growth present in naive
24302 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24303 eval 'as_fn_append ()
24314 # as_fn_arith ARG...
24315 # ------------------
24316 # Perform arithmetic evaluation on the ARGs, and store the result in the
24317 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24318 # must be portable across $(()) and expr.
24319 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24320 eval 'as_fn_arith ()
24327 as_val=`expr "$@" || test $? -eq 1`
24332 if expr a : '\(a\)' >/dev/null 2>&1 &&
24333 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24339 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24340 as_basename=basename
24345 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24351 as_me=`$as_basename -- "$0" ||
24352 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24353 X"$0" : 'X\(//\)$' \| \
24354 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24356 sed '/^.*\/\([^/][^/]*\)\/*$/{
24370 # Avoid depending upon Character Ranges.
24371 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24372 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24373 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24374 as_cr_digits='0123456789'
24375 as_cr_alnum=$as_cr_Letters$as_cr_digits
24377 ECHO_C= ECHO_N= ECHO_T=
24378 case `echo -n x` in #(((((
24380 case `echo 'xy\c'` in
24381 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24383 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24390 rm -f conf$$ conf$$.exe conf$$.file
24391 if test -d conf$$.dir; then
24392 rm -f conf$$.dir/conf$$.file
24395 mkdir conf$$.dir 2>/dev/null
24397 if (echo >conf$$.file) 2>/dev/null; then
24398 if ln -s conf$$.file conf$$ 2>/dev/null; then
24400 # ... but there are two gotchas:
24401 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24402 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24403 # In both cases, we have to default to `cp -pR'.
24404 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24406 elif ln conf$$.file conf$$ 2>/dev/null; then
24414 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24415 rmdir conf$$.dir 2>/dev/null
24420 # Create "$as_dir" as a directory, including parents if necessary.
24425 -*) as_dir=./$as_dir;;
24427 test -d "$as_dir" || eval $as_mkdir_p || {
24431 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24432 *) as_qdir=$as_dir;;
24434 as_dirs="'$as_qdir' $as_dirs"
24435 as_dir=`$as_dirname -- "$as_dir" ||
24436 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24437 X"$as_dir" : 'X\(//\)[^/]' \| \
24438 X"$as_dir" : 'X\(//\)$' \| \
24439 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24440 $as_echo X"$as_dir" |
24441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24445 /^X\(\/\/\)[^/].*/{
24458 test -d "$as_dir" && break
24460 test -z "$as_dirs" || eval "mkdir $as_dirs"
24461 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24465 if mkdir -p . 2>/dev/null; then
24466 as_mkdir_p='mkdir -p "$as_dir"'
24468 test -d ./-p && rmdir ./-p
24473 # as_fn_executable_p FILE
24474 # -----------------------
24475 # Test if FILE is an executable regular file.
24476 as_fn_executable_p ()
24478 test -f "$1" && test -x "$1"
24479 } # as_fn_executable_p
24480 as_test_x='test -x'
24481 as_executable_p=as_fn_executable_p
24483 # Sed expression to map a string onto a valid CPP name.
24484 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24486 # Sed expression to map a string onto a valid variable name.
24487 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24491 ## ----------------------------------- ##
24492 ## Main body of $CONFIG_STATUS script. ##
24493 ## ----------------------------------- ##
24495 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24498 # Save the log message, to keep $0 and so on meaningful, and to
24499 # report actual input values of CONFIG_FILES etc. instead of their
24500 # values after options handling.
24502 This file was extended by $as_me, which was
24503 generated by GNU Autoconf 2.69. Invocation command line was
24505 CONFIG_FILES = $CONFIG_FILES
24506 CONFIG_HEADERS = $CONFIG_HEADERS
24507 CONFIG_LINKS = $CONFIG_LINKS
24508 CONFIG_COMMANDS = $CONFIG_COMMANDS
24511 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24516 case $ac_config_files in *"
24517 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24520 case $ac_config_headers in *"
24521 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24526 # Files that config.status was made for.
24527 config_files="$ac_config_files"
24528 config_headers="$ac_config_headers"
24529 config_commands="$ac_config_commands"
24533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24535 \`$as_me' instantiates files and other configuration actions
24536 from templates according to the current configuration. Unless the files
24537 and actions are specified as TAGs, all are instantiated by default.
24539 Usage: $0 [OPTION]... [TAG]...
24541 -h, --help print this help, then exit
24542 -V, --version print version number and configuration settings, then exit
24543 --config print configuration, then exit
24544 -q, --quiet, --silent
24545 do not print progress messages
24546 -d, --debug don't remove temporary files
24547 --recheck update $as_me by reconfiguring in the same conditions
24548 --file=FILE[:TEMPLATE]
24549 instantiate the configuration file FILE
24550 --header=FILE[:TEMPLATE]
24551 instantiate the configuration header FILE
24553 Configuration files:
24556 Configuration headers:
24559 Configuration commands:
24562 Report bugs to the package provider."
24565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24566 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24569 configured by $0, generated by GNU Autoconf 2.69,
24570 with options \\"\$ac_cs_config\\"
24572 Copyright (C) 2012 Free Software Foundation, Inc.
24573 This config.status script is free software; the Free Software Foundation
24574 gives unlimited permission to copy, distribute and modify it."
24580 test -n "\$AWK" || AWK=awk
24583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24584 # The default lists apply if the user does not specify any file.
24590 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24591 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24595 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24607 # Handling of the options.
24608 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24610 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24611 $as_echo "$ac_cs_version"; exit ;;
24612 --config | --confi | --conf | --con | --co | --c )
24613 $as_echo "$ac_cs_config"; exit ;;
24614 --debug | --debu | --deb | --de | --d | -d )
24616 --file | --fil | --fi | --f )
24619 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24620 '') as_fn_error $? "missing file argument" ;;
24622 as_fn_append CONFIG_FILES " '$ac_optarg'"
24623 ac_need_defaults=false;;
24624 --header | --heade | --head | --hea )
24627 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24629 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24630 ac_need_defaults=false;;
24632 # Conflict between --help and --header
24633 as_fn_error $? "ambiguous option: \`$1'
24634 Try \`$0 --help' for more information.";;
24635 --help | --hel | -h )
24636 $as_echo "$ac_cs_usage"; exit ;;
24637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24638 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24641 # This is an error.
24642 -*) as_fn_error $? "unrecognized option: \`$1'
24643 Try \`$0 --help' for more information." ;;
24645 *) as_fn_append ac_config_targets " $1"
24646 ac_need_defaults=false ;;
24652 ac_configure_extra_args=
24654 if $ac_cs_silent; then
24656 ac_configure_extra_args="$ac_configure_extra_args --silent"
24660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24661 if \$ac_cs_recheck; then
24662 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24664 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24665 CONFIG_SHELL='$SHELL'
24666 export CONFIG_SHELL
24671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24675 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24676 ## Running $as_me. ##
24682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24688 # The HP-UX ksh and POSIX shell print the target directory to stdout
24689 # if CDPATH is set.
24690 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24692 sed_quote_subst='$sed_quote_subst'
24693 double_quote_subst='$double_quote_subst'
24694 delay_variable_subst='$delay_variable_subst'
24695 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24696 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24697 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
24698 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24699 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24700 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24701 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24702 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24703 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24704 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24705 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24706 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24707 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24708 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24709 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24710 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24711 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24712 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24713 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24714 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24715 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24716 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24717 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24718 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24719 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24720 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24721 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24722 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24723 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24724 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24725 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24726 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24727 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24728 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24729 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24730 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24731 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24732 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24733 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24734 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24735 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24736 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24737 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24738 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24739 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24740 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24741 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24742 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24743 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24744 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24745 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24746 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24747 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24748 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24749 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24750 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24751 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24752 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
24753 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24754 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24755 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24756 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24757 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24758 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24759 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24760 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24761 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24762 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24763 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24764 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24765 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24766 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24767 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24768 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24769 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24770 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24771 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24772 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24773 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24774 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24775 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24776 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24777 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24778 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24779 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24780 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24781 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24782 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24783 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24784 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24785 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24786 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24787 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24788 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24789 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24790 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24791 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24792 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24793 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24794 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24795 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24796 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24797 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24798 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24799 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24800 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24801 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24802 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24803 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24804 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24805 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24806 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24807 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24808 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24809 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24810 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24811 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24812 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24813 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24814 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24815 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24816 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24817 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24818 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24819 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
24820 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24821 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24822 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24823 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24824 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24825 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24826 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
24827 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
24828 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
24829 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
24830 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
24831 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
24832 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
24833 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
24834 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24835 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24836 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
24837 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
24838 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
24839 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
24840 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
24841 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
24842 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
24843 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
24844 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
24845 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24846 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24847 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
24848 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24849 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24850 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24851 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24852 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24853 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24854 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
24855 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24856 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24857 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24858 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
24859 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
24860 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
24861 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
24862 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
24863 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
24864 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
24865 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
24866 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
24867 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24868 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24869 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24870 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24871 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24872 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
24873 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
24874 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
24875 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24876 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24877 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
24878 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
24879 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
24882 LTCFLAGS='$LTCFLAGS'
24883 compiler='$compiler_DEFAULT'
24885 # A function that is used when there is no print builtin or printf.
24886 func_fallback_echo ()
24888 eval 'cat <<_LTECHO_EOF
24893 # Quote evaled strings.
24910 deplibs_check_method \
24914 sharedlib_from_linklib_cmd \
24917 archiver_list_spec \
24923 lt_cv_sys_global_symbol_pipe \
24924 lt_cv_sys_global_symbol_to_cdecl \
24925 lt_cv_sys_global_symbol_to_c_name_address \
24926 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24927 nm_file_list_spec \
24928 lt_prog_compiler_no_builtin_flag \
24929 lt_prog_compiler_pic \
24930 lt_prog_compiler_wl \
24931 lt_prog_compiler_static \
24932 lt_cv_prog_compiler_c_o \
24941 export_dynamic_flag_spec \
24942 whole_archive_flag_spec \
24943 compiler_needs_object \
24945 allow_undefined_flag \
24946 no_undefined_flag \
24947 hardcode_libdir_flag_spec \
24948 hardcode_libdir_separator \
24952 variables_saved_for_relink \
24954 library_names_spec \
24956 install_override_mode \
24960 compiler_lib_search_dirs \
24965 compiler_lib_search_path \
24969 lt_prog_compiler_no_builtin_flag_CXX \
24970 lt_prog_compiler_pic_CXX \
24971 lt_prog_compiler_wl_CXX \
24972 lt_prog_compiler_static_CXX \
24973 lt_cv_prog_compiler_c_o_CXX \
24974 export_dynamic_flag_spec_CXX \
24975 whole_archive_flag_spec_CXX \
24976 compiler_needs_object_CXX \
24978 allow_undefined_flag_CXX \
24979 no_undefined_flag_CXX \
24980 hardcode_libdir_flag_spec_CXX \
24981 hardcode_libdir_separator_CXX \
24982 exclude_expsyms_CXX \
24983 include_expsyms_CXX \
24984 file_list_spec_CXX \
24985 compiler_lib_search_dirs_CXX \
24986 predep_objects_CXX \
24987 postdep_objects_CXX \
24990 compiler_lib_search_path_CXX; do
24991 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24992 *[\\\\\\\`\\"\\\$]*)
24993 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24996 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25001 # Double-quote double-evaled strings.
25002 for var in reload_cmds \
25003 old_postinstall_cmds \
25004 old_postuninstall_cmds \
25006 extract_expsyms_cmds \
25007 old_archive_from_new_cmds \
25008 old_archive_from_expsyms_cmds \
25010 archive_expsym_cmds \
25012 module_expsym_cmds \
25013 export_symbols_cmds \
25017 postuninstall_cmds \
25019 sys_lib_search_path_spec \
25020 sys_lib_dlsearch_path_spec \
25022 old_archive_cmds_CXX \
25023 old_archive_from_new_cmds_CXX \
25024 old_archive_from_expsyms_cmds_CXX \
25026 archive_expsym_cmds_CXX \
25028 module_expsym_cmds_CXX \
25029 export_symbols_cmds_CXX \
25031 postlink_cmds_CXX; do
25032 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25033 *[\\\\\\\`\\"\\\$]*)
25034 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25037 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25042 ac_aux_dir='$ac_aux_dir'
25043 xsi_shell='$xsi_shell'
25044 lt_shell_append='$lt_shell_append'
25046 # See if we are running on zsh, and set the options which allow our
25047 # commands through without removal of \ escapes INIT.
25048 if test -n "\${ZSH_VERSION+set}" ; then
25049 setopt NO_GLOB_SUBST
25055 TIMESTAMP='$TIMESTAMP'
25067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25069 # Handling of arguments.
25070 for ac_config_target in $ac_config_targets
25072 case $ac_config_target in
25073 "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
25074 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25075 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
25076 "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
25077 "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
25078 "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
25079 "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
25080 "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
25081 "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
25083 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25088 # If the user did not use the arguments to specify the items to instantiate,
25089 # then the envvar interface is used. Set only those that are not.
25090 # We use the long form for the default assignment because of an extremely
25091 # bizarre bug on SunOS 4.1.3.
25092 if $ac_need_defaults; then
25093 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25094 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25095 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25098 # Have a temporary directory for convenience. Make it in the build tree
25099 # simply because there is no reason against having it here, and in addition,
25100 # creating and moving files from /tmp can sometimes cause problems.
25101 # Hook for its removal unless debugging.
25102 # Note that there is a small window in which the directory will not be cleaned:
25103 # after its creation but before its name has been assigned to `$tmp'.
25107 trap 'exit_status=$?
25108 : "${ac_tmp:=$tmp}"
25109 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25111 trap 'as_fn_exit 1' 1 2 13 15
25113 # Create a (secure) tmp directory for tmp files.
25116 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25120 tmp=./conf$$-$RANDOM
25121 (umask 077 && mkdir "$tmp")
25122 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25125 # Set up the scripts for CONFIG_FILES section.
25126 # No need to generate them if there are no CONFIG_FILES.
25127 # This happens for instance with `./config.status config.h'.
25128 if test -n "$CONFIG_FILES"; then
25131 ac_cr=`echo X | tr X '\015'`
25132 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25133 # But we know of no other shell where ac_cr would be empty at this
25134 # point, so we can use a bashism as a fallback.
25135 if test "x$ac_cr" = x; then
25136 eval ac_cr=\$\'\\r\'
25138 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25139 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25142 ac_cs_awk_cr=$ac_cr
25145 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25150 echo "cat >conf$$subs.awk <<_ACEOF" &&
25151 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25153 } >conf$$subs.sh ||
25154 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25155 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25157 for ac_last_try in false false false false false :; do
25158 . ./conf$$subs.sh ||
25159 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25161 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25162 if test $ac_delim_n = $ac_delim_num; then
25164 elif $ac_last_try; then
25165 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25167 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25170 rm -f conf$$subs.sh
25172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25173 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25177 s/^/S["/; s/!.*/"]=/
25187 s/\(.\{148\}\)..*/\1/
25189 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25194 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25201 s/\(.\{148\}\)..*/\1/
25203 s/["\\]/\\&/g; s/^/"/; s/$/"/
25207 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25212 ' <conf$$subs.awk | sed '
25217 ' >>$CONFIG_STATUS || ac_write_fail=1
25218 rm -f conf$$subs.awk
25219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25221 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25222 for (key in S) S_is_set[key] = 1
25228 nfields = split(line, field, "@")
25230 len = length(field[1])
25231 for (i = 2; i < nfields; i++) {
25233 keylen = length(key)
25234 if (S_is_set[key]) {
25236 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25237 len += length(value) + length(field[++i])
25248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25249 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25250 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25253 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25254 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25257 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25258 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25259 # trailing colons and then remove the whole line if VPATH becomes empty
25260 # (actually we leave an empty line to preserve line numbers).
25261 if test "x$srcdir" = x.; then
25262 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25281 fi # test -n "$CONFIG_FILES"
25283 # Set up the scripts for CONFIG_HEADERS section.
25284 # No need to generate them if there are no CONFIG_HEADERS.
25285 # This happens for instance with `./config.status Makefile'.
25286 if test -n "$CONFIG_HEADERS"; then
25287 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25291 # Transform confdefs.h into an awk script `defines.awk', embedded as
25292 # here-document in config.status, that substitutes the proper values into
25293 # config.h.in to produce config.h.
25295 # Create a delimiter string that does not exist in confdefs.h, to ease
25296 # handling of long lines.
25298 for ac_last_try in false false :; do
25299 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25300 if test -z "$ac_tt"; then
25302 elif $ac_last_try; then
25303 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25305 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25309 # For the awk script, D is an array of macro values keyed by name,
25310 # likewise P contains macro parameters if any. Preserve backslash
25311 # newline sequences.
25313 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25315 s/.\{148\}/&'"$ac_delim"'/g
25318 s/^[ ]*#[ ]*define[ ][ ]*/ /
25325 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25327 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25331 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25332 D["\1"]=" \3\\\\\\n"\\/p
25334 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25339 s/.\{148\}/&'"$ac_delim"'/g
25344 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25347 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25349 ' <confdefs.h | sed '
25350 s/'"$ac_delim"'/"\\\
25351 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25354 for (key in D) D_is_set[key] = 1
25357 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25359 split(line, arg, " ")
25360 if (arg[1] == "#") {
25364 defundef = substr(arg[1], 2)
25367 split(mac1, mac2, "(") #)
25369 prefix = substr(line, 1, index(line, defundef) - 1)
25370 if (D_is_set[macro]) {
25371 # Preserve the white space surrounding the "#".
25372 print prefix "define", macro P[macro] D[macro]
25375 # Replace #undef with comments. This is necessary, for example,
25376 # in the case of _POSIX_SOURCE, which is predefined and required
25377 # on some systems where configure will not decide to define it.
25378 if (defundef == "undef") {
25379 print "/*", prefix defundef, macro, "*/"
25387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25388 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25389 fi # test -n "$CONFIG_HEADERS"
25392 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25397 :[FHLC]) ac_mode=$ac_tag; continue;;
25399 case $ac_mode$ac_tag in
25401 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25402 :[FH]-) ac_tag=-:-;;
25403 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25420 -) ac_f="$ac_tmp/stdin";;
25421 *) # Look for the file first in the build tree, then in the source tree
25422 # (if the path is not absolute). The absolute path cannot be DOS-style,
25423 # because $ac_f cannot contain `:'.
25427 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25429 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25431 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25432 as_fn_append ac_file_inputs " '$ac_f'"
25435 # Let's still pretend it is `configure' which instantiates (i.e., don't
25436 # use $as_me), people would be surprised to read:
25437 # /* config.h. Generated by config.status. */
25438 configure_input='Generated from '`
25439 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25441 if test x"$ac_file" != x-; then
25442 configure_input="$ac_file. $configure_input"
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25444 $as_echo "$as_me: creating $ac_file" >&6;}
25446 # Neutralize special characters interpreted by sed in replacement strings.
25447 case $configure_input in #(
25448 *\&* | *\|* | *\\* )
25449 ac_sed_conf_input=`$as_echo "$configure_input" |
25450 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25451 *) ac_sed_conf_input=$configure_input;;
25455 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25461 ac_dir=`$as_dirname -- "$ac_file" ||
25462 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25463 X"$ac_file" : 'X\(//\)[^/]' \| \
25464 X"$ac_file" : 'X\(//\)$' \| \
25465 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25466 $as_echo X"$ac_file" |
25467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25471 /^X\(\/\/\)[^/].*/{
25484 as_dir="$ac_dir"; as_fn_mkdir_p
25488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25491 # A ".." for each directory in $ac_dir_suffix.
25492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25493 case $ac_top_builddir_sub in
25494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25498 ac_abs_top_builddir=$ac_pwd
25499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25500 # for backward compatibility:
25501 ac_top_builddir=$ac_top_build_prefix
25504 .) # We are building in place.
25506 ac_top_srcdir=$ac_top_builddir_sub
25507 ac_abs_top_srcdir=$ac_pwd ;;
25508 [\\/]* | ?:[\\/]* ) # Absolute name.
25509 ac_srcdir=$srcdir$ac_dir_suffix;
25510 ac_top_srcdir=$srcdir
25511 ac_abs_top_srcdir=$srcdir ;;
25512 *) # Relative name.
25513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25514 ac_top_srcdir=$ac_top_build_prefix$srcdir
25515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25527 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25528 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25533 # If the template does not know about datarootdir, expand it.
25534 # FIXME: This hack should be removed a few years after 2.60.
25535 ac_datarootdir_hack=; ac_datarootdir_seen=
25546 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25547 *datarootdir*) ac_datarootdir_seen=yes;;
25548 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25550 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25553 ac_datarootdir_hack='
25554 s&@datadir@&$datadir&g
25555 s&@docdir@&$docdir&g
25556 s&@infodir@&$infodir&g
25557 s&@localedir@&$localedir&g
25558 s&@mandir@&$mandir&g
25559 s&\\\${datarootdir}&$datarootdir&g' ;;
25563 # Neutralize VPATH when `$srcdir' = `.'.
25564 # Shell code in configure.ac might set extrasub.
25565 # FIXME: do we really want to maintain this feature?
25566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25567 ac_sed_extra="$ac_vpsub
25570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25573 s|@configure_input@|$ac_sed_conf_input|;t t
25574 s&@top_builddir@&$ac_top_builddir_sub&;t t
25575 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25576 s&@srcdir@&$ac_srcdir&;t t
25577 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25578 s&@top_srcdir@&$ac_top_srcdir&;t t
25579 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25580 s&@builddir@&$ac_builddir&;t t
25581 s&@abs_builddir@&$ac_abs_builddir&;t t
25582 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25583 s&@INSTALL@&$ac_INSTALL&;t t
25584 $ac_datarootdir_hack
25586 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25587 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25589 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25590 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25591 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25592 "$ac_tmp/out"`; test -z "$ac_out"; } &&
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25594 which seems to be undefined. Please make sure it is defined" >&5
25595 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25596 which seems to be undefined. Please make sure it is defined" >&2;}
25598 rm -f "$ac_tmp/stdin"
25600 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25601 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25603 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25609 if test x"$ac_file" != x-; then
25611 $as_echo "/* $configure_input */" \
25612 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25613 } >"$ac_tmp/config.h" \
25614 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25615 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25617 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25620 mv "$ac_tmp/config.h" "$ac_file" \
25621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25624 $as_echo "/* $configure_input */" \
25625 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25626 || as_fn_error $? "could not create -" "$LINENO" 5
25630 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25631 $as_echo "$as_me: executing $ac_file commands" >&6;}
25636 case $ac_file$ac_mode in
25639 # See if we are running on zsh, and set the options which allow our
25640 # commands through without removal of \ escapes.
25641 if test -n "${ZSH_VERSION+set}" ; then
25642 setopt NO_GLOB_SUBST
25645 cfgfile="${ofile}T"
25646 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25649 cat <<_LT_EOF >> "$cfgfile"
25652 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25653 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25654 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25655 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25657 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25658 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
25660 # Written by Gordon Matzigkeit, 1996
25662 # This file is part of GNU Libtool.
25664 # GNU Libtool is free software; you can redistribute it and/or
25665 # modify it under the terms of the GNU General Public License as
25666 # published by the Free Software Foundation; either version 2 of
25667 # the License, or (at your option) any later version.
25669 # As a special exception to the GNU General Public License,
25670 # if you distribute this file as part of a program or library that
25671 # is built using GNU Libtool, you may include this file under the
25672 # same distribution terms that you use for the rest of that program.
25674 # GNU Libtool is distributed in the hope that it will be useful,
25675 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25676 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25677 # GNU General Public License for more details.
25679 # You should have received a copy of the GNU General Public License
25680 # along with GNU Libtool; see the file COPYING. If not, a copy
25681 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25682 # obtained by writing to the Free Software Foundation, Inc.,
25683 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25686 # The names of the tagged configurations supported by this script.
25687 available_tags="CXX "
25689 # ### BEGIN LIBTOOL CONFIG
25691 # Which release of libtool.m4 was used?
25692 macro_version=$macro_version
25693 macro_revision=$macro_revision
25695 # Assembler program.
25698 # DLL creation program.
25699 DLLTOOL=$lt_DLLTOOL
25701 # Object dumper program.
25702 OBJDUMP=$lt_OBJDUMP
25704 # Whether or not to build shared libraries.
25705 build_libtool_libs=$enable_shared
25707 # Whether or not to build static libraries.
25708 build_old_libs=$enable_static
25710 # What type of objects to build.
25713 # Whether or not to optimize for fast installation.
25714 fast_install=$enable_fast_install
25716 # Shell to use when invoking shell scripts.
25719 # An echo program that protects backslashes.
25722 # The PATH separator for the build system.
25723 PATH_SEPARATOR=$lt_PATH_SEPARATOR
25726 host_alias=$host_alias
25730 # The build system.
25731 build_alias=$build_alias
25735 # A sed program that does not truncate output.
25738 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25739 Xsed="\$SED -e 1s/^X//"
25741 # A grep program that handles long lines.
25747 # A literal string matcher.
25750 # A BSD- or MS-compatible name lister.
25753 # Whether we need soft or hard links.
25756 # What is the maximum length of a command?
25757 max_cmd_len=$max_cmd_len
25759 # Object file suffix (normally "o").
25762 # Executable file suffix (normally "").
25765 # whether the shell understands "unset".
25768 # turn spaces into newlines.
25771 # turn newlines into spaces.
25774 # convert \$build file names to \$host format.
25775 to_host_file_cmd=$lt_cv_to_host_file_cmd
25777 # convert \$build files to toolchain format.
25778 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25780 # Method to check whether dependent libraries are shared objects.
25781 deplibs_check_method=$lt_deplibs_check_method
25783 # Command to use when deplibs_check_method = "file_magic".
25784 file_magic_cmd=$lt_file_magic_cmd
25786 # How to find potential files when deplibs_check_method = "file_magic".
25787 file_magic_glob=$lt_file_magic_glob
25789 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25790 want_nocaseglob=$lt_want_nocaseglob
25792 # Command to associate shared and link libraries.
25793 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25798 # Flags to create an archive.
25799 AR_FLAGS=$lt_AR_FLAGS
25801 # How to feed a file listing to the archiver.
25802 archiver_list_spec=$lt_archiver_list_spec
25804 # A symbol stripping program.
25807 # Commands used to install an old-style archive.
25809 old_postinstall_cmds=$lt_old_postinstall_cmds
25810 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25812 # Whether to use a lock for old archive extraction.
25813 lock_old_archive_extraction=$lock_old_archive_extraction
25818 # LTCC compiler flags.
25819 LTCFLAGS=$lt_CFLAGS
25821 # Take the output of nm and produce a listing of raw symbols and C names.
25822 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25824 # Transform the output of nm in a proper C declaration.
25825 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25827 # Transform the output of nm in a C name address pair.
25828 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25830 # Transform the output of nm in a C name address pair when lib prefix is needed.
25831 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25833 # Specify filename containing input files for \$NM.
25834 nm_file_list_spec=$lt_nm_file_list_spec
25836 # The root where to search for dependent libraries,and in which our libraries should be installed.
25837 lt_sysroot=$lt_sysroot
25839 # The name of the directory that contains temporary libtool files.
25842 # Used to examine libraries when file_magic_cmd begins with "file".
25843 MAGIC_CMD=$MAGIC_CMD
25845 # Must we lock files when doing compilation?
25846 need_locks=$lt_need_locks
25849 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25851 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25852 DSYMUTIL=$lt_DSYMUTIL
25854 # Tool to change global to local symbols on Mac OS X.
25857 # Tool to manipulate fat objects and archives on Mac OS X.
25860 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25863 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25864 OTOOL64=$lt_OTOOL64
25866 # Old archive suffix (normally "a").
25869 # Shared library suffix (normally ".so").
25870 shrext_cmds=$lt_shrext_cmds
25872 # The commands to extract the exported symbol list from a shared archive.
25873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25875 # Variables whose values should be saved in libtool wrapper scripts and
25876 # restored at link time.
25877 variables_saved_for_relink=$lt_variables_saved_for_relink
25879 # Do we need the "lib" prefix for modules?
25880 need_lib_prefix=$need_lib_prefix
25882 # Do we need a version for libraries?
25883 need_version=$need_version
25885 # Library versioning type.
25886 version_type=$version_type
25888 # Shared library runtime path variable.
25889 runpath_var=$runpath_var
25891 # Shared library path variable.
25892 shlibpath_var=$shlibpath_var
25894 # Is shlibpath searched before the hard-coded library search path?
25895 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25897 # Format of library name prefix.
25898 libname_spec=$lt_libname_spec
25900 # List of archive names. First name is the real one, the rest are links.
25901 # The last name is the one that the linker finds with -lNAME
25902 library_names_spec=$lt_library_names_spec
25904 # The coded name of the library, if different from the real name.
25905 soname_spec=$lt_soname_spec
25907 # Permission mode override for installation of shared libraries.
25908 install_override_mode=$lt_install_override_mode
25910 # Command to use after installation of a shared archive.
25911 postinstall_cmds=$lt_postinstall_cmds
25913 # Command to use after uninstallation of a shared archive.
25914 postuninstall_cmds=$lt_postuninstall_cmds
25916 # Commands used to finish a libtool library installation in a directory.
25917 finish_cmds=$lt_finish_cmds
25919 # As "finish_cmds", except a single script fragment to be evaled but
25921 finish_eval=$lt_finish_eval
25923 # Whether we should hardcode library paths into libraries.
25924 hardcode_into_libs=$hardcode_into_libs
25926 # Compile-time system search path for libraries.
25927 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25929 # Run-time system search path for libraries.
25930 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25932 # Whether dlopen is supported.
25933 dlopen_support=$enable_dlopen
25935 # Whether dlopen of programs is supported.
25936 dlopen_self=$enable_dlopen_self
25938 # Whether dlopen of statically linked programs is supported.
25939 dlopen_self_static=$enable_dlopen_self_static
25941 # Commands to strip libraries.
25942 old_striplib=$lt_old_striplib
25943 striplib=$lt_striplib
25946 # The linker used to build libraries.
25949 # How to create reloadable object files.
25950 reload_flag=$lt_reload_flag
25951 reload_cmds=$lt_reload_cmds
25953 # Commands used to build an old-style archive.
25954 old_archive_cmds=$lt_old_archive_cmds
25956 # A language specific compiler.
25959 # Is the compiler the GNU compiler?
25962 # Compiler flag to turn off builtin functions.
25963 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25965 # Additional compiler flags for building library objects.
25966 pic_flag=$lt_lt_prog_compiler_pic
25968 # How to pass a linker flag through the compiler.
25969 wl=$lt_lt_prog_compiler_wl
25971 # Compiler flag to prevent dynamic linking.
25972 link_static_flag=$lt_lt_prog_compiler_static
25974 # Does compiler simultaneously support -c and -o options?
25975 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25977 # Whether or not to add -lc for building shared libraries.
25978 build_libtool_need_lc=$archive_cmds_need_lc
25980 # Whether or not to disallow shared libs when runtime libs are static.
25981 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25983 # Compiler flag to allow reflexive dlopens.
25984 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25986 # Compiler flag to generate shared objects directly from archives.
25987 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25989 # Whether the compiler copes with passing no objects directly.
25990 compiler_needs_object=$lt_compiler_needs_object
25992 # Create an old-style archive from a shared archive.
25993 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25995 # Create a temporary old-style archive to link instead of a shared archive.
25996 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25998 # Commands used to build a shared archive.
25999 archive_cmds=$lt_archive_cmds
26000 archive_expsym_cmds=$lt_archive_expsym_cmds
26002 # Commands used to build a loadable module if different from building
26003 # a shared archive.
26004 module_cmds=$lt_module_cmds
26005 module_expsym_cmds=$lt_module_expsym_cmds
26007 # Whether we are building with GNU ld or not.
26008 with_gnu_ld=$lt_with_gnu_ld
26010 # Flag that allows shared libraries with undefined symbols to be built.
26011 allow_undefined_flag=$lt_allow_undefined_flag
26013 # Flag that enforces no undefined symbols.
26014 no_undefined_flag=$lt_no_undefined_flag
26016 # Flag to hardcode \$libdir into a binary during linking.
26017 # This must work even if \$libdir does not exist
26018 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26020 # Whether we need a single "-rpath" flag with a separated argument.
26021 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26023 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26024 # DIR into the resulting binary.
26025 hardcode_direct=$hardcode_direct
26027 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26028 # DIR into the resulting binary and the resulting library dependency is
26029 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26030 # library is relocated.
26031 hardcode_direct_absolute=$hardcode_direct_absolute
26033 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26034 # into the resulting binary.
26035 hardcode_minus_L=$hardcode_minus_L
26037 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26038 # into the resulting binary.
26039 hardcode_shlibpath_var=$hardcode_shlibpath_var
26041 # Set to "yes" if building a shared library automatically hardcodes DIR
26042 # into the library and all subsequent libraries and executables linked
26044 hardcode_automatic=$hardcode_automatic
26046 # Set to yes if linker adds runtime paths of dependent libraries
26047 # to runtime path list.
26048 inherit_rpath=$inherit_rpath
26050 # Whether libtool must link a program against all its dependency libraries.
26051 link_all_deplibs=$link_all_deplibs
26053 # Set to "yes" if exported symbols are required.
26054 always_export_symbols=$always_export_symbols
26056 # The commands to list exported symbols.
26057 export_symbols_cmds=$lt_export_symbols_cmds
26059 # Symbols that should not be listed in the preloaded symbols.
26060 exclude_expsyms=$lt_exclude_expsyms
26062 # Symbols that must always be exported.
26063 include_expsyms=$lt_include_expsyms
26065 # Commands necessary for linking programs (against libraries) with templates.
26066 prelink_cmds=$lt_prelink_cmds
26068 # Commands necessary for finishing linking programs.
26069 postlink_cmds=$lt_postlink_cmds
26071 # Specify filename containing input files.
26072 file_list_spec=$lt_file_list_spec
26074 # How to hardcode a shared library path into an executable.
26075 hardcode_action=$hardcode_action
26077 # The directories searched by this compiler when creating a shared library.
26078 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26080 # Dependencies to place before and after the objects being linked to
26081 # create a shared library.
26082 predep_objects=$lt_predep_objects
26083 postdep_objects=$lt_postdep_objects
26084 predeps=$lt_predeps
26085 postdeps=$lt_postdeps
26087 # The library search path used internally by the compiler when linking
26088 # a shared library.
26089 compiler_lib_search_path=$lt_compiler_lib_search_path
26091 # ### END LIBTOOL CONFIG
26097 cat <<\_LT_EOF >> "$cfgfile"
26098 # AIX sometimes has problems with the GCC collect2 program. For some
26099 # reason, if we set the COLLECT_NAMES environment variable, the problems
26100 # vanish in a puff of smoke.
26101 if test "X${COLLECT_NAMES+set}" != Xset; then
26103 export COLLECT_NAMES
26110 ltmain="$ac_aux_dir/ltmain.sh"
26113 # We use sed instead of cat because bash on DJGPP gets confused if
26114 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26115 # text mode, it properly converts lines to CR/LF. This bash problem
26116 # is reportedly fixed, but why not run on old versions too?
26117 sed '$q' "$ltmain" >> "$cfgfile" \
26118 || (rm -f "$cfgfile"; exit 1)
26120 if test x"$xsi_shell" = xyes; then
26121 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
26125 \ */*) func_dirname_result="${1%/*}${2}" ;;\
26126 \ * ) func_dirname_result="${3}" ;;\
26128 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
26129 && mv -f "$cfgfile.tmp" "$cfgfile" \
26130 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26131 test 0 -eq $? || _lt_function_replace_fail=:
26134 sed -e '/^func_basename ()$/,/^} # func_basename /c\
26137 \ func_basename_result="${1##*/}"\
26138 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
26139 && mv -f "$cfgfile.tmp" "$cfgfile" \
26140 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26141 test 0 -eq $? || _lt_function_replace_fail=:
26144 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
26145 func_dirname_and_basename ()\
26148 \ */*) func_dirname_result="${1%/*}${2}" ;;\
26149 \ * ) func_dirname_result="${3}" ;;\
26151 \ func_basename_result="${1##*/}"\
26152 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
26153 && mv -f "$cfgfile.tmp" "$cfgfile" \
26154 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26155 test 0 -eq $? || _lt_function_replace_fail=:
26158 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
26161 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
26162 \ # positional parameters, so assign one to ordinary parameter first.\
26163 \ func_stripname_result=${3}\
26164 \ func_stripname_result=${func_stripname_result#"${1}"}\
26165 \ func_stripname_result=${func_stripname_result%"${2}"}\
26166 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
26167 && mv -f "$cfgfile.tmp" "$cfgfile" \
26168 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26169 test 0 -eq $? || _lt_function_replace_fail=:
26172 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
26173 func_split_long_opt ()\
26175 \ func_split_long_opt_name=${1%%=*}\
26176 \ func_split_long_opt_arg=${1#*=}\
26177 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
26178 && mv -f "$cfgfile.tmp" "$cfgfile" \
26179 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26180 test 0 -eq $? || _lt_function_replace_fail=:
26183 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
26184 func_split_short_opt ()\
26186 \ func_split_short_opt_arg=${1#??}\
26187 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
26188 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
26189 && mv -f "$cfgfile.tmp" "$cfgfile" \
26190 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26191 test 0 -eq $? || _lt_function_replace_fail=:
26194 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
26198 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
26199 \ *) func_lo2o_result=${1} ;;\
26201 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
26202 && mv -f "$cfgfile.tmp" "$cfgfile" \
26203 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26204 test 0 -eq $? || _lt_function_replace_fail=:
26207 sed -e '/^func_xform ()$/,/^} # func_xform /c\
26210 func_xform_result=${1%.*}.lo\
26211 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
26212 && mv -f "$cfgfile.tmp" "$cfgfile" \
26213 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26214 test 0 -eq $? || _lt_function_replace_fail=:
26217 sed -e '/^func_arith ()$/,/^} # func_arith /c\
26220 func_arith_result=$(( $* ))\
26221 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
26222 && mv -f "$cfgfile.tmp" "$cfgfile" \
26223 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26224 test 0 -eq $? || _lt_function_replace_fail=:
26227 sed -e '/^func_len ()$/,/^} # func_len /c\
26230 func_len_result=${#1}\
26231 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
26232 && mv -f "$cfgfile.tmp" "$cfgfile" \
26233 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26234 test 0 -eq $? || _lt_function_replace_fail=:
26238 if test x"$lt_shell_append" = xyes; then
26239 sed -e '/^func_append ()$/,/^} # func_append /c\
26242 eval "${1}+=\\${2}"\
26243 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
26244 && mv -f "$cfgfile.tmp" "$cfgfile" \
26245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26246 test 0 -eq $? || _lt_function_replace_fail=:
26249 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
26250 func_append_quoted ()\
26252 \ func_quote_for_eval "${2}"\
26253 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
26254 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
26255 && mv -f "$cfgfile.tmp" "$cfgfile" \
26256 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26257 test 0 -eq $? || _lt_function_replace_fail=:
26260 # Save a `func_append' function call where possible by direct use of '+='
26261 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
26262 && mv -f "$cfgfile.tmp" "$cfgfile" \
26263 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26264 test 0 -eq $? || _lt_function_replace_fail=:
26266 # Save a `func_append' function call even when '+=' is not available
26267 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
26268 && mv -f "$cfgfile.tmp" "$cfgfile" \
26269 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26270 test 0 -eq $? || _lt_function_replace_fail=:
26273 if test x"$_lt_function_replace_fail" = x":"; then
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
26275 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
26279 mv -f "$cfgfile" "$ofile" ||
26280 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26284 cat <<_LT_EOF >> "$ofile"
26286 # ### BEGIN LIBTOOL TAG CONFIG: CXX
26288 # The linker used to build libraries.
26291 # How to create reloadable object files.
26292 reload_flag=$lt_reload_flag_CXX
26293 reload_cmds=$lt_reload_cmds_CXX
26295 # Commands used to build an old-style archive.
26296 old_archive_cmds=$lt_old_archive_cmds_CXX
26298 # A language specific compiler.
26299 CC=$lt_compiler_CXX
26301 # Is the compiler the GNU compiler?
26304 # Compiler flag to turn off builtin functions.
26305 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
26307 # Additional compiler flags for building library objects.
26308 pic_flag=$lt_lt_prog_compiler_pic_CXX
26310 # How to pass a linker flag through the compiler.
26311 wl=$lt_lt_prog_compiler_wl_CXX
26313 # Compiler flag to prevent dynamic linking.
26314 link_static_flag=$lt_lt_prog_compiler_static_CXX
26316 # Does compiler simultaneously support -c and -o options?
26317 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
26319 # Whether or not to add -lc for building shared libraries.
26320 build_libtool_need_lc=$archive_cmds_need_lc_CXX
26322 # Whether or not to disallow shared libs when runtime libs are static.
26323 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
26325 # Compiler flag to allow reflexive dlopens.
26326 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
26328 # Compiler flag to generate shared objects directly from archives.
26329 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
26331 # Whether the compiler copes with passing no objects directly.
26332 compiler_needs_object=$lt_compiler_needs_object_CXX
26334 # Create an old-style archive from a shared archive.
26335 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
26337 # Create a temporary old-style archive to link instead of a shared archive.
26338 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
26340 # Commands used to build a shared archive.
26341 archive_cmds=$lt_archive_cmds_CXX
26342 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
26344 # Commands used to build a loadable module if different from building
26345 # a shared archive.
26346 module_cmds=$lt_module_cmds_CXX
26347 module_expsym_cmds=$lt_module_expsym_cmds_CXX
26349 # Whether we are building with GNU ld or not.
26350 with_gnu_ld=$lt_with_gnu_ld_CXX
26352 # Flag that allows shared libraries with undefined symbols to be built.
26353 allow_undefined_flag=$lt_allow_undefined_flag_CXX
26355 # Flag that enforces no undefined symbols.
26356 no_undefined_flag=$lt_no_undefined_flag_CXX
26358 # Flag to hardcode \$libdir into a binary during linking.
26359 # This must work even if \$libdir does not exist
26360 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
26362 # Whether we need a single "-rpath" flag with a separated argument.
26363 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
26365 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26366 # DIR into the resulting binary.
26367 hardcode_direct=$hardcode_direct_CXX
26369 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26370 # DIR into the resulting binary and the resulting library dependency is
26371 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26372 # library is relocated.
26373 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
26375 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26376 # into the resulting binary.
26377 hardcode_minus_L=$hardcode_minus_L_CXX
26379 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26380 # into the resulting binary.
26381 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
26383 # Set to "yes" if building a shared library automatically hardcodes DIR
26384 # into the library and all subsequent libraries and executables linked
26386 hardcode_automatic=$hardcode_automatic_CXX
26388 # Set to yes if linker adds runtime paths of dependent libraries
26389 # to runtime path list.
26390 inherit_rpath=$inherit_rpath_CXX
26392 # Whether libtool must link a program against all its dependency libraries.
26393 link_all_deplibs=$link_all_deplibs_CXX
26395 # Set to "yes" if exported symbols are required.
26396 always_export_symbols=$always_export_symbols_CXX
26398 # The commands to list exported symbols.
26399 export_symbols_cmds=$lt_export_symbols_cmds_CXX
26401 # Symbols that should not be listed in the preloaded symbols.
26402 exclude_expsyms=$lt_exclude_expsyms_CXX
26404 # Symbols that must always be exported.
26405 include_expsyms=$lt_include_expsyms_CXX
26407 # Commands necessary for linking programs (against libraries) with templates.
26408 prelink_cmds=$lt_prelink_cmds_CXX
26410 # Commands necessary for finishing linking programs.
26411 postlink_cmds=$lt_postlink_cmds_CXX
26413 # Specify filename containing input files.
26414 file_list_spec=$lt_file_list_spec_CXX
26416 # How to hardcode a shared library path into an executable.
26417 hardcode_action=$hardcode_action_CXX
26419 # The directories searched by this compiler when creating a shared library.
26420 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
26422 # Dependencies to place before and after the objects being linked to
26423 # create a shared library.
26424 predep_objects=$lt_predep_objects_CXX
26425 postdep_objects=$lt_postdep_objects_CXX
26426 predeps=$lt_predeps_CXX
26427 postdeps=$lt_postdeps_CXX
26429 # The library search path used internally by the compiler when linking
26430 # a shared library.
26431 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26433 # ### END LIBTOOL TAG CONFIG: CXX
26437 "sdl2_config":C) chmod a+x sdl2-config ;;
26438 "summary":C) echo -en "$SUMMARY" ;;
26446 ac_clean_files=$ac_clean_files_save
26448 test $ac_write_fail = 0 ||
26449 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26452 # configure is writing to config.log, and then calls config.status.
26453 # config.status does its own redirection, appending to config.log.
26454 # Unfortunately, on DOS this fails, as config.log is still kept open
26455 # by configure, so config.status won't be able to write to it; its
26456 # output is simply discarded. So we exec the FD to /dev/null,
26457 # effectively closing config.log, so it can be properly (re)opened and
26458 # appended to by config.status. When coming back to configure, we
26459 # need to make the FD available again.
26460 if test "$no_create" != yes; then
26462 ac_config_status_args=
26463 test "$silent" = yes &&
26464 ac_config_status_args="$ac_config_status_args --quiet"
26466 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26468 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26469 # would make configure fail if this is the last instruction.
26470 $ac_cs_success || as_fn_exit 1
26472 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26474 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}