upgrade SDL to version 2.0.8
[platform/upstream/SDL.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
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 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
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
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
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.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
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
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
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 || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
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
156 as_fn_exit 255
157   fi
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 :
162   emulate sh
163   NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
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; }
182
183 exitcode=0
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 :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || 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
199
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 :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
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 :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
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
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
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.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
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
265 exit 255
266 fi
267
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."
274   else
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."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
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
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
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 :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
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.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
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
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
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
471
472
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.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
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; }
495
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).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
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 ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
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'"
560
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'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
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`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="README.txt"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='LTLIBOBJS
633 WAYLAND_SCANNER
634 EXTRA_LDFLAGS
635 BUILD_LDFLAGS
636 EXTRA_CFLAGS
637 BUILD_CFLAGS
638 SDLTEST_OBJECTS
639 SDLMAIN_OBJECTS
640 VERSION_OBJECTS
641 GEN_OBJECTS
642 GEN_HEADERS
643 OBJECTS
644 INCLUDE
645 ac_aux_dir
646 ENABLE_STATIC_FALSE
647 ENABLE_STATIC_TRUE
648 ENABLE_SHARED_FALSE
649 ENABLE_SHARED_TRUE
650 SDL_RLD_FLAGS
651 SDL_STATIC_LIBS
652 SDL_LIBS
653 SDL_CFLAGS
654 DIRECTFBCONFIG
655 X_EXTRA_LIBS
656 X_LIBS
657 X_PRE_LIBS
658 X_CFLAGS
659 XMKMF
660 ARTSCONFIG
661 ESD_LIBS
662 ESD_CFLAGS
663 ESD_CONFIG
664 PKG_CONFIG
665 ALSA_LIBS
666 ALSA_CFLAGS
667 POW_LIB
668 LIBOBJS
669 ALLOCA
670 WINDRES
671 SET_MAKE
672 INSTALL_DATA
673 INSTALL_SCRIPT
674 INSTALL_PROGRAM
675 CXXCPP
676 ac_ct_CXX
677 CXXFLAGS
678 CXX
679 LT_AGE
680 LT_REVISION
681 LT_CURRENT
682 LT_RELEASE
683 CPP
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
689 MANIFEST_TOOL
690 AWK
691 RANLIB
692 STRIP
693 ac_ct_AR
694 AR
695 LN_S
696 NM
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 EGREP
702 GREP
703 SED
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 host_os
712 host_vendor
713 host_cpu
714 host
715 build_os
716 build_vendor
717 build_cpu
718 build
719 LIBTOOL
720 OBJDUMP
721 DLLTOOL
722 AS
723 SDL_VERSION
724 SDL_BINARY_AGE
725 SDL_INTERFACE_AGE
726 SDL_MICRO_VERSION
727 SDL_MINOR_VERSION
728 SDL_MAJOR_VERSION
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 localstatedir
749 sharedstatedir
750 sysconfdir
751 datadir
752 datarootdir
753 libexecdir
754 sbindir
755 bindir
756 program_transform_name
757 prefix
758 exec_prefix
759 PACKAGE_URL
760 PACKAGE_BUGREPORT
761 PACKAGE_STRING
762 PACKAGE_VERSION
763 PACKAGE_TARNAME
764 PACKAGE_NAME
765 PATH_SEPARATOR
766 SHELL'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 enable_shared
771 enable_static
772 with_pic
773 enable_fast_install
774 with_gnu_ld
775 with_sysroot
776 enable_libtool_lock
777 enable_assertions
778 enable_dependency_tracking
779 enable_libc
780 enable_gcc_atomics
781 enable_atomic
782 enable_audio
783 enable_video
784 enable_render
785 enable_events
786 enable_joystick
787 enable_haptic
788 enable_power
789 enable_filesystem
790 enable_threads
791 enable_timers
792 enable_file
793 enable_loadso
794 enable_cpuinfo
795 enable_assembly
796 enable_ssemath
797 enable_mmx
798 enable_3dnow
799 enable_sse
800 enable_sse2
801 enable_sse3
802 enable_altivec
803 enable_oss
804 enable_alsa
805 with_alsa_prefix
806 with_alsa_inc_prefix
807 enable_alsatest
808 enable_alsa_shared
809 enable_jack
810 enable_jack_shared
811 enable_esd
812 with_esd_prefix
813 with_esd_exec_prefix
814 enable_esdtest
815 enable_esd_shared
816 enable_pulseaudio
817 enable_pulseaudio_shared
818 enable_arts
819 enable_arts_shared
820 enable_nas
821 enable_nas_shared
822 enable_sndio
823 enable_sndio_shared
824 enable_fusionsound
825 enable_fusionsound_shared
826 enable_diskaudio
827 enable_dummyaudio
828 enable_libsamplerate
829 enable_libsamplerate_shared
830 enable_video_wayland
831 enable_video_wayland_qt_touch
832 enable_wayland_shared
833 enable_video_tizen
834 enable_video_mir
835 enable_mir_shared
836 enable_video_rpi
837 enable_video_x11
838 with_x
839 enable_x11_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
847 enable_video_x11_vm
848 enable_video_vivante
849 enable_video_cocoa
850 enable_render_metal
851 enable_video_directfb
852 enable_directfb_shared
853 enable_video_kmsdrm
854 enable_kmsdrm_shared
855 enable_video_dummy
856 enable_video_opengl
857 enable_video_opengles
858 enable_video_opengles1
859 enable_video_opengles2
860 enable_video_vulkan
861 enable_libudev
862 enable_dbus
863 enable_ime
864 enable_ibus
865 enable_fcitx
866 enable_input_tslib
867 enable_pthreads
868 enable_pthread_sem
869 enable_directx
870 enable_sdl_dlopen
871 enable_clock_gettime
872 enable_rpath
873 enable_render_d3d
874 '
875       ac_precious_vars='build_alias
876 host_alias
877 target_alias
878 CC
879 CFLAGS
880 LDFLAGS
881 LIBS
882 CPPFLAGS
883 CPP
884 CXX
885 CXXFLAGS
886 CCC
887 CXXCPP
888 XMKMF'
889
890
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 ac_unrecognized_opts=
895 ac_unrecognized_sep=
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
912
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'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
938
939 ac_prev=
940 ac_dashdash=
941 for ac_option
942 do
943   # If the previous option needs an argument, assign it.
944   if test -n "$ac_prev"; then
945     eval $ac_prev=\$ac_option
946     ac_prev=
947     continue
948   fi
949
950   case $ac_option in
951   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952   *=)   ac_optarg= ;;
953   *)    ac_optarg=yes ;;
954   esac
955
956   # Accept the important Cygnus configure options, so we can diagnose typos.
957
958   case $ac_dashdash$ac_option in
959   --)
960     ac_dashdash=yes ;;
961
962   -bindir | --bindir | --bindi | --bind | --bin | --bi)
963     ac_prev=bindir ;;
964   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965     bindir=$ac_optarg ;;
966
967   -build | --build | --buil | --bui | --bu)
968     ac_prev=build_alias ;;
969   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970     build_alias=$ac_optarg ;;
971
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 ;;
978
979   --config-cache | -C)
980     cache_file=config.cache ;;
981
982   -datadir | --datadir | --datadi | --datad)
983     ac_prev=datadir ;;
984   -datadir=* | --datadir=* | --datadi=* | --datad=*)
985     datadir=$ac_optarg ;;
986
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 ;;
993
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
1002       *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1006          ac_unrecognized_sep=', ';;
1007     esac
1008     eval enable_$ac_useropt=no ;;
1009
1010   -docdir | --docdir | --docdi | --doc | --do)
1011     ac_prev=docdir ;;
1012   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013     docdir=$ac_optarg ;;
1014
1015   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016     ac_prev=dvidir ;;
1017   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018     dvidir=$ac_optarg ;;
1019
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
1028       *"
1029 "enable_$ac_useropt"
1030 "*) ;;
1031       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032          ac_unrecognized_sep=', ';;
1033     esac
1034     eval enable_$ac_useropt=\$ac_optarg ;;
1035
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 ;;
1044
1045   -gas | --gas | --ga | --g)
1046     # Obsolete; use --with-gas.
1047     with_gas=yes ;;
1048
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 ;;
1055
1056   -host | --host | --hos | --ho)
1057     ac_prev=host_alias ;;
1058   -host=* | --host=* | --hos=* | --ho=*)
1059     host_alias=$ac_optarg ;;
1060
1061   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062     ac_prev=htmldir ;;
1063   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064   | --ht=*)
1065     htmldir=$ac_optarg ;;
1066
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 ;;
1073
1074   -infodir | --infodir | --infodi | --infod | --info | --inf)
1075     ac_prev=infodir ;;
1076   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077     infodir=$ac_optarg ;;
1078
1079   -libdir | --libdir | --libdi | --libd)
1080     ac_prev=libdir ;;
1081   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082     libdir=$ac_optarg ;;
1083
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 ;;
1090
1091   -localedir | --localedir | --localedi | --localed | --locale)
1092     ac_prev=localedir ;;
1093   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094     localedir=$ac_optarg ;;
1095
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 ;;
1102
1103   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104     ac_prev=mandir ;;
1105   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106     mandir=$ac_optarg ;;
1107
1108   -nfp | --nfp | --nf)
1109     # Obsolete; use --without-fp.
1110     with_fp=no ;;
1111
1112   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113   | --no-cr | --no-c | -n)
1114     no_create=yes ;;
1115
1116   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118     no_recursion=yes ;;
1119
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 ;;
1128
1129   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130     ac_prev=prefix ;;
1131   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132     prefix=$ac_optarg ;;
1133
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 ;;
1140
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 ;;
1147
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 ;;
1164
1165   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166     ac_prev=pdfdir ;;
1167   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168     pdfdir=$ac_optarg ;;
1169
1170   -psdir | --psdir | --psdi | --psd | --ps)
1171     ac_prev=psdir ;;
1172   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173     psdir=$ac_optarg ;;
1174
1175   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176   | -silent | --silent | --silen | --sile | --sil)
1177     silent=yes ;;
1178
1179   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180     ac_prev=sbindir ;;
1181   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182   | --sbi=* | --sb=*)
1183     sbindir=$ac_optarg ;;
1184
1185   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187   | --sharedst | --shareds | --shared | --share | --shar \
1188   | --sha | --sh)
1189     ac_prev=sharedstatedir ;;
1190   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193   | --sha=* | --sh=*)
1194     sharedstatedir=$ac_optarg ;;
1195
1196   -site | --site | --sit)
1197     ac_prev=site ;;
1198   -site=* | --site=* | --sit=*)
1199     site=$ac_optarg ;;
1200
1201   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202     ac_prev=srcdir ;;
1203   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204     srcdir=$ac_optarg ;;
1205
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 ;;
1212
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 ;;
1217
1218   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219     verbose=yes ;;
1220
1221   -version | --version | --versio | --versi | --vers | -V)
1222     ac_init_version=: ;;
1223
1224   -with-* | --with-*)
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
1232       *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1236          ac_unrecognized_sep=', ';;
1237     esac
1238     eval with_$ac_useropt=\$ac_optarg ;;
1239
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
1248       *"
1249 "with_$ac_useropt"
1250 "*) ;;
1251       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252          ac_unrecognized_sep=', ';;
1253     esac
1254     eval with_$ac_useropt=no ;;
1255
1256   --x)
1257     # Obsolete; use --with-x.
1258     with_x=yes ;;
1259
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 ;;
1266
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 ;;
1273
1274   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1275 Try \`$0 --help' for more information"
1276     ;;
1277
1278   *=*)
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'" ;;
1284     esac
1285     eval $ac_envvar=\$ac_optarg
1286     export $ac_envvar ;;
1287
1288   *)
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}"
1294     ;;
1295
1296   esac
1297 done
1298
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"
1302 fi
1303
1304 if test -n "$ac_unrecognized_opts"; then
1305   case $enable_option_checking in
1306     no) ;;
1307     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1308     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309   esac
1310 fi
1311
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
1317 do
1318   eval ac_val=\$$ac_var
1319   # Remove trailing slashes.
1320   case $ac_val in
1321     */ )
1322       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323       eval $ac_var=\$ac_val;;
1324   esac
1325   # Be sure to have absolute directory names.
1326   case $ac_val in
1327     [\\/$]* | ?:[\\/]* )  continue;;
1328     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329   esac
1330   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1331 done
1332
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.
1336 build=$build_alias
1337 host=$host_alias
1338 target=$target_alias
1339
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
1345     cross_compiling=yes
1346   fi
1347 fi
1348
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351
1352 test "$silent" = yes && exec 6>/dev/null
1353
1354
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"
1361
1362
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374             s//\1/
1375             q
1376           }
1377           /^X\(\/\/\)[^/].*/{
1378             s//\1/
1379             q
1380           }
1381           /^X\(\/\/\)$/{
1382             s//\1/
1383             q
1384           }
1385           /^X\(\/\).*/{
1386             s//\1/
1387             q
1388           }
1389           s/.*/./; q'`
1390   srcdir=$ac_confdir
1391   if test ! -r "$srcdir/$ac_unique_file"; then
1392     srcdir=..
1393   fi
1394 else
1395   ac_srcdir_defaulted=no
1396 fi
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"
1400 fi
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 ac_abs_confdir=`(
1403         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1404         pwd)`
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407   srcdir=.
1408 fi
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.
1412 case $srcdir in
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 esac
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}
1420 done
1421
1422 #
1423 # Report the --help message.
1424 #
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.
1428   cat <<_ACEOF
1429 \`configure' configures this package to adapt to many kinds of systems.
1430
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1432
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.
1435
1436 Defaults for the options are specified in brackets.
1437
1438 Configuration:
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 \`..']
1448
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
1453                           [PREFIX]
1454
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'.
1459
1460 For better control, use the options below.
1461
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]
1482 _ACEOF
1483
1484   cat <<\_ACEOF
1485
1486 X features:
1487   --x-includes=DIR    X include files are in DIR
1488   --x-libraries=DIR   X library files are in DIR
1489
1490 System types:
1491   --build=BUILD     configure for building on BUILD [guessed]
1492   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1493 _ACEOF
1494 fi
1495
1496 if test -n "$ac_init_help"; then
1497
1498   cat <<\_ACEOF
1499
1500 Optional Features:
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)
1511                           [[default=auto]]
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
1517                           [[default=yes]]
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
1524                           [[default=yes]]
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
1531                           [[default=yes]]
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
1535                           [[default=maybe]]
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
1555                           [[default=yes]]
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
1564                           [[default=yes]]
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
1568                           [[default=yes]]
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
1574                           [[default=yes]]
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,
1589                           etc [[default=yes]]
1590   --enable-video-x11-xrandr
1591                           enable X11 Xrandr extension for fullscreen
1592                           [[default=yes]]
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
1620                           [[default=yes]]
1621   --enable-pthreads       use POSIX threads for multi-threading
1622                           [[default=yes]]
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]]
1630
1631 Optional Packages:
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
1635                           both]
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
1644
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>
1653   CPP         C preprocessor
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
1658
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.
1661
1662 Report bugs to the package provider.
1663 _ACEOF
1664 ac_status=$?
1665 fi
1666
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"; } ||
1672       continue
1673     ac_builddir=.
1674
1675 case "$ac_dir" in
1676 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677 *)
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/ ;;
1684   esac ;;
1685 esac
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
1690
1691 case $srcdir in
1692   .)  # We are building in place.
1693     ac_srcdir=.
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 ;;
1700   *) # Relative name.
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 ;;
1704 esac
1705 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1706
1707     cd "$ac_dir" || { ac_status=$?; continue; }
1708     # Check for guested configure.
1709     if test -f "$ac_srcdir/configure.gnu"; then
1710       echo &&
1711       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1712     elif test -f "$ac_srcdir/configure"; then
1713       echo &&
1714       $SHELL "$ac_srcdir/configure" --help=recursive
1715     else
1716       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1717     fi || ac_status=$?
1718     cd "$ac_pwd" || { ac_status=$?; break; }
1719   done
1720 fi
1721
1722 test -n "$ac_init_help" && exit $ac_status
1723 if $ac_init_version; then
1724   cat <<\_ACEOF
1725 configure
1726 generated by GNU Autoconf 2.69
1727
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.
1731 _ACEOF
1732   exit
1733 fi
1734
1735 ## ------------------------ ##
1736 ## Autoconf initialization. ##
1737 ## ------------------------ ##
1738
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 ()
1743 {
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"
1747 case "(($ac_try" in
1748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749   *) ac_try_echo=$ac_try;;
1750 esac
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
1754   ac_status=$?
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
1759   fi
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 :
1765   ac_retval=0
1766 else
1767   $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770         ac_retval=1
1771 fi
1772   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773   as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_compile
1776
1777 # ac_fn_c_try_link LINENO
1778 # -----------------------
1779 # Try to link conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_link ()
1781 {
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"
1785 case "(($ac_try" in
1786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787   *) ac_try_echo=$ac_try;;
1788 esac
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
1792   ac_status=$?
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
1797   fi
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
1805        }; then :
1806   ac_retval=0
1807 else
1808   $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1810
1811         ac_retval=1
1812 fi
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
1820
1821 } # ac_fn_c_try_link
1822
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 ()
1828 {
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
1834 else
1835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h.  */
1837 $4
1838 #include <$2>
1839 _ACEOF
1840 if ac_fn_c_try_compile "$LINENO"; then :
1841   eval "$3=yes"
1842 else
1843   eval "$3=no"
1844 fi
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 fi
1847 eval ac_res=\$$3
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
1851
1852 } # ac_fn_c_check_header_compile
1853
1854 # ac_fn_c_try_cpp LINENO
1855 # ----------------------
1856 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_c_try_cpp ()
1858 {
1859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860   if { { ac_try="$ac_cpp conftest.$ac_ext"
1861 case "(($ac_try" in
1862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863   *) ac_try_echo=$ac_try;;
1864 esac
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
1868   ac_status=$?
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
1873   fi
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
1878        }; then :
1879   ac_retval=0
1880 else
1881   $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1883
1884     ac_retval=1
1885 fi
1886   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887   as_fn_set_status $ac_retval
1888
1889 } # ac_fn_c_try_cpp
1890
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.
1895 ac_fn_c_try_run ()
1896 {
1897   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898   if { { ac_try="$ac_link"
1899 case "(($ac_try" in
1900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901   *) ac_try_echo=$ac_try;;
1902 esac
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
1906   ac_status=$?
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;;
1912 esac
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
1916   ac_status=$?
1917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918   test $ac_status = 0; }; }; then :
1919   ac_retval=0
1920 else
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
1924
1925        ac_retval=$ac_status
1926 fi
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
1930
1931 } # ac_fn_c_try_run
1932
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 ()
1937 {
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
1943 else
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
1949
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.  */
1954
1955 #ifdef __STDC__
1956 # include <limits.h>
1957 #else
1958 # include <assert.h>
1959 #endif
1960
1961 #undef $2
1962
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.  */
1966 #ifdef __cplusplus
1967 extern "C"
1968 #endif
1969 char $2 ();
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
1974 choke me
1975 #endif
1976
1977 int
1978 main ()
1979 {
1980 return $2 ();
1981   ;
1982   return 0;
1983 }
1984 _ACEOF
1985 if ac_fn_c_try_link "$LINENO"; then :
1986   eval "$3=yes"
1987 else
1988   eval "$3=no"
1989 fi
1990 rm -f core conftest.err conftest.$ac_objext \
1991     conftest$ac_exeext conftest.$ac_ext
1992 fi
1993 eval ac_res=\$$3
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
1997
1998 } # ac_fn_c_check_func
1999
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 ()
2004 {
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"
2008 case "(($ac_try" in
2009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010   *) ac_try_echo=$ac_try;;
2011 esac
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
2015   ac_status=$?
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
2020   fi
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 :
2026   ac_retval=0
2027 else
2028   $as_echo "$as_me: failed program was:" >&5
2029 sed 's/^/| /' conftest.$ac_ext >&5
2030
2031         ac_retval=1
2032 fi
2033   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034   as_fn_set_status $ac_retval
2035
2036 } # ac_fn_cxx_try_compile
2037
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 ()
2042 {
2043   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044   if { { ac_try="$ac_cpp conftest.$ac_ext"
2045 case "(($ac_try" in
2046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047   *) ac_try_echo=$ac_try;;
2048 esac
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
2052   ac_status=$?
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
2057   fi
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
2062        }; then :
2063   ac_retval=0
2064 else
2065   $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2067
2068     ac_retval=1
2069 fi
2070   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071   as_fn_set_status $ac_retval
2072
2073 } # ac_fn_cxx_try_cpp
2074
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 ()
2079 {
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"
2083 case "(($ac_try" in
2084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085   *) ac_try_echo=$ac_try;;
2086 esac
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
2090   ac_status=$?
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
2095   fi
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
2103        }; then :
2104   ac_retval=0
2105 else
2106   $as_echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2108
2109         ac_retval=1
2110 fi
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
2118
2119 } # ac_fn_cxx_try_link
2120
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
2125 # accordingly.
2126 ac_fn_c_check_header_mongrel ()
2127 {
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
2134 fi
2135 eval ac_res=\$$3
2136                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 else
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.  */
2144 $4
2145 #include <$2>
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148   ac_header_compiler=yes
2149 else
2150   ac_header_compiler=no
2151 fi
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; }
2155
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.  */
2161 #include <$2>
2162 _ACEOF
2163 if ac_fn_c_try_cpp "$LINENO"; then :
2164   ac_header_preproc=yes
2165 else
2166   ac_header_preproc=no
2167 fi
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; }
2171
2172 # So?  What about this header?
2173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2174   yes:no: )
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;}
2179     ;;
2180   no:yes:* )
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;}
2191     ;;
2192 esac
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
2197 else
2198   eval "$3=\$ac_header_compiler"
2199 fi
2200 eval ac_res=\$$3
2201                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202 $as_echo "$ac_res" >&6; }
2203 fi
2204   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205
2206 } # ac_fn_c_check_header_mongrel
2207
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 ()
2213 {
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
2219 else
2220   eval "$3=no"
2221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h.  */
2223 $4
2224 int
2225 main ()
2226 {
2227 if (sizeof ($2))
2228          return 0;
2229   ;
2230   return 0;
2231 }
2232 _ACEOF
2233 if ac_fn_c_try_compile "$LINENO"; then :
2234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h.  */
2236 $4
2237 int
2238 main ()
2239 {
2240 if (sizeof (($2)))
2241             return 0;
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247
2248 else
2249   eval "$3=yes"
2250 fi
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 fi
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 fi
2255 eval ac_res=\$$3
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
2259
2260 } # ac_fn_c_check_type
2261
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 ()
2267 {
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
2273 else
2274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h.  */
2276 $5
2277 int
2278 main ()
2279 {
2280 static $2 ac_aggr;
2281 if (ac_aggr.$3)
2282 return 0;
2283   ;
2284   return 0;
2285 }
2286 _ACEOF
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288   eval "$4=yes"
2289 else
2290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h.  */
2292 $5
2293 int
2294 main ()
2295 {
2296 static $2 ac_aggr;
2297 if (sizeof ac_aggr.$3)
2298 return 0;
2299   ;
2300   return 0;
2301 }
2302 _ACEOF
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304   eval "$4=yes"
2305 else
2306   eval "$4=no"
2307 fi
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 fi
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 fi
2312 eval ac_res=\$$4
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
2316
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.
2321
2322 It was created by $as_me, which was
2323 generated by GNU Autoconf 2.69.  Invocation command line was
2324
2325   $ $0 $@
2326
2327 _ACEOF
2328 exec 5>>config.log
2329 {
2330 cat <<_ASUNAME
2331 ## --------- ##
2332 ## Platform. ##
2333 ## --------- ##
2334
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`
2340
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`
2343
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`
2351
2352 _ASUNAME
2353
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359     $as_echo "PATH: $as_dir"
2360   done
2361 IFS=$as_save_IFS
2362
2363 } >&5
2364
2365 cat >&5 <<_ACEOF
2366
2367
2368 ## ----------- ##
2369 ## Core tests. ##
2370 ## ----------- ##
2371
2372 _ACEOF
2373
2374
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.
2380 ac_configure_args=
2381 ac_configure_args0=
2382 ac_configure_args1=
2383 ac_must_keep_next=false
2384 for ac_pass in 1 2
2385 do
2386   for ac_arg
2387   do
2388     case $ac_arg in
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)
2392       continue ;;
2393     *\'*)
2394       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2395     esac
2396     case $ac_pass in
2397     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2398     2)
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.
2402       else
2403         case $ac_arg in
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 ;;
2410             esac
2411             ;;
2412           -* ) ac_must_keep_next=true ;;
2413         esac
2414       fi
2415       as_fn_append ac_configure_args " '$ac_arg'"
2416       ;;
2417     esac
2418   done
2419 done
2420 { ac_configure_args0=; unset ac_configure_args0;}
2421 { ac_configure_args1=; unset ac_configure_args1;}
2422
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.
2430   {
2431     echo
2432
2433     $as_echo "## ---------------- ##
2434 ## Cache variables. ##
2435 ## ---------------- ##"
2436     echo
2437     # The following way of writing the cache mishandles newlines in values,
2438 (
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
2441     case $ac_val in #(
2442     *${as_nl}*)
2443       case $ac_var in #(
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;} ;;
2446       esac
2447       case $ac_var in #(
2448       _ | IFS | as_nl) ;; #(
2449       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2450       *) { eval $ac_var=; unset $ac_var;} ;;
2451       esac ;;
2452     esac
2453   done
2454   (set) 2>&1 |
2455     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2456     *${as_nl}ac_space=\ *)
2457       sed -n \
2458         "s/'\''/'\''\\\\'\'''\''/g;
2459           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2460       ;; #(
2461     *)
2462       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2463       ;;
2464     esac |
2465     sort
2466 )
2467     echo
2468
2469     $as_echo "## ----------------- ##
2470 ## Output variables. ##
2471 ## ----------------- ##"
2472     echo
2473     for ac_var in $ac_subst_vars
2474     do
2475       eval ac_val=\$$ac_var
2476       case $ac_val in
2477       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478       esac
2479       $as_echo "$ac_var='\''$ac_val'\''"
2480     done | sort
2481     echo
2482
2483     if test -n "$ac_subst_files"; then
2484       $as_echo "## ------------------- ##
2485 ## File substitutions. ##
2486 ## ------------------- ##"
2487       echo
2488       for ac_var in $ac_subst_files
2489       do
2490         eval ac_val=\$$ac_var
2491         case $ac_val in
2492         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493         esac
2494         $as_echo "$ac_var='\''$ac_val'\''"
2495       done | sort
2496       echo
2497     fi
2498
2499     if test -s confdefs.h; then
2500       $as_echo "## ----------- ##
2501 ## confdefs.h. ##
2502 ## ----------- ##"
2503       echo
2504       cat confdefs.h
2505       echo
2506     fi
2507     test "$ac_signal" != 0 &&
2508       $as_echo "$as_me: caught signal $ac_signal"
2509     $as_echo "$as_me: exit $exit_status"
2510   } >&5
2511   rm -f core *.core core.conftest.* &&
2512     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2513     exit $exit_status
2514 ' 0
2515 for ac_signal in 1 2 13 15; do
2516   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2517 done
2518 ac_signal=0
2519
2520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2521 rm -f -r conftest* confdefs.h
2522
2523 $as_echo "/* confdefs.h */" > confdefs.h
2524
2525 # Predefined preprocessor variables.
2526
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_NAME "$PACKAGE_NAME"
2529 _ACEOF
2530
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2533 _ACEOF
2534
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2537 _ACEOF
2538
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_STRING "$PACKAGE_STRING"
2541 _ACEOF
2542
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2545 _ACEOF
2546
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_URL "$PACKAGE_URL"
2549 _ACEOF
2550
2551
2552 # Let the site file select an alternate cache file if it wants to.
2553 # Prefer an explicitly selected file to automatically selected ones.
2554 ac_site_file1=NONE
2555 ac_site_file2=NONE
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;;
2562   esac
2563 elif test "x$prefix" != xNONE; then
2564   ac_site_file1=$prefix/share/config.site
2565   ac_site_file2=$prefix/etc/config.site
2566 else
2567   ac_site_file1=$ac_default_prefix/share/config.site
2568   ac_site_file2=$ac_default_prefix/etc/config.site
2569 fi
2570 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2571 do
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
2577     . "$ac_site_file" \
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; }
2582   fi
2583 done
2584
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;}
2591     case $cache_file in
2592       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2593       *)                      . "./$cache_file";;
2594     esac
2595   fi
2596 else
2597   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2598 $as_echo "$as_me: creating cache $cache_file" >&6;}
2599   >$cache_file
2600 fi
2601
2602 # Check that the precious variables saved in the cache have kept the same
2603 # value.
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
2611     set,)
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=: ;;
2615     ,set)
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=: ;;
2619     ,);;
2620     *)
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=:
2629         else
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
2633         fi
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;}
2638       fi;;
2639   esac
2640   # Pass precious variables to config.status.
2641   if test "$ac_new_set" = set; then
2642     case $ac_new_val in
2643     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2644     *) ac_arg=$ac_var=$ac_new_val ;;
2645     esac
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'" ;;
2649     esac
2650   fi
2651 done
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
2658 fi
2659 ## -------------------- ##
2660 ## Main body of script. ##
2661 ## -------------------- ##
2662
2663 ac_ext=c
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
2668
2669
2670 ac_config_headers="$ac_config_headers include/SDL_config.h"
2671
2672 ac_aux_dir=
2673 for ac_dir in build-scripts "$srcdir"/build-scripts; do
2674   if test -f "$ac_dir/install-sh"; then
2675     ac_aux_dir=$ac_dir
2676     ac_install_sh="$ac_aux_dir/install-sh -c"
2677     break
2678   elif test -f "$ac_dir/install.sh"; then
2679     ac_aux_dir=$ac_dir
2680     ac_install_sh="$ac_aux_dir/install.sh -c"
2681     break
2682   elif test -f "$ac_dir/shtool"; then
2683     ac_aux_dir=$ac_dir
2684     ac_install_sh="$ac_aux_dir/shtool install -c"
2685     break
2686   fi
2687 done
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
2690 fi
2691
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.
2699
2700
2701
2702
2703 orig_CFLAGS="$CFLAGS"
2704
2705 #
2706 # Making releases:
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.
2714 #
2715 SDL_MAJOR_VERSION=2
2716 SDL_MINOR_VERSION=0
2717 SDL_MICRO_VERSION=8
2718 SDL_INTERFACE_AGE=0
2719 SDL_BINARY_AGE=8
2720 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
2721
2722
2723
2724
2725
2726
2727
2728
2729 # libtool versioning
2730 case `pwd` in
2731   *\ * | *\     *)
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;} ;;
2734 esac
2735
2736
2737
2738 macro_version='2.4.2'
2739 macro_revision='1.3337'
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753 ltmain="$ac_aux_dir/ltmain.sh"
2754
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
2758
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
2763 else
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
2771
2772 fi
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
2776 *-*-*) ;;
2777 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2778 esac
2779 build=$ac_cv_build
2780 ac_save_IFS=$IFS; IFS='-'
2781 set x $ac_cv_build
2782 shift
2783 build_cpu=$1
2784 build_vendor=$2
2785 shift; shift
2786 # Remember, the first character of IFS is used to create $*,
2787 # except with old shells:
2788 build_os=$*
2789 IFS=$ac_save_IFS
2790 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2791
2792
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
2797 else
2798   if test "x$host_alias" = x; then
2799   ac_cv_host=$ac_cv_build
2800 else
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
2803 fi
2804
2805 fi
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2807 $as_echo "$ac_cv_host" >&6; }
2808 case $ac_cv_host in
2809 *-*-*) ;;
2810 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2811 esac
2812 host=$ac_cv_host
2813 ac_save_IFS=$IFS; IFS='-'
2814 set x $ac_cv_host
2815 shift
2816 host_cpu=$1
2817 host_vendor=$2
2818 shift; shift
2819 # Remember, the first character of IFS is used to create $*,
2820 # except with old shells:
2821 host_os=$*
2822 IFS=$ac_save_IFS
2823 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2824
2825
2826 # Backslashify metacharacters that are still active within
2827 # double-quoted strings.
2828 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2829
2830 # Same as above, but do not quote variable references.
2831 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2832
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'
2836
2837 # Sed substitution to delay expansion of an escaped single quote.
2838 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2839
2840 # Sed substitution to avoid accidental globbing in evaled expressions
2841 no_glob_subst='s/\*/\\\*/g'
2842
2843 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2844 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2845 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2846
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
2852   ECHO='print -r --'
2853 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2854   ECHO='printf %s\n'
2855 else
2856   # Use this function as a fallback that always works.
2857   func_fallback_echo ()
2858   {
2859     eval 'cat <<_LTECHO_EOF
2860 $1
2861 _LTECHO_EOF'
2862   }
2863   ECHO='func_fallback_echo'
2864 fi
2865
2866 # func_echo_all arg...
2867 # Invoke $ECHO with all args, space-separated.
2868 func_echo_all ()
2869 {
2870     $ECHO ""
2871 }
2872
2873 case "$ECHO" in
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; } ;;
2880 esac
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895 ac_ext=c
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
2907 else
2908   if test -n "$CC"; then
2909   ac_cv_prog_CC="$CC" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914   IFS=$as_save_IFS
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
2920     break 2
2921   fi
2922 done
2923   done
2924 IFS=$as_save_IFS
2925
2926 fi
2927 fi
2928 CC=$ac_cv_prog_CC
2929 if test -n "$CC"; then
2930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931 $as_echo "$CC" >&6; }
2932 else
2933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2935 fi
2936
2937
2938 fi
2939 if test -z "$ac_cv_prog_CC"; then
2940   ac_ct_CC=$CC
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
2947 else
2948   if test -n "$ac_ct_CC"; then
2949   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954   IFS=$as_save_IFS
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
2960     break 2
2961   fi
2962 done
2963   done
2964 IFS=$as_save_IFS
2965
2966 fi
2967 fi
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; }
2972 else
2973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2975 fi
2976
2977   if test "x$ac_ct_CC" = x; then
2978     CC=""
2979   else
2980     case $cross_compiling:$ac_tool_warned in
2981 yes:)
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 ;;
2985 esac
2986     CC=$ac_ct_CC
2987   fi
2988 else
2989   CC="$ac_cv_prog_CC"
2990 fi
2991
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
3000 else
3001   if test -n "$CC"; then
3002   ac_cv_prog_CC="$CC" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007   IFS=$as_save_IFS
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
3013     break 2
3014   fi
3015 done
3016   done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 CC=$ac_cv_prog_CC
3022 if test -n "$CC"; then
3023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3024 $as_echo "$CC" >&6; }
3025 else
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028 fi
3029
3030
3031   fi
3032 fi
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
3040 else
3041   if test -n "$CC"; then
3042   ac_cv_prog_CC="$CC" # Let the user override the test.
3043 else
3044   ac_prog_rejected=no
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048   IFS=$as_save_IFS
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
3054        continue
3055      fi
3056     ac_cv_prog_CC="cc"
3057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058     break 2
3059   fi
3060 done
3061   done
3062 IFS=$as_save_IFS
3063
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
3067   shift
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.
3072     shift
3073     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3074   fi
3075 fi
3076 fi
3077 fi
3078 CC=$ac_cv_prog_CC
3079 if test -n "$CC"; then
3080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3082 else
3083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3085 fi
3086
3087
3088 fi
3089 if test -z "$CC"; then
3090   if test -n "$ac_tool_prefix"; then
3091   for ac_prog in cl.exe
3092   do
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
3099 else
3100   if test -n "$CC"; then
3101   ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106   IFS=$as_save_IFS
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
3112     break 2
3113   fi
3114 done
3115   done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 CC=$ac_cv_prog_CC
3121 if test -n "$CC"; then
3122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3124 else
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129
3130     test -n "$CC" && break
3131   done
3132 fi
3133 if test -z "$CC"; then
3134   ac_ct_CC=$CC
3135   for ac_prog in cl.exe
3136 do
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
3143 else
3144   if test -n "$ac_ct_CC"; then
3145   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150   IFS=$as_save_IFS
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
3156     break 2
3157   fi
3158 done
3159   done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
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; }
3168 else
3169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174   test -n "$ac_ct_CC" && break
3175 done
3176
3177   if test "x$ac_ct_CC" = x; then
3178     CC=""
3179   else
3180     case $cross_compiling:$ac_tool_warned in
3181 yes:)
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 ;;
3185 esac
3186     CC=$ac_ct_CC
3187   fi
3188 fi
3189
3190 fi
3191
3192
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; }
3197
3198 # Provide some information about the compiler.
3199 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3200 set X $ac_compile
3201 ac_compiler=$2
3202 for ac_option in --version -v -V -qversion; do
3203   { { ac_try="$ac_compiler $ac_option >&5"
3204 case "(($ac_try" in
3205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206   *) ac_try_echo=$ac_try;;
3207 esac
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
3211   ac_status=$?
3212   if test -s conftest.err; then
3213     sed '10a\
3214 ... rest of stderr output deleted ...
3215          10q' conftest.err >conftest.er1
3216     cat conftest.er1 >&5
3217   fi
3218   rm -f conftest.er1 conftest.err
3219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220   test $ac_status = 0; }
3221 done
3222
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h.  */
3225
3226 int
3227 main ()
3228 {
3229
3230   ;
3231   return 0;
3232 }
3233 _ACEOF
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
3238 # of exeext.
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[^ ]*//'`
3242
3243 # The possible output files:
3244 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3245
3246 ac_rmfiles=
3247 for ac_file in $ac_files
3248 do
3249   case $ac_file in
3250     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3251     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3252   esac
3253 done
3254 rm -f $ac_rmfiles
3255
3256 if { { ac_try="$ac_link_default"
3257 case "(($ac_try" in
3258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259   *) ac_try_echo=$ac_try;;
3260 esac
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
3264   ac_status=$?
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
3271 # Autoconf.
3272 for ac_file in $ac_files ''
3273 do
3274   test -f "$ac_file" || continue
3275   case $ac_file in
3276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3277         ;;
3278     [ab].out )
3279         # We found the default executable, but exeext='' is most
3280         # certainly right.
3281         break;;
3282     *.* )
3283         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3284         then :; else
3285            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3286         fi
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
3291         # actually working.
3292         break;;
3293     * )
3294         break;;
3295   esac
3296 done
3297 test "$ac_cv_exeext" = no && ac_cv_exeext=
3298
3299 else
3300   ac_file=''
3301 fi
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
3307
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; }
3312 else
3313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314 $as_echo "yes" >&6; }
3315 fi
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
3321
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"
3327 case "(($ac_try" in
3328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329   *) ac_try_echo=$ac_try;;
3330 esac
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
3334   ac_status=$?
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
3340 # `rm'.
3341 for ac_file in conftest.exe conftest conftest.*; do
3342   test -f "$ac_file" || continue
3343   case $ac_file in
3344     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3345     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3346           break;;
3347     * ) break;;
3348   esac
3349 done
3350 else
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; }
3355 fi
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; }
3359
3360 rm -f conftest.$ac_ext
3361 EXEEXT=$ac_cv_exeext
3362 ac_exeext=$EXEEXT
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h.  */
3365 #include <stdio.h>
3366 int
3367 main ()
3368 {
3369 FILE *f = fopen ("conftest.out", "w");
3370  return ferror (f) || fclose (f) != 0;
3371
3372   ;
3373   return 0;
3374 }
3375 _ACEOF
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"
3383 case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
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
3390   ac_status=$?
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;;
3397 esac
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
3401   ac_status=$?
3402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403   test $ac_status = 0; }; }; then
3404     cross_compiling=no
3405   else
3406     if test "$cross_compiling" = maybe; then
3407         cross_compiling=yes
3408     else
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; }
3414     fi
3415   fi
3416 fi
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3418 $as_echo "$cross_compiling" >&6; }
3419
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
3426 else
3427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h.  */
3429
3430 int
3431 main ()
3432 {
3433
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.o conftest.obj
3439 if { { ac_try="$ac_compile"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
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
3447   ac_status=$?
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;
3452   case $ac_file in
3453     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3454     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3455        break;;
3456   esac
3457 done
3458 else
3459   $as_echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
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; }
3466 fi
3467 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3468 fi
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
3472 ac_objext=$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
3477 else
3478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h.  */
3480
3481 int
3482 main ()
3483 {
3484 #ifndef __GNUC__
3485        choke me
3486 #endif
3487
3488   ;
3489   return 0;
3490 }
3491 _ACEOF
3492 if ac_fn_c_try_compile "$LINENO"; then :
3493   ac_compiler_gnu=yes
3494 else
3495   ac_compiler_gnu=no
3496 fi
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3499
3500 fi
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
3504   GCC=yes
3505 else
3506   GCC=
3507 fi
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
3514 else
3515   ac_save_c_werror_flag=$ac_c_werror_flag
3516    ac_c_werror_flag=yes
3517    ac_cv_prog_cc_g=no
3518    CFLAGS="-g"
3519    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h.  */
3521
3522 int
3523 main ()
3524 {
3525
3526   ;
3527   return 0;
3528 }
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531   ac_cv_prog_cc_g=yes
3532 else
3533   CFLAGS=""
3534       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h.  */
3536
3537 int
3538 main ()
3539 {
3540
3541   ;
3542   return 0;
3543 }
3544 _ACEOF
3545 if ac_fn_c_try_compile "$LINENO"; then :
3546
3547 else
3548   ac_c_werror_flag=$ac_save_c_werror_flag
3549          CFLAGS="-g"
3550          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h.  */
3552
3553 int
3554 main ()
3555 {
3556
3557   ;
3558   return 0;
3559 }
3560 _ACEOF
3561 if ac_fn_c_try_compile "$LINENO"; then :
3562   ac_cv_prog_cc_g=yes
3563 fi
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 fi
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 fi
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569    ac_c_werror_flag=$ac_save_c_werror_flag
3570 fi
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
3577     CFLAGS="-g -O2"
3578   else
3579     CFLAGS="-g"
3580   fi
3581 else
3582   if test "$GCC" = yes; then
3583     CFLAGS="-O2"
3584   else
3585     CFLAGS=
3586   fi
3587 fi
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
3592 else
3593   ac_cv_prog_cc_c89=no
3594 ac_save_CC=$CC
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h.  */
3597 #include <stdarg.h>
3598 #include <stdio.h>
3599 struct stat;
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)
3604      char **p;
3605      int i;
3606 {
3607   return p[i];
3608 }
3609 static char *f (char * (*g) (char **, int), char **p, ...)
3610 {
3611   char *s;
3612   va_list v;
3613   va_start (v,p);
3614   s = g (p, va_arg (v,int));
3615   va_end (v);
3616   return s;
3617 }
3618
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];
3627
3628 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3629    inside strings and character constants.  */
3630 #define FOO(x) 'x'
3631 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3632
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);
3637 int argc;
3638 char **argv;
3639 int
3640 main ()
3641 {
3642 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3643   ;
3644   return 0;
3645 }
3646 _ACEOF
3647 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3648         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3649 do
3650   CC="$ac_save_CC $ac_arg"
3651   if ac_fn_c_try_compile "$LINENO"; then :
3652   ac_cv_prog_cc_c89=$ac_arg
3653 fi
3654 rm -f core conftest.err conftest.$ac_objext
3655   test "x$ac_cv_prog_cc_c89" != "xno" && break
3656 done
3657 rm -f conftest.$ac_ext
3658 CC=$ac_save_CC
3659
3660 fi
3661 # AC_CACHE_VAL
3662 case "x$ac_cv_prog_cc_c89" in
3663   x)
3664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3665 $as_echo "none needed" >&6; } ;;
3666   xno)
3667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3668 $as_echo "unsupported" >&6; } ;;
3669   *)
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; } ;;
3673 esac
3674 if test "x$ac_cv_prog_cc_c89" != xno; then :
3675
3676 fi
3677
3678 ac_ext=c
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
3683
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
3688 else
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"
3692      done
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
3699 for as_dir in $PATH
3700 do
3701   IFS=$as_save_IFS
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
3710 *GNU*)
3711   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3712 *)
3713   ac_count=0
3714   $as_echo_n 0123456789 >"conftest.in"
3715   while :
3716   do
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
3728     fi
3729     # 10*(2^10) chars as input seems more than enough
3730     test $ac_count -gt 10 && break
3731   done
3732   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3733 esac
3734
3735       $ac_path_SED_found && break 3
3736     done
3737   done
3738   done
3739 IFS=$as_save_IFS
3740   if test -z "$ac_cv_path_SED"; then
3741     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3742   fi
3743 else
3744   ac_cv_path_SED=$SED
3745 fi
3746
3747 fi
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"
3751   rm -f conftest.sed
3752
3753 test -z "$SED" && SED=sed
3754 Xsed="$SED -e 1s/^X//"
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
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
3770 else
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
3776 do
3777   IFS=$as_save_IFS
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
3786 *GNU*)
3787   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3788 *)
3789   ac_count=0
3790   $as_echo_n 0123456789 >"conftest.in"
3791   while :
3792   do
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
3804     fi
3805     # 10*(2^10) chars as input seems more than enough
3806     test $ac_count -gt 10 && break
3807   done
3808   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3809 esac
3810
3811       $ac_path_GREP_found && break 3
3812     done
3813   done
3814   done
3815 IFS=$as_save_IFS
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
3818   fi
3819 else
3820   ac_cv_path_GREP=$GREP
3821 fi
3822
3823 fi
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"
3827
3828
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
3833 else
3834   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3835    then ac_cv_path_EGREP="$GREP -E"
3836    else
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
3842 do
3843   IFS=$as_save_IFS
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
3852 *GNU*)
3853   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3854 *)
3855   ac_count=0
3856   $as_echo_n 0123456789 >"conftest.in"
3857   while :
3858   do
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
3870     fi
3871     # 10*(2^10) chars as input seems more than enough
3872     test $ac_count -gt 10 && break
3873   done
3874   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3875 esac
3876
3877       $ac_path_EGREP_found && break 3
3878     done
3879   done
3880   done
3881 IFS=$as_save_IFS
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
3884   fi
3885 else
3886   ac_cv_path_EGREP=$EGREP
3887 fi
3888
3889    fi
3890 fi
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"
3894
3895
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
3900 else
3901   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3902    then ac_cv_path_FGREP="$GREP -F"
3903    else
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
3909 do
3910   IFS=$as_save_IFS
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
3919 *GNU*)
3920   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3921 *)
3922   ac_count=0
3923   $as_echo_n 0123456789 >"conftest.in"
3924   while :
3925   do
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
3937     fi
3938     # 10*(2^10) chars as input seems more than enough
3939     test $ac_count -gt 10 && break
3940   done
3941   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3942 esac
3943
3944       $ac_path_FGREP_found && break 3
3945     done
3946   done
3947   done
3948 IFS=$as_save_IFS
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
3951   fi
3952 else
3953   ac_cv_path_FGREP=$FGREP
3954 fi
3955
3956    fi
3957 fi
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"
3961
3962
3963 test -z "$GREP" && GREP=grep
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
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
3986 else
3987   with_gnu_ld=no
3988 fi
3989
3990 ac_prog=ld
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; }
3995   case $host in
3996   *-*-mingw*)
3997     # gcc leaves a trailing carriage return which upsets mingw
3998     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3999   *)
4000     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4001   esac
4002   case $ac_prog in
4003     # Accept absolute paths.
4004     [\\/]* | ?:[\\/]*)
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%/%"`
4010       done
4011       test -z "$LD" && LD="$ac_prog"
4012       ;;
4013   "")
4014     # If it fails, then pretend we aren't using GCC.
4015     ac_prog=ld
4016     ;;
4017   *)
4018     # If it is relative, then search for the first ld in PATH.
4019     with_gnu_ld=unknown
4020     ;;
4021   esac
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; }
4025 else
4026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4027 $as_echo_n "checking for non-GNU ld... " >&6; }
4028 fi
4029 if ${lt_cv_path_LD+:} false; then :
4030   $as_echo_n "(cached) " >&6
4031 else
4032   if test -z "$LD"; then
4033   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4034   for ac_dir in $PATH; do
4035     IFS="$lt_save_ifs"
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
4045         ;;
4046       *)
4047         test "$with_gnu_ld" != yes && break
4048         ;;
4049       esac
4050     fi
4051   done
4052   IFS="$lt_save_ifs"
4053 else
4054   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4055 fi
4056 fi
4057
4058 LD="$lt_cv_path_LD"
4059 if test -n "$LD"; then
4060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4061 $as_echo "$LD" >&6; }
4062 else
4063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 $as_echo "no" >&6; }
4065 fi
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
4071 else
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
4076   ;;
4077 *)
4078   lt_cv_prog_gnu_ld=no
4079   ;;
4080 esac
4081 fi
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
4085
4086
4087
4088
4089
4090
4091
4092
4093
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
4098 else
4099   if test -n "$NM"; then
4100   # Let the user override the test.
4101   lt_cv_path_NM="$NM"
4102 else
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"
4106   fi
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
4110       IFS="$lt_save_ifs"
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"
4121           break
4122           ;;
4123         *)
4124           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4125           */dev/null*)
4126             lt_cv_path_NM="$tmp_nm -p"
4127             break
4128             ;;
4129           *)
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
4132             ;;
4133           esac
4134           ;;
4135         esac
4136       fi
4137     done
4138     IFS="$lt_save_ifs"
4139   done
4140   : ${lt_cv_path_NM=no}
4141 fi
4142 fi
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
4146   NM="$lt_cv_path_NM"
4147 else
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.
4151   else
4152     if test -n "$ac_tool_prefix"; then
4153   for ac_prog in dumpbin "link -dump"
4154   do
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
4161 else
4162   if test -n "$DUMPBIN"; then
4163   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168   IFS=$as_save_IFS
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
4174     break 2
4175   fi
4176 done
4177   done
4178 IFS=$as_save_IFS
4179
4180 fi
4181 fi
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; }
4186 else
4187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 $as_echo "no" >&6; }
4189 fi
4190
4191
4192     test -n "$DUMPBIN" && break
4193   done
4194 fi
4195 if test -z "$DUMPBIN"; then
4196   ac_ct_DUMPBIN=$DUMPBIN
4197   for ac_prog in dumpbin "link -dump"
4198 do
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
4205 else
4206   if test -n "$ac_ct_DUMPBIN"; then
4207   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212   IFS=$as_save_IFS
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
4218     break 2
4219   fi
4220 done
4221   done
4222 IFS=$as_save_IFS
4223
4224 fi
4225 fi
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; }
4230 else
4231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4233 fi
4234
4235
4236   test -n "$ac_ct_DUMPBIN" && break
4237 done
4238
4239   if test "x$ac_ct_DUMPBIN" = x; then
4240     DUMPBIN=":"
4241   else
4242     case $cross_compiling:$ac_tool_warned in
4243 yes:)
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 ;;
4247 esac
4248     DUMPBIN=$ac_ct_DUMPBIN
4249   fi
4250 fi
4251
4252     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4253     *COFF*)
4254       DUMPBIN="$DUMPBIN -symbols"
4255       ;;
4256     *)
4257       DUMPBIN=:
4258       ;;
4259     esac
4260   fi
4261
4262   if test "$DUMPBIN" != ":"; then
4263     NM="$DUMPBIN"
4264   fi
4265 fi
4266 test -z "$NM" && NM=nm
4267
4268
4269
4270
4271
4272
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
4277 else
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"
4290   fi
4291   rm -f conftest*
4292 fi
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4294 $as_echo "$lt_cv_nm_interface" >&6; }
4295
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4297 $as_echo_n "checking whether ln -s works... " >&6; }
4298 LN_S=$as_ln_s
4299 if test "$LN_S" = "ln -s"; then
4300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4301 $as_echo "yes" >&6; }
4302 else
4303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4304 $as_echo "no, using $LN_S" >&6; }
4305 fi
4306
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
4312 else
4313     i=0
4314   teststring="ABCD"
4315
4316   case $build_os in
4317   msdosdjgpp*)
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
4323     ;;
4324
4325   gnu*)
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;
4330     ;;
4331
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;
4341     ;;
4342
4343   mint*)
4344     # On MiNT this can take a long time and run out of memory.
4345     lt_cv_sys_max_cmd_len=8192;
4346     ;;
4347
4348   amigaos*)
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;
4352     ;;
4353
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`
4360     else
4361       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4362     fi
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`
4366     ;;
4367
4368   interix*)
4369     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4370     lt_cv_sys_max_cmd_len=196608
4371     ;;
4372
4373   os2*)
4374     # The test takes a long time on OS/2.
4375     lt_cv_sys_max_cmd_len=8192
4376     ;;
4377
4378   osf*)
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
4384     #
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 ;;
4388       esac
4389     fi
4390     ;;
4391   sco3.2v5*)
4392     lt_cv_sys_max_cmd_len=102400
4393     ;;
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/.*[  ]//'`
4398     else
4399       lt_cv_sys_max_cmd_len=32768
4400     fi
4401     ;;
4402   *)
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`
4407     else
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
4412       done
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
4416       # we can't tell.
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
4420       do
4421         i=`expr $i + 1`
4422         teststring=$teststring$teststring
4423       done
4424       # Only check the string length outside the loop.
4425       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4426       teststring=
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`
4431     fi
4432     ;;
4433   esac
4434
4435 fi
4436
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; }
4440 else
4441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4442 $as_echo "none" >&6; }
4443 fi
4444 max_cmd_len=$lt_cv_sys_max_cmd_len
4445
4446
4447
4448
4449
4450
4451 : ${CP="cp -f"}
4452 : ${MV="mv -f"}
4453 : ${RM="rm -f"}
4454
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
4458 xsi_shell=no
4459 ( _lt_dummy="a/b/c"
4460   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4461       = c,a/b,b/c, \
4462     && eval 'test $(( 1 + 1 )) -eq 2 \
4463     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4464   && xsi_shell=yes
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4466 $as_echo "$xsi_shell" >&6; }
4467
4468
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4470 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4471 lt_shell_append=no
4472 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4473     >/dev/null 2>&1 \
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; }
4477
4478
4479 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4480   lt_unset=unset
4481 else
4482   lt_unset=false
4483 fi
4484
4485
4486
4487
4488
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'
4495   ;;
4496  *) # EBCDIC based system
4497   lt_SP2NL='tr \100 \n'
4498   lt_NL2SP='tr \r\n \100\100'
4499   ;;
4500 esac
4501
4502
4503
4504
4505
4506
4507
4508
4509
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
4514 else
4515   case $host in
4516   *-*-mingw* )
4517     case $build in
4518       *-*-mingw* ) # actually msys
4519         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4520         ;;
4521       *-*-cygwin* )
4522         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4523         ;;
4524       * ) # otherwise, assume *nix
4525         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4526         ;;
4527     esac
4528     ;;
4529   *-*-cygwin* )
4530     case $build in
4531       *-*-mingw* ) # actually msys
4532         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4533         ;;
4534       *-*-cygwin* )
4535         lt_cv_to_host_file_cmd=func_convert_file_noop
4536         ;;
4537       * ) # otherwise, assume *nix
4538         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4539         ;;
4540     esac
4541     ;;
4542   * ) # unhandled hosts (and "normal" native builds)
4543     lt_cv_to_host_file_cmd=func_convert_file_noop
4544     ;;
4545 esac
4546
4547 fi
4548
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; }
4552
4553
4554
4555
4556
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
4561 else
4562   #assume ordinary cross tools, or native build.
4563 lt_cv_to_tool_file_cmd=func_convert_file_noop
4564 case $host in
4565   *-*-mingw* )
4566     case $build in
4567       *-*-mingw* ) # actually msys
4568         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4569         ;;
4570     esac
4571     ;;
4572 esac
4573
4574 fi
4575
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; }
4579
4580
4581
4582
4583
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
4588 else
4589   lt_cv_ld_reload_flag='-r'
4590 fi
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
4595 "" | " "*) ;;
4596 *) reload_flag=" $reload_flag" ;;
4597 esac
4598 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4599 case $host_os in
4600   cygwin* | mingw* | pw32* | cegcc*)
4601     if test "$GCC" != yes; then
4602       reload_cmds=false
4603     fi
4604     ;;
4605   darwin*)
4606     if test "$GCC" = yes; then
4607       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4608     else
4609       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4610     fi
4611     ;;
4612 esac
4613
4614
4615
4616
4617
4618
4619
4620
4621
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
4629 else
4630   if test -n "$OBJDUMP"; then
4631   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4632 else
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4635 do
4636   IFS=$as_save_IFS
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
4642     break 2
4643   fi
4644 done
4645   done
4646 IFS=$as_save_IFS
4647
4648 fi
4649 fi
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; }
4654 else
4655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 $as_echo "no" >&6; }
4657 fi
4658
4659
4660 fi
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
4669 else
4670   if test -n "$ac_ct_OBJDUMP"; then
4671   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676   IFS=$as_save_IFS
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
4682     break 2
4683   fi
4684 done
4685   done
4686 IFS=$as_save_IFS
4687
4688 fi
4689 fi
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; }
4694 else
4695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4697 fi
4698
4699   if test "x$ac_ct_OBJDUMP" = x; then
4700     OBJDUMP="false"
4701   else
4702     case $cross_compiling:$ac_tool_warned in
4703 yes:)
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 ;;
4707 esac
4708     OBJDUMP=$ac_ct_OBJDUMP
4709   fi
4710 else
4711   OBJDUMP="$ac_cv_prog_OBJDUMP"
4712 fi
4713
4714 test -z "$OBJDUMP" && OBJDUMP=objdump
4715
4716
4717
4718
4719
4720
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
4725 else
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.
4739
4740 case $host_os in
4741 aix[4-9]*)
4742   lt_cv_deplibs_check_method=pass_all
4743   ;;
4744
4745 beos*)
4746   lt_cv_deplibs_check_method=pass_all
4747   ;;
4748
4749 bsdi[45]*)
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
4753   ;;
4754
4755 cygwin*)
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
4760   ;;
4761
4762 mingw* | pw32*)
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'
4770   else
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'
4774   fi
4775   lt_cv_deplibs_check_method=pass_all
4776   ;;
4777
4778 cegcc*)
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'
4782   ;;
4783
4784 darwin* | rhapsody*)
4785   lt_cv_deplibs_check_method=pass_all
4786   ;;
4787
4788 freebsd* | dragonfly*)
4789   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4790     case $host_cpu in
4791     i*86 )
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.*`
4797       ;;
4798     esac
4799   else
4800     lt_cv_deplibs_check_method=pass_all
4801   fi
4802   ;;
4803
4804 gnu*)
4805   lt_cv_deplibs_check_method=pass_all
4806   ;;
4807
4808 haiku*)
4809   lt_cv_deplibs_check_method=pass_all
4810   ;;
4811
4812 hpux10.20* | hpux11*)
4813   lt_cv_file_magic_cmd=/usr/bin/file
4814   case $host_cpu in
4815   ia64*)
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
4818     ;;
4819   hppa*64*)
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
4822     ;;
4823   *)
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
4826     ;;
4827   esac
4828   ;;
4829
4830 interix[3-9]*)
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)$'
4833   ;;
4834
4835 irix5* | irix6* | nonstopux*)
4836   case $LD in
4837   *-32|*"-32 ") libmagic=32-bit;;
4838   *-n32|*"-n32 ") libmagic=N32;;
4839   *-64|*"-64 ") libmagic=64-bit;;
4840   *) libmagic=never-match;;
4841   esac
4842   lt_cv_deplibs_check_method=pass_all
4843   ;;
4844
4845 # This must be glibc/ELF.
4846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4847   lt_cv_deplibs_check_method=pass_all
4848   ;;
4849
4850 netbsd*)
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)$'
4853   else
4854     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4855   fi
4856   ;;
4857
4858 newos6*)
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
4862   ;;
4863
4864 *nto* | *qnx*)
4865   lt_cv_deplibs_check_method=pass_all
4866   ;;
4867
4868 openbsd*)
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)$'
4871   else
4872     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4873   fi
4874   ;;
4875
4876 osf3* | osf4* | osf5*)
4877   lt_cv_deplibs_check_method=pass_all
4878   ;;
4879
4880 rdos*)
4881   lt_cv_deplibs_check_method=pass_all
4882   ;;
4883
4884 solaris*)
4885   lt_cv_deplibs_check_method=pass_all
4886   ;;
4887
4888 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4889   lt_cv_deplibs_check_method=pass_all
4890   ;;
4891
4892 sysv4 | sysv4.3*)
4893   case $host_vendor in
4894   motorola)
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*`
4897     ;;
4898   ncr)
4899     lt_cv_deplibs_check_method=pass_all
4900     ;;
4901   sequent)
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 )'
4904     ;;
4905   sni)
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
4909     ;;
4910   siemens)
4911     lt_cv_deplibs_check_method=pass_all
4912     ;;
4913   pc)
4914     lt_cv_deplibs_check_method=pass_all
4915     ;;
4916   esac
4917   ;;
4918
4919 tpf*)
4920   lt_cv_deplibs_check_method=pass_all
4921   ;;
4922 esac
4923
4924 fi
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4926 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4927
4928 file_magic_glob=
4929 want_nocaseglob=no
4930 if test "$build" = "$host"; then
4931   case $host_os in
4932   mingw* | pw32*)
4933     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4934       want_nocaseglob=yes
4935     else
4936       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4937     fi
4938     ;;
4939   esac
4940 fi
4941
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
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
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
4974 else
4975   if test -n "$DLLTOOL"; then
4976   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981   IFS=$as_save_IFS
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
4987     break 2
4988   fi
4989 done
4990   done
4991 IFS=$as_save_IFS
4992
4993 fi
4994 fi
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; }
4999 else
5000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5002 fi
5003
5004
5005 fi
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
5014 else
5015   if test -n "$ac_ct_DLLTOOL"; then
5016   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021   IFS=$as_save_IFS
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
5027     break 2
5028   fi
5029 done
5030   done
5031 IFS=$as_save_IFS
5032
5033 fi
5034 fi
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; }
5039 else
5040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5042 fi
5043
5044   if test "x$ac_ct_DLLTOOL" = x; then
5045     DLLTOOL="false"
5046   else
5047     case $cross_compiling:$ac_tool_warned in
5048 yes:)
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 ;;
5052 esac
5053     DLLTOOL=$ac_ct_DLLTOOL
5054   fi
5055 else
5056   DLLTOOL="$ac_cv_prog_DLLTOOL"
5057 fi
5058
5059 test -z "$DLLTOOL" && DLLTOOL=dlltool
5060
5061
5062
5063
5064
5065
5066
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
5071 else
5072   lt_cv_sharedlib_from_linklib_cmd='unknown'
5073
5074 case $host_os in
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
5081     ;;
5082   *)
5083     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5084     ;;
5085   esac
5086   ;;
5087 *)
5088   # fallback: assume linklib IS sharedlib
5089   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5090   ;;
5091 esac
5092
5093 fi
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
5098
5099
5100
5101
5102
5103
5104
5105
5106 if test -n "$ac_tool_prefix"; then
5107   for ac_prog in ar
5108   do
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
5115 else
5116   if test -n "$AR"; then
5117   ac_cv_prog_AR="$AR" # Let the user override the test.
5118 else
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5121 do
5122   IFS=$as_save_IFS
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
5128     break 2
5129   fi
5130 done
5131   done
5132 IFS=$as_save_IFS
5133
5134 fi
5135 fi
5136 AR=$ac_cv_prog_AR
5137 if test -n "$AR"; then
5138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5139 $as_echo "$AR" >&6; }
5140 else
5141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5143 fi
5144
5145
5146     test -n "$AR" && break
5147   done
5148 fi
5149 if test -z "$AR"; then
5150   ac_ct_AR=$AR
5151   for ac_prog in ar
5152 do
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
5159 else
5160   if test -n "$ac_ct_AR"; then
5161   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5162 else
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166   IFS=$as_save_IFS
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
5172     break 2
5173   fi
5174 done
5175   done
5176 IFS=$as_save_IFS
5177
5178 fi
5179 fi
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; }
5184 else
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5187 fi
5188
5189
5190   test -n "$ac_ct_AR" && break
5191 done
5192
5193   if test "x$ac_ct_AR" = x; then
5194     AR="false"
5195   else
5196     case $cross_compiling:$ac_tool_warned in
5197 yes:)
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 ;;
5201 esac
5202     AR=$ac_ct_AR
5203   fi
5204 fi
5205
5206 : ${AR=ar}
5207 : ${AR_FLAGS=cru}
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
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
5223 else
5224   lt_cv_ar_at_file=no
5225    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h.  */
5227
5228 int
5229 main ()
5230 {
5231
5232   ;
5233   return 0;
5234 }
5235 _ACEOF
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
5241   ac_status=$?
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
5249   ac_status=$?
5250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5251   test $ac_status = 0; }
5252         if test "$ac_status" -ne 0; then
5253           lt_cv_ar_at_file=@
5254         fi
5255       fi
5256       rm -f conftest.* libconftest.a
5257
5258 fi
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260
5261 fi
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5263 $as_echo "$lt_cv_ar_at_file" >&6; }
5264
5265 if test "x$lt_cv_ar_at_file" = xno; then
5266   archiver_list_spec=
5267 else
5268   archiver_list_spec=$lt_cv_ar_at_file
5269 fi
5270
5271
5272
5273
5274
5275
5276
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
5284 else
5285   if test -n "$STRIP"; then
5286   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291   IFS=$as_save_IFS
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
5297     break 2
5298   fi
5299 done
5300   done
5301 IFS=$as_save_IFS
5302
5303 fi
5304 fi
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; }
5309 else
5310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5312 fi
5313
5314
5315 fi
5316 if test -z "$ac_cv_prog_STRIP"; then
5317   ac_ct_STRIP=$STRIP
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
5324 else
5325   if test -n "$ac_ct_STRIP"; then
5326   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5327 else
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331   IFS=$as_save_IFS
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
5337     break 2
5338   fi
5339 done
5340   done
5341 IFS=$as_save_IFS
5342
5343 fi
5344 fi
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; }
5349 else
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5352 fi
5353
5354   if test "x$ac_ct_STRIP" = x; then
5355     STRIP=":"
5356   else
5357     case $cross_compiling:$ac_tool_warned in
5358 yes:)
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 ;;
5362 esac
5363     STRIP=$ac_ct_STRIP
5364   fi
5365 else
5366   STRIP="$ac_cv_prog_STRIP"
5367 fi
5368
5369 test -z "$STRIP" && STRIP=:
5370
5371
5372
5373
5374
5375
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
5383 else
5384   if test -n "$RANLIB"; then
5385   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5389 do
5390   IFS=$as_save_IFS
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
5396     break 2
5397   fi
5398 done
5399   done
5400 IFS=$as_save_IFS
5401
5402 fi
5403 fi
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; }
5408 else
5409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5411 fi
5412
5413
5414 fi
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
5423 else
5424   if test -n "$ac_ct_RANLIB"; then
5425   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5426 else
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5429 do
5430   IFS=$as_save_IFS
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
5436     break 2
5437   fi
5438 done
5439   done
5440 IFS=$as_save_IFS
5441
5442 fi
5443 fi
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; }
5448 else
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451 fi
5452
5453   if test "x$ac_ct_RANLIB" = x; then
5454     RANLIB=":"
5455   else
5456     case $cross_compiling:$ac_tool_warned in
5457 yes:)
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 ;;
5461 esac
5462     RANLIB=$ac_ct_RANLIB
5463   fi
5464 else
5465   RANLIB="$ac_cv_prog_RANLIB"
5466 fi
5467
5468 test -z "$RANLIB" && RANLIB=:
5469
5470
5471
5472
5473
5474
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=
5479
5480 if test -n "$RANLIB"; then
5481   case $host_os in
5482   openbsd*)
5483     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5484     ;;
5485   *)
5486     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5487     ;;
5488   esac
5489   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5490 fi
5491
5492 case $host_os in
5493   darwin*)
5494     lock_old_archive_extraction=yes ;;
5495   *)
5496     lock_old_archive_extraction=no ;;
5497 esac
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519 for ac_prog in gawk mawk nawk awk
5520 do
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
5527 else
5528   if test -n "$AWK"; then
5529   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534   IFS=$as_save_IFS
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
5540     break 2
5541   fi
5542 done
5543   done
5544 IFS=$as_save_IFS
5545
5546 fi
5547 fi
5548 AWK=$ac_cv_prog_AWK
5549 if test -n "$AWK"; then
5550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5551 $as_echo "$AWK" >&6; }
5552 else
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5555 fi
5556
5557
5558   test -n "$AWK" && break
5559 done
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579 # If no C compiler was specified, use CC.
5580 LTCC=${LTCC-"$CC"}
5581
5582 # If no C compiler flags were specified, use CFLAGS.
5583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5584
5585 # Allow CC to be a program name with arguments.
5586 compiler=$CC
5587
5588
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
5594 else
5595
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?!! ;)]
5598
5599 # Character class describing NM global symbol codes.
5600 symcode='[BCDEGRST]'
5601
5602 # Regexp to match symbols that can be accessed directly from C.
5603 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5604
5605 # Define system-specific variables.
5606 case $host_os in
5607 aix*)
5608   symcode='[BCDT]'
5609   ;;
5610 cygwin* | mingw* | pw32* | cegcc*)
5611   symcode='[ABCDGISTW]'
5612   ;;
5613 hpux*)
5614   if test "$host_cpu" = ia64; then
5615     symcode='[ABCDEGRST]'
5616   fi
5617   ;;
5618 irix* | nonstopux*)
5619   symcode='[BCDEGRST]'
5620   ;;
5621 osf*)
5622   symcode='[BCDEGQRST]'
5623   ;;
5624 solaris*)
5625   symcode='[BDRT]'
5626   ;;
5627 sco3.2v5*)
5628   symcode='[DT]'
5629   ;;
5630 sysv4.2uw2*)
5631   symcode='[DT]'
5632   ;;
5633 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5634   symcode='[ABDT]'
5635   ;;
5636 sysv4)
5637   symcode='[DFNSTU]'
5638   ;;
5639 esac
5640
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]' ;;
5645 esac
5646
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'"
5651
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'"
5655
5656 # Handle CRLF in mingw tool chain
5657 opt_cr=
5658 case $build_os in
5659 mingw*)
5660   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5661   ;;
5662 esac
5663
5664 # Try without a prefix underscore, then with it.
5665 for ac_symprfx in "" "_"; do
5666
5667   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5668   symxfrm="\\1 $ac_symprfx\\2 \\2"
5669
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"
5688   else
5689     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5690   fi
5691   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5692
5693   # Check to see that the pipe works correctly.
5694   pipe_works=no
5695
5696   rm -f conftest*
5697   cat > conftest.$ac_ext <<_LT_EOF
5698 #ifdef __cplusplus
5699 extern "C" {
5700 #endif
5701 char nm_test_var;
5702 void nm_test_func(void);
5703 void nm_test_func(void){}
5704 #ifdef __cplusplus
5705 }
5706 #endif
5707 int main(){nm_test_var='a';nm_test_func();return(0);}
5708 _LT_EOF
5709
5710   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5711   (eval $ac_compile) 2>&5
5712   ac_status=$?
5713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5714   test $ac_status = 0; }; then
5715     # Now try to grab the symbols.
5716     nlist=conftest.nm
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
5719   ac_status=$?
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"
5725       else
5726         rm -f "$nlist"T
5727       fi
5728
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
5741 #else
5742 # define LT_DLSYM_CONST const
5743 #endif
5744
5745 #ifdef __cplusplus
5746 extern "C" {
5747 #endif
5748
5749 _LT_EOF
5750           # Now generate the symbol file.
5751           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5752
5753           cat <<_LT_EOF >> conftest.$ac_ext
5754
5755 /* The mapping between symbol names and symbols.  */
5756 LT_DLSYM_CONST struct {
5757   const char *name;
5758   void       *address;
5759 }
5760 lt__PROGRAM__LTX_preloaded_symbols[] =
5761 {
5762   { "@PROGRAM@", (void *) 0 },
5763 _LT_EOF
5764           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5765           cat <<\_LT_EOF >> conftest.$ac_ext
5766   {0, (void *) 0}
5767 };
5768
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;
5773 }
5774 #endif
5775
5776 #ifdef __cplusplus
5777 }
5778 #endif
5779 _LT_EOF
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
5788   ac_status=$?
5789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5790   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5791             pipe_works=yes
5792           fi
5793           LIBS=$lt_globsym_save_LIBS
5794           CFLAGS=$lt_globsym_save_CFLAGS
5795         else
5796           echo "cannot find nm_test_func in $nlist" >&5
5797         fi
5798       else
5799         echo "cannot find nm_test_var in $nlist" >&5
5800       fi
5801     else
5802       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5803     fi
5804   else
5805     echo "$progname: failed program was:" >&5
5806     cat conftest.$ac_ext >&5
5807   fi
5808   rm -rf conftest* conftst*
5809
5810   # Do not use the global_symbol_pipe unless it works.
5811   if test "$pipe_works" = yes; then
5812     break
5813   else
5814     lt_cv_sys_global_symbol_pipe=
5815   fi
5816 done
5817
5818 fi
5819
5820 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5821   lt_cv_sys_global_symbol_to_cdecl=
5822 fi
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; }
5826 else
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5828 $as_echo "ok" >&6; }
5829 fi
5830
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='@'
5836 fi
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5865 $as_echo_n "checking for sysroot... " >&6; }
5866
5867 # Check whether --with-sysroot was given.
5868 if test "${with_sysroot+set}" = set; then :
5869   withval=$with_sysroot;
5870 else
5871   with_sysroot=no
5872 fi
5873
5874
5875 lt_sysroot=
5876 case ${with_sysroot} in #(
5877  yes)
5878    if test "$GCC" = yes; then
5879      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5880    fi
5881    ;; #(
5882  /*)
5883    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5884    ;; #(
5885  no|'')
5886    ;; #(
5887  *)
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
5891    ;;
5892 esac
5893
5894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5895 $as_echo "${lt_sysroot:-no}" >&6; }
5896
5897
5898
5899
5900
5901 # Check whether --enable-libtool-lock was given.
5902 if test "${enable_libtool_lock+set}" = set; then :
5903   enableval=$enable_libtool_lock;
5904 fi
5905
5906 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5907
5908 # Some flags need to be propagated to the compiler or linker for good
5909 # libtool support.
5910 case $host in
5911 ia64-*-hpux*)
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
5916   ac_status=$?
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
5920       *ELF-32*)
5921         HPUX_IA64_MODE="32"
5922         ;;
5923       *ELF-64*)
5924         HPUX_IA64_MODE="64"
5925         ;;
5926     esac
5927   fi
5928   rm -rf conftest*
5929   ;;
5930 *-*-irix6*)
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
5935   ac_status=$?
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
5940         *32-bit*)
5941           LD="${LD-ld} -melf32bsmip"
5942           ;;
5943         *N32*)
5944           LD="${LD-ld} -melf32bmipn32"
5945           ;;
5946         *64-bit*)
5947           LD="${LD-ld} -melf64bmip"
5948         ;;
5949       esac
5950     else
5951       case `/usr/bin/file conftest.$ac_objext` in
5952         *32-bit*)
5953           LD="${LD-ld} -32"
5954           ;;
5955         *N32*)
5956           LD="${LD-ld} -n32"
5957           ;;
5958         *64-bit*)
5959           LD="${LD-ld} -64"
5960           ;;
5961       esac
5962     fi
5963   fi
5964   rm -rf conftest*
5965   ;;
5966
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
5973   ac_status=$?
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
5977       *32-bit*)
5978         case $host in
5979           x86_64-*kfreebsd*-gnu)
5980             LD="${LD-ld} -m elf_i386_fbsd"
5981             ;;
5982           x86_64-*linux*)
5983             LD="${LD-ld} -m elf_i386"
5984             ;;
5985           ppc64-*linux*|powerpc64-*linux*)
5986             LD="${LD-ld} -m elf32ppclinux"
5987             ;;
5988           s390x-*linux*)
5989             LD="${LD-ld} -m elf_s390"
5990             ;;
5991           sparc64-*linux*)
5992             LD="${LD-ld} -m elf32_sparc"
5993             ;;
5994         esac
5995         ;;
5996       *64-bit*)
5997         case $host in
5998           x86_64-*kfreebsd*-gnu)
5999             LD="${LD-ld} -m elf_x86_64_fbsd"
6000             ;;
6001           x86_64-*linux*)
6002             LD="${LD-ld} -m elf_x86_64"
6003             ;;
6004           powerpc64le-*linux*)
6005             LD="${LD-ld} -m elf64lppc"
6006             ;;
6007           powerpc64-*linux*)
6008             LD="${LD-ld} -m elf64ppc"
6009             ;;
6010           s390*-*linux*|s390*-*tpf*)
6011             LD="${LD-ld} -m elf64_s390"
6012             ;;
6013           sparc*-*linux*)
6014             LD="${LD-ld} -m elf64_sparc"
6015             ;;
6016         esac
6017         ;;
6018     esac
6019   fi
6020   rm -rf conftest*
6021   ;;
6022
6023 *-*-sco3.2v5*)
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
6031 else
6032   ac_ext=c
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
6037
6038      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h.  */
6040
6041 int
6042 main ()
6043 {
6044
6045   ;
6046   return 0;
6047 }
6048 _ACEOF
6049 if ac_fn_c_try_link "$LINENO"; then :
6050   lt_cv_cc_needs_belf=yes
6051 else
6052   lt_cv_cc_needs_belf=no
6053 fi
6054 rm -f core conftest.err conftest.$ac_objext \
6055     conftest$ac_exeext conftest.$ac_ext
6056      ac_ext=c
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
6061
6062 fi
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"
6068   fi
6069   ;;
6070 *-*solaris*)
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
6075   ac_status=$?
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
6079     *64-bit*)
6080       case $lt_cv_prog_gnu_ld in
6081       yes*)
6082         case $host in
6083         i?86-*-solaris*)
6084           LD="${LD-ld} -m elf_x86_64"
6085           ;;
6086         sparc*-*-solaris*)
6087           LD="${LD-ld} -m elf64_sparc"
6088           ;;
6089         esac
6090         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6091         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6092           LD="${LD-ld}_sol2"
6093         fi
6094         ;;
6095       *)
6096         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6097           LD="${LD-ld} -64"
6098         fi
6099         ;;
6100       esac
6101       ;;
6102     esac
6103   fi
6104   rm -rf conftest*
6105   ;;
6106 esac
6107
6108 need_locks="$enable_libtool_lock"
6109
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
6117 else
6118   if test -n "$MANIFEST_TOOL"; then
6119   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6120 else
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6123 do
6124   IFS=$as_save_IFS
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
6130     break 2
6131   fi
6132 done
6133   done
6134 IFS=$as_save_IFS
6135
6136 fi
6137 fi
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; }
6142 else
6143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6145 fi
6146
6147
6148 fi
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
6157 else
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.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164   IFS=$as_save_IFS
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
6170     break 2
6171   fi
6172 done
6173   done
6174 IFS=$as_save_IFS
6175
6176 fi
6177 fi
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; }
6182 else
6183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6185 fi
6186
6187   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6188     MANIFEST_TOOL=":"
6189   else
6190     case $cross_compiling:$ac_tool_warned in
6191 yes:)
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 ;;
6195 esac
6196     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6197   fi
6198 else
6199   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6200 fi
6201
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
6207 else
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
6214   fi
6215   rm -f conftest*
6216 fi
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
6220   MANIFEST_TOOL=:
6221 fi
6222
6223
6224
6225
6226
6227
6228   case $host_os in
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
6237 else
6238   if test -n "$DSYMUTIL"; then
6239   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244   IFS=$as_save_IFS
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
6250     break 2
6251   fi
6252 done
6253   done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
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; }
6262 else
6263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6265 fi
6266
6267
6268 fi
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
6277 else
6278   if test -n "$ac_ct_DSYMUTIL"; then
6279   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284   IFS=$as_save_IFS
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
6290     break 2
6291   fi
6292 done
6293   done
6294 IFS=$as_save_IFS
6295
6296 fi
6297 fi
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; }
6302 else
6303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 $as_echo "no" >&6; }
6305 fi
6306
6307   if test "x$ac_ct_DSYMUTIL" = x; then
6308     DSYMUTIL=":"
6309   else
6310     case $cross_compiling:$ac_tool_warned in
6311 yes:)
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 ;;
6315 esac
6316     DSYMUTIL=$ac_ct_DSYMUTIL
6317   fi
6318 else
6319   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6320 fi
6321
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
6329 else
6330   if test -n "$NMEDIT"; then
6331   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336   IFS=$as_save_IFS
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
6342     break 2
6343   fi
6344 done
6345   done
6346 IFS=$as_save_IFS
6347
6348 fi
6349 fi
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; }
6354 else
6355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 $as_echo "no" >&6; }
6357 fi
6358
6359
6360 fi
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
6369 else
6370   if test -n "$ac_ct_NMEDIT"; then
6371   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6372 else
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6375 do
6376   IFS=$as_save_IFS
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
6382     break 2
6383   fi
6384 done
6385   done
6386 IFS=$as_save_IFS
6387
6388 fi
6389 fi
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; }
6394 else
6395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396 $as_echo "no" >&6; }
6397 fi
6398
6399   if test "x$ac_ct_NMEDIT" = x; then
6400     NMEDIT=":"
6401   else
6402     case $cross_compiling:$ac_tool_warned in
6403 yes:)
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 ;;
6407 esac
6408     NMEDIT=$ac_ct_NMEDIT
6409   fi
6410 else
6411   NMEDIT="$ac_cv_prog_NMEDIT"
6412 fi
6413
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
6421 else
6422   if test -n "$LIPO"; then
6423   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428   IFS=$as_save_IFS
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
6434     break 2
6435   fi
6436 done
6437   done
6438 IFS=$as_save_IFS
6439
6440 fi
6441 fi
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; }
6446 else
6447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6449 fi
6450
6451
6452 fi
6453 if test -z "$ac_cv_prog_LIPO"; then
6454   ac_ct_LIPO=$LIPO
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
6461 else
6462   if test -n "$ac_ct_LIPO"; then
6463   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468   IFS=$as_save_IFS
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
6474     break 2
6475   fi
6476 done
6477   done
6478 IFS=$as_save_IFS
6479
6480 fi
6481 fi
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; }
6486 else
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 $as_echo "no" >&6; }
6489 fi
6490
6491   if test "x$ac_ct_LIPO" = x; then
6492     LIPO=":"
6493   else
6494     case $cross_compiling:$ac_tool_warned in
6495 yes:)
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 ;;
6499 esac
6500     LIPO=$ac_ct_LIPO
6501   fi
6502 else
6503   LIPO="$ac_cv_prog_LIPO"
6504 fi
6505
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
6513 else
6514   if test -n "$OTOOL"; then
6515   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520   IFS=$as_save_IFS
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
6526     break 2
6527   fi
6528 done
6529   done
6530 IFS=$as_save_IFS
6531
6532 fi
6533 fi
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; }
6538 else
6539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6541 fi
6542
6543
6544 fi
6545 if test -z "$ac_cv_prog_OTOOL"; then
6546   ac_ct_OTOOL=$OTOOL
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
6553 else
6554   if test -n "$ac_ct_OTOOL"; then
6555   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6556 else
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 for as_dir in $PATH
6559 do
6560   IFS=$as_save_IFS
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
6566     break 2
6567   fi
6568 done
6569   done
6570 IFS=$as_save_IFS
6571
6572 fi
6573 fi
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; }
6578 else
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580 $as_echo "no" >&6; }
6581 fi
6582
6583   if test "x$ac_ct_OTOOL" = x; then
6584     OTOOL=":"
6585   else
6586     case $cross_compiling:$ac_tool_warned in
6587 yes:)
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 ;;
6591 esac
6592     OTOOL=$ac_ct_OTOOL
6593   fi
6594 else
6595   OTOOL="$ac_cv_prog_OTOOL"
6596 fi
6597
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
6605 else
6606   if test -n "$OTOOL64"; then
6607   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6608 else
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612   IFS=$as_save_IFS
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
6618     break 2
6619   fi
6620 done
6621   done
6622 IFS=$as_save_IFS
6623
6624 fi
6625 fi
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; }
6630 else
6631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6633 fi
6634
6635
6636 fi
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
6645 else
6646   if test -n "$ac_ct_OTOOL64"; then
6647   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652   IFS=$as_save_IFS
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
6658     break 2
6659   fi
6660 done
6661   done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
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; }
6670 else
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674
6675   if test "x$ac_ct_OTOOL64" = x; then
6676     OTOOL64=":"
6677   else
6678     case $cross_compiling:$ac_tool_warned in
6679 yes:)
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 ;;
6683 esac
6684     OTOOL64=$ac_ct_OTOOL64
6685   fi
6686 else
6687   OTOOL64="$ac_cv_prog_OTOOL64"
6688 fi
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
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
6720 else
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
6726         # link flags.
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
6733         _lt_result=$?
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
6742         else
6743           cat conftest.err >&5
6744         fi
6745         rm -rf libconftest.dylib*
6746         rm -f conftest.*
6747       fi
6748 fi
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; }
6751
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
6756 else
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.  */
6763
6764 int
6765 main ()
6766 {
6767
6768   ;
6769   return 0;
6770 }
6771 _ACEOF
6772 if ac_fn_c_try_link "$LINENO"; then :
6773   lt_cv_ld_exported_symbols_list=yes
6774 else
6775   lt_cv_ld_exported_symbols_list=no
6776 fi
6777 rm -f core conftest.err conftest.$ac_objext \
6778     conftest$ac_exeext conftest.$ac_ext
6779         LDFLAGS="$save_LDFLAGS"
6780
6781 fi
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; }
6784
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
6789 else
6790   lt_cv_ld_force_load=no
6791       cat > conftest.c << _LT_EOF
6792 int forced_loaded() { return 2;}
6793 _LT_EOF
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;}
6802 _LT_EOF
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
6805       _lt_result=$?
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
6810       else
6811         cat conftest.err >&5
6812       fi
6813         rm -f conftest.err libconftest.a conftest conftest.c
6814         rm -rf conftest.dSYM
6815
6816 fi
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6818 $as_echo "$lt_cv_ld_force_load" >&6; }
6819     case $host_os in
6820     rhapsody* | darwin1.[012])
6821       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6822     darwin1.*)
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' ;;
6831         10.[012]*)
6832           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6833         10.*)
6834           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6835       esac
6836     ;;
6837   esac
6838     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6839       _lt_dar_single_mod='$single_module'
6840     fi
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'
6843     else
6844       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6845     fi
6846     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6847       _lt_dsymutil='~$DSYMUTIL $lib || :'
6848     else
6849       _lt_dsymutil=
6850     fi
6851     ;;
6852   esac
6853
6854 ac_ext=c
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
6863   CPP=
6864 fi
6865 if test -z "$CPP"; then
6866   if ${ac_cv_prog_CPP+:} false; then :
6867   $as_echo_n "(cached) " >&6
6868 else
6869       # Double quotes because CPP needs to be expanded
6870     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6871     do
6872       ac_preproc_ok=false
6873 for ac_c_preproc_warn_flag in '' yes
6874 do
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.  */
6883 #ifdef __STDC__
6884 # include <limits.h>
6885 #else
6886 # include <assert.h>
6887 #endif
6888                      Syntax error
6889 _ACEOF
6890 if ac_fn_c_try_cpp "$LINENO"; then :
6891
6892 else
6893   # Broken: fails on valid input.
6894 continue
6895 fi
6896 rm -f conftest.err conftest.i conftest.$ac_ext
6897
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>
6903 _ACEOF
6904 if ac_fn_c_try_cpp "$LINENO"; then :
6905   # Broken: success on invalid input.
6906 continue
6907 else
6908   # Passes both tests.
6909 ac_preproc_ok=:
6910 break
6911 fi
6912 rm -f conftest.err conftest.i conftest.$ac_ext
6913
6914 done
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 :
6918   break
6919 fi
6920
6921     done
6922     ac_cv_prog_CPP=$CPP
6923
6924 fi
6925   CPP=$ac_cv_prog_CPP
6926 else
6927   ac_cv_prog_CPP=$CPP
6928 fi
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6930 $as_echo "$CPP" >&6; }
6931 ac_preproc_ok=false
6932 for ac_c_preproc_warn_flag in '' yes
6933 do
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.  */
6942 #ifdef __STDC__
6943 # include <limits.h>
6944 #else
6945 # include <assert.h>
6946 #endif
6947                      Syntax error
6948 _ACEOF
6949 if ac_fn_c_try_cpp "$LINENO"; then :
6950
6951 else
6952   # Broken: fails on valid input.
6953 continue
6954 fi
6955 rm -f conftest.err conftest.i conftest.$ac_ext
6956
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>
6962 _ACEOF
6963 if ac_fn_c_try_cpp "$LINENO"; then :
6964   # Broken: success on invalid input.
6965 continue
6966 else
6967   # Passes both tests.
6968 ac_preproc_ok=:
6969 break
6970 fi
6971 rm -f conftest.err conftest.i conftest.$ac_ext
6972
6973 done
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 :
6977
6978 else
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; }
6983 fi
6984
6985 ac_ext=c
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
6990
6991
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
6996 else
6997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h.  */
6999 #include <stdlib.h>
7000 #include <stdarg.h>
7001 #include <string.h>
7002 #include <float.h>
7003
7004 int
7005 main ()
7006 {
7007
7008   ;
7009   return 0;
7010 }
7011 _ACEOF
7012 if ac_fn_c_try_compile "$LINENO"; then :
7013   ac_cv_header_stdc=yes
7014 else
7015   ac_cv_header_stdc=no
7016 fi
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018
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.  */
7023 #include <string.h>
7024
7025 _ACEOF
7026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7027   $EGREP "memchr" >/dev/null 2>&1; then :
7028
7029 else
7030   ac_cv_header_stdc=no
7031 fi
7032 rm -f conftest*
7033
7034 fi
7035
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.  */
7040 #include <stdlib.h>
7041
7042 _ACEOF
7043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7044   $EGREP "free" >/dev/null 2>&1; then :
7045
7046 else
7047   ac_cv_header_stdc=no
7048 fi
7049 rm -f conftest*
7050
7051 fi
7052
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 :
7056   :
7057 else
7058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h.  */
7060 #include <ctype.h>
7061 #include <stdlib.h>
7062 #if ((' ' & 0x0FF) == 0x020)
7063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7065 #else
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))
7071 #endif
7072
7073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7074 int
7075 main ()
7076 {
7077   int i;
7078   for (i = 0; i < 256; i++)
7079     if (XOR (islower (i), ISLOWER (i))
7080         || toupper (i) != TOUPPER (i))
7081       return 2;
7082   return 0;
7083 }
7084 _ACEOF
7085 if ac_fn_c_try_run "$LINENO"; then :
7086
7087 else
7088   ac_cv_header_stdc=no
7089 fi
7090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7091   conftest.$ac_objext conftest.beam conftest.$ac_ext
7092 fi
7093
7094 fi
7095 fi
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
7099
7100 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7101
7102 fi
7103
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
7107 do :
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
7110 "
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
7114 _ACEOF
7115
7116 fi
7117
7118 done
7119
7120
7121 for ac_header in dlfcn.h
7122 do :
7123   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7124 "
7125 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7126   cat >>confdefs.h <<_ACEOF
7127 #define HAVE_DLFCN_H 1
7128 _ACEOF
7129
7130 fi
7131
7132 done
7133
7134
7135
7136
7137
7138 # Set options
7139 enable_win32_dll=yes
7140
7141 case $host in
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
7150 else
7151   if test -n "$AS"; then
7152   ac_cv_prog_AS="$AS" # Let the user override the test.
7153 else
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7156 do
7157   IFS=$as_save_IFS
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
7163     break 2
7164   fi
7165 done
7166   done
7167 IFS=$as_save_IFS
7168
7169 fi
7170 fi
7171 AS=$ac_cv_prog_AS
7172 if test -n "$AS"; then
7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7174 $as_echo "$AS" >&6; }
7175 else
7176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7178 fi
7179
7180
7181 fi
7182 if test -z "$ac_cv_prog_AS"; then
7183   ac_ct_AS=$AS
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
7190 else
7191   if test -n "$ac_ct_AS"; then
7192   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7193 else
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7196 do
7197   IFS=$as_save_IFS
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
7203     break 2
7204   fi
7205 done
7206   done
7207 IFS=$as_save_IFS
7208
7209 fi
7210 fi
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; }
7215 else
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7218 fi
7219
7220   if test "x$ac_ct_AS" = x; then
7221     AS="false"
7222   else
7223     case $cross_compiling:$ac_tool_warned in
7224 yes:)
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 ;;
7228 esac
7229     AS=$ac_ct_AS
7230   fi
7231 else
7232   AS="$ac_cv_prog_AS"
7233 fi
7234
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
7242 else
7243   if test -n "$DLLTOOL"; then
7244   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7248 do
7249   IFS=$as_save_IFS
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
7255     break 2
7256   fi
7257 done
7258   done
7259 IFS=$as_save_IFS
7260
7261 fi
7262 fi
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; }
7267 else
7268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7270 fi
7271
7272
7273 fi
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
7282 else
7283   if test -n "$ac_ct_DLLTOOL"; then
7284   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7285 else
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289   IFS=$as_save_IFS
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
7295     break 2
7296   fi
7297 done
7298   done
7299 IFS=$as_save_IFS
7300
7301 fi
7302 fi
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; }
7307 else
7308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7310 fi
7311
7312   if test "x$ac_ct_DLLTOOL" = x; then
7313     DLLTOOL="false"
7314   else
7315     case $cross_compiling:$ac_tool_warned in
7316 yes:)
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 ;;
7320 esac
7321     DLLTOOL=$ac_ct_DLLTOOL
7322   fi
7323 else
7324   DLLTOOL="$ac_cv_prog_DLLTOOL"
7325 fi
7326
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
7334 else
7335   if test -n "$OBJDUMP"; then
7336   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7337 else
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7340 do
7341   IFS=$as_save_IFS
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
7347     break 2
7348   fi
7349 done
7350   done
7351 IFS=$as_save_IFS
7352
7353 fi
7354 fi
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; }
7359 else
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7362 fi
7363
7364
7365 fi
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
7374 else
7375   if test -n "$ac_ct_OBJDUMP"; then
7376   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381   IFS=$as_save_IFS
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
7387     break 2
7388   fi
7389 done
7390   done
7391 IFS=$as_save_IFS
7392
7393 fi
7394 fi
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; }
7399 else
7400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7402 fi
7403
7404   if test "x$ac_ct_OBJDUMP" = x; then
7405     OBJDUMP="false"
7406   else
7407     case $cross_compiling:$ac_tool_warned in
7408 yes:)
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 ;;
7412 esac
7413     OBJDUMP=$ac_ct_OBJDUMP
7414   fi
7415 else
7416   OBJDUMP="$ac_cv_prog_OBJDUMP"
7417 fi
7418
7419   ;;
7420 esac
7421
7422 test -z "$AS" && AS=as
7423
7424
7425
7426
7427
7428 test -z "$DLLTOOL" && DLLTOOL=dlltool
7429
7430
7431
7432
7433
7434 test -z "$OBJDUMP" && OBJDUMP=objdump
7435
7436
7437
7438
7439
7440
7441
7442         enable_dlopen=no
7443
7444
7445
7446             # Check whether --enable-shared was given.
7447 if test "${enable_shared+set}" = set; then :
7448   enableval=$enable_shared; p=${PACKAGE-default}
7449     case $enableval in
7450     yes) enable_shared=yes ;;
7451     no) enable_shared=no ;;
7452     *)
7453       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
7457         IFS="$lt_save_ifs"
7458         if test "X$pkg" = "X$p"; then
7459           enable_shared=yes
7460         fi
7461       done
7462       IFS="$lt_save_ifs"
7463       ;;
7464     esac
7465 else
7466   enable_shared=yes
7467 fi
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477   # Check whether --enable-static was given.
7478 if test "${enable_static+set}" = set; then :
7479   enableval=$enable_static; p=${PACKAGE-default}
7480     case $enableval in
7481     yes) enable_static=yes ;;
7482     no) enable_static=no ;;
7483     *)
7484      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
7488         IFS="$lt_save_ifs"
7489         if test "X$pkg" = "X$p"; then
7490           enable_static=yes
7491         fi
7492       done
7493       IFS="$lt_save_ifs"
7494       ;;
7495     esac
7496 else
7497   enable_static=yes
7498 fi
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509 # Check whether --with-pic was given.
7510 if test "${with_pic+set}" = set; then :
7511   withval=$with_pic; lt_p=${PACKAGE-default}
7512     case $withval in
7513     yes|no) pic_mode=$withval ;;
7514     *)
7515       pic_mode=default
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
7519         IFS="$lt_save_ifs"
7520         if test "X$lt_pkg" = "X$lt_p"; then
7521           pic_mode=yes
7522         fi
7523       done
7524       IFS="$lt_save_ifs"
7525       ;;
7526     esac
7527 else
7528   pic_mode=default
7529 fi
7530
7531
7532 test -z "$pic_mode" && pic_mode=default
7533
7534
7535
7536
7537
7538
7539
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}
7543     case $enableval in
7544     yes) enable_fast_install=yes ;;
7545     no) enable_fast_install=no ;;
7546     *)
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
7551         IFS="$lt_save_ifs"
7552         if test "X$pkg" = "X$p"; then
7553           enable_fast_install=yes
7554         fi
7555       done
7556       IFS="$lt_save_ifs"
7557       ;;
7558     esac
7559 else
7560   enable_fast_install=yes
7561 fi
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573 # This can be used to rebuild libtool when needed
7574 LIBTOOL_DEPS="$ltmain"
7575
7576 # Always use our own libtool.
7577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608 test -z "$LN_S" && LN_S="ln -s"
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623 if test -n "${ZSH_VERSION+set}" ; then
7624    setopt NO_GLOB_SUBST
7625 fi
7626
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
7631 else
7632   rm -f .libs 2>/dev/null
7633 mkdir .libs 2>/dev/null
7634 if test -d .libs; then
7635   lt_cv_objdir=.libs
7636 else
7637   # MS-DOS does not allow filenames that begin with a dot.
7638   lt_cv_objdir=_libs
7639 fi
7640 rmdir .libs 2>/dev/null
7641 fi
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
7645
7646
7647
7648
7649
7650 cat >>confdefs.h <<_ACEOF
7651 #define LT_OBJDIR "$lt_cv_objdir/"
7652 _ACEOF
7653
7654
7655
7656
7657 case $host_os in
7658 aix3*)
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
7663     COLLECT_NAMES=
7664     export COLLECT_NAMES
7665   fi
7666   ;;
7667 esac
7668
7669 # Global variables:
7670 ofile=libtool
7671 can_build_shared=yes
7672
7673 # All known linkers require a `.a' archive for static linking (except MSVC,
7674 # which needs '.lib').
7675 libext=a
7676
7677 with_gnu_ld="$lt_cv_prog_gnu_ld"
7678
7679 old_CC="$CC"
7680 old_CFLAGS="$CFLAGS"
7681
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
7688
7689 for cc_temp in $compiler""; do
7690   case $cc_temp in
7691     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7692     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7693     \-*) ;;
7694     *) break;;
7695   esac
7696 done
7697 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7698
7699
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
7703 file_magic*)
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
7709 else
7710   case $MAGIC_CMD in
7711 [\\/*] |  ?:[\\/]*)
7712   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7713   ;;
7714 *)
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
7719     IFS="$lt_save_ifs"
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
7725         "file_magic "*)
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
7730             :
7731           else
7732             cat <<_LT_EOF 1>&2
7733
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
7742
7743 _LT_EOF
7744           fi ;;
7745         esac
7746       fi
7747       break
7748     fi
7749   done
7750   IFS="$lt_save_ifs"
7751   MAGIC_CMD="$lt_save_MAGIC_CMD"
7752   ;;
7753 esac
7754 fi
7755
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; }
7760 else
7761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7763 fi
7764
7765
7766
7767
7768
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
7775 else
7776   case $MAGIC_CMD in
7777 [\\/*] |  ?:[\\/]*)
7778   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7779   ;;
7780 *)
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
7785     IFS="$lt_save_ifs"
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
7791         "file_magic "*)
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
7796             :
7797           else
7798             cat <<_LT_EOF 1>&2
7799
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
7808
7809 _LT_EOF
7810           fi ;;
7811         esac
7812       fi
7813       break
7814     fi
7815   done
7816   IFS="$lt_save_ifs"
7817   MAGIC_CMD="$lt_save_MAGIC_CMD"
7818   ;;
7819 esac
7820 fi
7821
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; }
7826 else
7827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7829 fi
7830
7831
7832   else
7833     MAGIC_CMD=:
7834   fi
7835 fi
7836
7837   fi
7838   ;;
7839 esac
7840
7841 # Use C for the default configuration in the libtool script
7842
7843 lt_save_CC="$CC"
7844 ac_ext=c
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
7849
7850
7851 # Source file extension for C test sources.
7852 ac_ext=c
7853
7854 # Object file extension for compiled C test sources.
7855 objext=o
7856 objext=$objext
7857
7858 # Code to be used in simple compile tests
7859 lt_simple_compile_test_code="int some_variable = 0;"
7860
7861 # Code to be used in simple link tests
7862 lt_simple_link_test_code='int main(){return(0);}'
7863
7864
7865
7866
7867
7868
7869
7870 # If no C compiler was specified, use CC.
7871 LTCC=${LTCC-"$CC"}
7872
7873 # If no C compiler flags were specified, use CFLAGS.
7874 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7875
7876 # Allow CC to be a program name with arguments.
7877 compiler=$CC
7878
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
7882
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`
7888 $RM conftest*
7889
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`
7894 $RM -r conftest*
7895
7896
7897 ## CAVEAT EMPTOR:
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
7902
7903 lt_prog_compiler_no_builtin_flag=
7904
7905 if test "$GCC" = yes; then
7906   case $cc_basename in
7907   nvcc*)
7908     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7909   *)
7910     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7911   esac
7912
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
7917 else
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)
7933    ac_status=$?
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
7943      fi
7944    fi
7945    $RM conftest*
7946
7947 fi
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; }
7950
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"
7953 else
7954     :
7955 fi
7956
7957 fi
7958
7959
7960
7961
7962
7963
7964   lt_prog_compiler_wl=
7965 lt_prog_compiler_pic=
7966 lt_prog_compiler_static=
7967
7968
7969   if test "$GCC" = yes; then
7970     lt_prog_compiler_wl='-Wl,'
7971     lt_prog_compiler_static='-static'
7972
7973     case $host_os in
7974       aix*)
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'
7979       fi
7980       ;;
7981
7982     amigaos*)
7983       case $host_cpu in
7984       powerpc)
7985             # see comment about AmigaOS4 .so support
7986             lt_prog_compiler_pic='-fPIC'
7987         ;;
7988       m68k)
7989             # FIXME: we need at least 68020 code to build shared libraries, but
7990             # adding the `-m68020' flag to GCC prevents building anything better,
7991             # like `-m68040'.
7992             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7993         ;;
7994       esac
7995       ;;
7996
7997     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7998       # PIC is the default for these OSes.
7999       ;;
8000
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'
8007       ;;
8008
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'
8013       ;;
8014
8015     haiku*)
8016       # PIC is the default for Haiku.
8017       # The "-static" flag exists, but is broken.
8018       lt_prog_compiler_static=
8019       ;;
8020
8021     hpux*)
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.
8025       case $host_cpu in
8026       hppa*64*)
8027         # +Z the default
8028         ;;
8029       *)
8030         lt_prog_compiler_pic='-fPIC'
8031         ;;
8032       esac
8033       ;;
8034
8035     interix[3-9]*)
8036       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8037       # Instead, we relocate shared libraries at runtime.
8038       ;;
8039
8040     msdosdjgpp*)
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
8044       enable_shared=no
8045       ;;
8046
8047     *nto* | *qnx*)
8048       # QNX uses GNU C++, but need to define -shared option too, otherwise
8049       # it will coredump.
8050       lt_prog_compiler_pic='-fPIC -shared'
8051       ;;
8052
8053     sysv4*MP*)
8054       if test -d /usr/nec; then
8055         lt_prog_compiler_pic=-Kconform_pic
8056       fi
8057       ;;
8058
8059     *)
8060       lt_prog_compiler_pic='-fPIC'
8061       ;;
8062     esac
8063
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"
8069       fi
8070       ;;
8071     esac
8072   else
8073     # PORTME Check for flag to pass linker flags through the system compiler.
8074     case $host_os in
8075     aix*)
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'
8080       else
8081         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8082       fi
8083       ;;
8084
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'
8089       ;;
8090
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
8094       # not for PA HP-UX.
8095       case $host_cpu in
8096       hppa*64*|ia64*)
8097         # +Z the default
8098         ;;
8099       *)
8100         lt_prog_compiler_pic='+Z'
8101         ;;
8102       esac
8103       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8104       lt_prog_compiler_static='${wl}-a ${wl}archive'
8105       ;;
8106
8107     irix5* | irix6* | nonstopux*)
8108       lt_prog_compiler_wl='-Wl,'
8109       # PIC (with -KPIC) is the default.
8110       lt_prog_compiler_static='-non_shared'
8111       ;;
8112
8113     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8114       case $cc_basename in
8115       # old Intel for x86_64 which still supported -KPIC.
8116       ecc*)
8117         lt_prog_compiler_wl='-Wl,'
8118         lt_prog_compiler_pic='-KPIC'
8119         lt_prog_compiler_static='-static'
8120         ;;
8121       # icc used to be incompatible with GCC.
8122       # ICC 10 doesn't accept -KPIC any more.
8123       icc* | ifort*)
8124         lt_prog_compiler_wl='-Wl,'
8125         lt_prog_compiler_pic='-fPIC'
8126         lt_prog_compiler_static='-static'
8127         ;;
8128       # Lahey Fortran 8.1.
8129       lf95*)
8130         lt_prog_compiler_wl='-Wl,'
8131         lt_prog_compiler_pic='--shared'
8132         lt_prog_compiler_static='--static'
8133         ;;
8134       nagfor*)
8135         # NAG Fortran compiler
8136         lt_prog_compiler_wl='-Wl,-Wl,,'
8137         lt_prog_compiler_pic='-PIC'
8138         lt_prog_compiler_static='-Bstatic'
8139         ;;
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'
8146         ;;
8147       ccc*)
8148         lt_prog_compiler_wl='-Wl,'
8149         # All Alpha code is PIC.
8150         lt_prog_compiler_static='-non_shared'
8151         ;;
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'
8157         ;;
8158       *)
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=''
8165           ;;
8166         *Sun\ F* | *Sun*Fortran*)
8167           lt_prog_compiler_pic='-KPIC'
8168           lt_prog_compiler_static='-Bstatic'
8169           lt_prog_compiler_wl='-Qoption ld '
8170           ;;
8171         *Sun\ C*)
8172           # Sun C 5.9
8173           lt_prog_compiler_pic='-KPIC'
8174           lt_prog_compiler_static='-Bstatic'
8175           lt_prog_compiler_wl='-Wl,'
8176           ;;
8177         *Intel*\ [CF]*Compiler*)
8178           lt_prog_compiler_wl='-Wl,'
8179           lt_prog_compiler_pic='-fPIC'
8180           lt_prog_compiler_static='-static'
8181           ;;
8182         *Portland\ Group*)
8183           lt_prog_compiler_wl='-Wl,'
8184           lt_prog_compiler_pic='-fpic'
8185           lt_prog_compiler_static='-Bstatic'
8186           ;;
8187         esac
8188         ;;
8189       esac
8190       ;;
8191
8192     newsos6)
8193       lt_prog_compiler_pic='-KPIC'
8194       lt_prog_compiler_static='-Bstatic'
8195       ;;
8196
8197     *nto* | *qnx*)
8198       # QNX uses GNU C++, but need to define -shared option too, otherwise
8199       # it will coredump.
8200       lt_prog_compiler_pic='-fPIC -shared'
8201       ;;
8202
8203     osf3* | osf4* | osf5*)
8204       lt_prog_compiler_wl='-Wl,'
8205       # All OSF/1 code is PIC.
8206       lt_prog_compiler_static='-non_shared'
8207       ;;
8208
8209     rdos*)
8210       lt_prog_compiler_static='-non_shared'
8211       ;;
8212
8213     solaris*)
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 ';;
8219       *)
8220         lt_prog_compiler_wl='-Wl,';;
8221       esac
8222       ;;
8223
8224     sunos4*)
8225       lt_prog_compiler_wl='-Qoption ld '
8226       lt_prog_compiler_pic='-PIC'
8227       lt_prog_compiler_static='-Bstatic'
8228       ;;
8229
8230     sysv4 | sysv4.2uw2* | sysv4.3*)
8231       lt_prog_compiler_wl='-Wl,'
8232       lt_prog_compiler_pic='-KPIC'
8233       lt_prog_compiler_static='-Bstatic'
8234       ;;
8235
8236     sysv4*MP*)
8237       if test -d /usr/nec ;then
8238         lt_prog_compiler_pic='-Kconform_pic'
8239         lt_prog_compiler_static='-Bstatic'
8240       fi
8241       ;;
8242
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'
8247       ;;
8248
8249     unicos*)
8250       lt_prog_compiler_wl='-Wl,'
8251       lt_prog_compiler_can_build_shared=no
8252       ;;
8253
8254     uts4*)
8255       lt_prog_compiler_pic='-pic'
8256       lt_prog_compiler_static='-Bstatic'
8257       ;;
8258
8259     *)
8260       lt_prog_compiler_can_build_shared=no
8261       ;;
8262     esac
8263   fi
8264
8265 case $host_os in
8266   # For platforms which do not support PIC, -DPIC is meaningless:
8267   *djgpp*)
8268     lt_prog_compiler_pic=
8269     ;;
8270   *)
8271     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8272     ;;
8273 esac
8274
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
8279 else
8280   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8281 fi
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
8285
8286 #
8287 # Check to make sure the PIC flag actually works.
8288 #
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
8294 else
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)
8310    ac_status=$?
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
8320      fi
8321    fi
8322    $RM conftest*
8323
8324 fi
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; }
8327
8328 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8329     case $lt_prog_compiler_pic in
8330      "" | " "*) ;;
8331      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8332      esac
8333 else
8334     lt_prog_compiler_pic=
8335      lt_prog_compiler_can_build_shared=no
8336 fi
8337
8338 fi
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350 #
8351 # Check to make sure the static flag actually works.
8352 #
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
8358 else
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
8373        fi
8374      else
8375        lt_cv_prog_compiler_static_works=yes
8376      fi
8377    fi
8378    $RM -r conftest*
8379    LDFLAGS="$save_LDFLAGS"
8380
8381 fi
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; }
8384
8385 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8386     :
8387 else
8388     lt_prog_compiler_static=
8389 fi
8390
8391
8392
8393
8394
8395
8396
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
8401 else
8402   lt_cv_prog_compiler_c_o=no
8403    $RM -r conftest 2>/dev/null
8404    mkdir conftest
8405    cd conftest
8406    mkdir out
8407    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8408
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)
8420    ac_status=$?
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
8424    then
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
8431      fi
8432    fi
8433    chmod u+w . 2>&5
8434    $RM conftest*
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
8439    cd ..
8440    $RM -r conftest
8441    $RM conftest*
8442
8443 fi
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; }
8446
8447
8448
8449
8450
8451
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
8456 else
8457   lt_cv_prog_compiler_c_o=no
8458    $RM -r conftest 2>/dev/null
8459    mkdir conftest
8460    cd conftest
8461    mkdir out
8462    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8463
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)
8475    ac_status=$?
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
8479    then
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
8486      fi
8487    fi
8488    chmod u+w . 2>&5
8489    $RM conftest*
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
8494    cd ..
8495    $RM -r conftest
8496    $RM conftest*
8497
8498 fi
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; }
8501
8502
8503
8504
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; }
8510   hard_links=yes
8511   $RM conftest*
8512   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8513   touch conftest.a
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;}
8521     need_locks=warn
8522   fi
8523 else
8524   need_locks=no
8525 fi
8526
8527
8528
8529
8530
8531
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; }
8534
8535   runpath_var=
8536   allow_undefined_flag=
8537   always_export_symbols=no
8538   archive_cmds=
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
8545   hardcode_direct=no
8546   hardcode_direct_absolute=no
8547   hardcode_libdir_flag_spec=
8548   hardcode_libdir_separator=
8549   hardcode_minus_L=no
8550   hardcode_shlibpath_var=unsupported
8551   inherit_rpath=no
8552   link_all_deplibs=unknown
8553   module_cmds=
8554   module_expsym_cmds=
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
8561   include_expsyms=
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=
8574
8575   case $host_os in
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
8581       with_gnu_ld=no
8582     fi
8583     ;;
8584   interix*)
8585     # we just hope/assume this is gcc and not c89 (= MSVC++)
8586     with_gnu_ld=yes
8587     ;;
8588   openbsd*)
8589     with_gnu_ld=no
8590     ;;
8591   esac
8592
8593   ld_shlibs=yes
8594
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
8599     case $host_os in
8600       aix*)
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]*) ;;
8609           *)
8610             lt_use_gnu_ld_interface=yes
8611             ;;
8612         esac
8613         ;;
8614       *)
8615         lt_use_gnu_ld_interface=yes
8616         ;;
8617     esac
8618   fi
8619
8620   if test "$lt_use_gnu_ld_interface" = yes; then
8621     # If archive_cmds runs LD, not CC, wlarc should be empty
8622     wlarc='${wl}'
8623
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'
8633     else
8634       whole_archive_flag_spec=
8635     fi
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 ;;
8644     esac
8645
8646     # See if GNU ld supports shared libraries.
8647     case $host_os in
8648     aix[3-9]*)
8649       # On AIX/PPC, the GNU linker is very broken
8650       if test "$host_cpu" != ia64; then
8651         ld_shlibs=no
8652         cat <<_LT_EOF 1>&2
8653
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.
8660
8661 _LT_EOF
8662       fi
8663       ;;
8664
8665     amigaos*)
8666       case $host_cpu in
8667       powerpc)
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=''
8671         ;;
8672       m68k)
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
8676         ;;
8677       esac
8678       ;;
8679
8680     beos*)
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'
8686       else
8687         ld_shlibs=no
8688       fi
8689       ;;
8690
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'
8701
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;
8708         else
8709           echo EXPORTS > $output_objdir/$soname.def;
8710           cat $export_symbols >> $output_objdir/$soname.def;
8711         fi~
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'
8713       else
8714         ld_shlibs=no
8715       fi
8716       ;;
8717
8718     haiku*)
8719       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8720       link_all_deplibs=yes
8721       ;;
8722
8723     interix[3-9]*)
8724       hardcode_direct=no
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'
8736       ;;
8737
8738     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8739       tmp_diet=no
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)
8743         esac
8744       fi
8745       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8746          && test "$tmp_diet" = no
8747       then
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'
8754           ;;
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'
8770           tmp_addflag= ;;
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
8774           ;;
8775         esac
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' ;;
8783         esac
8784         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8785
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'
8791         fi
8792
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'
8804           fi
8805           ;;
8806         esac
8807       else
8808         ld_shlibs=no
8809       fi
8810       ;;
8811
8812     netbsd*)
8813       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8814         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8815         wlarc=
8816       else
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'
8819       fi
8820       ;;
8821
8822     solaris*)
8823       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8824         ld_shlibs=no
8825         cat <<_LT_EOF 1>&2
8826
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.
8833
8834 _LT_EOF
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'
8838       else
8839         ld_shlibs=no
8840       fi
8841       ;;
8842
8843     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8844       case `$LD -v 2>&1` in
8845         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8846         ld_shlibs=no
8847         cat <<_LT_EOF 1>&2
8848
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.
8855
8856 _LT_EOF
8857         ;;
8858         *)
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'
8867           else
8868             ld_shlibs=no
8869           fi
8870         ;;
8871       esac
8872       ;;
8873
8874     sunos4*)
8875       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8876       wlarc=
8877       hardcode_direct=yes
8878       hardcode_shlibpath_var=no
8879       ;;
8880
8881     *)
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'
8885       else
8886         ld_shlibs=no
8887       fi
8888       ;;
8889     esac
8890
8891     if test "$ld_shlibs" = no; then
8892       runpath_var=
8893       hardcode_libdir_flag_spec=
8894       export_dynamic_flag_spec=
8895       whole_archive_flag_spec=
8896     fi
8897   else
8898     # PORTME fill in a description of your system's linker (not GNU ld)
8899     case $host_os in
8900     aix3*)
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
8909         # broken collect2.
8910         hardcode_direct=unsupported
8911       fi
8912       ;;
8913
8914     aix[4-9]*)
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'
8920         no_entry_flag=""
8921       else
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'
8928         else
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'
8930         fi
8931         aix_use_runtimelinking=no
8932
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
8940             break
8941           fi
8942           done
8943           ;;
8944         esac
8945
8946         exp_sym_flag='-bexport'
8947         no_entry_flag='-bnoentry'
8948       fi
8949
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.
8955
8956       archive_cmds=''
8957       hardcode_direct=yes
8958       hardcode_direct_absolute=yes
8959       hardcode_libdir_separator=':'
8960       link_all_deplibs=yes
8961       file_list_spec='${wl}-f,'
8962
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
8970           then
8971           # We have reworked collect2
8972           :
8973           else
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=
8982           fi
8983           ;;
8984         esac
8985         shared_flag='-shared'
8986         if test "$aix_use_runtimelinking" = yes; then
8987           shared_flag="$shared_flag "'${wl}-G'
8988         fi
8989       else
8990         # not using gcc
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:
8994           shared_flag='-G'
8995         else
8996           if test "$aix_use_runtimelinking" = yes; then
8997             shared_flag='${wl}-G'
8998           else
8999             shared_flag='${wl}-bM:SRE'
9000           fi
9001         fi
9002       fi
9003
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
9013         # empty executable.
9014         if test "${lt_cv_aix_libpath+set}" = set; then
9015   aix_libpath=$lt_cv_aix_libpath
9016 else
9017   if ${lt_cv_aix_libpath_+:} false; then :
9018   $as_echo_n "(cached) " >&6
9019 else
9020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h.  */
9022
9023 int
9024 main ()
9025 {
9026
9027   ;
9028   return 0;
9029 }
9030 _ACEOF
9031 if ac_fn_c_try_link "$LINENO"; then :
9032
9033   lt_aix_libpath_sed='
9034       /Import File Strings/,/^$/ {
9035           /^0/ {
9036               s/^0  *\([^ ]*\) *$/\1/
9037               p
9038           }
9039       }'
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"`
9044   fi
9045 fi
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"
9050   fi
9051
9052 fi
9053
9054   aix_libpath=$lt_cv_aix_libpath_
9055 fi
9056
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"
9059       else
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"
9064         else
9065          # Determine the default libpath from the value encoded in an
9066          # empty executable.
9067          if test "${lt_cv_aix_libpath+set}" = set; then
9068   aix_libpath=$lt_cv_aix_libpath
9069 else
9070   if ${lt_cv_aix_libpath_+:} false; then :
9071   $as_echo_n "(cached) " >&6
9072 else
9073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h.  */
9075
9076 int
9077 main ()
9078 {
9079
9080   ;
9081   return 0;
9082 }
9083 _ACEOF
9084 if ac_fn_c_try_link "$LINENO"; then :
9085
9086   lt_aix_libpath_sed='
9087       /Import File Strings/,/^$/ {
9088           /^0/ {
9089               s/^0  *\([^ ]*\) *$/\1/
9090               p
9091           }
9092       }'
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"`
9097   fi
9098 fi
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"
9103   fi
9104
9105 fi
9106
9107   aix_libpath=$lt_cv_aix_libpath_
9108 fi
9109
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'
9118           else
9119             # Exported symbols can be pulled into shared objects from archives
9120             whole_archive_flag_spec='$convenience'
9121           fi
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'
9125         fi
9126       fi
9127       ;;
9128
9129     amigaos*)
9130       case $host_cpu in
9131       powerpc)
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=''
9135         ;;
9136       m68k)
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
9140         ;;
9141       esac
9142       ;;
9143
9144     bsdi[45]*)
9145       export_dynamic_flag_spec=-rdynamic
9146       ;;
9147
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
9154       cl*)
9155         # Native MSVC
9156         hardcode_libdir_flag_spec=' '
9157         allow_undefined_flag=unsupported
9158         always_export_symbols=yes
9159         file_list_spec='@'
9160         # Tell ltmain to make .lib files, not .a files.
9161         libext=lib
9162         # Tell ltmain to make .dll files, not .so files.
9163         shrext_cmds=".dll"
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;
9168           else
9169             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9170           fi~
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"~
9172           linknames='
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'
9178         # Don't use ranlib
9179         old_postinstall_cmds='chmod 644 $oldlib'
9180         postlink_cmds='lt_outputfile="@OUTPUT@"~
9181           lt_tool_outputfile="@TOOL_OUTPUT@"~
9182           case $lt_outputfile in
9183             *.exe|*.EXE) ;;
9184             *)
9185               lt_outputfile="$lt_outputfile.exe"
9186               lt_tool_outputfile="$lt_tool_outputfile.exe"
9187               ;;
9188           esac~
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";
9192           fi'
9193         ;;
9194       *)
9195         # Assume MSVC wrapper
9196         hardcode_libdir_flag_spec=' '
9197         allow_undefined_flag=unsupported
9198         # Tell ltmain to make .lib files, not .a files.
9199         libext=lib
9200         # Tell ltmain to make .dll files, not .so files.
9201         shrext_cmds=".dll"
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
9209         ;;
9210       esac
9211       ;;
9212
9213     darwin* | rhapsody*)
9214
9215
9216   archive_cmds_need_lc=no
9217   hardcode_direct=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\"`'
9222
9223   else
9224     whole_archive_flag_spec=''
9225   fi
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 ;;
9231   esac
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}"
9238
9239   else
9240   ld_shlibs=no
9241   fi
9242
9243       ;;
9244
9245     dgux*)
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
9249       ;;
9250
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
9254     # extra space).
9255     freebsd2.2*)
9256       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9257       hardcode_libdir_flag_spec='-R$libdir'
9258       hardcode_direct=yes
9259       hardcode_shlibpath_var=no
9260       ;;
9261
9262     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9263     freebsd2.*)
9264       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9265       hardcode_direct=yes
9266       hardcode_minus_L=yes
9267       hardcode_shlibpath_var=no
9268       ;;
9269
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'
9274       hardcode_direct=yes
9275       hardcode_shlibpath_var=no
9276       ;;
9277
9278     hpux9*)
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'
9281       else
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'
9283       fi
9284       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9285       hardcode_libdir_separator=:
9286       hardcode_direct=yes
9287
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'
9292       ;;
9293
9294     hpux10*)
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'
9297       else
9298         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9299       fi
9300       if test "$with_gnu_ld" = no; then
9301         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9302         hardcode_libdir_separator=:
9303         hardcode_direct=yes
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
9309       fi
9310       ;;
9311
9312     hpux11*)
9313       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9314         case $host_cpu in
9315         hppa*64*)
9316           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9317           ;;
9318         ia64*)
9319           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9320           ;;
9321         *)
9322           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9323           ;;
9324         esac
9325       else
9326         case $host_cpu in
9327         hppa*64*)
9328           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9329           ;;
9330         ia64*)
9331           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9332           ;;
9333         *)
9334
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
9341 else
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
9356        fi
9357      else
9358        lt_cv_prog_compiler__b=yes
9359      fi
9360    fi
9361    $RM -r conftest*
9362    LDFLAGS="$save_LDFLAGS"
9363
9364 fi
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9366 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9367
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'
9370 else
9371     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9372 fi
9373
9374           ;;
9375         esac
9376       fi
9377       if test "$with_gnu_ld" = no; then
9378         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9379         hardcode_libdir_separator=:
9380
9381         case $host_cpu in
9382         hppa*64*|ia64*)
9383           hardcode_direct=no
9384           hardcode_shlibpath_var=no
9385           ;;
9386         *)
9387           hardcode_direct=yes
9388           hardcode_direct_absolute=yes
9389           export_dynamic_flag_spec='${wl}-E'
9390
9391           # hardcode_minus_L: Not really in the search PATH,
9392           # but as the default location of the library.
9393           hardcode_minus_L=yes
9394           ;;
9395         esac
9396       fi
9397       ;;
9398
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
9410 else
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; }
9416 _ACEOF
9417 if ac_fn_c_try_link "$LINENO"; then :
9418   lt_cv_irix_exported_symbol=yes
9419 else
9420   lt_cv_irix_exported_symbol=no
9421 fi
9422 rm -f core conftest.err conftest.$ac_objext \
9423     conftest$ac_exeext conftest.$ac_ext
9424            LDFLAGS="$save_LDFLAGS"
9425 fi
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'
9430         fi
9431       else
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'
9434       fi
9435       archive_cmds_need_lc='no'
9436       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9437       hardcode_libdir_separator=:
9438       inherit_rpath=yes
9439       link_all_deplibs=yes
9440       ;;
9441
9442     netbsd*)
9443       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9444         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9445       else
9446         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9447       fi
9448       hardcode_libdir_flag_spec='-R$libdir'
9449       hardcode_direct=yes
9450       hardcode_shlibpath_var=no
9451       ;;
9452
9453     newsos6)
9454       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9455       hardcode_direct=yes
9456       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9457       hardcode_libdir_separator=:
9458       hardcode_shlibpath_var=no
9459       ;;
9460
9461     *nto* | *qnx*)
9462       ;;
9463
9464     openbsd*)
9465       if test -f /usr/libexec/ld.so; then
9466         hardcode_direct=yes
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'
9474         else
9475           case $host_os in
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'
9479              ;;
9480            *)
9481              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9482              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9483              ;;
9484           esac
9485         fi
9486       else
9487         ld_shlibs=no
9488       fi
9489       ;;
9490
9491     os2*)
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'
9497       ;;
9498
9499     osf3*)
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'
9503       else
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'
9506       fi
9507       archive_cmds_need_lc='no'
9508       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9509       hardcode_libdir_separator=:
9510       ;;
9511
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'
9517       else
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'
9522
9523         # Both c and cxx compiler support -rpath directly
9524         hardcode_libdir_flag_spec='-rpath $libdir'
9525       fi
9526       archive_cmds_need_lc='no'
9527       hardcode_libdir_separator=:
9528       ;;
9529
9530     solaris*)
9531       no_undefined_flag=' -z defs'
9532       if test "$GCC" = yes; then
9533         wlarc='${wl}'
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'
9537       else
9538         case `$CC -V 2>&1` in
9539         *"Compilers 5.0"*)
9540           wlarc=''
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'
9544           ;;
9545         *)
9546           wlarc='${wl}'
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'
9550           ;;
9551         esac
9552       fi
9553       hardcode_libdir_flag_spec='-R$libdir'
9554       hardcode_shlibpath_var=no
9555       case $host_os in
9556       solaris2.[0-5] | solaris2.[0-5].*) ;;
9557       *)
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'
9564         else
9565           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9566         fi
9567         ;;
9568       esac
9569       link_all_deplibs=yes
9570       ;;
9571
9572     sunos4*)
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'
9577       else
9578         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9579       fi
9580       hardcode_libdir_flag_spec='-L$libdir'
9581       hardcode_direct=yes
9582       hardcode_minus_L=yes
9583       hardcode_shlibpath_var=no
9584       ;;
9585
9586     sysv4)
9587       case $host_vendor in
9588         sni)
9589           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9590           hardcode_direct=yes # is this really true???
9591         ;;
9592         siemens)
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'
9597           hardcode_direct=no
9598         ;;
9599         motorola)
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
9602         ;;
9603       esac
9604       runpath_var='LD_RUN_PATH'
9605       hardcode_shlibpath_var=no
9606       ;;
9607
9608     sysv4.3*)
9609       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9610       hardcode_shlibpath_var=no
9611       export_dynamic_flag_spec='-Bexport'
9612       ;;
9613
9614     sysv4*MP*)
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
9620         ld_shlibs=yes
9621       fi
9622       ;;
9623
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'
9629
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'
9633       else
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'
9636       fi
9637       ;;
9638
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
9645       # as -z defs.
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'
9655
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'
9659       else
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'
9662       fi
9663       ;;
9664
9665     uts4*)
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
9669       ;;
9670
9671     *)
9672       ld_shlibs=no
9673       ;;
9674     esac
9675
9676     if test x$host_vendor = xsni; then
9677       case $host in
9678       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9679         export_dynamic_flag_spec='${wl}-Blargedynsym'
9680         ;;
9681       esac
9682     fi
9683   fi
9684
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
9688
9689 with_gnu_ld=$with_gnu_ld
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705 #
9706 # Do we need to explicitly link libc?
9707 #
9708 case "x$archive_cmds_need_lc" in
9709 x|xyes)
9710   # Assume -lc should be added
9711   archive_cmds_need_lc=yes
9712
9713   if test "$enable_shared" = yes && test "$GCC" = yes; then
9714     case $archive_cmds in
9715     *'~'*)
9716       # FIXME: we may have to deal with multi-command sequences.
9717       ;;
9718     '$CC '*)
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
9726 else
9727   $RM conftest*
9728         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9729
9730         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9731   (eval $ac_compile) 2>&5
9732   ac_status=$?
9733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9734   test $ac_status = 0; } 2>conftest.err; then
9735           soname=conftest
9736           lib=conftest
9737           libobjs=conftest.$ac_objext
9738           deplibs=
9739           wl=$lt_prog_compiler_wl
9740           pic_flag=$lt_prog_compiler_pic
9741           compiler_flags=-v
9742           linker_flags=-v
9743           verstring=
9744           output_objdir=.
9745           libname=conftest
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
9750   ac_status=$?
9751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9752   test $ac_status = 0; }
9753           then
9754             lt_cv_archive_cmds_need_lc=no
9755           else
9756             lt_cv_archive_cmds_need_lc=yes
9757           fi
9758           allow_undefined_flag=$lt_save_allow_undefined_flag
9759         else
9760           cat conftest.err 1>&5
9761         fi
9762         $RM conftest*
9763
9764 fi
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
9768       ;;
9769     esac
9770   fi
9771   ;;
9772 esac
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9926 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9927
9928 if test "$GCC" = yes; then
9929   case $host_os in
9930     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9931     *) lt_awk_arg="/^libraries:/" ;;
9932   esac
9933   case $host_os in
9934     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9935     *) lt_sed_strip_eq="s,=/,/,g" ;;
9936   esac
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
9939   *\;*)
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'`
9945     ;;
9946   *)
9947     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9948     ;;
9949   esac
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/ "*)
9958     lt_multi_os_dir=
9959     ;;
9960   esac
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"
9967     fi
9968   done
9969   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9970 BEGIN {RS=" "; FS="/|\n";} {
9971   lt_foo="";
9972   lt_count=0;
9973   for (lt_i = NF; lt_i > 0; lt_i--) {
9974     if ($lt_i != "" && $lt_i != ".") {
9975       if ($lt_i == "..") {
9976         lt_count++;
9977       } else {
9978         if (lt_count == 0) {
9979           lt_foo="/" $lt_i lt_foo;
9980         } else {
9981           lt_count--;
9982         }
9983       }
9984     }
9985   }
9986   if (lt_foo != "") { lt_freq[lt_foo]++; }
9987   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9988 }'`
9989   # AWK program above erroneously prepends '/' to C:/dos/paths
9990   # for these hosts.
9991   case $host_os in
9992     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9993       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9994   esac
9995   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9996 else
9997   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9998 fi
9999 library_names_spec=
10000 libname_spec='lib$name'
10001 soname_spec=
10002 shrext_cmds=".so"
10003 postinstall_cmds=
10004 postuninstall_cmds=
10005 finish_cmds=
10006 finish_eval=
10007 shlibpath_var=
10008 shlibpath_overrides_runpath=unknown
10009 version_type=none
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
10014
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
10018
10019 case $host_os in
10020 aix3*)
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
10024
10025   # AIX 3 has no versioning support, so we append a major version to the name.
10026   soname_spec='${libname}${release}${shared_ext}$major'
10027   ;;
10028
10029 aix[4-9]*)
10030   version_type=linux # correct to gnu/linux during the next big refactor
10031   need_lib_prefix=no
10032   need_version=no
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
10038   else
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.
10044     case $host_os in
10045       aix4 | aix4.[01] | aix4.[01].*)
10046       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10047            echo ' yes '
10048            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10049         :
10050       else
10051         can_build_shared=no
10052       fi
10053       ;;
10054     esac
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}'
10063     else
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'
10068     fi
10069     shlibpath_var=LIBPATH
10070   fi
10071   ;;
10072
10073 amigaos*)
10074   case $host_cpu in
10075   powerpc)
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}'
10079     ;;
10080   m68k)
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'
10084     ;;
10085   esac
10086   ;;
10087
10088 beos*)
10089   library_names_spec='${libname}${shared_ext}'
10090   dynamic_linker="$host_os ld.so"
10091   shlibpath_var=LIBRARY_PATH
10092   ;;
10093
10094 bsdi[45]*)
10095   version_type=linux # correct to gnu/linux during the next big refactor
10096   need_version=no
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
10106   ;;
10107
10108 cygwin* | mingw* | pw32* | cegcc*)
10109   version_type=windows
10110   shrext_cmds=".dll"
10111   need_version=no
10112   need_lib_prefix=no
10113
10114   case $GCC,$cc_basename in
10115   yes,*)
10116     # gcc
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 \$?;
10127       fi'
10128     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10129       dlpath=$dir/\$dldll~
10130        $RM \$dlpath'
10131     shlibpath_overrides_runpath=yes
10132
10133     case $host_os in
10134     cygwin*)
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}'
10138
10139       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10140       ;;
10141     mingw* | cegcc*)
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}'
10145       ;;
10146     pw32*)
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}'
10149       ;;
10150     esac
10151     dynamic_linker='Win32 ld.exe'
10152     ;;
10153
10154   *,cl*)
10155     # Native MSVC
10156     libname_spec='$name'
10157     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10158     library_names_spec='${libname}.dll.lib'
10159
10160     case $build_os in
10161     mingw*)
10162       sys_lib_search_path_spec=
10163       lt_save_ifs=$IFS
10164       IFS=';'
10165       for lt_path in $LIB
10166       do
10167         IFS=$lt_save_ifs
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"
10171       done
10172       IFS=$lt_save_ifs
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|^ ||'`
10175       ;;
10176     cygwin*)
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"`
10183       ;;
10184     *)
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'`
10189       else
10190         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10191       fi
10192       # FIXME: find the short name or the path components, as spaces are
10193       # common. (e.g. "Program Files" -> "PROGRA~1")
10194       ;;
10195     esac
10196
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~
10205        $RM \$dlpath'
10206     shlibpath_overrides_runpath=yes
10207     dynamic_linker='Win32 link.exe'
10208     ;;
10209
10210   *)
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'
10214     ;;
10215   esac
10216   # FIXME: first we should search . and the directory the executable is in
10217   shlibpath_var=PATH
10218   ;;
10219
10220 darwin* | rhapsody*)
10221   dynamic_linker="$host_os dyld"
10222   version_type=darwin
10223   need_lib_prefix=no
10224   need_version=no
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`'
10230
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'
10233   ;;
10234
10235 dgux*)
10236   version_type=linux # correct to gnu/linux during the next big refactor
10237   need_lib_prefix=no
10238   need_version=no
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
10242   ;;
10243
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`
10249   else
10250     case $host_os in
10251     freebsd[23].*) objformat=aout ;;
10252     *) objformat=elf ;;
10253     esac
10254   fi
10255   version_type=freebsd-$objformat
10256   case $version_type in
10257     freebsd-elf*)
10258       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10259       need_version=no
10260       need_lib_prefix=no
10261       ;;
10262     freebsd-*)
10263       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10264       need_version=yes
10265       ;;
10266   esac
10267   shlibpath_var=LD_LIBRARY_PATH
10268   case $host_os in
10269   freebsd2.*)
10270     shlibpath_overrides_runpath=yes
10271     ;;
10272   freebsd3.[01]* | freebsdelf3.[01]*)
10273     shlibpath_overrides_runpath=yes
10274     hardcode_into_libs=yes
10275     ;;
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
10280     ;;
10281   *) # from 4.6 on, and DragonFly
10282     shlibpath_overrides_runpath=yes
10283     hardcode_into_libs=yes
10284     ;;
10285   esac
10286   ;;
10287
10288 gnu*)
10289   version_type=linux # correct to gnu/linux during the next big refactor
10290   need_lib_prefix=no
10291   need_version=no
10292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10293   soname_spec='${libname}${release}${shared_ext}$major'
10294   shlibpath_var=LD_LIBRARY_PATH
10295   shlibpath_overrides_runpath=no
10296   hardcode_into_libs=yes
10297   ;;
10298
10299 haiku*)
10300   version_type=linux # correct to gnu/linux during the next big refactor
10301   need_lib_prefix=no
10302   need_version=no
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
10310   ;;
10311
10312 hpux9* | hpux10* | hpux11*)
10313   # Give a soname corresponding to the major version so that dld.sl refuses to
10314   # link against other versions.
10315   version_type=sunos
10316   need_lib_prefix=no
10317   need_version=no
10318   case $host_cpu in
10319   ia64*)
10320     shrext_cmds='.so'
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"
10329     else
10330       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10331     fi
10332     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10333     ;;
10334   hppa*64*)
10335     shrext_cmds='.sl'
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
10344     ;;
10345   *)
10346     shrext_cmds='.sl'
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'
10352     ;;
10353   esac
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
10358   ;;
10359
10360 interix[3-9]*)
10361   version_type=linux # correct to gnu/linux during the next big refactor
10362   need_lib_prefix=no
10363   need_version=no
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
10370   ;;
10371
10372 irix5* | irix6* | nonstopux*)
10373   case $host_os in
10374     nonstopux*) version_type=nonstopux ;;
10375     *)
10376         if test "$lt_cv_prog_gnu_ld" = yes; then
10377                 version_type=linux # correct to gnu/linux during the next big refactor
10378         else
10379                 version_type=irix
10380         fi ;;
10381   esac
10382   need_lib_prefix=no
10383   need_version=no
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}'
10386   case $host_os in
10387   irix5* | nonstopux*)
10388     libsuff= shlibsuff=
10389     ;;
10390   *)
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;;
10399     esac
10400     ;;
10401   esac
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
10407   ;;
10408
10409 # No shared lib support for Linux oldld, aout, or coff.
10410 linux*oldld* | linux*aout* | linux*coff*)
10411   dynamic_linker=no
10412   ;;
10413
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
10417   need_lib_prefix=no
10418   need_version=no
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
10424
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
10428 else
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.  */
10436
10437 int
10438 main ()
10439 {
10440
10441   ;
10442   return 0;
10443 }
10444 _ACEOF
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
10448 fi
10449 fi
10450 rm -f core conftest.err conftest.$ac_objext \
10451     conftest$ac_exeext conftest.$ac_ext
10452     LDFLAGS=$save_LDFLAGS
10453     libdir=$save_libdir
10454
10455 fi
10456
10457   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10458
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
10463
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"
10468   fi
10469
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'
10477   ;;
10478
10479 netbsd*)
10480   version_type=sunos
10481   need_lib_prefix=no
10482   need_version=no
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'
10487   else
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'
10491   fi
10492   shlibpath_var=LD_LIBRARY_PATH
10493   shlibpath_overrides_runpath=yes
10494   hardcode_into_libs=yes
10495   ;;
10496
10497 newsos6)
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
10502   ;;
10503
10504 *nto* | *qnx*)
10505   version_type=qnx
10506   need_lib_prefix=no
10507   need_version=no
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'
10514   ;;
10515
10516 openbsd*)
10517   version_type=sunos
10518   sys_lib_dlsearch_path_spec="/usr/lib"
10519   need_lib_prefix=no
10520   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10521   case $host_os in
10522     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10523     *)                          need_version=no  ;;
10524   esac
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
10529     case $host_os in
10530       openbsd2.[89] | openbsd2.[89].*)
10531         shlibpath_overrides_runpath=no
10532         ;;
10533       *)
10534         shlibpath_overrides_runpath=yes
10535         ;;
10536       esac
10537   else
10538     shlibpath_overrides_runpath=yes
10539   fi
10540   ;;
10541
10542 os2*)
10543   libname_spec='$name'
10544   shrext_cmds=".dll"
10545   need_lib_prefix=no
10546   library_names_spec='$libname${shared_ext} $libname.a'
10547   dynamic_linker='OS/2 ld.exe'
10548   shlibpath_var=LIBPATH
10549   ;;
10550
10551 osf3* | osf4* | osf5*)
10552   version_type=osf
10553   need_lib_prefix=no
10554   need_version=no
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"
10560   ;;
10561
10562 rdos*)
10563   dynamic_linker=no
10564   ;;
10565
10566 solaris*)
10567   version_type=linux # correct to gnu/linux during the next big refactor
10568   need_lib_prefix=no
10569   need_version=no
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'
10577   ;;
10578
10579 sunos4*)
10580   version_type=sunos
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
10586     need_lib_prefix=no
10587   fi
10588   need_version=yes
10589   ;;
10590
10591 sysv4 | sysv4.3*)
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
10597     sni)
10598       shlibpath_overrides_runpath=no
10599       need_lib_prefix=no
10600       runpath_var=LD_RUN_PATH
10601       ;;
10602     siemens)
10603       need_lib_prefix=no
10604       ;;
10605     motorola)
10606       need_lib_prefix=no
10607       need_version=no
10608       shlibpath_overrides_runpath=no
10609       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10610       ;;
10611   esac
10612   ;;
10613
10614 sysv4*MP*)
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
10620   fi
10621   ;;
10622
10623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10624   version_type=freebsd-elf
10625   need_lib_prefix=no
10626   need_version=no
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'
10634   else
10635     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10636     case $host_os in
10637       sco3.2v5*)
10638         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10639         ;;
10640     esac
10641   fi
10642   sys_lib_dlsearch_path_spec='/usr/lib'
10643   ;;
10644
10645 tpf*)
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
10648   need_lib_prefix=no
10649   need_version=no
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
10654   ;;
10655
10656 uts4*)
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
10661   ;;
10662
10663 *)
10664   dynamic_linker=no
10665   ;;
10666 esac
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
10670
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"
10674 fi
10675
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"
10678 fi
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"
10681 fi
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
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; }
10776 hardcode_action=
10777 if test -n "$hardcode_libdir_flag_spec" ||
10778    test -n "$runpath_var" ||
10779    test "X$hardcode_automatic" = "Xyes" ; then
10780
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
10790   else
10791     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10792     hardcode_action=immediate
10793   fi
10794 else
10795   # We cannot hardcode anything, or else we can only hardcode existing
10796   # directories.
10797   hardcode_action=unsupported
10798 fi
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10800 $as_echo "$hardcode_action" >&6; }
10801
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
10810 fi
10811
10812
10813
10814
10815
10816
10817   if test "x$enable_dlopen" != xyes; then
10818   enable_dlopen=unknown
10819   enable_dlopen_self=unknown
10820   enable_dlopen_self_static=unknown
10821 else
10822   lt_cv_dlopen=no
10823   lt_cv_dlopen_libs=
10824
10825   case $host_os in
10826   beos*)
10827     lt_cv_dlopen="load_add_on"
10828     lt_cv_dlopen_libs=
10829     lt_cv_dlopen_self=yes
10830     ;;
10831
10832   mingw* | pw32* | cegcc*)
10833     lt_cv_dlopen="LoadLibrary"
10834     lt_cv_dlopen_libs=
10835     ;;
10836
10837   cygwin*)
10838     lt_cv_dlopen="dlopen"
10839     lt_cv_dlopen_libs=
10840     ;;
10841
10842   darwin*)
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
10848 else
10849   ac_check_lib_save_LIBS=$LIBS
10850 LIBS="-ldl  $LIBS"
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h.  */
10853
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.  */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char dlopen ();
10861 int
10862 main ()
10863 {
10864 return dlopen ();
10865   ;
10866   return 0;
10867 }
10868 _ACEOF
10869 if ac_fn_c_try_link "$LINENO"; then :
10870   ac_cv_lib_dl_dlopen=yes
10871 else
10872   ac_cv_lib_dl_dlopen=no
10873 fi
10874 rm -f core conftest.err conftest.$ac_objext \
10875     conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10877 fi
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"
10882 else
10883
10884     lt_cv_dlopen="dyld"
10885     lt_cv_dlopen_libs=
10886     lt_cv_dlopen_self=yes
10887
10888 fi
10889
10890     ;;
10891
10892   *)
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"
10896 else
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
10901 else
10902   ac_check_lib_save_LIBS=$LIBS
10903 LIBS="-ldld  $LIBS"
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h.  */
10906
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.  */
10910 #ifdef __cplusplus
10911 extern "C"
10912 #endif
10913 char shl_load ();
10914 int
10915 main ()
10916 {
10917 return shl_load ();
10918   ;
10919   return 0;
10920 }
10921 _ACEOF
10922 if ac_fn_c_try_link "$LINENO"; then :
10923   ac_cv_lib_dld_shl_load=yes
10924 else
10925   ac_cv_lib_dld_shl_load=no
10926 fi
10927 rm -f core conftest.err conftest.$ac_objext \
10928     conftest$ac_exeext conftest.$ac_ext
10929 LIBS=$ac_check_lib_save_LIBS
10930 fi
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"
10935 else
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"
10939 else
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
10944 else
10945   ac_check_lib_save_LIBS=$LIBS
10946 LIBS="-ldl  $LIBS"
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h.  */
10949
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.  */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 char dlopen ();
10957 int
10958 main ()
10959 {
10960 return dlopen ();
10961   ;
10962   return 0;
10963 }
10964 _ACEOF
10965 if ac_fn_c_try_link "$LINENO"; then :
10966   ac_cv_lib_dl_dlopen=yes
10967 else
10968   ac_cv_lib_dl_dlopen=no
10969 fi
10970 rm -f core conftest.err conftest.$ac_objext \
10971     conftest$ac_exeext conftest.$ac_ext
10972 LIBS=$ac_check_lib_save_LIBS
10973 fi
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"
10978 else
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
10983 else
10984   ac_check_lib_save_LIBS=$LIBS
10985 LIBS="-lsvld  $LIBS"
10986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h.  */
10988
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.  */
10992 #ifdef __cplusplus
10993 extern "C"
10994 #endif
10995 char dlopen ();
10996 int
10997 main ()
10998 {
10999 return dlopen ();
11000   ;
11001   return 0;
11002 }
11003 _ACEOF
11004 if ac_fn_c_try_link "$LINENO"; then :
11005   ac_cv_lib_svld_dlopen=yes
11006 else
11007   ac_cv_lib_svld_dlopen=no
11008 fi
11009 rm -f core conftest.err conftest.$ac_objext \
11010     conftest$ac_exeext conftest.$ac_ext
11011 LIBS=$ac_check_lib_save_LIBS
11012 fi
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"
11017 else
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
11022 else
11023   ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-ldld  $LIBS"
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h.  */
11027
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.  */
11031 #ifdef __cplusplus
11032 extern "C"
11033 #endif
11034 char dld_link ();
11035 int
11036 main ()
11037 {
11038 return dld_link ();
11039   ;
11040   return 0;
11041 }
11042 _ACEOF
11043 if ac_fn_c_try_link "$LINENO"; then :
11044   ac_cv_lib_dld_dld_link=yes
11045 else
11046   ac_cv_lib_dld_dld_link=no
11047 fi
11048 rm -f core conftest.err conftest.$ac_objext \
11049     conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11051 fi
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"
11056 fi
11057
11058
11059 fi
11060
11061
11062 fi
11063
11064
11065 fi
11066
11067
11068 fi
11069
11070
11071 fi
11072
11073     ;;
11074   esac
11075
11076   if test "x$lt_cv_dlopen" != xno; then
11077     enable_dlopen=yes
11078   else
11079     enable_dlopen=no
11080   fi
11081
11082   case $lt_cv_dlopen in
11083   dlopen)
11084     save_CPPFLAGS="$CPPFLAGS"
11085     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11086
11087     save_LDFLAGS="$LDFLAGS"
11088     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11089
11090     save_LIBS="$LIBS"
11091     LIBS="$lt_cv_dlopen_libs $LIBS"
11092
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
11097 else
11098           if test "$cross_compiling" = yes; then :
11099   lt_cv_dlopen_self=cross
11100 else
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"
11106
11107 #if HAVE_DLFCN_H
11108 #include <dlfcn.h>
11109 #endif
11110
11111 #include <stdio.h>
11112
11113 #ifdef RTLD_GLOBAL
11114 #  define LT_DLGLOBAL           RTLD_GLOBAL
11115 #else
11116 #  ifdef DL_GLOBAL
11117 #    define LT_DLGLOBAL         DL_GLOBAL
11118 #  else
11119 #    define LT_DLGLOBAL         0
11120 #  endif
11121 #endif
11122
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
11126 #  ifdef RTLD_LAZY
11127 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11128 #  else
11129 #    ifdef DL_LAZY
11130 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11131 #    else
11132 #      ifdef RTLD_NOW
11133 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11134 #      else
11135 #        ifdef DL_NOW
11136 #          define LT_DLLAZY_OR_NOW      DL_NOW
11137 #        else
11138 #          define LT_DLLAZY_OR_NOW      0
11139 #        endif
11140 #      endif
11141 #    endif
11142 #  endif
11143 #endif
11144
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")));
11149 #endif
11150
11151 int fnord () { return 42; }
11152 int main ()
11153 {
11154   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11155   int status = $lt_dlunknown;
11156
11157   if (self)
11158     {
11159       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11160       else
11161         {
11162           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11163           else puts (dlerror ());
11164         }
11165       /* dlclose (self); */
11166     }
11167   else
11168     puts (dlerror ());
11169
11170   return status;
11171 }
11172 _LT_EOF
11173   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11174   (eval $ac_link) 2>&5
11175   ac_status=$?
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
11179     lt_status=$?
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 ;;
11184     esac
11185   else :
11186     # compilation failed
11187     lt_cv_dlopen_self=no
11188   fi
11189 fi
11190 rm -fr conftest*
11191
11192
11193 fi
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11195 $as_echo "$lt_cv_dlopen_self" >&6; }
11196
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
11203 else
11204           if test "$cross_compiling" = yes; then :
11205   lt_cv_dlopen_self_static=cross
11206 else
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"
11212
11213 #if HAVE_DLFCN_H
11214 #include <dlfcn.h>
11215 #endif
11216
11217 #include <stdio.h>
11218
11219 #ifdef RTLD_GLOBAL
11220 #  define LT_DLGLOBAL           RTLD_GLOBAL
11221 #else
11222 #  ifdef DL_GLOBAL
11223 #    define LT_DLGLOBAL         DL_GLOBAL
11224 #  else
11225 #    define LT_DLGLOBAL         0
11226 #  endif
11227 #endif
11228
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
11232 #  ifdef RTLD_LAZY
11233 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11234 #  else
11235 #    ifdef DL_LAZY
11236 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11237 #    else
11238 #      ifdef RTLD_NOW
11239 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11240 #      else
11241 #        ifdef DL_NOW
11242 #          define LT_DLLAZY_OR_NOW      DL_NOW
11243 #        else
11244 #          define LT_DLLAZY_OR_NOW      0
11245 #        endif
11246 #      endif
11247 #    endif
11248 #  endif
11249 #endif
11250
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")));
11255 #endif
11256
11257 int fnord () { return 42; }
11258 int main ()
11259 {
11260   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11261   int status = $lt_dlunknown;
11262
11263   if (self)
11264     {
11265       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11266       else
11267         {
11268           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11269           else puts (dlerror ());
11270         }
11271       /* dlclose (self); */
11272     }
11273   else
11274     puts (dlerror ());
11275
11276   return status;
11277 }
11278 _LT_EOF
11279   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11280   (eval $ac_link) 2>&5
11281   ac_status=$?
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
11285     lt_status=$?
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 ;;
11290     esac
11291   else :
11292     # compilation failed
11293     lt_cv_dlopen_self_static=no
11294   fi
11295 fi
11296 rm -fr conftest*
11297
11298
11299 fi
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11301 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11302     fi
11303
11304     CPPFLAGS="$save_CPPFLAGS"
11305     LDFLAGS="$save_LDFLAGS"
11306     LIBS="$save_LIBS"
11307     ;;
11308   esac
11309
11310   case $lt_cv_dlopen_self in
11311   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11312   *) enable_dlopen_self=unknown ;;
11313   esac
11314
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 ;;
11318   esac
11319 fi
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337 striplib=
11338 old_striplib=
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; }
11346 else
11347 # FIXME - insert some real tests, host_os isn't really good enough
11348   case $host_os in
11349   darwin*)
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; }
11355     else
11356       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11358     fi
11359     ;;
11360   *)
11361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11363     ;;
11364   esac
11365 fi
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
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; }
11383
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
11387
11388   # On AIX, shared libraries and static libraries use the same namespace, and
11389   # are all built from PIC.
11390   case $host_os in
11391   aix3*)
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'
11396     fi
11397     ;;
11398
11399   aix[4-9]*)
11400     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11401       test "$enable_shared" = yes && enable_static=no
11402     fi
11403     ;;
11404   esac
11405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11406 $as_echo "$enable_shared" >&6; }
11407
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; }
11414
11415
11416
11417
11418 fi
11419 ac_ext=c
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
11424
11425 CC="$lt_save_CC"
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441         ac_config_commands="$ac_config_commands libtool"
11442
11443
11444
11445
11446 # Only expand once:
11447
11448
11449
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`
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463 ac_ext=c
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
11475 else
11476   if test -n "$CC"; then
11477   ac_cv_prog_CC="$CC" # Let the user override the test.
11478 else
11479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480 for as_dir in $PATH
11481 do
11482   IFS=$as_save_IFS
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
11488     break 2
11489   fi
11490 done
11491   done
11492 IFS=$as_save_IFS
11493
11494 fi
11495 fi
11496 CC=$ac_cv_prog_CC
11497 if test -n "$CC"; then
11498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11499 $as_echo "$CC" >&6; }
11500 else
11501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11503 fi
11504
11505
11506 fi
11507 if test -z "$ac_cv_prog_CC"; then
11508   ac_ct_CC=$CC
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
11515 else
11516   if test -n "$ac_ct_CC"; then
11517   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11518 else
11519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520 for as_dir in $PATH
11521 do
11522   IFS=$as_save_IFS
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
11528     break 2
11529   fi
11530 done
11531   done
11532 IFS=$as_save_IFS
11533
11534 fi
11535 fi
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; }
11540 else
11541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11543 fi
11544
11545   if test "x$ac_ct_CC" = x; then
11546     CC=""
11547   else
11548     case $cross_compiling:$ac_tool_warned in
11549 yes:)
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 ;;
11553 esac
11554     CC=$ac_ct_CC
11555   fi
11556 else
11557   CC="$ac_cv_prog_CC"
11558 fi
11559
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
11568 else
11569   if test -n "$CC"; then
11570   ac_cv_prog_CC="$CC" # Let the user override the test.
11571 else
11572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573 for as_dir in $PATH
11574 do
11575   IFS=$as_save_IFS
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
11581     break 2
11582   fi
11583 done
11584   done
11585 IFS=$as_save_IFS
11586
11587 fi
11588 fi
11589 CC=$ac_cv_prog_CC
11590 if test -n "$CC"; then
11591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11592 $as_echo "$CC" >&6; }
11593 else
11594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11596 fi
11597
11598
11599   fi
11600 fi
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
11608 else
11609   if test -n "$CC"; then
11610   ac_cv_prog_CC="$CC" # Let the user override the test.
11611 else
11612   ac_prog_rejected=no
11613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614 for as_dir in $PATH
11615 do
11616   IFS=$as_save_IFS
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
11622        continue
11623      fi
11624     ac_cv_prog_CC="cc"
11625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11626     break 2
11627   fi
11628 done
11629   done
11630 IFS=$as_save_IFS
11631
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
11635   shift
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.
11640     shift
11641     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11642   fi
11643 fi
11644 fi
11645 fi
11646 CC=$ac_cv_prog_CC
11647 if test -n "$CC"; then
11648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11649 $as_echo "$CC" >&6; }
11650 else
11651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11652 $as_echo "no" >&6; }
11653 fi
11654
11655
11656 fi
11657 if test -z "$CC"; then
11658   if test -n "$ac_tool_prefix"; then
11659   for ac_prog in cl.exe
11660   do
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
11667 else
11668   if test -n "$CC"; then
11669   ac_cv_prog_CC="$CC" # Let the user override the test.
11670 else
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11673 do
11674   IFS=$as_save_IFS
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
11680     break 2
11681   fi
11682 done
11683   done
11684 IFS=$as_save_IFS
11685
11686 fi
11687 fi
11688 CC=$ac_cv_prog_CC
11689 if test -n "$CC"; then
11690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11691 $as_echo "$CC" >&6; }
11692 else
11693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11695 fi
11696
11697
11698     test -n "$CC" && break
11699   done
11700 fi
11701 if test -z "$CC"; then
11702   ac_ct_CC=$CC
11703   for ac_prog in cl.exe
11704 do
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
11711 else
11712   if test -n "$ac_ct_CC"; then
11713   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11714 else
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $PATH
11717 do
11718   IFS=$as_save_IFS
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
11724     break 2
11725   fi
11726 done
11727   done
11728 IFS=$as_save_IFS
11729
11730 fi
11731 fi
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; }
11736 else
11737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11739 fi
11740
11741
11742   test -n "$ac_ct_CC" && break
11743 done
11744
11745   if test "x$ac_ct_CC" = x; then
11746     CC=""
11747   else
11748     case $cross_compiling:$ac_tool_warned in
11749 yes:)
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 ;;
11753 esac
11754     CC=$ac_ct_CC
11755   fi
11756 fi
11757
11758 fi
11759
11760
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; }
11765
11766 # Provide some information about the compiler.
11767 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11768 set X $ac_compile
11769 ac_compiler=$2
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;;
11775 esac
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
11779   ac_status=$?
11780   if test -s conftest.err; then
11781     sed '10a\
11782 ... rest of stderr output deleted ...
11783          10q' conftest.err >conftest.er1
11784     cat conftest.er1 >&5
11785   fi
11786   rm -f conftest.er1 conftest.err
11787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11788   test $ac_status = 0; }
11789 done
11790
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
11795 else
11796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797 /* end confdefs.h.  */
11798
11799 int
11800 main ()
11801 {
11802 #ifndef __GNUC__
11803        choke me
11804 #endif
11805
11806   ;
11807   return 0;
11808 }
11809 _ACEOF
11810 if ac_fn_c_try_compile "$LINENO"; then :
11811   ac_compiler_gnu=yes
11812 else
11813   ac_compiler_gnu=no
11814 fi
11815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11816 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11817
11818 fi
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
11822   GCC=yes
11823 else
11824   GCC=
11825 fi
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
11832 else
11833   ac_save_c_werror_flag=$ac_c_werror_flag
11834    ac_c_werror_flag=yes
11835    ac_cv_prog_cc_g=no
11836    CFLAGS="-g"
11837    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h.  */
11839
11840 int
11841 main ()
11842 {
11843
11844   ;
11845   return 0;
11846 }
11847 _ACEOF
11848 if ac_fn_c_try_compile "$LINENO"; then :
11849   ac_cv_prog_cc_g=yes
11850 else
11851   CFLAGS=""
11852       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h.  */
11854
11855 int
11856 main ()
11857 {
11858
11859   ;
11860   return 0;
11861 }
11862 _ACEOF
11863 if ac_fn_c_try_compile "$LINENO"; then :
11864
11865 else
11866   ac_c_werror_flag=$ac_save_c_werror_flag
11867          CFLAGS="-g"
11868          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h.  */
11870
11871 int
11872 main ()
11873 {
11874
11875   ;
11876   return 0;
11877 }
11878 _ACEOF
11879 if ac_fn_c_try_compile "$LINENO"; then :
11880   ac_cv_prog_cc_g=yes
11881 fi
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 fi
11884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11885 fi
11886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11887    ac_c_werror_flag=$ac_save_c_werror_flag
11888 fi
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
11895     CFLAGS="-g -O2"
11896   else
11897     CFLAGS="-g"
11898   fi
11899 else
11900   if test "$GCC" = yes; then
11901     CFLAGS="-O2"
11902   else
11903     CFLAGS=
11904   fi
11905 fi
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
11910 else
11911   ac_cv_prog_cc_c89=no
11912 ac_save_CC=$CC
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h.  */
11915 #include <stdarg.h>
11916 #include <stdio.h>
11917 struct stat;
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)
11922      char **p;
11923      int i;
11924 {
11925   return p[i];
11926 }
11927 static char *f (char * (*g) (char **, int), char **p, ...)
11928 {
11929   char *s;
11930   va_list v;
11931   va_start (v,p);
11932   s = g (p, va_arg (v,int));
11933   va_end (v);
11934   return s;
11935 }
11936
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];
11945
11946 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11947    inside strings and character constants.  */
11948 #define FOO(x) 'x'
11949 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11950
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);
11955 int argc;
11956 char **argv;
11957 int
11958 main ()
11959 {
11960 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11966         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11967 do
11968   CC="$ac_save_CC $ac_arg"
11969   if ac_fn_c_try_compile "$LINENO"; then :
11970   ac_cv_prog_cc_c89=$ac_arg
11971 fi
11972 rm -f core conftest.err conftest.$ac_objext
11973   test "x$ac_cv_prog_cc_c89" != "xno" && break
11974 done
11975 rm -f conftest.$ac_ext
11976 CC=$ac_save_CC
11977
11978 fi
11979 # AC_CACHE_VAL
11980 case "x$ac_cv_prog_cc_c89" in
11981   x)
11982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11983 $as_echo "none needed" >&6; } ;;
11984   xno)
11985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11986 $as_echo "unsupported" >&6; } ;;
11987   *)
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; } ;;
11991 esac
11992 if test "x$ac_cv_prog_cc_c89" != xno; then :
11993
11994 fi
11995
11996 ac_ext=c
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
12001
12002 ac_ext=cpp
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
12009     CXX=$CCC
12010   else
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
12013   do
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
12020 else
12021   if test -n "$CXX"; then
12022   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12023 else
12024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025 for as_dir in $PATH
12026 do
12027   IFS=$as_save_IFS
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
12033     break 2
12034   fi
12035 done
12036   done
12037 IFS=$as_save_IFS
12038
12039 fi
12040 fi
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; }
12045 else
12046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 $as_echo "no" >&6; }
12048 fi
12049
12050
12051     test -n "$CXX" && break
12052   done
12053 fi
12054 if test -z "$CXX"; then
12055   ac_ct_CXX=$CXX
12056   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12057 do
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
12064 else
12065   if test -n "$ac_ct_CXX"; then
12066   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12067 else
12068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069 for as_dir in $PATH
12070 do
12071   IFS=$as_save_IFS
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
12077     break 2
12078   fi
12079 done
12080   done
12081 IFS=$as_save_IFS
12082
12083 fi
12084 fi
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; }
12089 else
12090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12092 fi
12093
12094
12095   test -n "$ac_ct_CXX" && break
12096 done
12097
12098   if test "x$ac_ct_CXX" = x; then
12099     CXX="g++"
12100   else
12101     case $cross_compiling:$ac_tool_warned in
12102 yes:)
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 ;;
12106 esac
12107     CXX=$ac_ct_CXX
12108   fi
12109 fi
12110
12111   fi
12112 fi
12113 # Provide some information about the compiler.
12114 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12115 set X $ac_compile
12116 ac_compiler=$2
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;;
12122 esac
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
12126   ac_status=$?
12127   if test -s conftest.err; then
12128     sed '10a\
12129 ... rest of stderr output deleted ...
12130          10q' conftest.err >conftest.er1
12131     cat conftest.er1 >&5
12132   fi
12133   rm -f conftest.er1 conftest.err
12134   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12135   test $ac_status = 0; }
12136 done
12137
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
12142 else
12143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h.  */
12145
12146 int
12147 main ()
12148 {
12149 #ifndef __GNUC__
12150        choke me
12151 #endif
12152
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 if ac_fn_cxx_try_compile "$LINENO"; then :
12158   ac_compiler_gnu=yes
12159 else
12160   ac_compiler_gnu=no
12161 fi
12162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12163 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12164
12165 fi
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
12169   GXX=yes
12170 else
12171   GXX=
12172 fi
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
12179 else
12180   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12181    ac_cxx_werror_flag=yes
12182    ac_cv_prog_cxx_g=no
12183    CXXFLAGS="-g"
12184    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h.  */
12186
12187 int
12188 main ()
12189 {
12190
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 if ac_fn_cxx_try_compile "$LINENO"; then :
12196   ac_cv_prog_cxx_g=yes
12197 else
12198   CXXFLAGS=""
12199       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200 /* end confdefs.h.  */
12201
12202 int
12203 main ()
12204 {
12205
12206   ;
12207   return 0;
12208 }
12209 _ACEOF
12210 if ac_fn_cxx_try_compile "$LINENO"; then :
12211
12212 else
12213   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12214          CXXFLAGS="-g"
12215          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h.  */
12217
12218 int
12219 main ()
12220 {
12221
12222   ;
12223   return 0;
12224 }
12225 _ACEOF
12226 if ac_fn_cxx_try_compile "$LINENO"; then :
12227   ac_cv_prog_cxx_g=yes
12228 fi
12229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12230 fi
12231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232 fi
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12235 fi
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
12242     CXXFLAGS="-g -O2"
12243   else
12244     CXXFLAGS="-g"
12245   fi
12246 else
12247   if test "$GXX" = yes; then
12248     CXXFLAGS="-O2"
12249   else
12250     CXXFLAGS=
12251   fi
12252 fi
12253 ac_ext=c
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
12258
12259
12260
12261 func_stripname_cnf ()
12262 {
12263   case ${2} in
12264   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12265   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12266   esac
12267 } # func_stripname_cnf
12268
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
12272   ac_ext=cpp
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
12282 else
12283       # Double quotes because CXXCPP needs to be expanded
12284     for CXXCPP in "$CXX -E" "/lib/cpp"
12285     do
12286       ac_preproc_ok=false
12287 for ac_cxx_preproc_warn_flag in '' yes
12288 do
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.  */
12297 #ifdef __STDC__
12298 # include <limits.h>
12299 #else
12300 # include <assert.h>
12301 #endif
12302                      Syntax error
12303 _ACEOF
12304 if ac_fn_cxx_try_cpp "$LINENO"; then :
12305
12306 else
12307   # Broken: fails on valid input.
12308 continue
12309 fi
12310 rm -f conftest.err conftest.i conftest.$ac_ext
12311
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>
12317 _ACEOF
12318 if ac_fn_cxx_try_cpp "$LINENO"; then :
12319   # Broken: success on invalid input.
12320 continue
12321 else
12322   # Passes both tests.
12323 ac_preproc_ok=:
12324 break
12325 fi
12326 rm -f conftest.err conftest.i conftest.$ac_ext
12327
12328 done
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 :
12332   break
12333 fi
12334
12335     done
12336     ac_cv_prog_CXXCPP=$CXXCPP
12337
12338 fi
12339   CXXCPP=$ac_cv_prog_CXXCPP
12340 else
12341   ac_cv_prog_CXXCPP=$CXXCPP
12342 fi
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
12347 do
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.  */
12356 #ifdef __STDC__
12357 # include <limits.h>
12358 #else
12359 # include <assert.h>
12360 #endif
12361                      Syntax error
12362 _ACEOF
12363 if ac_fn_cxx_try_cpp "$LINENO"; then :
12364
12365 else
12366   # Broken: fails on valid input.
12367 continue
12368 fi
12369 rm -f conftest.err conftest.i conftest.$ac_ext
12370
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>
12376 _ACEOF
12377 if ac_fn_cxx_try_cpp "$LINENO"; then :
12378   # Broken: success on invalid input.
12379 continue
12380 else
12381   # Passes both tests.
12382 ac_preproc_ok=:
12383 break
12384 fi
12385 rm -f conftest.err conftest.i conftest.$ac_ext
12386
12387 done
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 :
12391
12392 else
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; }
12397 fi
12398
12399 ac_ext=c
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
12404
12405 else
12406   _lt_caught_CXX_error=yes
12407 fi
12408
12409 ac_ext=cpp
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
12414
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
12429 module_cmds_CXX=
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
12438
12439 # Source file extension for C++ test sources.
12440 ac_ext=cpp
12441
12442 # Object file extension for compiled C++ test sources.
12443 objext=o
12444 objext_CXX=$objext
12445
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;"
12453
12454   # Code to be used in simple link tests
12455   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12456
12457   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12458
12459
12460
12461
12462
12463
12464 # If no C compiler was specified, use CC.
12465 LTCC=${LTCC-"$CC"}
12466
12467 # If no C compiler flags were specified, use CFLAGS.
12468 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12469
12470 # Allow CC to be a program name with arguments.
12471 compiler=$CC
12472
12473
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`
12479 $RM conftest*
12480
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`
12485 $RM -r conftest*
12486
12487
12488   # Allow CC to be a program name with arguments.
12489   lt_save_CC=$CC
12490   lt_save_CFLAGS=$CFLAGS
12491   lt_save_LD=$LD
12492   lt_save_GCC=$GCC
12493   GCC=$GXX
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
12498   else
12499     $as_unset lt_cv_prog_gnu_ld
12500   fi
12501   if test -n "${lt_cv_path_LDCXX+set}"; then
12502     lt_cv_path_LD=$lt_cv_path_LDCXX
12503   else
12504     $as_unset lt_cv_path_LD
12505   fi
12506   test -z "${LDCXX+set}" || LD=$LDCXX
12507   CC=${CXX-"c++"}
12508   CFLAGS=$CXXFLAGS
12509   compiler=$CC
12510   compiler_CXX=$CC
12511   for cc_temp in $compiler""; do
12512   case $cc_temp in
12513     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12514     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12515     \-*) ;;
12516     *) break;;
12517   esac
12518 done
12519 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12520
12521
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'
12527     else
12528       lt_prog_compiler_no_builtin_flag_CXX=
12529     fi
12530
12531     if test "$GXX" = yes; then
12532       # Set up default GNU C++ configuration
12533
12534
12535
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
12539 else
12540   with_gnu_ld=no
12541 fi
12542
12543 ac_prog=ld
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; }
12548   case $host in
12549   *-*-mingw*)
12550     # gcc leaves a trailing carriage return which upsets mingw
12551     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12552   *)
12553     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12554   esac
12555   case $ac_prog in
12556     # Accept absolute paths.
12557     [\\/]* | ?:[\\/]*)
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%/%"`
12563       done
12564       test -z "$LD" && LD="$ac_prog"
12565       ;;
12566   "")
12567     # If it fails, then pretend we aren't using GCC.
12568     ac_prog=ld
12569     ;;
12570   *)
12571     # If it is relative, then search for the first ld in PATH.
12572     with_gnu_ld=unknown
12573     ;;
12574   esac
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; }
12578 else
12579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12580 $as_echo_n "checking for non-GNU ld... " >&6; }
12581 fi
12582 if ${lt_cv_path_LD+:} false; then :
12583   $as_echo_n "(cached) " >&6
12584 else
12585   if test -z "$LD"; then
12586   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12587   for ac_dir in $PATH; do
12588     IFS="$lt_save_ifs"
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
12598         ;;
12599       *)
12600         test "$with_gnu_ld" != yes && break
12601         ;;
12602       esac
12603     fi
12604   done
12605   IFS="$lt_save_ifs"
12606 else
12607   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12608 fi
12609 fi
12610
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; }
12615 else
12616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617 $as_echo "no" >&6; }
12618 fi
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
12624 else
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
12629   ;;
12630 *)
12631   lt_cv_prog_gnu_ld=no
12632   ;;
12633 esac
12634 fi
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
12638
12639
12640
12641
12642
12643
12644
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'
12650
12651         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12652         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12653
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)
12657         wlarc='${wl}'
12658
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'
12663         else
12664           whole_archive_flag_spec_CXX=
12665         fi
12666       else
12667         with_gnu_ld=no
12668         wlarc=
12669
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'
12676       fi
12677
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"'
12682
12683     else
12684       GXX=no
12685       with_gnu_ld=no
12686       wlarc=
12687     fi
12688
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; }
12692     ld_shlibs_CXX=yes
12693     case $host_os in
12694       aix3*)
12695         # FIXME: insert proper C++ library support
12696         ld_shlibs_CXX=no
12697         ;;
12698       aix[4-9]*)
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'
12704           no_entry_flag=""
12705         else
12706           aix_use_runtimelinking=no
12707
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
12713               case $ld_flag in
12714               *-brtl*)
12715                 aix_use_runtimelinking=yes
12716                 break
12717                 ;;
12718               esac
12719             done
12720             ;;
12721           esac
12722
12723           exp_sym_flag='-bexport'
12724           no_entry_flag='-bnoentry'
12725         fi
12726
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.
12732
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,'
12739
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
12747           then
12748             # We have reworked collect2
12749             :
12750           else
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=
12759           fi
12760           esac
12761           shared_flag='-shared'
12762           if test "$aix_use_runtimelinking" = yes; then
12763             shared_flag="$shared_flag "'${wl}-G'
12764           fi
12765         else
12766           # not using gcc
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:
12770           shared_flag='-G'
12771           else
12772             if test "$aix_use_runtimelinking" = yes; then
12773               shared_flag='${wl}-G'
12774             else
12775               shared_flag='${wl}-bM:SRE'
12776             fi
12777           fi
12778         fi
12779
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
12783         # export.
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
12790           # executable.
12791           if test "${lt_cv_aix_libpath+set}" = set; then
12792   aix_libpath=$lt_cv_aix_libpath
12793 else
12794   if ${lt_cv_aix_libpath__CXX+:} false; then :
12795   $as_echo_n "(cached) " >&6
12796 else
12797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h.  */
12799
12800 int
12801 main ()
12802 {
12803
12804   ;
12805   return 0;
12806 }
12807 _ACEOF
12808 if ac_fn_cxx_try_link "$LINENO"; then :
12809
12810   lt_aix_libpath_sed='
12811       /Import File Strings/,/^$/ {
12812           /^0/ {
12813               s/^0  *\([^ ]*\) *$/\1/
12814               p
12815           }
12816       }'
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"`
12821   fi
12822 fi
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"
12827   fi
12828
12829 fi
12830
12831   aix_libpath=$lt_cv_aix_libpath__CXX
12832 fi
12833
12834           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12835
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"
12837         else
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"
12842           else
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
12847 else
12848   if ${lt_cv_aix_libpath__CXX+:} false; then :
12849   $as_echo_n "(cached) " >&6
12850 else
12851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h.  */
12853
12854 int
12855 main ()
12856 {
12857
12858   ;
12859   return 0;
12860 }
12861 _ACEOF
12862 if ac_fn_cxx_try_link "$LINENO"; then :
12863
12864   lt_aix_libpath_sed='
12865       /Import File Strings/,/^$/ {
12866           /^0/ {
12867               s/^0  *\([^ ]*\) *$/\1/
12868               p
12869           }
12870       }'
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"`
12875   fi
12876 fi
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"
12881   fi
12882
12883 fi
12884
12885   aix_libpath=$lt_cv_aix_libpath__CXX
12886 fi
12887
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'
12896             else
12897               # Exported symbols can be pulled into shared objects from archives
12898               whole_archive_flag_spec_CXX='$convenience'
12899             fi
12900             archive_cmds_need_lc_CXX=yes
12901             # This is similar to how AIX traditionally builds its shared
12902             # libraries.
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'
12904           fi
12905         fi
12906         ;;
12907
12908       beos*)
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'
12914         else
12915           ld_shlibs_CXX=no
12916         fi
12917         ;;
12918
12919       chorus*)
12920         case $cc_basename in
12921           *)
12922           # FIXME: insert proper C++ library support
12923           ld_shlibs_CXX=no
12924           ;;
12925         esac
12926         ;;
12927
12928       cygwin* | mingw* | pw32* | cegcc*)
12929         case $GXX,$cc_basename in
12930         ,cl* | no,cl*)
12931           # Native MSVC
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.
12939           libext=lib
12940           # Tell ltmain to make .dll files, not .so files.
12941           shrext_cmds=".dll"
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;
12946             else
12947               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12948             fi~
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"~
12950             linknames='
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
12954           # Don't use ranlib
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
12959               *.exe|*.EXE) ;;
12960               *)
12961                 lt_outputfile="$lt_outputfile.exe"
12962                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12963                 ;;
12964             esac~
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";
12969             fi'
12970           ;;
12971         *)
12972           # g++
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
12980
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;
12987             else
12988               echo EXPORTS > $output_objdir/$soname.def;
12989               cat $export_symbols >> $output_objdir/$soname.def;
12990             fi~
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'
12992           else
12993             ld_shlibs_CXX=no
12994           fi
12995           ;;
12996         esac
12997         ;;
12998       darwin* | rhapsody*)
12999
13000
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\"`'
13007
13008   else
13009     whole_archive_flag_spec_CXX=''
13010   fi
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 ;;
13016   esac
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}"
13026     fi
13027
13028   else
13029   ld_shlibs_CXX=no
13030   fi
13031
13032         ;;
13033
13034       dgux*)
13035         case $cc_basename in
13036           ec++*)
13037             # FIXME: insert proper C++ library support
13038             ld_shlibs_CXX=no
13039             ;;
13040           ghcx*)
13041             # Green Hills C++ Compiler
13042             # FIXME: insert proper C++ library support
13043             ld_shlibs_CXX=no
13044             ;;
13045           *)
13046             # FIXME: insert proper C++ library support
13047             ld_shlibs_CXX=no
13048             ;;
13049         esac
13050         ;;
13051
13052       freebsd2.*)
13053         # C++ shared libraries reported to be fairly broken before
13054         # switch to ELF
13055         ld_shlibs_CXX=no
13056         ;;
13057
13058       freebsd-elf*)
13059         archive_cmds_need_lc_CXX=no
13060         ;;
13061
13062       freebsd* | dragonfly*)
13063         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13064         # conventions
13065         ld_shlibs_CXX=yes
13066         ;;
13067
13068       gnu*)
13069         ;;
13070
13071       haiku*)
13072         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13073         link_all_deplibs_CXX=yes
13074         ;;
13075
13076       hpux9*)
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.
13084
13085         case $cc_basename in
13086           CC*)
13087             # FIXME: insert proper C++ library support
13088             ld_shlibs_CXX=no
13089             ;;
13090           aCC*)
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.
13095             #
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
13099             # dependencies.
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"'
13101             ;;
13102           *)
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'
13105             else
13106               # FIXME: insert proper C++ library support
13107               ld_shlibs_CXX=no
13108             fi
13109             ;;
13110         esac
13111         ;;
13112
13113       hpux10*|hpux11*)
13114         if test $with_gnu_ld = no; then
13115           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13116           hardcode_libdir_separator_CXX=:
13117
13118           case $host_cpu in
13119             hppa*64*|ia64*)
13120               ;;
13121             *)
13122               export_dynamic_flag_spec_CXX='${wl}-E'
13123               ;;
13124           esac
13125         fi
13126         case $host_cpu in
13127           hppa*64*|ia64*)
13128             hardcode_direct_CXX=no
13129             hardcode_shlibpath_var_CXX=no
13130             ;;
13131           *)
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.
13137             ;;
13138         esac
13139
13140         case $cc_basename in
13141           CC*)
13142             # FIXME: insert proper C++ library support
13143             ld_shlibs_CXX=no
13144             ;;
13145           aCC*)
13146             case $host_cpu in
13147               hppa*64*)
13148                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13149                 ;;
13150               ia64*)
13151                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13152                 ;;
13153               *)
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'
13155                 ;;
13156             esac
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.
13160             #
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
13164             # dependencies.
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"'
13166             ;;
13167           *)
13168             if test "$GXX" = yes; then
13169               if test $with_gnu_ld = no; then
13170                 case $host_cpu in
13171                   hppa*64*)
13172                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13173                     ;;
13174                   ia64*)
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'
13176                     ;;
13177                   *)
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'
13179                     ;;
13180                 esac
13181               fi
13182             else
13183               # FIXME: insert proper C++ library support
13184               ld_shlibs_CXX=no
13185             fi
13186             ;;
13187         esac
13188         ;;
13189
13190       interix[3-9]*)
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'
13203         ;;
13204       irix5* | irix6*)
13205         case $cc_basename in
13206           CC*)
13207             # SGI C++
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'
13209
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
13213             # in the archive.
13214             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13215             ;;
13216           *)
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'
13220               else
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'
13222               fi
13223             fi
13224             link_all_deplibs_CXX=yes
13225             ;;
13226         esac
13227         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13228         hardcode_libdir_separator_CXX=:
13229         inherit_rpath_CXX=yes
13230         ;;
13231
13232       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13233         case $cc_basename in
13234           KCC*)
13235             # Kuck and Associates, Inc. (KAI) C++ Compiler
13236
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.
13245             #
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
13249             # dependencies.
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"'
13251
13252             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13253             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13254
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'
13258             ;;
13259           icpc* | ecpc* )
13260             # Intel C++
13261             with_gnu_ld=yes
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
13266               *"Version 7."*)
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'
13269                 ;;
13270               *)  # Version 8.0 or newer
13271                 tmp_idyn=
13272                 case $host_cpu in
13273                   ia64*) tmp_idyn=' -i_dynamic';;
13274                 esac
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'
13277                 ;;
13278             esac
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'
13283             ;;
13284           pgCC* | pgcpp*)
13285             # Portland Group C++ compiler
13286             case `$CC -V` in
13287             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13288               prelink_cmds_CXX='tpldir=Template.dir~
13289                 rm -rf $tpldir~
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~
13293                 rm -rf $tpldir~
13294                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13295                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13296                 $RANLIB $oldlib'
13297               archive_cmds_CXX='tpldir=Template.dir~
13298                 rm -rf $tpldir~
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~
13302                 rm -rf $tpldir~
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'
13305               ;;
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'
13309               ;;
13310             esac
13311
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'
13315             ;;
13316           cxx*)
13317             # Compaq C++
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'
13320
13321             runpath_var=LD_RUN_PATH
13322             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13323             hardcode_libdir_separator_CXX=:
13324
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.
13328             #
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
13332             # dependencies.
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'
13334             ;;
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'
13345             fi
13346             ;;
13347           *)
13348             case `$CC -V 2>&1 | sed 5q` in
13349             *Sun\ C*)
13350               # Sun C++ 5.9
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
13357
13358               # Not sure whether something based on
13359               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13360               # would be better.
13361               output_verbose_link_cmd='func_echo_all'
13362
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
13366               # in the archive.
13367               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13368               ;;
13369             esac
13370             ;;
13371         esac
13372         ;;
13373
13374       lynxos*)
13375         # FIXME: insert proper C++ library support
13376         ld_shlibs_CXX=no
13377         ;;
13378
13379       m88k*)
13380         # FIXME: insert proper C++ library support
13381         ld_shlibs_CXX=no
13382         ;;
13383
13384       mvs*)
13385         case $cc_basename in
13386           cxx*)
13387             # FIXME: insert proper C++ library support
13388             ld_shlibs_CXX=no
13389             ;;
13390           *)
13391             # FIXME: insert proper C++ library support
13392             ld_shlibs_CXX=no
13393             ;;
13394         esac
13395         ;;
13396
13397       netbsd*)
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'
13400           wlarc=
13401           hardcode_libdir_flag_spec_CXX='-R$libdir'
13402           hardcode_direct_CXX=yes
13403           hardcode_shlibpath_var_CXX=no
13404         fi
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::"'
13407         ;;
13408
13409       *nto* | *qnx*)
13410         ld_shlibs_CXX=yes
13411         ;;
13412
13413       openbsd2*)
13414         # C++ shared libraries are fairly broken
13415         ld_shlibs_CXX=no
13416         ;;
13417
13418       openbsd*)
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'
13429           fi
13430           output_verbose_link_cmd=func_echo_all
13431         else
13432           ld_shlibs_CXX=no
13433         fi
13434         ;;
13435
13436       osf3* | osf4* | osf5*)
13437         case $cc_basename in
13438           KCC*)
13439             # Kuck and Associates, Inc. (KAI) C++ Compiler
13440
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'
13445
13446             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13447             hardcode_libdir_separator_CXX=:
13448
13449             # Archives containing C++ object files must be created using
13450             # the KAI C++ compiler.
13451             case $host in
13452               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13453               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13454             esac
13455             ;;
13456           RCC*)
13457             # Rational C++ 2.4.1
13458             # FIXME: insert proper C++ library support
13459             ld_shlibs_CXX=no
13460             ;;
13461           cxx*)
13462             case $host in
13463               osf3*)
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'
13467                 ;;
13468               *)
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~
13474                   $RM $lib.exp'
13475                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13476                 ;;
13477             esac
13478
13479             hardcode_libdir_separator_CXX=:
13480
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.
13484             #
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
13488             # dependencies.
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"'
13490             ;;
13491           *)
13492             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13493               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13494               case $host in
13495                 osf3*)
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'
13497                   ;;
13498                 *)
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'
13500                   ;;
13501               esac
13502
13503               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13504               hardcode_libdir_separator_CXX=:
13505
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"'
13510
13511             else
13512               # FIXME: insert proper C++ library support
13513               ld_shlibs_CXX=no
13514             fi
13515             ;;
13516         esac
13517         ;;
13518
13519       psos*)
13520         # FIXME: insert proper C++ library support
13521         ld_shlibs_CXX=no
13522         ;;
13523
13524       sunos4*)
13525         case $cc_basename in
13526           CC*)
13527             # Sun C++ 4.x
13528             # FIXME: insert proper C++ library support
13529             ld_shlibs_CXX=no
13530             ;;
13531           lcc*)
13532             # Lucid
13533             # FIXME: insert proper C++ library support
13534             ld_shlibs_CXX=no
13535             ;;
13536           *)
13537             # FIXME: insert proper C++ library support
13538             ld_shlibs_CXX=no
13539             ;;
13540         esac
13541         ;;
13542
13543       solaris*)
13544         case $cc_basename in
13545           CC* | sunCC*)
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'
13552
13553             hardcode_libdir_flag_spec_CXX='-R$libdir'
13554             hardcode_shlibpath_var_CXX=no
13555             case $host_os in
13556               solaris2.[0-5] | solaris2.[0-5].*) ;;
13557               *)
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'
13562                 ;;
13563             esac
13564             link_all_deplibs_CXX=yes
13565
13566             output_verbose_link_cmd='func_echo_all'
13567
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
13571             # in the archive.
13572             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13573             ;;
13574           gcx*)
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'
13577
13578             # The C++ compiler must be used to create the archive.
13579             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13580             ;;
13581           *)
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'
13589
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"'
13594               else
13595                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13596                 # platform.
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'
13600
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"'
13605               fi
13606
13607               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13608               case $host_os in
13609                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13610                 *)
13611                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13612                   ;;
13613               esac
13614             fi
13615             ;;
13616         esac
13617         ;;
13618
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'
13624
13625       case $cc_basename in
13626         CC*)
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'
13629           ;;
13630         *)
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'
13633           ;;
13634       esac
13635       ;;
13636
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
13643         # as -z defs.
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'
13653
13654         case $cc_basename in
13655           CC*)
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"
13662             ;;
13663           *)
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'
13666             ;;
13667         esac
13668       ;;
13669
13670       tandem*)
13671         case $cc_basename in
13672           NCC*)
13673             # NonStop-UX NCC 3.20
13674             # FIXME: insert proper C++ library support
13675             ld_shlibs_CXX=no
13676             ;;
13677           *)
13678             # FIXME: insert proper C++ library support
13679             ld_shlibs_CXX=no
13680             ;;
13681         esac
13682         ;;
13683
13684       vxworks*)
13685         # FIXME: insert proper C++ library support
13686         ld_shlibs_CXX=no
13687         ;;
13688
13689       *)
13690         # FIXME: insert proper C++ library support
13691         ld_shlibs_CXX=no
13692         ;;
13693     esac
13694
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
13698
13699     GCC_CXX="$GXX"
13700     LD_CXX="$LD"
13701
13702     ## CAVEAT EMPTOR:
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=
13709 predeps_CXX=
13710 postdeps_CXX=
13711 compiler_lib_search_path_CXX=
13712
13713 cat > conftest.$ac_ext <<_LT_EOF
13714 class Foo
13715 {
13716 public:
13717   Foo (void) { a = 0; }
13718 private:
13719   int a;
13720 };
13721 _LT_EOF
13722
13723
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" ;;
13729 esac
13730
13731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13732   (eval $ac_compile) 2>&5
13733   ac_status=$?
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.
13738
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
13742
13743   for p in `eval "$output_verbose_link_cmd"`; do
13744     case ${prev}${p} in
13745
13746     -L* | -R* | -l*)
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
13751          prev=$p
13752          continue
13753        fi
13754
13755        # Expand the sysroot to ease extracting the directories later.
13756        if test -z "$prev"; then
13757          case $p in
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 ;;
13761          esac
13762        fi
13763        case $p in
13764        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13765        esac
13766        if test "$pre_test_object_deps_done" = no; then
13767          case ${prev} in
13768          -L | -R)
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}"
13774            else
13775              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13776            fi
13777            ;;
13778          # The "-l" case would never come before the object being
13779          # linked, so don't bother handling this case.
13780          esac
13781        else
13782          if test -z "$postdeps_CXX"; then
13783            postdeps_CXX="${prev}${p}"
13784          else
13785            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13786          fi
13787        fi
13788        prev=
13789        ;;
13790
13791     *.lto.$objext) ;; # Ignore GCC LTO objects
13792     *.$objext)
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
13797          continue
13798        fi
13799
13800        if test "$pre_test_object_deps_done" = no; then
13801          if test -z "$predep_objects_CXX"; then
13802            predep_objects_CXX="$p"
13803          else
13804            predep_objects_CXX="$predep_objects_CXX $p"
13805          fi
13806        else
13807          if test -z "$postdep_objects_CXX"; then
13808            postdep_objects_CXX="$p"
13809          else
13810            postdep_objects_CXX="$postdep_objects_CXX $p"
13811          fi
13812        fi
13813        ;;
13814
13815     *) ;; # Ignore the rest.
13816
13817     esac
13818   done
13819
13820   # Clean up.
13821   rm -f a.out a.exe
13822 else
13823   echo "libtool.m4: error: problem compiling CXX test program"
13824 fi
13825
13826 $RM -f confest.$objext
13827 CFLAGS=$_lt_libdeps_save_CFLAGS
13828
13829 # PORTME: override above test on systems where it is broken
13830 case $host_os in
13831 interix[3-9]*)
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=
13836   postdeps_CXX=
13837   ;;
13838
13839 linux*)
13840   case `$CC -V 2>&1 | sed 5q` in
13841   *Sun\ C*)
13842     # Sun C++ 5.9
13843
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
13851       ;;
13852     esac
13853
13854     if test "$solaris_use_stlport4" != yes; then
13855       postdeps_CXX='-library=Cstd -library=Crun'
13856     fi
13857     ;;
13858   esac
13859   ;;
13860
13861 solaris*)
13862   case $cc_basename in
13863   CC* | sunCC*)
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
13871       ;;
13872     esac
13873
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'
13879     fi
13880     ;;
13881   esac
13882   ;;
13883 esac
13884
13885
13886 case " $postdeps_CXX " in
13887 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13888 esac
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!^ !!'`
13892 fi
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924     lt_prog_compiler_wl_CXX=
13925 lt_prog_compiler_pic_CXX=
13926 lt_prog_compiler_static_CXX=
13927
13928
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'
13933
13934     case $host_os in
13935     aix*)
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'
13940       fi
13941       ;;
13942
13943     amigaos*)
13944       case $host_cpu in
13945       powerpc)
13946             # see comment about AmigaOS4 .so support
13947             lt_prog_compiler_pic_CXX='-fPIC'
13948         ;;
13949       m68k)
13950             # FIXME: we need at least 68020 code to build shared libraries, but
13951             # adding the `-m68020' flag to GCC prevents building anything better,
13952             # like `-m68040'.
13953             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13954         ;;
13955       esac
13956       ;;
13957
13958     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13959       # PIC is the default for these OSes.
13960       ;;
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'
13967       ;;
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'
13972       ;;
13973     *djgpp*)
13974       # DJGPP does not support shared libraries at all
13975       lt_prog_compiler_pic_CXX=
13976       ;;
13977     haiku*)
13978       # PIC is the default for Haiku.
13979       # The "-static" flag exists, but is broken.
13980       lt_prog_compiler_static_CXX=
13981       ;;
13982     interix[3-9]*)
13983       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13984       # Instead, we relocate shared libraries at runtime.
13985       ;;
13986     sysv4*MP*)
13987       if test -d /usr/nec; then
13988         lt_prog_compiler_pic_CXX=-Kconform_pic
13989       fi
13990       ;;
13991     hpux*)
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.
13995       case $host_cpu in
13996       hppa*64*)
13997         ;;
13998       *)
13999         lt_prog_compiler_pic_CXX='-fPIC'
14000         ;;
14001       esac
14002       ;;
14003     *qnx* | *nto*)
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'
14007       ;;
14008     *)
14009       lt_prog_compiler_pic_CXX='-fPIC'
14010       ;;
14011     esac
14012   else
14013     case $host_os in
14014       aix[4-9]*)
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'
14019         else
14020           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14021         fi
14022         ;;
14023       chorus*)
14024         case $cc_basename in
14025         cxch68*)
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"
14028           ;;
14029         esac
14030         ;;
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'
14035         ;;
14036       dgux*)
14037         case $cc_basename in
14038           ec++*)
14039             lt_prog_compiler_pic_CXX='-KPIC'
14040             ;;
14041           ghcx*)
14042             # Green Hills C++ Compiler
14043             lt_prog_compiler_pic_CXX='-pic'
14044             ;;
14045           *)
14046             ;;
14047         esac
14048         ;;
14049       freebsd* | dragonfly*)
14050         # FreeBSD uses GNU C++
14051         ;;
14052       hpux9* | hpux10* | hpux11*)
14053         case $cc_basename in
14054           CC*)
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'
14059             fi
14060             ;;
14061           aCC*)
14062             lt_prog_compiler_wl_CXX='-Wl,'
14063             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14064             case $host_cpu in
14065             hppa*64*|ia64*)
14066               # +Z the default
14067               ;;
14068             *)
14069               lt_prog_compiler_pic_CXX='+Z'
14070               ;;
14071             esac
14072             ;;
14073           *)
14074             ;;
14075         esac
14076         ;;
14077       interix*)
14078         # This is c89, which is MS Visual C++ (no shared libs)
14079         # Anyone wants to do a port?
14080         ;;
14081       irix5* | irix6* | nonstopux*)
14082         case $cc_basename in
14083           CC*)
14084             lt_prog_compiler_wl_CXX='-Wl,'
14085             lt_prog_compiler_static_CXX='-non_shared'
14086             # CC pic flag -KPIC is the default.
14087             ;;
14088           *)
14089             ;;
14090         esac
14091         ;;
14092       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14093         case $cc_basename in
14094           KCC*)
14095             # KAI C++ Compiler
14096             lt_prog_compiler_wl_CXX='--backend -Wl,'
14097             lt_prog_compiler_pic_CXX='-fPIC'
14098             ;;
14099           ecpc* )
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'
14104             ;;
14105           icpc* )
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'
14111             ;;
14112           pgCC* | pgcpp*)
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'
14117             ;;
14118           cxx*)
14119             # Compaq C++
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'
14124             ;;
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'
14130             ;;
14131           *)
14132             case `$CC -V 2>&1 | sed 5q` in
14133             *Sun\ C*)
14134               # Sun C++ 5.9
14135               lt_prog_compiler_pic_CXX='-KPIC'
14136               lt_prog_compiler_static_CXX='-Bstatic'
14137               lt_prog_compiler_wl_CXX='-Qoption ld '
14138               ;;
14139             esac
14140             ;;
14141         esac
14142         ;;
14143       lynxos*)
14144         ;;
14145       m88k*)
14146         ;;
14147       mvs*)
14148         case $cc_basename in
14149           cxx*)
14150             lt_prog_compiler_pic_CXX='-W c,exportall'
14151             ;;
14152           *)
14153             ;;
14154         esac
14155         ;;
14156       netbsd*)
14157         ;;
14158       *qnx* | *nto*)
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'
14162         ;;
14163       osf3* | osf4* | osf5*)
14164         case $cc_basename in
14165           KCC*)
14166             lt_prog_compiler_wl_CXX='--backend -Wl,'
14167             ;;
14168           RCC*)
14169             # Rational C++ 2.4.1
14170             lt_prog_compiler_pic_CXX='-pic'
14171             ;;
14172           cxx*)
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'
14179             ;;
14180           *)
14181             ;;
14182         esac
14183         ;;
14184       psos*)
14185         ;;
14186       solaris*)
14187         case $cc_basename in
14188           CC* | sunCC*)
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 '
14193             ;;
14194           gcx*)
14195             # Green Hills C++ Compiler
14196             lt_prog_compiler_pic_CXX='-PIC'
14197             ;;
14198           *)
14199             ;;
14200         esac
14201         ;;
14202       sunos4*)
14203         case $cc_basename in
14204           CC*)
14205             # Sun C++ 4.x
14206             lt_prog_compiler_pic_CXX='-pic'
14207             lt_prog_compiler_static_CXX='-Bstatic'
14208             ;;
14209           lcc*)
14210             # Lucid
14211             lt_prog_compiler_pic_CXX='-pic'
14212             ;;
14213           *)
14214             ;;
14215         esac
14216         ;;
14217       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14218         case $cc_basename in
14219           CC*)
14220             lt_prog_compiler_wl_CXX='-Wl,'
14221             lt_prog_compiler_pic_CXX='-KPIC'
14222             lt_prog_compiler_static_CXX='-Bstatic'
14223             ;;
14224         esac
14225         ;;
14226       tandem*)
14227         case $cc_basename in
14228           NCC*)
14229             # NonStop-UX NCC 3.20
14230             lt_prog_compiler_pic_CXX='-KPIC'
14231             ;;
14232           *)
14233             ;;
14234         esac
14235         ;;
14236       vxworks*)
14237         ;;
14238       *)
14239         lt_prog_compiler_can_build_shared_CXX=no
14240         ;;
14241     esac
14242   fi
14243
14244 case $host_os in
14245   # For platforms which do not support PIC, -DPIC is meaningless:
14246   *djgpp*)
14247     lt_prog_compiler_pic_CXX=
14248     ;;
14249   *)
14250     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14251     ;;
14252 esac
14253
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
14258 else
14259   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14260 fi
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
14264
14265 #
14266 # Check to make sure the PIC flag actually works.
14267 #
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
14273 else
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)
14289    ac_status=$?
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
14299      fi
14300    fi
14301    $RM conftest*
14302
14303 fi
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; }
14306
14307 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14308     case $lt_prog_compiler_pic_CXX in
14309      "" | " "*) ;;
14310      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14311      esac
14312 else
14313     lt_prog_compiler_pic_CXX=
14314      lt_prog_compiler_can_build_shared_CXX=no
14315 fi
14316
14317 fi
14318
14319
14320
14321
14322
14323 #
14324 # Check to make sure the static flag actually works.
14325 #
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
14331 else
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
14346        fi
14347      else
14348        lt_cv_prog_compiler_static_works_CXX=yes
14349      fi
14350    fi
14351    $RM -r conftest*
14352    LDFLAGS="$save_LDFLAGS"
14353
14354 fi
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; }
14357
14358 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14359     :
14360 else
14361     lt_prog_compiler_static_CXX=
14362 fi
14363
14364
14365
14366
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
14371 else
14372   lt_cv_prog_compiler_c_o_CXX=no
14373    $RM -r conftest 2>/dev/null
14374    mkdir conftest
14375    cd conftest
14376    mkdir out
14377    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14378
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)
14390    ac_status=$?
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
14394    then
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
14401      fi
14402    fi
14403    chmod u+w . 2>&5
14404    $RM conftest*
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
14409    cd ..
14410    $RM -r conftest
14411    $RM conftest*
14412
14413 fi
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; }
14416
14417
14418
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
14423 else
14424   lt_cv_prog_compiler_c_o_CXX=no
14425    $RM -r conftest 2>/dev/null
14426    mkdir conftest
14427    cd conftest
14428    mkdir out
14429    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14430
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)
14442    ac_status=$?
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
14446    then
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
14453      fi
14454    fi
14455    chmod u+w . 2>&5
14456    $RM conftest*
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
14461    cd ..
14462    $RM -r conftest
14463    $RM conftest*
14464
14465 fi
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; }
14468
14469
14470
14471
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; }
14477   hard_links=yes
14478   $RM conftest*
14479   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14480   touch conftest.a
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;}
14488     need_locks=warn
14489   fi
14490 else
14491   need_locks=no
14492 fi
14493
14494
14495
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; }
14498
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]_.*'
14501   case $host_os in
14502   aix[4-9]*)
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'
14509     else
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'
14511     fi
14512     ;;
14513   pw32*)
14514     export_symbols_cmds_CXX="$ltdll_cmds"
14515     ;;
14516   cygwin* | mingw* | cegcc*)
14517     case $cc_basename in
14518     cl*)
14519       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14520       ;;
14521     *)
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'
14524       ;;
14525     esac
14526     ;;
14527   *)
14528     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14529     ;;
14530   esac
14531
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
14535
14536 with_gnu_ld_CXX=$with_gnu_ld
14537
14538
14539
14540
14541
14542
14543 #
14544 # Do we need to explicitly link libc?
14545 #
14546 case "x$archive_cmds_need_lc_CXX" in
14547 x|xyes)
14548   # Assume -lc should be added
14549   archive_cmds_need_lc_CXX=yes
14550
14551   if test "$enable_shared" = yes && test "$GCC" = yes; then
14552     case $archive_cmds_CXX in
14553     *'~'*)
14554       # FIXME: we may have to deal with multi-command sequences.
14555       ;;
14556     '$CC '*)
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
14564 else
14565   $RM conftest*
14566         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14567
14568         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14569   (eval $ac_compile) 2>&5
14570   ac_status=$?
14571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14572   test $ac_status = 0; } 2>conftest.err; then
14573           soname=conftest
14574           lib=conftest
14575           libobjs=conftest.$ac_objext
14576           deplibs=
14577           wl=$lt_prog_compiler_wl_CXX
14578           pic_flag=$lt_prog_compiler_pic_CXX
14579           compiler_flags=-v
14580           linker_flags=-v
14581           verstring=
14582           output_objdir=.
14583           libname=conftest
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
14588   ac_status=$?
14589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14590   test $ac_status = 0; }
14591           then
14592             lt_cv_archive_cmds_need_lc_CXX=no
14593           else
14594             lt_cv_archive_cmds_need_lc_CXX=yes
14595           fi
14596           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14597         else
14598           cat conftest.err 1>&5
14599         fi
14600         $RM conftest*
14601
14602 fi
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
14606       ;;
14607     esac
14608   fi
14609   ;;
14610 esac
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14674 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14675
14676 library_names_spec=
14677 libname_spec='lib$name'
14678 soname_spec=
14679 shrext_cmds=".so"
14680 postinstall_cmds=
14681 postuninstall_cmds=
14682 finish_cmds=
14683 finish_eval=
14684 shlibpath_var=
14685 shlibpath_overrides_runpath=unknown
14686 version_type=none
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
14691
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
14695
14696 case $host_os in
14697 aix3*)
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
14701
14702   # AIX 3 has no versioning support, so we append a major version to the name.
14703   soname_spec='${libname}${release}${shared_ext}$major'
14704   ;;
14705
14706 aix[4-9]*)
14707   version_type=linux # correct to gnu/linux during the next big refactor
14708   need_lib_prefix=no
14709   need_version=no
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
14715   else
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.
14721     case $host_os in
14722       aix4 | aix4.[01] | aix4.[01].*)
14723       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14724            echo ' yes '
14725            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14726         :
14727       else
14728         can_build_shared=no
14729       fi
14730       ;;
14731     esac
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}'
14740     else
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'
14745     fi
14746     shlibpath_var=LIBPATH
14747   fi
14748   ;;
14749
14750 amigaos*)
14751   case $host_cpu in
14752   powerpc)
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}'
14756     ;;
14757   m68k)
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'
14761     ;;
14762   esac
14763   ;;
14764
14765 beos*)
14766   library_names_spec='${libname}${shared_ext}'
14767   dynamic_linker="$host_os ld.so"
14768   shlibpath_var=LIBRARY_PATH
14769   ;;
14770
14771 bsdi[45]*)
14772   version_type=linux # correct to gnu/linux during the next big refactor
14773   need_version=no
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
14783   ;;
14784
14785 cygwin* | mingw* | pw32* | cegcc*)
14786   version_type=windows
14787   shrext_cmds=".dll"
14788   need_version=no
14789   need_lib_prefix=no
14790
14791   case $GCC,$cc_basename in
14792   yes,*)
14793     # gcc
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 \$?;
14804       fi'
14805     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14806       dlpath=$dir/\$dldll~
14807        $RM \$dlpath'
14808     shlibpath_overrides_runpath=yes
14809
14810     case $host_os in
14811     cygwin*)
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}'
14815
14816       ;;
14817     mingw* | cegcc*)
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}'
14821       ;;
14822     pw32*)
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}'
14825       ;;
14826     esac
14827     dynamic_linker='Win32 ld.exe'
14828     ;;
14829
14830   *,cl*)
14831     # Native MSVC
14832     libname_spec='$name'
14833     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14834     library_names_spec='${libname}.dll.lib'
14835
14836     case $build_os in
14837     mingw*)
14838       sys_lib_search_path_spec=
14839       lt_save_ifs=$IFS
14840       IFS=';'
14841       for lt_path in $LIB
14842       do
14843         IFS=$lt_save_ifs
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"
14847       done
14848       IFS=$lt_save_ifs
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|^ ||'`
14851       ;;
14852     cygwin*)
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"`
14859       ;;
14860     *)
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'`
14865       else
14866         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14867       fi
14868       # FIXME: find the short name or the path components, as spaces are
14869       # common. (e.g. "Program Files" -> "PROGRA~1")
14870       ;;
14871     esac
14872
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~
14881        $RM \$dlpath'
14882     shlibpath_overrides_runpath=yes
14883     dynamic_linker='Win32 link.exe'
14884     ;;
14885
14886   *)
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'
14890     ;;
14891   esac
14892   # FIXME: first we should search . and the directory the executable is in
14893   shlibpath_var=PATH
14894   ;;
14895
14896 darwin* | rhapsody*)
14897   dynamic_linker="$host_os dyld"
14898   version_type=darwin
14899   need_lib_prefix=no
14900   need_version=no
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`'
14906
14907   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14908   ;;
14909
14910 dgux*)
14911   version_type=linux # correct to gnu/linux during the next big refactor
14912   need_lib_prefix=no
14913   need_version=no
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
14917   ;;
14918
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`
14924   else
14925     case $host_os in
14926     freebsd[23].*) objformat=aout ;;
14927     *) objformat=elf ;;
14928     esac
14929   fi
14930   version_type=freebsd-$objformat
14931   case $version_type in
14932     freebsd-elf*)
14933       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14934       need_version=no
14935       need_lib_prefix=no
14936       ;;
14937     freebsd-*)
14938       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14939       need_version=yes
14940       ;;
14941   esac
14942   shlibpath_var=LD_LIBRARY_PATH
14943   case $host_os in
14944   freebsd2.*)
14945     shlibpath_overrides_runpath=yes
14946     ;;
14947   freebsd3.[01]* | freebsdelf3.[01]*)
14948     shlibpath_overrides_runpath=yes
14949     hardcode_into_libs=yes
14950     ;;
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
14955     ;;
14956   *) # from 4.6 on, and DragonFly
14957     shlibpath_overrides_runpath=yes
14958     hardcode_into_libs=yes
14959     ;;
14960   esac
14961   ;;
14962
14963 gnu*)
14964   version_type=linux # correct to gnu/linux during the next big refactor
14965   need_lib_prefix=no
14966   need_version=no
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
14972   ;;
14973
14974 haiku*)
14975   version_type=linux # correct to gnu/linux during the next big refactor
14976   need_lib_prefix=no
14977   need_version=no
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
14985   ;;
14986
14987 hpux9* | hpux10* | hpux11*)
14988   # Give a soname corresponding to the major version so that dld.sl refuses to
14989   # link against other versions.
14990   version_type=sunos
14991   need_lib_prefix=no
14992   need_version=no
14993   case $host_cpu in
14994   ia64*)
14995     shrext_cmds='.so'
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"
15004     else
15005       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15006     fi
15007     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15008     ;;
15009   hppa*64*)
15010     shrext_cmds='.sl'
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
15019     ;;
15020   *)
15021     shrext_cmds='.sl'
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'
15027     ;;
15028   esac
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
15033   ;;
15034
15035 interix[3-9]*)
15036   version_type=linux # correct to gnu/linux during the next big refactor
15037   need_lib_prefix=no
15038   need_version=no
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
15045   ;;
15046
15047 irix5* | irix6* | nonstopux*)
15048   case $host_os in
15049     nonstopux*) version_type=nonstopux ;;
15050     *)
15051         if test "$lt_cv_prog_gnu_ld" = yes; then
15052                 version_type=linux # correct to gnu/linux during the next big refactor
15053         else
15054                 version_type=irix
15055         fi ;;
15056   esac
15057   need_lib_prefix=no
15058   need_version=no
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}'
15061   case $host_os in
15062   irix5* | nonstopux*)
15063     libsuff= shlibsuff=
15064     ;;
15065   *)
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;;
15074     esac
15075     ;;
15076   esac
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
15082   ;;
15083
15084 # No shared lib support for Linux oldld, aout, or coff.
15085 linux*oldld* | linux*aout* | linux*coff*)
15086   dynamic_linker=no
15087   ;;
15088
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
15092   need_lib_prefix=no
15093   need_version=no
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
15099
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
15103 else
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.  */
15111
15112 int
15113 main ()
15114 {
15115
15116   ;
15117   return 0;
15118 }
15119 _ACEOF
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
15123 fi
15124 fi
15125 rm -f core conftest.err conftest.$ac_objext \
15126     conftest$ac_exeext conftest.$ac_ext
15127     LDFLAGS=$save_LDFLAGS
15128     libdir=$save_libdir
15129
15130 fi
15131
15132   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15133
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
15138
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"
15143   fi
15144
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'
15152   ;;
15153
15154 netbsd*)
15155   version_type=sunos
15156   need_lib_prefix=no
15157   need_version=no
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'
15162   else
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'
15166   fi
15167   shlibpath_var=LD_LIBRARY_PATH
15168   shlibpath_overrides_runpath=yes
15169   hardcode_into_libs=yes
15170   ;;
15171
15172 newsos6)
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
15177   ;;
15178
15179 *nto* | *qnx*)
15180   version_type=qnx
15181   need_lib_prefix=no
15182   need_version=no
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'
15189   ;;
15190
15191 openbsd*)
15192   version_type=sunos
15193   sys_lib_dlsearch_path_spec="/usr/lib"
15194   need_lib_prefix=no
15195   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15196   case $host_os in
15197     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15198     *)                          need_version=no  ;;
15199   esac
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
15204     case $host_os in
15205       openbsd2.[89] | openbsd2.[89].*)
15206         shlibpath_overrides_runpath=no
15207         ;;
15208       *)
15209         shlibpath_overrides_runpath=yes
15210         ;;
15211       esac
15212   else
15213     shlibpath_overrides_runpath=yes
15214   fi
15215   ;;
15216
15217 os2*)
15218   libname_spec='$name'
15219   shrext_cmds=".dll"
15220   need_lib_prefix=no
15221   library_names_spec='$libname${shared_ext} $libname.a'
15222   dynamic_linker='OS/2 ld.exe'
15223   shlibpath_var=LIBPATH
15224   ;;
15225
15226 osf3* | osf4* | osf5*)
15227   version_type=osf
15228   need_lib_prefix=no
15229   need_version=no
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"
15235   ;;
15236
15237 rdos*)
15238   dynamic_linker=no
15239   ;;
15240
15241 solaris*)
15242   version_type=linux # correct to gnu/linux during the next big refactor
15243   need_lib_prefix=no
15244   need_version=no
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'
15252   ;;
15253
15254 sunos4*)
15255   version_type=sunos
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
15261     need_lib_prefix=no
15262   fi
15263   need_version=yes
15264   ;;
15265
15266 sysv4 | sysv4.3*)
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
15272     sni)
15273       shlibpath_overrides_runpath=no
15274       need_lib_prefix=no
15275       runpath_var=LD_RUN_PATH
15276       ;;
15277     siemens)
15278       need_lib_prefix=no
15279       ;;
15280     motorola)
15281       need_lib_prefix=no
15282       need_version=no
15283       shlibpath_overrides_runpath=no
15284       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15285       ;;
15286   esac
15287   ;;
15288
15289 sysv4*MP*)
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
15295   fi
15296   ;;
15297
15298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15299   version_type=freebsd-elf
15300   need_lib_prefix=no
15301   need_version=no
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'
15309   else
15310     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15311     case $host_os in
15312       sco3.2v5*)
15313         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15314         ;;
15315     esac
15316   fi
15317   sys_lib_dlsearch_path_spec='/usr/lib'
15318   ;;
15319
15320 tpf*)
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
15323   need_lib_prefix=no
15324   need_version=no
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
15329   ;;
15330
15331 uts4*)
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
15336   ;;
15337
15338 *)
15339   dynamic_linker=no
15340   ;;
15341 esac
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
15345
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"
15349 fi
15350
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"
15353 fi
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"
15356 fi
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
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
15401
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
15411   else
15412     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15413     hardcode_action_CXX=immediate
15414   fi
15415 else
15416   # We cannot hardcode anything, or else we can only hardcode existing
15417   # directories.
15418   hardcode_action_CXX=unsupported
15419 fi
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15421 $as_echo "$hardcode_action_CXX" >&6; }
15422
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
15431 fi
15432
15433
15434
15435
15436
15437
15438
15439   fi # test -n "$compiler"
15440
15441   CC=$lt_save_CC
15442   CFLAGS=$lt_save_CFLAGS
15443   LDCXX=$LD
15444   LD=$lt_save_LD
15445   GCC=$lt_save_GCC
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
15452
15453 ac_ext=c
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
15458
15459
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
15466 # AIX /bin/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
15479 else
15480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15481 for as_dir in $PATH
15482 do
15483   IFS=$as_save_IFS
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[\\/]* | \
15490   /usr/ucb/* ) ;;
15491   *)
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
15494     # by default.
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.
15501             :
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.
15505             :
15506           else
15507             rm -rf conftest.one conftest.two conftest.dir
15508             echo one > conftest.one
15509             echo two > conftest.two
15510             mkdir conftest.dir
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
15515             then
15516               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15517               break 3
15518             fi
15519           fi
15520         fi
15521       done
15522     done
15523     ;;
15524 esac
15525
15526   done
15527 IFS=$as_save_IFS
15528
15529 rm -rf conftest.one conftest.two conftest.dir
15530
15531 fi
15532   if test "${ac_cv_path_install+set}" = set; then
15533     INSTALL=$ac_cv_path_install
15534   else
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
15540   fi
15541 fi
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15543 $as_echo "$INSTALL" >&6; }
15544
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}'
15548
15549 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15550
15551 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15552
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; }
15555 set x ${MAKE-make}
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
15559 else
15560   cat >conftest.make <<\_ACEOF
15561 SHELL = /bin/sh
15562 all:
15563         @echo '@@@%%%=$(MAKE)=@@@%%%'
15564 _ACEOF
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;;
15569   *)
15570     eval ac_cv_prog_make_${ac_make}_set=no;;
15571 esac
15572 rm -f conftest.make
15573 fi
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; }
15577   SET_MAKE=
15578 else
15579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15580 $as_echo "no" >&6; }
15581   SET_MAKE="MAKE=${MAKE-make}"
15582 fi
15583
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
15591 else
15592   if test -n "$WINDRES"; then
15593   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15594 else
15595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15596 for as_dir in $PATH
15597 do
15598   IFS=$as_save_IFS
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
15604     break 2
15605   fi
15606 done
15607   done
15608 IFS=$as_save_IFS
15609
15610 fi
15611 fi
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; }
15616 else
15617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15618 $as_echo "no" >&6; }
15619 fi
15620
15621
15622 fi
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
15631 else
15632   if test -n "$ac_ct_WINDRES"; then
15633   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15634 else
15635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15636 for as_dir in $PATH
15637 do
15638   IFS=$as_save_IFS
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
15644     break 2
15645   fi
15646 done
15647   done
15648 IFS=$as_save_IFS
15649
15650 fi
15651 fi
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; }
15656 else
15657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15658 $as_echo "no" >&6; }
15659 fi
15660
15661   if test "x$ac_ct_WINDRES" = x; then
15662     WINDRES=":"
15663   else
15664     case $cross_compiling:$ac_tool_warned in
15665 yes:)
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 ;;
15669 esac
15670     WINDRES=$ac_ct_WINDRES
15671   fi
15672 else
15673   WINDRES="$ac_cv_prog_WINDRES"
15674 fi
15675
15676
15677 case "$host" in
15678     *-*-mingw32*)
15679         # Except on msys, where make can't handle full pathnames (bug 1972)
15680         ;;
15681     *)
15682         srcdir=`cd $srcdir && pwd`
15683         ;;
15684 esac
15685
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
15690     as_fn_error $? "
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
15693 " "$LINENO" 5
15694 fi
15695 BASE_CFLAGS=""
15696 BASE_LDFLAGS=""
15697 case "$host" in
15698     *-*-cygwin*)
15699         # We build SDL on cygwin without the UNIX emulation layer
15700         save_CFLAGS="$CFLAGS"
15701         have_no_cygwin=no
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"
15705
15706         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h.  */
15708
15709
15710 int
15711 main ()
15712 {
15713
15714
15715   ;
15716   return 0;
15717 }
15718 _ACEOF
15719 if ac_fn_c_try_compile "$LINENO"; then :
15720
15721         have_no_cygwin=yes
15722
15723 fi
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"
15728
15729         if test x$have_no_cygwin = xyes; then
15730             BASE_CFLAGS="-mno-cygwin"
15731             BASE_LDFLAGS="-mno-cygwin"
15732         fi
15733         BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
15734         ;;
15735 esac
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/'`
15743 fi
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"
15751 #    fi
15752 #    if test -d $path/lib; then
15753 #        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
15754 #    fi
15755 #done
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"
15761
15762 base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
15763
15764 find_lib()
15765 {
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
15770         host_lib_path=""
15771     else
15772         host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
15773     fi
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
15777             echo $lib
15778             return
15779         fi
15780     done
15781 }
15782
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
15787 else
15788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h.  */
15790
15791 int
15792 main ()
15793 {
15794
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;
15801   char **ppc;
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
15808      expression */
15809   const char *g = "string";
15810   pcpcc = &g + (g ? g-g : 0);
15811   /* HPUX 7.0 cc rejects these. */
15812   ++pcpcc;
15813   ppc = (char**) pcpcc;
15814   pcpcc = (char const *const *) ppc;
15815   { /* SCO 3.2v4 cc rejects this sort of thing.  */
15816     char tx;
15817     char *t = &tx;
15818     char const *s = 0 ? (char *) 0 : (char const *) 0;
15819
15820     *t++ = 0;
15821     if (s) return 0;
15822   }
15823   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15824     int x[] = {25, 17};
15825     const int *foo = &x[0];
15826     ++foo;
15827   }
15828   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15829     typedef const int *iptr;
15830     iptr p = 0;
15831     ++p;
15832   }
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;
15837   }
15838   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15839     const int foo = 10;
15840     if (!foo) return 0;
15841   }
15842   return !cs[0] && !zero.x;
15843 #endif
15844
15845   ;
15846   return 0;
15847 }
15848 _ACEOF
15849 if ac_fn_c_try_compile "$LINENO"; then :
15850   ac_cv_c_const=yes
15851 else
15852   ac_cv_c_const=no
15853 fi
15854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15855 fi
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
15859
15860 $as_echo "#define const /**/" >>confdefs.h
15861
15862 fi
15863
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
15868 else
15869   ac_cv_c_inline=no
15870 for ac_kw in inline __inline__ __inline; do
15871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15872 /* end confdefs.h.  */
15873 #ifndef __cplusplus
15874 typedef int foo_t;
15875 static $ac_kw foo_t static_foo () {return 0; }
15876 $ac_kw foo_t foo () {return 0; }
15877 #endif
15878
15879 _ACEOF
15880 if ac_fn_c_try_compile "$LINENO"; then :
15881   ac_cv_c_inline=$ac_kw
15882 fi
15883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884   test "$ac_cv_c_inline" != no && break
15885 done
15886
15887 fi
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15889 $as_echo "$ac_cv_c_inline" >&6; }
15890
15891 case $ac_cv_c_inline in
15892   inline | yes) ;;
15893   *)
15894     case $ac_cv_c_inline in
15895       no) ac_val=;;
15896       *) ac_val=$ac_cv_c_inline;;
15897     esac
15898     cat >>confdefs.h <<_ACEOF
15899 #ifndef __cplusplus
15900 #define inline $ac_val
15901 #endif
15902 _ACEOF
15903     ;;
15904 esac
15905
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
15910 else
15911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15912 /* end confdefs.h.  */
15913
15914 int
15915 main ()
15916 {
15917
15918 volatile int x;
15919 int * volatile y = (int *) 0;
15920 return !x && !y;
15921   ;
15922   return 0;
15923 }
15924 _ACEOF
15925 if ac_fn_c_try_compile "$LINENO"; then :
15926   ac_cv_c_volatile=yes
15927 else
15928   ac_cv_c_volatile=no
15929 fi
15930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15931 fi
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
15935
15936 $as_echo "#define volatile /**/" >>confdefs.h
15937
15938 fi
15939
15940
15941 # Check whether --enable-assertions was given.
15942 if test "${enable_assertions+set}" = set; then :
15943   enableval=$enable_assertions;
15944 else
15945   enable_assertions=auto
15946 fi
15947
15948 case "$enable_assertions" in
15949     auto) # Use optimization settings to determine assertion level
15950         ;;
15951     disabled)
15952
15953 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
15954
15955         ;;
15956     release)
15957
15958 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
15959
15960         ;;
15961     enabled)
15962
15963 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
15964
15965         ;;
15966     paranoid)
15967
15968 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
15969
15970         ;;
15971     *)
15972         as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
15973         ;;
15974 esac
15975
15976 # Check whether --enable-dependency-tracking was given.
15977 if test "${enable_dependency_tracking+set}" = set; then :
15978   enableval=$enable_dependency_tracking;
15979 else
15980   enable_dependency_tracking=yes
15981 fi
15982
15983 if test x$enable_dependency_tracking = xyes; then
15984     have_gcc_mmd_mt=no
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.  */
15989
15990     #if !defined(__GNUC__) || __GNUC__ < 3
15991     #error Dependency tracking requires GCC 3.0 or newer
15992     #endif
15993
15994 int
15995 main ()
15996 {
15997
15998
15999   ;
16000   return 0;
16001 }
16002 _ACEOF
16003 if ac_fn_c_try_compile "$LINENO"; then :
16004
16005     have_gcc_mmd_mt=yes
16006
16007 fi
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; }
16011
16012     if test x$have_gcc_mmd_mt = xyes; then
16013         DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
16014     fi
16015 fi
16016
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
16020 case "$host" in
16021         *-*-openbsd*)
16022         ;;
16023
16024     *)
16025         save_LDFLAGS="$LDFLAGS"
16026         LDFLAGS="$LDFLAGS -Wl,--no-undefined"
16027         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h.  */
16029
16030
16031 int
16032 main ()
16033 {
16034
16035
16036   ;
16037   return 0;
16038 }
16039 _ACEOF
16040 if ac_fn_c_try_link "$LINENO"; then :
16041
16042         have_no_undefined=yes
16043         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
16044
16045 fi
16046 rm -f core conftest.err conftest.$ac_objext \
16047     conftest$ac_exeext conftest.$ac_ext
16048         LDFLAGS="$save_LDFLAGS"
16049         ;;
16050 esac
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
16052 $as_echo "$have_no_undefined" >&6; }
16053
16054 # Check whether --enable-libc was given.
16055 if test "${enable_libc+set}" = set; then :
16056   enableval=$enable_libc;
16057 else
16058   enable_libc=yes
16059 fi
16060
16061 if test x$enable_libc = xyes; then
16062
16063 $as_echo "#define HAVE_LIBC 1" >>confdefs.h
16064
16065
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
16070 else
16071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h.  */
16073 #include <stdlib.h>
16074 #include <stdarg.h>
16075 #include <string.h>
16076 #include <float.h>
16077
16078 int
16079 main ()
16080 {
16081
16082   ;
16083   return 0;
16084 }
16085 _ACEOF
16086 if ac_fn_c_try_compile "$LINENO"; then :
16087   ac_cv_header_stdc=yes
16088 else
16089   ac_cv_header_stdc=no
16090 fi
16091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16092
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>
16098
16099 _ACEOF
16100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16101   $EGREP "memchr" >/dev/null 2>&1; then :
16102
16103 else
16104   ac_cv_header_stdc=no
16105 fi
16106 rm -f conftest*
16107
16108 fi
16109
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>
16115
16116 _ACEOF
16117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16118   $EGREP "free" >/dev/null 2>&1; then :
16119
16120 else
16121   ac_cv_header_stdc=no
16122 fi
16123 rm -f conftest*
16124
16125 fi
16126
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 :
16130   :
16131 else
16132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133 /* end confdefs.h.  */
16134 #include <ctype.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))
16139 #else
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))
16145 #endif
16146
16147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16148 int
16149 main ()
16150 {
16151   int i;
16152   for (i = 0; i < 256; i++)
16153     if (XOR (islower (i), ISLOWER (i))
16154         || toupper (i) != TOUPPER (i))
16155       return 2;
16156   return 0;
16157 }
16158 _ACEOF
16159 if ac_fn_c_try_run "$LINENO"; then :
16160
16161 else
16162   ac_cv_header_stdc=no
16163 fi
16164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16165   conftest.$ac_objext conftest.beam conftest.$ac_ext
16166 fi
16167
16168 fi
16169 fi
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
16173
16174 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16175
16176 fi
16177
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
16179 do :
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
16185 _ACEOF
16186
16187 fi
16188
16189 done
16190
16191
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 :
16194
16195 else
16196
16197 cat >>confdefs.h <<_ACEOF
16198 #define size_t unsigned int
16199 _ACEOF
16200
16201 fi
16202
16203
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
16208 else
16209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16210 /* end confdefs.h.  */
16211
16212 #include <math.h>
16213 #ifdef M_PI
16214 YES_IS_DEFINED
16215 #endif
16216
16217 _ACEOF
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
16221 else
16222   ac_cv_define_M_PI=no
16223 fi
16224 rm -f conftest*
16225
16226
16227 fi
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
16231
16232 $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
16233
16234   fi
16235
16236
16237         case "$host" in
16238     *-*-cygwin* | *-*-mingw32*)
16239         ;;
16240     *)
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
16247 else
16248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h.  */
16250 #include <alloca.h>
16251 int
16252 main ()
16253 {
16254 char *p = (char *) alloca (2 * sizeof (int));
16255                           if (p) return 0;
16256   ;
16257   return 0;
16258 }
16259 _ACEOF
16260 if ac_fn_c_try_link "$LINENO"; then :
16261   ac_cv_working_alloca_h=yes
16262 else
16263   ac_cv_working_alloca_h=no
16264 fi
16265 rm -f core conftest.err conftest.$ac_objext \
16266     conftest$ac_exeext conftest.$ac_ext
16267 fi
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
16271
16272 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16273
16274 fi
16275
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
16280 else
16281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h.  */
16283 #ifdef __GNUC__
16284 # define alloca __builtin_alloca
16285 #else
16286 # ifdef _MSC_VER
16287 #  include <malloc.h>
16288 #  define alloca _alloca
16289 # else
16290 #  ifdef HAVE_ALLOCA_H
16291 #   include <alloca.h>
16292 #  else
16293 #   ifdef _AIX
16294  #pragma alloca
16295 #   else
16296 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16297 void *alloca (size_t);
16298 #    endif
16299 #   endif
16300 #  endif
16301 # endif
16302 #endif
16303
16304 int
16305 main ()
16306 {
16307 char *p = (char *) alloca (1);
16308                                     if (p) return 0;
16309   ;
16310   return 0;
16311 }
16312 _ACEOF
16313 if ac_fn_c_try_link "$LINENO"; then :
16314   ac_cv_func_alloca_works=yes
16315 else
16316   ac_cv_func_alloca_works=no
16317 fi
16318 rm -f core conftest.err conftest.$ac_objext \
16319     conftest$ac_exeext conftest.$ac_ext
16320 fi
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16322 $as_echo "$ac_cv_func_alloca_works" >&6; }
16323
16324 if test $ac_cv_func_alloca_works = yes; then
16325
16326 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16327
16328 else
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.
16333
16334 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16335
16336 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16337
16338
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
16343 else
16344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h.  */
16346 #if defined CRAY && ! defined CRAY2
16347 webecray
16348 #else
16349 wenotbecray
16350 #endif
16351
16352 _ACEOF
16353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16354   $EGREP "webecray" >/dev/null 2>&1; then :
16355   ac_cv_os_cray=yes
16356 else
16357   ac_cv_os_cray=no
16358 fi
16359 rm -f conftest*
16360
16361 fi
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 :
16369
16370 cat >>confdefs.h <<_ACEOF
16371 #define CRAY_STACKSEG_END $ac_func
16372 _ACEOF
16373
16374     break
16375 fi
16376
16377   done
16378 fi
16379
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
16384 else
16385   if test "$cross_compiling" = yes; then :
16386   ac_cv_c_stack_direction=0
16387 else
16388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389 /* end confdefs.h.  */
16390 $ac_includes_default
16391 int
16392 find_stack_direction (int *addr, int depth)
16393 {
16394   int dir, dummy = 0;
16395   if (! addr)
16396     addr = &dummy;
16397   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16398   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16399   return dir + dummy;
16400 }
16401
16402 int
16403 main (int argc, char **argv)
16404 {
16405   return find_stack_direction (0, argc + !argv + 20) < 0;
16406 }
16407 _ACEOF
16408 if ac_fn_c_try_run "$LINENO"; then :
16409   ac_cv_c_stack_direction=1
16410 else
16411   ac_cv_c_stack_direction=-1
16412 fi
16413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16414   conftest.$ac_objext conftest.beam conftest.$ac_ext
16415 fi
16416
16417 fi
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
16422 _ACEOF
16423
16424
16425 fi
16426
16427         ;;
16428     esac
16429
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
16434 else
16435   if test "$cross_compiling" = yes; then :
16436   ac_cv_func_memcmp_working=no
16437 else
16438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h.  */
16440 $ac_includes_default
16441 int
16442 main ()
16443 {
16444
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)
16448     return 1;
16449
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.   */
16453   {
16454     char foo[21];
16455     char bar[21];
16456     int i;
16457     for (i = 0; i < 4; i++)
16458       {
16459         char *a = foo + i;
16460         char *b = bar + i;
16461         strcpy (a, "--------01111111");
16462         strcpy (b, "--------10000000");
16463         if (memcmp (a, b, 16) >= 0)
16464           return 1;
16465       }
16466     return 0;
16467   }
16468
16469   ;
16470   return 0;
16471 }
16472 _ACEOF
16473 if ac_fn_c_try_run "$LINENO"; then :
16474   ac_cv_func_memcmp_working=yes
16475 else
16476   ac_cv_func_memcmp_working=no
16477 fi
16478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16479   conftest.$ac_objext conftest.beam conftest.$ac_ext
16480 fi
16481
16482 fi
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"
16488  ;;
16489 esac
16490
16491
16492     if test x$ac_cv_func_memcmp_working = xyes; then
16493
16494 $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
16495
16496     fi
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
16501 else
16502   if test "$cross_compiling" = yes; then :
16503   ac_cv_func_strtod=no
16504 else
16505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h.  */
16507
16508 $ac_includes_default
16509 #ifndef strtod
16510 double strtod ();
16511 #endif
16512 int
16513 main()
16514 {
16515   {
16516     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
16517     char *string = " +69";
16518     char *term;
16519     double value;
16520     value = strtod (string, &term);
16521     if (value != 69 || term != (string + 4))
16522       return 1;
16523   }
16524
16525   {
16526     /* Under Solaris 2.4, strtod returns the wrong value for the
16527        terminating character under some conditions.  */
16528     char *string = "NaN";
16529     char *term;
16530     strtod (string, &term);
16531     if (term != string && *(term - 1) == 0)
16532       return 1;
16533   }
16534   return 0;
16535 }
16536
16537 _ACEOF
16538 if ac_fn_c_try_run "$LINENO"; then :
16539   ac_cv_func_strtod=yes
16540 else
16541   ac_cv_func_strtod=no
16542 fi
16543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16544   conftest.$ac_objext conftest.beam conftest.$ac_ext
16545 fi
16546
16547 fi
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"
16554  ;;
16555 esac
16556
16557 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
16558 if test "x$ac_cv_func_pow" = xyes; then :
16559
16560 fi
16561
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
16567 else
16568   ac_check_lib_save_LIBS=$LIBS
16569 LIBS="-lm  $LIBS"
16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571 /* end confdefs.h.  */
16572
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.  */
16576 #ifdef __cplusplus
16577 extern "C"
16578 #endif
16579 char pow ();
16580 int
16581 main ()
16582 {
16583 return pow ();
16584   ;
16585   return 0;
16586 }
16587 _ACEOF
16588 if ac_fn_c_try_link "$LINENO"; then :
16589   ac_cv_lib_m_pow=yes
16590 else
16591   ac_cv_lib_m_pow=no
16592 fi
16593 rm -f core conftest.err conftest.$ac_objext \
16594     conftest$ac_exeext conftest.$ac_ext
16595 LIBS=$ac_check_lib_save_LIBS
16596 fi
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 :
16600   POW_LIB=-lm
16601 else
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;}
16604 fi
16605
16606 fi
16607
16608 fi
16609
16610     if test x$ac_cv_func_strtod = xyes; then
16611
16612 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
16613
16614     fi
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.  */
16619
16620           #include <sys/types.h>
16621           #include <sys/mman.h>
16622
16623 int
16624 main ()
16625 {
16626
16627
16628   ;
16629   return 0;
16630 }
16631 _ACEOF
16632 if ac_fn_c_try_compile "$LINENO"; then :
16633
16634
16635 $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
16636
16637
16638 fi
16639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16640 fi
16641
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
16643 do :
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
16649 _ACEOF
16650
16651 fi
16652 done
16653
16654
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
16659 else
16660   ac_check_lib_save_LIBS=$LIBS
16661 LIBS="-lm  $LIBS"
16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h.  */
16664
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.  */
16668 #ifdef __cplusplus
16669 extern "C"
16670 #endif
16671 char pow ();
16672 int
16673 main ()
16674 {
16675 return pow ();
16676   ;
16677   return 0;
16678 }
16679 _ACEOF
16680 if ac_fn_c_try_link "$LINENO"; then :
16681   ac_cv_lib_m_pow=yes
16682 else
16683   ac_cv_lib_m_pow=no
16684 fi
16685 rm -f core conftest.err conftest.$ac_objext \
16686     conftest$ac_exeext conftest.$ac_ext
16687 LIBS=$ac_check_lib_save_LIBS
16688 fi
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"
16693 fi
16694
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
16696 do :
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
16702 _ACEOF
16703
16704 fi
16705 done
16706
16707
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
16712 else
16713   ac_check_lib_save_LIBS=$LIBS
16714 LIBS="-liconv  $LIBS"
16715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h.  */
16717
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.  */
16721 #ifdef __cplusplus
16722 extern "C"
16723 #endif
16724 char iconv_open ();
16725 int
16726 main ()
16727 {
16728 return iconv_open ();
16729   ;
16730   return 0;
16731 }
16732 _ACEOF
16733 if ac_fn_c_try_link "$LINENO"; then :
16734   ac_cv_lib_iconv_iconv_open=yes
16735 else
16736   ac_cv_lib_iconv_iconv_open=no
16737 fi
16738 rm -f core conftest.err conftest.$ac_objext \
16739     conftest$ac_exeext conftest.$ac_ext
16740 LIBS=$ac_check_lib_save_LIBS
16741 fi
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"
16746 fi
16747
16748     for ac_func in iconv
16749 do :
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
16754 _ACEOF
16755
16756 fi
16757 done
16758
16759
16760     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
16761 "
16762 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
16763
16764 $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
16765
16766 fi
16767
16768
16769             for ac_header in libunwind.h
16770 do :
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
16775 _ACEOF
16776
16777 fi
16778
16779 done
16780
16781 fi
16782
16783
16784 # Check whether --enable-gcc-atomics was given.
16785 if test "${enable_gcc_atomics+set}" = set; then :
16786   enableval=$enable_gcc_atomics;
16787 else
16788   enable_gcc_atomics=yes
16789 fi
16790
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.  */
16797
16798
16799 int
16800 main ()
16801 {
16802
16803     int a;
16804     void *x, *y, *z;
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);
16810
16811   ;
16812   return 0;
16813 }
16814 _ACEOF
16815 if ac_fn_c_try_link "$LINENO"; then :
16816
16817     have_gcc_atomics=yes
16818
16819 fi
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; }
16824
16825     if test x$have_gcc_atomics = xyes; then
16826
16827 $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
16828
16829     else
16830         # See if we have the minimum operation needed for GCC atomics
16831         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832 /* end confdefs.h.  */
16833
16834
16835 int
16836 main ()
16837 {
16838
16839         int a;
16840         __sync_lock_test_and_set(&a, 1);
16841         __sync_lock_release(&a);
16842
16843   ;
16844   return 0;
16845 }
16846 _ACEOF
16847 if ac_fn_c_try_link "$LINENO"; then :
16848
16849         have_gcc_sync_lock_test_and_set=yes
16850
16851 fi
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
16855
16856 $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
16857
16858         fi
16859     fi
16860 fi
16861
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"
16882
16883
16884 # Check whether --enable-atomic was given.
16885 if test "${enable_atomic+set}" = set; then :
16886   enableval=$enable_atomic;
16887 else
16888   enable_atomic=yes
16889 fi
16890
16891 if test x$enable_atomic != xyes; then
16892
16893 $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
16894
16895 else
16896     SUMMARY_modules="${SUMMARY_modules} atomic"
16897 fi
16898 # Check whether --enable-audio was given.
16899 if test "${enable_audio+set}" = set; then :
16900   enableval=$enable_audio;
16901 else
16902   enable_audio=yes
16903 fi
16904
16905 if test x$enable_audio != xyes; then
16906
16907 $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
16908
16909 else
16910     SUMMARY_modules="${SUMMARY_modules} audio"
16911 fi
16912 # Check whether --enable-video was given.
16913 if test "${enable_video+set}" = set; then :
16914   enableval=$enable_video;
16915 else
16916   enable_video=yes
16917 fi
16918
16919 if test x$enable_video != xyes; then
16920
16921 $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
16922
16923 else
16924     SUMMARY_modules="${SUMMARY_modules} video"
16925 fi
16926 # Check whether --enable-render was given.
16927 if test "${enable_render+set}" = set; then :
16928   enableval=$enable_render;
16929 else
16930   enable_render=yes
16931 fi
16932
16933 if test x$enable_render != xyes; then
16934
16935 $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
16936
16937 else
16938     SUMMARY_modules="${SUMMARY_modules} render"
16939 fi
16940 # Check whether --enable-events was given.
16941 if test "${enable_events+set}" = set; then :
16942   enableval=$enable_events;
16943 else
16944   enable_events=yes
16945 fi
16946
16947 if test x$enable_events != xyes; then
16948
16949 $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
16950
16951 else
16952     SUMMARY_modules="${SUMMARY_modules} events"
16953 fi
16954 # Check whether --enable-joystick was given.
16955 if test "${enable_joystick+set}" = set; then :
16956   enableval=$enable_joystick;
16957 else
16958   enable_joystick=yes
16959 fi
16960
16961 if test x$enable_joystick != xyes; then
16962
16963 $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
16964
16965 else
16966     SUMMARY_modules="${SUMMARY_modules} joystick"
16967 fi
16968 # Check whether --enable-haptic was given.
16969 if test "${enable_haptic+set}" = set; then :
16970   enableval=$enable_haptic;
16971 else
16972   enable_haptic=yes
16973 fi
16974
16975 if test x$enable_haptic != xyes; then
16976
16977 $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
16978
16979 else
16980     SUMMARY_modules="${SUMMARY_modules} haptic"
16981 fi
16982 # Check whether --enable-power was given.
16983 if test "${enable_power+set}" = set; then :
16984   enableval=$enable_power;
16985 else
16986   enable_power=yes
16987 fi
16988
16989 if test x$enable_power != xyes; then
16990
16991 $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
16992
16993 else
16994     SUMMARY_modules="${SUMMARY_modules} power"
16995 fi
16996 # Check whether --enable-filesystem was given.
16997 if test "${enable_filesystem+set}" = set; then :
16998   enableval=$enable_filesystem;
16999 else
17000   enable_filesystem=yes
17001 fi
17002
17003 if test x$enable_filesystem != xyes; then
17004
17005 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
17006
17007 else
17008     SUMMARY_modules="${SUMMARY_modules} filesystem"
17009 fi
17010 # Check whether --enable-threads was given.
17011 if test "${enable_threads+set}" = set; then :
17012   enableval=$enable_threads;
17013 else
17014   enable_threads=yes
17015 fi
17016
17017 if test x$enable_threads != xyes; then
17018
17019 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
17020
17021 else
17022     SUMMARY_modules="${SUMMARY_modules} threads"
17023 fi
17024 # Check whether --enable-timers was given.
17025 if test "${enable_timers+set}" = set; then :
17026   enableval=$enable_timers;
17027 else
17028   enable_timers=yes
17029 fi
17030
17031 if test x$enable_timers != xyes; then
17032
17033 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
17034
17035 else
17036     SUMMARY_modules="${SUMMARY_modules} timers"
17037 fi
17038 # Check whether --enable-file was given.
17039 if test "${enable_file+set}" = set; then :
17040   enableval=$enable_file;
17041 else
17042   enable_file=yes
17043 fi
17044
17045 if test x$enable_file != xyes; then
17046
17047 $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
17048
17049 else
17050     SUMMARY_modules="${SUMMARY_modules} file"
17051 fi
17052 # Check whether --enable-loadso was given.
17053 if test "${enable_loadso+set}" = set; then :
17054   enableval=$enable_loadso;
17055 else
17056   enable_loadso=yes
17057 fi
17058
17059 if test x$enable_loadso != xyes; then
17060
17061 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
17062
17063 else
17064     SUMMARY_modules="${SUMMARY_modules} loadso"
17065 fi
17066 # Check whether --enable-cpuinfo was given.
17067 if test "${enable_cpuinfo+set}" = set; then :
17068   enableval=$enable_cpuinfo;
17069 else
17070   enable_cpuinfo=yes
17071 fi
17072
17073 if test x$enable_cpuinfo != xyes; then
17074
17075 $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
17076
17077 else
17078     SUMMARY_modules="${SUMMARY_modules} cpuinfo"
17079 fi
17080 # Check whether --enable-assembly was given.
17081 if test "${enable_assembly+set}" = set; then :
17082   enableval=$enable_assembly;
17083 else
17084   enable_assembly=yes
17085 fi
17086
17087 if test x$enable_assembly = xyes; then
17088     SUMMARY_modules="${SUMMARY_modules} assembly"
17089
17090
17091 $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
17092
17093
17094     # Make sure that we don't generate floating point code that would
17095     # cause illegal instruction exceptions on older processors
17096     case "$host" in
17097         *-*-darwin*)
17098             # Don't need to worry about Apple hardware, it's all SSE capable
17099             default_ssemath=yes
17100             ;;
17101         *64-*-*)
17102             # x86 64-bit architectures all have SSE instructions
17103             default_ssemath=yes
17104             ;;
17105         *)
17106             default_ssemath=no
17107             ;;
17108     esac
17109     # Check whether --enable-ssemath was given.
17110 if test "${enable_ssemath+set}" = set; then :
17111   enableval=$enable_ssemath;
17112 else
17113   enable_ssemath=$default_ssemath
17114 fi
17115
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"
17119         fi
17120     fi
17121
17122         # Check whether --enable-mmx was given.
17123 if test "${enable_mmx+set}" = set; then :
17124   enableval=$enable_mmx;
17125 else
17126   enable_mmx=yes
17127 fi
17128
17129     if test x$enable_mmx = xyes; then
17130         save_CFLAGS="$CFLAGS"
17131         have_gcc_mmx=no
17132         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
17133 $as_echo_n "checking for GCC -mmmx option... " >&6; }
17134         mmx_CFLAGS="-mmmx"
17135         CFLAGS="$save_CFLAGS $mmx_CFLAGS"
17136
17137         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138 /* end confdefs.h.  */
17139
17140         #ifdef __MINGW32__
17141         #include <_mingw.h>
17142         #ifdef __MINGW64_VERSION_MAJOR
17143         #include <intrin.h>
17144         #else
17145         #include <mmintrin.h>
17146         #endif
17147         #else
17148         #include <mmintrin.h>
17149         #endif
17150         #ifndef __MMX__
17151         #error Assembler CPP flag not enabled
17152         #endif
17153
17154 int
17155 main ()
17156 {
17157
17158
17159   ;
17160   return 0;
17161 }
17162 _ACEOF
17163 if ac_fn_c_try_compile "$LINENO"; then :
17164
17165         have_gcc_mmx=yes
17166
17167 fi
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"
17172
17173         if test x$have_gcc_mmx = xyes; then
17174             EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
17175             SUMMARY_math="${SUMMARY_math} mmx"
17176         fi
17177     fi
17178
17179     # Check whether --enable-3dnow was given.
17180 if test "${enable_3dnow+set}" = set; then :
17181   enableval=$enable_3dnow;
17182 else
17183   enable_3dnow=yes
17184 fi
17185
17186     if test x$enable_3dnow = xyes; then
17187         save_CFLAGS="$CFLAGS"
17188         have_gcc_3dnow=no
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"
17193
17194         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195 /* end confdefs.h.  */
17196
17197         #include <mm3dnow.h>
17198         #ifndef __3dNOW__
17199         #error Assembler CPP flag not enabled
17200         #endif
17201
17202 int
17203 main ()
17204 {
17205
17206         void *p = 0;
17207         _m_prefetch(p);
17208
17209   ;
17210   return 0;
17211 }
17212 _ACEOF
17213 if ac_fn_c_try_link "$LINENO"; then :
17214
17215         have_gcc_3dnow=yes
17216
17217 fi
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"
17223
17224         if test x$have_gcc_3dnow = xyes; then
17225             EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
17226             SUMMARY_math="${SUMMARY_math} 3dnow"
17227         fi
17228     fi
17229
17230     # Check whether --enable-sse was given.
17231 if test "${enable_sse+set}" = set; then :
17232   enableval=$enable_sse;
17233 else
17234   enable_sse=yes
17235 fi
17236
17237     if test x$enable_sse = xyes; then
17238         save_CFLAGS="$CFLAGS"
17239         have_gcc_sse=no
17240         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
17241 $as_echo_n "checking for GCC -msse option... " >&6; }
17242         sse_CFLAGS="-msse"
17243         CFLAGS="$save_CFLAGS $sse_CFLAGS"
17244
17245         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h.  */
17247
17248         #ifdef __MINGW32__
17249         #include <_mingw.h>
17250         #ifdef __MINGW64_VERSION_MAJOR
17251         #include <intrin.h>
17252         #else
17253         #include <xmmintrin.h>
17254         #endif
17255         #else
17256         #include <xmmintrin.h>
17257         #endif
17258         #ifndef __SSE__
17259         #error Assembler CPP flag not enabled
17260         #endif
17261
17262 int
17263 main ()
17264 {
17265
17266
17267   ;
17268   return 0;
17269 }
17270 _ACEOF
17271 if ac_fn_c_try_compile "$LINENO"; then :
17272
17273         have_gcc_sse=yes
17274
17275 fi
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"
17280
17281         if test x$have_gcc_sse = xyes; then
17282             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
17283             SUMMARY_math="${SUMMARY_math} sse"
17284         fi
17285     fi
17286
17287     # Check whether --enable-sse2 was given.
17288 if test "${enable_sse2+set}" = set; then :
17289   enableval=$enable_sse2;
17290 else
17291   enable_sse2=$default_ssemath
17292 fi
17293
17294     if test x$enable_sse2 = xyes; then
17295         save_CFLAGS="$CFLAGS"
17296         have_gcc_sse2=no
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"
17301
17302         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17303 /* end confdefs.h.  */
17304
17305         #ifdef __MINGW32__
17306         #include <_mingw.h>
17307         #ifdef __MINGW64_VERSION_MAJOR
17308         #include <intrin.h>
17309         #else
17310         #include <emmintrin.h>
17311         #endif
17312         #else
17313         #include <emmintrin.h>
17314         #endif
17315         #ifndef __SSE2__
17316         #error Assembler CPP flag not enabled
17317         #endif
17318
17319 int
17320 main ()
17321 {
17322
17323
17324   ;
17325   return 0;
17326 }
17327 _ACEOF
17328 if ac_fn_c_try_compile "$LINENO"; then :
17329
17330         have_gcc_sse2=yes
17331
17332 fi
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"
17337
17338         if test x$have_gcc_sse2 = xyes; then
17339             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
17340             SUMMARY_math="${SUMMARY_math} sse2"
17341         fi
17342     fi
17343
17344     # Check whether --enable-sse3 was given.
17345 if test "${enable_sse3+set}" = set; then :
17346   enableval=$enable_sse3;
17347 else
17348   enable_sse3=$default_ssemath
17349 fi
17350
17351     if test x$enable_sse3 = xyes; then
17352         save_CFLAGS="$CFLAGS"
17353         have_gcc_sse3=no
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"
17358
17359         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17360 /* end confdefs.h.  */
17361
17362         #ifdef __MINGW32__
17363         #include <_mingw.h>
17364         #ifdef __MINGW64_VERSION_MAJOR
17365         #include <intrin.h>
17366         #else
17367         #include <pmmintrin.h>
17368         #endif
17369         #else
17370         #include <pmmintrin.h>
17371         #endif
17372         #ifndef __SSE2__
17373         #error Assembler CPP flag not enabled
17374         #endif
17375
17376 int
17377 main ()
17378 {
17379
17380
17381   ;
17382   return 0;
17383 }
17384 _ACEOF
17385 if ac_fn_c_try_compile "$LINENO"; then :
17386
17387         have_gcc_sse3=yes
17388
17389 fi
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"
17394
17395         if test x$have_gcc_sse3 = xyes; then
17396             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
17397             SUMMARY_math="${SUMMARY_math} sse3"
17398         fi
17399     fi
17400
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
17404 else
17405   have_immintrin_h_hdr=no
17406 fi
17407
17408
17409     if test x$have_immintrin_h_hdr = xyes; then
17410
17411 $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
17412
17413     fi
17414
17415     # Check whether --enable-altivec was given.
17416 if test "${enable_altivec+set}" = set; then :
17417   enableval=$enable_altivec;
17418 else
17419   enable_altivec=yes
17420 fi
17421
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"
17428
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.  */
17433
17434         #include <altivec.h>
17435         vector unsigned int vzero() {
17436             return vec_splat_u32(0);
17437         }
17438
17439 int
17440 main ()
17441 {
17442
17443
17444   ;
17445   return 0;
17446 }
17447 _ACEOF
17448 if ac_fn_c_try_compile "$LINENO"; then :
17449
17450         have_gcc_altivec=yes
17451         have_altivec_h_hdr=yes
17452
17453 fi
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; }
17457
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.  */
17463
17464             vector unsigned int vzero() {
17465                 return vec_splat_u32(0);
17466             }
17467
17468 int
17469 main ()
17470 {
17471
17472
17473   ;
17474   return 0;
17475 }
17476 _ACEOF
17477 if ac_fn_c_try_compile "$LINENO"; then :
17478
17479             have_gcc_altivec=yes
17480
17481 fi
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; }
17485         fi
17486
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.  */
17494
17495             #include <altivec.h>
17496             vector unsigned int vzero() {
17497                 return vec_splat_u32(0);
17498             }
17499
17500 int
17501 main ()
17502 {
17503
17504
17505   ;
17506   return 0;
17507 }
17508 _ACEOF
17509 if ac_fn_c_try_compile "$LINENO"; then :
17510
17511             have_gcc_altivec=yes
17512             have_altivec_h_hdr=yes
17513
17514 fi
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; }
17518         fi
17519
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.  */
17525
17526             vector unsigned int vzero() {
17527                 return vec_splat_u32(0);
17528             }
17529
17530 int
17531 main ()
17532 {
17533
17534
17535   ;
17536   return 0;
17537 }
17538 _ACEOF
17539 if ac_fn_c_try_compile "$LINENO"; then :
17540
17541             have_gcc_altivec=yes
17542
17543 fi
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; }
17547         fi
17548         CFLAGS="$save_CFLAGS"
17549
17550         if test x$have_gcc_altivec = xyes; then
17551
17552 $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
17553
17554             if test x$have_altivec_h_hdr = xyes; then
17555
17556 $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
17557
17558             fi
17559             EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
17560             SUMMARY_math="${SUMMARY_math} altivec"
17561         fi
17562     fi
17563 fi
17564
17565 CheckOSS()
17566 {
17567     # Check whether --enable-oss was given.
17568 if test "${enable_oss+set}" = set; then :
17569   enableval=$enable_oss;
17570 else
17571   enable_oss=maybe
17572 fi
17573
17574
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
17579         enable_oss=yes
17580         case "$host" in
17581             *-*-openbsd*)
17582                 enable_oss=no;;
17583         esac
17584     fi
17585
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; }
17589         have_oss=no
17590         if test x$have_oss != xyes; then
17591             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17592 /* end confdefs.h.  */
17593
17594               #include <sys/soundcard.h>
17595
17596 int
17597 main ()
17598 {
17599
17600               int arg = SNDCTL_DSP_SETFRAGMENT;
17601
17602   ;
17603   return 0;
17604 }
17605 _ACEOF
17606 if ac_fn_c_try_compile "$LINENO"; then :
17607
17608             have_oss=yes
17609
17610 fi
17611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17612         fi
17613         if test x$have_oss != xyes; then
17614             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h.  */
17616
17617               #include <soundcard.h>
17618
17619 int
17620 main ()
17621 {
17622
17623               int arg = SNDCTL_DSP_SETFRAGMENT;
17624
17625   ;
17626   return 0;
17627 }
17628 _ACEOF
17629 if ac_fn_c_try_compile "$LINENO"; then :
17630
17631             have_oss=yes
17632
17633 $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
17634
17635
17636 fi
17637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17638         fi
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"
17643
17644 $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
17645
17646             SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
17647             have_audio=yes
17648
17649             # We may need to link with ossaudio emulation library
17650             case "$host" in
17651                 *-*-openbsd*|*-*-netbsd*)
17652                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
17653             esac
17654         fi
17655     fi
17656 }
17657
17658 CheckALSA()
17659 {
17660     # Check whether --enable-alsa was given.
17661 if test "${enable_alsa+set}" = set; then :
17662   enableval=$enable_alsa;
17663 else
17664   enable_alsa=yes
17665 fi
17666
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"
17671 alsa_found=yes
17672
17673
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"
17677 else
17678   alsa_prefix=""
17679 fi
17680
17681
17682
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"
17686 else
17687   alsa_inc_prefix=""
17688 fi
17689
17690
17691 # Check whether --enable-alsatest was given.
17692 if test "${enable_alsatest+set}" = set; then :
17693   enableval=$enable_alsatest; enable_alsatest="$enableval"
17694 else
17695   enable_alsatest=yes
17696 fi
17697
17698
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"
17704 fi
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
17706 $as_echo "$ALSA_CFLAGS" >&6; }
17707
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"
17713 fi
17714
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; }
17723
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; }
17727 no_alsa=""
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/'`
17734
17735
17736 ac_ext=c
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
17741
17742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743 /* end confdefs.h.  */
17744
17745 #include <alsa/asoundlib.h>
17746
17747 int
17748 main ()
17749 {
17750
17751 /* ensure backward compatibility */
17752 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17753 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17754 #endif
17755 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17756 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17757 #endif
17758 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17759 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17760 #endif
17761
17762 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
17763   exit(0);
17764 #  else
17765 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
17766 #       error not present
17767 #    endif
17768
17769 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
17770   exit(0);
17771 #   else
17772 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
17773 #          error not present
17774 #      endif
17775
17776 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17777 #        error not present
17778 #      endif
17779 #    endif
17780 #  endif
17781 exit(0);
17782
17783   ;
17784   return 0;
17785 }
17786 _ACEOF
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; }
17790 else
17791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
17792 $as_echo "not present." >&6; }
17793
17794    alsa_found=no
17795
17796 fi
17797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17798 ac_ext=c
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
17803
17804
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
17810 else
17811   ac_check_lib_save_LIBS=$LIBS
17812 LIBS="-lasound  $LIBS"
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814 /* end confdefs.h.  */
17815
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.  */
17819 #ifdef __cplusplus
17820 extern "C"
17821 #endif
17822 char snd_ctl_open ();
17823 int
17824 main ()
17825 {
17826 return snd_ctl_open ();
17827   ;
17828   return 0;
17829 }
17830 _ACEOF
17831 if ac_fn_c_try_link "$LINENO"; then :
17832   ac_cv_lib_asound_snd_ctl_open=yes
17833 else
17834   ac_cv_lib_asound_snd_ctl_open=no
17835 fi
17836 rm -f core conftest.err conftest.$ac_objext \
17837     conftest$ac_exeext conftest.$ac_ext
17838 LIBS=$ac_check_lib_save_LIBS
17839 fi
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
17845 _ACEOF
17846
17847   LIBS="-lasound $LIBS"
17848
17849 else
17850
17851          alsa_found=no
17852
17853 fi
17854
17855 fi
17856
17857 if test "x$alsa_found" = "xyes" ; then
17858    have_alsa=yes
17859    LIBS=`echo $LIBS | sed 's/-lasound//g'`
17860    LIBS=`echo $LIBS | sed 's/  //'`
17861    LIBS="-lasound $LIBS"
17862 fi
17863 if test "x$alsa_found" = "xno" ; then
17864    have_alsa=no
17865    CFLAGS="$alsa_save_CFLAGS"
17866    LDFLAGS="$alsa_save_LDFLAGS"
17867    LIBS="$alsa_save_LIBS"
17868    ALSA_CFLAGS=""
17869    ALSA_LIBS=""
17870 fi
17871
17872
17873
17874
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;
17883 else
17884   enable_alsa_shared=yes
17885 fi
17886
17887             alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
17888
17889
17890 $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
17891
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;}
17898             fi
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"
17902
17903 cat >>confdefs.h <<_ACEOF
17904 #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
17905 _ACEOF
17906
17907                 SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
17908             else
17909                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
17910                 SUMMARY_audio="${SUMMARY_audio} alsa"
17911             fi
17912             have_audio=yes
17913         fi
17914     fi
17915 }
17916
17917 CheckJACK()
17918 {
17919     # Check whether --enable-jack was given.
17920 if test "${enable_jack+set}" = set; then :
17921   enableval=$enable_jack;
17922 else
17923   enable_jack=yes
17924 fi
17925
17926     if test x$enable_audio = xyes -a x$enable_jack = xyes; then
17927         audio_jack=no
17928
17929         JACK_REQUIRED_VERSION=0.125
17930
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
17937 else
17938   case $PKG_CONFIG in
17939   [\\/]* | ?:[\\/]*)
17940   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17941   ;;
17942   *)
17943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17944 for as_dir in $PATH
17945 do
17946   IFS=$as_save_IFS
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
17952     break 2
17953   fi
17954 done
17955   done
17956 IFS=$as_save_IFS
17957
17958   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17959   ;;
17960 esac
17961 fi
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; }
17966 else
17967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17968 $as_echo "no" >&6; }
17969 fi
17970
17971
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`
17978                 audio_jack=yes
17979             fi
17980         fi
17981         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
17982 $as_echo "$audio_jack" >&6; }
17983
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;
17988 else
17989   enable_jack_shared=yes
17990 fi
17991
17992             jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
17993
17994
17995 $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
17996
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;}
18003             fi
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"
18007
18008 cat >>confdefs.h <<_ACEOF
18009 #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
18010 _ACEOF
18011
18012                 SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
18013
18014                 case "$host" in
18015                     # On Solaris, jack must be linked deferred explicitly
18016                     # to prevent undefined symbol failures.
18017                     *-*-solaris*)
18018                         JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
18019                         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
18020                 esac
18021             else
18022                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
18023                 SUMMARY_audio="${SUMMARY_audio} jack"
18024             fi
18025             have_audio=yes
18026         fi
18027     fi
18028 }
18029
18030 CheckESD()
18031 {
18032     # Check whether --enable-esd was given.
18033 if test "${enable_esd+set}" = set; then :
18034   enableval=$enable_esd;
18035 else
18036   enable_esd=yes
18037 fi
18038
18039     if test x$enable_audio = xyes -a x$enable_esd = xyes; then
18040
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"
18044 else
18045   esd_prefix=""
18046 fi
18047
18048
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"
18052 else
18053   esd_exec_prefix=""
18054 fi
18055
18056 # Check whether --enable-esdtest was given.
18057 if test "${enable_esdtest+set}" = set; then :
18058   enableval=$enable_esdtest;
18059 else
18060   enable_esdtest=yes
18061 fi
18062
18063
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
18068      fi
18069   fi
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
18074      fi
18075   fi
18076
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
18083 else
18084   case $ESD_CONFIG in
18085   [\\/]* | ?:[\\/]*)
18086   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
18087   ;;
18088   *)
18089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18090 for as_dir in $PATH
18091 do
18092   IFS=$as_save_IFS
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
18098     break 2
18099   fi
18100 done
18101   done
18102 IFS=$as_save_IFS
18103
18104   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
18105   ;;
18106 esac
18107 fi
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; }
18112 else
18113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18114 $as_echo "no" >&6; }
18115 fi
18116
18117
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; }
18121   no_esd=""
18122   if test "$ESD_CONFIG" = "no" ; then
18123     no_esd=yes
18124   else
18125     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
18126     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
18127
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"
18139       rm -f conf.esdtest
18140       if test "$cross_compiling" = yes; then :
18141   echo $ac_n "cross compiling; assumed OK... $ac_c"
18142 else
18143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144 /* end confdefs.h.  */
18145
18146 #include <stdio.h>
18147 #include <stdlib.h>
18148 #include <string.h>
18149 #include <esd.h>
18150
18151 char*
18152 my_strdup (char *str)
18153 {
18154   char *new_str;
18155
18156   if (str)
18157     {
18158       new_str = malloc ((strlen (str) + 1) * sizeof(char));
18159       strcpy (new_str, str);
18160     }
18161   else
18162     new_str = NULL;
18163
18164   return new_str;
18165 }
18166
18167 int main ()
18168 {
18169   int major, minor, micro;
18170   char *tmp_version;
18171
18172   system ("touch conf.esdtest");
18173
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, &micro) != 3) {
18177      printf("%s, bad version string\n", "$min_esd_version");
18178      exit(1);
18179    }
18180
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)))
18184     {
18185       return 0;
18186     }
18187   else
18188     {
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");
18195       return 1;
18196     }
18197 }
18198
18199
18200 _ACEOF
18201 if ac_fn_c_try_run "$LINENO"; then :
18202
18203 else
18204   no_esd=yes
18205 fi
18206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18207   conftest.$ac_objext conftest.beam conftest.$ac_ext
18208 fi
18209
18210        CFLAGS="$ac_save_CFLAGS"
18211        LIBS="$ac_save_LIBS"
18212      fi
18213   fi
18214   if test "x$no_esd" = x ; then
18215      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18216 $as_echo "yes" >&6; }
18217      have_esd=yes
18218   else
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."
18226      else
18227        if test -f conf.esdtest ; then
18228         :
18229        else
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.  */
18235
18236 #include <stdio.h>
18237 #include <esd.h>
18238
18239 int
18240 main ()
18241 {
18242  return 0;
18243   ;
18244   return 0;
18245 }
18246 _ACEOF
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"
18254           echo "***"
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"
18257 else
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"
18262 fi
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"
18267        fi
18268      fi
18269      ESD_CFLAGS=""
18270      ESD_LIBS=""
18271      have_esd=no
18272   fi
18273
18274
18275   rm -f conf.esdtest
18276
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;
18281 else
18282   enable_esd_shared=yes
18283 fi
18284
18285             esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18286
18287
18288 $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
18289
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;}
18296             fi
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"
18300
18301 cat >>confdefs.h <<_ACEOF
18302 #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
18303 _ACEOF
18304
18305                 SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
18306             else
18307                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
18308                 SUMMARY_audio="${SUMMARY_audio} esd"
18309             fi
18310             have_audio=yes
18311         fi
18312     fi
18313 }
18314
18315 CheckPulseAudio()
18316 {
18317     # Check whether --enable-pulseaudio was given.
18318 if test "${enable_pulseaudio+set}" = set; then :
18319   enableval=$enable_pulseaudio;
18320 else
18321   enable_pulseaudio=yes
18322 fi
18323
18324     if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
18325         audio_pulseaudio=no
18326
18327         PULSEAUDIO_REQUIRED_VERSION=0.9
18328
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
18335 else
18336   case $PKG_CONFIG in
18337   [\\/]* | ?:[\\/]*)
18338   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18339   ;;
18340   *)
18341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18342 for as_dir in $PATH
18343 do
18344   IFS=$as_save_IFS
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
18350     break 2
18351   fi
18352 done
18353   done
18354 IFS=$as_save_IFS
18355
18356   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18357   ;;
18358 esac
18359 fi
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; }
18364 else
18365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18366 $as_echo "no" >&6; }
18367 fi
18368
18369
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
18377             fi
18378         fi
18379         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
18380 $as_echo "$audio_pulseaudio" >&6; }
18381
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;
18386 else
18387   enable_pulseaudio_shared=yes
18388 fi
18389
18390             pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18391
18392
18393 $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
18394
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;}
18401             fi
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"
18405
18406 cat >>confdefs.h <<_ACEOF
18407 #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
18408 _ACEOF
18409
18410                 SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
18411
18412                 case "$host" in
18413                     # On Solaris, pulseaudio must be linked deferred explicitly
18414                     # to prevent undefined symbol failures.
18415                     *-*-solaris*)
18416                         PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
18417                         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
18418                 esac
18419             else
18420                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
18421                 SUMMARY_audio="${SUMMARY_audio} pulse"
18422             fi
18423             have_audio=yes
18424         fi
18425     fi
18426 }
18427
18428 CheckARTSC()
18429 {
18430     # Check whether --enable-arts was given.
18431 if test "${enable_arts+set}" = set; then :
18432   enableval=$enable_arts;
18433 else
18434   enable_arts=yes
18435 fi
18436
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
18444 else
18445   case $ARTSCONFIG in
18446   [\\/]* | ?:[\\/]*)
18447   ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
18448   ;;
18449   *)
18450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18451 for as_dir in $PATH
18452 do
18453   IFS=$as_save_IFS
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
18459     break 2
18460   fi
18461 done
18462   done
18463 IFS=$as_save_IFS
18464
18465   ;;
18466 esac
18467 fi
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; }
18472 else
18473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18474 $as_echo "no" >&6; }
18475 fi
18476
18477
18478         if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
18479             : # arts isn't installed
18480         else
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; }
18485             audio_arts=no
18486             save_CFLAGS="$CFLAGS"
18487             CFLAGS="$CFLAGS $ARTS_CFLAGS"
18488             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h.  */
18490
18491              #include <artsc.h>
18492
18493 int
18494 main ()
18495 {
18496
18497              arts_stream_t stream;
18498
18499   ;
18500   return 0;
18501 }
18502 _ACEOF
18503 if ac_fn_c_try_compile "$LINENO"; then :
18504
18505             audio_arts=yes
18506
18507 fi
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;
18516 else
18517   enable_arts_shared=yes
18518 fi
18519
18520                 arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18521
18522
18523 $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
18524
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;}
18531                 fi
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"
18535
18536 cat >>confdefs.h <<_ACEOF
18537 #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
18538 _ACEOF
18539
18540                     SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
18541                 else
18542                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
18543                     SUMMARY_audio="${SUMMARY_audio} arts"
18544                 fi
18545                 have_audio=yes
18546             fi
18547         fi
18548     fi
18549 }
18550
18551 CheckNAS()
18552 {
18553     # Check whether --enable-nas was given.
18554 if test "${enable_nas+set}" = set; then :
18555   enableval=$enable_nas;
18556 else
18557   enable_nas=yes
18558 fi
18559
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 :
18563   have_nas_hdr=yes
18564 fi
18565
18566
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
18571 else
18572   ac_check_lib_save_LIBS=$LIBS
18573 LIBS="-laudio  $LIBS"
18574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18575 /* end confdefs.h.  */
18576
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.  */
18580 #ifdef __cplusplus
18581 extern "C"
18582 #endif
18583 char AuOpenServer ();
18584 int
18585 main ()
18586 {
18587 return AuOpenServer ();
18588   ;
18589   return 0;
18590 }
18591 _ACEOF
18592 if ac_fn_c_try_link "$LINENO"; then :
18593   ac_cv_lib_audio_AuOpenServer=yes
18594 else
18595   ac_cv_lib_audio_AuOpenServer=no
18596 fi
18597 rm -f core conftest.err conftest.$ac_objext \
18598     conftest$ac_exeext conftest.$ac_ext
18599 LIBS=$ac_check_lib_save_LIBS
18600 fi
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 :
18604   have_nas_lib=yes
18605 fi
18606
18607
18608         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
18609 $as_echo_n "checking for NAS audio support... " >&6; }
18610         have_nas=no
18611
18612         if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
18613             have_nas=yes
18614             NAS_LIBS="-laudio"
18615
18616         elif test -r /usr/X11R6/include/audio/audiolib.h; then
18617             have_nas=yes
18618             NAS_CFLAGS="-I/usr/X11R6/include/"
18619             NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
18620
18621         fi
18622
18623         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
18624 $as_echo "$have_nas" >&6; }
18625
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;
18630 else
18631   enable_nas_shared=yes
18632 fi
18633
18634             nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18635
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;}
18640             fi
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"
18644
18645 cat >>confdefs.h <<_ACEOF
18646 #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
18647 _ACEOF
18648
18649                 SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
18650             else
18651                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
18652                 SUMMARY_audio="${SUMMARY_audio} nas"
18653             fi
18654
18655
18656 $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
18657
18658             SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
18659             EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
18660             have_audio=yes
18661         fi
18662     fi
18663 }
18664
18665 CheckSNDIO()
18666 {
18667     # Check whether --enable-sndio was given.
18668 if test "${enable_sndio+set}" = set; then :
18669   enableval=$enable_sndio;
18670 else
18671   enable_sndio=yes
18672 fi
18673
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 :
18677   have_sndio_hdr=yes
18678 fi
18679
18680
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
18685 else
18686   ac_check_lib_save_LIBS=$LIBS
18687 LIBS="-lsndio  $LIBS"
18688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18689 /* end confdefs.h.  */
18690
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.  */
18694 #ifdef __cplusplus
18695 extern "C"
18696 #endif
18697 char sio_open ();
18698 int
18699 main ()
18700 {
18701 return sio_open ();
18702   ;
18703   return 0;
18704 }
18705 _ACEOF
18706 if ac_fn_c_try_link "$LINENO"; then :
18707   ac_cv_lib_sndio_sio_open=yes
18708 else
18709   ac_cv_lib_sndio_sio_open=no
18710 fi
18711 rm -f core conftest.err conftest.$ac_objext \
18712     conftest$ac_exeext conftest.$ac_ext
18713 LIBS=$ac_check_lib_save_LIBS
18714 fi
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 :
18718   have_sndio_lib=yes
18719 fi
18720
18721
18722         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
18723 $as_echo_n "checking for sndio audio support... " >&6; }
18724         have_sndio=no
18725
18726         if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
18727             have_sndio=yes
18728             SNDIO_LIBS="-lsndio"
18729         fi
18730
18731         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
18732 $as_echo "$have_sndio" >&6; }
18733
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;
18738 else
18739   enable_sndio_shared=yes
18740 fi
18741
18742             sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18743
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;}
18748             fi
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"
18752
18753 cat >>confdefs.h <<_ACEOF
18754 #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
18755 _ACEOF
18756
18757                 SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
18758             else
18759                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
18760                 SUMMARY_audio="${SUMMARY_audio} sndio"
18761             fi
18762
18763
18764 $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
18765
18766             SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
18767             EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
18768             have_audio=yes
18769         fi
18770     fi
18771 }
18772
18773 CheckFusionSound()
18774 {
18775     # Check whether --enable-fusionsound was given.
18776 if test "${enable_fusionsound+set}" = set; then :
18777   enableval=$enable_fusionsound;
18778 else
18779   enable_fusionsound=no
18780 fi
18781
18782     if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
18783         fusionsound=no
18784
18785         FUSIONSOUND_REQUIRED_VERSION=1.1.1
18786
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
18793 else
18794   case $PKG_CONFIG in
18795   [\\/]* | ?:[\\/]*)
18796   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18797   ;;
18798   *)
18799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18800 for as_dir in $PATH
18801 do
18802   IFS=$as_save_IFS
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
18808     break 2
18809   fi
18810 done
18811   done
18812 IFS=$as_save_IFS
18813
18814   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18815   ;;
18816 esac
18817 fi
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; }
18822 else
18823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18824 $as_echo "no" >&6; }
18825 fi
18826
18827
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`
18834                 fusionsound=yes
18835             fi
18836         fi
18837         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
18838 $as_echo "$fusionsound" >&6; }
18839
18840         if test x$fusionsound = xyes; then
18841
18842 $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
18843
18844             SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
18845             EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
18846
18847             # Check whether --enable-fusionsound-shared was given.
18848 if test "${enable_fusionsound_shared+set}" = set; then :
18849   enableval=$enable_fusionsound_shared;
18850 else
18851   enable_fusionsound_shared=yes
18852 fi
18853
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;}
18861             fi
18862             if test x$have_loadso = xyes && \
18863                test x$enable_fusionsound_shared = xyes; then
18864
18865 cat >>confdefs.h <<_ACEOF
18866 #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
18867 _ACEOF
18868
18869                 fusionsound_shared=yes
18870                 SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
18871             else
18872                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
18873                 SUMMARY_audio="${SUMMARY_audio} fusionsound"
18874             fi
18875             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
18876 $as_echo "$fusionsound_shared" >&6; }
18877
18878             have_audio=yes
18879         fi
18880     fi
18881 }
18882
18883 CheckDiskAudio()
18884 {
18885     # Check whether --enable-diskaudio was given.
18886 if test "${enable_diskaudio+set}" = set; then :
18887   enableval=$enable_diskaudio;
18888 else
18889   enable_diskaudio=yes
18890 fi
18891
18892     if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
18893
18894 $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
18895
18896         SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
18897         SUMMARY_audio="${SUMMARY_audio} disk"
18898     fi
18899 }
18900
18901 CheckDummyAudio()
18902 {
18903     # Check whether --enable-dummyaudio was given.
18904 if test "${enable_dummyaudio+set}" = set; then :
18905   enableval=$enable_dummyaudio;
18906 else
18907   enable_dummyaudio=yes
18908 fi
18909
18910     if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
18911
18912 $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
18913
18914         SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
18915         SUMMARY_audio="${SUMMARY_audio} dummy"
18916     fi
18917 }
18918
18919 CheckLibSampleRate()
18920 {
18921     # Check whether --enable-libsamplerate was given.
18922 if test "${enable_libsamplerate+set}" = set; then :
18923   enableval=$enable_libsamplerate;
18924 else
18925   enable_libsamplerate=yes
18926 fi
18927
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
18932 else
18933   have_samplerate_h_hdr=no
18934 fi
18935
18936
18937         if test x$have_samplerate_h_hdr = xyes; then
18938
18939 $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
18940
18941
18942             # Check whether --enable-libsamplerate-shared was given.
18943 if test "${enable_libsamplerate_shared+set}" = set; then :
18944   enableval=$enable_libsamplerate_shared;
18945 else
18946   enable_libsamplerate_shared=yes
18947 fi
18948
18949
18950             samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
18951
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;}
18956             fi
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"
18960
18961 cat >>confdefs.h <<_ACEOF
18962 #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
18963 _ACEOF
18964
18965             else
18966                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
18967             fi
18968         fi
18969     fi
18970 }
18971
18972 CheckVisibilityHidden()
18973 {
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
18977
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.  */
18983
18984     #if !defined(__GNUC__) || __GNUC__ < 4
18985     #error SDL only uses visibility attributes in GCC 4 or newer
18986     #endif
18987
18988 int
18989 main ()
18990 {
18991
18992
18993   ;
18994   return 0;
18995 }
18996 _ACEOF
18997 if ac_fn_c_try_compile "$LINENO"; then :
18998
18999     have_gcc_fvisibility=yes
19000
19001 fi
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"
19006
19007     if test x$have_gcc_fvisibility = xyes; then
19008         EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
19009     fi
19010 }
19011
19012 CheckStackBoundary()
19013 {
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
19017
19018     save_CFLAGS="$CFLAGS"
19019     CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
19020     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021 /* end confdefs.h.  */
19022
19023     int x = 0;
19024
19025 int
19026 main ()
19027 {
19028
19029
19030   ;
19031   return 0;
19032 }
19033 _ACEOF
19034 if ac_fn_c_try_compile "$LINENO"; then :
19035
19036     have_gcc_preferred_stack_boundary=yes
19037
19038 fi
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"
19043
19044     if test x$have_gcc_preferred_stack_boundary = xyes; then
19045         EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
19046     fi
19047 }
19048
19049 CheckDeclarationAfterStatement()
19050 {
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
19054
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.  */
19059
19060     int x = 0;
19061
19062 int
19063 main ()
19064 {
19065
19066
19067   ;
19068   return 0;
19069 }
19070 _ACEOF
19071 if ac_fn_c_try_compile "$LINENO"; then :
19072
19073     have_gcc_declaration_after_statement=yes
19074
19075 fi
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"
19080
19081     if test x$have_gcc_declaration_after_statement = xyes; then
19082         EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
19083     fi
19084 }
19085
19086 CheckWarnAll()
19087 {
19088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
19089 $as_echo_n "checking for GCC -Wall option... " >&6; }
19090     have_gcc_Wall=no
19091
19092     save_CFLAGS="$CFLAGS"
19093     CFLAGS="$save_CFLAGS -Wall"
19094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19095 /* end confdefs.h.  */
19096
19097     int x = 0;
19098
19099 int
19100 main ()
19101 {
19102
19103
19104   ;
19105   return 0;
19106 }
19107 _ACEOF
19108 if ac_fn_c_try_compile "$LINENO"; then :
19109
19110     have_gcc_Wall=yes
19111
19112 fi
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"
19117
19118     if test x$have_gcc_Wall = xyes; then
19119         EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
19120
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
19124         case "$host" in
19125             *-*-haiku*)
19126                 need_gcc_Wno_multichar=yes
19127                 ;;
19128         esac
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"
19133         fi
19134     fi
19135 }
19136
19137 CheckWayland()
19138 {
19139     # Check whether --enable-video-wayland was given.
19140 if test "${enable_video_wayland+set}" = set; then :
19141   enableval=$enable_video_wayland;
19142 else
19143   enable_video_wayland=yes
19144 fi
19145
19146
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;
19150 else
19151   enable_video_wayland_qt_touch=yes
19152 fi
19153
19154
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
19162 else
19163   case $PKG_CONFIG in
19164   [\\/]* | ?:[\\/]*)
19165   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19166   ;;
19167   *)
19168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19169 for as_dir in $PATH
19170 do
19171   IFS=$as_save_IFS
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
19177     break 2
19178   fi
19179 done
19180   done
19181 IFS=$as_save_IFS
19182
19183   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19184   ;;
19185 esac
19186 fi
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; }
19191 else
19192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19193 $as_echo "no" >&6; }
19194 fi
19195
19196
19197         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
19198 $as_echo_n "checking for Wayland support... " >&6; }
19199         video_wayland=no
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`
19209                 video_wayland=yes
19210             fi
19211         fi
19212         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
19213 $as_echo "$video_wayland" >&6; }
19214
19215         if test x$video_wayland = xyes; then
19216
19217 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
19218
19219             if test x$enable_video_wayland_qt_touch = xyes; then
19220
19221 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
19222
19223             fi
19224
19225             WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1 xdg-shell-unstable-v6"
19226
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;
19232 else
19233   enable_wayland_shared=maybe
19234 fi
19235
19236
19237                         case "$host" in
19238                 *)
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'`
19243                     fi
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'`
19249                     ;;
19250             esac
19251
19252             if test x$enable_wayland_shared = xmaybe; then
19253                 enable_wayland_shared=yes
19254             fi
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
19260             fi
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"
19277
19278 cat >>confdefs.h <<_ACEOF
19279 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
19280 _ACEOF
19281
19282
19283 cat >>confdefs.h <<_ACEOF
19284 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
19285 _ACEOF
19286
19287
19288 cat >>confdefs.h <<_ACEOF
19289 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
19290 _ACEOF
19291
19292
19293 cat >>confdefs.h <<_ACEOF
19294 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
19295 _ACEOF
19296
19297
19298 cat >>confdefs.h <<_ACEOF
19299 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XDGSHELLCLIENT "$xdg_shell_client_lib"
19300 _ACEOF
19301
19302
19303 cat >>confdefs.h <<_ACEOF
19304 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_TEXTCLIENT "$text_client_lib"
19305 _ACEOF
19306
19307
19308 cat >>confdefs.h <<_ACEOF
19309 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_TIZENEXTENSIONCLIENT "$tizen_extension_client_lib"
19310 _ACEOF
19311
19312                 SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
19313             else
19314                 enable_wayland_shared=no
19315                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
19316                 SUMMARY_video="${SUMMARY_video} wayland"
19317             fi
19318             have_video=yes
19319         fi
19320     fi
19321 }
19322
19323 CheckTizen()
19324 {
19325     # Check whether --enable-video-tizen was given.
19326 if test "${enable_video_tizen+set}" = set; then :
19327   enableval=$enable_video_tizen;
19328 else
19329   enable_video_tizen=yes
19330 fi
19331
19332
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
19340 else
19341   case $PKG_CONFIG in
19342   [\\/]* | ?:[\\/]*)
19343   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19344   ;;
19345   *)
19346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19347 for as_dir in $PATH
19348 do
19349   IFS=$as_save_IFS
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
19355     break 2
19356   fi
19357 done
19358   done
19359 IFS=$as_save_IFS
19360
19361   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19362   ;;
19363 esac
19364 fi
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; }
19369 else
19370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19371 $as_echo "no" >&6; }
19372 fi
19373
19374
19375         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tizen support" >&5
19376 $as_echo_n "checking for Tizen support... " >&6; }
19377         video_tizen=no
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`
19384                 video_tizen=yes
19385             fi
19386         fi
19387
19388         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_tizen" >&5
19389 $as_echo "$video_tizen" >&6; }
19390
19391         if test x$video_tizen = xyes; then
19392
19393 $as_echo "#define SDL_VIDEO_DRIVER_TIZEN 1" >>confdefs.h
19394
19395             SOURCES="$SOURCES $srcdir/src/video/tizen/*.c"
19396             SOURCES="$SOURCES $srcdir/src/core/tizen/*.c"
19397             SDLMAIN_SOURCES="$srcdir/src/main/tizen/*.c"
19398
19399             SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
19400             SDL_LIBS="-lSDL2main $SDL_LIBS"
19401
19402             EXTRA_CFLAGS="$EXTRA_CFLAGS $TIZEN_CFLAGS -DTIZEN"
19403             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $TIZEN_LIBS"
19404             SUMMARY_video="${SUMMARY_video} tizen"
19405             have_video=yes
19406         fi
19407     fi
19408
19409     if test x$enable_joystick = xyes; then
19410         SUMMARY="${SUMMARY}SDL2 tizen joystick in:\n"
19411
19412 $as_echo "#define SDL_JOYSTICK_TIZEN 1" >>confdefs.h
19413
19414         SOURCES="$SOURCES $srcdir/src/joystick/tizen/*.c"
19415         have_joystick=yes
19416     fi
19417 }
19418
19419 CheckMir()
19420 {
19421     # Check whether --enable-video-mir was given.
19422 if test "${enable_video_mir+set}" = set; then :
19423   enableval=$enable_video_mir;
19424 else
19425   enable_video_mir=yes
19426 fi
19427
19428
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
19436 else
19437   case $PKG_CONFIG in
19438   [\\/]* | ?:[\\/]*)
19439   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19440   ;;
19441   *)
19442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19443 for as_dir in $PATH
19444 do
19445   IFS=$as_save_IFS
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
19451     break 2
19452   fi
19453 done
19454   done
19455 IFS=$as_save_IFS
19456
19457   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19458   ;;
19459 esac
19460 fi
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; }
19465 else
19466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19467 $as_echo "no" >&6; }
19468 fi
19469
19470
19471         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
19472 $as_echo_n "checking for Mir support... " >&6; }
19473         video_mir=no
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"
19480
19481                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19482 /* end confdefs.h.  */
19483
19484                 #include <mir_toolkit/mir_client_library.h>
19485
19486 int
19487 main ()
19488 {
19489
19490                     MirWindowAttrib attrib = mir_window_attrib_state
19491
19492   ;
19493   return 0;
19494 }
19495 _ACEOF
19496 if ac_fn_c_try_compile "$LINENO"; then :
19497
19498                 video_mir=yes
19499
19500 fi
19501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19502                 CFLAGS="$save_CFLAGS"
19503             fi
19504         fi
19505         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
19506 $as_echo "$video_mir" >&6; }
19507
19508         if test x$video_mir = xyes; then
19509
19510 $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
19511
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;
19517 else
19518   enable_mir_shared=maybe
19519 fi
19520
19521
19522                         case "$host" in
19523                 *)
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'`
19526                     ;;
19527             esac
19528
19529             if test x$enable_mir_shared = xmaybe; then
19530                 enable_mir_shared=yes
19531             fi
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
19537             fi
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"
19544
19545 cat >>confdefs.h <<_ACEOF
19546 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
19547 _ACEOF
19548
19549
19550 cat >>confdefs.h <<_ACEOF
19551 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
19552 _ACEOF
19553
19554                 SUMMARY_video="${SUMMARY_video} mir(dynamic)"
19555             else
19556                 enable_mir_shared=no
19557                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
19558                 SUMMARY_video="${SUMMARY_video} mir"
19559             fi
19560             have_video=yes
19561         fi
19562     fi
19563 }
19564
19565 CheckNativeClient()
19566 {
19567         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19568 /* end confdefs.h.  */
19569
19570           #if !defined(__native_client__)
19571           #error "NO NACL"
19572           #endif
19573
19574 int
19575 main ()
19576 {
19577
19578
19579   ;
19580   return 0;
19581 }
19582 _ACEOF
19583 if ac_fn_c_try_compile "$LINENO"; then :
19584
19585
19586 $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
19587
19588
19589 $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
19590
19591
19592 $as_echo "#define HAVE_POW 1" >>confdefs.h
19593
19594
19595 $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
19596
19597
19598 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
19599
19600
19601 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
19602
19603
19604         SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
19605
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"
19611
19612 fi
19613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19614 }
19615
19616
19617 CheckRPI()
19618 {
19619     # Check whether --enable-video-rpi was given.
19620 if test "${enable_video_rpi+set}" = set; then :
19621   enableval=$enable_video_rpi;
19622 else
19623   enable_video_rpi=yes
19624 fi
19625
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
19633 else
19634   case $PKG_CONFIG in
19635   [\\/]* | ?:[\\/]*)
19636   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19637   ;;
19638   *)
19639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19640 for as_dir in $PATH
19641 do
19642   IFS=$as_save_IFS
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
19648     break 2
19649   fi
19650 done
19651   done
19652 IFS=$as_save_IFS
19653
19654   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19655   ;;
19656 esac
19657 fi
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; }
19662 else
19663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19664 $as_echo "no" >&6; }
19665 fi
19666
19667
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"
19674         else
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"
19677         fi
19678
19679         # Save the original compiler flags and libraries
19680         ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
19681
19682         # Add the Raspberry Pi compiler flags and libraries
19683         CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
19684
19685         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
19686 $as_echo_n "checking for Raspberry Pi... " >&6; }
19687         have_video_rpi=no
19688         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h.  */
19690
19691           #include <bcm_host.h>
19692
19693 int
19694 main ()
19695 {
19696
19697           bcm_host_init();
19698
19699   ;
19700   return 0;
19701 }
19702 _ACEOF
19703 if ac_fn_c_try_link "$LINENO"; then :
19704
19705         have_video_rpi=yes
19706
19707 fi
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; }
19712
19713         # Restore the compiler flags and libraries
19714         CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
19715
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"
19722
19723 $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
19724
19725             SUMMARY_video="${SUMMARY_video} rpi"
19726         fi
19727     fi
19728 }
19729
19730 CheckX11()
19731 {
19732     # Check whether --enable-video-x11 was given.
19733 if test "${enable_video_x11+set}" = set; then :
19734   enableval=$enable_video_x11;
19735 else
19736   enable_video_x11=yes
19737 fi
19738
19739     if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
19740         case "$host" in
19741             *-*-darwin*)
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"
19749                 fi
19750                 ;;
19751         esac
19752         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19753 $as_echo_n "checking for X... " >&6; }
19754
19755
19756 # Check whether --with-x was given.
19757 if test "${with_x+set}" = set; then :
19758   withval=$with_x;
19759 fi
19760
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.
19764   have_x=disabled
19765 else
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
19770 else
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
19775   cd conftest.dir
19776   cat >Imakefile <<'_ACEOF'
19777 incroot:
19778         @echo incroot='${INCROOT}'
19779 usrlibdir:
19780         @echo usrlibdir='${USRLIBDIR}'
19781 libdir:
19782         @echo libdir='${LIBDIR}'
19783 _ACEOF
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'\`"
19788     done
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
19794       fi
19795     done
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;;
19802     esac
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 ;;
19806     esac
19807   fi
19808   cd ..
19809   rm -f -r conftest.dir
19810 fi
19811
19812 # Standard set of common directories for X headers.
19813 # Check X11 before X11Rn because it is often a symlink to the current release.
19814 ac_x_header_dirs='
19815 /usr/X11/include
19816 /usr/X11R7/include
19817 /usr/X11R6/include
19818 /usr/X11R5/include
19819 /usr/X11R4/include
19820
19821 /usr/include/X11
19822 /usr/include/X11R7
19823 /usr/include/X11R6
19824 /usr/include/X11R5
19825 /usr/include/X11R4
19826
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
19832
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
19838
19839 /usr/X386/include
19840 /usr/x386/include
19841 /usr/XFree86/include/X11
19842
19843 /usr/include
19844 /usr/local/include
19845 /usr/unsupported/include
19846 /usr/athena/include
19847 /usr/local/x11r5/include
19848 /usr/lpp/Xamples/include
19849
19850 /usr/openwin/include
19851 /usr/openwin/share/include'
19852
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>
19859 _ACEOF
19860 if ac_fn_c_try_cpp "$LINENO"; then :
19861   # We can compile using X headers with no special include directory.
19862 ac_x_includes=
19863 else
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
19867     break
19868   fi
19869 done
19870 fi
19871 rm -f conftest.err conftest.i conftest.$ac_ext
19872 fi # $ac_x_includes = no
19873
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.
19878   ac_save_LIBS=$LIBS
19879   LIBS="-lX11 $LIBS"
19880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19881 /* end confdefs.h.  */
19882 #include <X11/Xlib.h>
19883 int
19884 main ()
19885 {
19886 XrmInitialize ()
19887   ;
19888   return 0;
19889 }
19890 _ACEOF
19891 if ac_fn_c_try_link "$LINENO"; then :
19892   LIBS=$ac_save_LIBS
19893 # We can link X programs with no special library path.
19894 ac_x_libraries=
19895 else
19896   LIBS=$ac_save_LIBS
19897 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19898 do
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
19903       break 2
19904     fi
19905   done
19906 done
19907 fi
19908 rm -f core conftest.err conftest.$ac_objext \
19909     conftest$ac_exeext conftest.$ac_ext
19910 fi # $ac_x_libraries = no
19911
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";; #(
19916   *)
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'"
19921 esac
19922 fi
19923 ;; #(
19924     *) have_x=yes;;
19925   esac
19926   eval "$ac_cv_have_x"
19927 fi # $with_x != no
19928
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; }
19932   no_x=yes
19933 else
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; }
19943 fi
19944
19945         if test "$no_x" = yes; then
19946   # Not all programs may use this symbol, but it does not hurt to define it.
19947
19948 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19949
19950   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19951 else
19952   if test -n "$x_includes"; then
19953     X_CFLAGS="$X_CFLAGS -I$x_includes"
19954   fi
19955
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.  */
19968
19969 int
19970 main ()
19971 {
19972
19973   ;
19974   return 0;
19975 }
19976 _ACEOF
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"
19981 else
19982   LIBS="$ac_xsave_LIBS -R $x_libraries"
19983        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19984 /* end confdefs.h.  */
19985
19986 int
19987 main ()
19988 {
19989
19990   ;
19991   return 0;
19992 }
19993 _ACEOF
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"
19998 else
19999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20000 $as_echo "neither works" >&6; }
20001 fi
20002 rm -f core conftest.err conftest.$ac_objext \
20003     conftest$ac_exeext conftest.$ac_ext
20004 fi
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
20009   fi
20010
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.
20014
20015   if test "$ISC" = yes; then
20016     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20017   else
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.  */
20024
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.  */
20028 #ifdef __cplusplus
20029 extern "C"
20030 #endif
20031 char XOpenDisplay ();
20032 int
20033 main ()
20034 {
20035 return XOpenDisplay ();
20036   ;
20037   return 0;
20038 }
20039 _ACEOF
20040 if ac_fn_c_try_link "$LINENO"; then :
20041
20042 else
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
20047 else
20048   ac_check_lib_save_LIBS=$LIBS
20049 LIBS="-ldnet  $LIBS"
20050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20051 /* end confdefs.h.  */
20052
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.  */
20056 #ifdef __cplusplus
20057 extern "C"
20058 #endif
20059 char dnet_ntoa ();
20060 int
20061 main ()
20062 {
20063 return dnet_ntoa ();
20064   ;
20065   return 0;
20066 }
20067 _ACEOF
20068 if ac_fn_c_try_link "$LINENO"; then :
20069   ac_cv_lib_dnet_dnet_ntoa=yes
20070 else
20071   ac_cv_lib_dnet_dnet_ntoa=no
20072 fi
20073 rm -f core conftest.err conftest.$ac_objext \
20074     conftest$ac_exeext conftest.$ac_ext
20075 LIBS=$ac_check_lib_save_LIBS
20076 fi
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"
20081 fi
20082
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
20088 else
20089   ac_check_lib_save_LIBS=$LIBS
20090 LIBS="-ldnet_stub  $LIBS"
20091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20092 /* end confdefs.h.  */
20093
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.  */
20097 #ifdef __cplusplus
20098 extern "C"
20099 #endif
20100 char dnet_ntoa ();
20101 int
20102 main ()
20103 {
20104 return dnet_ntoa ();
20105   ;
20106   return 0;
20107 }
20108 _ACEOF
20109 if ac_fn_c_try_link "$LINENO"; then :
20110   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20111 else
20112   ac_cv_lib_dnet_stub_dnet_ntoa=no
20113 fi
20114 rm -f core conftest.err conftest.$ac_objext \
20115     conftest$ac_exeext conftest.$ac_ext
20116 LIBS=$ac_check_lib_save_LIBS
20117 fi
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"
20122 fi
20123
20124     fi
20125 fi
20126 rm -f core conftest.err conftest.$ac_objext \
20127     conftest$ac_exeext conftest.$ac_ext
20128     LIBS="$ac_xsave_LIBS"
20129
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)
20133     # needs -lnsl.
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 :
20140
20141 fi
20142
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
20148 else
20149   ac_check_lib_save_LIBS=$LIBS
20150 LIBS="-lnsl  $LIBS"
20151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20152 /* end confdefs.h.  */
20153
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.  */
20157 #ifdef __cplusplus
20158 extern "C"
20159 #endif
20160 char gethostbyname ();
20161 int
20162 main ()
20163 {
20164 return gethostbyname ();
20165   ;
20166   return 0;
20167 }
20168 _ACEOF
20169 if ac_fn_c_try_link "$LINENO"; then :
20170   ac_cv_lib_nsl_gethostbyname=yes
20171 else
20172   ac_cv_lib_nsl_gethostbyname=no
20173 fi
20174 rm -f core conftest.err conftest.$ac_objext \
20175     conftest$ac_exeext conftest.$ac_ext
20176 LIBS=$ac_check_lib_save_LIBS
20177 fi
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"
20182 fi
20183
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
20189 else
20190   ac_check_lib_save_LIBS=$LIBS
20191 LIBS="-lbsd  $LIBS"
20192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20193 /* end confdefs.h.  */
20194
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.  */
20198 #ifdef __cplusplus
20199 extern "C"
20200 #endif
20201 char gethostbyname ();
20202 int
20203 main ()
20204 {
20205 return gethostbyname ();
20206   ;
20207   return 0;
20208 }
20209 _ACEOF
20210 if ac_fn_c_try_link "$LINENO"; then :
20211   ac_cv_lib_bsd_gethostbyname=yes
20212 else
20213   ac_cv_lib_bsd_gethostbyname=no
20214 fi
20215 rm -f core conftest.err conftest.$ac_objext \
20216     conftest$ac_exeext conftest.$ac_ext
20217 LIBS=$ac_check_lib_save_LIBS
20218 fi
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"
20223 fi
20224
20225       fi
20226     fi
20227
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 :
20237
20238 fi
20239
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
20245 else
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.  */
20250
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.  */
20254 #ifdef __cplusplus
20255 extern "C"
20256 #endif
20257 char connect ();
20258 int
20259 main ()
20260 {
20261 return connect ();
20262   ;
20263   return 0;
20264 }
20265 _ACEOF
20266 if ac_fn_c_try_link "$LINENO"; then :
20267   ac_cv_lib_socket_connect=yes
20268 else
20269   ac_cv_lib_socket_connect=no
20270 fi
20271 rm -f core conftest.err conftest.$ac_objext \
20272     conftest$ac_exeext conftest.$ac_ext
20273 LIBS=$ac_check_lib_save_LIBS
20274 fi
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"
20279 fi
20280
20281     fi
20282
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 :
20286
20287 fi
20288
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
20294 else
20295   ac_check_lib_save_LIBS=$LIBS
20296 LIBS="-lposix  $LIBS"
20297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20298 /* end confdefs.h.  */
20299
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.  */
20303 #ifdef __cplusplus
20304 extern "C"
20305 #endif
20306 char remove ();
20307 int
20308 main ()
20309 {
20310 return remove ();
20311   ;
20312   return 0;
20313 }
20314 _ACEOF
20315 if ac_fn_c_try_link "$LINENO"; then :
20316   ac_cv_lib_posix_remove=yes
20317 else
20318   ac_cv_lib_posix_remove=no
20319 fi
20320 rm -f core conftest.err conftest.$ac_objext \
20321     conftest$ac_exeext conftest.$ac_ext
20322 LIBS=$ac_check_lib_save_LIBS
20323 fi
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"
20328 fi
20329
20330     fi
20331
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 :
20335
20336 fi
20337
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
20343 else
20344   ac_check_lib_save_LIBS=$LIBS
20345 LIBS="-lipc  $LIBS"
20346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20347 /* end confdefs.h.  */
20348
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.  */
20352 #ifdef __cplusplus
20353 extern "C"
20354 #endif
20355 char shmat ();
20356 int
20357 main ()
20358 {
20359 return shmat ();
20360   ;
20361   return 0;
20362 }
20363 _ACEOF
20364 if ac_fn_c_try_link "$LINENO"; then :
20365   ac_cv_lib_ipc_shmat=yes
20366 else
20367   ac_cv_lib_ipc_shmat=no
20368 fi
20369 rm -f core conftest.err conftest.$ac_objext \
20370     conftest$ac_exeext conftest.$ac_ext
20371 LIBS=$ac_check_lib_save_LIBS
20372 fi
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"
20377 fi
20378
20379     fi
20380   fi
20381
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
20395 else
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.  */
20400
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.  */
20404 #ifdef __cplusplus
20405 extern "C"
20406 #endif
20407 char IceConnectionNumber ();
20408 int
20409 main ()
20410 {
20411 return IceConnectionNumber ();
20412   ;
20413   return 0;
20414 }
20415 _ACEOF
20416 if ac_fn_c_try_link "$LINENO"; then :
20417   ac_cv_lib_ICE_IceConnectionNumber=yes
20418 else
20419   ac_cv_lib_ICE_IceConnectionNumber=no
20420 fi
20421 rm -f core conftest.err conftest.$ac_objext \
20422     conftest$ac_exeext conftest.$ac_ext
20423 LIBS=$ac_check_lib_save_LIBS
20424 fi
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"
20429 fi
20430
20431   LDFLAGS=$ac_save_LDFLAGS
20432
20433 fi
20434
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;
20439 else
20440   enable_x11_shared=maybe
20441 fi
20442
20443
20444             case "$host" in
20445                 *-*-darwin*)
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'
20455                     ;;
20456                 *-*-openbsd*)
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'
20466                     ;;
20467                 *)
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'`
20477                     ;;
20478             esac
20479
20480             if test x$ac_cv_func_shmat != xyes; then
20481                 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
20482             fi
20483             CFLAGS="$CFLAGS $X_CFLAGS"
20484             LDFLAGS="$LDFLAGS $X_LIBS"
20485
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>
20488
20489 "
20490 if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
20491   have_xext_h_hdr=yes
20492 else
20493   have_xext_h_hdr=no
20494 fi
20495
20496
20497             if test x$have_xext_h_hdr != xyes; then
20498                as_fn_error $? "
20499 *** Missing Xext.h, maybe you need to install the libxext-dev package?
20500                " "$LINENO" 5
20501             fi
20502
20503
20504 $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
20505
20506             SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
20507             EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
20508
20509             # Needed so SDL applications can include SDL_syswm.h
20510             SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
20511
20512             if test x$enable_x11_shared = xmaybe; then
20513                 enable_x11_shared=yes
20514             fi
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
20520             fi
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"
20525
20526 cat >>confdefs.h <<_ACEOF
20527 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
20528 _ACEOF
20529
20530
20531 cat >>confdefs.h <<_ACEOF
20532 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
20533 _ACEOF
20534
20535                 SUMMARY_video="${SUMMARY_video} x11(dynamic)"
20536             else
20537                 enable_x11_shared=no
20538                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
20539                 SUMMARY_video="${SUMMARY_video} x11"
20540             fi
20541             have_video=yes
20542
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.  */
20548
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);
20554
20555 int
20556 main ()
20557 {
20558
20559
20560   ;
20561   return 0;
20562 }
20563 _ACEOF
20564 if ac_fn_c_try_compile "$LINENO"; then :
20565
20566             have_const_param_XextAddDisplay=yes
20567
20568 $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
20569
20570
20571 fi
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; }
20575
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.  */
20581
20582                 #include <X11/Xlib.h>
20583
20584 int
20585 main ()
20586 {
20587
20588 Display *display;
20589 XEvent event;
20590 XGenericEventCookie *cookie = &event.xcookie;
20591 XNextEvent(display, &event);
20592 XGetEventData(display, cookie);
20593 XFreeEventData(display, cookie);
20594
20595   ;
20596   return 0;
20597 }
20598 _ACEOF
20599 if ac_fn_c_try_compile "$LINENO"; then :
20600
20601                 have_XGenericEvent=yes
20602
20603 $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
20604
20605
20606 fi
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; }
20610
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
20615 else
20616   ac_check_lib_save_LIBS=$LIBS
20617 LIBS="-lX11  $LIBS"
20618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20619 /* end confdefs.h.  */
20620
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.  */
20624 #ifdef __cplusplus
20625 extern "C"
20626 #endif
20627 char XkbKeycodeToKeysym ();
20628 int
20629 main ()
20630 {
20631 return XkbKeycodeToKeysym ();
20632   ;
20633   return 0;
20634 }
20635 _ACEOF
20636 if ac_fn_c_try_link "$LINENO"; then :
20637   ac_cv_lib_X11_XkbKeycodeToKeysym=yes
20638 else
20639   ac_cv_lib_X11_XkbKeycodeToKeysym=no
20640 fi
20641 rm -f core conftest.err conftest.$ac_objext \
20642     conftest$ac_exeext conftest.$ac_ext
20643 LIBS=$ac_check_lib_save_LIBS
20644 fi
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 :
20648
20649 $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
20650
20651 fi
20652
20653
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;
20657 else
20658   enable_video_x11_xcursor=yes
20659 fi
20660
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>
20664
20665 "
20666 if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
20667   have_xcursor_h_hdr=yes
20668 else
20669   have_xcursor_h_hdr=no
20670 fi
20671
20672
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"
20676
20677 cat >>confdefs.h <<_ACEOF
20678 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
20679 _ACEOF
20680
20681                         definitely_enable_video_x11_xcursor=yes
20682                     else
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
20687 else
20688   ac_check_lib_save_LIBS=$LIBS
20689 LIBS="-lXcursor  $LIBS"
20690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20691 /* end confdefs.h.  */
20692
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.  */
20696 #ifdef __cplusplus
20697 extern "C"
20698 #endif
20699 char XcursorImageCreate ();
20700 int
20701 main ()
20702 {
20703 return XcursorImageCreate ();
20704   ;
20705   return 0;
20706 }
20707 _ACEOF
20708 if ac_fn_c_try_link "$LINENO"; then :
20709   ac_cv_lib_Xcursor_XcursorImageCreate=yes
20710 else
20711   ac_cv_lib_Xcursor_XcursorImageCreate=no
20712 fi
20713 rm -f core conftest.err conftest.$ac_objext \
20714     conftest$ac_exeext conftest.$ac_ext
20715 LIBS=$ac_check_lib_save_LIBS
20716 fi
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
20721 fi
20722
20723                         if test x$have_xcursor_lib = xyes ; then
20724                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
20725                             definitely_enable_video_x11_xcursor=yes
20726                         fi
20727                     fi
20728                 fi
20729             fi
20730             if test x$definitely_enable_video_x11_xcursor = xyes; then
20731
20732 $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
20733
20734                 SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
20735             fi
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;
20739 else
20740   enable_video_x11_xdbe=yes
20741 fi
20742
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>
20745
20746 "
20747 if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
20748   have_dbe_h_hdr=yes
20749 else
20750   have_dbe_h_hdr=no
20751 fi
20752
20753
20754                 if test x$have_dbe_h_hdr = xyes; then
20755
20756 $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
20757
20758                     SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
20759                 fi
20760             fi
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;
20764 else
20765   enable_video_x11_xinerama=yes
20766 fi
20767
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>
20771
20772 "
20773 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
20774   have_xinerama_h_hdr=yes
20775 else
20776   have_xinerama_h_hdr=no
20777 fi
20778
20779
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"
20783
20784 cat >>confdefs.h <<_ACEOF
20785 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
20786 _ACEOF
20787
20788                         definitely_enable_video_x11_xinerama=yes
20789                     else
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
20794 else
20795   ac_check_lib_save_LIBS=$LIBS
20796 LIBS="-lXinerama  $LIBS"
20797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798 /* end confdefs.h.  */
20799
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.  */
20803 #ifdef __cplusplus
20804 extern "C"
20805 #endif
20806 char XineramaQueryExtension ();
20807 int
20808 main ()
20809 {
20810 return XineramaQueryExtension ();
20811   ;
20812   return 0;
20813 }
20814 _ACEOF
20815 if ac_fn_c_try_link "$LINENO"; then :
20816   ac_cv_lib_Xinerama_XineramaQueryExtension=yes
20817 else
20818   ac_cv_lib_Xinerama_XineramaQueryExtension=no
20819 fi
20820 rm -f core conftest.err conftest.$ac_objext \
20821     conftest$ac_exeext conftest.$ac_ext
20822 LIBS=$ac_check_lib_save_LIBS
20823 fi
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
20828 fi
20829
20830                         if test x$have_xinerama_lib = xyes ; then
20831                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
20832                             definitely_enable_video_x11_xinerama=yes
20833                         fi
20834                     fi
20835                 fi
20836             fi
20837             if test x$definitely_enable_video_x11_xinerama = xyes; then
20838
20839 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
20840
20841                 SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
20842             fi
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;
20846 else
20847   enable_video_x11_xinput=yes
20848 fi
20849
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>
20853
20854 "
20855 if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
20856   have_xinput_h_hdr=yes
20857 else
20858   have_xinput_h_hdr=no
20859 fi
20860
20861
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"
20865
20866 cat >>confdefs.h <<_ACEOF
20867 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
20868 _ACEOF
20869
20870                         definitely_enable_video_x11_xinput=yes
20871                     else
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
20876 else
20877   ac_check_lib_save_LIBS=$LIBS
20878 LIBS="-lXi  $LIBS"
20879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880 /* end confdefs.h.  */
20881
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.  */
20885 #ifdef __cplusplus
20886 extern "C"
20887 #endif
20888 char XOpenDevice ();
20889 int
20890 main ()
20891 {
20892 return XOpenDevice ();
20893   ;
20894   return 0;
20895 }
20896 _ACEOF
20897 if ac_fn_c_try_link "$LINENO"; then :
20898   ac_cv_lib_Xi_XOpenDevice=yes
20899 else
20900   ac_cv_lib_Xi_XOpenDevice=no
20901 fi
20902 rm -f core conftest.err conftest.$ac_objext \
20903     conftest$ac_exeext conftest.$ac_ext
20904 LIBS=$ac_check_lib_save_LIBS
20905 fi
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
20910 fi
20911
20912                         if test x$have_xinput_lib = xyes ; then
20913                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
20914                             definitely_enable_video_x11_xinput=yes
20915                         fi
20916                     fi
20917                 fi
20918             fi
20919             if test x$definitely_enable_video_x11_xinput = xyes; then
20920                 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
20921
20922 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
20923
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.  */
20929
20930                         #include <X11/Xlib.h>
20931                         #include <X11/Xproto.h>
20932                         #include <X11/extensions/XInput2.h>
20933
20934 int
20935 main ()
20936 {
20937
20938 int event_type = XI_TouchBegin;
20939 XITouchClassInfo *t;
20940
20941   ;
20942   return 0;
20943 }
20944 _ACEOF
20945 if ac_fn_c_try_compile "$LINENO"; then :
20946
20947                 have_xinput2_multitouch=yes
20948                 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
20949
20950                 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
20951
20952 fi
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; }
20956             fi
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;
20960 else
20961   enable_video_x11_xrandr=yes
20962 fi
20963
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.  */
20969
20970                 #include <X11/Xlib.h>
20971                 #include <X11/extensions/Xrandr.h>
20972
20973 int
20974 main ()
20975 {
20976
20977                 XRRScreenResources *res = NULL;
20978
20979   ;
20980   return 0;
20981 }
20982 _ACEOF
20983 if ac_fn_c_try_compile "$LINENO"; then :
20984
20985                 have_xrandr_h_hdr=yes
20986
20987 fi
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"
20992
20993 cat >>confdefs.h <<_ACEOF
20994 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
20995 _ACEOF
20996
20997                         definitely_enable_video_x11_xrandr=yes
20998                     else
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
21003 else
21004   ac_check_lib_save_LIBS=$LIBS
21005 LIBS="-lXrandr  $LIBS"
21006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21007 /* end confdefs.h.  */
21008
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.  */
21012 #ifdef __cplusplus
21013 extern "C"
21014 #endif
21015 char XRRQueryExtension ();
21016 int
21017 main ()
21018 {
21019 return XRRQueryExtension ();
21020   ;
21021   return 0;
21022 }
21023 _ACEOF
21024 if ac_fn_c_try_link "$LINENO"; then :
21025   ac_cv_lib_Xrandr_XRRQueryExtension=yes
21026 else
21027   ac_cv_lib_Xrandr_XRRQueryExtension=no
21028 fi
21029 rm -f core conftest.err conftest.$ac_objext \
21030     conftest$ac_exeext conftest.$ac_ext
21031 LIBS=$ac_check_lib_save_LIBS
21032 fi
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
21037 fi
21038
21039                         if test x$have_xrandr_lib = xyes ; then
21040                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
21041                             definitely_enable_video_x11_xrandr=yes
21042                         fi
21043                     fi
21044                 fi
21045             fi
21046             if test x$definitely_enable_video_x11_xrandr = xyes; then
21047
21048 $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
21049
21050                 SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
21051             fi
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;
21055 else
21056   enable_video_x11_scrnsaver=yes
21057 fi
21058
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>
21061
21062 "
21063 if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
21064   have_scrnsaver_h_hdr=yes
21065 else
21066   have_scrnsaver_h_hdr=no
21067 fi
21068
21069
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"
21073
21074 cat >>confdefs.h <<_ACEOF
21075 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
21076 _ACEOF
21077
21078                         definitely_enable_video_x11_scrnsaver=yes
21079                     else
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
21084 else
21085   ac_check_lib_save_LIBS=$LIBS
21086 LIBS="-lXss  $LIBS"
21087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21088 /* end confdefs.h.  */
21089
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.  */
21093 #ifdef __cplusplus
21094 extern "C"
21095 #endif
21096 char XScreenSaverSuspend ();
21097 int
21098 main ()
21099 {
21100 return XScreenSaverSuspend ();
21101   ;
21102   return 0;
21103 }
21104 _ACEOF
21105 if ac_fn_c_try_link "$LINENO"; then :
21106   ac_cv_lib_Xss_XScreenSaverSuspend=yes
21107 else
21108   ac_cv_lib_Xss_XScreenSaverSuspend=no
21109 fi
21110 rm -f core conftest.err conftest.$ac_objext \
21111     conftest$ac_exeext conftest.$ac_ext
21112 LIBS=$ac_check_lib_save_LIBS
21113 fi
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 :
21117   have_xss_lib=yes
21118 fi
21119
21120                         if test x$have_xss_lib = xyes ; then
21121                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
21122                             definitely_enable_video_x11_scrnsaver=yes
21123                         fi
21124                     fi
21125                 fi
21126             fi
21127             if test x$definitely_enable_video_x11_scrnsaver = xyes; then
21128
21129 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
21130
21131                 SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
21132             fi
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;
21136 else
21137   enable_video_x11_xshape=yes
21138 fi
21139
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>
21142
21143 "
21144 if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
21145   have_shape_h_hdr=yes
21146 else
21147   have_shape_h_hdr=no
21148 fi
21149
21150
21151                 if test x$have_shape_h_hdr = xyes; then
21152
21153 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
21154
21155                     SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
21156                 fi
21157             fi
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;
21161 else
21162   enable_video_x11_vm=yes
21163 fi
21164
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>
21168
21169 "
21170 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
21171   have_vm_h_hdr=yes
21172 else
21173   have_vm_h_hdr=no
21174 fi
21175
21176
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"
21180
21181 cat >>confdefs.h <<_ACEOF
21182 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
21183 _ACEOF
21184
21185                         definitely_enable_video_x11_vm=yes
21186                     else
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
21191 else
21192   ac_check_lib_save_LIBS=$LIBS
21193 LIBS="-lXxf86vm  $LIBS"
21194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21195 /* end confdefs.h.  */
21196
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.  */
21200 #ifdef __cplusplus
21201 extern "C"
21202 #endif
21203 char XF86VidModeQueryVersion ();
21204 int
21205 main ()
21206 {
21207 return XF86VidModeQueryVersion ();
21208   ;
21209   return 0;
21210 }
21211 _ACEOF
21212 if ac_fn_c_try_link "$LINENO"; then :
21213   ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
21214 else
21215   ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
21216 fi
21217 rm -f core conftest.err conftest.$ac_objext \
21218     conftest$ac_exeext conftest.$ac_ext
21219 LIBS=$ac_check_lib_save_LIBS
21220 fi
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 :
21224   have_vm_lib=yes
21225 fi
21226
21227                         if test x$have_vm_lib = xyes ; then
21228                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
21229                             definitely_enable_video_x11_vm=yes
21230                         fi
21231                     fi
21232                 fi
21233             fi
21234             if test x$definitely_enable_video_x11_vm = xyes; then
21235
21236 $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
21237
21238                 SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
21239             fi
21240         fi
21241     fi
21242 }
21243
21244 CheckVivanteVideo()
21245 {
21246     # Check whether --enable-video-vivante was given.
21247 if test "${enable_video_vivante+set}" = set; then :
21248   enableval=$enable_video_vivante;
21249 else
21250   enable_video_vivante=yes
21251 fi
21252
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.  */
21259
21260           #define LINUX
21261           #define EGL_API_FB
21262           #include <gc_vdk.h>
21263
21264 int
21265 main ()
21266 {
21267
21268
21269   ;
21270   return 0;
21271 }
21272 _ACEOF
21273 if ac_fn_c_try_compile "$LINENO"; then :
21274
21275         have_vivante_vdk=yes
21276
21277 fi
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; }
21281
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.  */
21287
21288           #define LINUX
21289           #define EGL_API_FB
21290           #include <EGL/eglvivante.h>
21291
21292 int
21293 main ()
21294 {
21295
21296
21297   ;
21298   return 0;
21299 }
21300 _ACEOF
21301 if ac_fn_c_try_compile "$LINENO"; then :
21302
21303         have_vivante_egl=yes
21304
21305 fi
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; }
21309
21310         if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
21311
21312 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
21313
21314             EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
21315             if test x$have_vivante_vdk = xyes; then
21316
21317 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
21318
21319                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
21320             fi
21321             SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
21322             SUMMARY_video="${SUMMARY_video} vivante"
21323             have_video=yes
21324         fi
21325     fi
21326 }
21327
21328 CheckHaikuVideo()
21329 {
21330     if test x$enable_video = xyes; then
21331
21332 $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
21333
21334         SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
21335         have_video=yes
21336         SUMMARY_video="${SUMMARY_video} haiku"
21337     fi
21338 }
21339
21340 CheckCOCOA()
21341 {
21342     # Check whether --enable-video-cocoa was given.
21343 if test "${enable_video_cocoa+set}" = set; then :
21344   enableval=$enable_video_cocoa;
21345 else
21346   enable_video_cocoa=yes
21347 fi
21348
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; }
21354         have_cocoa=no
21355         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21356 /* end confdefs.h.  */
21357
21358           #import <Cocoa/Cocoa.h>
21359
21360 int
21361 main ()
21362 {
21363
21364
21365   ;
21366   return 0;
21367 }
21368 _ACEOF
21369 if ac_fn_c_try_compile "$LINENO"; then :
21370
21371         have_cocoa=yes
21372
21373 fi
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
21379
21380 $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
21381
21382             SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
21383             SUMMARY_video="${SUMMARY_video} cocoa"
21384             have_video=yes
21385         fi
21386     fi
21387 }
21388
21389 CheckMETAL()
21390 {
21391     # Check whether --enable-render-metal was given.
21392 if test "${enable_render_metal+set}" = set; then :
21393   enableval=$enable_render_metal;
21394 else
21395   enable_render_metal=yes
21396 fi
21397
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; }
21403         have_metal=no
21404         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21405 /* end confdefs.h.  */
21406
21407           #import <Cocoa/Cocoa.h>
21408           #import <Metal/Metal.h>
21409           #import <QuartzCore/CAMetalLayer.h>
21410
21411           #if !TARGET_CPU_X86_64
21412           #error Metal doesn't work on this configuration
21413           #endif
21414
21415 int
21416 main ()
21417 {
21418
21419
21420   ;
21421   return 0;
21422 }
21423 _ACEOF
21424 if ac_fn_c_try_compile "$LINENO"; then :
21425
21426         have_metal=yes
21427
21428 fi
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
21434
21435 $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
21436
21437             SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
21438             SUMMARY_video="${SUMMARY_video} metal"
21439         else
21440             enable_render_metal=no
21441         fi
21442     fi
21443 }
21444
21445
21446 CheckDirectFB()
21447 {
21448     # Check whether --enable-video-directfb was given.
21449 if test "${enable_video_directfb+set}" = set; then :
21450   enableval=$enable_video_directfb;
21451 else
21452   enable_video_directfb=no
21453 fi
21454
21455     if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
21456         video_directfb=no
21457
21458         DIRECTFB_REQUIRED_VERSION=1.0.0
21459         for ac_prog in directfb-config
21460 do
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
21467 else
21468   case $DIRECTFBCONFIG in
21469   [\\/]* | ?:[\\/]*)
21470   ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
21471   ;;
21472   *)
21473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21474 as_dummy="$prefix/bin:$PATH"
21475 for as_dir in $as_dummy
21476 do
21477   IFS=$as_save_IFS
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
21483     break 2
21484   fi
21485 done
21486   done
21487 IFS=$as_save_IFS
21488
21489   ;;
21490 esac
21491 fi
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; }
21496 else
21497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21498 $as_echo "no" >&6; }
21499 fi
21500
21501
21502   test -n "$DIRECTFBCONFIG" && break
21503 done
21504 test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
21505
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
21513 else
21514   case $PKG_CONFIG in
21515   [\\/]* | ?:[\\/]*)
21516   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21517   ;;
21518   *)
21519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21520 for as_dir in $PATH
21521 do
21522   IFS=$as_save_IFS
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
21528     break 2
21529   fi
21530 done
21531   done
21532 IFS=$as_save_IFS
21533
21534   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21535   ;;
21536 esac
21537 fi
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; }
21542 else
21543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21544 $as_echo "no" >&6; }
21545 fi
21546
21547
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`
21553                     video_directfb=yes
21554                 fi
21555             fi
21556         else
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`
21565                 video_directfb=yes
21566             fi
21567         fi
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
21575 else
21576   have_directfb_hdr=no
21577 fi
21578
21579
21580             CPPFLAGS="$save_CPPFLAGS"
21581             video_directfb=$have_directfb_hdr
21582         fi
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; }
21587
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;
21592 else
21593   enable_directfb_shared=yes
21594 fi
21595
21596
21597
21598 $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
21599
21600             SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
21601             EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
21602
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; }
21605             directfb_shared=no
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;}
21614             fi
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"
21619
21620 cat >>confdefs.h <<_ACEOF
21621 #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
21622 _ACEOF
21623
21624                 SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
21625             else
21626                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
21627                 SUMMARY_video="${SUMMARY_video} directfb"
21628             fi
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"
21632             have_video=yes
21633         fi
21634     fi
21635 }
21636
21637 CheckKMSDRM()
21638 {
21639     # Check whether --enable-video-kmsdrm was given.
21640 if test "${enable_video_kmsdrm+set}" = set; then :
21641   enableval=$enable_video_kmsdrm;
21642 else
21643   enable_video_kmsdrm=no
21644 fi
21645
21646
21647     if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
21648         video_kmsdrm=no
21649         libdrm_avail=no
21650         libgbm_avail=no
21651
21652         LIBDRM_REQUIRED_VERSION=2.4.46
21653         LIBGBM_REQUIRED_VERSION=9.0.0
21654
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
21661 else
21662   case $PKG_CONFIG in
21663   [\\/]* | ?:[\\/]*)
21664   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21665   ;;
21666   *)
21667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21668 for as_dir in $PATH
21669 do
21670   IFS=$as_save_IFS
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
21676     break 2
21677   fi
21678 done
21679   done
21680 IFS=$as_save_IFS
21681
21682   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21683   ;;
21684 esac
21685 fi
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; }
21690 else
21691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21692 $as_echo "no" >&6; }
21693 fi
21694
21695
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`
21702                     libdrm_avail=yes
21703                 fi
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`
21708                     libgbm_avail=yes
21709                 fi
21710                 if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
21711                     video_kmsdrm=yes
21712                 fi
21713
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; }
21722
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;
21727 else
21728   enable_kmsdrm_shared=yes
21729 fi
21730
21731
21732
21733 $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
21734
21735                     SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
21736                     EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
21737
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; }
21740                     kmsdrm_shared=no
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;}
21747                     fi
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
21750                         kmsdrm_shared=yes
21751
21752 cat >>confdefs.h <<_ACEOF
21753 #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
21754 _ACEOF
21755
21756
21757 cat >>confdefs.h <<_ACEOF
21758 #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
21759 _ACEOF
21760
21761
21762 cat >>confdefs.h <<_ACEOF
21763 #define HAVE_KMSDRM_SHARED "TRUE"
21764 _ACEOF
21765
21766                         SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
21767                     else
21768                         EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
21769                         SUMMARY_video="${SUMMARY_video} kmsdrm"
21770                     fi
21771                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
21772 $as_echo "$kmsdrm_shared" >&6; }
21773                     have_video=yes
21774                 fi
21775             fi
21776         fi
21777     fi
21778 }
21779
21780 CheckDummyVideo()
21781 {
21782     # Check whether --enable-video-dummy was given.
21783 if test "${enable_video_dummy+set}" = set; then :
21784   enableval=$enable_video_dummy;
21785 else
21786   enable_video_dummy=yes
21787 fi
21788
21789     if test x$enable_video_dummy = xyes; then
21790
21791 $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
21792
21793         SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
21794         have_video=yes
21795         SUMMARY_video="${SUMMARY_video} dummy"
21796     fi
21797 }
21798
21799 CheckQNXVideo()
21800 {
21801     if test x$enable_video = xyes; then
21802
21803 $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
21804
21805         SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
21806         have_video=yes
21807         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
21808         SUMMARY_video="${SUMMARY_video} qnx"
21809     fi
21810 }
21811
21812 CheckQNXAudio()
21813 {
21814     if test x$enable_audio = xyes; then
21815
21816 $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
21817
21818         SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
21819         have_audio=yes
21820         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
21821         SUMMARY_audio="${SUMMARY_audio} qsa"
21822     fi
21823 }
21824
21825 # Check whether --enable-video-opengl was given.
21826 if test "${enable_video_opengl+set}" = set; then :
21827   enableval=$enable_video_opengl;
21828 else
21829   enable_video_opengl=yes
21830 fi
21831
21832
21833 CheckOpenGLX11()
21834 {
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; }
21838         video_opengl=no
21839         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21840 /* end confdefs.h.  */
21841
21842          #include <GL/gl.h>
21843          #include <GL/glx.h>
21844
21845 int
21846 main ()
21847 {
21848
21849
21850   ;
21851   return 0;
21852 }
21853 _ACEOF
21854 if ac_fn_c_try_compile "$LINENO"; then :
21855
21856         video_opengl=yes
21857
21858 fi
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
21863
21864 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21865
21866
21867 $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
21868
21869
21870 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21871
21872             SUMMARY_video="${SUMMARY_video} opengl"
21873         fi
21874     fi
21875 }
21876
21877 # Check whether --enable-video-opengles was given.
21878 if test "${enable_video_opengles+set}" = set; then :
21879   enableval=$enable_video_opengles;
21880 else
21881   enable_video_opengles=yes
21882 fi
21883
21884 # Check whether --enable-video-opengles1 was given.
21885 if test "${enable_video_opengles1+set}" = set; then :
21886   enableval=$enable_video_opengles1;
21887 else
21888   enable_video_opengles1=yes
21889 fi
21890
21891 # Check whether --enable-video-opengles2 was given.
21892 if test "${enable_video_opengles2+set}" = set; then :
21893   enableval=$enable_video_opengles2;
21894 else
21895   enable_video_opengles2=yes
21896 fi
21897
21898
21899
21900
21901 CheckOpenGLESX11()
21902 {
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.  */
21909
21910           #define LINUX
21911           #define EGL_API_FB
21912           #include <EGL/egl.h>
21913           #include <EGL/eglext.h>
21914
21915 int
21916 main ()
21917 {
21918
21919
21920   ;
21921   return 0;
21922 }
21923 _ACEOF
21924 if ac_fn_c_try_compile "$LINENO"; then :
21925
21926         video_opengl_egl=yes
21927
21928 fi
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
21933
21934 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
21935
21936         fi
21937
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.  */
21944
21945              #include <GLES/gl.h>
21946              #include <GLES/glext.h>
21947
21948 int
21949 main ()
21950 {
21951
21952
21953   ;
21954   return 0;
21955 }
21956 _ACEOF
21957 if ac_fn_c_try_compile "$LINENO"; then :
21958
21959             video_opengles_v1=yes
21960
21961 fi
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
21966
21967 $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
21968
21969
21970 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
21971
21972                 SUMMARY_video="${SUMMARY_video} opengl_es1"
21973             fi
21974         fi
21975
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.  */
21982
21983              #include <GLES2/gl2.h>
21984              #include <GLES2/gl2ext.h>
21985
21986 int
21987 main ()
21988 {
21989
21990
21991   ;
21992   return 0;
21993 }
21994 _ACEOF
21995 if ac_fn_c_try_compile "$LINENO"; then :
21996
21997             video_opengles_v2=yes
21998
21999 fi
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
22004
22005 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
22006
22007
22008 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
22009
22010                 SUMMARY_video="${SUMMARY_video} opengl_es2"
22011             fi
22012         fi
22013     fi
22014 }
22015
22016 CheckWINDOWSGL()
22017 {
22018     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
22019
22020 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22021
22022
22023 $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
22024
22025
22026 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
22027
22028         SUMMARY_video="${SUMMARY_video} opengl"
22029     fi
22030 }
22031
22032 CheckWINDOWSGLES()
22033 {
22034     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
22035
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.  */
22041
22042          #include <EGL/egl.h>
22043
22044 int
22045 main ()
22046 {
22047
22048
22049   ;
22050   return 0;
22051 }
22052 _ACEOF
22053 if ac_fn_c_try_compile "$LINENO"; then :
22054
22055         video_opengl_egl=yes
22056
22057 fi
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
22062
22063 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22064
22065
22066 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
22067
22068             SUMMARY_video="${SUMMARY_video} opengl_es1"
22069         fi
22070
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.  */
22076
22077          #include <GLES2/gl2.h>
22078          #include <GLES2/gl2ext.h>
22079
22080 int
22081 main ()
22082 {
22083
22084
22085   ;
22086   return 0;
22087 }
22088 _ACEOF
22089 if ac_fn_c_try_compile "$LINENO"; then :
22090
22091         video_opengles_v2=yes
22092
22093 fi
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
22098
22099 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22100
22101
22102 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
22103
22104
22105 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
22106
22107             SUMMARY_video="${SUMMARY_video} opengl_es2"
22108         fi
22109     fi
22110 }
22111
22112 CheckHaikuGL()
22113 {
22114     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
22115
22116 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22117
22118
22119 $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
22120
22121
22122 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
22123
22124         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
22125         SUMMARY_video="${SUMMARY_video} opengl"
22126     fi
22127 }
22128
22129 CheckMacGL()
22130 {
22131     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
22132
22133 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22134
22135
22136 $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
22137
22138
22139 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
22140
22141         SUMMARY_video="${SUMMARY_video} opengl"
22142     fi
22143 }
22144
22145 CheckEmscriptenGLES()
22146 {
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.  */
22153
22154          #include <EGL/egl.h>
22155
22156 int
22157 main ()
22158 {
22159
22160
22161   ;
22162   return 0;
22163 }
22164 _ACEOF
22165 if ac_fn_c_try_compile "$LINENO"; then :
22166
22167         video_opengl_egl=yes
22168
22169 fi
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
22174
22175 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
22176
22177         fi
22178
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.  */
22184
22185          #include <GLES2/gl2.h>
22186          #include <GLES2/gl2ext.h>
22187
22188 int
22189 main ()
22190 {
22191
22192
22193   ;
22194   return 0;
22195 }
22196 _ACEOF
22197 if ac_fn_c_try_compile "$LINENO"; then :
22198
22199         video_opengles_v2=yes
22200
22201 fi
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
22206
22207 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
22208
22209
22210 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
22211
22212             SUMMARY_video="${SUMMARY_video} opengl_es2"
22213         fi
22214     fi
22215 }
22216
22217
22218 # Check whether --enable-video-vulkan was given.
22219 if test "${enable_video_vulkan+set}" = set; then :
22220   enableval=$enable_video_vulkan;
22221 else
22222   enable_video_vulkan=yes
22223 fi
22224
22225
22226 CheckVulkan()
22227 {
22228     if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
22229         case "$host" in
22230             *-*-android*)
22231                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22232 /* end confdefs.h.  */
22233
22234                   #if defined(__ARM_ARCH) && __ARM_ARCH < 7
22235                   #error Vulkan doesn't work on this configuration
22236                   #endif
22237
22238 int
22239 main ()
22240 {
22241
22242
22243   ;
22244   return 0;
22245 }
22246 _ACEOF
22247 if ac_fn_c_try_compile "$LINENO"; then :
22248
22249
22250
22251
22252
22253 else
22254
22255                     enable_video_vulkan=no
22256
22257 fi
22258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22259                 ;;
22260             *-*-darwin*)
22261                 save_CFLAGS="$CFLAGS"
22262                                 CFLAGS="$CFLAGS -x objective-c"
22263                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22264 /* end confdefs.h.  */
22265
22266                   #include <Cocoa/Cocoa.h>
22267                   #include <Metal/Metal.h>
22268                   #include <QuartzCore/CAMetalLayer.h>
22269
22270                   #if !TARGET_CPU_X86_64
22271                   #error Vulkan doesn't work on this configuration
22272                   #endif
22273
22274 int
22275 main ()
22276 {
22277
22278
22279   ;
22280   return 0;
22281 }
22282 _ACEOF
22283 if ac_fn_c_try_compile "$LINENO"; then :
22284
22285
22286 else
22287
22288                     enable_video_vulkan=no
22289
22290 fi
22291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292                 CFLAGS="$save_CFLAGS"
22293                 ;;
22294             *)
22295                 ;;
22296         esac
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;}
22302         fi
22303     fi
22304     if test x$enable_video_vulkan = xyes; then
22305
22306 $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
22307
22308         SUMMARY_video="${SUMMARY_video} vulkan"
22309     fi
22310 }
22311
22312 CheckInputEvents()
22313 {
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.  */
22319
22320           #include <linux/input.h>
22321
22322 int
22323 main ()
22324 {
22325
22326           #ifndef EVIOCGNAME
22327           #error EVIOCGNAME() ioctl not available
22328           #endif
22329
22330   ;
22331   return 0;
22332 }
22333 _ACEOF
22334 if ac_fn_c_try_compile "$LINENO"; then :
22335
22336         use_input_events=yes
22337
22338 fi
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
22343
22344 $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
22345
22346             SUMMARY_input="${SUMMARY_input} linuxev"
22347         fi
22348 }
22349
22350 CheckInputKD()
22351 {
22352
22353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
22354 $as_echo_n "checking for Linux kd.h... " >&6; }
22355     use_input_kd=no
22356     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22357 /* end confdefs.h.  */
22358
22359       #include <linux/kd.h>
22360       #include <linux/keyboard.h>
22361
22362 int
22363 main ()
22364 {
22365
22366         struct kbentry kbe;
22367         kbe.kb_table = KG_CTRL;
22368         ioctl(0, KDGKBENT, &kbe);
22369
22370   ;
22371   return 0;
22372 }
22373 _ACEOF
22374 if ac_fn_c_try_compile "$LINENO"; then :
22375
22376     use_input_kd=yes
22377
22378 fi
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
22383
22384 $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
22385
22386         SUMMARY_input="${SUMMARY_input} linuxkd"
22387     fi
22388 }
22389
22390 CheckLibUDev()
22391 {
22392     # Check whether --enable-libudev was given.
22393 if test "${enable_libudev+set}" = set; then :
22394   enableval=$enable_libudev;
22395 else
22396   enable_libudev=yes
22397 fi
22398
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
22403 else
22404   have_libudev_h_hdr=no
22405 fi
22406
22407
22408         if test x$have_libudev_h_hdr = xyes; then
22409
22410 $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
22411
22412
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"
22416
22417 cat >>confdefs.h <<_ACEOF
22418 #define SDL_UDEV_DYNAMIC "$udev_lib"
22419 _ACEOF
22420
22421             fi
22422         fi
22423     fi
22424 }
22425
22426 CheckDBus()
22427 {
22428     # Check whether --enable-dbus was given.
22429 if test "${enable_dbus+set}" = set; then :
22430   enableval=$enable_dbus;
22431 else
22432   enable_dbus=yes
22433 fi
22434
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
22442 else
22443   case $PKG_CONFIG in
22444   [\\/]* | ?:[\\/]*)
22445   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22446   ;;
22447   *)
22448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22449 for as_dir in $PATH
22450 do
22451   IFS=$as_save_IFS
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
22457     break 2
22458   fi
22459 done
22460   done
22461 IFS=$as_save_IFS
22462
22463   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22464   ;;
22465 esac
22466 fi
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; }
22471 else
22472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22473 $as_echo "no" >&6; }
22474 fi
22475
22476
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
22484 else
22485   have_dbus_dbus_h_hdr=no
22486 fi
22487
22488
22489             CFLAGS="$save_CFLAGS"
22490             if test x$have_dbus_dbus_h_hdr = xyes; then
22491
22492 $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
22493
22494                 EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
22495                 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
22496             fi
22497         fi
22498     fi
22499 }
22500
22501 CheckIME()
22502 {
22503     # Check whether --enable-ime was given.
22504 if test "${enable_ime+set}" = set; then :
22505   enableval=$enable_ime;
22506 else
22507   enable_ime=yes
22508 fi
22509
22510     if test x$enable_ime = xyes; then
22511
22512 $as_echo "#define SDL_USE_IME 1" >>confdefs.h
22513
22514             SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
22515     fi
22516 }
22517
22518 CheckIBus()
22519 {
22520     # Check whether --enable-ibus was given.
22521 if test "${enable_ibus+set}" = set; then :
22522   enableval=$enable_ibus;
22523 else
22524   enable_ibus=yes
22525 fi
22526
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
22534 else
22535   case $PKG_CONFIG in
22536   [\\/]* | ?:[\\/]*)
22537   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22538   ;;
22539   *)
22540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22541 for as_dir in $PATH
22542 do
22543   IFS=$as_save_IFS
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
22549     break 2
22550   fi
22551 done
22552   done
22553 IFS=$as_save_IFS
22554
22555   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22556   ;;
22557 esac
22558 fi
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; }
22563 else
22564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22565 $as_echo "no" >&6; }
22566 fi
22567
22568
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
22576 else
22577   have_ibus_ibus_h_hdr=no
22578 fi
22579
22580
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
22584 else
22585   have_inotify_inotify_h_hdr=no
22586 fi
22587
22588
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
22603                 else
22604
22605 $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
22606
22607                     EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
22608                     SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
22609                fi
22610             fi
22611         fi
22612     fi
22613 }
22614
22615 CheckFcitx()
22616 {
22617     # Check whether --enable-fcitx was given.
22618 if test "${enable_fcitx+set}" = set; then :
22619   enableval=$enable_fcitx;
22620 else
22621   enable_fcitx=yes
22622 fi
22623
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
22631 else
22632   case $PKG_CONFIG in
22633   [\\/]* | ?:[\\/]*)
22634   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22635   ;;
22636   *)
22637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22638 for as_dir in $PATH
22639 do
22640   IFS=$as_save_IFS
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
22646     break 2
22647   fi
22648 done
22649   done
22650 IFS=$as_save_IFS
22651
22652   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22653   ;;
22654 esac
22655 fi
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; }
22660 else
22661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22662 $as_echo "no" >&6; }
22663 fi
22664
22665
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
22672 else
22673   have_fcitx_frontend_h_hdr=no
22674 fi
22675
22676
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
22687                 else
22688
22689 $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
22690
22691                     EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
22692                     SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
22693                fi
22694             fi
22695         fi
22696     fi
22697 }
22698
22699 CheckTslib()
22700 {
22701     # Check whether --enable-input-tslib was given.
22702 if test "${enable_input_tslib+set}" = set; then :
22703   enableval=$enable_input_tslib;
22704 else
22705   enable_input_tslib=yes
22706 fi
22707
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.  */
22714
22715           #include "tslib.h"
22716
22717 int
22718 main ()
22719 {
22720
22721
22722   ;
22723   return 0;
22724 }
22725 _ACEOF
22726 if ac_fn_c_try_compile "$LINENO"; then :
22727
22728         enable_input_tslib=yes
22729
22730 fi
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
22735
22736 $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
22737
22738             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
22739             SUMMARY_input="${SUMMARY_input} ts"
22740         fi
22741     fi
22742 }
22743
22744 CheckPTHREAD()
22745 {
22746         # Check whether --enable-pthreads was given.
22747 if test "${enable_pthreads+set}" = set; then :
22748   enableval=$enable_pthreads;
22749 else
22750   enable_pthreads=yes
22751 fi
22752
22753         # Check whether --enable-pthread-sem was given.
22754 if test "${enable_pthread_sem+set}" = set; then :
22755   enableval=$enable_pthread_sem;
22756 else
22757   enable_pthread_sem=yes
22758 fi
22759
22760     case "$host" in
22761          *-*-android*)
22762             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
22763             pthread_lib=""
22764             ;;
22765         *-*-linux*|*-*-uclinux*)
22766             pthread_cflags="-D_REENTRANT"
22767             pthread_lib="-lpthread"
22768             ;;
22769         *-*-bsdi*)
22770             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
22771             pthread_lib=""
22772             ;;
22773         *-*-darwin*)
22774             pthread_cflags="-D_THREAD_SAFE"
22775 # causes Carbon.p complaints?
22776 #            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
22777             ;;
22778         *-*-freebsd*|*-*-dragonfly*)
22779             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
22780             pthread_lib="-pthread"
22781             ;;
22782         *-*-netbsd*)
22783             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
22784             pthread_lib="-lpthread"
22785             ;;
22786         *-*-openbsd*)
22787             pthread_cflags="-D_REENTRANT"
22788             pthread_lib="-pthread"
22789             ;;
22790         *-*-solaris2.9)
22791             # From Solaris 9+, posix4's preferred name is rt.
22792             pthread_cflags="-D_REENTRANT"
22793             pthread_lib="-lpthread -lrt"
22794             ;;
22795         *-*-solaris2.10)
22796             # Solaris 10+ merged pthread into libc.
22797             pthread_cflags="-D_REENTRANT"
22798             pthread_lib="-lrt"
22799             ;;
22800         *-*-solaris*)
22801             # Solaris 11+ merged rt into libc.
22802             pthread_cflags="-D_REENTRANT"
22803             pthread_lib=""
22804             ;;
22805         *-*-sysv5*)
22806             pthread_cflags="-D_REENTRANT -Kthread"
22807             pthread_lib=""
22808             ;;
22809         *-*-aix*)
22810             pthread_cflags="-D_REENTRANT -mthreads"
22811             pthread_lib="-lpthread"
22812             ;;
22813         *-*-hpux11*)
22814             pthread_cflags="-D_REENTRANT"
22815             pthread_lib="-L/usr/lib -lpthread"
22816             ;;
22817         *-*-haiku*)
22818             pthread_cflags="-D_REENTRANT"
22819             pthread_lib=""
22820             ;;
22821         *-*-nto*)
22822             pthread_cflags="-D_REENTRANT"
22823             pthread_lib=""
22824             ;;
22825         *)
22826             pthread_cflags="-D_REENTRANT"
22827             pthread_lib="-lpthread"
22828             ;;
22829     esac
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; }
22838         use_pthreads=no
22839         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22840 /* end confdefs.h.  */
22841
22842          #include <pthread.h>
22843
22844 int
22845 main ()
22846 {
22847
22848          pthread_attr_t type;
22849          pthread_attr_init(&type);
22850
22851   ;
22852   return 0;
22853 }
22854 _ACEOF
22855 if ac_fn_c_try_link "$LINENO"; then :
22856
22857         use_pthreads=yes
22858
22859 fi
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"
22866
22867         # Do futher testing if we have pthread support...
22868         if test x$use_pthreads = xyes; then
22869
22870 $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
22871
22872             EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
22873             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
22874             SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
22875
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"
22880
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.  */
22888
22889                   #define _GNU_SOURCE 1
22890                   #include <pthread.h>
22891
22892 int
22893 main ()
22894 {
22895
22896                   pthread_mutexattr_t attr;
22897                   pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
22898
22899   ;
22900   return 0;
22901 }
22902 _ACEOF
22903 if ac_fn_c_try_link "$LINENO"; then :
22904
22905                 has_recursive_mutexes=yes
22906
22907 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
22908
22909
22910 fi
22911 rm -f core conftest.err conftest.$ac_objext \
22912     conftest$ac_exeext conftest.$ac_ext
22913             fi
22914             if test x$has_recursive_mutexes = xno; then
22915                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22916 /* end confdefs.h.  */
22917
22918                   #define _GNU_SOURCE 1
22919                   #include <pthread.h>
22920
22921 int
22922 main ()
22923 {
22924
22925                   pthread_mutexattr_t attr;
22926                   pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
22927
22928   ;
22929   return 0;
22930 }
22931 _ACEOF
22932 if ac_fn_c_try_link "$LINENO"; then :
22933
22934                 has_recursive_mutexes=yes
22935
22936 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
22937
22938
22939 fi
22940 rm -f core conftest.err conftest.$ac_objext \
22941     conftest$ac_exeext conftest.$ac_ext
22942             fi
22943             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
22944 $as_echo "$has_recursive_mutexes" >&6; }
22945
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.  */
22953
22954                   #include <pthread.h>
22955                   #include <semaphore.h>
22956
22957 int
22958 main ()
22959 {
22960
22961
22962   ;
22963   return 0;
22964 }
22965 _ACEOF
22966 if ac_fn_c_try_compile "$LINENO"; then :
22967
22968                 have_pthread_sem=yes
22969
22970 fi
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; }
22974             fi
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.  */
22981
22982                   #include <pthread.h>
22983                   #include <semaphore.h>
22984
22985 int
22986 main ()
22987 {
22988
22989                   sem_timedwait(NULL, NULL);
22990
22991   ;
22992   return 0;
22993 }
22994 _ACEOF
22995 if ac_fn_c_try_link "$LINENO"; then :
22996
22997                 have_sem_timedwait=yes
22998
22999 $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
23000
23001
23002 fi
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; }
23007             fi
23008
23009             ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
23010 "
23011 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
23012   have_pthread_np_h=yes
23013 else
23014   have_pthread_np_h=no
23015 fi
23016
23017
23018             if test x$have_pthread_np_h = xyes; then
23019
23020 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
23021
23022             fi
23023
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.  */
23029
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.  */
23033 #ifdef __cplusplus
23034 extern "C"
23035 #endif
23036 char pthread_setname_np ();
23037 int
23038 main ()
23039 {
23040 return pthread_setname_np ();
23041   ;
23042   return 0;
23043 }
23044 _ACEOF
23045 if ac_fn_c_try_link "$LINENO"; then :
23046
23047               has_pthread_setname_np=yes
23048
23049 $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
23050
23051
23052 else
23053
23054               has_pthread_setname_np=no
23055
23056 fi
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; }
23061
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.  */
23066
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.  */
23070 #ifdef __cplusplus
23071 extern "C"
23072 #endif
23073 char pthread_set_name_np ();
23074 int
23075 main ()
23076 {
23077 return pthread_set_name_np ();
23078   ;
23079   return 0;
23080 }
23081 _ACEOF
23082 if ac_fn_c_try_link "$LINENO"; then :
23083
23084               has_pthread_set_name_np=yes
23085
23086 $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
23087
23088
23089 else
23090
23091               has_pthread_set_name_np=no
23092
23093 fi
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; }
23098
23099             # Restore the compiler flags and libraries
23100             CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
23101
23102             # Basic thread creation functions
23103             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
23104
23105             # Semaphores
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"
23109             else
23110                 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
23111             fi
23112
23113             # Mutexes
23114             # We can fake these with semaphores if necessary
23115             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
23116
23117             # Condition variables
23118             # We can fake these with semaphores and mutexes if necessary
23119             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
23120
23121             # Thread local storage
23122             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
23123
23124             have_threads=yes
23125         fi
23126     fi
23127 }
23128
23129 CheckWINDOWS()
23130 {
23131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
23132 $as_echo_n "checking Windows compiler... " >&6; }
23133     have_win32_gcc=no
23134     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23135 /* end confdefs.h.  */
23136
23137      #include <windows.h>
23138
23139 int
23140 main ()
23141 {
23142
23143
23144   ;
23145   return 0;
23146 }
23147 _ACEOF
23148 if ac_fn_c_try_compile "$LINENO"; then :
23149
23150     have_win32_gcc=yes
23151
23152 fi
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
23157        as_fn_error $? "
23158 *** Your compiler ($CC) does not produce Windows executables!
23159        " "$LINENO" 5
23160     fi
23161
23162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
23163 $as_echo_n "checking Windows CE... " >&6; }
23164     have_wince=no
23165     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23166 /* end confdefs.h.  */
23167
23168 #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
23169 #error This is not Windows CE
23170 #endif
23171
23172 int
23173 main ()
23174 {
23175
23176
23177   ;
23178   return 0;
23179 }
23180 _ACEOF
23181 if ac_fn_c_try_compile "$LINENO"; then :
23182
23183     have_wince=yes
23184        as_fn_error $? "
23185 *** Sorry, Windows CE is no longer supported.
23186        " "$LINENO" 5
23187
23188 fi
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; }
23192
23193     # This fixes Windows stack alignment with newer GCC
23194     CheckStackBoundary
23195 }
23196
23197 CheckDIRECTX()
23198 {
23199     # Check whether --enable-directx was given.
23200 if test "${enable_directx+set}" = set; then :
23201   enableval=$enable_directx;
23202 else
23203   enable_directx=yes
23204 fi
23205
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 :
23209   have_d3d=yes
23210 fi
23211
23212
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 :
23215   have_d3d11=yes
23216 fi
23217
23218
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 :
23221   have_ddraw=yes
23222 fi
23223
23224
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 :
23227   have_dsound=yes
23228 fi
23229
23230
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 :
23233   have_dinput=yes
23234 fi
23235
23236
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 :
23239   have_dxgi=yes
23240 fi
23241
23242
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 :
23245   have_xinput=yes
23246 fi
23247
23248
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 :
23251   have_wasapi=yes
23252 fi
23253
23254
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 :
23257
23258 else
23259   have_wasapi=no
23260 fi
23261
23262
23263         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23264 /* end confdefs.h.  */
23265
23266 #include <windows.h>
23267 #include <xinput.h>
23268 XINPUT_GAMEPAD_EX x1;
23269
23270 int
23271 main ()
23272 {
23273
23274   ;
23275   return 0;
23276 }
23277 _ACEOF
23278 if ac_fn_c_try_compile "$LINENO"; then :
23279   have_xinput_gamepadex=yes
23280 fi
23281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23282         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23283 /* end confdefs.h.  */
23284
23285 #include <windows.h>
23286 #include <xinput.h>
23287 XINPUT_STATE_EX s1;
23288
23289 int
23290 main ()
23291 {
23292
23293   ;
23294   return 0;
23295 }
23296 _ACEOF
23297 if ac_fn_c_try_compile "$LINENO"; then :
23298   have_xinput_stateex=yes
23299 fi
23300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23301
23302         if test x$have_ddraw = xyes; then
23303
23304 $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
23305
23306         fi
23307         if test x$have_dinput = xyes; then
23308
23309 $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
23310
23311         fi
23312         if test x$have_dsound = xyes; then
23313
23314 $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
23315
23316         fi
23317         if test x$have_dxgi = xyes; then
23318
23319 $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
23320
23321         fi
23322         if test x$have_xinput = xyes; then
23323
23324 $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
23325
23326         fi
23327         if test x$have_xinput_gamepadex = xyes; then
23328
23329 $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
23330
23331         fi
23332         if test x$have_xinput_stateex = xyes; then
23333
23334 $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
23335
23336         fi
23337
23338         SUMMARY_video="${SUMMARY_video} directx"
23339         SUMMARY_audio="${SUMMARY_audio} directx"
23340
23341         # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
23342         # FIXME:  ...so force it off for now.
23343         case "$host" in
23344             *-*-cygwin*)
23345             have_dinput=false
23346             ;;
23347         esac
23348     fi
23349 }
23350
23351 CheckDLOPEN()
23352 {
23353     # Check whether --enable-sdl-dlopen was given.
23354 if test "${enable_sdl_dlopen+set}" = set; then :
23355   enableval=$enable_sdl_dlopen;
23356 else
23357   enable_sdl_dlopen=yes
23358 fi
23359
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; }
23363         have_dlopen=no
23364         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23365 /* end confdefs.h.  */
23366
23367          #include <dlfcn.h>
23368
23369 int
23370 main ()
23371 {
23372
23373          void *handle = dlopen("", RTLD_NOW);
23374          const char *loaderror = (char *) dlerror();
23375
23376   ;
23377   return 0;
23378 }
23379 _ACEOF
23380 if ac_fn_c_try_compile "$LINENO"; then :
23381
23382         have_dlopen=yes
23383
23384 fi
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; }
23388
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
23394 else
23395   ac_check_lib_save_LIBS=$LIBS
23396 LIBS="-lc  $LIBS"
23397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23398 /* end confdefs.h.  */
23399
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.  */
23403 #ifdef __cplusplus
23404 extern "C"
23405 #endif
23406 char dlopen ();
23407 int
23408 main ()
23409 {
23410 return dlopen ();
23411   ;
23412   return 0;
23413 }
23414 _ACEOF
23415 if ac_fn_c_try_link "$LINENO"; then :
23416   ac_cv_lib_c_dlopen=yes
23417 else
23418   ac_cv_lib_c_dlopen=no
23419 fi
23420 rm -f core conftest.err conftest.$ac_objext \
23421     conftest$ac_exeext conftest.$ac_ext
23422 LIBS=$ac_check_lib_save_LIBS
23423 fi
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"
23428 else
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
23433 else
23434   ac_check_lib_save_LIBS=$LIBS
23435 LIBS="-ldl  $LIBS"
23436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23437 /* end confdefs.h.  */
23438
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.  */
23442 #ifdef __cplusplus
23443 extern "C"
23444 #endif
23445 char dlopen ();
23446 int
23447 main ()
23448 {
23449 return dlopen ();
23450   ;
23451   return 0;
23452 }
23453 _ACEOF
23454 if ac_fn_c_try_link "$LINENO"; then :
23455   ac_cv_lib_dl_dlopen=yes
23456 else
23457   ac_cv_lib_dl_dlopen=no
23458 fi
23459 rm -f core conftest.err conftest.$ac_objext \
23460     conftest$ac_exeext conftest.$ac_ext
23461 LIBS=$ac_check_lib_save_LIBS
23462 fi
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"
23467 else
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
23472 else
23473   ac_check_lib_save_LIBS=$LIBS
23474 LIBS="-lltdl  $LIBS"
23475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23476 /* end confdefs.h.  */
23477
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.  */
23481 #ifdef __cplusplus
23482 extern "C"
23483 #endif
23484 char dlopen ();
23485 int
23486 main ()
23487 {
23488 return dlopen ();
23489   ;
23490   return 0;
23491 }
23492 _ACEOF
23493 if ac_fn_c_try_link "$LINENO"; then :
23494   ac_cv_lib_ltdl_dlopen=yes
23495 else
23496   ac_cv_lib_ltdl_dlopen=no
23497 fi
23498 rm -f core conftest.err conftest.$ac_objext \
23499     conftest$ac_exeext conftest.$ac_ext
23500 LIBS=$ac_check_lib_save_LIBS
23501 fi
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"
23506 fi
23507
23508 fi
23509
23510 fi
23511
23512
23513 $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
23514
23515             SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
23516             have_loadso=yes
23517         fi
23518     fi
23519 }
23520
23521 CheckUSBHID()
23522 {
23523     case "$host" in
23524         *-*-*bsd*)
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
23530 else
23531   ac_check_lib_save_LIBS=$LIBS
23532 LIBS="-lusbhid  $LIBS"
23533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23534 /* end confdefs.h.  */
23535
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.  */
23539 #ifdef __cplusplus
23540 extern "C"
23541 #endif
23542 char hid_init ();
23543 int
23544 main ()
23545 {
23546 return hid_init ();
23547   ;
23548   return 0;
23549 }
23550 _ACEOF
23551 if ac_fn_c_try_link "$LINENO"; then :
23552   ac_cv_lib_usbhid_hid_init=yes
23553 else
23554   ac_cv_lib_usbhid_hid_init=no
23555 fi
23556 rm -f core conftest.err conftest.$ac_objext \
23557     conftest$ac_exeext conftest.$ac_ext
23558 LIBS=$ac_check_lib_save_LIBS
23559 fi
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 :
23563   have_libusbhid=yes
23564 fi
23565
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"
23570 fi
23571
23572
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"
23576 fi
23577
23578
23579                     USB_LIBS="$USB_LIBS -lusbhid"
23580                 else
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"
23584 fi
23585
23586
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"
23590 fi
23591
23592
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
23597 else
23598   ac_check_lib_save_LIBS=$LIBS
23599 LIBS="-lusb  $LIBS"
23600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23601 /* end confdefs.h.  */
23602
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.  */
23606 #ifdef __cplusplus
23607 extern "C"
23608 #endif
23609 char hid_init ();
23610 int
23611 main ()
23612 {
23613 return hid_init ();
23614   ;
23615   return 0;
23616 }
23617 _ACEOF
23618 if ac_fn_c_try_link "$LINENO"; then :
23619   ac_cv_lib_usb_hid_init=yes
23620 else
23621   ac_cv_lib_usb_hid_init=no
23622 fi
23623 rm -f core conftest.err conftest.$ac_objext \
23624     conftest$ac_exeext conftest.$ac_ext
23625 LIBS=$ac_check_lib_save_LIBS
23626 fi
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"
23631 fi
23632
23633                 fi
23634
23635                 save_CFLAGS="$CFLAGS"
23636                 CFLAGS="$CFLAGS $USB_CFLAGS"
23637
23638                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
23639 $as_echo_n "checking for usbhid... " >&6; }
23640                 have_usbhid=no
23641                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23642 /* end confdefs.h.  */
23643
23644                   #include <sys/types.h>
23645                   #if defined(HAVE_USB_H)
23646                   #include <usb.h>
23647                   #endif
23648                   #ifdef __DragonFly__
23649                   # include <bus/usb/usb.h>
23650                   # include <bus/usb/usbhid.h>
23651                   #else
23652                   # include <dev/usb/usb.h>
23653                   # include <dev/usb/usbhid.h>
23654                   #endif
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>
23661                   #endif
23662
23663 int
23664 main ()
23665 {
23666
23667                   struct report_desc *repdesc;
23668                   struct usb_ctl_report *repbuf;
23669                   hid_kind_t hidkind;
23670
23671   ;
23672   return 0;
23673 }
23674 _ACEOF
23675 if ac_fn_c_try_compile "$LINENO"; then :
23676
23677                 have_usbhid=yes
23678
23679 fi
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; }
23683
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.  */
23690
23691                       #include <sys/types.h>
23692                       #if defined(HAVE_USB_H)
23693                       #include <usb.h>
23694                       #endif
23695                       #ifdef __DragonFly__
23696                       # include <bus/usb/usb.h>
23697                       # include <bus/usb/usbhid.h>
23698                       #else
23699                       # include <dev/usb/usb.h>
23700                       # include <dev/usb/usbhid.h>
23701                       #endif
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>
23708                       #endif
23709
23710 int
23711 main ()
23712 {
23713
23714                       struct usb_ctl_report buf;
23715                       if (buf.ucr_data) { }
23716
23717   ;
23718   return 0;
23719 }
23720 _ACEOF
23721 if ac_fn_c_try_compile "$LINENO"; then :
23722
23723                     have_usbhid_ucr_data=yes
23724
23725 fi
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"
23729                     fi
23730                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
23731 $as_echo "$have_usbhid_ucr_data" >&6; }
23732
23733                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
23734 $as_echo_n "checking for new usbhid API... " >&6; }
23735                     have_usbhid_new=no
23736                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23737 /* end confdefs.h.  */
23738
23739                       #include <sys/types.h>
23740                       #if defined(HAVE_USB_H)
23741                       #include <usb.h>
23742                       #endif
23743                       #ifdef __DragonFly__
23744                       #include <bus/usb/usb.h>
23745                       #include <bus/usb/usbhid.h>
23746                       #else
23747                       #include <dev/usb/usb.h>
23748                       #include <dev/usb/usbhid.h>
23749                       #endif
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>
23756                       #endif
23757
23758 int
23759 main ()
23760 {
23761
23762                       report_desc_t d;
23763                       hid_start_parse(d, 1, 1);
23764
23765   ;
23766   return 0;
23767 }
23768 _ACEOF
23769 if ac_fn_c_try_compile "$LINENO"; then :
23770
23771                     have_usbhid_new=yes
23772
23773 fi
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"
23777                     fi
23778                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
23779 $as_echo "$have_usbhid_new" >&6; }
23780
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.  */
23786
23787                       #include <machine/joystick.h>
23788
23789 int
23790 main ()
23791 {
23792
23793                       struct joystick t;
23794
23795   ;
23796   return 0;
23797 }
23798 _ACEOF
23799 if ac_fn_c_try_compile "$LINENO"; then :
23800
23801                     have_machine_joystick=yes
23802
23803 fi
23804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805                     if test x$have_machine_joystick = xyes; then
23806
23807 $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
23808
23809                     fi
23810                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
23811 $as_echo "$have_machine_joystick" >&6; }
23812
23813
23814 $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
23815
23816                     SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
23817                     EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
23818                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
23819                     have_joystick=yes
23820                 fi
23821                 CFLAGS="$save_CFLAGS"
23822             fi
23823         ;;
23824     esac
23825 }
23826
23827 CheckClockGettime()
23828 {
23829     # Check whether --enable-clock_gettime was given.
23830 if test "${enable_clock_gettime+set}" = set; then :
23831   enableval=$enable_clock_gettime;
23832 else
23833   enable_clock_gettime=yes
23834 fi
23835
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
23841 else
23842   ac_check_lib_save_LIBS=$LIBS
23843 LIBS="-lrt  $LIBS"
23844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23845 /* end confdefs.h.  */
23846
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.  */
23850 #ifdef __cplusplus
23851 extern "C"
23852 #endif
23853 char clock_gettime ();
23854 int
23855 main ()
23856 {
23857 return clock_gettime ();
23858   ;
23859   return 0;
23860 }
23861 _ACEOF
23862 if ac_fn_c_try_link "$LINENO"; then :
23863   ac_cv_lib_rt_clock_gettime=yes
23864 else
23865   ac_cv_lib_rt_clock_gettime=no
23866 fi
23867 rm -f core conftest.err conftest.$ac_objext \
23868     conftest$ac_exeext conftest.$ac_ext
23869 LIBS=$ac_check_lib_save_LIBS
23870 fi
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
23875 fi
23876
23877         if test x$have_clock_gettime = xyes; then
23878
23879 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23880
23881             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
23882         else
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
23887 else
23888   ac_check_lib_save_LIBS=$LIBS
23889 LIBS="-lc  $LIBS"
23890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23891 /* end confdefs.h.  */
23892
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.  */
23896 #ifdef __cplusplus
23897 extern "C"
23898 #endif
23899 char clock_gettime ();
23900 int
23901 main ()
23902 {
23903 return clock_gettime ();
23904   ;
23905   return 0;
23906 }
23907 _ACEOF
23908 if ac_fn_c_try_link "$LINENO"; then :
23909   ac_cv_lib_c_clock_gettime=yes
23910 else
23911   ac_cv_lib_c_clock_gettime=no
23912 fi
23913 rm -f core conftest.err conftest.$ac_objext \
23914     conftest$ac_exeext conftest.$ac_ext
23915 LIBS=$ac_check_lib_save_LIBS
23916 fi
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
23921 fi
23922
23923             if test x$have_clock_gettime = xyes; then
23924
23925 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23926
23927                EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
23928             fi
23929         fi
23930     fi
23931 }
23932
23933 CheckLinuxVersion()
23934 {
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
23938 fi
23939
23940
23941     if test x$have_linux_version_h = xyes; then
23942         EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
23943     fi
23944 }
23945
23946 CheckRPATH()
23947 {
23948     # Check whether --enable-rpath was given.
23949 if test "${enable_rpath+set}" = set; then :
23950   enableval=$enable_rpath;
23951 else
23952   enable_rpath=yes
23953 fi
23954
23955 }
23956
23957 CheckWarnAll
23958
23959 case "$host" in
23960     *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
23961         case "$host" in
23962             *-*-android*)
23963                 # Android
23964                 ARCH=android
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"
23971
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"
23977                 fi
23978                 ;;
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 ;;
23995             *-*-nto*)           ARCH=nto
23996                 CheckQNXVideo
23997                 ;;
23998         esac
23999         CheckVisibilityHidden
24000         #CheckDeclarationAfterStatement
24001         CheckDummyVideo
24002         CheckDiskAudio
24003         CheckDummyAudio
24004         CheckDLOPEN
24005         CheckOSS
24006         CheckALSA
24007         CheckPulseAudio
24008         CheckJACK
24009         CheckARTSC
24010         CheckESD
24011         CheckNAS
24012         CheckSNDIO
24013         CheckFusionSound
24014         CheckLibSampleRate
24015         # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
24016         CheckRPI
24017         CheckX11
24018         CheckDirectFB
24019         CheckKMSDRM
24020         CheckOpenGLX11
24021         CheckOpenGLESX11
24022         CheckVulkan
24023         CheckMir
24024         CheckWayland
24025         CheckTizen
24026         CheckLibUDev
24027         CheckDBus
24028         CheckIME
24029         CheckIBus
24030         CheckFcitx
24031         case $ARCH in
24032           linux)
24033               CheckInputEvents
24034               CheckInputKD
24035           ;;
24036         esac
24037         CheckTslib
24038         CheckUSBHID
24039         CheckPTHREAD
24040         CheckClockGettime
24041         CheckLinuxVersion
24042         CheckRPATH
24043         CheckVivanteVideo
24044
24045         # Set up files for the audio library
24046         if test x$enable_audio = xyes; then
24047           case $ARCH in
24048             sysv5|solaris|hpux)
24049
24050 $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
24051
24052                 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
24053                 SUMMARY_audio="${SUMMARY_audio} sun"
24054                 have_audio=yes
24055             ;;
24056             netbsd)  # Don't use this on OpenBSD, it's busted.
24057
24058 $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
24059
24060                 SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
24061                 SUMMARY_audio="${SUMMARY_audio} netbsd"
24062                 have_audio=yes
24063             ;;
24064             aix)
24065
24066 $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
24067
24068                 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
24069                 SUMMARY_audio="${SUMMARY_audio} paudio"
24070                 have_audio=yes
24071             ;;
24072             android)
24073
24074 $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
24075
24076                 SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
24077                 SUMMARY_audio="${SUMMARY_audio} android"
24078                 have_audio=yes
24079             ;;
24080             nto)
24081                 CheckQNXAudio
24082             ;;
24083           esac
24084         fi
24085         # Set up files for the joystick library
24086         if test x$have_joystick != xyes; then
24087             if test x$enable_joystick = xyes; then
24088               case $ARCH in
24089                 linux)
24090
24091 $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
24092
24093
24094
24095                 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
24096                 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
24097                 have_joystick=yes
24098             ;;
24099             android)
24100
24101 $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
24102
24103                 SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
24104                 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
24105                 have_joystick=yes
24106             ;;
24107           esac
24108             fi
24109         fi
24110         # Set up files for the haptic library
24111         if test x$enable_haptic = xyes; then
24112           case $ARCH in
24113             linux)
24114                 if test x$use_input_events = xyes; then
24115
24116 $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
24117
24118                     SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
24119                     have_haptic=yes
24120                 fi
24121             ;;
24122             android)
24123
24124 $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
24125
24126                 SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
24127                 have_haptic=yes
24128             ;;
24129           esac
24130         fi
24131         # Set up files for the power library
24132         if test x$enable_power = xyes; then
24133              case $ARCH in
24134                linux)
24135
24136 $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
24137
24138                    SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
24139                    have_power=yes
24140                ;;
24141                android)
24142
24143 $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
24144
24145                    SOURCES="$SOURCES $srcdir/src/power/android/*.c"
24146                    have_power=yes
24147                ;;
24148              esac
24149         fi
24150         # Set up files for the filesystem library
24151         if test x$enable_filesystem = xyes; then
24152              case $ARCH in
24153                android)
24154
24155 $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
24156
24157                    SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
24158                    have_filesystem=yes
24159                ;;
24160                *)
24161
24162 $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
24163
24164                    SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
24165                    have_filesystem=yes
24166                ;;
24167              esac
24168         fi
24169         # Set up files for the timer library
24170         if test x$enable_timers = xyes; then
24171
24172 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
24173
24174             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
24175             have_timers=yes
24176         fi
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"
24180         fi
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"
24184         fi
24185         # Set up other core UNIX files
24186         SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
24187         ;;
24188     *-*-cygwin* | *-*-mingw32*)
24189         ARCH=win32
24190         if test "$build" != "$host"; then # cross-compiling
24191             # Default cross-compile location
24192             ac_default_prefix=/usr/local/cross-tools/$host
24193         else
24194             # Look for the location of the tools and install there
24195             if test "$BUILD_PREFIX" != ""; then
24196                 ac_default_prefix=$BUILD_PREFIX
24197             fi
24198         fi
24199         #CheckDeclarationAfterStatement
24200         CheckDummyVideo
24201         CheckDiskAudio
24202         CheckDummyAudio
24203         CheckWINDOWS
24204         CheckWINDOWSGL
24205         CheckWINDOWSGLES
24206         CheckVulkan
24207         CheckDIRECTX
24208
24209         # Set up the core platform files
24210         SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
24211
24212         # Set up files for the video library
24213         if test x$enable_video = xyes; then
24214
24215 $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
24216
24217             SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
24218             have_video=yes
24219             # Check whether --enable-render-d3d was given.
24220 if test "${enable_render_d3d+set}" = set; then :
24221   enableval=$enable_render_d3d;
24222 else
24223   enable_render_d3d=yes
24224 fi
24225
24226             if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
24227
24228 $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
24229
24230             fi
24231             if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
24232
24233 $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
24234
24235             fi
24236         fi
24237         # Set up files for the audio library
24238         if test x$enable_audio = xyes; then
24239
24240 $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
24241
24242             SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
24243             if test x$have_dsound = xyes; then
24244
24245 $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
24246
24247                 SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
24248             fi
24249             if test x$have_wasapi = xyes; then
24250
24251 $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
24252
24253                 SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
24254             fi
24255             have_audio=yes
24256         fi
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
24261
24262 $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
24263
24264                 fi
24265                 if test x$have_dinput = xyes; then
24266
24267 $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
24268
24269                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
24270                 fi
24271             else
24272
24273 $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
24274
24275             fi
24276             SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
24277             have_joystick=yes
24278         fi
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
24282
24283 $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
24284
24285                 fi
24286                 if test x$have_dinput = xyes; then
24287
24288 $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
24289
24290                 fi
24291                 SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
24292                 have_haptic=yes
24293             fi
24294         fi
24295         if test x$enable_power = xyes; then
24296
24297 $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
24298
24299             SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
24300             have_power=yes
24301         fi
24302         if test x$enable_filesystem = xyes; then
24303
24304 $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
24305
24306             SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
24307             have_filesystem=yes
24308         fi
24309         # Set up files for the thread library
24310         if test x$enable_threads = xyes; then
24311
24312 $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
24313
24314             SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
24315             SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
24316             have_threads=yes
24317         fi
24318         # Set up files for the timer library
24319         if test x$enable_timers = xyes; then
24320
24321 $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
24322
24323             SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
24324             have_timers=yes
24325         fi
24326         # Set up files for the shared object loading library
24327         if test x$enable_loadso = xyes; then
24328
24329 $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
24330
24331             SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
24332             have_loadso=yes
24333         fi
24334         # Set up the system libraries we need
24335         if test -f /lib/w32api/libuuid.a; then
24336             LIBUUID=/lib/w32api/libuuid.a
24337         else
24338             LIBUUID=-luuid
24339         fi
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"
24346
24347         # Check to see if this is a mingw or cygwin build
24348         have_mingw32=
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
24353 else
24354   ac_check_lib_save_LIBS=$LIBS
24355 LIBS="-lmingw32  $LIBS"
24356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24357 /* end confdefs.h.  */
24358
24359
24360 int
24361 main ()
24362 {
24363 return main ();
24364   ;
24365   return 0;
24366 }
24367 _ACEOF
24368 if ac_fn_c_try_link "$LINENO"; then :
24369   ac_cv_lib_mingw32_main=yes
24370 else
24371   ac_cv_lib_mingw32_main=no
24372 fi
24373 rm -f core conftest.err conftest.$ac_objext \
24374     conftest$ac_exeext conftest.$ac_ext
24375 LIBS=$ac_check_lib_save_LIBS
24376 fi
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 :
24380   have_mingw32=yes
24381 fi
24382
24383         if test x$have_mingw32 = xyes; then
24384             SDL_LIBS="-lmingw32 $SDL_LIBS"
24385         else
24386             SDL_LIBS="-lcygwin $SDL_LIBS"
24387         fi
24388         ;;
24389
24390         *-*-beos*)
24391         as_fn_error $? "
24392 *** BeOS support has been removed as of SDL 2.0.2.
24393         " "$LINENO" 5
24394         ;;
24395
24396     *-*-haiku*)
24397         ARCH=haiku
24398         ac_default_prefix=/boot/system
24399         CheckDummyVideo
24400         CheckDiskAudio
24401         CheckDummyAudio
24402         CheckHaikuVideo
24403         CheckHaikuGL
24404         CheckPTHREAD
24405
24406         # Set up files for the audio library
24407         if test x$enable_audio = xyes; then
24408
24409 $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
24410
24411             SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
24412             have_audio=yes
24413         fi
24414         # Set up files for the joystick library
24415         if test x$enable_joystick = xyes; then
24416
24417 $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
24418
24419             SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
24420             have_joystick=yes
24421         fi
24422         # Set up files for the timer library
24423         if test x$enable_timers = xyes; then
24424
24425 $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
24426
24427             SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
24428             have_timers=yes
24429         fi
24430         # Set up files for the system power library
24431         if test x$enable_power = xyes; then
24432
24433 $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
24434
24435             SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
24436             have_power=yes
24437         fi
24438         # Set up files for the system filesystem library
24439         if test x$enable_filesystem = xyes; then
24440
24441 $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
24442
24443             SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
24444             have_filesystem=yes
24445         fi
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
24456 else
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"
24461 else
24462   eval "$as_ac_File=no"
24463 fi
24464 fi
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"
24470 else
24471   EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
24472 fi
24473
24474         ;;
24475     arm*-apple-darwin*|*-ios-*)
24476         ARCH=ios
24477
24478         CheckVisibilityHidden
24479         #CheckDeclarationAfterStatement
24480         CheckDummyVideo
24481         CheckDiskAudio
24482         CheckDummyAudio
24483         CheckDLOPEN
24484         CheckMETAL
24485         CheckVulkan
24486         CheckPTHREAD
24487
24488         # Set up files for the audio library
24489         if test x$enable_audio = xyes; then
24490
24491 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
24492
24493             SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
24494             SUMMARY_audio="${SUMMARY_audio} coreaudio"
24495             have_audio=yes
24496         fi
24497         # Set up files for the joystick library
24498         if test x$enable_joystick = xyes; then
24499
24500 $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
24501
24502             SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
24503             SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
24504             have_joystick=yes
24505         fi
24506         # Set up files for the haptic library
24507         #if test x$enable_haptic = xyes; then
24508         #    SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
24509         #    have_haptic=yes
24510         #    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
24511         #fi
24512         # Set up files for the power library
24513         if test x$enable_power = xyes; then
24514
24515 $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
24516
24517             SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
24518             have_power=yes
24519         fi
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
24524         fi
24525         # Set up additional files for the file library
24526         if test x$enable_file = xyes; then
24527
24528 $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
24529
24530             SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
24531         fi
24532         # Set up files for the timer library
24533         if test x$enable_timers = xyes; then
24534
24535 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
24536
24537             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
24538             have_timers=yes
24539         fi
24540         # Set up other core UNIX files
24541         SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
24542         # The iOS platform requires special setup.
24543
24544 $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
24545
24546
24547 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
24548
24549
24550 $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
24551
24552
24553 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
24554
24555
24556 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
24557
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"
24570
24571         if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
24572             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
24573         fi
24574         ;;
24575     *-*-darwin* )
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)
24579         ARCH=macosx
24580
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"
24584
24585         CheckVisibilityHidden
24586         #CheckDeclarationAfterStatement
24587         CheckDummyVideo
24588         CheckDiskAudio
24589         CheckDummyAudio
24590         CheckDLOPEN
24591         CheckCOCOA
24592         CheckMETAL
24593         CheckX11
24594         CheckMacGL
24595         CheckOpenGLX11
24596         CheckVulkan
24597         CheckPTHREAD
24598
24599         # Set up files for the audio library
24600         if test x$enable_audio = xyes; then
24601
24602 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
24603
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"
24607             have_audio=yes
24608         fi
24609         # Set up files for the joystick library
24610         if test x$enable_joystick = xyes; then
24611
24612 $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
24613
24614             SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
24615             have_joystick=yes
24616         fi
24617         # Set up files for the haptic library
24618         if test x$enable_haptic = xyes; then
24619
24620 $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
24621
24622             SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
24623             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
24624             have_haptic=yes
24625         fi
24626         # Set up files for the power library
24627         if test x$enable_power = xyes; then
24628
24629 $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
24630
24631             SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
24632             have_power=yes
24633         fi
24634         # Set up files for the filesystem library
24635         if test x$enable_filesystem = xyes; then
24636
24637 $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
24638
24639             SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
24640             have_filesystem=yes
24641         fi
24642         # Set up files for the timer library
24643         if test x$enable_timers = xyes; then
24644
24645 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
24646
24647             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
24648             have_timers=yes
24649         fi
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"
24653         fi
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"
24662
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"
24665         fi
24666         ;;
24667     *-nacl|*-pnacl)
24668         ARCH=nacl
24669         CheckNativeClient
24670         CheckDummyAudio
24671         CheckDummyVideo
24672         CheckInputEvents
24673         CheckPTHREAD
24674
24675         # Set up files for the timer library
24676         if test x$enable_timers = xyes; then
24677
24678 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
24679
24680             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
24681             have_timers=yes
24682         fi
24683
24684         if test x$enable_filesystem = xyes; then
24685
24686 $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
24687
24688             SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
24689             have_filesystem=yes
24690         fi
24691         ;;
24692     *-*-emscripten* )
24693         if test x$enable_video = xyes; then
24694
24695 $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
24696
24697             SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
24698             have_video=yes
24699             SUMMARY_video="${SUMMARY_video} emscripten"
24700         fi
24701
24702         if test x$enable_audio = xyes; then
24703
24704 $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
24705
24706             SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
24707             have_audio=yes
24708             SUMMARY_audio="${SUMMARY_audio} emscripten"
24709         fi
24710
24711         CheckVisibilityHidden
24712         #CheckDeclarationAfterStatement
24713         CheckDummyVideo
24714         CheckDiskAudio
24715         CheckDummyAudio
24716         CheckDLOPEN
24717         CheckClockGettime
24718         CheckEmscriptenGLES
24719
24720          # Set up files for the power library
24721         if test x$enable_power = xyes; then
24722
24723 $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
24724
24725             SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
24726             have_power=yes
24727         fi
24728
24729         # Set up files for the power library
24730         if test x$enable_joystick = xyes; then
24731
24732 $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
24733
24734             SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
24735             have_joystick=yes
24736         fi
24737
24738         # Set up files for the filesystem library
24739         if test x$enable_filesystem = xyes; then
24740
24741 $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
24742
24743             SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
24744             have_filesystem=yes
24745         fi
24746         # Set up files for the timer library
24747         if test x$enable_timers = xyes; then
24748
24749 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
24750
24751             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
24752             have_timers=yes
24753         fi
24754         ;;
24755     *)
24756         as_fn_error $? "
24757 *** Unsupported host:  Please add to configure.in
24758         " "$LINENO" 5
24759         ;;
24760 esac
24761
24762 # Verify that we have all the platform specific files we need
24763
24764 if test x$have_joystick != xyes; then
24765     if test x$enable_joystick = xyes; then
24766
24767 $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
24768
24769     fi
24770     SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
24771 fi
24772 if test x$have_haptic != xyes; then
24773     if test x$enable_haptic = xyes; then
24774
24775 $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
24776
24777     fi
24778     SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
24779 fi
24780 if test x$have_threads != xyes; then
24781     if test x$enable_threads = xyes; then
24782
24783 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
24784
24785     fi
24786     SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
24787 fi
24788 if test x$have_timers != xyes; then
24789     if test x$enable_timers = xyes; then
24790
24791 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
24792
24793     fi
24794     SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
24795 fi
24796 if test x$have_filesystem != xyes; then
24797     if test x$enable_filesystem = xyes; then
24798
24799 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
24800
24801     fi
24802     SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
24803 fi
24804 if test x$have_loadso != xyes; then
24805     if test x$enable_loadso = xyes; then
24806
24807 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
24808
24809     fi
24810     SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
24811 fi
24812 if test x$SDLMAIN_SOURCES = x; then
24813     SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
24814 fi
24815 SDLTEST_SOURCES="$srcdir/src/test/*.c"
24816
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"
24826
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 \$< \$@"
24831
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 \$< \$@"
24836
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 \$@"
24840
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`
24846
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`
24852
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`
24857
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
24865 "
24866 fi
24867
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"`
24875 done
24876
24877 GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
24878
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"`
24885
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"`
24892
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"`
24899
24900 # Set runtime shared library paths as needed
24901
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}"
24905
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.  */
24913
24914
24915 int
24916 main ()
24917 {
24918
24919
24920   ;
24921   return 0;
24922 }
24923 _ACEOF
24924 if ac_fn_c_try_link "$LINENO"; then :
24925
24926     have_enable_new_dtags=yes
24927     SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
24928
24929 fi
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; }
24935   fi
24936   if test $ARCH = solaris; then
24937     SDL_RLD_FLAGS="-R\${libdir}"
24938   fi
24939 else
24940   SDL_RLD_FLAGS=""
24941 fi
24942
24943 SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
24944
24945
24946
24947
24948
24949 if test x$enable_shared = xyes; then
24950     ENABLE_SHARED_TRUE=
24951     ENABLE_SHARED_FALSE="#"
24952 else
24953     ENABLE_SHARED_TRUE="#"
24954     ENABLE_SHARED_FALSE=
24955 fi
24956 if test x$enable_static = xyes; then
24957     ENABLE_STATIC_TRUE=
24958     ENABLE_STATIC_FALSE="#"
24959 else
24960     ENABLE_STATIC_TRUE="#"
24961     ENABLE_STATIC_FALSE=
24962 fi
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983 cat >Makefile.rules <<__EOF__
24984
24985 # Build rules for objects
24986 -include \$(OBJECTS:.lo=.d)
24987
24988 # Special dependency for SDL.c, since it depends on SDL_revision.h
24989 $srcdir/src/SDL.c: update-revision
24990 $DEPENDS
24991 $VERSION_DEPENDS
24992 $SDLMAIN_DEPENDS
24993 $SDLTEST_DEPENDS
24994 $WAYLAND_PROTOCOLS_DEPENDS
24995 __EOF__
24996
24997 ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
24998
24999 ac_config_commands="$ac_config_commands sdl2_config"
25000
25001
25002 SUMMARY="${SUMMARY}SDL2 Configure Summary:\n"
25003 if test x$enable_shared = xyes; then
25004     SUMMARY="${SUMMARY}Building Shared Libraries\n"
25005 fi
25006 if test x$enable_static = xyes; then
25007     SUMMARY="${SUMMARY}Building Static Libraries\n"
25008 fi
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"
25015 fi
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"
25019 else
25020     SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
25021 fi
25022 if test x$have_libudev_h_hdr = xyes; then
25023     SUMMARY="${SUMMARY}Using libudev       : YES\n"
25024 else
25025     SUMMARY="${SUMMARY}Using libudev       : NO\n"
25026 fi
25027 if test x$have_dbus_dbus_h_hdr = xyes; then
25028     SUMMARY="${SUMMARY}Using dbus          : YES\n"
25029 else
25030     SUMMARY="${SUMMARY}Using dbus          : NO\n"
25031 fi
25032 if test x$enable_ime = xyes; then
25033     SUMMARY="${SUMMARY}Using ime           : YES\n"
25034 else
25035     SUMMARY="${SUMMARY}Using ime           : NO\n"
25036 fi
25037 if test x$have_ibus_ibus_h_hdr = xyes; then
25038     SUMMARY="${SUMMARY}Using ibus          : YES\n"
25039 else
25040     SUMMARY="${SUMMARY}Using ibus          : NO\n"
25041 fi
25042 if test x$have_fcitx_frontend_h_hdr = xyes; then
25043     SUMMARY="${SUMMARY}Using fcitx         : YES\n"
25044 else
25045     SUMMARY="${SUMMARY}Using fcitx         : NO\n"
25046 fi
25047 ac_config_commands="$ac_config_commands summary"
25048
25049
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.
25056 #
25057 # config.status only pays attention to the cache file if you give it
25058 # the --recheck option to rerun configure.
25059 #
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.
25063
25064 _ACEOF
25065
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.
25071 (
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
25074     case $ac_val in #(
25075     *${as_nl}*)
25076       case $ac_var in #(
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;} ;;
25079       esac
25080       case $ac_var in #(
25081       _ | IFS | as_nl) ;; #(
25082       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25083       *) { eval $ac_var=; unset $ac_var;} ;;
25084       esac ;;
25085     esac
25086   done
25087
25088   (set) 2>&1 |
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 \.
25093       sed -n \
25094         "s/'/'\\\\''/g;
25095           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25096       ;; #(
25097     *)
25098       # `set' quotes correctly as required by POSIX, so do not add quotes.
25099       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25100       ;;
25101     esac |
25102     sort
25103 ) |
25104   sed '
25105      /^ac_cv_env_/b end
25106      t clear
25107      :clear
25108      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25109      t end
25110      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25111      :end' >>confcache
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"
25119       else
25120         case $cache_file in #(
25121         */* | ?:*)
25122           mv -f confcache "$cache_file"$$ &&
25123           mv -f "$cache_file"$$ "$cache_file" ;; #(
25124         *)
25125           mv -f confcache "$cache_file" ;;
25126         esac
25127       fi
25128     fi
25129   else
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;}
25132   fi
25133 fi
25134 rm -f confcache
25135
25136 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25137 # Let make expand exec_prefix.
25138 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25139
25140 DEFS=-DHAVE_CONFIG_H
25141
25142 ac_libobjs=
25143 ac_ltlibobjs=
25144 U=
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'
25153 done
25154 LIBOBJS=$ac_libobjs
25155
25156 LTLIBOBJS=$ac_ltlibobjs
25157
25158
25159
25160 : "${CONFIG_STATUS=./config.status}"
25161 ac_write_fail=0
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;}
25166 as_write_fail=0
25167 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25168 #! $SHELL
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.
25173
25174 debug=false
25175 ac_cs_recheck=false
25176 ac_cs_silent=false
25177
25178 SHELL=\${CONFIG_SHELL-$SHELL}
25179 export SHELL
25180 _ASEOF
25181 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25182 ## -------------------- ##
25183 ## M4sh Initialization. ##
25184 ## -------------------- ##
25185
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 :
25189   emulate sh
25190   NULLCMD=:
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
25195 else
25196   case `(set -o) 2>/dev/null` in #(
25197   *posix*) :
25198     set -o posix ;; #(
25199   *) :
25200      ;;
25201 esac
25202 fi
25203
25204
25205 as_nl='
25206 '
25207 export as_nl
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'
25221 else
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'
25225   else
25226     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25227     as_echo_n_body='eval
25228       arg=$1;
25229       case $arg in #(
25230       *"$as_nl"*)
25231         expr "X$arg" : "X\\(.*\\)$as_nl";
25232         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25233       esac;
25234       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25235     '
25236     export as_echo_n_body
25237     as_echo_n='sh -c $as_echo_n_body as_echo'
25238   fi
25239   export as_echo_body
25240   as_echo='sh -c $as_echo_body as_echo'
25241 fi
25242
25243 # The user is always right.
25244 if test "${PATH_SEPARATOR+set}" != set; then
25245   PATH_SEPARATOR=:
25246   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25247     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25248       PATH_SEPARATOR=';'
25249   }
25250 fi
25251
25252
25253 # IFS
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.)
25258 IFS=" ""        $as_nl"
25259
25260 # Find who we are.  Look in the path if we contain no directory separator.
25261 as_myself=
25262 case $0 in #((
25263   *[\\/]* ) as_myself=$0 ;;
25264   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25265 for as_dir in $PATH
25266 do
25267   IFS=$as_save_IFS
25268   test -z "$as_dir" && as_dir=.
25269     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25270   done
25271 IFS=$as_save_IFS
25272
25273      ;;
25274 esac
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
25278   as_myself=$0
25279 fi
25280 if test ! -f "$as_myself"; then
25281   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25282   exit 1
25283 fi
25284
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 || :
25292 done
25293 PS1='$ '
25294 PS2='> '
25295 PS4='+ '
25296
25297 # NLS nuisances.
25298 LC_ALL=C
25299 export LC_ALL
25300 LANGUAGE=C
25301 export LANGUAGE
25302
25303 # CDPATH.
25304 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25305
25306
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.
25312 as_fn_error ()
25313 {
25314   as_status=$1; test $as_status -eq 0 && as_status=1
25315   if test "$4"; then
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
25318   fi
25319   $as_echo "$as_me: error: $2" >&2
25320   as_fn_exit $as_status
25321 } # as_fn_error
25322
25323
25324 # as_fn_set_status STATUS
25325 # -----------------------
25326 # Set $? to STATUS, without forking.
25327 as_fn_set_status ()
25328 {
25329   return $1
25330 } # as_fn_set_status
25331
25332 # as_fn_exit STATUS
25333 # -----------------
25334 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25335 as_fn_exit ()
25336 {
25337   set +e
25338   as_fn_set_status $1
25339   exit $1
25340 } # as_fn_exit
25341
25342 # as_fn_unset VAR
25343 # ---------------
25344 # Portably unset VAR.
25345 as_fn_unset ()
25346 {
25347   { eval $1=; unset $1;}
25348 }
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
25355 # implementations.
25356 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25357   eval 'as_fn_append ()
25358   {
25359     eval $1+=\$2
25360   }'
25361 else
25362   as_fn_append ()
25363   {
25364     eval $1=\$$1\$2
25365   }
25366 fi # as_fn_append
25367
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 ()
25375   {
25376     as_val=$(( $* ))
25377   }'
25378 else
25379   as_fn_arith ()
25380   {
25381     as_val=`expr "$@" || test $? -eq 1`
25382   }
25383 fi # as_fn_arith
25384
25385
25386 if expr a : '\(a\)' >/dev/null 2>&1 &&
25387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25388   as_expr=expr
25389 else
25390   as_expr=false
25391 fi
25392
25393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25394   as_basename=basename
25395 else
25396   as_basename=false
25397 fi
25398
25399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25400   as_dirname=dirname
25401 else
25402   as_dirname=false
25403 fi
25404
25405 as_me=`$as_basename -- "$0" ||
25406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25407          X"$0" : 'X\(//\)$' \| \
25408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25409 $as_echo X/"$0" |
25410     sed '/^.*\/\([^/][^/]*\)\/*$/{
25411             s//\1/
25412             q
25413           }
25414           /^X\/\(\/\/\)$/{
25415             s//\1/
25416             q
25417           }
25418           /^X\/\(\/\).*/{
25419             s//\1/
25420             q
25421           }
25422           s/.*/./; q'`
25423
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
25430
25431 ECHO_C= ECHO_N= ECHO_T=
25432 case `echo -n x` in #(((((
25433 -n*)
25434   case `echo 'xy\c'` in
25435   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25436   xy)  ECHO_C='\c';;
25437   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25438        ECHO_T=' ';;
25439   esac;;
25440 *)
25441   ECHO_N='-n';;
25442 esac
25443
25444 rm -f conf$$ conf$$.exe conf$$.file
25445 if test -d conf$$.dir; then
25446   rm -f conf$$.dir/conf$$.file
25447 else
25448   rm -f conf$$.dir
25449   mkdir conf$$.dir 2>/dev/null
25450 fi
25451 if (echo >conf$$.file) 2>/dev/null; then
25452   if ln -s conf$$.file conf$$ 2>/dev/null; then
25453     as_ln_s='ln -s'
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 ||
25459       as_ln_s='cp -pR'
25460   elif ln conf$$.file conf$$ 2>/dev/null; then
25461     as_ln_s=ln
25462   else
25463     as_ln_s='cp -pR'
25464   fi
25465 else
25466   as_ln_s='cp -pR'
25467 fi
25468 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25469 rmdir conf$$.dir 2>/dev/null
25470
25471
25472 # as_fn_mkdir_p
25473 # -------------
25474 # Create "$as_dir" as a directory, including parents if necessary.
25475 as_fn_mkdir_p ()
25476 {
25477
25478   case $as_dir in #(
25479   -*) as_dir=./$as_dir;;
25480   esac
25481   test -d "$as_dir" || eval $as_mkdir_p || {
25482     as_dirs=
25483     while :; do
25484       case $as_dir in #(
25485       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25486       *) as_qdir=$as_dir;;
25487       esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25496             s//\1/
25497             q
25498           }
25499           /^X\(\/\/\)[^/].*/{
25500             s//\1/
25501             q
25502           }
25503           /^X\(\/\/\)$/{
25504             s//\1/
25505             q
25506           }
25507           /^X\(\/\).*/{
25508             s//\1/
25509             q
25510           }
25511           s/.*/./; q'`
25512       test -d "$as_dir" && break
25513     done
25514     test -z "$as_dirs" || eval "mkdir $as_dirs"
25515   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25516
25517
25518 } # as_fn_mkdir_p
25519 if mkdir -p . 2>/dev/null; then
25520   as_mkdir_p='mkdir -p "$as_dir"'
25521 else
25522   test -d ./-p && rmdir ./-p
25523   as_mkdir_p=false
25524 fi
25525
25526
25527 # as_fn_executable_p FILE
25528 # -----------------------
25529 # Test if FILE is an executable regular file.
25530 as_fn_executable_p ()
25531 {
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
25536
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'"
25539
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'"
25542
25543
25544 exec 6>&1
25545 ## ----------------------------------- ##
25546 ## Main body of $CONFIG_STATUS script. ##
25547 ## ----------------------------------- ##
25548 _ASEOF
25549 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25550
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.
25555 ac_log="
25556 This file was extended by $as_me, which was
25557 generated by GNU Autoconf 2.69.  Invocation command line was
25558
25559   CONFIG_FILES    = $CONFIG_FILES
25560   CONFIG_HEADERS  = $CONFIG_HEADERS
25561   CONFIG_LINKS    = $CONFIG_LINKS
25562   CONFIG_COMMANDS = $CONFIG_COMMANDS
25563   $ $0 $@
25564
25565 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25566 "
25567
25568 _ACEOF
25569
25570 case $ac_config_files in *"
25571 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25572 esac
25573
25574 case $ac_config_headers in *"
25575 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25576 esac
25577
25578
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"
25584
25585 _ACEOF
25586
25587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25588 ac_cs_usage="\
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.
25592
25593 Usage: $0 [OPTION]... [TAG]...
25594
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
25606
25607 Configuration files:
25608 $config_files
25609
25610 Configuration headers:
25611 $config_headers
25612
25613 Configuration commands:
25614 $config_commands
25615
25616 Report bugs to the package provider."
25617
25618 _ACEOF
25619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25620 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25621 ac_cs_version="\\
25622 config.status
25623 configured by $0, generated by GNU Autoconf 2.69,
25624   with options \\"\$ac_cs_config\\"
25625
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."
25629
25630 ac_pwd='$ac_pwd'
25631 srcdir='$srcdir'
25632 INSTALL='$INSTALL'
25633 AWK='$AWK'
25634 test -n "\$AWK" || AWK=awk
25635 _ACEOF
25636
25637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25638 # The default lists apply if the user does not specify any file.
25639 ac_need_defaults=:
25640 while test $# != 0
25641 do
25642   case $1 in
25643   --*=?*)
25644     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25645     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25646     ac_shift=:
25647     ;;
25648   --*=)
25649     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25650     ac_optarg=
25651     ac_shift=:
25652     ;;
25653   *)
25654     ac_option=$1
25655     ac_optarg=$2
25656     ac_shift=shift
25657     ;;
25658   esac
25659
25660   case $ac_option in
25661   # Handling of the options.
25662   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25663     ac_cs_recheck=: ;;
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 )
25669     debug=: ;;
25670   --file | --fil | --fi | --f )
25671     $ac_shift
25672     case $ac_optarg in
25673     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25674     '') as_fn_error $? "missing file argument" ;;
25675     esac
25676     as_fn_append CONFIG_FILES " '$ac_optarg'"
25677     ac_need_defaults=false;;
25678   --header | --heade | --head | --hea )
25679     $ac_shift
25680     case $ac_optarg in
25681     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25682     esac
25683     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25684     ac_need_defaults=false;;
25685   --he | --h)
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)
25693     ac_cs_silent=: ;;
25694
25695   # This is an error.
25696   -*) as_fn_error $? "unrecognized option: \`$1'
25697 Try \`$0 --help' for more information." ;;
25698
25699   *) as_fn_append ac_config_targets " $1"
25700      ac_need_defaults=false ;;
25701
25702   esac
25703   shift
25704 done
25705
25706 ac_configure_extra_args=
25707
25708 if $ac_cs_silent; then
25709   exec 6>/dev/null
25710   ac_configure_extra_args="$ac_configure_extra_args --silent"
25711 fi
25712
25713 _ACEOF
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
25717   shift
25718   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25719   CONFIG_SHELL='$SHELL'
25720   export CONFIG_SHELL
25721   exec "\$@"
25722 fi
25723
25724 _ACEOF
25725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25726 exec 5>>config.log
25727 {
25728   echo
25729   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25730 ## Running $as_me. ##
25731 _ASBOX
25732   $as_echo "$ac_log"
25733 } >&5
25734
25735 _ACEOF
25736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25737 #
25738 # INIT-COMMANDS
25739 #
25740
25741
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
25745
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"`'
25934
25935 LTCC='$LTCC'
25936 LTCFLAGS='$LTCFLAGS'
25937 compiler='$compiler_DEFAULT'
25938
25939 # A function that is used when there is no print builtin or printf.
25940 func_fallback_echo ()
25941 {
25942   eval 'cat <<_LTECHO_EOF
25943 \$1
25944 _LTECHO_EOF'
25945 }
25946
25947 # Quote evaled strings.
25948 for var in AS \
25949 DLLTOOL \
25950 OBJDUMP \
25951 SHELL \
25952 ECHO \
25953 PATH_SEPARATOR \
25954 SED \
25955 GREP \
25956 EGREP \
25957 FGREP \
25958 LD \
25959 NM \
25960 LN_S \
25961 lt_SP2NL \
25962 lt_NL2SP \
25963 reload_flag \
25964 deplibs_check_method \
25965 file_magic_cmd \
25966 file_magic_glob \
25967 want_nocaseglob \
25968 sharedlib_from_linklib_cmd \
25969 AR \
25970 AR_FLAGS \
25971 archiver_list_spec \
25972 STRIP \
25973 RANLIB \
25974 CC \
25975 CFLAGS \
25976 compiler \
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 \
25987 need_locks \
25988 MANIFEST_TOOL \
25989 DSYMUTIL \
25990 NMEDIT \
25991 LIPO \
25992 OTOOL \
25993 OTOOL64 \
25994 shrext_cmds \
25995 export_dynamic_flag_spec \
25996 whole_archive_flag_spec \
25997 compiler_needs_object \
25998 with_gnu_ld \
25999 allow_undefined_flag \
26000 no_undefined_flag \
26001 hardcode_libdir_flag_spec \
26002 hardcode_libdir_separator \
26003 exclude_expsyms \
26004 include_expsyms \
26005 file_list_spec \
26006 variables_saved_for_relink \
26007 libname_spec \
26008 library_names_spec \
26009 soname_spec \
26010 install_override_mode \
26011 finish_eval \
26012 old_striplib \
26013 striplib \
26014 compiler_lib_search_dirs \
26015 predep_objects \
26016 postdep_objects \
26017 predeps \
26018 postdeps \
26019 compiler_lib_search_path \
26020 LD_CXX \
26021 reload_flag_CXX \
26022 compiler_CXX \
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 \
26031 with_gnu_ld_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 \
26042 predeps_CXX \
26043 postdeps_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\\"\\\`\\\\\\""
26048       ;;
26049     *)
26050       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26051       ;;
26052     esac
26053 done
26054
26055 # Double-quote double-evaled strings.
26056 for var in reload_cmds \
26057 old_postinstall_cmds \
26058 old_postuninstall_cmds \
26059 old_archive_cmds \
26060 extract_expsyms_cmds \
26061 old_archive_from_new_cmds \
26062 old_archive_from_expsyms_cmds \
26063 archive_cmds \
26064 archive_expsym_cmds \
26065 module_cmds \
26066 module_expsym_cmds \
26067 export_symbols_cmds \
26068 prelink_cmds \
26069 postlink_cmds \
26070 postinstall_cmds \
26071 postuninstall_cmds \
26072 finish_cmds \
26073 sys_lib_search_path_spec \
26074 sys_lib_dlsearch_path_spec \
26075 reload_cmds_CXX \
26076 old_archive_cmds_CXX \
26077 old_archive_from_new_cmds_CXX \
26078 old_archive_from_expsyms_cmds_CXX \
26079 archive_cmds_CXX \
26080 archive_expsym_cmds_CXX \
26081 module_cmds_CXX \
26082 module_expsym_cmds_CXX \
26083 export_symbols_cmds_CXX \
26084 prelink_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\\"\\\`\\\\\\""
26089       ;;
26090     *)
26091       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26092       ;;
26093     esac
26094 done
26095
26096 ac_aux_dir='$ac_aux_dir'
26097 xsi_shell='$xsi_shell'
26098 lt_shell_append='$lt_shell_append'
26099
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
26104 fi
26105
26106
26107     PACKAGE='$PACKAGE'
26108     VERSION='$VERSION'
26109     TIMESTAMP='$TIMESTAMP'
26110     RM='$RM'
26111     ofile='$ofile'
26112
26113
26114
26115
26116
26117 SUMMARY="$SUMMARY"
26118
26119 _ACEOF
26120
26121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26122
26123 # Handling of arguments.
26124 for ac_config_target in $ac_config_targets
26125 do
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" ;;
26136
26137   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26138   esac
26139 done
26140
26141
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
26150 fi
26151
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'.
26158 $debug ||
26159 {
26160   tmp= ac_tmp=
26161   trap 'exit_status=$?
26162   : "${ac_tmp:=$tmp}"
26163   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26164 ' 0
26165   trap 'as_fn_exit 1' 1 2 13 15
26166 }
26167 # Create a (secure) tmp directory for tmp files.
26168
26169 {
26170   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26171   test -d "$tmp"
26172 }  ||
26173 {
26174   tmp=./conf$$-$RANDOM
26175   (umask 077 && mkdir "$tmp")
26176 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26177 ac_tmp=$tmp
26178
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
26183
26184
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\'
26191 fi
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
26194   ac_cs_awk_cr='\\r'
26195 else
26196   ac_cs_awk_cr=$ac_cr
26197 fi
26198
26199 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26200 _ACEOF
26201
26202
26203 {
26204   echo "cat >conf$$subs.awk <<_ACEOF" &&
26205   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26206   echo "_ACEOF"
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 '^'`
26210 ac_delim='%!_!# '
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
26214
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
26217     break
26218   elif $ac_last_try; then
26219     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26220   else
26221     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26222   fi
26223 done
26224 rm -f conf$$subs.sh
26225
26226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26227 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26228 _ACEOF
26229 sed -n '
26230 h
26231 s/^/S["/; s/!.*/"]=/
26232 p
26233 g
26234 s/^[^!]*!//
26235 :repl
26236 t repl
26237 s/'"$ac_delim"'$//
26238 t delim
26239 :nl
26240 h
26241 s/\(.\{148\}\)..*/\1/
26242 t more1
26243 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26244 p
26245 n
26246 b repl
26247 :more1
26248 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26249 p
26250 g
26251 s/.\{148\}//
26252 t nl
26253 :delim
26254 h
26255 s/\(.\{148\}\)..*/\1/
26256 t more2
26257 s/["\\]/\\&/g; s/^/"/; s/$/"/
26258 p
26259 b
26260 :more2
26261 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26262 p
26263 g
26264 s/.\{148\}//
26265 t delim
26266 ' <conf$$subs.awk | sed '
26267 /^[^""]/{
26268   N
26269   s/\n//
26270 }
26271 ' >>$CONFIG_STATUS || ac_write_fail=1
26272 rm -f conf$$subs.awk
26273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26274 _ACAWK
26275 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26276   for (key in S) S_is_set[key] = 1
26277   FS = "\a"
26278
26279 }
26280 {
26281   line = $ 0
26282   nfields = split(line, field, "@")
26283   substed = 0
26284   len = length(field[1])
26285   for (i = 2; i < nfields; i++) {
26286     key = field[i]
26287     keylen = length(key)
26288     if (S_is_set[key]) {
26289       value = S[key]
26290       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26291       len += length(value) + length(field[++i])
26292       substed = 1
26293     } else
26294       len += 1 + keylen
26295   }
26296
26297   print line
26298 }
26299
26300 _ACAWK
26301 _ACEOF
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"
26305 else
26306   cat
26307 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26308   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26309 _ACEOF
26310
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[        ]*=[    ]*/{
26317 h
26318 s///
26319 s/^/:/
26320 s/[      ]*$/:/
26321 s/:\$(srcdir):/:/g
26322 s/:\${srcdir}:/:/g
26323 s/:@srcdir@:/:/g
26324 s/^:*//
26325 s/:*$//
26326 x
26327 s/\(=[   ]*\).*/\1/
26328 G
26329 s/\n//
26330 s/^[^=]*=[       ]*$//
26331 }'
26332 fi
26333
26334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26335 fi # test -n "$CONFIG_FILES"
26336
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 ||
26342 BEGIN {
26343 _ACEOF
26344
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.
26348
26349 # Create a delimiter string that does not exist in confdefs.h, to ease
26350 # handling of long lines.
26351 ac_delim='%!_!# '
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
26355     break
26356   elif $ac_last_try; then
26357     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26358   else
26359     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26360   fi
26361 done
26362
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.
26366
26367 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26368 sed -n '
26369 s/.\{148\}/&'"$ac_delim"'/g
26370 t rset
26371 :rset
26372 s/^[     ]*#[    ]*define[       ][      ]*/ /
26373 t def
26374 d
26375 :def
26376 s/\\$//
26377 t bsnl
26378 s/["\\]/\\&/g
26379 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26380 D["\1"]=" \3"/p
26381 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26382 d
26383 :bsnl
26384 s/["\\]/\\&/g
26385 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26386 D["\1"]=" \3\\\\\\n"\\/p
26387 t cont
26388 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26389 t cont
26390 d
26391 :cont
26392 n
26393 s/.\{148\}/&'"$ac_delim"'/g
26394 t clear
26395 :clear
26396 s/\\$//
26397 t bsnlc
26398 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26399 d
26400 :bsnlc
26401 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26402 b cont
26403 ' <confdefs.h | sed '
26404 s/'"$ac_delim"'/"\\\
26405 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26406
26407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26408   for (key in D) D_is_set[key] = 1
26409   FS = "\a"
26410 }
26411 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26412   line = \$ 0
26413   split(line, arg, " ")
26414   if (arg[1] == "#") {
26415     defundef = arg[2]
26416     mac1 = arg[3]
26417   } else {
26418     defundef = substr(arg[1], 2)
26419     mac1 = arg[2]
26420   }
26421   split(mac1, mac2, "(") #)
26422   macro = mac2[1]
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]
26427     next
26428   } else {
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, "*/"
26434       next
26435     }
26436   }
26437 }
26438 { print }
26439 _ACAWK
26440 _ACEOF
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"
26444
26445
26446 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26447 shift
26448 for ac_tag
26449 do
26450   case $ac_tag in
26451   :[FHLC]) ac_mode=$ac_tag; continue;;
26452   esac
26453   case $ac_mode$ac_tag in
26454   :[FHL]*:*);;
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;;
26458   esac
26459   ac_save_IFS=$IFS
26460   IFS=:
26461   set x $ac_tag
26462   IFS=$ac_save_IFS
26463   shift
26464   ac_file=$1
26465   shift
26466
26467   case $ac_mode in
26468   :L) ac_source=$1;;
26469   :[FH])
26470     ac_file_inputs=
26471     for ac_f
26472     do
26473       case $ac_f 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 `:'.
26478          test -f "$ac_f" ||
26479            case $ac_f in
26480            [\\/$]*) false;;
26481            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26482            esac ||
26483            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26484       esac
26485       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26486       as_fn_append ac_file_inputs " '$ac_f'"
26487     done
26488
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'
26494         `' by configure.'
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;}
26499     fi
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;;
26506     esac
26507
26508     case $ac_tag in
26509     *:-:* | *:-) cat >"$ac_tmp/stdin" \
26510       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26511     esac
26512     ;;
26513   esac
26514
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26522             s//\1/
26523             q
26524           }
26525           /^X\(\/\/\)[^/].*/{
26526             s//\1/
26527             q
26528           }
26529           /^X\(\/\/\)$/{
26530             s//\1/
26531             q
26532           }
26533           /^X\(\/\).*/{
26534             s//\1/
26535             q
26536           }
26537           s/.*/./; q'`
26538   as_dir="$ac_dir"; as_fn_mkdir_p
26539   ac_builddir=.
26540
26541 case "$ac_dir" in
26542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26543 *)
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/ ;;
26550   esac ;;
26551 esac
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
26556
26557 case $srcdir in
26558   .)  # We are building in place.
26559     ac_srcdir=.
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 ;;
26570 esac
26571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26572
26573
26574   case $ac_mode in
26575   :F)
26576   #
26577   # CONFIG_FILE
26578   #
26579
26580   case $INSTALL in
26581   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26582   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26583   esac
26584 _ACEOF
26585
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=
26590 ac_sed_dataroot='
26591 /datarootdir/ {
26592   p
26593   q
26594 }
26595 /@datadir@/p
26596 /@docdir@/p
26597 /@infodir@/p
26598 /@localedir@/p
26599 /@mandir@/p'
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;}
26605 _ACEOF
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' ;;
26614 esac
26615 _ACEOF
26616
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
26622 $extrasub
26623 _ACEOF
26624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26625 :t
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
26639 "
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
26642
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;}
26651
26652   rm -f "$ac_tmp/stdin"
26653   case $ac_file in
26654   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26655   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26656   esac \
26657   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26658  ;;
26659   :H)
26660   #
26661   # CONFIG_HEADER
26662   #
26663   if test x"$ac_file" != x-; then
26664     {
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;}
26672     else
26673       rm -f "$ac_file"
26674       mv "$ac_tmp/config.h" "$ac_file" \
26675         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26676     fi
26677   else
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
26681   fi
26682  ;;
26683
26684   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26685 $as_echo "$as_me: executing $ac_file commands" >&6;}
26686  ;;
26687   esac
26688
26689
26690   case $ac_file$ac_mode in
26691     "libtool":C)
26692
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
26697     fi
26698
26699     cfgfile="${ofile}T"
26700     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26701     $RM "$cfgfile"
26702
26703     cat <<_LT_EOF >> "$cfgfile"
26704 #! $SHELL
26705
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.
26710 #
26711 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26712 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26713 #                 Foundation, Inc.
26714 #   Written by Gordon Matzigkeit, 1996
26715 #
26716 #   This file is part of GNU Libtool.
26717 #
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.
26722 #
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.
26727 #
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.
26732 #
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.
26738
26739
26740 # The names of the tagged configurations supported by this script.
26741 available_tags="CXX "
26742
26743 # ### BEGIN LIBTOOL CONFIG
26744
26745 # Which release of libtool.m4 was used?
26746 macro_version=$macro_version
26747 macro_revision=$macro_revision
26748
26749 # Assembler program.
26750 AS=$lt_AS
26751
26752 # DLL creation program.
26753 DLLTOOL=$lt_DLLTOOL
26754
26755 # Object dumper program.
26756 OBJDUMP=$lt_OBJDUMP
26757
26758 # Whether or not to build shared libraries.
26759 build_libtool_libs=$enable_shared
26760
26761 # Whether or not to build static libraries.
26762 build_old_libs=$enable_static
26763
26764 # What type of objects to build.
26765 pic_mode=$pic_mode
26766
26767 # Whether or not to optimize for fast installation.
26768 fast_install=$enable_fast_install
26769
26770 # Shell to use when invoking shell scripts.
26771 SHELL=$lt_SHELL
26772
26773 # An echo program that protects backslashes.
26774 ECHO=$lt_ECHO
26775
26776 # The PATH separator for the build system.
26777 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26778
26779 # The host system.
26780 host_alias=$host_alias
26781 host=$host
26782 host_os=$host_os
26783
26784 # The build system.
26785 build_alias=$build_alias
26786 build=$build
26787 build_os=$build_os
26788
26789 # A sed program that does not truncate output.
26790 SED=$lt_SED
26791
26792 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26793 Xsed="\$SED -e 1s/^X//"
26794
26795 # A grep program that handles long lines.
26796 GREP=$lt_GREP
26797
26798 # An ERE matcher.
26799 EGREP=$lt_EGREP
26800
26801 # A literal string matcher.
26802 FGREP=$lt_FGREP
26803
26804 # A BSD- or MS-compatible name lister.
26805 NM=$lt_NM
26806
26807 # Whether we need soft or hard links.
26808 LN_S=$lt_LN_S
26809
26810 # What is the maximum length of a command?
26811 max_cmd_len=$max_cmd_len
26812
26813 # Object file suffix (normally "o").
26814 objext=$ac_objext
26815
26816 # Executable file suffix (normally "").
26817 exeext=$exeext
26818
26819 # whether the shell understands "unset".
26820 lt_unset=$lt_unset
26821
26822 # turn spaces into newlines.
26823 SP2NL=$lt_lt_SP2NL
26824
26825 # turn newlines into spaces.
26826 NL2SP=$lt_lt_NL2SP
26827
26828 # convert \$build file names to \$host format.
26829 to_host_file_cmd=$lt_cv_to_host_file_cmd
26830
26831 # convert \$build files to toolchain format.
26832 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26833
26834 # Method to check whether dependent libraries are shared objects.
26835 deplibs_check_method=$lt_deplibs_check_method
26836
26837 # Command to use when deplibs_check_method = "file_magic".
26838 file_magic_cmd=$lt_file_magic_cmd
26839
26840 # How to find potential files when deplibs_check_method = "file_magic".
26841 file_magic_glob=$lt_file_magic_glob
26842
26843 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26844 want_nocaseglob=$lt_want_nocaseglob
26845
26846 # Command to associate shared and link libraries.
26847 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26848
26849 # The archiver.
26850 AR=$lt_AR
26851
26852 # Flags to create an archive.
26853 AR_FLAGS=$lt_AR_FLAGS
26854
26855 # How to feed a file listing to the archiver.
26856 archiver_list_spec=$lt_archiver_list_spec
26857
26858 # A symbol stripping program.
26859 STRIP=$lt_STRIP
26860
26861 # Commands used to install an old-style archive.
26862 RANLIB=$lt_RANLIB
26863 old_postinstall_cmds=$lt_old_postinstall_cmds
26864 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26865
26866 # Whether to use a lock for old archive extraction.
26867 lock_old_archive_extraction=$lock_old_archive_extraction
26868
26869 # A C compiler.
26870 LTCC=$lt_CC
26871
26872 # LTCC compiler flags.
26873 LTCFLAGS=$lt_CFLAGS
26874
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
26877
26878 # Transform the output of nm in a proper C declaration.
26879 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26880
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
26883
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
26886
26887 # Specify filename containing input files for \$NM.
26888 nm_file_list_spec=$lt_nm_file_list_spec
26889
26890 # The root where to search for dependent libraries,and in which our libraries should be installed.
26891 lt_sysroot=$lt_sysroot
26892
26893 # The name of the directory that contains temporary libtool files.
26894 objdir=$objdir
26895
26896 # Used to examine libraries when file_magic_cmd begins with "file".
26897 MAGIC_CMD=$MAGIC_CMD
26898
26899 # Must we lock files when doing compilation?
26900 need_locks=$lt_need_locks
26901
26902 # Manifest tool.
26903 MANIFEST_TOOL=$lt_MANIFEST_TOOL
26904
26905 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26906 DSYMUTIL=$lt_DSYMUTIL
26907
26908 # Tool to change global to local symbols on Mac OS X.
26909 NMEDIT=$lt_NMEDIT
26910
26911 # Tool to manipulate fat objects and archives on Mac OS X.
26912 LIPO=$lt_LIPO
26913
26914 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26915 OTOOL=$lt_OTOOL
26916
26917 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26918 OTOOL64=$lt_OTOOL64
26919
26920 # Old archive suffix (normally "a").
26921 libext=$libext
26922
26923 # Shared library suffix (normally ".so").
26924 shrext_cmds=$lt_shrext_cmds
26925
26926 # The commands to extract the exported symbol list from a shared archive.
26927 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26928
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
26932
26933 # Do we need the "lib" prefix for modules?
26934 need_lib_prefix=$need_lib_prefix
26935
26936 # Do we need a version for libraries?
26937 need_version=$need_version
26938
26939 # Library versioning type.
26940 version_type=$version_type
26941
26942 # Shared library runtime path variable.
26943 runpath_var=$runpath_var
26944
26945 # Shared library path variable.
26946 shlibpath_var=$shlibpath_var
26947
26948 # Is shlibpath searched before the hard-coded library search path?
26949 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26950
26951 # Format of library name prefix.
26952 libname_spec=$lt_libname_spec
26953
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
26957
26958 # The coded name of the library, if different from the real name.
26959 soname_spec=$lt_soname_spec
26960
26961 # Permission mode override for installation of shared libraries.
26962 install_override_mode=$lt_install_override_mode
26963
26964 # Command to use after installation of a shared archive.
26965 postinstall_cmds=$lt_postinstall_cmds
26966
26967 # Command to use after uninstallation of a shared archive.
26968 postuninstall_cmds=$lt_postuninstall_cmds
26969
26970 # Commands used to finish a libtool library installation in a directory.
26971 finish_cmds=$lt_finish_cmds
26972
26973 # As "finish_cmds", except a single script fragment to be evaled but
26974 # not shown.
26975 finish_eval=$lt_finish_eval
26976
26977 # Whether we should hardcode library paths into libraries.
26978 hardcode_into_libs=$hardcode_into_libs
26979
26980 # Compile-time system search path for libraries.
26981 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26982
26983 # Run-time system search path for libraries.
26984 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26985
26986 # Whether dlopen is supported.
26987 dlopen_support=$enable_dlopen
26988
26989 # Whether dlopen of programs is supported.
26990 dlopen_self=$enable_dlopen_self
26991
26992 # Whether dlopen of statically linked programs is supported.
26993 dlopen_self_static=$enable_dlopen_self_static
26994
26995 # Commands to strip libraries.
26996 old_striplib=$lt_old_striplib
26997 striplib=$lt_striplib
26998
26999
27000 # The linker used to build libraries.
27001 LD=$lt_LD
27002
27003 # How to create reloadable object files.
27004 reload_flag=$lt_reload_flag
27005 reload_cmds=$lt_reload_cmds
27006
27007 # Commands used to build an old-style archive.
27008 old_archive_cmds=$lt_old_archive_cmds
27009
27010 # A language specific compiler.
27011 CC=$lt_compiler
27012
27013 # Is the compiler the GNU compiler?
27014 with_gcc=$GCC
27015
27016 # Compiler flag to turn off builtin functions.
27017 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27018
27019 # Additional compiler flags for building library objects.
27020 pic_flag=$lt_lt_prog_compiler_pic
27021
27022 # How to pass a linker flag through the compiler.
27023 wl=$lt_lt_prog_compiler_wl
27024
27025 # Compiler flag to prevent dynamic linking.
27026 link_static_flag=$lt_lt_prog_compiler_static
27027
27028 # Does compiler simultaneously support -c and -o options?
27029 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27030
27031 # Whether or not to add -lc for building shared libraries.
27032 build_libtool_need_lc=$archive_cmds_need_lc
27033
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
27036
27037 # Compiler flag to allow reflexive dlopens.
27038 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27039
27040 # Compiler flag to generate shared objects directly from archives.
27041 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27042
27043 # Whether the compiler copes with passing no objects directly.
27044 compiler_needs_object=$lt_compiler_needs_object
27045
27046 # Create an old-style archive from a shared archive.
27047 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27048
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
27051
27052 # Commands used to build a shared archive.
27053 archive_cmds=$lt_archive_cmds
27054 archive_expsym_cmds=$lt_archive_expsym_cmds
27055
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
27060
27061 # Whether we are building with GNU ld or not.
27062 with_gnu_ld=$lt_with_gnu_ld
27063
27064 # Flag that allows shared libraries with undefined symbols to be built.
27065 allow_undefined_flag=$lt_allow_undefined_flag
27066
27067 # Flag that enforces no undefined symbols.
27068 no_undefined_flag=$lt_no_undefined_flag
27069
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
27073
27074 # Whether we need a single "-rpath" flag with a separated argument.
27075 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27076
27077 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27078 # DIR into the resulting binary.
27079 hardcode_direct=$hardcode_direct
27080
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
27086
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
27090
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
27094
27095 # Set to "yes" if building a shared library automatically hardcodes DIR
27096 # into the library and all subsequent libraries and executables linked
27097 # against it.
27098 hardcode_automatic=$hardcode_automatic
27099
27100 # Set to yes if linker adds runtime paths of dependent libraries
27101 # to runtime path list.
27102 inherit_rpath=$inherit_rpath
27103
27104 # Whether libtool must link a program against all its dependency libraries.
27105 link_all_deplibs=$link_all_deplibs
27106
27107 # Set to "yes" if exported symbols are required.
27108 always_export_symbols=$always_export_symbols
27109
27110 # The commands to list exported symbols.
27111 export_symbols_cmds=$lt_export_symbols_cmds
27112
27113 # Symbols that should not be listed in the preloaded symbols.
27114 exclude_expsyms=$lt_exclude_expsyms
27115
27116 # Symbols that must always be exported.
27117 include_expsyms=$lt_include_expsyms
27118
27119 # Commands necessary for linking programs (against libraries) with templates.
27120 prelink_cmds=$lt_prelink_cmds
27121
27122 # Commands necessary for finishing linking programs.
27123 postlink_cmds=$lt_postlink_cmds
27124
27125 # Specify filename containing input files.
27126 file_list_spec=$lt_file_list_spec
27127
27128 # How to hardcode a shared library path into an executable.
27129 hardcode_action=$hardcode_action
27130
27131 # The directories searched by this compiler when creating a shared library.
27132 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27133
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
27140
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
27144
27145 # ### END LIBTOOL CONFIG
27146
27147 _LT_EOF
27148
27149   case $host_os in
27150   aix3*)
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
27156   COLLECT_NAMES=
27157   export COLLECT_NAMES
27158 fi
27159 _LT_EOF
27160     ;;
27161   esac
27162
27163
27164 ltmain="$ac_aux_dir/ltmain.sh"
27165
27166
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)
27173
27174   if test x"$xsi_shell" = xyes; then
27175   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27176 func_dirname ()\
27177 {\
27178 \    case ${1} in\
27179 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27180 \      *  ) func_dirname_result="${3}" ;;\
27181 \    esac\
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=:
27186
27187
27188   sed -e '/^func_basename ()$/,/^} # func_basename /c\
27189 func_basename ()\
27190 {\
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=:
27196
27197
27198   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27199 func_dirname_and_basename ()\
27200 {\
27201 \    case ${1} in\
27202 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27203 \      *  ) func_dirname_result="${3}" ;;\
27204 \    esac\
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=:
27210
27211
27212   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27213 func_stripname ()\
27214 {\
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=:
27224
27225
27226   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27227 func_split_long_opt ()\
27228 {\
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=:
27235
27236
27237   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27238 func_split_short_opt ()\
27239 {\
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=:
27246
27247
27248   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27249 func_lo2o ()\
27250 {\
27251 \    case ${1} in\
27252 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27253 \      *)    func_lo2o_result=${1} ;;\
27254 \    esac\
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=:
27259
27260
27261   sed -e '/^func_xform ()$/,/^} # func_xform /c\
27262 func_xform ()\
27263 {\
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=:
27269
27270
27271   sed -e '/^func_arith ()$/,/^} # func_arith /c\
27272 func_arith ()\
27273 {\
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=:
27279
27280
27281   sed -e '/^func_len ()$/,/^} # func_len /c\
27282 func_len ()\
27283 {\
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=:
27289
27290 fi
27291
27292 if test x"$lt_shell_append" = xyes; then
27293   sed -e '/^func_append ()$/,/^} # func_append /c\
27294 func_append ()\
27295 {\
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=:
27301
27302
27303   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27304 func_append_quoted ()\
27305 {\
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=:
27312
27313
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=:
27319 else
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=:
27325 fi
27326
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;}
27330 fi
27331
27332
27333    mv -f "$cfgfile" "$ofile" ||
27334     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27335   chmod +x "$ofile"
27336
27337
27338     cat <<_LT_EOF >> "$ofile"
27339
27340 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27341
27342 # The linker used to build libraries.
27343 LD=$lt_LD_CXX
27344
27345 # How to create reloadable object files.
27346 reload_flag=$lt_reload_flag_CXX
27347 reload_cmds=$lt_reload_cmds_CXX
27348
27349 # Commands used to build an old-style archive.
27350 old_archive_cmds=$lt_old_archive_cmds_CXX
27351
27352 # A language specific compiler.
27353 CC=$lt_compiler_CXX
27354
27355 # Is the compiler the GNU compiler?
27356 with_gcc=$GCC_CXX
27357
27358 # Compiler flag to turn off builtin functions.
27359 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27360
27361 # Additional compiler flags for building library objects.
27362 pic_flag=$lt_lt_prog_compiler_pic_CXX
27363
27364 # How to pass a linker flag through the compiler.
27365 wl=$lt_lt_prog_compiler_wl_CXX
27366
27367 # Compiler flag to prevent dynamic linking.
27368 link_static_flag=$lt_lt_prog_compiler_static_CXX
27369
27370 # Does compiler simultaneously support -c and -o options?
27371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27372
27373 # Whether or not to add -lc for building shared libraries.
27374 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27375
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
27378
27379 # Compiler flag to allow reflexive dlopens.
27380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27381
27382 # Compiler flag to generate shared objects directly from archives.
27383 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27384
27385 # Whether the compiler copes with passing no objects directly.
27386 compiler_needs_object=$lt_compiler_needs_object_CXX
27387
27388 # Create an old-style archive from a shared archive.
27389 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27390
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
27393
27394 # Commands used to build a shared archive.
27395 archive_cmds=$lt_archive_cmds_CXX
27396 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27397
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
27402
27403 # Whether we are building with GNU ld or not.
27404 with_gnu_ld=$lt_with_gnu_ld_CXX
27405
27406 # Flag that allows shared libraries with undefined symbols to be built.
27407 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27408
27409 # Flag that enforces no undefined symbols.
27410 no_undefined_flag=$lt_no_undefined_flag_CXX
27411
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
27415
27416 # Whether we need a single "-rpath" flag with a separated argument.
27417 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27418
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
27422
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
27428
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
27432
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
27436
27437 # Set to "yes" if building a shared library automatically hardcodes DIR
27438 # into the library and all subsequent libraries and executables linked
27439 # against it.
27440 hardcode_automatic=$hardcode_automatic_CXX
27441
27442 # Set to yes if linker adds runtime paths of dependent libraries
27443 # to runtime path list.
27444 inherit_rpath=$inherit_rpath_CXX
27445
27446 # Whether libtool must link a program against all its dependency libraries.
27447 link_all_deplibs=$link_all_deplibs_CXX
27448
27449 # Set to "yes" if exported symbols are required.
27450 always_export_symbols=$always_export_symbols_CXX
27451
27452 # The commands to list exported symbols.
27453 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27454
27455 # Symbols that should not be listed in the preloaded symbols.
27456 exclude_expsyms=$lt_exclude_expsyms_CXX
27457
27458 # Symbols that must always be exported.
27459 include_expsyms=$lt_include_expsyms_CXX
27460
27461 # Commands necessary for linking programs (against libraries) with templates.
27462 prelink_cmds=$lt_prelink_cmds_CXX
27463
27464 # Commands necessary for finishing linking programs.
27465 postlink_cmds=$lt_postlink_cmds_CXX
27466
27467 # Specify filename containing input files.
27468 file_list_spec=$lt_file_list_spec_CXX
27469
27470 # How to hardcode a shared library path into an executable.
27471 hardcode_action=$hardcode_action_CXX
27472
27473 # The directories searched by this compiler when creating a shared library.
27474 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27475
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
27482
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
27486
27487 # ### END LIBTOOL TAG CONFIG: CXX
27488 _LT_EOF
27489
27490  ;;
27491     "sdl2_config":C) chmod a+x sdl2-config ;;
27492     "summary":C) echo -en "$SUMMARY" ;;
27493
27494   esac
27495 done # for ac_tag
27496
27497
27498 as_fn_exit 0
27499 _ACEOF
27500 ac_clean_files=$ac_clean_files_save
27501
27502 test $ac_write_fail = 0 ||
27503   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27504
27505
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
27515   ac_cs_success=:
27516   ac_config_status_args=
27517   test "$silent" = yes &&
27518     ac_config_status_args="$ac_config_status_args --quiet"
27519   exec 5>/dev/null
27520   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27521   exec 5>>config.log
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
27525 fi
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;}
27529 fi
27530