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
756 program_transform_name
769 enable_option_checking
778 enable_dependency_tracking
817 enable_pulseaudio_shared
825 enable_fusionsound_shared
829 enable_libsamplerate_shared
831 enable_video_wayland_qt_touch
832 enable_wayland_shared
840 enable_video_x11_xcursor
841 enable_video_x11_xdbe
842 enable_video_x11_xinerama
843 enable_video_x11_xinput
844 enable_video_x11_xrandr
845 enable_video_x11_scrnsaver
846 enable_video_x11_xshape
851 enable_video_directfb
852 enable_directfb_shared
857 enable_video_opengles
858 enable_video_opengles1
859 enable_video_opengles2
875 ac_precious_vars='build_alias
891 # Initialize some variables set by options.
893 ac_init_version=false
894 ac_unrecognized_opts=
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
905 program_transform_name=s,x,x,
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE}'
930 infodir='${datarootdir}/info'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
943 # If the previous option needs an argument, assign it.
944 if test -n "$ac_prev"; then
945 eval $ac_prev=\$ac_option
951 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956 # Accept the important Cygnus configure options, so we can diagnose typos.
958 case $ac_dashdash$ac_option in
962 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967 -build | --build | --buil | --bui | --bu)
968 ac_prev=build_alias ;;
969 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 build_alias=$ac_optarg ;;
972 -cache-file | --cache-file | --cache-fil | --cache-fi \
973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 ac_prev=cache_file ;;
975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977 cache_file=$ac_optarg ;;
980 cache_file=config.cache ;;
982 -datadir | --datadir | --datadi | --datad)
984 -datadir=* | --datadir=* | --datadi=* | --datad=*)
985 datadir=$ac_optarg ;;
987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988 | --dataroo | --dataro | --datar)
989 ac_prev=datarootdir ;;
990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992 datarootdir=$ac_optarg ;;
994 -disable-* | --disable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error $? "invalid feature name: $ac_useropt"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1003 "enable_$ac_useropt"
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1008 eval enable_$ac_useropt=no ;;
1010 -docdir | --docdir | --docdi | --doc | --do)
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
1020 -enable-* | --enable-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error $? "invalid feature name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1029 "enable_$ac_useropt"
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1034 eval enable_$ac_useropt=\$ac_optarg ;;
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
1043 exec_prefix=$ac_optarg ;;
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
1056 -host | --host | --hos | --ho)
1057 ac_prev=host_alias ;;
1058 -host=* | --host=* | --hos=* | --ho=*)
1059 host_alias=$ac_optarg ;;
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 htmldir=$ac_optarg ;;
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
1072 includedir=$ac_optarg ;;
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077 infodir=$ac_optarg ;;
1079 -libdir | --libdir | --libdi | --libd)
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082 libdir=$ac_optarg ;;
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
1089 libexecdir=$ac_optarg ;;
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
1097 | --localstate | --localstat | --localsta | --localst | --locals)
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101 localstatedir=$ac_optarg ;;
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106 mandir=$ac_optarg ;;
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113 | --no-cr | --no-c | -n)
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127 oldincludedir=$ac_optarg ;;
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132 prefix=$ac_optarg ;;
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139 program_prefix=$ac_optarg ;;
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146 program_suffix=$ac_optarg ;;
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
1163 program_transform_name=$ac_optarg ;;
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1170 -psdir | --psdir | --psdi | --psd | --ps)
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 sbindir=$ac_optarg ;;
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 sharedstatedir=$ac_optarg ;;
1196 -site | --site | --sit)
1198 -site=* | --site=* | --sit=*)
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1225 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1238 eval with_$ac_useropt=\$ac_optarg ;;
1240 -without-* | --without-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid package name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1254 eval with_$ac_useropt=no ;;
1257 # Obsolete; use --with-x.
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1274 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1275 Try \`$0 --help' for more information"
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 case $ac_envvar in #(
1282 '' | [0-9]* | *[!_$as_cr_alnum]* )
1283 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1289 # FIXME: should be removed in autoconf 3.0.
1290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1299 if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 as_fn_error $? "missing argument to $ac_option"
1304 if test -n "$ac_unrecognized_opts"; then
1305 case $enable_option_checking in
1307 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1308 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312 # Check all directory arguments for consistency.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1318 eval ac_val=\$$ac_var
1319 # Remove trailing slashes.
1322 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\$ac_val;;
1325 # Be sure to have absolute directory names.
1327 [\\/$]* | ?:[\\/]* ) continue;;
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1333 # There might be people who depend on the old broken behavior: `$host'
1334 # used to hold the argument of --host etc.
1335 # FIXME: To remove some day.
1338 target=$target_alias
1340 # FIXME: To remove some day.
1341 if test "x$host_alias" != x; then
1342 if test "x$build_alias" = x; then
1343 cross_compiling=maybe
1344 elif test "x$build_alias" != "x$host_alias"; then
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352 test "$silent" = yes && exec 6>/dev/null
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358 as_fn_error $? "working directory cannot be determined"
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360 as_fn_error $? "pwd does not report name of working directory"
1363 # Find the source files, if location was not specified.
1364 if test -z "$srcdir"; then
1365 ac_srcdir_defaulted=yes
1366 # Try the directory containing this script, then the parent directory.
1367 ac_confdir=`$as_dirname -- "$as_myself" ||
1368 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1369 X"$as_myself" : 'X\(//\)[^/]' \| \
1370 X"$as_myself" : 'X\(//\)$' \| \
1371 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1372 $as_echo X"$as_myself" |
1373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1395 ac_srcdir_defaulted=no
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1399 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1403 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 for ac_var in $ac_precious_vars; do
1416 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_env_${ac_var}_value=\$${ac_var}
1418 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 # Report the --help message.
1425 if test "$ac_init_help" = "long"; then
1426 # Omit some internal or obsolete options to make the list less imposing.
1427 # This message is too long to be a string in the A/UX 3.1 sh.
1429 \`configure' configures this package to adapt to many kinds of systems.
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE. See below for descriptions of some of the useful variables.
1436 Defaults for the options are specified in brackets.
1439 -h, --help display this help and exit
1440 --help=short display options specific to this package
1441 --help=recursive display the short help of all the included packages
1442 -V, --version display version information and exit
1443 -q, --quiet, --silent do not print \`checking ...' messages
1444 --cache-file=FILE cache test results in FILE [disabled]
1445 -C, --config-cache alias for \`--cache-file=config.cache'
1446 -n, --no-create do not create output files
1447 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1449 Installation directories:
1450 --prefix=PREFIX install architecture-independent files in PREFIX
1451 [$ac_default_prefix]
1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1460 For better control, use the options below.
1462 Fine tuning of the installation directories:
1463 --bindir=DIR user executables [EPREFIX/bin]
1464 --sbindir=DIR system admin executables [EPREFIX/sbin]
1465 --libexecdir=DIR program executables [EPREFIX/libexec]
1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1469 --libdir=DIR object code libraries [EPREFIX/lib]
1470 --includedir=DIR C header files [PREFIX/include]
1471 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1474 --infodir=DIR info documentation [DATAROOTDIR/info]
1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1476 --mandir=DIR man documentation [DATAROOTDIR/man]
1477 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1478 --htmldir=DIR html documentation [DOCDIR]
1479 --dvidir=DIR dvi documentation [DOCDIR]
1480 --pdfdir=DIR pdf documentation [DOCDIR]
1481 --psdir=DIR ps documentation [DOCDIR]
1487 --x-includes=DIR X include files are in DIR
1488 --x-libraries=DIR X library files are in DIR
1491 --build=BUILD configure for building on BUILD [guessed]
1492 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 if test -n "$ac_init_help"; then
1501 --disable-option-checking ignore unrecognized --enable/--with options
1502 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1503 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1504 --enable-shared[=PKGS] build shared libraries [default=yes]
1505 --enable-static[=PKGS] build static libraries [default=yes]
1506 --enable-fast-install[=PKGS]
1507 optimize for fast installation [default=yes]
1508 --disable-libtool-lock avoid locking (might break parallel builds)
1509 --enable-assertions Enable internal sanity checks
1510 (auto/disabled/release/enabled/paranoid)
1512 --enable-dependency-tracking
1513 Use gcc -MMD -MT dependency tracking [[default=yes]]
1514 --enable-libc Use the system C library [[default=yes]]
1515 --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
1516 --enable-atomic Enable the atomic operations subsystem
1518 --enable-audio Enable the audio subsystem [[default=yes]]
1519 --enable-video Enable the video subsystem [[default=yes]]
1520 --enable-render Enable the render subsystem [[default=yes]]
1521 --enable-events Enable the events subsystem [[default=yes]]
1522 --enable-joystick Enable the joystick subsystem [[default=yes]]
1523 --enable-haptic Enable the haptic (force feedback) subsystem
1525 --enable-power Enable the power subsystem [[default=yes]]
1526 --enable-filesystem Enable the filesystem subsystem [[default=yes]]
1527 --enable-threads Enable the threading subsystem [[default=yes]]
1528 --enable-timers Enable the timer subsystem [[default=yes]]
1529 --enable-file Enable the file subsystem [[default=yes]]
1530 --enable-loadso Enable the shared object loading subsystem
1532 --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
1533 --enable-assembly Enable assembly routines [[default=yes]]
1534 --enable-ssemath Allow GCC to use SSE floating point math
1536 --enable-mmx use MMX assembly routines [[default=yes]]
1537 --enable-3dnow use 3DNow! assembly routines [[default=yes]]
1538 --enable-sse use SSE assembly routines [[default=yes]]
1539 --enable-sse2 use SSE2 assembly routines [[default=maybe]]
1540 --enable-sse3 use SSE3 assembly routines [[default=maybe]]
1541 --enable-altivec use Altivec assembly routines [[default=yes]]
1542 --enable-oss support the OSS audio API [[default=maybe]]
1543 --enable-alsa support the ALSA audio API [[default=yes]]
1544 --disable-alsatest Do not try to compile and run a test Alsa program
1545 --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
1546 --enable-jack use JACK audio [[default=yes]]
1547 --enable-jack-shared dynamically load JACK audio support [[default=yes]]
1548 --enable-esd support the Enlightened Sound Daemon [[default=yes]]
1549 --disable-esdtest Do not try to compile and run a test ESD program
1550 --enable-esd-shared dynamically load ESD audio support [[default=yes]]
1551 --enable-pulseaudio use PulseAudio [[default=yes]]
1552 --enable-pulseaudio-shared
1553 dynamically load PulseAudio support [[default=yes]]
1554 --enable-arts support the Analog Real Time Synthesizer
1556 --enable-arts-shared dynamically load aRts audio support [[default=yes]]
1557 --enable-nas support the NAS audio API [[default=yes]]
1558 --enable-nas-shared dynamically load NAS audio support [[default=yes]]
1559 --enable-sndio support the sndio audio API [[default=yes]]
1560 --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
1561 --enable-fusionsound use FusionSound audio driver [[default=no]]
1562 --enable-fusionsound-shared
1563 dynamically load fusionsound audio support
1565 --enable-diskaudio support the disk writer audio driver [[default=yes]]
1566 --enable-dummyaudio support the dummy audio driver [[default=yes]]
1567 --enable-libsamplerate use libsamplerate for audio rate conversion
1569 --enable-libsamplerate-shared
1570 dynamically load libsamplerate [[default=yes]]
1571 --enable-video-wayland use Wayland video driver [[default=yes]]
1572 --enable-video-wayland-qt-touch
1573 QtWayland server support for Wayland video driver
1575 --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
1576 --enable-video-tizen use tizen video driver [[default=yes]]
1577 --enable-video-mir use Mir video driver [[default=yes]]
1578 --enable-mir-shared dynamically load Mir support [[default=maybe]]
1579 --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
1580 --enable-video-x11 use X11 video driver [[default=yes]]
1581 --enable-x11-shared dynamically load X11 support [[default=maybe]]
1582 --enable-video-x11-xcursor
1583 enable X11 Xcursor support [[default=yes]]
1584 --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
1585 --enable-video-x11-xinerama
1586 enable X11 Xinerama support [[default=yes]]
1587 --enable-video-x11-xinput
1588 enable X11 XInput extension for manymouse, tablets,
1590 --enable-video-x11-xrandr
1591 enable X11 Xrandr extension for fullscreen
1593 --enable-video-x11-scrnsaver
1594 enable X11 screensaver extension [[default=yes]]
1595 --enable-video-x11-xshape
1596 enable X11 XShape support [[default=yes]]
1597 --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
1598 --enable-video-vivante use Vivante EGL video driver [[default=yes]]
1599 --enable-video-cocoa use Cocoa video driver [[default=yes]]
1600 --enable-render-metal enable the Metal render driver [[default=yes]]
1601 --enable-video-directfb use DirectFB video driver [[default=no]]
1602 --enable-directfb-shared
1603 dynamically load directfb support [[default=yes]]
1604 --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
1605 --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
1606 --enable-video-dummy use dummy video driver [[default=yes]]
1607 --enable-video-opengl include OpenGL support [[default=yes]]
1608 --enable-video-opengles include OpenGL ES support [[default=yes]]
1609 --enable-video-opengles1
1610 include OpenGL ES 1.1 support [[default=yes]]
1611 --enable-video-opengles2
1612 include OpenGL ES 2.0 support [[default=yes]]
1613 --enable-video-vulkan include Vulkan support [[default=yes]]
1614 --enable-libudev enable libudev support [[default=yes]]
1615 --enable-dbus enable D-Bus support [[default=yes]]
1616 --enable-ime enable IME support [[default=yes]]
1617 --enable-ibus enable IBus support [[default=yes]]
1618 --enable-fcitx enable fcitx support [[default=yes]]
1619 --enable-input-tslib use the Touchscreen library for input
1621 --enable-pthreads use POSIX threads for multi-threading
1623 --enable-pthread-sem use pthread semaphores [[default=yes]]
1624 --enable-directx use DirectX for Windows audio/video [[default=yes]]
1625 --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
1626 --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
1627 UNIX [[default=yes]]
1628 --enable-rpath use an rpath when linking SDL [[default=yes]]
1629 --enable-render-d3d enable the Direct3D render driver [[default=yes]]
1632 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1633 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1634 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1636 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1637 --with-sysroot=DIR Search for dependent libraries within DIR
1638 (or the compiler's sysroot if not specified).
1639 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
1640 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
1641 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
1642 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1643 --with-x use the X Window System
1645 Some influential environment variables:
1646 CC C compiler command
1647 CFLAGS C compiler flags
1648 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1649 nonstandard directory <lib dir>
1650 LIBS libraries to pass to the linker, e.g. -l<library>
1651 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1652 you have headers in a nonstandard directory <include dir>
1654 CXX C++ compiler command
1655 CXXFLAGS C++ compiler flags
1656 CXXCPP C++ preprocessor
1657 XMKMF Path to xmkmf, Makefile generator for X Window System
1659 Use these variables to override the choices made by `configure' or to help
1660 it to find libraries and programs with nonstandard names/locations.
1662 Report bugs to the package provider.
1667 if test "$ac_init_help" = "recursive"; then
1668 # If there are subdirs, report their specific --help.
1669 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1670 test -d "$ac_dir" ||
1671 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1676 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1678 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1679 # A ".." for each directory in $ac_dir_suffix.
1680 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1681 case $ac_top_builddir_sub in
1682 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1683 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1686 ac_abs_top_builddir=$ac_pwd
1687 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1688 # for backward compatibility:
1689 ac_top_builddir=$ac_top_build_prefix
1692 .) # We are building in place.
1694 ac_top_srcdir=$ac_top_builddir_sub
1695 ac_abs_top_srcdir=$ac_pwd ;;
1696 [\\/]* | ?:[\\/]* ) # Absolute name.
1697 ac_srcdir=$srcdir$ac_dir_suffix;
1698 ac_top_srcdir=$srcdir
1699 ac_abs_top_srcdir=$srcdir ;;
1701 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1702 ac_top_srcdir=$ac_top_build_prefix$srcdir
1703 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1705 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1707 cd "$ac_dir" || { ac_status=$?; continue; }
1708 # Check for guested configure.
1709 if test -f "$ac_srcdir/configure.gnu"; then
1711 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1712 elif test -f "$ac_srcdir/configure"; then
1714 $SHELL "$ac_srcdir/configure" --help=recursive
1716 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1718 cd "$ac_pwd" || { ac_status=$?; break; }
1722 test -n "$ac_init_help" && exit $ac_status
1723 if $ac_init_version; then
1726 generated by GNU Autoconf 2.69
1728 Copyright (C) 2012 Free Software Foundation, Inc.
1729 This configure script is free software; the Free Software Foundation
1730 gives unlimited permission to copy, distribute and modify it.
1735 ## ------------------------ ##
1736 ## Autoconf initialization. ##
1737 ## ------------------------ ##
1739 # ac_fn_c_try_compile LINENO
1740 # --------------------------
1741 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_c_try_compile ()
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 rm -f conftest.$ac_objext
1746 if { { ac_try="$ac_compile"
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_compile") 2>conftest.err
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && {
1762 test -z "$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1764 } && test -s conftest.$ac_objext; then :
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1775 } # ac_fn_c_try_compile
1777 # ac_fn_c_try_link LINENO
1778 # -----------------------
1779 # Try to link conftest.$ac_ext, and return whether this succeeded.
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 rm -f conftest.$ac_objext conftest$ac_exeext
1784 if { { ac_try="$ac_link"
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_link") 2>conftest.err
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest$ac_exeext && {
1803 test "$cross_compiling" = yes ||
1804 test -x conftest$ac_exeext
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1813 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1814 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1815 # interfere with the next link command; also delete a directory that is
1816 # left behind by Apple's compiler. We do this before executing the actions.
1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status $ac_retval
1821 } # ac_fn_c_try_link
1823 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1824 # -------------------------------------------------------
1825 # Tests whether HEADER exists and can be compiled using the include files in
1826 # INCLUDES, setting the cache variable VAR accordingly.
1827 ac_fn_c_check_header_compile ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833 $as_echo_n "(cached) " >&6
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1840 if ac_fn_c_try_compile "$LINENO"; then :
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 } # ac_fn_c_check_header_compile
1854 # ac_fn_c_try_cpp LINENO
1855 # ----------------------
1856 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 if { { ac_try="$ac_cpp conftest.$ac_ext"
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } > conftest.i && {
1876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1891 # ac_fn_c_try_run LINENO
1892 # ----------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1894 # that executables *can* be run.
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if { { ac_try="$ac_link"
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>&5
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1909 { { case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_try") 2>&5
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; }; }; then :
1921 $as_echo "$as_me: program exited with status $ac_status" >&5
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1925 ac_retval=$ac_status
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
1933 # ac_fn_c_check_func LINENO FUNC VAR
1934 # ----------------------------------
1935 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1936 ac_fn_c_check_func ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1948 #define $2 innocuous_$2
1950 /* System header to define __stub macros and hopefully few prototypes,
1951 which can conflict with char $2 (); below.
1952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1953 <limits.h> exists even on freestanding compilers. */
1956 # include <limits.h>
1958 # include <assert.h>
1963 /* Override any GCC internal prototype to avoid an error.
1964 Use char because int might match the return type of a GCC
1965 builtin and then its argument prototype would still apply. */
1970 /* The GNU C library defines this for functions which it implements
1971 to always fail with ENOSYS. Some functions are actually named
1972 something starting with __ and the normal name is an alias. */
1973 #if defined __stub_$2 || defined __stub___$2
1985 if ac_fn_c_try_link "$LINENO"; then :
1990 rm -f core conftest.err conftest.$ac_objext \
1991 conftest$ac_exeext conftest.$ac_ext
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_check_func
2000 # ac_fn_cxx_try_compile LINENO
2001 # ----------------------------
2002 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2003 ac_fn_cxx_try_compile ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 rm -f conftest.$ac_objext
2007 if { { ac_try="$ac_compile"
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_compile") 2>conftest.err
2016 if test -s conftest.err; then
2017 grep -v '^ *+' conftest.err >conftest.er1
2018 cat conftest.er1 >&5
2019 mv -f conftest.er1 conftest.err
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; } && {
2023 test -z "$ac_cxx_werror_flag" ||
2024 test ! -s conftest.err
2025 } && test -s conftest.$ac_objext; then :
2028 $as_echo "$as_me: failed program was:" >&5
2029 sed 's/^/| /' conftest.$ac_ext >&5
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 as_fn_set_status $ac_retval
2036 } # ac_fn_cxx_try_compile
2038 # ac_fn_cxx_try_cpp LINENO
2039 # ------------------------
2040 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2041 ac_fn_cxx_try_cpp ()
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 if { { ac_try="$ac_cpp conftest.$ac_ext"
2046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047 *) ac_try_echo=$ac_try;;
2049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050 $as_echo "$ac_try_echo"; } >&5
2051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2053 if test -s conftest.err; then
2054 grep -v '^ *+' conftest.err >conftest.er1
2055 cat conftest.er1 >&5
2056 mv -f conftest.er1 conftest.err
2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059 test $ac_status = 0; } > conftest.i && {
2060 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2061 test ! -s conftest.err
2065 $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 as_fn_set_status $ac_retval
2073 } # ac_fn_cxx_try_cpp
2075 # ac_fn_cxx_try_link LINENO
2076 # -------------------------
2077 # Try to link conftest.$ac_ext, and return whether this succeeded.
2078 ac_fn_cxx_try_link ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 rm -f conftest.$ac_objext conftest$ac_exeext
2082 if { { ac_try="$ac_link"
2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088 $as_echo "$ac_try_echo"; } >&5
2089 (eval "$ac_link") 2>conftest.err
2091 if test -s conftest.err; then
2092 grep -v '^ *+' conftest.err >conftest.er1
2093 cat conftest.er1 >&5
2094 mv -f conftest.er1 conftest.err
2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; } && {
2098 test -z "$ac_cxx_werror_flag" ||
2099 test ! -s conftest.err
2100 } && test -s conftest$ac_exeext && {
2101 test "$cross_compiling" = yes ||
2102 test -x conftest$ac_exeext
2106 $as_echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2111 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2112 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2113 # interfere with the next link command; also delete a directory that is
2114 # left behind by Apple's compiler. We do this before executing the actions.
2115 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 as_fn_set_status $ac_retval
2119 } # ac_fn_cxx_try_link
2121 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2122 # -------------------------------------------------------
2123 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2124 # the include files in INCLUDES and setting the cache variable VAR
2126 ac_fn_c_check_header_mongrel ()
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 if eval \${$3+:} false; then :
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 $as_echo_n "checking for $2... " >&6; }
2132 if eval \${$3+:} false; then :
2133 $as_echo_n "(cached) " >&6
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2139 # Is the header compilable?
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2141 $as_echo_n "checking $2 usability... " >&6; }
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_header_compiler=yes
2150 ac_header_compiler=no
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2154 $as_echo "$ac_header_compiler" >&6; }
2156 # Is the header present?
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2158 $as_echo_n "checking $2 presence... " >&6; }
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2163 if ac_fn_c_try_cpp "$LINENO"; then :
2164 ac_header_preproc=yes
2166 ac_header_preproc=no
2168 rm -f conftest.err conftest.i conftest.$ac_ext
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2170 $as_echo "$ac_header_preproc" >&6; }
2172 # So? What about this header?
2173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2176 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2178 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2182 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2184 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2186 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2188 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2190 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2194 $as_echo_n "checking for $2... " >&6; }
2195 if eval \${$3+:} false; then :
2196 $as_echo_n "(cached) " >&6
2198 eval "$3=\$ac_header_compiler"
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202 $as_echo "$ac_res" >&6; }
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 } # ac_fn_c_check_header_mongrel
2208 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2209 # -------------------------------------------
2210 # Tests whether TYPE exists after having included INCLUDES, setting cache
2211 # variable VAR accordingly.
2212 ac_fn_c_check_type ()
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2216 $as_echo_n "checking for $2... " >&6; }
2217 if eval \${$3+:} false; then :
2218 $as_echo_n "(cached) " >&6
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2233 if ac_fn_c_try_compile "$LINENO"; then :
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2246 if ac_fn_c_try_compile "$LINENO"; then :
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257 $as_echo "$ac_res" >&6; }
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260 } # ac_fn_c_check_type
2262 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2263 # ----------------------------------------------------
2264 # Tries to find if the field MEMBER exists in type AGGR, after including
2265 # INCLUDES, setting cache variable VAR accordingly.
2266 ac_fn_c_check_member ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2270 $as_echo_n "checking for $2.$3... " >&6; }
2271 if eval \${$4+:} false; then :
2272 $as_echo_n "(cached) " >&6
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2287 if ac_fn_c_try_compile "$LINENO"; then :
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2297 if (sizeof ac_aggr.$3)
2303 if ac_fn_c_try_compile "$LINENO"; then :
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317 } # ac_fn_c_check_member
2318 cat >config.log <<_ACEOF
2319 This file contains any messages produced by compilers while
2320 running configure, to aid debugging if configure makes a mistake.
2322 It was created by $as_me, which was
2323 generated by GNU Autoconf 2.69. Invocation command line was
2335 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2336 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2337 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2338 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2339 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2341 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2342 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2344 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2345 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2346 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2347 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2348 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2349 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2350 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 test -z "$as_dir" && as_dir=.
2359 $as_echo "PATH: $as_dir"
2375 # Keep a trace of the command line.
2376 # Strip out --no-create and --no-recursion so they do not pile up.
2377 # Strip out --silent because we don't want to record it for future runs.
2378 # Also quote any args containing shell meta-characters.
2379 # Make two passes to allow for proper duplicate-argument suppression.
2383 ac_must_keep_next=false
2389 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2391 | -silent | --silent | --silen | --sile | --sil)
2394 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2397 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2399 as_fn_append ac_configure_args1 " '$ac_arg'"
2400 if test $ac_must_keep_next = true; then
2401 ac_must_keep_next=false # Got value, back to normal.
2404 *=* | --config-cache | -C | -disable-* | --disable-* \
2405 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2406 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2407 | -with-* | --with-* | -without-* | --without-* | --x)
2408 case "$ac_configure_args0 " in
2409 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2412 -* ) ac_must_keep_next=true ;;
2415 as_fn_append ac_configure_args " '$ac_arg'"
2420 { ac_configure_args0=; unset ac_configure_args0;}
2421 { ac_configure_args1=; unset ac_configure_args1;}
2423 # When interrupted or exit'd, cleanup temporary files, and complete
2424 # config.log. We remove comments because anyway the quotes in there
2425 # would cause problems or look ugly.
2426 # WARNING: Use '\'' to represent an apostrophe within the trap.
2427 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2428 trap 'exit_status=$?
2429 # Save into config.log some information that might help in debugging.
2433 $as_echo "## ---------------- ##
2434 ## Cache variables. ##
2435 ## ---------------- ##"
2437 # The following way of writing the cache mishandles newlines in values,
2439 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2440 eval ac_val=\$$ac_var
2444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2448 _ | IFS | as_nl) ;; #(
2449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2450 *) { eval $ac_var=; unset $ac_var;} ;;
2455 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2456 *${as_nl}ac_space=\ *)
2458 "s/'\''/'\''\\\\'\'''\''/g;
2459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2469 $as_echo "## ----------------- ##
2470 ## Output variables. ##
2471 ## ----------------- ##"
2473 for ac_var in $ac_subst_vars
2475 eval ac_val=\$$ac_var
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2479 $as_echo "$ac_var='\''$ac_val'\''"
2483 if test -n "$ac_subst_files"; then
2484 $as_echo "## ------------------- ##
2485 ## File substitutions. ##
2486 ## ------------------- ##"
2488 for ac_var in $ac_subst_files
2490 eval ac_val=\$$ac_var
2492 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2494 $as_echo "$ac_var='\''$ac_val'\''"
2499 if test -s confdefs.h; then
2500 $as_echo "## ----------- ##
2507 test "$ac_signal" != 0 &&
2508 $as_echo "$as_me: caught signal $ac_signal"
2509 $as_echo "$as_me: exit $exit_status"
2511 rm -f core *.core core.conftest.* &&
2512 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2515 for ac_signal in 1 2 13 15; do
2516 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2521 rm -f -r conftest* confdefs.h
2523 $as_echo "/* confdefs.h */" > confdefs.h
2525 # Predefined preprocessor variables.
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_NAME "$PACKAGE_NAME"
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_STRING "$PACKAGE_STRING"
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_URL "$PACKAGE_URL"
2552 # Let the site file select an alternate cache file if it wants to.
2553 # Prefer an explicitly selected file to automatically selected ones.
2556 if test -n "$CONFIG_SITE"; then
2557 # We do not want a PATH search for config.site.
2558 case $CONFIG_SITE in #((
2559 -*) ac_site_file1=./$CONFIG_SITE;;
2560 */*) ac_site_file1=$CONFIG_SITE;;
2561 *) ac_site_file1=./$CONFIG_SITE;;
2563 elif test "x$prefix" != xNONE; then
2564 ac_site_file1=$prefix/share/config.site
2565 ac_site_file2=$prefix/etc/config.site
2567 ac_site_file1=$ac_default_prefix/share/config.site
2568 ac_site_file2=$ac_default_prefix/etc/config.site
2570 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2572 test "x$ac_site_file" = xNONE && continue
2573 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2575 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2576 sed 's/^/| /' "$ac_site_file" >&5
2578 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 as_fn_error $? "failed to load site script $ac_site_file
2581 See \`config.log' for more details" "$LINENO" 5; }
2585 if test -r "$cache_file"; then
2586 # Some versions of bash will fail to source /dev/null (special files
2587 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2588 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2590 $as_echo "$as_me: loading cache $cache_file" >&6;}
2592 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2593 *) . "./$cache_file";;
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2598 $as_echo "$as_me: creating cache $cache_file" >&6;}
2602 # Check that the precious variables saved in the cache have kept the same
2604 ac_cache_corrupted=false
2605 for ac_var in $ac_precious_vars; do
2606 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2607 eval ac_new_set=\$ac_env_${ac_var}_set
2608 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2609 eval ac_new_val=\$ac_env_${ac_var}_value
2610 case $ac_old_set,$ac_new_set in
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2613 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2614 ac_cache_corrupted=: ;;
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2617 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2618 ac_cache_corrupted=: ;;
2621 if test "x$ac_old_val" != "x$ac_new_val"; then
2622 # differences in whitespace do not lead to failure.
2623 ac_old_val_w=`echo x $ac_old_val`
2624 ac_new_val_w=`echo x $ac_new_val`
2625 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2627 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2628 ac_cache_corrupted=:
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2631 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2632 eval $ac_var=\$ac_old_val
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2635 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2637 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2640 # Pass precious variables to config.status.
2641 if test "$ac_new_set" = set; then
2643 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2644 *) ac_arg=$ac_var=$ac_new_val ;;
2646 case " $ac_configure_args " in
2647 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2648 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2652 if $ac_cache_corrupted; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2656 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2657 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2659 ## -------------------- ##
2660 ## Main body of script. ##
2661 ## -------------------- ##
2664 ac_cpp='$CPP $CPPFLAGS'
2665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670 ac_config_headers="$ac_config_headers include/SDL_config.h"
2673 for ac_dir in build-scripts "$srcdir"/build-scripts; do
2674 if test -f "$ac_dir/install-sh"; then
2676 ac_install_sh="$ac_aux_dir/install-sh -c"
2678 elif test -f "$ac_dir/install.sh"; then
2680 ac_install_sh="$ac_aux_dir/install.sh -c"
2682 elif test -f "$ac_dir/shtool"; then
2684 ac_install_sh="$ac_aux_dir/shtool install -c"
2688 if test -z "$ac_aux_dir"; then
2689 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
2692 # These three variables are undocumented and unsupported,
2693 # and are intended to be withdrawn in a future Autoconf release.
2694 # They can cause serious problems if a builder's source tree is in a directory
2695 # whose full name contains unusual characters.
2696 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2697 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2698 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2703 orig_CFLAGS="$CFLAGS"
2707 # Edit include/SDL_version.h and change the version, then:
2708 # SDL_MICRO_VERSION += 1;
2709 # SDL_INTERFACE_AGE += 1;
2710 # SDL_BINARY_AGE += 1;
2711 # if any functions have been added, set SDL_INTERFACE_AGE to 0.
2712 # if backwards compatibility has been broken,
2713 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
2720 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
2729 # libtool versioning
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2733 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2738 macro_version='2.4.2'
2739 macro_revision='1.3337'
2753 ltmain="$ac_aux_dir/ltmain.sh"
2755 # Make sure we can run config.sub.
2756 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2757 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2760 $as_echo_n "checking build system type... " >&6; }
2761 if ${ac_cv_build+:} false; then :
2762 $as_echo_n "(cached) " >&6
2764 ac_build_alias=$build_alias
2765 test "x$ac_build_alias" = x &&
2766 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2767 test "x$ac_build_alias" = x &&
2768 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2769 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2770 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2774 $as_echo "$ac_cv_build" >&6; }
2775 case $ac_cv_build in
2777 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2780 ac_save_IFS=$IFS; IFS='-'
2786 # Remember, the first character of IFS is used to create $*,
2787 # except with old shells:
2790 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2794 $as_echo_n "checking host system type... " >&6; }
2795 if ${ac_cv_host+:} false; then :
2796 $as_echo_n "(cached) " >&6
2798 if test "x$host_alias" = x; then
2799 ac_cv_host=$ac_cv_build
2801 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2802 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2807 $as_echo "$ac_cv_host" >&6; }
2810 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2813 ac_save_IFS=$IFS; IFS='-'
2819 # Remember, the first character of IFS is used to create $*,
2820 # except with old shells:
2823 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2826 # Backslashify metacharacters that are still active within
2827 # double-quoted strings.
2828 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2830 # Same as above, but do not quote variable references.
2831 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2833 # Sed substitution to delay expansion of an escaped shell variable in a
2834 # double_quote_subst'ed string.
2835 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2837 # Sed substitution to delay expansion of an escaped single quote.
2838 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2840 # Sed substitution to avoid accidental globbing in evaled expressions
2841 no_glob_subst='s/\*/\\\*/g'
2843 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2844 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2845 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2848 $as_echo_n "checking how to print strings... " >&6; }
2849 # Test print first, because it will be a builtin if present.
2850 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2851 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2853 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2856 # Use this function as a fallback that always works.
2857 func_fallback_echo ()
2859 eval 'cat <<_LTECHO_EOF
2863 ECHO='func_fallback_echo'
2866 # func_echo_all arg...
2867 # Invoke $ECHO with all args, space-separated.
2874 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2875 $as_echo "printf" >&6; } ;;
2876 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2877 $as_echo "print -r" >&6; } ;;
2878 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2879 $as_echo "cat" >&6; } ;;
2896 ac_cpp='$CPP $CPPFLAGS'
2897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900 if test -n "$ac_tool_prefix"; then
2901 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2902 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if ${ac_cv_prog_CC+:} false; then :
2906 $as_echo_n "(cached) " >&6
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 if test -n "$CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931 $as_echo "$CC" >&6; }
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2939 if test -z "$ac_cv_prog_CC"; then
2941 # Extract the first word of "gcc", so it can be a program name with args.
2942 set dummy gcc; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2946 $as_echo_n "(cached) " >&6
2948 if test -n "$ac_ct_CC"; then
2949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_ac_ct_CC="gcc"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969 if test -n "$ac_ct_CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2971 $as_echo "$ac_ct_CC" >&6; }
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2977 if test "x$ac_ct_CC" = x; then
2980 case $cross_compiling:$ac_tool_warned in
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984 ac_tool_warned=yes ;;
2992 if test -z "$CC"; then
2993 if test -n "$ac_tool_prefix"; then
2994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2995 set dummy ${ac_tool_prefix}cc; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_CC+:} false; then :
2999 $as_echo_n "(cached) " >&6
3001 if test -n "$CC"; then
3002 ac_cv_prog_CC="$CC" # Let the user override the test.
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011 ac_cv_prog_CC="${ac_tool_prefix}cc"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 if test -n "$CC"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3024 $as_echo "$CC" >&6; }
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3033 if test -z "$CC"; then
3034 # Extract the first word of "cc", so it can be a program name with args.
3035 set dummy cc; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if ${ac_cv_prog_CC+:} false; then :
3039 $as_echo_n "(cached) " >&6
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC="$CC" # Let the user override the test.
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3053 ac_prog_rejected=yes
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 if test $ac_prog_rejected = yes; then
3065 # We found a bogon in the path, so make sure we never use it.
3066 set dummy $ac_cv_prog_CC
3068 if test $# != 0; then
3069 # We chose a different compiler from the bogus one.
3070 # However, it has the same basename, so the bogon will be chosen
3071 # first if we set CC to just the basename; use the full file name.
3073 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3089 if test -z "$CC"; then
3090 if test -n "$ac_tool_prefix"; then
3091 for ac_prog in cl.exe
3093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3130 test -n "$CC" && break
3133 if test -z "$CC"; then
3135 for ac_prog in cl.exe
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$ac_ct_CC"; then
3145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_ac_ct_CC="$ac_prog"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3165 if test -n "$ac_ct_CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3167 $as_echo "$ac_ct_CC" >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$ac_ct_CC" && break
3177 if test "x$ac_ct_CC" = x; then
3180 case $cross_compiling:$ac_tool_warned in
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3184 ac_tool_warned=yes ;;
3193 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error $? "no acceptable C compiler found in \$PATH
3196 See \`config.log' for more details" "$LINENO" 5; }
3198 # Provide some information about the compiler.
3199 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3202 for ac_option in --version -v -V -qversion; do
3203 { { ac_try="$ac_compiler $ac_option >&5"
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3212 if test -s conftest.err; then
3214 ... rest of stderr output deleted ...
3215 10q' conftest.err >conftest.er1
3216 cat conftest.er1 >&5
3218 rm -f conftest.er1 conftest.err
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3234 ac_clean_files_save=$ac_clean_files
3235 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3236 # Try to create an executable without -o first, disregard a.out.
3237 # It will help us diagnose broken compilers, and finding out an intuition
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3240 $as_echo_n "checking whether the C compiler works... " >&6; }
3241 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3243 # The possible output files:
3244 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3247 for ac_file in $ac_files
3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3251 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3256 if { { ac_try="$ac_link_default"
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_link_default") 2>&5
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; then :
3267 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3268 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3269 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3270 # so that the user can short-circuit this test for compilers unknown to
3272 for ac_file in $ac_files ''
3274 test -f "$ac_file" || continue
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3279 # We found the default executable, but exeext='' is most
3283 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3285 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287 # We set ac_cv_exeext here because the later test for it is not
3288 # safe: cross compilers may not add the suffix if given an `-o'
3289 # argument, so we may need to know it at that point already.
3290 # Even if this section looks crufty: it has the advantage of
3297 test "$ac_cv_exeext" = no && ac_cv_exeext=
3302 if test -z "$ac_file"; then :
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 $as_echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310 as_fn_error 77 "C compiler cannot create executables
3311 See \`config.log' for more details" "$LINENO" 5; }
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314 $as_echo "yes" >&6; }
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3317 $as_echo_n "checking for C compiler default output file name... " >&6; }
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3319 $as_echo "$ac_file" >&6; }
3320 ac_exeext=$ac_cv_exeext
3322 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3323 ac_clean_files=$ac_clean_files_save
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3325 $as_echo_n "checking for suffix of executables... " >&6; }
3326 if { { ac_try="$ac_link"
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_link") 2>&5
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
3337 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3338 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3339 # work properly (i.e., refer to `conftest.exe'), while it won't with
3341 for ac_file in conftest.exe conftest conftest.*; do
3342 test -f "$ac_file" || continue
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3345 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3354 See \`config.log' for more details" "$LINENO" 5; }
3356 rm -f conftest conftest$ac_cv_exeext
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3358 $as_echo "$ac_cv_exeext" >&6; }
3360 rm -f conftest.$ac_ext
3361 EXEEXT=$ac_cv_exeext
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3369 FILE *f = fopen ("conftest.out", "w");
3370 return ferror (f) || fclose (f) != 0;
3376 ac_clean_files="$ac_clean_files conftest.out"
3377 # Check that the compiler produces executables we can run. If not, either
3378 # the compiler is broken, or we cross compile.
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3380 $as_echo_n "checking whether we are cross compiling... " >&6; }
3381 if test "$cross_compiling" != yes; then
3382 { { ac_try="$ac_link"
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_link") 2>&5
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }
3393 if { ac_try='./conftest$ac_cv_exeext'
3394 { { case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_try") 2>&5
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; }; then
3406 if test "$cross_compiling" = maybe; then
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error $? "cannot run C compiled programs.
3412 If you meant to cross compile, use \`--host'.
3413 See \`config.log' for more details" "$LINENO" 5; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3418 $as_echo "$cross_compiling" >&6; }
3420 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3421 ac_clean_files=$ac_clean_files_save
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3423 $as_echo_n "checking for suffix of object files... " >&6; }
3424 if ${ac_cv_objext+:} false; then :
3425 $as_echo_n "(cached) " >&6
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3438 rm -f conftest.o conftest.obj
3439 if { { ac_try="$ac_compile"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_compile") 2>&5
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }; then :
3450 for ac_file in conftest.o conftest.obj conftest.*; do
3451 test -f "$ac_file" || continue;
3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3454 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3459 $as_echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 as_fn_error $? "cannot compute suffix of object files: cannot compile
3465 See \`config.log' for more details" "$LINENO" 5; }
3467 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3470 $as_echo "$ac_cv_objext" >&6; }
3471 OBJEXT=$ac_cv_objext
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3474 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3475 if ${ac_cv_c_compiler_gnu+:} false; then :
3476 $as_echo_n "(cached) " >&6
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3492 if ac_fn_c_try_compile "$LINENO"; then :
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3502 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3503 if test $ac_compiler_gnu = yes; then
3508 ac_test_CFLAGS=${CFLAGS+set}
3509 ac_save_CFLAGS=$CFLAGS
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3511 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3512 if ${ac_cv_prog_cc_g+:} false; then :
3513 $as_echo_n "(cached) " >&6
3515 ac_save_c_werror_flag=$ac_c_werror_flag
3516 ac_c_werror_flag=yes
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3530 if ac_fn_c_try_compile "$LINENO"; then :
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3545 if ac_fn_c_try_compile "$LINENO"; then :
3548 ac_c_werror_flag=$ac_save_c_werror_flag
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3561 if ac_fn_c_try_compile "$LINENO"; then :
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 ac_c_werror_flag=$ac_save_c_werror_flag
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3572 $as_echo "$ac_cv_prog_cc_g" >&6; }
3573 if test "$ac_test_CFLAGS" = set; then
3574 CFLAGS=$ac_save_CFLAGS
3575 elif test $ac_cv_prog_cc_g = yes; then
3576 if test "$GCC" = yes; then
3582 if test "$GCC" = yes; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3589 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3590 if ${ac_cv_prog_cc_c89+:} false; then :
3591 $as_echo_n "(cached) " >&6
3593 ac_cv_prog_cc_c89=no
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3600 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3601 struct buf { int x; };
3602 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3603 static char *e (p, i)
3609 static char *f (char * (*g) (char **, int), char **p, ...)
3614 s = g (p, va_arg (v,int));
3619 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3620 function prototypes and stuff, but not '\xHH' hex character constants.
3621 These don't provoke an error unfortunately, instead are silently treated
3622 as 'x'. The following induces an error, until -std is added to get
3623 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3624 array size at least. It's necessary to write '\x00'==0 to get something
3625 that's true only with -std. */
3626 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3628 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3629 inside strings and character constants. */
3631 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3633 int test (int i, double x);
3634 struct s1 {int (*f) (int a);};
3635 struct s2 {int (*f) (double a);};
3636 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3642 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3647 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3648 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3650 CC="$ac_save_CC $ac_arg"
3651 if ac_fn_c_try_compile "$LINENO"; then :
3652 ac_cv_prog_cc_c89=$ac_arg
3654 rm -f core conftest.err conftest.$ac_objext
3655 test "x$ac_cv_prog_cc_c89" != "xno" && break
3657 rm -f conftest.$ac_ext
3662 case "x$ac_cv_prog_cc_c89" in
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3665 $as_echo "none needed" >&6; } ;;
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3668 $as_echo "unsupported" >&6; } ;;
3670 CC="$CC $ac_cv_prog_cc_c89"
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3672 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3674 if test "x$ac_cv_prog_cc_c89" != xno; then :
3679 ac_cpp='$CPP $CPPFLAGS'
3680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3685 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3686 if ${ac_cv_path_SED+:} false; then :
3687 $as_echo_n "(cached) " >&6
3689 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3690 for ac_i in 1 2 3 4 5 6 7; do
3691 ac_script="$ac_script$as_nl$ac_script"
3693 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3694 { ac_script=; unset ac_script;}
3695 if test -z "$SED"; then
3696 ac_path_SED_found=false
3697 # Loop through the user's path and test for each of PROGNAME-LIST
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 test -z "$as_dir" && as_dir=.
3703 for ac_prog in sed gsed; do
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3706 as_fn_executable_p "$ac_path_SED" || continue
3707 # Check for GNU ac_path_SED and select it if it is found.
3708 # Check for GNU $ac_path_SED
3709 case `"$ac_path_SED" --version 2>&1` in
3711 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3714 $as_echo_n 0123456789 >"conftest.in"
3717 cat "conftest.in" "conftest.in" >"conftest.tmp"
3718 mv "conftest.tmp" "conftest.in"
3719 cp "conftest.in" "conftest.nl"
3720 $as_echo '' >> "conftest.nl"
3721 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3723 as_fn_arith $ac_count + 1 && ac_count=$as_val
3724 if test $ac_count -gt ${ac_path_SED_max-0}; then
3725 # Best one so far, save it but keep looking for a better one
3726 ac_cv_path_SED="$ac_path_SED"
3727 ac_path_SED_max=$ac_count
3729 # 10*(2^10) chars as input seems more than enough
3730 test $ac_count -gt 10 && break
3732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3735 $ac_path_SED_found && break 3
3740 if test -z "$ac_cv_path_SED"; then
3741 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3749 $as_echo "$ac_cv_path_SED" >&6; }
3750 SED="$ac_cv_path_SED"
3753 test -z "$SED" && SED=sed
3754 Xsed="$SED -e 1s/^X//"
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3767 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3768 if ${ac_cv_path_GREP+:} false; then :
3769 $as_echo_n "(cached) " >&6
3771 if test -z "$GREP"; then
3772 ac_path_GREP_found=false
3773 # Loop through the user's path and test for each of PROGNAME-LIST
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3778 test -z "$as_dir" && as_dir=.
3779 for ac_prog in grep ggrep; do
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3782 as_fn_executable_p "$ac_path_GREP" || continue
3783 # Check for GNU ac_path_GREP and select it if it is found.
3784 # Check for GNU $ac_path_GREP
3785 case `"$ac_path_GREP" --version 2>&1` in
3787 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3790 $as_echo_n 0123456789 >"conftest.in"
3793 cat "conftest.in" "conftest.in" >"conftest.tmp"
3794 mv "conftest.tmp" "conftest.in"
3795 cp "conftest.in" "conftest.nl"
3796 $as_echo 'GREP' >> "conftest.nl"
3797 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3798 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3799 as_fn_arith $ac_count + 1 && ac_count=$as_val
3800 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3801 # Best one so far, save it but keep looking for a better one
3802 ac_cv_path_GREP="$ac_path_GREP"
3803 ac_path_GREP_max=$ac_count
3805 # 10*(2^10) chars as input seems more than enough
3806 test $ac_count -gt 10 && break
3808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3811 $ac_path_GREP_found && break 3
3816 if test -z "$ac_cv_path_GREP"; then
3817 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3820 ac_cv_path_GREP=$GREP
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3825 $as_echo "$ac_cv_path_GREP" >&6; }
3826 GREP="$ac_cv_path_GREP"
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3830 $as_echo_n "checking for egrep... " >&6; }
3831 if ${ac_cv_path_EGREP+:} false; then :
3832 $as_echo_n "(cached) " >&6
3834 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3835 then ac_cv_path_EGREP="$GREP -E"
3837 if test -z "$EGREP"; then
3838 ac_path_EGREP_found=false
3839 # Loop through the user's path and test for each of PROGNAME-LIST
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3844 test -z "$as_dir" && as_dir=.
3845 for ac_prog in egrep; do
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3848 as_fn_executable_p "$ac_path_EGREP" || continue
3849 # Check for GNU ac_path_EGREP and select it if it is found.
3850 # Check for GNU $ac_path_EGREP
3851 case `"$ac_path_EGREP" --version 2>&1` in
3853 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3856 $as_echo_n 0123456789 >"conftest.in"
3859 cat "conftest.in" "conftest.in" >"conftest.tmp"
3860 mv "conftest.tmp" "conftest.in"
3861 cp "conftest.in" "conftest.nl"
3862 $as_echo 'EGREP' >> "conftest.nl"
3863 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3865 as_fn_arith $ac_count + 1 && ac_count=$as_val
3866 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3867 # Best one so far, save it but keep looking for a better one
3868 ac_cv_path_EGREP="$ac_path_EGREP"
3869 ac_path_EGREP_max=$ac_count
3871 # 10*(2^10) chars as input seems more than enough
3872 test $ac_count -gt 10 && break
3874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3877 $ac_path_EGREP_found && break 3
3882 if test -z "$ac_cv_path_EGREP"; then
3883 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3886 ac_cv_path_EGREP=$EGREP
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3892 $as_echo "$ac_cv_path_EGREP" >&6; }
3893 EGREP="$ac_cv_path_EGREP"
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3897 $as_echo_n "checking for fgrep... " >&6; }
3898 if ${ac_cv_path_FGREP+:} false; then :
3899 $as_echo_n "(cached) " >&6
3901 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3902 then ac_cv_path_FGREP="$GREP -F"
3904 if test -z "$FGREP"; then
3905 ac_path_FGREP_found=false
3906 # Loop through the user's path and test for each of PROGNAME-LIST
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3911 test -z "$as_dir" && as_dir=.
3912 for ac_prog in fgrep; do
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3915 as_fn_executable_p "$ac_path_FGREP" || continue
3916 # Check for GNU ac_path_FGREP and select it if it is found.
3917 # Check for GNU $ac_path_FGREP
3918 case `"$ac_path_FGREP" --version 2>&1` in
3920 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3923 $as_echo_n 0123456789 >"conftest.in"
3926 cat "conftest.in" "conftest.in" >"conftest.tmp"
3927 mv "conftest.tmp" "conftest.in"
3928 cp "conftest.in" "conftest.nl"
3929 $as_echo 'FGREP' >> "conftest.nl"
3930 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3932 as_fn_arith $ac_count + 1 && ac_count=$as_val
3933 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3934 # Best one so far, save it but keep looking for a better one
3935 ac_cv_path_FGREP="$ac_path_FGREP"
3936 ac_path_FGREP_max=$ac_count
3938 # 10*(2^10) chars as input seems more than enough
3939 test $ac_count -gt 10 && break
3941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3944 $ac_path_FGREP_found && break 3
3949 if test -z "$ac_cv_path_FGREP"; then
3950 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3953 ac_cv_path_FGREP=$FGREP
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3959 $as_echo "$ac_cv_path_FGREP" >&6; }
3960 FGREP="$ac_cv_path_FGREP"
3963 test -z "$GREP" && GREP=grep
3983 # Check whether --with-gnu-ld was given.
3984 if test "${with_gnu_ld+set}" = set; then :
3985 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3991 if test "$GCC" = yes; then
3992 # Check if gcc -print-prog-name=ld gives a path.
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3994 $as_echo_n "checking for ld used by $CC... " >&6; }
3997 # gcc leaves a trailing carriage return which upsets mingw
3998 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4000 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4003 # Accept absolute paths.
4005 re_direlt='/[^/][^/]*/\.\./'
4006 # Canonicalize the pathname of ld
4007 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4008 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4009 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4011 test -z "$LD" && LD="$ac_prog"
4014 # If it fails, then pretend we aren't using GCC.
4018 # If it is relative, then search for the first ld in PATH.
4022 elif test "$with_gnu_ld" = yes; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4024 $as_echo_n "checking for GNU ld... " >&6; }
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4027 $as_echo_n "checking for non-GNU ld... " >&6; }
4029 if ${lt_cv_path_LD+:} false; then :
4030 $as_echo_n "(cached) " >&6
4032 if test -z "$LD"; then
4033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4034 for ac_dir in $PATH; do
4036 test -z "$ac_dir" && ac_dir=.
4037 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4038 lt_cv_path_LD="$ac_dir/$ac_prog"
4039 # Check to see if the program is GNU ld. I'd rather use --version,
4040 # but apparently some variants of GNU ld only accept -v.
4041 # Break only if it was the GNU/non-GNU ld that we prefer.
4042 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4043 *GNU* | *'with BFD'*)
4044 test "$with_gnu_ld" != no && break
4047 test "$with_gnu_ld" != yes && break
4054 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4059 if test -n "$LD"; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4061 $as_echo "$LD" >&6; }
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 $as_echo "no" >&6; }
4066 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4068 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4069 if ${lt_cv_prog_gnu_ld+:} false; then :
4070 $as_echo_n "(cached) " >&6
4072 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4073 case `$LD -v 2>&1 </dev/null` in
4074 *GNU* | *'with BFD'*)
4075 lt_cv_prog_gnu_ld=yes
4078 lt_cv_prog_gnu_ld=no
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4083 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4084 with_gnu_ld=$lt_cv_prog_gnu_ld
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4095 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4096 if ${lt_cv_path_NM+:} false; then :
4097 $as_echo_n "(cached) " >&6
4099 if test -n "$NM"; then
4100 # Let the user override the test.
4103 lt_nm_to_check="${ac_tool_prefix}nm"
4104 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4105 lt_nm_to_check="$lt_nm_to_check nm"
4107 for lt_tmp_nm in $lt_nm_to_check; do
4108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4109 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4111 test -z "$ac_dir" && ac_dir=.
4112 tmp_nm="$ac_dir/$lt_tmp_nm"
4113 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4114 # Check to see if the nm accepts a BSD-compat flag.
4115 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4116 # nm: unknown option "B" ignored
4117 # Tru64's nm complains that /dev/null is an invalid object file
4118 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4119 */dev/null* | *'Invalid file or object type'*)
4120 lt_cv_path_NM="$tmp_nm -B"
4124 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4126 lt_cv_path_NM="$tmp_nm -p"
4130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4131 continue # so that we can try to find one that supports BSD flags
4140 : ${lt_cv_path_NM=no}
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4144 $as_echo "$lt_cv_path_NM" >&6; }
4145 if test "$lt_cv_path_NM" != "no"; then
4148 # Didn't find any BSD compatible name lister, look for dumpbin.
4149 if test -n "$DUMPBIN"; then :
4150 # Let the user override the test.
4152 if test -n "$ac_tool_prefix"; then
4153 for ac_prog in dumpbin "link -dump"
4155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158 $as_echo_n "checking for $ac_word... " >&6; }
4159 if ${ac_cv_prog_DUMPBIN+:} false; then :
4160 $as_echo_n "(cached) " >&6
4162 if test -n "$DUMPBIN"; then
4163 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 DUMPBIN=$ac_cv_prog_DUMPBIN
4183 if test -n "$DUMPBIN"; then
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4185 $as_echo "$DUMPBIN" >&6; }
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 $as_echo "no" >&6; }
4192 test -n "$DUMPBIN" && break
4195 if test -z "$DUMPBIN"; then
4196 ac_ct_DUMPBIN=$DUMPBIN
4197 for ac_prog in dumpbin "link -dump"
4199 # Extract the first word of "$ac_prog", so it can be a program name with args.
4200 set dummy $ac_prog; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4204 $as_echo_n "(cached) " >&6
4206 if test -n "$ac_ct_DUMPBIN"; then
4207 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4216 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4227 if test -n "$ac_ct_DUMPBIN"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4229 $as_echo "$ac_ct_DUMPBIN" >&6; }
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4236 test -n "$ac_ct_DUMPBIN" && break
4239 if test "x$ac_ct_DUMPBIN" = x; then
4242 case $cross_compiling:$ac_tool_warned in
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4246 ac_tool_warned=yes ;;
4248 DUMPBIN=$ac_ct_DUMPBIN
4252 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4254 DUMPBIN="$DUMPBIN -symbols"
4262 if test "$DUMPBIN" != ":"; then
4266 test -z "$NM" && NM=nm
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4274 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4275 if ${lt_cv_nm_interface+:} false; then :
4276 $as_echo_n "(cached) " >&6
4278 lt_cv_nm_interface="BSD nm"
4279 echo "int some_variable = 0;" > conftest.$ac_ext
4280 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4281 (eval "$ac_compile" 2>conftest.err)
4282 cat conftest.err >&5
4283 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4284 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4285 cat conftest.err >&5
4286 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4287 cat conftest.out >&5
4288 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4289 lt_cv_nm_interface="MS dumpbin"
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4294 $as_echo "$lt_cv_nm_interface" >&6; }
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4297 $as_echo_n "checking whether ln -s works... " >&6; }
4299 if test "$LN_S" = "ln -s"; then
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4301 $as_echo "yes" >&6; }
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4304 $as_echo "no, using $LN_S" >&6; }
4307 # find the maximum length of command line arguments
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4309 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4310 if ${lt_cv_sys_max_cmd_len+:} false; then :
4311 $as_echo_n "(cached) " >&6
4318 # On DJGPP, this test can blow up pretty badly due to problems in libc
4319 # (any single argument exceeding 2000 bytes causes a buffer overrun
4320 # during glob expansion). Even if it were fixed, the result of this
4321 # check would be larger than it should be.
4322 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4326 # Under GNU Hurd, this test is not required because there is
4327 # no limit to the length of command line arguments.
4328 # Libtool will interpret -1 as no limit whatsoever
4329 lt_cv_sys_max_cmd_len=-1;
4332 cygwin* | mingw* | cegcc*)
4333 # On Win9x/ME, this test blows up -- it succeeds, but takes
4334 # about 5 minutes as the teststring grows exponentially.
4335 # Worse, since 9x/ME are not pre-emptively multitasking,
4336 # you end up with a "frozen" computer, even though with patience
4337 # the test eventually succeeds (with a max line length of 256k).
4338 # Instead, let's just punt: use the minimum linelength reported by
4339 # all of the supported platforms: 8192 (on NT/2K/XP).
4340 lt_cv_sys_max_cmd_len=8192;
4344 # On MiNT this can take a long time and run out of memory.
4345 lt_cv_sys_max_cmd_len=8192;
4349 # On AmigaOS with pdksh, this test takes hours, literally.
4350 # So we just punt and use a minimum line length of 8192.
4351 lt_cv_sys_max_cmd_len=8192;
4354 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4355 # This has been around since 386BSD, at least. Likely further.
4356 if test -x /sbin/sysctl; then
4357 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4358 elif test -x /usr/sbin/sysctl; then
4359 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4361 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4363 # And add a safety zone
4364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4365 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4369 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4370 lt_cv_sys_max_cmd_len=196608
4374 # The test takes a long time on OS/2.
4375 lt_cv_sys_max_cmd_len=8192
4379 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4380 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4381 # nice to cause kernel panics so lets avoid the loop below.
4382 # First set a reasonable default.
4383 lt_cv_sys_max_cmd_len=16384
4385 if test -x /sbin/sysconfig; then
4386 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4387 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4392 lt_cv_sys_max_cmd_len=102400
4394 sysv5* | sco5v6* | sysv4.2uw2*)
4395 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4396 if test -n "$kargmax"; then
4397 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4399 lt_cv_sys_max_cmd_len=32768
4403 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4404 if test -n "$lt_cv_sys_max_cmd_len"; then
4405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4408 # Make teststring a little bigger before we do anything with it.
4409 # a 1K string should be a reasonable start.
4410 for i in 1 2 3 4 5 6 7 8 ; do
4411 teststring=$teststring$teststring
4413 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4414 # If test is not a shell built-in, we'll probably end up computing a
4415 # maximum length that is only half of the actual maximum length, but
4417 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4418 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4419 test $i != 17 # 1/2 MB should be enough
4422 teststring=$teststring$teststring
4424 # Only check the string length outside the loop.
4425 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4427 # Add a significant safety factor because C++ compilers can tack on
4428 # massive amounts of additional arguments before passing them to the
4429 # linker. It appears as though 1/2 is a usable value.
4430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4437 if test -n $lt_cv_sys_max_cmd_len ; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4439 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4442 $as_echo "none" >&6; }
4444 max_cmd_len=$lt_cv_sys_max_cmd_len
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4456 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4457 # Try some XSI features
4460 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4462 && eval 'test $(( 1 + 1 )) -eq 2 \
4463 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4466 $as_echo "$xsi_shell" >&6; }
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4470 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4472 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4474 && lt_shell_append=yes
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4476 $as_echo "$lt_shell_append" >&6; }
4479 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4489 # test EBCDIC or ASCII
4490 case `echo X|tr X '\101'` in
4491 A) # ASCII based system
4492 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4493 lt_SP2NL='tr \040 \012'
4494 lt_NL2SP='tr \015\012 \040\040'
4496 *) # EBCDIC based system
4497 lt_SP2NL='tr \100 \n'
4498 lt_NL2SP='tr \r\n \100\100'
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4511 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4512 if ${lt_cv_to_host_file_cmd+:} false; then :
4513 $as_echo_n "(cached) " >&6
4518 *-*-mingw* ) # actually msys
4519 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4522 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4524 * ) # otherwise, assume *nix
4525 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4531 *-*-mingw* ) # actually msys
4532 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4535 lt_cv_to_host_file_cmd=func_convert_file_noop
4537 * ) # otherwise, assume *nix
4538 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4542 * ) # unhandled hosts (and "normal" native builds)
4543 lt_cv_to_host_file_cmd=func_convert_file_noop
4549 to_host_file_cmd=$lt_cv_to_host_file_cmd
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4551 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4558 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4559 if ${lt_cv_to_tool_file_cmd+:} false; then :
4560 $as_echo_n "(cached) " >&6
4562 #assume ordinary cross tools, or native build.
4563 lt_cv_to_tool_file_cmd=func_convert_file_noop
4567 *-*-mingw* ) # actually msys
4568 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4576 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4578 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4585 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4586 if ${lt_cv_ld_reload_flag+:} false; then :
4587 $as_echo_n "(cached) " >&6
4589 lt_cv_ld_reload_flag='-r'
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4592 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4593 reload_flag=$lt_cv_ld_reload_flag
4594 case $reload_flag in
4596 *) reload_flag=" $reload_flag" ;;
4598 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4600 cygwin* | mingw* | pw32* | cegcc*)
4601 if test "$GCC" != yes; then
4606 if test "$GCC" = yes; then
4607 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4609 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4622 if test -n "$ac_tool_prefix"; then
4623 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4624 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626 $as_echo_n "checking for $ac_word... " >&6; }
4627 if ${ac_cv_prog_OBJDUMP+:} false; then :
4628 $as_echo_n "(cached) " >&6
4630 if test -n "$OBJDUMP"; then
4631 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 OBJDUMP=$ac_cv_prog_OBJDUMP
4651 if test -n "$OBJDUMP"; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4653 $as_echo "$OBJDUMP" >&6; }
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 $as_echo "no" >&6; }
4661 if test -z "$ac_cv_prog_OBJDUMP"; then
4662 ac_ct_OBJDUMP=$OBJDUMP
4663 # Extract the first word of "objdump", so it can be a program name with args.
4664 set dummy objdump; ac_word=$2
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4668 $as_echo_n "(cached) " >&6
4670 if test -n "$ac_ct_OBJDUMP"; then
4671 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4691 if test -n "$ac_ct_OBJDUMP"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4693 $as_echo "$ac_ct_OBJDUMP" >&6; }
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4699 if test "x$ac_ct_OBJDUMP" = x; then
4702 case $cross_compiling:$ac_tool_warned in
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4706 ac_tool_warned=yes ;;
4708 OBJDUMP=$ac_ct_OBJDUMP
4711 OBJDUMP="$ac_cv_prog_OBJDUMP"
4714 test -z "$OBJDUMP" && OBJDUMP=objdump
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4722 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4723 if ${lt_cv_deplibs_check_method+:} false; then :
4724 $as_echo_n "(cached) " >&6
4726 lt_cv_file_magic_cmd='$MAGIC_CMD'
4727 lt_cv_file_magic_test_file=
4728 lt_cv_deplibs_check_method='unknown'
4729 # Need to set the preceding variable on all platforms that support
4730 # interlibrary dependencies.
4731 # 'none' -- dependencies not supported.
4732 # `unknown' -- same as none, but documents that we really don't know.
4733 # 'pass_all' -- all dependencies passed with no checks.
4734 # 'test_compile' -- check by making test program.
4735 # 'file_magic [[regex]]' -- check by looking for files in library path
4736 # which responds to the $file_magic_cmd with a given extended regex.
4737 # If you have `file' or equivalent on your system and you're not sure
4738 # whether `pass_all' will *always* work, you probably want this one.
4742 lt_cv_deplibs_check_method=pass_all
4746 lt_cv_deplibs_check_method=pass_all
4750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4751 lt_cv_file_magic_cmd='/usr/bin/file -L'
4752 lt_cv_file_magic_test_file=/shlib/libc.so
4756 # func_win32_libid is a shell function defined in ltmain.sh
4757 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4758 lt_cv_file_magic_cmd='func_win32_libid'
4759 lt_cv_deplibs_check_method=pass_all
4763 # Base MSYS/MinGW do not provide the 'file' command needed by
4764 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4765 # unless we find 'file', for example because we are cross-compiling.
4766 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4767 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4768 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4769 lt_cv_file_magic_cmd='func_win32_libid'
4771 # Keep this pattern in sync with the one in func_win32_libid.
4772 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4773 lt_cv_file_magic_cmd='$OBJDUMP -f'
4775 lt_cv_deplibs_check_method=pass_all
4779 # use the weaker test based on 'objdump'. See mingw*.
4780 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4781 lt_cv_file_magic_cmd='$OBJDUMP -f'
4784 darwin* | rhapsody*)
4785 lt_cv_deplibs_check_method=pass_all
4788 freebsd* | dragonfly*)
4789 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4792 # Not sure whether the presence of OpenBSD here was a mistake.
4793 # Let's accept both of them until this is cleared up.
4794 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4795 lt_cv_file_magic_cmd=/usr/bin/file
4796 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4800 lt_cv_deplibs_check_method=pass_all
4805 lt_cv_deplibs_check_method=pass_all
4809 lt_cv_deplibs_check_method=pass_all
4812 hpux10.20* | hpux11*)
4813 lt_cv_file_magic_cmd=/usr/bin/file
4816 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4817 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4820 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]'
4821 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4824 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4825 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4831 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4835 irix5* | irix6* | nonstopux*)
4837 *-32|*"-32 ") libmagic=32-bit;;
4838 *-n32|*"-n32 ") libmagic=N32;;
4839 *-64|*"-64 ") libmagic=64-bit;;
4840 *) libmagic=never-match;;
4842 lt_cv_deplibs_check_method=pass_all
4845 # This must be glibc/ELF.
4846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4847 lt_cv_deplibs_check_method=pass_all
4851 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4860 lt_cv_file_magic_cmd=/usr/bin/file
4861 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4865 lt_cv_deplibs_check_method=pass_all
4869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4870 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4876 osf3* | osf4* | osf5*)
4877 lt_cv_deplibs_check_method=pass_all
4881 lt_cv_deplibs_check_method=pass_all
4885 lt_cv_deplibs_check_method=pass_all
4888 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4889 lt_cv_deplibs_check_method=pass_all
4893 case $host_vendor in
4895 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]'
4896 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4899 lt_cv_deplibs_check_method=pass_all
4902 lt_cv_file_magic_cmd='/bin/file'
4903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4906 lt_cv_file_magic_cmd='/bin/file'
4907 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4908 lt_cv_file_magic_test_file=/lib/libc.so
4911 lt_cv_deplibs_check_method=pass_all
4914 lt_cv_deplibs_check_method=pass_all
4920 lt_cv_deplibs_check_method=pass_all
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4926 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4930 if test "$build" = "$host"; then
4933 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4936 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4942 file_magic_cmd=$lt_cv_file_magic_cmd
4943 deplibs_check_method=$lt_cv_deplibs_check_method
4944 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4967 if test -n "$ac_tool_prefix"; then
4968 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4969 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if ${ac_cv_prog_DLLTOOL+:} false; then :
4973 $as_echo_n "(cached) " >&6
4975 if test -n "$DLLTOOL"; then
4976 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 DLLTOOL=$ac_cv_prog_DLLTOOL
4996 if test -n "$DLLTOOL"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4998 $as_echo "$DLLTOOL" >&6; }
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5006 if test -z "$ac_cv_prog_DLLTOOL"; then
5007 ac_ct_DLLTOOL=$DLLTOOL
5008 # Extract the first word of "dlltool", so it can be a program name with args.
5009 set dummy dlltool; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5013 $as_echo_n "(cached) " >&6
5015 if test -n "$ac_ct_DLLTOOL"; then
5016 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5036 if test -n "$ac_ct_DLLTOOL"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5038 $as_echo "$ac_ct_DLLTOOL" >&6; }
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5044 if test "x$ac_ct_DLLTOOL" = x; then
5047 case $cross_compiling:$ac_tool_warned in
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5051 ac_tool_warned=yes ;;
5053 DLLTOOL=$ac_ct_DLLTOOL
5056 DLLTOOL="$ac_cv_prog_DLLTOOL"
5059 test -z "$DLLTOOL" && DLLTOOL=dlltool
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5068 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5069 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5070 $as_echo_n "(cached) " >&6
5072 lt_cv_sharedlib_from_linklib_cmd='unknown'
5075 cygwin* | mingw* | pw32* | cegcc*)
5076 # two different shell functions defined in ltmain.sh
5077 # decide which to use based on capabilities of $DLLTOOL
5078 case `$DLLTOOL --help 2>&1` in
5079 *--identify-strict*)
5080 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5083 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5088 # fallback: assume linklib IS sharedlib
5089 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5095 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5096 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5097 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5106 if test -n "$ac_tool_prefix"; then
5109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if ${ac_cv_prog_AR+:} false; then :
5114 $as_echo_n "(cached) " >&6
5116 if test -n "$AR"; then
5117 ac_cv_prog_AR="$AR" # Let the user override the test.
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 if test -n "$AR"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5139 $as_echo "$AR" >&6; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5146 test -n "$AR" && break
5149 if test -z "$AR"; then
5153 # Extract the first word of "$ac_prog", so it can be a program name with args.
5154 set dummy $ac_prog; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5158 $as_echo_n "(cached) " >&6
5160 if test -n "$ac_ct_AR"; then
5161 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_prog_ac_ct_AR="$ac_prog"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5181 if test -n "$ac_ct_AR"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5183 $as_echo "$ac_ct_AR" >&6; }
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5190 test -n "$ac_ct_AR" && break
5193 if test "x$ac_ct_AR" = x; then
5196 case $cross_compiling:$ac_tool_warned in
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5200 ac_tool_warned=yes ;;
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5220 $as_echo_n "checking for archiver @FILE support... " >&6; }
5221 if ${lt_cv_ar_at_file+:} false; then :
5222 $as_echo_n "(cached) " >&6
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5236 if ac_fn_c_try_compile "$LINENO"; then :
5237 echo conftest.$ac_objext > conftest.lst
5238 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5240 (eval $lt_ar_try) 2>&5
5242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5243 test $ac_status = 0; }
5244 if test "$ac_status" -eq 0; then
5245 # Ensure the archiver fails upon bogus file names.
5246 rm -f conftest.$ac_objext libconftest.a
5247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5248 (eval $lt_ar_try) 2>&5
5250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5251 test $ac_status = 0; }
5252 if test "$ac_status" -ne 0; then
5256 rm -f conftest.* libconftest.a
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5263 $as_echo "$lt_cv_ar_at_file" >&6; }
5265 if test "x$lt_cv_ar_at_file" = xno; then
5268 archiver_list_spec=$lt_cv_ar_at_file
5277 if test -n "$ac_tool_prefix"; then
5278 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5279 set dummy ${ac_tool_prefix}strip; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if ${ac_cv_prog_STRIP+:} false; then :
5283 $as_echo_n "(cached) " >&6
5285 if test -n "$STRIP"; then
5286 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 STRIP=$ac_cv_prog_STRIP
5306 if test -n "$STRIP"; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5308 $as_echo "$STRIP" >&6; }
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5316 if test -z "$ac_cv_prog_STRIP"; then
5318 # Extract the first word of "strip", so it can be a program name with args.
5319 set dummy strip; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5323 $as_echo_n "(cached) " >&6
5325 if test -n "$ac_ct_STRIP"; then
5326 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335 ac_cv_prog_ac_ct_STRIP="strip"
5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5346 if test -n "$ac_ct_STRIP"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5348 $as_echo "$ac_ct_STRIP" >&6; }
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5354 if test "x$ac_ct_STRIP" = x; then
5357 case $cross_compiling:$ac_tool_warned in
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5361 ac_tool_warned=yes ;;
5366 STRIP="$ac_cv_prog_STRIP"
5369 test -z "$STRIP" && STRIP=:
5376 if test -n "$ac_tool_prefix"; then
5377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5378 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_prog_RANLIB+:} false; then :
5382 $as_echo_n "(cached) " >&6
5384 if test -n "$RANLIB"; then
5385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 RANLIB=$ac_cv_prog_RANLIB
5405 if test -n "$RANLIB"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5407 $as_echo "$RANLIB" >&6; }
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5415 if test -z "$ac_cv_prog_RANLIB"; then
5416 ac_ct_RANLIB=$RANLIB
5417 # Extract the first word of "ranlib", so it can be a program name with args.
5418 set dummy ranlib; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5422 $as_echo_n "(cached) " >&6
5424 if test -n "$ac_ct_RANLIB"; then
5425 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434 ac_cv_prog_ac_ct_RANLIB="ranlib"
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5445 if test -n "$ac_ct_RANLIB"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5447 $as_echo "$ac_ct_RANLIB" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5453 if test "x$ac_ct_RANLIB" = x; then
5456 case $cross_compiling:$ac_tool_warned in
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5460 ac_tool_warned=yes ;;
5462 RANLIB=$ac_ct_RANLIB
5465 RANLIB="$ac_cv_prog_RANLIB"
5468 test -z "$RANLIB" && RANLIB=:
5475 # Determine commands to create old-style static archives.
5476 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5477 old_postinstall_cmds='chmod 644 $oldlib'
5478 old_postuninstall_cmds=
5480 if test -n "$RANLIB"; then
5483 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5486 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5489 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5494 lock_old_archive_extraction=yes ;;
5496 lock_old_archive_extraction=no ;;
5519 for ac_prog in gawk mawk nawk awk
5521 # Extract the first word of "$ac_prog", so it can be a program name with args.
5522 set dummy $ac_prog; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_prog_AWK+:} false; then :
5526 $as_echo_n "(cached) " >&6
5528 if test -n "$AWK"; then
5529 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538 ac_cv_prog_AWK="$ac_prog"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 if test -n "$AWK"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5551 $as_echo "$AWK" >&6; }
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5558 test -n "$AWK" && break
5579 # If no C compiler was specified, use CC.
5582 # If no C compiler flags were specified, use CFLAGS.
5583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5585 # Allow CC to be a program name with arguments.
5589 # Check for command to grab the raw symbol name followed by C symbol from nm.
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5591 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5592 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5593 $as_echo_n "(cached) " >&6
5596 # These are sane defaults that work on at least a few old systems.
5597 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5599 # Character class describing NM global symbol codes.
5600 symcode='[BCDEGRST]'
5602 # Regexp to match symbols that can be accessed directly from C.
5603 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5605 # Define system-specific variables.
5610 cygwin* | mingw* | pw32* | cegcc*)
5611 symcode='[ABCDGISTW]'
5614 if test "$host_cpu" = ia64; then
5615 symcode='[ABCDEGRST]'
5619 symcode='[BCDEGRST]'
5622 symcode='[BCDEGQRST]'
5633 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5641 # If we're using GNU nm, then use its standard symbol codes.
5642 case `$NM -V 2>&1` in
5643 *GNU* | *'with BFD'*)
5644 symcode='[ABCDGIRSTW]' ;;
5647 # Transform an extracted symbol line into a proper C declaration.
5648 # Some systems (esp. on ia64) link data and code symbols differently,
5649 # so use this general approach.
5650 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5652 # Transform an extracted symbol line into symbol name and symbol address
5653 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5654 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'"
5656 # Handle CRLF in mingw tool chain
5660 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5664 # Try without a prefix underscore, then with it.
5665 for ac_symprfx in "" "_"; do
5667 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5668 symxfrm="\\1 $ac_symprfx\\2 \\2"
5670 # Write the raw and C identifiers.
5671 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5672 # Fake it for dumpbin and say T for any non-static function
5673 # and D for any global variable.
5674 # Also find C++ and __fastcall symbols from MSVC++,
5675 # which start with @ or ?.
5676 lt_cv_sys_global_symbol_pipe="$AWK '"\
5677 " {last_section=section; section=\$ 3};"\
5678 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5679 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5680 " \$ 0!~/External *\|/{next};"\
5681 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5682 " {if(hide[section]) next};"\
5683 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5684 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5685 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5686 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5687 " ' prfx=^$ac_symprfx"
5689 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5691 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5693 # Check to see that the pipe works correctly.
5697 cat > conftest.$ac_ext <<_LT_EOF
5702 void nm_test_func(void);
5703 void nm_test_func(void){}
5707 int main(){nm_test_var='a';nm_test_func();return(0);}
5710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5711 (eval $ac_compile) 2>&5
5713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5714 test $ac_status = 0; }; then
5715 # Now try to grab the symbols.
5717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5718 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5721 test $ac_status = 0; } && test -s "$nlist"; then
5722 # Try sorting and uniquifying the output.
5723 if sort "$nlist" | uniq > "$nlist"T; then
5724 mv -f "$nlist"T "$nlist"
5729 # Make sure that we snagged all the symbols we need.
5730 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5731 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5732 cat <<_LT_EOF > conftest.$ac_ext
5733 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5734 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5735 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5736 relocations are performed -- see ld's documentation on pseudo-relocs. */
5737 # define LT_DLSYM_CONST
5738 #elif defined(__osf__)
5739 /* This system does not cope well with relocations in const data. */
5740 # define LT_DLSYM_CONST
5742 # define LT_DLSYM_CONST const
5750 # Now generate the symbol file.
5751 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5753 cat <<_LT_EOF >> conftest.$ac_ext
5755 /* The mapping between symbol names and symbols. */
5756 LT_DLSYM_CONST struct {
5760 lt__PROGRAM__LTX_preloaded_symbols[] =
5762 { "@PROGRAM@", (void *) 0 },
5764 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5765 cat <<\_LT_EOF >> conftest.$ac_ext
5769 /* This works around a problem in FreeBSD linker */
5770 #ifdef FREEBSD_WORKAROUND
5771 static const void *lt_preloaded_setup() {
5772 return lt__PROGRAM__LTX_preloaded_symbols;
5780 # Now try linking the two files.
5781 mv conftest.$ac_objext conftstm.$ac_objext
5782 lt_globsym_save_LIBS=$LIBS
5783 lt_globsym_save_CFLAGS=$CFLAGS
5784 LIBS="conftstm.$ac_objext"
5785 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5787 (eval $ac_link) 2>&5
5789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5790 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5793 LIBS=$lt_globsym_save_LIBS
5794 CFLAGS=$lt_globsym_save_CFLAGS
5796 echo "cannot find nm_test_func in $nlist" >&5
5799 echo "cannot find nm_test_var in $nlist" >&5
5802 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5805 echo "$progname: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5808 rm -rf conftest* conftst*
5810 # Do not use the global_symbol_pipe unless it works.
5811 if test "$pipe_works" = yes; then
5814 lt_cv_sys_global_symbol_pipe=
5820 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5821 lt_cv_sys_global_symbol_to_cdecl=
5823 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5825 $as_echo "failed" >&6; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5828 $as_echo "ok" >&6; }
5831 # Response file support.
5832 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5833 nm_file_list_spec='@'
5834 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5835 nm_file_list_spec='@'
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5865 $as_echo_n "checking for sysroot... " >&6; }
5867 # Check whether --with-sysroot was given.
5868 if test "${with_sysroot+set}" = set; then :
5869 withval=$with_sysroot;
5876 case ${with_sysroot} in #(
5878 if test "$GCC" = yes; then
5879 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5883 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5889 $as_echo "${with_sysroot}" >&6; }
5890 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5895 $as_echo "${lt_sysroot:-no}" >&6; }
5901 # Check whether --enable-libtool-lock was given.
5902 if test "${enable_libtool_lock+set}" = set; then :
5903 enableval=$enable_libtool_lock;
5906 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5908 # Some flags need to be propagated to the compiler or linker for good
5912 # Find out which ABI we are using.
5913 echo 'int i;' > conftest.$ac_ext
5914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5915 (eval $ac_compile) 2>&5
5917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5918 test $ac_status = 0; }; then
5919 case `/usr/bin/file conftest.$ac_objext` in
5931 # Find out which ABI we are using.
5932 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5934 (eval $ac_compile) 2>&5
5936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937 test $ac_status = 0; }; then
5938 if test "$lt_cv_prog_gnu_ld" = yes; then
5939 case `/usr/bin/file conftest.$ac_objext` in
5941 LD="${LD-ld} -melf32bsmip"
5944 LD="${LD-ld} -melf32bmipn32"
5947 LD="${LD-ld} -melf64bmip"
5951 case `/usr/bin/file conftest.$ac_objext` in
5967 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5968 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5969 # Find out which ABI we are using.
5970 echo 'int i;' > conftest.$ac_ext
5971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5972 (eval $ac_compile) 2>&5
5974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5975 test $ac_status = 0; }; then
5976 case `/usr/bin/file conftest.o` in
5979 x86_64-*kfreebsd*-gnu)
5980 LD="${LD-ld} -m elf_i386_fbsd"
5983 LD="${LD-ld} -m elf_i386"
5985 ppc64-*linux*|powerpc64-*linux*)
5986 LD="${LD-ld} -m elf32ppclinux"
5989 LD="${LD-ld} -m elf_s390"
5992 LD="${LD-ld} -m elf32_sparc"
5998 x86_64-*kfreebsd*-gnu)
5999 LD="${LD-ld} -m elf_x86_64_fbsd"
6002 LD="${LD-ld} -m elf_x86_64"
6004 powerpc64le-*linux*)
6005 LD="${LD-ld} -m elf64lppc"
6008 LD="${LD-ld} -m elf64ppc"
6010 s390*-*linux*|s390*-*tpf*)
6011 LD="${LD-ld} -m elf64_s390"
6014 LD="${LD-ld} -m elf64_sparc"
6024 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6025 SAVE_CFLAGS="$CFLAGS"
6026 CFLAGS="$CFLAGS -belf"
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6028 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6029 if ${lt_cv_cc_needs_belf+:} false; then :
6030 $as_echo_n "(cached) " >&6
6033 ac_cpp='$CPP $CPPFLAGS'
6034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6049 if ac_fn_c_try_link "$LINENO"; then :
6050 lt_cv_cc_needs_belf=yes
6052 lt_cv_cc_needs_belf=no
6054 rm -f core conftest.err conftest.$ac_objext \
6055 conftest$ac_exeext conftest.$ac_ext
6057 ac_cpp='$CPP $CPPFLAGS'
6058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6064 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6065 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6066 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6067 CFLAGS="$SAVE_CFLAGS"
6071 # Find out which ABI we are using.
6072 echo 'int i;' > conftest.$ac_ext
6073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6074 (eval $ac_compile) 2>&5
6076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6077 test $ac_status = 0; }; then
6078 case `/usr/bin/file conftest.o` in
6080 case $lt_cv_prog_gnu_ld in
6084 LD="${LD-ld} -m elf_x86_64"
6087 LD="${LD-ld} -m elf64_sparc"
6090 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6091 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6096 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6108 need_locks="$enable_libtool_lock"
6110 if test -n "$ac_tool_prefix"; then
6111 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6112 set dummy ${ac_tool_prefix}mt; ac_word=$2
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114 $as_echo_n "checking for $ac_word... " >&6; }
6115 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6116 $as_echo_n "(cached) " >&6
6118 if test -n "$MANIFEST_TOOL"; then
6119 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6139 if test -n "$MANIFEST_TOOL"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6141 $as_echo "$MANIFEST_TOOL" >&6; }
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6149 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6150 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6151 # Extract the first word of "mt", so it can be a program name with args.
6152 set dummy mt; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6156 $as_echo_n "(cached) " >&6
6158 if test -n "$ac_ct_MANIFEST_TOOL"; then
6159 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6179 if test -n "$ac_ct_MANIFEST_TOOL"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6181 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6187 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6190 case $cross_compiling:$ac_tool_warned in
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6194 ac_tool_warned=yes ;;
6196 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6199 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6202 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6204 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6205 if ${lt_cv_path_mainfest_tool+:} false; then :
6206 $as_echo_n "(cached) " >&6
6208 lt_cv_path_mainfest_tool=no
6209 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6210 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6211 cat conftest.err >&5
6212 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6213 lt_cv_path_mainfest_tool=yes
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6218 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6219 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6229 rhapsody* | darwin*)
6230 if test -n "$ac_tool_prefix"; then
6231 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6232 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6236 $as_echo_n "(cached) " >&6
6238 if test -n "$DSYMUTIL"; then
6239 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6259 if test -n "$DSYMUTIL"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6261 $as_echo "$DSYMUTIL" >&6; }
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6269 if test -z "$ac_cv_prog_DSYMUTIL"; then
6270 ac_ct_DSYMUTIL=$DSYMUTIL
6271 # Extract the first word of "dsymutil", so it can be a program name with args.
6272 set dummy dsymutil; ac_word=$2
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274 $as_echo_n "checking for $ac_word... " >&6; }
6275 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6276 $as_echo_n "(cached) " >&6
6278 if test -n "$ac_ct_DSYMUTIL"; then
6279 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6288 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6299 if test -n "$ac_ct_DSYMUTIL"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6301 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 $as_echo "no" >&6; }
6307 if test "x$ac_ct_DSYMUTIL" = x; then
6310 case $cross_compiling:$ac_tool_warned in
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6314 ac_tool_warned=yes ;;
6316 DSYMUTIL=$ac_ct_DSYMUTIL
6319 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6322 if test -n "$ac_tool_prefix"; then
6323 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6324 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326 $as_echo_n "checking for $ac_word... " >&6; }
6327 if ${ac_cv_prog_NMEDIT+:} false; then :
6328 $as_echo_n "(cached) " >&6
6330 if test -n "$NMEDIT"; then
6331 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 NMEDIT=$ac_cv_prog_NMEDIT
6351 if test -n "$NMEDIT"; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6353 $as_echo "$NMEDIT" >&6; }
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 $as_echo "no" >&6; }
6361 if test -z "$ac_cv_prog_NMEDIT"; then
6362 ac_ct_NMEDIT=$NMEDIT
6363 # Extract the first word of "nmedit", so it can be a program name with args.
6364 set dummy nmedit; ac_word=$2
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366 $as_echo_n "checking for $ac_word... " >&6; }
6367 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6368 $as_echo_n "(cached) " >&6
6370 if test -n "$ac_ct_NMEDIT"; then
6371 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6380 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6391 if test -n "$ac_ct_NMEDIT"; then
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6393 $as_echo "$ac_ct_NMEDIT" >&6; }
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396 $as_echo "no" >&6; }
6399 if test "x$ac_ct_NMEDIT" = x; then
6402 case $cross_compiling:$ac_tool_warned in
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6406 ac_tool_warned=yes ;;
6408 NMEDIT=$ac_ct_NMEDIT
6411 NMEDIT="$ac_cv_prog_NMEDIT"
6414 if test -n "$ac_tool_prefix"; then
6415 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6416 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if ${ac_cv_prog_LIPO+:} false; then :
6420 $as_echo_n "(cached) " >&6
6422 if test -n "$LIPO"; then
6423 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6432 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 LIPO=$ac_cv_prog_LIPO
6443 if test -n "$LIPO"; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6445 $as_echo "$LIPO" >&6; }
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6453 if test -z "$ac_cv_prog_LIPO"; then
6455 # Extract the first word of "lipo", so it can be a program name with args.
6456 set dummy lipo; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6460 $as_echo_n "(cached) " >&6
6462 if test -n "$ac_ct_LIPO"; then
6463 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6472 ac_cv_prog_ac_ct_LIPO="lipo"
6473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6483 if test -n "$ac_ct_LIPO"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6485 $as_echo "$ac_ct_LIPO" >&6; }
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 $as_echo "no" >&6; }
6491 if test "x$ac_ct_LIPO" = x; then
6494 case $cross_compiling:$ac_tool_warned in
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6498 ac_tool_warned=yes ;;
6503 LIPO="$ac_cv_prog_LIPO"
6506 if test -n "$ac_tool_prefix"; then
6507 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6508 set dummy ${ac_tool_prefix}otool; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_OTOOL+:} false; then :
6512 $as_echo_n "(cached) " >&6
6514 if test -n "$OTOOL"; then
6515 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 OTOOL=$ac_cv_prog_OTOOL
6535 if test -n "$OTOOL"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6537 $as_echo "$OTOOL" >&6; }
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6545 if test -z "$ac_cv_prog_OTOOL"; then
6547 # Extract the first word of "otool", so it can be a program name with args.
6548 set dummy otool; ac_word=$2
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550 $as_echo_n "checking for $ac_word... " >&6; }
6551 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6552 $as_echo_n "(cached) " >&6
6554 if test -n "$ac_ct_OTOOL"; then
6555 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6564 ac_cv_prog_ac_ct_OTOOL="otool"
6565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6575 if test -n "$ac_ct_OTOOL"; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6577 $as_echo "$ac_ct_OTOOL" >&6; }
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580 $as_echo "no" >&6; }
6583 if test "x$ac_ct_OTOOL" = x; then
6586 case $cross_compiling:$ac_tool_warned in
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6590 ac_tool_warned=yes ;;
6595 OTOOL="$ac_cv_prog_OTOOL"
6598 if test -n "$ac_tool_prefix"; then
6599 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6600 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602 $as_echo_n "checking for $ac_word... " >&6; }
6603 if ${ac_cv_prog_OTOOL64+:} false; then :
6604 $as_echo_n "(cached) " >&6
6606 if test -n "$OTOOL64"; then
6607 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6616 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 OTOOL64=$ac_cv_prog_OTOOL64
6627 if test -n "$OTOOL64"; then
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6629 $as_echo "$OTOOL64" >&6; }
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6637 if test -z "$ac_cv_prog_OTOOL64"; then
6638 ac_ct_OTOOL64=$OTOOL64
6639 # Extract the first word of "otool64", so it can be a program name with args.
6640 set dummy otool64; ac_word=$2
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6644 $as_echo_n "(cached) " >&6
6646 if test -n "$ac_ct_OTOOL64"; then
6647 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6656 ac_cv_prog_ac_ct_OTOOL64="otool64"
6657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6667 if test -n "$ac_ct_OTOOL64"; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6669 $as_echo "$ac_ct_OTOOL64" >&6; }
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6675 if test "x$ac_ct_OTOOL64" = x; then
6678 case $cross_compiling:$ac_tool_warned in
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6682 ac_tool_warned=yes ;;
6684 OTOOL64=$ac_ct_OTOOL64
6687 OTOOL64="$ac_cv_prog_OTOOL64"
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6717 $as_echo_n "checking for -single_module linker flag... " >&6; }
6718 if ${lt_cv_apple_cc_single_mod+:} false; then :
6719 $as_echo_n "(cached) " >&6
6721 lt_cv_apple_cc_single_mod=no
6722 if test -z "${LT_MULTI_MODULE}"; then
6723 # By default we will add the -single_module flag. You can override
6724 # by either setting the environment variable LT_MULTI_MODULE
6725 # non-empty at configure time, or by adding -multi_module to the
6727 rm -rf libconftest.dylib*
6728 echo "int foo(void){return 1;}" > conftest.c
6729 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6730 -dynamiclib -Wl,-single_module conftest.c" >&5
6731 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6732 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6734 # If there is a non-empty error log, and "single_module"
6735 # appears in it, assume the flag caused a linker warning
6736 if test -s conftest.err && $GREP single_module conftest.err; then
6737 cat conftest.err >&5
6738 # Otherwise, if the output was created with a 0 exit code from
6739 # the compiler, it worked.
6740 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6741 lt_cv_apple_cc_single_mod=yes
6743 cat conftest.err >&5
6745 rm -rf libconftest.dylib*
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6750 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6753 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6754 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6755 $as_echo_n "(cached) " >&6
6757 lt_cv_ld_exported_symbols_list=no
6758 save_LDFLAGS=$LDFLAGS
6759 echo "_main" > conftest.sym
6760 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6772 if ac_fn_c_try_link "$LINENO"; then :
6773 lt_cv_ld_exported_symbols_list=yes
6775 lt_cv_ld_exported_symbols_list=no
6777 rm -f core conftest.err conftest.$ac_objext \
6778 conftest$ac_exeext conftest.$ac_ext
6779 LDFLAGS="$save_LDFLAGS"
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6783 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6786 $as_echo_n "checking for -force_load linker flag... " >&6; }
6787 if ${lt_cv_ld_force_load+:} false; then :
6788 $as_echo_n "(cached) " >&6
6790 lt_cv_ld_force_load=no
6791 cat > conftest.c << _LT_EOF
6792 int forced_loaded() { return 2;}
6794 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6795 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6796 echo "$AR cru libconftest.a conftest.o" >&5
6797 $AR cru libconftest.a conftest.o 2>&5
6798 echo "$RANLIB libconftest.a" >&5
6799 $RANLIB libconftest.a 2>&5
6800 cat > conftest.c << _LT_EOF
6801 int main() { return 0;}
6803 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6804 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6806 if test -s conftest.err && $GREP force_load conftest.err; then
6807 cat conftest.err >&5
6808 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6809 lt_cv_ld_force_load=yes
6811 cat conftest.err >&5
6813 rm -f conftest.err libconftest.a conftest conftest.c
6814 rm -rf conftest.dSYM
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6818 $as_echo "$lt_cv_ld_force_load" >&6; }
6820 rhapsody* | darwin1.[012])
6821 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6823 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6824 darwin*) # darwin 5.x on
6825 # if running on 10.5 or later, the deployment target defaults
6826 # to the OS version, if on x86, and 10.4, the deployment
6827 # target defaults to 10.4. Don't you love it?
6828 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6829 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6830 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6832 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6834 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6838 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6839 _lt_dar_single_mod='$single_module'
6841 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6842 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6844 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6846 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6847 _lt_dsymutil='~$DSYMUTIL $lib || :'
6855 ac_cpp='$CPP $CPPFLAGS'
6856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6860 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6861 # On Suns, sometimes $CPP names a directory.
6862 if test -n "$CPP" && test -d "$CPP"; then
6865 if test -z "$CPP"; then
6866 if ${ac_cv_prog_CPP+:} false; then :
6867 $as_echo_n "(cached) " >&6
6869 # Double quotes because CPP needs to be expanded
6870 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6873 for ac_c_preproc_warn_flag in '' yes
6875 # Use a header file that comes with gcc, so configuring glibc
6876 # with a fresh cross-compiler works.
6877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6878 # <limits.h> exists even on freestanding compilers.
6879 # On the NeXT, cc -E runs the code through the compiler's parser,
6880 # not just through cpp. "Syntax error" is here to catch this case.
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6884 # include <limits.h>
6886 # include <assert.h>
6890 if ac_fn_c_try_cpp "$LINENO"; then :
6893 # Broken: fails on valid input.
6896 rm -f conftest.err conftest.i conftest.$ac_ext
6898 # OK, works on sane cases. Now check whether nonexistent headers
6899 # can be detected and how.
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902 #include <ac_nonexistent.h>
6904 if ac_fn_c_try_cpp "$LINENO"; then :
6905 # Broken: success on invalid input.
6908 # Passes both tests.
6912 rm -f conftest.err conftest.i conftest.$ac_ext
6915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6916 rm -f conftest.i conftest.err conftest.$ac_ext
6917 if $ac_preproc_ok; then :
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6930 $as_echo "$CPP" >&6; }
6932 for ac_c_preproc_warn_flag in '' yes
6934 # Use a header file that comes with gcc, so configuring glibc
6935 # with a fresh cross-compiler works.
6936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6937 # <limits.h> exists even on freestanding compilers.
6938 # On the NeXT, cc -E runs the code through the compiler's parser,
6939 # not just through cpp. "Syntax error" is here to catch this case.
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6943 # include <limits.h>
6945 # include <assert.h>
6949 if ac_fn_c_try_cpp "$LINENO"; then :
6952 # Broken: fails on valid input.
6955 rm -f conftest.err conftest.i conftest.$ac_ext
6957 # OK, works on sane cases. Now check whether nonexistent headers
6958 # can be detected and how.
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6961 #include <ac_nonexistent.h>
6963 if ac_fn_c_try_cpp "$LINENO"; then :
6964 # Broken: success on invalid input.
6967 # Passes both tests.
6971 rm -f conftest.err conftest.i conftest.$ac_ext
6974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6975 rm -f conftest.i conftest.err conftest.$ac_ext
6976 if $ac_preproc_ok; then :
6979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6981 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6982 See \`config.log' for more details" "$LINENO" 5; }
6986 ac_cpp='$CPP $CPPFLAGS'
6987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6993 $as_echo_n "checking for ANSI C header files... " >&6; }
6994 if ${ac_cv_header_stdc+:} false; then :
6995 $as_echo_n "(cached) " >&6
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
7012 if ac_fn_c_try_compile "$LINENO"; then :
7013 ac_cv_header_stdc=yes
7015 ac_cv_header_stdc=no
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019 if test $ac_cv_header_stdc = yes; then
7020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7027 $EGREP "memchr" >/dev/null 2>&1; then :
7030 ac_cv_header_stdc=no
7036 if test $ac_cv_header_stdc = yes; then
7037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7044 $EGREP "free" >/dev/null 2>&1; then :
7047 ac_cv_header_stdc=no
7053 if test $ac_cv_header_stdc = yes; then
7054 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7055 if test "$cross_compiling" = yes; then :
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7062 #if ((' ' & 0x0FF) == 0x020)
7063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7066 # define ISLOWER(c) \
7067 (('a' <= (c) && (c) <= 'i') \
7068 || ('j' <= (c) && (c) <= 'r') \
7069 || ('s' <= (c) && (c) <= 'z'))
7070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7078 for (i = 0; i < 256; i++)
7079 if (XOR (islower (i), ISLOWER (i))
7080 || toupper (i) != TOUPPER (i))
7085 if ac_fn_c_try_run "$LINENO"; then :
7088 ac_cv_header_stdc=no
7090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7091 conftest.$ac_objext conftest.beam conftest.$ac_ext
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7097 $as_echo "$ac_cv_header_stdc" >&6; }
7098 if test $ac_cv_header_stdc = yes; then
7100 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7104 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7105 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7106 inttypes.h stdint.h unistd.h
7108 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7109 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7111 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7112 cat >>confdefs.h <<_ACEOF
7113 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7121 for ac_header in dlfcn.h
7123 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7125 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7126 cat >>confdefs.h <<_ACEOF
7127 #define HAVE_DLFCN_H 1
7139 enable_win32_dll=yes
7142 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7143 if test -n "$ac_tool_prefix"; then
7144 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7145 set dummy ${ac_tool_prefix}as; ac_word=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if ${ac_cv_prog_AS+:} false; then :
7149 $as_echo_n "(cached) " >&6
7151 if test -n "$AS"; then
7152 ac_cv_prog_AS="$AS" # Let the user override the test.
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_AS="${ac_tool_prefix}as"
7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 if test -n "$AS"; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7174 $as_echo "$AS" >&6; }
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7182 if test -z "$ac_cv_prog_AS"; then
7184 # Extract the first word of "as", so it can be a program name with args.
7185 set dummy as; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7189 $as_echo_n "(cached) " >&6
7191 if test -n "$ac_ct_AS"; then
7192 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_ac_ct_AS="as"
7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7212 if test -n "$ac_ct_AS"; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7214 $as_echo "$ac_ct_AS" >&6; }
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7220 if test "x$ac_ct_AS" = x; then
7223 case $cross_compiling:$ac_tool_warned in
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227 ac_tool_warned=yes ;;
7235 if test -n "$ac_tool_prefix"; then
7236 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7237 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 $as_echo_n "checking for $ac_word... " >&6; }
7240 if ${ac_cv_prog_DLLTOOL+:} false; then :
7241 $as_echo_n "(cached) " >&6
7243 if test -n "$DLLTOOL"; then
7244 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 DLLTOOL=$ac_cv_prog_DLLTOOL
7264 if test -n "$DLLTOOL"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7266 $as_echo "$DLLTOOL" >&6; }
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7274 if test -z "$ac_cv_prog_DLLTOOL"; then
7275 ac_ct_DLLTOOL=$DLLTOOL
7276 # Extract the first word of "dlltool", so it can be a program name with args.
7277 set dummy dlltool; ac_word=$2
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279 $as_echo_n "checking for $ac_word... " >&6; }
7280 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7281 $as_echo_n "(cached) " >&6
7283 if test -n "$ac_ct_DLLTOOL"; then
7284 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7293 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7304 if test -n "$ac_ct_DLLTOOL"; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7306 $as_echo "$ac_ct_DLLTOOL" >&6; }
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7312 if test "x$ac_ct_DLLTOOL" = x; then
7315 case $cross_compiling:$ac_tool_warned in
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319 ac_tool_warned=yes ;;
7321 DLLTOOL=$ac_ct_DLLTOOL
7324 DLLTOOL="$ac_cv_prog_DLLTOOL"
7327 if test -n "$ac_tool_prefix"; then
7328 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7329 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_OBJDUMP+:} false; then :
7333 $as_echo_n "(cached) " >&6
7335 if test -n "$OBJDUMP"; then
7336 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 OBJDUMP=$ac_cv_prog_OBJDUMP
7356 if test -n "$OBJDUMP"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7358 $as_echo "$OBJDUMP" >&6; }
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7366 if test -z "$ac_cv_prog_OBJDUMP"; then
7367 ac_ct_OBJDUMP=$OBJDUMP
7368 # Extract the first word of "objdump", so it can be a program name with args.
7369 set dummy objdump; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7373 $as_echo_n "(cached) " >&6
7375 if test -n "$ac_ct_OBJDUMP"; then
7376 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7396 if test -n "$ac_ct_OBJDUMP"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7398 $as_echo "$ac_ct_OBJDUMP" >&6; }
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7404 if test "x$ac_ct_OBJDUMP" = x; then
7407 case $cross_compiling:$ac_tool_warned in
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411 ac_tool_warned=yes ;;
7413 OBJDUMP=$ac_ct_OBJDUMP
7416 OBJDUMP="$ac_cv_prog_OBJDUMP"
7422 test -z "$AS" && AS=as
7428 test -z "$DLLTOOL" && DLLTOOL=dlltool
7434 test -z "$OBJDUMP" && OBJDUMP=objdump
7446 # Check whether --enable-shared was given.
7447 if test "${enable_shared+set}" = set; then :
7448 enableval=$enable_shared; p=${PACKAGE-default}
7450 yes) enable_shared=yes ;;
7451 no) enable_shared=no ;;
7454 # Look at the argument we got. We use all the common list separators.
7455 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7456 for pkg in $enableval; do
7458 if test "X$pkg" = "X$p"; then
7477 # Check whether --enable-static was given.
7478 if test "${enable_static+set}" = set; then :
7479 enableval=$enable_static; p=${PACKAGE-default}
7481 yes) enable_static=yes ;;
7482 no) enable_static=no ;;
7485 # Look at the argument we got. We use all the common list separators.
7486 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7487 for pkg in $enableval; do
7489 if test "X$pkg" = "X$p"; then
7509 # Check whether --with-pic was given.
7510 if test "${with_pic+set}" = set; then :
7511 withval=$with_pic; lt_p=${PACKAGE-default}
7513 yes|no) pic_mode=$withval ;;
7516 # Look at the argument we got. We use all the common list separators.
7517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7518 for lt_pkg in $withval; do
7520 if test "X$lt_pkg" = "X$lt_p"; then
7532 test -z "$pic_mode" && pic_mode=default
7540 # Check whether --enable-fast-install was given.
7541 if test "${enable_fast_install+set}" = set; then :
7542 enableval=$enable_fast_install; p=${PACKAGE-default}
7544 yes) enable_fast_install=yes ;;
7545 no) enable_fast_install=no ;;
7547 enable_fast_install=no
7548 # Look at the argument we got. We use all the common list separators.
7549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7550 for pkg in $enableval; do
7552 if test "X$pkg" = "X$p"; then
7553 enable_fast_install=yes
7560 enable_fast_install=yes
7573 # This can be used to rebuild libtool when needed
7574 LIBTOOL_DEPS="$ltmain"
7576 # Always use our own libtool.
7577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7608 test -z "$LN_S" && LN_S="ln -s"
7623 if test -n "${ZSH_VERSION+set}" ; then
7624 setopt NO_GLOB_SUBST
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7628 $as_echo_n "checking for objdir... " >&6; }
7629 if ${lt_cv_objdir+:} false; then :
7630 $as_echo_n "(cached) " >&6
7632 rm -f .libs 2>/dev/null
7633 mkdir .libs 2>/dev/null
7634 if test -d .libs; then
7637 # MS-DOS does not allow filenames that begin with a dot.
7640 rmdir .libs 2>/dev/null
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7643 $as_echo "$lt_cv_objdir" >&6; }
7644 objdir=$lt_cv_objdir
7650 cat >>confdefs.h <<_ACEOF
7651 #define LT_OBJDIR "$lt_cv_objdir/"
7659 # AIX sometimes has problems with the GCC collect2 program. For some
7660 # reason, if we set the COLLECT_NAMES environment variable, the problems
7661 # vanish in a puff of smoke.
7662 if test "X${COLLECT_NAMES+set}" != Xset; then
7664 export COLLECT_NAMES
7671 can_build_shared=yes
7673 # All known linkers require a `.a' archive for static linking (except MSVC,
7674 # which needs '.lib').
7677 with_gnu_ld="$lt_cv_prog_gnu_ld"
7680 old_CFLAGS="$CFLAGS"
7682 # Set sane defaults for various variables
7683 test -z "$CC" && CC=cc
7684 test -z "$LTCC" && LTCC=$CC
7685 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7686 test -z "$LD" && LD=ld
7687 test -z "$ac_objext" && ac_objext=o
7689 for cc_temp in $compiler""; do
7691 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7692 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7697 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7700 # Only perform the check for file, if the check method requires it
7701 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7702 case $deplibs_check_method in
7704 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7706 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7707 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7708 $as_echo_n "(cached) " >&6
7712 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7715 lt_save_MAGIC_CMD="$MAGIC_CMD"
7716 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7717 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7718 for ac_dir in $ac_dummy; do
7720 test -z "$ac_dir" && ac_dir=.
7721 if test -f $ac_dir/${ac_tool_prefix}file; then
7722 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7723 if test -n "$file_magic_test_file"; then
7724 case $deplibs_check_method in
7726 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7727 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7728 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7729 $EGREP "$file_magic_regex" > /dev/null; then
7734 *** Warning: the command libtool uses to detect shared libraries,
7735 *** $file_magic_cmd, produces output that libtool cannot recognize.
7736 *** The result is that libtool may fail to recognize shared libraries
7737 *** as such. This will affect the creation of libtool libraries that
7738 *** depend on shared libraries, but programs linked with such libtool
7739 *** libraries will work regardless of this problem. Nevertheless, you
7740 *** may want to report the problem to your system manager and/or to
7741 *** bug-libtool@gnu.org
7751 MAGIC_CMD="$lt_save_MAGIC_CMD"
7756 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7757 if test -n "$MAGIC_CMD"; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7759 $as_echo "$MAGIC_CMD" >&6; }
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7769 if test -z "$lt_cv_path_MAGIC_CMD"; then
7770 if test -n "$ac_tool_prefix"; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7772 $as_echo_n "checking for file... " >&6; }
7773 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7774 $as_echo_n "(cached) " >&6
7778 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7781 lt_save_MAGIC_CMD="$MAGIC_CMD"
7782 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7783 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7784 for ac_dir in $ac_dummy; do
7786 test -z "$ac_dir" && ac_dir=.
7787 if test -f $ac_dir/file; then
7788 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7789 if test -n "$file_magic_test_file"; then
7790 case $deplibs_check_method in
7792 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7793 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7794 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7795 $EGREP "$file_magic_regex" > /dev/null; then
7800 *** Warning: the command libtool uses to detect shared libraries,
7801 *** $file_magic_cmd, produces output that libtool cannot recognize.
7802 *** The result is that libtool may fail to recognize shared libraries
7803 *** as such. This will affect the creation of libtool libraries that
7804 *** depend on shared libraries, but programs linked with such libtool
7805 *** libraries will work regardless of this problem. Nevertheless, you
7806 *** may want to report the problem to your system manager and/or to
7807 *** bug-libtool@gnu.org
7817 MAGIC_CMD="$lt_save_MAGIC_CMD"
7822 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7823 if test -n "$MAGIC_CMD"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7825 $as_echo "$MAGIC_CMD" >&6; }
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7841 # Use C for the default configuration in the libtool script
7845 ac_cpp='$CPP $CPPFLAGS'
7846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7851 # Source file extension for C test sources.
7854 # Object file extension for compiled C test sources.
7858 # Code to be used in simple compile tests
7859 lt_simple_compile_test_code="int some_variable = 0;"
7861 # Code to be used in simple link tests
7862 lt_simple_link_test_code='int main(){return(0);}'
7870 # If no C compiler was specified, use CC.
7873 # If no C compiler flags were specified, use CFLAGS.
7874 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7876 # Allow CC to be a program name with arguments.
7879 # Save the default compiler, since it gets overwritten when the other
7880 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7881 compiler_DEFAULT=$CC
7883 # save warnings/boilerplate of simple test code
7884 ac_outfile=conftest.$ac_objext
7885 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7886 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7887 _lt_compiler_boilerplate=`cat conftest.err`
7890 ac_outfile=conftest.$ac_objext
7891 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7892 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7893 _lt_linker_boilerplate=`cat conftest.err`
7898 ## There is no encapsulation within the following macros, do not change
7899 ## the running order or otherwise move them around unless you know exactly
7900 ## what you are doing...
7901 if test -n "$compiler"; then
7903 lt_prog_compiler_no_builtin_flag=
7905 if test "$GCC" = yes; then
7906 case $cc_basename in
7908 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7910 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7914 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7915 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7916 $as_echo_n "(cached) " >&6
7918 lt_cv_prog_compiler_rtti_exceptions=no
7919 ac_outfile=conftest.$ac_objext
7920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7921 lt_compiler_flag="-fno-rtti -fno-exceptions"
7922 # Insert the option either (1) after the last *FLAGS variable, or
7923 # (2) before a word containing "conftest.", or (3) at the end.
7924 # Note that $ac_compile itself does not contain backslashes and begins
7925 # with a dollar sign (not a hyphen), so the echo should work correctly.
7926 # The option is referenced via a variable to avoid confusing sed.
7927 lt_compile=`echo "$ac_compile" | $SED \
7928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7930 -e 's:$: $lt_compiler_flag:'`
7931 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7932 (eval "$lt_compile" 2>conftest.err)
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 if (exit $ac_status) && test -s "$ac_outfile"; then
7937 # The compiler can only warn and ignore the option if not recognized
7938 # So say no if there are warnings other than the usual output.
7939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7941 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7942 lt_cv_prog_compiler_rtti_exceptions=yes
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7949 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7951 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7952 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7964 lt_prog_compiler_wl=
7965 lt_prog_compiler_pic=
7966 lt_prog_compiler_static=
7969 if test "$GCC" = yes; then
7970 lt_prog_compiler_wl='-Wl,'
7971 lt_prog_compiler_static='-static'
7975 # All AIX code is PIC.
7976 if test "$host_cpu" = ia64; then
7977 # AIX 5 now supports IA64 processor
7978 lt_prog_compiler_static='-Bstatic'
7985 # see comment about AmigaOS4 .so support
7986 lt_prog_compiler_pic='-fPIC'
7989 # FIXME: we need at least 68020 code to build shared libraries, but
7990 # adding the `-m68020' flag to GCC prevents building anything better,
7992 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7997 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7998 # PIC is the default for these OSes.
8001 mingw* | cygwin* | pw32* | os2* | cegcc*)
8002 # This hack is so that the source file can tell whether it is being
8003 # built for inclusion in a dll (and should export symbols for example).
8004 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8005 # (--disable-auto-import) libraries
8006 lt_prog_compiler_pic='-DDLL_EXPORT'
8009 darwin* | rhapsody*)
8010 # PIC is the default on this platform
8011 # Common symbols not allowed in MH_DYLIB files
8012 lt_prog_compiler_pic='-fno-common'
8016 # PIC is the default for Haiku.
8017 # The "-static" flag exists, but is broken.
8018 lt_prog_compiler_static=
8022 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8023 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8024 # sets the default TLS model and affects inlining.
8030 lt_prog_compiler_pic='-fPIC'
8036 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8037 # Instead, we relocate shared libraries at runtime.
8041 # Just because we use GCC doesn't mean we suddenly get shared libraries
8042 # on systems that don't support them.
8043 lt_prog_compiler_can_build_shared=no
8048 # QNX uses GNU C++, but need to define -shared option too, otherwise
8050 lt_prog_compiler_pic='-fPIC -shared'
8054 if test -d /usr/nec; then
8055 lt_prog_compiler_pic=-Kconform_pic
8060 lt_prog_compiler_pic='-fPIC'
8064 case $cc_basename in
8065 nvcc*) # Cuda Compiler Driver 2.2
8066 lt_prog_compiler_wl='-Xlinker '
8067 if test -n "$lt_prog_compiler_pic"; then
8068 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8073 # PORTME Check for flag to pass linker flags through the system compiler.
8076 lt_prog_compiler_wl='-Wl,'
8077 if test "$host_cpu" = ia64; then
8078 # AIX 5 now supports IA64 processor
8079 lt_prog_compiler_static='-Bstatic'
8081 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8085 mingw* | cygwin* | pw32* | os2* | cegcc*)
8086 # This hack is so that the source file can tell whether it is being
8087 # built for inclusion in a dll (and should export symbols for example).
8088 lt_prog_compiler_pic='-DDLL_EXPORT'
8091 hpux9* | hpux10* | hpux11*)
8092 lt_prog_compiler_wl='-Wl,'
8093 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8100 lt_prog_compiler_pic='+Z'
8103 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8104 lt_prog_compiler_static='${wl}-a ${wl}archive'
8107 irix5* | irix6* | nonstopux*)
8108 lt_prog_compiler_wl='-Wl,'
8109 # PIC (with -KPIC) is the default.
8110 lt_prog_compiler_static='-non_shared'
8113 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8114 case $cc_basename in
8115 # old Intel for x86_64 which still supported -KPIC.
8117 lt_prog_compiler_wl='-Wl,'
8118 lt_prog_compiler_pic='-KPIC'
8119 lt_prog_compiler_static='-static'
8121 # icc used to be incompatible with GCC.
8122 # ICC 10 doesn't accept -KPIC any more.
8124 lt_prog_compiler_wl='-Wl,'
8125 lt_prog_compiler_pic='-fPIC'
8126 lt_prog_compiler_static='-static'
8128 # Lahey Fortran 8.1.
8130 lt_prog_compiler_wl='-Wl,'
8131 lt_prog_compiler_pic='--shared'
8132 lt_prog_compiler_static='--static'
8135 # NAG Fortran compiler
8136 lt_prog_compiler_wl='-Wl,-Wl,,'
8137 lt_prog_compiler_pic='-PIC'
8138 lt_prog_compiler_static='-Bstatic'
8140 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8141 # Portland Group compilers (*not* the Pentium gcc compiler,
8142 # which looks to be a dead project)
8143 lt_prog_compiler_wl='-Wl,'
8144 lt_prog_compiler_pic='-fpic'
8145 lt_prog_compiler_static='-Bstatic'
8148 lt_prog_compiler_wl='-Wl,'
8149 # All Alpha code is PIC.
8150 lt_prog_compiler_static='-non_shared'
8152 xl* | bgxl* | bgf* | mpixl*)
8153 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8154 lt_prog_compiler_wl='-Wl,'
8155 lt_prog_compiler_pic='-qpic'
8156 lt_prog_compiler_static='-qstaticlink'
8159 case `$CC -V 2>&1 | sed 5q` in
8160 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8161 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8162 lt_prog_compiler_pic='-KPIC'
8163 lt_prog_compiler_static='-Bstatic'
8164 lt_prog_compiler_wl=''
8166 *Sun\ F* | *Sun*Fortran*)
8167 lt_prog_compiler_pic='-KPIC'
8168 lt_prog_compiler_static='-Bstatic'
8169 lt_prog_compiler_wl='-Qoption ld '
8173 lt_prog_compiler_pic='-KPIC'
8174 lt_prog_compiler_static='-Bstatic'
8175 lt_prog_compiler_wl='-Wl,'
8177 *Intel*\ [CF]*Compiler*)
8178 lt_prog_compiler_wl='-Wl,'
8179 lt_prog_compiler_pic='-fPIC'
8180 lt_prog_compiler_static='-static'
8183 lt_prog_compiler_wl='-Wl,'
8184 lt_prog_compiler_pic='-fpic'
8185 lt_prog_compiler_static='-Bstatic'
8193 lt_prog_compiler_pic='-KPIC'
8194 lt_prog_compiler_static='-Bstatic'
8198 # QNX uses GNU C++, but need to define -shared option too, otherwise
8200 lt_prog_compiler_pic='-fPIC -shared'
8203 osf3* | osf4* | osf5*)
8204 lt_prog_compiler_wl='-Wl,'
8205 # All OSF/1 code is PIC.
8206 lt_prog_compiler_static='-non_shared'
8210 lt_prog_compiler_static='-non_shared'
8214 lt_prog_compiler_pic='-KPIC'
8215 lt_prog_compiler_static='-Bstatic'
8216 case $cc_basename in
8217 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8218 lt_prog_compiler_wl='-Qoption ld ';;
8220 lt_prog_compiler_wl='-Wl,';;
8225 lt_prog_compiler_wl='-Qoption ld '
8226 lt_prog_compiler_pic='-PIC'
8227 lt_prog_compiler_static='-Bstatic'
8230 sysv4 | sysv4.2uw2* | sysv4.3*)
8231 lt_prog_compiler_wl='-Wl,'
8232 lt_prog_compiler_pic='-KPIC'
8233 lt_prog_compiler_static='-Bstatic'
8237 if test -d /usr/nec ;then
8238 lt_prog_compiler_pic='-Kconform_pic'
8239 lt_prog_compiler_static='-Bstatic'
8243 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8244 lt_prog_compiler_wl='-Wl,'
8245 lt_prog_compiler_pic='-KPIC'
8246 lt_prog_compiler_static='-Bstatic'
8250 lt_prog_compiler_wl='-Wl,'
8251 lt_prog_compiler_can_build_shared=no
8255 lt_prog_compiler_pic='-pic'
8256 lt_prog_compiler_static='-Bstatic'
8260 lt_prog_compiler_can_build_shared=no
8266 # For platforms which do not support PIC, -DPIC is meaningless:
8268 lt_prog_compiler_pic=
8271 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8276 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8277 if ${lt_cv_prog_compiler_pic+:} false; then :
8278 $as_echo_n "(cached) " >&6
8280 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8283 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8284 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8287 # Check to make sure the PIC flag actually works.
8289 if test -n "$lt_prog_compiler_pic"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8291 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8292 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8293 $as_echo_n "(cached) " >&6
8295 lt_cv_prog_compiler_pic_works=no
8296 ac_outfile=conftest.$ac_objext
8297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8298 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8299 # Insert the option either (1) after the last *FLAGS variable, or
8300 # (2) before a word containing "conftest.", or (3) at the end.
8301 # Note that $ac_compile itself does not contain backslashes and begins
8302 # with a dollar sign (not a hyphen), so the echo should work correctly.
8303 # The option is referenced via a variable to avoid confusing sed.
8304 lt_compile=`echo "$ac_compile" | $SED \
8305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8307 -e 's:$: $lt_compiler_flag:'`
8308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8309 (eval "$lt_compile" 2>conftest.err)
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 if (exit $ac_status) && test -s "$ac_outfile"; then
8314 # The compiler can only warn and ignore the option if not recognized
8315 # So say no if there are warnings other than the usual output.
8316 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8318 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8319 lt_cv_prog_compiler_pic_works=yes
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8326 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8328 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8329 case $lt_prog_compiler_pic in
8331 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8334 lt_prog_compiler_pic=
8335 lt_prog_compiler_can_build_shared=no
8351 # Check to make sure the static flag actually works.
8353 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8355 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8356 if ${lt_cv_prog_compiler_static_works+:} false; then :
8357 $as_echo_n "(cached) " >&6
8359 lt_cv_prog_compiler_static_works=no
8360 save_LDFLAGS="$LDFLAGS"
8361 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8362 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8363 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8364 # The linker can only warn and ignore the option if not recognized
8365 # So say no if there are warnings
8366 if test -s conftest.err; then
8367 # Append any errors to the config.log.
8368 cat conftest.err 1>&5
8369 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8371 if diff conftest.exp conftest.er2 >/dev/null; then
8372 lt_cv_prog_compiler_static_works=yes
8375 lt_cv_prog_compiler_static_works=yes
8379 LDFLAGS="$save_LDFLAGS"
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8383 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8385 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8388 lt_prog_compiler_static=
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8398 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8399 if ${lt_cv_prog_compiler_c_o+:} false; then :
8400 $as_echo_n "(cached) " >&6
8402 lt_cv_prog_compiler_c_o=no
8403 $RM -r conftest 2>/dev/null
8407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8409 lt_compiler_flag="-o out/conftest2.$ac_objext"
8410 # Insert the option either (1) after the last *FLAGS variable, or
8411 # (2) before a word containing "conftest.", or (3) at the end.
8412 # Note that $ac_compile itself does not contain backslashes and begins
8413 # with a dollar sign (not a hyphen), so the echo should work correctly.
8414 lt_compile=`echo "$ac_compile" | $SED \
8415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8417 -e 's:$: $lt_compiler_flag:'`
8418 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8419 (eval "$lt_compile" 2>out/conftest.err)
8421 cat out/conftest.err >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8425 # The compiler can only warn and ignore the option if not recognized
8426 # So say no if there are warnings
8427 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8428 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8429 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8430 lt_cv_prog_compiler_c_o=yes
8435 # SGI C++ compiler will create directory out/ii_files/ for
8436 # template instantiation
8437 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8438 $RM out/* && rmdir out
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8445 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8453 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8454 if ${lt_cv_prog_compiler_c_o+:} false; then :
8455 $as_echo_n "(cached) " >&6
8457 lt_cv_prog_compiler_c_o=no
8458 $RM -r conftest 2>/dev/null
8462 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8464 lt_compiler_flag="-o out/conftest2.$ac_objext"
8465 # Insert the option either (1) after the last *FLAGS variable, or
8466 # (2) before a word containing "conftest.", or (3) at the end.
8467 # Note that $ac_compile itself does not contain backslashes and begins
8468 # with a dollar sign (not a hyphen), so the echo should work correctly.
8469 lt_compile=`echo "$ac_compile" | $SED \
8470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8472 -e 's:$: $lt_compiler_flag:'`
8473 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8474 (eval "$lt_compile" 2>out/conftest.err)
8476 cat out/conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8480 # The compiler can only warn and ignore the option if not recognized
8481 # So say no if there are warnings
8482 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8483 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8484 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8485 lt_cv_prog_compiler_c_o=yes
8490 # SGI C++ compiler will create directory out/ii_files/ for
8491 # template instantiation
8492 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8493 $RM out/* && rmdir out
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8500 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8505 hard_links="nottested"
8506 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8507 # do not overwrite the value of need_locks provided by the user
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8509 $as_echo_n "checking if we can lock with hard links... " >&6; }
8512 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8514 ln conftest.a conftest.b 2>&5 || hard_links=no
8515 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8517 $as_echo "$hard_links" >&6; }
8518 if test "$hard_links" = no; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8520 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8533 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8536 allow_undefined_flag=
8537 always_export_symbols=no
8539 archive_expsym_cmds=
8540 compiler_needs_object=no
8541 enable_shared_with_static_runtimes=no
8542 export_dynamic_flag_spec=
8543 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8544 hardcode_automatic=no
8546 hardcode_direct_absolute=no
8547 hardcode_libdir_flag_spec=
8548 hardcode_libdir_separator=
8550 hardcode_shlibpath_var=unsupported
8552 link_all_deplibs=unknown
8555 old_archive_from_new_cmds=
8556 old_archive_from_expsyms_cmds=
8557 thread_safe_flag_spec=
8558 whole_archive_flag_spec=
8559 # include_expsyms should be a list of space-separated symbols to be *always*
8560 # included in the symbol list
8562 # exclude_expsyms can be an extended regexp of symbols to exclude
8563 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8564 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8565 # as well as any symbol that contains `d'.
8566 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8567 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8568 # platforms (ab)use it in PIC code, but their linkers get confused if
8569 # the symbol is explicitly referenced. Since portable code cannot
8570 # rely on this symbol name, it's probably fine to never include it in
8571 # preloaded symbol tables.
8572 # Exclude shared library initialization/finalization symbols.
8573 extract_expsyms_cmds=
8576 cygwin* | mingw* | pw32* | cegcc*)
8577 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8578 # When not using gcc, we currently assume that we are using
8579 # Microsoft Visual C++.
8580 if test "$GCC" != yes; then
8585 # we just hope/assume this is gcc and not c89 (= MSVC++)
8595 # On some targets, GNU ld is compatible enough with the native linker
8596 # that we're better off using the native interface for both.
8597 lt_use_gnu_ld_interface=no
8598 if test "$with_gnu_ld" = yes; then
8601 # The AIX port of GNU ld has always aspired to compatibility
8602 # with the native linker. However, as the warning in the GNU ld
8603 # block says, versions before 2.19.5* couldn't really create working
8604 # shared libraries, regardless of the interface used.
8605 case `$LD -v 2>&1` in
8606 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8607 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8608 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8610 lt_use_gnu_ld_interface=yes
8615 lt_use_gnu_ld_interface=yes
8620 if test "$lt_use_gnu_ld_interface" = yes; then
8621 # If archive_cmds runs LD, not CC, wlarc should be empty
8624 # Set some defaults for GNU ld with shared library support. These
8625 # are reset later if shared libraries are not supported. Putting them
8626 # here allows them to be overridden if necessary.
8627 runpath_var=LD_RUN_PATH
8628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8629 export_dynamic_flag_spec='${wl}--export-dynamic'
8630 # ancient GNU ld didn't support --whole-archive et. al.
8631 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8632 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8634 whole_archive_flag_spec=
8636 supports_anon_versioning=no
8637 case `$LD -v 2>&1` in
8638 *GNU\ gold*) supports_anon_versioning=yes ;;
8639 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8640 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8641 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8642 *\ 2.11.*) ;; # other 2.11 versions
8643 *) supports_anon_versioning=yes ;;
8646 # See if GNU ld supports shared libraries.
8649 # On AIX/PPC, the GNU linker is very broken
8650 if test "$host_cpu" != ia64; then
8654 *** Warning: the GNU linker, at least up to release 2.19, is reported
8655 *** to be unable to reliably create shared libraries on AIX.
8656 *** Therefore, libtool is disabling shared libraries support. If you
8657 *** really care for shared libraries, you may want to install binutils
8658 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8659 *** You will then need to restart the configuration process.
8668 # see comment about AmigaOS4 .so support
8669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670 archive_expsym_cmds=''
8673 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)'
8674 hardcode_libdir_flag_spec='-L$libdir'
8675 hardcode_minus_L=yes
8681 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8682 allow_undefined_flag=unsupported
8683 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8684 # support --undefined. This deserves some investigation. FIXME
8685 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691 cygwin* | mingw* | pw32* | cegcc*)
8692 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8693 # as there is no search path for DLLs.
8694 hardcode_libdir_flag_spec='-L$libdir'
8695 export_dynamic_flag_spec='${wl}--export-all-symbols'
8696 allow_undefined_flag=unsupported
8697 always_export_symbols=no
8698 enable_shared_with_static_runtimes=yes
8699 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'
8700 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8702 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8704 # If the export-symbols file already is a .def file (1st line
8705 # is EXPORTS), use it as is; otherwise, prepend...
8706 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8707 cp $export_symbols $output_objdir/$soname.def;
8709 echo EXPORTS > $output_objdir/$soname.def;
8710 cat $export_symbols >> $output_objdir/$soname.def;
8712 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8720 link_all_deplibs=yes
8725 hardcode_shlibpath_var=no
8726 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8727 export_dynamic_flag_spec='${wl}-E'
8728 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8729 # Instead, shared libraries are loaded at an image base (0x10000000 by
8730 # default) and relocated if they conflict, which is a slow very memory
8731 # consuming and fragmenting process. To avoid this, we pick a random,
8732 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8733 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8734 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8735 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'
8738 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8740 if test "$host_os" = linux-dietlibc; then
8741 case $cc_basename in
8742 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8745 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8746 && test "$tmp_diet" = no
8748 tmp_addflag=' $pic_flag'
8749 tmp_sharedflag='-shared'
8750 case $cc_basename,$host_cpu in
8751 pgcc*) # Portland Group C compiler
8752 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'
8753 tmp_addflag=' $pic_flag'
8755 pgf77* | pgf90* | pgf95* | pgfortran*)
8756 # Portland Group f77 and f90 compilers
8757 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'
8758 tmp_addflag=' $pic_flag -Mnomain' ;;
8759 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8760 tmp_addflag=' -i_dynamic' ;;
8761 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8762 tmp_addflag=' -i_dynamic -nofor_main' ;;
8763 ifc* | ifort*) # Intel Fortran compiler
8764 tmp_addflag=' -nofor_main' ;;
8765 lf95*) # Lahey Fortran 8.1
8766 whole_archive_flag_spec=
8767 tmp_sharedflag='--shared' ;;
8768 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8769 tmp_sharedflag='-qmkshrobj'
8771 nvcc*) # Cuda Compiler Driver 2.2
8772 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'
8773 compiler_needs_object=yes
8776 case `$CC -V 2>&1 | sed 5q` in
8777 *Sun\ C*) # Sun C 5.9
8778 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'
8779 compiler_needs_object=yes
8780 tmp_sharedflag='-G' ;;
8781 *Sun\ F*) # Sun Fortran 8.3
8782 tmp_sharedflag='-G' ;;
8784 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8786 if test "x$supports_anon_versioning" = xyes; then
8787 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8788 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8789 echo "local: *; };" >> $output_objdir/$libname.ver~
8790 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8793 case $cc_basename in
8794 xlf* | bgf* | bgxlf* | mpixlf*)
8795 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8796 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8798 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8799 if test "x$supports_anon_versioning" = xyes; then
8800 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8802 echo "local: *; };" >> $output_objdir/$libname.ver~
8803 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8813 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8814 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8817 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8818 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8823 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8827 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8828 *** create shared libraries on Solaris systems. Therefore, libtool
8829 *** is disabling shared libraries support. We urge you to upgrade GNU
8830 *** binutils to release 2.9.1 or newer. Another option is to modify
8831 *** your PATH or compiler configuration so that the native linker is
8832 *** used, and then restart.
8835 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8844 case `$LD -v 2>&1` in
8845 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8849 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8850 *** reliably create shared libraries on SCO systems. Therefore, libtool
8851 *** is disabling shared libraries support. We urge you to upgrade GNU
8852 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8853 *** your PATH or compiler configuration so that the native linker is
8854 *** used, and then restart.
8859 # For security reasons, it is highly recommended that you always
8860 # use absolute paths for naming shared libraries, and exclude the
8861 # DT_RUNPATH tag from executables and libraries. But doing so
8862 # requires that you compile everything twice, which is a pain.
8863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8866 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8875 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8878 hardcode_shlibpath_var=no
8882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8883 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8884 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8891 if test "$ld_shlibs" = no; then
8893 hardcode_libdir_flag_spec=
8894 export_dynamic_flag_spec=
8895 whole_archive_flag_spec=
8898 # PORTME fill in a description of your system's linker (not GNU ld)
8901 allow_undefined_flag=unsupported
8902 always_export_symbols=yes
8903 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'
8904 # Note: this linker hardcodes the directories in LIBPATH if there
8905 # are no directories specified by -L.
8906 hardcode_minus_L=yes
8907 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8908 # Neither direct hardcoding nor static linking is supported with a
8910 hardcode_direct=unsupported
8915 if test "$host_cpu" = ia64; then
8916 # On IA64, the linker does run time linking by default, so we don't
8917 # have to do anything special.
8918 aix_use_runtimelinking=no
8919 exp_sym_flag='-Bexport'
8922 # If we're using GNU nm, then we don't want the "-C" option.
8923 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8924 # Also, AIX nm treats weak defined symbols like other global
8925 # defined symbols, whereas GNU nm marks them as "W".
8926 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8927 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'
8929 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'
8931 aix_use_runtimelinking=no
8933 # Test if we are trying to use run time linking or normal
8934 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8935 # need to do runtime linking.
8936 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8937 for ld_flag in $LDFLAGS; do
8938 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8939 aix_use_runtimelinking=yes
8946 exp_sym_flag='-bexport'
8947 no_entry_flag='-bnoentry'
8950 # When large executables or shared objects are built, AIX ld can
8951 # have problems creating the table of contents. If linking a library
8952 # or program results in "error TOC overflow" add -mminimal-toc to
8953 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8954 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8958 hardcode_direct_absolute=yes
8959 hardcode_libdir_separator=':'
8960 link_all_deplibs=yes
8961 file_list_spec='${wl}-f,'
8963 if test "$GCC" = yes; then
8964 case $host_os in aix4.[012]|aix4.[012].*)
8965 # We only want to do this on AIX 4.2 and lower, the check
8966 # below for broken collect2 doesn't work under 4.3+
8967 collect2name=`${CC} -print-prog-name=collect2`
8968 if test -f "$collect2name" &&
8969 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8971 # We have reworked collect2
8974 # We have old collect2
8975 hardcode_direct=unsupported
8976 # It fails to find uninstalled libraries when the uninstalled
8977 # path is not listed in the libpath. Setting hardcode_minus_L
8978 # to unsupported forces relinking
8979 hardcode_minus_L=yes
8980 hardcode_libdir_flag_spec='-L$libdir'
8981 hardcode_libdir_separator=
8985 shared_flag='-shared'
8986 if test "$aix_use_runtimelinking" = yes; then
8987 shared_flag="$shared_flag "'${wl}-G'
8991 if test "$host_cpu" = ia64; then
8992 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8993 # chokes on -Wl,-G. The following line is correct:
8996 if test "$aix_use_runtimelinking" = yes; then
8997 shared_flag='${wl}-G'
8999 shared_flag='${wl}-bM:SRE'
9004 export_dynamic_flag_spec='${wl}-bexpall'
9005 # It seems that -bexpall does not export symbols beginning with
9006 # underscore (_), so it is better to generate a list of symbols to export.
9007 always_export_symbols=yes
9008 if test "$aix_use_runtimelinking" = yes; then
9009 # Warning - without using the other runtime loading flags (-brtl),
9010 # -berok will link without error, but may produce a broken library.
9011 allow_undefined_flag='-berok'
9012 # Determine the default libpath from the value encoded in an
9014 if test "${lt_cv_aix_libpath+set}" = set; then
9015 aix_libpath=$lt_cv_aix_libpath
9017 if ${lt_cv_aix_libpath_+:} false; then :
9018 $as_echo_n "(cached) " >&6
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9031 if ac_fn_c_try_link "$LINENO"; then :
9033 lt_aix_libpath_sed='
9034 /Import File Strings/,/^$/ {
9036 s/^0 *\([^ ]*\) *$/\1/
9040 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9041 # Check for a 64-bit object if we didn't find anything.
9042 if test -z "$lt_cv_aix_libpath_"; then
9043 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9046 rm -f core conftest.err conftest.$ac_objext \
9047 conftest$ac_exeext conftest.$ac_ext
9048 if test -z "$lt_cv_aix_libpath_"; then
9049 lt_cv_aix_libpath_="/usr/lib:/lib"
9054 aix_libpath=$lt_cv_aix_libpath_
9057 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9058 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"
9060 if test "$host_cpu" = ia64; then
9061 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9062 allow_undefined_flag="-z nodefs"
9063 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"
9065 # Determine the default libpath from the value encoded in an
9067 if test "${lt_cv_aix_libpath+set}" = set; then
9068 aix_libpath=$lt_cv_aix_libpath
9070 if ${lt_cv_aix_libpath_+:} false; then :
9071 $as_echo_n "(cached) " >&6
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9084 if ac_fn_c_try_link "$LINENO"; then :
9086 lt_aix_libpath_sed='
9087 /Import File Strings/,/^$/ {
9089 s/^0 *\([^ ]*\) *$/\1/
9093 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9094 # Check for a 64-bit object if we didn't find anything.
9095 if test -z "$lt_cv_aix_libpath_"; then
9096 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9099 rm -f core conftest.err conftest.$ac_objext \
9100 conftest$ac_exeext conftest.$ac_ext
9101 if test -z "$lt_cv_aix_libpath_"; then
9102 lt_cv_aix_libpath_="/usr/lib:/lib"
9107 aix_libpath=$lt_cv_aix_libpath_
9110 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9111 # Warning - without using the other run time loading flags,
9112 # -berok will link without error, but may produce a broken library.
9113 no_undefined_flag=' ${wl}-bernotok'
9114 allow_undefined_flag=' ${wl}-berok'
9115 if test "$with_gnu_ld" = yes; then
9116 # We only use this code for GNU lds that support --whole-archive.
9117 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9119 # Exported symbols can be pulled into shared objects from archives
9120 whole_archive_flag_spec='$convenience'
9122 archive_cmds_need_lc=yes
9123 # This is similar to how AIX traditionally builds its shared libraries.
9124 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'
9132 # see comment about AmigaOS4 .so support
9133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9134 archive_expsym_cmds=''
9137 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)'
9138 hardcode_libdir_flag_spec='-L$libdir'
9139 hardcode_minus_L=yes
9145 export_dynamic_flag_spec=-rdynamic
9148 cygwin* | mingw* | pw32* | cegcc*)
9149 # When not using gcc, we currently assume that we are using
9150 # Microsoft Visual C++.
9151 # hardcode_libdir_flag_spec is actually meaningless, as there is
9152 # no search path for DLLs.
9153 case $cc_basename in
9156 hardcode_libdir_flag_spec=' '
9157 allow_undefined_flag=unsupported
9158 always_export_symbols=yes
9160 # Tell ltmain to make .lib files, not .a files.
9162 # Tell ltmain to make .dll files, not .so files.
9164 # FIXME: Setting linknames here is a bad hack.
9165 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9166 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9167 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9169 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9171 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9173 # The linker will not automatically build a static lib if we build a DLL.
9174 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9175 enable_shared_with_static_runtimes=yes
9176 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9177 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9179 old_postinstall_cmds='chmod 644 $oldlib'
9180 postlink_cmds='lt_outputfile="@OUTPUT@"~
9181 lt_tool_outputfile="@TOOL_OUTPUT@"~
9182 case $lt_outputfile in
9185 lt_outputfile="$lt_outputfile.exe"
9186 lt_tool_outputfile="$lt_tool_outputfile.exe"
9189 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9190 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9191 $RM "$lt_outputfile.manifest";
9195 # Assume MSVC wrapper
9196 hardcode_libdir_flag_spec=' '
9197 allow_undefined_flag=unsupported
9198 # Tell ltmain to make .lib files, not .a files.
9200 # Tell ltmain to make .dll files, not .so files.
9202 # FIXME: Setting linknames here is a bad hack.
9203 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9204 # The linker will automatically build a .lib file if we build a DLL.
9205 old_archive_from_new_cmds='true'
9206 # FIXME: Should let the user specify the lib program.
9207 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9208 enable_shared_with_static_runtimes=yes
9213 darwin* | rhapsody*)
9216 archive_cmds_need_lc=no
9218 hardcode_automatic=yes
9219 hardcode_shlibpath_var=unsupported
9220 if test "$lt_cv_ld_force_load" = "yes"; then
9221 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\"`'
9224 whole_archive_flag_spec=''
9226 link_all_deplibs=yes
9227 allow_undefined_flag="$_lt_dar_allow_undefined"
9228 case $cc_basename in
9229 ifort*) _lt_dar_can_shared=yes ;;
9230 *) _lt_dar_can_shared=$GCC ;;
9232 if test "$_lt_dar_can_shared" = "yes"; then
9233 output_verbose_link_cmd=func_echo_all
9234 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9235 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9236 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}"
9237 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}"
9246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9247 hardcode_libdir_flag_spec='-L$libdir'
9248 hardcode_shlibpath_var=no
9251 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9252 # support. Future versions do this automatically, but an explicit c++rt0.o
9253 # does not break anything, and helps significantly (at the cost of a little
9256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9257 hardcode_libdir_flag_spec='-R$libdir'
9259 hardcode_shlibpath_var=no
9262 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9266 hardcode_minus_L=yes
9267 hardcode_shlibpath_var=no
9270 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9271 freebsd* | dragonfly*)
9272 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9273 hardcode_libdir_flag_spec='-R$libdir'
9275 hardcode_shlibpath_var=no
9279 if test "$GCC" = yes; then
9280 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'
9282 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'
9284 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9285 hardcode_libdir_separator=:
9288 # hardcode_minus_L: Not really in the search PATH,
9289 # but as the default location of the library.
9290 hardcode_minus_L=yes
9291 export_dynamic_flag_spec='${wl}-E'
9295 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9296 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9298 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9300 if test "$with_gnu_ld" = no; then
9301 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9302 hardcode_libdir_separator=:
9304 hardcode_direct_absolute=yes
9305 export_dynamic_flag_spec='${wl}-E'
9306 # hardcode_minus_L: Not really in the search PATH,
9307 # but as the default location of the library.
9308 hardcode_minus_L=yes
9313 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9316 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9319 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9322 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9328 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9331 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9335 # Older versions of the 11.00 compiler do not understand -b yet
9336 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9338 $as_echo_n "checking if $CC understands -b... " >&6; }
9339 if ${lt_cv_prog_compiler__b+:} false; then :
9340 $as_echo_n "(cached) " >&6
9342 lt_cv_prog_compiler__b=no
9343 save_LDFLAGS="$LDFLAGS"
9344 LDFLAGS="$LDFLAGS -b"
9345 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9347 # The linker can only warn and ignore the option if not recognized
9348 # So say no if there are warnings
9349 if test -s conftest.err; then
9350 # Append any errors to the config.log.
9351 cat conftest.err 1>&5
9352 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9354 if diff conftest.exp conftest.er2 >/dev/null; then
9355 lt_cv_prog_compiler__b=yes
9358 lt_cv_prog_compiler__b=yes
9362 LDFLAGS="$save_LDFLAGS"
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9366 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9368 if test x"$lt_cv_prog_compiler__b" = xyes; then
9369 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9371 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9377 if test "$with_gnu_ld" = no; then
9378 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9379 hardcode_libdir_separator=:
9384 hardcode_shlibpath_var=no
9388 hardcode_direct_absolute=yes
9389 export_dynamic_flag_spec='${wl}-E'
9391 # hardcode_minus_L: Not really in the search PATH,
9392 # but as the default location of the library.
9393 hardcode_minus_L=yes
9399 irix5* | irix6* | nonstopux*)
9400 if test "$GCC" = yes; then
9401 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'
9402 # Try to use the -exported_symbol ld option, if it does not
9403 # work, assume that -exports_file does not work either and
9404 # implicitly export all symbols.
9405 # This should be the same for all languages, so no per-tag cache variable.
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9407 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9408 if ${lt_cv_irix_exported_symbol+:} false; then :
9409 $as_echo_n "(cached) " >&6
9411 save_LDFLAGS="$LDFLAGS"
9412 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h. */
9415 int foo (void) { return 0; }
9417 if ac_fn_c_try_link "$LINENO"; then :
9418 lt_cv_irix_exported_symbol=yes
9420 lt_cv_irix_exported_symbol=no
9422 rm -f core conftest.err conftest.$ac_objext \
9423 conftest$ac_exeext conftest.$ac_ext
9424 LDFLAGS="$save_LDFLAGS"
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9427 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9428 if test "$lt_cv_irix_exported_symbol" = yes; then
9429 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'
9432 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'
9433 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'
9435 archive_cmds_need_lc='no'
9436 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9437 hardcode_libdir_separator=:
9439 link_all_deplibs=yes
9443 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9444 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9446 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9448 hardcode_libdir_flag_spec='-R$libdir'
9450 hardcode_shlibpath_var=no
9454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9457 hardcode_libdir_separator=:
9458 hardcode_shlibpath_var=no
9465 if test -f /usr/libexec/ld.so; then
9467 hardcode_shlibpath_var=no
9468 hardcode_direct_absolute=yes
9469 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9470 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9471 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9472 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9473 export_dynamic_flag_spec='${wl}-E'
9476 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9478 hardcode_libdir_flag_spec='-R$libdir'
9481 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9482 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9492 hardcode_libdir_flag_spec='-L$libdir'
9493 hardcode_minus_L=yes
9494 allow_undefined_flag=unsupported
9495 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'
9496 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9500 if test "$GCC" = yes; then
9501 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9502 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'
9504 allow_undefined_flag=' -expect_unresolved \*'
9505 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'
9507 archive_cmds_need_lc='no'
9508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9509 hardcode_libdir_separator=:
9512 osf4* | osf5*) # as osf3* with the addition of -msym flag
9513 if test "$GCC" = yes; then
9514 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9515 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'
9516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9518 allow_undefined_flag=' -expect_unresolved \*'
9519 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'
9520 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~
9521 $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'
9523 # Both c and cxx compiler support -rpath directly
9524 hardcode_libdir_flag_spec='-rpath $libdir'
9526 archive_cmds_need_lc='no'
9527 hardcode_libdir_separator=:
9531 no_undefined_flag=' -z defs'
9532 if test "$GCC" = yes; then
9534 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9535 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9536 $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'
9538 case `$CC -V 2>&1` in
9541 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9543 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9547 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9548 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9549 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9553 hardcode_libdir_flag_spec='-R$libdir'
9554 hardcode_shlibpath_var=no
9556 solaris2.[0-5] | solaris2.[0-5].*) ;;
9558 # The compiler driver will combine and reorder linker options,
9559 # but understands `-z linker_flag'. GCC discards it without `$wl',
9560 # but is careful enough not to reorder.
9561 # Supported since Solaris 2.6 (maybe 2.5.1?)
9562 if test "$GCC" = yes; then
9563 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9565 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9569 link_all_deplibs=yes
9573 if test "x$host_vendor" = xsequent; then
9574 # Use $CC to link under sequent, because it throws in some extra .o
9575 # files that make .init and .fini sections work.
9576 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9578 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_libdir_flag_spec='-L$libdir'
9582 hardcode_minus_L=yes
9583 hardcode_shlibpath_var=no
9587 case $host_vendor in
9589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9590 hardcode_direct=yes # is this really true???
9593 ## LD is ld it makes a PLAMLIB
9594 ## CC just makes a GrossModule.
9595 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9596 reload_cmds='$CC -r -o $output$reload_objs'
9600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9604 runpath_var='LD_RUN_PATH'
9605 hardcode_shlibpath_var=no
9609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9610 hardcode_shlibpath_var=no
9611 export_dynamic_flag_spec='-Bexport'
9615 if test -d /usr/nec; then
9616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9617 hardcode_shlibpath_var=no
9618 runpath_var=LD_RUN_PATH
9619 hardcode_runpath_var=yes
9624 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9625 no_undefined_flag='${wl}-z,text'
9626 archive_cmds_need_lc=no
9627 hardcode_shlibpath_var=no
9628 runpath_var='LD_RUN_PATH'
9630 if test "$GCC" = yes; then
9631 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9632 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9634 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9635 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9639 sysv5* | sco3.2v5* | sco5v6*)
9640 # Note: We can NOT use -z defs as we might desire, because we do not
9641 # link with -lc, and that would cause any symbols used from libc to
9642 # always be unresolved, which means just about no library would
9643 # ever link correctly. If we're not using GNU ld we use -z text
9644 # though, which does catch some bad symbols but isn't as heavy-handed
9646 no_undefined_flag='${wl}-z,text'
9647 allow_undefined_flag='${wl}-z,nodefs'
9648 archive_cmds_need_lc=no
9649 hardcode_shlibpath_var=no
9650 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9651 hardcode_libdir_separator=':'
9652 link_all_deplibs=yes
9653 export_dynamic_flag_spec='${wl}-Bexport'
9654 runpath_var='LD_RUN_PATH'
9656 if test "$GCC" = yes; then
9657 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9658 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9660 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9661 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_libdir_flag_spec='-L$libdir'
9668 hardcode_shlibpath_var=no
9676 if test x$host_vendor = xsni; then
9678 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9679 export_dynamic_flag_spec='${wl}-Blargedynsym'
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9686 $as_echo "$ld_shlibs" >&6; }
9687 test "$ld_shlibs" = no && can_build_shared=no
9689 with_gnu_ld=$with_gnu_ld
9706 # Do we need to explicitly link libc?
9708 case "x$archive_cmds_need_lc" in
9710 # Assume -lc should be added
9711 archive_cmds_need_lc=yes
9713 if test "$enable_shared" = yes && test "$GCC" = yes; then
9714 case $archive_cmds in
9716 # FIXME: we may have to deal with multi-command sequences.
9719 # Test whether the compiler implicitly links with -lc since on some
9720 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9721 # to ld, don't add -lc before -lgcc.
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9723 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9724 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9725 $as_echo_n "(cached) " >&6
9728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9731 (eval $ac_compile) 2>&5
9733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9734 test $ac_status = 0; } 2>conftest.err; then
9737 libobjs=conftest.$ac_objext
9739 wl=$lt_prog_compiler_wl
9740 pic_flag=$lt_prog_compiler_pic
9746 lt_save_allow_undefined_flag=$allow_undefined_flag
9747 allow_undefined_flag=
9748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9749 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9752 test $ac_status = 0; }
9754 lt_cv_archive_cmds_need_lc=no
9756 lt_cv_archive_cmds_need_lc=yes
9758 allow_undefined_flag=$lt_save_allow_undefined_flag
9760 cat conftest.err 1>&5
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9766 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9767 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9926 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9928 if test "$GCC" = yes; then
9930 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9931 *) lt_awk_arg="/^libraries:/" ;;
9934 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9935 *) lt_sed_strip_eq="s,=/,/,g" ;;
9937 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9938 case $lt_search_path_spec in
9940 # if the path contains ";" then we assume it to be the separator
9941 # otherwise default to the standard path separator (i.e. ":") - it is
9942 # assumed that no part of a normal pathname contains ";" but that should
9943 # okay in the real world where ";" in dirpaths is itself problematic.
9944 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9947 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9950 # Ok, now we have the path, separated by spaces, we can step through it
9951 # and add multilib dir if necessary...
9952 lt_tmp_lt_search_path_spec=
9953 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9954 # ...but if some path already ends with the multilib dir we assume
9955 # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
9956 case "$lt_multi_os_dir; $lt_search_path_spec " in
9957 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9961 for lt_sys_path in $lt_search_path_spec; do
9962 if test -d "$lt_sys_path$lt_multi_os_dir"; then
9963 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9964 elif test -n "$lt_multi_os_dir"; then
9965 test -d "$lt_sys_path" && \
9966 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9969 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9970 BEGIN {RS=" "; FS="/|\n";} {
9973 for (lt_i = NF; lt_i > 0; lt_i--) {
9974 if ($lt_i != "" && $lt_i != ".") {
9975 if ($lt_i == "..") {
9978 if (lt_count == 0) {
9979 lt_foo="/" $lt_i lt_foo;
9986 if (lt_foo != "") { lt_freq[lt_foo]++; }
9987 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9989 # AWK program above erroneously prepends '/' to C:/dos/paths
9992 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9993 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9995 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9997 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10000 libname_spec='lib$name'
10004 postuninstall_cmds=
10008 shlibpath_overrides_runpath=unknown
10010 dynamic_linker="$host_os ld.so"
10011 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10012 need_lib_prefix=unknown
10013 hardcode_into_libs=no
10015 # when you set need_version to no, make sure it does not cause -set_version
10016 # flags to be left without arguments
10017 need_version=unknown
10021 version_type=linux # correct to gnu/linux during the next big refactor
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10023 shlibpath_var=LIBPATH
10025 # AIX 3 has no versioning support, so we append a major version to the name.
10026 soname_spec='${libname}${release}${shared_ext}$major'
10030 version_type=linux # correct to gnu/linux during the next big refactor
10033 hardcode_into_libs=yes
10034 if test "$host_cpu" = ia64; then
10035 # AIX 5 supports IA64
10036 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10037 shlibpath_var=LD_LIBRARY_PATH
10039 # With GCC up to 2.95.x, collect2 would create an import file
10040 # for dependence libraries. The import file would start with
10041 # the line `#! .'. This would cause the generated library to
10042 # depend on `.', always an invalid library. This was fixed in
10043 # development snapshots of GCC prior to 3.0.
10045 aix4 | aix4.[01] | aix4.[01].*)
10046 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10048 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10051 can_build_shared=no
10055 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10056 # soname into executable. Probably we can add versioning support to
10057 # collect2, so additional links can be useful in future.
10058 if test "$aix_use_runtimelinking" = yes; then
10059 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10060 # instead of lib<name>.a to let people know that these are not
10061 # typical AIX shared libraries.
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064 # We preserve .a as extension for shared libraries through AIX4.2
10065 # and later when we are not doing run time linking.
10066 library_names_spec='${libname}${release}.a $libname.a'
10067 soname_spec='${libname}${release}${shared_ext}$major'
10069 shlibpath_var=LIBPATH
10076 # Since July 2007 AmigaOS4 officially supports .so libraries.
10077 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10081 library_names_spec='$libname.ixlibrary $libname.a'
10082 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10083 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'
10089 library_names_spec='${libname}${shared_ext}'
10090 dynamic_linker="$host_os ld.so"
10091 shlibpath_var=LIBRARY_PATH
10095 version_type=linux # correct to gnu/linux during the next big refactor
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098 soname_spec='${libname}${release}${shared_ext}$major'
10099 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10100 shlibpath_var=LD_LIBRARY_PATH
10101 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10102 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10103 # the default ld.so.conf also contains /usr/contrib/lib and
10104 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10105 # libtool to hard-code these into programs
10108 cygwin* | mingw* | pw32* | cegcc*)
10109 version_type=windows
10114 case $GCC,$cc_basename in
10117 library_names_spec='$libname.dll.a'
10118 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10119 postinstall_cmds='base_file=`basename \${file}`~
10120 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10121 dldir=$destdir/`dirname \$dlpath`~
10122 test -d \$dldir || mkdir -p \$dldir~
10123 $install_prog $dir/$dlname \$dldir/$dlname~
10124 chmod a+x \$dldir/$dlname~
10125 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10126 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10128 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10129 dlpath=$dir/\$dldll~
10131 shlibpath_overrides_runpath=yes
10135 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10136 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
10137 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
10139 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10142 # MinGW DLLs use traditional 'lib' prefix
10143 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
10144 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
10147 # pw32 DLLs use 'pw' prefix rather than 'lib'
10148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10151 dynamic_linker='Win32 ld.exe'
10156 libname_spec='$name'
10157 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10158 library_names_spec='${libname}.dll.lib'
10162 sys_lib_search_path_spec=
10165 for lt_path in $LIB
10168 # Let DOS variable expansion print the short 8.3 style file name.
10169 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10170 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10173 # Convert to MSYS style.
10174 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10177 # Convert to unix form, then to dos form, then back to unix form
10178 # but this time dos style (no spaces!) so that the unix form looks
10179 # like /cygdrive/c/PROGRA~1:/cygdr...
10180 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10181 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10182 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10185 sys_lib_search_path_spec="$LIB"
10186 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10187 # It is most probably a Windows format PATH.
10188 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10190 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10192 # FIXME: find the short name or the path components, as spaces are
10193 # common. (e.g. "Program Files" -> "PROGRA~1")
10197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10198 postinstall_cmds='base_file=`basename \${file}`~
10199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10200 dldir=$destdir/`dirname \$dlpath`~
10201 test -d \$dldir || mkdir -p \$dldir~
10202 $install_prog $dir/$dlname \$dldir/$dlname'
10203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10204 dlpath=$dir/\$dldll~
10206 shlibpath_overrides_runpath=yes
10207 dynamic_linker='Win32 link.exe'
10211 # Assume MSVC wrapper
10212 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10213 dynamic_linker='Win32 ld.exe'
10216 # FIXME: first we should search . and the directory the executable is in
10220 darwin* | rhapsody*)
10221 dynamic_linker="$host_os dyld"
10222 version_type=darwin
10225 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10226 soname_spec='${libname}${release}${major}$shared_ext'
10227 shlibpath_overrides_runpath=yes
10228 shlibpath_var=DYLD_LIBRARY_PATH
10229 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10231 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10236 version_type=linux # correct to gnu/linux during the next big refactor
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10240 soname_spec='${libname}${release}${shared_ext}$major'
10241 shlibpath_var=LD_LIBRARY_PATH
10244 freebsd* | dragonfly*)
10245 # DragonFly does not have aout. When/if they implement a new
10246 # versioning mechanism, adjust this.
10247 if test -x /usr/bin/objformat; then
10248 objformat=`/usr/bin/objformat`
10251 freebsd[23].*) objformat=aout ;;
10252 *) objformat=elf ;;
10255 version_type=freebsd-$objformat
10256 case $version_type in
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10267 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=yes
10272 freebsd3.[01]* | freebsdelf3.[01]*)
10273 shlibpath_overrides_runpath=yes
10274 hardcode_into_libs=yes
10276 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10277 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10278 shlibpath_overrides_runpath=no
10279 hardcode_into_libs=yes
10281 *) # from 4.6 on, and DragonFly
10282 shlibpath_overrides_runpath=yes
10283 hardcode_into_libs=yes
10289 version_type=linux # correct to gnu/linux during the next big refactor
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 shlibpath_overrides_runpath=no
10296 hardcode_into_libs=yes
10300 version_type=linux # correct to gnu/linux during the next big refactor
10303 dynamic_linker="$host_os runtime_loader"
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 shlibpath_var=LIBRARY_PATH
10307 shlibpath_overrides_runpath=yes
10308 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10309 hardcode_into_libs=yes
10312 hpux9* | hpux10* | hpux11*)
10313 # Give a soname corresponding to the major version so that dld.sl refuses to
10314 # link against other versions.
10321 hardcode_into_libs=yes
10322 dynamic_linker="$host_os dld.so"
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 if test "X$HPUX_IA64_MODE" = X32; then
10328 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10336 hardcode_into_libs=yes
10337 dynamic_linker="$host_os dld.sl"
10338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10347 dynamic_linker="$host_os dld.sl"
10348 shlibpath_var=SHLIB_PATH
10349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10354 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10355 postinstall_cmds='chmod 555 $lib'
10356 # or fails outright, so override atomically:
10357 install_override_mode=555
10361 version_type=linux # correct to gnu/linux during the next big refactor
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=no
10369 hardcode_into_libs=yes
10372 irix5* | irix6* | nonstopux*)
10374 nonstopux*) version_type=nonstopux ;;
10376 if test "$lt_cv_prog_gnu_ld" = yes; then
10377 version_type=linux # correct to gnu/linux during the next big refactor
10384 soname_spec='${libname}${release}${shared_ext}$major'
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10387 irix5* | nonstopux*)
10388 libsuff= shlibsuff=
10391 case $LD in # libtool.m4 will add one of these switches to LD
10392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10393 libsuff= shlibsuff= libmagic=32-bit;;
10394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10395 libsuff=32 shlibsuff=N32 libmagic=N32;;
10396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10397 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10398 *) libsuff= shlibsuff= libmagic=never-match;;
10402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10403 shlibpath_overrides_runpath=no
10404 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10405 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10406 hardcode_into_libs=yes
10409 # No shared lib support for Linux oldld, aout, or coff.
10410 linux*oldld* | linux*aout* | linux*coff*)
10414 # This must be glibc/ELF.
10415 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10416 version_type=linux # correct to gnu/linux during the next big refactor
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10422 shlibpath_var=LD_LIBRARY_PATH
10423 shlibpath_overrides_runpath=no
10425 # Some binutils ld are patched to set DT_RUNPATH
10426 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10427 $as_echo_n "(cached) " >&6
10429 lt_cv_shlibpath_overrides_runpath=no
10430 save_LDFLAGS=$LDFLAGS
10431 save_libdir=$libdir
10432 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10433 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10445 if ac_fn_c_try_link "$LINENO"; then :
10446 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10447 lt_cv_shlibpath_overrides_runpath=yes
10450 rm -f core conftest.err conftest.$ac_objext \
10451 conftest$ac_exeext conftest.$ac_ext
10452 LDFLAGS=$save_LDFLAGS
10453 libdir=$save_libdir
10457 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10459 # This implies no fast_install, which is unacceptable.
10460 # Some rework will be needed to allow for fast_install
10461 # before this can be enabled.
10462 hardcode_into_libs=yes
10464 # Append ld.so.conf contents to the search path
10465 if test -f /etc/ld.so.conf; then
10466 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' ' '`
10467 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10470 # We used to test for /lib/ld.so.1 and disable shared libraries on
10471 # powerpc, because MkLinux only supported shared libraries with the
10472 # GNU dynamic linker. Since this was broken with cross compilers,
10473 # most powerpc-linux boxes support dynamic linking these days and
10474 # people can always --disable-shared, the test was removed, and we
10475 # assume the GNU/Linux dynamic linker is in use.
10476 dynamic_linker='GNU/Linux ld.so'
10483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10486 dynamic_linker='NetBSD (a.out) ld.so'
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 dynamic_linker='NetBSD ld.elf_so'
10492 shlibpath_var=LD_LIBRARY_PATH
10493 shlibpath_overrides_runpath=yes
10494 hardcode_into_libs=yes
10498 version_type=linux # correct to gnu/linux during the next big refactor
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 shlibpath_var=LD_LIBRARY_PATH
10501 shlibpath_overrides_runpath=yes
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 soname_spec='${libname}${release}${shared_ext}$major'
10510 shlibpath_var=LD_LIBRARY_PATH
10511 shlibpath_overrides_runpath=no
10512 hardcode_into_libs=yes
10513 dynamic_linker='ldqnx.so'
10518 sys_lib_dlsearch_path_spec="/usr/lib"
10520 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10522 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10523 *) need_version=no ;;
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10530 openbsd2.[89] | openbsd2.[89].*)
10531 shlibpath_overrides_runpath=no
10534 shlibpath_overrides_runpath=yes
10538 shlibpath_overrides_runpath=yes
10543 libname_spec='$name'
10546 library_names_spec='$libname${shared_ext} $libname.a'
10547 dynamic_linker='OS/2 ld.exe'
10548 shlibpath_var=LIBPATH
10551 osf3* | osf4* | osf5*)
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10567 version_type=linux # correct to gnu/linux during the next big refactor
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571 soname_spec='${libname}${release}${shared_ext}$major'
10572 shlibpath_var=LD_LIBRARY_PATH
10573 shlibpath_overrides_runpath=yes
10574 hardcode_into_libs=yes
10575 # ldd complains unless libraries are executable
10576 postinstall_cmds='chmod +x $lib'
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10582 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 shlibpath_overrides_runpath=yes
10585 if test "$with_gnu_ld" = yes; then
10592 version_type=linux # correct to gnu/linux during the next big refactor
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 shlibpath_var=LD_LIBRARY_PATH
10596 case $host_vendor in
10598 shlibpath_overrides_runpath=no
10600 runpath_var=LD_RUN_PATH
10608 shlibpath_overrides_runpath=no
10609 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10615 if test -d /usr/nec ;then
10616 version_type=linux # correct to gnu/linux during the next big refactor
10617 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10618 soname_spec='$libname${shared_ext}.$major'
10619 shlibpath_var=LD_LIBRARY_PATH
10623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10624 version_type=freebsd-elf
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10628 soname_spec='${libname}${release}${shared_ext}$major'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 shlibpath_overrides_runpath=yes
10631 hardcode_into_libs=yes
10632 if test "$with_gnu_ld" = yes; then
10633 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10635 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10638 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10642 sys_lib_dlsearch_path_spec='/usr/lib'
10646 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10647 version_type=linux # correct to gnu/linux during the next big refactor
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 shlibpath_overrides_runpath=no
10653 hardcode_into_libs=yes
10657 version_type=linux # correct to gnu/linux during the next big refactor
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 shlibpath_var=LD_LIBRARY_PATH
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10668 $as_echo "$dynamic_linker" >&6; }
10669 test "$dynamic_linker" = no && can_build_shared=no
10671 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10672 if test "$GCC" = yes; then
10673 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10676 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10677 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10679 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10680 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10775 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10777 if test -n "$hardcode_libdir_flag_spec" ||
10778 test -n "$runpath_var" ||
10779 test "X$hardcode_automatic" = "Xyes" ; then
10781 # We can hardcode non-existent directories.
10782 if test "$hardcode_direct" != no &&
10783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10784 # have to relink, otherwise we might link with an installed library
10785 # when we should be linking with a yet-to-be-installed one
10786 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10787 test "$hardcode_minus_L" != no; then
10788 # Linking always hardcodes the temporary library directory.
10789 hardcode_action=relink
10791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10792 hardcode_action=immediate
10795 # We cannot hardcode anything, or else we can only hardcode existing
10797 hardcode_action=unsupported
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10800 $as_echo "$hardcode_action" >&6; }
10802 if test "$hardcode_action" = relink ||
10803 test "$inherit_rpath" = yes; then
10804 # Fast installation is not supported
10805 enable_fast_install=no
10806 elif test "$shlibpath_overrides_runpath" = yes ||
10807 test "$enable_shared" = no; then
10808 # Fast installation is not necessary
10809 enable_fast_install=needless
10817 if test "x$enable_dlopen" != xyes; then
10818 enable_dlopen=unknown
10819 enable_dlopen_self=unknown
10820 enable_dlopen_self_static=unknown
10827 lt_cv_dlopen="load_add_on"
10829 lt_cv_dlopen_self=yes
10832 mingw* | pw32* | cegcc*)
10833 lt_cv_dlopen="LoadLibrary"
10838 lt_cv_dlopen="dlopen"
10843 # if libdl is installed we need to link against it
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10845 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10846 if ${ac_cv_lib_dl_dlopen+:} false; then :
10847 $as_echo_n "(cached) " >&6
10849 ac_check_lib_save_LIBS=$LIBS
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10869 if ac_fn_c_try_link "$LINENO"; then :
10870 ac_cv_lib_dl_dlopen=yes
10872 ac_cv_lib_dl_dlopen=no
10874 rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10879 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10880 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10884 lt_cv_dlopen="dyld"
10886 lt_cv_dlopen_self=yes
10893 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10894 if test "x$ac_cv_func_shl_load" = xyes; then :
10895 lt_cv_dlopen="shl_load"
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10898 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10899 if ${ac_cv_lib_dld_shl_load+:} false; then :
10900 $as_echo_n "(cached) " >&6
10902 ac_check_lib_save_LIBS=$LIBS
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10907 /* Override any GCC internal prototype to avoid an error.
10908 Use char because int might match the return type of a GCC
10909 builtin and then its argument prototype would still apply. */
10917 return shl_load ();
10922 if ac_fn_c_try_link "$LINENO"; then :
10923 ac_cv_lib_dld_shl_load=yes
10925 ac_cv_lib_dld_shl_load=no
10927 rm -f core conftest.err conftest.$ac_objext \
10928 conftest$ac_exeext conftest.$ac_ext
10929 LIBS=$ac_check_lib_save_LIBS
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10932 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10933 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10934 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10936 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10937 if test "x$ac_cv_func_dlopen" = xyes; then :
10938 lt_cv_dlopen="dlopen"
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10942 if ${ac_cv_lib_dl_dlopen+:} false; then :
10943 $as_echo_n "(cached) " >&6
10945 ac_check_lib_save_LIBS=$LIBS
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10950 /* Override any GCC internal prototype to avoid an error.
10951 Use char because int might match the return type of a GCC
10952 builtin and then its argument prototype would still apply. */
10965 if ac_fn_c_try_link "$LINENO"; then :
10966 ac_cv_lib_dl_dlopen=yes
10968 ac_cv_lib_dl_dlopen=no
10970 rm -f core conftest.err conftest.$ac_objext \
10971 conftest$ac_exeext conftest.$ac_ext
10972 LIBS=$ac_check_lib_save_LIBS
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10975 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10976 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10977 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10980 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10981 if ${ac_cv_lib_svld_dlopen+:} false; then :
10982 $as_echo_n "(cached) " >&6
10984 ac_check_lib_save_LIBS=$LIBS
10985 LIBS="-lsvld $LIBS"
10986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10989 /* Override any GCC internal prototype to avoid an error.
10990 Use char because int might match the return type of a GCC
10991 builtin and then its argument prototype would still apply. */
11004 if ac_fn_c_try_link "$LINENO"; then :
11005 ac_cv_lib_svld_dlopen=yes
11007 ac_cv_lib_svld_dlopen=no
11009 rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
11011 LIBS=$ac_check_lib_save_LIBS
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11014 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11015 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11019 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11020 if ${ac_cv_lib_dld_dld_link+:} false; then :
11021 $as_echo_n "(cached) " >&6
11023 ac_check_lib_save_LIBS=$LIBS
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11028 /* Override any GCC internal prototype to avoid an error.
11029 Use char because int might match the return type of a GCC
11030 builtin and then its argument prototype would still apply. */
11038 return dld_link ();
11043 if ac_fn_c_try_link "$LINENO"; then :
11044 ac_cv_lib_dld_dld_link=yes
11046 ac_cv_lib_dld_dld_link=no
11048 rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11053 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11054 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11055 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11076 if test "x$lt_cv_dlopen" != xno; then
11082 case $lt_cv_dlopen in
11084 save_CPPFLAGS="$CPPFLAGS"
11085 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11087 save_LDFLAGS="$LDFLAGS"
11088 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11091 LIBS="$lt_cv_dlopen_libs $LIBS"
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11094 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11095 if ${lt_cv_dlopen_self+:} false; then :
11096 $as_echo_n "(cached) " >&6
11098 if test "$cross_compiling" = yes; then :
11099 lt_cv_dlopen_self=cross
11101 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11102 lt_status=$lt_dlunknown
11103 cat > conftest.$ac_ext <<_LT_EOF
11104 #line $LINENO "configure"
11105 #include "confdefs.h"
11114 # define LT_DLGLOBAL RTLD_GLOBAL
11117 # define LT_DLGLOBAL DL_GLOBAL
11119 # define LT_DLGLOBAL 0
11123 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11124 find out it does not work in some platform. */
11125 #ifndef LT_DLLAZY_OR_NOW
11127 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11130 # define LT_DLLAZY_OR_NOW DL_LAZY
11133 # define LT_DLLAZY_OR_NOW RTLD_NOW
11136 # define LT_DLLAZY_OR_NOW DL_NOW
11138 # define LT_DLLAZY_OR_NOW 0
11145 /* When -fvisbility=hidden is used, assume the code has been annotated
11146 correspondingly for the symbols needed. */
11147 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11148 int fnord () __attribute__((visibility("default")));
11151 int fnord () { return 42; }
11154 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11155 int status = $lt_dlunknown;
11159 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11162 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11163 else puts (dlerror ());
11165 /* dlclose (self); */
11173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11174 (eval $ac_link) 2>&5
11176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11177 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11178 (./conftest; exit; ) >&5 2>/dev/null
11180 case x$lt_status in
11181 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11182 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11183 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11186 # compilation failed
11187 lt_cv_dlopen_self=no
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11195 $as_echo "$lt_cv_dlopen_self" >&6; }
11197 if test "x$lt_cv_dlopen_self" = xyes; then
11198 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11200 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11201 if ${lt_cv_dlopen_self_static+:} false; then :
11202 $as_echo_n "(cached) " >&6
11204 if test "$cross_compiling" = yes; then :
11205 lt_cv_dlopen_self_static=cross
11207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11208 lt_status=$lt_dlunknown
11209 cat > conftest.$ac_ext <<_LT_EOF
11210 #line $LINENO "configure"
11211 #include "confdefs.h"
11220 # define LT_DLGLOBAL RTLD_GLOBAL
11223 # define LT_DLGLOBAL DL_GLOBAL
11225 # define LT_DLGLOBAL 0
11229 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11230 find out it does not work in some platform. */
11231 #ifndef LT_DLLAZY_OR_NOW
11233 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11236 # define LT_DLLAZY_OR_NOW DL_LAZY
11239 # define LT_DLLAZY_OR_NOW RTLD_NOW
11242 # define LT_DLLAZY_OR_NOW DL_NOW
11244 # define LT_DLLAZY_OR_NOW 0
11251 /* When -fvisbility=hidden is used, assume the code has been annotated
11252 correspondingly for the symbols needed. */
11253 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11254 int fnord () __attribute__((visibility("default")));
11257 int fnord () { return 42; }
11260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11261 int status = $lt_dlunknown;
11265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11268 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11269 else puts (dlerror ());
11271 /* dlclose (self); */
11279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11280 (eval $ac_link) 2>&5
11282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11283 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11284 (./conftest; exit; ) >&5 2>/dev/null
11286 case x$lt_status in
11287 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11288 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11289 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11292 # compilation failed
11293 lt_cv_dlopen_self_static=no
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11301 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11304 CPPFLAGS="$save_CPPFLAGS"
11305 LDFLAGS="$save_LDFLAGS"
11310 case $lt_cv_dlopen_self in
11311 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11312 *) enable_dlopen_self=unknown ;;
11315 case $lt_cv_dlopen_self_static in
11316 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11317 *) enable_dlopen_self_static=unknown ;;
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11340 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11341 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11342 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11343 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11345 $as_echo "yes" >&6; }
11347 # FIXME - insert some real tests, host_os isn't really good enough
11350 if test -n "$STRIP" ; then
11351 striplib="$STRIP -x"
11352 old_striplib="$STRIP -S"
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11354 $as_echo "yes" >&6; }
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11378 # Report which library types will actually be built
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11380 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11382 $as_echo "$can_build_shared" >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11385 $as_echo_n "checking whether to build shared libraries... " >&6; }
11386 test "$can_build_shared" = "no" && enable_shared=no
11388 # On AIX, shared libraries and static libraries use the same namespace, and
11389 # are all built from PIC.
11392 test "$enable_shared" = yes && enable_static=no
11393 if test -n "$RANLIB"; then
11394 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11395 postinstall_cmds='$RANLIB $lib'
11400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11401 test "$enable_shared" = yes && enable_static=no
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11406 $as_echo "$enable_shared" >&6; }
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11409 $as_echo_n "checking whether to build static libraries... " >&6; }
11410 # Make sure either enable_shared or enable_static is yes.
11411 test "$enable_shared" = yes || enable_static=yes
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11413 $as_echo "$enable_static" >&6; }
11420 ac_cpp='$CPP $CPPFLAGS'
11421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11441 ac_config_commands="$ac_config_commands libtool"
11446 # Only expand once:
11450 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
11451 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
11452 LT_REVISION=$SDL_INTERFACE_AGE
11453 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
11464 ac_cpp='$CPP $CPPFLAGS'
11465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11468 if test -n "$ac_tool_prefix"; then
11469 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11470 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11472 $as_echo_n "checking for $ac_word... " >&6; }
11473 if ${ac_cv_prog_CC+:} false; then :
11474 $as_echo_n "(cached) " >&6
11476 if test -n "$CC"; then
11477 ac_cv_prog_CC="$CC" # Let the user override the test.
11479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480 for as_dir in $PATH
11483 test -z "$as_dir" && as_dir=.
11484 for ac_exec_ext in '' $ac_executable_extensions; do
11485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11486 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11497 if test -n "$CC"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11499 $as_echo "$CC" >&6; }
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11507 if test -z "$ac_cv_prog_CC"; then
11509 # Extract the first word of "gcc", so it can be a program name with args.
11510 set dummy gcc; ac_word=$2
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11512 $as_echo_n "checking for $ac_word... " >&6; }
11513 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11514 $as_echo_n "(cached) " >&6
11516 if test -n "$ac_ct_CC"; then
11517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520 for as_dir in $PATH
11523 test -z "$as_dir" && as_dir=.
11524 for ac_exec_ext in '' $ac_executable_extensions; do
11525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11526 ac_cv_prog_ac_ct_CC="gcc"
11527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11537 if test -n "$ac_ct_CC"; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11539 $as_echo "$ac_ct_CC" >&6; }
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11545 if test "x$ac_ct_CC" = x; then
11548 case $cross_compiling:$ac_tool_warned in
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11552 ac_tool_warned=yes ;;
11557 CC="$ac_cv_prog_CC"
11560 if test -z "$CC"; then
11561 if test -n "$ac_tool_prefix"; then
11562 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11563 set dummy ${ac_tool_prefix}cc; ac_word=$2
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11565 $as_echo_n "checking for $ac_word... " >&6; }
11566 if ${ac_cv_prog_CC+:} false; then :
11567 $as_echo_n "(cached) " >&6
11569 if test -n "$CC"; then
11570 ac_cv_prog_CC="$CC" # Let the user override the test.
11572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573 for as_dir in $PATH
11576 test -z "$as_dir" && as_dir=.
11577 for ac_exec_ext in '' $ac_executable_extensions; do
11578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11579 ac_cv_prog_CC="${ac_tool_prefix}cc"
11580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11590 if test -n "$CC"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11592 $as_echo "$CC" >&6; }
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11601 if test -z "$CC"; then
11602 # Extract the first word of "cc", so it can be a program name with args.
11603 set dummy cc; ac_word=$2
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11605 $as_echo_n "checking for $ac_word... " >&6; }
11606 if ${ac_cv_prog_CC+:} false; then :
11607 $as_echo_n "(cached) " >&6
11609 if test -n "$CC"; then
11610 ac_cv_prog_CC="$CC" # Let the user override the test.
11612 ac_prog_rejected=no
11613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614 for as_dir in $PATH
11617 test -z "$as_dir" && as_dir=.
11618 for ac_exec_ext in '' $ac_executable_extensions; do
11619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11621 ac_prog_rejected=yes
11625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 if test $ac_prog_rejected = yes; then
11633 # We found a bogon in the path, so make sure we never use it.
11634 set dummy $ac_cv_prog_CC
11636 if test $# != 0; then
11637 # We chose a different compiler from the bogus one.
11638 # However, it has the same basename, so the bogon will be chosen
11639 # first if we set CC to just the basename; use the full file name.
11641 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11647 if test -n "$CC"; then
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11649 $as_echo "$CC" >&6; }
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11652 $as_echo "no" >&6; }
11657 if test -z "$CC"; then
11658 if test -n "$ac_tool_prefix"; then
11659 for ac_prog in cl.exe
11661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if ${ac_cv_prog_CC+:} false; then :
11666 $as_echo_n "(cached) " >&6
11668 if test -n "$CC"; then
11669 ac_cv_prog_CC="$CC" # Let the user override the test.
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11675 test -z "$as_dir" && as_dir=.
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11689 if test -n "$CC"; then
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11691 $as_echo "$CC" >&6; }
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11698 test -n "$CC" && break
11701 if test -z "$CC"; then
11703 for ac_prog in cl.exe
11705 # Extract the first word of "$ac_prog", so it can be a program name with args.
11706 set dummy $ac_prog; ac_word=$2
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11708 $as_echo_n "checking for $ac_word... " >&6; }
11709 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11710 $as_echo_n "(cached) " >&6
11712 if test -n "$ac_ct_CC"; then
11713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $PATH
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11722 ac_cv_prog_ac_ct_CC="$ac_prog"
11723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11733 if test -n "$ac_ct_CC"; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11735 $as_echo "$ac_ct_CC" >&6; }
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11742 test -n "$ac_ct_CC" && break
11745 if test "x$ac_ct_CC" = x; then
11748 case $cross_compiling:$ac_tool_warned in
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11752 ac_tool_warned=yes ;;
11761 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11763 as_fn_error $? "no acceptable C compiler found in \$PATH
11764 See \`config.log' for more details" "$LINENO" 5; }
11766 # Provide some information about the compiler.
11767 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11770 for ac_option in --version -v -V -qversion; do
11771 { { ac_try="$ac_compiler $ac_option >&5"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11777 $as_echo "$ac_try_echo"; } >&5
11778 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11780 if test -s conftest.err; then
11782 ... rest of stderr output deleted ...
11783 10q' conftest.err >conftest.er1
11784 cat conftest.er1 >&5
11786 rm -f conftest.er1 conftest.err
11787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11788 test $ac_status = 0; }
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11792 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11793 if ${ac_cv_c_compiler_gnu+:} false; then :
11794 $as_echo_n "(cached) " >&6
11796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797 /* end confdefs.h. */
11810 if ac_fn_c_try_compile "$LINENO"; then :
11811 ac_compiler_gnu=yes
11815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11816 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11820 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11821 if test $ac_compiler_gnu = yes; then
11826 ac_test_CFLAGS=${CFLAGS+set}
11827 ac_save_CFLAGS=$CFLAGS
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11829 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11830 if ${ac_cv_prog_cc_g+:} false; then :
11831 $as_echo_n "(cached) " >&6
11833 ac_save_c_werror_flag=$ac_c_werror_flag
11834 ac_c_werror_flag=yes
11837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h. */
11848 if ac_fn_c_try_compile "$LINENO"; then :
11849 ac_cv_prog_cc_g=yes
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11863 if ac_fn_c_try_compile "$LINENO"; then :
11866 ac_c_werror_flag=$ac_save_c_werror_flag
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11879 if ac_fn_c_try_compile "$LINENO"; then :
11880 ac_cv_prog_cc_g=yes
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11887 ac_c_werror_flag=$ac_save_c_werror_flag
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11890 $as_echo "$ac_cv_prog_cc_g" >&6; }
11891 if test "$ac_test_CFLAGS" = set; then
11892 CFLAGS=$ac_save_CFLAGS
11893 elif test $ac_cv_prog_cc_g = yes; then
11894 if test "$GCC" = yes; then
11900 if test "$GCC" = yes; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11907 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11908 if ${ac_cv_prog_cc_c89+:} false; then :
11909 $as_echo_n "(cached) " >&6
11911 ac_cv_prog_cc_c89=no
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11915 #include <stdarg.h>
11918 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11919 struct buf { int x; };
11920 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11921 static char *e (p, i)
11927 static char *f (char * (*g) (char **, int), char **p, ...)
11932 s = g (p, va_arg (v,int));
11937 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11938 function prototypes and stuff, but not '\xHH' hex character constants.
11939 These don't provoke an error unfortunately, instead are silently treated
11940 as 'x'. The following induces an error, until -std is added to get
11941 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11942 array size at least. It's necessary to write '\x00'==0 to get something
11943 that's true only with -std. */
11944 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11946 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11947 inside strings and character constants. */
11949 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11951 int test (int i, double x);
11952 struct s1 {int (*f) (int a);};
11953 struct s2 {int (*f) (double a);};
11954 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11960 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11965 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11966 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11968 CC="$ac_save_CC $ac_arg"
11969 if ac_fn_c_try_compile "$LINENO"; then :
11970 ac_cv_prog_cc_c89=$ac_arg
11972 rm -f core conftest.err conftest.$ac_objext
11973 test "x$ac_cv_prog_cc_c89" != "xno" && break
11975 rm -f conftest.$ac_ext
11980 case "x$ac_cv_prog_cc_c89" in
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11983 $as_echo "none needed" >&6; } ;;
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11986 $as_echo "unsupported" >&6; } ;;
11988 CC="$CC $ac_cv_prog_cc_c89"
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11990 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11992 if test "x$ac_cv_prog_cc_c89" != xno; then :
11997 ac_cpp='$CPP $CPPFLAGS'
11998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12003 ac_cpp='$CXXCPP $CPPFLAGS'
12004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12007 if test -z "$CXX"; then
12008 if test -n "$CCC"; then
12011 if test -n "$ac_tool_prefix"; then
12012 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12017 $as_echo_n "checking for $ac_word... " >&6; }
12018 if ${ac_cv_prog_CXX+:} false; then :
12019 $as_echo_n "(cached) " >&6
12021 if test -n "$CXX"; then
12022 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025 for as_dir in $PATH
12028 test -z "$as_dir" && as_dir=.
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12031 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12041 CXX=$ac_cv_prog_CXX
12042 if test -n "$CXX"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12044 $as_echo "$CXX" >&6; }
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 $as_echo "no" >&6; }
12051 test -n "$CXX" && break
12054 if test -z "$CXX"; then
12056 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12058 # Extract the first word of "$ac_prog", so it can be a program name with args.
12059 set dummy $ac_prog; ac_word=$2
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061 $as_echo_n "checking for $ac_word... " >&6; }
12062 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12063 $as_echo_n "(cached) " >&6
12065 if test -n "$ac_ct_CXX"; then
12066 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069 for as_dir in $PATH
12072 test -z "$as_dir" && as_dir=.
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12075 ac_cv_prog_ac_ct_CXX="$ac_prog"
12076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12085 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12086 if test -n "$ac_ct_CXX"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12088 $as_echo "$ac_ct_CXX" >&6; }
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12095 test -n "$ac_ct_CXX" && break
12098 if test "x$ac_ct_CXX" = x; then
12101 case $cross_compiling:$ac_tool_warned in
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12105 ac_tool_warned=yes ;;
12113 # Provide some information about the compiler.
12114 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12117 for ac_option in --version -v -V -qversion; do
12118 { { ac_try="$ac_compiler $ac_option >&5"
12119 case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12124 $as_echo "$ac_try_echo"; } >&5
12125 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12127 if test -s conftest.err; then
12129 ... rest of stderr output deleted ...
12130 10q' conftest.err >conftest.er1
12131 cat conftest.er1 >&5
12133 rm -f conftest.er1 conftest.err
12134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12135 test $ac_status = 0; }
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12139 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12140 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12141 $as_echo_n "(cached) " >&6
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12157 if ac_fn_cxx_try_compile "$LINENO"; then :
12158 ac_compiler_gnu=yes
12162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12163 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12167 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12168 if test $ac_compiler_gnu = yes; then
12173 ac_test_CXXFLAGS=${CXXFLAGS+set}
12174 ac_save_CXXFLAGS=$CXXFLAGS
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12176 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12177 if ${ac_cv_prog_cxx_g+:} false; then :
12178 $as_echo_n "(cached) " >&6
12180 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12181 ac_cxx_werror_flag=yes
12182 ac_cv_prog_cxx_g=no
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12195 if ac_fn_cxx_try_compile "$LINENO"; then :
12196 ac_cv_prog_cxx_g=yes
12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200 /* end confdefs.h. */
12210 if ac_fn_cxx_try_compile "$LINENO"; then :
12213 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12226 if ac_fn_cxx_try_compile "$LINENO"; then :
12227 ac_cv_prog_cxx_g=yes
12229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12237 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12238 if test "$ac_test_CXXFLAGS" = set; then
12239 CXXFLAGS=$ac_save_CXXFLAGS
12240 elif test $ac_cv_prog_cxx_g = yes; then
12241 if test "$GXX" = yes; then
12247 if test "$GXX" = yes; then
12254 ac_cpp='$CPP $CPPFLAGS'
12255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12261 func_stripname_cnf ()
12264 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12265 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12267 } # func_stripname_cnf
12269 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12270 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12271 (test "X$CXX" != "Xg++"))) ; then
12273 ac_cpp='$CXXCPP $CPPFLAGS'
12274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12278 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12279 if test -z "$CXXCPP"; then
12280 if ${ac_cv_prog_CXXCPP+:} false; then :
12281 $as_echo_n "(cached) " >&6
12283 # Double quotes because CXXCPP needs to be expanded
12284 for CXXCPP in "$CXX -E" "/lib/cpp"
12286 ac_preproc_ok=false
12287 for ac_cxx_preproc_warn_flag in '' yes
12289 # Use a header file that comes with gcc, so configuring glibc
12290 # with a fresh cross-compiler works.
12291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12292 # <limits.h> exists even on freestanding compilers.
12293 # On the NeXT, cc -E runs the code through the compiler's parser,
12294 # not just through cpp. "Syntax error" is here to catch this case.
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12298 # include <limits.h>
12300 # include <assert.h>
12304 if ac_fn_cxx_try_cpp "$LINENO"; then :
12307 # Broken: fails on valid input.
12310 rm -f conftest.err conftest.i conftest.$ac_ext
12312 # OK, works on sane cases. Now check whether nonexistent headers
12313 # can be detected and how.
12314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h. */
12316 #include <ac_nonexistent.h>
12318 if ac_fn_cxx_try_cpp "$LINENO"; then :
12319 # Broken: success on invalid input.
12322 # Passes both tests.
12326 rm -f conftest.err conftest.i conftest.$ac_ext
12329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12330 rm -f conftest.i conftest.err conftest.$ac_ext
12331 if $ac_preproc_ok; then :
12336 ac_cv_prog_CXXCPP=$CXXCPP
12339 CXXCPP=$ac_cv_prog_CXXCPP
12341 ac_cv_prog_CXXCPP=$CXXCPP
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12344 $as_echo "$CXXCPP" >&6; }
12345 ac_preproc_ok=false
12346 for ac_cxx_preproc_warn_flag in '' yes
12348 # Use a header file that comes with gcc, so configuring glibc
12349 # with a fresh cross-compiler works.
12350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12351 # <limits.h> exists even on freestanding compilers.
12352 # On the NeXT, cc -E runs the code through the compiler's parser,
12353 # not just through cpp. "Syntax error" is here to catch this case.
12354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355 /* end confdefs.h. */
12357 # include <limits.h>
12359 # include <assert.h>
12363 if ac_fn_cxx_try_cpp "$LINENO"; then :
12366 # Broken: fails on valid input.
12369 rm -f conftest.err conftest.i conftest.$ac_ext
12371 # OK, works on sane cases. Now check whether nonexistent headers
12372 # can be detected and how.
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12375 #include <ac_nonexistent.h>
12377 if ac_fn_cxx_try_cpp "$LINENO"; then :
12378 # Broken: success on invalid input.
12381 # Passes both tests.
12385 rm -f conftest.err conftest.i conftest.$ac_ext
12388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12389 rm -f conftest.i conftest.err conftest.$ac_ext
12390 if $ac_preproc_ok; then :
12393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12395 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12396 See \`config.log' for more details" "$LINENO" 5; }
12400 ac_cpp='$CPP $CPPFLAGS'
12401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12406 _lt_caught_CXX_error=yes
12410 ac_cpp='$CXXCPP $CPPFLAGS'
12411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12415 archive_cmds_need_lc_CXX=no
12416 allow_undefined_flag_CXX=
12417 always_export_symbols_CXX=no
12418 archive_expsym_cmds_CXX=
12419 compiler_needs_object_CXX=no
12420 export_dynamic_flag_spec_CXX=
12421 hardcode_direct_CXX=no
12422 hardcode_direct_absolute_CXX=no
12423 hardcode_libdir_flag_spec_CXX=
12424 hardcode_libdir_separator_CXX=
12425 hardcode_minus_L_CXX=no
12426 hardcode_shlibpath_var_CXX=unsupported
12427 hardcode_automatic_CXX=no
12428 inherit_rpath_CXX=no
12430 module_expsym_cmds_CXX=
12431 link_all_deplibs_CXX=unknown
12432 old_archive_cmds_CXX=$old_archive_cmds
12433 reload_flag_CXX=$reload_flag
12434 reload_cmds_CXX=$reload_cmds
12435 no_undefined_flag_CXX=
12436 whole_archive_flag_spec_CXX=
12437 enable_shared_with_static_runtimes_CXX=no
12439 # Source file extension for C++ test sources.
12442 # Object file extension for compiled C++ test sources.
12446 # No sense in running all these tests if we already determined that
12447 # the CXX compiler isn't working. Some variables (like enable_shared)
12448 # are currently assumed to apply to all compilers on this platform,
12449 # and will be corrupted by setting them based on a non-working compiler.
12450 if test "$_lt_caught_CXX_error" != yes; then
12451 # Code to be used in simple compile tests
12452 lt_simple_compile_test_code="int some_variable = 0;"
12454 # Code to be used in simple link tests
12455 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12457 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12464 # If no C compiler was specified, use CC.
12467 # If no C compiler flags were specified, use CFLAGS.
12468 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12470 # Allow CC to be a program name with arguments.
12474 # save warnings/boilerplate of simple test code
12475 ac_outfile=conftest.$ac_objext
12476 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12477 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12478 _lt_compiler_boilerplate=`cat conftest.err`
12481 ac_outfile=conftest.$ac_objext
12482 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12483 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12484 _lt_linker_boilerplate=`cat conftest.err`
12488 # Allow CC to be a program name with arguments.
12490 lt_save_CFLAGS=$CFLAGS
12494 lt_save_with_gnu_ld=$with_gnu_ld
12495 lt_save_path_LD=$lt_cv_path_LD
12496 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12497 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12499 $as_unset lt_cv_prog_gnu_ld
12501 if test -n "${lt_cv_path_LDCXX+set}"; then
12502 lt_cv_path_LD=$lt_cv_path_LDCXX
12504 $as_unset lt_cv_path_LD
12506 test -z "${LDCXX+set}" || LD=$LDCXX
12511 for cc_temp in $compiler""; do
12513 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12514 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12519 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12522 if test -n "$compiler"; then
12523 # We don't want -fno-exception when compiling C++ code, so set the
12524 # no_builtin_flag separately
12525 if test "$GXX" = yes; then
12526 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12528 lt_prog_compiler_no_builtin_flag_CXX=
12531 if test "$GXX" = yes; then
12532 # Set up default GNU C++ configuration
12536 # Check whether --with-gnu-ld was given.
12537 if test "${with_gnu_ld+set}" = set; then :
12538 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12544 if test "$GCC" = yes; then
12545 # Check if gcc -print-prog-name=ld gives a path.
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12547 $as_echo_n "checking for ld used by $CC... " >&6; }
12550 # gcc leaves a trailing carriage return which upsets mingw
12551 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12553 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12556 # Accept absolute paths.
12558 re_direlt='/[^/][^/]*/\.\./'
12559 # Canonicalize the pathname of ld
12560 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12561 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12562 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12564 test -z "$LD" && LD="$ac_prog"
12567 # If it fails, then pretend we aren't using GCC.
12571 # If it is relative, then search for the first ld in PATH.
12572 with_gnu_ld=unknown
12575 elif test "$with_gnu_ld" = yes; then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12577 $as_echo_n "checking for GNU ld... " >&6; }
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12580 $as_echo_n "checking for non-GNU ld... " >&6; }
12582 if ${lt_cv_path_LD+:} false; then :
12583 $as_echo_n "(cached) " >&6
12585 if test -z "$LD"; then
12586 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12587 for ac_dir in $PATH; do
12589 test -z "$ac_dir" && ac_dir=.
12590 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12591 lt_cv_path_LD="$ac_dir/$ac_prog"
12592 # Check to see if the program is GNU ld. I'd rather use --version,
12593 # but apparently some variants of GNU ld only accept -v.
12594 # Break only if it was the GNU/non-GNU ld that we prefer.
12595 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12596 *GNU* | *'with BFD'*)
12597 test "$with_gnu_ld" != no && break
12600 test "$with_gnu_ld" != yes && break
12607 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12611 LD="$lt_cv_path_LD"
12612 if test -n "$LD"; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12614 $as_echo "$LD" >&6; }
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617 $as_echo "no" >&6; }
12619 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12621 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12622 if ${lt_cv_prog_gnu_ld+:} false; then :
12623 $as_echo_n "(cached) " >&6
12625 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12626 case `$LD -v 2>&1 </dev/null` in
12627 *GNU* | *'with BFD'*)
12628 lt_cv_prog_gnu_ld=yes
12631 lt_cv_prog_gnu_ld=no
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12636 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12637 with_gnu_ld=$lt_cv_prog_gnu_ld
12645 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12646 # archiving commands below assume that GNU ld is being used.
12647 if test "$with_gnu_ld" = yes; then
12648 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12649 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'
12651 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12652 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12654 # If archive_cmds runs LD, not CC, wlarc should be empty
12655 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12656 # investigate it a little bit more. (MM)
12659 # ancient GNU ld didn't support --whole-archive et. al.
12660 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12661 $GREP 'no-whole-archive' > /dev/null; then
12662 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12664 whole_archive_flag_spec_CXX=
12670 # A generic and very simple default shared library creation
12671 # command for GNU C++ for the case where it uses the native
12672 # linker, instead of GNU ld. If possible, this setting should
12673 # overridden to take advantage of the native linker features on
12674 # the platform it is being used on.
12675 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12678 # Commands to make compiler produce verbose output that lists
12679 # what "hidden" libraries, object files and flags are used when
12680 # linking a shared library.
12681 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12689 # PORTME: fill in a description of your system's C++ link characteristics
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12691 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12695 # FIXME: insert proper C++ library support
12699 if test "$host_cpu" = ia64; then
12700 # On IA64, the linker does run time linking by default, so we don't
12701 # have to do anything special.
12702 aix_use_runtimelinking=no
12703 exp_sym_flag='-Bexport'
12706 aix_use_runtimelinking=no
12708 # Test if we are trying to use run time linking or normal
12709 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12710 # need to do runtime linking.
12711 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12712 for ld_flag in $LDFLAGS; do
12715 aix_use_runtimelinking=yes
12723 exp_sym_flag='-bexport'
12724 no_entry_flag='-bnoentry'
12727 # When large executables or shared objects are built, AIX ld can
12728 # have problems creating the table of contents. If linking a library
12729 # or program results in "error TOC overflow" add -mminimal-toc to
12730 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12731 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12733 archive_cmds_CXX=''
12734 hardcode_direct_CXX=yes
12735 hardcode_direct_absolute_CXX=yes
12736 hardcode_libdir_separator_CXX=':'
12737 link_all_deplibs_CXX=yes
12738 file_list_spec_CXX='${wl}-f,'
12740 if test "$GXX" = yes; then
12741 case $host_os in aix4.[012]|aix4.[012].*)
12742 # We only want to do this on AIX 4.2 and lower, the check
12743 # below for broken collect2 doesn't work under 4.3+
12744 collect2name=`${CC} -print-prog-name=collect2`
12745 if test -f "$collect2name" &&
12746 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12748 # We have reworked collect2
12751 # We have old collect2
12752 hardcode_direct_CXX=unsupported
12753 # It fails to find uninstalled libraries when the uninstalled
12754 # path is not listed in the libpath. Setting hardcode_minus_L
12755 # to unsupported forces relinking
12756 hardcode_minus_L_CXX=yes
12757 hardcode_libdir_flag_spec_CXX='-L$libdir'
12758 hardcode_libdir_separator_CXX=
12761 shared_flag='-shared'
12762 if test "$aix_use_runtimelinking" = yes; then
12763 shared_flag="$shared_flag "'${wl}-G'
12767 if test "$host_cpu" = ia64; then
12768 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12769 # chokes on -Wl,-G. The following line is correct:
12772 if test "$aix_use_runtimelinking" = yes; then
12773 shared_flag='${wl}-G'
12775 shared_flag='${wl}-bM:SRE'
12780 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12781 # It seems that -bexpall does not export symbols beginning with
12782 # underscore (_), so it is better to generate a list of symbols to
12784 always_export_symbols_CXX=yes
12785 if test "$aix_use_runtimelinking" = yes; then
12786 # Warning - without using the other runtime loading flags (-brtl),
12787 # -berok will link without error, but may produce a broken library.
12788 allow_undefined_flag_CXX='-berok'
12789 # Determine the default libpath from the value encoded in an empty
12791 if test "${lt_cv_aix_libpath+set}" = set; then
12792 aix_libpath=$lt_cv_aix_libpath
12794 if ${lt_cv_aix_libpath__CXX+:} false; then :
12795 $as_echo_n "(cached) " >&6
12797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h. */
12808 if ac_fn_cxx_try_link "$LINENO"; then :
12810 lt_aix_libpath_sed='
12811 /Import File Strings/,/^$/ {
12813 s/^0 *\([^ ]*\) *$/\1/
12817 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12818 # Check for a 64-bit object if we didn't find anything.
12819 if test -z "$lt_cv_aix_libpath__CXX"; then
12820 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12823 rm -f core conftest.err conftest.$ac_objext \
12824 conftest$ac_exeext conftest.$ac_ext
12825 if test -z "$lt_cv_aix_libpath__CXX"; then
12826 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12831 aix_libpath=$lt_cv_aix_libpath__CXX
12834 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12836 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"
12838 if test "$host_cpu" = ia64; then
12839 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12840 allow_undefined_flag_CXX="-z nodefs"
12841 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"
12843 # Determine the default libpath from the value encoded in an
12844 # empty executable.
12845 if test "${lt_cv_aix_libpath+set}" = set; then
12846 aix_libpath=$lt_cv_aix_libpath
12848 if ${lt_cv_aix_libpath__CXX+:} false; then :
12849 $as_echo_n "(cached) " >&6
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12862 if ac_fn_cxx_try_link "$LINENO"; then :
12864 lt_aix_libpath_sed='
12865 /Import File Strings/,/^$/ {
12867 s/^0 *\([^ ]*\) *$/\1/
12871 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12872 # Check for a 64-bit object if we didn't find anything.
12873 if test -z "$lt_cv_aix_libpath__CXX"; then
12874 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12877 rm -f core conftest.err conftest.$ac_objext \
12878 conftest$ac_exeext conftest.$ac_ext
12879 if test -z "$lt_cv_aix_libpath__CXX"; then
12880 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12885 aix_libpath=$lt_cv_aix_libpath__CXX
12888 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12889 # Warning - without using the other run time loading flags,
12890 # -berok will link without error, but may produce a broken library.
12891 no_undefined_flag_CXX=' ${wl}-bernotok'
12892 allow_undefined_flag_CXX=' ${wl}-berok'
12893 if test "$with_gnu_ld" = yes; then
12894 # We only use this code for GNU lds that support --whole-archive.
12895 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12897 # Exported symbols can be pulled into shared objects from archives
12898 whole_archive_flag_spec_CXX='$convenience'
12900 archive_cmds_need_lc_CXX=yes
12901 # This is similar to how AIX traditionally builds its shared
12903 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'
12909 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12910 allow_undefined_flag_CXX=unsupported
12911 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12912 # support --undefined. This deserves some investigation. FIXME
12913 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12920 case $cc_basename in
12922 # FIXME: insert proper C++ library support
12928 cygwin* | mingw* | pw32* | cegcc*)
12929 case $GXX,$cc_basename in
12932 # hardcode_libdir_flag_spec is actually meaningless, as there is
12933 # no search path for DLLs.
12934 hardcode_libdir_flag_spec_CXX=' '
12935 allow_undefined_flag_CXX=unsupported
12936 always_export_symbols_CXX=yes
12937 file_list_spec_CXX='@'
12938 # Tell ltmain to make .lib files, not .a files.
12940 # Tell ltmain to make .dll files, not .so files.
12942 # FIXME: Setting linknames here is a bad hack.
12943 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12944 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12945 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12947 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12949 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12951 # The linker will not automatically build a static lib if we build a DLL.
12952 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12953 enable_shared_with_static_runtimes_CXX=yes
12955 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12956 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12957 lt_tool_outputfile="@TOOL_OUTPUT@"~
12958 case $lt_outputfile in
12961 lt_outputfile="$lt_outputfile.exe"
12962 lt_tool_outputfile="$lt_tool_outputfile.exe"
12965 func_to_tool_file "$lt_outputfile"~
12966 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12967 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12968 $RM "$lt_outputfile.manifest";
12973 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12974 # as there is no search path for DLLs.
12975 hardcode_libdir_flag_spec_CXX='-L$libdir'
12976 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12977 allow_undefined_flag_CXX=unsupported
12978 always_export_symbols_CXX=no
12979 enable_shared_with_static_runtimes_CXX=yes
12981 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12982 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'
12983 # If the export-symbols file already is a .def file (1st line
12984 # is EXPORTS), use it as is; otherwise, prepend...
12985 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12986 cp $export_symbols $output_objdir/$soname.def;
12988 echo EXPORTS > $output_objdir/$soname.def;
12989 cat $export_symbols >> $output_objdir/$soname.def;
12991 $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'
12998 darwin* | rhapsody*)
13001 archive_cmds_need_lc_CXX=no
13002 hardcode_direct_CXX=no
13003 hardcode_automatic_CXX=yes
13004 hardcode_shlibpath_var_CXX=unsupported
13005 if test "$lt_cv_ld_force_load" = "yes"; then
13006 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\"`'
13009 whole_archive_flag_spec_CXX=''
13011 link_all_deplibs_CXX=yes
13012 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13013 case $cc_basename in
13014 ifort*) _lt_dar_can_shared=yes ;;
13015 *) _lt_dar_can_shared=$GCC ;;
13017 if test "$_lt_dar_can_shared" = "yes"; then
13018 output_verbose_link_cmd=func_echo_all
13019 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}"
13020 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13021 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}"
13022 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}"
13023 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13024 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}"
13025 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}"
13035 case $cc_basename in
13037 # FIXME: insert proper C++ library support
13041 # Green Hills C++ Compiler
13042 # FIXME: insert proper C++ library support
13046 # FIXME: insert proper C++ library support
13053 # C++ shared libraries reported to be fairly broken before
13059 archive_cmds_need_lc_CXX=no
13062 freebsd* | dragonfly*)
13063 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13072 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13073 link_all_deplibs_CXX=yes
13077 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13078 hardcode_libdir_separator_CXX=:
13079 export_dynamic_flag_spec_CXX='${wl}-E'
13080 hardcode_direct_CXX=yes
13081 hardcode_minus_L_CXX=yes # Not in the search PATH,
13082 # but as the default
13083 # location of the library.
13085 case $cc_basename in
13087 # FIXME: insert proper C++ library support
13091 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'
13092 # Commands to make compiler produce verbose output that lists
13093 # what "hidden" libraries, object files and flags are used when
13094 # linking a shared library.
13096 # There doesn't appear to be a way to prevent this compiler from
13097 # explicitly linking system object files so we need to strip them
13098 # from the output so that they don't get included in the library
13100 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"'
13103 if test "$GXX" = yes; then
13104 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'
13106 # FIXME: insert proper C++ library support
13114 if test $with_gnu_ld = no; then
13115 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13116 hardcode_libdir_separator_CXX=:
13122 export_dynamic_flag_spec_CXX='${wl}-E'
13128 hardcode_direct_CXX=no
13129 hardcode_shlibpath_var_CXX=no
13132 hardcode_direct_CXX=yes
13133 hardcode_direct_absolute_CXX=yes
13134 hardcode_minus_L_CXX=yes # Not in the search PATH,
13135 # but as the default
13136 # location of the library.
13140 case $cc_basename in
13142 # FIXME: insert proper C++ library support
13148 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13151 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13154 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13157 # Commands to make compiler produce verbose output that lists
13158 # what "hidden" libraries, object files and flags are used when
13159 # linking a shared library.
13161 # There doesn't appear to be a way to prevent this compiler from
13162 # explicitly linking system object files so we need to strip them
13163 # from the output so that they don't get included in the library
13165 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"'
13168 if test "$GXX" = yes; then
13169 if test $with_gnu_ld = no; then
13172 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13175 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13178 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'
13183 # FIXME: insert proper C++ library support
13191 hardcode_direct_CXX=no
13192 hardcode_shlibpath_var_CXX=no
13193 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13194 export_dynamic_flag_spec_CXX='${wl}-E'
13195 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13196 # Instead, shared libraries are loaded at an image base (0x10000000 by
13197 # default) and relocated if they conflict, which is a slow very memory
13198 # consuming and fragmenting process. To avoid this, we pick a random,
13199 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13200 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13201 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'
13202 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'
13205 case $cc_basename in
13208 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'
13210 # Archives containing C++ object files must be created using
13211 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13212 # necessary to make sure instantiated templates are included
13214 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13217 if test "$GXX" = yes; then
13218 if test "$with_gnu_ld" = no; then
13219 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'
13221 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'
13224 link_all_deplibs_CXX=yes
13227 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13228 hardcode_libdir_separator_CXX=:
13229 inherit_rpath_CXX=yes
13232 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13233 case $cc_basename in
13235 # Kuck and Associates, Inc. (KAI) C++ Compiler
13237 # KCC will only create a shared library if the output file
13238 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13239 # to its proper name (with version) after linking.
13240 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'
13241 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'
13242 # Commands to make compiler produce verbose output that lists
13243 # what "hidden" libraries, object files and flags are used when
13244 # linking a shared library.
13246 # There doesn't appear to be a way to prevent this compiler from
13247 # explicitly linking system object files so we need to strip them
13248 # from the output so that they don't get included in the library
13250 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"'
13252 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13253 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13255 # Archives containing C++ object files must be created using
13256 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13257 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13262 # version 8.0 and above of icpc choke on multiply defined symbols
13263 # if we add $predep_objects and $postdep_objects, however 7.1 and
13264 # earlier do not add the objects themselves.
13265 case `$CC -V 2>&1` in
13267 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13268 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'
13270 *) # Version 8.0 or newer
13273 ia64*) tmp_idyn=' -i_dynamic';;
13275 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13276 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'
13279 archive_cmds_need_lc_CXX=no
13280 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13281 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13282 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13285 # Portland Group C++ compiler
13287 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13288 prelink_cmds_CXX='tpldir=Template.dir~
13290 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13291 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13292 old_archive_cmds_CXX='tpldir=Template.dir~
13294 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13295 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13297 archive_cmds_CXX='tpldir=Template.dir~
13299 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13300 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13301 archive_expsym_cmds_CXX='tpldir=Template.dir~
13303 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13304 $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'
13306 *) # Version 6 and above use weak symbols
13307 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13308 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'
13312 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13313 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13314 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'
13318 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13319 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'
13321 runpath_var=LD_RUN_PATH
13322 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13323 hardcode_libdir_separator_CXX=:
13325 # Commands to make compiler produce verbose output that lists
13326 # what "hidden" libraries, object files and flags are used when
13327 # linking a shared library.
13329 # There doesn't appear to be a way to prevent this compiler from
13330 # explicitly linking system object files so we need to strip them
13331 # from the output so that they don't get included in the library
13333 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'
13335 xl* | mpixl* | bgxl*)
13336 # IBM XL 8.0 on PPC, with GNU ld
13337 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13339 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13340 if test "x$supports_anon_versioning" = xyes; then
13341 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13342 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13343 echo "local: *; };" >> $output_objdir/$libname.ver~
13344 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13348 case `$CC -V 2>&1 | sed 5q` in
13351 no_undefined_flag_CXX=' -zdefs'
13352 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13353 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'
13354 hardcode_libdir_flag_spec_CXX='-R$libdir'
13355 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'
13356 compiler_needs_object_CXX=yes
13358 # Not sure whether something based on
13359 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13361 output_verbose_link_cmd='func_echo_all'
13363 # Archives containing C++ object files must be created using
13364 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13365 # necessary to make sure instantiated templates are included
13367 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13375 # FIXME: insert proper C++ library support
13380 # FIXME: insert proper C++ library support
13385 case $cc_basename in
13387 # FIXME: insert proper C++ library support
13391 # FIXME: insert proper C++ library support
13398 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13399 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13401 hardcode_libdir_flag_spec_CXX='-R$libdir'
13402 hardcode_direct_CXX=yes
13403 hardcode_shlibpath_var_CXX=no
13405 # Workaround some broken pre-1.5 toolchains
13406 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13414 # C++ shared libraries are fairly broken
13419 if test -f /usr/libexec/ld.so; then
13420 hardcode_direct_CXX=yes
13421 hardcode_shlibpath_var_CXX=no
13422 hardcode_direct_absolute_CXX=yes
13423 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13424 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13425 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13426 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13427 export_dynamic_flag_spec_CXX='${wl}-E'
13428 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13430 output_verbose_link_cmd=func_echo_all
13436 osf3* | osf4* | osf5*)
13437 case $cc_basename in
13439 # Kuck and Associates, Inc. (KAI) C++ Compiler
13441 # KCC will only create a shared library if the output file
13442 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13443 # to its proper name (with version) after linking.
13444 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'
13446 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13447 hardcode_libdir_separator_CXX=:
13449 # Archives containing C++ object files must be created using
13450 # the KAI C++ compiler.
13452 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13453 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13457 # Rational C++ 2.4.1
13458 # FIXME: insert proper C++ library support
13464 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13465 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'
13466 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13469 allow_undefined_flag_CXX=' -expect_unresolved \*'
13470 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'
13471 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13472 echo "-hidden">> $lib.exp~
13473 $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~
13475 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13479 hardcode_libdir_separator_CXX=:
13481 # Commands to make compiler produce verbose output that lists
13482 # what "hidden" libraries, object files and flags are used when
13483 # linking a shared library.
13485 # There doesn't appear to be a way to prevent this compiler from
13486 # explicitly linking system object files so we need to strip them
13487 # from the output so that they don't get included in the library
13489 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"'
13492 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13493 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13496 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'
13499 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'
13503 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13504 hardcode_libdir_separator_CXX=:
13506 # Commands to make compiler produce verbose output that lists
13507 # what "hidden" libraries, object files and flags are used when
13508 # linking a shared library.
13509 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13512 # FIXME: insert proper C++ library support
13520 # FIXME: insert proper C++ library support
13525 case $cc_basename in
13528 # FIXME: insert proper C++ library support
13533 # FIXME: insert proper C++ library support
13537 # FIXME: insert proper C++ library support
13544 case $cc_basename in
13546 # Sun C++ 4.2, 5.x and Centerline C++
13547 archive_cmds_need_lc_CXX=yes
13548 no_undefined_flag_CXX=' -zdefs'
13549 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13550 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13551 $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'
13553 hardcode_libdir_flag_spec_CXX='-R$libdir'
13554 hardcode_shlibpath_var_CXX=no
13556 solaris2.[0-5] | solaris2.[0-5].*) ;;
13558 # The compiler driver will combine and reorder linker options,
13559 # but understands `-z linker_flag'.
13560 # Supported since Solaris 2.6 (maybe 2.5.1?)
13561 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13564 link_all_deplibs_CXX=yes
13566 output_verbose_link_cmd='func_echo_all'
13568 # Archives containing C++ object files must be created using
13569 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13570 # necessary to make sure instantiated templates are included
13572 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13575 # Green Hills C++ Compiler
13576 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13578 # The C++ compiler must be used to create the archive.
13579 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13582 # GNU C++ compiler with Solaris linker
13583 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13584 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13585 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13586 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13587 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13588 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13590 # Commands to make compiler produce verbose output that lists
13591 # what "hidden" libraries, object files and flags are used when
13592 # linking a shared library.
13593 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13595 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13597 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13598 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13599 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13601 # Commands to make compiler produce verbose output that lists
13602 # what "hidden" libraries, object files and flags are used when
13603 # linking a shared library.
13604 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13607 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13609 solaris2.[0-5] | solaris2.[0-5].*) ;;
13611 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13619 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13620 no_undefined_flag_CXX='${wl}-z,text'
13621 archive_cmds_need_lc_CXX=no
13622 hardcode_shlibpath_var_CXX=no
13623 runpath_var='LD_RUN_PATH'
13625 case $cc_basename in
13627 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13628 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13631 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13632 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13637 sysv5* | sco3.2v5* | sco5v6*)
13638 # Note: We can NOT use -z defs as we might desire, because we do not
13639 # link with -lc, and that would cause any symbols used from libc to
13640 # always be unresolved, which means just about no library would
13641 # ever link correctly. If we're not using GNU ld we use -z text
13642 # though, which does catch some bad symbols but isn't as heavy-handed
13644 no_undefined_flag_CXX='${wl}-z,text'
13645 allow_undefined_flag_CXX='${wl}-z,nodefs'
13646 archive_cmds_need_lc_CXX=no
13647 hardcode_shlibpath_var_CXX=no
13648 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13649 hardcode_libdir_separator_CXX=':'
13650 link_all_deplibs_CXX=yes
13651 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13652 runpath_var='LD_RUN_PATH'
13654 case $cc_basename in
13656 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13657 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13658 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13659 '"$old_archive_cmds_CXX"
13660 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13661 '"$reload_cmds_CXX"
13664 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13665 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13671 case $cc_basename in
13673 # NonStop-UX NCC 3.20
13674 # FIXME: insert proper C++ library support
13678 # FIXME: insert proper C++ library support
13685 # FIXME: insert proper C++ library support
13690 # FIXME: insert proper C++ library support
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13696 $as_echo "$ld_shlibs_CXX" >&6; }
13697 test "$ld_shlibs_CXX" = no && can_build_shared=no
13703 ## There is no encapsulation within the following macros, do not change
13704 ## the running order or otherwise move them around unless you know exactly
13705 ## what you are doing...
13706 # Dependencies to place before and after the object being linked:
13707 predep_objects_CXX=
13708 postdep_objects_CXX=
13711 compiler_lib_search_path_CXX=
13713 cat > conftest.$ac_ext <<_LT_EOF
13717 Foo (void) { a = 0; }
13724 _lt_libdeps_save_CFLAGS=$CFLAGS
13725 case "$CC $CFLAGS " in #(
13726 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13727 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13728 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13732 (eval $ac_compile) 2>&5
13734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13735 test $ac_status = 0; }; then
13736 # Parse the compiler output and extract the necessary
13737 # objects, libraries and library flags.
13739 # Sentinel used to keep track of whether or not we are before
13740 # the conftest object file.
13741 pre_test_object_deps_done=no
13743 for p in `eval "$output_verbose_link_cmd"`; do
13744 case ${prev}${p} in
13747 # Some compilers place space between "-{L,R}" and the path.
13748 # Remove the space.
13749 if test $p = "-L" ||
13750 test $p = "-R"; then
13755 # Expand the sysroot to ease extracting the directories later.
13756 if test -z "$prev"; then
13758 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13759 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13760 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13764 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13766 if test "$pre_test_object_deps_done" = no; then
13769 # Internal compiler library paths should come after those
13770 # provided the user. The postdeps already come after the
13771 # user supplied libs so there is no need to process them.
13772 if test -z "$compiler_lib_search_path_CXX"; then
13773 compiler_lib_search_path_CXX="${prev}${p}"
13775 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13778 # The "-l" case would never come before the object being
13779 # linked, so don't bother handling this case.
13782 if test -z "$postdeps_CXX"; then
13783 postdeps_CXX="${prev}${p}"
13785 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13791 *.lto.$objext) ;; # Ignore GCC LTO objects
13793 # This assumes that the test object file only shows up
13794 # once in the compiler output.
13795 if test "$p" = "conftest.$objext"; then
13796 pre_test_object_deps_done=yes
13800 if test "$pre_test_object_deps_done" = no; then
13801 if test -z "$predep_objects_CXX"; then
13802 predep_objects_CXX="$p"
13804 predep_objects_CXX="$predep_objects_CXX $p"
13807 if test -z "$postdep_objects_CXX"; then
13808 postdep_objects_CXX="$p"
13810 postdep_objects_CXX="$postdep_objects_CXX $p"
13815 *) ;; # Ignore the rest.
13823 echo "libtool.m4: error: problem compiling CXX test program"
13826 $RM -f confest.$objext
13827 CFLAGS=$_lt_libdeps_save_CFLAGS
13829 # PORTME: override above test on systems where it is broken
13832 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13833 # hack all around it, let's just trust "g++" to DTRT.
13834 predep_objects_CXX=
13835 postdep_objects_CXX=
13840 case `$CC -V 2>&1 | sed 5q` in
13844 # The more standards-conforming stlport4 library is
13845 # incompatible with the Cstd library. Avoid specifying
13846 # it if it's in CXXFLAGS. Ignore libCrun as
13847 # -library=stlport4 depends on it.
13848 case " $CXX $CXXFLAGS " in
13849 *" -library=stlport4 "*)
13850 solaris_use_stlport4=yes
13854 if test "$solaris_use_stlport4" != yes; then
13855 postdeps_CXX='-library=Cstd -library=Crun'
13862 case $cc_basename in
13864 # The more standards-conforming stlport4 library is
13865 # incompatible with the Cstd library. Avoid specifying
13866 # it if it's in CXXFLAGS. Ignore libCrun as
13867 # -library=stlport4 depends on it.
13868 case " $CXX $CXXFLAGS " in
13869 *" -library=stlport4 "*)
13870 solaris_use_stlport4=yes
13874 # Adding this requires a known-good setup of shared libraries for
13875 # Sun compiler versions before 5.6, else PIC objects from an old
13876 # archive will be linked into the output, leading to subtle bugs.
13877 if test "$solaris_use_stlport4" != yes; then
13878 postdeps_CXX='-library=Cstd -library=Crun'
13886 case " $postdeps_CXX " in
13887 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13889 compiler_lib_search_dirs_CXX=
13890 if test -n "${compiler_lib_search_path_CXX}"; then
13891 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13924 lt_prog_compiler_wl_CXX=
13925 lt_prog_compiler_pic_CXX=
13926 lt_prog_compiler_static_CXX=
13929 # C++ specific cases for pic, static, wl, etc.
13930 if test "$GXX" = yes; then
13931 lt_prog_compiler_wl_CXX='-Wl,'
13932 lt_prog_compiler_static_CXX='-static'
13936 # All AIX code is PIC.
13937 if test "$host_cpu" = ia64; then
13938 # AIX 5 now supports IA64 processor
13939 lt_prog_compiler_static_CXX='-Bstatic'
13946 # see comment about AmigaOS4 .so support
13947 lt_prog_compiler_pic_CXX='-fPIC'
13950 # FIXME: we need at least 68020 code to build shared libraries, but
13951 # adding the `-m68020' flag to GCC prevents building anything better,
13953 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13958 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13959 # PIC is the default for these OSes.
13961 mingw* | cygwin* | os2* | pw32* | cegcc*)
13962 # This hack is so that the source file can tell whether it is being
13963 # built for inclusion in a dll (and should export symbols for example).
13964 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13965 # (--disable-auto-import) libraries
13966 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13968 darwin* | rhapsody*)
13969 # PIC is the default on this platform
13970 # Common symbols not allowed in MH_DYLIB files
13971 lt_prog_compiler_pic_CXX='-fno-common'
13974 # DJGPP does not support shared libraries at all
13975 lt_prog_compiler_pic_CXX=
13978 # PIC is the default for Haiku.
13979 # The "-static" flag exists, but is broken.
13980 lt_prog_compiler_static_CXX=
13983 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13984 # Instead, we relocate shared libraries at runtime.
13987 if test -d /usr/nec; then
13988 lt_prog_compiler_pic_CXX=-Kconform_pic
13992 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13993 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13994 # sets the default TLS model and affects inlining.
13999 lt_prog_compiler_pic_CXX='-fPIC'
14004 # QNX uses GNU C++, but need to define -shared option too, otherwise
14005 # it will coredump.
14006 lt_prog_compiler_pic_CXX='-fPIC -shared'
14009 lt_prog_compiler_pic_CXX='-fPIC'
14015 # All AIX code is PIC.
14016 if test "$host_cpu" = ia64; then
14017 # AIX 5 now supports IA64 processor
14018 lt_prog_compiler_static_CXX='-Bstatic'
14020 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14024 case $cc_basename in
14026 # Green Hills C++ Compiler
14027 # _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"
14031 mingw* | cygwin* | os2* | pw32* | cegcc*)
14032 # This hack is so that the source file can tell whether it is being
14033 # built for inclusion in a dll (and should export symbols for example).
14034 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14037 case $cc_basename in
14039 lt_prog_compiler_pic_CXX='-KPIC'
14042 # Green Hills C++ Compiler
14043 lt_prog_compiler_pic_CXX='-pic'
14049 freebsd* | dragonfly*)
14050 # FreeBSD uses GNU C++
14052 hpux9* | hpux10* | hpux11*)
14053 case $cc_basename in
14055 lt_prog_compiler_wl_CXX='-Wl,'
14056 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14057 if test "$host_cpu" != ia64; then
14058 lt_prog_compiler_pic_CXX='+Z'
14062 lt_prog_compiler_wl_CXX='-Wl,'
14063 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14069 lt_prog_compiler_pic_CXX='+Z'
14078 # This is c89, which is MS Visual C++ (no shared libs)
14079 # Anyone wants to do a port?
14081 irix5* | irix6* | nonstopux*)
14082 case $cc_basename in
14084 lt_prog_compiler_wl_CXX='-Wl,'
14085 lt_prog_compiler_static_CXX='-non_shared'
14086 # CC pic flag -KPIC is the default.
14092 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14093 case $cc_basename in
14096 lt_prog_compiler_wl_CXX='--backend -Wl,'
14097 lt_prog_compiler_pic_CXX='-fPIC'
14100 # old Intel C++ for x86_64 which still supported -KPIC.
14101 lt_prog_compiler_wl_CXX='-Wl,'
14102 lt_prog_compiler_pic_CXX='-KPIC'
14103 lt_prog_compiler_static_CXX='-static'
14106 # Intel C++, used to be incompatible with GCC.
14107 # ICC 10 doesn't accept -KPIC any more.
14108 lt_prog_compiler_wl_CXX='-Wl,'
14109 lt_prog_compiler_pic_CXX='-fPIC'
14110 lt_prog_compiler_static_CXX='-static'
14113 # Portland Group C++ compiler
14114 lt_prog_compiler_wl_CXX='-Wl,'
14115 lt_prog_compiler_pic_CXX='-fpic'
14116 lt_prog_compiler_static_CXX='-Bstatic'
14120 # Make sure the PIC flag is empty. It appears that all Alpha
14121 # Linux and Compaq Tru64 Unix objects are PIC.
14122 lt_prog_compiler_pic_CXX=
14123 lt_prog_compiler_static_CXX='-non_shared'
14125 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14126 # IBM XL 8.0, 9.0 on PPC and BlueGene
14127 lt_prog_compiler_wl_CXX='-Wl,'
14128 lt_prog_compiler_pic_CXX='-qpic'
14129 lt_prog_compiler_static_CXX='-qstaticlink'
14132 case `$CC -V 2>&1 | sed 5q` in
14135 lt_prog_compiler_pic_CXX='-KPIC'
14136 lt_prog_compiler_static_CXX='-Bstatic'
14137 lt_prog_compiler_wl_CXX='-Qoption ld '
14148 case $cc_basename in
14150 lt_prog_compiler_pic_CXX='-W c,exportall'
14159 # QNX uses GNU C++, but need to define -shared option too, otherwise
14160 # it will coredump.
14161 lt_prog_compiler_pic_CXX='-fPIC -shared'
14163 osf3* | osf4* | osf5*)
14164 case $cc_basename in
14166 lt_prog_compiler_wl_CXX='--backend -Wl,'
14169 # Rational C++ 2.4.1
14170 lt_prog_compiler_pic_CXX='-pic'
14173 # Digital/Compaq C++
14174 lt_prog_compiler_wl_CXX='-Wl,'
14175 # Make sure the PIC flag is empty. It appears that all Alpha
14176 # Linux and Compaq Tru64 Unix objects are PIC.
14177 lt_prog_compiler_pic_CXX=
14178 lt_prog_compiler_static_CXX='-non_shared'
14187 case $cc_basename in
14189 # Sun C++ 4.2, 5.x and Centerline C++
14190 lt_prog_compiler_pic_CXX='-KPIC'
14191 lt_prog_compiler_static_CXX='-Bstatic'
14192 lt_prog_compiler_wl_CXX='-Qoption ld '
14195 # Green Hills C++ Compiler
14196 lt_prog_compiler_pic_CXX='-PIC'
14203 case $cc_basename in
14206 lt_prog_compiler_pic_CXX='-pic'
14207 lt_prog_compiler_static_CXX='-Bstatic'
14211 lt_prog_compiler_pic_CXX='-pic'
14217 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14218 case $cc_basename in
14220 lt_prog_compiler_wl_CXX='-Wl,'
14221 lt_prog_compiler_pic_CXX='-KPIC'
14222 lt_prog_compiler_static_CXX='-Bstatic'
14227 case $cc_basename in
14229 # NonStop-UX NCC 3.20
14230 lt_prog_compiler_pic_CXX='-KPIC'
14239 lt_prog_compiler_can_build_shared_CXX=no
14245 # For platforms which do not support PIC, -DPIC is meaningless:
14247 lt_prog_compiler_pic_CXX=
14250 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14255 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14256 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14257 $as_echo_n "(cached) " >&6
14259 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14262 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14263 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14266 # Check to make sure the PIC flag actually works.
14268 if test -n "$lt_prog_compiler_pic_CXX"; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14270 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14271 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14272 $as_echo_n "(cached) " >&6
14274 lt_cv_prog_compiler_pic_works_CXX=no
14275 ac_outfile=conftest.$ac_objext
14276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14277 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14278 # Insert the option either (1) after the last *FLAGS variable, or
14279 # (2) before a word containing "conftest.", or (3) at the end.
14280 # Note that $ac_compile itself does not contain backslashes and begins
14281 # with a dollar sign (not a hyphen), so the echo should work correctly.
14282 # The option is referenced via a variable to avoid confusing sed.
14283 lt_compile=`echo "$ac_compile" | $SED \
14284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14286 -e 's:$: $lt_compiler_flag:'`
14287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14288 (eval "$lt_compile" 2>conftest.err)
14290 cat conftest.err >&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 if (exit $ac_status) && test -s "$ac_outfile"; then
14293 # The compiler can only warn and ignore the option if not recognized
14294 # So say no if there are warnings other than the usual output.
14295 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14297 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14298 lt_cv_prog_compiler_pic_works_CXX=yes
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14305 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14307 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14308 case $lt_prog_compiler_pic_CXX in
14310 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14313 lt_prog_compiler_pic_CXX=
14314 lt_prog_compiler_can_build_shared_CXX=no
14324 # Check to make sure the static flag actually works.
14326 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14328 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14329 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14330 $as_echo_n "(cached) " >&6
14332 lt_cv_prog_compiler_static_works_CXX=no
14333 save_LDFLAGS="$LDFLAGS"
14334 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14335 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14336 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14337 # The linker can only warn and ignore the option if not recognized
14338 # So say no if there are warnings
14339 if test -s conftest.err; then
14340 # Append any errors to the config.log.
14341 cat conftest.err 1>&5
14342 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14344 if diff conftest.exp conftest.er2 >/dev/null; then
14345 lt_cv_prog_compiler_static_works_CXX=yes
14348 lt_cv_prog_compiler_static_works_CXX=yes
14352 LDFLAGS="$save_LDFLAGS"
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14356 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14358 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14361 lt_prog_compiler_static_CXX=
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14368 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14369 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14370 $as_echo_n "(cached) " >&6
14372 lt_cv_prog_compiler_c_o_CXX=no
14373 $RM -r conftest 2>/dev/null
14377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14379 lt_compiler_flag="-o out/conftest2.$ac_objext"
14380 # Insert the option either (1) after the last *FLAGS variable, or
14381 # (2) before a word containing "conftest.", or (3) at the end.
14382 # Note that $ac_compile itself does not contain backslashes and begins
14383 # with a dollar sign (not a hyphen), so the echo should work correctly.
14384 lt_compile=`echo "$ac_compile" | $SED \
14385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14387 -e 's:$: $lt_compiler_flag:'`
14388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14389 (eval "$lt_compile" 2>out/conftest.err)
14391 cat out/conftest.err >&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14395 # The compiler can only warn and ignore the option if not recognized
14396 # So say no if there are warnings
14397 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14398 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14399 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14400 lt_cv_prog_compiler_c_o_CXX=yes
14405 # SGI C++ compiler will create directory out/ii_files/ for
14406 # template instantiation
14407 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14408 $RM out/* && rmdir out
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14415 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14420 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14421 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14422 $as_echo_n "(cached) " >&6
14424 lt_cv_prog_compiler_c_o_CXX=no
14425 $RM -r conftest 2>/dev/null
14429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14431 lt_compiler_flag="-o out/conftest2.$ac_objext"
14432 # Insert the option either (1) after the last *FLAGS variable, or
14433 # (2) before a word containing "conftest.", or (3) at the end.
14434 # Note that $ac_compile itself does not contain backslashes and begins
14435 # with a dollar sign (not a hyphen), so the echo should work correctly.
14436 lt_compile=`echo "$ac_compile" | $SED \
14437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14439 -e 's:$: $lt_compiler_flag:'`
14440 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14441 (eval "$lt_compile" 2>out/conftest.err)
14443 cat out/conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14447 # The compiler can only warn and ignore the option if not recognized
14448 # So say no if there are warnings
14449 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14450 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14451 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14452 lt_cv_prog_compiler_c_o_CXX=yes
14457 # SGI C++ compiler will create directory out/ii_files/ for
14458 # template instantiation
14459 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14460 $RM out/* && rmdir out
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14467 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14472 hard_links="nottested"
14473 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14474 # do not overwrite the value of need_locks provided by the user
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14476 $as_echo_n "checking if we can lock with hard links... " >&6; }
14479 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14481 ln conftest.a conftest.b 2>&5 || hard_links=no
14482 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14484 $as_echo "$hard_links" >&6; }
14485 if test "$hard_links" = no; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14487 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14497 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14499 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14500 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14503 # If we're using GNU nm, then we don't want the "-C" option.
14504 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14505 # Also, AIX nm treats weak defined symbols like other global defined
14506 # symbols, whereas GNU nm marks them as "W".
14507 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14508 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'
14510 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'
14514 export_symbols_cmds_CXX="$ltdll_cmds"
14516 cygwin* | mingw* | cegcc*)
14517 case $cc_basename in
14519 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14522 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'
14523 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14528 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14533 $as_echo "$ld_shlibs_CXX" >&6; }
14534 test "$ld_shlibs_CXX" = no && can_build_shared=no
14536 with_gnu_ld_CXX=$with_gnu_ld
14544 # Do we need to explicitly link libc?
14546 case "x$archive_cmds_need_lc_CXX" in
14548 # Assume -lc should be added
14549 archive_cmds_need_lc_CXX=yes
14551 if test "$enable_shared" = yes && test "$GCC" = yes; then
14552 case $archive_cmds_CXX in
14554 # FIXME: we may have to deal with multi-command sequences.
14557 # Test whether the compiler implicitly links with -lc since on some
14558 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14559 # to ld, don't add -lc before -lgcc.
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14561 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14562 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14563 $as_echo_n "(cached) " >&6
14566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14569 (eval $ac_compile) 2>&5
14571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14572 test $ac_status = 0; } 2>conftest.err; then
14575 libobjs=conftest.$ac_objext
14577 wl=$lt_prog_compiler_wl_CXX
14578 pic_flag=$lt_prog_compiler_pic_CXX
14584 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14585 allow_undefined_flag_CXX=
14586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14587 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14590 test $ac_status = 0; }
14592 lt_cv_archive_cmds_need_lc_CXX=no
14594 lt_cv_archive_cmds_need_lc_CXX=yes
14596 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14598 cat conftest.err 1>&5
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14604 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14605 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14674 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14676 library_names_spec=
14677 libname_spec='lib$name'
14681 postuninstall_cmds=
14685 shlibpath_overrides_runpath=unknown
14687 dynamic_linker="$host_os ld.so"
14688 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14689 need_lib_prefix=unknown
14690 hardcode_into_libs=no
14692 # when you set need_version to no, make sure it does not cause -set_version
14693 # flags to be left without arguments
14694 need_version=unknown
14698 version_type=linux # correct to gnu/linux during the next big refactor
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14700 shlibpath_var=LIBPATH
14702 # AIX 3 has no versioning support, so we append a major version to the name.
14703 soname_spec='${libname}${release}${shared_ext}$major'
14707 version_type=linux # correct to gnu/linux during the next big refactor
14710 hardcode_into_libs=yes
14711 if test "$host_cpu" = ia64; then
14712 # AIX 5 supports IA64
14713 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14714 shlibpath_var=LD_LIBRARY_PATH
14716 # With GCC up to 2.95.x, collect2 would create an import file
14717 # for dependence libraries. The import file would start with
14718 # the line `#! .'. This would cause the generated library to
14719 # depend on `.', always an invalid library. This was fixed in
14720 # development snapshots of GCC prior to 3.0.
14722 aix4 | aix4.[01] | aix4.[01].*)
14723 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14725 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14728 can_build_shared=no
14732 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14733 # soname into executable. Probably we can add versioning support to
14734 # collect2, so additional links can be useful in future.
14735 if test "$aix_use_runtimelinking" = yes; then
14736 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14737 # instead of lib<name>.a to let people know that these are not
14738 # typical AIX shared libraries.
14739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741 # We preserve .a as extension for shared libraries through AIX4.2
14742 # and later when we are not doing run time linking.
14743 library_names_spec='${libname}${release}.a $libname.a'
14744 soname_spec='${libname}${release}${shared_ext}$major'
14746 shlibpath_var=LIBPATH
14753 # Since July 2007 AmigaOS4 officially supports .so libraries.
14754 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14758 library_names_spec='$libname.ixlibrary $libname.a'
14759 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14760 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'
14766 library_names_spec='${libname}${shared_ext}'
14767 dynamic_linker="$host_os ld.so"
14768 shlibpath_var=LIBRARY_PATH
14772 version_type=linux # correct to gnu/linux during the next big refactor
14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14775 soname_spec='${libname}${release}${shared_ext}$major'
14776 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14777 shlibpath_var=LD_LIBRARY_PATH
14778 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14779 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14780 # the default ld.so.conf also contains /usr/contrib/lib and
14781 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14782 # libtool to hard-code these into programs
14785 cygwin* | mingw* | pw32* | cegcc*)
14786 version_type=windows
14791 case $GCC,$cc_basename in
14794 library_names_spec='$libname.dll.a'
14795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14796 postinstall_cmds='base_file=`basename \${file}`~
14797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14798 dldir=$destdir/`dirname \$dlpath`~
14799 test -d \$dldir || mkdir -p \$dldir~
14800 $install_prog $dir/$dlname \$dldir/$dlname~
14801 chmod a+x \$dldir/$dlname~
14802 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14803 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14805 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14806 dlpath=$dir/\$dldll~
14808 shlibpath_overrides_runpath=yes
14812 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14813 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
14814 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
14818 # MinGW DLLs use traditional 'lib' prefix
14819 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
14820 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
14823 # pw32 DLLs use 'pw' prefix rather than 'lib'
14824 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14827 dynamic_linker='Win32 ld.exe'
14832 libname_spec='$name'
14833 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14834 library_names_spec='${libname}.dll.lib'
14838 sys_lib_search_path_spec=
14841 for lt_path in $LIB
14844 # Let DOS variable expansion print the short 8.3 style file name.
14845 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14846 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14849 # Convert to MSYS style.
14850 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14853 # Convert to unix form, then to dos form, then back to unix form
14854 # but this time dos style (no spaces!) so that the unix form looks
14855 # like /cygdrive/c/PROGRA~1:/cygdr...
14856 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14857 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14858 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14861 sys_lib_search_path_spec="$LIB"
14862 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14863 # It is most probably a Windows format PATH.
14864 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14866 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14868 # FIXME: find the short name or the path components, as spaces are
14869 # common. (e.g. "Program Files" -> "PROGRA~1")
14873 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14874 postinstall_cmds='base_file=`basename \${file}`~
14875 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14876 dldir=$destdir/`dirname \$dlpath`~
14877 test -d \$dldir || mkdir -p \$dldir~
14878 $install_prog $dir/$dlname \$dldir/$dlname'
14879 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14880 dlpath=$dir/\$dldll~
14882 shlibpath_overrides_runpath=yes
14883 dynamic_linker='Win32 link.exe'
14887 # Assume MSVC wrapper
14888 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14889 dynamic_linker='Win32 ld.exe'
14892 # FIXME: first we should search . and the directory the executable is in
14896 darwin* | rhapsody*)
14897 dynamic_linker="$host_os dyld"
14898 version_type=darwin
14901 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14902 soname_spec='${libname}${release}${major}$shared_ext'
14903 shlibpath_overrides_runpath=yes
14904 shlibpath_var=DYLD_LIBRARY_PATH
14905 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14907 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14911 version_type=linux # correct to gnu/linux during the next big refactor
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 shlibpath_var=LD_LIBRARY_PATH
14919 freebsd* | dragonfly*)
14920 # DragonFly does not have aout. When/if they implement a new
14921 # versioning mechanism, adjust this.
14922 if test -x /usr/bin/objformat; then
14923 objformat=`/usr/bin/objformat`
14926 freebsd[23].*) objformat=aout ;;
14927 *) objformat=elf ;;
14930 version_type=freebsd-$objformat
14931 case $version_type in
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14942 shlibpath_var=LD_LIBRARY_PATH
14945 shlibpath_overrides_runpath=yes
14947 freebsd3.[01]* | freebsdelf3.[01]*)
14948 shlibpath_overrides_runpath=yes
14949 hardcode_into_libs=yes
14951 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14952 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14953 shlibpath_overrides_runpath=no
14954 hardcode_into_libs=yes
14956 *) # from 4.6 on, and DragonFly
14957 shlibpath_overrides_runpath=yes
14958 hardcode_into_libs=yes
14964 version_type=linux # correct to gnu/linux during the next big refactor
14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14968 soname_spec='${libname}${release}${shared_ext}$major'
14969 shlibpath_var=LD_LIBRARY_PATH
14970 shlibpath_overrides_runpath=no
14971 hardcode_into_libs=yes
14975 version_type=linux # correct to gnu/linux during the next big refactor
14978 dynamic_linker="$host_os runtime_loader"
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 shlibpath_var=LIBRARY_PATH
14982 shlibpath_overrides_runpath=yes
14983 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14984 hardcode_into_libs=yes
14987 hpux9* | hpux10* | hpux11*)
14988 # Give a soname corresponding to the major version so that dld.sl refuses to
14989 # link against other versions.
14996 hardcode_into_libs=yes
14997 dynamic_linker="$host_os dld.so"
14998 shlibpath_var=LD_LIBRARY_PATH
14999 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15001 soname_spec='${libname}${release}${shared_ext}$major'
15002 if test "X$HPUX_IA64_MODE" = X32; then
15003 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15005 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15007 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15011 hardcode_into_libs=yes
15012 dynamic_linker="$host_os dld.sl"
15013 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15014 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016 soname_spec='${libname}${release}${shared_ext}$major'
15017 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15022 dynamic_linker="$host_os dld.sl"
15023 shlibpath_var=SHLIB_PATH
15024 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15026 soname_spec='${libname}${release}${shared_ext}$major'
15029 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15030 postinstall_cmds='chmod 555 $lib'
15031 # or fails outright, so override atomically:
15032 install_override_mode=555
15036 version_type=linux # correct to gnu/linux during the next big refactor
15039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15040 soname_spec='${libname}${release}${shared_ext}$major'
15041 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15042 shlibpath_var=LD_LIBRARY_PATH
15043 shlibpath_overrides_runpath=no
15044 hardcode_into_libs=yes
15047 irix5* | irix6* | nonstopux*)
15049 nonstopux*) version_type=nonstopux ;;
15051 if test "$lt_cv_prog_gnu_ld" = yes; then
15052 version_type=linux # correct to gnu/linux during the next big refactor
15059 soname_spec='${libname}${release}${shared_ext}$major'
15060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15062 irix5* | nonstopux*)
15063 libsuff= shlibsuff=
15066 case $LD in # libtool.m4 will add one of these switches to LD
15067 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15068 libsuff= shlibsuff= libmagic=32-bit;;
15069 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15070 libsuff=32 shlibsuff=N32 libmagic=N32;;
15071 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15072 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15073 *) libsuff= shlibsuff= libmagic=never-match;;
15077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15078 shlibpath_overrides_runpath=no
15079 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15080 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15081 hardcode_into_libs=yes
15084 # No shared lib support for Linux oldld, aout, or coff.
15085 linux*oldld* | linux*aout* | linux*coff*)
15089 # This must be glibc/ELF.
15090 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15091 version_type=linux # correct to gnu/linux during the next big refactor
15094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15095 soname_spec='${libname}${release}${shared_ext}$major'
15096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15097 shlibpath_var=LD_LIBRARY_PATH
15098 shlibpath_overrides_runpath=no
15100 # Some binutils ld are patched to set DT_RUNPATH
15101 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15102 $as_echo_n "(cached) " >&6
15104 lt_cv_shlibpath_overrides_runpath=no
15105 save_LDFLAGS=$LDFLAGS
15106 save_libdir=$libdir
15107 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15108 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h. */
15120 if ac_fn_cxx_try_link "$LINENO"; then :
15121 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15122 lt_cv_shlibpath_overrides_runpath=yes
15125 rm -f core conftest.err conftest.$ac_objext \
15126 conftest$ac_exeext conftest.$ac_ext
15127 LDFLAGS=$save_LDFLAGS
15128 libdir=$save_libdir
15132 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15134 # This implies no fast_install, which is unacceptable.
15135 # Some rework will be needed to allow for fast_install
15136 # before this can be enabled.
15137 hardcode_into_libs=yes
15139 # Append ld.so.conf contents to the search path
15140 if test -f /etc/ld.so.conf; then
15141 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' ' '`
15142 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15145 # We used to test for /lib/ld.so.1 and disable shared libraries on
15146 # powerpc, because MkLinux only supported shared libraries with the
15147 # GNU dynamic linker. Since this was broken with cross compilers,
15148 # most powerpc-linux boxes support dynamic linking these days and
15149 # people can always --disable-shared, the test was removed, and we
15150 # assume the GNU/Linux dynamic linker is in use.
15151 dynamic_linker='GNU/Linux ld.so'
15158 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15161 dynamic_linker='NetBSD (a.out) ld.so'
15163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15164 soname_spec='${libname}${release}${shared_ext}$major'
15165 dynamic_linker='NetBSD ld.elf_so'
15167 shlibpath_var=LD_LIBRARY_PATH
15168 shlibpath_overrides_runpath=yes
15169 hardcode_into_libs=yes
15173 version_type=linux # correct to gnu/linux during the next big refactor
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15175 shlibpath_var=LD_LIBRARY_PATH
15176 shlibpath_overrides_runpath=yes
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15185 shlibpath_var=LD_LIBRARY_PATH
15186 shlibpath_overrides_runpath=no
15187 hardcode_into_libs=yes
15188 dynamic_linker='ldqnx.so'
15193 sys_lib_dlsearch_path_spec="/usr/lib"
15195 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15197 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15198 *) need_version=no ;;
15200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15202 shlibpath_var=LD_LIBRARY_PATH
15203 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15205 openbsd2.[89] | openbsd2.[89].*)
15206 shlibpath_overrides_runpath=no
15209 shlibpath_overrides_runpath=yes
15213 shlibpath_overrides_runpath=yes
15218 libname_spec='$name'
15221 library_names_spec='$libname${shared_ext} $libname.a'
15222 dynamic_linker='OS/2 ld.exe'
15223 shlibpath_var=LIBPATH
15226 osf3* | osf4* | osf5*)
15230 soname_spec='${libname}${release}${shared_ext}$major'
15231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232 shlibpath_var=LD_LIBRARY_PATH
15233 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15234 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15242 version_type=linux # correct to gnu/linux during the next big refactor
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 shlibpath_var=LD_LIBRARY_PATH
15248 shlibpath_overrides_runpath=yes
15249 hardcode_into_libs=yes
15250 # ldd complains unless libraries are executable
15251 postinstall_cmds='chmod +x $lib'
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15258 shlibpath_var=LD_LIBRARY_PATH
15259 shlibpath_overrides_runpath=yes
15260 if test "$with_gnu_ld" = yes; then
15267 version_type=linux # correct to gnu/linux during the next big refactor
15268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15269 soname_spec='${libname}${release}${shared_ext}$major'
15270 shlibpath_var=LD_LIBRARY_PATH
15271 case $host_vendor in
15273 shlibpath_overrides_runpath=no
15275 runpath_var=LD_RUN_PATH
15283 shlibpath_overrides_runpath=no
15284 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15290 if test -d /usr/nec ;then
15291 version_type=linux # correct to gnu/linux during the next big refactor
15292 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15293 soname_spec='$libname${shared_ext}.$major'
15294 shlibpath_var=LD_LIBRARY_PATH
15298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15299 version_type=freebsd-elf
15302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15303 soname_spec='${libname}${release}${shared_ext}$major'
15304 shlibpath_var=LD_LIBRARY_PATH
15305 shlibpath_overrides_runpath=yes
15306 hardcode_into_libs=yes
15307 if test "$with_gnu_ld" = yes; then
15308 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15310 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15313 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15317 sys_lib_dlsearch_path_spec='/usr/lib'
15321 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15322 version_type=linux # correct to gnu/linux during the next big refactor
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326 shlibpath_var=LD_LIBRARY_PATH
15327 shlibpath_overrides_runpath=no
15328 hardcode_into_libs=yes
15332 version_type=linux # correct to gnu/linux during the next big refactor
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15334 soname_spec='${libname}${release}${shared_ext}$major'
15335 shlibpath_var=LD_LIBRARY_PATH
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15343 $as_echo "$dynamic_linker" >&6; }
15344 test "$dynamic_linker" = no && can_build_shared=no
15346 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15347 if test "$GCC" = yes; then
15348 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15351 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15352 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15354 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15355 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15396 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15397 hardcode_action_CXX=
15398 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15399 test -n "$runpath_var_CXX" ||
15400 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15402 # We can hardcode non-existent directories.
15403 if test "$hardcode_direct_CXX" != no &&
15404 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15405 # have to relink, otherwise we might link with an installed library
15406 # when we should be linking with a yet-to-be-installed one
15407 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15408 test "$hardcode_minus_L_CXX" != no; then
15409 # Linking always hardcodes the temporary library directory.
15410 hardcode_action_CXX=relink
15412 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15413 hardcode_action_CXX=immediate
15416 # We cannot hardcode anything, or else we can only hardcode existing
15418 hardcode_action_CXX=unsupported
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15421 $as_echo "$hardcode_action_CXX" >&6; }
15423 if test "$hardcode_action_CXX" = relink ||
15424 test "$inherit_rpath_CXX" = yes; then
15425 # Fast installation is not supported
15426 enable_fast_install=no
15427 elif test "$shlibpath_overrides_runpath" = yes ||
15428 test "$enable_shared" = no; then
15429 # Fast installation is not necessary
15430 enable_fast_install=needless
15439 fi # test -n "$compiler"
15442 CFLAGS=$lt_save_CFLAGS
15446 with_gnu_ld=$lt_save_with_gnu_ld
15447 lt_cv_path_LDCXX=$lt_cv_path_LD
15448 lt_cv_path_LD=$lt_save_path_LD
15449 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15450 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15451 fi # test "$_lt_caught_CXX_error" != yes
15454 ac_cpp='$CPP $CPPFLAGS'
15455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15460 # Find a good install program. We prefer a C program (faster),
15461 # so one script is as good as another. But avoid the broken or
15462 # incompatible versions:
15463 # SysV /etc/install, /usr/sbin/install
15464 # SunOS /usr/etc/install
15465 # IRIX /sbin/install
15467 # AmigaOS /C/install, which installs bootblocks on floppy discs
15468 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15469 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15470 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15471 # OS/2's system install, which has a completely different semantic
15472 # ./install, which can be erroneously created by make from ./install.sh.
15473 # Reject install programs that cannot install multiple files.
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15475 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15476 if test -z "$INSTALL"; then
15477 if ${ac_cv_path_install+:} false; then :
15478 $as_echo_n "(cached) " >&6
15480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15481 for as_dir in $PATH
15484 test -z "$as_dir" && as_dir=.
15485 # Account for people who put trailing slashes in PATH elements.
15486 case $as_dir/ in #((
15487 ./ | .// | /[cC]/* | \
15488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15489 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15492 # OSF1 and SCO ODT 3.0 have their own names for install.
15493 # Don't use installbsd from OSF since it installs stuff as root
15495 for ac_prog in ginstall scoinst install; do
15496 for ac_exec_ext in '' $ac_executable_extensions; do
15497 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15498 if test $ac_prog = install &&
15499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15500 # AIX install. It has an incompatible calling convention.
15502 elif test $ac_prog = install &&
15503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15504 # program-specific install script used by HP pwplus--don't use.
15507 rm -rf conftest.one conftest.two conftest.dir
15508 echo one > conftest.one
15509 echo two > conftest.two
15511 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15512 test -s conftest.one && test -s conftest.two &&
15513 test -s conftest.dir/conftest.one &&
15514 test -s conftest.dir/conftest.two
15516 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15529 rm -rf conftest.one conftest.two conftest.dir
15532 if test "${ac_cv_path_install+set}" = set; then
15533 INSTALL=$ac_cv_path_install
15535 # As a last resort, use the slow shell script. Don't cache a
15536 # value for INSTALL within a source directory, because that will
15537 # break other packages using the cache if that directory is
15538 # removed, or if the value is a relative name.
15539 INSTALL=$ac_install_sh
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15543 $as_echo "$INSTALL" >&6; }
15545 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15546 # It thinks the first close brace ends the variable substitution.
15547 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15549 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15551 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15554 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15556 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15557 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15558 $as_echo_n "(cached) " >&6
15560 cat >conftest.make <<\_ACEOF
15563 @echo '@@@%%%=$(MAKE)=@@@%%%'
15565 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15566 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15567 *@@@%%%=?*=@@@%%%*)
15568 eval ac_cv_prog_make_${ac_make}_set=yes;;
15570 eval ac_cv_prog_make_${ac_make}_set=no;;
15572 rm -f conftest.make
15574 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15576 $as_echo "yes" >&6; }
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15580 $as_echo "no" >&6; }
15581 SET_MAKE="MAKE=${MAKE-make}"
15584 if test -n "$ac_tool_prefix"; then
15585 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15586 set dummy ${ac_tool_prefix}windres; ac_word=$2
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15588 $as_echo_n "checking for $ac_word... " >&6; }
15589 if ${ac_cv_prog_WINDRES+:} false; then :
15590 $as_echo_n "(cached) " >&6
15592 if test -n "$WINDRES"; then
15593 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15596 for as_dir in $PATH
15599 test -z "$as_dir" && as_dir=.
15600 for ac_exec_ext in '' $ac_executable_extensions; do
15601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15602 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15612 WINDRES=$ac_cv_prog_WINDRES
15613 if test -n "$WINDRES"; then
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
15615 $as_echo "$WINDRES" >&6; }
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15618 $as_echo "no" >&6; }
15623 if test -z "$ac_cv_prog_WINDRES"; then
15624 ac_ct_WINDRES=$WINDRES
15625 # Extract the first word of "windres", so it can be a program name with args.
15626 set dummy windres; ac_word=$2
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15628 $as_echo_n "checking for $ac_word... " >&6; }
15629 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
15630 $as_echo_n "(cached) " >&6
15632 if test -n "$ac_ct_WINDRES"; then
15633 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15636 for as_dir in $PATH
15639 test -z "$as_dir" && as_dir=.
15640 for ac_exec_ext in '' $ac_executable_extensions; do
15641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15642 ac_cv_prog_ac_ct_WINDRES="windres"
15643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15652 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15653 if test -n "$ac_ct_WINDRES"; then
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
15655 $as_echo "$ac_ct_WINDRES" >&6; }
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15658 $as_echo "no" >&6; }
15661 if test "x$ac_ct_WINDRES" = x; then
15664 case $cross_compiling:$ac_tool_warned in
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15668 ac_tool_warned=yes ;;
15670 WINDRES=$ac_ct_WINDRES
15673 WINDRES="$ac_cv_prog_WINDRES"
15679 # Except on msys, where make can't handle full pathnames (bug 1972)
15682 srcdir=`cd $srcdir && pwd`
15686 INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
15687 if test x$srcdir != x.; then
15688 INCLUDE="-Iinclude $INCLUDE"
15689 elif test -d .hg; then
15691 *** When building from Mercurial you should configure and build in a
15692 separate directory so you don't clobber SDL_config.h, SDL_revision.h
15699 # We build SDL on cygwin without the UNIX emulation layer
15700 save_CFLAGS="$CFLAGS"
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
15703 $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
15704 CFLAGS="$save_CFLAGS -mno-cygwin"
15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h. */
15719 if ac_fn_c_try_compile "$LINENO"; then :
15724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
15726 $as_echo "$have_no_cygwin" >&6; }
15727 CFLAGS="$save_CFLAGS"
15729 if test x$have_no_cygwin = xyes; then
15730 BASE_CFLAGS="-mno-cygwin"
15731 BASE_LDFLAGS="-mno-cygwin"
15733 BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
15736 # Uncomment the following line if you want to force SDL and applications
15737 # built with it to be compiled for a particular architecture.
15738 #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
15739 BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
15740 # The default optimization for SDL is -O3 (Bug #31)
15741 if test "x$orig_CFLAGS" = x; then
15742 BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
15744 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
15745 BUILD_LDFLAGS="$LDFLAGS"
15746 EXTRA_LDFLAGS="$BASE_LDFLAGS"
15747 ## These are common directories to find software packages
15748 #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
15749 # if test -d $path/include; then
15750 # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
15752 # if test -d $path/lib; then
15753 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
15756 SDL_CFLAGS="$BASE_CFLAGS"
15757 SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
15758 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
15759 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
15760 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
15762 base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
15766 gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
15767 gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
15768 env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
15769 if test "$cross_compiling" = yes; then
15772 host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
15774 for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
15775 lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
15776 if test x$lib != x; then
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15784 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15785 if ${ac_cv_c_const+:} false; then :
15786 $as_echo_n "(cached) " >&6
15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15795 #ifndef __cplusplus
15796 /* Ultrix mips cc rejects this sort of thing. */
15797 typedef int charset[2];
15798 const charset cs = { 0, 0 };
15799 /* SunOS 4.1.1 cc rejects this. */
15800 char const *const *pcpcc;
15802 /* NEC SVR4.0.2 mips cc rejects this. */
15803 struct point {int x, y;};
15804 static struct point const zero = {0,0};
15805 /* AIX XL C 1.02.0.0 rejects this.
15806 It does not let you subtract one const X* pointer from another in
15807 an arm of an if-expression whose if-part is not a constant
15809 const char *g = "string";
15810 pcpcc = &g + (g ? g-g : 0);
15811 /* HPUX 7.0 cc rejects these. */
15813 ppc = (char**) pcpcc;
15814 pcpcc = (char const *const *) ppc;
15815 { /* SCO 3.2v4 cc rejects this sort of thing. */
15818 char const *s = 0 ? (char *) 0 : (char const *) 0;
15823 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15824 int x[] = {25, 17};
15825 const int *foo = &x[0];
15828 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15829 typedef const int *iptr;
15833 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15834 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15835 struct s { int j; const int *ap[3]; } bx;
15836 struct s *b = &bx; b->j = 5;
15838 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15839 const int foo = 10;
15840 if (!foo) return 0;
15842 return !cs[0] && !zero.x;
15849 if ac_fn_c_try_compile "$LINENO"; then :
15854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15857 $as_echo "$ac_cv_c_const" >&6; }
15858 if test $ac_cv_c_const = no; then
15860 $as_echo "#define const /**/" >>confdefs.h
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15865 $as_echo_n "checking for inline... " >&6; }
15866 if ${ac_cv_c_inline+:} false; then :
15867 $as_echo_n "(cached) " >&6
15870 for ac_kw in inline __inline__ __inline; do
15871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15872 /* end confdefs.h. */
15873 #ifndef __cplusplus
15875 static $ac_kw foo_t static_foo () {return 0; }
15876 $ac_kw foo_t foo () {return 0; }
15880 if ac_fn_c_try_compile "$LINENO"; then :
15881 ac_cv_c_inline=$ac_kw
15883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884 test "$ac_cv_c_inline" != no && break
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15889 $as_echo "$ac_cv_c_inline" >&6; }
15891 case $ac_cv_c_inline in
15894 case $ac_cv_c_inline in
15896 *) ac_val=$ac_cv_c_inline;;
15898 cat >>confdefs.h <<_ACEOF
15899 #ifndef __cplusplus
15900 #define inline $ac_val
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
15907 $as_echo_n "checking for working volatile... " >&6; }
15908 if ${ac_cv_c_volatile+:} false; then :
15909 $as_echo_n "(cached) " >&6
15911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15912 /* end confdefs.h. */
15919 int * volatile y = (int *) 0;
15925 if ac_fn_c_try_compile "$LINENO"; then :
15926 ac_cv_c_volatile=yes
15928 ac_cv_c_volatile=no
15930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
15933 $as_echo "$ac_cv_c_volatile" >&6; }
15934 if test $ac_cv_c_volatile = no; then
15936 $as_echo "#define volatile /**/" >>confdefs.h
15941 # Check whether --enable-assertions was given.
15942 if test "${enable_assertions+set}" = set; then :
15943 enableval=$enable_assertions;
15945 enable_assertions=auto
15948 case "$enable_assertions" in
15949 auto) # Use optimization settings to determine assertion level
15953 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
15958 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
15963 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
15968 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
15972 as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
15976 # Check whether --enable-dependency-tracking was given.
15977 if test "${enable_dependency_tracking+set}" = set; then :
15978 enableval=$enable_dependency_tracking;
15980 enable_dependency_tracking=yes
15983 if test x$enable_dependency_tracking = xyes; then
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
15986 $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15990 #if !defined(__GNUC__) || __GNUC__ < 3
15991 #error Dependency tracking requires GCC 3.0 or newer
16003 if ac_fn_c_try_compile "$LINENO"; then :
16005 have_gcc_mmd_mt=yes
16008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
16010 $as_echo "$have_gcc_mmd_mt" >&6; }
16012 if test x$have_gcc_mmd_mt = xyes; then
16013 DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
16018 $as_echo_n "checking for linker option --no-undefined... " >&6; }
16019 have_no_undefined=no
16025 save_LDFLAGS="$LDFLAGS"
16026 LDFLAGS="$LDFLAGS -Wl,--no-undefined"
16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16040 if ac_fn_c_try_link "$LINENO"; then :
16042 have_no_undefined=yes
16043 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
16046 rm -f core conftest.err conftest.$ac_objext \
16047 conftest$ac_exeext conftest.$ac_ext
16048 LDFLAGS="$save_LDFLAGS"
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
16052 $as_echo "$have_no_undefined" >&6; }
16054 # Check whether --enable-libc was given.
16055 if test "${enable_libc+set}" = set; then :
16056 enableval=$enable_libc;
16061 if test x$enable_libc = xyes; then
16063 $as_echo "#define HAVE_LIBC 1" >>confdefs.h
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16067 $as_echo_n "checking for ANSI C header files... " >&6; }
16068 if ${ac_cv_header_stdc+:} false; then :
16069 $as_echo_n "(cached) " >&6
16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16073 #include <stdlib.h>
16074 #include <stdarg.h>
16075 #include <string.h>
16086 if ac_fn_c_try_compile "$LINENO"; then :
16087 ac_cv_header_stdc=yes
16089 ac_cv_header_stdc=no
16091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16093 if test $ac_cv_header_stdc = yes; then
16094 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16096 /* end confdefs.h. */
16097 #include <string.h>
16100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16101 $EGREP "memchr" >/dev/null 2>&1; then :
16104 ac_cv_header_stdc=no
16110 if test $ac_cv_header_stdc = yes; then
16111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16113 /* end confdefs.h. */
16114 #include <stdlib.h>
16117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16118 $EGREP "free" >/dev/null 2>&1; then :
16121 ac_cv_header_stdc=no
16127 if test $ac_cv_header_stdc = yes; then
16128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16129 if test "$cross_compiling" = yes; then :
16132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133 /* end confdefs.h. */
16135 #include <stdlib.h>
16136 #if ((' ' & 0x0FF) == 0x020)
16137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16140 # define ISLOWER(c) \
16141 (('a' <= (c) && (c) <= 'i') \
16142 || ('j' <= (c) && (c) <= 'r') \
16143 || ('s' <= (c) && (c) <= 'z'))
16144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16152 for (i = 0; i < 256; i++)
16153 if (XOR (islower (i), ISLOWER (i))
16154 || toupper (i) != TOUPPER (i))
16159 if ac_fn_c_try_run "$LINENO"; then :
16162 ac_cv_header_stdc=no
16164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16165 conftest.$ac_objext conftest.beam conftest.$ac_ext
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16171 $as_echo "$ac_cv_header_stdc" >&6; }
16172 if test $ac_cv_header_stdc = yes; then
16174 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16178 for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h
16180 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16181 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16182 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16183 cat >>confdefs.h <<_ACEOF
16184 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16192 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16193 if test "x$ac_cv_type_size_t" = xyes; then :
16197 cat >>confdefs.h <<_ACEOF
16198 #define size_t unsigned int
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
16205 $as_echo_n "checking for M_PI in math.h... " >&6; }
16206 if ${ac_cv_define_M_PI+:} false; then :
16207 $as_echo_n "(cached) " >&6
16209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16210 /* end confdefs.h. */
16218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16219 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
16220 ac_cv_define_M_PI=yes
16222 ac_cv_define_M_PI=no
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
16229 $as_echo "$ac_cv_define_M_PI" >&6; }
16230 if test "$ac_cv_define_M_PI" = "yes" ; then
16232 $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
16238 *-*-cygwin* | *-*-mingw32*)
16241 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16242 # for constant arguments. Useless!
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16244 $as_echo_n "checking for working alloca.h... " >&6; }
16245 if ${ac_cv_working_alloca_h+:} false; then :
16246 $as_echo_n "(cached) " >&6
16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16250 #include <alloca.h>
16254 char *p = (char *) alloca (2 * sizeof (int));
16260 if ac_fn_c_try_link "$LINENO"; then :
16261 ac_cv_working_alloca_h=yes
16263 ac_cv_working_alloca_h=no
16265 rm -f core conftest.err conftest.$ac_objext \
16266 conftest$ac_exeext conftest.$ac_ext
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16269 $as_echo "$ac_cv_working_alloca_h" >&6; }
16270 if test $ac_cv_working_alloca_h = yes; then
16272 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16277 $as_echo_n "checking for alloca... " >&6; }
16278 if ${ac_cv_func_alloca_works+:} false; then :
16279 $as_echo_n "(cached) " >&6
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16284 # define alloca __builtin_alloca
16287 # include <malloc.h>
16288 # define alloca _alloca
16290 # ifdef HAVE_ALLOCA_H
16291 # include <alloca.h>
16296 # ifndef alloca /* predefined by HP cc +Olibcalls */
16297 void *alloca (size_t);
16307 char *p = (char *) alloca (1);
16313 if ac_fn_c_try_link "$LINENO"; then :
16314 ac_cv_func_alloca_works=yes
16316 ac_cv_func_alloca_works=no
16318 rm -f core conftest.err conftest.$ac_objext \
16319 conftest$ac_exeext conftest.$ac_ext
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16322 $as_echo "$ac_cv_func_alloca_works" >&6; }
16324 if test $ac_cv_func_alloca_works = yes; then
16326 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16329 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16330 # that cause trouble. Some versions do not even contain alloca or
16331 # contain a buggy version. If you still want to use their alloca,
16332 # use ar to extract alloca.o from them instead of compiling alloca.c.
16334 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16336 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16340 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16341 if ${ac_cv_os_cray+:} false; then :
16342 $as_echo_n "(cached) " >&6
16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h. */
16346 #if defined CRAY && ! defined CRAY2
16353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16354 $EGREP "webecray" >/dev/null 2>&1; then :
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16363 $as_echo "$ac_cv_os_cray" >&6; }
16364 if test $ac_cv_os_cray = yes; then
16365 for ac_func in _getb67 GETB67 getb67; do
16366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16367 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16368 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16370 cat >>confdefs.h <<_ACEOF
16371 #define CRAY_STACKSEG_END $ac_func
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16381 $as_echo_n "checking stack direction for C alloca... " >&6; }
16382 if ${ac_cv_c_stack_direction+:} false; then :
16383 $as_echo_n "(cached) " >&6
16385 if test "$cross_compiling" = yes; then :
16386 ac_cv_c_stack_direction=0
16388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389 /* end confdefs.h. */
16390 $ac_includes_default
16392 find_stack_direction (int *addr, int depth)
16394 int dir, dummy = 0;
16397 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16398 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16399 return dir + dummy;
16403 main (int argc, char **argv)
16405 return find_stack_direction (0, argc + !argv + 20) < 0;
16408 if ac_fn_c_try_run "$LINENO"; then :
16409 ac_cv_c_stack_direction=1
16411 ac_cv_c_stack_direction=-1
16413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16414 conftest.$ac_objext conftest.beam conftest.$ac_ext
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16419 $as_echo "$ac_cv_c_stack_direction" >&6; }
16420 cat >>confdefs.h <<_ACEOF
16421 #define STACK_DIRECTION $ac_cv_c_stack_direction
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
16431 $as_echo_n "checking for working memcmp... " >&6; }
16432 if ${ac_cv_func_memcmp_working+:} false; then :
16433 $as_echo_n "(cached) " >&6
16435 if test "$cross_compiling" = yes; then :
16436 ac_cv_func_memcmp_working=no
16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h. */
16440 $ac_includes_default
16445 /* Some versions of memcmp are not 8-bit clean. */
16446 char c0 = '\100', c1 = '\200', c2 = '\201';
16447 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16450 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16451 or more and with at least one buffer not starting on a 4-byte boundary.
16452 William Lewis provided this test program. */
16457 for (i = 0; i < 4; i++)
16461 strcpy (a, "--------01111111");
16462 strcpy (b, "--------10000000");
16463 if (memcmp (a, b, 16) >= 0)
16473 if ac_fn_c_try_run "$LINENO"; then :
16474 ac_cv_func_memcmp_working=yes
16476 ac_cv_func_memcmp_working=no
16478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16479 conftest.$ac_objext conftest.beam conftest.$ac_ext
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16484 $as_echo "$ac_cv_func_memcmp_working" >&6; }
16485 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16486 *" memcmp.$ac_objext "* ) ;;
16487 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16492 if test x$ac_cv_func_memcmp_working = xyes; then
16494 $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
16498 $as_echo_n "checking for working strtod... " >&6; }
16499 if ${ac_cv_func_strtod+:} false; then :
16500 $as_echo_n "(cached) " >&6
16502 if test "$cross_compiling" = yes; then :
16503 ac_cv_func_strtod=no
16505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h. */
16508 $ac_includes_default
16516 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
16517 char *string = " +69";
16520 value = strtod (string, &term);
16521 if (value != 69 || term != (string + 4))
16526 /* Under Solaris 2.4, strtod returns the wrong value for the
16527 terminating character under some conditions. */
16528 char *string = "NaN";
16530 strtod (string, &term);
16531 if (term != string && *(term - 1) == 0)
16538 if ac_fn_c_try_run "$LINENO"; then :
16539 ac_cv_func_strtod=yes
16541 ac_cv_func_strtod=no
16543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16544 conftest.$ac_objext conftest.beam conftest.$ac_ext
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
16549 $as_echo "$ac_cv_func_strtod" >&6; }
16550 if test $ac_cv_func_strtod = no; then
16551 case " $LIBOBJS " in
16552 *" strtod.$ac_objext "* ) ;;
16553 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
16557 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
16558 if test "x$ac_cv_func_pow" = xyes; then :
16562 if test $ac_cv_func_pow = no; then
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16564 $as_echo_n "checking for pow in -lm... " >&6; }
16565 if ${ac_cv_lib_m_pow+:} false; then :
16566 $as_echo_n "(cached) " >&6
16568 ac_check_lib_save_LIBS=$LIBS
16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571 /* end confdefs.h. */
16573 /* Override any GCC internal prototype to avoid an error.
16574 Use char because int might match the return type of a GCC
16575 builtin and then its argument prototype would still apply. */
16588 if ac_fn_c_try_link "$LINENO"; then :
16589 ac_cv_lib_m_pow=yes
16593 rm -f core conftest.err conftest.$ac_objext \
16594 conftest$ac_exeext conftest.$ac_ext
16595 LIBS=$ac_check_lib_save_LIBS
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16598 $as_echo "$ac_cv_lib_m_pow" >&6; }
16599 if test "x$ac_cv_lib_m_pow" = xyes; then :
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
16603 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
16610 if test x$ac_cv_func_strtod = xyes; then
16612 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
16615 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
16616 if test "x$ac_cv_func_mprotect" = xyes; then :
16617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16618 /* end confdefs.h. */
16620 #include <sys/types.h>
16621 #include <sys/mman.h>
16632 if ac_fn_c_try_compile "$LINENO"; then :
16635 $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
16639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16642 for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _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 fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll
16644 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16646 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16647 cat >>confdefs.h <<_ACEOF
16648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16656 $as_echo_n "checking for pow in -lm... " >&6; }
16657 if ${ac_cv_lib_m_pow+:} false; then :
16658 $as_echo_n "(cached) " >&6
16660 ac_check_lib_save_LIBS=$LIBS
16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h. */
16665 /* Override any GCC internal prototype to avoid an error.
16666 Use char because int might match the return type of a GCC
16667 builtin and then its argument prototype would still apply. */
16680 if ac_fn_c_try_link "$LINENO"; then :
16681 ac_cv_lib_m_pow=yes
16685 rm -f core conftest.err conftest.$ac_objext \
16686 conftest$ac_exeext conftest.$ac_ext
16687 LIBS=$ac_check_lib_save_LIBS
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16690 $as_echo "$ac_cv_lib_m_pow" >&6; }
16691 if test "x$ac_cv_lib_m_pow" = xyes; then :
16692 LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
16695 for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf fabs fabsf floor floorf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
16697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16700 cat >>confdefs.h <<_ACEOF
16701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
16709 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
16710 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
16711 $as_echo_n "(cached) " >&6
16713 ac_check_lib_save_LIBS=$LIBS
16714 LIBS="-liconv $LIBS"
16715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h. */
16718 /* Override any GCC internal prototype to avoid an error.
16719 Use char because int might match the return type of a GCC
16720 builtin and then its argument prototype would still apply. */
16724 char iconv_open ();
16728 return iconv_open ();
16733 if ac_fn_c_try_link "$LINENO"; then :
16734 ac_cv_lib_iconv_iconv_open=yes
16736 ac_cv_lib_iconv_iconv_open=no
16738 rm -f core conftest.err conftest.$ac_objext \
16739 conftest$ac_exeext conftest.$ac_ext
16740 LIBS=$ac_check_lib_save_LIBS
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
16743 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
16744 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
16745 LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
16748 for ac_func in iconv
16750 ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
16751 if test "x$ac_cv_func_iconv" = xyes; then :
16752 cat >>confdefs.h <<_ACEOF
16753 #define HAVE_ICONV 1
16760 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
16762 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
16764 $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
16769 for ac_header in libunwind.h
16771 ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
16772 if test "x$ac_cv_header_libunwind_h" = xyes; then :
16773 cat >>confdefs.h <<_ACEOF
16774 #define HAVE_LIBUNWIND_H 1
16784 # Check whether --enable-gcc-atomics was given.
16785 if test "${enable_gcc_atomics+set}" = set; then :
16786 enableval=$enable_gcc_atomics;
16788 enable_gcc_atomics=yes
16791 if test x$enable_gcc_atomics = xyes; then
16792 have_gcc_atomics=no
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
16794 $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16796 /* end confdefs.h. */
16805 __sync_lock_test_and_set(&a, 4);
16806 __sync_lock_test_and_set(&x, y);
16807 __sync_fetch_and_add(&a, 1);
16808 __sync_bool_compare_and_swap(&a, 5, 10);
16809 __sync_bool_compare_and_swap(&x, y, z);
16815 if ac_fn_c_try_link "$LINENO"; then :
16817 have_gcc_atomics=yes
16820 rm -f core conftest.err conftest.$ac_objext \
16821 conftest$ac_exeext conftest.$ac_ext
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
16823 $as_echo "$have_gcc_atomics" >&6; }
16825 if test x$have_gcc_atomics = xyes; then
16827 $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
16830 # See if we have the minimum operation needed for GCC atomics
16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832 /* end confdefs.h. */
16840 __sync_lock_test_and_set(&a, 1);
16841 __sync_lock_release(&a);
16847 if ac_fn_c_try_link "$LINENO"; then :
16849 have_gcc_sync_lock_test_and_set=yes
16852 rm -f core conftest.err conftest.$ac_objext \
16853 conftest$ac_exeext conftest.$ac_ext
16854 if test x$have_gcc_sync_lock_test_and_set = xyes; then
16856 $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
16862 # Standard C sources
16863 SOURCES="$SOURCES $srcdir/src/*.c"
16864 SOURCES="$SOURCES $srcdir/src/atomic/*.c"
16865 SOURCES="$SOURCES $srcdir/src/audio/*.c"
16866 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
16867 SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
16868 SOURCES="$SOURCES $srcdir/src/events/*.c"
16869 SOURCES="$SOURCES $srcdir/src/file/*.c"
16870 SOURCES="$SOURCES $srcdir/src/haptic/*.c"
16871 SOURCES="$SOURCES $srcdir/src/joystick/*.c"
16872 SOURCES="$SOURCES $srcdir/src/libm/*.c"
16873 SOURCES="$SOURCES $srcdir/src/power/*.c"
16874 #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
16875 SOURCES="$SOURCES $srcdir/src/render/*.c"
16876 SOURCES="$SOURCES $srcdir/src/render/*/*.c"
16877 SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
16878 SOURCES="$SOURCES $srcdir/src/thread/*.c"
16879 SOURCES="$SOURCES $srcdir/src/timer/*.c"
16880 SOURCES="$SOURCES $srcdir/src/video/*.c"
16881 SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
16884 # Check whether --enable-atomic was given.
16885 if test "${enable_atomic+set}" = set; then :
16886 enableval=$enable_atomic;
16891 if test x$enable_atomic != xyes; then
16893 $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
16896 SUMMARY_modules="${SUMMARY_modules} atomic"
16898 # Check whether --enable-audio was given.
16899 if test "${enable_audio+set}" = set; then :
16900 enableval=$enable_audio;
16905 if test x$enable_audio != xyes; then
16907 $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
16910 SUMMARY_modules="${SUMMARY_modules} audio"
16912 # Check whether --enable-video was given.
16913 if test "${enable_video+set}" = set; then :
16914 enableval=$enable_video;
16919 if test x$enable_video != xyes; then
16921 $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
16924 SUMMARY_modules="${SUMMARY_modules} video"
16926 # Check whether --enable-render was given.
16927 if test "${enable_render+set}" = set; then :
16928 enableval=$enable_render;
16933 if test x$enable_render != xyes; then
16935 $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
16938 SUMMARY_modules="${SUMMARY_modules} render"
16940 # Check whether --enable-events was given.
16941 if test "${enable_events+set}" = set; then :
16942 enableval=$enable_events;
16947 if test x$enable_events != xyes; then
16949 $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
16952 SUMMARY_modules="${SUMMARY_modules} events"
16954 # Check whether --enable-joystick was given.
16955 if test "${enable_joystick+set}" = set; then :
16956 enableval=$enable_joystick;
16958 enable_joystick=yes
16961 if test x$enable_joystick != xyes; then
16963 $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
16966 SUMMARY_modules="${SUMMARY_modules} joystick"
16968 # Check whether --enable-haptic was given.
16969 if test "${enable_haptic+set}" = set; then :
16970 enableval=$enable_haptic;
16975 if test x$enable_haptic != xyes; then
16977 $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
16980 SUMMARY_modules="${SUMMARY_modules} haptic"
16982 # Check whether --enable-power was given.
16983 if test "${enable_power+set}" = set; then :
16984 enableval=$enable_power;
16989 if test x$enable_power != xyes; then
16991 $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
16994 SUMMARY_modules="${SUMMARY_modules} power"
16996 # Check whether --enable-filesystem was given.
16997 if test "${enable_filesystem+set}" = set; then :
16998 enableval=$enable_filesystem;
17000 enable_filesystem=yes
17003 if test x$enable_filesystem != xyes; then
17005 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
17008 SUMMARY_modules="${SUMMARY_modules} filesystem"
17010 # Check whether --enable-threads was given.
17011 if test "${enable_threads+set}" = set; then :
17012 enableval=$enable_threads;
17017 if test x$enable_threads != xyes; then
17019 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
17022 SUMMARY_modules="${SUMMARY_modules} threads"
17024 # Check whether --enable-timers was given.
17025 if test "${enable_timers+set}" = set; then :
17026 enableval=$enable_timers;
17031 if test x$enable_timers != xyes; then
17033 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
17036 SUMMARY_modules="${SUMMARY_modules} timers"
17038 # Check whether --enable-file was given.
17039 if test "${enable_file+set}" = set; then :
17040 enableval=$enable_file;
17045 if test x$enable_file != xyes; then
17047 $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
17050 SUMMARY_modules="${SUMMARY_modules} file"
17052 # Check whether --enable-loadso was given.
17053 if test "${enable_loadso+set}" = set; then :
17054 enableval=$enable_loadso;
17059 if test x$enable_loadso != xyes; then
17061 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
17064 SUMMARY_modules="${SUMMARY_modules} loadso"
17066 # Check whether --enable-cpuinfo was given.
17067 if test "${enable_cpuinfo+set}" = set; then :
17068 enableval=$enable_cpuinfo;
17073 if test x$enable_cpuinfo != xyes; then
17075 $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
17078 SUMMARY_modules="${SUMMARY_modules} cpuinfo"
17080 # Check whether --enable-assembly was given.
17081 if test "${enable_assembly+set}" = set; then :
17082 enableval=$enable_assembly;
17084 enable_assembly=yes
17087 if test x$enable_assembly = xyes; then
17088 SUMMARY_modules="${SUMMARY_modules} assembly"
17091 $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
17094 # Make sure that we don't generate floating point code that would
17095 # cause illegal instruction exceptions on older processors
17098 # Don't need to worry about Apple hardware, it's all SSE capable
17099 default_ssemath=yes
17102 # x86 64-bit architectures all have SSE instructions
17103 default_ssemath=yes
17109 # Check whether --enable-ssemath was given.
17110 if test "${enable_ssemath+set}" = set; then :
17111 enableval=$enable_ssemath;
17113 enable_ssemath=$default_ssemath
17116 if test x$enable_ssemath = xno; then
17117 if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
17118 EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
17122 # Check whether --enable-mmx was given.
17123 if test "${enable_mmx+set}" = set; then :
17124 enableval=$enable_mmx;
17129 if test x$enable_mmx = xyes; then
17130 save_CFLAGS="$CFLAGS"
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
17133 $as_echo_n "checking for GCC -mmmx option... " >&6; }
17135 CFLAGS="$save_CFLAGS $mmx_CFLAGS"
17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138 /* end confdefs.h. */
17141 #include <_mingw.h>
17142 #ifdef __MINGW64_VERSION_MAJOR
17143 #include <intrin.h>
17145 #include <mmintrin.h>
17148 #include <mmintrin.h>
17151 #error Assembler CPP flag not enabled
17163 if ac_fn_c_try_compile "$LINENO"; then :
17168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
17170 $as_echo "$have_gcc_mmx" >&6; }
17171 CFLAGS="$save_CFLAGS"
17173 if test x$have_gcc_mmx = xyes; then
17174 EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
17175 SUMMARY_math="${SUMMARY_math} mmx"
17179 # Check whether --enable-3dnow was given.
17180 if test "${enable_3dnow+set}" = set; then :
17181 enableval=$enable_3dnow;
17186 if test x$enable_3dnow = xyes; then
17187 save_CFLAGS="$CFLAGS"
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
17190 $as_echo_n "checking for GCC -m3dnow option... " >&6; }
17191 amd3dnow_CFLAGS="-m3dnow"
17192 CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
17194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195 /* end confdefs.h. */
17197 #include <mm3dnow.h>
17199 #error Assembler CPP flag not enabled
17213 if ac_fn_c_try_link "$LINENO"; then :
17218 rm -f core conftest.err conftest.$ac_objext \
17219 conftest$ac_exeext conftest.$ac_ext
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
17221 $as_echo "$have_gcc_3dnow" >&6; }
17222 CFLAGS="$save_CFLAGS"
17224 if test x$have_gcc_3dnow = xyes; then
17225 EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
17226 SUMMARY_math="${SUMMARY_math} 3dnow"
17230 # Check whether --enable-sse was given.
17231 if test "${enable_sse+set}" = set; then :
17232 enableval=$enable_sse;
17237 if test x$enable_sse = xyes; then
17238 save_CFLAGS="$CFLAGS"
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
17241 $as_echo_n "checking for GCC -msse option... " >&6; }
17243 CFLAGS="$save_CFLAGS $sse_CFLAGS"
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17249 #include <_mingw.h>
17250 #ifdef __MINGW64_VERSION_MAJOR
17251 #include <intrin.h>
17253 #include <xmmintrin.h>
17256 #include <xmmintrin.h>
17259 #error Assembler CPP flag not enabled
17271 if ac_fn_c_try_compile "$LINENO"; then :
17276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
17278 $as_echo "$have_gcc_sse" >&6; }
17279 CFLAGS="$save_CFLAGS"
17281 if test x$have_gcc_sse = xyes; then
17282 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
17283 SUMMARY_math="${SUMMARY_math} sse"
17287 # Check whether --enable-sse2 was given.
17288 if test "${enable_sse2+set}" = set; then :
17289 enableval=$enable_sse2;
17291 enable_sse2=$default_ssemath
17294 if test x$enable_sse2 = xyes; then
17295 save_CFLAGS="$CFLAGS"
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
17298 $as_echo_n "checking for GCC -msse2 option... " >&6; }
17299 sse2_CFLAGS="-msse2"
17300 CFLAGS="$save_CFLAGS $sse2_CFLAGS"
17302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17303 /* end confdefs.h. */
17306 #include <_mingw.h>
17307 #ifdef __MINGW64_VERSION_MAJOR
17308 #include <intrin.h>
17310 #include <emmintrin.h>
17313 #include <emmintrin.h>
17316 #error Assembler CPP flag not enabled
17328 if ac_fn_c_try_compile "$LINENO"; then :
17333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
17335 $as_echo "$have_gcc_sse2" >&6; }
17336 CFLAGS="$save_CFLAGS"
17338 if test x$have_gcc_sse2 = xyes; then
17339 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
17340 SUMMARY_math="${SUMMARY_math} sse2"
17344 # Check whether --enable-sse3 was given.
17345 if test "${enable_sse3+set}" = set; then :
17346 enableval=$enable_sse3;
17348 enable_sse3=$default_ssemath
17351 if test x$enable_sse3 = xyes; then
17352 save_CFLAGS="$CFLAGS"
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
17355 $as_echo_n "checking for GCC -msse3 option... " >&6; }
17356 sse3_CFLAGS="-msse3"
17357 CFLAGS="$save_CFLAGS $sse3_CFLAGS"
17359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17360 /* end confdefs.h. */
17363 #include <_mingw.h>
17364 #ifdef __MINGW64_VERSION_MAJOR
17365 #include <intrin.h>
17367 #include <pmmintrin.h>
17370 #include <pmmintrin.h>
17373 #error Assembler CPP flag not enabled
17385 if ac_fn_c_try_compile "$LINENO"; then :
17390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
17392 $as_echo "$have_gcc_sse3" >&6; }
17393 CFLAGS="$save_CFLAGS"
17395 if test x$have_gcc_sse3 = xyes; then
17396 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
17397 SUMMARY_math="${SUMMARY_math} sse3"
17401 ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
17402 if test "x$ac_cv_header_immintrin_h" = xyes; then :
17403 have_immintrin_h_hdr=yes
17405 have_immintrin_h_hdr=no
17409 if test x$have_immintrin_h_hdr = xyes; then
17411 $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
17415 # Check whether --enable-altivec was given.
17416 if test "${enable_altivec+set}" = set; then :
17417 enableval=$enable_altivec;
17422 if test x$enable_altivec = xyes; then
17423 save_CFLAGS="$CFLAGS"
17424 have_gcc_altivec=no
17425 have_altivec_h_hdr=no
17426 altivec_CFLAGS="-maltivec"
17427 CFLAGS="$save_CFLAGS $altivec_CFLAGS"
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
17430 $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
17431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17432 /* end confdefs.h. */
17434 #include <altivec.h>
17435 vector unsigned int vzero() {
17436 return vec_splat_u32(0);
17448 if ac_fn_c_try_compile "$LINENO"; then :
17450 have_gcc_altivec=yes
17451 have_altivec_h_hdr=yes
17454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17456 $as_echo "$have_gcc_altivec" >&6; }
17458 if test x$have_gcc_altivec = xno; then
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
17460 $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462 /* end confdefs.h. */
17464 vector unsigned int vzero() {
17465 return vec_splat_u32(0);
17477 if ac_fn_c_try_compile "$LINENO"; then :
17479 have_gcc_altivec=yes
17482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17484 $as_echo "$have_gcc_altivec" >&6; }
17487 if test x$have_gcc_altivec = xno; then
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
17489 $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
17490 altivec_CFLAGS="-faltivec"
17491 CFLAGS="$save_CFLAGS $altivec_CFLAGS"
17492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17493 /* end confdefs.h. */
17495 #include <altivec.h>
17496 vector unsigned int vzero() {
17497 return vec_splat_u32(0);
17509 if ac_fn_c_try_compile "$LINENO"; then :
17511 have_gcc_altivec=yes
17512 have_altivec_h_hdr=yes
17515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17517 $as_echo "$have_gcc_altivec" >&6; }
17520 if test x$have_gcc_altivec = xno; then
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
17522 $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
17523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h. */
17526 vector unsigned int vzero() {
17527 return vec_splat_u32(0);
17539 if ac_fn_c_try_compile "$LINENO"; then :
17541 have_gcc_altivec=yes
17544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17546 $as_echo "$have_gcc_altivec" >&6; }
17548 CFLAGS="$save_CFLAGS"
17550 if test x$have_gcc_altivec = xyes; then
17552 $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
17554 if test x$have_altivec_h_hdr = xyes; then
17556 $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
17559 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
17560 SUMMARY_math="${SUMMARY_math} altivec"
17567 # Check whether --enable-oss was given.
17568 if test "${enable_oss+set}" = set; then :
17569 enableval=$enable_oss;
17575 # OpenBSD "has" OSS, but it's not really for app use. They want you to
17576 # use sndio instead. So on there, we default to disabled. You can force
17577 # it on if you really want, though.
17578 if test x$enable_oss = xmaybe; then
17586 if test x$enable_audio = xyes -a x$enable_oss = xyes; then
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
17588 $as_echo_n "checking for OSS audio support... " >&6; }
17590 if test x$have_oss != xyes; then
17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17592 /* end confdefs.h. */
17594 #include <sys/soundcard.h>
17600 int arg = SNDCTL_DSP_SETFRAGMENT;
17606 if ac_fn_c_try_compile "$LINENO"; then :
17611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17613 if test x$have_oss != xyes; then
17614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h. */
17617 #include <soundcard.h>
17623 int arg = SNDCTL_DSP_SETFRAGMENT;
17629 if ac_fn_c_try_compile "$LINENO"; then :
17633 $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
17637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
17640 $as_echo "$have_oss" >&6; }
17641 if test x$have_oss = xyes; then
17642 SUMMARY_audio="${SUMMARY_audio} oss"
17644 $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
17646 SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
17649 # We may need to link with ossaudio emulation library
17651 *-*-openbsd*|*-*-netbsd*)
17652 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
17660 # Check whether --enable-alsa was given.
17661 if test "${enable_alsa+set}" = set; then :
17662 enableval=$enable_alsa;
17667 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
17668 alsa_save_CFLAGS="$CFLAGS"
17669 alsa_save_LDFLAGS="$LDFLAGS"
17670 alsa_save_LIBS="$LIBS"
17674 # Check whether --with-alsa-prefix was given.
17675 if test "${with_alsa_prefix+set}" = set; then :
17676 withval=$with_alsa_prefix; alsa_prefix="$withval"
17683 # Check whether --with-alsa-inc-prefix was given.
17684 if test "${with_alsa_inc_prefix+set}" = set; then :
17685 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
17691 # Check whether --enable-alsatest was given.
17692 if test "${enable_alsatest+set}" = set; then :
17693 enableval=$enable_alsatest; enable_alsatest="$enableval"
17695 enable_alsatest=yes
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
17700 $as_echo_n "checking for ALSA CFLAGS... " >&6; }
17701 if test "$alsa_inc_prefix" != "" ; then
17702 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17703 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
17706 $as_echo "$ALSA_CFLAGS" >&6; }
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
17709 $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
17710 if test "$alsa_prefix" != "" ; then
17711 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17712 LDFLAGS="$LDFLAGS $ALSA_LIBS"
17715 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17716 LIBS=`echo $LIBS | sed 's/-lm//'`
17717 LIBS=`echo $LIBS | sed 's/-ldl//'`
17718 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17719 LIBS=`echo $LIBS | sed 's/ //'`
17720 LIBS="$ALSA_LIBS $LIBS"
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
17722 $as_echo "$ALSA_LIBS" >&6; }
17724 min_alsa_version=1.0.11
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
17726 $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
17728 alsa_min_major_version=`echo $min_alsa_version | \
17729 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17730 alsa_min_minor_version=`echo $min_alsa_version | \
17731 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17732 alsa_min_micro_version=`echo $min_alsa_version | \
17733 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17737 ac_cpp='$CPP $CPPFLAGS'
17738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743 /* end confdefs.h. */
17745 #include <alsa/asoundlib.h>
17751 /* ensure backward compatibility */
17752 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17753 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17755 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17756 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17758 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17759 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17762 # if(SND_LIB_MAJOR > $alsa_min_major_version)
17765 # if(SND_LIB_MAJOR < $alsa_min_major_version)
17766 # error not present
17769 # if(SND_LIB_MINOR > $alsa_min_minor_version)
17772 # if(SND_LIB_MINOR < $alsa_min_minor_version)
17773 # error not present
17776 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17777 # error not present
17787 if ac_fn_c_try_compile "$LINENO"; then :
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
17789 $as_echo "found." >&6; }
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
17792 $as_echo "not present." >&6; }
17797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17799 ac_cpp='$CPP $CPPFLAGS'
17800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17805 if test "x$enable_alsatest" = "xyes"; then
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
17807 $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
17808 if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
17809 $as_echo_n "(cached) " >&6
17811 ac_check_lib_save_LIBS=$LIBS
17812 LIBS="-lasound $LIBS"
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814 /* end confdefs.h. */
17816 /* Override any GCC internal prototype to avoid an error.
17817 Use char because int might match the return type of a GCC
17818 builtin and then its argument prototype would still apply. */
17822 char snd_ctl_open ();
17826 return snd_ctl_open ();
17831 if ac_fn_c_try_link "$LINENO"; then :
17832 ac_cv_lib_asound_snd_ctl_open=yes
17834 ac_cv_lib_asound_snd_ctl_open=no
17836 rm -f core conftest.err conftest.$ac_objext \
17837 conftest$ac_exeext conftest.$ac_ext
17838 LIBS=$ac_check_lib_save_LIBS
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
17841 $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
17842 if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
17843 cat >>confdefs.h <<_ACEOF
17844 #define HAVE_LIBASOUND 1
17847 LIBS="-lasound $LIBS"
17857 if test "x$alsa_found" = "xyes" ; then
17859 LIBS=`echo $LIBS | sed 's/-lasound//g'`
17860 LIBS=`echo $LIBS | sed 's/ //'`
17861 LIBS="-lasound $LIBS"
17863 if test "x$alsa_found" = "xno" ; then
17865 CFLAGS="$alsa_save_CFLAGS"
17866 LDFLAGS="$alsa_save_LDFLAGS"
17867 LIBS="$alsa_save_LIBS"
17875 # Restore all flags from before the ALSA detection runs
17876 CFLAGS="$alsa_save_CFLAGS"
17877 LDFLAGS="$alsa_save_LDFLAGS"
17878 LIBS="$alsa_save_LIBS"
17879 if test x$have_alsa = xyes; then
17880 # Check whether --enable-alsa-shared was given.
17881 if test "${enable_alsa_shared+set}" = set; then :
17882 enableval=$enable_alsa_shared;
17884 enable_alsa_shared=yes
17887 alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
17890 $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
17892 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
17893 EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
17894 if test x$have_loadso != xyes && \
17895 test x$enable_alsa_shared = xyes; then
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
17897 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
17899 if test x$have_loadso = xyes && \
17900 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
17901 echo "-- dynamic libasound -> $alsa_lib"
17903 cat >>confdefs.h <<_ACEOF
17904 #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
17907 SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
17909 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
17910 SUMMARY_audio="${SUMMARY_audio} alsa"
17919 # Check whether --enable-jack was given.
17920 if test "${enable_jack+set}" = set; then :
17921 enableval=$enable_jack;
17926 if test x$enable_audio = xyes -a x$enable_jack = xyes; then
17929 JACK_REQUIRED_VERSION=0.125
17931 # Extract the first word of "pkg-config", so it can be a program name with args.
17932 set dummy pkg-config; ac_word=$2
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17934 $as_echo_n "checking for $ac_word... " >&6; }
17935 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17936 $as_echo_n "(cached) " >&6
17938 case $PKG_CONFIG in
17940 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17944 for as_dir in $PATH
17947 test -z "$as_dir" && as_dir=.
17948 for ac_exec_ext in '' $ac_executable_extensions; do
17949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17950 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17958 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17962 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17963 if test -n "$PKG_CONFIG"; then
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17965 $as_echo "$PKG_CONFIG" >&6; }
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17968 $as_echo "no" >&6; }
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
17973 $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
17974 if test x$PKG_CONFIG != xno; then
17975 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
17976 JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
17977 JACK_LIBS=`$PKG_CONFIG --libs jack`
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
17982 $as_echo "$audio_jack" >&6; }
17984 if test x$audio_jack = xyes; then
17985 # Check whether --enable-jack-shared was given.
17986 if test "${enable_jack_shared+set}" = set; then :
17987 enableval=$enable_jack_shared;
17989 enable_jack_shared=yes
17992 jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
17995 $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
17997 SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
17998 EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
17999 if test x$have_loadso != xyes && \
18000 test x$enable_jack_shared = xyes; then
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
18002 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
18004 if test x$have_loadso = xyes && \
18005 test x$enable_jack_shared = xyes && test x$jack_lib != x; then
18006 echo "-- dynamic libjack -> $jack_lib"
18008 cat >>confdefs.h <<_ACEOF
18009 #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
18012 SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
18015 # On Solaris, jack must be linked deferred explicitly
18016 # to prevent undefined symbol failures.
18018 JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
18019 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
18022 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
18023 SUMMARY_audio="${SUMMARY_audio} jack"
18032 # Check whether --enable-esd was given.
18033 if test "${enable_esd+set}" = set; then :
18034 enableval=$enable_esd;
18039 if test x$enable_audio = xyes -a x$enable_esd = xyes; then
18041 # Check whether --with-esd-prefix was given.
18042 if test "${with_esd_prefix+set}" = set; then :
18043 withval=$with_esd_prefix; esd_prefix="$withval"
18049 # Check whether --with-esd-exec-prefix was given.
18050 if test "${with_esd_exec_prefix+set}" = set; then :
18051 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
18056 # Check whether --enable-esdtest was given.
18057 if test "${enable_esdtest+set}" = set; then :
18058 enableval=$enable_esdtest;
18064 if test x$esd_exec_prefix != x ; then
18065 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
18066 if test x${ESD_CONFIG+set} != xset ; then
18067 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
18070 if test x$esd_prefix != x ; then
18071 esd_args="$esd_args --prefix=$esd_prefix"
18072 if test x${ESD_CONFIG+set} != xset ; then
18073 ESD_CONFIG=$esd_prefix/bin/esd-config
18077 # Extract the first word of "esd-config", so it can be a program name with args.
18078 set dummy esd-config; ac_word=$2
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18080 $as_echo_n "checking for $ac_word... " >&6; }
18081 if ${ac_cv_path_ESD_CONFIG+:} false; then :
18082 $as_echo_n "(cached) " >&6
18084 case $ESD_CONFIG in
18086 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
18089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18090 for as_dir in $PATH
18093 test -z "$as_dir" && as_dir=.
18094 for ac_exec_ext in '' $ac_executable_extensions; do
18095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18096 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18104 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
18108 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
18109 if test -n "$ESD_CONFIG"; then
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
18111 $as_echo "$ESD_CONFIG" >&6; }
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18114 $as_echo "no" >&6; }
18118 min_esd_version=0.2.8
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
18120 $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
18122 if test "$ESD_CONFIG" = "no" ; then
18125 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
18126 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
18128 esd_major_version=`$ESD_CONFIG $esd_args --version | \
18129 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18130 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
18131 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18132 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
18133 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18134 if test "x$enable_esdtest" = "xyes" ; then
18135 ac_save_CFLAGS="$CFLAGS"
18136 ac_save_LIBS="$LIBS"
18137 CFLAGS="$CFLAGS $ESD_CFLAGS"
18138 LIBS="$LIBS $ESD_LIBS"
18140 if test "$cross_compiling" = yes; then :
18141 echo $ac_n "cross compiling; assumed OK... $ac_c"
18143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144 /* end confdefs.h. */
18147 #include <stdlib.h>
18148 #include <string.h>
18152 my_strdup (char *str)
18158 new_str = malloc ((strlen (str) + 1) * sizeof(char));
18159 strcpy (new_str, str);
18169 int major, minor, micro;
18172 system ("touch conf.esdtest");
18174 /* HP/UX 9 (%@#!) writes to sscanf strings */
18175 tmp_version = my_strdup("$min_esd_version");
18176 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
18177 printf("%s, bad version string\n", "$min_esd_version");
18181 if (($esd_major_version > major) ||
18182 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
18183 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
18189 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
18190 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
18191 printf("*** best to upgrade to the required version.\n");
18192 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
18193 printf("*** to point to the correct copy of esd-config, and remove the file\n");
18194 printf("*** config.cache before re-running configure\n");
18201 if ac_fn_c_try_run "$LINENO"; then :
18206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18207 conftest.$ac_objext conftest.beam conftest.$ac_ext
18210 CFLAGS="$ac_save_CFLAGS"
18211 LIBS="$ac_save_LIBS"
18214 if test "x$no_esd" = x ; then
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18216 $as_echo "yes" >&6; }
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18220 $as_echo "no" >&6; }
18221 if test "$ESD_CONFIG" = "no" ; then
18222 echo "*** The esd-config script installed by ESD could not be found"
18223 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
18224 echo "*** your path, or set the ESD_CONFIG environment variable to the"
18225 echo "*** full path to esd-config."
18227 if test -f conf.esdtest ; then
18230 echo "*** Could not run ESD test program, checking why..."
18231 CFLAGS="$CFLAGS $ESD_CFLAGS"
18232 LIBS="$LIBS $ESD_LIBS"
18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234 /* end confdefs.h. */
18247 if ac_fn_c_try_link "$LINENO"; then :
18248 echo "*** The test program compiled, but did not run. This usually means"
18249 echo "*** that the run-time linker is not finding ESD or finding the wrong"
18250 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
18251 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18252 echo "*** to the installed location Also, make sure you have run ldconfig if that"
18253 echo "*** is required on your system"
18255 echo "*** If you have an old version installed, it is best to remove it, although"
18256 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18258 echo "*** The test program failed to compile or link. See the file config.log for the"
18259 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
18260 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
18261 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
18263 rm -f core conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18265 CFLAGS="$ac_save_CFLAGS"
18266 LIBS="$ac_save_LIBS"
18277 if test x$have_esd = xyes; then
18278 # Check whether --enable-esd-shared was given.
18279 if test "${enable_esd_shared+set}" = set; then :
18280 enableval=$enable_esd_shared;
18282 enable_esd_shared=yes
18285 esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18288 $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
18290 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
18291 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
18292 if test x$have_loadso != xyes && \
18293 test x$enable_esd_shared = xyes; then
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
18295 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
18297 if test x$have_loadso = xyes && \
18298 test x$enable_esd_shared = xyes && test x$esd_lib != x; then
18299 echo "-- dynamic libesd -> $esd_lib"
18301 cat >>confdefs.h <<_ACEOF
18302 #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
18305 SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
18307 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
18308 SUMMARY_audio="${SUMMARY_audio} esd"
18317 # Check whether --enable-pulseaudio was given.
18318 if test "${enable_pulseaudio+set}" = set; then :
18319 enableval=$enable_pulseaudio;
18321 enable_pulseaudio=yes
18324 if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
18325 audio_pulseaudio=no
18327 PULSEAUDIO_REQUIRED_VERSION=0.9
18329 # Extract the first word of "pkg-config", so it can be a program name with args.
18330 set dummy pkg-config; ac_word=$2
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18332 $as_echo_n "checking for $ac_word... " >&6; }
18333 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18334 $as_echo_n "(cached) " >&6
18336 case $PKG_CONFIG in
18338 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18342 for as_dir in $PATH
18345 test -z "$as_dir" && as_dir=.
18346 for ac_exec_ext in '' $ac_executable_extensions; do
18347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18348 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18356 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18360 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18361 if test -n "$PKG_CONFIG"; then
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18363 $as_echo "$PKG_CONFIG" >&6; }
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18366 $as_echo "no" >&6; }
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
18371 $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
18372 if test x$PKG_CONFIG != xno; then
18373 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
18374 PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
18375 PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
18376 audio_pulseaudio=yes
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
18380 $as_echo "$audio_pulseaudio" >&6; }
18382 if test x$audio_pulseaudio = xyes; then
18383 # Check whether --enable-pulseaudio-shared was given.
18384 if test "${enable_pulseaudio_shared+set}" = set; then :
18385 enableval=$enable_pulseaudio_shared;
18387 enable_pulseaudio_shared=yes
18390 pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18393 $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
18395 SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
18396 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
18397 if test x$have_loadso != xyes && \
18398 test x$enable_pulseaudio_shared = xyes; then
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
18400 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
18402 if test x$have_loadso = xyes && \
18403 test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
18404 echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
18406 cat >>confdefs.h <<_ACEOF
18407 #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
18410 SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
18413 # On Solaris, pulseaudio must be linked deferred explicitly
18414 # to prevent undefined symbol failures.
18416 PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
18417 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
18420 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
18421 SUMMARY_audio="${SUMMARY_audio} pulse"
18430 # Check whether --enable-arts was given.
18431 if test "${enable_arts+set}" = set; then :
18432 enableval=$enable_arts;
18437 if test x$enable_audio = xyes -a x$enable_arts = xyes; then
18438 # Extract the first word of "artsc-config", so it can be a program name with args.
18439 set dummy artsc-config; ac_word=$2
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18441 $as_echo_n "checking for $ac_word... " >&6; }
18442 if ${ac_cv_path_ARTSCONFIG+:} false; then :
18443 $as_echo_n "(cached) " >&6
18445 case $ARTSCONFIG in
18447 ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
18450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18451 for as_dir in $PATH
18454 test -z "$as_dir" && as_dir=.
18455 for ac_exec_ext in '' $ac_executable_extensions; do
18456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18457 ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
18458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18468 ARTSCONFIG=$ac_cv_path_ARTSCONFIG
18469 if test -n "$ARTSCONFIG"; then
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
18471 $as_echo "$ARTSCONFIG" >&6; }
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18474 $as_echo "no" >&6; }
18478 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
18479 : # arts isn't installed
18481 ARTS_CFLAGS=`$ARTSCONFIG --cflags`
18482 ARTS_LIBS=`$ARTSCONFIG --libs`
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
18484 $as_echo_n "checking for aRts development environment... " >&6; }
18486 save_CFLAGS="$CFLAGS"
18487 CFLAGS="$CFLAGS $ARTS_CFLAGS"
18488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h. */
18497 arts_stream_t stream;
18503 if ac_fn_c_try_compile "$LINENO"; then :
18508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18509 CFLAGS="$save_CFLAGS"
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
18511 $as_echo "$audio_arts" >&6; }
18512 if test x$audio_arts = xyes; then
18513 # Check whether --enable-arts-shared was given.
18514 if test "${enable_arts_shared+set}" = set; then :
18515 enableval=$enable_arts_shared;
18517 enable_arts_shared=yes
18520 arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18523 $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
18525 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
18526 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
18527 if test x$have_loadso != xyes && \
18528 test x$enable_arts_shared = xyes; then
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
18530 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
18532 if test x$have_loadso = xyes && \
18533 test x$enable_arts_shared = xyes && test x$arts_lib != x; then
18534 echo "-- dynamic libartsc -> $arts_lib"
18536 cat >>confdefs.h <<_ACEOF
18537 #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
18540 SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
18542 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
18543 SUMMARY_audio="${SUMMARY_audio} arts"
18553 # Check whether --enable-nas was given.
18554 if test "${enable_nas+set}" = set; then :
18555 enableval=$enable_nas;
18560 if test x$enable_audio = xyes -a x$enable_nas = xyes; then
18561 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
18562 if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
18568 $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
18569 if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
18570 $as_echo_n "(cached) " >&6
18572 ac_check_lib_save_LIBS=$LIBS
18573 LIBS="-laudio $LIBS"
18574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18575 /* end confdefs.h. */
18577 /* Override any GCC internal prototype to avoid an error.
18578 Use char because int might match the return type of a GCC
18579 builtin and then its argument prototype would still apply. */
18583 char AuOpenServer ();
18587 return AuOpenServer ();
18592 if ac_fn_c_try_link "$LINENO"; then :
18593 ac_cv_lib_audio_AuOpenServer=yes
18595 ac_cv_lib_audio_AuOpenServer=no
18597 rm -f core conftest.err conftest.$ac_objext \
18598 conftest$ac_exeext conftest.$ac_ext
18599 LIBS=$ac_check_lib_save_LIBS
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
18602 $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
18603 if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
18609 $as_echo_n "checking for NAS audio support... " >&6; }
18612 if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
18616 elif test -r /usr/X11R6/include/audio/audiolib.h; then
18618 NAS_CFLAGS="-I/usr/X11R6/include/"
18619 NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
18624 $as_echo "$have_nas" >&6; }
18626 if test x$have_nas = xyes; then
18627 # Check whether --enable-nas-shared was given.
18628 if test "${enable_nas_shared+set}" = set; then :
18629 enableval=$enable_nas_shared;
18631 enable_nas_shared=yes
18634 nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18636 if test x$have_loadso != xyes && \
18637 test x$enable_nas_shared = xyes; then
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
18639 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
18641 if test x$have_loadso = xyes && \
18642 test x$enable_nas_shared = xyes && test x$nas_lib != x; then
18643 echo "-- dynamic libaudio -> $nas_lib"
18645 cat >>confdefs.h <<_ACEOF
18646 #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
18649 SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
18651 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
18652 SUMMARY_audio="${SUMMARY_audio} nas"
18656 $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
18658 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
18659 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
18667 # Check whether --enable-sndio was given.
18668 if test "${enable_sndio+set}" = set; then :
18669 enableval=$enable_sndio;
18674 if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
18675 ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
18676 if test "x$ac_cv_header_sndio_h" = xyes; then :
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
18682 $as_echo_n "checking for sio_open in -lsndio... " >&6; }
18683 if ${ac_cv_lib_sndio_sio_open+:} false; then :
18684 $as_echo_n "(cached) " >&6
18686 ac_check_lib_save_LIBS=$LIBS
18687 LIBS="-lsndio $LIBS"
18688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18689 /* end confdefs.h. */
18691 /* Override any GCC internal prototype to avoid an error.
18692 Use char because int might match the return type of a GCC
18693 builtin and then its argument prototype would still apply. */
18701 return sio_open ();
18706 if ac_fn_c_try_link "$LINENO"; then :
18707 ac_cv_lib_sndio_sio_open=yes
18709 ac_cv_lib_sndio_sio_open=no
18711 rm -f core conftest.err conftest.$ac_objext \
18712 conftest$ac_exeext conftest.$ac_ext
18713 LIBS=$ac_check_lib_save_LIBS
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
18716 $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
18717 if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
18723 $as_echo_n "checking for sndio audio support... " >&6; }
18726 if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
18728 SNDIO_LIBS="-lsndio"
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
18732 $as_echo "$have_sndio" >&6; }
18734 if test x$have_sndio = xyes; then
18735 # Check whether --enable-sndio-shared was given.
18736 if test "${enable_sndio_shared+set}" = set; then :
18737 enableval=$enable_sndio_shared;
18739 enable_sndio_shared=yes
18742 sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18744 if test x$have_loadso != xyes && \
18745 test x$enable_sndio_shared = xyes; then
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
18747 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
18749 if test x$have_loadso = xyes && \
18750 test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
18751 echo "-- dynamic libsndio -> $sndio_lib"
18753 cat >>confdefs.h <<_ACEOF
18754 #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
18757 SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
18759 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
18760 SUMMARY_audio="${SUMMARY_audio} sndio"
18764 $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
18766 SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
18767 EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
18775 # Check whether --enable-fusionsound was given.
18776 if test "${enable_fusionsound+set}" = set; then :
18777 enableval=$enable_fusionsound;
18779 enable_fusionsound=no
18782 if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
18785 FUSIONSOUND_REQUIRED_VERSION=1.1.1
18787 # Extract the first word of "pkg-config", so it can be a program name with args.
18788 set dummy pkg-config; ac_word=$2
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18790 $as_echo_n "checking for $ac_word... " >&6; }
18791 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18792 $as_echo_n "(cached) " >&6
18794 case $PKG_CONFIG in
18796 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18800 for as_dir in $PATH
18803 test -z "$as_dir" && as_dir=.
18804 for ac_exec_ext in '' $ac_executable_extensions; do
18805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18806 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18814 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18818 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18819 if test -n "$PKG_CONFIG"; then
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18821 $as_echo "$PKG_CONFIG" >&6; }
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18824 $as_echo "no" >&6; }
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
18829 $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
18830 if test x$PKG_CONFIG != xno; then
18831 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
18832 FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
18833 FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
18838 $as_echo "$fusionsound" >&6; }
18840 if test x$fusionsound = xyes; then
18842 $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
18844 SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
18845 EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
18847 # Check whether --enable-fusionsound-shared was given.
18848 if test "${enable_fusionsound_shared+set}" = set; then :
18849 enableval=$enable_fusionsound_shared;
18851 enable_fusionsound_shared=yes
18854 fusionsound_shared=no
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
18856 $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
18857 if test x$have_loadso != xyes && \
18858 test x$enable_fusionsound_shared = xyes; then
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
18860 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
18862 if test x$have_loadso = xyes && \
18863 test x$enable_fusionsound_shared = xyes; then
18865 cat >>confdefs.h <<_ACEOF
18866 #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
18869 fusionsound_shared=yes
18870 SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
18872 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
18873 SUMMARY_audio="${SUMMARY_audio} fusionsound"
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
18876 $as_echo "$fusionsound_shared" >&6; }
18885 # Check whether --enable-diskaudio was given.
18886 if test "${enable_diskaudio+set}" = set; then :
18887 enableval=$enable_diskaudio;
18889 enable_diskaudio=yes
18892 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
18894 $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
18896 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
18897 SUMMARY_audio="${SUMMARY_audio} disk"
18903 # Check whether --enable-dummyaudio was given.
18904 if test "${enable_dummyaudio+set}" = set; then :
18905 enableval=$enable_dummyaudio;
18907 enable_dummyaudio=yes
18910 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
18912 $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
18914 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
18915 SUMMARY_audio="${SUMMARY_audio} dummy"
18919 CheckLibSampleRate()
18921 # Check whether --enable-libsamplerate was given.
18922 if test "${enable_libsamplerate+set}" = set; then :
18923 enableval=$enable_libsamplerate;
18925 enable_libsamplerate=yes
18928 if test x$enable_libsamplerate = xyes; then
18929 ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
18930 if test "x$ac_cv_header_samplerate_h" = xyes; then :
18931 have_samplerate_h_hdr=yes
18933 have_samplerate_h_hdr=no
18937 if test x$have_samplerate_h_hdr = xyes; then
18939 $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
18942 # Check whether --enable-libsamplerate-shared was given.
18943 if test "${enable_libsamplerate_shared+set}" = set; then :
18944 enableval=$enable_libsamplerate_shared;
18946 enable_libsamplerate_shared=yes
18950 samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
18952 if test x$have_loadso != xyes && \
18953 test x$enable_libsamplerate_shared = xyes; then
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
18955 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
18957 if test x$have_loadso = xyes && \
18958 test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
18959 echo "-- dynamic libsamplerate -> $samplerate_lib"
18961 cat >>confdefs.h <<_ACEOF
18962 #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
18966 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
18972 CheckVisibilityHidden()
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
18975 $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
18976 have_gcc_fvisibility=no
18978 visibility_CFLAGS="-fvisibility=hidden"
18979 save_CFLAGS="$CFLAGS"
18980 CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
18981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18982 /* end confdefs.h. */
18984 #if !defined(__GNUC__) || __GNUC__ < 4
18985 #error SDL only uses visibility attributes in GCC 4 or newer
18997 if ac_fn_c_try_compile "$LINENO"; then :
18999 have_gcc_fvisibility=yes
19002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
19004 $as_echo "$have_gcc_fvisibility" >&6; }
19005 CFLAGS="$save_CFLAGS"
19007 if test x$have_gcc_fvisibility = xyes; then
19008 EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
19012 CheckStackBoundary()
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
19015 $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
19016 have_gcc_preferred_stack_boundary=no
19018 save_CFLAGS="$CFLAGS"
19019 CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
19020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021 /* end confdefs.h. */
19034 if ac_fn_c_try_compile "$LINENO"; then :
19036 have_gcc_preferred_stack_boundary=yes
19039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
19041 $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
19042 CFLAGS="$save_CFLAGS"
19044 if test x$have_gcc_preferred_stack_boundary = xyes; then
19045 EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
19049 CheckDeclarationAfterStatement()
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
19052 $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
19053 have_gcc_declaration_after_statement=no
19055 save_CFLAGS="$CFLAGS"
19056 CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
19057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19058 /* end confdefs.h. */
19071 if ac_fn_c_try_compile "$LINENO"; then :
19073 have_gcc_declaration_after_statement=yes
19076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
19078 $as_echo "$have_gcc_declaration_after_statement" >&6; }
19079 CFLAGS="$save_CFLAGS"
19081 if test x$have_gcc_declaration_after_statement = xyes; then
19082 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
19089 $as_echo_n "checking for GCC -Wall option... " >&6; }
19092 save_CFLAGS="$CFLAGS"
19093 CFLAGS="$save_CFLAGS -Wall"
19094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19095 /* end confdefs.h. */
19108 if ac_fn_c_try_compile "$LINENO"; then :
19113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
19115 $as_echo "$have_gcc_Wall" >&6; }
19116 CFLAGS="$save_CFLAGS"
19118 if test x$have_gcc_Wall = xyes; then
19119 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
19122 $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
19123 need_gcc_Wno_multichar=no
19126 need_gcc_Wno_multichar=yes
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
19130 $as_echo "$need_gcc_Wno_multichar" >&6; }
19131 if test x$need_gcc_Wno_multichar = xyes; then
19132 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
19139 # Check whether --enable-video-wayland was given.
19140 if test "${enable_video_wayland+set}" = set; then :
19141 enableval=$enable_video_wayland;
19143 enable_video_wayland=yes
19147 # Check whether --enable-video-wayland-qt-touch was given.
19148 if test "${enable_video_wayland_qt_touch+set}" = set; then :
19149 enableval=$enable_video_wayland_qt_touch;
19151 enable_video_wayland_qt_touch=yes
19155 if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
19156 # Extract the first word of "pkg-config", so it can be a program name with args.
19157 set dummy pkg-config; ac_word=$2
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19159 $as_echo_n "checking for $ac_word... " >&6; }
19160 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19161 $as_echo_n "(cached) " >&6
19163 case $PKG_CONFIG in
19165 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19169 for as_dir in $PATH
19172 test -z "$as_dir" && as_dir=.
19173 for ac_exec_ext in '' $ac_executable_extensions; do
19174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19175 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19183 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19187 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19188 if test -n "$PKG_CONFIG"; then
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19190 $as_echo "$PKG_CONFIG" >&6; }
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19193 $as_echo "no" >&6; }
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
19198 $as_echo_n "checking for Wayland support... " >&6; }
19200 if test x$PKG_CONFIG != xno && \
19201 test x$video_opengl_egl = xyes && \
19202 test x$video_opengles_v2 = xyes; then
19203 if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon xdg-shell-client text-client tizen-extension-client; then
19204 WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon xdg-shell-client text-client tizen-extension-client`
19205 WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon xdg-shell-client text-client tizen-extension-client`
19206 WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
19207 WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
19208 WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
19213 $as_echo "$video_wayland" >&6; }
19215 if test x$video_wayland = xyes; then
19217 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
19219 if test x$enable_video_wayland_qt_touch = xyes; then
19221 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
19225 WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1 xdg-shell-unstable-v6"
19227 SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
19228 EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
19229 # Check whether --enable-wayland-shared was given.
19230 if test "${enable_wayland_shared+set}" = set; then :
19231 enableval=$enable_wayland_shared;
19233 enable_wayland_shared=maybe
19239 wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19240 wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19241 if test x$wayland_egl_lib = x; then
19242 wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19244 wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19245 xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19246 xdg_shell_client_lib=`find_lib "libxdg-shell-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19247 text_client_lib=`find_lib "libtext-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19248 tizen_extension_client_lib=`find_lib "libtizen-extension-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19252 if test x$enable_wayland_shared = xmaybe; then
19253 enable_wayland_shared=yes
19255 if test x$have_loadso != xyes && \
19256 test x$enable_wayland_shared = xyes; then
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
19258 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
19259 enable_wayland_shared=no
19261 if test x$have_loadso = xyes && \
19262 test x$enable_wayland_shared = xyes && \
19263 test x$wayland_client_lib != x && \
19264 test x$wayland_egl_lib != x && \
19265 test x$wayland_cursor_lib != x && \
19266 test x$xdg_shell_client_lib != x && \
19267 test x$text_client_lib != x && \
19268 test x$tizen_extension_client_lib != x && \
19269 test x$xkbcommon_lib != x; then
19270 echo "-- dynamic libwayland-client -> $wayland_client_lib"
19271 echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
19272 echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
19273 echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
19274 echo "-- dynamic libxdg_shell_client -> $xdg_shell_client_lib"
19275 echo "-- dynamic libtext_client -> $xtext_client_lib"
19276 echo "-- dynamic libtizen_extension_client -> $xtizen_extension_client_lib"
19278 cat >>confdefs.h <<_ACEOF
19279 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
19283 cat >>confdefs.h <<_ACEOF
19284 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
19288 cat >>confdefs.h <<_ACEOF
19289 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
19293 cat >>confdefs.h <<_ACEOF
19294 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
19298 cat >>confdefs.h <<_ACEOF
19299 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XDGSHELLCLIENT "$xdg_shell_client_lib"
19303 cat >>confdefs.h <<_ACEOF
19304 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_TEXTCLIENT "$text_client_lib"
19308 cat >>confdefs.h <<_ACEOF
19309 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_TIZENEXTENSIONCLIENT "$tizen_extension_client_lib"
19312 SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
19314 enable_wayland_shared=no
19315 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
19316 SUMMARY_video="${SUMMARY_video} wayland"
19325 # Check whether --enable-video-tizen was given.
19326 if test "${enable_video_tizen+set}" = set; then :
19327 enableval=$enable_video_tizen;
19329 enable_video_tizen=yes
19333 if test x$enable_video = xyes -a x$enable_video_tizen = xyes; then
19334 # Extract the first word of "pkg-config", so it can be a program name with args.
19335 set dummy pkg-config; ac_word=$2
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19337 $as_echo_n "checking for $ac_word... " >&6; }
19338 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19339 $as_echo_n "(cached) " >&6
19341 case $PKG_CONFIG in
19343 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19347 for as_dir in $PATH
19350 test -z "$as_dir" && as_dir=.
19351 for ac_exec_ext in '' $ac_executable_extensions; do
19352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19353 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19361 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19365 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19366 if test -n "$PKG_CONFIG"; then
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19368 $as_echo "$PKG_CONFIG" >&6; }
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19371 $as_echo "no" >&6; }
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tizen support" >&5
19376 $as_echo_n "checking for Tizen support... " >&6; }
19378 if test x$PKG_CONFIG != xno && \
19379 test x$video_opengl_egl = xyes && \
19380 test x$video_opengles_v2 = xyes; then
19381 if $PKG_CONFIG --exists wayland-client wayland-egl wayland-egl-tizen ecore ecore-wl2 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
19382 TIZEN_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-egl-tizen ecore ecore-wl2 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`
19383 TIZEN_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-egl-tizen ecore ecore-wl2 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`
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_tizen" >&5
19389 $as_echo "$video_tizen" >&6; }
19391 if test x$video_tizen = xyes; then
19393 $as_echo "#define SDL_VIDEO_DRIVER_TIZEN 1" >>confdefs.h
19395 SOURCES="$SOURCES $srcdir/src/video/tizen/*.c"
19396 SOURCES="$SOURCES $srcdir/src/core/tizen/*.c"
19397 SDLMAIN_SOURCES="$srcdir/src/main/tizen/*.c"
19399 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
19400 SDL_LIBS="-lSDL2main $SDL_LIBS"
19402 EXTRA_CFLAGS="$EXTRA_CFLAGS $TIZEN_CFLAGS -DTIZEN"
19403 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $TIZEN_LIBS"
19404 SUMMARY_video="${SUMMARY_video} tizen"
19409 if test x$enable_joystick = xyes; then
19410 SUMMARY="${SUMMARY}SDL2 tizen joystick in:\n"
19412 $as_echo "#define SDL_JOYSTICK_TIZEN 1" >>confdefs.h
19414 SOURCES="$SOURCES $srcdir/src/joystick/tizen/*.c"
19421 # Check whether --enable-video-mir was given.
19422 if test "${enable_video_mir+set}" = set; then :
19423 enableval=$enable_video_mir;
19425 enable_video_mir=yes
19429 if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
19430 # Extract the first word of "pkg-config", so it can be a program name with args.
19431 set dummy pkg-config; ac_word=$2
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19433 $as_echo_n "checking for $ac_word... " >&6; }
19434 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19435 $as_echo_n "(cached) " >&6
19437 case $PKG_CONFIG in
19439 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19443 for as_dir in $PATH
19446 test -z "$as_dir" && as_dir=.
19447 for ac_exec_ext in '' $ac_executable_extensions; do
19448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19449 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19457 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19461 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19462 if test -n "$PKG_CONFIG"; then
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19464 $as_echo "$PKG_CONFIG" >&6; }
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19467 $as_echo "no" >&6; }
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
19472 $as_echo_n "checking for Mir support... " >&6; }
19474 if test x$PKG_CONFIG != xno; then
19475 if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
19476 MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
19477 MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
19478 save_CFLAGS="$CFLAGS"
19479 CFLAGS="$save_CFLAGS $MIR_CFLAGS"
19481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19482 /* end confdefs.h. */
19484 #include <mir_toolkit/mir_client_library.h>
19490 MirWindowAttrib attrib = mir_window_attrib_state
19496 if ac_fn_c_try_compile "$LINENO"; then :
19501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19502 CFLAGS="$save_CFLAGS"
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
19506 $as_echo "$video_mir" >&6; }
19508 if test x$video_mir = xyes; then
19510 $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
19512 SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
19513 EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
19514 # Check whether --enable-mir-shared was given.
19515 if test "${enable_mir_shared+set}" = set; then :
19516 enableval=$enable_mir_shared;
19518 enable_mir_shared=maybe
19524 mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19525 xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19529 if test x$enable_mir_shared = xmaybe; then
19530 enable_mir_shared=yes
19532 if test x$have_loadso != xyes && \
19533 test x$enable_mir_shared = xyes; then
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
19535 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
19536 enable_mir_shared=no
19538 if test x$have_loadso = xyes && \
19539 test x$enable_mir_shared = xyes && \
19540 test x$mirclient_lib != x && \
19541 test x$xkbcommon_lib != x; then
19542 echo "-- dynamic libmirclient -> $mirclient_lib"
19543 echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
19545 cat >>confdefs.h <<_ACEOF
19546 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
19550 cat >>confdefs.h <<_ACEOF
19551 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
19554 SUMMARY_video="${SUMMARY_video} mir(dynamic)"
19556 enable_mir_shared=no
19557 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
19558 SUMMARY_video="${SUMMARY_video} mir"
19565 CheckNativeClient()
19567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19568 /* end confdefs.h. */
19570 #if !defined(__native_client__)
19583 if ac_fn_c_try_compile "$LINENO"; then :
19586 $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
19589 $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
19592 $as_echo "#define HAVE_POW 1" >>confdefs.h
19595 $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
19598 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
19601 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
19604 SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
19606 SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
19607 SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
19608 SUMMARY_audio="${SUMMARY_audio} nacl"
19609 SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
19610 SUMMARY_video="${SUMMARY_video} nacl opengles2"
19613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19619 # Check whether --enable-video-rpi was given.
19620 if test "${enable_video_rpi+set}" = set; then :
19621 enableval=$enable_video_rpi;
19623 enable_video_rpi=yes
19626 if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
19627 # Extract the first word of "pkg-config", so it can be a program name with args.
19628 set dummy pkg-config; ac_word=$2
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19630 $as_echo_n "checking for $ac_word... " >&6; }
19631 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19632 $as_echo_n "(cached) " >&6
19634 case $PKG_CONFIG in
19636 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19640 for as_dir in $PATH
19643 test -z "$as_dir" && as_dir=.
19644 for ac_exec_ext in '' $ac_executable_extensions; do
19645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19646 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19654 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19658 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19659 if test -n "$PKG_CONFIG"; then
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19661 $as_echo "$PKG_CONFIG" >&6; }
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19664 $as_echo "no" >&6; }
19668 if test x$PKG_CONFIG != xno && $PKG_CONFIG --exists bcm_host; then
19669 RPI_CFLAGS=`$PKG_CONFIG --cflags bcm_host brcmegl`
19670 RPI_LDFLAGS=`$PKG_CONFIG --libs bcm_host brcmegl`
19671 elif test x$ARCH = xnetbsd; then
19672 RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
19673 RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
19675 RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
19676 RPI_LDFLAGS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
19679 # Save the original compiler flags and libraries
19680 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
19682 # Add the Raspberry Pi compiler flags and libraries
19683 CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
19686 $as_echo_n "checking for Raspberry Pi... " >&6; }
19688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h. */
19691 #include <bcm_host.h>
19703 if ac_fn_c_try_link "$LINENO"; then :
19708 rm -f core conftest.err conftest.$ac_objext \
19709 conftest$ac_exeext conftest.$ac_ext
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
19711 $as_echo "$have_video_rpi" >&6; }
19713 # Restore the compiler flags and libraries
19714 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
19716 if test x$have_video_rpi = xyes; then
19717 CFLAGS="$CFLAGS $RPI_CFLAGS"
19718 SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
19719 EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
19720 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS"
19721 SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
19723 $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
19725 SUMMARY_video="${SUMMARY_video} rpi"
19732 # Check whether --enable-video-x11 was given.
19733 if test "${enable_video_x11+set}" = set; then :
19734 enableval=$enable_video_x11;
19736 enable_video_x11=yes
19739 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
19742 # This isn't necessary for X11, but fixes GLX detection
19743 if test "x$x_includes" = xNONE && \
19744 test "x$x_libraries" = xNONE && \
19745 test -d /usr/X11R6/include && \
19746 test -d /usr/X11R6/lib; then
19747 x_includes="/usr/X11R6/include"
19748 x_libraries="/usr/X11R6/lib"
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19753 $as_echo_n "checking for X... " >&6; }
19756 # Check whether --with-x was given.
19757 if test "${with_x+set}" = set; then :
19761 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19762 if test "x$with_x" = xno; then
19763 # The user explicitly disabled X.
19766 case $x_includes,$x_libraries in #(
19767 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
19768 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
19769 $as_echo_n "(cached) " >&6
19771 # One or both of the vars are not set, and there is no cached value.
19772 ac_x_includes=no ac_x_libraries=no
19773 rm -f -r conftest.dir
19774 if mkdir conftest.dir; then
19776 cat >Imakefile <<'_ACEOF'
19778 @echo incroot='${INCROOT}'
19780 @echo usrlibdir='${USRLIBDIR}'
19782 @echo libdir='${LIBDIR}'
19784 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19785 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
19786 for ac_var in incroot usrlibdir libdir; do
19787 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19789 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19790 for ac_extension in a so sl dylib la dll; do
19791 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19792 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19793 ac_im_usrlibdir=$ac_im_libdir; break
19796 # Screen out bogus values from the imake configuration. They are
19797 # bogus both because they are the default anyway, and because
19798 # using them would break gcc on systems where it needs fixed includes.
19799 case $ac_im_incroot in
19800 /usr/include) ac_x_includes= ;;
19801 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19803 case $ac_im_usrlibdir in
19804 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19805 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19809 rm -f -r conftest.dir
19812 # Standard set of common directories for X headers.
19813 # Check X11 before X11Rn because it is often a symlink to the current release.
19827 /usr/local/X11/include
19828 /usr/local/X11R7/include
19829 /usr/local/X11R6/include
19830 /usr/local/X11R5/include
19831 /usr/local/X11R4/include
19833 /usr/local/include/X11
19834 /usr/local/include/X11R7
19835 /usr/local/include/X11R6
19836 /usr/local/include/X11R5
19837 /usr/local/include/X11R4
19841 /usr/XFree86/include/X11
19845 /usr/unsupported/include
19846 /usr/athena/include
19847 /usr/local/x11r5/include
19848 /usr/lpp/Xamples/include
19850 /usr/openwin/include
19851 /usr/openwin/share/include'
19853 if test "$ac_x_includes" = no; then
19854 # Guess where to find include files, by looking for Xlib.h.
19855 # First, try using that file with no special directory specified.
19856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19857 /* end confdefs.h. */
19858 #include <X11/Xlib.h>
19860 if ac_fn_c_try_cpp "$LINENO"; then :
19861 # We can compile using X headers with no special include directory.
19864 for ac_dir in $ac_x_header_dirs; do
19865 if test -r "$ac_dir/X11/Xlib.h"; then
19866 ac_x_includes=$ac_dir
19871 rm -f conftest.err conftest.i conftest.$ac_ext
19872 fi # $ac_x_includes = no
19874 if test "$ac_x_libraries" = no; then
19875 # Check for the libraries.
19876 # See if we find them without any special options.
19877 # Don't add to $LIBS permanently.
19880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19881 /* end confdefs.h. */
19882 #include <X11/Xlib.h>
19891 if ac_fn_c_try_link "$LINENO"; then :
19893 # We can link X programs with no special library path.
19897 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19899 # Don't even attempt the hair of trying to link an X program!
19900 for ac_extension in a so sl dylib la dll; do
19901 if test -r "$ac_dir/libX11.$ac_extension"; then
19902 ac_x_libraries=$ac_dir
19908 rm -f core conftest.err conftest.$ac_objext \
19909 conftest$ac_exeext conftest.$ac_ext
19910 fi # $ac_x_libraries = no
19912 case $ac_x_includes,$ac_x_libraries in #(
19913 no,* | *,no | *\'*)
19914 # Didn't find X, or a directory has "'" in its name.
19915 ac_cv_have_x="have_x=no";; #(
19917 # Record where we found X for the cache.
19918 ac_cv_have_x="have_x=yes\
19919 ac_x_includes='$ac_x_includes'\
19920 ac_x_libraries='$ac_x_libraries'"
19926 eval "$ac_cv_have_x"
19929 if test "$have_x" != yes; then
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19931 $as_echo "$have_x" >&6; }
19934 # If each of the values was on the command line, it overrides each guess.
19935 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19936 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19937 # Update the cache value to reflect the command line values.
19938 ac_cv_have_x="have_x=yes\
19939 ac_x_includes='$x_includes'\
19940 ac_x_libraries='$x_libraries'"
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19942 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19945 if test "$no_x" = yes; then
19946 # Not all programs may use this symbol, but it does not hurt to define it.
19948 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19950 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19952 if test -n "$x_includes"; then
19953 X_CFLAGS="$X_CFLAGS -I$x_includes"
19956 # It would also be nice to do this for all -L options, not just this one.
19957 if test -n "$x_libraries"; then
19958 X_LIBS="$X_LIBS -L$x_libraries"
19959 # For Solaris; some versions of Sun CC require a space after -R and
19960 # others require no space. Words are not sufficient . . . .
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19962 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19963 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19964 ac_xsave_c_werror_flag=$ac_c_werror_flag
19965 ac_c_werror_flag=yes
19966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19967 /* end confdefs.h. */
19977 if ac_fn_c_try_link "$LINENO"; then :
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19979 $as_echo "no" >&6; }
19980 X_LIBS="$X_LIBS -R$x_libraries"
19982 LIBS="$ac_xsave_LIBS -R $x_libraries"
19983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19984 /* end confdefs.h. */
19994 if ac_fn_c_try_link "$LINENO"; then :
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19996 $as_echo "yes" >&6; }
19997 X_LIBS="$X_LIBS -R $x_libraries"
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20000 $as_echo "neither works" >&6; }
20002 rm -f core conftest.err conftest.$ac_objext \
20003 conftest$ac_exeext conftest.$ac_ext
20005 rm -f core conftest.err conftest.$ac_objext \
20006 conftest$ac_exeext conftest.$ac_ext
20007 ac_c_werror_flag=$ac_xsave_c_werror_flag
20008 LIBS=$ac_xsave_LIBS
20011 # Check for system-dependent libraries X programs must link with.
20012 # Do this before checking for the system-independent R6 libraries
20013 # (-lICE), since we may need -lsocket or whatever for X linking.
20015 if test "$ISC" = yes; then
20016 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20018 # Martyn Johnson says this is needed for Ultrix, if the X
20019 # libraries were built with DECnet support. And Karl Berry says
20020 # the Alpha needs dnet_stub (dnet does not exist).
20021 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20023 /* end confdefs.h. */
20025 /* Override any GCC internal prototype to avoid an error.
20026 Use char because int might match the return type of a GCC
20027 builtin and then its argument prototype would still apply. */
20031 char XOpenDisplay ();
20035 return XOpenDisplay ();
20040 if ac_fn_c_try_link "$LINENO"; then :
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20044 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20045 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
20046 $as_echo_n "(cached) " >&6
20048 ac_check_lib_save_LIBS=$LIBS
20049 LIBS="-ldnet $LIBS"
20050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20051 /* end confdefs.h. */
20053 /* Override any GCC internal prototype to avoid an error.
20054 Use char because int might match the return type of a GCC
20055 builtin and then its argument prototype would still apply. */
20063 return dnet_ntoa ();
20068 if ac_fn_c_try_link "$LINENO"; then :
20069 ac_cv_lib_dnet_dnet_ntoa=yes
20071 ac_cv_lib_dnet_dnet_ntoa=no
20073 rm -f core conftest.err conftest.$ac_objext \
20074 conftest$ac_exeext conftest.$ac_ext
20075 LIBS=$ac_check_lib_save_LIBS
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20078 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20079 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
20080 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20083 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20085 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20086 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
20087 $as_echo_n "(cached) " >&6
20089 ac_check_lib_save_LIBS=$LIBS
20090 LIBS="-ldnet_stub $LIBS"
20091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20092 /* end confdefs.h. */
20094 /* Override any GCC internal prototype to avoid an error.
20095 Use char because int might match the return type of a GCC
20096 builtin and then its argument prototype would still apply. */
20104 return dnet_ntoa ();
20109 if ac_fn_c_try_link "$LINENO"; then :
20110 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20112 ac_cv_lib_dnet_stub_dnet_ntoa=no
20114 rm -f core conftest.err conftest.$ac_objext \
20115 conftest$ac_exeext conftest.$ac_ext
20116 LIBS=$ac_check_lib_save_LIBS
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20119 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20120 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
20121 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20126 rm -f core conftest.err conftest.$ac_objext \
20127 conftest$ac_exeext conftest.$ac_ext
20128 LIBS="$ac_xsave_LIBS"
20130 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20131 # to get the SysV transport functions.
20132 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20134 # The nsl library prevents programs from opening the X display
20135 # on Irix 5.2, according to T.E. Dickey.
20136 # The functions gethostbyname, getservbyname, and inet_addr are
20137 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20138 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20139 if test "x$ac_cv_func_gethostbyname" = xyes; then :
20143 if test $ac_cv_func_gethostbyname = no; then
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20145 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20146 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
20147 $as_echo_n "(cached) " >&6
20149 ac_check_lib_save_LIBS=$LIBS
20151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20152 /* end confdefs.h. */
20154 /* Override any GCC internal prototype to avoid an error.
20155 Use char because int might match the return type of a GCC
20156 builtin and then its argument prototype would still apply. */
20160 char gethostbyname ();
20164 return gethostbyname ();
20169 if ac_fn_c_try_link "$LINENO"; then :
20170 ac_cv_lib_nsl_gethostbyname=yes
20172 ac_cv_lib_nsl_gethostbyname=no
20174 rm -f core conftest.err conftest.$ac_objext \
20175 conftest$ac_exeext conftest.$ac_ext
20176 LIBS=$ac_check_lib_save_LIBS
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20179 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20180 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
20181 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20184 if test $ac_cv_lib_nsl_gethostbyname = no; then
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20186 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20187 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
20188 $as_echo_n "(cached) " >&6
20190 ac_check_lib_save_LIBS=$LIBS
20192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20193 /* end confdefs.h. */
20195 /* Override any GCC internal prototype to avoid an error.
20196 Use char because int might match the return type of a GCC
20197 builtin and then its argument prototype would still apply. */
20201 char gethostbyname ();
20205 return gethostbyname ();
20210 if ac_fn_c_try_link "$LINENO"; then :
20211 ac_cv_lib_bsd_gethostbyname=yes
20213 ac_cv_lib_bsd_gethostbyname=no
20215 rm -f core conftest.err conftest.$ac_objext \
20216 conftest$ac_exeext conftest.$ac_ext
20217 LIBS=$ac_check_lib_save_LIBS
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20220 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20221 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
20222 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20228 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20229 # socket/setsockopt and other routines are undefined under SCO ODT
20230 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20231 # on later versions), says Simon Leinen: it contains gethostby*
20232 # variants that don't use the name server (or something). -lsocket
20233 # must be given before -lnsl if both are needed. We assume that
20234 # if connect needs -lnsl, so does gethostbyname.
20235 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20236 if test "x$ac_cv_func_connect" = xyes; then :
20240 if test $ac_cv_func_connect = no; then
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20242 $as_echo_n "checking for connect in -lsocket... " >&6; }
20243 if ${ac_cv_lib_socket_connect+:} false; then :
20244 $as_echo_n "(cached) " >&6
20246 ac_check_lib_save_LIBS=$LIBS
20247 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20249 /* end confdefs.h. */
20251 /* Override any GCC internal prototype to avoid an error.
20252 Use char because int might match the return type of a GCC
20253 builtin and then its argument prototype would still apply. */
20266 if ac_fn_c_try_link "$LINENO"; then :
20267 ac_cv_lib_socket_connect=yes
20269 ac_cv_lib_socket_connect=no
20271 rm -f core conftest.err conftest.$ac_objext \
20272 conftest$ac_exeext conftest.$ac_ext
20273 LIBS=$ac_check_lib_save_LIBS
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20276 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20277 if test "x$ac_cv_lib_socket_connect" = xyes; then :
20278 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20283 # Guillermo Gomez says -lposix is necessary on A/UX.
20284 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20285 if test "x$ac_cv_func_remove" = xyes; then :
20289 if test $ac_cv_func_remove = no; then
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20291 $as_echo_n "checking for remove in -lposix... " >&6; }
20292 if ${ac_cv_lib_posix_remove+:} false; then :
20293 $as_echo_n "(cached) " >&6
20295 ac_check_lib_save_LIBS=$LIBS
20296 LIBS="-lposix $LIBS"
20297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20298 /* end confdefs.h. */
20300 /* Override any GCC internal prototype to avoid an error.
20301 Use char because int might match the return type of a GCC
20302 builtin and then its argument prototype would still apply. */
20315 if ac_fn_c_try_link "$LINENO"; then :
20316 ac_cv_lib_posix_remove=yes
20318 ac_cv_lib_posix_remove=no
20320 rm -f core conftest.err conftest.$ac_objext \
20321 conftest$ac_exeext conftest.$ac_ext
20322 LIBS=$ac_check_lib_save_LIBS
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20325 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20326 if test "x$ac_cv_lib_posix_remove" = xyes; then :
20327 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20332 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20333 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20334 if test "x$ac_cv_func_shmat" = xyes; then :
20338 if test $ac_cv_func_shmat = no; then
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20340 $as_echo_n "checking for shmat in -lipc... " >&6; }
20341 if ${ac_cv_lib_ipc_shmat+:} false; then :
20342 $as_echo_n "(cached) " >&6
20344 ac_check_lib_save_LIBS=$LIBS
20346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20347 /* end confdefs.h. */
20349 /* Override any GCC internal prototype to avoid an error.
20350 Use char because int might match the return type of a GCC
20351 builtin and then its argument prototype would still apply. */
20364 if ac_fn_c_try_link "$LINENO"; then :
20365 ac_cv_lib_ipc_shmat=yes
20367 ac_cv_lib_ipc_shmat=no
20369 rm -f core conftest.err conftest.$ac_objext \
20370 conftest$ac_exeext conftest.$ac_ext
20371 LIBS=$ac_check_lib_save_LIBS
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20374 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20375 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
20376 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20382 # Check for libraries that X11R6 Xt/Xaw programs need.
20383 ac_save_LDFLAGS=$LDFLAGS
20384 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20385 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20386 # check for ICE first), but we must link in the order -lSM -lICE or
20387 # we get undefined symbols. So assume we have SM if we have ICE.
20388 # These have to be linked with before -lX11, unlike the other
20389 # libraries we check for below, so use a different variable.
20390 # John Interrante, Karl Berry
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20392 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20393 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
20394 $as_echo_n "(cached) " >&6
20396 ac_check_lib_save_LIBS=$LIBS
20397 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20399 /* end confdefs.h. */
20401 /* Override any GCC internal prototype to avoid an error.
20402 Use char because int might match the return type of a GCC
20403 builtin and then its argument prototype would still apply. */
20407 char IceConnectionNumber ();
20411 return IceConnectionNumber ();
20416 if ac_fn_c_try_link "$LINENO"; then :
20417 ac_cv_lib_ICE_IceConnectionNumber=yes
20419 ac_cv_lib_ICE_IceConnectionNumber=no
20421 rm -f core conftest.err conftest.$ac_objext \
20422 conftest$ac_exeext conftest.$ac_ext
20423 LIBS=$ac_check_lib_save_LIBS
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20426 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20427 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
20428 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20431 LDFLAGS=$ac_save_LDFLAGS
20435 if test x$have_x = xyes; then
20436 # Check whether --enable-x11-shared was given.
20437 if test "${enable_x11_shared+set}" = set; then :
20438 enableval=$enable_x11_shared;
20440 enable_x11_shared=maybe
20446 x11_lib='/usr/X11R6/lib/libX11.6.dylib'
20447 x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
20448 xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
20449 xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
20450 xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
20451 xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
20452 xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
20453 xss_lib='/usr/X11R6/lib/libXss.1.dylib'
20454 xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
20457 x11_lib='libX11.so'
20458 x11ext_lib='libXext.so'
20459 xcursor_lib='libXcursor.so'
20460 xinerama_lib='libXinerama.so'
20461 xinput_lib='libXi.so'
20462 xrandr_lib='libXrandr.so'
20463 xrender_lib='libXrender.so'
20464 xss_lib='libXss.so'
20465 xvidmode_lib='libXxf86vm.so'
20468 x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
20469 x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
20470 xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
20471 xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
20472 xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
20473 xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
20474 xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
20475 xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
20476 xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
20480 if test x$ac_cv_func_shmat != xyes; then
20481 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
20483 CFLAGS="$CFLAGS $X_CFLAGS"
20484 LDFLAGS="$LDFLAGS $X_LIBS"
20486 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
20487 #include <X11/Xproto.h>
20490 if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
20491 have_xext_h_hdr=yes
20497 if test x$have_xext_h_hdr != xyes; then
20499 *** Missing Xext.h, maybe you need to install the libxext-dev package?
20504 $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
20506 SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
20507 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
20509 # Needed so SDL applications can include SDL_syswm.h
20510 SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
20512 if test x$enable_x11_shared = xmaybe; then
20513 enable_x11_shared=yes
20515 if test x$have_loadso != xyes && \
20516 test x$enable_x11_shared = xyes; then
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
20518 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
20519 enable_x11_shared=no
20521 if test x$have_loadso = xyes && \
20522 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
20523 echo "-- dynamic libX11 -> $x11_lib"
20524 echo "-- dynamic libX11ext -> $x11ext_lib"
20526 cat >>confdefs.h <<_ACEOF
20527 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
20531 cat >>confdefs.h <<_ACEOF
20532 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
20535 SUMMARY_video="${SUMMARY_video} x11(dynamic)"
20537 enable_x11_shared=no
20538 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
20539 SUMMARY_video="${SUMMARY_video} x11"
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
20544 $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
20545 have_const_param_XextAddDisplay=no
20546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20547 /* end confdefs.h. */
20549 #include <X11/Xlib.h>
20550 #include <X11/Xproto.h>
20551 #include <X11/extensions/Xext.h>
20552 #include <X11/extensions/extutil.h>
20553 extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
20564 if ac_fn_c_try_compile "$LINENO"; then :
20566 have_const_param_XextAddDisplay=yes
20568 $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
20572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
20574 $as_echo "$have_const_param_XextAddDisplay" >&6; }
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
20577 $as_echo_n "checking for XGenericEvent... " >&6; }
20578 have_XGenericEvent=no
20579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20580 /* end confdefs.h. */
20582 #include <X11/Xlib.h>
20590 XGenericEventCookie *cookie = &event.xcookie;
20591 XNextEvent(display, &event);
20592 XGetEventData(display, cookie);
20593 XFreeEventData(display, cookie);
20599 if ac_fn_c_try_compile "$LINENO"; then :
20601 have_XGenericEvent=yes
20603 $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
20607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
20609 $as_echo "$have_XGenericEvent" >&6; }
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
20612 $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
20613 if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
20614 $as_echo_n "(cached) " >&6
20616 ac_check_lib_save_LIBS=$LIBS
20618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20619 /* end confdefs.h. */
20621 /* Override any GCC internal prototype to avoid an error.
20622 Use char because int might match the return type of a GCC
20623 builtin and then its argument prototype would still apply. */
20627 char XkbKeycodeToKeysym ();
20631 return XkbKeycodeToKeysym ();
20636 if ac_fn_c_try_link "$LINENO"; then :
20637 ac_cv_lib_X11_XkbKeycodeToKeysym=yes
20639 ac_cv_lib_X11_XkbKeycodeToKeysym=no
20641 rm -f core conftest.err conftest.$ac_objext \
20642 conftest$ac_exeext conftest.$ac_ext
20643 LIBS=$ac_check_lib_save_LIBS
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
20646 $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
20647 if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
20649 $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
20654 # Check whether --enable-video-x11-xcursor was given.
20655 if test "${enable_video_x11_xcursor+set}" = set; then :
20656 enableval=$enable_video_x11_xcursor;
20658 enable_video_x11_xcursor=yes
20661 if test x$enable_video_x11_xcursor = xyes; then
20662 definitely_enable_video_x11_xcursor=no
20663 ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
20666 if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
20667 have_xcursor_h_hdr=yes
20669 have_xcursor_h_hdr=no
20673 if test x$have_xcursor_h_hdr = xyes; then
20674 if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
20675 echo "-- dynamic libXcursor -> $xcursor_lib"
20677 cat >>confdefs.h <<_ACEOF
20678 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
20681 definitely_enable_video_x11_xcursor=yes
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
20684 $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
20685 if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
20686 $as_echo_n "(cached) " >&6
20688 ac_check_lib_save_LIBS=$LIBS
20689 LIBS="-lXcursor $LIBS"
20690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20691 /* end confdefs.h. */
20693 /* Override any GCC internal prototype to avoid an error.
20694 Use char because int might match the return type of a GCC
20695 builtin and then its argument prototype would still apply. */
20699 char XcursorImageCreate ();
20703 return XcursorImageCreate ();
20708 if ac_fn_c_try_link "$LINENO"; then :
20709 ac_cv_lib_Xcursor_XcursorImageCreate=yes
20711 ac_cv_lib_Xcursor_XcursorImageCreate=no
20713 rm -f core conftest.err conftest.$ac_objext \
20714 conftest$ac_exeext conftest.$ac_ext
20715 LIBS=$ac_check_lib_save_LIBS
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
20718 $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
20719 if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
20720 have_xcursor_lib=yes
20723 if test x$have_xcursor_lib = xyes ; then
20724 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
20725 definitely_enable_video_x11_xcursor=yes
20730 if test x$definitely_enable_video_x11_xcursor = xyes; then
20732 $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
20734 SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
20736 # Check whether --enable-video-x11-xdbe was given.
20737 if test "${enable_video_x11_xdbe+set}" = set; then :
20738 enableval=$enable_video_x11_xdbe;
20740 enable_video_x11_xdbe=yes
20743 if test x$enable_video_x11_xdbe = xyes; then
20744 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
20747 if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
20754 if test x$have_dbe_h_hdr = xyes; then
20756 $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
20758 SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
20761 # Check whether --enable-video-x11-xinerama was given.
20762 if test "${enable_video_x11_xinerama+set}" = set; then :
20763 enableval=$enable_video_x11_xinerama;
20765 enable_video_x11_xinerama=yes
20768 if test x$enable_video_x11_xinerama = xyes; then
20769 definitely_enable_video_x11_xinerama=no
20770 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
20773 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
20774 have_xinerama_h_hdr=yes
20776 have_xinerama_h_hdr=no
20780 if test x$have_xinerama_h_hdr = xyes; then
20781 if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
20782 echo "-- dynamic libXinerama -> $xinerama_lib"
20784 cat >>confdefs.h <<_ACEOF
20785 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
20788 definitely_enable_video_x11_xinerama=yes
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
20791 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
20792 if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
20793 $as_echo_n "(cached) " >&6
20795 ac_check_lib_save_LIBS=$LIBS
20796 LIBS="-lXinerama $LIBS"
20797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798 /* end confdefs.h. */
20800 /* Override any GCC internal prototype to avoid an error.
20801 Use char because int might match the return type of a GCC
20802 builtin and then its argument prototype would still apply. */
20806 char XineramaQueryExtension ();
20810 return XineramaQueryExtension ();
20815 if ac_fn_c_try_link "$LINENO"; then :
20816 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
20818 ac_cv_lib_Xinerama_XineramaQueryExtension=no
20820 rm -f core conftest.err conftest.$ac_objext \
20821 conftest$ac_exeext conftest.$ac_ext
20822 LIBS=$ac_check_lib_save_LIBS
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
20825 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
20826 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
20827 have_xinerama_lib=yes
20830 if test x$have_xinerama_lib = xyes ; then
20831 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
20832 definitely_enable_video_x11_xinerama=yes
20837 if test x$definitely_enable_video_x11_xinerama = xyes; then
20839 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
20841 SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
20843 # Check whether --enable-video-x11-xinput was given.
20844 if test "${enable_video_x11_xinput+set}" = set; then :
20845 enableval=$enable_video_x11_xinput;
20847 enable_video_x11_xinput=yes
20850 if test x$enable_video_x11_xinput = xyes; then
20851 definitely_enable_video_x11_xinput=no
20852 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
20855 if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
20856 have_xinput_h_hdr=yes
20858 have_xinput_h_hdr=no
20862 if test x$have_xinput_h_hdr = xyes; then
20863 if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
20864 echo "-- dynamic libXi -> $xinput_lib"
20866 cat >>confdefs.h <<_ACEOF
20867 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
20870 definitely_enable_video_x11_xinput=yes
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
20873 $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
20874 if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
20875 $as_echo_n "(cached) " >&6
20877 ac_check_lib_save_LIBS=$LIBS
20879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880 /* end confdefs.h. */
20882 /* Override any GCC internal prototype to avoid an error.
20883 Use char because int might match the return type of a GCC
20884 builtin and then its argument prototype would still apply. */
20888 char XOpenDevice ();
20892 return XOpenDevice ();
20897 if ac_fn_c_try_link "$LINENO"; then :
20898 ac_cv_lib_Xi_XOpenDevice=yes
20900 ac_cv_lib_Xi_XOpenDevice=no
20902 rm -f core conftest.err conftest.$ac_objext \
20903 conftest$ac_exeext conftest.$ac_ext
20904 LIBS=$ac_check_lib_save_LIBS
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
20907 $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
20908 if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
20909 have_xinput_lib=yes
20912 if test x$have_xinput_lib = xyes ; then
20913 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
20914 definitely_enable_video_x11_xinput=yes
20919 if test x$definitely_enable_video_x11_xinput = xyes; then
20920 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
20922 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
20925 $as_echo_n "checking for xinput2 multitouch... " >&6; }
20926 have_xinput2_multitouch=no
20927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20928 /* end confdefs.h. */
20930 #include <X11/Xlib.h>
20931 #include <X11/Xproto.h>
20932 #include <X11/extensions/XInput2.h>
20938 int event_type = XI_TouchBegin;
20939 XITouchClassInfo *t;
20945 if ac_fn_c_try_compile "$LINENO"; then :
20947 have_xinput2_multitouch=yes
20948 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
20950 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
20953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
20955 $as_echo "$have_xinput2_multitouch" >&6; }
20957 # Check whether --enable-video-x11-xrandr was given.
20958 if test "${enable_video_x11_xrandr+set}" = set; then :
20959 enableval=$enable_video_x11_xrandr;
20961 enable_video_x11_xrandr=yes
20964 if test x$enable_video_x11_xrandr = xyes; then
20965 definitely_enable_video_x11_xrandr=no
20966 have_xrandr_h_hdr=no
20967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20968 /* end confdefs.h. */
20970 #include <X11/Xlib.h>
20971 #include <X11/extensions/Xrandr.h>
20977 XRRScreenResources *res = NULL;
20983 if ac_fn_c_try_compile "$LINENO"; then :
20985 have_xrandr_h_hdr=yes
20988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20989 if test x$have_xrandr_h_hdr = xyes; then
20990 if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
20991 echo "-- dynamic libXrandr -> $xrandr_lib"
20993 cat >>confdefs.h <<_ACEOF
20994 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
20997 definitely_enable_video_x11_xrandr=yes
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
21000 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
21001 if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
21002 $as_echo_n "(cached) " >&6
21004 ac_check_lib_save_LIBS=$LIBS
21005 LIBS="-lXrandr $LIBS"
21006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21007 /* end confdefs.h. */
21009 /* Override any GCC internal prototype to avoid an error.
21010 Use char because int might match the return type of a GCC
21011 builtin and then its argument prototype would still apply. */
21015 char XRRQueryExtension ();
21019 return XRRQueryExtension ();
21024 if ac_fn_c_try_link "$LINENO"; then :
21025 ac_cv_lib_Xrandr_XRRQueryExtension=yes
21027 ac_cv_lib_Xrandr_XRRQueryExtension=no
21029 rm -f core conftest.err conftest.$ac_objext \
21030 conftest$ac_exeext conftest.$ac_ext
21031 LIBS=$ac_check_lib_save_LIBS
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
21034 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
21035 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
21036 have_xrandr_lib=yes
21039 if test x$have_xrandr_lib = xyes ; then
21040 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
21041 definitely_enable_video_x11_xrandr=yes
21046 if test x$definitely_enable_video_x11_xrandr = xyes; then
21048 $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
21050 SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
21052 # Check whether --enable-video-x11-scrnsaver was given.
21053 if test "${enable_video_x11_scrnsaver+set}" = set; then :
21054 enableval=$enable_video_x11_scrnsaver;
21056 enable_video_x11_scrnsaver=yes
21059 if test x$enable_video_x11_scrnsaver = xyes; then
21060 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
21063 if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
21064 have_scrnsaver_h_hdr=yes
21066 have_scrnsaver_h_hdr=no
21070 if test x$have_scrnsaver_h_hdr = xyes; then
21071 if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
21072 echo "-- dynamic libXss -> $xss_lib"
21074 cat >>confdefs.h <<_ACEOF
21075 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
21078 definitely_enable_video_x11_scrnsaver=yes
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
21081 $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
21082 if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
21083 $as_echo_n "(cached) " >&6
21085 ac_check_lib_save_LIBS=$LIBS
21087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21088 /* end confdefs.h. */
21090 /* Override any GCC internal prototype to avoid an error.
21091 Use char because int might match the return type of a GCC
21092 builtin and then its argument prototype would still apply. */
21096 char XScreenSaverSuspend ();
21100 return XScreenSaverSuspend ();
21105 if ac_fn_c_try_link "$LINENO"; then :
21106 ac_cv_lib_Xss_XScreenSaverSuspend=yes
21108 ac_cv_lib_Xss_XScreenSaverSuspend=no
21110 rm -f core conftest.err conftest.$ac_objext \
21111 conftest$ac_exeext conftest.$ac_ext
21112 LIBS=$ac_check_lib_save_LIBS
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
21115 $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
21116 if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
21120 if test x$have_xss_lib = xyes ; then
21121 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
21122 definitely_enable_video_x11_scrnsaver=yes
21127 if test x$definitely_enable_video_x11_scrnsaver = xyes; then
21129 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
21131 SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
21133 # Check whether --enable-video-x11-xshape was given.
21134 if test "${enable_video_x11_xshape+set}" = set; then :
21135 enableval=$enable_video_x11_xshape;
21137 enable_video_x11_xshape=yes
21140 if test x$enable_video_x11_xshape = xyes; then
21141 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
21144 if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
21145 have_shape_h_hdr=yes
21147 have_shape_h_hdr=no
21151 if test x$have_shape_h_hdr = xyes; then
21153 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
21155 SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
21158 # Check whether --enable-video-x11-vm was given.
21159 if test "${enable_video_x11_vm+set}" = set; then :
21160 enableval=$enable_video_x11_vm;
21162 enable_video_x11_vm=yes
21165 if test x$enable_video_x11_vm = xyes; then
21166 definitely_enable_video_x11_vm=no
21167 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
21170 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
21177 if test x$have_vm_h_hdr = xyes; then
21178 if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
21179 echo "-- dynamic libXxf86vm -> $xvidmode_lib"
21181 cat >>confdefs.h <<_ACEOF
21182 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
21185 definitely_enable_video_x11_vm=yes
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
21188 $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
21189 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
21190 $as_echo_n "(cached) " >&6
21192 ac_check_lib_save_LIBS=$LIBS
21193 LIBS="-lXxf86vm $LIBS"
21194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21195 /* end confdefs.h. */
21197 /* Override any GCC internal prototype to avoid an error.
21198 Use char because int might match the return type of a GCC
21199 builtin and then its argument prototype would still apply. */
21203 char XF86VidModeQueryVersion ();
21207 return XF86VidModeQueryVersion ();
21212 if ac_fn_c_try_link "$LINENO"; then :
21213 ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
21215 ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
21217 rm -f core conftest.err conftest.$ac_objext \
21218 conftest$ac_exeext conftest.$ac_ext
21219 LIBS=$ac_check_lib_save_LIBS
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
21222 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
21223 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
21227 if test x$have_vm_lib = xyes ; then
21228 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
21229 definitely_enable_video_x11_vm=yes
21234 if test x$definitely_enable_video_x11_vm = xyes; then
21236 $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
21238 SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
21244 CheckVivanteVideo()
21246 # Check whether --enable-video-vivante was given.
21247 if test "${enable_video_vivante+set}" = set; then :
21248 enableval=$enable_video_vivante;
21250 enable_video_vivante=yes
21253 if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
21255 $as_echo_n "checking for Vivante VDK API... " >&6; }
21256 have_vivante_vdk=no
21257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21258 /* end confdefs.h. */
21262 #include <gc_vdk.h>
21273 if ac_fn_c_try_compile "$LINENO"; then :
21275 have_vivante_vdk=yes
21278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
21280 $as_echo "$have_vivante_vdk" >&6; }
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
21283 $as_echo_n "checking for Vivante FB API... " >&6; }
21284 have_vivante_egl=no
21285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21286 /* end confdefs.h. */
21290 #include <EGL/eglvivante.h>
21301 if ac_fn_c_try_compile "$LINENO"; then :
21303 have_vivante_egl=yes
21306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
21308 $as_echo "$have_vivante_egl" >&6; }
21310 if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
21312 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
21314 EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
21315 if test x$have_vivante_vdk = xyes; then
21317 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
21319 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
21321 SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
21322 SUMMARY_video="${SUMMARY_video} vivante"
21330 if test x$enable_video = xyes; then
21332 $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
21334 SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
21336 SUMMARY_video="${SUMMARY_video} haiku"
21342 # Check whether --enable-video-cocoa was given.
21343 if test "${enable_video_cocoa+set}" = set; then :
21344 enableval=$enable_video_cocoa;
21346 enable_video_cocoa=yes
21349 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
21350 save_CFLAGS="$CFLAGS"
21351 CFLAGS="$CFLAGS -x objective-c"
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
21353 $as_echo_n "checking for Cocoa framework... " >&6; }
21355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21356 /* end confdefs.h. */
21358 #import <Cocoa/Cocoa.h>
21369 if ac_fn_c_try_compile "$LINENO"; then :
21374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
21376 $as_echo "$have_cocoa" >&6; }
21377 CFLAGS="$save_CFLAGS"
21378 if test x$have_cocoa = xyes; then
21380 $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
21382 SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
21383 SUMMARY_video="${SUMMARY_video} cocoa"
21391 # Check whether --enable-render-metal was given.
21392 if test "${enable_render_metal+set}" = set; then :
21393 enableval=$enable_render_metal;
21395 enable_render_metal=yes
21398 if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
21399 save_CFLAGS="$CFLAGS"
21400 CFLAGS="$CFLAGS -x objective-c"
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
21402 $as_echo_n "checking for Metal framework... " >&6; }
21404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21405 /* end confdefs.h. */
21407 #import <Cocoa/Cocoa.h>
21408 #import <Metal/Metal.h>
21409 #import <QuartzCore/CAMetalLayer.h>
21411 #if !TARGET_CPU_X86_64
21412 #error Metal doesn't work on this configuration
21424 if ac_fn_c_try_compile "$LINENO"; then :
21429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21430 CFLAGS="$save_CFLAGS"
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
21432 $as_echo "$have_metal" >&6; }
21433 if test x$have_metal = xyes; then
21435 $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
21437 SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
21438 SUMMARY_video="${SUMMARY_video} metal"
21440 enable_render_metal=no
21448 # Check whether --enable-video-directfb was given.
21449 if test "${enable_video_directfb+set}" = set; then :
21450 enableval=$enable_video_directfb;
21452 enable_video_directfb=no
21455 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
21458 DIRECTFB_REQUIRED_VERSION=1.0.0
21459 for ac_prog in directfb-config
21461 # Extract the first word of "$ac_prog", so it can be a program name with args.
21462 set dummy $ac_prog; ac_word=$2
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21464 $as_echo_n "checking for $ac_word... " >&6; }
21465 if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
21466 $as_echo_n "(cached) " >&6
21468 case $DIRECTFBCONFIG in
21470 ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
21473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21474 as_dummy="$prefix/bin:$PATH"
21475 for as_dir in $as_dummy
21478 test -z "$as_dir" && as_dir=.
21479 for ac_exec_ext in '' $ac_executable_extensions; do
21480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21481 ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
21482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21492 DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
21493 if test -n "$DIRECTFBCONFIG"; then
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
21495 $as_echo "$DIRECTFBCONFIG" >&6; }
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21498 $as_echo "no" >&6; }
21502 test -n "$DIRECTFBCONFIG" && break
21504 test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
21506 if test x$DIRECTFBCONFIG = xno; then
21507 # Extract the first word of "pkg-config", so it can be a program name with args.
21508 set dummy pkg-config; ac_word=$2
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21510 $as_echo_n "checking for $ac_word... " >&6; }
21511 if ${ac_cv_path_PKG_CONFIG+:} false; then :
21512 $as_echo_n "(cached) " >&6
21514 case $PKG_CONFIG in
21516 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21520 for as_dir in $PATH
21523 test -z "$as_dir" && as_dir=.
21524 for ac_exec_ext in '' $ac_executable_extensions; do
21525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21526 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21534 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21538 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21539 if test -n "$PKG_CONFIG"; then
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21541 $as_echo "$PKG_CONFIG" >&6; }
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21544 $as_echo "no" >&6; }
21548 if test x$PKG_CONFIG != xno; then
21549 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
21550 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
21551 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
21552 DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
21557 set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
21558 NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
21559 set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
21560 HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
21561 if test $HAVE_VERSION -ge $NEED_VERSION; then
21562 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
21563 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
21564 DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
21568 if test x$video_directfb = xyes; then
21569 # SuSE 11.1 installs directfb-config without directfb-devel
21570 save_CPPFLAGS="$CPPFLAGS"
21571 CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
21572 ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
21573 if test "x$ac_cv_header_directfb_h" = xyes; then :
21574 have_directfb_hdr=yes
21576 have_directfb_hdr=no
21580 CPPFLAGS="$save_CPPFLAGS"
21581 video_directfb=$have_directfb_hdr
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
21584 $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
21586 $as_echo "$video_directfb" >&6; }
21588 if test x$video_directfb = xyes; then
21589 # Check whether --enable-directfb-shared was given.
21590 if test "${enable_directfb_shared+set}" = set; then :
21591 enableval=$enable_directfb_shared;
21593 enable_directfb_shared=yes
21598 $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
21600 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
21601 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
21604 $as_echo_n "checking for directfb dynamic loading support... " >&6; }
21606 directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
21607 # | sed 's/.*\/\(.*\)/\1/; q'`]
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
21609 $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
21610 if test x$have_loadso != xyes && \
21611 test x$enable_directfb_shared = xyes; then
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
21613 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
21615 if test x$have_loadso = xyes && \
21616 test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
21617 directfb_shared=yes
21618 echo "-- $directfb_lib_spec -> $directfb_lib"
21620 cat >>confdefs.h <<_ACEOF
21621 #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
21624 SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
21626 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
21627 SUMMARY_video="${SUMMARY_video} directfb"
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
21630 $as_echo "$directfb_shared" >&6; }
21631 SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
21639 # Check whether --enable-video-kmsdrm was given.
21640 if test "${enable_video_kmsdrm+set}" = set; then :
21641 enableval=$enable_video_kmsdrm;
21643 enable_video_kmsdrm=no
21647 if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
21652 LIBDRM_REQUIRED_VERSION=2.4.46
21653 LIBGBM_REQUIRED_VERSION=9.0.0
21655 # Extract the first word of "pkg-config", so it can be a program name with args.
21656 set dummy pkg-config; ac_word=$2
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21658 $as_echo_n "checking for $ac_word... " >&6; }
21659 if ${ac_cv_path_PKG_CONFIG+:} false; then :
21660 $as_echo_n "(cached) " >&6
21662 case $PKG_CONFIG in
21664 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21668 for as_dir in $PATH
21671 test -z "$as_dir" && as_dir=.
21672 for ac_exec_ext in '' $ac_executable_extensions; do
21673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21674 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21682 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21686 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21687 if test -n "$PKG_CONFIG"; then
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21689 $as_echo "$PKG_CONFIG" >&6; }
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21692 $as_echo "no" >&6; }
21696 if test x$PKG_CONFIG != xno; then
21697 if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
21698 if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
21699 LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
21700 LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
21701 LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
21704 if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
21705 LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
21706 LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
21707 LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
21710 if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
21715 $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
21717 $as_echo "$libdrm_avail" >&6; }
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
21719 $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
21721 $as_echo "$libgbm_avail" >&6; }
21723 if test x$video_kmsdrm = xyes; then
21724 # Check whether --enable-kmsdrm-shared was given.
21725 if test "${enable_kmsdrm_shared+set}" = set; then :
21726 enableval=$enable_kmsdrm_shared;
21728 enable_kmsdrm_shared=yes
21733 $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
21735 SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
21736 EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
21739 $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
21741 drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
21742 gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
21743 if test x$have_loadso != xyes && \
21744 test x$enable_kmsdrm_shared = xyes; then
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
21746 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
21748 if test x$have_loadso = xyes && \
21749 test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
21752 cat >>confdefs.h <<_ACEOF
21753 #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
21757 cat >>confdefs.h <<_ACEOF
21758 #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
21762 cat >>confdefs.h <<_ACEOF
21763 #define HAVE_KMSDRM_SHARED "TRUE"
21766 SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
21768 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
21769 SUMMARY_video="${SUMMARY_video} kmsdrm"
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
21772 $as_echo "$kmsdrm_shared" >&6; }
21782 # Check whether --enable-video-dummy was given.
21783 if test "${enable_video_dummy+set}" = set; then :
21784 enableval=$enable_video_dummy;
21786 enable_video_dummy=yes
21789 if test x$enable_video_dummy = xyes; then
21791 $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
21793 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
21795 SUMMARY_video="${SUMMARY_video} dummy"
21801 if test x$enable_video = xyes; then
21803 $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
21805 SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
21807 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
21808 SUMMARY_video="${SUMMARY_video} qnx"
21814 if test x$enable_audio = xyes; then
21816 $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
21818 SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
21820 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
21821 SUMMARY_audio="${SUMMARY_audio} qsa"
21825 # Check whether --enable-video-opengl was given.
21826 if test "${enable_video_opengl+set}" = set; then :
21827 enableval=$enable_video_opengl;
21829 enable_video_opengl=yes
21835 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
21837 $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
21839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21840 /* end confdefs.h. */
21843 #include <GL/glx.h>
21854 if ac_fn_c_try_compile "$LINENO"; then :
21859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
21861 $as_echo "$video_opengl" >&6; }
21862 if test x$video_opengl = xyes; then
21864 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21867 $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
21870 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21872 SUMMARY_video="${SUMMARY_video} opengl"
21877 # Check whether --enable-video-opengles was given.
21878 if test "${enable_video_opengles+set}" = set; then :
21879 enableval=$enable_video_opengles;
21881 enable_video_opengles=yes
21884 # Check whether --enable-video-opengles1 was given.
21885 if test "${enable_video_opengles1+set}" = set; then :
21886 enableval=$enable_video_opengles1;
21888 enable_video_opengles1=yes
21891 # Check whether --enable-video-opengles2 was given.
21892 if test "${enable_video_opengles2+set}" = set; then :
21893 enableval=$enable_video_opengles2;
21895 enable_video_opengles2=yes
21903 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
21905 $as_echo_n "checking for EGL support... " >&6; }
21906 video_opengl_egl=no
21907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21908 /* end confdefs.h. */
21912 #include <EGL/egl.h>
21913 #include <EGL/eglext.h>
21924 if ac_fn_c_try_compile "$LINENO"; then :
21926 video_opengl_egl=yes
21929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
21931 $as_echo "$video_opengl_egl" >&6; }
21932 if test x$video_opengl_egl = xyes; then
21934 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
21938 if test x$enable_video_opengles1 = xyes; then
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
21940 $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
21941 video_opengles_v1=no
21942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21943 /* end confdefs.h. */
21945 #include <GLES/gl.h>
21946 #include <GLES/glext.h>
21957 if ac_fn_c_try_compile "$LINENO"; then :
21959 video_opengles_v1=yes
21962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
21964 $as_echo "$video_opengles_v1" >&6; }
21965 if test x$video_opengles_v1 = xyes; then
21967 $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
21970 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
21972 SUMMARY_video="${SUMMARY_video} opengl_es1"
21976 if test x$enable_video_opengles2 = xyes; then
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
21978 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
21979 video_opengles_v2=no
21980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21981 /* end confdefs.h. */
21983 #include <GLES2/gl2.h>
21984 #include <GLES2/gl2ext.h>
21995 if ac_fn_c_try_compile "$LINENO"; then :
21997 video_opengles_v2=yes
22000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
22002 $as_echo "$video_opengles_v2" >&6; }
22003 if test x$video_opengles_v2 = xyes; then
22005 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
22008 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
22010 SUMMARY_video="${SUMMARY_video} opengl_es2"
22018 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
22020 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22023 $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
22026 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
22028 SUMMARY_video="${SUMMARY_video} opengl"
22034 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
22037 $as_echo_n "checking for EGL support... " >&6; }
22038 video_opengl_egl=no
22039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22040 /* end confdefs.h. */
22042 #include <EGL/egl.h>
22053 if ac_fn_c_try_compile "$LINENO"; then :
22055 video_opengl_egl=yes
22058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
22060 $as_echo "$video_opengl_egl" >&6; }
22061 if test x$video_opengl_egl = xyes; then
22063 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22066 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
22068 SUMMARY_video="${SUMMARY_video} opengl_es1"
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
22072 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
22073 video_opengles_v2=no
22074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22075 /* end confdefs.h. */
22077 #include <GLES2/gl2.h>
22078 #include <GLES2/gl2ext.h>
22089 if ac_fn_c_try_compile "$LINENO"; then :
22091 video_opengles_v2=yes
22094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
22096 $as_echo "$video_opengles_v2" >&6; }
22097 if test x$video_opengles_v2 = xyes; then
22099 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22102 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
22105 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
22107 SUMMARY_video="${SUMMARY_video} opengl_es2"
22114 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
22116 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22119 $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
22122 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
22124 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
22125 SUMMARY_video="${SUMMARY_video} opengl"
22131 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
22133 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22136 $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
22139 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
22141 SUMMARY_video="${SUMMARY_video} opengl"
22145 CheckEmscriptenGLES()
22147 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
22149 $as_echo_n "checking for EGL support... " >&6; }
22150 video_opengl_egl=no
22151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22152 /* end confdefs.h. */
22154 #include <EGL/egl.h>
22165 if ac_fn_c_try_compile "$LINENO"; then :
22167 video_opengl_egl=yes
22170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
22172 $as_echo "$video_opengl_egl" >&6; }
22173 if test x$video_opengl_egl = xyes; then
22175 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
22180 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
22181 video_opengles_v2=no
22182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22183 /* end confdefs.h. */
22185 #include <GLES2/gl2.h>
22186 #include <GLES2/gl2ext.h>
22197 if ac_fn_c_try_compile "$LINENO"; then :
22199 video_opengles_v2=yes
22202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
22204 $as_echo "$video_opengles_v2" >&6; }
22205 if test x$video_opengles_v2 = xyes; then
22207 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
22210 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
22212 SUMMARY_video="${SUMMARY_video} opengl_es2"
22218 # Check whether --enable-video-vulkan was given.
22219 if test "${enable_video_vulkan+set}" = set; then :
22220 enableval=$enable_video_vulkan;
22222 enable_video_vulkan=yes
22228 if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
22231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22232 /* end confdefs.h. */
22234 #if defined(__ARM_ARCH) && __ARM_ARCH < 7
22235 #error Vulkan doesn't work on this configuration
22247 if ac_fn_c_try_compile "$LINENO"; then :
22255 enable_video_vulkan=no
22258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22261 save_CFLAGS="$CFLAGS"
22262 CFLAGS="$CFLAGS -x objective-c"
22263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22264 /* end confdefs.h. */
22266 #include <Cocoa/Cocoa.h>
22267 #include <Metal/Metal.h>
22268 #include <QuartzCore/CAMetalLayer.h>
22270 #if !TARGET_CPU_X86_64
22271 #error Vulkan doesn't work on this configuration
22283 if ac_fn_c_try_compile "$LINENO"; then :
22288 enable_video_vulkan=no
22291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292 CFLAGS="$save_CFLAGS"
22297 if test x$enable_video_vulkan = xno; then
22298 # For reasons I am totally unable to see, I get an undefined macro error if
22299 # I put this in the AC_TRY_COMPILE.
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
22301 $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
22304 if test x$enable_video_vulkan = xyes; then
22306 $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
22308 SUMMARY_video="${SUMMARY_video} vulkan"
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
22315 $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
22316 use_input_events=no
22317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22318 /* end confdefs.h. */
22320 #include <linux/input.h>
22327 #error EVIOCGNAME() ioctl not available
22334 if ac_fn_c_try_compile "$LINENO"; then :
22336 use_input_events=yes
22339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
22341 $as_echo "$use_input_events" >&6; }
22342 if test x$use_input_events = xyes; then
22344 $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
22346 SUMMARY_input="${SUMMARY_input} linuxev"
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
22354 $as_echo_n "checking for Linux kd.h... " >&6; }
22356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22357 /* end confdefs.h. */
22359 #include <linux/kd.h>
22360 #include <linux/keyboard.h>
22366 struct kbentry kbe;
22367 kbe.kb_table = KG_CTRL;
22368 ioctl(0, KDGKBENT, &kbe);
22374 if ac_fn_c_try_compile "$LINENO"; then :
22379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
22381 $as_echo "$use_input_kd" >&6; }
22382 if test x$use_input_kd = xyes; then
22384 $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
22386 SUMMARY_input="${SUMMARY_input} linuxkd"
22392 # Check whether --enable-libudev was given.
22393 if test "${enable_libudev+set}" = set; then :
22394 enableval=$enable_libudev;
22399 if test x$enable_libudev = xyes; then
22400 ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
22401 if test "x$ac_cv_header_libudev_h" = xyes; then :
22402 have_libudev_h_hdr=yes
22404 have_libudev_h_hdr=no
22408 if test x$have_libudev_h_hdr = xyes; then
22410 $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
22413 udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
22414 if test x$udev_lib != x; then
22415 echo "-- dynamic udev -> $udev_lib"
22417 cat >>confdefs.h <<_ACEOF
22418 #define SDL_UDEV_DYNAMIC "$udev_lib"
22428 # Check whether --enable-dbus was given.
22429 if test "${enable_dbus+set}" = set; then :
22430 enableval=$enable_dbus;
22435 if test x$enable_dbus = xyes; then
22436 # Extract the first word of "pkg-config", so it can be a program name with args.
22437 set dummy pkg-config; ac_word=$2
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22439 $as_echo_n "checking for $ac_word... " >&6; }
22440 if ${ac_cv_path_PKG_CONFIG+:} false; then :
22441 $as_echo_n "(cached) " >&6
22443 case $PKG_CONFIG in
22445 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22449 for as_dir in $PATH
22452 test -z "$as_dir" && as_dir=.
22453 for ac_exec_ext in '' $ac_executable_extensions; do
22454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22455 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22463 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22467 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22468 if test -n "$PKG_CONFIG"; then
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22470 $as_echo "$PKG_CONFIG" >&6; }
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22473 $as_echo "no" >&6; }
22477 if test x$PKG_CONFIG != xno; then
22478 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
22479 save_CFLAGS="$CFLAGS"
22480 CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
22481 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
22482 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
22483 have_dbus_dbus_h_hdr=yes
22485 have_dbus_dbus_h_hdr=no
22489 CFLAGS="$save_CFLAGS"
22490 if test x$have_dbus_dbus_h_hdr = xyes; then
22492 $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
22494 EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
22495 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
22503 # Check whether --enable-ime was given.
22504 if test "${enable_ime+set}" = set; then :
22505 enableval=$enable_ime;
22510 if test x$enable_ime = xyes; then
22512 $as_echo "#define SDL_USE_IME 1" >>confdefs.h
22514 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
22520 # Check whether --enable-ibus was given.
22521 if test "${enable_ibus+set}" = set; then :
22522 enableval=$enable_ibus;
22527 if test x$enable_ibus = xyes; then
22528 # Extract the first word of "pkg-config", so it can be a program name with args.
22529 set dummy pkg-config; ac_word=$2
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22531 $as_echo_n "checking for $ac_word... " >&6; }
22532 if ${ac_cv_path_PKG_CONFIG+:} false; then :
22533 $as_echo_n "(cached) " >&6
22535 case $PKG_CONFIG in
22537 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22541 for as_dir in $PATH
22544 test -z "$as_dir" && as_dir=.
22545 for ac_exec_ext in '' $ac_executable_extensions; do
22546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22547 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22555 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22559 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22560 if test -n "$PKG_CONFIG"; then
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22562 $as_echo "$PKG_CONFIG" >&6; }
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22565 $as_echo "no" >&6; }
22569 if test x$PKG_CONFIG != xno; then
22570 IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
22571 save_CFLAGS="$CFLAGS"
22572 CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
22573 ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
22574 if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
22575 have_ibus_ibus_h_hdr=yes
22577 have_ibus_ibus_h_hdr=no
22581 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
22582 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
22583 have_inotify_inotify_h_hdr=yes
22585 have_inotify_inotify_h_hdr=no
22589 CFLAGS="$save_CFLAGS"
22590 if test x$have_ibus_ibus_h_hdr = xyes; then
22591 if test x$enable_ime != xyes; then
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
22593 $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
22594 have_ibus_ibus_h_hdr=no
22595 elif test x$enable_dbus != xyes; then
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
22597 $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
22598 have_ibus_ibus_h_hdr=no
22599 elif test x$have_inotify_inotify_h_hdr != xyes; then
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
22601 $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
22602 have_ibus_ibus_h_hdr=no
22605 $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
22607 EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
22608 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
22617 # Check whether --enable-fcitx was given.
22618 if test "${enable_fcitx+set}" = set; then :
22619 enableval=$enable_fcitx;
22624 if test x$enable_fcitx = xyes; then
22625 # Extract the first word of "pkg-config", so it can be a program name with args.
22626 set dummy pkg-config; ac_word=$2
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22628 $as_echo_n "checking for $ac_word... " >&6; }
22629 if ${ac_cv_path_PKG_CONFIG+:} false; then :
22630 $as_echo_n "(cached) " >&6
22632 case $PKG_CONFIG in
22634 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22638 for as_dir in $PATH
22641 test -z "$as_dir" && as_dir=.
22642 for ac_exec_ext in '' $ac_executable_extensions; do
22643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22644 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22652 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22656 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22657 if test -n "$PKG_CONFIG"; then
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22659 $as_echo "$PKG_CONFIG" >&6; }
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22662 $as_echo "no" >&6; }
22666 if test x$PKG_CONFIG != xno; then
22667 FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
22668 CFLAGS="$CFLAGS $FCITX_CFLAGS"
22669 ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
22670 if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
22671 have_fcitx_frontend_h_hdr=yes
22673 have_fcitx_frontend_h_hdr=no
22677 CFLAGS="$save_CFLAGS"
22678 if test x$have_fcitx_frontend_h_hdr = xyes; then
22679 if test x$enable_ime != xyes; then
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
22681 $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
22682 have_fcitx_frontend_h_hdr=no
22683 elif test x$enable_dbus != xyes; then
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
22685 $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
22686 have_fcitx_frontend_h_hdr=no
22689 $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
22691 EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
22692 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
22701 # Check whether --enable-input-tslib was given.
22702 if test "${enable_input_tslib+set}" = set; then :
22703 enableval=$enable_input_tslib;
22705 enable_input_tslib=yes
22708 if test x$enable_input_tslib = xyes; then
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
22710 $as_echo_n "checking for Touchscreen library support... " >&6; }
22711 enable_input_tslib=no
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713 /* end confdefs.h. */
22726 if ac_fn_c_try_compile "$LINENO"; then :
22728 enable_input_tslib=yes
22731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
22733 $as_echo "$enable_input_tslib" >&6; }
22734 if test x$enable_input_tslib = xyes; then
22736 $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
22738 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
22739 SUMMARY_input="${SUMMARY_input} ts"
22746 # Check whether --enable-pthreads was given.
22747 if test "${enable_pthreads+set}" = set; then :
22748 enableval=$enable_pthreads;
22750 enable_pthreads=yes
22753 # Check whether --enable-pthread-sem was given.
22754 if test "${enable_pthread_sem+set}" = set; then :
22755 enableval=$enable_pthread_sem;
22757 enable_pthread_sem=yes
22762 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
22765 *-*-linux*|*-*-uclinux*)
22766 pthread_cflags="-D_REENTRANT"
22767 pthread_lib="-lpthread"
22770 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
22774 pthread_cflags="-D_THREAD_SAFE"
22775 # causes Carbon.p complaints?
22776 # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
22778 *-*-freebsd*|*-*-dragonfly*)
22779 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
22780 pthread_lib="-pthread"
22783 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
22784 pthread_lib="-lpthread"
22787 pthread_cflags="-D_REENTRANT"
22788 pthread_lib="-pthread"
22791 # From Solaris 9+, posix4's preferred name is rt.
22792 pthread_cflags="-D_REENTRANT"
22793 pthread_lib="-lpthread -lrt"
22796 # Solaris 10+ merged pthread into libc.
22797 pthread_cflags="-D_REENTRANT"
22801 # Solaris 11+ merged rt into libc.
22802 pthread_cflags="-D_REENTRANT"
22806 pthread_cflags="-D_REENTRANT -Kthread"
22810 pthread_cflags="-D_REENTRANT -mthreads"
22811 pthread_lib="-lpthread"
22814 pthread_cflags="-D_REENTRANT"
22815 pthread_lib="-L/usr/lib -lpthread"
22818 pthread_cflags="-D_REENTRANT"
22822 pthread_cflags="-D_REENTRANT"
22826 pthread_cflags="-D_REENTRANT"
22827 pthread_lib="-lpthread"
22830 if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
22831 # Save the original compiler flags and libraries
22832 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
22833 # Add the pthread compiler flags and libraries
22834 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
22835 # Check to see if we have pthread support on this system
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
22837 $as_echo_n "checking for pthreads... " >&6; }
22839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22840 /* end confdefs.h. */
22842 #include <pthread.h>
22848 pthread_attr_t type;
22849 pthread_attr_init(&type);
22855 if ac_fn_c_try_link "$LINENO"; then :
22860 rm -f core conftest.err conftest.$ac_objext \
22861 conftest$ac_exeext conftest.$ac_ext
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
22863 $as_echo "$use_pthreads" >&6; }
22864 # Restore the compiler flags and libraries
22865 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
22867 # Do futher testing if we have pthread support...
22868 if test x$use_pthreads = xyes; then
22870 $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
22872 EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
22873 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
22874 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
22876 # Save the original compiler flags and libraries
22877 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
22878 # Add the pthread compiler flags and libraries
22879 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
22881 # Check to see if recursive mutexes are available
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
22883 $as_echo_n "checking for recursive mutexes... " >&6; }
22884 has_recursive_mutexes=no
22885 if test x$has_recursive_mutexes = xno; then
22886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22887 /* end confdefs.h. */
22889 #define _GNU_SOURCE 1
22890 #include <pthread.h>
22896 pthread_mutexattr_t attr;
22897 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
22903 if ac_fn_c_try_link "$LINENO"; then :
22905 has_recursive_mutexes=yes
22907 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
22911 rm -f core conftest.err conftest.$ac_objext \
22912 conftest$ac_exeext conftest.$ac_ext
22914 if test x$has_recursive_mutexes = xno; then
22915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22916 /* end confdefs.h. */
22918 #define _GNU_SOURCE 1
22919 #include <pthread.h>
22925 pthread_mutexattr_t attr;
22926 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
22932 if ac_fn_c_try_link "$LINENO"; then :
22934 has_recursive_mutexes=yes
22936 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
22940 rm -f core conftest.err conftest.$ac_objext \
22941 conftest$ac_exeext conftest.$ac_ext
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
22944 $as_echo "$has_recursive_mutexes" >&6; }
22946 # Check to see if pthread semaphore support is missing
22947 if test x$enable_pthread_sem = xyes; then
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
22949 $as_echo_n "checking for pthread semaphores... " >&6; }
22950 have_pthread_sem=no
22951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22952 /* end confdefs.h. */
22954 #include <pthread.h>
22955 #include <semaphore.h>
22966 if ac_fn_c_try_compile "$LINENO"; then :
22968 have_pthread_sem=yes
22971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
22973 $as_echo "$have_pthread_sem" >&6; }
22975 if test x$have_pthread_sem = xyes; then
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
22977 $as_echo_n "checking for sem_timedwait... " >&6; }
22978 have_sem_timedwait=no
22979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22980 /* end confdefs.h. */
22982 #include <pthread.h>
22983 #include <semaphore.h>
22989 sem_timedwait(NULL, NULL);
22995 if ac_fn_c_try_link "$LINENO"; then :
22997 have_sem_timedwait=yes
22999 $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
23003 rm -f core conftest.err conftest.$ac_objext \
23004 conftest$ac_exeext conftest.$ac_ext
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
23006 $as_echo "$have_sem_timedwait" >&6; }
23009 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
23011 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
23012 have_pthread_np_h=yes
23014 have_pthread_np_h=no
23018 if test x$have_pthread_np_h = xyes; then
23020 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
23024 # Check to see if pthread naming is available
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
23026 $as_echo_n "checking for pthread_setname_np... " >&6; }
23027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028 /* end confdefs.h. */
23030 /* Override any GCC internal prototype to avoid an error.
23031 Use char because int might match the return type of a GCC
23032 builtin and then its argument prototype would still apply. */
23036 char pthread_setname_np ();
23040 return pthread_setname_np ();
23045 if ac_fn_c_try_link "$LINENO"; then :
23047 has_pthread_setname_np=yes
23049 $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
23054 has_pthread_setname_np=no
23057 rm -f core conftest.err conftest.$ac_objext \
23058 conftest$ac_exeext conftest.$ac_ext
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
23060 $as_echo "$has_pthread_setname_np" >&6; }
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
23063 $as_echo_n "checking for pthread_set_name_np... " >&6; }
23064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23065 /* end confdefs.h. */
23067 /* Override any GCC internal prototype to avoid an error.
23068 Use char because int might match the return type of a GCC
23069 builtin and then its argument prototype would still apply. */
23073 char pthread_set_name_np ();
23077 return pthread_set_name_np ();
23082 if ac_fn_c_try_link "$LINENO"; then :
23084 has_pthread_set_name_np=yes
23086 $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
23091 has_pthread_set_name_np=no
23094 rm -f core conftest.err conftest.$ac_objext \
23095 conftest$ac_exeext conftest.$ac_ext
23096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
23097 $as_echo "$has_pthread_set_name_np" >&6; }
23099 # Restore the compiler flags and libraries
23100 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
23102 # Basic thread creation functions
23103 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
23106 # We can fake these with mutexes and condition variables if necessary
23107 if test x$have_pthread_sem = xyes; then
23108 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
23110 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
23114 # We can fake these with semaphores if necessary
23115 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
23117 # Condition variables
23118 # We can fake these with semaphores and mutexes if necessary
23119 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
23121 # Thread local storage
23122 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
23132 $as_echo_n "checking Windows compiler... " >&6; }
23134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23135 /* end confdefs.h. */
23137 #include <windows.h>
23148 if ac_fn_c_try_compile "$LINENO"; then :
23153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
23155 $as_echo "$have_win32_gcc" >&6; }
23156 if test x$have_win32_gcc != xyes; then
23158 *** Your compiler ($CC) does not produce Windows executables!
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
23163 $as_echo_n "checking Windows CE... " >&6; }
23165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23166 /* end confdefs.h. */
23168 #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
23169 #error This is not Windows CE
23181 if ac_fn_c_try_compile "$LINENO"; then :
23185 *** Sorry, Windows CE is no longer supported.
23189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
23191 $as_echo "$have_wince" >&6; }
23193 # This fixes Windows stack alignment with newer GCC
23199 # Check whether --enable-directx was given.
23200 if test "${enable_directx+set}" = set; then :
23201 enableval=$enable_directx;
23206 if test x$enable_directx = xyes; then
23207 ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
23208 if test "x$ac_cv_header_d3d9_h" = xyes; then :
23213 ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
23214 if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
23219 ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
23220 if test "x$ac_cv_header_ddraw_h" = xyes; then :
23225 ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
23226 if test "x$ac_cv_header_dsound_h" = xyes; then :
23231 ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
23232 if test "x$ac_cv_header_dinput_h" = xyes; then :
23237 ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
23238 if test "x$ac_cv_header_dxgi_h" = xyes; then :
23243 ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
23244 if test "x$ac_cv_header_xinput_h" = xyes; then :
23249 ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
23250 if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
23255 ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
23256 if test "x$ac_cv_header_audioclient_h" = xyes; then :
23263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23264 /* end confdefs.h. */
23266 #include <windows.h>
23267 #include <xinput.h>
23268 XINPUT_GAMEPAD_EX x1;
23278 if ac_fn_c_try_compile "$LINENO"; then :
23279 have_xinput_gamepadex=yes
23281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23283 /* end confdefs.h. */
23285 #include <windows.h>
23286 #include <xinput.h>
23287 XINPUT_STATE_EX s1;
23297 if ac_fn_c_try_compile "$LINENO"; then :
23298 have_xinput_stateex=yes
23300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23302 if test x$have_ddraw = xyes; then
23304 $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
23307 if test x$have_dinput = xyes; then
23309 $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
23312 if test x$have_dsound = xyes; then
23314 $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
23317 if test x$have_dxgi = xyes; then
23319 $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
23322 if test x$have_xinput = xyes; then
23324 $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
23327 if test x$have_xinput_gamepadex = xyes; then
23329 $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
23332 if test x$have_xinput_stateex = xyes; then
23334 $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
23338 SUMMARY_video="${SUMMARY_video} directx"
23339 SUMMARY_audio="${SUMMARY_audio} directx"
23341 # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
23342 # FIXME: ...so force it off for now.
23353 # Check whether --enable-sdl-dlopen was given.
23354 if test "${enable_sdl_dlopen+set}" = set; then :
23355 enableval=$enable_sdl_dlopen;
23357 enable_sdl_dlopen=yes
23360 if test x$enable_sdl_dlopen = xyes; then
23361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
23362 $as_echo_n "checking for dlopen... " >&6; }
23364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23365 /* end confdefs.h. */
23373 void *handle = dlopen("", RTLD_NOW);
23374 const char *loaderror = (char *) dlerror();
23380 if ac_fn_c_try_compile "$LINENO"; then :
23385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
23387 $as_echo "$have_dlopen" >&6; }
23389 if test x$have_dlopen = xyes; then
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
23391 $as_echo_n "checking for dlopen in -lc... " >&6; }
23392 if ${ac_cv_lib_c_dlopen+:} false; then :
23393 $as_echo_n "(cached) " >&6
23395 ac_check_lib_save_LIBS=$LIBS
23397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23398 /* end confdefs.h. */
23400 /* Override any GCC internal prototype to avoid an error.
23401 Use char because int might match the return type of a GCC
23402 builtin and then its argument prototype would still apply. */
23415 if ac_fn_c_try_link "$LINENO"; then :
23416 ac_cv_lib_c_dlopen=yes
23418 ac_cv_lib_c_dlopen=no
23420 rm -f core conftest.err conftest.$ac_objext \
23421 conftest$ac_exeext conftest.$ac_ext
23422 LIBS=$ac_check_lib_save_LIBS
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
23425 $as_echo "$ac_cv_lib_c_dlopen" >&6; }
23426 if test "x$ac_cv_lib_c_dlopen" = xyes; then :
23427 EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
23430 $as_echo_n "checking for dlopen in -ldl... " >&6; }
23431 if ${ac_cv_lib_dl_dlopen+:} false; then :
23432 $as_echo_n "(cached) " >&6
23434 ac_check_lib_save_LIBS=$LIBS
23436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23437 /* end confdefs.h. */
23439 /* Override any GCC internal prototype to avoid an error.
23440 Use char because int might match the return type of a GCC
23441 builtin and then its argument prototype would still apply. */
23454 if ac_fn_c_try_link "$LINENO"; then :
23455 ac_cv_lib_dl_dlopen=yes
23457 ac_cv_lib_dl_dlopen=no
23459 rm -f core conftest.err conftest.$ac_objext \
23460 conftest$ac_exeext conftest.$ac_ext
23461 LIBS=$ac_check_lib_save_LIBS
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
23464 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
23465 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
23466 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
23469 $as_echo_n "checking for dlopen in -lltdl... " >&6; }
23470 if ${ac_cv_lib_ltdl_dlopen+:} false; then :
23471 $as_echo_n "(cached) " >&6
23473 ac_check_lib_save_LIBS=$LIBS
23474 LIBS="-lltdl $LIBS"
23475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23476 /* end confdefs.h. */
23478 /* Override any GCC internal prototype to avoid an error.
23479 Use char because int might match the return type of a GCC
23480 builtin and then its argument prototype would still apply. */
23493 if ac_fn_c_try_link "$LINENO"; then :
23494 ac_cv_lib_ltdl_dlopen=yes
23496 ac_cv_lib_ltdl_dlopen=no
23498 rm -f core conftest.err conftest.$ac_objext \
23499 conftest$ac_exeext conftest.$ac_ext
23500 LIBS=$ac_check_lib_save_LIBS
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
23503 $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
23504 if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
23505 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
23513 $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
23515 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
23525 if test x$enable_joystick = xyes; then
23526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
23527 $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
23528 if ${ac_cv_lib_usbhid_hid_init+:} false; then :
23529 $as_echo_n "(cached) " >&6
23531 ac_check_lib_save_LIBS=$LIBS
23532 LIBS="-lusbhid $LIBS"
23533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23534 /* end confdefs.h. */
23536 /* Override any GCC internal prototype to avoid an error.
23537 Use char because int might match the return type of a GCC
23538 builtin and then its argument prototype would still apply. */
23546 return hid_init ();
23551 if ac_fn_c_try_link "$LINENO"; then :
23552 ac_cv_lib_usbhid_hid_init=yes
23554 ac_cv_lib_usbhid_hid_init=no
23556 rm -f core conftest.err conftest.$ac_objext \
23557 conftest$ac_exeext conftest.$ac_ext
23558 LIBS=$ac_check_lib_save_LIBS
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
23561 $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
23562 if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
23566 if test x$have_libusbhid = xyes; then
23567 ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
23568 if test "x$ac_cv_header_usbhid_h" = xyes; then :
23569 USB_CFLAGS="-DHAVE_USBHID_H"
23573 ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
23574 if test "x$ac_cv_header_libusbhid_h" = xyes; then :
23575 USB_CFLAGS="-DHAVE_LIBUSBHID_H"
23579 USB_LIBS="$USB_LIBS -lusbhid"
23581 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
23582 if test "x$ac_cv_header_usb_h" = xyes; then :
23583 USB_CFLAGS="-DHAVE_USB_H"
23587 ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
23588 if test "x$ac_cv_header_libusb_h" = xyes; then :
23589 USB_CFLAGS="-DHAVE_LIBUSB_H"
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
23594 $as_echo_n "checking for hid_init in -lusb... " >&6; }
23595 if ${ac_cv_lib_usb_hid_init+:} false; then :
23596 $as_echo_n "(cached) " >&6
23598 ac_check_lib_save_LIBS=$LIBS
23600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23601 /* end confdefs.h. */
23603 /* Override any GCC internal prototype to avoid an error.
23604 Use char because int might match the return type of a GCC
23605 builtin and then its argument prototype would still apply. */
23613 return hid_init ();
23618 if ac_fn_c_try_link "$LINENO"; then :
23619 ac_cv_lib_usb_hid_init=yes
23621 ac_cv_lib_usb_hid_init=no
23623 rm -f core conftest.err conftest.$ac_objext \
23624 conftest$ac_exeext conftest.$ac_ext
23625 LIBS=$ac_check_lib_save_LIBS
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
23628 $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
23629 if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
23630 USB_LIBS="$USB_LIBS -lusb"
23635 save_CFLAGS="$CFLAGS"
23636 CFLAGS="$CFLAGS $USB_CFLAGS"
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
23639 $as_echo_n "checking for usbhid... " >&6; }
23641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23642 /* end confdefs.h. */
23644 #include <sys/types.h>
23645 #if defined(HAVE_USB_H)
23648 #ifdef __DragonFly__
23649 # include <bus/usb/usb.h>
23650 # include <bus/usb/usbhid.h>
23652 # include <dev/usb/usb.h>
23653 # include <dev/usb/usbhid.h>
23655 #if defined(HAVE_USBHID_H)
23656 #include <usbhid.h>
23657 #elif defined(HAVE_LIBUSB_H)
23658 #include <libusb.h>
23659 #elif defined(HAVE_LIBUSBHID_H)
23660 #include <libusbhid.h>
23667 struct report_desc *repdesc;
23668 struct usb_ctl_report *repbuf;
23669 hid_kind_t hidkind;
23675 if ac_fn_c_try_compile "$LINENO"; then :
23680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
23682 $as_echo "$have_usbhid" >&6; }
23684 if test x$have_usbhid = xyes; then
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
23686 $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
23687 have_usbhid_ucr_data=no
23688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23689 /* end confdefs.h. */
23691 #include <sys/types.h>
23692 #if defined(HAVE_USB_H)
23695 #ifdef __DragonFly__
23696 # include <bus/usb/usb.h>
23697 # include <bus/usb/usbhid.h>
23699 # include <dev/usb/usb.h>
23700 # include <dev/usb/usbhid.h>
23702 #if defined(HAVE_USBHID_H)
23703 #include <usbhid.h>
23704 #elif defined(HAVE_LIBUSB_H)
23705 #include <libusb.h>
23706 #elif defined(HAVE_LIBUSBHID_H)
23707 #include <libusbhid.h>
23714 struct usb_ctl_report buf;
23715 if (buf.ucr_data) { }
23721 if ac_fn_c_try_compile "$LINENO"; then :
23723 have_usbhid_ucr_data=yes
23726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23727 if test x$have_usbhid_ucr_data = xyes; then
23728 USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
23731 $as_echo "$have_usbhid_ucr_data" >&6; }
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
23734 $as_echo_n "checking for new usbhid API... " >&6; }
23736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23737 /* end confdefs.h. */
23739 #include <sys/types.h>
23740 #if defined(HAVE_USB_H)
23743 #ifdef __DragonFly__
23744 #include <bus/usb/usb.h>
23745 #include <bus/usb/usbhid.h>
23747 #include <dev/usb/usb.h>
23748 #include <dev/usb/usbhid.h>
23750 #if defined(HAVE_USBHID_H)
23751 #include <usbhid.h>
23752 #elif defined(HAVE_LIBUSB_H)
23753 #include <libusb.h>
23754 #elif defined(HAVE_LIBUSBHID_H)
23755 #include <libusbhid.h>
23763 hid_start_parse(d, 1, 1);
23769 if ac_fn_c_try_compile "$LINENO"; then :
23771 have_usbhid_new=yes
23774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23775 if test x$have_usbhid_new = xyes; then
23776 USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
23779 $as_echo "$have_usbhid_new" >&6; }
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
23782 $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
23783 have_machine_joystick=no
23784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23785 /* end confdefs.h. */
23787 #include <machine/joystick.h>
23799 if ac_fn_c_try_compile "$LINENO"; then :
23801 have_machine_joystick=yes
23804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805 if test x$have_machine_joystick = xyes; then
23807 $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
23811 $as_echo "$have_machine_joystick" >&6; }
23814 $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
23816 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
23817 EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
23818 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
23821 CFLAGS="$save_CFLAGS"
23827 CheckClockGettime()
23829 # Check whether --enable-clock_gettime was given.
23830 if test "${enable_clock_gettime+set}" = set; then :
23831 enableval=$enable_clock_gettime;
23833 enable_clock_gettime=yes
23836 if test x$enable_clock_gettime = xyes; then
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
23838 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
23839 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
23840 $as_echo_n "(cached) " >&6
23842 ac_check_lib_save_LIBS=$LIBS
23844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23845 /* end confdefs.h. */
23847 /* Override any GCC internal prototype to avoid an error.
23848 Use char because int might match the return type of a GCC
23849 builtin and then its argument prototype would still apply. */
23853 char clock_gettime ();
23857 return clock_gettime ();
23862 if ac_fn_c_try_link "$LINENO"; then :
23863 ac_cv_lib_rt_clock_gettime=yes
23865 ac_cv_lib_rt_clock_gettime=no
23867 rm -f core conftest.err conftest.$ac_objext \
23868 conftest$ac_exeext conftest.$ac_ext
23869 LIBS=$ac_check_lib_save_LIBS
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
23872 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
23873 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
23874 have_clock_gettime=yes
23877 if test x$have_clock_gettime = xyes; then
23879 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23881 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
23884 $as_echo_n "checking for clock_gettime in -lc... " >&6; }
23885 if ${ac_cv_lib_c_clock_gettime+:} false; then :
23886 $as_echo_n "(cached) " >&6
23888 ac_check_lib_save_LIBS=$LIBS
23890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23891 /* end confdefs.h. */
23893 /* Override any GCC internal prototype to avoid an error.
23894 Use char because int might match the return type of a GCC
23895 builtin and then its argument prototype would still apply. */
23899 char clock_gettime ();
23903 return clock_gettime ();
23908 if ac_fn_c_try_link "$LINENO"; then :
23909 ac_cv_lib_c_clock_gettime=yes
23911 ac_cv_lib_c_clock_gettime=no
23913 rm -f core conftest.err conftest.$ac_objext \
23914 conftest$ac_exeext conftest.$ac_ext
23915 LIBS=$ac_check_lib_save_LIBS
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
23918 $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
23919 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
23920 have_clock_gettime=yes
23923 if test x$have_clock_gettime = xyes; then
23925 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23927 EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
23933 CheckLinuxVersion()
23935 ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
23936 if test "x$ac_cv_header_linux_version_h" = xyes; then :
23937 have_linux_version_h=yes
23941 if test x$have_linux_version_h = xyes; then
23942 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
23948 # Check whether --enable-rpath was given.
23949 if test "${enable_rpath+set}" = set; then :
23950 enableval=$enable_rpath;
23960 *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
23965 ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
23966 CFLAGS="$CFLAGS $ANDROID_CFLAGS"
23967 SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
23968 EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
23969 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
23970 SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
23972 if test x$enable_video = xyes; then
23973 SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
23974 # FIXME: confdefs? Not AC_DEFINE?
23975 $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
23976 SUMMARY_video="${SUMMARY_video} android"
23979 *-*-linux*) ARCH=linux ;;
23980 *-*-uclinux*) ARCH=linux ;;
23981 *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
23982 *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
23983 *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
23984 *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
23985 *-*-bsdi*) ARCH=bsdi ;;
23986 *-*-freebsd*) ARCH=freebsd ;;
23987 *-*-dragonfly*) ARCH=freebsd ;;
23988 *-*-netbsd*) ARCH=netbsd ;;
23989 *-*-openbsd*) ARCH=openbsd ;;
23990 *-*-sysv5*) ARCH=sysv5 ;;
23991 *-*-solaris*) ARCH=solaris ;;
23992 *-*-hpux*) ARCH=hpux ;;
23993 *-*-aix*) ARCH=aix ;;
23994 *-*-minix*) ARCH=minix ;;
23999 CheckVisibilityHidden
24000 #CheckDeclarationAfterStatement
24015 # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
24045 # Set up files for the audio library
24046 if test x$enable_audio = xyes; then
24048 sysv5|solaris|hpux)
24050 $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
24052 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
24053 SUMMARY_audio="${SUMMARY_audio} sun"
24056 netbsd) # Don't use this on OpenBSD, it's busted.
24058 $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
24060 SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
24061 SUMMARY_audio="${SUMMARY_audio} netbsd"
24066 $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
24068 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
24069 SUMMARY_audio="${SUMMARY_audio} paudio"
24074 $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
24076 SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
24077 SUMMARY_audio="${SUMMARY_audio} android"
24085 # Set up files for the joystick library
24086 if test x$have_joystick != xyes; then
24087 if test x$enable_joystick = xyes; then
24091 $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
24095 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
24096 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
24101 $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
24103 SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
24104 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
24110 # Set up files for the haptic library
24111 if test x$enable_haptic = xyes; then
24114 if test x$use_input_events = xyes; then
24116 $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
24118 SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
24124 $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
24126 SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
24131 # Set up files for the power library
24132 if test x$enable_power = xyes; then
24136 $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
24138 SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
24143 $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
24145 SOURCES="$SOURCES $srcdir/src/power/android/*.c"
24150 # Set up files for the filesystem library
24151 if test x$enable_filesystem = xyes; then
24155 $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
24157 SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
24158 have_filesystem=yes
24162 $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
24164 SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
24165 have_filesystem=yes
24169 # Set up files for the timer library
24170 if test x$enable_timers = xyes; then
24172 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
24174 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
24177 # Set up files for udev hotplugging support
24178 if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
24179 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
24181 # Set up files for evdev input
24182 if test x$use_input_events = xyes; then
24183 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
24185 # Set up other core UNIX files
24186 SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
24188 *-*-cygwin* | *-*-mingw32*)
24190 if test "$build" != "$host"; then # cross-compiling
24191 # Default cross-compile location
24192 ac_default_prefix=/usr/local/cross-tools/$host
24194 # Look for the location of the tools and install there
24195 if test "$BUILD_PREFIX" != ""; then
24196 ac_default_prefix=$BUILD_PREFIX
24199 #CheckDeclarationAfterStatement
24209 # Set up the core platform files
24210 SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
24212 # Set up files for the video library
24213 if test x$enable_video = xyes; then
24215 $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
24217 SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
24219 # Check whether --enable-render-d3d was given.
24220 if test "${enable_render_d3d+set}" = set; then :
24221 enableval=$enable_render_d3d;
24223 enable_render_d3d=yes
24226 if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
24228 $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
24231 if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
24233 $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
24237 # Set up files for the audio library
24238 if test x$enable_audio = xyes; then
24240 $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
24242 SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
24243 if test x$have_dsound = xyes; then
24245 $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
24247 SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
24249 if test x$have_wasapi = xyes; then
24251 $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
24253 SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
24257 # Set up files for the joystick library
24258 if test x$enable_joystick = xyes; then
24259 if test x$have_dinput = xyes -o x$have_xinput = xyes; then
24260 if test x$have_xinput = xyes; then
24262 $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
24265 if test x$have_dinput = xyes; then
24267 $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
24269 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
24273 $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
24276 SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
24279 if test x$enable_haptic = xyes; then
24280 if test x$have_dinput = xyes -o x$have_xinput = xyes; then
24281 if test x$have_xinput = xyes; then
24283 $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
24286 if test x$have_dinput = xyes; then
24288 $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
24291 SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
24295 if test x$enable_power = xyes; then
24297 $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
24299 SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
24302 if test x$enable_filesystem = xyes; then
24304 $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
24306 SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
24307 have_filesystem=yes
24309 # Set up files for the thread library
24310 if test x$enable_threads = xyes; then
24312 $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
24314 SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
24315 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
24318 # Set up files for the timer library
24319 if test x$enable_timers = xyes; then
24321 $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
24323 SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
24326 # Set up files for the shared object loading library
24327 if test x$enable_loadso = xyes; then
24329 $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
24331 SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
24334 # Set up the system libraries we need
24335 if test -f /lib/w32api/libuuid.a; then
24336 LIBUUID=/lib/w32api/libuuid.a
24340 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
24341 # The Windows platform requires special setup
24342 VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
24343 SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
24344 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
24345 SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
24347 # Check to see if this is a mingw or cygwin build
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
24350 $as_echo_n "checking for main in -lmingw32... " >&6; }
24351 if ${ac_cv_lib_mingw32_main+:} false; then :
24352 $as_echo_n "(cached) " >&6
24354 ac_check_lib_save_LIBS=$LIBS
24355 LIBS="-lmingw32 $LIBS"
24356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24357 /* end confdefs.h. */
24368 if ac_fn_c_try_link "$LINENO"; then :
24369 ac_cv_lib_mingw32_main=yes
24371 ac_cv_lib_mingw32_main=no
24373 rm -f core conftest.err conftest.$ac_objext \
24374 conftest$ac_exeext conftest.$ac_ext
24375 LIBS=$ac_check_lib_save_LIBS
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
24378 $as_echo "$ac_cv_lib_mingw32_main" >&6; }
24379 if test "x$ac_cv_lib_mingw32_main" = xyes; then :
24383 if test x$have_mingw32 = xyes; then
24384 SDL_LIBS="-lmingw32 $SDL_LIBS"
24386 SDL_LIBS="-lcygwin $SDL_LIBS"
24392 *** BeOS support has been removed as of SDL 2.0.2.
24398 ac_default_prefix=/boot/system
24406 # Set up files for the audio library
24407 if test x$enable_audio = xyes; then
24409 $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
24411 SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
24414 # Set up files for the joystick library
24415 if test x$enable_joystick = xyes; then
24417 $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
24419 SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
24422 # Set up files for the timer library
24423 if test x$enable_timers = xyes; then
24425 $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
24427 SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
24430 # Set up files for the system power library
24431 if test x$enable_power = xyes; then
24433 $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
24435 SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
24438 # Set up files for the system filesystem library
24439 if test x$enable_filesystem = xyes; then
24441 $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
24443 SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
24444 have_filesystem=yes
24446 # The Haiku platform requires special setup.
24447 SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
24448 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
24449 # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
24450 # other spins, like x86-64, use a more standard "libstdc++.so.*"
24451 as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
24453 $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
24454 if eval \${$as_ac_File+:} false; then :
24455 $as_echo_n "(cached) " >&6
24457 test "$cross_compiling" = yes &&
24458 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
24459 if test -r ""/boot/system/lib/libstdc++.r4.so""; then
24460 eval "$as_ac_File=yes"
24462 eval "$as_ac_File=no"
24465 eval ac_res=\$$as_ac_File
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24467 $as_echo "$ac_res" >&6; }
24468 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
24469 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
24471 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
24475 arm*-apple-darwin*|*-ios-*)
24478 CheckVisibilityHidden
24479 #CheckDeclarationAfterStatement
24488 # Set up files for the audio library
24489 if test x$enable_audio = xyes; then
24491 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
24493 SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
24494 SUMMARY_audio="${SUMMARY_audio} coreaudio"
24497 # Set up files for the joystick library
24498 if test x$enable_joystick = xyes; then
24500 $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
24502 SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
24503 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
24506 # Set up files for the haptic library
24507 #if test x$enable_haptic = xyes; then
24508 # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
24510 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
24512 # Set up files for the power library
24513 if test x$enable_power = xyes; then
24515 $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
24517 SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
24520 # Set up files for the filesystem library
24521 if test x$enable_filesystem = xyes; then
24522 SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
24523 have_filesystem=yes
24525 # Set up additional files for the file library
24526 if test x$enable_file = xyes; then
24528 $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
24530 SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
24532 # Set up files for the timer library
24533 if test x$enable_timers = xyes; then
24535 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
24537 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
24540 # Set up other core UNIX files
24541 SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
24542 # The iOS platform requires special setup.
24544 $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
24547 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
24550 $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
24553 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
24556 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
24558 SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
24559 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
24560 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
24561 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
24562 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
24563 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
24564 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
24565 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
24566 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
24567 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
24568 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
24569 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
24571 if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
24572 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
24576 # This could be either full "Mac OS X", or plain "Darwin" which is
24577 # just the OS X kernel sans upper layers like Carbon and Cocoa.
24578 # Next line is broken, and a few files below require Mac OS X (full)
24581 # Mac OS X builds with both the Carbon and OSX APIs at the moment
24582 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
24583 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
24585 CheckVisibilityHidden
24586 #CheckDeclarationAfterStatement
24599 # Set up files for the audio library
24600 if test x$enable_audio = xyes; then
24602 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
24604 SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
24605 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
24606 SUMMARY_audio="${SUMMARY_audio} coreaudio"
24609 # Set up files for the joystick library
24610 if test x$enable_joystick = xyes; then
24612 $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
24614 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
24617 # Set up files for the haptic library
24618 if test x$enable_haptic = xyes; then
24620 $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
24622 SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
24623 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
24626 # Set up files for the power library
24627 if test x$enable_power = xyes; then
24629 $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
24631 SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
24634 # Set up files for the filesystem library
24635 if test x$enable_filesystem = xyes; then
24637 $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
24639 SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
24640 have_filesystem=yes
24642 # Set up files for the timer library
24643 if test x$enable_timers = xyes; then
24645 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
24647 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
24650 # Set up additional files for the file library
24651 if test x$enable_file = xyes; then
24652 SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
24654 # Set up other core UNIX files
24655 SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
24656 # The Mac OS X platform requires special setup.
24657 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
24658 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
24659 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
24660 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
24661 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
24663 if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
24664 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
24675 # Set up files for the timer library
24676 if test x$enable_timers = xyes; then
24678 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
24680 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
24684 if test x$enable_filesystem = xyes; then
24686 $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
24688 SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
24689 have_filesystem=yes
24693 if test x$enable_video = xyes; then
24695 $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
24697 SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
24699 SUMMARY_video="${SUMMARY_video} emscripten"
24702 if test x$enable_audio = xyes; then
24704 $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
24706 SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
24708 SUMMARY_audio="${SUMMARY_audio} emscripten"
24711 CheckVisibilityHidden
24712 #CheckDeclarationAfterStatement
24718 CheckEmscriptenGLES
24720 # Set up files for the power library
24721 if test x$enable_power = xyes; then
24723 $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
24725 SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
24729 # Set up files for the power library
24730 if test x$enable_joystick = xyes; then
24732 $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
24734 SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
24738 # Set up files for the filesystem library
24739 if test x$enable_filesystem = xyes; then
24741 $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
24743 SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
24744 have_filesystem=yes
24746 # Set up files for the timer library
24747 if test x$enable_timers = xyes; then
24749 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
24751 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
24757 *** Unsupported host: Please add to configure.in
24762 # Verify that we have all the platform specific files we need
24764 if test x$have_joystick != xyes; then
24765 if test x$enable_joystick = xyes; then
24767 $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
24770 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
24772 if test x$have_haptic != xyes; then
24773 if test x$enable_haptic = xyes; then
24775 $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
24778 SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
24780 if test x$have_threads != xyes; then
24781 if test x$enable_threads = xyes; then
24783 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
24786 SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
24788 if test x$have_timers != xyes; then
24789 if test x$enable_timers = xyes; then
24791 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
24794 SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
24796 if test x$have_filesystem != xyes; then
24797 if test x$enable_filesystem = xyes; then
24799 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
24802 SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
24804 if test x$have_loadso != xyes; then
24805 if test x$enable_loadso = xyes; then
24807 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
24810 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
24812 if test x$SDLMAIN_SOURCES = x; then
24813 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
24815 SDLTEST_SOURCES="$srcdir/src/test/*.c"
24817 if test x$video_wayland = xyes; then
24818 WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
24819 WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
24820 WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
24821 sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
24822 WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
24823 sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
24824 GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
24825 GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
24827 WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
24828 $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
24829 \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
24830 \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
24832 WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
24833 $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
24834 \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
24835 \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
24837 WAYLAND_CORE_PROTOCOL_OBJECT="
24838 \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
24839 \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
24841 WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
24842 do echo ; echo \$p | sed\
24843 "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
24844 \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
24845 \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
24847 WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
24848 do echo ; echo \$p | sed\
24849 "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
24850 \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
24851 \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
24853 WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
24854 do echo ; echo \$p | sed\
24855 "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
24856 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
24858 WAYLAND_PROTOCOLS_DEPENDS="
24859 $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
24860 $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
24861 $WAYLAND_CORE_PROTOCOL_OBJECT
24862 $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
24863 $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
24864 $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
24868 OBJECTS=`echo $SOURCES`
24869 DEPENDS=`echo $SOURCES | tr ' ' '\n'`
24870 for EXT in asm cc m c S; do
24871 OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
24872 DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
24873 \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
24874 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
24877 GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
24879 VERSION_OBJECTS=`echo $VERSION_SOURCES`
24880 VERSION_DEPENDS=`echo $VERSION_SOURCES`
24881 VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
24882 VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
24883 \\$(objects)/\\2.o: \\1/\\2.rc\\\\
24884 \\$(WINDRES) \\$< \\$@,g"`
24886 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
24887 SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
24888 SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
24889 SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
24890 \\$(objects)/\\2.lo: \\1/\\2.c\\\\
24891 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
24893 SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
24894 SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
24895 SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
24896 SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
24897 \\$(objects)/\\2.lo: \\1/\\2.c\\\\
24898 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
24900 # Set runtime shared library paths as needed
24902 if test "x$enable_rpath" = "xyes"; then
24903 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
24904 SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
24907 $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
24908 have_enable_new_dtags=no
24909 save_LDFLAGS="$LDFLAGS"
24910 LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
24911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24912 /* end confdefs.h. */
24924 if ac_fn_c_try_link "$LINENO"; then :
24926 have_enable_new_dtags=yes
24927 SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
24930 rm -f core conftest.err conftest.$ac_objext \
24931 conftest$ac_exeext conftest.$ac_ext
24932 LDFLAGS="$save_LDFLAGS"
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
24934 $as_echo "$have_enable_new_dtags" >&6; }
24936 if test $ARCH = solaris; then
24937 SDL_RLD_FLAGS="-R\${libdir}"
24943 SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
24949 if test x$enable_shared = xyes; then
24950 ENABLE_SHARED_TRUE=
24951 ENABLE_SHARED_FALSE="#"
24953 ENABLE_SHARED_TRUE="#"
24954 ENABLE_SHARED_FALSE=
24956 if test x$enable_static = xyes; then
24957 ENABLE_STATIC_TRUE=
24958 ENABLE_STATIC_FALSE="#"
24960 ENABLE_STATIC_TRUE="#"
24961 ENABLE_STATIC_FALSE=
24983 cat >Makefile.rules <<__EOF__
24985 # Build rules for objects
24986 -include \$(OBJECTS:.lo=.d)
24988 # Special dependency for SDL.c, since it depends on SDL_revision.h
24989 $srcdir/src/SDL.c: update-revision
24994 $WAYLAND_PROTOCOLS_DEPENDS
24997 ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
24999 ac_config_commands="$ac_config_commands sdl2_config"
25002 SUMMARY="${SUMMARY}SDL2 Configure Summary:\n"
25003 if test x$enable_shared = xyes; then
25004 SUMMARY="${SUMMARY}Building Shared Libraries\n"
25006 if test x$enable_static = xyes; then
25007 SUMMARY="${SUMMARY}Building Static Libraries\n"
25009 SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
25010 SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
25011 SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
25012 SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
25013 if test x$have_x = xyes; then
25014 SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
25016 SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
25017 if test x$have_samplerate_h_hdr = xyes; then
25018 SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
25020 SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
25022 if test x$have_libudev_h_hdr = xyes; then
25023 SUMMARY="${SUMMARY}Using libudev : YES\n"
25025 SUMMARY="${SUMMARY}Using libudev : NO\n"
25027 if test x$have_dbus_dbus_h_hdr = xyes; then
25028 SUMMARY="${SUMMARY}Using dbus : YES\n"
25030 SUMMARY="${SUMMARY}Using dbus : NO\n"
25032 if test x$enable_ime = xyes; then
25033 SUMMARY="${SUMMARY}Using ime : YES\n"
25035 SUMMARY="${SUMMARY}Using ime : NO\n"
25037 if test x$have_ibus_ibus_h_hdr = xyes; then
25038 SUMMARY="${SUMMARY}Using ibus : YES\n"
25040 SUMMARY="${SUMMARY}Using ibus : NO\n"
25042 if test x$have_fcitx_frontend_h_hdr = xyes; then
25043 SUMMARY="${SUMMARY}Using fcitx : YES\n"
25045 SUMMARY="${SUMMARY}Using fcitx : NO\n"
25047 ac_config_commands="$ac_config_commands summary"
25050 cat >confcache <<\_ACEOF
25051 # This file is a shell script that caches the results of configure
25052 # tests run on this system so they can be shared between configure
25053 # scripts and configure runs, see configure's option --config-cache.
25054 # It is not useful on other systems. If it contains results you don't
25055 # want to keep, you may remove or edit it.
25057 # config.status only pays attention to the cache file if you give it
25058 # the --recheck option to rerun configure.
25060 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25061 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25062 # following values.
25066 # The following way of writing the cache mishandles newlines in values,
25067 # but we know of no workaround that is simple, portable, and efficient.
25068 # So, we kill variables containing newlines.
25069 # Ultrix sh set writes to stderr and can't be redirected directly,
25070 # and sets the high bit in the cache file unless we assign to the vars.
25072 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25073 eval ac_val=\$$ac_var
25077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25078 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25081 _ | IFS | as_nl) ;; #(
25082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25083 *) { eval $ac_var=; unset $ac_var;} ;;
25089 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25090 *${as_nl}ac_space=\ *)
25091 # `set' does not quote correctly, so add quotes: double-quote
25092 # substitution turns \\\\ into \\, and sed turns \\ into \.
25095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25098 # `set' quotes correctly as required by POSIX, so do not add quotes.
25099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25108 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25110 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25112 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25113 if test -w "$cache_file"; then
25114 if test "x$cache_file" != "x/dev/null"; then
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25116 $as_echo "$as_me: updating cache $cache_file" >&6;}
25117 if test ! -f "$cache_file" || test -h "$cache_file"; then
25118 cat confcache >"$cache_file"
25120 case $cache_file in #(
25122 mv -f confcache "$cache_file"$$ &&
25123 mv -f "$cache_file"$$ "$cache_file" ;; #(
25125 mv -f confcache "$cache_file" ;;
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25131 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25136 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25137 # Let make expand exec_prefix.
25138 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25140 DEFS=-DHAVE_CONFIG_H
25145 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25146 # 1. Remove the extension, and $U if already installed.
25147 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25148 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25149 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25150 # will be set to the directory where LIBOBJS objects are built.
25151 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25152 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25154 LIBOBJS=$ac_libobjs
25156 LTLIBOBJS=$ac_ltlibobjs
25160 : "${CONFIG_STATUS=./config.status}"
25162 ac_clean_files_save=$ac_clean_files
25163 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25165 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25167 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25169 # Generated by $as_me.
25170 # Run this file to recreate the current configuration.
25171 # Compiler output produced by configure, useful for debugging
25172 # configure, is in config.log if it exists.
25175 ac_cs_recheck=false
25178 SHELL=\${CONFIG_SHELL-$SHELL}
25181 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25182 ## -------------------- ##
25183 ## M4sh Initialization. ##
25184 ## -------------------- ##
25186 # Be more Bourne compatible
25187 DUALCASE=1; export DUALCASE # for MKS sh
25188 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25191 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25192 # is contrary to our usage. Disable this feature.
25193 alias -g '${1+"$@"}'='"$@"'
25194 setopt NO_GLOB_SUBST
25196 case `(set -o) 2>/dev/null` in #(
25208 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25209 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25210 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25211 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25212 # Prefer a ksh shell builtin over an external printf program on Solaris,
25213 # but without wasting forks for bash or zsh.
25214 if test -z "$BASH_VERSION$ZSH_VERSION" \
25215 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25216 as_echo='print -r --'
25217 as_echo_n='print -rn --'
25218 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25219 as_echo='printf %s\n'
25220 as_echo_n='printf %s'
25222 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25223 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25224 as_echo_n='/usr/ucb/echo -n'
25226 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25227 as_echo_n_body='eval
25231 expr "X$arg" : "X\\(.*\\)$as_nl";
25232 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25234 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25236 export as_echo_n_body
25237 as_echo_n='sh -c $as_echo_n_body as_echo'
25239 export as_echo_body
25240 as_echo='sh -c $as_echo_body as_echo'
25243 # The user is always right.
25244 if test "${PATH_SEPARATOR+set}" != set; then
25246 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25247 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25254 # We need space, tab and new line, in precisely that order. Quoting is
25255 # there to prevent editors from complaining about space-tab.
25256 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25257 # splitting by setting IFS to empty value.)
25260 # Find who we are. Look in the path if we contain no directory separator.
25263 *[\\/]* ) as_myself=$0 ;;
25264 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25265 for as_dir in $PATH
25268 test -z "$as_dir" && as_dir=.
25269 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25275 # We did not find ourselves, most probably we were run as `sh COMMAND'
25276 # in which case we are not to be found in the path.
25277 if test "x$as_myself" = x; then
25280 if test ! -f "$as_myself"; then
25281 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25285 # Unset variables that we do not need and which cause bugs (e.g. in
25286 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25287 # suppresses any "Segmentation fault" message there. '((' could
25288 # trigger a bug in pdksh 5.2.14.
25289 for as_var in BASH_ENV ENV MAIL MAILPATH
25290 do eval test x\${$as_var+set} = xset \
25291 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25304 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25307 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25308 # ----------------------------------------
25309 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25310 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25311 # script with STATUS, using 1 if that was 0.
25314 as_status=$1; test $as_status -eq 0 && as_status=1
25316 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25317 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25319 $as_echo "$as_me: error: $2" >&2
25320 as_fn_exit $as_status
25324 # as_fn_set_status STATUS
25325 # -----------------------
25326 # Set $? to STATUS, without forking.
25327 as_fn_set_status ()
25330 } # as_fn_set_status
25332 # as_fn_exit STATUS
25333 # -----------------
25334 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25338 as_fn_set_status $1
25344 # Portably unset VAR.
25347 { eval $1=; unset $1;}
25349 as_unset=as_fn_unset
25350 # as_fn_append VAR VALUE
25351 # ----------------------
25352 # Append the text in VALUE to the end of the definition contained in VAR. Take
25353 # advantage of any shell optimizations that allow amortized linear growth over
25354 # repeated appends, instead of the typical quadratic growth present in naive
25356 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25357 eval 'as_fn_append ()
25368 # as_fn_arith ARG...
25369 # ------------------
25370 # Perform arithmetic evaluation on the ARGs, and store the result in the
25371 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25372 # must be portable across $(()) and expr.
25373 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25374 eval 'as_fn_arith ()
25381 as_val=`expr "$@" || test $? -eq 1`
25386 if expr a : '\(a\)' >/dev/null 2>&1 &&
25387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25394 as_basename=basename
25399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25405 as_me=`$as_basename -- "$0" ||
25406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25407 X"$0" : 'X\(//\)$' \| \
25408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25410 sed '/^.*\/\([^/][^/]*\)\/*$/{
25424 # Avoid depending upon Character Ranges.
25425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25428 as_cr_digits='0123456789'
25429 as_cr_alnum=$as_cr_Letters$as_cr_digits
25431 ECHO_C= ECHO_N= ECHO_T=
25432 case `echo -n x` in #(((((
25434 case `echo 'xy\c'` in
25435 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25437 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25444 rm -f conf$$ conf$$.exe conf$$.file
25445 if test -d conf$$.dir; then
25446 rm -f conf$$.dir/conf$$.file
25449 mkdir conf$$.dir 2>/dev/null
25451 if (echo >conf$$.file) 2>/dev/null; then
25452 if ln -s conf$$.file conf$$ 2>/dev/null; then
25454 # ... but there are two gotchas:
25455 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25456 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25457 # In both cases, we have to default to `cp -pR'.
25458 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25460 elif ln conf$$.file conf$$ 2>/dev/null; then
25468 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25469 rmdir conf$$.dir 2>/dev/null
25474 # Create "$as_dir" as a directory, including parents if necessary.
25479 -*) as_dir=./$as_dir;;
25481 test -d "$as_dir" || eval $as_mkdir_p || {
25485 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25486 *) as_qdir=$as_dir;;
25488 as_dirs="'$as_qdir' $as_dirs"
25489 as_dir=`$as_dirname -- "$as_dir" ||
25490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25491 X"$as_dir" : 'X\(//\)[^/]' \| \
25492 X"$as_dir" : 'X\(//\)$' \| \
25493 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25494 $as_echo X"$as_dir" |
25495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25499 /^X\(\/\/\)[^/].*/{
25512 test -d "$as_dir" && break
25514 test -z "$as_dirs" || eval "mkdir $as_dirs"
25515 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25519 if mkdir -p . 2>/dev/null; then
25520 as_mkdir_p='mkdir -p "$as_dir"'
25522 test -d ./-p && rmdir ./-p
25527 # as_fn_executable_p FILE
25528 # -----------------------
25529 # Test if FILE is an executable regular file.
25530 as_fn_executable_p ()
25532 test -f "$1" && test -x "$1"
25533 } # as_fn_executable_p
25534 as_test_x='test -x'
25535 as_executable_p=as_fn_executable_p
25537 # Sed expression to map a string onto a valid CPP name.
25538 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25540 # Sed expression to map a string onto a valid variable name.
25541 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25545 ## ----------------------------------- ##
25546 ## Main body of $CONFIG_STATUS script. ##
25547 ## ----------------------------------- ##
25549 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25552 # Save the log message, to keep $0 and so on meaningful, and to
25553 # report actual input values of CONFIG_FILES etc. instead of their
25554 # values after options handling.
25556 This file was extended by $as_me, which was
25557 generated by GNU Autoconf 2.69. Invocation command line was
25559 CONFIG_FILES = $CONFIG_FILES
25560 CONFIG_HEADERS = $CONFIG_HEADERS
25561 CONFIG_LINKS = $CONFIG_LINKS
25562 CONFIG_COMMANDS = $CONFIG_COMMANDS
25565 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25570 case $ac_config_files in *"
25571 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25574 case $ac_config_headers in *"
25575 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25580 # Files that config.status was made for.
25581 config_files="$ac_config_files"
25582 config_headers="$ac_config_headers"
25583 config_commands="$ac_config_commands"
25587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25589 \`$as_me' instantiates files and other configuration actions
25590 from templates according to the current configuration. Unless the files
25591 and actions are specified as TAGs, all are instantiated by default.
25593 Usage: $0 [OPTION]... [TAG]...
25595 -h, --help print this help, then exit
25596 -V, --version print version number and configuration settings, then exit
25597 --config print configuration, then exit
25598 -q, --quiet, --silent
25599 do not print progress messages
25600 -d, --debug don't remove temporary files
25601 --recheck update $as_me by reconfiguring in the same conditions
25602 --file=FILE[:TEMPLATE]
25603 instantiate the configuration file FILE
25604 --header=FILE[:TEMPLATE]
25605 instantiate the configuration header FILE
25607 Configuration files:
25610 Configuration headers:
25613 Configuration commands:
25616 Report bugs to the package provider."
25619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25620 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25623 configured by $0, generated by GNU Autoconf 2.69,
25624 with options \\"\$ac_cs_config\\"
25626 Copyright (C) 2012 Free Software Foundation, Inc.
25627 This config.status script is free software; the Free Software Foundation
25628 gives unlimited permission to copy, distribute and modify it."
25634 test -n "\$AWK" || AWK=awk
25637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25638 # The default lists apply if the user does not specify any file.
25644 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25645 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25649 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25661 # Handling of the options.
25662 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25664 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25665 $as_echo "$ac_cs_version"; exit ;;
25666 --config | --confi | --conf | --con | --co | --c )
25667 $as_echo "$ac_cs_config"; exit ;;
25668 --debug | --debu | --deb | --de | --d | -d )
25670 --file | --fil | --fi | --f )
25673 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25674 '') as_fn_error $? "missing file argument" ;;
25676 as_fn_append CONFIG_FILES " '$ac_optarg'"
25677 ac_need_defaults=false;;
25678 --header | --heade | --head | --hea )
25681 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25683 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25684 ac_need_defaults=false;;
25686 # Conflict between --help and --header
25687 as_fn_error $? "ambiguous option: \`$1'
25688 Try \`$0 --help' for more information.";;
25689 --help | --hel | -h )
25690 $as_echo "$ac_cs_usage"; exit ;;
25691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25692 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25695 # This is an error.
25696 -*) as_fn_error $? "unrecognized option: \`$1'
25697 Try \`$0 --help' for more information." ;;
25699 *) as_fn_append ac_config_targets " $1"
25700 ac_need_defaults=false ;;
25706 ac_configure_extra_args=
25708 if $ac_cs_silent; then
25710 ac_configure_extra_args="$ac_configure_extra_args --silent"
25714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25715 if \$ac_cs_recheck; then
25716 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25718 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25719 CONFIG_SHELL='$SHELL'
25720 export CONFIG_SHELL
25725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25729 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25730 ## Running $as_me. ##
25736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25742 # The HP-UX ksh and POSIX shell print the target directory to stdout
25743 # if CDPATH is set.
25744 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25746 sed_quote_subst='$sed_quote_subst'
25747 double_quote_subst='$double_quote_subst'
25748 delay_variable_subst='$delay_variable_subst'
25749 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25750 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25751 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
25752 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25753 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25754 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25755 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25756 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25757 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25758 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25759 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25760 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25761 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25762 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25763 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25764 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25765 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25766 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25767 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25768 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25769 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25770 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25771 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25772 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25773 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25774 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25775 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25776 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25777 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25778 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25779 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25780 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25781 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25782 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25783 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25784 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25785 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25786 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25787 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25788 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25789 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25790 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25791 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25792 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25793 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25794 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25795 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25796 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25797 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25798 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25799 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25800 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25801 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25802 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25803 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25804 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25805 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25806 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"`'
25807 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25808 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25809 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25810 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25811 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25812 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25813 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25814 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25815 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25816 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25817 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25818 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25819 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25820 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25821 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25822 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25823 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25824 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25825 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25826 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25827 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25828 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25829 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25830 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25831 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25832 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25833 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25834 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25835 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25836 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25837 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25838 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25839 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25840 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25841 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25842 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25843 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25844 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25845 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25846 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25847 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25848 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25849 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25850 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25851 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25852 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25853 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25854 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25855 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25856 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25857 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25858 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25859 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25860 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25861 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25862 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25863 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25864 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25865 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25866 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25867 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25868 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25869 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25870 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25871 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25872 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25873 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25874 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25875 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25876 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25877 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25878 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25879 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25880 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25881 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25882 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25883 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25884 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25885 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25886 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25887 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25888 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25889 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25890 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25891 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25892 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25893 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25894 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25895 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25896 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25897 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25898 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25899 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25900 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25901 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25902 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25903 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25904 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25905 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25906 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25907 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25908 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25909 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25910 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25911 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25912 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25913 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25914 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25915 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25916 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25917 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25918 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25919 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25920 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25921 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25922 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25923 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25924 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25925 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25926 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25927 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25928 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25929 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25930 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25931 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25932 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25933 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25936 LTCFLAGS='$LTCFLAGS'
25937 compiler='$compiler_DEFAULT'
25939 # A function that is used when there is no print builtin or printf.
25940 func_fallback_echo ()
25942 eval 'cat <<_LTECHO_EOF
25947 # Quote evaled strings.
25964 deplibs_check_method \
25968 sharedlib_from_linklib_cmd \
25971 archiver_list_spec \
25977 lt_cv_sys_global_symbol_pipe \
25978 lt_cv_sys_global_symbol_to_cdecl \
25979 lt_cv_sys_global_symbol_to_c_name_address \
25980 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25981 nm_file_list_spec \
25982 lt_prog_compiler_no_builtin_flag \
25983 lt_prog_compiler_pic \
25984 lt_prog_compiler_wl \
25985 lt_prog_compiler_static \
25986 lt_cv_prog_compiler_c_o \
25995 export_dynamic_flag_spec \
25996 whole_archive_flag_spec \
25997 compiler_needs_object \
25999 allow_undefined_flag \
26000 no_undefined_flag \
26001 hardcode_libdir_flag_spec \
26002 hardcode_libdir_separator \
26006 variables_saved_for_relink \
26008 library_names_spec \
26010 install_override_mode \
26014 compiler_lib_search_dirs \
26019 compiler_lib_search_path \
26023 lt_prog_compiler_no_builtin_flag_CXX \
26024 lt_prog_compiler_pic_CXX \
26025 lt_prog_compiler_wl_CXX \
26026 lt_prog_compiler_static_CXX \
26027 lt_cv_prog_compiler_c_o_CXX \
26028 export_dynamic_flag_spec_CXX \
26029 whole_archive_flag_spec_CXX \
26030 compiler_needs_object_CXX \
26032 allow_undefined_flag_CXX \
26033 no_undefined_flag_CXX \
26034 hardcode_libdir_flag_spec_CXX \
26035 hardcode_libdir_separator_CXX \
26036 exclude_expsyms_CXX \
26037 include_expsyms_CXX \
26038 file_list_spec_CXX \
26039 compiler_lib_search_dirs_CXX \
26040 predep_objects_CXX \
26041 postdep_objects_CXX \
26044 compiler_lib_search_path_CXX; do
26045 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26046 *[\\\\\\\`\\"\\\$]*)
26047 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26050 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26055 # Double-quote double-evaled strings.
26056 for var in reload_cmds \
26057 old_postinstall_cmds \
26058 old_postuninstall_cmds \
26060 extract_expsyms_cmds \
26061 old_archive_from_new_cmds \
26062 old_archive_from_expsyms_cmds \
26064 archive_expsym_cmds \
26066 module_expsym_cmds \
26067 export_symbols_cmds \
26071 postuninstall_cmds \
26073 sys_lib_search_path_spec \
26074 sys_lib_dlsearch_path_spec \
26076 old_archive_cmds_CXX \
26077 old_archive_from_new_cmds_CXX \
26078 old_archive_from_expsyms_cmds_CXX \
26080 archive_expsym_cmds_CXX \
26082 module_expsym_cmds_CXX \
26083 export_symbols_cmds_CXX \
26085 postlink_cmds_CXX; do
26086 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26087 *[\\\\\\\`\\"\\\$]*)
26088 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26091 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26096 ac_aux_dir='$ac_aux_dir'
26097 xsi_shell='$xsi_shell'
26098 lt_shell_append='$lt_shell_append'
26100 # See if we are running on zsh, and set the options which allow our
26101 # commands through without removal of \ escapes INIT.
26102 if test -n "\${ZSH_VERSION+set}" ; then
26103 setopt NO_GLOB_SUBST
26109 TIMESTAMP='$TIMESTAMP'
26121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26123 # Handling of arguments.
26124 for ac_config_target in $ac_config_targets
26126 case $ac_config_target in
26127 "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
26128 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26129 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
26130 "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
26131 "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
26132 "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
26133 "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
26134 "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
26135 "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
26137 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26142 # If the user did not use the arguments to specify the items to instantiate,
26143 # then the envvar interface is used. Set only those that are not.
26144 # We use the long form for the default assignment because of an extremely
26145 # bizarre bug on SunOS 4.1.3.
26146 if $ac_need_defaults; then
26147 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26148 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26149 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26152 # Have a temporary directory for convenience. Make it in the build tree
26153 # simply because there is no reason against having it here, and in addition,
26154 # creating and moving files from /tmp can sometimes cause problems.
26155 # Hook for its removal unless debugging.
26156 # Note that there is a small window in which the directory will not be cleaned:
26157 # after its creation but before its name has been assigned to `$tmp'.
26161 trap 'exit_status=$?
26162 : "${ac_tmp:=$tmp}"
26163 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26165 trap 'as_fn_exit 1' 1 2 13 15
26167 # Create a (secure) tmp directory for tmp files.
26170 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26174 tmp=./conf$$-$RANDOM
26175 (umask 077 && mkdir "$tmp")
26176 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26179 # Set up the scripts for CONFIG_FILES section.
26180 # No need to generate them if there are no CONFIG_FILES.
26181 # This happens for instance with `./config.status config.h'.
26182 if test -n "$CONFIG_FILES"; then
26185 ac_cr=`echo X | tr X '\015'`
26186 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26187 # But we know of no other shell where ac_cr would be empty at this
26188 # point, so we can use a bashism as a fallback.
26189 if test "x$ac_cr" = x; then
26190 eval ac_cr=\$\'\\r\'
26192 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26193 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26196 ac_cs_awk_cr=$ac_cr
26199 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26204 echo "cat >conf$$subs.awk <<_ACEOF" &&
26205 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26207 } >conf$$subs.sh ||
26208 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26209 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26211 for ac_last_try in false false false false false :; do
26212 . ./conf$$subs.sh ||
26213 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26215 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26216 if test $ac_delim_n = $ac_delim_num; then
26218 elif $ac_last_try; then
26219 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26221 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26224 rm -f conf$$subs.sh
26226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26227 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26231 s/^/S["/; s/!.*/"]=/
26241 s/\(.\{148\}\)..*/\1/
26243 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26248 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26255 s/\(.\{148\}\)..*/\1/
26257 s/["\\]/\\&/g; s/^/"/; s/$/"/
26261 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26266 ' <conf$$subs.awk | sed '
26271 ' >>$CONFIG_STATUS || ac_write_fail=1
26272 rm -f conf$$subs.awk
26273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26275 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26276 for (key in S) S_is_set[key] = 1
26282 nfields = split(line, field, "@")
26284 len = length(field[1])
26285 for (i = 2; i < nfields; i++) {
26287 keylen = length(key)
26288 if (S_is_set[key]) {
26290 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26291 len += length(value) + length(field[++i])
26302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26303 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26304 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26307 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26308 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26311 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26312 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26313 # trailing colons and then remove the whole line if VPATH becomes empty
26314 # (actually we leave an empty line to preserve line numbers).
26315 if test "x$srcdir" = x.; then
26316 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26335 fi # test -n "$CONFIG_FILES"
26337 # Set up the scripts for CONFIG_HEADERS section.
26338 # No need to generate them if there are no CONFIG_HEADERS.
26339 # This happens for instance with `./config.status Makefile'.
26340 if test -n "$CONFIG_HEADERS"; then
26341 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26345 # Transform confdefs.h into an awk script `defines.awk', embedded as
26346 # here-document in config.status, that substitutes the proper values into
26347 # config.h.in to produce config.h.
26349 # Create a delimiter string that does not exist in confdefs.h, to ease
26350 # handling of long lines.
26352 for ac_last_try in false false :; do
26353 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26354 if test -z "$ac_tt"; then
26356 elif $ac_last_try; then
26357 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26359 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26363 # For the awk script, D is an array of macro values keyed by name,
26364 # likewise P contains macro parameters if any. Preserve backslash
26365 # newline sequences.
26367 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26369 s/.\{148\}/&'"$ac_delim"'/g
26372 s/^[ ]*#[ ]*define[ ][ ]*/ /
26379 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26381 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26385 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26386 D["\1"]=" \3\\\\\\n"\\/p
26388 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26393 s/.\{148\}/&'"$ac_delim"'/g
26398 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26401 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26403 ' <confdefs.h | sed '
26404 s/'"$ac_delim"'/"\\\
26405 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26408 for (key in D) D_is_set[key] = 1
26411 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26413 split(line, arg, " ")
26414 if (arg[1] == "#") {
26418 defundef = substr(arg[1], 2)
26421 split(mac1, mac2, "(") #)
26423 prefix = substr(line, 1, index(line, defundef) - 1)
26424 if (D_is_set[macro]) {
26425 # Preserve the white space surrounding the "#".
26426 print prefix "define", macro P[macro] D[macro]
26429 # Replace #undef with comments. This is necessary, for example,
26430 # in the case of _POSIX_SOURCE, which is predefined and required
26431 # on some systems where configure will not decide to define it.
26432 if (defundef == "undef") {
26433 print "/*", prefix defundef, macro, "*/"
26441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26442 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26443 fi # test -n "$CONFIG_HEADERS"
26446 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26451 :[FHLC]) ac_mode=$ac_tag; continue;;
26453 case $ac_mode$ac_tag in
26455 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26456 :[FH]-) ac_tag=-:-;;
26457 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26474 -) ac_f="$ac_tmp/stdin";;
26475 *) # Look for the file first in the build tree, then in the source tree
26476 # (if the path is not absolute). The absolute path cannot be DOS-style,
26477 # because $ac_f cannot contain `:'.
26481 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26483 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26485 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26486 as_fn_append ac_file_inputs " '$ac_f'"
26489 # Let's still pretend it is `configure' which instantiates (i.e., don't
26490 # use $as_me), people would be surprised to read:
26491 # /* config.h. Generated by config.status. */
26492 configure_input='Generated from '`
26493 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26495 if test x"$ac_file" != x-; then
26496 configure_input="$ac_file. $configure_input"
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26498 $as_echo "$as_me: creating $ac_file" >&6;}
26500 # Neutralize special characters interpreted by sed in replacement strings.
26501 case $configure_input in #(
26502 *\&* | *\|* | *\\* )
26503 ac_sed_conf_input=`$as_echo "$configure_input" |
26504 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26505 *) ac_sed_conf_input=$configure_input;;
26509 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26510 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26515 ac_dir=`$as_dirname -- "$ac_file" ||
26516 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26517 X"$ac_file" : 'X\(//\)[^/]' \| \
26518 X"$ac_file" : 'X\(//\)$' \| \
26519 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26520 $as_echo X"$ac_file" |
26521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26525 /^X\(\/\/\)[^/].*/{
26538 as_dir="$ac_dir"; as_fn_mkdir_p
26542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26545 # A ".." for each directory in $ac_dir_suffix.
26546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26547 case $ac_top_builddir_sub in
26548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26552 ac_abs_top_builddir=$ac_pwd
26553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26554 # for backward compatibility:
26555 ac_top_builddir=$ac_top_build_prefix
26558 .) # We are building in place.
26560 ac_top_srcdir=$ac_top_builddir_sub
26561 ac_abs_top_srcdir=$ac_pwd ;;
26562 [\\/]* | ?:[\\/]* ) # Absolute name.
26563 ac_srcdir=$srcdir$ac_dir_suffix;
26564 ac_top_srcdir=$srcdir
26565 ac_abs_top_srcdir=$srcdir ;;
26566 *) # Relative name.
26567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26568 ac_top_srcdir=$ac_top_build_prefix$srcdir
26569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26581 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26582 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26587 # If the template does not know about datarootdir, expand it.
26588 # FIXME: This hack should be removed a few years after 2.60.
26589 ac_datarootdir_hack=; ac_datarootdir_seen=
26600 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26601 *datarootdir*) ac_datarootdir_seen=yes;;
26602 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26604 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26607 ac_datarootdir_hack='
26608 s&@datadir@&$datadir&g
26609 s&@docdir@&$docdir&g
26610 s&@infodir@&$infodir&g
26611 s&@localedir@&$localedir&g
26612 s&@mandir@&$mandir&g
26613 s&\\\${datarootdir}&$datarootdir&g' ;;
26617 # Neutralize VPATH when `$srcdir' = `.'.
26618 # Shell code in configure.ac might set extrasub.
26619 # FIXME: do we really want to maintain this feature?
26620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26621 ac_sed_extra="$ac_vpsub
26624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26626 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26627 s|@configure_input@|$ac_sed_conf_input|;t t
26628 s&@top_builddir@&$ac_top_builddir_sub&;t t
26629 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26630 s&@srcdir@&$ac_srcdir&;t t
26631 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26632 s&@top_srcdir@&$ac_top_srcdir&;t t
26633 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26634 s&@builddir@&$ac_builddir&;t t
26635 s&@abs_builddir@&$ac_abs_builddir&;t t
26636 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26637 s&@INSTALL@&$ac_INSTALL&;t t
26638 $ac_datarootdir_hack
26640 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26641 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26643 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26644 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26645 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26646 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26648 which seems to be undefined. Please make sure it is defined" >&5
26649 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26650 which seems to be undefined. Please make sure it is defined" >&2;}
26652 rm -f "$ac_tmp/stdin"
26654 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26655 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26657 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26663 if test x"$ac_file" != x-; then
26665 $as_echo "/* $configure_input */" \
26666 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26667 } >"$ac_tmp/config.h" \
26668 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26669 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26671 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26674 mv "$ac_tmp/config.h" "$ac_file" \
26675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26678 $as_echo "/* $configure_input */" \
26679 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26680 || as_fn_error $? "could not create -" "$LINENO" 5
26684 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26685 $as_echo "$as_me: executing $ac_file commands" >&6;}
26690 case $ac_file$ac_mode in
26693 # See if we are running on zsh, and set the options which allow our
26694 # commands through without removal of \ escapes.
26695 if test -n "${ZSH_VERSION+set}" ; then
26696 setopt NO_GLOB_SUBST
26699 cfgfile="${ofile}T"
26700 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26703 cat <<_LT_EOF >> "$cfgfile"
26706 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26707 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26708 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26709 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26711 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26712 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26714 # Written by Gordon Matzigkeit, 1996
26716 # This file is part of GNU Libtool.
26718 # GNU Libtool is free software; you can redistribute it and/or
26719 # modify it under the terms of the GNU General Public License as
26720 # published by the Free Software Foundation; either version 2 of
26721 # the License, or (at your option) any later version.
26723 # As a special exception to the GNU General Public License,
26724 # if you distribute this file as part of a program or library that
26725 # is built using GNU Libtool, you may include this file under the
26726 # same distribution terms that you use for the rest of that program.
26728 # GNU Libtool is distributed in the hope that it will be useful,
26729 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26730 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26731 # GNU General Public License for more details.
26733 # You should have received a copy of the GNU General Public License
26734 # along with GNU Libtool; see the file COPYING. If not, a copy
26735 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26736 # obtained by writing to the Free Software Foundation, Inc.,
26737 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26740 # The names of the tagged configurations supported by this script.
26741 available_tags="CXX "
26743 # ### BEGIN LIBTOOL CONFIG
26745 # Which release of libtool.m4 was used?
26746 macro_version=$macro_version
26747 macro_revision=$macro_revision
26749 # Assembler program.
26752 # DLL creation program.
26753 DLLTOOL=$lt_DLLTOOL
26755 # Object dumper program.
26756 OBJDUMP=$lt_OBJDUMP
26758 # Whether or not to build shared libraries.
26759 build_libtool_libs=$enable_shared
26761 # Whether or not to build static libraries.
26762 build_old_libs=$enable_static
26764 # What type of objects to build.
26767 # Whether or not to optimize for fast installation.
26768 fast_install=$enable_fast_install
26770 # Shell to use when invoking shell scripts.
26773 # An echo program that protects backslashes.
26776 # The PATH separator for the build system.
26777 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26780 host_alias=$host_alias
26784 # The build system.
26785 build_alias=$build_alias
26789 # A sed program that does not truncate output.
26792 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26793 Xsed="\$SED -e 1s/^X//"
26795 # A grep program that handles long lines.
26801 # A literal string matcher.
26804 # A BSD- or MS-compatible name lister.
26807 # Whether we need soft or hard links.
26810 # What is the maximum length of a command?
26811 max_cmd_len=$max_cmd_len
26813 # Object file suffix (normally "o").
26816 # Executable file suffix (normally "").
26819 # whether the shell understands "unset".
26822 # turn spaces into newlines.
26825 # turn newlines into spaces.
26828 # convert \$build file names to \$host format.
26829 to_host_file_cmd=$lt_cv_to_host_file_cmd
26831 # convert \$build files to toolchain format.
26832 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26834 # Method to check whether dependent libraries are shared objects.
26835 deplibs_check_method=$lt_deplibs_check_method
26837 # Command to use when deplibs_check_method = "file_magic".
26838 file_magic_cmd=$lt_file_magic_cmd
26840 # How to find potential files when deplibs_check_method = "file_magic".
26841 file_magic_glob=$lt_file_magic_glob
26843 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26844 want_nocaseglob=$lt_want_nocaseglob
26846 # Command to associate shared and link libraries.
26847 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26852 # Flags to create an archive.
26853 AR_FLAGS=$lt_AR_FLAGS
26855 # How to feed a file listing to the archiver.
26856 archiver_list_spec=$lt_archiver_list_spec
26858 # A symbol stripping program.
26861 # Commands used to install an old-style archive.
26863 old_postinstall_cmds=$lt_old_postinstall_cmds
26864 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26866 # Whether to use a lock for old archive extraction.
26867 lock_old_archive_extraction=$lock_old_archive_extraction
26872 # LTCC compiler flags.
26873 LTCFLAGS=$lt_CFLAGS
26875 # Take the output of nm and produce a listing of raw symbols and C names.
26876 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26878 # Transform the output of nm in a proper C declaration.
26879 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26881 # Transform the output of nm in a C name address pair.
26882 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26884 # Transform the output of nm in a C name address pair when lib prefix is needed.
26885 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26887 # Specify filename containing input files for \$NM.
26888 nm_file_list_spec=$lt_nm_file_list_spec
26890 # The root where to search for dependent libraries,and in which our libraries should be installed.
26891 lt_sysroot=$lt_sysroot
26893 # The name of the directory that contains temporary libtool files.
26896 # Used to examine libraries when file_magic_cmd begins with "file".
26897 MAGIC_CMD=$MAGIC_CMD
26899 # Must we lock files when doing compilation?
26900 need_locks=$lt_need_locks
26903 MANIFEST_TOOL=$lt_MANIFEST_TOOL
26905 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26906 DSYMUTIL=$lt_DSYMUTIL
26908 # Tool to change global to local symbols on Mac OS X.
26911 # Tool to manipulate fat objects and archives on Mac OS X.
26914 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26917 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26918 OTOOL64=$lt_OTOOL64
26920 # Old archive suffix (normally "a").
26923 # Shared library suffix (normally ".so").
26924 shrext_cmds=$lt_shrext_cmds
26926 # The commands to extract the exported symbol list from a shared archive.
26927 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26929 # Variables whose values should be saved in libtool wrapper scripts and
26930 # restored at link time.
26931 variables_saved_for_relink=$lt_variables_saved_for_relink
26933 # Do we need the "lib" prefix for modules?
26934 need_lib_prefix=$need_lib_prefix
26936 # Do we need a version for libraries?
26937 need_version=$need_version
26939 # Library versioning type.
26940 version_type=$version_type
26942 # Shared library runtime path variable.
26943 runpath_var=$runpath_var
26945 # Shared library path variable.
26946 shlibpath_var=$shlibpath_var
26948 # Is shlibpath searched before the hard-coded library search path?
26949 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26951 # Format of library name prefix.
26952 libname_spec=$lt_libname_spec
26954 # List of archive names. First name is the real one, the rest are links.
26955 # The last name is the one that the linker finds with -lNAME
26956 library_names_spec=$lt_library_names_spec
26958 # The coded name of the library, if different from the real name.
26959 soname_spec=$lt_soname_spec
26961 # Permission mode override for installation of shared libraries.
26962 install_override_mode=$lt_install_override_mode
26964 # Command to use after installation of a shared archive.
26965 postinstall_cmds=$lt_postinstall_cmds
26967 # Command to use after uninstallation of a shared archive.
26968 postuninstall_cmds=$lt_postuninstall_cmds
26970 # Commands used to finish a libtool library installation in a directory.
26971 finish_cmds=$lt_finish_cmds
26973 # As "finish_cmds", except a single script fragment to be evaled but
26975 finish_eval=$lt_finish_eval
26977 # Whether we should hardcode library paths into libraries.
26978 hardcode_into_libs=$hardcode_into_libs
26980 # Compile-time system search path for libraries.
26981 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26983 # Run-time system search path for libraries.
26984 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26986 # Whether dlopen is supported.
26987 dlopen_support=$enable_dlopen
26989 # Whether dlopen of programs is supported.
26990 dlopen_self=$enable_dlopen_self
26992 # Whether dlopen of statically linked programs is supported.
26993 dlopen_self_static=$enable_dlopen_self_static
26995 # Commands to strip libraries.
26996 old_striplib=$lt_old_striplib
26997 striplib=$lt_striplib
27000 # The linker used to build libraries.
27003 # How to create reloadable object files.
27004 reload_flag=$lt_reload_flag
27005 reload_cmds=$lt_reload_cmds
27007 # Commands used to build an old-style archive.
27008 old_archive_cmds=$lt_old_archive_cmds
27010 # A language specific compiler.
27013 # Is the compiler the GNU compiler?
27016 # Compiler flag to turn off builtin functions.
27017 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27019 # Additional compiler flags for building library objects.
27020 pic_flag=$lt_lt_prog_compiler_pic
27022 # How to pass a linker flag through the compiler.
27023 wl=$lt_lt_prog_compiler_wl
27025 # Compiler flag to prevent dynamic linking.
27026 link_static_flag=$lt_lt_prog_compiler_static
27028 # Does compiler simultaneously support -c and -o options?
27029 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27031 # Whether or not to add -lc for building shared libraries.
27032 build_libtool_need_lc=$archive_cmds_need_lc
27034 # Whether or not to disallow shared libs when runtime libs are static.
27035 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27037 # Compiler flag to allow reflexive dlopens.
27038 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27040 # Compiler flag to generate shared objects directly from archives.
27041 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27043 # Whether the compiler copes with passing no objects directly.
27044 compiler_needs_object=$lt_compiler_needs_object
27046 # Create an old-style archive from a shared archive.
27047 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27049 # Create a temporary old-style archive to link instead of a shared archive.
27050 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27052 # Commands used to build a shared archive.
27053 archive_cmds=$lt_archive_cmds
27054 archive_expsym_cmds=$lt_archive_expsym_cmds
27056 # Commands used to build a loadable module if different from building
27057 # a shared archive.
27058 module_cmds=$lt_module_cmds
27059 module_expsym_cmds=$lt_module_expsym_cmds
27061 # Whether we are building with GNU ld or not.
27062 with_gnu_ld=$lt_with_gnu_ld
27064 # Flag that allows shared libraries with undefined symbols to be built.
27065 allow_undefined_flag=$lt_allow_undefined_flag
27067 # Flag that enforces no undefined symbols.
27068 no_undefined_flag=$lt_no_undefined_flag
27070 # Flag to hardcode \$libdir into a binary during linking.
27071 # This must work even if \$libdir does not exist
27072 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27074 # Whether we need a single "-rpath" flag with a separated argument.
27075 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27077 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27078 # DIR into the resulting binary.
27079 hardcode_direct=$hardcode_direct
27081 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27082 # DIR into the resulting binary and the resulting library dependency is
27083 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27084 # library is relocated.
27085 hardcode_direct_absolute=$hardcode_direct_absolute
27087 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27088 # into the resulting binary.
27089 hardcode_minus_L=$hardcode_minus_L
27091 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27092 # into the resulting binary.
27093 hardcode_shlibpath_var=$hardcode_shlibpath_var
27095 # Set to "yes" if building a shared library automatically hardcodes DIR
27096 # into the library and all subsequent libraries and executables linked
27098 hardcode_automatic=$hardcode_automatic
27100 # Set to yes if linker adds runtime paths of dependent libraries
27101 # to runtime path list.
27102 inherit_rpath=$inherit_rpath
27104 # Whether libtool must link a program against all its dependency libraries.
27105 link_all_deplibs=$link_all_deplibs
27107 # Set to "yes" if exported symbols are required.
27108 always_export_symbols=$always_export_symbols
27110 # The commands to list exported symbols.
27111 export_symbols_cmds=$lt_export_symbols_cmds
27113 # Symbols that should not be listed in the preloaded symbols.
27114 exclude_expsyms=$lt_exclude_expsyms
27116 # Symbols that must always be exported.
27117 include_expsyms=$lt_include_expsyms
27119 # Commands necessary for linking programs (against libraries) with templates.
27120 prelink_cmds=$lt_prelink_cmds
27122 # Commands necessary for finishing linking programs.
27123 postlink_cmds=$lt_postlink_cmds
27125 # Specify filename containing input files.
27126 file_list_spec=$lt_file_list_spec
27128 # How to hardcode a shared library path into an executable.
27129 hardcode_action=$hardcode_action
27131 # The directories searched by this compiler when creating a shared library.
27132 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27134 # Dependencies to place before and after the objects being linked to
27135 # create a shared library.
27136 predep_objects=$lt_predep_objects
27137 postdep_objects=$lt_postdep_objects
27138 predeps=$lt_predeps
27139 postdeps=$lt_postdeps
27141 # The library search path used internally by the compiler when linking
27142 # a shared library.
27143 compiler_lib_search_path=$lt_compiler_lib_search_path
27145 # ### END LIBTOOL CONFIG
27151 cat <<\_LT_EOF >> "$cfgfile"
27152 # AIX sometimes has problems with the GCC collect2 program. For some
27153 # reason, if we set the COLLECT_NAMES environment variable, the problems
27154 # vanish in a puff of smoke.
27155 if test "X${COLLECT_NAMES+set}" != Xset; then
27157 export COLLECT_NAMES
27164 ltmain="$ac_aux_dir/ltmain.sh"
27167 # We use sed instead of cat because bash on DJGPP gets confused if
27168 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27169 # text mode, it properly converts lines to CR/LF. This bash problem
27170 # is reportedly fixed, but why not run on old versions too?
27171 sed '$q' "$ltmain" >> "$cfgfile" \
27172 || (rm -f "$cfgfile"; exit 1)
27174 if test x"$xsi_shell" = xyes; then
27175 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27179 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27180 \ * ) func_dirname_result="${3}" ;;\
27182 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27183 && mv -f "$cfgfile.tmp" "$cfgfile" \
27184 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27185 test 0 -eq $? || _lt_function_replace_fail=:
27188 sed -e '/^func_basename ()$/,/^} # func_basename /c\
27191 \ func_basename_result="${1##*/}"\
27192 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27193 && mv -f "$cfgfile.tmp" "$cfgfile" \
27194 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27195 test 0 -eq $? || _lt_function_replace_fail=:
27198 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27199 func_dirname_and_basename ()\
27202 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27203 \ * ) func_dirname_result="${3}" ;;\
27205 \ func_basename_result="${1##*/}"\
27206 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27207 && mv -f "$cfgfile.tmp" "$cfgfile" \
27208 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27209 test 0 -eq $? || _lt_function_replace_fail=:
27212 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27215 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27216 \ # positional parameters, so assign one to ordinary parameter first.\
27217 \ func_stripname_result=${3}\
27218 \ func_stripname_result=${func_stripname_result#"${1}"}\
27219 \ func_stripname_result=${func_stripname_result%"${2}"}\
27220 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27221 && mv -f "$cfgfile.tmp" "$cfgfile" \
27222 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27223 test 0 -eq $? || _lt_function_replace_fail=:
27226 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27227 func_split_long_opt ()\
27229 \ func_split_long_opt_name=${1%%=*}\
27230 \ func_split_long_opt_arg=${1#*=}\
27231 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27232 && mv -f "$cfgfile.tmp" "$cfgfile" \
27233 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27234 test 0 -eq $? || _lt_function_replace_fail=:
27237 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27238 func_split_short_opt ()\
27240 \ func_split_short_opt_arg=${1#??}\
27241 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27242 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27243 && mv -f "$cfgfile.tmp" "$cfgfile" \
27244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27245 test 0 -eq $? || _lt_function_replace_fail=:
27248 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27252 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27253 \ *) func_lo2o_result=${1} ;;\
27255 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27256 && mv -f "$cfgfile.tmp" "$cfgfile" \
27257 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27258 test 0 -eq $? || _lt_function_replace_fail=:
27261 sed -e '/^func_xform ()$/,/^} # func_xform /c\
27264 func_xform_result=${1%.*}.lo\
27265 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27266 && mv -f "$cfgfile.tmp" "$cfgfile" \
27267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27268 test 0 -eq $? || _lt_function_replace_fail=:
27271 sed -e '/^func_arith ()$/,/^} # func_arith /c\
27274 func_arith_result=$(( $* ))\
27275 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27276 && mv -f "$cfgfile.tmp" "$cfgfile" \
27277 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27278 test 0 -eq $? || _lt_function_replace_fail=:
27281 sed -e '/^func_len ()$/,/^} # func_len /c\
27284 func_len_result=${#1}\
27285 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27286 && mv -f "$cfgfile.tmp" "$cfgfile" \
27287 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27288 test 0 -eq $? || _lt_function_replace_fail=:
27292 if test x"$lt_shell_append" = xyes; then
27293 sed -e '/^func_append ()$/,/^} # func_append /c\
27296 eval "${1}+=\\${2}"\
27297 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27298 && mv -f "$cfgfile.tmp" "$cfgfile" \
27299 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27300 test 0 -eq $? || _lt_function_replace_fail=:
27303 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27304 func_append_quoted ()\
27306 \ func_quote_for_eval "${2}"\
27307 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27308 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27309 && mv -f "$cfgfile.tmp" "$cfgfile" \
27310 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27311 test 0 -eq $? || _lt_function_replace_fail=:
27314 # Save a `func_append' function call where possible by direct use of '+='
27315 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27316 && mv -f "$cfgfile.tmp" "$cfgfile" \
27317 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27318 test 0 -eq $? || _lt_function_replace_fail=:
27320 # Save a `func_append' function call even when '+=' is not available
27321 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27322 && mv -f "$cfgfile.tmp" "$cfgfile" \
27323 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27324 test 0 -eq $? || _lt_function_replace_fail=:
27327 if test x"$_lt_function_replace_fail" = x":"; then
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27329 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27333 mv -f "$cfgfile" "$ofile" ||
27334 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27338 cat <<_LT_EOF >> "$ofile"
27340 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27342 # The linker used to build libraries.
27345 # How to create reloadable object files.
27346 reload_flag=$lt_reload_flag_CXX
27347 reload_cmds=$lt_reload_cmds_CXX
27349 # Commands used to build an old-style archive.
27350 old_archive_cmds=$lt_old_archive_cmds_CXX
27352 # A language specific compiler.
27353 CC=$lt_compiler_CXX
27355 # Is the compiler the GNU compiler?
27358 # Compiler flag to turn off builtin functions.
27359 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27361 # Additional compiler flags for building library objects.
27362 pic_flag=$lt_lt_prog_compiler_pic_CXX
27364 # How to pass a linker flag through the compiler.
27365 wl=$lt_lt_prog_compiler_wl_CXX
27367 # Compiler flag to prevent dynamic linking.
27368 link_static_flag=$lt_lt_prog_compiler_static_CXX
27370 # Does compiler simultaneously support -c and -o options?
27371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27373 # Whether or not to add -lc for building shared libraries.
27374 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27376 # Whether or not to disallow shared libs when runtime libs are static.
27377 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27379 # Compiler flag to allow reflexive dlopens.
27380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27382 # Compiler flag to generate shared objects directly from archives.
27383 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27385 # Whether the compiler copes with passing no objects directly.
27386 compiler_needs_object=$lt_compiler_needs_object_CXX
27388 # Create an old-style archive from a shared archive.
27389 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27391 # Create a temporary old-style archive to link instead of a shared archive.
27392 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27394 # Commands used to build a shared archive.
27395 archive_cmds=$lt_archive_cmds_CXX
27396 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27398 # Commands used to build a loadable module if different from building
27399 # a shared archive.
27400 module_cmds=$lt_module_cmds_CXX
27401 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27403 # Whether we are building with GNU ld or not.
27404 with_gnu_ld=$lt_with_gnu_ld_CXX
27406 # Flag that allows shared libraries with undefined symbols to be built.
27407 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27409 # Flag that enforces no undefined symbols.
27410 no_undefined_flag=$lt_no_undefined_flag_CXX
27412 # Flag to hardcode \$libdir into a binary during linking.
27413 # This must work even if \$libdir does not exist
27414 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27416 # Whether we need a single "-rpath" flag with a separated argument.
27417 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27419 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27420 # DIR into the resulting binary.
27421 hardcode_direct=$hardcode_direct_CXX
27423 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27424 # DIR into the resulting binary and the resulting library dependency is
27425 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27426 # library is relocated.
27427 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27429 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27430 # into the resulting binary.
27431 hardcode_minus_L=$hardcode_minus_L_CXX
27433 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27434 # into the resulting binary.
27435 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27437 # Set to "yes" if building a shared library automatically hardcodes DIR
27438 # into the library and all subsequent libraries and executables linked
27440 hardcode_automatic=$hardcode_automatic_CXX
27442 # Set to yes if linker adds runtime paths of dependent libraries
27443 # to runtime path list.
27444 inherit_rpath=$inherit_rpath_CXX
27446 # Whether libtool must link a program against all its dependency libraries.
27447 link_all_deplibs=$link_all_deplibs_CXX
27449 # Set to "yes" if exported symbols are required.
27450 always_export_symbols=$always_export_symbols_CXX
27452 # The commands to list exported symbols.
27453 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27455 # Symbols that should not be listed in the preloaded symbols.
27456 exclude_expsyms=$lt_exclude_expsyms_CXX
27458 # Symbols that must always be exported.
27459 include_expsyms=$lt_include_expsyms_CXX
27461 # Commands necessary for linking programs (against libraries) with templates.
27462 prelink_cmds=$lt_prelink_cmds_CXX
27464 # Commands necessary for finishing linking programs.
27465 postlink_cmds=$lt_postlink_cmds_CXX
27467 # Specify filename containing input files.
27468 file_list_spec=$lt_file_list_spec_CXX
27470 # How to hardcode a shared library path into an executable.
27471 hardcode_action=$hardcode_action_CXX
27473 # The directories searched by this compiler when creating a shared library.
27474 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27476 # Dependencies to place before and after the objects being linked to
27477 # create a shared library.
27478 predep_objects=$lt_predep_objects_CXX
27479 postdep_objects=$lt_postdep_objects_CXX
27480 predeps=$lt_predeps_CXX
27481 postdeps=$lt_postdeps_CXX
27483 # The library search path used internally by the compiler when linking
27484 # a shared library.
27485 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27487 # ### END LIBTOOL TAG CONFIG: CXX
27491 "sdl2_config":C) chmod a+x sdl2-config ;;
27492 "summary":C) echo -en "$SUMMARY" ;;
27500 ac_clean_files=$ac_clean_files_save
27502 test $ac_write_fail = 0 ||
27503 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27506 # configure is writing to config.log, and then calls config.status.
27507 # config.status does its own redirection, appending to config.log.
27508 # Unfortunately, on DOS this fails, as config.log is still kept open
27509 # by configure, so config.status won't be able to write to it; its
27510 # output is simply discarded. So we exec the FD to /dev/null,
27511 # effectively closing config.log, so it can be properly (re)opened and
27512 # appended to by config.status. When coming back to configure, we
27513 # need to make the FD available again.
27514 if test "$no_create" != yes; then
27516 ac_config_status_args=
27517 test "$silent" = yes &&
27518 ac_config_status_args="$ac_config_status_args --quiet"
27520 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27522 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27523 # would make configure fail if this is the last instruction.
27524 $ac_cs_success || as_fn_exit 1
27526 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27528 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}