Add indicator
[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 EXTRA_LDFLAGS
634 BUILD_LDFLAGS
635 EXTRA_CFLAGS
636 BUILD_CFLAGS
637 SDLTEST_OBJECTS
638 SDLMAIN_OBJECTS
639 VERSION_OBJECTS
640 OBJECTS
641 INCLUDE
642 ac_aux_dir
643 ENABLE_STATIC_FALSE
644 ENABLE_STATIC_TRUE
645 ENABLE_SHARED_FALSE
646 ENABLE_SHARED_TRUE
647 SDL_RLD_FLAGS
648 SDL_STATIC_LIBS
649 SDL_LIBS
650 SDL_CFLAGS
651 DIRECTFBCONFIG
652 X_EXTRA_LIBS
653 X_LIBS
654 X_PRE_LIBS
655 X_CFLAGS
656 XMKMF
657 ARTSCONFIG
658 PKG_CONFIG
659 ESD_LIBS
660 ESD_CFLAGS
661 ESD_CONFIG
662 ALSA_LIBS
663 ALSA_CFLAGS
664 POW_LIB
665 LIBOBJS
666 ALLOCA
667 WINDRES
668 SET_MAKE
669 INSTALL_DATA
670 INSTALL_SCRIPT
671 INSTALL_PROGRAM
672 CXXCPP
673 ac_ct_CXX
674 CXXFLAGS
675 CXX
676 LT_AGE
677 LT_REVISION
678 LT_CURRENT
679 LT_RELEASE
680 CPP
681 OTOOL64
682 OTOOL
683 LIPO
684 NMEDIT
685 DSYMUTIL
686 MANIFEST_TOOL
687 AWK
688 RANLIB
689 STRIP
690 ac_ct_AR
691 AR
692 LN_S
693 NM
694 ac_ct_DUMPBIN
695 DUMPBIN
696 LD
697 FGREP
698 EGREP
699 GREP
700 SED
701 OBJEXT
702 EXEEXT
703 ac_ct_CC
704 CPPFLAGS
705 LDFLAGS
706 CFLAGS
707 CC
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 LIBTOOL
717 OBJDUMP
718 DLLTOOL
719 AS
720 SDL_VERSION
721 SDL_BINARY_AGE
722 SDL_INTERFACE_AGE
723 SDL_MICRO_VERSION
724 SDL_MINOR_VERSION
725 SDL_MAJOR_VERSION
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 enable_shared
768 enable_static
769 with_pic
770 enable_fast_install
771 with_gnu_ld
772 with_sysroot
773 enable_libtool_lock
774 enable_assertions
775 enable_dependency_tracking
776 enable_libc
777 enable_gcc_atomics
778 enable_atomic
779 enable_audio
780 enable_video
781 enable_render
782 enable_events
783 enable_joystick
784 enable_haptic
785 enable_power
786 enable_filesystem
787 enable_threads
788 enable_timers
789 enable_file
790 enable_loadso
791 enable_cpuinfo
792 enable_assembly
793 enable_ssemath
794 enable_mmx
795 enable_3dnow
796 enable_sse
797 enable_sse2
798 enable_altivec
799 enable_oss
800 enable_alsa
801 with_alsa_prefix
802 with_alsa_inc_prefix
803 enable_alsatest
804 enable_alsa_shared
805 enable_esd
806 with_esd_prefix
807 with_esd_exec_prefix
808 enable_esdtest
809 enable_esd_shared
810 enable_pulseaudio
811 enable_pulseaudio_shared
812 enable_arts
813 enable_arts_shared
814 enable_nas
815 enable_nas_shared
816 enable_sndio
817 enable_sndio_shared
818 enable_diskaudio
819 enable_dummyaudio
820 enable_video_wayland
821 enable_video_wayland_qt_touch
822 enable_wayland_shared
823 enable_video_tizen
824 enable_video_mir
825 enable_mir_shared
826 enable_video_x11
827 with_x
828 enable_x11_shared
829 enable_video_x11_xcursor
830 enable_video_x11_xdbe
831 enable_video_x11_xinerama
832 enable_video_x11_xinput
833 enable_video_x11_xrandr
834 enable_video_x11_scrnsaver
835 enable_video_x11_xshape
836 enable_video_x11_vm
837 enable_video_vivante
838 enable_video_cocoa
839 enable_video_directfb
840 enable_directfb_shared
841 enable_fusionsound
842 enable_fusionsound_shared
843 enable_video_dummy
844 enable_video_opengl
845 enable_video_opengles
846 enable_video_opengles1
847 enable_video_opengles2
848 enable_video_vulkan
849 enable_libudev
850 enable_dbus
851 enable_ibus
852 enable_input_tslib
853 enable_pthreads
854 enable_pthread_sem
855 enable_directx
856 enable_sdl_dlopen
857 enable_clock_gettime
858 enable_rpath
859 enable_render_d3d
860 '
861       ac_precious_vars='build_alias
862 host_alias
863 target_alias
864 CC
865 CFLAGS
866 LDFLAGS
867 LIBS
868 CPPFLAGS
869 CPP
870 CXX
871 CXXFLAGS
872 CCC
873 CXXCPP
874 XMKMF'
875
876
877 # Initialize some variables set by options.
878 ac_init_help=
879 ac_init_version=false
880 ac_unrecognized_opts=
881 ac_unrecognized_sep=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
884 cache_file=/dev/null
885 exec_prefix=NONE
886 no_create=
887 no_recursion=
888 prefix=NONE
889 program_prefix=NONE
890 program_suffix=NONE
891 program_transform_name=s,x,x,
892 silent=
893 site=
894 srcdir=
895 verbose=
896 x_includes=NONE
897 x_libraries=NONE
898
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE}'
916 infodir='${datarootdir}/info'
917 htmldir='${docdir}'
918 dvidir='${docdir}'
919 pdfdir='${docdir}'
920 psdir='${docdir}'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
924
925 ac_prev=
926 ac_dashdash=
927 for ac_option
928 do
929   # If the previous option needs an argument, assign it.
930   if test -n "$ac_prev"; then
931     eval $ac_prev=\$ac_option
932     ac_prev=
933     continue
934   fi
935
936   case $ac_option in
937   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938   *=)   ac_optarg= ;;
939   *)    ac_optarg=yes ;;
940   esac
941
942   # Accept the important Cygnus configure options, so we can diagnose typos.
943
944   case $ac_dashdash$ac_option in
945   --)
946     ac_dashdash=yes ;;
947
948   -bindir | --bindir | --bindi | --bind | --bin | --bi)
949     ac_prev=bindir ;;
950   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951     bindir=$ac_optarg ;;
952
953   -build | --build | --buil | --bui | --bu)
954     ac_prev=build_alias ;;
955   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956     build_alias=$ac_optarg ;;
957
958   -cache-file | --cache-file | --cache-fil | --cache-fi \
959   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960     ac_prev=cache_file ;;
961   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963     cache_file=$ac_optarg ;;
964
965   --config-cache | -C)
966     cache_file=config.cache ;;
967
968   -datadir | --datadir | --datadi | --datad)
969     ac_prev=datadir ;;
970   -datadir=* | --datadir=* | --datadi=* | --datad=*)
971     datadir=$ac_optarg ;;
972
973   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974   | --dataroo | --dataro | --datar)
975     ac_prev=datarootdir ;;
976   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978     datarootdir=$ac_optarg ;;
979
980   -disable-* | --disable-*)
981     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982     # Reject names that are not valid shell variable names.
983     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984       as_fn_error $? "invalid feature name: $ac_useropt"
985     ac_useropt_orig=$ac_useropt
986     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987     case $ac_user_opts in
988       *"
989 "enable_$ac_useropt"
990 "*) ;;
991       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992          ac_unrecognized_sep=', ';;
993     esac
994     eval enable_$ac_useropt=no ;;
995
996   -docdir | --docdir | --docdi | --doc | --do)
997     ac_prev=docdir ;;
998   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999     docdir=$ac_optarg ;;
1000
1001   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002     ac_prev=dvidir ;;
1003   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004     dvidir=$ac_optarg ;;
1005
1006   -enable-* | --enable-*)
1007     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008     # Reject names that are not valid shell variable names.
1009     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010       as_fn_error $? "invalid feature name: $ac_useropt"
1011     ac_useropt_orig=$ac_useropt
1012     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013     case $ac_user_opts in
1014       *"
1015 "enable_$ac_useropt"
1016 "*) ;;
1017       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018          ac_unrecognized_sep=', ';;
1019     esac
1020     eval enable_$ac_useropt=\$ac_optarg ;;
1021
1022   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024   | --exec | --exe | --ex)
1025     ac_prev=exec_prefix ;;
1026   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028   | --exec=* | --exe=* | --ex=*)
1029     exec_prefix=$ac_optarg ;;
1030
1031   -gas | --gas | --ga | --g)
1032     # Obsolete; use --with-gas.
1033     with_gas=yes ;;
1034
1035   -help | --help | --hel | --he | -h)
1036     ac_init_help=long ;;
1037   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038     ac_init_help=recursive ;;
1039   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040     ac_init_help=short ;;
1041
1042   -host | --host | --hos | --ho)
1043     ac_prev=host_alias ;;
1044   -host=* | --host=* | --hos=* | --ho=*)
1045     host_alias=$ac_optarg ;;
1046
1047   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048     ac_prev=htmldir ;;
1049   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050   | --ht=*)
1051     htmldir=$ac_optarg ;;
1052
1053   -includedir | --includedir | --includedi | --included | --include \
1054   | --includ | --inclu | --incl | --inc)
1055     ac_prev=includedir ;;
1056   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057   | --includ=* | --inclu=* | --incl=* | --inc=*)
1058     includedir=$ac_optarg ;;
1059
1060   -infodir | --infodir | --infodi | --infod | --info | --inf)
1061     ac_prev=infodir ;;
1062   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063     infodir=$ac_optarg ;;
1064
1065   -libdir | --libdir | --libdi | --libd)
1066     ac_prev=libdir ;;
1067   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068     libdir=$ac_optarg ;;
1069
1070   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071   | --libexe | --libex | --libe)
1072     ac_prev=libexecdir ;;
1073   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074   | --libexe=* | --libex=* | --libe=*)
1075     libexecdir=$ac_optarg ;;
1076
1077   -localedir | --localedir | --localedi | --localed | --locale)
1078     ac_prev=localedir ;;
1079   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080     localedir=$ac_optarg ;;
1081
1082   -localstatedir | --localstatedir | --localstatedi | --localstated \
1083   | --localstate | --localstat | --localsta | --localst | --locals)
1084     ac_prev=localstatedir ;;
1085   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087     localstatedir=$ac_optarg ;;
1088
1089   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090     ac_prev=mandir ;;
1091   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092     mandir=$ac_optarg ;;
1093
1094   -nfp | --nfp | --nf)
1095     # Obsolete; use --without-fp.
1096     with_fp=no ;;
1097
1098   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099   | --no-cr | --no-c | -n)
1100     no_create=yes ;;
1101
1102   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104     no_recursion=yes ;;
1105
1106   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108   | --oldin | --oldi | --old | --ol | --o)
1109     ac_prev=oldincludedir ;;
1110   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113     oldincludedir=$ac_optarg ;;
1114
1115   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116     ac_prev=prefix ;;
1117   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118     prefix=$ac_optarg ;;
1119
1120   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121   | --program-pre | --program-pr | --program-p)
1122     ac_prev=program_prefix ;;
1123   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125     program_prefix=$ac_optarg ;;
1126
1127   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128   | --program-suf | --program-su | --program-s)
1129     ac_prev=program_suffix ;;
1130   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132     program_suffix=$ac_optarg ;;
1133
1134   -program-transform-name | --program-transform-name \
1135   | --program-transform-nam | --program-transform-na \
1136   | --program-transform-n | --program-transform- \
1137   | --program-transform | --program-transfor \
1138   | --program-transfo | --program-transf \
1139   | --program-trans | --program-tran \
1140   | --progr-tra | --program-tr | --program-t)
1141     ac_prev=program_transform_name ;;
1142   -program-transform-name=* | --program-transform-name=* \
1143   | --program-transform-nam=* | --program-transform-na=* \
1144   | --program-transform-n=* | --program-transform-=* \
1145   | --program-transform=* | --program-transfor=* \
1146   | --program-transfo=* | --program-transf=* \
1147   | --program-trans=* | --program-tran=* \
1148   | --progr-tra=* | --program-tr=* | --program-t=*)
1149     program_transform_name=$ac_optarg ;;
1150
1151   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152     ac_prev=pdfdir ;;
1153   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154     pdfdir=$ac_optarg ;;
1155
1156   -psdir | --psdir | --psdi | --psd | --ps)
1157     ac_prev=psdir ;;
1158   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159     psdir=$ac_optarg ;;
1160
1161   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162   | -silent | --silent | --silen | --sile | --sil)
1163     silent=yes ;;
1164
1165   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166     ac_prev=sbindir ;;
1167   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168   | --sbi=* | --sb=*)
1169     sbindir=$ac_optarg ;;
1170
1171   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173   | --sharedst | --shareds | --shared | --share | --shar \
1174   | --sha | --sh)
1175     ac_prev=sharedstatedir ;;
1176   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179   | --sha=* | --sh=*)
1180     sharedstatedir=$ac_optarg ;;
1181
1182   -site | --site | --sit)
1183     ac_prev=site ;;
1184   -site=* | --site=* | --sit=*)
1185     site=$ac_optarg ;;
1186
1187   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188     ac_prev=srcdir ;;
1189   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190     srcdir=$ac_optarg ;;
1191
1192   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193   | --syscon | --sysco | --sysc | --sys | --sy)
1194     ac_prev=sysconfdir ;;
1195   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197     sysconfdir=$ac_optarg ;;
1198
1199   -target | --target | --targe | --targ | --tar | --ta | --t)
1200     ac_prev=target_alias ;;
1201   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202     target_alias=$ac_optarg ;;
1203
1204   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205     verbose=yes ;;
1206
1207   -version | --version | --versio | --versi | --vers | -V)
1208     ac_init_version=: ;;
1209
1210   -with-* | --with-*)
1211     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212     # Reject names that are not valid shell variable names.
1213     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214       as_fn_error $? "invalid package name: $ac_useropt"
1215     ac_useropt_orig=$ac_useropt
1216     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217     case $ac_user_opts in
1218       *"
1219 "with_$ac_useropt"
1220 "*) ;;
1221       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222          ac_unrecognized_sep=', ';;
1223     esac
1224     eval with_$ac_useropt=\$ac_optarg ;;
1225
1226   -without-* | --without-*)
1227     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228     # Reject names that are not valid shell variable names.
1229     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230       as_fn_error $? "invalid package name: $ac_useropt"
1231     ac_useropt_orig=$ac_useropt
1232     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233     case $ac_user_opts in
1234       *"
1235 "with_$ac_useropt"
1236 "*) ;;
1237       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238          ac_unrecognized_sep=', ';;
1239     esac
1240     eval with_$ac_useropt=no ;;
1241
1242   --x)
1243     # Obsolete; use --with-x.
1244     with_x=yes ;;
1245
1246   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247   | --x-incl | --x-inc | --x-in | --x-i)
1248     ac_prev=x_includes ;;
1249   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251     x_includes=$ac_optarg ;;
1252
1253   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255     ac_prev=x_libraries ;;
1256   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258     x_libraries=$ac_optarg ;;
1259
1260   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1261 Try \`$0 --help' for more information"
1262     ;;
1263
1264   *=*)
1265     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266     # Reject names that are not valid shell variable names.
1267     case $ac_envvar in #(
1268       '' | [0-9]* | *[!_$as_cr_alnum]* )
1269       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270     esac
1271     eval $ac_envvar=\$ac_optarg
1272     export $ac_envvar ;;
1273
1274   *)
1275     # FIXME: should be removed in autoconf 3.0.
1276     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1280     ;;
1281
1282   esac
1283 done
1284
1285 if test -n "$ac_prev"; then
1286   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287   as_fn_error $? "missing argument to $ac_option"
1288 fi
1289
1290 if test -n "$ac_unrecognized_opts"; then
1291   case $enable_option_checking in
1292     no) ;;
1293     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1294     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295   esac
1296 fi
1297
1298 # Check all directory arguments for consistency.
1299 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300                 datadir sysconfdir sharedstatedir localstatedir includedir \
1301                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302                 libdir localedir mandir
1303 do
1304   eval ac_val=\$$ac_var
1305   # Remove trailing slashes.
1306   case $ac_val in
1307     */ )
1308       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309       eval $ac_var=\$ac_val;;
1310   esac
1311   # Be sure to have absolute directory names.
1312   case $ac_val in
1313     [\\/$]* | ?:[\\/]* )  continue;;
1314     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315   esac
1316   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317 done
1318
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1322 build=$build_alias
1323 host=$host_alias
1324 target=$target_alias
1325
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x; then
1328   if test "x$build_alias" = x; then
1329     cross_compiling=maybe
1330   elif test "x$build_alias" != "x$host_alias"; then
1331     cross_compiling=yes
1332   fi
1333 fi
1334
1335 ac_tool_prefix=
1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337
1338 test "$silent" = yes && exec 6>/dev/null
1339
1340
1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di=`ls -di .` &&
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344   as_fn_error $? "working directory cannot be determined"
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346   as_fn_error $? "pwd does not report name of working directory"
1347
1348
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351   ac_srcdir_defaulted=yes
1352   # Try the directory containing this script, then the parent directory.
1353   ac_confdir=`$as_dirname -- "$as_myself" ||
1354 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355          X"$as_myself" : 'X\(//\)[^/]' \| \
1356          X"$as_myself" : 'X\(//\)$' \| \
1357          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358 $as_echo X"$as_myself" |
1359     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360             s//\1/
1361             q
1362           }
1363           /^X\(\/\/\)[^/].*/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\/\)$/{
1368             s//\1/
1369             q
1370           }
1371           /^X\(\/\).*/{
1372             s//\1/
1373             q
1374           }
1375           s/.*/./; q'`
1376   srcdir=$ac_confdir
1377   if test ! -r "$srcdir/$ac_unique_file"; then
1378     srcdir=..
1379   fi
1380 else
1381   ac_srcdir_defaulted=no
1382 fi
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386 fi
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390         pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393   srcdir=.
1394 fi
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_env_${ac_var}_value=\$${ac_var}
1404   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1407
1408 #
1409 # Report the --help message.
1410 #
1411 if test "$ac_init_help" = "long"; then
1412   # Omit some internal or obsolete options to make the list less imposing.
1413   # This message is too long to be a string in the A/UX 3.1 sh.
1414   cat <<_ACEOF
1415 \`configure' configures this package to adapt to many kinds of systems.
1416
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE.  See below for descriptions of some of the useful variables.
1421
1422 Defaults for the options are specified in brackets.
1423
1424 Configuration:
1425   -h, --help              display this help and exit
1426       --help=short        display options specific to this package
1427       --help=recursive    display the short help of all the included packages
1428   -V, --version           display version information and exit
1429   -q, --quiet, --silent   do not print \`checking ...' messages
1430       --cache-file=FILE   cache test results in FILE [disabled]
1431   -C, --config-cache      alias for \`--cache-file=config.cache'
1432   -n, --no-create         do not create output files
1433       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1434
1435 Installation directories:
1436   --prefix=PREFIX         install architecture-independent files in PREFIX
1437                           [$ac_default_prefix]
1438   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1439                           [PREFIX]
1440
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1445
1446 For better control, use the options below.
1447
1448 Fine tuning of the installation directories:
1449   --bindir=DIR            user executables [EPREFIX/bin]
1450   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1451   --libexecdir=DIR        program executables [EPREFIX/libexec]
1452   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1453   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1454   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1455   --libdir=DIR            object code libraries [EPREFIX/lib]
1456   --includedir=DIR        C header files [PREFIX/include]
1457   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1458   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1459   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1460   --infodir=DIR           info documentation [DATAROOTDIR/info]
1461   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1462   --mandir=DIR            man documentation [DATAROOTDIR/man]
1463   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1464   --htmldir=DIR           html documentation [DOCDIR]
1465   --dvidir=DIR            dvi documentation [DOCDIR]
1466   --pdfdir=DIR            pdf documentation [DOCDIR]
1467   --psdir=DIR             ps documentation [DOCDIR]
1468 _ACEOF
1469
1470   cat <<\_ACEOF
1471
1472 X features:
1473   --x-includes=DIR    X include files are in DIR
1474   --x-libraries=DIR   X library files are in DIR
1475
1476 System types:
1477   --build=BUILD     configure for building on BUILD [guessed]
1478   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1479 _ACEOF
1480 fi
1481
1482 if test -n "$ac_init_help"; then
1483
1484   cat <<\_ACEOF
1485
1486 Optional Features:
1487   --disable-option-checking  ignore unrecognized --enable/--with options
1488   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1489   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1490   --enable-shared[=PKGS]  build shared libraries [default=yes]
1491   --enable-static[=PKGS]  build static libraries [default=yes]
1492   --enable-fast-install[=PKGS]
1493                           optimize for fast installation [default=yes]
1494   --disable-libtool-lock  avoid locking (might break parallel builds)
1495   --enable-assertions     Enable internal sanity checks
1496                           (auto/disabled/release/enabled/paranoid)
1497                           [[default=auto]]
1498   --enable-dependency-tracking
1499                           Use gcc -MMD -MT dependency tracking [[default=yes]]
1500   --enable-libc           Use the system C library [[default=yes]]
1501   --enable-gcc-atomics    Use gcc builtin atomics [[default=yes]]
1502   --enable-atomic         Enable the atomic operations subsystem
1503                           [[default=yes]]
1504   --enable-audio          Enable the audio subsystem [[default=yes]]
1505   --enable-video          Enable the video subsystem [[default=yes]]
1506   --enable-render         Enable the render subsystem [[default=yes]]
1507   --enable-events         Enable the events subsystem [[default=yes]]
1508   --enable-joystick       Enable the joystick subsystem [[default=yes]]
1509   --enable-haptic         Enable the haptic (force feedback) subsystem
1510                           [[default=yes]]
1511   --enable-power          Enable the power subsystem [[default=yes]]
1512   --enable-filesystem     Enable the filesystem subsystem [[default=yes]]
1513   --enable-threads        Enable the threading subsystem [[default=yes]]
1514   --enable-timers         Enable the timer subsystem [[default=yes]]
1515   --enable-file           Enable the file subsystem [[default=yes]]
1516   --enable-loadso         Enable the shared object loading subsystem
1517                           [[default=yes]]
1518   --enable-cpuinfo        Enable the cpuinfo subsystem [[default=yes]]
1519   --enable-assembly       Enable assembly routines [[default=yes]]
1520   --enable-ssemath        Allow GCC to use SSE floating point math
1521                           [[default=no]]
1522   --enable-mmx            use MMX assembly routines [[default=yes]]
1523   --enable-3dnow          use 3DNow! assembly routines [[default=yes]]
1524   --enable-sse            use SSE assembly routines [[default=yes]]
1525   --enable-sse2           use SSE2 assembly routines [[default=no]]
1526   --enable-altivec        use Altivec assembly routines [[default=yes]]
1527   --enable-oss            support the OSS audio API [[default=maybe]]
1528   --enable-alsa           support the ALSA audio API [[default=yes]]
1529   --disable-alsatest      Do not try to compile and run a test Alsa program
1530   --enable-alsa-shared    dynamically load ALSA audio support [[default=yes]]
1531   --enable-esd            support the Enlightened Sound Daemon [[default=yes]]
1532   --disable-esdtest       Do not try to compile and run a test ESD program
1533   --enable-esd-shared     dynamically load ESD audio support [[default=yes]]
1534   --enable-pulseaudio     use PulseAudio [[default=yes]]
1535   --enable-pulseaudio-shared
1536                           dynamically load PulseAudio support [[default=yes]]
1537   --enable-arts           support the Analog Real Time Synthesizer
1538                           [[default=yes]]
1539   --enable-arts-shared    dynamically load aRts audio support [[default=yes]]
1540   --enable-nas            support the NAS audio API [[default=yes]]
1541   --enable-nas-shared     dynamically load NAS audio support [[default=yes]]
1542   --enable-sndio          support the sndio audio API [[default=yes]]
1543   --enable-sndio-shared   dynamically load sndio audio support [[default=yes]]
1544   --enable-diskaudio      support the disk writer audio driver [[default=yes]]
1545   --enable-dummyaudio     support the dummy audio driver [[default=yes]]
1546   --enable-video-wayland  use Wayland video driver [[default=yes]]
1547   --enable-video-wayland-qt-touch
1548                           QtWayland server support for Wayland video driver
1549                           [[default=yes]]
1550   --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
1551   --enable-video-tizen    use tizen video driver [[default=yes]]
1552   --enable-video-mir      use Mir video driver [[default=yes]]
1553   --enable-mir-shared     dynamically load Mir support [[default=maybe]]
1554   --enable-video-x11      use X11 video driver [[default=yes]]
1555   --enable-x11-shared     dynamically load X11 support [[default=maybe]]
1556   --enable-video-x11-xcursor
1557                           enable X11 Xcursor support [[default=yes]]
1558   --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
1559   --enable-video-x11-xinerama
1560                           enable X11 Xinerama support [[default=yes]]
1561   --enable-video-x11-xinput
1562                           enable X11 XInput extension for manymouse, tablets,
1563                           etc [[default=yes]]
1564   --enable-video-x11-xrandr
1565                           enable X11 Xrandr extension for fullscreen
1566                           [[default=yes]]
1567   --enable-video-x11-scrnsaver
1568                           enable X11 screensaver extension [[default=yes]]
1569   --enable-video-x11-xshape
1570                           enable X11 XShape support [[default=yes]]
1571   --enable-video-x11-vm   use X11 VM extension for fullscreen [[default=yes]]
1572   --enable-video-vivante  use Vivante EGL video driver [[default=yes]]
1573   --enable-video-cocoa    use Cocoa video driver [[default=yes]]
1574   --enable-video-directfb use DirectFB video driver [[default=no]]
1575   --enable-directfb-shared
1576                           dynamically load directfb support [[default=yes]]
1577   --enable-fusionsound    use FusionSound audio driver [[default=no]]
1578   --enable-fusionsound-shared
1579                           dynamically load fusionsound audio support
1580                           [[default=yes]]
1581   --enable-video-dummy    use dummy video driver [[default=yes]]
1582   --enable-video-opengl   include OpenGL support [[default=yes]]
1583   --enable-video-opengles include OpenGL ES support [[default=yes]]
1584   --enable-video-opengles1
1585                           include OpenGL ES 1.1 support [[default=yes]]
1586   --enable-video-opengles2
1587                           include OpenGL ES 2.0 support [[default=yes]]
1588   --enable-video-vulkan   include Vulkan support [[default=yes]]
1589   --enable-libudev        enable libudev support [[default=yes]]
1590   --enable-dbus           enable D-Bus support [[default=yes]]
1591   --enable-ibus           enable IBus support [[default=yes]]
1592   --enable-input-tslib    use the Touchscreen library for input
1593                           [[default=yes]]
1594   --enable-pthreads       use POSIX threads for multi-threading
1595                           [[default=yes]]
1596   --enable-pthread-sem    use pthread semaphores [[default=yes]]
1597   --enable-directx        use DirectX for Windows audio/video [[default=yes]]
1598   --enable-sdl-dlopen     use dlopen for shared object loading [[default=yes]]
1599   --enable-clock_gettime  use clock_gettime() instead of gettimeofday() on
1600                           UNIX [[default=yes]]
1601   --enable-rpath          use an rpath when linking SDL [[default=yes]]
1602   --enable-render-d3d     enable the Direct3D render driver [[default=yes]]
1603
1604 Optional Packages:
1605   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1606   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1607   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1608                           both]
1609   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1610   --with-sysroot=DIR Search for dependent libraries within DIR
1611                         (or the compiler's sysroot if not specified).
1612   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
1613   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
1614   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
1615   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1616   --with-x                use the X Window System
1617
1618 Some influential environment variables:
1619   CC          C compiler command
1620   CFLAGS      C compiler flags
1621   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1622               nonstandard directory <lib dir>
1623   LIBS        libraries to pass to the linker, e.g. -l<library>
1624   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1625               you have headers in a nonstandard directory <include dir>
1626   CPP         C preprocessor
1627   CXX         C++ compiler command
1628   CXXFLAGS    C++ compiler flags
1629   CXXCPP      C++ preprocessor
1630   XMKMF       Path to xmkmf, Makefile generator for X Window System
1631
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1634
1635 Report bugs to the package provider.
1636 _ACEOF
1637 ac_status=$?
1638 fi
1639
1640 if test "$ac_init_help" = "recursive"; then
1641   # If there are subdirs, report their specific --help.
1642   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643     test -d "$ac_dir" ||
1644       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645       continue
1646     ac_builddir=.
1647
1648 case "$ac_dir" in
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *)
1651   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652   # A ".." for each directory in $ac_dir_suffix.
1653   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654   case $ac_top_builddir_sub in
1655   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657   esac ;;
1658 esac
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1663
1664 case $srcdir in
1665   .)  # We are building in place.
1666     ac_srcdir=.
1667     ac_top_srcdir=$ac_top_builddir_sub
1668     ac_abs_top_srcdir=$ac_pwd ;;
1669   [\\/]* | ?:[\\/]* )  # Absolute name.
1670     ac_srcdir=$srcdir$ac_dir_suffix;
1671     ac_top_srcdir=$srcdir
1672     ac_abs_top_srcdir=$srcdir ;;
1673   *) # Relative name.
1674     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675     ac_top_srcdir=$ac_top_build_prefix$srcdir
1676     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 esac
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680     cd "$ac_dir" || { ac_status=$?; continue; }
1681     # Check for guested configure.
1682     if test -f "$ac_srcdir/configure.gnu"; then
1683       echo &&
1684       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685     elif test -f "$ac_srcdir/configure"; then
1686       echo &&
1687       $SHELL "$ac_srcdir/configure" --help=recursive
1688     else
1689       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690     fi || ac_status=$?
1691     cd "$ac_pwd" || { ac_status=$?; break; }
1692   done
1693 fi
1694
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1697   cat <<\_ACEOF
1698 configure
1699 generated by GNU Autoconf 2.69
1700
1701 Copyright (C) 2012 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1704 _ACEOF
1705   exit
1706 fi
1707
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1711
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1716 {
1717   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718   rm -f conftest.$ac_objext
1719   if { { ac_try="$ac_compile"
1720 case "(($ac_try" in
1721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722   *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726   (eval "$ac_compile") 2>conftest.err
1727   ac_status=$?
1728   if test -s conftest.err; then
1729     grep -v '^ *+' conftest.err >conftest.er1
1730     cat conftest.er1 >&5
1731     mv -f conftest.er1 conftest.err
1732   fi
1733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734   test $ac_status = 0; } && {
1735          test -z "$ac_c_werror_flag" ||
1736          test ! -s conftest.err
1737        } && test -s conftest.$ac_objext; then :
1738   ac_retval=0
1739 else
1740   $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743         ac_retval=1
1744 fi
1745   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746   as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_compile
1749
1750 # ac_fn_c_try_link LINENO
1751 # -----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_c_try_link ()
1754 {
1755   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756   rm -f conftest.$ac_objext conftest$ac_exeext
1757   if { { ac_try="$ac_link"
1758 case "(($ac_try" in
1759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760   *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764   (eval "$ac_link") 2>conftest.err
1765   ac_status=$?
1766   if test -s conftest.err; then
1767     grep -v '^ *+' conftest.err >conftest.er1
1768     cat conftest.er1 >&5
1769     mv -f conftest.er1 conftest.err
1770   fi
1771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772   test $ac_status = 0; } && {
1773          test -z "$ac_c_werror_flag" ||
1774          test ! -s conftest.err
1775        } && test -s conftest$ac_exeext && {
1776          test "$cross_compiling" = yes ||
1777          test -x conftest$ac_exeext
1778        }; then :
1779   ac_retval=0
1780 else
1781   $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784         ac_retval=1
1785 fi
1786   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1787   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1788   # interfere with the next link command; also delete a directory that is
1789   # left behind by Apple's compiler.  We do this before executing the actions.
1790   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792   as_fn_set_status $ac_retval
1793
1794 } # ac_fn_c_try_link
1795
1796 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_c_check_header_compile ()
1801 {
1802   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806   $as_echo_n "(cached) " >&6
1807 else
1808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h.  */
1810 $4
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"; then :
1814   eval "$3=yes"
1815 else
1816   eval "$3=no"
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 fi
1820 eval ac_res=\$$3
1821                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825 } # ac_fn_c_check_header_compile
1826
1827 # ac_fn_c_try_cpp LINENO
1828 # ----------------------
1829 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_c_try_cpp ()
1831 {
1832   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833   if { { ac_try="$ac_cpp conftest.$ac_ext"
1834 case "(($ac_try" in
1835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836   *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1841   ac_status=$?
1842   if test -s conftest.err; then
1843     grep -v '^ *+' conftest.err >conftest.er1
1844     cat conftest.er1 >&5
1845     mv -f conftest.er1 conftest.err
1846   fi
1847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848   test $ac_status = 0; } > conftest.i && {
1849          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1850          test ! -s conftest.err
1851        }; then :
1852   ac_retval=0
1853 else
1854   $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1856
1857     ac_retval=1
1858 fi
1859   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860   as_fn_set_status $ac_retval
1861
1862 } # ac_fn_c_try_cpp
1863
1864 # ac_fn_c_try_run LINENO
1865 # ----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867 # that executables *can* be run.
1868 ac_fn_c_try_run ()
1869 {
1870   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871   if { { ac_try="$ac_link"
1872 case "(($ac_try" in
1873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874   *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878   (eval "$ac_link") 2>&5
1879   ac_status=$?
1880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882   { { case "(($ac_try" in
1883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884   *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888   (eval "$ac_try") 2>&5
1889   ac_status=$?
1890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891   test $ac_status = 0; }; }; then :
1892   ac_retval=0
1893 else
1894   $as_echo "$as_me: program exited with status $ac_status" >&5
1895        $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898        ac_retval=$ac_status
1899 fi
1900   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902   as_fn_set_status $ac_retval
1903
1904 } # ac_fn_c_try_run
1905
1906 # ac_fn_c_check_func LINENO FUNC VAR
1907 # ----------------------------------
1908 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909 ac_fn_c_check_func ()
1910 {
1911   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if eval \${$3+:} false; then :
1915   $as_echo_n "(cached) " >&6
1916 else
1917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h.  */
1919 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1921 #define $2 innocuous_$2
1922
1923 /* System header to define __stub macros and hopefully few prototypes,
1924     which can conflict with char $2 (); below.
1925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926     <limits.h> exists even on freestanding compilers.  */
1927
1928 #ifdef __STDC__
1929 # include <limits.h>
1930 #else
1931 # include <assert.h>
1932 #endif
1933
1934 #undef $2
1935
1936 /* Override any GCC internal prototype to avoid an error.
1937    Use char because int might match the return type of a GCC
1938    builtin and then its argument prototype would still apply.  */
1939 #ifdef __cplusplus
1940 extern "C"
1941 #endif
1942 char $2 ();
1943 /* The GNU C library defines this for functions which it implements
1944     to always fail with ENOSYS.  Some functions are actually named
1945     something starting with __ and the normal name is an alias.  */
1946 #if defined __stub_$2 || defined __stub___$2
1947 choke me
1948 #endif
1949
1950 int
1951 main ()
1952 {
1953 return $2 ();
1954   ;
1955   return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_link "$LINENO"; then :
1959   eval "$3=yes"
1960 else
1961   eval "$3=no"
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext \
1964     conftest$ac_exeext conftest.$ac_ext
1965 fi
1966 eval ac_res=\$$3
1967                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_c_check_func
1972
1973 # ac_fn_cxx_try_compile LINENO
1974 # ----------------------------
1975 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1976 ac_fn_cxx_try_compile ()
1977 {
1978   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979   rm -f conftest.$ac_objext
1980   if { { ac_try="$ac_compile"
1981 case "(($ac_try" in
1982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983   *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987   (eval "$ac_compile") 2>conftest.err
1988   ac_status=$?
1989   if test -s conftest.err; then
1990     grep -v '^ *+' conftest.err >conftest.er1
1991     cat conftest.er1 >&5
1992     mv -f conftest.er1 conftest.err
1993   fi
1994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995   test $ac_status = 0; } && {
1996          test -z "$ac_cxx_werror_flag" ||
1997          test ! -s conftest.err
1998        } && test -s conftest.$ac_objext; then :
1999   ac_retval=0
2000 else
2001   $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004         ac_retval=1
2005 fi
2006   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007   as_fn_set_status $ac_retval
2008
2009 } # ac_fn_cxx_try_compile
2010
2011 # ac_fn_cxx_try_cpp LINENO
2012 # ------------------------
2013 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2014 ac_fn_cxx_try_cpp ()
2015 {
2016   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017   if { { ac_try="$ac_cpp conftest.$ac_ext"
2018 case "(($ac_try" in
2019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020   *) ac_try_echo=$ac_try;;
2021 esac
2022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2025   ac_status=$?
2026   if test -s conftest.err; then
2027     grep -v '^ *+' conftest.err >conftest.er1
2028     cat conftest.er1 >&5
2029     mv -f conftest.er1 conftest.err
2030   fi
2031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032   test $ac_status = 0; } > conftest.i && {
2033          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2034          test ! -s conftest.err
2035        }; then :
2036   ac_retval=0
2037 else
2038   $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2040
2041     ac_retval=1
2042 fi
2043   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044   as_fn_set_status $ac_retval
2045
2046 } # ac_fn_cxx_try_cpp
2047
2048 # ac_fn_cxx_try_link LINENO
2049 # -------------------------
2050 # Try to link conftest.$ac_ext, and return whether this succeeded.
2051 ac_fn_cxx_try_link ()
2052 {
2053   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054   rm -f conftest.$ac_objext conftest$ac_exeext
2055   if { { ac_try="$ac_link"
2056 case "(($ac_try" in
2057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058   *) ac_try_echo=$ac_try;;
2059 esac
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062   (eval "$ac_link") 2>conftest.err
2063   ac_status=$?
2064   if test -s conftest.err; then
2065     grep -v '^ *+' conftest.err >conftest.er1
2066     cat conftest.er1 >&5
2067     mv -f conftest.er1 conftest.err
2068   fi
2069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070   test $ac_status = 0; } && {
2071          test -z "$ac_cxx_werror_flag" ||
2072          test ! -s conftest.err
2073        } && test -s conftest$ac_exeext && {
2074          test "$cross_compiling" = yes ||
2075          test -x conftest$ac_exeext
2076        }; then :
2077   ac_retval=0
2078 else
2079   $as_echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2081
2082         ac_retval=1
2083 fi
2084   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2085   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2086   # interfere with the next link command; also delete a directory that is
2087   # left behind by Apple's compiler.  We do this before executing the actions.
2088   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2089   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090   as_fn_set_status $ac_retval
2091
2092 } # ac_fn_cxx_try_link
2093
2094 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2095 # -------------------------------------------------------
2096 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2097 # the include files in INCLUDES and setting the cache variable VAR
2098 # accordingly.
2099 ac_fn_c_check_header_mongrel ()
2100 {
2101   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102   if eval \${$3+:} false; then :
2103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if eval \${$3+:} false; then :
2106   $as_echo_n "(cached) " >&6
2107 fi
2108 eval ac_res=\$$3
2109                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 else
2112   # Is the header compilable?
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2114 $as_echo_n "checking $2 usability... " >&6; }
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h.  */
2117 $4
2118 #include <$2>
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121   ac_header_compiler=yes
2122 else
2123   ac_header_compiler=no
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2127 $as_echo "$ac_header_compiler" >&6; }
2128
2129 # Is the header present?
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2131 $as_echo_n "checking $2 presence... " >&6; }
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h.  */
2134 #include <$2>
2135 _ACEOF
2136 if ac_fn_c_try_cpp "$LINENO"; then :
2137   ac_header_preproc=yes
2138 else
2139   ac_header_preproc=no
2140 fi
2141 rm -f conftest.err conftest.i conftest.$ac_ext
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2143 $as_echo "$ac_header_preproc" >&6; }
2144
2145 # So?  What about this header?
2146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2147   yes:no: )
2148     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2149 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2150     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2151 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2152     ;;
2153   no:yes:* )
2154     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2155 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2156     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2157 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2158     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2159 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2160     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2161 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2162     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2163 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2164     ;;
2165 esac
2166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2167 $as_echo_n "checking for $2... " >&6; }
2168 if eval \${$3+:} false; then :
2169   $as_echo_n "(cached) " >&6
2170 else
2171   eval "$3=\$ac_header_compiler"
2172 fi
2173 eval ac_res=\$$3
2174                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 fi
2177   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178
2179 } # ac_fn_c_check_header_mongrel
2180
2181 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2182 # -------------------------------------------
2183 # Tests whether TYPE exists after having included INCLUDES, setting cache
2184 # variable VAR accordingly.
2185 ac_fn_c_check_type ()
2186 {
2187   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if eval \${$3+:} false; then :
2191   $as_echo_n "(cached) " >&6
2192 else
2193   eval "$3=no"
2194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h.  */
2196 $4
2197 int
2198 main ()
2199 {
2200 if (sizeof ($2))
2201          return 0;
2202   ;
2203   return 0;
2204 }
2205 _ACEOF
2206 if ac_fn_c_try_compile "$LINENO"; then :
2207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h.  */
2209 $4
2210 int
2211 main ()
2212 {
2213 if (sizeof (($2)))
2214             return 0;
2215   ;
2216   return 0;
2217 }
2218 _ACEOF
2219 if ac_fn_c_try_compile "$LINENO"; then :
2220
2221 else
2222   eval "$3=yes"
2223 fi
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 fi
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 fi
2228 eval ac_res=\$$3
2229                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230 $as_echo "$ac_res" >&6; }
2231   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2232
2233 } # ac_fn_c_check_type
2234
2235 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2236 # ----------------------------------------------------
2237 # Tries to find if the field MEMBER exists in type AGGR, after including
2238 # INCLUDES, setting cache variable VAR accordingly.
2239 ac_fn_c_check_member ()
2240 {
2241   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2243 $as_echo_n "checking for $2.$3... " >&6; }
2244 if eval \${$4+:} false; then :
2245   $as_echo_n "(cached) " >&6
2246 else
2247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h.  */
2249 $5
2250 int
2251 main ()
2252 {
2253 static $2 ac_aggr;
2254 if (ac_aggr.$3)
2255 return 0;
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 if ac_fn_c_try_compile "$LINENO"; then :
2261   eval "$4=yes"
2262 else
2263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h.  */
2265 $5
2266 int
2267 main ()
2268 {
2269 static $2 ac_aggr;
2270 if (sizeof ac_aggr.$3)
2271 return 0;
2272   ;
2273   return 0;
2274 }
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"; then :
2277   eval "$4=yes"
2278 else
2279   eval "$4=no"
2280 fi
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 fi
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 fi
2285 eval ac_res=\$$4
2286                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289
2290 } # ac_fn_c_check_member
2291 cat >config.log <<_ACEOF
2292 This file contains any messages produced by compilers while
2293 running configure, to aid debugging if configure makes a mistake.
2294
2295 It was created by $as_me, which was
2296 generated by GNU Autoconf 2.69.  Invocation command line was
2297
2298   $ $0 $@
2299
2300 _ACEOF
2301 exec 5>>config.log
2302 {
2303 cat <<_ASUNAME
2304 ## --------- ##
2305 ## Platform. ##
2306 ## --------- ##
2307
2308 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2309 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2310 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2311 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2312 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2313
2314 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2315 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2316
2317 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2318 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2319 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2320 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2321 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2322 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2323 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2324
2325 _ASUNAME
2326
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2329 do
2330   IFS=$as_save_IFS
2331   test -z "$as_dir" && as_dir=.
2332     $as_echo "PATH: $as_dir"
2333   done
2334 IFS=$as_save_IFS
2335
2336 } >&5
2337
2338 cat >&5 <<_ACEOF
2339
2340
2341 ## ----------- ##
2342 ## Core tests. ##
2343 ## ----------- ##
2344
2345 _ACEOF
2346
2347
2348 # Keep a trace of the command line.
2349 # Strip out --no-create and --no-recursion so they do not pile up.
2350 # Strip out --silent because we don't want to record it for future runs.
2351 # Also quote any args containing shell meta-characters.
2352 # Make two passes to allow for proper duplicate-argument suppression.
2353 ac_configure_args=
2354 ac_configure_args0=
2355 ac_configure_args1=
2356 ac_must_keep_next=false
2357 for ac_pass in 1 2
2358 do
2359   for ac_arg
2360   do
2361     case $ac_arg in
2362     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2363     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2364     | -silent | --silent | --silen | --sile | --sil)
2365       continue ;;
2366     *\'*)
2367       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2368     esac
2369     case $ac_pass in
2370     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2371     2)
2372       as_fn_append ac_configure_args1 " '$ac_arg'"
2373       if test $ac_must_keep_next = true; then
2374         ac_must_keep_next=false # Got value, back to normal.
2375       else
2376         case $ac_arg in
2377           *=* | --config-cache | -C | -disable-* | --disable-* \
2378           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2379           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2380           | -with-* | --with-* | -without-* | --without-* | --x)
2381             case "$ac_configure_args0 " in
2382               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2383             esac
2384             ;;
2385           -* ) ac_must_keep_next=true ;;
2386         esac
2387       fi
2388       as_fn_append ac_configure_args " '$ac_arg'"
2389       ;;
2390     esac
2391   done
2392 done
2393 { ac_configure_args0=; unset ac_configure_args0;}
2394 { ac_configure_args1=; unset ac_configure_args1;}
2395
2396 # When interrupted or exit'd, cleanup temporary files, and complete
2397 # config.log.  We remove comments because anyway the quotes in there
2398 # would cause problems or look ugly.
2399 # WARNING: Use '\'' to represent an apostrophe within the trap.
2400 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2401 trap 'exit_status=$?
2402   # Save into config.log some information that might help in debugging.
2403   {
2404     echo
2405
2406     $as_echo "## ---------------- ##
2407 ## Cache variables. ##
2408 ## ---------------- ##"
2409     echo
2410     # The following way of writing the cache mishandles newlines in values,
2411 (
2412   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2413     eval ac_val=\$$ac_var
2414     case $ac_val in #(
2415     *${as_nl}*)
2416       case $ac_var in #(
2417       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2418 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2419       esac
2420       case $ac_var in #(
2421       _ | IFS | as_nl) ;; #(
2422       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2423       *) { eval $ac_var=; unset $ac_var;} ;;
2424       esac ;;
2425     esac
2426   done
2427   (set) 2>&1 |
2428     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2429     *${as_nl}ac_space=\ *)
2430       sed -n \
2431         "s/'\''/'\''\\\\'\'''\''/g;
2432           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2433       ;; #(
2434     *)
2435       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2436       ;;
2437     esac |
2438     sort
2439 )
2440     echo
2441
2442     $as_echo "## ----------------- ##
2443 ## Output variables. ##
2444 ## ----------------- ##"
2445     echo
2446     for ac_var in $ac_subst_vars
2447     do
2448       eval ac_val=\$$ac_var
2449       case $ac_val in
2450       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2451       esac
2452       $as_echo "$ac_var='\''$ac_val'\''"
2453     done | sort
2454     echo
2455
2456     if test -n "$ac_subst_files"; then
2457       $as_echo "## ------------------- ##
2458 ## File substitutions. ##
2459 ## ------------------- ##"
2460       echo
2461       for ac_var in $ac_subst_files
2462       do
2463         eval ac_val=\$$ac_var
2464         case $ac_val in
2465         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2466         esac
2467         $as_echo "$ac_var='\''$ac_val'\''"
2468       done | sort
2469       echo
2470     fi
2471
2472     if test -s confdefs.h; then
2473       $as_echo "## ----------- ##
2474 ## confdefs.h. ##
2475 ## ----------- ##"
2476       echo
2477       cat confdefs.h
2478       echo
2479     fi
2480     test "$ac_signal" != 0 &&
2481       $as_echo "$as_me: caught signal $ac_signal"
2482     $as_echo "$as_me: exit $exit_status"
2483   } >&5
2484   rm -f core *.core core.conftest.* &&
2485     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2486     exit $exit_status
2487 ' 0
2488 for ac_signal in 1 2 13 15; do
2489   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2490 done
2491 ac_signal=0
2492
2493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2494 rm -f -r conftest* confdefs.h
2495
2496 $as_echo "/* confdefs.h */" > confdefs.h
2497
2498 # Predefined preprocessor variables.
2499
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_NAME "$PACKAGE_NAME"
2502 _ACEOF
2503
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2506 _ACEOF
2507
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2510 _ACEOF
2511
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_STRING "$PACKAGE_STRING"
2514 _ACEOF
2515
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2518 _ACEOF
2519
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_URL "$PACKAGE_URL"
2522 _ACEOF
2523
2524
2525 # Let the site file select an alternate cache file if it wants to.
2526 # Prefer an explicitly selected file to automatically selected ones.
2527 ac_site_file1=NONE
2528 ac_site_file2=NONE
2529 if test -n "$CONFIG_SITE"; then
2530   # We do not want a PATH search for config.site.
2531   case $CONFIG_SITE in #((
2532     -*)  ac_site_file1=./$CONFIG_SITE;;
2533     */*) ac_site_file1=$CONFIG_SITE;;
2534     *)   ac_site_file1=./$CONFIG_SITE;;
2535   esac
2536 elif test "x$prefix" != xNONE; then
2537   ac_site_file1=$prefix/share/config.site
2538   ac_site_file2=$prefix/etc/config.site
2539 else
2540   ac_site_file1=$ac_default_prefix/share/config.site
2541   ac_site_file2=$ac_default_prefix/etc/config.site
2542 fi
2543 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2544 do
2545   test "x$ac_site_file" = xNONE && continue
2546   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2547     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2548 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2549     sed 's/^/| /' "$ac_site_file" >&5
2550     . "$ac_site_file" \
2551       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553 as_fn_error $? "failed to load site script $ac_site_file
2554 See \`config.log' for more details" "$LINENO" 5; }
2555   fi
2556 done
2557
2558 if test -r "$cache_file"; then
2559   # Some versions of bash will fail to source /dev/null (special files
2560   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2561   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2562     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2563 $as_echo "$as_me: loading cache $cache_file" >&6;}
2564     case $cache_file in
2565       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2566       *)                      . "./$cache_file";;
2567     esac
2568   fi
2569 else
2570   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2571 $as_echo "$as_me: creating cache $cache_file" >&6;}
2572   >$cache_file
2573 fi
2574
2575 # Check that the precious variables saved in the cache have kept the same
2576 # value.
2577 ac_cache_corrupted=false
2578 for ac_var in $ac_precious_vars; do
2579   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2580   eval ac_new_set=\$ac_env_${ac_var}_set
2581   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2582   eval ac_new_val=\$ac_env_${ac_var}_value
2583   case $ac_old_set,$ac_new_set in
2584     set,)
2585       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2586 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2587       ac_cache_corrupted=: ;;
2588     ,set)
2589       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2590 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2591       ac_cache_corrupted=: ;;
2592     ,);;
2593     *)
2594       if test "x$ac_old_val" != "x$ac_new_val"; then
2595         # differences in whitespace do not lead to failure.
2596         ac_old_val_w=`echo x $ac_old_val`
2597         ac_new_val_w=`echo x $ac_new_val`
2598         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2599           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2600 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2601           ac_cache_corrupted=:
2602         else
2603           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2604 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2605           eval $ac_var=\$ac_old_val
2606         fi
2607         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2608 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2609         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2610 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2611       fi;;
2612   esac
2613   # Pass precious variables to config.status.
2614   if test "$ac_new_set" = set; then
2615     case $ac_new_val in
2616     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2617     *) ac_arg=$ac_var=$ac_new_val ;;
2618     esac
2619     case " $ac_configure_args " in
2620       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2621       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2622     esac
2623   fi
2624 done
2625 if $ac_cache_corrupted; then
2626   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2628   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2629 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2630   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2631 fi
2632 ## -------------------- ##
2633 ## Main body of script. ##
2634 ## -------------------- ##
2635
2636 ac_ext=c
2637 ac_cpp='$CPP $CPPFLAGS'
2638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641
2642
2643 ac_config_headers="$ac_config_headers include/SDL_config.h"
2644
2645 ac_aux_dir=
2646 for ac_dir in build-scripts "$srcdir"/build-scripts; do
2647   if test -f "$ac_dir/install-sh"; then
2648     ac_aux_dir=$ac_dir
2649     ac_install_sh="$ac_aux_dir/install-sh -c"
2650     break
2651   elif test -f "$ac_dir/install.sh"; then
2652     ac_aux_dir=$ac_dir
2653     ac_install_sh="$ac_aux_dir/install.sh -c"
2654     break
2655   elif test -f "$ac_dir/shtool"; then
2656     ac_aux_dir=$ac_dir
2657     ac_install_sh="$ac_aux_dir/shtool install -c"
2658     break
2659   fi
2660 done
2661 if test -z "$ac_aux_dir"; then
2662   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
2663 fi
2664
2665 # These three variables are undocumented and unsupported,
2666 # and are intended to be withdrawn in a future Autoconf release.
2667 # They can cause serious problems if a builder's source tree is in a directory
2668 # whose full name contains unusual characters.
2669 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2670 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2671 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2672
2673
2674
2675
2676 orig_CFLAGS="$CFLAGS"
2677
2678 #
2679 # Making releases:
2680 # Edit include/SDL_version.h and change the version, then:
2681 #   SDL_MICRO_VERSION += 1;
2682 #   SDL_INTERFACE_AGE += 1;
2683 #   SDL_BINARY_AGE += 1;
2684 # if any functions have been added, set SDL_INTERFACE_AGE to 0.
2685 # if backwards compatibility has been broken,
2686 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
2687 #
2688 SDL_MAJOR_VERSION=2
2689 SDL_MINOR_VERSION=0
2690 SDL_MICRO_VERSION=4
2691 SDL_INTERFACE_AGE=0
2692 SDL_BINARY_AGE=4
2693 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
2694
2695
2696
2697
2698
2699
2700
2701
2702 # libtool versioning
2703 case `pwd` in
2704   *\ * | *\     *)
2705     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2706 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2707 esac
2708
2709
2710
2711 macro_version='2.4.2'
2712 macro_revision='1.3337'
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726 ltmain="$ac_aux_dir/ltmain.sh"
2727
2728 # Make sure we can run config.sub.
2729 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2730   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2731
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2733 $as_echo_n "checking build system type... " >&6; }
2734 if ${ac_cv_build+:} false; then :
2735   $as_echo_n "(cached) " >&6
2736 else
2737   ac_build_alias=$build_alias
2738 test "x$ac_build_alias" = x &&
2739   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2740 test "x$ac_build_alias" = x &&
2741   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2742 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2743   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2744
2745 fi
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2747 $as_echo "$ac_cv_build" >&6; }
2748 case $ac_cv_build in
2749 *-*-*) ;;
2750 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2751 esac
2752 build=$ac_cv_build
2753 ac_save_IFS=$IFS; IFS='-'
2754 set x $ac_cv_build
2755 shift
2756 build_cpu=$1
2757 build_vendor=$2
2758 shift; shift
2759 # Remember, the first character of IFS is used to create $*,
2760 # except with old shells:
2761 build_os=$*
2762 IFS=$ac_save_IFS
2763 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2764
2765
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2767 $as_echo_n "checking host system type... " >&6; }
2768 if ${ac_cv_host+:} false; then :
2769   $as_echo_n "(cached) " >&6
2770 else
2771   if test "x$host_alias" = x; then
2772   ac_cv_host=$ac_cv_build
2773 else
2774   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2776 fi
2777
2778 fi
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2780 $as_echo "$ac_cv_host" >&6; }
2781 case $ac_cv_host in
2782 *-*-*) ;;
2783 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2784 esac
2785 host=$ac_cv_host
2786 ac_save_IFS=$IFS; IFS='-'
2787 set x $ac_cv_host
2788 shift
2789 host_cpu=$1
2790 host_vendor=$2
2791 shift; shift
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2794 host_os=$*
2795 IFS=$ac_save_IFS
2796 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2797
2798
2799 # Backslashify metacharacters that are still active within
2800 # double-quoted strings.
2801 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2802
2803 # Same as above, but do not quote variable references.
2804 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2805
2806 # Sed substitution to delay expansion of an escaped shell variable in a
2807 # double_quote_subst'ed string.
2808 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2809
2810 # Sed substitution to delay expansion of an escaped single quote.
2811 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2812
2813 # Sed substitution to avoid accidental globbing in evaled expressions
2814 no_glob_subst='s/\*/\\\*/g'
2815
2816 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2817 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2818 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2819
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2821 $as_echo_n "checking how to print strings... " >&6; }
2822 # Test print first, because it will be a builtin if present.
2823 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2824    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2825   ECHO='print -r --'
2826 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2827   ECHO='printf %s\n'
2828 else
2829   # Use this function as a fallback that always works.
2830   func_fallback_echo ()
2831   {
2832     eval 'cat <<_LTECHO_EOF
2833 $1
2834 _LTECHO_EOF'
2835   }
2836   ECHO='func_fallback_echo'
2837 fi
2838
2839 # func_echo_all arg...
2840 # Invoke $ECHO with all args, space-separated.
2841 func_echo_all ()
2842 {
2843     $ECHO ""
2844 }
2845
2846 case "$ECHO" in
2847   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2848 $as_echo "printf" >&6; } ;;
2849   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2850 $as_echo "print -r" >&6; } ;;
2851   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2852 $as_echo "cat" >&6; } ;;
2853 esac
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868 ac_ext=c
2869 ac_cpp='$CPP $CPPFLAGS'
2870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2873 if test -n "$ac_tool_prefix"; then
2874   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_CC+:} false; then :
2879   $as_echo_n "(cached) " >&6
2880 else
2881   if test -n "$CC"; then
2882   ac_cv_prog_CC="$CC" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887   IFS=$as_save_IFS
2888   test -z "$as_dir" && as_dir=.
2889     for ac_exec_ext in '' $ac_executable_extensions; do
2890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893     break 2
2894   fi
2895 done
2896   done
2897 IFS=$as_save_IFS
2898
2899 fi
2900 fi
2901 CC=$ac_cv_prog_CC
2902 if test -n "$CC"; then
2903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904 $as_echo "$CC" >&6; }
2905 else
2906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2908 fi
2909
2910
2911 fi
2912 if test -z "$ac_cv_prog_CC"; then
2913   ac_ct_CC=$CC
2914   # Extract the first word of "gcc", so it can be a program name with args.
2915 set dummy gcc; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2919   $as_echo_n "(cached) " >&6
2920 else
2921   if test -n "$ac_ct_CC"; then
2922   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927   IFS=$as_save_IFS
2928   test -z "$as_dir" && as_dir=.
2929     for ac_exec_ext in '' $ac_executable_extensions; do
2930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931     ac_cv_prog_ac_ct_CC="gcc"
2932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933     break 2
2934   fi
2935 done
2936   done
2937 IFS=$as_save_IFS
2938
2939 fi
2940 fi
2941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2942 if test -n "$ac_ct_CC"; then
2943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2944 $as_echo "$ac_ct_CC" >&6; }
2945 else
2946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2948 fi
2949
2950   if test "x$ac_ct_CC" = x; then
2951     CC=""
2952   else
2953     case $cross_compiling:$ac_tool_warned in
2954 yes:)
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2957 ac_tool_warned=yes ;;
2958 esac
2959     CC=$ac_ct_CC
2960   fi
2961 else
2962   CC="$ac_cv_prog_CC"
2963 fi
2964
2965 if test -z "$CC"; then
2966           if test -n "$ac_tool_prefix"; then
2967     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2968 set dummy ${ac_tool_prefix}cc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_CC+:} false; then :
2972   $as_echo_n "(cached) " >&6
2973 else
2974   if test -n "$CC"; then
2975   ac_cv_prog_CC="$CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980   IFS=$as_save_IFS
2981   test -z "$as_dir" && as_dir=.
2982     for ac_exec_ext in '' $ac_executable_extensions; do
2983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984     ac_cv_prog_CC="${ac_tool_prefix}cc"
2985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986     break 2
2987   fi
2988 done
2989   done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 $as_echo "$CC" >&6; }
2998 else
2999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 fi
3002
3003
3004   fi
3005 fi
3006 if test -z "$CC"; then
3007   # Extract the first word of "cc", so it can be a program name with args.
3008 set dummy cc; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if ${ac_cv_prog_CC+:} false; then :
3012   $as_echo_n "(cached) " >&6
3013 else
3014   if test -n "$CC"; then
3015   ac_cv_prog_CC="$CC" # Let the user override the test.
3016 else
3017   ac_prog_rejected=no
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021   IFS=$as_save_IFS
3022   test -z "$as_dir" && as_dir=.
3023     for ac_exec_ext in '' $ac_executable_extensions; do
3024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3026        ac_prog_rejected=yes
3027        continue
3028      fi
3029     ac_cv_prog_CC="cc"
3030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031     break 2
3032   fi
3033 done
3034   done
3035 IFS=$as_save_IFS
3036
3037 if test $ac_prog_rejected = yes; then
3038   # We found a bogon in the path, so make sure we never use it.
3039   set dummy $ac_cv_prog_CC
3040   shift
3041   if test $# != 0; then
3042     # We chose a different compiler from the bogus one.
3043     # However, it has the same basename, so the bogon will be chosen
3044     # first if we set CC to just the basename; use the full file name.
3045     shift
3046     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3047   fi
3048 fi
3049 fi
3050 fi
3051 CC=$ac_cv_prog_CC
3052 if test -n "$CC"; then
3053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3054 $as_echo "$CC" >&6; }
3055 else
3056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3058 fi
3059
3060
3061 fi
3062 if test -z "$CC"; then
3063   if test -n "$ac_tool_prefix"; then
3064   for ac_prog in cl.exe
3065   do
3066     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_CC+:} false; then :
3071   $as_echo_n "(cached) " >&6
3072 else
3073   if test -n "$CC"; then
3074   ac_cv_prog_CC="$CC" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079   IFS=$as_save_IFS
3080   test -z "$as_dir" && as_dir=.
3081     for ac_exec_ext in '' $ac_executable_extensions; do
3082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085     break 2
3086   fi
3087 done
3088   done
3089 IFS=$as_save_IFS
3090
3091 fi
3092 fi
3093 CC=$ac_cv_prog_CC
3094 if test -n "$CC"; then
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096 $as_echo "$CC" >&6; }
3097 else
3098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 fi
3101
3102
3103     test -n "$CC" && break
3104   done
3105 fi
3106 if test -z "$CC"; then
3107   ac_ct_CC=$CC
3108   for ac_prog in cl.exe
3109 do
3110   # Extract the first word of "$ac_prog", so it can be a program name with args.
3111 set dummy $ac_prog; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3115   $as_echo_n "(cached) " >&6
3116 else
3117   if test -n "$ac_ct_CC"; then
3118   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123   IFS=$as_save_IFS
3124   test -z "$as_dir" && as_dir=.
3125     for ac_exec_ext in '' $ac_executable_extensions; do
3126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127     ac_cv_prog_ac_ct_CC="$ac_prog"
3128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129     break 2
3130   fi
3131 done
3132   done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3138 if test -n "$ac_ct_CC"; then
3139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3140 $as_echo "$ac_ct_CC" >&6; }
3141 else
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146
3147   test -n "$ac_ct_CC" && break
3148 done
3149
3150   if test "x$ac_ct_CC" = x; then
3151     CC=""
3152   else
3153     case $cross_compiling:$ac_tool_warned in
3154 yes:)
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157 ac_tool_warned=yes ;;
3158 esac
3159     CC=$ac_ct_CC
3160   fi
3161 fi
3162
3163 fi
3164
3165
3166 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error $? "no acceptable C compiler found in \$PATH
3169 See \`config.log' for more details" "$LINENO" 5; }
3170
3171 # Provide some information about the compiler.
3172 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3173 set X $ac_compile
3174 ac_compiler=$2
3175 for ac_option in --version -v -V -qversion; do
3176   { { ac_try="$ac_compiler $ac_option >&5"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182 $as_echo "$ac_try_echo"; } >&5
3183   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3184   ac_status=$?
3185   if test -s conftest.err; then
3186     sed '10a\
3187 ... rest of stderr output deleted ...
3188          10q' conftest.err >conftest.er1
3189     cat conftest.er1 >&5
3190   fi
3191   rm -f conftest.er1 conftest.err
3192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193   test $ac_status = 0; }
3194 done
3195
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h.  */
3198
3199 int
3200 main ()
3201 {
3202
3203   ;
3204   return 0;
3205 }
3206 _ACEOF
3207 ac_clean_files_save=$ac_clean_files
3208 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3209 # Try to create an executable without -o first, disregard a.out.
3210 # It will help us diagnose broken compilers, and finding out an intuition
3211 # of exeext.
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3213 $as_echo_n "checking whether the C compiler works... " >&6; }
3214 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3215
3216 # The possible output files:
3217 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3218
3219 ac_rmfiles=
3220 for ac_file in $ac_files
3221 do
3222   case $ac_file in
3223     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3224     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3225   esac
3226 done
3227 rm -f $ac_rmfiles
3228
3229 if { { ac_try="$ac_link_default"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236   (eval "$ac_link_default") 2>&5
3237   ac_status=$?
3238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239   test $ac_status = 0; }; then :
3240   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3241 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3242 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3243 # so that the user can short-circuit this test for compilers unknown to
3244 # Autoconf.
3245 for ac_file in $ac_files ''
3246 do
3247   test -f "$ac_file" || continue
3248   case $ac_file in
3249     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3250         ;;
3251     [ab].out )
3252         # We found the default executable, but exeext='' is most
3253         # certainly right.
3254         break;;
3255     *.* )
3256         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3257         then :; else
3258            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3259         fi
3260         # We set ac_cv_exeext here because the later test for it is not
3261         # safe: cross compilers may not add the suffix if given an `-o'
3262         # argument, so we may need to know it at that point already.
3263         # Even if this section looks crufty: it has the advantage of
3264         # actually working.
3265         break;;
3266     * )
3267         break;;
3268   esac
3269 done
3270 test "$ac_cv_exeext" = no && ac_cv_exeext=
3271
3272 else
3273   ac_file=''
3274 fi
3275 if test -z "$ac_file"; then :
3276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3278 $as_echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3280
3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 as_fn_error 77 "C compiler cannot create executables
3284 See \`config.log' for more details" "$LINENO" 5; }
3285 else
3286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287 $as_echo "yes" >&6; }
3288 fi
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3290 $as_echo_n "checking for C compiler default output file name... " >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3292 $as_echo "$ac_file" >&6; }
3293 ac_exeext=$ac_cv_exeext
3294
3295 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3296 ac_clean_files=$ac_clean_files_save
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3298 $as_echo_n "checking for suffix of executables... " >&6; }
3299 if { { ac_try="$ac_link"
3300 case "(($ac_try" in
3301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302   *) ac_try_echo=$ac_try;;
3303 esac
3304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3305 $as_echo "$ac_try_echo"; } >&5
3306   (eval "$ac_link") 2>&5
3307   ac_status=$?
3308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309   test $ac_status = 0; }; then :
3310   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3311 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3312 # work properly (i.e., refer to `conftest.exe'), while it won't with
3313 # `rm'.
3314 for ac_file in conftest.exe conftest conftest.*; do
3315   test -f "$ac_file" || continue
3316   case $ac_file in
3317     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3318     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3319           break;;
3320     * ) break;;
3321   esac
3322 done
3323 else
3324   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3327 See \`config.log' for more details" "$LINENO" 5; }
3328 fi
3329 rm -f conftest conftest$ac_cv_exeext
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3331 $as_echo "$ac_cv_exeext" >&6; }
3332
3333 rm -f conftest.$ac_ext
3334 EXEEXT=$ac_cv_exeext
3335 ac_exeext=$EXEEXT
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h.  */
3338 #include <stdio.h>
3339 int
3340 main ()
3341 {
3342 FILE *f = fopen ("conftest.out", "w");
3343  return ferror (f) || fclose (f) != 0;
3344
3345   ;
3346   return 0;
3347 }
3348 _ACEOF
3349 ac_clean_files="$ac_clean_files conftest.out"
3350 # Check that the compiler produces executables we can run.  If not, either
3351 # the compiler is broken, or we cross compile.
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3353 $as_echo_n "checking whether we are cross compiling... " >&6; }
3354 if test "$cross_compiling" != yes; then
3355   { { ac_try="$ac_link"
3356 case "(($ac_try" in
3357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358   *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362   (eval "$ac_link") 2>&5
3363   ac_status=$?
3364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365   test $ac_status = 0; }
3366   if { ac_try='./conftest$ac_cv_exeext'
3367   { { case "(($ac_try" in
3368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369   *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372 $as_echo "$ac_try_echo"; } >&5
3373   (eval "$ac_try") 2>&5
3374   ac_status=$?
3375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376   test $ac_status = 0; }; }; then
3377     cross_compiling=no
3378   else
3379     if test "$cross_compiling" = maybe; then
3380         cross_compiling=yes
3381     else
3382         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 as_fn_error $? "cannot run C compiled programs.
3385 If you meant to cross compile, use \`--host'.
3386 See \`config.log' for more details" "$LINENO" 5; }
3387     fi
3388   fi
3389 fi
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3391 $as_echo "$cross_compiling" >&6; }
3392
3393 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3394 ac_clean_files=$ac_clean_files_save
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3396 $as_echo_n "checking for suffix of object files... " >&6; }
3397 if ${ac_cv_objext+:} false; then :
3398   $as_echo_n "(cached) " >&6
3399 else
3400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h.  */
3402
3403 int
3404 main ()
3405 {
3406
3407   ;
3408   return 0;
3409 }
3410 _ACEOF
3411 rm -f conftest.o conftest.obj
3412 if { { ac_try="$ac_compile"
3413 case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 $as_echo "$ac_try_echo"; } >&5
3419   (eval "$ac_compile") 2>&5
3420   ac_status=$?
3421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422   test $ac_status = 0; }; then :
3423   for ac_file in conftest.o conftest.obj conftest.*; do
3424   test -f "$ac_file" || continue;
3425   case $ac_file in
3426     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3427     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3428        break;;
3429   esac
3430 done
3431 else
3432   $as_echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3434
3435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437 as_fn_error $? "cannot compute suffix of object files: cannot compile
3438 See \`config.log' for more details" "$LINENO" 5; }
3439 fi
3440 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3441 fi
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3443 $as_echo "$ac_cv_objext" >&6; }
3444 OBJEXT=$ac_cv_objext
3445 ac_objext=$OBJEXT
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3447 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3448 if ${ac_cv_c_compiler_gnu+:} false; then :
3449   $as_echo_n "(cached) " >&6
3450 else
3451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h.  */
3453
3454 int
3455 main ()
3456 {
3457 #ifndef __GNUC__
3458        choke me
3459 #endif
3460
3461   ;
3462   return 0;
3463 }
3464 _ACEOF
3465 if ac_fn_c_try_compile "$LINENO"; then :
3466   ac_compiler_gnu=yes
3467 else
3468   ac_compiler_gnu=no
3469 fi
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3472
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3475 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3476 if test $ac_compiler_gnu = yes; then
3477   GCC=yes
3478 else
3479   GCC=
3480 fi
3481 ac_test_CFLAGS=${CFLAGS+set}
3482 ac_save_CFLAGS=$CFLAGS
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3484 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3485 if ${ac_cv_prog_cc_g+:} false; then :
3486   $as_echo_n "(cached) " >&6
3487 else
3488   ac_save_c_werror_flag=$ac_c_werror_flag
3489    ac_c_werror_flag=yes
3490    ac_cv_prog_cc_g=no
3491    CFLAGS="-g"
3492    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h.  */
3494
3495 int
3496 main ()
3497 {
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 if ac_fn_c_try_compile "$LINENO"; then :
3504   ac_cv_prog_cc_g=yes
3505 else
3506   CFLAGS=""
3507       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h.  */
3509
3510 int
3511 main ()
3512 {
3513
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 if ac_fn_c_try_compile "$LINENO"; then :
3519
3520 else
3521   ac_c_werror_flag=$ac_save_c_werror_flag
3522          CFLAGS="-g"
3523          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h.  */
3525
3526 int
3527 main ()
3528 {
3529
3530   ;
3531   return 0;
3532 }
3533 _ACEOF
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535   ac_cv_prog_cc_g=yes
3536 fi
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 fi
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 fi
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542    ac_c_werror_flag=$ac_save_c_werror_flag
3543 fi
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3545 $as_echo "$ac_cv_prog_cc_g" >&6; }
3546 if test "$ac_test_CFLAGS" = set; then
3547   CFLAGS=$ac_save_CFLAGS
3548 elif test $ac_cv_prog_cc_g = yes; then
3549   if test "$GCC" = yes; then
3550     CFLAGS="-g -O2"
3551   else
3552     CFLAGS="-g"
3553   fi
3554 else
3555   if test "$GCC" = yes; then
3556     CFLAGS="-O2"
3557   else
3558     CFLAGS=
3559   fi
3560 fi
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3562 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3563 if ${ac_cv_prog_cc_c89+:} false; then :
3564   $as_echo_n "(cached) " >&6
3565 else
3566   ac_cv_prog_cc_c89=no
3567 ac_save_CC=$CC
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h.  */
3570 #include <stdarg.h>
3571 #include <stdio.h>
3572 struct stat;
3573 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3574 struct buf { int x; };
3575 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3576 static char *e (p, i)
3577      char **p;
3578      int i;
3579 {
3580   return p[i];
3581 }
3582 static char *f (char * (*g) (char **, int), char **p, ...)
3583 {
3584   char *s;
3585   va_list v;
3586   va_start (v,p);
3587   s = g (p, va_arg (v,int));
3588   va_end (v);
3589   return s;
3590 }
3591
3592 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3593    function prototypes and stuff, but not '\xHH' hex character constants.
3594    These don't provoke an error unfortunately, instead are silently treated
3595    as 'x'.  The following induces an error, until -std is added to get
3596    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3597    array size at least.  It's necessary to write '\x00'==0 to get something
3598    that's true only with -std.  */
3599 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3600
3601 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3602    inside strings and character constants.  */
3603 #define FOO(x) 'x'
3604 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3605
3606 int test (int i, double x);
3607 struct s1 {int (*f) (int a);};
3608 struct s2 {int (*f) (double a);};
3609 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3610 int argc;
3611 char **argv;
3612 int
3613 main ()
3614 {
3615 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3616   ;
3617   return 0;
3618 }
3619 _ACEOF
3620 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3621         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3622 do
3623   CC="$ac_save_CC $ac_arg"
3624   if ac_fn_c_try_compile "$LINENO"; then :
3625   ac_cv_prog_cc_c89=$ac_arg
3626 fi
3627 rm -f core conftest.err conftest.$ac_objext
3628   test "x$ac_cv_prog_cc_c89" != "xno" && break
3629 done
3630 rm -f conftest.$ac_ext
3631 CC=$ac_save_CC
3632
3633 fi
3634 # AC_CACHE_VAL
3635 case "x$ac_cv_prog_cc_c89" in
3636   x)
3637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3638 $as_echo "none needed" >&6; } ;;
3639   xno)
3640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3641 $as_echo "unsupported" >&6; } ;;
3642   *)
3643     CC="$CC $ac_cv_prog_cc_c89"
3644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3645 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3646 esac
3647 if test "x$ac_cv_prog_cc_c89" != xno; then :
3648
3649 fi
3650
3651 ac_ext=c
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3658 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3659 if ${ac_cv_path_SED+:} false; then :
3660   $as_echo_n "(cached) " >&6
3661 else
3662             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3663      for ac_i in 1 2 3 4 5 6 7; do
3664        ac_script="$ac_script$as_nl$ac_script"
3665      done
3666      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3667      { ac_script=; unset ac_script;}
3668      if test -z "$SED"; then
3669   ac_path_SED_found=false
3670   # Loop through the user's path and test for each of PROGNAME-LIST
3671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3673 do
3674   IFS=$as_save_IFS
3675   test -z "$as_dir" && as_dir=.
3676     for ac_prog in sed gsed; do
3677     for ac_exec_ext in '' $ac_executable_extensions; do
3678       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3679       as_fn_executable_p "$ac_path_SED" || continue
3680 # Check for GNU ac_path_SED and select it if it is found.
3681   # Check for GNU $ac_path_SED
3682 case `"$ac_path_SED" --version 2>&1` in
3683 *GNU*)
3684   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3685 *)
3686   ac_count=0
3687   $as_echo_n 0123456789 >"conftest.in"
3688   while :
3689   do
3690     cat "conftest.in" "conftest.in" >"conftest.tmp"
3691     mv "conftest.tmp" "conftest.in"
3692     cp "conftest.in" "conftest.nl"
3693     $as_echo '' >> "conftest.nl"
3694     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3695     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3696     as_fn_arith $ac_count + 1 && ac_count=$as_val
3697     if test $ac_count -gt ${ac_path_SED_max-0}; then
3698       # Best one so far, save it but keep looking for a better one
3699       ac_cv_path_SED="$ac_path_SED"
3700       ac_path_SED_max=$ac_count
3701     fi
3702     # 10*(2^10) chars as input seems more than enough
3703     test $ac_count -gt 10 && break
3704   done
3705   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3706 esac
3707
3708       $ac_path_SED_found && break 3
3709     done
3710   done
3711   done
3712 IFS=$as_save_IFS
3713   if test -z "$ac_cv_path_SED"; then
3714     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3715   fi
3716 else
3717   ac_cv_path_SED=$SED
3718 fi
3719
3720 fi
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3722 $as_echo "$ac_cv_path_SED" >&6; }
3723  SED="$ac_cv_path_SED"
3724   rm -f conftest.sed
3725
3726 test -z "$SED" && SED=sed
3727 Xsed="$SED -e 1s/^X//"
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3740 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3741 if ${ac_cv_path_GREP+:} false; then :
3742   $as_echo_n "(cached) " >&6
3743 else
3744   if test -z "$GREP"; then
3745   ac_path_GREP_found=false
3746   # Loop through the user's path and test for each of PROGNAME-LIST
3747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3749 do
3750   IFS=$as_save_IFS
3751   test -z "$as_dir" && as_dir=.
3752     for ac_prog in grep ggrep; do
3753     for ac_exec_ext in '' $ac_executable_extensions; do
3754       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3755       as_fn_executable_p "$ac_path_GREP" || continue
3756 # Check for GNU ac_path_GREP and select it if it is found.
3757   # Check for GNU $ac_path_GREP
3758 case `"$ac_path_GREP" --version 2>&1` in
3759 *GNU*)
3760   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3761 *)
3762   ac_count=0
3763   $as_echo_n 0123456789 >"conftest.in"
3764   while :
3765   do
3766     cat "conftest.in" "conftest.in" >"conftest.tmp"
3767     mv "conftest.tmp" "conftest.in"
3768     cp "conftest.in" "conftest.nl"
3769     $as_echo 'GREP' >> "conftest.nl"
3770     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772     as_fn_arith $ac_count + 1 && ac_count=$as_val
3773     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3774       # Best one so far, save it but keep looking for a better one
3775       ac_cv_path_GREP="$ac_path_GREP"
3776       ac_path_GREP_max=$ac_count
3777     fi
3778     # 10*(2^10) chars as input seems more than enough
3779     test $ac_count -gt 10 && break
3780   done
3781   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3782 esac
3783
3784       $ac_path_GREP_found && break 3
3785     done
3786   done
3787   done
3788 IFS=$as_save_IFS
3789   if test -z "$ac_cv_path_GREP"; then
3790     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3791   fi
3792 else
3793   ac_cv_path_GREP=$GREP
3794 fi
3795
3796 fi
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3798 $as_echo "$ac_cv_path_GREP" >&6; }
3799  GREP="$ac_cv_path_GREP"
3800
3801
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3803 $as_echo_n "checking for egrep... " >&6; }
3804 if ${ac_cv_path_EGREP+:} false; then :
3805   $as_echo_n "(cached) " >&6
3806 else
3807   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3808    then ac_cv_path_EGREP="$GREP -E"
3809    else
3810      if test -z "$EGREP"; then
3811   ac_path_EGREP_found=false
3812   # Loop through the user's path and test for each of PROGNAME-LIST
3813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818     for ac_prog in egrep; do
3819     for ac_exec_ext in '' $ac_executable_extensions; do
3820       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3821       as_fn_executable_p "$ac_path_EGREP" || continue
3822 # Check for GNU ac_path_EGREP and select it if it is found.
3823   # Check for GNU $ac_path_EGREP
3824 case `"$ac_path_EGREP" --version 2>&1` in
3825 *GNU*)
3826   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3827 *)
3828   ac_count=0
3829   $as_echo_n 0123456789 >"conftest.in"
3830   while :
3831   do
3832     cat "conftest.in" "conftest.in" >"conftest.tmp"
3833     mv "conftest.tmp" "conftest.in"
3834     cp "conftest.in" "conftest.nl"
3835     $as_echo 'EGREP' >> "conftest.nl"
3836     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3837     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3838     as_fn_arith $ac_count + 1 && ac_count=$as_val
3839     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3840       # Best one so far, save it but keep looking for a better one
3841       ac_cv_path_EGREP="$ac_path_EGREP"
3842       ac_path_EGREP_max=$ac_count
3843     fi
3844     # 10*(2^10) chars as input seems more than enough
3845     test $ac_count -gt 10 && break
3846   done
3847   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3848 esac
3849
3850       $ac_path_EGREP_found && break 3
3851     done
3852   done
3853   done
3854 IFS=$as_save_IFS
3855   if test -z "$ac_cv_path_EGREP"; then
3856     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3857   fi
3858 else
3859   ac_cv_path_EGREP=$EGREP
3860 fi
3861
3862    fi
3863 fi
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3865 $as_echo "$ac_cv_path_EGREP" >&6; }
3866  EGREP="$ac_cv_path_EGREP"
3867
3868
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3870 $as_echo_n "checking for fgrep... " >&6; }
3871 if ${ac_cv_path_FGREP+:} false; then :
3872   $as_echo_n "(cached) " >&6
3873 else
3874   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3875    then ac_cv_path_FGREP="$GREP -F"
3876    else
3877      if test -z "$FGREP"; then
3878   ac_path_FGREP_found=false
3879   # Loop through the user's path and test for each of PROGNAME-LIST
3880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3882 do
3883   IFS=$as_save_IFS
3884   test -z "$as_dir" && as_dir=.
3885     for ac_prog in fgrep; do
3886     for ac_exec_ext in '' $ac_executable_extensions; do
3887       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3888       as_fn_executable_p "$ac_path_FGREP" || continue
3889 # Check for GNU ac_path_FGREP and select it if it is found.
3890   # Check for GNU $ac_path_FGREP
3891 case `"$ac_path_FGREP" --version 2>&1` in
3892 *GNU*)
3893   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3894 *)
3895   ac_count=0
3896   $as_echo_n 0123456789 >"conftest.in"
3897   while :
3898   do
3899     cat "conftest.in" "conftest.in" >"conftest.tmp"
3900     mv "conftest.tmp" "conftest.in"
3901     cp "conftest.in" "conftest.nl"
3902     $as_echo 'FGREP' >> "conftest.nl"
3903     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3904     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3905     as_fn_arith $ac_count + 1 && ac_count=$as_val
3906     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3907       # Best one so far, save it but keep looking for a better one
3908       ac_cv_path_FGREP="$ac_path_FGREP"
3909       ac_path_FGREP_max=$ac_count
3910     fi
3911     # 10*(2^10) chars as input seems more than enough
3912     test $ac_count -gt 10 && break
3913   done
3914   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3915 esac
3916
3917       $ac_path_FGREP_found && break 3
3918     done
3919   done
3920   done
3921 IFS=$as_save_IFS
3922   if test -z "$ac_cv_path_FGREP"; then
3923     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3924   fi
3925 else
3926   ac_cv_path_FGREP=$FGREP
3927 fi
3928
3929    fi
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3932 $as_echo "$ac_cv_path_FGREP" >&6; }
3933  FGREP="$ac_cv_path_FGREP"
3934
3935
3936 test -z "$GREP" && GREP=grep
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956 # Check whether --with-gnu-ld was given.
3957 if test "${with_gnu_ld+set}" = set; then :
3958   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3959 else
3960   with_gnu_ld=no
3961 fi
3962
3963 ac_prog=ld
3964 if test "$GCC" = yes; then
3965   # Check if gcc -print-prog-name=ld gives a path.
3966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3967 $as_echo_n "checking for ld used by $CC... " >&6; }
3968   case $host in
3969   *-*-mingw*)
3970     # gcc leaves a trailing carriage return which upsets mingw
3971     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3972   *)
3973     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3974   esac
3975   case $ac_prog in
3976     # Accept absolute paths.
3977     [\\/]* | ?:[\\/]*)
3978       re_direlt='/[^/][^/]*/\.\./'
3979       # Canonicalize the pathname of ld
3980       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3981       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3982         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3983       done
3984       test -z "$LD" && LD="$ac_prog"
3985       ;;
3986   "")
3987     # If it fails, then pretend we aren't using GCC.
3988     ac_prog=ld
3989     ;;
3990   *)
3991     # If it is relative, then search for the first ld in PATH.
3992     with_gnu_ld=unknown
3993     ;;
3994   esac
3995 elif test "$with_gnu_ld" = yes; then
3996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3997 $as_echo_n "checking for GNU ld... " >&6; }
3998 else
3999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4000 $as_echo_n "checking for non-GNU ld... " >&6; }
4001 fi
4002 if ${lt_cv_path_LD+:} false; then :
4003   $as_echo_n "(cached) " >&6
4004 else
4005   if test -z "$LD"; then
4006   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4007   for ac_dir in $PATH; do
4008     IFS="$lt_save_ifs"
4009     test -z "$ac_dir" && ac_dir=.
4010     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4011       lt_cv_path_LD="$ac_dir/$ac_prog"
4012       # Check to see if the program is GNU ld.  I'd rather use --version,
4013       # but apparently some variants of GNU ld only accept -v.
4014       # Break only if it was the GNU/non-GNU ld that we prefer.
4015       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4016       *GNU* | *'with BFD'*)
4017         test "$with_gnu_ld" != no && break
4018         ;;
4019       *)
4020         test "$with_gnu_ld" != yes && break
4021         ;;
4022       esac
4023     fi
4024   done
4025   IFS="$lt_save_ifs"
4026 else
4027   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4028 fi
4029 fi
4030
4031 LD="$lt_cv_path_LD"
4032 if test -n "$LD"; then
4033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4034 $as_echo "$LD" >&6; }
4035 else
4036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4038 fi
4039 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4041 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4042 if ${lt_cv_prog_gnu_ld+:} false; then :
4043   $as_echo_n "(cached) " >&6
4044 else
4045   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4046 case `$LD -v 2>&1 </dev/null` in
4047 *GNU* | *'with BFD'*)
4048   lt_cv_prog_gnu_ld=yes
4049   ;;
4050 *)
4051   lt_cv_prog_gnu_ld=no
4052   ;;
4053 esac
4054 fi
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4056 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4057 with_gnu_ld=$lt_cv_prog_gnu_ld
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4068 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4069 if ${lt_cv_path_NM+:} false; then :
4070   $as_echo_n "(cached) " >&6
4071 else
4072   if test -n "$NM"; then
4073   # Let the user override the test.
4074   lt_cv_path_NM="$NM"
4075 else
4076   lt_nm_to_check="${ac_tool_prefix}nm"
4077   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4078     lt_nm_to_check="$lt_nm_to_check nm"
4079   fi
4080   for lt_tmp_nm in $lt_nm_to_check; do
4081     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4082     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4083       IFS="$lt_save_ifs"
4084       test -z "$ac_dir" && ac_dir=.
4085       tmp_nm="$ac_dir/$lt_tmp_nm"
4086       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4087         # Check to see if the nm accepts a BSD-compat flag.
4088         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4089         #   nm: unknown option "B" ignored
4090         # Tru64's nm complains that /dev/null is an invalid object file
4091         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4092         */dev/null* | *'Invalid file or object type'*)
4093           lt_cv_path_NM="$tmp_nm -B"
4094           break
4095           ;;
4096         *)
4097           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4098           */dev/null*)
4099             lt_cv_path_NM="$tmp_nm -p"
4100             break
4101             ;;
4102           *)
4103             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4104             continue # so that we can try to find one that supports BSD flags
4105             ;;
4106           esac
4107           ;;
4108         esac
4109       fi
4110     done
4111     IFS="$lt_save_ifs"
4112   done
4113   : ${lt_cv_path_NM=no}
4114 fi
4115 fi
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4117 $as_echo "$lt_cv_path_NM" >&6; }
4118 if test "$lt_cv_path_NM" != "no"; then
4119   NM="$lt_cv_path_NM"
4120 else
4121   # Didn't find any BSD compatible name lister, look for dumpbin.
4122   if test -n "$DUMPBIN"; then :
4123     # Let the user override the test.
4124   else
4125     if test -n "$ac_tool_prefix"; then
4126   for ac_prog in dumpbin "link -dump"
4127   do
4128     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_DUMPBIN+:} false; then :
4133   $as_echo_n "(cached) " >&6
4134 else
4135   if test -n "$DUMPBIN"; then
4136   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141   IFS=$as_save_IFS
4142   test -z "$as_dir" && as_dir=.
4143     for ac_exec_ext in '' $ac_executable_extensions; do
4144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147     break 2
4148   fi
4149 done
4150   done
4151 IFS=$as_save_IFS
4152
4153 fi
4154 fi
4155 DUMPBIN=$ac_cv_prog_DUMPBIN
4156 if test -n "$DUMPBIN"; then
4157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4158 $as_echo "$DUMPBIN" >&6; }
4159 else
4160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4162 fi
4163
4164
4165     test -n "$DUMPBIN" && break
4166   done
4167 fi
4168 if test -z "$DUMPBIN"; then
4169   ac_ct_DUMPBIN=$DUMPBIN
4170   for ac_prog in dumpbin "link -dump"
4171 do
4172   # Extract the first word of "$ac_prog", so it can be a program name with args.
4173 set dummy $ac_prog; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4177   $as_echo_n "(cached) " >&6
4178 else
4179   if test -n "$ac_ct_DUMPBIN"; then
4180   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4184 do
4185   IFS=$as_save_IFS
4186   test -z "$as_dir" && as_dir=.
4187     for ac_exec_ext in '' $ac_executable_extensions; do
4188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191     break 2
4192   fi
4193 done
4194   done
4195 IFS=$as_save_IFS
4196
4197 fi
4198 fi
4199 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4200 if test -n "$ac_ct_DUMPBIN"; then
4201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4202 $as_echo "$ac_ct_DUMPBIN" >&6; }
4203 else
4204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4206 fi
4207
4208
4209   test -n "$ac_ct_DUMPBIN" && break
4210 done
4211
4212   if test "x$ac_ct_DUMPBIN" = x; then
4213     DUMPBIN=":"
4214   else
4215     case $cross_compiling:$ac_tool_warned in
4216 yes:)
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4219 ac_tool_warned=yes ;;
4220 esac
4221     DUMPBIN=$ac_ct_DUMPBIN
4222   fi
4223 fi
4224
4225     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4226     *COFF*)
4227       DUMPBIN="$DUMPBIN -symbols"
4228       ;;
4229     *)
4230       DUMPBIN=:
4231       ;;
4232     esac
4233   fi
4234
4235   if test "$DUMPBIN" != ":"; then
4236     NM="$DUMPBIN"
4237   fi
4238 fi
4239 test -z "$NM" && NM=nm
4240
4241
4242
4243
4244
4245
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4247 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4248 if ${lt_cv_nm_interface+:} false; then :
4249   $as_echo_n "(cached) " >&6
4250 else
4251   lt_cv_nm_interface="BSD nm"
4252   echo "int some_variable = 0;" > conftest.$ac_ext
4253   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4254   (eval "$ac_compile" 2>conftest.err)
4255   cat conftest.err >&5
4256   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4257   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4258   cat conftest.err >&5
4259   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4260   cat conftest.out >&5
4261   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4262     lt_cv_nm_interface="MS dumpbin"
4263   fi
4264   rm -f conftest*
4265 fi
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4267 $as_echo "$lt_cv_nm_interface" >&6; }
4268
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4270 $as_echo_n "checking whether ln -s works... " >&6; }
4271 LN_S=$as_ln_s
4272 if test "$LN_S" = "ln -s"; then
4273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4274 $as_echo "yes" >&6; }
4275 else
4276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4277 $as_echo "no, using $LN_S" >&6; }
4278 fi
4279
4280 # find the maximum length of command line arguments
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4282 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4283 if ${lt_cv_sys_max_cmd_len+:} false; then :
4284   $as_echo_n "(cached) " >&6
4285 else
4286     i=0
4287   teststring="ABCD"
4288
4289   case $build_os in
4290   msdosdjgpp*)
4291     # On DJGPP, this test can blow up pretty badly due to problems in libc
4292     # (any single argument exceeding 2000 bytes causes a buffer overrun
4293     # during glob expansion).  Even if it were fixed, the result of this
4294     # check would be larger than it should be.
4295     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4296     ;;
4297
4298   gnu*)
4299     # Under GNU Hurd, this test is not required because there is
4300     # no limit to the length of command line arguments.
4301     # Libtool will interpret -1 as no limit whatsoever
4302     lt_cv_sys_max_cmd_len=-1;
4303     ;;
4304
4305   cygwin* | mingw* | cegcc*)
4306     # On Win9x/ME, this test blows up -- it succeeds, but takes
4307     # about 5 minutes as the teststring grows exponentially.
4308     # Worse, since 9x/ME are not pre-emptively multitasking,
4309     # you end up with a "frozen" computer, even though with patience
4310     # the test eventually succeeds (with a max line length of 256k).
4311     # Instead, let's just punt: use the minimum linelength reported by
4312     # all of the supported platforms: 8192 (on NT/2K/XP).
4313     lt_cv_sys_max_cmd_len=8192;
4314     ;;
4315
4316   mint*)
4317     # On MiNT this can take a long time and run out of memory.
4318     lt_cv_sys_max_cmd_len=8192;
4319     ;;
4320
4321   amigaos*)
4322     # On AmigaOS with pdksh, this test takes hours, literally.
4323     # So we just punt and use a minimum line length of 8192.
4324     lt_cv_sys_max_cmd_len=8192;
4325     ;;
4326
4327   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4328     # This has been around since 386BSD, at least.  Likely further.
4329     if test -x /sbin/sysctl; then
4330       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4331     elif test -x /usr/sbin/sysctl; then
4332       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4333     else
4334       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4335     fi
4336     # And add a safety zone
4337     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4338     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4339     ;;
4340
4341   interix*)
4342     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4343     lt_cv_sys_max_cmd_len=196608
4344     ;;
4345
4346   os2*)
4347     # The test takes a long time on OS/2.
4348     lt_cv_sys_max_cmd_len=8192
4349     ;;
4350
4351   osf*)
4352     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4353     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4354     # nice to cause kernel panics so lets avoid the loop below.
4355     # First set a reasonable default.
4356     lt_cv_sys_max_cmd_len=16384
4357     #
4358     if test -x /sbin/sysconfig; then
4359       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4360         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4361       esac
4362     fi
4363     ;;
4364   sco3.2v5*)
4365     lt_cv_sys_max_cmd_len=102400
4366     ;;
4367   sysv5* | sco5v6* | sysv4.2uw2*)
4368     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4369     if test -n "$kargmax"; then
4370       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4371     else
4372       lt_cv_sys_max_cmd_len=32768
4373     fi
4374     ;;
4375   *)
4376     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4377     if test -n "$lt_cv_sys_max_cmd_len"; then
4378       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4379       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4380     else
4381       # Make teststring a little bigger before we do anything with it.
4382       # a 1K string should be a reasonable start.
4383       for i in 1 2 3 4 5 6 7 8 ; do
4384         teststring=$teststring$teststring
4385       done
4386       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4387       # If test is not a shell built-in, we'll probably end up computing a
4388       # maximum length that is only half of the actual maximum length, but
4389       # we can't tell.
4390       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4391                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4392               test $i != 17 # 1/2 MB should be enough
4393       do
4394         i=`expr $i + 1`
4395         teststring=$teststring$teststring
4396       done
4397       # Only check the string length outside the loop.
4398       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4399       teststring=
4400       # Add a significant safety factor because C++ compilers can tack on
4401       # massive amounts of additional arguments before passing them to the
4402       # linker.  It appears as though 1/2 is a usable value.
4403       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4404     fi
4405     ;;
4406   esac
4407
4408 fi
4409
4410 if test -n $lt_cv_sys_max_cmd_len ; then
4411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4412 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4413 else
4414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4415 $as_echo "none" >&6; }
4416 fi
4417 max_cmd_len=$lt_cv_sys_max_cmd_len
4418
4419
4420
4421
4422
4423
4424 : ${CP="cp -f"}
4425 : ${MV="mv -f"}
4426 : ${RM="rm -f"}
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4429 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4430 # Try some XSI features
4431 xsi_shell=no
4432 ( _lt_dummy="a/b/c"
4433   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4434       = c,a/b,b/c, \
4435     && eval 'test $(( 1 + 1 )) -eq 2 \
4436     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4437   && xsi_shell=yes
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4439 $as_echo "$xsi_shell" >&6; }
4440
4441
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4443 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4444 lt_shell_append=no
4445 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4446     >/dev/null 2>&1 \
4447   && lt_shell_append=yes
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4449 $as_echo "$lt_shell_append" >&6; }
4450
4451
4452 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4453   lt_unset=unset
4454 else
4455   lt_unset=false
4456 fi
4457
4458
4459
4460
4461
4462 # test EBCDIC or ASCII
4463 case `echo X|tr X '\101'` in
4464  A) # ASCII based system
4465     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4466   lt_SP2NL='tr \040 \012'
4467   lt_NL2SP='tr \015\012 \040\040'
4468   ;;
4469  *) # EBCDIC based system
4470   lt_SP2NL='tr \100 \n'
4471   lt_NL2SP='tr \r\n \100\100'
4472   ;;
4473 esac
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4484 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4485 if ${lt_cv_to_host_file_cmd+:} false; then :
4486   $as_echo_n "(cached) " >&6
4487 else
4488   case $host in
4489   *-*-mingw* )
4490     case $build in
4491       *-*-mingw* ) # actually msys
4492         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4493         ;;
4494       *-*-cygwin* )
4495         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4496         ;;
4497       * ) # otherwise, assume *nix
4498         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4499         ;;
4500     esac
4501     ;;
4502   *-*-cygwin* )
4503     case $build in
4504       *-*-mingw* ) # actually msys
4505         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4506         ;;
4507       *-*-cygwin* )
4508         lt_cv_to_host_file_cmd=func_convert_file_noop
4509         ;;
4510       * ) # otherwise, assume *nix
4511         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4512         ;;
4513     esac
4514     ;;
4515   * ) # unhandled hosts (and "normal" native builds)
4516     lt_cv_to_host_file_cmd=func_convert_file_noop
4517     ;;
4518 esac
4519
4520 fi
4521
4522 to_host_file_cmd=$lt_cv_to_host_file_cmd
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4524 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4525
4526
4527
4528
4529
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4531 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4532 if ${lt_cv_to_tool_file_cmd+:} false; then :
4533   $as_echo_n "(cached) " >&6
4534 else
4535   #assume ordinary cross tools, or native build.
4536 lt_cv_to_tool_file_cmd=func_convert_file_noop
4537 case $host in
4538   *-*-mingw* )
4539     case $build in
4540       *-*-mingw* ) # actually msys
4541         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4542         ;;
4543     esac
4544     ;;
4545 esac
4546
4547 fi
4548
4549 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4551 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4552
4553
4554
4555
4556
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4558 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4559 if ${lt_cv_ld_reload_flag+:} false; then :
4560   $as_echo_n "(cached) " >&6
4561 else
4562   lt_cv_ld_reload_flag='-r'
4563 fi
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4565 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4566 reload_flag=$lt_cv_ld_reload_flag
4567 case $reload_flag in
4568 "" | " "*) ;;
4569 *) reload_flag=" $reload_flag" ;;
4570 esac
4571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4572 case $host_os in
4573   cygwin* | mingw* | pw32* | cegcc*)
4574     if test "$GCC" != yes; then
4575       reload_cmds=false
4576     fi
4577     ;;
4578   darwin*)
4579     if test "$GCC" = yes; then
4580       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4581     else
4582       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4583     fi
4584     ;;
4585 esac
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595 if test -n "$ac_tool_prefix"; then
4596   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4597 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if ${ac_cv_prog_OBJDUMP+:} false; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603   if test -n "$OBJDUMP"; then
4604   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4608 do
4609   IFS=$as_save_IFS
4610   test -z "$as_dir" && as_dir=.
4611     for ac_exec_ext in '' $ac_executable_extensions; do
4612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615     break 2
4616   fi
4617 done
4618   done
4619 IFS=$as_save_IFS
4620
4621 fi
4622 fi
4623 OBJDUMP=$ac_cv_prog_OBJDUMP
4624 if test -n "$OBJDUMP"; then
4625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4626 $as_echo "$OBJDUMP" >&6; }
4627 else
4628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4630 fi
4631
4632
4633 fi
4634 if test -z "$ac_cv_prog_OBJDUMP"; then
4635   ac_ct_OBJDUMP=$OBJDUMP
4636   # Extract the first word of "objdump", so it can be a program name with args.
4637 set dummy objdump; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4641   $as_echo_n "(cached) " >&6
4642 else
4643   if test -n "$ac_ct_OBJDUMP"; then
4644   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651     for ac_exec_ext in '' $ac_executable_extensions; do
4652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655     break 2
4656   fi
4657 done
4658   done
4659 IFS=$as_save_IFS
4660
4661 fi
4662 fi
4663 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4664 if test -n "$ac_ct_OBJDUMP"; then
4665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4666 $as_echo "$ac_ct_OBJDUMP" >&6; }
4667 else
4668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4670 fi
4671
4672   if test "x$ac_ct_OBJDUMP" = x; then
4673     OBJDUMP="false"
4674   else
4675     case $cross_compiling:$ac_tool_warned in
4676 yes:)
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4679 ac_tool_warned=yes ;;
4680 esac
4681     OBJDUMP=$ac_ct_OBJDUMP
4682   fi
4683 else
4684   OBJDUMP="$ac_cv_prog_OBJDUMP"
4685 fi
4686
4687 test -z "$OBJDUMP" && OBJDUMP=objdump
4688
4689
4690
4691
4692
4693
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4695 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4696 if ${lt_cv_deplibs_check_method+:} false; then :
4697   $as_echo_n "(cached) " >&6
4698 else
4699   lt_cv_file_magic_cmd='$MAGIC_CMD'
4700 lt_cv_file_magic_test_file=
4701 lt_cv_deplibs_check_method='unknown'
4702 # Need to set the preceding variable on all platforms that support
4703 # interlibrary dependencies.
4704 # 'none' -- dependencies not supported.
4705 # `unknown' -- same as none, but documents that we really don't know.
4706 # 'pass_all' -- all dependencies passed with no checks.
4707 # 'test_compile' -- check by making test program.
4708 # 'file_magic [[regex]]' -- check by looking for files in library path
4709 # which responds to the $file_magic_cmd with a given extended regex.
4710 # If you have `file' or equivalent on your system and you're not sure
4711 # whether `pass_all' will *always* work, you probably want this one.
4712
4713 case $host_os in
4714 aix[4-9]*)
4715   lt_cv_deplibs_check_method=pass_all
4716   ;;
4717
4718 beos*)
4719   lt_cv_deplibs_check_method=pass_all
4720   ;;
4721
4722 bsdi[45]*)
4723   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4724   lt_cv_file_magic_cmd='/usr/bin/file -L'
4725   lt_cv_file_magic_test_file=/shlib/libc.so
4726   ;;
4727
4728 cygwin*)
4729   # func_win32_libid is a shell function defined in ltmain.sh
4730   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4731   lt_cv_file_magic_cmd='func_win32_libid'
4732   lt_cv_deplibs_check_method=pass_all
4733   ;;
4734
4735 mingw* | pw32*)
4736   # Base MSYS/MinGW do not provide the 'file' command needed by
4737   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4738   # unless we find 'file', for example because we are cross-compiling.
4739   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4740   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4741     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4742     lt_cv_file_magic_cmd='func_win32_libid'
4743   else
4744     # Keep this pattern in sync with the one in func_win32_libid.
4745     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4746     lt_cv_file_magic_cmd='$OBJDUMP -f'
4747   fi
4748   lt_cv_deplibs_check_method=pass_all
4749   ;;
4750
4751 cegcc*)
4752   # use the weaker test based on 'objdump'. See mingw*.
4753   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4754   lt_cv_file_magic_cmd='$OBJDUMP -f'
4755   ;;
4756
4757 darwin* | rhapsody*)
4758   lt_cv_deplibs_check_method=pass_all
4759   ;;
4760
4761 freebsd* | dragonfly*)
4762   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4763     case $host_cpu in
4764     i*86 )
4765       # Not sure whether the presence of OpenBSD here was a mistake.
4766       # Let's accept both of them until this is cleared up.
4767       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4768       lt_cv_file_magic_cmd=/usr/bin/file
4769       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4770       ;;
4771     esac
4772   else
4773     lt_cv_deplibs_check_method=pass_all
4774   fi
4775   ;;
4776
4777 gnu*)
4778   lt_cv_deplibs_check_method=pass_all
4779   ;;
4780
4781 haiku*)
4782   lt_cv_deplibs_check_method=pass_all
4783   ;;
4784
4785 hpux10.20* | hpux11*)
4786   lt_cv_file_magic_cmd=/usr/bin/file
4787   case $host_cpu in
4788   ia64*)
4789     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4790     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4791     ;;
4792   hppa*64*)
4793     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4794     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4795     ;;
4796   *)
4797     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4798     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4799     ;;
4800   esac
4801   ;;
4802
4803 interix[3-9]*)
4804   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4805   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4806   ;;
4807
4808 irix5* | irix6* | nonstopux*)
4809   case $LD in
4810   *-32|*"-32 ") libmagic=32-bit;;
4811   *-n32|*"-n32 ") libmagic=N32;;
4812   *-64|*"-64 ") libmagic=64-bit;;
4813   *) libmagic=never-match;;
4814   esac
4815   lt_cv_deplibs_check_method=pass_all
4816   ;;
4817
4818 # This must be glibc/ELF.
4819 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4820   lt_cv_deplibs_check_method=pass_all
4821   ;;
4822
4823 netbsd*)
4824   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4825     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4826   else
4827     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4828   fi
4829   ;;
4830
4831 newos6*)
4832   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4833   lt_cv_file_magic_cmd=/usr/bin/file
4834   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4835   ;;
4836
4837 *nto* | *qnx*)
4838   lt_cv_deplibs_check_method=pass_all
4839   ;;
4840
4841 openbsd*)
4842   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4843     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4844   else
4845     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4846   fi
4847   ;;
4848
4849 osf3* | osf4* | osf5*)
4850   lt_cv_deplibs_check_method=pass_all
4851   ;;
4852
4853 rdos*)
4854   lt_cv_deplibs_check_method=pass_all
4855   ;;
4856
4857 solaris*)
4858   lt_cv_deplibs_check_method=pass_all
4859   ;;
4860
4861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4862   lt_cv_deplibs_check_method=pass_all
4863   ;;
4864
4865 sysv4 | sysv4.3*)
4866   case $host_vendor in
4867   motorola)
4868     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4869     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4870     ;;
4871   ncr)
4872     lt_cv_deplibs_check_method=pass_all
4873     ;;
4874   sequent)
4875     lt_cv_file_magic_cmd='/bin/file'
4876     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4877     ;;
4878   sni)
4879     lt_cv_file_magic_cmd='/bin/file'
4880     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4881     lt_cv_file_magic_test_file=/lib/libc.so
4882     ;;
4883   siemens)
4884     lt_cv_deplibs_check_method=pass_all
4885     ;;
4886   pc)
4887     lt_cv_deplibs_check_method=pass_all
4888     ;;
4889   esac
4890   ;;
4891
4892 tpf*)
4893   lt_cv_deplibs_check_method=pass_all
4894   ;;
4895 esac
4896
4897 fi
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4899 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4900
4901 file_magic_glob=
4902 want_nocaseglob=no
4903 if test "$build" = "$host"; then
4904   case $host_os in
4905   mingw* | pw32*)
4906     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4907       want_nocaseglob=yes
4908     else
4909       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4910     fi
4911     ;;
4912   esac
4913 fi
4914
4915 file_magic_cmd=$lt_cv_file_magic_cmd
4916 deplibs_check_method=$lt_cv_deplibs_check_method
4917 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940 if test -n "$ac_tool_prefix"; then
4941   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4942 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_prog_DLLTOOL+:} false; then :
4946   $as_echo_n "(cached) " >&6
4947 else
4948   if test -n "$DLLTOOL"; then
4949   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956     for ac_exec_ext in '' $ac_executable_extensions; do
4957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960     break 2
4961   fi
4962 done
4963   done
4964 IFS=$as_save_IFS
4965
4966 fi
4967 fi
4968 DLLTOOL=$ac_cv_prog_DLLTOOL
4969 if test -n "$DLLTOOL"; then
4970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4971 $as_echo "$DLLTOOL" >&6; }
4972 else
4973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4975 fi
4976
4977
4978 fi
4979 if test -z "$ac_cv_prog_DLLTOOL"; then
4980   ac_ct_DLLTOOL=$DLLTOOL
4981   # Extract the first word of "dlltool", so it can be a program name with args.
4982 set dummy dlltool; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988   if test -n "$ac_ct_DLLTOOL"; then
4989   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994   IFS=$as_save_IFS
4995   test -z "$as_dir" && as_dir=.
4996     for ac_exec_ext in '' $ac_executable_extensions; do
4997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000     break 2
5001   fi
5002 done
5003   done
5004 IFS=$as_save_IFS
5005
5006 fi
5007 fi
5008 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5009 if test -n "$ac_ct_DLLTOOL"; then
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5011 $as_echo "$ac_ct_DLLTOOL" >&6; }
5012 else
5013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5015 fi
5016
5017   if test "x$ac_ct_DLLTOOL" = x; then
5018     DLLTOOL="false"
5019   else
5020     case $cross_compiling:$ac_tool_warned in
5021 yes:)
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5024 ac_tool_warned=yes ;;
5025 esac
5026     DLLTOOL=$ac_ct_DLLTOOL
5027   fi
5028 else
5029   DLLTOOL="$ac_cv_prog_DLLTOOL"
5030 fi
5031
5032 test -z "$DLLTOOL" && DLLTOOL=dlltool
5033
5034
5035
5036
5037
5038
5039
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5041 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5042 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5043   $as_echo_n "(cached) " >&6
5044 else
5045   lt_cv_sharedlib_from_linklib_cmd='unknown'
5046
5047 case $host_os in
5048 cygwin* | mingw* | pw32* | cegcc*)
5049   # two different shell functions defined in ltmain.sh
5050   # decide which to use based on capabilities of $DLLTOOL
5051   case `$DLLTOOL --help 2>&1` in
5052   *--identify-strict*)
5053     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5054     ;;
5055   *)
5056     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5057     ;;
5058   esac
5059   ;;
5060 *)
5061   # fallback: assume linklib IS sharedlib
5062   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5063   ;;
5064 esac
5065
5066 fi
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5068 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5069 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5070 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5071
5072
5073
5074
5075
5076
5077
5078
5079 if test -n "$ac_tool_prefix"; then
5080   for ac_prog in ar
5081   do
5082     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if ${ac_cv_prog_AR+:} false; then :
5087   $as_echo_n "(cached) " >&6
5088 else
5089   if test -n "$AR"; then
5090   ac_cv_prog_AR="$AR" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095   IFS=$as_save_IFS
5096   test -z "$as_dir" && as_dir=.
5097     for ac_exec_ext in '' $ac_executable_extensions; do
5098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101     break 2
5102   fi
5103 done
5104   done
5105 IFS=$as_save_IFS
5106
5107 fi
5108 fi
5109 AR=$ac_cv_prog_AR
5110 if test -n "$AR"; then
5111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5112 $as_echo "$AR" >&6; }
5113 else
5114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5116 fi
5117
5118
5119     test -n "$AR" && break
5120   done
5121 fi
5122 if test -z "$AR"; then
5123   ac_ct_AR=$AR
5124   for ac_prog in ar
5125 do
5126   # Extract the first word of "$ac_prog", so it can be a program name with args.
5127 set dummy $ac_prog; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5131   $as_echo_n "(cached) " >&6
5132 else
5133   if test -n "$ac_ct_AR"; then
5134   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139   IFS=$as_save_IFS
5140   test -z "$as_dir" && as_dir=.
5141     for ac_exec_ext in '' $ac_executable_extensions; do
5142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143     ac_cv_prog_ac_ct_AR="$ac_prog"
5144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145     break 2
5146   fi
5147 done
5148   done
5149 IFS=$as_save_IFS
5150
5151 fi
5152 fi
5153 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5154 if test -n "$ac_ct_AR"; then
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5156 $as_echo "$ac_ct_AR" >&6; }
5157 else
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161
5162
5163   test -n "$ac_ct_AR" && break
5164 done
5165
5166   if test "x$ac_ct_AR" = x; then
5167     AR="false"
5168   else
5169     case $cross_compiling:$ac_tool_warned in
5170 yes:)
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5173 ac_tool_warned=yes ;;
5174 esac
5175     AR=$ac_ct_AR
5176   fi
5177 fi
5178
5179 : ${AR=ar}
5180 : ${AR_FLAGS=cru}
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5193 $as_echo_n "checking for archiver @FILE support... " >&6; }
5194 if ${lt_cv_ar_at_file+:} false; then :
5195   $as_echo_n "(cached) " >&6
5196 else
5197   lt_cv_ar_at_file=no
5198    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h.  */
5200
5201 int
5202 main ()
5203 {
5204
5205   ;
5206   return 0;
5207 }
5208 _ACEOF
5209 if ac_fn_c_try_compile "$LINENO"; then :
5210   echo conftest.$ac_objext > conftest.lst
5211       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5212       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5213   (eval $lt_ar_try) 2>&5
5214   ac_status=$?
5215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5216   test $ac_status = 0; }
5217       if test "$ac_status" -eq 0; then
5218         # Ensure the archiver fails upon bogus file names.
5219         rm -f conftest.$ac_objext libconftest.a
5220         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5221   (eval $lt_ar_try) 2>&5
5222   ac_status=$?
5223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5224   test $ac_status = 0; }
5225         if test "$ac_status" -ne 0; then
5226           lt_cv_ar_at_file=@
5227         fi
5228       fi
5229       rm -f conftest.* libconftest.a
5230
5231 fi
5232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233
5234 fi
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5236 $as_echo "$lt_cv_ar_at_file" >&6; }
5237
5238 if test "x$lt_cv_ar_at_file" = xno; then
5239   archiver_list_spec=
5240 else
5241   archiver_list_spec=$lt_cv_ar_at_file
5242 fi
5243
5244
5245
5246
5247
5248
5249
5250 if test -n "$ac_tool_prefix"; then
5251   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5252 set dummy ${ac_tool_prefix}strip; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if ${ac_cv_prog_STRIP+:} false; then :
5256   $as_echo_n "(cached) " >&6
5257 else
5258   if test -n "$STRIP"; then
5259   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5263 do
5264   IFS=$as_save_IFS
5265   test -z "$as_dir" && as_dir=.
5266     for ac_exec_ext in '' $ac_executable_extensions; do
5267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270     break 2
5271   fi
5272 done
5273   done
5274 IFS=$as_save_IFS
5275
5276 fi
5277 fi
5278 STRIP=$ac_cv_prog_STRIP
5279 if test -n "$STRIP"; then
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5281 $as_echo "$STRIP" >&6; }
5282 else
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5285 fi
5286
5287
5288 fi
5289 if test -z "$ac_cv_prog_STRIP"; then
5290   ac_ct_STRIP=$STRIP
5291   # Extract the first word of "strip", so it can be a program name with args.
5292 set dummy strip; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5296   $as_echo_n "(cached) " >&6
5297 else
5298   if test -n "$ac_ct_STRIP"; then
5299   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5303 do
5304   IFS=$as_save_IFS
5305   test -z "$as_dir" && as_dir=.
5306     for ac_exec_ext in '' $ac_executable_extensions; do
5307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308     ac_cv_prog_ac_ct_STRIP="strip"
5309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310     break 2
5311   fi
5312 done
5313   done
5314 IFS=$as_save_IFS
5315
5316 fi
5317 fi
5318 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5319 if test -n "$ac_ct_STRIP"; then
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5321 $as_echo "$ac_ct_STRIP" >&6; }
5322 else
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5325 fi
5326
5327   if test "x$ac_ct_STRIP" = x; then
5328     STRIP=":"
5329   else
5330     case $cross_compiling:$ac_tool_warned in
5331 yes:)
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5334 ac_tool_warned=yes ;;
5335 esac
5336     STRIP=$ac_ct_STRIP
5337   fi
5338 else
5339   STRIP="$ac_cv_prog_STRIP"
5340 fi
5341
5342 test -z "$STRIP" && STRIP=:
5343
5344
5345
5346
5347
5348
5349 if test -n "$ac_tool_prefix"; then
5350   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if ${ac_cv_prog_RANLIB+:} false; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357   if test -n "$RANLIB"; then
5358   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365     for ac_exec_ext in '' $ac_executable_extensions; do
5366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369     break 2
5370   fi
5371 done
5372   done
5373 IFS=$as_save_IFS
5374
5375 fi
5376 fi
5377 RANLIB=$ac_cv_prog_RANLIB
5378 if test -n "$RANLIB"; then
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5380 $as_echo "$RANLIB" >&6; }
5381 else
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5384 fi
5385
5386
5387 fi
5388 if test -z "$ac_cv_prog_RANLIB"; then
5389   ac_ct_RANLIB=$RANLIB
5390   # Extract the first word of "ranlib", so it can be a program name with args.
5391 set dummy ranlib; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5395   $as_echo_n "(cached) " >&6
5396 else
5397   if test -n "$ac_ct_RANLIB"; then
5398   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403   IFS=$as_save_IFS
5404   test -z "$as_dir" && as_dir=.
5405     for ac_exec_ext in '' $ac_executable_extensions; do
5406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407     ac_cv_prog_ac_ct_RANLIB="ranlib"
5408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409     break 2
5410   fi
5411 done
5412   done
5413 IFS=$as_save_IFS
5414
5415 fi
5416 fi
5417 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5418 if test -n "$ac_ct_RANLIB"; then
5419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5420 $as_echo "$ac_ct_RANLIB" >&6; }
5421 else
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424 fi
5425
5426   if test "x$ac_ct_RANLIB" = x; then
5427     RANLIB=":"
5428   else
5429     case $cross_compiling:$ac_tool_warned in
5430 yes:)
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5433 ac_tool_warned=yes ;;
5434 esac
5435     RANLIB=$ac_ct_RANLIB
5436   fi
5437 else
5438   RANLIB="$ac_cv_prog_RANLIB"
5439 fi
5440
5441 test -z "$RANLIB" && RANLIB=:
5442
5443
5444
5445
5446
5447
5448 # Determine commands to create old-style static archives.
5449 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5450 old_postinstall_cmds='chmod 644 $oldlib'
5451 old_postuninstall_cmds=
5452
5453 if test -n "$RANLIB"; then
5454   case $host_os in
5455   openbsd*)
5456     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5457     ;;
5458   *)
5459     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5460     ;;
5461   esac
5462   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5463 fi
5464
5465 case $host_os in
5466   darwin*)
5467     lock_old_archive_extraction=yes ;;
5468   *)
5469     lock_old_archive_extraction=no ;;
5470 esac
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492 for ac_prog in gawk mawk nawk awk
5493 do
5494   # Extract the first word of "$ac_prog", so it can be a program name with args.
5495 set dummy $ac_prog; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if ${ac_cv_prog_AWK+:} false; then :
5499   $as_echo_n "(cached) " >&6
5500 else
5501   if test -n "$AWK"; then
5502   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507   IFS=$as_save_IFS
5508   test -z "$as_dir" && as_dir=.
5509     for ac_exec_ext in '' $ac_executable_extensions; do
5510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511     ac_cv_prog_AWK="$ac_prog"
5512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513     break 2
5514   fi
5515 done
5516   done
5517 IFS=$as_save_IFS
5518
5519 fi
5520 fi
5521 AWK=$ac_cv_prog_AWK
5522 if test -n "$AWK"; then
5523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5524 $as_echo "$AWK" >&6; }
5525 else
5526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5528 fi
5529
5530
5531   test -n "$AWK" && break
5532 done
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552 # If no C compiler was specified, use CC.
5553 LTCC=${LTCC-"$CC"}
5554
5555 # If no C compiler flags were specified, use CFLAGS.
5556 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5557
5558 # Allow CC to be a program name with arguments.
5559 compiler=$CC
5560
5561
5562 # Check for command to grab the raw symbol name followed by C symbol from nm.
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5564 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5565 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568
5569 # These are sane defaults that work on at least a few old systems.
5570 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5571
5572 # Character class describing NM global symbol codes.
5573 symcode='[BCDEGRST]'
5574
5575 # Regexp to match symbols that can be accessed directly from C.
5576 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5577
5578 # Define system-specific variables.
5579 case $host_os in
5580 aix*)
5581   symcode='[BCDT]'
5582   ;;
5583 cygwin* | mingw* | pw32* | cegcc*)
5584   symcode='[ABCDGISTW]'
5585   ;;
5586 hpux*)
5587   if test "$host_cpu" = ia64; then
5588     symcode='[ABCDEGRST]'
5589   fi
5590   ;;
5591 irix* | nonstopux*)
5592   symcode='[BCDEGRST]'
5593   ;;
5594 osf*)
5595   symcode='[BCDEGQRST]'
5596   ;;
5597 solaris*)
5598   symcode='[BDRT]'
5599   ;;
5600 sco3.2v5*)
5601   symcode='[DT]'
5602   ;;
5603 sysv4.2uw2*)
5604   symcode='[DT]'
5605   ;;
5606 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5607   symcode='[ABDT]'
5608   ;;
5609 sysv4)
5610   symcode='[DFNSTU]'
5611   ;;
5612 esac
5613
5614 # If we're using GNU nm, then use its standard symbol codes.
5615 case `$NM -V 2>&1` in
5616 *GNU* | *'with BFD'*)
5617   symcode='[ABCDGIRSTW]' ;;
5618 esac
5619
5620 # Transform an extracted symbol line into a proper C declaration.
5621 # Some systems (esp. on ia64) link data and code symbols differently,
5622 # so use this general approach.
5623 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5624
5625 # Transform an extracted symbol line into symbol name and symbol address
5626 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5627 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5628
5629 # Handle CRLF in mingw tool chain
5630 opt_cr=
5631 case $build_os in
5632 mingw*)
5633   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5634   ;;
5635 esac
5636
5637 # Try without a prefix underscore, then with it.
5638 for ac_symprfx in "" "_"; do
5639
5640   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5641   symxfrm="\\1 $ac_symprfx\\2 \\2"
5642
5643   # Write the raw and C identifiers.
5644   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5645     # Fake it for dumpbin and say T for any non-static function
5646     # and D for any global variable.
5647     # Also find C++ and __fastcall symbols from MSVC++,
5648     # which start with @ or ?.
5649     lt_cv_sys_global_symbol_pipe="$AWK '"\
5650 "     {last_section=section; section=\$ 3};"\
5651 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5652 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5653 "     \$ 0!~/External *\|/{next};"\
5654 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5655 "     {if(hide[section]) next};"\
5656 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5657 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5658 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5659 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5660 "     ' prfx=^$ac_symprfx"
5661   else
5662     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5663   fi
5664   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5665
5666   # Check to see that the pipe works correctly.
5667   pipe_works=no
5668
5669   rm -f conftest*
5670   cat > conftest.$ac_ext <<_LT_EOF
5671 #ifdef __cplusplus
5672 extern "C" {
5673 #endif
5674 char nm_test_var;
5675 void nm_test_func(void);
5676 void nm_test_func(void){}
5677 #ifdef __cplusplus
5678 }
5679 #endif
5680 int main(){nm_test_var='a';nm_test_func();return(0);}
5681 _LT_EOF
5682
5683   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5684   (eval $ac_compile) 2>&5
5685   ac_status=$?
5686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5687   test $ac_status = 0; }; then
5688     # Now try to grab the symbols.
5689     nlist=conftest.nm
5690     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5691   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5692   ac_status=$?
5693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5694   test $ac_status = 0; } && test -s "$nlist"; then
5695       # Try sorting and uniquifying the output.
5696       if sort "$nlist" | uniq > "$nlist"T; then
5697         mv -f "$nlist"T "$nlist"
5698       else
5699         rm -f "$nlist"T
5700       fi
5701
5702       # Make sure that we snagged all the symbols we need.
5703       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5704         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5705           cat <<_LT_EOF > conftest.$ac_ext
5706 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5707 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5708 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5709    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5710 # define LT_DLSYM_CONST
5711 #elif defined(__osf__)
5712 /* This system does not cope well with relocations in const data.  */
5713 # define LT_DLSYM_CONST
5714 #else
5715 # define LT_DLSYM_CONST const
5716 #endif
5717
5718 #ifdef __cplusplus
5719 extern "C" {
5720 #endif
5721
5722 _LT_EOF
5723           # Now generate the symbol file.
5724           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5725
5726           cat <<_LT_EOF >> conftest.$ac_ext
5727
5728 /* The mapping between symbol names and symbols.  */
5729 LT_DLSYM_CONST struct {
5730   const char *name;
5731   void       *address;
5732 }
5733 lt__PROGRAM__LTX_preloaded_symbols[] =
5734 {
5735   { "@PROGRAM@", (void *) 0 },
5736 _LT_EOF
5737           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5738           cat <<\_LT_EOF >> conftest.$ac_ext
5739   {0, (void *) 0}
5740 };
5741
5742 /* This works around a problem in FreeBSD linker */
5743 #ifdef FREEBSD_WORKAROUND
5744 static const void *lt_preloaded_setup() {
5745   return lt__PROGRAM__LTX_preloaded_symbols;
5746 }
5747 #endif
5748
5749 #ifdef __cplusplus
5750 }
5751 #endif
5752 _LT_EOF
5753           # Now try linking the two files.
5754           mv conftest.$ac_objext conftstm.$ac_objext
5755           lt_globsym_save_LIBS=$LIBS
5756           lt_globsym_save_CFLAGS=$CFLAGS
5757           LIBS="conftstm.$ac_objext"
5758           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5759           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5760   (eval $ac_link) 2>&5
5761   ac_status=$?
5762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5763   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5764             pipe_works=yes
5765           fi
5766           LIBS=$lt_globsym_save_LIBS
5767           CFLAGS=$lt_globsym_save_CFLAGS
5768         else
5769           echo "cannot find nm_test_func in $nlist" >&5
5770         fi
5771       else
5772         echo "cannot find nm_test_var in $nlist" >&5
5773       fi
5774     else
5775       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5776     fi
5777   else
5778     echo "$progname: failed program was:" >&5
5779     cat conftest.$ac_ext >&5
5780   fi
5781   rm -rf conftest* conftst*
5782
5783   # Do not use the global_symbol_pipe unless it works.
5784   if test "$pipe_works" = yes; then
5785     break
5786   else
5787     lt_cv_sys_global_symbol_pipe=
5788   fi
5789 done
5790
5791 fi
5792
5793 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5794   lt_cv_sys_global_symbol_to_cdecl=
5795 fi
5796 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5798 $as_echo "failed" >&6; }
5799 else
5800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5801 $as_echo "ok" >&6; }
5802 fi
5803
5804 # Response file support.
5805 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5806   nm_file_list_spec='@'
5807 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5808   nm_file_list_spec='@'
5809 fi
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5838 $as_echo_n "checking for sysroot... " >&6; }
5839
5840 # Check whether --with-sysroot was given.
5841 if test "${with_sysroot+set}" = set; then :
5842   withval=$with_sysroot;
5843 else
5844   with_sysroot=no
5845 fi
5846
5847
5848 lt_sysroot=
5849 case ${with_sysroot} in #(
5850  yes)
5851    if test "$GCC" = yes; then
5852      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5853    fi
5854    ;; #(
5855  /*)
5856    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5857    ;; #(
5858  no|'')
5859    ;; #(
5860  *)
5861    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5862 $as_echo "${with_sysroot}" >&6; }
5863    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5864    ;;
5865 esac
5866
5867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5868 $as_echo "${lt_sysroot:-no}" >&6; }
5869
5870
5871
5872
5873
5874 # Check whether --enable-libtool-lock was given.
5875 if test "${enable_libtool_lock+set}" = set; then :
5876   enableval=$enable_libtool_lock;
5877 fi
5878
5879 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5880
5881 # Some flags need to be propagated to the compiler or linker for good
5882 # libtool support.
5883 case $host in
5884 ia64-*-hpux*)
5885   # Find out which ABI we are using.
5886   echo 'int i;' > conftest.$ac_ext
5887   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5888   (eval $ac_compile) 2>&5
5889   ac_status=$?
5890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5891   test $ac_status = 0; }; then
5892     case `/usr/bin/file conftest.$ac_objext` in
5893       *ELF-32*)
5894         HPUX_IA64_MODE="32"
5895         ;;
5896       *ELF-64*)
5897         HPUX_IA64_MODE="64"
5898         ;;
5899     esac
5900   fi
5901   rm -rf conftest*
5902   ;;
5903 *-*-irix6*)
5904   # Find out which ABI we are using.
5905   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5906   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5907   (eval $ac_compile) 2>&5
5908   ac_status=$?
5909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5910   test $ac_status = 0; }; then
5911     if test "$lt_cv_prog_gnu_ld" = yes; then
5912       case `/usr/bin/file conftest.$ac_objext` in
5913         *32-bit*)
5914           LD="${LD-ld} -melf32bsmip"
5915           ;;
5916         *N32*)
5917           LD="${LD-ld} -melf32bmipn32"
5918           ;;
5919         *64-bit*)
5920           LD="${LD-ld} -melf64bmip"
5921         ;;
5922       esac
5923     else
5924       case `/usr/bin/file conftest.$ac_objext` in
5925         *32-bit*)
5926           LD="${LD-ld} -32"
5927           ;;
5928         *N32*)
5929           LD="${LD-ld} -n32"
5930           ;;
5931         *64-bit*)
5932           LD="${LD-ld} -64"
5933           ;;
5934       esac
5935     fi
5936   fi
5937   rm -rf conftest*
5938   ;;
5939
5940 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5941 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5942   # Find out which ABI we are using.
5943   echo 'int i;' > conftest.$ac_ext
5944   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5945   (eval $ac_compile) 2>&5
5946   ac_status=$?
5947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5948   test $ac_status = 0; }; then
5949     case `/usr/bin/file conftest.o` in
5950       *32-bit*)
5951         case $host in
5952           x86_64-*kfreebsd*-gnu)
5953             LD="${LD-ld} -m elf_i386_fbsd"
5954             ;;
5955           x86_64-*linux*)
5956             LD="${LD-ld} -m elf_i386"
5957             ;;
5958           ppc64-*linux*|powerpc64-*linux*)
5959             LD="${LD-ld} -m elf32ppclinux"
5960             ;;
5961           s390x-*linux*)
5962             LD="${LD-ld} -m elf_s390"
5963             ;;
5964           sparc64-*linux*)
5965             LD="${LD-ld} -m elf32_sparc"
5966             ;;
5967         esac
5968         ;;
5969       *64-bit*)
5970         case $host in
5971           x86_64-*kfreebsd*-gnu)
5972             LD="${LD-ld} -m elf_x86_64_fbsd"
5973             ;;
5974           x86_64-*linux*)
5975             LD="${LD-ld} -m elf_x86_64"
5976             ;;
5977           ppc*-*linux*|powerpc*-*linux*)
5978             LD="${LD-ld} -m elf64ppc"
5979             ;;
5980           s390*-*linux*|s390*-*tpf*)
5981             LD="${LD-ld} -m elf64_s390"
5982             ;;
5983           sparc*-*linux*)
5984             LD="${LD-ld} -m elf64_sparc"
5985             ;;
5986         esac
5987         ;;
5988     esac
5989   fi
5990   rm -rf conftest*
5991   ;;
5992
5993 *-*-sco3.2v5*)
5994   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5995   SAVE_CFLAGS="$CFLAGS"
5996   CFLAGS="$CFLAGS -belf"
5997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5998 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5999 if ${lt_cv_cc_needs_belf+:} false; then :
6000   $as_echo_n "(cached) " >&6
6001 else
6002   ac_ext=c
6003 ac_cpp='$CPP $CPPFLAGS'
6004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007
6008      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h.  */
6010
6011 int
6012 main ()
6013 {
6014
6015   ;
6016   return 0;
6017 }
6018 _ACEOF
6019 if ac_fn_c_try_link "$LINENO"; then :
6020   lt_cv_cc_needs_belf=yes
6021 else
6022   lt_cv_cc_needs_belf=no
6023 fi
6024 rm -f core conftest.err conftest.$ac_objext \
6025     conftest$ac_exeext conftest.$ac_ext
6026      ac_ext=c
6027 ac_cpp='$CPP $CPPFLAGS'
6028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031
6032 fi
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6034 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6035   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6036     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6037     CFLAGS="$SAVE_CFLAGS"
6038   fi
6039   ;;
6040 *-*solaris*)
6041   # Find out which ABI we are using.
6042   echo 'int i;' > conftest.$ac_ext
6043   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6044   (eval $ac_compile) 2>&5
6045   ac_status=$?
6046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6047   test $ac_status = 0; }; then
6048     case `/usr/bin/file conftest.o` in
6049     *64-bit*)
6050       case $lt_cv_prog_gnu_ld in
6051       yes*)
6052         case $host in
6053         i?86-*-solaris*)
6054           LD="${LD-ld} -m elf_x86_64"
6055           ;;
6056         sparc*-*-solaris*)
6057           LD="${LD-ld} -m elf64_sparc"
6058           ;;
6059         esac
6060         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6061         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6062           LD="${LD-ld}_sol2"
6063         fi
6064         ;;
6065       *)
6066         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6067           LD="${LD-ld} -64"
6068         fi
6069         ;;
6070       esac
6071       ;;
6072     esac
6073   fi
6074   rm -rf conftest*
6075   ;;
6076 esac
6077
6078 need_locks="$enable_libtool_lock"
6079
6080 if test -n "$ac_tool_prefix"; then
6081   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6082 set dummy ${ac_tool_prefix}mt; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6086   $as_echo_n "(cached) " >&6
6087 else
6088   if test -n "$MANIFEST_TOOL"; then
6089   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094   IFS=$as_save_IFS
6095   test -z "$as_dir" && as_dir=.
6096     for ac_exec_ext in '' $ac_executable_extensions; do
6097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100     break 2
6101   fi
6102 done
6103   done
6104 IFS=$as_save_IFS
6105
6106 fi
6107 fi
6108 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6109 if test -n "$MANIFEST_TOOL"; then
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6111 $as_echo "$MANIFEST_TOOL" >&6; }
6112 else
6113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114 $as_echo "no" >&6; }
6115 fi
6116
6117
6118 fi
6119 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6120   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6121   # Extract the first word of "mt", so it can be a program name with args.
6122 set dummy mt; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6126   $as_echo_n "(cached) " >&6
6127 else
6128   if test -n "$ac_ct_MANIFEST_TOOL"; then
6129   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6130 else
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134   IFS=$as_save_IFS
6135   test -z "$as_dir" && as_dir=.
6136     for ac_exec_ext in '' $ac_executable_extensions; do
6137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140     break 2
6141   fi
6142 done
6143   done
6144 IFS=$as_save_IFS
6145
6146 fi
6147 fi
6148 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6149 if test -n "$ac_ct_MANIFEST_TOOL"; then
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6151 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6152 else
6153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6155 fi
6156
6157   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6158     MANIFEST_TOOL=":"
6159   else
6160     case $cross_compiling:$ac_tool_warned in
6161 yes:)
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6164 ac_tool_warned=yes ;;
6165 esac
6166     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6167   fi
6168 else
6169   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6170 fi
6171
6172 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6174 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6175 if ${lt_cv_path_mainfest_tool+:} false; then :
6176   $as_echo_n "(cached) " >&6
6177 else
6178   lt_cv_path_mainfest_tool=no
6179   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6180   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6181   cat conftest.err >&5
6182   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6183     lt_cv_path_mainfest_tool=yes
6184   fi
6185   rm -f conftest*
6186 fi
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6188 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6189 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6190   MANIFEST_TOOL=:
6191 fi
6192
6193
6194
6195
6196
6197
6198   case $host_os in
6199     rhapsody* | darwin*)
6200     if test -n "$ac_tool_prefix"; then
6201   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6202 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208   if test -n "$DSYMUTIL"; then
6209   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214   IFS=$as_save_IFS
6215   test -z "$as_dir" && as_dir=.
6216     for ac_exec_ext in '' $ac_executable_extensions; do
6217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220     break 2
6221   fi
6222 done
6223   done
6224 IFS=$as_save_IFS
6225
6226 fi
6227 fi
6228 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6229 if test -n "$DSYMUTIL"; then
6230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6231 $as_echo "$DSYMUTIL" >&6; }
6232 else
6233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6235 fi
6236
6237
6238 fi
6239 if test -z "$ac_cv_prog_DSYMUTIL"; then
6240   ac_ct_DSYMUTIL=$DSYMUTIL
6241   # Extract the first word of "dsymutil", so it can be a program name with args.
6242 set dummy dsymutil; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6246   $as_echo_n "(cached) " >&6
6247 else
6248   if test -n "$ac_ct_DSYMUTIL"; then
6249   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6250 else
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254   IFS=$as_save_IFS
6255   test -z "$as_dir" && as_dir=.
6256     for ac_exec_ext in '' $ac_executable_extensions; do
6257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6258     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260     break 2
6261   fi
6262 done
6263   done
6264 IFS=$as_save_IFS
6265
6266 fi
6267 fi
6268 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6269 if test -n "$ac_ct_DSYMUTIL"; then
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6271 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6272 else
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6275 fi
6276
6277   if test "x$ac_ct_DSYMUTIL" = x; then
6278     DSYMUTIL=":"
6279   else
6280     case $cross_compiling:$ac_tool_warned in
6281 yes:)
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6284 ac_tool_warned=yes ;;
6285 esac
6286     DSYMUTIL=$ac_ct_DSYMUTIL
6287   fi
6288 else
6289   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6290 fi
6291
6292     if test -n "$ac_tool_prefix"; then
6293   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6294 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if ${ac_cv_prog_NMEDIT+:} false; then :
6298   $as_echo_n "(cached) " >&6
6299 else
6300   if test -n "$NMEDIT"; then
6301   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6305 do
6306   IFS=$as_save_IFS
6307   test -z "$as_dir" && as_dir=.
6308     for ac_exec_ext in '' $ac_executable_extensions; do
6309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6310     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312     break 2
6313   fi
6314 done
6315   done
6316 IFS=$as_save_IFS
6317
6318 fi
6319 fi
6320 NMEDIT=$ac_cv_prog_NMEDIT
6321 if test -n "$NMEDIT"; then
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6323 $as_echo "$NMEDIT" >&6; }
6324 else
6325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6327 fi
6328
6329
6330 fi
6331 if test -z "$ac_cv_prog_NMEDIT"; then
6332   ac_ct_NMEDIT=$NMEDIT
6333   # Extract the first word of "nmedit", so it can be a program name with args.
6334 set dummy nmedit; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6338   $as_echo_n "(cached) " >&6
6339 else
6340   if test -n "$ac_ct_NMEDIT"; then
6341   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6345 do
6346   IFS=$as_save_IFS
6347   test -z "$as_dir" && as_dir=.
6348     for ac_exec_ext in '' $ac_executable_extensions; do
6349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352     break 2
6353   fi
6354 done
6355   done
6356 IFS=$as_save_IFS
6357
6358 fi
6359 fi
6360 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6361 if test -n "$ac_ct_NMEDIT"; then
6362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6363 $as_echo "$ac_ct_NMEDIT" >&6; }
6364 else
6365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6367 fi
6368
6369   if test "x$ac_ct_NMEDIT" = x; then
6370     NMEDIT=":"
6371   else
6372     case $cross_compiling:$ac_tool_warned in
6373 yes:)
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376 ac_tool_warned=yes ;;
6377 esac
6378     NMEDIT=$ac_ct_NMEDIT
6379   fi
6380 else
6381   NMEDIT="$ac_cv_prog_NMEDIT"
6382 fi
6383
6384     if test -n "$ac_tool_prefix"; then
6385   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6386 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if ${ac_cv_prog_LIPO+:} false; then :
6390   $as_echo_n "(cached) " >&6
6391 else
6392   if test -n "$LIPO"; then
6393   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6394 else
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6397 do
6398   IFS=$as_save_IFS
6399   test -z "$as_dir" && as_dir=.
6400     for ac_exec_ext in '' $ac_executable_extensions; do
6401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6402     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404     break 2
6405   fi
6406 done
6407   done
6408 IFS=$as_save_IFS
6409
6410 fi
6411 fi
6412 LIPO=$ac_cv_prog_LIPO
6413 if test -n "$LIPO"; then
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6415 $as_echo "$LIPO" >&6; }
6416 else
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6419 fi
6420
6421
6422 fi
6423 if test -z "$ac_cv_prog_LIPO"; then
6424   ac_ct_LIPO=$LIPO
6425   # Extract the first word of "lipo", so it can be a program name with args.
6426 set dummy lipo; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6430   $as_echo_n "(cached) " >&6
6431 else
6432   if test -n "$ac_ct_LIPO"; then
6433   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438   IFS=$as_save_IFS
6439   test -z "$as_dir" && as_dir=.
6440     for ac_exec_ext in '' $ac_executable_extensions; do
6441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6442     ac_cv_prog_ac_ct_LIPO="lipo"
6443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444     break 2
6445   fi
6446 done
6447   done
6448 IFS=$as_save_IFS
6449
6450 fi
6451 fi
6452 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6453 if test -n "$ac_ct_LIPO"; then
6454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6455 $as_echo "$ac_ct_LIPO" >&6; }
6456 else
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6459 fi
6460
6461   if test "x$ac_ct_LIPO" = x; then
6462     LIPO=":"
6463   else
6464     case $cross_compiling:$ac_tool_warned in
6465 yes:)
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6468 ac_tool_warned=yes ;;
6469 esac
6470     LIPO=$ac_ct_LIPO
6471   fi
6472 else
6473   LIPO="$ac_cv_prog_LIPO"
6474 fi
6475
6476     if test -n "$ac_tool_prefix"; then
6477   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6478 set dummy ${ac_tool_prefix}otool; ac_word=$2
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480 $as_echo_n "checking for $ac_word... " >&6; }
6481 if ${ac_cv_prog_OTOOL+:} false; then :
6482   $as_echo_n "(cached) " >&6
6483 else
6484   if test -n "$OTOOL"; then
6485   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490   IFS=$as_save_IFS
6491   test -z "$as_dir" && as_dir=.
6492     for ac_exec_ext in '' $ac_executable_extensions; do
6493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6494     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496     break 2
6497   fi
6498 done
6499   done
6500 IFS=$as_save_IFS
6501
6502 fi
6503 fi
6504 OTOOL=$ac_cv_prog_OTOOL
6505 if test -n "$OTOOL"; then
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6507 $as_echo "$OTOOL" >&6; }
6508 else
6509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6511 fi
6512
6513
6514 fi
6515 if test -z "$ac_cv_prog_OTOOL"; then
6516   ac_ct_OTOOL=$OTOOL
6517   # Extract the first word of "otool", so it can be a program name with args.
6518 set dummy otool; ac_word=$2
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520 $as_echo_n "checking for $ac_word... " >&6; }
6521 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6522   $as_echo_n "(cached) " >&6
6523 else
6524   if test -n "$ac_ct_OTOOL"; then
6525   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530   IFS=$as_save_IFS
6531   test -z "$as_dir" && as_dir=.
6532     for ac_exec_ext in '' $ac_executable_extensions; do
6533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534     ac_cv_prog_ac_ct_OTOOL="otool"
6535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536     break 2
6537   fi
6538 done
6539   done
6540 IFS=$as_save_IFS
6541
6542 fi
6543 fi
6544 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6545 if test -n "$ac_ct_OTOOL"; then
6546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6547 $as_echo "$ac_ct_OTOOL" >&6; }
6548 else
6549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550 $as_echo "no" >&6; }
6551 fi
6552
6553   if test "x$ac_ct_OTOOL" = x; then
6554     OTOOL=":"
6555   else
6556     case $cross_compiling:$ac_tool_warned in
6557 yes:)
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6560 ac_tool_warned=yes ;;
6561 esac
6562     OTOOL=$ac_ct_OTOOL
6563   fi
6564 else
6565   OTOOL="$ac_cv_prog_OTOOL"
6566 fi
6567
6568     if test -n "$ac_tool_prefix"; then
6569   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6570 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_prog_OTOOL64+:} false; then :
6574   $as_echo_n "(cached) " >&6
6575 else
6576   if test -n "$OTOOL64"; then
6577   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582   IFS=$as_save_IFS
6583   test -z "$as_dir" && as_dir=.
6584     for ac_exec_ext in '' $ac_executable_extensions; do
6585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588     break 2
6589   fi
6590 done
6591   done
6592 IFS=$as_save_IFS
6593
6594 fi
6595 fi
6596 OTOOL64=$ac_cv_prog_OTOOL64
6597 if test -n "$OTOOL64"; then
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6599 $as_echo "$OTOOL64" >&6; }
6600 else
6601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604
6605
6606 fi
6607 if test -z "$ac_cv_prog_OTOOL64"; then
6608   ac_ct_OTOOL64=$OTOOL64
6609   # Extract the first word of "otool64", so it can be a program name with args.
6610 set dummy otool64; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   if test -n "$ac_ct_OTOOL64"; then
6617   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622   IFS=$as_save_IFS
6623   test -z "$as_dir" && as_dir=.
6624     for ac_exec_ext in '' $ac_executable_extensions; do
6625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626     ac_cv_prog_ac_ct_OTOOL64="otool64"
6627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631   done
6632 IFS=$as_save_IFS
6633
6634 fi
6635 fi
6636 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6637 if test -n "$ac_ct_OTOOL64"; then
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6639 $as_echo "$ac_ct_OTOOL64" >&6; }
6640 else
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644
6645   if test "x$ac_ct_OTOOL64" = x; then
6646     OTOOL64=":"
6647   else
6648     case $cross_compiling:$ac_tool_warned in
6649 yes:)
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6652 ac_tool_warned=yes ;;
6653 esac
6654     OTOOL64=$ac_ct_OTOOL64
6655   fi
6656 else
6657   OTOOL64="$ac_cv_prog_OTOOL64"
6658 fi
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6687 $as_echo_n "checking for -single_module linker flag... " >&6; }
6688 if ${lt_cv_apple_cc_single_mod+:} false; then :
6689   $as_echo_n "(cached) " >&6
6690 else
6691   lt_cv_apple_cc_single_mod=no
6692       if test -z "${LT_MULTI_MODULE}"; then
6693         # By default we will add the -single_module flag. You can override
6694         # by either setting the environment variable LT_MULTI_MODULE
6695         # non-empty at configure time, or by adding -multi_module to the
6696         # link flags.
6697         rm -rf libconftest.dylib*
6698         echo "int foo(void){return 1;}" > conftest.c
6699         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6700 -dynamiclib -Wl,-single_module conftest.c" >&5
6701         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6702           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6703         _lt_result=$?
6704         # If there is a non-empty error log, and "single_module"
6705         # appears in it, assume the flag caused a linker warning
6706         if test -s conftest.err && $GREP single_module conftest.err; then
6707           cat conftest.err >&5
6708         # Otherwise, if the output was created with a 0 exit code from
6709         # the compiler, it worked.
6710         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6711           lt_cv_apple_cc_single_mod=yes
6712         else
6713           cat conftest.err >&5
6714         fi
6715         rm -rf libconftest.dylib*
6716         rm -f conftest.*
6717       fi
6718 fi
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6720 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6721
6722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6723 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6724 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6725   $as_echo_n "(cached) " >&6
6726 else
6727   lt_cv_ld_exported_symbols_list=no
6728       save_LDFLAGS=$LDFLAGS
6729       echo "_main" > conftest.sym
6730       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6731       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h.  */
6733
6734 int
6735 main ()
6736 {
6737
6738   ;
6739   return 0;
6740 }
6741 _ACEOF
6742 if ac_fn_c_try_link "$LINENO"; then :
6743   lt_cv_ld_exported_symbols_list=yes
6744 else
6745   lt_cv_ld_exported_symbols_list=no
6746 fi
6747 rm -f core conftest.err conftest.$ac_objext \
6748     conftest$ac_exeext conftest.$ac_ext
6749         LDFLAGS="$save_LDFLAGS"
6750
6751 fi
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6753 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6754
6755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6756 $as_echo_n "checking for -force_load linker flag... " >&6; }
6757 if ${lt_cv_ld_force_load+:} false; then :
6758   $as_echo_n "(cached) " >&6
6759 else
6760   lt_cv_ld_force_load=no
6761       cat > conftest.c << _LT_EOF
6762 int forced_loaded() { return 2;}
6763 _LT_EOF
6764       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6765       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6766       echo "$AR cru libconftest.a conftest.o" >&5
6767       $AR cru libconftest.a conftest.o 2>&5
6768       echo "$RANLIB libconftest.a" >&5
6769       $RANLIB libconftest.a 2>&5
6770       cat > conftest.c << _LT_EOF
6771 int main() { return 0;}
6772 _LT_EOF
6773       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6774       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6775       _lt_result=$?
6776       if test -s conftest.err && $GREP force_load conftest.err; then
6777         cat conftest.err >&5
6778       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6779         lt_cv_ld_force_load=yes
6780       else
6781         cat conftest.err >&5
6782       fi
6783         rm -f conftest.err libconftest.a conftest conftest.c
6784         rm -rf conftest.dSYM
6785
6786 fi
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6788 $as_echo "$lt_cv_ld_force_load" >&6; }
6789     case $host_os in
6790     rhapsody* | darwin1.[012])
6791       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6792     darwin1.*)
6793       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6794     darwin*) # darwin 5.x on
6795       # if running on 10.5 or later, the deployment target defaults
6796       # to the OS version, if on x86, and 10.4, the deployment
6797       # target defaults to 10.4. Don't you love it?
6798       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6799         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6800           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6801         10.[012]*)
6802           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6803         10.*)
6804           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6805       esac
6806     ;;
6807   esac
6808     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6809       _lt_dar_single_mod='$single_module'
6810     fi
6811     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6812       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6813     else
6814       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6815     fi
6816     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6817       _lt_dsymutil='~$DSYMUTIL $lib || :'
6818     else
6819       _lt_dsymutil=
6820     fi
6821     ;;
6822   esac
6823
6824 ac_ext=c
6825 ac_cpp='$CPP $CPPFLAGS'
6826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6830 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6831 # On Suns, sometimes $CPP names a directory.
6832 if test -n "$CPP" && test -d "$CPP"; then
6833   CPP=
6834 fi
6835 if test -z "$CPP"; then
6836   if ${ac_cv_prog_CPP+:} false; then :
6837   $as_echo_n "(cached) " >&6
6838 else
6839       # Double quotes because CPP needs to be expanded
6840     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6841     do
6842       ac_preproc_ok=false
6843 for ac_c_preproc_warn_flag in '' yes
6844 do
6845   # Use a header file that comes with gcc, so configuring glibc
6846   # with a fresh cross-compiler works.
6847   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6848   # <limits.h> exists even on freestanding compilers.
6849   # On the NeXT, cc -E runs the code through the compiler's parser,
6850   # not just through cpp. "Syntax error" is here to catch this case.
6851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h.  */
6853 #ifdef __STDC__
6854 # include <limits.h>
6855 #else
6856 # include <assert.h>
6857 #endif
6858                      Syntax error
6859 _ACEOF
6860 if ac_fn_c_try_cpp "$LINENO"; then :
6861
6862 else
6863   # Broken: fails on valid input.
6864 continue
6865 fi
6866 rm -f conftest.err conftest.i conftest.$ac_ext
6867
6868   # OK, works on sane cases.  Now check whether nonexistent headers
6869   # can be detected and how.
6870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h.  */
6872 #include <ac_nonexistent.h>
6873 _ACEOF
6874 if ac_fn_c_try_cpp "$LINENO"; then :
6875   # Broken: success on invalid input.
6876 continue
6877 else
6878   # Passes both tests.
6879 ac_preproc_ok=:
6880 break
6881 fi
6882 rm -f conftest.err conftest.i conftest.$ac_ext
6883
6884 done
6885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6886 rm -f conftest.i conftest.err conftest.$ac_ext
6887 if $ac_preproc_ok; then :
6888   break
6889 fi
6890
6891     done
6892     ac_cv_prog_CPP=$CPP
6893
6894 fi
6895   CPP=$ac_cv_prog_CPP
6896 else
6897   ac_cv_prog_CPP=$CPP
6898 fi
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6900 $as_echo "$CPP" >&6; }
6901 ac_preproc_ok=false
6902 for ac_c_preproc_warn_flag in '' yes
6903 do
6904   # Use a header file that comes with gcc, so configuring glibc
6905   # with a fresh cross-compiler works.
6906   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6907   # <limits.h> exists even on freestanding compilers.
6908   # On the NeXT, cc -E runs the code through the compiler's parser,
6909   # not just through cpp. "Syntax error" is here to catch this case.
6910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h.  */
6912 #ifdef __STDC__
6913 # include <limits.h>
6914 #else
6915 # include <assert.h>
6916 #endif
6917                      Syntax error
6918 _ACEOF
6919 if ac_fn_c_try_cpp "$LINENO"; then :
6920
6921 else
6922   # Broken: fails on valid input.
6923 continue
6924 fi
6925 rm -f conftest.err conftest.i conftest.$ac_ext
6926
6927   # OK, works on sane cases.  Now check whether nonexistent headers
6928   # can be detected and how.
6929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h.  */
6931 #include <ac_nonexistent.h>
6932 _ACEOF
6933 if ac_fn_c_try_cpp "$LINENO"; then :
6934   # Broken: success on invalid input.
6935 continue
6936 else
6937   # Passes both tests.
6938 ac_preproc_ok=:
6939 break
6940 fi
6941 rm -f conftest.err conftest.i conftest.$ac_ext
6942
6943 done
6944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6945 rm -f conftest.i conftest.err conftest.$ac_ext
6946 if $ac_preproc_ok; then :
6947
6948 else
6949   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6951 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6952 See \`config.log' for more details" "$LINENO" 5; }
6953 fi
6954
6955 ac_ext=c
6956 ac_cpp='$CPP $CPPFLAGS'
6957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6960
6961
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6963 $as_echo_n "checking for ANSI C header files... " >&6; }
6964 if ${ac_cv_header_stdc+:} false; then :
6965   $as_echo_n "(cached) " >&6
6966 else
6967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h.  */
6969 #include <stdlib.h>
6970 #include <stdarg.h>
6971 #include <string.h>
6972 #include <float.h>
6973
6974 int
6975 main ()
6976 {
6977
6978   ;
6979   return 0;
6980 }
6981 _ACEOF
6982 if ac_fn_c_try_compile "$LINENO"; then :
6983   ac_cv_header_stdc=yes
6984 else
6985   ac_cv_header_stdc=no
6986 fi
6987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988
6989 if test $ac_cv_header_stdc = yes; then
6990   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h.  */
6993 #include <string.h>
6994
6995 _ACEOF
6996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6997   $EGREP "memchr" >/dev/null 2>&1; then :
6998
6999 else
7000   ac_cv_header_stdc=no
7001 fi
7002 rm -f conftest*
7003
7004 fi
7005
7006 if test $ac_cv_header_stdc = yes; then
7007   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h.  */
7010 #include <stdlib.h>
7011
7012 _ACEOF
7013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7014   $EGREP "free" >/dev/null 2>&1; then :
7015
7016 else
7017   ac_cv_header_stdc=no
7018 fi
7019 rm -f conftest*
7020
7021 fi
7022
7023 if test $ac_cv_header_stdc = yes; then
7024   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7025   if test "$cross_compiling" = yes; then :
7026   :
7027 else
7028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h.  */
7030 #include <ctype.h>
7031 #include <stdlib.h>
7032 #if ((' ' & 0x0FF) == 0x020)
7033 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7034 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7035 #else
7036 # define ISLOWER(c) \
7037                    (('a' <= (c) && (c) <= 'i') \
7038                      || ('j' <= (c) && (c) <= 'r') \
7039                      || ('s' <= (c) && (c) <= 'z'))
7040 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7041 #endif
7042
7043 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7044 int
7045 main ()
7046 {
7047   int i;
7048   for (i = 0; i < 256; i++)
7049     if (XOR (islower (i), ISLOWER (i))
7050         || toupper (i) != TOUPPER (i))
7051       return 2;
7052   return 0;
7053 }
7054 _ACEOF
7055 if ac_fn_c_try_run "$LINENO"; then :
7056
7057 else
7058   ac_cv_header_stdc=no
7059 fi
7060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7061   conftest.$ac_objext conftest.beam conftest.$ac_ext
7062 fi
7063
7064 fi
7065 fi
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7067 $as_echo "$ac_cv_header_stdc" >&6; }
7068 if test $ac_cv_header_stdc = yes; then
7069
7070 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7071
7072 fi
7073
7074 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7075 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7076                   inttypes.h stdint.h unistd.h
7077 do :
7078   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7079 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7080 "
7081 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7082   cat >>confdefs.h <<_ACEOF
7083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7084 _ACEOF
7085
7086 fi
7087
7088 done
7089
7090
7091 for ac_header in dlfcn.h
7092 do :
7093   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7094 "
7095 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7096   cat >>confdefs.h <<_ACEOF
7097 #define HAVE_DLFCN_H 1
7098 _ACEOF
7099
7100 fi
7101
7102 done
7103
7104
7105
7106
7107
7108 # Set options
7109 enable_win32_dll=yes
7110
7111 case $host in
7112 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7113   if test -n "$ac_tool_prefix"; then
7114   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7115 set dummy ${ac_tool_prefix}as; ac_word=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 $as_echo_n "checking for $ac_word... " >&6; }
7118 if ${ac_cv_prog_AS+:} false; then :
7119   $as_echo_n "(cached) " >&6
7120 else
7121   if test -n "$AS"; then
7122   ac_cv_prog_AS="$AS" # Let the user override the test.
7123 else
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127   IFS=$as_save_IFS
7128   test -z "$as_dir" && as_dir=.
7129     for ac_exec_ext in '' $ac_executable_extensions; do
7130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131     ac_cv_prog_AS="${ac_tool_prefix}as"
7132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133     break 2
7134   fi
7135 done
7136   done
7137 IFS=$as_save_IFS
7138
7139 fi
7140 fi
7141 AS=$ac_cv_prog_AS
7142 if test -n "$AS"; then
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7144 $as_echo "$AS" >&6; }
7145 else
7146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7148 fi
7149
7150
7151 fi
7152 if test -z "$ac_cv_prog_AS"; then
7153   ac_ct_AS=$AS
7154   # Extract the first word of "as", so it can be a program name with args.
7155 set dummy as; ac_word=$2
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 $as_echo_n "checking for $ac_word... " >&6; }
7158 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7159   $as_echo_n "(cached) " >&6
7160 else
7161   if test -n "$ac_ct_AS"; then
7162   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7163 else
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167   IFS=$as_save_IFS
7168   test -z "$as_dir" && as_dir=.
7169     for ac_exec_ext in '' $ac_executable_extensions; do
7170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171     ac_cv_prog_ac_ct_AS="as"
7172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173     break 2
7174   fi
7175 done
7176   done
7177 IFS=$as_save_IFS
7178
7179 fi
7180 fi
7181 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7182 if test -n "$ac_ct_AS"; then
7183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7184 $as_echo "$ac_ct_AS" >&6; }
7185 else
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7188 fi
7189
7190   if test "x$ac_ct_AS" = x; then
7191     AS="false"
7192   else
7193     case $cross_compiling:$ac_tool_warned in
7194 yes:)
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7197 ac_tool_warned=yes ;;
7198 esac
7199     AS=$ac_ct_AS
7200   fi
7201 else
7202   AS="$ac_cv_prog_AS"
7203 fi
7204
7205   if test -n "$ac_tool_prefix"; then
7206   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7207 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_DLLTOOL+:} false; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   if test -n "$DLLTOOL"; then
7214   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219   IFS=$as_save_IFS
7220   test -z "$as_dir" && as_dir=.
7221     for ac_exec_ext in '' $ac_executable_extensions; do
7222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225     break 2
7226   fi
7227 done
7228   done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 DLLTOOL=$ac_cv_prog_DLLTOOL
7234 if test -n "$DLLTOOL"; then
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7236 $as_echo "$DLLTOOL" >&6; }
7237 else
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 fi
7241
7242
7243 fi
7244 if test -z "$ac_cv_prog_DLLTOOL"; then
7245   ac_ct_DLLTOOL=$DLLTOOL
7246   # Extract the first word of "dlltool", so it can be a program name with args.
7247 set dummy dlltool; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7251   $as_echo_n "(cached) " >&6
7252 else
7253   if test -n "$ac_ct_DLLTOOL"; then
7254   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259   IFS=$as_save_IFS
7260   test -z "$as_dir" && as_dir=.
7261     for ac_exec_ext in '' $ac_executable_extensions; do
7262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265     break 2
7266   fi
7267 done
7268   done
7269 IFS=$as_save_IFS
7270
7271 fi
7272 fi
7273 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7274 if test -n "$ac_ct_DLLTOOL"; then
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7276 $as_echo "$ac_ct_DLLTOOL" >&6; }
7277 else
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280 fi
7281
7282   if test "x$ac_ct_DLLTOOL" = x; then
7283     DLLTOOL="false"
7284   else
7285     case $cross_compiling:$ac_tool_warned in
7286 yes:)
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289 ac_tool_warned=yes ;;
7290 esac
7291     DLLTOOL=$ac_ct_DLLTOOL
7292   fi
7293 else
7294   DLLTOOL="$ac_cv_prog_DLLTOOL"
7295 fi
7296
7297   if test -n "$ac_tool_prefix"; then
7298   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7299 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_prog_OBJDUMP+:} false; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   if test -n "$OBJDUMP"; then
7306   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311   IFS=$as_save_IFS
7312   test -z "$as_dir" && as_dir=.
7313     for ac_exec_ext in '' $ac_executable_extensions; do
7314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317     break 2
7318   fi
7319 done
7320   done
7321 IFS=$as_save_IFS
7322
7323 fi
7324 fi
7325 OBJDUMP=$ac_cv_prog_OBJDUMP
7326 if test -n "$OBJDUMP"; then
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7328 $as_echo "$OBJDUMP" >&6; }
7329 else
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7332 fi
7333
7334
7335 fi
7336 if test -z "$ac_cv_prog_OBJDUMP"; then
7337   ac_ct_OBJDUMP=$OBJDUMP
7338   # Extract the first word of "objdump", so it can be a program name with args.
7339 set dummy objdump; ac_word=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7343   $as_echo_n "(cached) " >&6
7344 else
7345   if test -n "$ac_ct_OBJDUMP"; then
7346   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7347 else
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7350 do
7351   IFS=$as_save_IFS
7352   test -z "$as_dir" && as_dir=.
7353     for ac_exec_ext in '' $ac_executable_extensions; do
7354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7355     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357     break 2
7358   fi
7359 done
7360   done
7361 IFS=$as_save_IFS
7362
7363 fi
7364 fi
7365 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7366 if test -n "$ac_ct_OBJDUMP"; then
7367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7368 $as_echo "$ac_ct_OBJDUMP" >&6; }
7369 else
7370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7372 fi
7373
7374   if test "x$ac_ct_OBJDUMP" = x; then
7375     OBJDUMP="false"
7376   else
7377     case $cross_compiling:$ac_tool_warned in
7378 yes:)
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7381 ac_tool_warned=yes ;;
7382 esac
7383     OBJDUMP=$ac_ct_OBJDUMP
7384   fi
7385 else
7386   OBJDUMP="$ac_cv_prog_OBJDUMP"
7387 fi
7388
7389   ;;
7390 esac
7391
7392 test -z "$AS" && AS=as
7393
7394
7395
7396
7397
7398 test -z "$DLLTOOL" && DLLTOOL=dlltool
7399
7400
7401
7402
7403
7404 test -z "$OBJDUMP" && OBJDUMP=objdump
7405
7406
7407
7408
7409
7410
7411
7412         enable_dlopen=no
7413
7414
7415
7416             # Check whether --enable-shared was given.
7417 if test "${enable_shared+set}" = set; then :
7418   enableval=$enable_shared; p=${PACKAGE-default}
7419     case $enableval in
7420     yes) enable_shared=yes ;;
7421     no) enable_shared=no ;;
7422     *)
7423       enable_shared=no
7424       # Look at the argument we got.  We use all the common list separators.
7425       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7426       for pkg in $enableval; do
7427         IFS="$lt_save_ifs"
7428         if test "X$pkg" = "X$p"; then
7429           enable_shared=yes
7430         fi
7431       done
7432       IFS="$lt_save_ifs"
7433       ;;
7434     esac
7435 else
7436   enable_shared=yes
7437 fi
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447   # Check whether --enable-static was given.
7448 if test "${enable_static+set}" = set; then :
7449   enableval=$enable_static; p=${PACKAGE-default}
7450     case $enableval in
7451     yes) enable_static=yes ;;
7452     no) enable_static=no ;;
7453     *)
7454      enable_static=no
7455       # Look at the argument we got.  We use all the common list separators.
7456       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7457       for pkg in $enableval; do
7458         IFS="$lt_save_ifs"
7459         if test "X$pkg" = "X$p"; then
7460           enable_static=yes
7461         fi
7462       done
7463       IFS="$lt_save_ifs"
7464       ;;
7465     esac
7466 else
7467   enable_static=yes
7468 fi
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479 # Check whether --with-pic was given.
7480 if test "${with_pic+set}" = set; then :
7481   withval=$with_pic; lt_p=${PACKAGE-default}
7482     case $withval in
7483     yes|no) pic_mode=$withval ;;
7484     *)
7485       pic_mode=default
7486       # Look at the argument we got.  We use all the common list separators.
7487       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7488       for lt_pkg in $withval; do
7489         IFS="$lt_save_ifs"
7490         if test "X$lt_pkg" = "X$lt_p"; then
7491           pic_mode=yes
7492         fi
7493       done
7494       IFS="$lt_save_ifs"
7495       ;;
7496     esac
7497 else
7498   pic_mode=default
7499 fi
7500
7501
7502 test -z "$pic_mode" && pic_mode=default
7503
7504
7505
7506
7507
7508
7509
7510   # Check whether --enable-fast-install was given.
7511 if test "${enable_fast_install+set}" = set; then :
7512   enableval=$enable_fast_install; p=${PACKAGE-default}
7513     case $enableval in
7514     yes) enable_fast_install=yes ;;
7515     no) enable_fast_install=no ;;
7516     *)
7517       enable_fast_install=no
7518       # Look at the argument we got.  We use all the common list separators.
7519       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7520       for pkg in $enableval; do
7521         IFS="$lt_save_ifs"
7522         if test "X$pkg" = "X$p"; then
7523           enable_fast_install=yes
7524         fi
7525       done
7526       IFS="$lt_save_ifs"
7527       ;;
7528     esac
7529 else
7530   enable_fast_install=yes
7531 fi
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543 # This can be used to rebuild libtool when needed
7544 LIBTOOL_DEPS="$ltmain"
7545
7546 # Always use our own libtool.
7547 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578 test -z "$LN_S" && LN_S="ln -s"
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593 if test -n "${ZSH_VERSION+set}" ; then
7594    setopt NO_GLOB_SUBST
7595 fi
7596
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7598 $as_echo_n "checking for objdir... " >&6; }
7599 if ${lt_cv_objdir+:} false; then :
7600   $as_echo_n "(cached) " >&6
7601 else
7602   rm -f .libs 2>/dev/null
7603 mkdir .libs 2>/dev/null
7604 if test -d .libs; then
7605   lt_cv_objdir=.libs
7606 else
7607   # MS-DOS does not allow filenames that begin with a dot.
7608   lt_cv_objdir=_libs
7609 fi
7610 rmdir .libs 2>/dev/null
7611 fi
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7613 $as_echo "$lt_cv_objdir" >&6; }
7614 objdir=$lt_cv_objdir
7615
7616
7617
7618
7619
7620 cat >>confdefs.h <<_ACEOF
7621 #define LT_OBJDIR "$lt_cv_objdir/"
7622 _ACEOF
7623
7624
7625
7626
7627 case $host_os in
7628 aix3*)
7629   # AIX sometimes has problems with the GCC collect2 program.  For some
7630   # reason, if we set the COLLECT_NAMES environment variable, the problems
7631   # vanish in a puff of smoke.
7632   if test "X${COLLECT_NAMES+set}" != Xset; then
7633     COLLECT_NAMES=
7634     export COLLECT_NAMES
7635   fi
7636   ;;
7637 esac
7638
7639 # Global variables:
7640 ofile=libtool
7641 can_build_shared=yes
7642
7643 # All known linkers require a `.a' archive for static linking (except MSVC,
7644 # which needs '.lib').
7645 libext=a
7646
7647 with_gnu_ld="$lt_cv_prog_gnu_ld"
7648
7649 old_CC="$CC"
7650 old_CFLAGS="$CFLAGS"
7651
7652 # Set sane defaults for various variables
7653 test -z "$CC" && CC=cc
7654 test -z "$LTCC" && LTCC=$CC
7655 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7656 test -z "$LD" && LD=ld
7657 test -z "$ac_objext" && ac_objext=o
7658
7659 for cc_temp in $compiler""; do
7660   case $cc_temp in
7661     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7662     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7663     \-*) ;;
7664     *) break;;
7665   esac
7666 done
7667 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7668
7669
7670 # Only perform the check for file, if the check method requires it
7671 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7672 case $deplibs_check_method in
7673 file_magic*)
7674   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7676 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7677 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7678   $as_echo_n "(cached) " >&6
7679 else
7680   case $MAGIC_CMD in
7681 [\\/*] |  ?:[\\/]*)
7682   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7683   ;;
7684 *)
7685   lt_save_MAGIC_CMD="$MAGIC_CMD"
7686   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7687   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7688   for ac_dir in $ac_dummy; do
7689     IFS="$lt_save_ifs"
7690     test -z "$ac_dir" && ac_dir=.
7691     if test -f $ac_dir/${ac_tool_prefix}file; then
7692       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7693       if test -n "$file_magic_test_file"; then
7694         case $deplibs_check_method in
7695         "file_magic "*)
7696           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7697           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7698           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7699             $EGREP "$file_magic_regex" > /dev/null; then
7700             :
7701           else
7702             cat <<_LT_EOF 1>&2
7703
7704 *** Warning: the command libtool uses to detect shared libraries,
7705 *** $file_magic_cmd, produces output that libtool cannot recognize.
7706 *** The result is that libtool may fail to recognize shared libraries
7707 *** as such.  This will affect the creation of libtool libraries that
7708 *** depend on shared libraries, but programs linked with such libtool
7709 *** libraries will work regardless of this problem.  Nevertheless, you
7710 *** may want to report the problem to your system manager and/or to
7711 *** bug-libtool@gnu.org
7712
7713 _LT_EOF
7714           fi ;;
7715         esac
7716       fi
7717       break
7718     fi
7719   done
7720   IFS="$lt_save_ifs"
7721   MAGIC_CMD="$lt_save_MAGIC_CMD"
7722   ;;
7723 esac
7724 fi
7725
7726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7727 if test -n "$MAGIC_CMD"; then
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7729 $as_echo "$MAGIC_CMD" >&6; }
7730 else
7731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7733 fi
7734
7735
7736
7737
7738
7739 if test -z "$lt_cv_path_MAGIC_CMD"; then
7740   if test -n "$ac_tool_prefix"; then
7741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7742 $as_echo_n "checking for file... " >&6; }
7743 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7744   $as_echo_n "(cached) " >&6
7745 else
7746   case $MAGIC_CMD in
7747 [\\/*] |  ?:[\\/]*)
7748   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7749   ;;
7750 *)
7751   lt_save_MAGIC_CMD="$MAGIC_CMD"
7752   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7753   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7754   for ac_dir in $ac_dummy; do
7755     IFS="$lt_save_ifs"
7756     test -z "$ac_dir" && ac_dir=.
7757     if test -f $ac_dir/file; then
7758       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7759       if test -n "$file_magic_test_file"; then
7760         case $deplibs_check_method in
7761         "file_magic "*)
7762           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7763           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7764           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7765             $EGREP "$file_magic_regex" > /dev/null; then
7766             :
7767           else
7768             cat <<_LT_EOF 1>&2
7769
7770 *** Warning: the command libtool uses to detect shared libraries,
7771 *** $file_magic_cmd, produces output that libtool cannot recognize.
7772 *** The result is that libtool may fail to recognize shared libraries
7773 *** as such.  This will affect the creation of libtool libraries that
7774 *** depend on shared libraries, but programs linked with such libtool
7775 *** libraries will work regardless of this problem.  Nevertheless, you
7776 *** may want to report the problem to your system manager and/or to
7777 *** bug-libtool@gnu.org
7778
7779 _LT_EOF
7780           fi ;;
7781         esac
7782       fi
7783       break
7784     fi
7785   done
7786   IFS="$lt_save_ifs"
7787   MAGIC_CMD="$lt_save_MAGIC_CMD"
7788   ;;
7789 esac
7790 fi
7791
7792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7793 if test -n "$MAGIC_CMD"; then
7794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7795 $as_echo "$MAGIC_CMD" >&6; }
7796 else
7797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7799 fi
7800
7801
7802   else
7803     MAGIC_CMD=:
7804   fi
7805 fi
7806
7807   fi
7808   ;;
7809 esac
7810
7811 # Use C for the default configuration in the libtool script
7812
7813 lt_save_CC="$CC"
7814 ac_ext=c
7815 ac_cpp='$CPP $CPPFLAGS'
7816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7819
7820
7821 # Source file extension for C test sources.
7822 ac_ext=c
7823
7824 # Object file extension for compiled C test sources.
7825 objext=o
7826 objext=$objext
7827
7828 # Code to be used in simple compile tests
7829 lt_simple_compile_test_code="int some_variable = 0;"
7830
7831 # Code to be used in simple link tests
7832 lt_simple_link_test_code='int main(){return(0);}'
7833
7834
7835
7836
7837
7838
7839
7840 # If no C compiler was specified, use CC.
7841 LTCC=${LTCC-"$CC"}
7842
7843 # If no C compiler flags were specified, use CFLAGS.
7844 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7845
7846 # Allow CC to be a program name with arguments.
7847 compiler=$CC
7848
7849 # Save the default compiler, since it gets overwritten when the other
7850 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7851 compiler_DEFAULT=$CC
7852
7853 # save warnings/boilerplate of simple test code
7854 ac_outfile=conftest.$ac_objext
7855 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7856 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7857 _lt_compiler_boilerplate=`cat conftest.err`
7858 $RM conftest*
7859
7860 ac_outfile=conftest.$ac_objext
7861 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7862 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7863 _lt_linker_boilerplate=`cat conftest.err`
7864 $RM -r conftest*
7865
7866
7867 ## CAVEAT EMPTOR:
7868 ## There is no encapsulation within the following macros, do not change
7869 ## the running order or otherwise move them around unless you know exactly
7870 ## what you are doing...
7871 if test -n "$compiler"; then
7872
7873 lt_prog_compiler_no_builtin_flag=
7874
7875 if test "$GCC" = yes; then
7876   case $cc_basename in
7877   nvcc*)
7878     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7879   *)
7880     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7881   esac
7882
7883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7884 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7885 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7886   $as_echo_n "(cached) " >&6
7887 else
7888   lt_cv_prog_compiler_rtti_exceptions=no
7889    ac_outfile=conftest.$ac_objext
7890    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7891    lt_compiler_flag="-fno-rtti -fno-exceptions"
7892    # Insert the option either (1) after the last *FLAGS variable, or
7893    # (2) before a word containing "conftest.", or (3) at the end.
7894    # Note that $ac_compile itself does not contain backslashes and begins
7895    # with a dollar sign (not a hyphen), so the echo should work correctly.
7896    # The option is referenced via a variable to avoid confusing sed.
7897    lt_compile=`echo "$ac_compile" | $SED \
7898    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7899    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7900    -e 's:$: $lt_compiler_flag:'`
7901    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7902    (eval "$lt_compile" 2>conftest.err)
7903    ac_status=$?
7904    cat conftest.err >&5
7905    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906    if (exit $ac_status) && test -s "$ac_outfile"; then
7907      # The compiler can only warn and ignore the option if not recognized
7908      # So say no if there are warnings other than the usual output.
7909      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7910      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7911      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7912        lt_cv_prog_compiler_rtti_exceptions=yes
7913      fi
7914    fi
7915    $RM conftest*
7916
7917 fi
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7919 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7920
7921 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7922     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7923 else
7924     :
7925 fi
7926
7927 fi
7928
7929
7930
7931
7932
7933
7934   lt_prog_compiler_wl=
7935 lt_prog_compiler_pic=
7936 lt_prog_compiler_static=
7937
7938
7939   if test "$GCC" = yes; then
7940     lt_prog_compiler_wl='-Wl,'
7941     lt_prog_compiler_static='-static'
7942
7943     case $host_os in
7944       aix*)
7945       # All AIX code is PIC.
7946       if test "$host_cpu" = ia64; then
7947         # AIX 5 now supports IA64 processor
7948         lt_prog_compiler_static='-Bstatic'
7949       fi
7950       ;;
7951
7952     amigaos*)
7953       case $host_cpu in
7954       powerpc)
7955             # see comment about AmigaOS4 .so support
7956             lt_prog_compiler_pic='-fPIC'
7957         ;;
7958       m68k)
7959             # FIXME: we need at least 68020 code to build shared libraries, but
7960             # adding the `-m68020' flag to GCC prevents building anything better,
7961             # like `-m68040'.
7962             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7963         ;;
7964       esac
7965       ;;
7966
7967     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7968       # PIC is the default for these OSes.
7969       ;;
7970
7971     mingw* | cygwin* | pw32* | os2* | cegcc*)
7972       # This hack is so that the source file can tell whether it is being
7973       # built for inclusion in a dll (and should export symbols for example).
7974       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7975       # (--disable-auto-import) libraries
7976       lt_prog_compiler_pic='-DDLL_EXPORT'
7977       ;;
7978
7979     darwin* | rhapsody*)
7980       # PIC is the default on this platform
7981       # Common symbols not allowed in MH_DYLIB files
7982       lt_prog_compiler_pic='-fno-common'
7983       ;;
7984
7985     haiku*)
7986       # PIC is the default for Haiku.
7987       # The "-static" flag exists, but is broken.
7988       lt_prog_compiler_static=
7989       ;;
7990
7991     hpux*)
7992       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7993       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7994       # sets the default TLS model and affects inlining.
7995       case $host_cpu in
7996       hppa*64*)
7997         # +Z the default
7998         ;;
7999       *)
8000         lt_prog_compiler_pic='-fPIC'
8001         ;;
8002       esac
8003       ;;
8004
8005     interix[3-9]*)
8006       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8007       # Instead, we relocate shared libraries at runtime.
8008       ;;
8009
8010     msdosdjgpp*)
8011       # Just because we use GCC doesn't mean we suddenly get shared libraries
8012       # on systems that don't support them.
8013       lt_prog_compiler_can_build_shared=no
8014       enable_shared=no
8015       ;;
8016
8017     *nto* | *qnx*)
8018       # QNX uses GNU C++, but need to define -shared option too, otherwise
8019       # it will coredump.
8020       lt_prog_compiler_pic='-fPIC -shared'
8021       ;;
8022
8023     sysv4*MP*)
8024       if test -d /usr/nec; then
8025         lt_prog_compiler_pic=-Kconform_pic
8026       fi
8027       ;;
8028
8029     *)
8030       lt_prog_compiler_pic='-fPIC'
8031       ;;
8032     esac
8033
8034     case $cc_basename in
8035     nvcc*) # Cuda Compiler Driver 2.2
8036       lt_prog_compiler_wl='-Xlinker '
8037       if test -n "$lt_prog_compiler_pic"; then
8038         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8039       fi
8040       ;;
8041     esac
8042   else
8043     # PORTME Check for flag to pass linker flags through the system compiler.
8044     case $host_os in
8045     aix*)
8046       lt_prog_compiler_wl='-Wl,'
8047       if test "$host_cpu" = ia64; then
8048         # AIX 5 now supports IA64 processor
8049         lt_prog_compiler_static='-Bstatic'
8050       else
8051         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8052       fi
8053       ;;
8054
8055     mingw* | cygwin* | pw32* | os2* | cegcc*)
8056       # This hack is so that the source file can tell whether it is being
8057       # built for inclusion in a dll (and should export symbols for example).
8058       lt_prog_compiler_pic='-DDLL_EXPORT'
8059       ;;
8060
8061     hpux9* | hpux10* | hpux11*)
8062       lt_prog_compiler_wl='-Wl,'
8063       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8064       # not for PA HP-UX.
8065       case $host_cpu in
8066       hppa*64*|ia64*)
8067         # +Z the default
8068         ;;
8069       *)
8070         lt_prog_compiler_pic='+Z'
8071         ;;
8072       esac
8073       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8074       lt_prog_compiler_static='${wl}-a ${wl}archive'
8075       ;;
8076
8077     irix5* | irix6* | nonstopux*)
8078       lt_prog_compiler_wl='-Wl,'
8079       # PIC (with -KPIC) is the default.
8080       lt_prog_compiler_static='-non_shared'
8081       ;;
8082
8083     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8084       case $cc_basename in
8085       # old Intel for x86_64 which still supported -KPIC.
8086       ecc*)
8087         lt_prog_compiler_wl='-Wl,'
8088         lt_prog_compiler_pic='-KPIC'
8089         lt_prog_compiler_static='-static'
8090         ;;
8091       # icc used to be incompatible with GCC.
8092       # ICC 10 doesn't accept -KPIC any more.
8093       icc* | ifort*)
8094         lt_prog_compiler_wl='-Wl,'
8095         lt_prog_compiler_pic='-fPIC'
8096         lt_prog_compiler_static='-static'
8097         ;;
8098       # Lahey Fortran 8.1.
8099       lf95*)
8100         lt_prog_compiler_wl='-Wl,'
8101         lt_prog_compiler_pic='--shared'
8102         lt_prog_compiler_static='--static'
8103         ;;
8104       nagfor*)
8105         # NAG Fortran compiler
8106         lt_prog_compiler_wl='-Wl,-Wl,,'
8107         lt_prog_compiler_pic='-PIC'
8108         lt_prog_compiler_static='-Bstatic'
8109         ;;
8110       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8111         # Portland Group compilers (*not* the Pentium gcc compiler,
8112         # which looks to be a dead project)
8113         lt_prog_compiler_wl='-Wl,'
8114         lt_prog_compiler_pic='-fpic'
8115         lt_prog_compiler_static='-Bstatic'
8116         ;;
8117       ccc*)
8118         lt_prog_compiler_wl='-Wl,'
8119         # All Alpha code is PIC.
8120         lt_prog_compiler_static='-non_shared'
8121         ;;
8122       xl* | bgxl* | bgf* | mpixl*)
8123         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8124         lt_prog_compiler_wl='-Wl,'
8125         lt_prog_compiler_pic='-qpic'
8126         lt_prog_compiler_static='-qstaticlink'
8127         ;;
8128       *)
8129         case `$CC -V 2>&1 | sed 5q` in
8130         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8131           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8132           lt_prog_compiler_pic='-KPIC'
8133           lt_prog_compiler_static='-Bstatic'
8134           lt_prog_compiler_wl=''
8135           ;;
8136         *Sun\ F* | *Sun*Fortran*)
8137           lt_prog_compiler_pic='-KPIC'
8138           lt_prog_compiler_static='-Bstatic'
8139           lt_prog_compiler_wl='-Qoption ld '
8140           ;;
8141         *Sun\ C*)
8142           # Sun C 5.9
8143           lt_prog_compiler_pic='-KPIC'
8144           lt_prog_compiler_static='-Bstatic'
8145           lt_prog_compiler_wl='-Wl,'
8146           ;;
8147         *Intel*\ [CF]*Compiler*)
8148           lt_prog_compiler_wl='-Wl,'
8149           lt_prog_compiler_pic='-fPIC'
8150           lt_prog_compiler_static='-static'
8151           ;;
8152         *Portland\ Group*)
8153           lt_prog_compiler_wl='-Wl,'
8154           lt_prog_compiler_pic='-fpic'
8155           lt_prog_compiler_static='-Bstatic'
8156           ;;
8157         esac
8158         ;;
8159       esac
8160       ;;
8161
8162     newsos6)
8163       lt_prog_compiler_pic='-KPIC'
8164       lt_prog_compiler_static='-Bstatic'
8165       ;;
8166
8167     *nto* | *qnx*)
8168       # QNX uses GNU C++, but need to define -shared option too, otherwise
8169       # it will coredump.
8170       lt_prog_compiler_pic='-fPIC -shared'
8171       ;;
8172
8173     osf3* | osf4* | osf5*)
8174       lt_prog_compiler_wl='-Wl,'
8175       # All OSF/1 code is PIC.
8176       lt_prog_compiler_static='-non_shared'
8177       ;;
8178
8179     rdos*)
8180       lt_prog_compiler_static='-non_shared'
8181       ;;
8182
8183     solaris*)
8184       lt_prog_compiler_pic='-KPIC'
8185       lt_prog_compiler_static='-Bstatic'
8186       case $cc_basename in
8187       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8188         lt_prog_compiler_wl='-Qoption ld ';;
8189       *)
8190         lt_prog_compiler_wl='-Wl,';;
8191       esac
8192       ;;
8193
8194     sunos4*)
8195       lt_prog_compiler_wl='-Qoption ld '
8196       lt_prog_compiler_pic='-PIC'
8197       lt_prog_compiler_static='-Bstatic'
8198       ;;
8199
8200     sysv4 | sysv4.2uw2* | sysv4.3*)
8201       lt_prog_compiler_wl='-Wl,'
8202       lt_prog_compiler_pic='-KPIC'
8203       lt_prog_compiler_static='-Bstatic'
8204       ;;
8205
8206     sysv4*MP*)
8207       if test -d /usr/nec ;then
8208         lt_prog_compiler_pic='-Kconform_pic'
8209         lt_prog_compiler_static='-Bstatic'
8210       fi
8211       ;;
8212
8213     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8214       lt_prog_compiler_wl='-Wl,'
8215       lt_prog_compiler_pic='-KPIC'
8216       lt_prog_compiler_static='-Bstatic'
8217       ;;
8218
8219     unicos*)
8220       lt_prog_compiler_wl='-Wl,'
8221       lt_prog_compiler_can_build_shared=no
8222       ;;
8223
8224     uts4*)
8225       lt_prog_compiler_pic='-pic'
8226       lt_prog_compiler_static='-Bstatic'
8227       ;;
8228
8229     *)
8230       lt_prog_compiler_can_build_shared=no
8231       ;;
8232     esac
8233   fi
8234
8235 case $host_os in
8236   # For platforms which do not support PIC, -DPIC is meaningless:
8237   *djgpp*)
8238     lt_prog_compiler_pic=
8239     ;;
8240   *)
8241     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8242     ;;
8243 esac
8244
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8246 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8247 if ${lt_cv_prog_compiler_pic+:} false; then :
8248   $as_echo_n "(cached) " >&6
8249 else
8250   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8251 fi
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8253 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8254 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8255
8256 #
8257 # Check to make sure the PIC flag actually works.
8258 #
8259 if test -n "$lt_prog_compiler_pic"; then
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8261 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8262 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   lt_cv_prog_compiler_pic_works=no
8266    ac_outfile=conftest.$ac_objext
8267    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8268    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8269    # Insert the option either (1) after the last *FLAGS variable, or
8270    # (2) before a word containing "conftest.", or (3) at the end.
8271    # Note that $ac_compile itself does not contain backslashes and begins
8272    # with a dollar sign (not a hyphen), so the echo should work correctly.
8273    # The option is referenced via a variable to avoid confusing sed.
8274    lt_compile=`echo "$ac_compile" | $SED \
8275    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8276    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8277    -e 's:$: $lt_compiler_flag:'`
8278    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8279    (eval "$lt_compile" 2>conftest.err)
8280    ac_status=$?
8281    cat conftest.err >&5
8282    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283    if (exit $ac_status) && test -s "$ac_outfile"; then
8284      # The compiler can only warn and ignore the option if not recognized
8285      # So say no if there are warnings other than the usual output.
8286      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8287      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8288      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8289        lt_cv_prog_compiler_pic_works=yes
8290      fi
8291    fi
8292    $RM conftest*
8293
8294 fi
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8296 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8297
8298 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8299     case $lt_prog_compiler_pic in
8300      "" | " "*) ;;
8301      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8302      esac
8303 else
8304     lt_prog_compiler_pic=
8305      lt_prog_compiler_can_build_shared=no
8306 fi
8307
8308 fi
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320 #
8321 # Check to make sure the static flag actually works.
8322 #
8323 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8325 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8326 if ${lt_cv_prog_compiler_static_works+:} false; then :
8327   $as_echo_n "(cached) " >&6
8328 else
8329   lt_cv_prog_compiler_static_works=no
8330    save_LDFLAGS="$LDFLAGS"
8331    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8332    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8333    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8334      # The linker can only warn and ignore the option if not recognized
8335      # So say no if there are warnings
8336      if test -s conftest.err; then
8337        # Append any errors to the config.log.
8338        cat conftest.err 1>&5
8339        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8340        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8341        if diff conftest.exp conftest.er2 >/dev/null; then
8342          lt_cv_prog_compiler_static_works=yes
8343        fi
8344      else
8345        lt_cv_prog_compiler_static_works=yes
8346      fi
8347    fi
8348    $RM -r conftest*
8349    LDFLAGS="$save_LDFLAGS"
8350
8351 fi
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8353 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8354
8355 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8356     :
8357 else
8358     lt_prog_compiler_static=
8359 fi
8360
8361
8362
8363
8364
8365
8366
8367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8368 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8369 if ${lt_cv_prog_compiler_c_o+:} false; then :
8370   $as_echo_n "(cached) " >&6
8371 else
8372   lt_cv_prog_compiler_c_o=no
8373    $RM -r conftest 2>/dev/null
8374    mkdir conftest
8375    cd conftest
8376    mkdir out
8377    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8378
8379    lt_compiler_flag="-o out/conftest2.$ac_objext"
8380    # Insert the option either (1) after the last *FLAGS variable, or
8381    # (2) before a word containing "conftest.", or (3) at the end.
8382    # Note that $ac_compile itself does not contain backslashes and begins
8383    # with a dollar sign (not a hyphen), so the echo should work correctly.
8384    lt_compile=`echo "$ac_compile" | $SED \
8385    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8386    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8387    -e 's:$: $lt_compiler_flag:'`
8388    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8389    (eval "$lt_compile" 2>out/conftest.err)
8390    ac_status=$?
8391    cat out/conftest.err >&5
8392    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8394    then
8395      # The compiler can only warn and ignore the option if not recognized
8396      # So say no if there are warnings
8397      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8398      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8399      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8400        lt_cv_prog_compiler_c_o=yes
8401      fi
8402    fi
8403    chmod u+w . 2>&5
8404    $RM conftest*
8405    # SGI C++ compiler will create directory out/ii_files/ for
8406    # template instantiation
8407    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8408    $RM out/* && rmdir out
8409    cd ..
8410    $RM -r conftest
8411    $RM conftest*
8412
8413 fi
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8415 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8416
8417
8418
8419
8420
8421
8422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8423 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8424 if ${lt_cv_prog_compiler_c_o+:} false; then :
8425   $as_echo_n "(cached) " >&6
8426 else
8427   lt_cv_prog_compiler_c_o=no
8428    $RM -r conftest 2>/dev/null
8429    mkdir conftest
8430    cd conftest
8431    mkdir out
8432    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8433
8434    lt_compiler_flag="-o out/conftest2.$ac_objext"
8435    # Insert the option either (1) after the last *FLAGS variable, or
8436    # (2) before a word containing "conftest.", or (3) at the end.
8437    # Note that $ac_compile itself does not contain backslashes and begins
8438    # with a dollar sign (not a hyphen), so the echo should work correctly.
8439    lt_compile=`echo "$ac_compile" | $SED \
8440    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8441    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8442    -e 's:$: $lt_compiler_flag:'`
8443    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8444    (eval "$lt_compile" 2>out/conftest.err)
8445    ac_status=$?
8446    cat out/conftest.err >&5
8447    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8449    then
8450      # The compiler can only warn and ignore the option if not recognized
8451      # So say no if there are warnings
8452      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8453      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8454      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8455        lt_cv_prog_compiler_c_o=yes
8456      fi
8457    fi
8458    chmod u+w . 2>&5
8459    $RM conftest*
8460    # SGI C++ compiler will create directory out/ii_files/ for
8461    # template instantiation
8462    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8463    $RM out/* && rmdir out
8464    cd ..
8465    $RM -r conftest
8466    $RM conftest*
8467
8468 fi
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8470 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8471
8472
8473
8474
8475 hard_links="nottested"
8476 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8477   # do not overwrite the value of need_locks provided by the user
8478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8479 $as_echo_n "checking if we can lock with hard links... " >&6; }
8480   hard_links=yes
8481   $RM conftest*
8482   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8483   touch conftest.a
8484   ln conftest.a conftest.b 2>&5 || hard_links=no
8485   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8487 $as_echo "$hard_links" >&6; }
8488   if test "$hard_links" = no; then
8489     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8490 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8491     need_locks=warn
8492   fi
8493 else
8494   need_locks=no
8495 fi
8496
8497
8498
8499
8500
8501
8502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8503 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8504
8505   runpath_var=
8506   allow_undefined_flag=
8507   always_export_symbols=no
8508   archive_cmds=
8509   archive_expsym_cmds=
8510   compiler_needs_object=no
8511   enable_shared_with_static_runtimes=no
8512   export_dynamic_flag_spec=
8513   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8514   hardcode_automatic=no
8515   hardcode_direct=no
8516   hardcode_direct_absolute=no
8517   hardcode_libdir_flag_spec=
8518   hardcode_libdir_separator=
8519   hardcode_minus_L=no
8520   hardcode_shlibpath_var=unsupported
8521   inherit_rpath=no
8522   link_all_deplibs=unknown
8523   module_cmds=
8524   module_expsym_cmds=
8525   old_archive_from_new_cmds=
8526   old_archive_from_expsyms_cmds=
8527   thread_safe_flag_spec=
8528   whole_archive_flag_spec=
8529   # include_expsyms should be a list of space-separated symbols to be *always*
8530   # included in the symbol list
8531   include_expsyms=
8532   # exclude_expsyms can be an extended regexp of symbols to exclude
8533   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8534   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8535   # as well as any symbol that contains `d'.
8536   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8537   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8538   # platforms (ab)use it in PIC code, but their linkers get confused if
8539   # the symbol is explicitly referenced.  Since portable code cannot
8540   # rely on this symbol name, it's probably fine to never include it in
8541   # preloaded symbol tables.
8542   # Exclude shared library initialization/finalization symbols.
8543   extract_expsyms_cmds=
8544
8545   case $host_os in
8546   cygwin* | mingw* | pw32* | cegcc*)
8547     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8548     # When not using gcc, we currently assume that we are using
8549     # Microsoft Visual C++.
8550     if test "$GCC" != yes; then
8551       with_gnu_ld=no
8552     fi
8553     ;;
8554   interix*)
8555     # we just hope/assume this is gcc and not c89 (= MSVC++)
8556     with_gnu_ld=yes
8557     ;;
8558   openbsd*)
8559     with_gnu_ld=no
8560     ;;
8561   esac
8562
8563   ld_shlibs=yes
8564
8565   # On some targets, GNU ld is compatible enough with the native linker
8566   # that we're better off using the native interface for both.
8567   lt_use_gnu_ld_interface=no
8568   if test "$with_gnu_ld" = yes; then
8569     case $host_os in
8570       aix*)
8571         # The AIX port of GNU ld has always aspired to compatibility
8572         # with the native linker.  However, as the warning in the GNU ld
8573         # block says, versions before 2.19.5* couldn't really create working
8574         # shared libraries, regardless of the interface used.
8575         case `$LD -v 2>&1` in
8576           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8577           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8578           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8579           *)
8580             lt_use_gnu_ld_interface=yes
8581             ;;
8582         esac
8583         ;;
8584       *)
8585         lt_use_gnu_ld_interface=yes
8586         ;;
8587     esac
8588   fi
8589
8590   if test "$lt_use_gnu_ld_interface" = yes; then
8591     # If archive_cmds runs LD, not CC, wlarc should be empty
8592     wlarc='${wl}'
8593
8594     # Set some defaults for GNU ld with shared library support. These
8595     # are reset later if shared libraries are not supported. Putting them
8596     # here allows them to be overridden if necessary.
8597     runpath_var=LD_RUN_PATH
8598     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8599     export_dynamic_flag_spec='${wl}--export-dynamic'
8600     # ancient GNU ld didn't support --whole-archive et. al.
8601     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8602       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8603     else
8604       whole_archive_flag_spec=
8605     fi
8606     supports_anon_versioning=no
8607     case `$LD -v 2>&1` in
8608       *GNU\ gold*) supports_anon_versioning=yes ;;
8609       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8610       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8611       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8612       *\ 2.11.*) ;; # other 2.11 versions
8613       *) supports_anon_versioning=yes ;;
8614     esac
8615
8616     # See if GNU ld supports shared libraries.
8617     case $host_os in
8618     aix[3-9]*)
8619       # On AIX/PPC, the GNU linker is very broken
8620       if test "$host_cpu" != ia64; then
8621         ld_shlibs=no
8622         cat <<_LT_EOF 1>&2
8623
8624 *** Warning: the GNU linker, at least up to release 2.19, is reported
8625 *** to be unable to reliably create shared libraries on AIX.
8626 *** Therefore, libtool is disabling shared libraries support.  If you
8627 *** really care for shared libraries, you may want to install binutils
8628 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8629 *** You will then need to restart the configuration process.
8630
8631 _LT_EOF
8632       fi
8633       ;;
8634
8635     amigaos*)
8636       case $host_cpu in
8637       powerpc)
8638             # see comment about AmigaOS4 .so support
8639             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8640             archive_expsym_cmds=''
8641         ;;
8642       m68k)
8643             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8644             hardcode_libdir_flag_spec='-L$libdir'
8645             hardcode_minus_L=yes
8646         ;;
8647       esac
8648       ;;
8649
8650     beos*)
8651       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8652         allow_undefined_flag=unsupported
8653         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8654         # support --undefined.  This deserves some investigation.  FIXME
8655         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8656       else
8657         ld_shlibs=no
8658       fi
8659       ;;
8660
8661     cygwin* | mingw* | pw32* | cegcc*)
8662       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8663       # as there is no search path for DLLs.
8664       hardcode_libdir_flag_spec='-L$libdir'
8665       export_dynamic_flag_spec='${wl}--export-all-symbols'
8666       allow_undefined_flag=unsupported
8667       always_export_symbols=no
8668       enable_shared_with_static_runtimes=yes
8669       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8670       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8671
8672       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8673         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8674         # If the export-symbols file already is a .def file (1st line
8675         # is EXPORTS), use it as is; otherwise, prepend...
8676         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8677           cp $export_symbols $output_objdir/$soname.def;
8678         else
8679           echo EXPORTS > $output_objdir/$soname.def;
8680           cat $export_symbols >> $output_objdir/$soname.def;
8681         fi~
8682         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8683       else
8684         ld_shlibs=no
8685       fi
8686       ;;
8687
8688     haiku*)
8689       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690       link_all_deplibs=yes
8691       ;;
8692
8693     interix[3-9]*)
8694       hardcode_direct=no
8695       hardcode_shlibpath_var=no
8696       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8697       export_dynamic_flag_spec='${wl}-E'
8698       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8699       # Instead, shared libraries are loaded at an image base (0x10000000 by
8700       # default) and relocated if they conflict, which is a slow very memory
8701       # consuming and fragmenting process.  To avoid this, we pick a random,
8702       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8703       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8704       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8705       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8706       ;;
8707
8708     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8709       tmp_diet=no
8710       if test "$host_os" = linux-dietlibc; then
8711         case $cc_basename in
8712           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8713         esac
8714       fi
8715       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8716          && test "$tmp_diet" = no
8717       then
8718         tmp_addflag=' $pic_flag'
8719         tmp_sharedflag='-shared'
8720         case $cc_basename,$host_cpu in
8721         pgcc*)                          # Portland Group C compiler
8722           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8723           tmp_addflag=' $pic_flag'
8724           ;;
8725         pgf77* | pgf90* | pgf95* | pgfortran*)
8726                                         # Portland Group f77 and f90 compilers
8727           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8728           tmp_addflag=' $pic_flag -Mnomain' ;;
8729         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8730           tmp_addflag=' -i_dynamic' ;;
8731         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8732           tmp_addflag=' -i_dynamic -nofor_main' ;;
8733         ifc* | ifort*)                  # Intel Fortran compiler
8734           tmp_addflag=' -nofor_main' ;;
8735         lf95*)                          # Lahey Fortran 8.1
8736           whole_archive_flag_spec=
8737           tmp_sharedflag='--shared' ;;
8738         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8739           tmp_sharedflag='-qmkshrobj'
8740           tmp_addflag= ;;
8741         nvcc*)  # Cuda Compiler Driver 2.2
8742           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8743           compiler_needs_object=yes
8744           ;;
8745         esac
8746         case `$CC -V 2>&1 | sed 5q` in
8747         *Sun\ C*)                       # Sun C 5.9
8748           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8749           compiler_needs_object=yes
8750           tmp_sharedflag='-G' ;;
8751         *Sun\ F*)                       # Sun Fortran 8.3
8752           tmp_sharedflag='-G' ;;
8753         esac
8754         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8755
8756         if test "x$supports_anon_versioning" = xyes; then
8757           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8758             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8759             echo "local: *; };" >> $output_objdir/$libname.ver~
8760             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8761         fi
8762
8763         case $cc_basename in
8764         xlf* | bgf* | bgxlf* | mpixlf*)
8765           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8766           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8767           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8769           if test "x$supports_anon_versioning" = xyes; then
8770             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8771               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8772               echo "local: *; };" >> $output_objdir/$libname.ver~
8773               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8774           fi
8775           ;;
8776         esac
8777       else
8778         ld_shlibs=no
8779       fi
8780       ;;
8781
8782     netbsd*)
8783       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8784         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8785         wlarc=
8786       else
8787         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8788         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8789       fi
8790       ;;
8791
8792     solaris*)
8793       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8794         ld_shlibs=no
8795         cat <<_LT_EOF 1>&2
8796
8797 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8798 *** create shared libraries on Solaris systems.  Therefore, libtool
8799 *** is disabling shared libraries support.  We urge you to upgrade GNU
8800 *** binutils to release 2.9.1 or newer.  Another option is to modify
8801 *** your PATH or compiler configuration so that the native linker is
8802 *** used, and then restart.
8803
8804 _LT_EOF
8805       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8806         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8807         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8808       else
8809         ld_shlibs=no
8810       fi
8811       ;;
8812
8813     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8814       case `$LD -v 2>&1` in
8815         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8816         ld_shlibs=no
8817         cat <<_LT_EOF 1>&2
8818
8819 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8820 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8821 *** is disabling shared libraries support.  We urge you to upgrade GNU
8822 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8823 *** your PATH or compiler configuration so that the native linker is
8824 *** used, and then restart.
8825
8826 _LT_EOF
8827         ;;
8828         *)
8829           # For security reasons, it is highly recommended that you always
8830           # use absolute paths for naming shared libraries, and exclude the
8831           # DT_RUNPATH tag from executables and libraries.  But doing so
8832           # requires that you compile everything twice, which is a pain.
8833           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8834             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8836             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8837           else
8838             ld_shlibs=no
8839           fi
8840         ;;
8841       esac
8842       ;;
8843
8844     sunos4*)
8845       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8846       wlarc=
8847       hardcode_direct=yes
8848       hardcode_shlibpath_var=no
8849       ;;
8850
8851     *)
8852       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8853         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8855       else
8856         ld_shlibs=no
8857       fi
8858       ;;
8859     esac
8860
8861     if test "$ld_shlibs" = no; then
8862       runpath_var=
8863       hardcode_libdir_flag_spec=
8864       export_dynamic_flag_spec=
8865       whole_archive_flag_spec=
8866     fi
8867   else
8868     # PORTME fill in a description of your system's linker (not GNU ld)
8869     case $host_os in
8870     aix3*)
8871       allow_undefined_flag=unsupported
8872       always_export_symbols=yes
8873       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8874       # Note: this linker hardcodes the directories in LIBPATH if there
8875       # are no directories specified by -L.
8876       hardcode_minus_L=yes
8877       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8878         # Neither direct hardcoding nor static linking is supported with a
8879         # broken collect2.
8880         hardcode_direct=unsupported
8881       fi
8882       ;;
8883
8884     aix[4-9]*)
8885       if test "$host_cpu" = ia64; then
8886         # On IA64, the linker does run time linking by default, so we don't
8887         # have to do anything special.
8888         aix_use_runtimelinking=no
8889         exp_sym_flag='-Bexport'
8890         no_entry_flag=""
8891       else
8892         # If we're using GNU nm, then we don't want the "-C" option.
8893         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8894         # Also, AIX nm treats weak defined symbols like other global
8895         # defined symbols, whereas GNU nm marks them as "W".
8896         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8897           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8898         else
8899           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8900         fi
8901         aix_use_runtimelinking=no
8902
8903         # Test if we are trying to use run time linking or normal
8904         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8905         # need to do runtime linking.
8906         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8907           for ld_flag in $LDFLAGS; do
8908           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8909             aix_use_runtimelinking=yes
8910             break
8911           fi
8912           done
8913           ;;
8914         esac
8915
8916         exp_sym_flag='-bexport'
8917         no_entry_flag='-bnoentry'
8918       fi
8919
8920       # When large executables or shared objects are built, AIX ld can
8921       # have problems creating the table of contents.  If linking a library
8922       # or program results in "error TOC overflow" add -mminimal-toc to
8923       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8924       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8925
8926       archive_cmds=''
8927       hardcode_direct=yes
8928       hardcode_direct_absolute=yes
8929       hardcode_libdir_separator=':'
8930       link_all_deplibs=yes
8931       file_list_spec='${wl}-f,'
8932
8933       if test "$GCC" = yes; then
8934         case $host_os in aix4.[012]|aix4.[012].*)
8935         # We only want to do this on AIX 4.2 and lower, the check
8936         # below for broken collect2 doesn't work under 4.3+
8937           collect2name=`${CC} -print-prog-name=collect2`
8938           if test -f "$collect2name" &&
8939            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8940           then
8941           # We have reworked collect2
8942           :
8943           else
8944           # We have old collect2
8945           hardcode_direct=unsupported
8946           # It fails to find uninstalled libraries when the uninstalled
8947           # path is not listed in the libpath.  Setting hardcode_minus_L
8948           # to unsupported forces relinking
8949           hardcode_minus_L=yes
8950           hardcode_libdir_flag_spec='-L$libdir'
8951           hardcode_libdir_separator=
8952           fi
8953           ;;
8954         esac
8955         shared_flag='-shared'
8956         if test "$aix_use_runtimelinking" = yes; then
8957           shared_flag="$shared_flag "'${wl}-G'
8958         fi
8959       else
8960         # not using gcc
8961         if test "$host_cpu" = ia64; then
8962         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8963         # chokes on -Wl,-G. The following line is correct:
8964           shared_flag='-G'
8965         else
8966           if test "$aix_use_runtimelinking" = yes; then
8967             shared_flag='${wl}-G'
8968           else
8969             shared_flag='${wl}-bM:SRE'
8970           fi
8971         fi
8972       fi
8973
8974       export_dynamic_flag_spec='${wl}-bexpall'
8975       # It seems that -bexpall does not export symbols beginning with
8976       # underscore (_), so it is better to generate a list of symbols to export.
8977       always_export_symbols=yes
8978       if test "$aix_use_runtimelinking" = yes; then
8979         # Warning - without using the other runtime loading flags (-brtl),
8980         # -berok will link without error, but may produce a broken library.
8981         allow_undefined_flag='-berok'
8982         # Determine the default libpath from the value encoded in an
8983         # empty executable.
8984         if test "${lt_cv_aix_libpath+set}" = set; then
8985   aix_libpath=$lt_cv_aix_libpath
8986 else
8987   if ${lt_cv_aix_libpath_+:} false; then :
8988   $as_echo_n "(cached) " >&6
8989 else
8990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h.  */
8992
8993 int
8994 main ()
8995 {
8996
8997   ;
8998   return 0;
8999 }
9000 _ACEOF
9001 if ac_fn_c_try_link "$LINENO"; then :
9002
9003   lt_aix_libpath_sed='
9004       /Import File Strings/,/^$/ {
9005           /^0/ {
9006               s/^0  *\([^ ]*\) *$/\1/
9007               p
9008           }
9009       }'
9010   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9011   # Check for a 64-bit object if we didn't find anything.
9012   if test -z "$lt_cv_aix_libpath_"; then
9013     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9014   fi
9015 fi
9016 rm -f core conftest.err conftest.$ac_objext \
9017     conftest$ac_exeext conftest.$ac_ext
9018   if test -z "$lt_cv_aix_libpath_"; then
9019     lt_cv_aix_libpath_="/usr/lib:/lib"
9020   fi
9021
9022 fi
9023
9024   aix_libpath=$lt_cv_aix_libpath_
9025 fi
9026
9027         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9028         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9029       else
9030         if test "$host_cpu" = ia64; then
9031           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9032           allow_undefined_flag="-z nodefs"
9033           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9034         else
9035          # Determine the default libpath from the value encoded in an
9036          # empty executable.
9037          if test "${lt_cv_aix_libpath+set}" = set; then
9038   aix_libpath=$lt_cv_aix_libpath
9039 else
9040   if ${lt_cv_aix_libpath_+:} false; then :
9041   $as_echo_n "(cached) " >&6
9042 else
9043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h.  */
9045
9046 int
9047 main ()
9048 {
9049
9050   ;
9051   return 0;
9052 }
9053 _ACEOF
9054 if ac_fn_c_try_link "$LINENO"; then :
9055
9056   lt_aix_libpath_sed='
9057       /Import File Strings/,/^$/ {
9058           /^0/ {
9059               s/^0  *\([^ ]*\) *$/\1/
9060               p
9061           }
9062       }'
9063   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9064   # Check for a 64-bit object if we didn't find anything.
9065   if test -z "$lt_cv_aix_libpath_"; then
9066     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9067   fi
9068 fi
9069 rm -f core conftest.err conftest.$ac_objext \
9070     conftest$ac_exeext conftest.$ac_ext
9071   if test -z "$lt_cv_aix_libpath_"; then
9072     lt_cv_aix_libpath_="/usr/lib:/lib"
9073   fi
9074
9075 fi
9076
9077   aix_libpath=$lt_cv_aix_libpath_
9078 fi
9079
9080          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9081           # Warning - without using the other run time loading flags,
9082           # -berok will link without error, but may produce a broken library.
9083           no_undefined_flag=' ${wl}-bernotok'
9084           allow_undefined_flag=' ${wl}-berok'
9085           if test "$with_gnu_ld" = yes; then
9086             # We only use this code for GNU lds that support --whole-archive.
9087             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9088           else
9089             # Exported symbols can be pulled into shared objects from archives
9090             whole_archive_flag_spec='$convenience'
9091           fi
9092           archive_cmds_need_lc=yes
9093           # This is similar to how AIX traditionally builds its shared libraries.
9094           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9095         fi
9096       fi
9097       ;;
9098
9099     amigaos*)
9100       case $host_cpu in
9101       powerpc)
9102             # see comment about AmigaOS4 .so support
9103             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9104             archive_expsym_cmds=''
9105         ;;
9106       m68k)
9107             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9108             hardcode_libdir_flag_spec='-L$libdir'
9109             hardcode_minus_L=yes
9110         ;;
9111       esac
9112       ;;
9113
9114     bsdi[45]*)
9115       export_dynamic_flag_spec=-rdynamic
9116       ;;
9117
9118     cygwin* | mingw* | pw32* | cegcc*)
9119       # When not using gcc, we currently assume that we are using
9120       # Microsoft Visual C++.
9121       # hardcode_libdir_flag_spec is actually meaningless, as there is
9122       # no search path for DLLs.
9123       case $cc_basename in
9124       cl*)
9125         # Native MSVC
9126         hardcode_libdir_flag_spec=' '
9127         allow_undefined_flag=unsupported
9128         always_export_symbols=yes
9129         file_list_spec='@'
9130         # Tell ltmain to make .lib files, not .a files.
9131         libext=lib
9132         # Tell ltmain to make .dll files, not .so files.
9133         shrext_cmds=".dll"
9134         # FIXME: Setting linknames here is a bad hack.
9135         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9136         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9137             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9138           else
9139             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9140           fi~
9141           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9142           linknames='
9143         # The linker will not automatically build a static lib if we build a DLL.
9144         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9145         enable_shared_with_static_runtimes=yes
9146         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9147         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9148         # Don't use ranlib
9149         old_postinstall_cmds='chmod 644 $oldlib'
9150         postlink_cmds='lt_outputfile="@OUTPUT@"~
9151           lt_tool_outputfile="@TOOL_OUTPUT@"~
9152           case $lt_outputfile in
9153             *.exe|*.EXE) ;;
9154             *)
9155               lt_outputfile="$lt_outputfile.exe"
9156               lt_tool_outputfile="$lt_tool_outputfile.exe"
9157               ;;
9158           esac~
9159           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9160             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9161             $RM "$lt_outputfile.manifest";
9162           fi'
9163         ;;
9164       *)
9165         # Assume MSVC wrapper
9166         hardcode_libdir_flag_spec=' '
9167         allow_undefined_flag=unsupported
9168         # Tell ltmain to make .lib files, not .a files.
9169         libext=lib
9170         # Tell ltmain to make .dll files, not .so files.
9171         shrext_cmds=".dll"
9172         # FIXME: Setting linknames here is a bad hack.
9173         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9174         # The linker will automatically build a .lib file if we build a DLL.
9175         old_archive_from_new_cmds='true'
9176         # FIXME: Should let the user specify the lib program.
9177         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9178         enable_shared_with_static_runtimes=yes
9179         ;;
9180       esac
9181       ;;
9182
9183     darwin* | rhapsody*)
9184
9185
9186   archive_cmds_need_lc=no
9187   hardcode_direct=no
9188   hardcode_automatic=yes
9189   hardcode_shlibpath_var=unsupported
9190   if test "$lt_cv_ld_force_load" = "yes"; then
9191     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9192
9193   else
9194     whole_archive_flag_spec=''
9195   fi
9196   link_all_deplibs=yes
9197   allow_undefined_flag="$_lt_dar_allow_undefined"
9198   case $cc_basename in
9199      ifort*) _lt_dar_can_shared=yes ;;
9200      *) _lt_dar_can_shared=$GCC ;;
9201   esac
9202   if test "$_lt_dar_can_shared" = "yes"; then
9203     output_verbose_link_cmd=func_echo_all
9204     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9205     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9206     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9207     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9208
9209   else
9210   ld_shlibs=no
9211   fi
9212
9213       ;;
9214
9215     dgux*)
9216       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9217       hardcode_libdir_flag_spec='-L$libdir'
9218       hardcode_shlibpath_var=no
9219       ;;
9220
9221     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9222     # support.  Future versions do this automatically, but an explicit c++rt0.o
9223     # does not break anything, and helps significantly (at the cost of a little
9224     # extra space).
9225     freebsd2.2*)
9226       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9227       hardcode_libdir_flag_spec='-R$libdir'
9228       hardcode_direct=yes
9229       hardcode_shlibpath_var=no
9230       ;;
9231
9232     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9233     freebsd2.*)
9234       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9235       hardcode_direct=yes
9236       hardcode_minus_L=yes
9237       hardcode_shlibpath_var=no
9238       ;;
9239
9240     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9241     freebsd* | dragonfly*)
9242       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9243       hardcode_libdir_flag_spec='-R$libdir'
9244       hardcode_direct=yes
9245       hardcode_shlibpath_var=no
9246       ;;
9247
9248     hpux9*)
9249       if test "$GCC" = yes; then
9250         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9251       else
9252         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9253       fi
9254       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9255       hardcode_libdir_separator=:
9256       hardcode_direct=yes
9257
9258       # hardcode_minus_L: Not really in the search PATH,
9259       # but as the default location of the library.
9260       hardcode_minus_L=yes
9261       export_dynamic_flag_spec='${wl}-E'
9262       ;;
9263
9264     hpux10*)
9265       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9266         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9267       else
9268         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9269       fi
9270       if test "$with_gnu_ld" = no; then
9271         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9272         hardcode_libdir_separator=:
9273         hardcode_direct=yes
9274         hardcode_direct_absolute=yes
9275         export_dynamic_flag_spec='${wl}-E'
9276         # hardcode_minus_L: Not really in the search PATH,
9277         # but as the default location of the library.
9278         hardcode_minus_L=yes
9279       fi
9280       ;;
9281
9282     hpux11*)
9283       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9284         case $host_cpu in
9285         hppa*64*)
9286           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9287           ;;
9288         ia64*)
9289           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9290           ;;
9291         *)
9292           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9293           ;;
9294         esac
9295       else
9296         case $host_cpu in
9297         hppa*64*)
9298           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9299           ;;
9300         ia64*)
9301           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9302           ;;
9303         *)
9304
9305           # Older versions of the 11.00 compiler do not understand -b yet
9306           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9307           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9308 $as_echo_n "checking if $CC understands -b... " >&6; }
9309 if ${lt_cv_prog_compiler__b+:} false; then :
9310   $as_echo_n "(cached) " >&6
9311 else
9312   lt_cv_prog_compiler__b=no
9313    save_LDFLAGS="$LDFLAGS"
9314    LDFLAGS="$LDFLAGS -b"
9315    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9316    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9317      # The linker can only warn and ignore the option if not recognized
9318      # So say no if there are warnings
9319      if test -s conftest.err; then
9320        # Append any errors to the config.log.
9321        cat conftest.err 1>&5
9322        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9323        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9324        if diff conftest.exp conftest.er2 >/dev/null; then
9325          lt_cv_prog_compiler__b=yes
9326        fi
9327      else
9328        lt_cv_prog_compiler__b=yes
9329      fi
9330    fi
9331    $RM -r conftest*
9332    LDFLAGS="$save_LDFLAGS"
9333
9334 fi
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9336 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9337
9338 if test x"$lt_cv_prog_compiler__b" = xyes; then
9339     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9340 else
9341     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9342 fi
9343
9344           ;;
9345         esac
9346       fi
9347       if test "$with_gnu_ld" = no; then
9348         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9349         hardcode_libdir_separator=:
9350
9351         case $host_cpu in
9352         hppa*64*|ia64*)
9353           hardcode_direct=no
9354           hardcode_shlibpath_var=no
9355           ;;
9356         *)
9357           hardcode_direct=yes
9358           hardcode_direct_absolute=yes
9359           export_dynamic_flag_spec='${wl}-E'
9360
9361           # hardcode_minus_L: Not really in the search PATH,
9362           # but as the default location of the library.
9363           hardcode_minus_L=yes
9364           ;;
9365         esac
9366       fi
9367       ;;
9368
9369     irix5* | irix6* | nonstopux*)
9370       if test "$GCC" = yes; then
9371         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9372         # Try to use the -exported_symbol ld option, if it does not
9373         # work, assume that -exports_file does not work either and
9374         # implicitly export all symbols.
9375         # This should be the same for all languages, so no per-tag cache variable.
9376         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9377 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9378 if ${lt_cv_irix_exported_symbol+:} false; then :
9379   $as_echo_n "(cached) " >&6
9380 else
9381   save_LDFLAGS="$LDFLAGS"
9382            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9383            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h.  */
9385 int foo (void) { return 0; }
9386 _ACEOF
9387 if ac_fn_c_try_link "$LINENO"; then :
9388   lt_cv_irix_exported_symbol=yes
9389 else
9390   lt_cv_irix_exported_symbol=no
9391 fi
9392 rm -f core conftest.err conftest.$ac_objext \
9393     conftest$ac_exeext conftest.$ac_ext
9394            LDFLAGS="$save_LDFLAGS"
9395 fi
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9397 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9398         if test "$lt_cv_irix_exported_symbol" = yes; then
9399           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9400         fi
9401       else
9402         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9403         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9404       fi
9405       archive_cmds_need_lc='no'
9406       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9407       hardcode_libdir_separator=:
9408       inherit_rpath=yes
9409       link_all_deplibs=yes
9410       ;;
9411
9412     netbsd*)
9413       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9414         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9415       else
9416         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9417       fi
9418       hardcode_libdir_flag_spec='-R$libdir'
9419       hardcode_direct=yes
9420       hardcode_shlibpath_var=no
9421       ;;
9422
9423     newsos6)
9424       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9425       hardcode_direct=yes
9426       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427       hardcode_libdir_separator=:
9428       hardcode_shlibpath_var=no
9429       ;;
9430
9431     *nto* | *qnx*)
9432       ;;
9433
9434     openbsd*)
9435       if test -f /usr/libexec/ld.so; then
9436         hardcode_direct=yes
9437         hardcode_shlibpath_var=no
9438         hardcode_direct_absolute=yes
9439         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9440           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9441           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9442           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9443           export_dynamic_flag_spec='${wl}-E'
9444         else
9445           case $host_os in
9446            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9447              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9448              hardcode_libdir_flag_spec='-R$libdir'
9449              ;;
9450            *)
9451              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9452              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9453              ;;
9454           esac
9455         fi
9456       else
9457         ld_shlibs=no
9458       fi
9459       ;;
9460
9461     os2*)
9462       hardcode_libdir_flag_spec='-L$libdir'
9463       hardcode_minus_L=yes
9464       allow_undefined_flag=unsupported
9465       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9466       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9467       ;;
9468
9469     osf3*)
9470       if test "$GCC" = yes; then
9471         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9472         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9473       else
9474         allow_undefined_flag=' -expect_unresolved \*'
9475         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9476       fi
9477       archive_cmds_need_lc='no'
9478       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9479       hardcode_libdir_separator=:
9480       ;;
9481
9482     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9483       if test "$GCC" = yes; then
9484         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9485         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9486         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9487       else
9488         allow_undefined_flag=' -expect_unresolved \*'
9489         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9490         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9491         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9492
9493         # Both c and cxx compiler support -rpath directly
9494         hardcode_libdir_flag_spec='-rpath $libdir'
9495       fi
9496       archive_cmds_need_lc='no'
9497       hardcode_libdir_separator=:
9498       ;;
9499
9500     solaris*)
9501       no_undefined_flag=' -z defs'
9502       if test "$GCC" = yes; then
9503         wlarc='${wl}'
9504         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9505         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9506           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9507       else
9508         case `$CC -V 2>&1` in
9509         *"Compilers 5.0"*)
9510           wlarc=''
9511           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9512           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9513           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9514           ;;
9515         *)
9516           wlarc='${wl}'
9517           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9518           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9519           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9520           ;;
9521         esac
9522       fi
9523       hardcode_libdir_flag_spec='-R$libdir'
9524       hardcode_shlibpath_var=no
9525       case $host_os in
9526       solaris2.[0-5] | solaris2.[0-5].*) ;;
9527       *)
9528         # The compiler driver will combine and reorder linker options,
9529         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9530         # but is careful enough not to reorder.
9531         # Supported since Solaris 2.6 (maybe 2.5.1?)
9532         if test "$GCC" = yes; then
9533           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9534         else
9535           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9536         fi
9537         ;;
9538       esac
9539       link_all_deplibs=yes
9540       ;;
9541
9542     sunos4*)
9543       if test "x$host_vendor" = xsequent; then
9544         # Use $CC to link under sequent, because it throws in some extra .o
9545         # files that make .init and .fini sections work.
9546         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9547       else
9548         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9549       fi
9550       hardcode_libdir_flag_spec='-L$libdir'
9551       hardcode_direct=yes
9552       hardcode_minus_L=yes
9553       hardcode_shlibpath_var=no
9554       ;;
9555
9556     sysv4)
9557       case $host_vendor in
9558         sni)
9559           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560           hardcode_direct=yes # is this really true???
9561         ;;
9562         siemens)
9563           ## LD is ld it makes a PLAMLIB
9564           ## CC just makes a GrossModule.
9565           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9566           reload_cmds='$CC -r -o $output$reload_objs'
9567           hardcode_direct=no
9568         ;;
9569         motorola)
9570           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9571           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9572         ;;
9573       esac
9574       runpath_var='LD_RUN_PATH'
9575       hardcode_shlibpath_var=no
9576       ;;
9577
9578     sysv4.3*)
9579       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580       hardcode_shlibpath_var=no
9581       export_dynamic_flag_spec='-Bexport'
9582       ;;
9583
9584     sysv4*MP*)
9585       if test -d /usr/nec; then
9586         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9587         hardcode_shlibpath_var=no
9588         runpath_var=LD_RUN_PATH
9589         hardcode_runpath_var=yes
9590         ld_shlibs=yes
9591       fi
9592       ;;
9593
9594     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9595       no_undefined_flag='${wl}-z,text'
9596       archive_cmds_need_lc=no
9597       hardcode_shlibpath_var=no
9598       runpath_var='LD_RUN_PATH'
9599
9600       if test "$GCC" = yes; then
9601         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9602         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9603       else
9604         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9605         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9606       fi
9607       ;;
9608
9609     sysv5* | sco3.2v5* | sco5v6*)
9610       # Note: We can NOT use -z defs as we might desire, because we do not
9611       # link with -lc, and that would cause any symbols used from libc to
9612       # always be unresolved, which means just about no library would
9613       # ever link correctly.  If we're not using GNU ld we use -z text
9614       # though, which does catch some bad symbols but isn't as heavy-handed
9615       # as -z defs.
9616       no_undefined_flag='${wl}-z,text'
9617       allow_undefined_flag='${wl}-z,nodefs'
9618       archive_cmds_need_lc=no
9619       hardcode_shlibpath_var=no
9620       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9621       hardcode_libdir_separator=':'
9622       link_all_deplibs=yes
9623       export_dynamic_flag_spec='${wl}-Bexport'
9624       runpath_var='LD_RUN_PATH'
9625
9626       if test "$GCC" = yes; then
9627         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9628         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9629       else
9630         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9631         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9632       fi
9633       ;;
9634
9635     uts4*)
9636       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637       hardcode_libdir_flag_spec='-L$libdir'
9638       hardcode_shlibpath_var=no
9639       ;;
9640
9641     *)
9642       ld_shlibs=no
9643       ;;
9644     esac
9645
9646     if test x$host_vendor = xsni; then
9647       case $host in
9648       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9649         export_dynamic_flag_spec='${wl}-Blargedynsym'
9650         ;;
9651       esac
9652     fi
9653   fi
9654
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9656 $as_echo "$ld_shlibs" >&6; }
9657 test "$ld_shlibs" = no && can_build_shared=no
9658
9659 with_gnu_ld=$with_gnu_ld
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675 #
9676 # Do we need to explicitly link libc?
9677 #
9678 case "x$archive_cmds_need_lc" in
9679 x|xyes)
9680   # Assume -lc should be added
9681   archive_cmds_need_lc=yes
9682
9683   if test "$enable_shared" = yes && test "$GCC" = yes; then
9684     case $archive_cmds in
9685     *'~'*)
9686       # FIXME: we may have to deal with multi-command sequences.
9687       ;;
9688     '$CC '*)
9689       # Test whether the compiler implicitly links with -lc since on some
9690       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9691       # to ld, don't add -lc before -lgcc.
9692       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9693 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9694 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9695   $as_echo_n "(cached) " >&6
9696 else
9697   $RM conftest*
9698         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9699
9700         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9701   (eval $ac_compile) 2>&5
9702   ac_status=$?
9703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9704   test $ac_status = 0; } 2>conftest.err; then
9705           soname=conftest
9706           lib=conftest
9707           libobjs=conftest.$ac_objext
9708           deplibs=
9709           wl=$lt_prog_compiler_wl
9710           pic_flag=$lt_prog_compiler_pic
9711           compiler_flags=-v
9712           linker_flags=-v
9713           verstring=
9714           output_objdir=.
9715           libname=conftest
9716           lt_save_allow_undefined_flag=$allow_undefined_flag
9717           allow_undefined_flag=
9718           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9719   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9720   ac_status=$?
9721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9722   test $ac_status = 0; }
9723           then
9724             lt_cv_archive_cmds_need_lc=no
9725           else
9726             lt_cv_archive_cmds_need_lc=yes
9727           fi
9728           allow_undefined_flag=$lt_save_allow_undefined_flag
9729         else
9730           cat conftest.err 1>&5
9731         fi
9732         $RM conftest*
9733
9734 fi
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9736 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9737       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9738       ;;
9739     esac
9740   fi
9741   ;;
9742 esac
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9896 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9897
9898 if test "$GCC" = yes; then
9899   case $host_os in
9900     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9901     *) lt_awk_arg="/^libraries:/" ;;
9902   esac
9903   case $host_os in
9904     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9905     *) lt_sed_strip_eq="s,=/,/,g" ;;
9906   esac
9907   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9908   case $lt_search_path_spec in
9909   *\;*)
9910     # if the path contains ";" then we assume it to be the separator
9911     # otherwise default to the standard path separator (i.e. ":") - it is
9912     # assumed that no part of a normal pathname contains ";" but that should
9913     # okay in the real world where ";" in dirpaths is itself problematic.
9914     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9915     ;;
9916   *)
9917     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9918     ;;
9919   esac
9920   # Ok, now we have the path, separated by spaces, we can step through it
9921   # and add multilib dir if necessary...
9922   lt_tmp_lt_search_path_spec=
9923   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9924   # ...but if some path already ends with the multilib dir we assume
9925   # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
9926   case "$lt_multi_os_dir; $lt_search_path_spec " in
9927   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9928     lt_multi_os_dir=
9929     ;;
9930   esac
9931   for lt_sys_path in $lt_search_path_spec; do
9932     if test -d "$lt_sys_path$lt_multi_os_dir"; then
9933       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9934     elif test -n "$lt_multi_os_dir"; then
9935       test -d "$lt_sys_path" && \
9936         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9937     fi
9938   done
9939   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9940 BEGIN {RS=" "; FS="/|\n";} {
9941   lt_foo="";
9942   lt_count=0;
9943   for (lt_i = NF; lt_i > 0; lt_i--) {
9944     if ($lt_i != "" && $lt_i != ".") {
9945       if ($lt_i == "..") {
9946         lt_count++;
9947       } else {
9948         if (lt_count == 0) {
9949           lt_foo="/" $lt_i lt_foo;
9950         } else {
9951           lt_count--;
9952         }
9953       }
9954     }
9955   }
9956   if (lt_foo != "") { lt_freq[lt_foo]++; }
9957   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9958 }'`
9959   # AWK program above erroneously prepends '/' to C:/dos/paths
9960   # for these hosts.
9961   case $host_os in
9962     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9963       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9964   esac
9965   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9966 else
9967   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9968 fi
9969 library_names_spec=
9970 libname_spec='lib$name'
9971 soname_spec=
9972 shrext_cmds=".so"
9973 postinstall_cmds=
9974 postuninstall_cmds=
9975 finish_cmds=
9976 finish_eval=
9977 shlibpath_var=
9978 shlibpath_overrides_runpath=unknown
9979 version_type=none
9980 dynamic_linker="$host_os ld.so"
9981 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9982 need_lib_prefix=unknown
9983 hardcode_into_libs=no
9984
9985 # when you set need_version to no, make sure it does not cause -set_version
9986 # flags to be left without arguments
9987 need_version=unknown
9988
9989 case $host_os in
9990 aix3*)
9991   version_type=linux # correct to gnu/linux during the next big refactor
9992   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9993   shlibpath_var=LIBPATH
9994
9995   # AIX 3 has no versioning support, so we append a major version to the name.
9996   soname_spec='${libname}${release}${shared_ext}$major'
9997   ;;
9998
9999 aix[4-9]*)
10000   version_type=linux # correct to gnu/linux during the next big refactor
10001   need_lib_prefix=no
10002   need_version=no
10003   hardcode_into_libs=yes
10004   if test "$host_cpu" = ia64; then
10005     # AIX 5 supports IA64
10006     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10007     shlibpath_var=LD_LIBRARY_PATH
10008   else
10009     # With GCC up to 2.95.x, collect2 would create an import file
10010     # for dependence libraries.  The import file would start with
10011     # the line `#! .'.  This would cause the generated library to
10012     # depend on `.', always an invalid library.  This was fixed in
10013     # development snapshots of GCC prior to 3.0.
10014     case $host_os in
10015       aix4 | aix4.[01] | aix4.[01].*)
10016       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10017            echo ' yes '
10018            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10019         :
10020       else
10021         can_build_shared=no
10022       fi
10023       ;;
10024     esac
10025     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10026     # soname into executable. Probably we can add versioning support to
10027     # collect2, so additional links can be useful in future.
10028     if test "$aix_use_runtimelinking" = yes; then
10029       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10030       # instead of lib<name>.a to let people know that these are not
10031       # typical AIX shared libraries.
10032       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10033     else
10034       # We preserve .a as extension for shared libraries through AIX4.2
10035       # and later when we are not doing run time linking.
10036       library_names_spec='${libname}${release}.a $libname.a'
10037       soname_spec='${libname}${release}${shared_ext}$major'
10038     fi
10039     shlibpath_var=LIBPATH
10040   fi
10041   ;;
10042
10043 amigaos*)
10044   case $host_cpu in
10045   powerpc)
10046     # Since July 2007 AmigaOS4 officially supports .so libraries.
10047     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10048     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049     ;;
10050   m68k)
10051     library_names_spec='$libname.ixlibrary $libname.a'
10052     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10053     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10054     ;;
10055   esac
10056   ;;
10057
10058 beos*)
10059   library_names_spec='${libname}${shared_ext}'
10060   dynamic_linker="$host_os ld.so"
10061   shlibpath_var=LIBRARY_PATH
10062   ;;
10063
10064 bsdi[45]*)
10065   version_type=linux # correct to gnu/linux during the next big refactor
10066   need_version=no
10067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068   soname_spec='${libname}${release}${shared_ext}$major'
10069   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10070   shlibpath_var=LD_LIBRARY_PATH
10071   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10072   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10073   # the default ld.so.conf also contains /usr/contrib/lib and
10074   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10075   # libtool to hard-code these into programs
10076   ;;
10077
10078 cygwin* | mingw* | pw32* | cegcc*)
10079   version_type=windows
10080   shrext_cmds=".dll"
10081   need_version=no
10082   need_lib_prefix=no
10083
10084   case $GCC,$cc_basename in
10085   yes,*)
10086     # gcc
10087     library_names_spec='$libname.dll.a'
10088     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10089     postinstall_cmds='base_file=`basename \${file}`~
10090       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10091       dldir=$destdir/`dirname \$dlpath`~
10092       test -d \$dldir || mkdir -p \$dldir~
10093       $install_prog $dir/$dlname \$dldir/$dlname~
10094       chmod a+x \$dldir/$dlname~
10095       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10096         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10097       fi'
10098     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10099       dlpath=$dir/\$dldll~
10100        $RM \$dlpath'
10101     shlibpath_overrides_runpath=yes
10102
10103     case $host_os in
10104     cygwin*)
10105       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10106       #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
10107       soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
10108
10109       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10110       ;;
10111     mingw* | cegcc*)
10112       # MinGW DLLs use traditional 'lib' prefix
10113       #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
10114       soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
10115       ;;
10116     pw32*)
10117       # pw32 DLLs use 'pw' prefix rather than 'lib'
10118       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10119       ;;
10120     esac
10121     dynamic_linker='Win32 ld.exe'
10122     ;;
10123
10124   *,cl*)
10125     # Native MSVC
10126     libname_spec='$name'
10127     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10128     library_names_spec='${libname}.dll.lib'
10129
10130     case $build_os in
10131     mingw*)
10132       sys_lib_search_path_spec=
10133       lt_save_ifs=$IFS
10134       IFS=';'
10135       for lt_path in $LIB
10136       do
10137         IFS=$lt_save_ifs
10138         # Let DOS variable expansion print the short 8.3 style file name.
10139         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10140         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10141       done
10142       IFS=$lt_save_ifs
10143       # Convert to MSYS style.
10144       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10145       ;;
10146     cygwin*)
10147       # Convert to unix form, then to dos form, then back to unix form
10148       # but this time dos style (no spaces!) so that the unix form looks
10149       # like /cygdrive/c/PROGRA~1:/cygdr...
10150       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10151       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10152       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10153       ;;
10154     *)
10155       sys_lib_search_path_spec="$LIB"
10156       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10157         # It is most probably a Windows format PATH.
10158         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10159       else
10160         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10161       fi
10162       # FIXME: find the short name or the path components, as spaces are
10163       # common. (e.g. "Program Files" -> "PROGRA~1")
10164       ;;
10165     esac
10166
10167     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10168     postinstall_cmds='base_file=`basename \${file}`~
10169       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10170       dldir=$destdir/`dirname \$dlpath`~
10171       test -d \$dldir || mkdir -p \$dldir~
10172       $install_prog $dir/$dlname \$dldir/$dlname'
10173     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10174       dlpath=$dir/\$dldll~
10175        $RM \$dlpath'
10176     shlibpath_overrides_runpath=yes
10177     dynamic_linker='Win32 link.exe'
10178     ;;
10179
10180   *)
10181     # Assume MSVC wrapper
10182     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10183     dynamic_linker='Win32 ld.exe'
10184     ;;
10185   esac
10186   # FIXME: first we should search . and the directory the executable is in
10187   shlibpath_var=PATH
10188   ;;
10189
10190 darwin* | rhapsody*)
10191   dynamic_linker="$host_os dyld"
10192   version_type=darwin
10193   need_lib_prefix=no
10194   need_version=no
10195   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10196   soname_spec='${libname}${release}${major}$shared_ext'
10197   shlibpath_overrides_runpath=yes
10198   shlibpath_var=DYLD_LIBRARY_PATH
10199   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10200
10201   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10202   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10203   ;;
10204
10205 dgux*)
10206   version_type=linux # correct to gnu/linux during the next big refactor
10207   need_lib_prefix=no
10208   need_version=no
10209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10210   soname_spec='${libname}${release}${shared_ext}$major'
10211   shlibpath_var=LD_LIBRARY_PATH
10212   ;;
10213
10214 freebsd* | dragonfly*)
10215   # DragonFly does not have aout.  When/if they implement a new
10216   # versioning mechanism, adjust this.
10217   if test -x /usr/bin/objformat; then
10218     objformat=`/usr/bin/objformat`
10219   else
10220     case $host_os in
10221     freebsd[23].*) objformat=aout ;;
10222     *) objformat=elf ;;
10223     esac
10224   fi
10225   version_type=freebsd-$objformat
10226   case $version_type in
10227     freebsd-elf*)
10228       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10229       need_version=no
10230       need_lib_prefix=no
10231       ;;
10232     freebsd-*)
10233       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10234       need_version=yes
10235       ;;
10236   esac
10237   shlibpath_var=LD_LIBRARY_PATH
10238   case $host_os in
10239   freebsd2.*)
10240     shlibpath_overrides_runpath=yes
10241     ;;
10242   freebsd3.[01]* | freebsdelf3.[01]*)
10243     shlibpath_overrides_runpath=yes
10244     hardcode_into_libs=yes
10245     ;;
10246   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10247   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10248     shlibpath_overrides_runpath=no
10249     hardcode_into_libs=yes
10250     ;;
10251   *) # from 4.6 on, and DragonFly
10252     shlibpath_overrides_runpath=yes
10253     hardcode_into_libs=yes
10254     ;;
10255   esac
10256   ;;
10257
10258 gnu*)
10259   version_type=linux # correct to gnu/linux during the next big refactor
10260   need_lib_prefix=no
10261   need_version=no
10262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10263   soname_spec='${libname}${release}${shared_ext}$major'
10264   shlibpath_var=LD_LIBRARY_PATH
10265   shlibpath_overrides_runpath=no
10266   hardcode_into_libs=yes
10267   ;;
10268
10269 haiku*)
10270   version_type=linux # correct to gnu/linux during the next big refactor
10271   need_lib_prefix=no
10272   need_version=no
10273   dynamic_linker="$host_os runtime_loader"
10274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10275   soname_spec='${libname}${release}${shared_ext}$major'
10276   shlibpath_var=LIBRARY_PATH
10277   shlibpath_overrides_runpath=yes
10278   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10279   hardcode_into_libs=yes
10280   ;;
10281
10282 hpux9* | hpux10* | hpux11*)
10283   # Give a soname corresponding to the major version so that dld.sl refuses to
10284   # link against other versions.
10285   version_type=sunos
10286   need_lib_prefix=no
10287   need_version=no
10288   case $host_cpu in
10289   ia64*)
10290     shrext_cmds='.so'
10291     hardcode_into_libs=yes
10292     dynamic_linker="$host_os dld.so"
10293     shlibpath_var=LD_LIBRARY_PATH
10294     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296     soname_spec='${libname}${release}${shared_ext}$major'
10297     if test "X$HPUX_IA64_MODE" = X32; then
10298       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10299     else
10300       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10301     fi
10302     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10303     ;;
10304   hppa*64*)
10305     shrext_cmds='.sl'
10306     hardcode_into_libs=yes
10307     dynamic_linker="$host_os dld.sl"
10308     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10309     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311     soname_spec='${libname}${release}${shared_ext}$major'
10312     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10313     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10314     ;;
10315   *)
10316     shrext_cmds='.sl'
10317     dynamic_linker="$host_os dld.sl"
10318     shlibpath_var=SHLIB_PATH
10319     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321     soname_spec='${libname}${release}${shared_ext}$major'
10322     ;;
10323   esac
10324   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10325   postinstall_cmds='chmod 555 $lib'
10326   # or fails outright, so override atomically:
10327   install_override_mode=555
10328   ;;
10329
10330 interix[3-9]*)
10331   version_type=linux # correct to gnu/linux during the next big refactor
10332   need_lib_prefix=no
10333   need_version=no
10334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10335   soname_spec='${libname}${release}${shared_ext}$major'
10336   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10337   shlibpath_var=LD_LIBRARY_PATH
10338   shlibpath_overrides_runpath=no
10339   hardcode_into_libs=yes
10340   ;;
10341
10342 irix5* | irix6* | nonstopux*)
10343   case $host_os in
10344     nonstopux*) version_type=nonstopux ;;
10345     *)
10346         if test "$lt_cv_prog_gnu_ld" = yes; then
10347                 version_type=linux # correct to gnu/linux during the next big refactor
10348         else
10349                 version_type=irix
10350         fi ;;
10351   esac
10352   need_lib_prefix=no
10353   need_version=no
10354   soname_spec='${libname}${release}${shared_ext}$major'
10355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10356   case $host_os in
10357   irix5* | nonstopux*)
10358     libsuff= shlibsuff=
10359     ;;
10360   *)
10361     case $LD in # libtool.m4 will add one of these switches to LD
10362     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10363       libsuff= shlibsuff= libmagic=32-bit;;
10364     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10365       libsuff=32 shlibsuff=N32 libmagic=N32;;
10366     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10367       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10368     *) libsuff= shlibsuff= libmagic=never-match;;
10369     esac
10370     ;;
10371   esac
10372   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10373   shlibpath_overrides_runpath=no
10374   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10375   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10376   hardcode_into_libs=yes
10377   ;;
10378
10379 # No shared lib support for Linux oldld, aout, or coff.
10380 linux*oldld* | linux*aout* | linux*coff*)
10381   dynamic_linker=no
10382   ;;
10383
10384 # This must be glibc/ELF.
10385 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10386   version_type=linux # correct to gnu/linux during the next big refactor
10387   need_lib_prefix=no
10388   need_version=no
10389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390   soname_spec='${libname}${release}${shared_ext}$major'
10391   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10392   shlibpath_var=LD_LIBRARY_PATH
10393   shlibpath_overrides_runpath=no
10394
10395   # Some binutils ld are patched to set DT_RUNPATH
10396   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10397   $as_echo_n "(cached) " >&6
10398 else
10399   lt_cv_shlibpath_overrides_runpath=no
10400     save_LDFLAGS=$LDFLAGS
10401     save_libdir=$libdir
10402     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10403          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10404     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h.  */
10406
10407 int
10408 main ()
10409 {
10410
10411   ;
10412   return 0;
10413 }
10414 _ACEOF
10415 if ac_fn_c_try_link "$LINENO"; then :
10416   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10417   lt_cv_shlibpath_overrides_runpath=yes
10418 fi
10419 fi
10420 rm -f core conftest.err conftest.$ac_objext \
10421     conftest$ac_exeext conftest.$ac_ext
10422     LDFLAGS=$save_LDFLAGS
10423     libdir=$save_libdir
10424
10425 fi
10426
10427   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10428
10429   # This implies no fast_install, which is unacceptable.
10430   # Some rework will be needed to allow for fast_install
10431   # before this can be enabled.
10432   hardcode_into_libs=yes
10433
10434   # Append ld.so.conf contents to the search path
10435   if test -f /etc/ld.so.conf; then
10436     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10437     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10438   fi
10439
10440   # We used to test for /lib/ld.so.1 and disable shared libraries on
10441   # powerpc, because MkLinux only supported shared libraries with the
10442   # GNU dynamic linker.  Since this was broken with cross compilers,
10443   # most powerpc-linux boxes support dynamic linking these days and
10444   # people can always --disable-shared, the test was removed, and we
10445   # assume the GNU/Linux dynamic linker is in use.
10446   dynamic_linker='GNU/Linux ld.so'
10447   ;;
10448
10449 netbsd*)
10450   version_type=sunos
10451   need_lib_prefix=no
10452   need_version=no
10453   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10454     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10455     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10456     dynamic_linker='NetBSD (a.out) ld.so'
10457   else
10458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10459     soname_spec='${libname}${release}${shared_ext}$major'
10460     dynamic_linker='NetBSD ld.elf_so'
10461   fi
10462   shlibpath_var=LD_LIBRARY_PATH
10463   shlibpath_overrides_runpath=yes
10464   hardcode_into_libs=yes
10465   ;;
10466
10467 newsos6)
10468   version_type=linux # correct to gnu/linux during the next big refactor
10469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470   shlibpath_var=LD_LIBRARY_PATH
10471   shlibpath_overrides_runpath=yes
10472   ;;
10473
10474 *nto* | *qnx*)
10475   version_type=qnx
10476   need_lib_prefix=no
10477   need_version=no
10478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479   soname_spec='${libname}${release}${shared_ext}$major'
10480   shlibpath_var=LD_LIBRARY_PATH
10481   shlibpath_overrides_runpath=no
10482   hardcode_into_libs=yes
10483   dynamic_linker='ldqnx.so'
10484   ;;
10485
10486 openbsd*)
10487   version_type=sunos
10488   sys_lib_dlsearch_path_spec="/usr/lib"
10489   need_lib_prefix=no
10490   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10491   case $host_os in
10492     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10493     *)                          need_version=no  ;;
10494   esac
10495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10496   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10497   shlibpath_var=LD_LIBRARY_PATH
10498   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10499     case $host_os in
10500       openbsd2.[89] | openbsd2.[89].*)
10501         shlibpath_overrides_runpath=no
10502         ;;
10503       *)
10504         shlibpath_overrides_runpath=yes
10505         ;;
10506       esac
10507   else
10508     shlibpath_overrides_runpath=yes
10509   fi
10510   ;;
10511
10512 os2*)
10513   libname_spec='$name'
10514   shrext_cmds=".dll"
10515   need_lib_prefix=no
10516   library_names_spec='$libname${shared_ext} $libname.a'
10517   dynamic_linker='OS/2 ld.exe'
10518   shlibpath_var=LIBPATH
10519   ;;
10520
10521 osf3* | osf4* | osf5*)
10522   version_type=osf
10523   need_lib_prefix=no
10524   need_version=no
10525   soname_spec='${libname}${release}${shared_ext}$major'
10526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527   shlibpath_var=LD_LIBRARY_PATH
10528   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10529   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10530   ;;
10531
10532 rdos*)
10533   dynamic_linker=no
10534   ;;
10535
10536 solaris*)
10537   version_type=linux # correct to gnu/linux during the next big refactor
10538   need_lib_prefix=no
10539   need_version=no
10540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541   soname_spec='${libname}${release}${shared_ext}$major'
10542   shlibpath_var=LD_LIBRARY_PATH
10543   shlibpath_overrides_runpath=yes
10544   hardcode_into_libs=yes
10545   # ldd complains unless libraries are executable
10546   postinstall_cmds='chmod +x $lib'
10547   ;;
10548
10549 sunos4*)
10550   version_type=sunos
10551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10552   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10553   shlibpath_var=LD_LIBRARY_PATH
10554   shlibpath_overrides_runpath=yes
10555   if test "$with_gnu_ld" = yes; then
10556     need_lib_prefix=no
10557   fi
10558   need_version=yes
10559   ;;
10560
10561 sysv4 | sysv4.3*)
10562   version_type=linux # correct to gnu/linux during the next big refactor
10563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564   soname_spec='${libname}${release}${shared_ext}$major'
10565   shlibpath_var=LD_LIBRARY_PATH
10566   case $host_vendor in
10567     sni)
10568       shlibpath_overrides_runpath=no
10569       need_lib_prefix=no
10570       runpath_var=LD_RUN_PATH
10571       ;;
10572     siemens)
10573       need_lib_prefix=no
10574       ;;
10575     motorola)
10576       need_lib_prefix=no
10577       need_version=no
10578       shlibpath_overrides_runpath=no
10579       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10580       ;;
10581   esac
10582   ;;
10583
10584 sysv4*MP*)
10585   if test -d /usr/nec ;then
10586     version_type=linux # correct to gnu/linux during the next big refactor
10587     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10588     soname_spec='$libname${shared_ext}.$major'
10589     shlibpath_var=LD_LIBRARY_PATH
10590   fi
10591   ;;
10592
10593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10594   version_type=freebsd-elf
10595   need_lib_prefix=no
10596   need_version=no
10597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10598   soname_spec='${libname}${release}${shared_ext}$major'
10599   shlibpath_var=LD_LIBRARY_PATH
10600   shlibpath_overrides_runpath=yes
10601   hardcode_into_libs=yes
10602   if test "$with_gnu_ld" = yes; then
10603     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10604   else
10605     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10606     case $host_os in
10607       sco3.2v5*)
10608         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10609         ;;
10610     esac
10611   fi
10612   sys_lib_dlsearch_path_spec='/usr/lib'
10613   ;;
10614
10615 tpf*)
10616   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10617   version_type=linux # correct to gnu/linux during the next big refactor
10618   need_lib_prefix=no
10619   need_version=no
10620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621   shlibpath_var=LD_LIBRARY_PATH
10622   shlibpath_overrides_runpath=no
10623   hardcode_into_libs=yes
10624   ;;
10625
10626 uts4*)
10627   version_type=linux # correct to gnu/linux during the next big refactor
10628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629   soname_spec='${libname}${release}${shared_ext}$major'
10630   shlibpath_var=LD_LIBRARY_PATH
10631   ;;
10632
10633 *)
10634   dynamic_linker=no
10635   ;;
10636 esac
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10638 $as_echo "$dynamic_linker" >&6; }
10639 test "$dynamic_linker" = no && can_build_shared=no
10640
10641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10642 if test "$GCC" = yes; then
10643   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10644 fi
10645
10646 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10647   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10648 fi
10649 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10650   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10651 fi
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10745 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10746 hardcode_action=
10747 if test -n "$hardcode_libdir_flag_spec" ||
10748    test -n "$runpath_var" ||
10749    test "X$hardcode_automatic" = "Xyes" ; then
10750
10751   # We can hardcode non-existent directories.
10752   if test "$hardcode_direct" != no &&
10753      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10754      # have to relink, otherwise we might link with an installed library
10755      # when we should be linking with a yet-to-be-installed one
10756      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10757      test "$hardcode_minus_L" != no; then
10758     # Linking always hardcodes the temporary library directory.
10759     hardcode_action=relink
10760   else
10761     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10762     hardcode_action=immediate
10763   fi
10764 else
10765   # We cannot hardcode anything, or else we can only hardcode existing
10766   # directories.
10767   hardcode_action=unsupported
10768 fi
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10770 $as_echo "$hardcode_action" >&6; }
10771
10772 if test "$hardcode_action" = relink ||
10773    test "$inherit_rpath" = yes; then
10774   # Fast installation is not supported
10775   enable_fast_install=no
10776 elif test "$shlibpath_overrides_runpath" = yes ||
10777      test "$enable_shared" = no; then
10778   # Fast installation is not necessary
10779   enable_fast_install=needless
10780 fi
10781
10782
10783
10784
10785
10786
10787   if test "x$enable_dlopen" != xyes; then
10788   enable_dlopen=unknown
10789   enable_dlopen_self=unknown
10790   enable_dlopen_self_static=unknown
10791 else
10792   lt_cv_dlopen=no
10793   lt_cv_dlopen_libs=
10794
10795   case $host_os in
10796   beos*)
10797     lt_cv_dlopen="load_add_on"
10798     lt_cv_dlopen_libs=
10799     lt_cv_dlopen_self=yes
10800     ;;
10801
10802   mingw* | pw32* | cegcc*)
10803     lt_cv_dlopen="LoadLibrary"
10804     lt_cv_dlopen_libs=
10805     ;;
10806
10807   cygwin*)
10808     lt_cv_dlopen="dlopen"
10809     lt_cv_dlopen_libs=
10810     ;;
10811
10812   darwin*)
10813   # if libdl is installed we need to link against it
10814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10815 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10816 if ${ac_cv_lib_dl_dlopen+:} false; then :
10817   $as_echo_n "(cached) " >&6
10818 else
10819   ac_check_lib_save_LIBS=$LIBS
10820 LIBS="-ldl  $LIBS"
10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822 /* end confdefs.h.  */
10823
10824 /* Override any GCC internal prototype to avoid an error.
10825    Use char because int might match the return type of a GCC
10826    builtin and then its argument prototype would still apply.  */
10827 #ifdef __cplusplus
10828 extern "C"
10829 #endif
10830 char dlopen ();
10831 int
10832 main ()
10833 {
10834 return dlopen ();
10835   ;
10836   return 0;
10837 }
10838 _ACEOF
10839 if ac_fn_c_try_link "$LINENO"; then :
10840   ac_cv_lib_dl_dlopen=yes
10841 else
10842   ac_cv_lib_dl_dlopen=no
10843 fi
10844 rm -f core conftest.err conftest.$ac_objext \
10845     conftest$ac_exeext conftest.$ac_ext
10846 LIBS=$ac_check_lib_save_LIBS
10847 fi
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10849 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10850 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10851   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10852 else
10853
10854     lt_cv_dlopen="dyld"
10855     lt_cv_dlopen_libs=
10856     lt_cv_dlopen_self=yes
10857
10858 fi
10859
10860     ;;
10861
10862   *)
10863     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10864 if test "x$ac_cv_func_shl_load" = xyes; then :
10865   lt_cv_dlopen="shl_load"
10866 else
10867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10868 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10869 if ${ac_cv_lib_dld_shl_load+:} false; then :
10870   $as_echo_n "(cached) " >&6
10871 else
10872   ac_check_lib_save_LIBS=$LIBS
10873 LIBS="-ldld  $LIBS"
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h.  */
10876
10877 /* Override any GCC internal prototype to avoid an error.
10878    Use char because int might match the return type of a GCC
10879    builtin and then its argument prototype would still apply.  */
10880 #ifdef __cplusplus
10881 extern "C"
10882 #endif
10883 char shl_load ();
10884 int
10885 main ()
10886 {
10887 return shl_load ();
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 if ac_fn_c_try_link "$LINENO"; then :
10893   ac_cv_lib_dld_shl_load=yes
10894 else
10895   ac_cv_lib_dld_shl_load=no
10896 fi
10897 rm -f core conftest.err conftest.$ac_objext \
10898     conftest$ac_exeext conftest.$ac_ext
10899 LIBS=$ac_check_lib_save_LIBS
10900 fi
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10902 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10903 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10904   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10905 else
10906   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10907 if test "x$ac_cv_func_dlopen" = xyes; then :
10908   lt_cv_dlopen="dlopen"
10909 else
10910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10911 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10912 if ${ac_cv_lib_dl_dlopen+:} false; then :
10913   $as_echo_n "(cached) " >&6
10914 else
10915   ac_check_lib_save_LIBS=$LIBS
10916 LIBS="-ldl  $LIBS"
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h.  */
10919
10920 /* Override any GCC internal prototype to avoid an error.
10921    Use char because int might match the return type of a GCC
10922    builtin and then its argument prototype would still apply.  */
10923 #ifdef __cplusplus
10924 extern "C"
10925 #endif
10926 char dlopen ();
10927 int
10928 main ()
10929 {
10930 return dlopen ();
10931   ;
10932   return 0;
10933 }
10934 _ACEOF
10935 if ac_fn_c_try_link "$LINENO"; then :
10936   ac_cv_lib_dl_dlopen=yes
10937 else
10938   ac_cv_lib_dl_dlopen=no
10939 fi
10940 rm -f core conftest.err conftest.$ac_objext \
10941     conftest$ac_exeext conftest.$ac_ext
10942 LIBS=$ac_check_lib_save_LIBS
10943 fi
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10945 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10946 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10947   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10948 else
10949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10950 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10951 if ${ac_cv_lib_svld_dlopen+:} false; then :
10952   $as_echo_n "(cached) " >&6
10953 else
10954   ac_check_lib_save_LIBS=$LIBS
10955 LIBS="-lsvld  $LIBS"
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h.  */
10958
10959 /* Override any GCC internal prototype to avoid an error.
10960    Use char because int might match the return type of a GCC
10961    builtin and then its argument prototype would still apply.  */
10962 #ifdef __cplusplus
10963 extern "C"
10964 #endif
10965 char dlopen ();
10966 int
10967 main ()
10968 {
10969 return dlopen ();
10970   ;
10971   return 0;
10972 }
10973 _ACEOF
10974 if ac_fn_c_try_link "$LINENO"; then :
10975   ac_cv_lib_svld_dlopen=yes
10976 else
10977   ac_cv_lib_svld_dlopen=no
10978 fi
10979 rm -f core conftest.err conftest.$ac_objext \
10980     conftest$ac_exeext conftest.$ac_ext
10981 LIBS=$ac_check_lib_save_LIBS
10982 fi
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10984 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10985 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10986   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10987 else
10988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10989 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10990 if ${ac_cv_lib_dld_dld_link+:} false; then :
10991   $as_echo_n "(cached) " >&6
10992 else
10993   ac_check_lib_save_LIBS=$LIBS
10994 LIBS="-ldld  $LIBS"
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h.  */
10997
10998 /* Override any GCC internal prototype to avoid an error.
10999    Use char because int might match the return type of a GCC
11000    builtin and then its argument prototype would still apply.  */
11001 #ifdef __cplusplus
11002 extern "C"
11003 #endif
11004 char dld_link ();
11005 int
11006 main ()
11007 {
11008 return dld_link ();
11009   ;
11010   return 0;
11011 }
11012 _ACEOF
11013 if ac_fn_c_try_link "$LINENO"; then :
11014   ac_cv_lib_dld_dld_link=yes
11015 else
11016   ac_cv_lib_dld_dld_link=no
11017 fi
11018 rm -f core conftest.err conftest.$ac_objext \
11019     conftest$ac_exeext conftest.$ac_ext
11020 LIBS=$ac_check_lib_save_LIBS
11021 fi
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11023 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11024 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11025   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11026 fi
11027
11028
11029 fi
11030
11031
11032 fi
11033
11034
11035 fi
11036
11037
11038 fi
11039
11040
11041 fi
11042
11043     ;;
11044   esac
11045
11046   if test "x$lt_cv_dlopen" != xno; then
11047     enable_dlopen=yes
11048   else
11049     enable_dlopen=no
11050   fi
11051
11052   case $lt_cv_dlopen in
11053   dlopen)
11054     save_CPPFLAGS="$CPPFLAGS"
11055     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11056
11057     save_LDFLAGS="$LDFLAGS"
11058     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11059
11060     save_LIBS="$LIBS"
11061     LIBS="$lt_cv_dlopen_libs $LIBS"
11062
11063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11064 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11065 if ${lt_cv_dlopen_self+:} false; then :
11066   $as_echo_n "(cached) " >&6
11067 else
11068           if test "$cross_compiling" = yes; then :
11069   lt_cv_dlopen_self=cross
11070 else
11071   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11072   lt_status=$lt_dlunknown
11073   cat > conftest.$ac_ext <<_LT_EOF
11074 #line $LINENO "configure"
11075 #include "confdefs.h"
11076
11077 #if HAVE_DLFCN_H
11078 #include <dlfcn.h>
11079 #endif
11080
11081 #include <stdio.h>
11082
11083 #ifdef RTLD_GLOBAL
11084 #  define LT_DLGLOBAL           RTLD_GLOBAL
11085 #else
11086 #  ifdef DL_GLOBAL
11087 #    define LT_DLGLOBAL         DL_GLOBAL
11088 #  else
11089 #    define LT_DLGLOBAL         0
11090 #  endif
11091 #endif
11092
11093 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11094    find out it does not work in some platform. */
11095 #ifndef LT_DLLAZY_OR_NOW
11096 #  ifdef RTLD_LAZY
11097 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11098 #  else
11099 #    ifdef DL_LAZY
11100 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11101 #    else
11102 #      ifdef RTLD_NOW
11103 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11104 #      else
11105 #        ifdef DL_NOW
11106 #          define LT_DLLAZY_OR_NOW      DL_NOW
11107 #        else
11108 #          define LT_DLLAZY_OR_NOW      0
11109 #        endif
11110 #      endif
11111 #    endif
11112 #  endif
11113 #endif
11114
11115 /* When -fvisbility=hidden is used, assume the code has been annotated
11116    correspondingly for the symbols needed.  */
11117 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11118 int fnord () __attribute__((visibility("default")));
11119 #endif
11120
11121 int fnord () { return 42; }
11122 int main ()
11123 {
11124   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11125   int status = $lt_dlunknown;
11126
11127   if (self)
11128     {
11129       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11130       else
11131         {
11132           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11133           else puts (dlerror ());
11134         }
11135       /* dlclose (self); */
11136     }
11137   else
11138     puts (dlerror ());
11139
11140   return status;
11141 }
11142 _LT_EOF
11143   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11144   (eval $ac_link) 2>&5
11145   ac_status=$?
11146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11147   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11148     (./conftest; exit; ) >&5 2>/dev/null
11149     lt_status=$?
11150     case x$lt_status in
11151       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11152       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11153       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11154     esac
11155   else :
11156     # compilation failed
11157     lt_cv_dlopen_self=no
11158   fi
11159 fi
11160 rm -fr conftest*
11161
11162
11163 fi
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11165 $as_echo "$lt_cv_dlopen_self" >&6; }
11166
11167     if test "x$lt_cv_dlopen_self" = xyes; then
11168       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11169       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11170 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11171 if ${lt_cv_dlopen_self_static+:} false; then :
11172   $as_echo_n "(cached) " >&6
11173 else
11174           if test "$cross_compiling" = yes; then :
11175   lt_cv_dlopen_self_static=cross
11176 else
11177   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11178   lt_status=$lt_dlunknown
11179   cat > conftest.$ac_ext <<_LT_EOF
11180 #line $LINENO "configure"
11181 #include "confdefs.h"
11182
11183 #if HAVE_DLFCN_H
11184 #include <dlfcn.h>
11185 #endif
11186
11187 #include <stdio.h>
11188
11189 #ifdef RTLD_GLOBAL
11190 #  define LT_DLGLOBAL           RTLD_GLOBAL
11191 #else
11192 #  ifdef DL_GLOBAL
11193 #    define LT_DLGLOBAL         DL_GLOBAL
11194 #  else
11195 #    define LT_DLGLOBAL         0
11196 #  endif
11197 #endif
11198
11199 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11200    find out it does not work in some platform. */
11201 #ifndef LT_DLLAZY_OR_NOW
11202 #  ifdef RTLD_LAZY
11203 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11204 #  else
11205 #    ifdef DL_LAZY
11206 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11207 #    else
11208 #      ifdef RTLD_NOW
11209 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11210 #      else
11211 #        ifdef DL_NOW
11212 #          define LT_DLLAZY_OR_NOW      DL_NOW
11213 #        else
11214 #          define LT_DLLAZY_OR_NOW      0
11215 #        endif
11216 #      endif
11217 #    endif
11218 #  endif
11219 #endif
11220
11221 /* When -fvisbility=hidden is used, assume the code has been annotated
11222    correspondingly for the symbols needed.  */
11223 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11224 int fnord () __attribute__((visibility("default")));
11225 #endif
11226
11227 int fnord () { return 42; }
11228 int main ()
11229 {
11230   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11231   int status = $lt_dlunknown;
11232
11233   if (self)
11234     {
11235       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11236       else
11237         {
11238           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11239           else puts (dlerror ());
11240         }
11241       /* dlclose (self); */
11242     }
11243   else
11244     puts (dlerror ());
11245
11246   return status;
11247 }
11248 _LT_EOF
11249   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11250   (eval $ac_link) 2>&5
11251   ac_status=$?
11252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11253   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11254     (./conftest; exit; ) >&5 2>/dev/null
11255     lt_status=$?
11256     case x$lt_status in
11257       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11258       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11259       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11260     esac
11261   else :
11262     # compilation failed
11263     lt_cv_dlopen_self_static=no
11264   fi
11265 fi
11266 rm -fr conftest*
11267
11268
11269 fi
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11271 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11272     fi
11273
11274     CPPFLAGS="$save_CPPFLAGS"
11275     LDFLAGS="$save_LDFLAGS"
11276     LIBS="$save_LIBS"
11277     ;;
11278   esac
11279
11280   case $lt_cv_dlopen_self in
11281   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11282   *) enable_dlopen_self=unknown ;;
11283   esac
11284
11285   case $lt_cv_dlopen_self_static in
11286   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11287   *) enable_dlopen_self_static=unknown ;;
11288   esac
11289 fi
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307 striplib=
11308 old_striplib=
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11310 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11311 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11312   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11313   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11315 $as_echo "yes" >&6; }
11316 else
11317 # FIXME - insert some real tests, host_os isn't really good enough
11318   case $host_os in
11319   darwin*)
11320     if test -n "$STRIP" ; then
11321       striplib="$STRIP -x"
11322       old_striplib="$STRIP -S"
11323       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11324 $as_echo "yes" >&6; }
11325     else
11326       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327 $as_echo "no" >&6; }
11328     fi
11329     ;;
11330   *)
11331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 $as_echo "no" >&6; }
11333     ;;
11334   esac
11335 fi
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348   # Report which library types will actually be built
11349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11350 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11352 $as_echo "$can_build_shared" >&6; }
11353
11354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11355 $as_echo_n "checking whether to build shared libraries... " >&6; }
11356   test "$can_build_shared" = "no" && enable_shared=no
11357
11358   # On AIX, shared libraries and static libraries use the same namespace, and
11359   # are all built from PIC.
11360   case $host_os in
11361   aix3*)
11362     test "$enable_shared" = yes && enable_static=no
11363     if test -n "$RANLIB"; then
11364       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11365       postinstall_cmds='$RANLIB $lib'
11366     fi
11367     ;;
11368
11369   aix[4-9]*)
11370     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11371       test "$enable_shared" = yes && enable_static=no
11372     fi
11373     ;;
11374   esac
11375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11376 $as_echo "$enable_shared" >&6; }
11377
11378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11379 $as_echo_n "checking whether to build static libraries... " >&6; }
11380   # Make sure either enable_shared or enable_static is yes.
11381   test "$enable_shared" = yes || enable_static=yes
11382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11383 $as_echo "$enable_static" >&6; }
11384
11385
11386
11387
11388 fi
11389 ac_ext=c
11390 ac_cpp='$CPP $CPPFLAGS'
11391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11394
11395 CC="$lt_save_CC"
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411         ac_config_commands="$ac_config_commands libtool"
11412
11413
11414
11415
11416 # Only expand once:
11417
11418
11419
11420 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
11421 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
11422 LT_REVISION=$SDL_INTERFACE_AGE
11423 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433 ac_ext=c
11434 ac_cpp='$CPP $CPPFLAGS'
11435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11438 if test -n "$ac_tool_prefix"; then
11439   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11442 $as_echo_n "checking for $ac_word... " >&6; }
11443 if ${ac_cv_prog_CC+:} false; then :
11444   $as_echo_n "(cached) " >&6
11445 else
11446   if test -n "$CC"; then
11447   ac_cv_prog_CC="$CC" # Let the user override the test.
11448 else
11449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11450 for as_dir in $PATH
11451 do
11452   IFS=$as_save_IFS
11453   test -z "$as_dir" && as_dir=.
11454     for ac_exec_ext in '' $ac_executable_extensions; do
11455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11456     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11458     break 2
11459   fi
11460 done
11461   done
11462 IFS=$as_save_IFS
11463
11464 fi
11465 fi
11466 CC=$ac_cv_prog_CC
11467 if test -n "$CC"; then
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11469 $as_echo "$CC" >&6; }
11470 else
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11473 fi
11474
11475
11476 fi
11477 if test -z "$ac_cv_prog_CC"; then
11478   ac_ct_CC=$CC
11479   # Extract the first word of "gcc", so it can be a program name with args.
11480 set dummy gcc; ac_word=$2
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482 $as_echo_n "checking for $ac_word... " >&6; }
11483 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11484   $as_echo_n "(cached) " >&6
11485 else
11486   if test -n "$ac_ct_CC"; then
11487   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11488 else
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11491 do
11492   IFS=$as_save_IFS
11493   test -z "$as_dir" && as_dir=.
11494     for ac_exec_ext in '' $ac_executable_extensions; do
11495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11496     ac_cv_prog_ac_ct_CC="gcc"
11497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11498     break 2
11499   fi
11500 done
11501   done
11502 IFS=$as_save_IFS
11503
11504 fi
11505 fi
11506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11507 if test -n "$ac_ct_CC"; then
11508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11509 $as_echo "$ac_ct_CC" >&6; }
11510 else
11511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11513 fi
11514
11515   if test "x$ac_ct_CC" = x; then
11516     CC=""
11517   else
11518     case $cross_compiling:$ac_tool_warned in
11519 yes:)
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11522 ac_tool_warned=yes ;;
11523 esac
11524     CC=$ac_ct_CC
11525   fi
11526 else
11527   CC="$ac_cv_prog_CC"
11528 fi
11529
11530 if test -z "$CC"; then
11531           if test -n "$ac_tool_prefix"; then
11532     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11533 set dummy ${ac_tool_prefix}cc; ac_word=$2
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11535 $as_echo_n "checking for $ac_word... " >&6; }
11536 if ${ac_cv_prog_CC+:} false; then :
11537   $as_echo_n "(cached) " >&6
11538 else
11539   if test -n "$CC"; then
11540   ac_cv_prog_CC="$CC" # Let the user override the test.
11541 else
11542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543 for as_dir in $PATH
11544 do
11545   IFS=$as_save_IFS
11546   test -z "$as_dir" && as_dir=.
11547     for ac_exec_ext in '' $ac_executable_extensions; do
11548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11549     ac_cv_prog_CC="${ac_tool_prefix}cc"
11550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11551     break 2
11552   fi
11553 done
11554   done
11555 IFS=$as_save_IFS
11556
11557 fi
11558 fi
11559 CC=$ac_cv_prog_CC
11560 if test -n "$CC"; then
11561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11562 $as_echo "$CC" >&6; }
11563 else
11564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; }
11566 fi
11567
11568
11569   fi
11570 fi
11571 if test -z "$CC"; then
11572   # Extract the first word of "cc", so it can be a program name with args.
11573 set dummy cc; ac_word=$2
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575 $as_echo_n "checking for $ac_word... " >&6; }
11576 if ${ac_cv_prog_CC+:} false; then :
11577   $as_echo_n "(cached) " >&6
11578 else
11579   if test -n "$CC"; then
11580   ac_cv_prog_CC="$CC" # Let the user override the test.
11581 else
11582   ac_prog_rejected=no
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11585 do
11586   IFS=$as_save_IFS
11587   test -z "$as_dir" && as_dir=.
11588     for ac_exec_ext in '' $ac_executable_extensions; do
11589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11590     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11591        ac_prog_rejected=yes
11592        continue
11593      fi
11594     ac_cv_prog_CC="cc"
11595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11596     break 2
11597   fi
11598 done
11599   done
11600 IFS=$as_save_IFS
11601
11602 if test $ac_prog_rejected = yes; then
11603   # We found a bogon in the path, so make sure we never use it.
11604   set dummy $ac_cv_prog_CC
11605   shift
11606   if test $# != 0; then
11607     # We chose a different compiler from the bogus one.
11608     # However, it has the same basename, so the bogon will be chosen
11609     # first if we set CC to just the basename; use the full file name.
11610     shift
11611     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11612   fi
11613 fi
11614 fi
11615 fi
11616 CC=$ac_cv_prog_CC
11617 if test -n "$CC"; then
11618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11619 $as_echo "$CC" >&6; }
11620 else
11621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11622 $as_echo "no" >&6; }
11623 fi
11624
11625
11626 fi
11627 if test -z "$CC"; then
11628   if test -n "$ac_tool_prefix"; then
11629   for ac_prog in cl.exe
11630   do
11631     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11634 $as_echo_n "checking for $ac_word... " >&6; }
11635 if ${ac_cv_prog_CC+:} false; then :
11636   $as_echo_n "(cached) " >&6
11637 else
11638   if test -n "$CC"; then
11639   ac_cv_prog_CC="$CC" # Let the user override the test.
11640 else
11641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11642 for as_dir in $PATH
11643 do
11644   IFS=$as_save_IFS
11645   test -z "$as_dir" && as_dir=.
11646     for ac_exec_ext in '' $ac_executable_extensions; do
11647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11648     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11650     break 2
11651   fi
11652 done
11653   done
11654 IFS=$as_save_IFS
11655
11656 fi
11657 fi
11658 CC=$ac_cv_prog_CC
11659 if test -n "$CC"; then
11660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11661 $as_echo "$CC" >&6; }
11662 else
11663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; }
11665 fi
11666
11667
11668     test -n "$CC" && break
11669   done
11670 fi
11671 if test -z "$CC"; then
11672   ac_ct_CC=$CC
11673   for ac_prog in cl.exe
11674 do
11675   # Extract the first word of "$ac_prog", so it can be a program name with args.
11676 set dummy $ac_prog; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11680   $as_echo_n "(cached) " >&6
11681 else
11682   if test -n "$ac_ct_CC"; then
11683   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11684 else
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688   IFS=$as_save_IFS
11689   test -z "$as_dir" && as_dir=.
11690     for ac_exec_ext in '' $ac_executable_extensions; do
11691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692     ac_cv_prog_ac_ct_CC="$ac_prog"
11693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694     break 2
11695   fi
11696 done
11697   done
11698 IFS=$as_save_IFS
11699
11700 fi
11701 fi
11702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11703 if test -n "$ac_ct_CC"; then
11704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11705 $as_echo "$ac_ct_CC" >&6; }
11706 else
11707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11709 fi
11710
11711
11712   test -n "$ac_ct_CC" && break
11713 done
11714
11715   if test "x$ac_ct_CC" = x; then
11716     CC=""
11717   else
11718     case $cross_compiling:$ac_tool_warned in
11719 yes:)
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11722 ac_tool_warned=yes ;;
11723 esac
11724     CC=$ac_ct_CC
11725   fi
11726 fi
11727
11728 fi
11729
11730
11731 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11733 as_fn_error $? "no acceptable C compiler found in \$PATH
11734 See \`config.log' for more details" "$LINENO" 5; }
11735
11736 # Provide some information about the compiler.
11737 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11738 set X $ac_compile
11739 ac_compiler=$2
11740 for ac_option in --version -v -V -qversion; do
11741   { { ac_try="$ac_compiler $ac_option >&5"
11742 case "(($ac_try" in
11743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744   *) ac_try_echo=$ac_try;;
11745 esac
11746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11747 $as_echo "$ac_try_echo"; } >&5
11748   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11749   ac_status=$?
11750   if test -s conftest.err; then
11751     sed '10a\
11752 ... rest of stderr output deleted ...
11753          10q' conftest.err >conftest.er1
11754     cat conftest.er1 >&5
11755   fi
11756   rm -f conftest.er1 conftest.err
11757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11758   test $ac_status = 0; }
11759 done
11760
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11762 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11763 if ${ac_cv_c_compiler_gnu+:} false; then :
11764   $as_echo_n "(cached) " >&6
11765 else
11766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h.  */
11768
11769 int
11770 main ()
11771 {
11772 #ifndef __GNUC__
11773        choke me
11774 #endif
11775
11776   ;
11777   return 0;
11778 }
11779 _ACEOF
11780 if ac_fn_c_try_compile "$LINENO"; then :
11781   ac_compiler_gnu=yes
11782 else
11783   ac_compiler_gnu=no
11784 fi
11785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11787
11788 fi
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11790 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11791 if test $ac_compiler_gnu = yes; then
11792   GCC=yes
11793 else
11794   GCC=
11795 fi
11796 ac_test_CFLAGS=${CFLAGS+set}
11797 ac_save_CFLAGS=$CFLAGS
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11799 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11800 if ${ac_cv_prog_cc_g+:} false; then :
11801   $as_echo_n "(cached) " >&6
11802 else
11803   ac_save_c_werror_flag=$ac_c_werror_flag
11804    ac_c_werror_flag=yes
11805    ac_cv_prog_cc_g=no
11806    CFLAGS="-g"
11807    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h.  */
11809
11810 int
11811 main ()
11812 {
11813
11814   ;
11815   return 0;
11816 }
11817 _ACEOF
11818 if ac_fn_c_try_compile "$LINENO"; then :
11819   ac_cv_prog_cc_g=yes
11820 else
11821   CFLAGS=""
11822       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h.  */
11824
11825 int
11826 main ()
11827 {
11828
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 if ac_fn_c_try_compile "$LINENO"; then :
11834
11835 else
11836   ac_c_werror_flag=$ac_save_c_werror_flag
11837          CFLAGS="-g"
11838          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11839 /* end confdefs.h.  */
11840
11841 int
11842 main ()
11843 {
11844
11845   ;
11846   return 0;
11847 }
11848 _ACEOF
11849 if ac_fn_c_try_compile "$LINENO"; then :
11850   ac_cv_prog_cc_g=yes
11851 fi
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 fi
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855 fi
11856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857    ac_c_werror_flag=$ac_save_c_werror_flag
11858 fi
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11860 $as_echo "$ac_cv_prog_cc_g" >&6; }
11861 if test "$ac_test_CFLAGS" = set; then
11862   CFLAGS=$ac_save_CFLAGS
11863 elif test $ac_cv_prog_cc_g = yes; then
11864   if test "$GCC" = yes; then
11865     CFLAGS="-g -O2"
11866   else
11867     CFLAGS="-g"
11868   fi
11869 else
11870   if test "$GCC" = yes; then
11871     CFLAGS="-O2"
11872   else
11873     CFLAGS=
11874   fi
11875 fi
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11877 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11878 if ${ac_cv_prog_cc_c89+:} false; then :
11879   $as_echo_n "(cached) " >&6
11880 else
11881   ac_cv_prog_cc_c89=no
11882 ac_save_CC=$CC
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h.  */
11885 #include <stdarg.h>
11886 #include <stdio.h>
11887 struct stat;
11888 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11889 struct buf { int x; };
11890 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11891 static char *e (p, i)
11892      char **p;
11893      int i;
11894 {
11895   return p[i];
11896 }
11897 static char *f (char * (*g) (char **, int), char **p, ...)
11898 {
11899   char *s;
11900   va_list v;
11901   va_start (v,p);
11902   s = g (p, va_arg (v,int));
11903   va_end (v);
11904   return s;
11905 }
11906
11907 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11908    function prototypes and stuff, but not '\xHH' hex character constants.
11909    These don't provoke an error unfortunately, instead are silently treated
11910    as 'x'.  The following induces an error, until -std is added to get
11911    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11912    array size at least.  It's necessary to write '\x00'==0 to get something
11913    that's true only with -std.  */
11914 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11915
11916 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11917    inside strings and character constants.  */
11918 #define FOO(x) 'x'
11919 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11920
11921 int test (int i, double x);
11922 struct s1 {int (*f) (int a);};
11923 struct s2 {int (*f) (double a);};
11924 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11925 int argc;
11926 char **argv;
11927 int
11928 main ()
11929 {
11930 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11931   ;
11932   return 0;
11933 }
11934 _ACEOF
11935 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11936         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11937 do
11938   CC="$ac_save_CC $ac_arg"
11939   if ac_fn_c_try_compile "$LINENO"; then :
11940   ac_cv_prog_cc_c89=$ac_arg
11941 fi
11942 rm -f core conftest.err conftest.$ac_objext
11943   test "x$ac_cv_prog_cc_c89" != "xno" && break
11944 done
11945 rm -f conftest.$ac_ext
11946 CC=$ac_save_CC
11947
11948 fi
11949 # AC_CACHE_VAL
11950 case "x$ac_cv_prog_cc_c89" in
11951   x)
11952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11953 $as_echo "none needed" >&6; } ;;
11954   xno)
11955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11956 $as_echo "unsupported" >&6; } ;;
11957   *)
11958     CC="$CC $ac_cv_prog_cc_c89"
11959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11960 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11961 esac
11962 if test "x$ac_cv_prog_cc_c89" != xno; then :
11963
11964 fi
11965
11966 ac_ext=c
11967 ac_cpp='$CPP $CPPFLAGS'
11968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11971
11972 ac_ext=cpp
11973 ac_cpp='$CXXCPP $CPPFLAGS'
11974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11977 if test -z "$CXX"; then
11978   if test -n "$CCC"; then
11979     CXX=$CCC
11980   else
11981     if test -n "$ac_tool_prefix"; then
11982   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11983   do
11984     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if ${ac_cv_prog_CXX+:} false; then :
11989   $as_echo_n "(cached) " >&6
11990 else
11991   if test -n "$CXX"; then
11992   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11993 else
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 for as_dir in $PATH
11996 do
11997   IFS=$as_save_IFS
11998   test -z "$as_dir" && as_dir=.
11999     for ac_exec_ext in '' $ac_executable_extensions; do
12000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12001     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12003     break 2
12004   fi
12005 done
12006   done
12007 IFS=$as_save_IFS
12008
12009 fi
12010 fi
12011 CXX=$ac_cv_prog_CXX
12012 if test -n "$CXX"; then
12013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12014 $as_echo "$CXX" >&6; }
12015 else
12016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017 $as_echo "no" >&6; }
12018 fi
12019
12020
12021     test -n "$CXX" && break
12022   done
12023 fi
12024 if test -z "$CXX"; then
12025   ac_ct_CXX=$CXX
12026   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12027 do
12028   # Extract the first word of "$ac_prog", so it can be a program name with args.
12029 set dummy $ac_prog; ac_word=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12033   $as_echo_n "(cached) " >&6
12034 else
12035   if test -n "$ac_ct_CXX"; then
12036   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12037 else
12038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12039 for as_dir in $PATH
12040 do
12041   IFS=$as_save_IFS
12042   test -z "$as_dir" && as_dir=.
12043     for ac_exec_ext in '' $ac_executable_extensions; do
12044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12045     ac_cv_prog_ac_ct_CXX="$ac_prog"
12046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12047     break 2
12048   fi
12049 done
12050   done
12051 IFS=$as_save_IFS
12052
12053 fi
12054 fi
12055 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12056 if test -n "$ac_ct_CXX"; then
12057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12058 $as_echo "$ac_ct_CXX" >&6; }
12059 else
12060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061 $as_echo "no" >&6; }
12062 fi
12063
12064
12065   test -n "$ac_ct_CXX" && break
12066 done
12067
12068   if test "x$ac_ct_CXX" = x; then
12069     CXX="g++"
12070   else
12071     case $cross_compiling:$ac_tool_warned in
12072 yes:)
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12075 ac_tool_warned=yes ;;
12076 esac
12077     CXX=$ac_ct_CXX
12078   fi
12079 fi
12080
12081   fi
12082 fi
12083 # Provide some information about the compiler.
12084 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12085 set X $ac_compile
12086 ac_compiler=$2
12087 for ac_option in --version -v -V -qversion; do
12088   { { ac_try="$ac_compiler $ac_option >&5"
12089 case "(($ac_try" in
12090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091   *) ac_try_echo=$ac_try;;
12092 esac
12093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12094 $as_echo "$ac_try_echo"; } >&5
12095   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12096   ac_status=$?
12097   if test -s conftest.err; then
12098     sed '10a\
12099 ... rest of stderr output deleted ...
12100          10q' conftest.err >conftest.er1
12101     cat conftest.er1 >&5
12102   fi
12103   rm -f conftest.er1 conftest.err
12104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12105   test $ac_status = 0; }
12106 done
12107
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12109 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12110 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12111   $as_echo_n "(cached) " >&6
12112 else
12113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h.  */
12115
12116 int
12117 main ()
12118 {
12119 #ifndef __GNUC__
12120        choke me
12121 #endif
12122
12123   ;
12124   return 0;
12125 }
12126 _ACEOF
12127 if ac_fn_cxx_try_compile "$LINENO"; then :
12128   ac_compiler_gnu=yes
12129 else
12130   ac_compiler_gnu=no
12131 fi
12132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12133 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12134
12135 fi
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12137 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12138 if test $ac_compiler_gnu = yes; then
12139   GXX=yes
12140 else
12141   GXX=
12142 fi
12143 ac_test_CXXFLAGS=${CXXFLAGS+set}
12144 ac_save_CXXFLAGS=$CXXFLAGS
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12146 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12147 if ${ac_cv_prog_cxx_g+:} false; then :
12148   $as_echo_n "(cached) " >&6
12149 else
12150   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12151    ac_cxx_werror_flag=yes
12152    ac_cv_prog_cxx_g=no
12153    CXXFLAGS="-g"
12154    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h.  */
12156
12157 int
12158 main ()
12159 {
12160
12161   ;
12162   return 0;
12163 }
12164 _ACEOF
12165 if ac_fn_cxx_try_compile "$LINENO"; then :
12166   ac_cv_prog_cxx_g=yes
12167 else
12168   CXXFLAGS=""
12169       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h.  */
12171
12172 int
12173 main ()
12174 {
12175
12176   ;
12177   return 0;
12178 }
12179 _ACEOF
12180 if ac_fn_cxx_try_compile "$LINENO"; then :
12181
12182 else
12183   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12184          CXXFLAGS="-g"
12185          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h.  */
12187
12188 int
12189 main ()
12190 {
12191
12192   ;
12193   return 0;
12194 }
12195 _ACEOF
12196 if ac_fn_cxx_try_compile "$LINENO"; then :
12197   ac_cv_prog_cxx_g=yes
12198 fi
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200 fi
12201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12202 fi
12203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12205 fi
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12207 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12208 if test "$ac_test_CXXFLAGS" = set; then
12209   CXXFLAGS=$ac_save_CXXFLAGS
12210 elif test $ac_cv_prog_cxx_g = yes; then
12211   if test "$GXX" = yes; then
12212     CXXFLAGS="-g -O2"
12213   else
12214     CXXFLAGS="-g"
12215   fi
12216 else
12217   if test "$GXX" = yes; then
12218     CXXFLAGS="-O2"
12219   else
12220     CXXFLAGS=
12221   fi
12222 fi
12223 ac_ext=c
12224 ac_cpp='$CPP $CPPFLAGS'
12225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12228
12229
12230
12231 func_stripname_cnf ()
12232 {
12233   case ${2} in
12234   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12235   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12236   esac
12237 } # func_stripname_cnf
12238
12239       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12240     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12241     (test "X$CXX" != "Xg++"))) ; then
12242   ac_ext=cpp
12243 ac_cpp='$CXXCPP $CPPFLAGS'
12244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12248 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12249 if test -z "$CXXCPP"; then
12250   if ${ac_cv_prog_CXXCPP+:} false; then :
12251   $as_echo_n "(cached) " >&6
12252 else
12253       # Double quotes because CXXCPP needs to be expanded
12254     for CXXCPP in "$CXX -E" "/lib/cpp"
12255     do
12256       ac_preproc_ok=false
12257 for ac_cxx_preproc_warn_flag in '' yes
12258 do
12259   # Use a header file that comes with gcc, so configuring glibc
12260   # with a fresh cross-compiler works.
12261   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12262   # <limits.h> exists even on freestanding compilers.
12263   # On the NeXT, cc -E runs the code through the compiler's parser,
12264   # not just through cpp. "Syntax error" is here to catch this case.
12265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h.  */
12267 #ifdef __STDC__
12268 # include <limits.h>
12269 #else
12270 # include <assert.h>
12271 #endif
12272                      Syntax error
12273 _ACEOF
12274 if ac_fn_cxx_try_cpp "$LINENO"; then :
12275
12276 else
12277   # Broken: fails on valid input.
12278 continue
12279 fi
12280 rm -f conftest.err conftest.i conftest.$ac_ext
12281
12282   # OK, works on sane cases.  Now check whether nonexistent headers
12283   # can be detected and how.
12284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h.  */
12286 #include <ac_nonexistent.h>
12287 _ACEOF
12288 if ac_fn_cxx_try_cpp "$LINENO"; then :
12289   # Broken: success on invalid input.
12290 continue
12291 else
12292   # Passes both tests.
12293 ac_preproc_ok=:
12294 break
12295 fi
12296 rm -f conftest.err conftest.i conftest.$ac_ext
12297
12298 done
12299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12300 rm -f conftest.i conftest.err conftest.$ac_ext
12301 if $ac_preproc_ok; then :
12302   break
12303 fi
12304
12305     done
12306     ac_cv_prog_CXXCPP=$CXXCPP
12307
12308 fi
12309   CXXCPP=$ac_cv_prog_CXXCPP
12310 else
12311   ac_cv_prog_CXXCPP=$CXXCPP
12312 fi
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12314 $as_echo "$CXXCPP" >&6; }
12315 ac_preproc_ok=false
12316 for ac_cxx_preproc_warn_flag in '' yes
12317 do
12318   # Use a header file that comes with gcc, so configuring glibc
12319   # with a fresh cross-compiler works.
12320   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12321   # <limits.h> exists even on freestanding compilers.
12322   # On the NeXT, cc -E runs the code through the compiler's parser,
12323   # not just through cpp. "Syntax error" is here to catch this case.
12324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h.  */
12326 #ifdef __STDC__
12327 # include <limits.h>
12328 #else
12329 # include <assert.h>
12330 #endif
12331                      Syntax error
12332 _ACEOF
12333 if ac_fn_cxx_try_cpp "$LINENO"; then :
12334
12335 else
12336   # Broken: fails on valid input.
12337 continue
12338 fi
12339 rm -f conftest.err conftest.i conftest.$ac_ext
12340
12341   # OK, works on sane cases.  Now check whether nonexistent headers
12342   # can be detected and how.
12343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h.  */
12345 #include <ac_nonexistent.h>
12346 _ACEOF
12347 if ac_fn_cxx_try_cpp "$LINENO"; then :
12348   # Broken: success on invalid input.
12349 continue
12350 else
12351   # Passes both tests.
12352 ac_preproc_ok=:
12353 break
12354 fi
12355 rm -f conftest.err conftest.i conftest.$ac_ext
12356
12357 done
12358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12359 rm -f conftest.i conftest.err conftest.$ac_ext
12360 if $ac_preproc_ok; then :
12361
12362 else
12363   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12365 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12366 See \`config.log' for more details" "$LINENO" 5; }
12367 fi
12368
12369 ac_ext=c
12370 ac_cpp='$CPP $CPPFLAGS'
12371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12374
12375 else
12376   _lt_caught_CXX_error=yes
12377 fi
12378
12379 ac_ext=cpp
12380 ac_cpp='$CXXCPP $CPPFLAGS'
12381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12384
12385 archive_cmds_need_lc_CXX=no
12386 allow_undefined_flag_CXX=
12387 always_export_symbols_CXX=no
12388 archive_expsym_cmds_CXX=
12389 compiler_needs_object_CXX=no
12390 export_dynamic_flag_spec_CXX=
12391 hardcode_direct_CXX=no
12392 hardcode_direct_absolute_CXX=no
12393 hardcode_libdir_flag_spec_CXX=
12394 hardcode_libdir_separator_CXX=
12395 hardcode_minus_L_CXX=no
12396 hardcode_shlibpath_var_CXX=unsupported
12397 hardcode_automatic_CXX=no
12398 inherit_rpath_CXX=no
12399 module_cmds_CXX=
12400 module_expsym_cmds_CXX=
12401 link_all_deplibs_CXX=unknown
12402 old_archive_cmds_CXX=$old_archive_cmds
12403 reload_flag_CXX=$reload_flag
12404 reload_cmds_CXX=$reload_cmds
12405 no_undefined_flag_CXX=
12406 whole_archive_flag_spec_CXX=
12407 enable_shared_with_static_runtimes_CXX=no
12408
12409 # Source file extension for C++ test sources.
12410 ac_ext=cpp
12411
12412 # Object file extension for compiled C++ test sources.
12413 objext=o
12414 objext_CXX=$objext
12415
12416 # No sense in running all these tests if we already determined that
12417 # the CXX compiler isn't working.  Some variables (like enable_shared)
12418 # are currently assumed to apply to all compilers on this platform,
12419 # and will be corrupted by setting them based on a non-working compiler.
12420 if test "$_lt_caught_CXX_error" != yes; then
12421   # Code to be used in simple compile tests
12422   lt_simple_compile_test_code="int some_variable = 0;"
12423
12424   # Code to be used in simple link tests
12425   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12426
12427   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12428
12429
12430
12431
12432
12433
12434 # If no C compiler was specified, use CC.
12435 LTCC=${LTCC-"$CC"}
12436
12437 # If no C compiler flags were specified, use CFLAGS.
12438 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12439
12440 # Allow CC to be a program name with arguments.
12441 compiler=$CC
12442
12443
12444   # save warnings/boilerplate of simple test code
12445   ac_outfile=conftest.$ac_objext
12446 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12447 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12448 _lt_compiler_boilerplate=`cat conftest.err`
12449 $RM conftest*
12450
12451   ac_outfile=conftest.$ac_objext
12452 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12453 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12454 _lt_linker_boilerplate=`cat conftest.err`
12455 $RM -r conftest*
12456
12457
12458   # Allow CC to be a program name with arguments.
12459   lt_save_CC=$CC
12460   lt_save_CFLAGS=$CFLAGS
12461   lt_save_LD=$LD
12462   lt_save_GCC=$GCC
12463   GCC=$GXX
12464   lt_save_with_gnu_ld=$with_gnu_ld
12465   lt_save_path_LD=$lt_cv_path_LD
12466   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12467     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12468   else
12469     $as_unset lt_cv_prog_gnu_ld
12470   fi
12471   if test -n "${lt_cv_path_LDCXX+set}"; then
12472     lt_cv_path_LD=$lt_cv_path_LDCXX
12473   else
12474     $as_unset lt_cv_path_LD
12475   fi
12476   test -z "${LDCXX+set}" || LD=$LDCXX
12477   CC=${CXX-"c++"}
12478   CFLAGS=$CXXFLAGS
12479   compiler=$CC
12480   compiler_CXX=$CC
12481   for cc_temp in $compiler""; do
12482   case $cc_temp in
12483     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12484     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12485     \-*) ;;
12486     *) break;;
12487   esac
12488 done
12489 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12490
12491
12492   if test -n "$compiler"; then
12493     # We don't want -fno-exception when compiling C++ code, so set the
12494     # no_builtin_flag separately
12495     if test "$GXX" = yes; then
12496       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12497     else
12498       lt_prog_compiler_no_builtin_flag_CXX=
12499     fi
12500
12501     if test "$GXX" = yes; then
12502       # Set up default GNU C++ configuration
12503
12504
12505
12506 # Check whether --with-gnu-ld was given.
12507 if test "${with_gnu_ld+set}" = set; then :
12508   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12509 else
12510   with_gnu_ld=no
12511 fi
12512
12513 ac_prog=ld
12514 if test "$GCC" = yes; then
12515   # Check if gcc -print-prog-name=ld gives a path.
12516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12517 $as_echo_n "checking for ld used by $CC... " >&6; }
12518   case $host in
12519   *-*-mingw*)
12520     # gcc leaves a trailing carriage return which upsets mingw
12521     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12522   *)
12523     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12524   esac
12525   case $ac_prog in
12526     # Accept absolute paths.
12527     [\\/]* | ?:[\\/]*)
12528       re_direlt='/[^/][^/]*/\.\./'
12529       # Canonicalize the pathname of ld
12530       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12531       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12532         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12533       done
12534       test -z "$LD" && LD="$ac_prog"
12535       ;;
12536   "")
12537     # If it fails, then pretend we aren't using GCC.
12538     ac_prog=ld
12539     ;;
12540   *)
12541     # If it is relative, then search for the first ld in PATH.
12542     with_gnu_ld=unknown
12543     ;;
12544   esac
12545 elif test "$with_gnu_ld" = yes; then
12546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12547 $as_echo_n "checking for GNU ld... " >&6; }
12548 else
12549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12550 $as_echo_n "checking for non-GNU ld... " >&6; }
12551 fi
12552 if ${lt_cv_path_LD+:} false; then :
12553   $as_echo_n "(cached) " >&6
12554 else
12555   if test -z "$LD"; then
12556   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12557   for ac_dir in $PATH; do
12558     IFS="$lt_save_ifs"
12559     test -z "$ac_dir" && ac_dir=.
12560     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12561       lt_cv_path_LD="$ac_dir/$ac_prog"
12562       # Check to see if the program is GNU ld.  I'd rather use --version,
12563       # but apparently some variants of GNU ld only accept -v.
12564       # Break only if it was the GNU/non-GNU ld that we prefer.
12565       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12566       *GNU* | *'with BFD'*)
12567         test "$with_gnu_ld" != no && break
12568         ;;
12569       *)
12570         test "$with_gnu_ld" != yes && break
12571         ;;
12572       esac
12573     fi
12574   done
12575   IFS="$lt_save_ifs"
12576 else
12577   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12578 fi
12579 fi
12580
12581 LD="$lt_cv_path_LD"
12582 if test -n "$LD"; then
12583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12584 $as_echo "$LD" >&6; }
12585 else
12586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12588 fi
12589 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12591 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12592 if ${lt_cv_prog_gnu_ld+:} false; then :
12593   $as_echo_n "(cached) " >&6
12594 else
12595   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12596 case `$LD -v 2>&1 </dev/null` in
12597 *GNU* | *'with BFD'*)
12598   lt_cv_prog_gnu_ld=yes
12599   ;;
12600 *)
12601   lt_cv_prog_gnu_ld=no
12602   ;;
12603 esac
12604 fi
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12606 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12607 with_gnu_ld=$lt_cv_prog_gnu_ld
12608
12609
12610
12611
12612
12613
12614
12615       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12616       # archiving commands below assume that GNU ld is being used.
12617       if test "$with_gnu_ld" = yes; then
12618         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12619         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12620
12621         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12622         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12623
12624         # If archive_cmds runs LD, not CC, wlarc should be empty
12625         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12626         #     investigate it a little bit more. (MM)
12627         wlarc='${wl}'
12628
12629         # ancient GNU ld didn't support --whole-archive et. al.
12630         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12631           $GREP 'no-whole-archive' > /dev/null; then
12632           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12633         else
12634           whole_archive_flag_spec_CXX=
12635         fi
12636       else
12637         with_gnu_ld=no
12638         wlarc=
12639
12640         # A generic and very simple default shared library creation
12641         # command for GNU C++ for the case where it uses the native
12642         # linker, instead of GNU ld.  If possible, this setting should
12643         # overridden to take advantage of the native linker features on
12644         # the platform it is being used on.
12645         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12646       fi
12647
12648       # Commands to make compiler produce verbose output that lists
12649       # what "hidden" libraries, object files and flags are used when
12650       # linking a shared library.
12651       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12652
12653     else
12654       GXX=no
12655       with_gnu_ld=no
12656       wlarc=
12657     fi
12658
12659     # PORTME: fill in a description of your system's C++ link characteristics
12660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12661 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12662     ld_shlibs_CXX=yes
12663     case $host_os in
12664       aix3*)
12665         # FIXME: insert proper C++ library support
12666         ld_shlibs_CXX=no
12667         ;;
12668       aix[4-9]*)
12669         if test "$host_cpu" = ia64; then
12670           # On IA64, the linker does run time linking by default, so we don't
12671           # have to do anything special.
12672           aix_use_runtimelinking=no
12673           exp_sym_flag='-Bexport'
12674           no_entry_flag=""
12675         else
12676           aix_use_runtimelinking=no
12677
12678           # Test if we are trying to use run time linking or normal
12679           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12680           # need to do runtime linking.
12681           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12682             for ld_flag in $LDFLAGS; do
12683               case $ld_flag in
12684               *-brtl*)
12685                 aix_use_runtimelinking=yes
12686                 break
12687                 ;;
12688               esac
12689             done
12690             ;;
12691           esac
12692
12693           exp_sym_flag='-bexport'
12694           no_entry_flag='-bnoentry'
12695         fi
12696
12697         # When large executables or shared objects are built, AIX ld can
12698         # have problems creating the table of contents.  If linking a library
12699         # or program results in "error TOC overflow" add -mminimal-toc to
12700         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12701         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12702
12703         archive_cmds_CXX=''
12704         hardcode_direct_CXX=yes
12705         hardcode_direct_absolute_CXX=yes
12706         hardcode_libdir_separator_CXX=':'
12707         link_all_deplibs_CXX=yes
12708         file_list_spec_CXX='${wl}-f,'
12709
12710         if test "$GXX" = yes; then
12711           case $host_os in aix4.[012]|aix4.[012].*)
12712           # We only want to do this on AIX 4.2 and lower, the check
12713           # below for broken collect2 doesn't work under 4.3+
12714           collect2name=`${CC} -print-prog-name=collect2`
12715           if test -f "$collect2name" &&
12716              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12717           then
12718             # We have reworked collect2
12719             :
12720           else
12721             # We have old collect2
12722             hardcode_direct_CXX=unsupported
12723             # It fails to find uninstalled libraries when the uninstalled
12724             # path is not listed in the libpath.  Setting hardcode_minus_L
12725             # to unsupported forces relinking
12726             hardcode_minus_L_CXX=yes
12727             hardcode_libdir_flag_spec_CXX='-L$libdir'
12728             hardcode_libdir_separator_CXX=
12729           fi
12730           esac
12731           shared_flag='-shared'
12732           if test "$aix_use_runtimelinking" = yes; then
12733             shared_flag="$shared_flag "'${wl}-G'
12734           fi
12735         else
12736           # not using gcc
12737           if test "$host_cpu" = ia64; then
12738           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12739           # chokes on -Wl,-G. The following line is correct:
12740           shared_flag='-G'
12741           else
12742             if test "$aix_use_runtimelinking" = yes; then
12743               shared_flag='${wl}-G'
12744             else
12745               shared_flag='${wl}-bM:SRE'
12746             fi
12747           fi
12748         fi
12749
12750         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12751         # It seems that -bexpall does not export symbols beginning with
12752         # underscore (_), so it is better to generate a list of symbols to
12753         # export.
12754         always_export_symbols_CXX=yes
12755         if test "$aix_use_runtimelinking" = yes; then
12756           # Warning - without using the other runtime loading flags (-brtl),
12757           # -berok will link without error, but may produce a broken library.
12758           allow_undefined_flag_CXX='-berok'
12759           # Determine the default libpath from the value encoded in an empty
12760           # executable.
12761           if test "${lt_cv_aix_libpath+set}" = set; then
12762   aix_libpath=$lt_cv_aix_libpath
12763 else
12764   if ${lt_cv_aix_libpath__CXX+:} false; then :
12765   $as_echo_n "(cached) " >&6
12766 else
12767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h.  */
12769
12770 int
12771 main ()
12772 {
12773
12774   ;
12775   return 0;
12776 }
12777 _ACEOF
12778 if ac_fn_cxx_try_link "$LINENO"; then :
12779
12780   lt_aix_libpath_sed='
12781       /Import File Strings/,/^$/ {
12782           /^0/ {
12783               s/^0  *\([^ ]*\) *$/\1/
12784               p
12785           }
12786       }'
12787   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12788   # Check for a 64-bit object if we didn't find anything.
12789   if test -z "$lt_cv_aix_libpath__CXX"; then
12790     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12791   fi
12792 fi
12793 rm -f core conftest.err conftest.$ac_objext \
12794     conftest$ac_exeext conftest.$ac_ext
12795   if test -z "$lt_cv_aix_libpath__CXX"; then
12796     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12797   fi
12798
12799 fi
12800
12801   aix_libpath=$lt_cv_aix_libpath__CXX
12802 fi
12803
12804           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12805
12806           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12807         else
12808           if test "$host_cpu" = ia64; then
12809             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12810             allow_undefined_flag_CXX="-z nodefs"
12811             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12812           else
12813             # Determine the default libpath from the value encoded in an
12814             # empty executable.
12815             if test "${lt_cv_aix_libpath+set}" = set; then
12816   aix_libpath=$lt_cv_aix_libpath
12817 else
12818   if ${lt_cv_aix_libpath__CXX+:} false; then :
12819   $as_echo_n "(cached) " >&6
12820 else
12821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h.  */
12823
12824 int
12825 main ()
12826 {
12827
12828   ;
12829   return 0;
12830 }
12831 _ACEOF
12832 if ac_fn_cxx_try_link "$LINENO"; then :
12833
12834   lt_aix_libpath_sed='
12835       /Import File Strings/,/^$/ {
12836           /^0/ {
12837               s/^0  *\([^ ]*\) *$/\1/
12838               p
12839           }
12840       }'
12841   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12842   # Check for a 64-bit object if we didn't find anything.
12843   if test -z "$lt_cv_aix_libpath__CXX"; then
12844     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12845   fi
12846 fi
12847 rm -f core conftest.err conftest.$ac_objext \
12848     conftest$ac_exeext conftest.$ac_ext
12849   if test -z "$lt_cv_aix_libpath__CXX"; then
12850     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12851   fi
12852
12853 fi
12854
12855   aix_libpath=$lt_cv_aix_libpath__CXX
12856 fi
12857
12858             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12859             # Warning - without using the other run time loading flags,
12860             # -berok will link without error, but may produce a broken library.
12861             no_undefined_flag_CXX=' ${wl}-bernotok'
12862             allow_undefined_flag_CXX=' ${wl}-berok'
12863             if test "$with_gnu_ld" = yes; then
12864               # We only use this code for GNU lds that support --whole-archive.
12865               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12866             else
12867               # Exported symbols can be pulled into shared objects from archives
12868               whole_archive_flag_spec_CXX='$convenience'
12869             fi
12870             archive_cmds_need_lc_CXX=yes
12871             # This is similar to how AIX traditionally builds its shared
12872             # libraries.
12873             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12874           fi
12875         fi
12876         ;;
12877
12878       beos*)
12879         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12880           allow_undefined_flag_CXX=unsupported
12881           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12882           # support --undefined.  This deserves some investigation.  FIXME
12883           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12884         else
12885           ld_shlibs_CXX=no
12886         fi
12887         ;;
12888
12889       chorus*)
12890         case $cc_basename in
12891           *)
12892           # FIXME: insert proper C++ library support
12893           ld_shlibs_CXX=no
12894           ;;
12895         esac
12896         ;;
12897
12898       cygwin* | mingw* | pw32* | cegcc*)
12899         case $GXX,$cc_basename in
12900         ,cl* | no,cl*)
12901           # Native MSVC
12902           # hardcode_libdir_flag_spec is actually meaningless, as there is
12903           # no search path for DLLs.
12904           hardcode_libdir_flag_spec_CXX=' '
12905           allow_undefined_flag_CXX=unsupported
12906           always_export_symbols_CXX=yes
12907           file_list_spec_CXX='@'
12908           # Tell ltmain to make .lib files, not .a files.
12909           libext=lib
12910           # Tell ltmain to make .dll files, not .so files.
12911           shrext_cmds=".dll"
12912           # FIXME: Setting linknames here is a bad hack.
12913           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12914           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12915               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12916             else
12917               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12918             fi~
12919             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12920             linknames='
12921           # The linker will not automatically build a static lib if we build a DLL.
12922           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12923           enable_shared_with_static_runtimes_CXX=yes
12924           # Don't use ranlib
12925           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12926           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12927             lt_tool_outputfile="@TOOL_OUTPUT@"~
12928             case $lt_outputfile in
12929               *.exe|*.EXE) ;;
12930               *)
12931                 lt_outputfile="$lt_outputfile.exe"
12932                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12933                 ;;
12934             esac~
12935             func_to_tool_file "$lt_outputfile"~
12936             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12937               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12938               $RM "$lt_outputfile.manifest";
12939             fi'
12940           ;;
12941         *)
12942           # g++
12943           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12944           # as there is no search path for DLLs.
12945           hardcode_libdir_flag_spec_CXX='-L$libdir'
12946           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12947           allow_undefined_flag_CXX=unsupported
12948           always_export_symbols_CXX=no
12949           enable_shared_with_static_runtimes_CXX=yes
12950
12951           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12952             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12953             # If the export-symbols file already is a .def file (1st line
12954             # is EXPORTS), use it as is; otherwise, prepend...
12955             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12956               cp $export_symbols $output_objdir/$soname.def;
12957             else
12958               echo EXPORTS > $output_objdir/$soname.def;
12959               cat $export_symbols >> $output_objdir/$soname.def;
12960             fi~
12961             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12962           else
12963             ld_shlibs_CXX=no
12964           fi
12965           ;;
12966         esac
12967         ;;
12968       darwin* | rhapsody*)
12969
12970
12971   archive_cmds_need_lc_CXX=no
12972   hardcode_direct_CXX=no
12973   hardcode_automatic_CXX=yes
12974   hardcode_shlibpath_var_CXX=unsupported
12975   if test "$lt_cv_ld_force_load" = "yes"; then
12976     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12977
12978   else
12979     whole_archive_flag_spec_CXX=''
12980   fi
12981   link_all_deplibs_CXX=yes
12982   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12983   case $cc_basename in
12984      ifort*) _lt_dar_can_shared=yes ;;
12985      *) _lt_dar_can_shared=$GCC ;;
12986   esac
12987   if test "$_lt_dar_can_shared" = "yes"; then
12988     output_verbose_link_cmd=func_echo_all
12989     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12990     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12991     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12992     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12993        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12994       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12995       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12996     fi
12997
12998   else
12999   ld_shlibs_CXX=no
13000   fi
13001
13002         ;;
13003
13004       dgux*)
13005         case $cc_basename in
13006           ec++*)
13007             # FIXME: insert proper C++ library support
13008             ld_shlibs_CXX=no
13009             ;;
13010           ghcx*)
13011             # Green Hills C++ Compiler
13012             # FIXME: insert proper C++ library support
13013             ld_shlibs_CXX=no
13014             ;;
13015           *)
13016             # FIXME: insert proper C++ library support
13017             ld_shlibs_CXX=no
13018             ;;
13019         esac
13020         ;;
13021
13022       freebsd2.*)
13023         # C++ shared libraries reported to be fairly broken before
13024         # switch to ELF
13025         ld_shlibs_CXX=no
13026         ;;
13027
13028       freebsd-elf*)
13029         archive_cmds_need_lc_CXX=no
13030         ;;
13031
13032       freebsd* | dragonfly*)
13033         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13034         # conventions
13035         ld_shlibs_CXX=yes
13036         ;;
13037
13038       gnu*)
13039         ;;
13040
13041       haiku*)
13042         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13043         link_all_deplibs_CXX=yes
13044         ;;
13045
13046       hpux9*)
13047         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13048         hardcode_libdir_separator_CXX=:
13049         export_dynamic_flag_spec_CXX='${wl}-E'
13050         hardcode_direct_CXX=yes
13051         hardcode_minus_L_CXX=yes # Not in the search PATH,
13052                                              # but as the default
13053                                              # location of the library.
13054
13055         case $cc_basename in
13056           CC*)
13057             # FIXME: insert proper C++ library support
13058             ld_shlibs_CXX=no
13059             ;;
13060           aCC*)
13061             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13062             # Commands to make compiler produce verbose output that lists
13063             # what "hidden" libraries, object files and flags are used when
13064             # linking a shared library.
13065             #
13066             # There doesn't appear to be a way to prevent this compiler from
13067             # explicitly linking system object files so we need to strip them
13068             # from the output so that they don't get included in the library
13069             # dependencies.
13070             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13071             ;;
13072           *)
13073             if test "$GXX" = yes; then
13074               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13075             else
13076               # FIXME: insert proper C++ library support
13077               ld_shlibs_CXX=no
13078             fi
13079             ;;
13080         esac
13081         ;;
13082
13083       hpux10*|hpux11*)
13084         if test $with_gnu_ld = no; then
13085           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13086           hardcode_libdir_separator_CXX=:
13087
13088           case $host_cpu in
13089             hppa*64*|ia64*)
13090               ;;
13091             *)
13092               export_dynamic_flag_spec_CXX='${wl}-E'
13093               ;;
13094           esac
13095         fi
13096         case $host_cpu in
13097           hppa*64*|ia64*)
13098             hardcode_direct_CXX=no
13099             hardcode_shlibpath_var_CXX=no
13100             ;;
13101           *)
13102             hardcode_direct_CXX=yes
13103             hardcode_direct_absolute_CXX=yes
13104             hardcode_minus_L_CXX=yes # Not in the search PATH,
13105                                                  # but as the default
13106                                                  # location of the library.
13107             ;;
13108         esac
13109
13110         case $cc_basename in
13111           CC*)
13112             # FIXME: insert proper C++ library support
13113             ld_shlibs_CXX=no
13114             ;;
13115           aCC*)
13116             case $host_cpu in
13117               hppa*64*)
13118                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13119                 ;;
13120               ia64*)
13121                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13122                 ;;
13123               *)
13124                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13125                 ;;
13126             esac
13127             # Commands to make compiler produce verbose output that lists
13128             # what "hidden" libraries, object files and flags are used when
13129             # linking a shared library.
13130             #
13131             # There doesn't appear to be a way to prevent this compiler from
13132             # explicitly linking system object files so we need to strip them
13133             # from the output so that they don't get included in the library
13134             # dependencies.
13135             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13136             ;;
13137           *)
13138             if test "$GXX" = yes; then
13139               if test $with_gnu_ld = no; then
13140                 case $host_cpu in
13141                   hppa*64*)
13142                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13143                     ;;
13144                   ia64*)
13145                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13146                     ;;
13147                   *)
13148                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13149                     ;;
13150                 esac
13151               fi
13152             else
13153               # FIXME: insert proper C++ library support
13154               ld_shlibs_CXX=no
13155             fi
13156             ;;
13157         esac
13158         ;;
13159
13160       interix[3-9]*)
13161         hardcode_direct_CXX=no
13162         hardcode_shlibpath_var_CXX=no
13163         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13164         export_dynamic_flag_spec_CXX='${wl}-E'
13165         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13166         # Instead, shared libraries are loaded at an image base (0x10000000 by
13167         # default) and relocated if they conflict, which is a slow very memory
13168         # consuming and fragmenting process.  To avoid this, we pick a random,
13169         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13170         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13171         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13172         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13173         ;;
13174       irix5* | irix6*)
13175         case $cc_basename in
13176           CC*)
13177             # SGI C++
13178             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13179
13180             # Archives containing C++ object files must be created using
13181             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13182             # necessary to make sure instantiated templates are included
13183             # in the archive.
13184             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13185             ;;
13186           *)
13187             if test "$GXX" = yes; then
13188               if test "$with_gnu_ld" = no; then
13189                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13190               else
13191                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13192               fi
13193             fi
13194             link_all_deplibs_CXX=yes
13195             ;;
13196         esac
13197         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13198         hardcode_libdir_separator_CXX=:
13199         inherit_rpath_CXX=yes
13200         ;;
13201
13202       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13203         case $cc_basename in
13204           KCC*)
13205             # Kuck and Associates, Inc. (KAI) C++ Compiler
13206
13207             # KCC will only create a shared library if the output file
13208             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13209             # to its proper name (with version) after linking.
13210             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13211             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13212             # Commands to make compiler produce verbose output that lists
13213             # what "hidden" libraries, object files and flags are used when
13214             # linking a shared library.
13215             #
13216             # There doesn't appear to be a way to prevent this compiler from
13217             # explicitly linking system object files so we need to strip them
13218             # from the output so that they don't get included in the library
13219             # dependencies.
13220             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13221
13222             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13223             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13224
13225             # Archives containing C++ object files must be created using
13226             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13227             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13228             ;;
13229           icpc* | ecpc* )
13230             # Intel C++
13231             with_gnu_ld=yes
13232             # version 8.0 and above of icpc choke on multiply defined symbols
13233             # if we add $predep_objects and $postdep_objects, however 7.1 and
13234             # earlier do not add the objects themselves.
13235             case `$CC -V 2>&1` in
13236               *"Version 7."*)
13237                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13238                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13239                 ;;
13240               *)  # Version 8.0 or newer
13241                 tmp_idyn=
13242                 case $host_cpu in
13243                   ia64*) tmp_idyn=' -i_dynamic';;
13244                 esac
13245                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13246                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13247                 ;;
13248             esac
13249             archive_cmds_need_lc_CXX=no
13250             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13251             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13252             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13253             ;;
13254           pgCC* | pgcpp*)
13255             # Portland Group C++ compiler
13256             case `$CC -V` in
13257             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13258               prelink_cmds_CXX='tpldir=Template.dir~
13259                 rm -rf $tpldir~
13260                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13261                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13262               old_archive_cmds_CXX='tpldir=Template.dir~
13263                 rm -rf $tpldir~
13264                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13265                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13266                 $RANLIB $oldlib'
13267               archive_cmds_CXX='tpldir=Template.dir~
13268                 rm -rf $tpldir~
13269                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13270                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13271               archive_expsym_cmds_CXX='tpldir=Template.dir~
13272                 rm -rf $tpldir~
13273                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13274                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13275               ;;
13276             *) # Version 6 and above use weak symbols
13277               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13278               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13279               ;;
13280             esac
13281
13282             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13283             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13284             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13285             ;;
13286           cxx*)
13287             # Compaq C++
13288             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13289             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13290
13291             runpath_var=LD_RUN_PATH
13292             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13293             hardcode_libdir_separator_CXX=:
13294
13295             # Commands to make compiler produce verbose output that lists
13296             # what "hidden" libraries, object files and flags are used when
13297             # linking a shared library.
13298             #
13299             # There doesn't appear to be a way to prevent this compiler from
13300             # explicitly linking system object files so we need to strip them
13301             # from the output so that they don't get included in the library
13302             # dependencies.
13303             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13304             ;;
13305           xl* | mpixl* | bgxl*)
13306             # IBM XL 8.0 on PPC, with GNU ld
13307             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13308             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13309             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13310             if test "x$supports_anon_versioning" = xyes; then
13311               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13312                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13313                 echo "local: *; };" >> $output_objdir/$libname.ver~
13314                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13315             fi
13316             ;;
13317           *)
13318             case `$CC -V 2>&1 | sed 5q` in
13319             *Sun\ C*)
13320               # Sun C++ 5.9
13321               no_undefined_flag_CXX=' -zdefs'
13322               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13323               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13324               hardcode_libdir_flag_spec_CXX='-R$libdir'
13325               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13326               compiler_needs_object_CXX=yes
13327
13328               # Not sure whether something based on
13329               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13330               # would be better.
13331               output_verbose_link_cmd='func_echo_all'
13332
13333               # Archives containing C++ object files must be created using
13334               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13335               # necessary to make sure instantiated templates are included
13336               # in the archive.
13337               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13338               ;;
13339             esac
13340             ;;
13341         esac
13342         ;;
13343
13344       lynxos*)
13345         # FIXME: insert proper C++ library support
13346         ld_shlibs_CXX=no
13347         ;;
13348
13349       m88k*)
13350         # FIXME: insert proper C++ library support
13351         ld_shlibs_CXX=no
13352         ;;
13353
13354       mvs*)
13355         case $cc_basename in
13356           cxx*)
13357             # FIXME: insert proper C++ library support
13358             ld_shlibs_CXX=no
13359             ;;
13360           *)
13361             # FIXME: insert proper C++ library support
13362             ld_shlibs_CXX=no
13363             ;;
13364         esac
13365         ;;
13366
13367       netbsd*)
13368         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13369           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13370           wlarc=
13371           hardcode_libdir_flag_spec_CXX='-R$libdir'
13372           hardcode_direct_CXX=yes
13373           hardcode_shlibpath_var_CXX=no
13374         fi
13375         # Workaround some broken pre-1.5 toolchains
13376         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13377         ;;
13378
13379       *nto* | *qnx*)
13380         ld_shlibs_CXX=yes
13381         ;;
13382
13383       openbsd2*)
13384         # C++ shared libraries are fairly broken
13385         ld_shlibs_CXX=no
13386         ;;
13387
13388       openbsd*)
13389         if test -f /usr/libexec/ld.so; then
13390           hardcode_direct_CXX=yes
13391           hardcode_shlibpath_var_CXX=no
13392           hardcode_direct_absolute_CXX=yes
13393           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13394           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13395           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13396             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13397             export_dynamic_flag_spec_CXX='${wl}-E'
13398             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13399           fi
13400           output_verbose_link_cmd=func_echo_all
13401         else
13402           ld_shlibs_CXX=no
13403         fi
13404         ;;
13405
13406       osf3* | osf4* | osf5*)
13407         case $cc_basename in
13408           KCC*)
13409             # Kuck and Associates, Inc. (KAI) C++ Compiler
13410
13411             # KCC will only create a shared library if the output file
13412             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13413             # to its proper name (with version) after linking.
13414             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13415
13416             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13417             hardcode_libdir_separator_CXX=:
13418
13419             # Archives containing C++ object files must be created using
13420             # the KAI C++ compiler.
13421             case $host in
13422               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13423               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13424             esac
13425             ;;
13426           RCC*)
13427             # Rational C++ 2.4.1
13428             # FIXME: insert proper C++ library support
13429             ld_shlibs_CXX=no
13430             ;;
13431           cxx*)
13432             case $host in
13433               osf3*)
13434                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13435                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13436                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13437                 ;;
13438               *)
13439                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13440                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13441                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13442                   echo "-hidden">> $lib.exp~
13443                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13444                   $RM $lib.exp'
13445                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13446                 ;;
13447             esac
13448
13449             hardcode_libdir_separator_CXX=:
13450
13451             # Commands to make compiler produce verbose output that lists
13452             # what "hidden" libraries, object files and flags are used when
13453             # linking a shared library.
13454             #
13455             # There doesn't appear to be a way to prevent this compiler from
13456             # explicitly linking system object files so we need to strip them
13457             # from the output so that they don't get included in the library
13458             # dependencies.
13459             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13460             ;;
13461           *)
13462             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13463               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13464               case $host in
13465                 osf3*)
13466                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13467                   ;;
13468                 *)
13469                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13470                   ;;
13471               esac
13472
13473               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13474               hardcode_libdir_separator_CXX=:
13475
13476               # Commands to make compiler produce verbose output that lists
13477               # what "hidden" libraries, object files and flags are used when
13478               # linking a shared library.
13479               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13480
13481             else
13482               # FIXME: insert proper C++ library support
13483               ld_shlibs_CXX=no
13484             fi
13485             ;;
13486         esac
13487         ;;
13488
13489       psos*)
13490         # FIXME: insert proper C++ library support
13491         ld_shlibs_CXX=no
13492         ;;
13493
13494       sunos4*)
13495         case $cc_basename in
13496           CC*)
13497             # Sun C++ 4.x
13498             # FIXME: insert proper C++ library support
13499             ld_shlibs_CXX=no
13500             ;;
13501           lcc*)
13502             # Lucid
13503             # FIXME: insert proper C++ library support
13504             ld_shlibs_CXX=no
13505             ;;
13506           *)
13507             # FIXME: insert proper C++ library support
13508             ld_shlibs_CXX=no
13509             ;;
13510         esac
13511         ;;
13512
13513       solaris*)
13514         case $cc_basename in
13515           CC* | sunCC*)
13516             # Sun C++ 4.2, 5.x and Centerline C++
13517             archive_cmds_need_lc_CXX=yes
13518             no_undefined_flag_CXX=' -zdefs'
13519             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13520             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13521               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13522
13523             hardcode_libdir_flag_spec_CXX='-R$libdir'
13524             hardcode_shlibpath_var_CXX=no
13525             case $host_os in
13526               solaris2.[0-5] | solaris2.[0-5].*) ;;
13527               *)
13528                 # The compiler driver will combine and reorder linker options,
13529                 # but understands `-z linker_flag'.
13530                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13531                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13532                 ;;
13533             esac
13534             link_all_deplibs_CXX=yes
13535
13536             output_verbose_link_cmd='func_echo_all'
13537
13538             # Archives containing C++ object files must be created using
13539             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13540             # necessary to make sure instantiated templates are included
13541             # in the archive.
13542             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13543             ;;
13544           gcx*)
13545             # Green Hills C++ Compiler
13546             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13547
13548             # The C++ compiler must be used to create the archive.
13549             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13550             ;;
13551           *)
13552             # GNU C++ compiler with Solaris linker
13553             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13554               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13555               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13556                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13557                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13558                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13559
13560                 # Commands to make compiler produce verbose output that lists
13561                 # what "hidden" libraries, object files and flags are used when
13562                 # linking a shared library.
13563                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13564               else
13565                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13566                 # platform.
13567                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13568                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13569                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13570
13571                 # Commands to make compiler produce verbose output that lists
13572                 # what "hidden" libraries, object files and flags are used when
13573                 # linking a shared library.
13574                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13575               fi
13576
13577               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13578               case $host_os in
13579                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13580                 *)
13581                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13582                   ;;
13583               esac
13584             fi
13585             ;;
13586         esac
13587         ;;
13588
13589     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13590       no_undefined_flag_CXX='${wl}-z,text'
13591       archive_cmds_need_lc_CXX=no
13592       hardcode_shlibpath_var_CXX=no
13593       runpath_var='LD_RUN_PATH'
13594
13595       case $cc_basename in
13596         CC*)
13597           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13598           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13599           ;;
13600         *)
13601           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13602           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13603           ;;
13604       esac
13605       ;;
13606
13607       sysv5* | sco3.2v5* | sco5v6*)
13608         # Note: We can NOT use -z defs as we might desire, because we do not
13609         # link with -lc, and that would cause any symbols used from libc to
13610         # always be unresolved, which means just about no library would
13611         # ever link correctly.  If we're not using GNU ld we use -z text
13612         # though, which does catch some bad symbols but isn't as heavy-handed
13613         # as -z defs.
13614         no_undefined_flag_CXX='${wl}-z,text'
13615         allow_undefined_flag_CXX='${wl}-z,nodefs'
13616         archive_cmds_need_lc_CXX=no
13617         hardcode_shlibpath_var_CXX=no
13618         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13619         hardcode_libdir_separator_CXX=':'
13620         link_all_deplibs_CXX=yes
13621         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13622         runpath_var='LD_RUN_PATH'
13623
13624         case $cc_basename in
13625           CC*)
13626             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13627             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13628             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13629               '"$old_archive_cmds_CXX"
13630             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13631               '"$reload_cmds_CXX"
13632             ;;
13633           *)
13634             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13635             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13636             ;;
13637         esac
13638       ;;
13639
13640       tandem*)
13641         case $cc_basename in
13642           NCC*)
13643             # NonStop-UX NCC 3.20
13644             # FIXME: insert proper C++ library support
13645             ld_shlibs_CXX=no
13646             ;;
13647           *)
13648             # FIXME: insert proper C++ library support
13649             ld_shlibs_CXX=no
13650             ;;
13651         esac
13652         ;;
13653
13654       vxworks*)
13655         # FIXME: insert proper C++ library support
13656         ld_shlibs_CXX=no
13657         ;;
13658
13659       *)
13660         # FIXME: insert proper C++ library support
13661         ld_shlibs_CXX=no
13662         ;;
13663     esac
13664
13665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13666 $as_echo "$ld_shlibs_CXX" >&6; }
13667     test "$ld_shlibs_CXX" = no && can_build_shared=no
13668
13669     GCC_CXX="$GXX"
13670     LD_CXX="$LD"
13671
13672     ## CAVEAT EMPTOR:
13673     ## There is no encapsulation within the following macros, do not change
13674     ## the running order or otherwise move them around unless you know exactly
13675     ## what you are doing...
13676     # Dependencies to place before and after the object being linked:
13677 predep_objects_CXX=
13678 postdep_objects_CXX=
13679 predeps_CXX=
13680 postdeps_CXX=
13681 compiler_lib_search_path_CXX=
13682
13683 cat > conftest.$ac_ext <<_LT_EOF
13684 class Foo
13685 {
13686 public:
13687   Foo (void) { a = 0; }
13688 private:
13689   int a;
13690 };
13691 _LT_EOF
13692
13693
13694 _lt_libdeps_save_CFLAGS=$CFLAGS
13695 case "$CC $CFLAGS " in #(
13696 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13697 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13698 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13699 esac
13700
13701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13702   (eval $ac_compile) 2>&5
13703   ac_status=$?
13704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13705   test $ac_status = 0; }; then
13706   # Parse the compiler output and extract the necessary
13707   # objects, libraries and library flags.
13708
13709   # Sentinel used to keep track of whether or not we are before
13710   # the conftest object file.
13711   pre_test_object_deps_done=no
13712
13713   for p in `eval "$output_verbose_link_cmd"`; do
13714     case ${prev}${p} in
13715
13716     -L* | -R* | -l*)
13717        # Some compilers place space between "-{L,R}" and the path.
13718        # Remove the space.
13719        if test $p = "-L" ||
13720           test $p = "-R"; then
13721          prev=$p
13722          continue
13723        fi
13724
13725        # Expand the sysroot to ease extracting the directories later.
13726        if test -z "$prev"; then
13727          case $p in
13728          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13729          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13730          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13731          esac
13732        fi
13733        case $p in
13734        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13735        esac
13736        if test "$pre_test_object_deps_done" = no; then
13737          case ${prev} in
13738          -L | -R)
13739            # Internal compiler library paths should come after those
13740            # provided the user.  The postdeps already come after the
13741            # user supplied libs so there is no need to process them.
13742            if test -z "$compiler_lib_search_path_CXX"; then
13743              compiler_lib_search_path_CXX="${prev}${p}"
13744            else
13745              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13746            fi
13747            ;;
13748          # The "-l" case would never come before the object being
13749          # linked, so don't bother handling this case.
13750          esac
13751        else
13752          if test -z "$postdeps_CXX"; then
13753            postdeps_CXX="${prev}${p}"
13754          else
13755            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13756          fi
13757        fi
13758        prev=
13759        ;;
13760
13761     *.lto.$objext) ;; # Ignore GCC LTO objects
13762     *.$objext)
13763        # This assumes that the test object file only shows up
13764        # once in the compiler output.
13765        if test "$p" = "conftest.$objext"; then
13766          pre_test_object_deps_done=yes
13767          continue
13768        fi
13769
13770        if test "$pre_test_object_deps_done" = no; then
13771          if test -z "$predep_objects_CXX"; then
13772            predep_objects_CXX="$p"
13773          else
13774            predep_objects_CXX="$predep_objects_CXX $p"
13775          fi
13776        else
13777          if test -z "$postdep_objects_CXX"; then
13778            postdep_objects_CXX="$p"
13779          else
13780            postdep_objects_CXX="$postdep_objects_CXX $p"
13781          fi
13782        fi
13783        ;;
13784
13785     *) ;; # Ignore the rest.
13786
13787     esac
13788   done
13789
13790   # Clean up.
13791   rm -f a.out a.exe
13792 else
13793   echo "libtool.m4: error: problem compiling CXX test program"
13794 fi
13795
13796 $RM -f confest.$objext
13797 CFLAGS=$_lt_libdeps_save_CFLAGS
13798
13799 # PORTME: override above test on systems where it is broken
13800 case $host_os in
13801 interix[3-9]*)
13802   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13803   # hack all around it, let's just trust "g++" to DTRT.
13804   predep_objects_CXX=
13805   postdep_objects_CXX=
13806   postdeps_CXX=
13807   ;;
13808
13809 linux*)
13810   case `$CC -V 2>&1 | sed 5q` in
13811   *Sun\ C*)
13812     # Sun C++ 5.9
13813
13814     # The more standards-conforming stlport4 library is
13815     # incompatible with the Cstd library. Avoid specifying
13816     # it if it's in CXXFLAGS. Ignore libCrun as
13817     # -library=stlport4 depends on it.
13818     case " $CXX $CXXFLAGS " in
13819     *" -library=stlport4 "*)
13820       solaris_use_stlport4=yes
13821       ;;
13822     esac
13823
13824     if test "$solaris_use_stlport4" != yes; then
13825       postdeps_CXX='-library=Cstd -library=Crun'
13826     fi
13827     ;;
13828   esac
13829   ;;
13830
13831 solaris*)
13832   case $cc_basename in
13833   CC* | sunCC*)
13834     # The more standards-conforming stlport4 library is
13835     # incompatible with the Cstd library. Avoid specifying
13836     # it if it's in CXXFLAGS. Ignore libCrun as
13837     # -library=stlport4 depends on it.
13838     case " $CXX $CXXFLAGS " in
13839     *" -library=stlport4 "*)
13840       solaris_use_stlport4=yes
13841       ;;
13842     esac
13843
13844     # Adding this requires a known-good setup of shared libraries for
13845     # Sun compiler versions before 5.6, else PIC objects from an old
13846     # archive will be linked into the output, leading to subtle bugs.
13847     if test "$solaris_use_stlport4" != yes; then
13848       postdeps_CXX='-library=Cstd -library=Crun'
13849     fi
13850     ;;
13851   esac
13852   ;;
13853 esac
13854
13855
13856 case " $postdeps_CXX " in
13857 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13858 esac
13859  compiler_lib_search_dirs_CXX=
13860 if test -n "${compiler_lib_search_path_CXX}"; then
13861  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13862 fi
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894     lt_prog_compiler_wl_CXX=
13895 lt_prog_compiler_pic_CXX=
13896 lt_prog_compiler_static_CXX=
13897
13898
13899   # C++ specific cases for pic, static, wl, etc.
13900   if test "$GXX" = yes; then
13901     lt_prog_compiler_wl_CXX='-Wl,'
13902     lt_prog_compiler_static_CXX='-static'
13903
13904     case $host_os in
13905     aix*)
13906       # All AIX code is PIC.
13907       if test "$host_cpu" = ia64; then
13908         # AIX 5 now supports IA64 processor
13909         lt_prog_compiler_static_CXX='-Bstatic'
13910       fi
13911       ;;
13912
13913     amigaos*)
13914       case $host_cpu in
13915       powerpc)
13916             # see comment about AmigaOS4 .so support
13917             lt_prog_compiler_pic_CXX='-fPIC'
13918         ;;
13919       m68k)
13920             # FIXME: we need at least 68020 code to build shared libraries, but
13921             # adding the `-m68020' flag to GCC prevents building anything better,
13922             # like `-m68040'.
13923             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13924         ;;
13925       esac
13926       ;;
13927
13928     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13929       # PIC is the default for these OSes.
13930       ;;
13931     mingw* | cygwin* | os2* | pw32* | cegcc*)
13932       # This hack is so that the source file can tell whether it is being
13933       # built for inclusion in a dll (and should export symbols for example).
13934       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13935       # (--disable-auto-import) libraries
13936       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13937       ;;
13938     darwin* | rhapsody*)
13939       # PIC is the default on this platform
13940       # Common symbols not allowed in MH_DYLIB files
13941       lt_prog_compiler_pic_CXX='-fno-common'
13942       ;;
13943     *djgpp*)
13944       # DJGPP does not support shared libraries at all
13945       lt_prog_compiler_pic_CXX=
13946       ;;
13947     haiku*)
13948       # PIC is the default for Haiku.
13949       # The "-static" flag exists, but is broken.
13950       lt_prog_compiler_static_CXX=
13951       ;;
13952     interix[3-9]*)
13953       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13954       # Instead, we relocate shared libraries at runtime.
13955       ;;
13956     sysv4*MP*)
13957       if test -d /usr/nec; then
13958         lt_prog_compiler_pic_CXX=-Kconform_pic
13959       fi
13960       ;;
13961     hpux*)
13962       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13963       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13964       # sets the default TLS model and affects inlining.
13965       case $host_cpu in
13966       hppa*64*)
13967         ;;
13968       *)
13969         lt_prog_compiler_pic_CXX='-fPIC'
13970         ;;
13971       esac
13972       ;;
13973     *qnx* | *nto*)
13974       # QNX uses GNU C++, but need to define -shared option too, otherwise
13975       # it will coredump.
13976       lt_prog_compiler_pic_CXX='-fPIC -shared'
13977       ;;
13978     *)
13979       lt_prog_compiler_pic_CXX='-fPIC'
13980       ;;
13981     esac
13982   else
13983     case $host_os in
13984       aix[4-9]*)
13985         # All AIX code is PIC.
13986         if test "$host_cpu" = ia64; then
13987           # AIX 5 now supports IA64 processor
13988           lt_prog_compiler_static_CXX='-Bstatic'
13989         else
13990           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13991         fi
13992         ;;
13993       chorus*)
13994         case $cc_basename in
13995         cxch68*)
13996           # Green Hills C++ Compiler
13997           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13998           ;;
13999         esac
14000         ;;
14001       mingw* | cygwin* | os2* | pw32* | cegcc*)
14002         # This hack is so that the source file can tell whether it is being
14003         # built for inclusion in a dll (and should export symbols for example).
14004         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14005         ;;
14006       dgux*)
14007         case $cc_basename in
14008           ec++*)
14009             lt_prog_compiler_pic_CXX='-KPIC'
14010             ;;
14011           ghcx*)
14012             # Green Hills C++ Compiler
14013             lt_prog_compiler_pic_CXX='-pic'
14014             ;;
14015           *)
14016             ;;
14017         esac
14018         ;;
14019       freebsd* | dragonfly*)
14020         # FreeBSD uses GNU C++
14021         ;;
14022       hpux9* | hpux10* | hpux11*)
14023         case $cc_basename in
14024           CC*)
14025             lt_prog_compiler_wl_CXX='-Wl,'
14026             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14027             if test "$host_cpu" != ia64; then
14028               lt_prog_compiler_pic_CXX='+Z'
14029             fi
14030             ;;
14031           aCC*)
14032             lt_prog_compiler_wl_CXX='-Wl,'
14033             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14034             case $host_cpu in
14035             hppa*64*|ia64*)
14036               # +Z the default
14037               ;;
14038             *)
14039               lt_prog_compiler_pic_CXX='+Z'
14040               ;;
14041             esac
14042             ;;
14043           *)
14044             ;;
14045         esac
14046         ;;
14047       interix*)
14048         # This is c89, which is MS Visual C++ (no shared libs)
14049         # Anyone wants to do a port?
14050         ;;
14051       irix5* | irix6* | nonstopux*)
14052         case $cc_basename in
14053           CC*)
14054             lt_prog_compiler_wl_CXX='-Wl,'
14055             lt_prog_compiler_static_CXX='-non_shared'
14056             # CC pic flag -KPIC is the default.
14057             ;;
14058           *)
14059             ;;
14060         esac
14061         ;;
14062       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14063         case $cc_basename in
14064           KCC*)
14065             # KAI C++ Compiler
14066             lt_prog_compiler_wl_CXX='--backend -Wl,'
14067             lt_prog_compiler_pic_CXX='-fPIC'
14068             ;;
14069           ecpc* )
14070             # old Intel C++ for x86_64 which still supported -KPIC.
14071             lt_prog_compiler_wl_CXX='-Wl,'
14072             lt_prog_compiler_pic_CXX='-KPIC'
14073             lt_prog_compiler_static_CXX='-static'
14074             ;;
14075           icpc* )
14076             # Intel C++, used to be incompatible with GCC.
14077             # ICC 10 doesn't accept -KPIC any more.
14078             lt_prog_compiler_wl_CXX='-Wl,'
14079             lt_prog_compiler_pic_CXX='-fPIC'
14080             lt_prog_compiler_static_CXX='-static'
14081             ;;
14082           pgCC* | pgcpp*)
14083             # Portland Group C++ compiler
14084             lt_prog_compiler_wl_CXX='-Wl,'
14085             lt_prog_compiler_pic_CXX='-fpic'
14086             lt_prog_compiler_static_CXX='-Bstatic'
14087             ;;
14088           cxx*)
14089             # Compaq C++
14090             # Make sure the PIC flag is empty.  It appears that all Alpha
14091             # Linux and Compaq Tru64 Unix objects are PIC.
14092             lt_prog_compiler_pic_CXX=
14093             lt_prog_compiler_static_CXX='-non_shared'
14094             ;;
14095           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14096             # IBM XL 8.0, 9.0 on PPC and BlueGene
14097             lt_prog_compiler_wl_CXX='-Wl,'
14098             lt_prog_compiler_pic_CXX='-qpic'
14099             lt_prog_compiler_static_CXX='-qstaticlink'
14100             ;;
14101           *)
14102             case `$CC -V 2>&1 | sed 5q` in
14103             *Sun\ C*)
14104               # Sun C++ 5.9
14105               lt_prog_compiler_pic_CXX='-KPIC'
14106               lt_prog_compiler_static_CXX='-Bstatic'
14107               lt_prog_compiler_wl_CXX='-Qoption ld '
14108               ;;
14109             esac
14110             ;;
14111         esac
14112         ;;
14113       lynxos*)
14114         ;;
14115       m88k*)
14116         ;;
14117       mvs*)
14118         case $cc_basename in
14119           cxx*)
14120             lt_prog_compiler_pic_CXX='-W c,exportall'
14121             ;;
14122           *)
14123             ;;
14124         esac
14125         ;;
14126       netbsd*)
14127         ;;
14128       *qnx* | *nto*)
14129         # QNX uses GNU C++, but need to define -shared option too, otherwise
14130         # it will coredump.
14131         lt_prog_compiler_pic_CXX='-fPIC -shared'
14132         ;;
14133       osf3* | osf4* | osf5*)
14134         case $cc_basename in
14135           KCC*)
14136             lt_prog_compiler_wl_CXX='--backend -Wl,'
14137             ;;
14138           RCC*)
14139             # Rational C++ 2.4.1
14140             lt_prog_compiler_pic_CXX='-pic'
14141             ;;
14142           cxx*)
14143             # Digital/Compaq C++
14144             lt_prog_compiler_wl_CXX='-Wl,'
14145             # Make sure the PIC flag is empty.  It appears that all Alpha
14146             # Linux and Compaq Tru64 Unix objects are PIC.
14147             lt_prog_compiler_pic_CXX=
14148             lt_prog_compiler_static_CXX='-non_shared'
14149             ;;
14150           *)
14151             ;;
14152         esac
14153         ;;
14154       psos*)
14155         ;;
14156       solaris*)
14157         case $cc_basename in
14158           CC* | sunCC*)
14159             # Sun C++ 4.2, 5.x and Centerline C++
14160             lt_prog_compiler_pic_CXX='-KPIC'
14161             lt_prog_compiler_static_CXX='-Bstatic'
14162             lt_prog_compiler_wl_CXX='-Qoption ld '
14163             ;;
14164           gcx*)
14165             # Green Hills C++ Compiler
14166             lt_prog_compiler_pic_CXX='-PIC'
14167             ;;
14168           *)
14169             ;;
14170         esac
14171         ;;
14172       sunos4*)
14173         case $cc_basename in
14174           CC*)
14175             # Sun C++ 4.x
14176             lt_prog_compiler_pic_CXX='-pic'
14177             lt_prog_compiler_static_CXX='-Bstatic'
14178             ;;
14179           lcc*)
14180             # Lucid
14181             lt_prog_compiler_pic_CXX='-pic'
14182             ;;
14183           *)
14184             ;;
14185         esac
14186         ;;
14187       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14188         case $cc_basename in
14189           CC*)
14190             lt_prog_compiler_wl_CXX='-Wl,'
14191             lt_prog_compiler_pic_CXX='-KPIC'
14192             lt_prog_compiler_static_CXX='-Bstatic'
14193             ;;
14194         esac
14195         ;;
14196       tandem*)
14197         case $cc_basename in
14198           NCC*)
14199             # NonStop-UX NCC 3.20
14200             lt_prog_compiler_pic_CXX='-KPIC'
14201             ;;
14202           *)
14203             ;;
14204         esac
14205         ;;
14206       vxworks*)
14207         ;;
14208       *)
14209         lt_prog_compiler_can_build_shared_CXX=no
14210         ;;
14211     esac
14212   fi
14213
14214 case $host_os in
14215   # For platforms which do not support PIC, -DPIC is meaningless:
14216   *djgpp*)
14217     lt_prog_compiler_pic_CXX=
14218     ;;
14219   *)
14220     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14221     ;;
14222 esac
14223
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14225 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14226 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14227   $as_echo_n "(cached) " >&6
14228 else
14229   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14230 fi
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14232 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14233 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14234
14235 #
14236 # Check to make sure the PIC flag actually works.
14237 #
14238 if test -n "$lt_prog_compiler_pic_CXX"; then
14239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14240 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14241 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14242   $as_echo_n "(cached) " >&6
14243 else
14244   lt_cv_prog_compiler_pic_works_CXX=no
14245    ac_outfile=conftest.$ac_objext
14246    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14247    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14248    # Insert the option either (1) after the last *FLAGS variable, or
14249    # (2) before a word containing "conftest.", or (3) at the end.
14250    # Note that $ac_compile itself does not contain backslashes and begins
14251    # with a dollar sign (not a hyphen), so the echo should work correctly.
14252    # The option is referenced via a variable to avoid confusing sed.
14253    lt_compile=`echo "$ac_compile" | $SED \
14254    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14256    -e 's:$: $lt_compiler_flag:'`
14257    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14258    (eval "$lt_compile" 2>conftest.err)
14259    ac_status=$?
14260    cat conftest.err >&5
14261    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262    if (exit $ac_status) && test -s "$ac_outfile"; then
14263      # The compiler can only warn and ignore the option if not recognized
14264      # So say no if there are warnings other than the usual output.
14265      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14266      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14267      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14268        lt_cv_prog_compiler_pic_works_CXX=yes
14269      fi
14270    fi
14271    $RM conftest*
14272
14273 fi
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14275 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14276
14277 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14278     case $lt_prog_compiler_pic_CXX in
14279      "" | " "*) ;;
14280      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14281      esac
14282 else
14283     lt_prog_compiler_pic_CXX=
14284      lt_prog_compiler_can_build_shared_CXX=no
14285 fi
14286
14287 fi
14288
14289
14290
14291
14292
14293 #
14294 # Check to make sure the static flag actually works.
14295 #
14296 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14298 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14299 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14300   $as_echo_n "(cached) " >&6
14301 else
14302   lt_cv_prog_compiler_static_works_CXX=no
14303    save_LDFLAGS="$LDFLAGS"
14304    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14305    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14306    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14307      # The linker can only warn and ignore the option if not recognized
14308      # So say no if there are warnings
14309      if test -s conftest.err; then
14310        # Append any errors to the config.log.
14311        cat conftest.err 1>&5
14312        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14313        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14314        if diff conftest.exp conftest.er2 >/dev/null; then
14315          lt_cv_prog_compiler_static_works_CXX=yes
14316        fi
14317      else
14318        lt_cv_prog_compiler_static_works_CXX=yes
14319      fi
14320    fi
14321    $RM -r conftest*
14322    LDFLAGS="$save_LDFLAGS"
14323
14324 fi
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14326 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14327
14328 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14329     :
14330 else
14331     lt_prog_compiler_static_CXX=
14332 fi
14333
14334
14335
14336
14337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14339 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14340   $as_echo_n "(cached) " >&6
14341 else
14342   lt_cv_prog_compiler_c_o_CXX=no
14343    $RM -r conftest 2>/dev/null
14344    mkdir conftest
14345    cd conftest
14346    mkdir out
14347    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14348
14349    lt_compiler_flag="-o out/conftest2.$ac_objext"
14350    # Insert the option either (1) after the last *FLAGS variable, or
14351    # (2) before a word containing "conftest.", or (3) at the end.
14352    # Note that $ac_compile itself does not contain backslashes and begins
14353    # with a dollar sign (not a hyphen), so the echo should work correctly.
14354    lt_compile=`echo "$ac_compile" | $SED \
14355    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14356    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14357    -e 's:$: $lt_compiler_flag:'`
14358    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14359    (eval "$lt_compile" 2>out/conftest.err)
14360    ac_status=$?
14361    cat out/conftest.err >&5
14362    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14364    then
14365      # The compiler can only warn and ignore the option if not recognized
14366      # So say no if there are warnings
14367      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14368      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14369      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14370        lt_cv_prog_compiler_c_o_CXX=yes
14371      fi
14372    fi
14373    chmod u+w . 2>&5
14374    $RM conftest*
14375    # SGI C++ compiler will create directory out/ii_files/ for
14376    # template instantiation
14377    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14378    $RM out/* && rmdir out
14379    cd ..
14380    $RM -r conftest
14381    $RM conftest*
14382
14383 fi
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14385 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14386
14387
14388
14389     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14390 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14391 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14392   $as_echo_n "(cached) " >&6
14393 else
14394   lt_cv_prog_compiler_c_o_CXX=no
14395    $RM -r conftest 2>/dev/null
14396    mkdir conftest
14397    cd conftest
14398    mkdir out
14399    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14400
14401    lt_compiler_flag="-o out/conftest2.$ac_objext"
14402    # Insert the option either (1) after the last *FLAGS variable, or
14403    # (2) before a word containing "conftest.", or (3) at the end.
14404    # Note that $ac_compile itself does not contain backslashes and begins
14405    # with a dollar sign (not a hyphen), so the echo should work correctly.
14406    lt_compile=`echo "$ac_compile" | $SED \
14407    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14408    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14409    -e 's:$: $lt_compiler_flag:'`
14410    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14411    (eval "$lt_compile" 2>out/conftest.err)
14412    ac_status=$?
14413    cat out/conftest.err >&5
14414    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14416    then
14417      # The compiler can only warn and ignore the option if not recognized
14418      # So say no if there are warnings
14419      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14420      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14421      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14422        lt_cv_prog_compiler_c_o_CXX=yes
14423      fi
14424    fi
14425    chmod u+w . 2>&5
14426    $RM conftest*
14427    # SGI C++ compiler will create directory out/ii_files/ for
14428    # template instantiation
14429    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14430    $RM out/* && rmdir out
14431    cd ..
14432    $RM -r conftest
14433    $RM conftest*
14434
14435 fi
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14437 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14438
14439
14440
14441
14442 hard_links="nottested"
14443 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14444   # do not overwrite the value of need_locks provided by the user
14445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14446 $as_echo_n "checking if we can lock with hard links... " >&6; }
14447   hard_links=yes
14448   $RM conftest*
14449   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14450   touch conftest.a
14451   ln conftest.a conftest.b 2>&5 || hard_links=no
14452   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14454 $as_echo "$hard_links" >&6; }
14455   if test "$hard_links" = no; then
14456     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14457 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14458     need_locks=warn
14459   fi
14460 else
14461   need_locks=no
14462 fi
14463
14464
14465
14466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14467 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14468
14469   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14470   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14471   case $host_os in
14472   aix[4-9]*)
14473     # If we're using GNU nm, then we don't want the "-C" option.
14474     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14475     # Also, AIX nm treats weak defined symbols like other global defined
14476     # symbols, whereas GNU nm marks them as "W".
14477     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14478       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14479     else
14480       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14481     fi
14482     ;;
14483   pw32*)
14484     export_symbols_cmds_CXX="$ltdll_cmds"
14485     ;;
14486   cygwin* | mingw* | cegcc*)
14487     case $cc_basename in
14488     cl*)
14489       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14490       ;;
14491     *)
14492       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14493       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14494       ;;
14495     esac
14496     ;;
14497   *)
14498     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14499     ;;
14500   esac
14501
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14503 $as_echo "$ld_shlibs_CXX" >&6; }
14504 test "$ld_shlibs_CXX" = no && can_build_shared=no
14505
14506 with_gnu_ld_CXX=$with_gnu_ld
14507
14508
14509
14510
14511
14512
14513 #
14514 # Do we need to explicitly link libc?
14515 #
14516 case "x$archive_cmds_need_lc_CXX" in
14517 x|xyes)
14518   # Assume -lc should be added
14519   archive_cmds_need_lc_CXX=yes
14520
14521   if test "$enable_shared" = yes && test "$GCC" = yes; then
14522     case $archive_cmds_CXX in
14523     *'~'*)
14524       # FIXME: we may have to deal with multi-command sequences.
14525       ;;
14526     '$CC '*)
14527       # Test whether the compiler implicitly links with -lc since on some
14528       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14529       # to ld, don't add -lc before -lgcc.
14530       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14531 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14532 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14533   $as_echo_n "(cached) " >&6
14534 else
14535   $RM conftest*
14536         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14537
14538         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14539   (eval $ac_compile) 2>&5
14540   ac_status=$?
14541   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14542   test $ac_status = 0; } 2>conftest.err; then
14543           soname=conftest
14544           lib=conftest
14545           libobjs=conftest.$ac_objext
14546           deplibs=
14547           wl=$lt_prog_compiler_wl_CXX
14548           pic_flag=$lt_prog_compiler_pic_CXX
14549           compiler_flags=-v
14550           linker_flags=-v
14551           verstring=
14552           output_objdir=.
14553           libname=conftest
14554           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14555           allow_undefined_flag_CXX=
14556           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14557   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14558   ac_status=$?
14559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14560   test $ac_status = 0; }
14561           then
14562             lt_cv_archive_cmds_need_lc_CXX=no
14563           else
14564             lt_cv_archive_cmds_need_lc_CXX=yes
14565           fi
14566           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14567         else
14568           cat conftest.err 1>&5
14569         fi
14570         $RM conftest*
14571
14572 fi
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14574 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14575       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14576       ;;
14577     esac
14578   fi
14579   ;;
14580 esac
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14644 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14645
14646 library_names_spec=
14647 libname_spec='lib$name'
14648 soname_spec=
14649 shrext_cmds=".so"
14650 postinstall_cmds=
14651 postuninstall_cmds=
14652 finish_cmds=
14653 finish_eval=
14654 shlibpath_var=
14655 shlibpath_overrides_runpath=unknown
14656 version_type=none
14657 dynamic_linker="$host_os ld.so"
14658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14659 need_lib_prefix=unknown
14660 hardcode_into_libs=no
14661
14662 # when you set need_version to no, make sure it does not cause -set_version
14663 # flags to be left without arguments
14664 need_version=unknown
14665
14666 case $host_os in
14667 aix3*)
14668   version_type=linux # correct to gnu/linux during the next big refactor
14669   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14670   shlibpath_var=LIBPATH
14671
14672   # AIX 3 has no versioning support, so we append a major version to the name.
14673   soname_spec='${libname}${release}${shared_ext}$major'
14674   ;;
14675
14676 aix[4-9]*)
14677   version_type=linux # correct to gnu/linux during the next big refactor
14678   need_lib_prefix=no
14679   need_version=no
14680   hardcode_into_libs=yes
14681   if test "$host_cpu" = ia64; then
14682     # AIX 5 supports IA64
14683     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14684     shlibpath_var=LD_LIBRARY_PATH
14685   else
14686     # With GCC up to 2.95.x, collect2 would create an import file
14687     # for dependence libraries.  The import file would start with
14688     # the line `#! .'.  This would cause the generated library to
14689     # depend on `.', always an invalid library.  This was fixed in
14690     # development snapshots of GCC prior to 3.0.
14691     case $host_os in
14692       aix4 | aix4.[01] | aix4.[01].*)
14693       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14694            echo ' yes '
14695            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14696         :
14697       else
14698         can_build_shared=no
14699       fi
14700       ;;
14701     esac
14702     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14703     # soname into executable. Probably we can add versioning support to
14704     # collect2, so additional links can be useful in future.
14705     if test "$aix_use_runtimelinking" = yes; then
14706       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14707       # instead of lib<name>.a to let people know that these are not
14708       # typical AIX shared libraries.
14709       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14710     else
14711       # We preserve .a as extension for shared libraries through AIX4.2
14712       # and later when we are not doing run time linking.
14713       library_names_spec='${libname}${release}.a $libname.a'
14714       soname_spec='${libname}${release}${shared_ext}$major'
14715     fi
14716     shlibpath_var=LIBPATH
14717   fi
14718   ;;
14719
14720 amigaos*)
14721   case $host_cpu in
14722   powerpc)
14723     # Since July 2007 AmigaOS4 officially supports .so libraries.
14724     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14725     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726     ;;
14727   m68k)
14728     library_names_spec='$libname.ixlibrary $libname.a'
14729     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14730     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14731     ;;
14732   esac
14733   ;;
14734
14735 beos*)
14736   library_names_spec='${libname}${shared_ext}'
14737   dynamic_linker="$host_os ld.so"
14738   shlibpath_var=LIBRARY_PATH
14739   ;;
14740
14741 bsdi[45]*)
14742   version_type=linux # correct to gnu/linux during the next big refactor
14743   need_version=no
14744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745   soname_spec='${libname}${release}${shared_ext}$major'
14746   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14747   shlibpath_var=LD_LIBRARY_PATH
14748   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14749   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14750   # the default ld.so.conf also contains /usr/contrib/lib and
14751   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14752   # libtool to hard-code these into programs
14753   ;;
14754
14755 cygwin* | mingw* | pw32* | cegcc*)
14756   version_type=windows
14757   shrext_cmds=".dll"
14758   need_version=no
14759   need_lib_prefix=no
14760
14761   case $GCC,$cc_basename in
14762   yes,*)
14763     # gcc
14764     library_names_spec='$libname.dll.a'
14765     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14766     postinstall_cmds='base_file=`basename \${file}`~
14767       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14768       dldir=$destdir/`dirname \$dlpath`~
14769       test -d \$dldir || mkdir -p \$dldir~
14770       $install_prog $dir/$dlname \$dldir/$dlname~
14771       chmod a+x \$dldir/$dlname~
14772       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14773         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14774       fi'
14775     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14776       dlpath=$dir/\$dldll~
14777        $RM \$dlpath'
14778     shlibpath_overrides_runpath=yes
14779
14780     case $host_os in
14781     cygwin*)
14782       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14783       #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
14784       soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
14785
14786       ;;
14787     mingw* | cegcc*)
14788       # MinGW DLLs use traditional 'lib' prefix
14789       #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
14790       soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
14791       ;;
14792     pw32*)
14793       # pw32 DLLs use 'pw' prefix rather than 'lib'
14794       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14795       ;;
14796     esac
14797     dynamic_linker='Win32 ld.exe'
14798     ;;
14799
14800   *,cl*)
14801     # Native MSVC
14802     libname_spec='$name'
14803     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14804     library_names_spec='${libname}.dll.lib'
14805
14806     case $build_os in
14807     mingw*)
14808       sys_lib_search_path_spec=
14809       lt_save_ifs=$IFS
14810       IFS=';'
14811       for lt_path in $LIB
14812       do
14813         IFS=$lt_save_ifs
14814         # Let DOS variable expansion print the short 8.3 style file name.
14815         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14816         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14817       done
14818       IFS=$lt_save_ifs
14819       # Convert to MSYS style.
14820       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14821       ;;
14822     cygwin*)
14823       # Convert to unix form, then to dos form, then back to unix form
14824       # but this time dos style (no spaces!) so that the unix form looks
14825       # like /cygdrive/c/PROGRA~1:/cygdr...
14826       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14827       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14828       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14829       ;;
14830     *)
14831       sys_lib_search_path_spec="$LIB"
14832       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14833         # It is most probably a Windows format PATH.
14834         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14835       else
14836         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14837       fi
14838       # FIXME: find the short name or the path components, as spaces are
14839       # common. (e.g. "Program Files" -> "PROGRA~1")
14840       ;;
14841     esac
14842
14843     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14844     postinstall_cmds='base_file=`basename \${file}`~
14845       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14846       dldir=$destdir/`dirname \$dlpath`~
14847       test -d \$dldir || mkdir -p \$dldir~
14848       $install_prog $dir/$dlname \$dldir/$dlname'
14849     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14850       dlpath=$dir/\$dldll~
14851        $RM \$dlpath'
14852     shlibpath_overrides_runpath=yes
14853     dynamic_linker='Win32 link.exe'
14854     ;;
14855
14856   *)
14857     # Assume MSVC wrapper
14858     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14859     dynamic_linker='Win32 ld.exe'
14860     ;;
14861   esac
14862   # FIXME: first we should search . and the directory the executable is in
14863   shlibpath_var=PATH
14864   ;;
14865
14866 darwin* | rhapsody*)
14867   dynamic_linker="$host_os dyld"
14868   version_type=darwin
14869   need_lib_prefix=no
14870   need_version=no
14871   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14872   soname_spec='${libname}${release}${major}$shared_ext'
14873   shlibpath_overrides_runpath=yes
14874   shlibpath_var=DYLD_LIBRARY_PATH
14875   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14876
14877   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14878   ;;
14879
14880 dgux*)
14881   version_type=linux # correct to gnu/linux during the next big refactor
14882   need_lib_prefix=no
14883   need_version=no
14884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14885   soname_spec='${libname}${release}${shared_ext}$major'
14886   shlibpath_var=LD_LIBRARY_PATH
14887   ;;
14888
14889 freebsd* | dragonfly*)
14890   # DragonFly does not have aout.  When/if they implement a new
14891   # versioning mechanism, adjust this.
14892   if test -x /usr/bin/objformat; then
14893     objformat=`/usr/bin/objformat`
14894   else
14895     case $host_os in
14896     freebsd[23].*) objformat=aout ;;
14897     *) objformat=elf ;;
14898     esac
14899   fi
14900   version_type=freebsd-$objformat
14901   case $version_type in
14902     freebsd-elf*)
14903       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14904       need_version=no
14905       need_lib_prefix=no
14906       ;;
14907     freebsd-*)
14908       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14909       need_version=yes
14910       ;;
14911   esac
14912   shlibpath_var=LD_LIBRARY_PATH
14913   case $host_os in
14914   freebsd2.*)
14915     shlibpath_overrides_runpath=yes
14916     ;;
14917   freebsd3.[01]* | freebsdelf3.[01]*)
14918     shlibpath_overrides_runpath=yes
14919     hardcode_into_libs=yes
14920     ;;
14921   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14922   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14923     shlibpath_overrides_runpath=no
14924     hardcode_into_libs=yes
14925     ;;
14926   *) # from 4.6 on, and DragonFly
14927     shlibpath_overrides_runpath=yes
14928     hardcode_into_libs=yes
14929     ;;
14930   esac
14931   ;;
14932
14933 gnu*)
14934   version_type=linux # correct to gnu/linux during the next big refactor
14935   need_lib_prefix=no
14936   need_version=no
14937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14938   soname_spec='${libname}${release}${shared_ext}$major'
14939   shlibpath_var=LD_LIBRARY_PATH
14940   shlibpath_overrides_runpath=no
14941   hardcode_into_libs=yes
14942   ;;
14943
14944 haiku*)
14945   version_type=linux # correct to gnu/linux during the next big refactor
14946   need_lib_prefix=no
14947   need_version=no
14948   dynamic_linker="$host_os runtime_loader"
14949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14950   soname_spec='${libname}${release}${shared_ext}$major'
14951   shlibpath_var=LIBRARY_PATH
14952   shlibpath_overrides_runpath=yes
14953   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14954   hardcode_into_libs=yes
14955   ;;
14956
14957 hpux9* | hpux10* | hpux11*)
14958   # Give a soname corresponding to the major version so that dld.sl refuses to
14959   # link against other versions.
14960   version_type=sunos
14961   need_lib_prefix=no
14962   need_version=no
14963   case $host_cpu in
14964   ia64*)
14965     shrext_cmds='.so'
14966     hardcode_into_libs=yes
14967     dynamic_linker="$host_os dld.so"
14968     shlibpath_var=LD_LIBRARY_PATH
14969     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971     soname_spec='${libname}${release}${shared_ext}$major'
14972     if test "X$HPUX_IA64_MODE" = X32; then
14973       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14974     else
14975       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14976     fi
14977     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14978     ;;
14979   hppa*64*)
14980     shrext_cmds='.sl'
14981     hardcode_into_libs=yes
14982     dynamic_linker="$host_os dld.sl"
14983     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14984     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986     soname_spec='${libname}${release}${shared_ext}$major'
14987     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14988     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14989     ;;
14990   *)
14991     shrext_cmds='.sl'
14992     dynamic_linker="$host_os dld.sl"
14993     shlibpath_var=SHLIB_PATH
14994     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14995     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996     soname_spec='${libname}${release}${shared_ext}$major'
14997     ;;
14998   esac
14999   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15000   postinstall_cmds='chmod 555 $lib'
15001   # or fails outright, so override atomically:
15002   install_override_mode=555
15003   ;;
15004
15005 interix[3-9]*)
15006   version_type=linux # correct to gnu/linux during the next big refactor
15007   need_lib_prefix=no
15008   need_version=no
15009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15010   soname_spec='${libname}${release}${shared_ext}$major'
15011   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15012   shlibpath_var=LD_LIBRARY_PATH
15013   shlibpath_overrides_runpath=no
15014   hardcode_into_libs=yes
15015   ;;
15016
15017 irix5* | irix6* | nonstopux*)
15018   case $host_os in
15019     nonstopux*) version_type=nonstopux ;;
15020     *)
15021         if test "$lt_cv_prog_gnu_ld" = yes; then
15022                 version_type=linux # correct to gnu/linux during the next big refactor
15023         else
15024                 version_type=irix
15025         fi ;;
15026   esac
15027   need_lib_prefix=no
15028   need_version=no
15029   soname_spec='${libname}${release}${shared_ext}$major'
15030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15031   case $host_os in
15032   irix5* | nonstopux*)
15033     libsuff= shlibsuff=
15034     ;;
15035   *)
15036     case $LD in # libtool.m4 will add one of these switches to LD
15037     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15038       libsuff= shlibsuff= libmagic=32-bit;;
15039     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15040       libsuff=32 shlibsuff=N32 libmagic=N32;;
15041     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15042       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15043     *) libsuff= shlibsuff= libmagic=never-match;;
15044     esac
15045     ;;
15046   esac
15047   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15048   shlibpath_overrides_runpath=no
15049   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15050   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15051   hardcode_into_libs=yes
15052   ;;
15053
15054 # No shared lib support for Linux oldld, aout, or coff.
15055 linux*oldld* | linux*aout* | linux*coff*)
15056   dynamic_linker=no
15057   ;;
15058
15059 # This must be glibc/ELF.
15060 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15061   version_type=linux # correct to gnu/linux during the next big refactor
15062   need_lib_prefix=no
15063   need_version=no
15064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15065   soname_spec='${libname}${release}${shared_ext}$major'
15066   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15067   shlibpath_var=LD_LIBRARY_PATH
15068   shlibpath_overrides_runpath=no
15069
15070   # Some binutils ld are patched to set DT_RUNPATH
15071   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15072   $as_echo_n "(cached) " >&6
15073 else
15074   lt_cv_shlibpath_overrides_runpath=no
15075     save_LDFLAGS=$LDFLAGS
15076     save_libdir=$libdir
15077     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15078          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15079     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h.  */
15081
15082 int
15083 main ()
15084 {
15085
15086   ;
15087   return 0;
15088 }
15089 _ACEOF
15090 if ac_fn_cxx_try_link "$LINENO"; then :
15091   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15092   lt_cv_shlibpath_overrides_runpath=yes
15093 fi
15094 fi
15095 rm -f core conftest.err conftest.$ac_objext \
15096     conftest$ac_exeext conftest.$ac_ext
15097     LDFLAGS=$save_LDFLAGS
15098     libdir=$save_libdir
15099
15100 fi
15101
15102   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15103
15104   # This implies no fast_install, which is unacceptable.
15105   # Some rework will be needed to allow for fast_install
15106   # before this can be enabled.
15107   hardcode_into_libs=yes
15108
15109   # Append ld.so.conf contents to the search path
15110   if test -f /etc/ld.so.conf; then
15111     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15112     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15113   fi
15114
15115   # We used to test for /lib/ld.so.1 and disable shared libraries on
15116   # powerpc, because MkLinux only supported shared libraries with the
15117   # GNU dynamic linker.  Since this was broken with cross compilers,
15118   # most powerpc-linux boxes support dynamic linking these days and
15119   # people can always --disable-shared, the test was removed, and we
15120   # assume the GNU/Linux dynamic linker is in use.
15121   dynamic_linker='GNU/Linux ld.so'
15122   ;;
15123
15124 netbsd*)
15125   version_type=sunos
15126   need_lib_prefix=no
15127   need_version=no
15128   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15130     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15131     dynamic_linker='NetBSD (a.out) ld.so'
15132   else
15133     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15134     soname_spec='${libname}${release}${shared_ext}$major'
15135     dynamic_linker='NetBSD ld.elf_so'
15136   fi
15137   shlibpath_var=LD_LIBRARY_PATH
15138   shlibpath_overrides_runpath=yes
15139   hardcode_into_libs=yes
15140   ;;
15141
15142 newsos6)
15143   version_type=linux # correct to gnu/linux during the next big refactor
15144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15145   shlibpath_var=LD_LIBRARY_PATH
15146   shlibpath_overrides_runpath=yes
15147   ;;
15148
15149 *nto* | *qnx*)
15150   version_type=qnx
15151   need_lib_prefix=no
15152   need_version=no
15153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15154   soname_spec='${libname}${release}${shared_ext}$major'
15155   shlibpath_var=LD_LIBRARY_PATH
15156   shlibpath_overrides_runpath=no
15157   hardcode_into_libs=yes
15158   dynamic_linker='ldqnx.so'
15159   ;;
15160
15161 openbsd*)
15162   version_type=sunos
15163   sys_lib_dlsearch_path_spec="/usr/lib"
15164   need_lib_prefix=no
15165   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15166   case $host_os in
15167     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15168     *)                          need_version=no  ;;
15169   esac
15170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15171   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15172   shlibpath_var=LD_LIBRARY_PATH
15173   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15174     case $host_os in
15175       openbsd2.[89] | openbsd2.[89].*)
15176         shlibpath_overrides_runpath=no
15177         ;;
15178       *)
15179         shlibpath_overrides_runpath=yes
15180         ;;
15181       esac
15182   else
15183     shlibpath_overrides_runpath=yes
15184   fi
15185   ;;
15186
15187 os2*)
15188   libname_spec='$name'
15189   shrext_cmds=".dll"
15190   need_lib_prefix=no
15191   library_names_spec='$libname${shared_ext} $libname.a'
15192   dynamic_linker='OS/2 ld.exe'
15193   shlibpath_var=LIBPATH
15194   ;;
15195
15196 osf3* | osf4* | osf5*)
15197   version_type=osf
15198   need_lib_prefix=no
15199   need_version=no
15200   soname_spec='${libname}${release}${shared_ext}$major'
15201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15202   shlibpath_var=LD_LIBRARY_PATH
15203   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15204   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15205   ;;
15206
15207 rdos*)
15208   dynamic_linker=no
15209   ;;
15210
15211 solaris*)
15212   version_type=linux # correct to gnu/linux during the next big refactor
15213   need_lib_prefix=no
15214   need_version=no
15215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15216   soname_spec='${libname}${release}${shared_ext}$major'
15217   shlibpath_var=LD_LIBRARY_PATH
15218   shlibpath_overrides_runpath=yes
15219   hardcode_into_libs=yes
15220   # ldd complains unless libraries are executable
15221   postinstall_cmds='chmod +x $lib'
15222   ;;
15223
15224 sunos4*)
15225   version_type=sunos
15226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15227   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15228   shlibpath_var=LD_LIBRARY_PATH
15229   shlibpath_overrides_runpath=yes
15230   if test "$with_gnu_ld" = yes; then
15231     need_lib_prefix=no
15232   fi
15233   need_version=yes
15234   ;;
15235
15236 sysv4 | sysv4.3*)
15237   version_type=linux # correct to gnu/linux during the next big refactor
15238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15239   soname_spec='${libname}${release}${shared_ext}$major'
15240   shlibpath_var=LD_LIBRARY_PATH
15241   case $host_vendor in
15242     sni)
15243       shlibpath_overrides_runpath=no
15244       need_lib_prefix=no
15245       runpath_var=LD_RUN_PATH
15246       ;;
15247     siemens)
15248       need_lib_prefix=no
15249       ;;
15250     motorola)
15251       need_lib_prefix=no
15252       need_version=no
15253       shlibpath_overrides_runpath=no
15254       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15255       ;;
15256   esac
15257   ;;
15258
15259 sysv4*MP*)
15260   if test -d /usr/nec ;then
15261     version_type=linux # correct to gnu/linux during the next big refactor
15262     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15263     soname_spec='$libname${shared_ext}.$major'
15264     shlibpath_var=LD_LIBRARY_PATH
15265   fi
15266   ;;
15267
15268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15269   version_type=freebsd-elf
15270   need_lib_prefix=no
15271   need_version=no
15272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15273   soname_spec='${libname}${release}${shared_ext}$major'
15274   shlibpath_var=LD_LIBRARY_PATH
15275   shlibpath_overrides_runpath=yes
15276   hardcode_into_libs=yes
15277   if test "$with_gnu_ld" = yes; then
15278     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15279   else
15280     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15281     case $host_os in
15282       sco3.2v5*)
15283         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15284         ;;
15285     esac
15286   fi
15287   sys_lib_dlsearch_path_spec='/usr/lib'
15288   ;;
15289
15290 tpf*)
15291   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15292   version_type=linux # correct to gnu/linux during the next big refactor
15293   need_lib_prefix=no
15294   need_version=no
15295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296   shlibpath_var=LD_LIBRARY_PATH
15297   shlibpath_overrides_runpath=no
15298   hardcode_into_libs=yes
15299   ;;
15300
15301 uts4*)
15302   version_type=linux # correct to gnu/linux during the next big refactor
15303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15304   soname_spec='${libname}${release}${shared_ext}$major'
15305   shlibpath_var=LD_LIBRARY_PATH
15306   ;;
15307
15308 *)
15309   dynamic_linker=no
15310   ;;
15311 esac
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15313 $as_echo "$dynamic_linker" >&6; }
15314 test "$dynamic_linker" = no && can_build_shared=no
15315
15316 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15317 if test "$GCC" = yes; then
15318   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15319 fi
15320
15321 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15322   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15323 fi
15324 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15325   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15326 fi
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15366 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15367 hardcode_action_CXX=
15368 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15369    test -n "$runpath_var_CXX" ||
15370    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15371
15372   # We can hardcode non-existent directories.
15373   if test "$hardcode_direct_CXX" != no &&
15374      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15375      # have to relink, otherwise we might link with an installed library
15376      # when we should be linking with a yet-to-be-installed one
15377      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15378      test "$hardcode_minus_L_CXX" != no; then
15379     # Linking always hardcodes the temporary library directory.
15380     hardcode_action_CXX=relink
15381   else
15382     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15383     hardcode_action_CXX=immediate
15384   fi
15385 else
15386   # We cannot hardcode anything, or else we can only hardcode existing
15387   # directories.
15388   hardcode_action_CXX=unsupported
15389 fi
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15391 $as_echo "$hardcode_action_CXX" >&6; }
15392
15393 if test "$hardcode_action_CXX" = relink ||
15394    test "$inherit_rpath_CXX" = yes; then
15395   # Fast installation is not supported
15396   enable_fast_install=no
15397 elif test "$shlibpath_overrides_runpath" = yes ||
15398      test "$enable_shared" = no; then
15399   # Fast installation is not necessary
15400   enable_fast_install=needless
15401 fi
15402
15403
15404
15405
15406
15407
15408
15409   fi # test -n "$compiler"
15410
15411   CC=$lt_save_CC
15412   CFLAGS=$lt_save_CFLAGS
15413   LDCXX=$LD
15414   LD=$lt_save_LD
15415   GCC=$lt_save_GCC
15416   with_gnu_ld=$lt_save_with_gnu_ld
15417   lt_cv_path_LDCXX=$lt_cv_path_LD
15418   lt_cv_path_LD=$lt_save_path_LD
15419   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15420   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15421 fi # test "$_lt_caught_CXX_error" != yes
15422
15423 ac_ext=c
15424 ac_cpp='$CPP $CPPFLAGS'
15425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15428
15429
15430 # Find a good install program.  We prefer a C program (faster),
15431 # so one script is as good as another.  But avoid the broken or
15432 # incompatible versions:
15433 # SysV /etc/install, /usr/sbin/install
15434 # SunOS /usr/etc/install
15435 # IRIX /sbin/install
15436 # AIX /bin/install
15437 # AmigaOS /C/install, which installs bootblocks on floppy discs
15438 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15441 # OS/2's system install, which has a completely different semantic
15442 # ./install, which can be erroneously created by make from ./install.sh.
15443 # Reject install programs that cannot install multiple files.
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15445 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15446 if test -z "$INSTALL"; then
15447 if ${ac_cv_path_install+:} false; then :
15448   $as_echo_n "(cached) " >&6
15449 else
15450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15451 for as_dir in $PATH
15452 do
15453   IFS=$as_save_IFS
15454   test -z "$as_dir" && as_dir=.
15455     # Account for people who put trailing slashes in PATH elements.
15456 case $as_dir/ in #((
15457   ./ | .// | /[cC]/* | \
15458   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15459   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15460   /usr/ucb/* ) ;;
15461   *)
15462     # OSF1 and SCO ODT 3.0 have their own names for install.
15463     # Don't use installbsd from OSF since it installs stuff as root
15464     # by default.
15465     for ac_prog in ginstall scoinst install; do
15466       for ac_exec_ext in '' $ac_executable_extensions; do
15467         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15468           if test $ac_prog = install &&
15469             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15470             # AIX install.  It has an incompatible calling convention.
15471             :
15472           elif test $ac_prog = install &&
15473             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15474             # program-specific install script used by HP pwplus--don't use.
15475             :
15476           else
15477             rm -rf conftest.one conftest.two conftest.dir
15478             echo one > conftest.one
15479             echo two > conftest.two
15480             mkdir conftest.dir
15481             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15482               test -s conftest.one && test -s conftest.two &&
15483               test -s conftest.dir/conftest.one &&
15484               test -s conftest.dir/conftest.two
15485             then
15486               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15487               break 3
15488             fi
15489           fi
15490         fi
15491       done
15492     done
15493     ;;
15494 esac
15495
15496   done
15497 IFS=$as_save_IFS
15498
15499 rm -rf conftest.one conftest.two conftest.dir
15500
15501 fi
15502   if test "${ac_cv_path_install+set}" = set; then
15503     INSTALL=$ac_cv_path_install
15504   else
15505     # As a last resort, use the slow shell script.  Don't cache a
15506     # value for INSTALL within a source directory, because that will
15507     # break other packages using the cache if that directory is
15508     # removed, or if the value is a relative name.
15509     INSTALL=$ac_install_sh
15510   fi
15511 fi
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15513 $as_echo "$INSTALL" >&6; }
15514
15515 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15516 # It thinks the first close brace ends the variable substitution.
15517 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15518
15519 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15520
15521 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15522
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15524 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15525 set x ${MAKE-make}
15526 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15527 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15528   $as_echo_n "(cached) " >&6
15529 else
15530   cat >conftest.make <<\_ACEOF
15531 SHELL = /bin/sh
15532 all:
15533         @echo '@@@%%%=$(MAKE)=@@@%%%'
15534 _ACEOF
15535 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15536 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15537   *@@@%%%=?*=@@@%%%*)
15538     eval ac_cv_prog_make_${ac_make}_set=yes;;
15539   *)
15540     eval ac_cv_prog_make_${ac_make}_set=no;;
15541 esac
15542 rm -f conftest.make
15543 fi
15544 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15546 $as_echo "yes" >&6; }
15547   SET_MAKE=
15548 else
15549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15550 $as_echo "no" >&6; }
15551   SET_MAKE="MAKE=${MAKE-make}"
15552 fi
15553
15554 if test -n "$ac_tool_prefix"; then
15555   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15556 set dummy ${ac_tool_prefix}windres; ac_word=$2
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15558 $as_echo_n "checking for $ac_word... " >&6; }
15559 if ${ac_cv_prog_WINDRES+:} false; then :
15560   $as_echo_n "(cached) " >&6
15561 else
15562   if test -n "$WINDRES"; then
15563   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15564 else
15565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15566 for as_dir in $PATH
15567 do
15568   IFS=$as_save_IFS
15569   test -z "$as_dir" && as_dir=.
15570     for ac_exec_ext in '' $ac_executable_extensions; do
15571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15572     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15574     break 2
15575   fi
15576 done
15577   done
15578 IFS=$as_save_IFS
15579
15580 fi
15581 fi
15582 WINDRES=$ac_cv_prog_WINDRES
15583 if test -n "$WINDRES"; then
15584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
15585 $as_echo "$WINDRES" >&6; }
15586 else
15587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15588 $as_echo "no" >&6; }
15589 fi
15590
15591
15592 fi
15593 if test -z "$ac_cv_prog_WINDRES"; then
15594   ac_ct_WINDRES=$WINDRES
15595   # Extract the first word of "windres", so it can be a program name with args.
15596 set dummy windres; ac_word=$2
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15598 $as_echo_n "checking for $ac_word... " >&6; }
15599 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
15600   $as_echo_n "(cached) " >&6
15601 else
15602   if test -n "$ac_ct_WINDRES"; then
15603   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15604 else
15605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15606 for as_dir in $PATH
15607 do
15608   IFS=$as_save_IFS
15609   test -z "$as_dir" && as_dir=.
15610     for ac_exec_ext in '' $ac_executable_extensions; do
15611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15612     ac_cv_prog_ac_ct_WINDRES="windres"
15613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15614     break 2
15615   fi
15616 done
15617   done
15618 IFS=$as_save_IFS
15619
15620 fi
15621 fi
15622 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15623 if test -n "$ac_ct_WINDRES"; then
15624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
15625 $as_echo "$ac_ct_WINDRES" >&6; }
15626 else
15627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15628 $as_echo "no" >&6; }
15629 fi
15630
15631   if test "x$ac_ct_WINDRES" = x; then
15632     WINDRES=":"
15633   else
15634     case $cross_compiling:$ac_tool_warned in
15635 yes:)
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15638 ac_tool_warned=yes ;;
15639 esac
15640     WINDRES=$ac_ct_WINDRES
15641   fi
15642 else
15643   WINDRES="$ac_cv_prog_WINDRES"
15644 fi
15645
15646
15647 case "$host" in
15648     *-*-mingw32*)
15649         # Except on msys, where make can't handle full pathnames (bug 1972)
15650         ;;
15651     *)
15652         srcdir=`cd $srcdir && pwd`
15653         ;;
15654 esac
15655
15656 INCLUDE="-I$srcdir/include"
15657 if test x$srcdir != x.; then
15658     INCLUDE="-Iinclude $INCLUDE"
15659 elif test -d .hg; then
15660     as_fn_error $? "
15661 *** When building from Mercurial you should configure and build in a
15662     separate directory so you don't clobber SDL_config.h, SDL_revision.h
15663 " "$LINENO" 5
15664 fi
15665 BASE_CFLAGS=""
15666 BASE_LDFLAGS=""
15667 case "$host" in
15668     *-*-cygwin*)
15669         # We build SDL on cygwin without the UNIX emulation layer
15670         save_CFLAGS="$CFLAGS"
15671         have_no_cygwin=no
15672         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
15673 $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
15674         CFLAGS="$save_CFLAGS -mno-cygwin"
15675
15676         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h.  */
15678
15679
15680 int
15681 main ()
15682 {
15683
15684
15685   ;
15686   return 0;
15687 }
15688 _ACEOF
15689 if ac_fn_c_try_compile "$LINENO"; then :
15690
15691         have_no_cygwin=yes
15692
15693 fi
15694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15695         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
15696 $as_echo "$have_no_cygwin" >&6; }
15697         CFLAGS="$save_CFLAGS"
15698
15699         if test x$have_no_cygwin = xyes; then
15700             BASE_CFLAGS="-mno-cygwin"
15701             BASE_LDFLAGS="-mno-cygwin"
15702         fi
15703         BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
15704         ;;
15705 esac
15706 # Uncomment the following line if you want to force SDL and applications
15707 # built with it to be compiled for a particular architecture.
15708 #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
15709 BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
15710 # The default optimization for SDL is -O3 (Bug #31)
15711 if test "x$orig_CFLAGS" = x; then
15712     BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
15713 fi
15714 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
15715 BUILD_LDFLAGS="$LDFLAGS"
15716 EXTRA_LDFLAGS="$BASE_LDFLAGS"
15717 ## These are common directories to find software packages
15718 #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
15719 #    if test -d $path/include; then
15720 #        EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
15721 #    fi
15722 #    if test -d $path/lib; then
15723 #        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
15724 #    fi
15725 #done
15726 SDL_CFLAGS="$BASE_CFLAGS"
15727 SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
15728 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
15729 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
15730 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
15731
15732 base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
15733
15734 find_lib()
15735 {
15736     gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
15737     gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
15738     env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
15739     if test "$cross_compiling" = yes; then
15740         host_lib_path=""
15741     else
15742         host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
15743     fi
15744     for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
15745         lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
15746         if test x$lib != x; then
15747             echo $lib
15748             return
15749         fi
15750     done
15751 }
15752
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15754 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15755 if ${ac_cv_c_const+:} false; then :
15756   $as_echo_n "(cached) " >&6
15757 else
15758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15759 /* end confdefs.h.  */
15760
15761 int
15762 main ()
15763 {
15764
15765 #ifndef __cplusplus
15766   /* Ultrix mips cc rejects this sort of thing.  */
15767   typedef int charset[2];
15768   const charset cs = { 0, 0 };
15769   /* SunOS 4.1.1 cc rejects this.  */
15770   char const *const *pcpcc;
15771   char **ppc;
15772   /* NEC SVR4.0.2 mips cc rejects this.  */
15773   struct point {int x, y;};
15774   static struct point const zero = {0,0};
15775   /* AIX XL C 1.02.0.0 rejects this.
15776      It does not let you subtract one const X* pointer from another in
15777      an arm of an if-expression whose if-part is not a constant
15778      expression */
15779   const char *g = "string";
15780   pcpcc = &g + (g ? g-g : 0);
15781   /* HPUX 7.0 cc rejects these. */
15782   ++pcpcc;
15783   ppc = (char**) pcpcc;
15784   pcpcc = (char const *const *) ppc;
15785   { /* SCO 3.2v4 cc rejects this sort of thing.  */
15786     char tx;
15787     char *t = &tx;
15788     char const *s = 0 ? (char *) 0 : (char const *) 0;
15789
15790     *t++ = 0;
15791     if (s) return 0;
15792   }
15793   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15794     int x[] = {25, 17};
15795     const int *foo = &x[0];
15796     ++foo;
15797   }
15798   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15799     typedef const int *iptr;
15800     iptr p = 0;
15801     ++p;
15802   }
15803   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15804        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15805     struct s { int j; const int *ap[3]; } bx;
15806     struct s *b = &bx; b->j = 5;
15807   }
15808   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15809     const int foo = 10;
15810     if (!foo) return 0;
15811   }
15812   return !cs[0] && !zero.x;
15813 #endif
15814
15815   ;
15816   return 0;
15817 }
15818 _ACEOF
15819 if ac_fn_c_try_compile "$LINENO"; then :
15820   ac_cv_c_const=yes
15821 else
15822   ac_cv_c_const=no
15823 fi
15824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15825 fi
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15827 $as_echo "$ac_cv_c_const" >&6; }
15828 if test $ac_cv_c_const = no; then
15829
15830 $as_echo "#define const /**/" >>confdefs.h
15831
15832 fi
15833
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15835 $as_echo_n "checking for inline... " >&6; }
15836 if ${ac_cv_c_inline+:} false; then :
15837   $as_echo_n "(cached) " >&6
15838 else
15839   ac_cv_c_inline=no
15840 for ac_kw in inline __inline__ __inline; do
15841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h.  */
15843 #ifndef __cplusplus
15844 typedef int foo_t;
15845 static $ac_kw foo_t static_foo () {return 0; }
15846 $ac_kw foo_t foo () {return 0; }
15847 #endif
15848
15849 _ACEOF
15850 if ac_fn_c_try_compile "$LINENO"; then :
15851   ac_cv_c_inline=$ac_kw
15852 fi
15853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15854   test "$ac_cv_c_inline" != no && break
15855 done
15856
15857 fi
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15859 $as_echo "$ac_cv_c_inline" >&6; }
15860
15861 case $ac_cv_c_inline in
15862   inline | yes) ;;
15863   *)
15864     case $ac_cv_c_inline in
15865       no) ac_val=;;
15866       *) ac_val=$ac_cv_c_inline;;
15867     esac
15868     cat >>confdefs.h <<_ACEOF
15869 #ifndef __cplusplus
15870 #define inline $ac_val
15871 #endif
15872 _ACEOF
15873     ;;
15874 esac
15875
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
15877 $as_echo_n "checking for working volatile... " >&6; }
15878 if ${ac_cv_c_volatile+:} false; then :
15879   $as_echo_n "(cached) " >&6
15880 else
15881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h.  */
15883
15884 int
15885 main ()
15886 {
15887
15888 volatile int x;
15889 int * volatile y = (int *) 0;
15890 return !x && !y;
15891   ;
15892   return 0;
15893 }
15894 _ACEOF
15895 if ac_fn_c_try_compile "$LINENO"; then :
15896   ac_cv_c_volatile=yes
15897 else
15898   ac_cv_c_volatile=no
15899 fi
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 fi
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
15903 $as_echo "$ac_cv_c_volatile" >&6; }
15904 if test $ac_cv_c_volatile = no; then
15905
15906 $as_echo "#define volatile /**/" >>confdefs.h
15907
15908 fi
15909
15910
15911 # Check whether --enable-assertions was given.
15912 if test "${enable_assertions+set}" = set; then :
15913   enableval=$enable_assertions;
15914 else
15915   enable_assertions=auto
15916 fi
15917
15918 case "$enable_assertions" in
15919     auto) # Use optimization settings to determine assertion level
15920         ;;
15921     disabled)
15922
15923 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
15924
15925         ;;
15926     release)
15927
15928 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
15929
15930         ;;
15931     enabled)
15932
15933 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
15934
15935         ;;
15936     paranoid)
15937
15938 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
15939
15940         ;;
15941     *)
15942         as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
15943         ;;
15944 esac
15945
15946 # Check whether --enable-dependency-tracking was given.
15947 if test "${enable_dependency_tracking+set}" = set; then :
15948   enableval=$enable_dependency_tracking;
15949 else
15950   enable_dependency_tracking=yes
15951 fi
15952
15953 if test x$enable_dependency_tracking = xyes; then
15954     have_gcc_mmd_mt=no
15955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
15956 $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
15957     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h.  */
15959
15960     #if !defined(__GNUC__) || __GNUC__ < 3
15961     #error Dependency tracking requires GCC 3.0 or newer
15962     #endif
15963
15964 int
15965 main ()
15966 {
15967
15968
15969   ;
15970   return 0;
15971 }
15972 _ACEOF
15973 if ac_fn_c_try_compile "$LINENO"; then :
15974
15975     have_gcc_mmd_mt=yes
15976
15977 fi
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
15980 $as_echo "$have_gcc_mmd_mt" >&6; }
15981
15982     if test x$have_gcc_mmd_mt = xyes; then
15983         DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
15984     fi
15985 fi
15986
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
15988 $as_echo_n "checking for linker option --no-undefined... " >&6; }
15989 have_no_undefined=no
15990 case "$host" in
15991         *-*-openbsd*)
15992         ;;
15993
15994     *)
15995         save_LDFLAGS="$LDFLAGS"
15996         LDFLAGS="$LDFLAGS -Wl,--no-undefined"
15997         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h.  */
15999
16000
16001 int
16002 main ()
16003 {
16004
16005
16006   ;
16007   return 0;
16008 }
16009 _ACEOF
16010 if ac_fn_c_try_link "$LINENO"; then :
16011
16012         have_no_undefined=yes
16013         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
16014
16015 fi
16016 rm -f core conftest.err conftest.$ac_objext \
16017     conftest$ac_exeext conftest.$ac_ext
16018         LDFLAGS="$save_LDFLAGS"
16019         ;;
16020 esac
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
16022 $as_echo "$have_no_undefined" >&6; }
16023
16024 # Check whether --enable-libc was given.
16025 if test "${enable_libc+set}" = set; then :
16026   enableval=$enable_libc;
16027 else
16028   enable_libc=yes
16029 fi
16030
16031 if test x$enable_libc = xyes; then
16032
16033 $as_echo "#define HAVE_LIBC 1" >>confdefs.h
16034
16035
16036         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16037 $as_echo_n "checking for ANSI C header files... " >&6; }
16038 if ${ac_cv_header_stdc+:} false; then :
16039   $as_echo_n "(cached) " >&6
16040 else
16041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h.  */
16043 #include <stdlib.h>
16044 #include <stdarg.h>
16045 #include <string.h>
16046 #include <float.h>
16047
16048 int
16049 main ()
16050 {
16051
16052   ;
16053   return 0;
16054 }
16055 _ACEOF
16056 if ac_fn_c_try_compile "$LINENO"; then :
16057   ac_cv_header_stdc=yes
16058 else
16059   ac_cv_header_stdc=no
16060 fi
16061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16062
16063 if test $ac_cv_header_stdc = yes; then
16064   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16066 /* end confdefs.h.  */
16067 #include <string.h>
16068
16069 _ACEOF
16070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16071   $EGREP "memchr" >/dev/null 2>&1; then :
16072
16073 else
16074   ac_cv_header_stdc=no
16075 fi
16076 rm -f conftest*
16077
16078 fi
16079
16080 if test $ac_cv_header_stdc = yes; then
16081   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h.  */
16084 #include <stdlib.h>
16085
16086 _ACEOF
16087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16088   $EGREP "free" >/dev/null 2>&1; then :
16089
16090 else
16091   ac_cv_header_stdc=no
16092 fi
16093 rm -f conftest*
16094
16095 fi
16096
16097 if test $ac_cv_header_stdc = yes; then
16098   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16099   if test "$cross_compiling" = yes; then :
16100   :
16101 else
16102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h.  */
16104 #include <ctype.h>
16105 #include <stdlib.h>
16106 #if ((' ' & 0x0FF) == 0x020)
16107 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16108 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16109 #else
16110 # define ISLOWER(c) \
16111                    (('a' <= (c) && (c) <= 'i') \
16112                      || ('j' <= (c) && (c) <= 'r') \
16113                      || ('s' <= (c) && (c) <= 'z'))
16114 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16115 #endif
16116
16117 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16118 int
16119 main ()
16120 {
16121   int i;
16122   for (i = 0; i < 256; i++)
16123     if (XOR (islower (i), ISLOWER (i))
16124         || toupper (i) != TOUPPER (i))
16125       return 2;
16126   return 0;
16127 }
16128 _ACEOF
16129 if ac_fn_c_try_run "$LINENO"; then :
16130
16131 else
16132   ac_cv_header_stdc=no
16133 fi
16134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16135   conftest.$ac_objext conftest.beam conftest.$ac_ext
16136 fi
16137
16138 fi
16139 fi
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16141 $as_echo "$ac_cv_header_stdc" >&6; }
16142 if test $ac_cv_header_stdc = yes; then
16143
16144 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16145
16146 fi
16147
16148     for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
16149 do :
16150   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16151 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16152 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16153   cat >>confdefs.h <<_ACEOF
16154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16155 _ACEOF
16156
16157 fi
16158
16159 done
16160
16161
16162         ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16163 if test "x$ac_cv_type_size_t" = xyes; then :
16164
16165 else
16166
16167 cat >>confdefs.h <<_ACEOF
16168 #define size_t unsigned int
16169 _ACEOF
16170
16171 fi
16172
16173
16174           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
16175 $as_echo_n "checking for M_PI in math.h... " >&6; }
16176 if ${ac_cv_define_M_PI+:} false; then :
16177   $as_echo_n "(cached) " >&6
16178 else
16179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16180 /* end confdefs.h.  */
16181
16182 #include <math.h>
16183 #ifdef M_PI
16184 YES_IS_DEFINED
16185 #endif
16186
16187 _ACEOF
16188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16189   $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
16190   ac_cv_define_M_PI=yes
16191 else
16192   ac_cv_define_M_PI=no
16193 fi
16194 rm -f conftest*
16195
16196
16197 fi
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
16199 $as_echo "$ac_cv_define_M_PI" >&6; }
16200   if test "$ac_cv_define_M_PI" = "yes" ; then
16201
16202 $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
16203
16204   fi
16205
16206
16207         case "$host" in
16208     *-*-cygwin* | *-*-mingw32*)
16209         ;;
16210     *)
16211         # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16212 # for constant arguments.  Useless!
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16214 $as_echo_n "checking for working alloca.h... " >&6; }
16215 if ${ac_cv_working_alloca_h+:} false; then :
16216   $as_echo_n "(cached) " >&6
16217 else
16218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h.  */
16220 #include <alloca.h>
16221 int
16222 main ()
16223 {
16224 char *p = (char *) alloca (2 * sizeof (int));
16225                           if (p) return 0;
16226   ;
16227   return 0;
16228 }
16229 _ACEOF
16230 if ac_fn_c_try_link "$LINENO"; then :
16231   ac_cv_working_alloca_h=yes
16232 else
16233   ac_cv_working_alloca_h=no
16234 fi
16235 rm -f core conftest.err conftest.$ac_objext \
16236     conftest$ac_exeext conftest.$ac_ext
16237 fi
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16239 $as_echo "$ac_cv_working_alloca_h" >&6; }
16240 if test $ac_cv_working_alloca_h = yes; then
16241
16242 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16243
16244 fi
16245
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16247 $as_echo_n "checking for alloca... " >&6; }
16248 if ${ac_cv_func_alloca_works+:} false; then :
16249   $as_echo_n "(cached) " >&6
16250 else
16251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h.  */
16253 #ifdef __GNUC__
16254 # define alloca __builtin_alloca
16255 #else
16256 # ifdef _MSC_VER
16257 #  include <malloc.h>
16258 #  define alloca _alloca
16259 # else
16260 #  ifdef HAVE_ALLOCA_H
16261 #   include <alloca.h>
16262 #  else
16263 #   ifdef _AIX
16264  #pragma alloca
16265 #   else
16266 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16267 void *alloca (size_t);
16268 #    endif
16269 #   endif
16270 #  endif
16271 # endif
16272 #endif
16273
16274 int
16275 main ()
16276 {
16277 char *p = (char *) alloca (1);
16278                                     if (p) return 0;
16279   ;
16280   return 0;
16281 }
16282 _ACEOF
16283 if ac_fn_c_try_link "$LINENO"; then :
16284   ac_cv_func_alloca_works=yes
16285 else
16286   ac_cv_func_alloca_works=no
16287 fi
16288 rm -f core conftest.err conftest.$ac_objext \
16289     conftest$ac_exeext conftest.$ac_ext
16290 fi
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16292 $as_echo "$ac_cv_func_alloca_works" >&6; }
16293
16294 if test $ac_cv_func_alloca_works = yes; then
16295
16296 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16297
16298 else
16299   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16300 # that cause trouble.  Some versions do not even contain alloca or
16301 # contain a buggy version.  If you still want to use their alloca,
16302 # use ar to extract alloca.o from them instead of compiling alloca.c.
16303
16304 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16305
16306 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16307
16308
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16310 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16311 if ${ac_cv_os_cray+:} false; then :
16312   $as_echo_n "(cached) " >&6
16313 else
16314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h.  */
16316 #if defined CRAY && ! defined CRAY2
16317 webecray
16318 #else
16319 wenotbecray
16320 #endif
16321
16322 _ACEOF
16323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16324   $EGREP "webecray" >/dev/null 2>&1; then :
16325   ac_cv_os_cray=yes
16326 else
16327   ac_cv_os_cray=no
16328 fi
16329 rm -f conftest*
16330
16331 fi
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16333 $as_echo "$ac_cv_os_cray" >&6; }
16334 if test $ac_cv_os_cray = yes; then
16335   for ac_func in _getb67 GETB67 getb67; do
16336     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16337 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16338 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16339
16340 cat >>confdefs.h <<_ACEOF
16341 #define CRAY_STACKSEG_END $ac_func
16342 _ACEOF
16343
16344     break
16345 fi
16346
16347   done
16348 fi
16349
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16351 $as_echo_n "checking stack direction for C alloca... " >&6; }
16352 if ${ac_cv_c_stack_direction+:} false; then :
16353   $as_echo_n "(cached) " >&6
16354 else
16355   if test "$cross_compiling" = yes; then :
16356   ac_cv_c_stack_direction=0
16357 else
16358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h.  */
16360 $ac_includes_default
16361 int
16362 find_stack_direction (int *addr, int depth)
16363 {
16364   int dir, dummy = 0;
16365   if (! addr)
16366     addr = &dummy;
16367   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16368   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16369   return dir + dummy;
16370 }
16371
16372 int
16373 main (int argc, char **argv)
16374 {
16375   return find_stack_direction (0, argc + !argv + 20) < 0;
16376 }
16377 _ACEOF
16378 if ac_fn_c_try_run "$LINENO"; then :
16379   ac_cv_c_stack_direction=1
16380 else
16381   ac_cv_c_stack_direction=-1
16382 fi
16383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16384   conftest.$ac_objext conftest.beam conftest.$ac_ext
16385 fi
16386
16387 fi
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16389 $as_echo "$ac_cv_c_stack_direction" >&6; }
16390 cat >>confdefs.h <<_ACEOF
16391 #define STACK_DIRECTION $ac_cv_c_stack_direction
16392 _ACEOF
16393
16394
16395 fi
16396
16397         ;;
16398     esac
16399
16400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
16401 $as_echo_n "checking for working memcmp... " >&6; }
16402 if ${ac_cv_func_memcmp_working+:} false; then :
16403   $as_echo_n "(cached) " >&6
16404 else
16405   if test "$cross_compiling" = yes; then :
16406   ac_cv_func_memcmp_working=no
16407 else
16408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h.  */
16410 $ac_includes_default
16411 int
16412 main ()
16413 {
16414
16415   /* Some versions of memcmp are not 8-bit clean.  */
16416   char c0 = '\100', c1 = '\200', c2 = '\201';
16417   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16418     return 1;
16419
16420   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16421      or more and with at least one buffer not starting on a 4-byte boundary.
16422      William Lewis provided this test program.   */
16423   {
16424     char foo[21];
16425     char bar[21];
16426     int i;
16427     for (i = 0; i < 4; i++)
16428       {
16429         char *a = foo + i;
16430         char *b = bar + i;
16431         strcpy (a, "--------01111111");
16432         strcpy (b, "--------10000000");
16433         if (memcmp (a, b, 16) >= 0)
16434           return 1;
16435       }
16436     return 0;
16437   }
16438
16439   ;
16440   return 0;
16441 }
16442 _ACEOF
16443 if ac_fn_c_try_run "$LINENO"; then :
16444   ac_cv_func_memcmp_working=yes
16445 else
16446   ac_cv_func_memcmp_working=no
16447 fi
16448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16449   conftest.$ac_objext conftest.beam conftest.$ac_ext
16450 fi
16451
16452 fi
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16454 $as_echo "$ac_cv_func_memcmp_working" >&6; }
16455 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16456   *" memcmp.$ac_objext "* ) ;;
16457   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16458  ;;
16459 esac
16460
16461
16462     if test x$ac_cv_func_memcmp_working = xyes; then
16463
16464 $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
16465
16466     fi
16467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
16468 $as_echo_n "checking for working strtod... " >&6; }
16469 if ${ac_cv_func_strtod+:} false; then :
16470   $as_echo_n "(cached) " >&6
16471 else
16472   if test "$cross_compiling" = yes; then :
16473   ac_cv_func_strtod=no
16474 else
16475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h.  */
16477
16478 $ac_includes_default
16479 #ifndef strtod
16480 double strtod ();
16481 #endif
16482 int
16483 main()
16484 {
16485   {
16486     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
16487     char *string = " +69";
16488     char *term;
16489     double value;
16490     value = strtod (string, &term);
16491     if (value != 69 || term != (string + 4))
16492       return 1;
16493   }
16494
16495   {
16496     /* Under Solaris 2.4, strtod returns the wrong value for the
16497        terminating character under some conditions.  */
16498     char *string = "NaN";
16499     char *term;
16500     strtod (string, &term);
16501     if (term != string && *(term - 1) == 0)
16502       return 1;
16503   }
16504   return 0;
16505 }
16506
16507 _ACEOF
16508 if ac_fn_c_try_run "$LINENO"; then :
16509   ac_cv_func_strtod=yes
16510 else
16511   ac_cv_func_strtod=no
16512 fi
16513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16514   conftest.$ac_objext conftest.beam conftest.$ac_ext
16515 fi
16516
16517 fi
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
16519 $as_echo "$ac_cv_func_strtod" >&6; }
16520 if test $ac_cv_func_strtod = no; then
16521   case " $LIBOBJS " in
16522   *" strtod.$ac_objext "* ) ;;
16523   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
16524  ;;
16525 esac
16526
16527 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
16528 if test "x$ac_cv_func_pow" = xyes; then :
16529
16530 fi
16531
16532 if test $ac_cv_func_pow = no; then
16533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16534 $as_echo_n "checking for pow in -lm... " >&6; }
16535 if ${ac_cv_lib_m_pow+:} false; then :
16536   $as_echo_n "(cached) " >&6
16537 else
16538   ac_check_lib_save_LIBS=$LIBS
16539 LIBS="-lm  $LIBS"
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h.  */
16542
16543 /* Override any GCC internal prototype to avoid an error.
16544    Use char because int might match the return type of a GCC
16545    builtin and then its argument prototype would still apply.  */
16546 #ifdef __cplusplus
16547 extern "C"
16548 #endif
16549 char pow ();
16550 int
16551 main ()
16552 {
16553 return pow ();
16554   ;
16555   return 0;
16556 }
16557 _ACEOF
16558 if ac_fn_c_try_link "$LINENO"; then :
16559   ac_cv_lib_m_pow=yes
16560 else
16561   ac_cv_lib_m_pow=no
16562 fi
16563 rm -f core conftest.err conftest.$ac_objext \
16564     conftest$ac_exeext conftest.$ac_ext
16565 LIBS=$ac_check_lib_save_LIBS
16566 fi
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16568 $as_echo "$ac_cv_lib_m_pow" >&6; }
16569 if test "x$ac_cv_lib_m_pow" = xyes; then :
16570   POW_LIB=-lm
16571 else
16572   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
16573 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
16574 fi
16575
16576 fi
16577
16578 fi
16579
16580     if test x$ac_cv_func_strtod = xyes; then
16581
16582 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
16583
16584     fi
16585     ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
16586 if test "x$ac_cv_func_mprotect" = xyes; then :
16587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h.  */
16589
16590           #include <sys/types.h>
16591           #include <sys/mman.h>
16592
16593 int
16594 main ()
16595 {
16596
16597
16598   ;
16599   return 0;
16600 }
16601 _ACEOF
16602 if ac_fn_c_try_compile "$LINENO"; then :
16603
16604
16605 $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
16606
16607
16608 fi
16609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16610 fi
16611
16612     for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname
16613 do :
16614   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16615 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16616 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16617   cat >>confdefs.h <<_ACEOF
16618 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16619 _ACEOF
16620
16621 fi
16622 done
16623
16624
16625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16626 $as_echo_n "checking for pow in -lm... " >&6; }
16627 if ${ac_cv_lib_m_pow+:} false; then :
16628   $as_echo_n "(cached) " >&6
16629 else
16630   ac_check_lib_save_LIBS=$LIBS
16631 LIBS="-lm  $LIBS"
16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h.  */
16634
16635 /* Override any GCC internal prototype to avoid an error.
16636    Use char because int might match the return type of a GCC
16637    builtin and then its argument prototype would still apply.  */
16638 #ifdef __cplusplus
16639 extern "C"
16640 #endif
16641 char pow ();
16642 int
16643 main ()
16644 {
16645 return pow ();
16646   ;
16647   return 0;
16648 }
16649 _ACEOF
16650 if ac_fn_c_try_link "$LINENO"; then :
16651   ac_cv_lib_m_pow=yes
16652 else
16653   ac_cv_lib_m_pow=no
16654 fi
16655 rm -f core conftest.err conftest.$ac_objext \
16656     conftest$ac_exeext conftest.$ac_ext
16657 LIBS=$ac_check_lib_save_LIBS
16658 fi
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16660 $as_echo "$ac_cv_lib_m_pow" >&6; }
16661 if test "x$ac_cv_lib_m_pow" = xyes; then :
16662   LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
16663 fi
16664
16665     for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
16666 do :
16667   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16668 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16669 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16670   cat >>confdefs.h <<_ACEOF
16671 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16672 _ACEOF
16673
16674 fi
16675 done
16676
16677
16678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
16679 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
16680 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
16681   $as_echo_n "(cached) " >&6
16682 else
16683   ac_check_lib_save_LIBS=$LIBS
16684 LIBS="-liconv  $LIBS"
16685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686 /* end confdefs.h.  */
16687
16688 /* Override any GCC internal prototype to avoid an error.
16689    Use char because int might match the return type of a GCC
16690    builtin and then its argument prototype would still apply.  */
16691 #ifdef __cplusplus
16692 extern "C"
16693 #endif
16694 char iconv_open ();
16695 int
16696 main ()
16697 {
16698 return iconv_open ();
16699   ;
16700   return 0;
16701 }
16702 _ACEOF
16703 if ac_fn_c_try_link "$LINENO"; then :
16704   ac_cv_lib_iconv_iconv_open=yes
16705 else
16706   ac_cv_lib_iconv_iconv_open=no
16707 fi
16708 rm -f core conftest.err conftest.$ac_objext \
16709     conftest$ac_exeext conftest.$ac_ext
16710 LIBS=$ac_check_lib_save_LIBS
16711 fi
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
16713 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
16714 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
16715   LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
16716 fi
16717
16718     for ac_func in iconv
16719 do :
16720   ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
16721 if test "x$ac_cv_func_iconv" = xyes; then :
16722   cat >>confdefs.h <<_ACEOF
16723 #define HAVE_ICONV 1
16724 _ACEOF
16725
16726 fi
16727 done
16728
16729
16730     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
16731 "
16732 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
16733   $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
16734
16735 fi
16736
16737 fi
16738
16739
16740 # Check whether --enable-gcc-atomics was given.
16741 if test "${enable_gcc_atomics+set}" = set; then :
16742   enableval=$enable_gcc_atomics;
16743 else
16744   enable_gcc_atomics=yes
16745 fi
16746
16747 if test x$enable_gcc_atomics = xyes; then
16748     have_gcc_atomics=no
16749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
16750 $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
16751     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h.  */
16753
16754
16755 int
16756 main ()
16757 {
16758
16759     int a;
16760     void *x, *y, *z;
16761     __sync_lock_test_and_set(&a, 4);
16762     __sync_lock_test_and_set(&x, y);
16763     __sync_fetch_and_add(&a, 1);
16764     __sync_bool_compare_and_swap(&a, 5, 10);
16765     __sync_bool_compare_and_swap(&x, y, z);
16766
16767   ;
16768   return 0;
16769 }
16770 _ACEOF
16771 if ac_fn_c_try_link "$LINENO"; then :
16772
16773     have_gcc_atomics=yes
16774
16775 fi
16776 rm -f core conftest.err conftest.$ac_objext \
16777     conftest$ac_exeext conftest.$ac_ext
16778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
16779 $as_echo "$have_gcc_atomics" >&6; }
16780
16781     if test x$have_gcc_atomics = xyes; then
16782
16783 $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
16784
16785     else
16786         # See if we have the minimum operation needed for GCC atomics
16787         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 /* end confdefs.h.  */
16789
16790
16791 int
16792 main ()
16793 {
16794
16795         int a;
16796         __sync_lock_test_and_set(&a, 1);
16797         __sync_lock_release(&a);
16798
16799   ;
16800   return 0;
16801 }
16802 _ACEOF
16803 if ac_fn_c_try_link "$LINENO"; then :
16804
16805         have_gcc_sync_lock_test_and_set=yes
16806
16807 fi
16808 rm -f core conftest.err conftest.$ac_objext \
16809     conftest$ac_exeext conftest.$ac_ext
16810         if test x$have_gcc_sync_lock_test_and_set = xyes; then
16811
16812 $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
16813
16814         fi
16815     fi
16816 fi
16817
16818 # Standard C sources
16819 SOURCES="$SOURCES $srcdir/src/*.c"
16820 SOURCES="$SOURCES $srcdir/src/atomic/*.c"
16821 SOURCES="$SOURCES $srcdir/src/audio/*.c"
16822 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
16823 SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
16824 SOURCES="$SOURCES $srcdir/src/events/*.c"
16825 SOURCES="$SOURCES $srcdir/src/file/*.c"
16826 SOURCES="$SOURCES $srcdir/src/haptic/*.c"
16827 SOURCES="$SOURCES $srcdir/src/joystick/*.c"
16828 SOURCES="$SOURCES $srcdir/src/libm/*.c"
16829 SOURCES="$SOURCES $srcdir/src/power/*.c"
16830 #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
16831 SOURCES="$SOURCES $srcdir/src/render/*.c"
16832 SOURCES="$SOURCES $srcdir/src/render/*/*.c"
16833 SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
16834 SOURCES="$SOURCES $srcdir/src/thread/*.c"
16835 SOURCES="$SOURCES $srcdir/src/timer/*.c"
16836 SOURCES="$SOURCES $srcdir/src/video/*.c"
16837
16838
16839 # Check whether --enable-atomic was given.
16840 if test "${enable_atomic+set}" = set; then :
16841   enableval=$enable_atomic;
16842 else
16843   enable_atomic=yes
16844 fi
16845
16846 if test x$enable_atomic != xyes; then
16847
16848 $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
16849
16850 else
16851     SUMMARY_modules="${SUMMARY_modules} atomic"
16852 fi
16853 # Check whether --enable-audio was given.
16854 if test "${enable_audio+set}" = set; then :
16855   enableval=$enable_audio;
16856 else
16857   enable_audio=yes
16858 fi
16859
16860 if test x$enable_audio != xyes; then
16861
16862 $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
16863
16864 else
16865     SUMMARY_modules="${SUMMARY_modules} audio"
16866 fi
16867 # Check whether --enable-video was given.
16868 if test "${enable_video+set}" = set; then :
16869   enableval=$enable_video;
16870 else
16871   enable_video=yes
16872 fi
16873
16874 if test x$enable_video != xyes; then
16875
16876 $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
16877
16878 else
16879     SUMMARY_modules="${SUMMARY_modules} video"
16880 fi
16881 # Check whether --enable-render was given.
16882 if test "${enable_render+set}" = set; then :
16883   enableval=$enable_render;
16884 else
16885   enable_render=yes
16886 fi
16887
16888 if test x$enable_render != xyes; then
16889
16890 $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
16891
16892 else
16893     SUMMARY_modules="${SUMMARY_modules} render"
16894 fi
16895 # Check whether --enable-events was given.
16896 if test "${enable_events+set}" = set; then :
16897   enableval=$enable_events;
16898 else
16899   enable_events=yes
16900 fi
16901
16902 if test x$enable_events != xyes; then
16903
16904 $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
16905
16906 else
16907     SUMMARY_modules="${SUMMARY_modules} events"
16908 fi
16909 # Check whether --enable-joystick was given.
16910 if test "${enable_joystick+set}" = set; then :
16911   enableval=$enable_joystick;
16912 else
16913   enable_joystick=yes
16914 fi
16915
16916 if test x$enable_joystick != xyes; then
16917
16918 $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
16919
16920 else
16921     SUMMARY_modules="${SUMMARY_modules} joystick"
16922 fi
16923 # Check whether --enable-haptic was given.
16924 if test "${enable_haptic+set}" = set; then :
16925   enableval=$enable_haptic;
16926 else
16927   enable_haptic=yes
16928 fi
16929
16930 if test x$enable_haptic != xyes; then
16931
16932 $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
16933
16934 else
16935     SUMMARY_modules="${SUMMARY_modules} haptic"
16936 fi
16937 # Check whether --enable-power was given.
16938 if test "${enable_power+set}" = set; then :
16939   enableval=$enable_power;
16940 else
16941   enable_power=yes
16942 fi
16943
16944 if test x$enable_power != xyes; then
16945
16946 $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
16947
16948 else
16949     SUMMARY_modules="${SUMMARY_modules} power"
16950 fi
16951 # Check whether --enable-filesystem was given.
16952 if test "${enable_filesystem+set}" = set; then :
16953   enableval=$enable_filesystem;
16954 else
16955   enable_filesystem=yes
16956 fi
16957
16958 if test x$enable_filesystem != xyes; then
16959
16960 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
16961
16962 else
16963     SUMMARY_modules="${SUMMARY_modules} filesystem"
16964 fi
16965 # Check whether --enable-threads was given.
16966 if test "${enable_threads+set}" = set; then :
16967   enableval=$enable_threads;
16968 else
16969   enable_threads=yes
16970 fi
16971
16972 if test x$enable_threads != xyes; then
16973
16974 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
16975
16976 else
16977     SUMMARY_modules="${SUMMARY_modules} threads"
16978 fi
16979 # Check whether --enable-timers was given.
16980 if test "${enable_timers+set}" = set; then :
16981   enableval=$enable_timers;
16982 else
16983   enable_timers=yes
16984 fi
16985
16986 if test x$enable_timers != xyes; then
16987
16988 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
16989
16990 else
16991     SUMMARY_modules="${SUMMARY_modules} timers"
16992 fi
16993 # Check whether --enable-file was given.
16994 if test "${enable_file+set}" = set; then :
16995   enableval=$enable_file;
16996 else
16997   enable_file=yes
16998 fi
16999
17000 if test x$enable_file != xyes; then
17001
17002 $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
17003
17004 else
17005     SUMMARY_modules="${SUMMARY_modules} file"
17006 fi
17007 # Check whether --enable-loadso was given.
17008 if test "${enable_loadso+set}" = set; then :
17009   enableval=$enable_loadso;
17010 else
17011   enable_loadso=yes
17012 fi
17013
17014 if test x$enable_loadso != xyes; then
17015
17016 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
17017
17018 else
17019     SUMMARY_modules="${SUMMARY_modules} loadso"
17020 fi
17021 # Check whether --enable-cpuinfo was given.
17022 if test "${enable_cpuinfo+set}" = set; then :
17023   enableval=$enable_cpuinfo;
17024 else
17025   enable_cpuinfo=yes
17026 fi
17027
17028 if test x$enable_cpuinfo != xyes; then
17029
17030 $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
17031
17032 else
17033     SUMMARY_modules="${SUMMARY_modules} cpuinfo"
17034 fi
17035 # Check whether --enable-assembly was given.
17036 if test "${enable_assembly+set}" = set; then :
17037   enableval=$enable_assembly;
17038 else
17039   enable_assembly=yes
17040 fi
17041
17042 if test x$enable_assembly = xyes; then
17043     SUMMARY_modules="${SUMMARY_modules} assembly"
17044
17045
17046 $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
17047
17048
17049     # Make sure that we don't generate floating point code that would
17050     # cause illegal instruction exceptions on older processors
17051     case "$host" in
17052         *-*-darwin*)
17053             # Don't need to worry about Apple hardware, it's all SSE capable
17054             default_ssemath=yes
17055             ;;
17056         *64-*-*)
17057             # x86 64-bit architectures all have SSE instructions
17058             default_ssemath=yes
17059             ;;
17060         *)
17061             default_ssemath=no
17062             ;;
17063     esac
17064     # Check whether --enable-ssemath was given.
17065 if test "${enable_ssemath+set}" = set; then :
17066   enableval=$enable_ssemath;
17067 else
17068   enable_ssemath=$default_ssemath
17069 fi
17070
17071     if test x$enable_ssemath = xno; then
17072         if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
17073             EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
17074         fi
17075     fi
17076
17077         # Check whether --enable-mmx was given.
17078 if test "${enable_mmx+set}" = set; then :
17079   enableval=$enable_mmx;
17080 else
17081   enable_mmx=yes
17082 fi
17083
17084     if test x$enable_mmx = xyes; then
17085         save_CFLAGS="$CFLAGS"
17086         have_gcc_mmx=no
17087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
17088 $as_echo_n "checking for GCC -mmmx option... " >&6; }
17089         mmx_CFLAGS="-mmmx"
17090         CFLAGS="$save_CFLAGS $mmx_CFLAGS"
17091
17092         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h.  */
17094
17095         #ifdef __MINGW32__
17096         #include <_mingw.h>
17097         #ifdef __MINGW64_VERSION_MAJOR
17098         #include <intrin.h>
17099         #else
17100         #include <mmintrin.h>
17101         #endif
17102         #else
17103         #include <mmintrin.h>
17104         #endif
17105         #ifndef __MMX__
17106         #error Assembler CPP flag not enabled
17107         #endif
17108
17109 int
17110 main ()
17111 {
17112
17113
17114   ;
17115   return 0;
17116 }
17117 _ACEOF
17118 if ac_fn_c_try_compile "$LINENO"; then :
17119
17120         have_gcc_mmx=yes
17121
17122 fi
17123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17124         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
17125 $as_echo "$have_gcc_mmx" >&6; }
17126         CFLAGS="$save_CFLAGS"
17127
17128         if test x$have_gcc_mmx = xyes; then
17129             EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
17130             SUMMARY_math="${SUMMARY_math} mmx"
17131         fi
17132     fi
17133
17134     # Check whether --enable-3dnow was given.
17135 if test "${enable_3dnow+set}" = set; then :
17136   enableval=$enable_3dnow;
17137 else
17138   enable_3dnow=yes
17139 fi
17140
17141     if test x$enable_3dnow = xyes; then
17142         save_CFLAGS="$CFLAGS"
17143         have_gcc_3dnow=no
17144         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
17145 $as_echo_n "checking for GCC -m3dnow option... " >&6; }
17146         amd3dnow_CFLAGS="-m3dnow"
17147         CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
17148
17149         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h.  */
17151
17152         #include <mm3dnow.h>
17153         #ifndef __3dNOW__
17154         #error Assembler CPP flag not enabled
17155         #endif
17156
17157 int
17158 main ()
17159 {
17160
17161         void *p = 0;
17162         _m_prefetch(p);
17163
17164   ;
17165   return 0;
17166 }
17167 _ACEOF
17168 if ac_fn_c_try_link "$LINENO"; then :
17169
17170         have_gcc_3dnow=yes
17171
17172 fi
17173 rm -f core conftest.err conftest.$ac_objext \
17174     conftest$ac_exeext conftest.$ac_ext
17175         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
17176 $as_echo "$have_gcc_3dnow" >&6; }
17177         CFLAGS="$save_CFLAGS"
17178
17179         if test x$have_gcc_3dnow = xyes; then
17180             EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
17181             SUMMARY_math="${SUMMARY_math} 3dnow"
17182         fi
17183     fi
17184
17185     # Check whether --enable-sse was given.
17186 if test "${enable_sse+set}" = set; then :
17187   enableval=$enable_sse;
17188 else
17189   enable_sse=yes
17190 fi
17191
17192     if test x$enable_sse = xyes; then
17193         save_CFLAGS="$CFLAGS"
17194         have_gcc_sse=no
17195         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
17196 $as_echo_n "checking for GCC -msse option... " >&6; }
17197         sse_CFLAGS="-msse"
17198         CFLAGS="$save_CFLAGS $sse_CFLAGS"
17199
17200         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h.  */
17202
17203         #ifdef __MINGW32__
17204         #include <_mingw.h>
17205         #ifdef __MINGW64_VERSION_MAJOR
17206         #include <intrin.h>
17207         #else
17208         #include <xmmintrin.h>
17209         #endif
17210         #else
17211         #include <xmmintrin.h>
17212         #endif
17213         #ifndef __SSE__
17214         #error Assembler CPP flag not enabled
17215         #endif
17216
17217 int
17218 main ()
17219 {
17220
17221
17222   ;
17223   return 0;
17224 }
17225 _ACEOF
17226 if ac_fn_c_try_compile "$LINENO"; then :
17227
17228         have_gcc_sse=yes
17229
17230 fi
17231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17232         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
17233 $as_echo "$have_gcc_sse" >&6; }
17234         CFLAGS="$save_CFLAGS"
17235
17236         if test x$have_gcc_sse = xyes; then
17237             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
17238             SUMMARY_math="${SUMMARY_math} sse"
17239         fi
17240     fi
17241
17242     # Check whether --enable-sse2 was given.
17243 if test "${enable_sse2+set}" = set; then :
17244   enableval=$enable_sse2;
17245 else
17246   enable_sse2=$default_ssemath
17247 fi
17248
17249     if test x$enable_sse2 = xyes; then
17250         save_CFLAGS="$CFLAGS"
17251         have_gcc_sse2=no
17252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
17253 $as_echo_n "checking for GCC -msse2 option... " >&6; }
17254         sse2_CFLAGS="-msse2"
17255         CFLAGS="$save_CFLAGS $sse2_CFLAGS"
17256
17257         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258 /* end confdefs.h.  */
17259
17260         #ifdef __MINGW32__
17261         #include <_mingw.h>
17262         #ifdef __MINGW64_VERSION_MAJOR
17263         #include <intrin.h>
17264         #else
17265         #include <emmintrin.h>
17266         #endif
17267         #else
17268         #include <emmintrin.h>
17269         #endif
17270         #ifndef __SSE2__
17271         #error Assembler CPP flag not enabled
17272         #endif
17273
17274 int
17275 main ()
17276 {
17277
17278
17279   ;
17280   return 0;
17281 }
17282 _ACEOF
17283 if ac_fn_c_try_compile "$LINENO"; then :
17284
17285         have_gcc_sse2=yes
17286
17287 fi
17288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
17290 $as_echo "$have_gcc_sse2" >&6; }
17291         CFLAGS="$save_CFLAGS"
17292
17293         if test x$have_gcc_sse2 = xyes; then
17294             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
17295             SUMMARY_math="${SUMMARY_math} sse2"
17296         fi
17297     fi
17298
17299     # Check whether --enable-altivec was given.
17300 if test "${enable_altivec+set}" = set; then :
17301   enableval=$enable_altivec;
17302 else
17303   enable_altivec=yes
17304 fi
17305
17306     if test x$enable_altivec = xyes; then
17307         save_CFLAGS="$CFLAGS"
17308         have_gcc_altivec=no
17309         have_altivec_h_hdr=no
17310         altivec_CFLAGS="-maltivec"
17311         CFLAGS="$save_CFLAGS $altivec_CFLAGS"
17312
17313         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
17314 $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
17315         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17316 /* end confdefs.h.  */
17317
17318         #include <altivec.h>
17319         vector unsigned int vzero() {
17320             return vec_splat_u32(0);
17321         }
17322
17323 int
17324 main ()
17325 {
17326
17327
17328   ;
17329   return 0;
17330 }
17331 _ACEOF
17332 if ac_fn_c_try_compile "$LINENO"; then :
17333
17334         have_gcc_altivec=yes
17335         have_altivec_h_hdr=yes
17336
17337 fi
17338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17339         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17340 $as_echo "$have_gcc_altivec" >&6; }
17341
17342         if test x$have_gcc_altivec = xno; then
17343             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
17344 $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
17345             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h.  */
17347
17348             vector unsigned int vzero() {
17349                 return vec_splat_u32(0);
17350             }
17351
17352 int
17353 main ()
17354 {
17355
17356
17357   ;
17358   return 0;
17359 }
17360 _ACEOF
17361 if ac_fn_c_try_compile "$LINENO"; then :
17362
17363             have_gcc_altivec=yes
17364
17365 fi
17366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17367             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17368 $as_echo "$have_gcc_altivec" >&6; }
17369         fi
17370
17371         if test x$have_gcc_altivec = xno; then
17372             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
17373 $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
17374             altivec_CFLAGS="-faltivec"
17375             CFLAGS="$save_CFLAGS $altivec_CFLAGS"
17376             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h.  */
17378
17379             #include <altivec.h>
17380             vector unsigned int vzero() {
17381                 return vec_splat_u32(0);
17382             }
17383
17384 int
17385 main ()
17386 {
17387
17388
17389   ;
17390   return 0;
17391 }
17392 _ACEOF
17393 if ac_fn_c_try_compile "$LINENO"; then :
17394
17395             have_gcc_altivec=yes
17396             have_altivec_h_hdr=yes
17397
17398 fi
17399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17400             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17401 $as_echo "$have_gcc_altivec" >&6; }
17402         fi
17403
17404         if test x$have_gcc_altivec = xno; then
17405             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
17406 $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
17407             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408 /* end confdefs.h.  */
17409
17410             vector unsigned int vzero() {
17411                 return vec_splat_u32(0);
17412             }
17413
17414 int
17415 main ()
17416 {
17417
17418
17419   ;
17420   return 0;
17421 }
17422 _ACEOF
17423 if ac_fn_c_try_compile "$LINENO"; then :
17424
17425             have_gcc_altivec=yes
17426
17427 fi
17428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17429             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17430 $as_echo "$have_gcc_altivec" >&6; }
17431         fi
17432         CFLAGS="$save_CFLAGS"
17433
17434         if test x$have_gcc_altivec = xyes; then
17435
17436 $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
17437
17438             if test x$have_altivec_h_hdr = xyes; then
17439
17440 $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
17441
17442             fi
17443             EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
17444             SUMMARY_math="${SUMMARY_math} altivec"
17445         fi
17446     fi
17447 fi
17448
17449 CheckOSS()
17450 {
17451     # Check whether --enable-oss was given.
17452 if test "${enable_oss+set}" = set; then :
17453   enableval=$enable_oss;
17454 else
17455   enable_oss=maybe
17456 fi
17457
17458
17459     # OpenBSD "has" OSS, but it's not really for app use. They want you to
17460     #  use sndio instead. So on there, we default to disabled. You can force
17461     #  it on if you really want, though.
17462     if test x$enable_oss = xmaybe; then
17463         enable_oss=yes
17464         case "$host" in
17465             *-*-openbsd*)
17466                 enable_oss=no;;
17467         esac
17468     fi
17469
17470     if test x$enable_audio = xyes -a x$enable_oss = xyes; then
17471         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
17472 $as_echo_n "checking for OSS audio support... " >&6; }
17473         have_oss=no
17474         if test x$have_oss != xyes; then
17475             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17476 /* end confdefs.h.  */
17477
17478               #include <sys/soundcard.h>
17479
17480 int
17481 main ()
17482 {
17483
17484               int arg = SNDCTL_DSP_SETFRAGMENT;
17485
17486   ;
17487   return 0;
17488 }
17489 _ACEOF
17490 if ac_fn_c_try_compile "$LINENO"; then :
17491
17492             have_oss=yes
17493
17494 fi
17495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17496         fi
17497         if test x$have_oss != xyes; then
17498             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h.  */
17500
17501               #include <soundcard.h>
17502
17503 int
17504 main ()
17505 {
17506
17507               int arg = SNDCTL_DSP_SETFRAGMENT;
17508
17509   ;
17510   return 0;
17511 }
17512 _ACEOF
17513 if ac_fn_c_try_compile "$LINENO"; then :
17514
17515             have_oss=yes
17516
17517 $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
17518
17519
17520 fi
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17522         fi
17523         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
17524 $as_echo "$have_oss" >&6; }
17525         if test x$have_oss = xyes; then
17526             SUMMARY_audio="${SUMMARY_audio} oss"
17527
17528 $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
17529
17530             SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
17531             have_audio=yes
17532
17533             # We may need to link with ossaudio emulation library
17534             case "$host" in
17535                 *-*-openbsd*|*-*-netbsd*)
17536                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
17537             esac
17538         fi
17539     fi
17540 }
17541
17542 CheckALSA()
17543 {
17544     # Check whether --enable-alsa was given.
17545 if test "${enable_alsa+set}" = set; then :
17546   enableval=$enable_alsa;
17547 else
17548   enable_alsa=yes
17549 fi
17550
17551     if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
17552         alsa_save_CFLAGS="$CFLAGS"
17553 alsa_save_LDFLAGS="$LDFLAGS"
17554 alsa_save_LIBS="$LIBS"
17555 alsa_found=yes
17556
17557
17558 # Check whether --with-alsa-prefix was given.
17559 if test "${with_alsa_prefix+set}" = set; then :
17560   withval=$with_alsa_prefix; alsa_prefix="$withval"
17561 else
17562   alsa_prefix=""
17563 fi
17564
17565
17566
17567 # Check whether --with-alsa-inc-prefix was given.
17568 if test "${with_alsa_inc_prefix+set}" = set; then :
17569   withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
17570 else
17571   alsa_inc_prefix=""
17572 fi
17573
17574
17575 # Check whether --enable-alsatest was given.
17576 if test "${enable_alsatest+set}" = set; then :
17577   enableval=$enable_alsatest; enable_alsatest="$enableval"
17578 else
17579   enable_alsatest=yes
17580 fi
17581
17582
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
17584 $as_echo_n "checking for ALSA CFLAGS... " >&6; }
17585 if test "$alsa_inc_prefix" != "" ; then
17586         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17587         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17588 fi
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
17590 $as_echo "$ALSA_CFLAGS" >&6; }
17591
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
17593 $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
17594 if test "$alsa_prefix" != "" ; then
17595         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17596         LDFLAGS="$LDFLAGS $ALSA_LIBS"
17597 fi
17598
17599 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17600 LIBS=`echo $LIBS | sed 's/-lm//'`
17601 LIBS=`echo $LIBS | sed 's/-ldl//'`
17602 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17603 LIBS=`echo $LIBS | sed 's/  //'`
17604 LIBS="$ALSA_LIBS $LIBS"
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
17606 $as_echo "$ALSA_LIBS" >&6; }
17607
17608 min_alsa_version=0.9.0
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
17610 $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
17611 no_alsa=""
17612     alsa_min_major_version=`echo $min_alsa_version | \
17613            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17614     alsa_min_minor_version=`echo $min_alsa_version | \
17615            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17616     alsa_min_micro_version=`echo $min_alsa_version | \
17617            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17618
17619
17620 ac_ext=c
17621 ac_cpp='$CPP $CPPFLAGS'
17622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17625
17626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17627 /* end confdefs.h.  */
17628
17629 #include <alsa/asoundlib.h>
17630
17631 int
17632 main ()
17633 {
17634
17635 /* ensure backward compatibility */
17636 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17637 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17638 #endif
17639 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17640 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17641 #endif
17642 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17643 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17644 #endif
17645
17646 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
17647   exit(0);
17648 #  else
17649 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
17650 #       error not present
17651 #    endif
17652
17653 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
17654   exit(0);
17655 #   else
17656 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
17657 #          error not present
17658 #      endif
17659
17660 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17661 #        error not present
17662 #      endif
17663 #    endif
17664 #  endif
17665 exit(0);
17666
17667   ;
17668   return 0;
17669 }
17670 _ACEOF
17671 if ac_fn_c_try_compile "$LINENO"; then :
17672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
17673 $as_echo "found." >&6; }
17674 else
17675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
17676 $as_echo "not present." >&6; }
17677
17678    alsa_found=no
17679
17680 fi
17681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17682 ac_ext=c
17683 ac_cpp='$CPP $CPPFLAGS'
17684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17687
17688
17689 if test "x$enable_alsatest" = "xyes"; then
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
17691 $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
17692 if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
17693   $as_echo_n "(cached) " >&6
17694 else
17695   ac_check_lib_save_LIBS=$LIBS
17696 LIBS="-lasound  $LIBS"
17697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698 /* end confdefs.h.  */
17699
17700 /* Override any GCC internal prototype to avoid an error.
17701    Use char because int might match the return type of a GCC
17702    builtin and then its argument prototype would still apply.  */
17703 #ifdef __cplusplus
17704 extern "C"
17705 #endif
17706 char snd_ctl_open ();
17707 int
17708 main ()
17709 {
17710 return snd_ctl_open ();
17711   ;
17712   return 0;
17713 }
17714 _ACEOF
17715 if ac_fn_c_try_link "$LINENO"; then :
17716   ac_cv_lib_asound_snd_ctl_open=yes
17717 else
17718   ac_cv_lib_asound_snd_ctl_open=no
17719 fi
17720 rm -f core conftest.err conftest.$ac_objext \
17721     conftest$ac_exeext conftest.$ac_ext
17722 LIBS=$ac_check_lib_save_LIBS
17723 fi
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
17725 $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
17726 if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
17727   cat >>confdefs.h <<_ACEOF
17728 #define HAVE_LIBASOUND 1
17729 _ACEOF
17730
17731   LIBS="-lasound $LIBS"
17732
17733 else
17734
17735          alsa_found=no
17736
17737 fi
17738
17739 fi
17740
17741 if test "x$alsa_found" = "xyes" ; then
17742    have_alsa=yes
17743    LIBS=`echo $LIBS | sed 's/-lasound//g'`
17744    LIBS=`echo $LIBS | sed 's/  //'`
17745    LIBS="-lasound $LIBS"
17746 fi
17747 if test "x$alsa_found" = "xno" ; then
17748    have_alsa=no
17749    CFLAGS="$alsa_save_CFLAGS"
17750    LDFLAGS="$alsa_save_LDFLAGS"
17751    LIBS="$alsa_save_LIBS"
17752    ALSA_CFLAGS=""
17753    ALSA_LIBS=""
17754 fi
17755
17756
17757
17758
17759         # Restore all flags from before the ALSA detection runs
17760         CFLAGS="$alsa_save_CFLAGS"
17761         LDFLAGS="$alsa_save_LDFLAGS"
17762         LIBS="$alsa_save_LIBS"
17763         if test x$have_alsa = xyes; then
17764             # Check whether --enable-alsa-shared was given.
17765 if test "${enable_alsa_shared+set}" = set; then :
17766   enableval=$enable_alsa_shared;
17767 else
17768   enable_alsa_shared=yes
17769 fi
17770
17771             alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
17772
17773
17774 $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
17775
17776             SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
17777             EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
17778             if test x$have_loadso != xyes && \
17779                test x$enable_alsa_shared = xyes; then
17780                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
17781 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
17782             fi
17783             if test x$have_loadso = xyes && \
17784                test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
17785                 echo "-- dynamic libasound -> $alsa_lib"
17786
17787 cat >>confdefs.h <<_ACEOF
17788 #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
17789 _ACEOF
17790
17791                 SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
17792             else
17793                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
17794                 SUMMARY_audio="${SUMMARY_audio} alsa"
17795             fi
17796             have_audio=yes
17797         fi
17798     fi
17799 }
17800
17801 CheckESD()
17802 {
17803     # Check whether --enable-esd was given.
17804 if test "${enable_esd+set}" = set; then :
17805   enableval=$enable_esd;
17806 else
17807   enable_esd=yes
17808 fi
17809
17810     if test x$enable_audio = xyes -a x$enable_esd = xyes; then
17811
17812 # Check whether --with-esd-prefix was given.
17813 if test "${with_esd_prefix+set}" = set; then :
17814   withval=$with_esd_prefix; esd_prefix="$withval"
17815 else
17816   esd_prefix=""
17817 fi
17818
17819
17820 # Check whether --with-esd-exec-prefix was given.
17821 if test "${with_esd_exec_prefix+set}" = set; then :
17822   withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
17823 else
17824   esd_exec_prefix=""
17825 fi
17826
17827 # Check whether --enable-esdtest was given.
17828 if test "${enable_esdtest+set}" = set; then :
17829   enableval=$enable_esdtest;
17830 else
17831   enable_esdtest=yes
17832 fi
17833
17834
17835   if test x$esd_exec_prefix != x ; then
17836      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
17837      if test x${ESD_CONFIG+set} != xset ; then
17838         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
17839      fi
17840   fi
17841   if test x$esd_prefix != x ; then
17842      esd_args="$esd_args --prefix=$esd_prefix"
17843      if test x${ESD_CONFIG+set} != xset ; then
17844         ESD_CONFIG=$esd_prefix/bin/esd-config
17845      fi
17846   fi
17847
17848   # Extract the first word of "esd-config", so it can be a program name with args.
17849 set dummy esd-config; ac_word=$2
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17851 $as_echo_n "checking for $ac_word... " >&6; }
17852 if ${ac_cv_path_ESD_CONFIG+:} false; then :
17853   $as_echo_n "(cached) " >&6
17854 else
17855   case $ESD_CONFIG in
17856   [\\/]* | ?:[\\/]*)
17857   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
17858   ;;
17859   *)
17860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17861 for as_dir in $PATH
17862 do
17863   IFS=$as_save_IFS
17864   test -z "$as_dir" && as_dir=.
17865     for ac_exec_ext in '' $ac_executable_extensions; do
17866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17867     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17869     break 2
17870   fi
17871 done
17872   done
17873 IFS=$as_save_IFS
17874
17875   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
17876   ;;
17877 esac
17878 fi
17879 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
17880 if test -n "$ESD_CONFIG"; then
17881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
17882 $as_echo "$ESD_CONFIG" >&6; }
17883 else
17884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17885 $as_echo "no" >&6; }
17886 fi
17887
17888
17889   min_esd_version=0.2.8
17890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
17891 $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
17892   no_esd=""
17893   if test "$ESD_CONFIG" = "no" ; then
17894     no_esd=yes
17895   else
17896     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
17897     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
17898
17899     esd_major_version=`$ESD_CONFIG $esd_args --version | \
17900            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17901     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
17902            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17903     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
17904            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17905     if test "x$enable_esdtest" = "xyes" ; then
17906       ac_save_CFLAGS="$CFLAGS"
17907       ac_save_LIBS="$LIBS"
17908       CFLAGS="$CFLAGS $ESD_CFLAGS"
17909       LIBS="$LIBS $ESD_LIBS"
17910       rm -f conf.esdtest
17911       if test "$cross_compiling" = yes; then :
17912   echo $ac_n "cross compiling; assumed OK... $ac_c"
17913 else
17914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h.  */
17916
17917 #include <stdio.h>
17918 #include <stdlib.h>
17919 #include <string.h>
17920 #include <esd.h>
17921
17922 char*
17923 my_strdup (char *str)
17924 {
17925   char *new_str;
17926
17927   if (str)
17928     {
17929       new_str = malloc ((strlen (str) + 1) * sizeof(char));
17930       strcpy (new_str, str);
17931     }
17932   else
17933     new_str = NULL;
17934
17935   return new_str;
17936 }
17937
17938 int main ()
17939 {
17940   int major, minor, micro;
17941   char *tmp_version;
17942
17943   system ("touch conf.esdtest");
17944
17945   /* HP/UX 9 (%@#!) writes to sscanf strings */
17946   tmp_version = my_strdup("$min_esd_version");
17947   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17948      printf("%s, bad version string\n", "$min_esd_version");
17949      exit(1);
17950    }
17951
17952    if (($esd_major_version > major) ||
17953       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
17954       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
17955     {
17956       return 0;
17957     }
17958   else
17959     {
17960       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
17961       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
17962       printf("*** best to upgrade to the required version.\n");
17963       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
17964       printf("*** to point to the correct copy of esd-config, and remove the file\n");
17965       printf("*** config.cache before re-running configure\n");
17966       return 1;
17967     }
17968 }
17969
17970
17971 _ACEOF
17972 if ac_fn_c_try_run "$LINENO"; then :
17973
17974 else
17975   no_esd=yes
17976 fi
17977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17978   conftest.$ac_objext conftest.beam conftest.$ac_ext
17979 fi
17980
17981        CFLAGS="$ac_save_CFLAGS"
17982        LIBS="$ac_save_LIBS"
17983      fi
17984   fi
17985   if test "x$no_esd" = x ; then
17986      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17987 $as_echo "yes" >&6; }
17988      have_esd=yes
17989   else
17990      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17991 $as_echo "no" >&6; }
17992      if test "$ESD_CONFIG" = "no" ; then
17993        echo "*** The esd-config script installed by ESD could not be found"
17994        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
17995        echo "*** your path, or set the ESD_CONFIG environment variable to the"
17996        echo "*** full path to esd-config."
17997      else
17998        if test -f conf.esdtest ; then
17999         :
18000        else
18001           echo "*** Could not run ESD test program, checking why..."
18002           CFLAGS="$CFLAGS $ESD_CFLAGS"
18003           LIBS="$LIBS $ESD_LIBS"
18004           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h.  */
18006
18007 #include <stdio.h>
18008 #include <esd.h>
18009
18010 int
18011 main ()
18012 {
18013  return 0;
18014   ;
18015   return 0;
18016 }
18017 _ACEOF
18018 if ac_fn_c_try_link "$LINENO"; then :
18019    echo "*** The test program compiled, but did not run. This usually means"
18020           echo "*** that the run-time linker is not finding ESD or finding the wrong"
18021           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
18022           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18023           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
18024           echo "*** is required on your system"
18025           echo "***"
18026           echo "*** If you have an old version installed, it is best to remove it, although"
18027           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18028 else
18029    echo "*** The test program failed to compile or link. See the file config.log for the"
18030           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
18031           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
18032           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
18033 fi
18034 rm -f core conftest.err conftest.$ac_objext \
18035     conftest$ac_exeext conftest.$ac_ext
18036           CFLAGS="$ac_save_CFLAGS"
18037           LIBS="$ac_save_LIBS"
18038        fi
18039      fi
18040      ESD_CFLAGS=""
18041      ESD_LIBS=""
18042      have_esd=no
18043   fi
18044
18045
18046   rm -f conf.esdtest
18047
18048         if test x$have_esd = xyes; then
18049             # Check whether --enable-esd-shared was given.
18050 if test "${enable_esd_shared+set}" = set; then :
18051   enableval=$enable_esd_shared;
18052 else
18053   enable_esd_shared=yes
18054 fi
18055
18056             esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18057
18058
18059 $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
18060
18061             SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
18062             EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
18063             if test x$have_loadso != xyes && \
18064                test x$enable_esd_shared = xyes; then
18065                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
18066 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
18067             fi
18068             if test x$have_loadso = xyes && \
18069                test x$enable_esd_shared = xyes && test x$esd_lib != x; then
18070                 echo "-- dynamic libesd -> $esd_lib"
18071
18072 cat >>confdefs.h <<_ACEOF
18073 #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
18074 _ACEOF
18075
18076                 SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
18077             else
18078                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
18079                 SUMMARY_audio="${SUMMARY_audio} esd"
18080             fi
18081             have_audio=yes
18082         fi
18083     fi
18084 }
18085
18086 CheckPulseAudio()
18087 {
18088     # Check whether --enable-pulseaudio was given.
18089 if test "${enable_pulseaudio+set}" = set; then :
18090   enableval=$enable_pulseaudio;
18091 else
18092   enable_pulseaudio=yes
18093 fi
18094
18095     if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
18096         audio_pulseaudio=no
18097
18098         PULSEAUDIO_REQUIRED_VERSION=0.9
18099
18100         # Extract the first word of "pkg-config", so it can be a program name with args.
18101 set dummy pkg-config; ac_word=$2
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18103 $as_echo_n "checking for $ac_word... " >&6; }
18104 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18105   $as_echo_n "(cached) " >&6
18106 else
18107   case $PKG_CONFIG in
18108   [\\/]* | ?:[\\/]*)
18109   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18110   ;;
18111   *)
18112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18113 for as_dir in $PATH
18114 do
18115   IFS=$as_save_IFS
18116   test -z "$as_dir" && as_dir=.
18117     for ac_exec_ext in '' $ac_executable_extensions; do
18118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18119     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18121     break 2
18122   fi
18123 done
18124   done
18125 IFS=$as_save_IFS
18126
18127   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18128   ;;
18129 esac
18130 fi
18131 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18132 if test -n "$PKG_CONFIG"; then
18133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18134 $as_echo "$PKG_CONFIG" >&6; }
18135 else
18136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18137 $as_echo "no" >&6; }
18138 fi
18139
18140
18141         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
18142 $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
18143         if test x$PKG_CONFIG != xno; then
18144         if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
18145                 PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
18146                 PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
18147                 audio_pulseaudio=yes
18148             fi
18149         fi
18150         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
18151 $as_echo "$audio_pulseaudio" >&6; }
18152
18153         if test x$audio_pulseaudio = xyes; then
18154             # Check whether --enable-pulseaudio-shared was given.
18155 if test "${enable_pulseaudio_shared+set}" = set; then :
18156   enableval=$enable_pulseaudio_shared;
18157 else
18158   enable_pulseaudio_shared=yes
18159 fi
18160
18161             pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18162
18163
18164 $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
18165
18166             SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
18167             EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
18168             if test x$have_loadso != xyes && \
18169                test x$enable_pulseaudio_shared = xyes; then
18170                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
18171 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
18172             fi
18173             if test x$have_loadso = xyes && \
18174                test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
18175                 echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
18176
18177 cat >>confdefs.h <<_ACEOF
18178 #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
18179 _ACEOF
18180
18181                 SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
18182
18183                 case "$host" in
18184                     # On Solaris, pulseaudio must be linked deferred explicitly
18185                     # to prevent undefined symbol failures.
18186                     *-*-solaris*)
18187                         PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
18188                         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
18189                 esac
18190             else
18191                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
18192                 SUMMARY_audio="${SUMMARY_audio} pulse"
18193             fi
18194             have_audio=yes
18195         fi
18196     fi
18197 }
18198
18199 CheckARTSC()
18200 {
18201     # Check whether --enable-arts was given.
18202 if test "${enable_arts+set}" = set; then :
18203   enableval=$enable_arts;
18204 else
18205   enable_arts=yes
18206 fi
18207
18208     if test x$enable_audio = xyes -a x$enable_arts = xyes; then
18209         # Extract the first word of "artsc-config", so it can be a program name with args.
18210 set dummy artsc-config; ac_word=$2
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18212 $as_echo_n "checking for $ac_word... " >&6; }
18213 if ${ac_cv_path_ARTSCONFIG+:} false; then :
18214   $as_echo_n "(cached) " >&6
18215 else
18216   case $ARTSCONFIG in
18217   [\\/]* | ?:[\\/]*)
18218   ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
18219   ;;
18220   *)
18221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18222 for as_dir in $PATH
18223 do
18224   IFS=$as_save_IFS
18225   test -z "$as_dir" && as_dir=.
18226     for ac_exec_ext in '' $ac_executable_extensions; do
18227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18228     ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
18229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18230     break 2
18231   fi
18232 done
18233   done
18234 IFS=$as_save_IFS
18235
18236   ;;
18237 esac
18238 fi
18239 ARTSCONFIG=$ac_cv_path_ARTSCONFIG
18240 if test -n "$ARTSCONFIG"; then
18241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
18242 $as_echo "$ARTSCONFIG" >&6; }
18243 else
18244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18245 $as_echo "no" >&6; }
18246 fi
18247
18248
18249         if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
18250             : # arts isn't installed
18251         else
18252             ARTS_CFLAGS=`$ARTSCONFIG --cflags`
18253             ARTS_LIBS=`$ARTSCONFIG --libs`
18254             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
18255 $as_echo_n "checking for aRts development environment... " >&6; }
18256             audio_arts=no
18257             save_CFLAGS="$CFLAGS"
18258             CFLAGS="$CFLAGS $ARTS_CFLAGS"
18259             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18260 /* end confdefs.h.  */
18261
18262              #include <artsc.h>
18263
18264 int
18265 main ()
18266 {
18267
18268              arts_stream_t stream;
18269
18270   ;
18271   return 0;
18272 }
18273 _ACEOF
18274 if ac_fn_c_try_compile "$LINENO"; then :
18275
18276             audio_arts=yes
18277
18278 fi
18279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18280             CFLAGS="$save_CFLAGS"
18281             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
18282 $as_echo "$audio_arts" >&6; }
18283             if test x$audio_arts = xyes; then
18284                 # Check whether --enable-arts-shared was given.
18285 if test "${enable_arts_shared+set}" = set; then :
18286   enableval=$enable_arts_shared;
18287 else
18288   enable_arts_shared=yes
18289 fi
18290
18291                 arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18292
18293
18294 $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
18295
18296                 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
18297                 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
18298                 if test x$have_loadso != xyes && \
18299                    test x$enable_arts_shared = xyes; then
18300                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
18301 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
18302                 fi
18303                 if test x$have_loadso = xyes && \
18304                    test x$enable_arts_shared = xyes && test x$arts_lib != x; then
18305                     echo "-- dynamic libartsc -> $arts_lib"
18306
18307 cat >>confdefs.h <<_ACEOF
18308 #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
18309 _ACEOF
18310
18311                     SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
18312                 else
18313                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
18314                     SUMMARY_audio="${SUMMARY_audio} arts"
18315                 fi
18316                 have_audio=yes
18317             fi
18318         fi
18319     fi
18320 }
18321
18322 CheckNAS()
18323 {
18324     # Check whether --enable-nas was given.
18325 if test "${enable_nas+set}" = set; then :
18326   enableval=$enable_nas;
18327 else
18328   enable_nas=yes
18329 fi
18330
18331     if test x$enable_audio = xyes -a x$enable_nas = xyes; then
18332         ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
18333 if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
18334   have_nas_hdr=yes
18335 fi
18336
18337
18338         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
18339 $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
18340 if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
18341   $as_echo_n "(cached) " >&6
18342 else
18343   ac_check_lib_save_LIBS=$LIBS
18344 LIBS="-laudio  $LIBS"
18345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h.  */
18347
18348 /* Override any GCC internal prototype to avoid an error.
18349    Use char because int might match the return type of a GCC
18350    builtin and then its argument prototype would still apply.  */
18351 #ifdef __cplusplus
18352 extern "C"
18353 #endif
18354 char AuOpenServer ();
18355 int
18356 main ()
18357 {
18358 return AuOpenServer ();
18359   ;
18360   return 0;
18361 }
18362 _ACEOF
18363 if ac_fn_c_try_link "$LINENO"; then :
18364   ac_cv_lib_audio_AuOpenServer=yes
18365 else
18366   ac_cv_lib_audio_AuOpenServer=no
18367 fi
18368 rm -f core conftest.err conftest.$ac_objext \
18369     conftest$ac_exeext conftest.$ac_ext
18370 LIBS=$ac_check_lib_save_LIBS
18371 fi
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
18373 $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
18374 if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
18375   have_nas_lib=yes
18376 fi
18377
18378
18379         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
18380 $as_echo_n "checking for NAS audio support... " >&6; }
18381         have_nas=no
18382
18383         if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
18384             have_nas=yes
18385             NAS_LIBS="-laudio"
18386
18387         elif test -r /usr/X11R6/include/audio/audiolib.h; then
18388             have_nas=yes
18389             NAS_CFLAGS="-I/usr/X11R6/include/"
18390             NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
18391
18392         fi
18393
18394         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
18395 $as_echo "$have_nas" >&6; }
18396
18397         if test x$have_nas = xyes; then
18398             # Check whether --enable-nas-shared was given.
18399 if test "${enable_nas_shared+set}" = set; then :
18400   enableval=$enable_nas_shared;
18401 else
18402   enable_nas_shared=yes
18403 fi
18404
18405             nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18406
18407             if test x$have_loadso != xyes && \
18408                test x$enable_nas_shared = xyes; then
18409                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
18410 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
18411             fi
18412             if test x$have_loadso = xyes && \
18413                test x$enable_nas_shared = xyes && test x$nas_lib != x; then
18414                 echo "-- dynamic libaudio -> $nas_lib"
18415
18416 cat >>confdefs.h <<_ACEOF
18417 #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
18418 _ACEOF
18419
18420                 SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
18421             else
18422                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
18423                 SUMMARY_audio="${SUMMARY_audio} nas"
18424             fi
18425
18426
18427 $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
18428
18429             SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
18430             EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
18431             have_audio=yes
18432         fi
18433     fi
18434 }
18435
18436 CheckSNDIO()
18437 {
18438     # Check whether --enable-sndio was given.
18439 if test "${enable_sndio+set}" = set; then :
18440   enableval=$enable_sndio;
18441 else
18442   enable_sndio=yes
18443 fi
18444
18445     if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
18446         ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
18447 if test "x$ac_cv_header_sndio_h" = xyes; then :
18448   have_sndio_hdr=yes
18449 fi
18450
18451
18452         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
18453 $as_echo_n "checking for sio_open in -lsndio... " >&6; }
18454 if ${ac_cv_lib_sndio_sio_open+:} false; then :
18455   $as_echo_n "(cached) " >&6
18456 else
18457   ac_check_lib_save_LIBS=$LIBS
18458 LIBS="-lsndio  $LIBS"
18459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18460 /* end confdefs.h.  */
18461
18462 /* Override any GCC internal prototype to avoid an error.
18463    Use char because int might match the return type of a GCC
18464    builtin and then its argument prototype would still apply.  */
18465 #ifdef __cplusplus
18466 extern "C"
18467 #endif
18468 char sio_open ();
18469 int
18470 main ()
18471 {
18472 return sio_open ();
18473   ;
18474   return 0;
18475 }
18476 _ACEOF
18477 if ac_fn_c_try_link "$LINENO"; then :
18478   ac_cv_lib_sndio_sio_open=yes
18479 else
18480   ac_cv_lib_sndio_sio_open=no
18481 fi
18482 rm -f core conftest.err conftest.$ac_objext \
18483     conftest$ac_exeext conftest.$ac_ext
18484 LIBS=$ac_check_lib_save_LIBS
18485 fi
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
18487 $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
18488 if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
18489   have_sndio_lib=yes
18490 fi
18491
18492
18493         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
18494 $as_echo_n "checking for sndio audio support... " >&6; }
18495         have_sndio=no
18496
18497         if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
18498             have_sndio=yes
18499             SNDIO_LIBS="-lsndio"
18500         fi
18501
18502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
18503 $as_echo "$have_sndio" >&6; }
18504
18505         if test x$have_sndio = xyes; then
18506             # Check whether --enable-sndio-shared was given.
18507 if test "${enable_sndio_shared+set}" = set; then :
18508   enableval=$enable_sndio_shared;
18509 else
18510   enable_sndio_shared=yes
18511 fi
18512
18513             sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18514
18515             if test x$have_loadso != xyes && \
18516                test x$enable_sndio_shared = xyes; then
18517                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
18518 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
18519             fi
18520             if test x$have_loadso = xyes && \
18521                test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
18522                 echo "-- dynamic libsndio -> $sndio_lib"
18523
18524 cat >>confdefs.h <<_ACEOF
18525 #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
18526 _ACEOF
18527
18528                 SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
18529             else
18530                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
18531                 SUMMARY_audio="${SUMMARY_audio} sndio"
18532             fi
18533
18534
18535 $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
18536
18537             SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
18538             EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
18539             have_audio=yes
18540         fi
18541     fi
18542 }
18543
18544 CheckDiskAudio()
18545 {
18546     # Check whether --enable-diskaudio was given.
18547 if test "${enable_diskaudio+set}" = set; then :
18548   enableval=$enable_diskaudio;
18549 else
18550   enable_diskaudio=yes
18551 fi
18552
18553     if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
18554
18555 $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
18556
18557         SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
18558         SUMMARY_audio="${SUMMARY_audio} disk"
18559     fi
18560 }
18561
18562 CheckDummyAudio()
18563 {
18564     # Check whether --enable-dummyaudio was given.
18565 if test "${enable_dummyaudio+set}" = set; then :
18566   enableval=$enable_dummyaudio;
18567 else
18568   enable_dummyaudio=yes
18569 fi
18570
18571     if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
18572
18573 $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
18574
18575         SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
18576         SUMMARY_audio="${SUMMARY_audio} dummy"
18577     fi
18578 }
18579
18580 CheckVisibilityHidden()
18581 {
18582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
18583 $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
18584     have_gcc_fvisibility=no
18585
18586     visibility_CFLAGS="-fvisibility=hidden"
18587     save_CFLAGS="$CFLAGS"
18588     CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
18589     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h.  */
18591
18592     #if !defined(__GNUC__) || __GNUC__ < 4
18593     #error SDL only uses visibility attributes in GCC 4 or newer
18594     #endif
18595
18596 int
18597 main ()
18598 {
18599
18600
18601   ;
18602   return 0;
18603 }
18604 _ACEOF
18605 if ac_fn_c_try_compile "$LINENO"; then :
18606
18607     have_gcc_fvisibility=yes
18608
18609 fi
18610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
18612 $as_echo "$have_gcc_fvisibility" >&6; }
18613     CFLAGS="$save_CFLAGS"
18614
18615     if test x$have_gcc_fvisibility = xyes; then
18616         EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
18617     fi
18618 }
18619
18620 CheckStackBoundary()
18621 {
18622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
18623 $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
18624     have_gcc_preferred_stack_boundary=no
18625
18626     save_CFLAGS="$CFLAGS"
18627     CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
18628     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18629 /* end confdefs.h.  */
18630
18631     int x = 0;
18632
18633 int
18634 main ()
18635 {
18636
18637
18638   ;
18639   return 0;
18640 }
18641 _ACEOF
18642 if ac_fn_c_try_compile "$LINENO"; then :
18643
18644     have_gcc_preferred_stack_boundary=yes
18645
18646 fi
18647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18648     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
18649 $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
18650     CFLAGS="$save_CFLAGS"
18651
18652     if test x$have_gcc_preferred_stack_boundary = xyes; then
18653         EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
18654     fi
18655 }
18656
18657 CheckWarnAll()
18658 {
18659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
18660 $as_echo_n "checking for GCC -Wall option... " >&6; }
18661     have_gcc_Wall=no
18662
18663     save_CFLAGS="$CFLAGS"
18664     CFLAGS="$save_CFLAGS -Wall"
18665     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18666 /* end confdefs.h.  */
18667
18668     int x = 0;
18669
18670 int
18671 main ()
18672 {
18673
18674
18675   ;
18676   return 0;
18677 }
18678 _ACEOF
18679 if ac_fn_c_try_compile "$LINENO"; then :
18680
18681     have_gcc_Wall=yes
18682
18683 fi
18684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
18686 $as_echo "$have_gcc_Wall" >&6; }
18687     CFLAGS="$save_CFLAGS"
18688
18689     if test x$have_gcc_Wall = xyes; then
18690         EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
18691
18692                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
18693 $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
18694         need_gcc_Wno_multichar=no
18695         case "$host" in
18696             *-*-haiku*)
18697                 need_gcc_Wno_multichar=yes
18698                 ;;
18699         esac
18700         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
18701 $as_echo "$need_gcc_Wno_multichar" >&6; }
18702         if test x$need_gcc_Wno_multichar = xyes; then
18703             EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
18704         fi
18705     fi
18706 }
18707
18708 CheckWayland()
18709 {
18710     # Check whether --enable-video-wayland was given.
18711 if test "${enable_video_wayland+set}" = set; then :
18712   enableval=$enable_video_wayland;
18713 else
18714   enable_video_wayland=yes
18715 fi
18716
18717
18718     # Check whether --enable-video-wayland-qt-touch was given.
18719 if test "${enable_video_wayland_qt_touch+set}" = set; then :
18720   enableval=$enable_video_wayland_qt_touch;
18721 else
18722   enable_video_wayland_qt_touch=yes
18723 fi
18724
18725
18726     if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
18727         # Extract the first word of "pkg-config", so it can be a program name with args.
18728 set dummy pkg-config; ac_word=$2
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18730 $as_echo_n "checking for $ac_word... " >&6; }
18731 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18732   $as_echo_n "(cached) " >&6
18733 else
18734   case $PKG_CONFIG in
18735   [\\/]* | ?:[\\/]*)
18736   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18737   ;;
18738   *)
18739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18740 for as_dir in $PATH
18741 do
18742   IFS=$as_save_IFS
18743   test -z "$as_dir" && as_dir=.
18744     for ac_exec_ext in '' $ac_executable_extensions; do
18745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18746     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18748     break 2
18749   fi
18750 done
18751   done
18752 IFS=$as_save_IFS
18753
18754   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18755   ;;
18756 esac
18757 fi
18758 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18759 if test -n "$PKG_CONFIG"; then
18760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18761 $as_echo "$PKG_CONFIG" >&6; }
18762 else
18763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18764 $as_echo "no" >&6; }
18765 fi
18766
18767
18768         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
18769 $as_echo_n "checking for Wayland support... " >&6; }
18770         video_wayland=no
18771         if  test x$PKG_CONFIG != xno && \
18772             test x$video_opengl_egl = xyes && \
18773             test x$video_opengles_v2 = xyes; then
18774             if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon xdg-shell-client text-client tizen-extension-client ; then
18775                 WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon xdg-shell-client text-client tizen-extension-client`
18776                 WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon xdg-shell-client text-client tizen-extension-client`
18777                 video_wayland=yes
18778             fi
18779         fi
18780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
18781 $as_echo "$video_wayland" >&6; }
18782
18783         if test x$video_wayland = xyes; then
18784
18785 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
18786
18787             if test x$enable_video_wayland_qt_touch = xyes; then
18788
18789 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
18790
18791             fi
18792             SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
18793             EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
18794             # Check whether --enable-wayland-shared was given.
18795 if test "${enable_wayland_shared+set}" = set; then :
18796   enableval=$enable_wayland_shared;
18797 else
18798   enable_wayland_shared=maybe
18799 fi
18800
18801
18802                         case "$host" in
18803                 *)
18804                     wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18805                     wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18806                     if test x$wayland_egl_lib = x; then
18807                                                 wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18808                     fi
18809                     wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18810                     xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18811                     xdg_shell_client_lib=`find_lib "libxdg-shell-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18812                     text_client_lib=`find_lib "libtext-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18813                     tizen_extension_client_lib=`find_lib "libtizen-extension-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18814                     ;;
18815             esac
18816
18817             if test x$enable_wayland_shared = xmaybe; then
18818                 enable_wayland_shared=yes
18819             fi
18820             if test x$have_loadso != xyes && \
18821                test x$enable_wayland_shared = xyes; then
18822                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
18823 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
18824                 enable_wayland_shared=no
18825             fi
18826             if test x$have_loadso = xyes && \
18827                test x$enable_wayland_shared = xyes && \
18828                test x$wayland_client_lib != x && \
18829                test x$wayland_egl_lib != x && \
18830                test x$wayland_cursor_lib != x && \
18831                test x$xdg_shell_client_lib != x && \
18832                test x$text_client_lib != x && \
18833                test x$tizen_extension_client_lib != x && \
18834                test x$xkbcommon_lib != x; then
18835                 echo "-- dynamic libwayland-client -> $wayland_client_lib"
18836                 echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
18837                 echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
18838                 echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
18839                 echo "-- dynamic libxdg_shell_client -> $xdg_shell_client_lib"
18840                 echo "-- dynamic libtext_client -> $xtext_client_lib"
18841                 echo "-- dynamic libtizen_extension_client -> $xtizen_extension_client_lib"
18842
18843 cat >>confdefs.h <<_ACEOF
18844 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
18845 _ACEOF
18846
18847
18848 cat >>confdefs.h <<_ACEOF
18849 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
18850 _ACEOF
18851
18852
18853 cat >>confdefs.h <<_ACEOF
18854 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
18855 _ACEOF
18856
18857
18858 cat >>confdefs.h <<_ACEOF
18859 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
18860 _ACEOF
18861
18862
18863 cat >>confdefs.h <<_ACEOF
18864 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XDGSHELLCLIENT "$xdg_shell_client_lib"
18865 _ACEOF
18866
18867
18868 cat >>confdefs.h <<_ACEOF
18869 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_TEXTCLIENT "$text_client_lib"
18870 _ACEOF
18871
18872
18873 cat >>confdefs.h <<_ACEOF
18874 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_TIZENEXTENSIONCLIENT "$tizen_extension_client_lib"
18875 _ACEOF
18876
18877                 SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
18878             else
18879                 enable_wayland_shared=no
18880                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
18881                 SUMMARY_video="${SUMMARY_video} wayland"
18882             fi
18883             have_video=yes
18884         fi
18885     fi
18886 }
18887
18888 CheckTizen()
18889 {
18890     # Check whether --enable-video-tizen was given.
18891 if test "${enable_video_tizen+set}" = set; then :
18892   enableval=$enable_video_tizen;
18893 else
18894   enable_video_tizen=yes
18895 fi
18896
18897
18898     if test x$enable_video = xyes -a x$enable_video_tizen = xyes; then
18899         # Extract the first word of "pkg-config", so it can be a program name with args.
18900 set dummy pkg-config; ac_word=$2
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18902 $as_echo_n "checking for $ac_word... " >&6; }
18903 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18904   $as_echo_n "(cached) " >&6
18905 else
18906   case $PKG_CONFIG in
18907   [\\/]* | ?:[\\/]*)
18908   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18909   ;;
18910   *)
18911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18912 for as_dir in $PATH
18913 do
18914   IFS=$as_save_IFS
18915   test -z "$as_dir" && as_dir=.
18916     for ac_exec_ext in '' $ac_executable_extensions; do
18917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18918     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18920     break 2
18921   fi
18922 done
18923   done
18924 IFS=$as_save_IFS
18925
18926   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18927   ;;
18928 esac
18929 fi
18930 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18931 if test -n "$PKG_CONFIG"; then
18932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18933 $as_echo "$PKG_CONFIG" >&6; }
18934 else
18935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18936 $as_echo "no" >&6; }
18937 fi
18938
18939
18940         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tizen support" >&5
18941 $as_echo_n "checking for Tizen support... " >&6; }
18942         video_tizen=no
18943         if  test x$PKG_CONFIG != xno && \
18944             test x$video_opengl_egl = xyes && \
18945             test x$video_opengles_v2 = xyes; then
18946             if $PKG_CONFIG --exists wayland-client wayland-egl ecore ecore-wayland eina capi-appfw-application capi-system-system-settings ecore-input dlog ecore-imf libdrm ecore-ipc; then
18947                 TIZEN_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl ecore ecore-wayland eina capi-appfw-application capi-system-system-settings ecore-input dlog ecore-imf libdrm aul ecore-ipc`
18948                 TIZEN_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl ecore ecore-wayland eina capi-appfw-application capi-system-system-settings ecore-input dlog ecore-imf libdrm aul ecore-ipc`
18949                 video_tizen=yes
18950             fi
18951         fi
18952
18953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_tizen" >&5
18954 $as_echo "$video_tizen" >&6; }
18955
18956         if test x$video_tizen = xyes; then
18957
18958 $as_echo "#define SDL_VIDEO_DRIVER_TIZEN 1" >>confdefs.h
18959
18960             SOURCES="$SOURCES $srcdir/src/video/tizen/*.c"
18961             SOURCES="$SOURCES $srcdir/src/core/tizen/*.c"
18962             SDLMAIN_SOURCES="$srcdir/src/main/tizen/*.c"
18963
18964             SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
18965             SDL_LIBS="-lSDL2main $SDL_LIBS"
18966
18967             EXTRA_CFLAGS="$EXTRA_CFLAGS $TIZEN_CFLAGS -DTIZEN"
18968             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $TIZEN_LIBS"
18969             SUMMARY_video="${SUMMARY_video} tizen"
18970             have_video=yes
18971         fi
18972     fi
18973 }
18974
18975 CheckMir()
18976 {
18977     # Check whether --enable-video-mir was given.
18978 if test "${enable_video_mir+set}" = set; then :
18979   enableval=$enable_video_mir;
18980 else
18981   enable_video_mir=yes
18982 fi
18983
18984
18985     if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
18986         # Extract the first word of "pkg-config", so it can be a program name with args.
18987 set dummy pkg-config; ac_word=$2
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18989 $as_echo_n "checking for $ac_word... " >&6; }
18990 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18991   $as_echo_n "(cached) " >&6
18992 else
18993   case $PKG_CONFIG in
18994   [\\/]* | ?:[\\/]*)
18995   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18996   ;;
18997   *)
18998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18999 for as_dir in $PATH
19000 do
19001   IFS=$as_save_IFS
19002   test -z "$as_dir" && as_dir=.
19003     for ac_exec_ext in '' $ac_executable_extensions; do
19004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19005     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19007     break 2
19008   fi
19009 done
19010   done
19011 IFS=$as_save_IFS
19012
19013   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19014   ;;
19015 esac
19016 fi
19017 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19018 if test -n "$PKG_CONFIG"; then
19019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19020 $as_echo "$PKG_CONFIG" >&6; }
19021 else
19022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19023 $as_echo "no" >&6; }
19024 fi
19025
19026
19027         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
19028 $as_echo_n "checking for Mir support... " >&6; }
19029         video_mir=no
19030         if test x$PKG_CONFIG != xno; then
19031             if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
19032                 MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
19033                 MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
19034                 save_CFLAGS="$CFLAGS"
19035                 CFLAGS="$save_CFLAGS $MIR_CFLAGS"
19036
19037                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19038 /* end confdefs.h.  */
19039
19040                 #include <mir_toolkit/mir_client_library.h>
19041
19042 int
19043 main ()
19044 {
19045
19046                     MirMotionToolType tool = mir_motion_tool_type_mouse;
19047
19048   ;
19049   return 0;
19050 }
19051 _ACEOF
19052 if ac_fn_c_try_compile "$LINENO"; then :
19053
19054                 video_mir=yes
19055
19056 fi
19057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19058                 CFLAGS="$save_CFLAGS"
19059             fi
19060         fi
19061         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
19062 $as_echo "$video_mir" >&6; }
19063
19064         if test x$video_mir = xyes; then
19065
19066 $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
19067
19068             SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
19069             EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
19070             # Check whether --enable-mir-shared was given.
19071 if test "${enable_mir_shared+set}" = set; then :
19072   enableval=$enable_mir_shared;
19073 else
19074   enable_mir_shared=maybe
19075 fi
19076
19077
19078                         case "$host" in
19079                 *)
19080                     mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19081                     xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19082                     ;;
19083             esac
19084
19085             if test x$enable_mir_shared = xmaybe; then
19086                 enable_mir_shared=yes
19087             fi
19088             if test x$have_loadso != xyes && \
19089                test x$enable_mir_shared = xyes; then
19090                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
19091 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
19092                 enable_mir_shared=no
19093             fi
19094             if test x$have_loadso = xyes && \
19095                test x$enable_mir_shared = xyes && \
19096                test x$mirclient_lib != x && \
19097                test x$xkbcommon_lib != x; then
19098                 echo "-- dynamic libmirclient -> $mirclient_lib"
19099                 echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
19100
19101 cat >>confdefs.h <<_ACEOF
19102 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
19103 _ACEOF
19104
19105
19106 cat >>confdefs.h <<_ACEOF
19107 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
19108 _ACEOF
19109
19110                 SUMMARY_video="${SUMMARY_video} mir(dynamic)"
19111             else
19112                 enable_mir_shared=no
19113                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
19114                 SUMMARY_video="${SUMMARY_video} mir"
19115             fi
19116             have_video=yes
19117         fi
19118     fi
19119 }
19120
19121 CheckNativeClient()
19122 {
19123         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19124 /* end confdefs.h.  */
19125
19126           #if !defined(__native_client__)
19127           #error "NO NACL"
19128           #endif
19129
19130 int
19131 main ()
19132 {
19133
19134
19135   ;
19136   return 0;
19137 }
19138 _ACEOF
19139 if ac_fn_c_try_compile "$LINENO"; then :
19140
19141         $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
19142
19143         $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
19144
19145
19146 $as_echo "#define HAVE_POW 1" >>confdefs.h
19147
19148
19149 $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
19150
19151
19152 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
19153
19154
19155 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
19156
19157
19158         SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
19159
19160         SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
19161         SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
19162         SUMMARY_audio="${SUMMARY_audio} nacl"
19163         SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
19164         SUMMARY_video="${SUMMARY_video} nacl opengles2"
19165
19166 fi
19167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19168 }
19169
19170
19171 CheckX11()
19172 {
19173
19174
19175     # Check whether --enable-video-x11 was given.
19176 if test "${enable_video_x11+set}" = set; then :
19177   enableval=$enable_video_x11;
19178 else
19179   enable_video_x11=yes
19180 fi
19181
19182     if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
19183         case "$host" in
19184             *-*-darwin*)
19185                 # This isn't necessary for X11, but fixes GLX detection
19186                 if test "x$x_includes" = xNONE && \
19187                    test "x$x_libraries" = xNONE && \
19188                    test -d /usr/X11R6/include && \
19189                    test -d /usr/X11R6/lib; then
19190                     x_includes="/usr/X11R6/include"
19191                     x_libraries="/usr/X11R6/lib"
19192                 fi
19193                 ;;
19194         esac
19195         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19196 $as_echo_n "checking for X... " >&6; }
19197
19198
19199 # Check whether --with-x was given.
19200 if test "${with_x+set}" = set; then :
19201   withval=$with_x;
19202 fi
19203
19204 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19205 if test "x$with_x" = xno; then
19206   # The user explicitly disabled X.
19207   have_x=disabled
19208 else
19209   case $x_includes,$x_libraries in #(
19210     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
19211     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
19212   $as_echo_n "(cached) " >&6
19213 else
19214   # One or both of the vars are not set, and there is no cached value.
19215 ac_x_includes=no ac_x_libraries=no
19216 rm -f -r conftest.dir
19217 if mkdir conftest.dir; then
19218   cd conftest.dir
19219   cat >Imakefile <<'_ACEOF'
19220 incroot:
19221         @echo incroot='${INCROOT}'
19222 usrlibdir:
19223         @echo usrlibdir='${USRLIBDIR}'
19224 libdir:
19225         @echo libdir='${LIBDIR}'
19226 _ACEOF
19227   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19228     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
19229     for ac_var in incroot usrlibdir libdir; do
19230       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19231     done
19232     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19233     for ac_extension in a so sl dylib la dll; do
19234       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19235          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19236         ac_im_usrlibdir=$ac_im_libdir; break
19237       fi
19238     done
19239     # Screen out bogus values from the imake configuration.  They are
19240     # bogus both because they are the default anyway, and because
19241     # using them would break gcc on systems where it needs fixed includes.
19242     case $ac_im_incroot in
19243         /usr/include) ac_x_includes= ;;
19244         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19245     esac
19246     case $ac_im_usrlibdir in
19247         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19248         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19249     esac
19250   fi
19251   cd ..
19252   rm -f -r conftest.dir
19253 fi
19254
19255 # Standard set of common directories for X headers.
19256 # Check X11 before X11Rn because it is often a symlink to the current release.
19257 ac_x_header_dirs='
19258 /usr/X11/include
19259 /usr/X11R7/include
19260 /usr/X11R6/include
19261 /usr/X11R5/include
19262 /usr/X11R4/include
19263
19264 /usr/include/X11
19265 /usr/include/X11R7
19266 /usr/include/X11R6
19267 /usr/include/X11R5
19268 /usr/include/X11R4
19269
19270 /usr/local/X11/include
19271 /usr/local/X11R7/include
19272 /usr/local/X11R6/include
19273 /usr/local/X11R5/include
19274 /usr/local/X11R4/include
19275
19276 /usr/local/include/X11
19277 /usr/local/include/X11R7
19278 /usr/local/include/X11R6
19279 /usr/local/include/X11R5
19280 /usr/local/include/X11R4
19281
19282 /usr/X386/include
19283 /usr/x386/include
19284 /usr/XFree86/include/X11
19285
19286 /usr/include
19287 /usr/local/include
19288 /usr/unsupported/include
19289 /usr/athena/include
19290 /usr/local/x11r5/include
19291 /usr/lpp/Xamples/include
19292
19293 /usr/openwin/include
19294 /usr/openwin/share/include'
19295
19296 if test "$ac_x_includes" = no; then
19297   # Guess where to find include files, by looking for Xlib.h.
19298   # First, try using that file with no special directory specified.
19299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19300 /* end confdefs.h.  */
19301 #include <X11/Xlib.h>
19302 _ACEOF
19303 if ac_fn_c_try_cpp "$LINENO"; then :
19304   # We can compile using X headers with no special include directory.
19305 ac_x_includes=
19306 else
19307   for ac_dir in $ac_x_header_dirs; do
19308   if test -r "$ac_dir/X11/Xlib.h"; then
19309     ac_x_includes=$ac_dir
19310     break
19311   fi
19312 done
19313 fi
19314 rm -f conftest.err conftest.i conftest.$ac_ext
19315 fi # $ac_x_includes = no
19316
19317 if test "$ac_x_libraries" = no; then
19318   # Check for the libraries.
19319   # See if we find them without any special options.
19320   # Don't add to $LIBS permanently.
19321   ac_save_LIBS=$LIBS
19322   LIBS="-lX11 $LIBS"
19323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19324 /* end confdefs.h.  */
19325 #include <X11/Xlib.h>
19326 int
19327 main ()
19328 {
19329 XrmInitialize ()
19330   ;
19331   return 0;
19332 }
19333 _ACEOF
19334 if ac_fn_c_try_link "$LINENO"; then :
19335   LIBS=$ac_save_LIBS
19336 # We can link X programs with no special library path.
19337 ac_x_libraries=
19338 else
19339   LIBS=$ac_save_LIBS
19340 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19341 do
19342   # Don't even attempt the hair of trying to link an X program!
19343   for ac_extension in a so sl dylib la dll; do
19344     if test -r "$ac_dir/libX11.$ac_extension"; then
19345       ac_x_libraries=$ac_dir
19346       break 2
19347     fi
19348   done
19349 done
19350 fi
19351 rm -f core conftest.err conftest.$ac_objext \
19352     conftest$ac_exeext conftest.$ac_ext
19353 fi # $ac_x_libraries = no
19354
19355 case $ac_x_includes,$ac_x_libraries in #(
19356   no,* | *,no | *\'*)
19357     # Didn't find X, or a directory has "'" in its name.
19358     ac_cv_have_x="have_x=no";; #(
19359   *)
19360     # Record where we found X for the cache.
19361     ac_cv_have_x="have_x=yes\
19362         ac_x_includes='$ac_x_includes'\
19363         ac_x_libraries='$ac_x_libraries'"
19364 esac
19365 fi
19366 ;; #(
19367     *) have_x=yes;;
19368   esac
19369   eval "$ac_cv_have_x"
19370 fi # $with_x != no
19371
19372 if test "$have_x" != yes; then
19373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19374 $as_echo "$have_x" >&6; }
19375   no_x=yes
19376 else
19377   # If each of the values was on the command line, it overrides each guess.
19378   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19379   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19380   # Update the cache value to reflect the command line values.
19381   ac_cv_have_x="have_x=yes\
19382         ac_x_includes='$x_includes'\
19383         ac_x_libraries='$x_libraries'"
19384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19385 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19386 fi
19387
19388         if test "$no_x" = yes; then
19389   # Not all programs may use this symbol, but it does not hurt to define it.
19390
19391 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19392
19393   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19394 else
19395   if test -n "$x_includes"; then
19396     X_CFLAGS="$X_CFLAGS -I$x_includes"
19397   fi
19398
19399   # It would also be nice to do this for all -L options, not just this one.
19400   if test -n "$x_libraries"; then
19401     X_LIBS="$X_LIBS -L$x_libraries"
19402     # For Solaris; some versions of Sun CC require a space after -R and
19403     # others require no space.  Words are not sufficient . . . .
19404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19405 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19406     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19407     ac_xsave_c_werror_flag=$ac_c_werror_flag
19408     ac_c_werror_flag=yes
19409     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19410 /* end confdefs.h.  */
19411
19412 int
19413 main ()
19414 {
19415
19416   ;
19417   return 0;
19418 }
19419 _ACEOF
19420 if ac_fn_c_try_link "$LINENO"; then :
19421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19422 $as_echo "no" >&6; }
19423        X_LIBS="$X_LIBS -R$x_libraries"
19424 else
19425   LIBS="$ac_xsave_LIBS -R $x_libraries"
19426        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19427 /* end confdefs.h.  */
19428
19429 int
19430 main ()
19431 {
19432
19433   ;
19434   return 0;
19435 }
19436 _ACEOF
19437 if ac_fn_c_try_link "$LINENO"; then :
19438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19439 $as_echo "yes" >&6; }
19440           X_LIBS="$X_LIBS -R $x_libraries"
19441 else
19442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19443 $as_echo "neither works" >&6; }
19444 fi
19445 rm -f core conftest.err conftest.$ac_objext \
19446     conftest$ac_exeext conftest.$ac_ext
19447 fi
19448 rm -f core conftest.err conftest.$ac_objext \
19449     conftest$ac_exeext conftest.$ac_ext
19450     ac_c_werror_flag=$ac_xsave_c_werror_flag
19451     LIBS=$ac_xsave_LIBS
19452   fi
19453
19454   # Check for system-dependent libraries X programs must link with.
19455   # Do this before checking for the system-independent R6 libraries
19456   # (-lICE), since we may need -lsocket or whatever for X linking.
19457
19458   if test "$ISC" = yes; then
19459     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19460   else
19461     # Martyn Johnson says this is needed for Ultrix, if the X
19462     # libraries were built with DECnet support.  And Karl Berry says
19463     # the Alpha needs dnet_stub (dnet does not exist).
19464     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19465     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19466 /* end confdefs.h.  */
19467
19468 /* Override any GCC internal prototype to avoid an error.
19469    Use char because int might match the return type of a GCC
19470    builtin and then its argument prototype would still apply.  */
19471 #ifdef __cplusplus
19472 extern "C"
19473 #endif
19474 char XOpenDisplay ();
19475 int
19476 main ()
19477 {
19478 return XOpenDisplay ();
19479   ;
19480   return 0;
19481 }
19482 _ACEOF
19483 if ac_fn_c_try_link "$LINENO"; then :
19484
19485 else
19486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19487 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19488 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
19489   $as_echo_n "(cached) " >&6
19490 else
19491   ac_check_lib_save_LIBS=$LIBS
19492 LIBS="-ldnet  $LIBS"
19493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19494 /* end confdefs.h.  */
19495
19496 /* Override any GCC internal prototype to avoid an error.
19497    Use char because int might match the return type of a GCC
19498    builtin and then its argument prototype would still apply.  */
19499 #ifdef __cplusplus
19500 extern "C"
19501 #endif
19502 char dnet_ntoa ();
19503 int
19504 main ()
19505 {
19506 return dnet_ntoa ();
19507   ;
19508   return 0;
19509 }
19510 _ACEOF
19511 if ac_fn_c_try_link "$LINENO"; then :
19512   ac_cv_lib_dnet_dnet_ntoa=yes
19513 else
19514   ac_cv_lib_dnet_dnet_ntoa=no
19515 fi
19516 rm -f core conftest.err conftest.$ac_objext \
19517     conftest$ac_exeext conftest.$ac_ext
19518 LIBS=$ac_check_lib_save_LIBS
19519 fi
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19521 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19522 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
19523   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19524 fi
19525
19526     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19527       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19528 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19529 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
19530   $as_echo_n "(cached) " >&6
19531 else
19532   ac_check_lib_save_LIBS=$LIBS
19533 LIBS="-ldnet_stub  $LIBS"
19534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19535 /* end confdefs.h.  */
19536
19537 /* Override any GCC internal prototype to avoid an error.
19538    Use char because int might match the return type of a GCC
19539    builtin and then its argument prototype would still apply.  */
19540 #ifdef __cplusplus
19541 extern "C"
19542 #endif
19543 char dnet_ntoa ();
19544 int
19545 main ()
19546 {
19547 return dnet_ntoa ();
19548   ;
19549   return 0;
19550 }
19551 _ACEOF
19552 if ac_fn_c_try_link "$LINENO"; then :
19553   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19554 else
19555   ac_cv_lib_dnet_stub_dnet_ntoa=no
19556 fi
19557 rm -f core conftest.err conftest.$ac_objext \
19558     conftest$ac_exeext conftest.$ac_ext
19559 LIBS=$ac_check_lib_save_LIBS
19560 fi
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19562 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19563 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
19564   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19565 fi
19566
19567     fi
19568 fi
19569 rm -f core conftest.err conftest.$ac_objext \
19570     conftest$ac_exeext conftest.$ac_ext
19571     LIBS="$ac_xsave_LIBS"
19572
19573     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19574     # to get the SysV transport functions.
19575     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19576     # needs -lnsl.
19577     # The nsl library prevents programs from opening the X display
19578     # on Irix 5.2, according to T.E. Dickey.
19579     # The functions gethostbyname, getservbyname, and inet_addr are
19580     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19581     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19582 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19583
19584 fi
19585
19586     if test $ac_cv_func_gethostbyname = no; then
19587       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19588 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19589 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19590   $as_echo_n "(cached) " >&6
19591 else
19592   ac_check_lib_save_LIBS=$LIBS
19593 LIBS="-lnsl  $LIBS"
19594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19595 /* end confdefs.h.  */
19596
19597 /* Override any GCC internal prototype to avoid an error.
19598    Use char because int might match the return type of a GCC
19599    builtin and then its argument prototype would still apply.  */
19600 #ifdef __cplusplus
19601 extern "C"
19602 #endif
19603 char gethostbyname ();
19604 int
19605 main ()
19606 {
19607 return gethostbyname ();
19608   ;
19609   return 0;
19610 }
19611 _ACEOF
19612 if ac_fn_c_try_link "$LINENO"; then :
19613   ac_cv_lib_nsl_gethostbyname=yes
19614 else
19615   ac_cv_lib_nsl_gethostbyname=no
19616 fi
19617 rm -f core conftest.err conftest.$ac_objext \
19618     conftest$ac_exeext conftest.$ac_ext
19619 LIBS=$ac_check_lib_save_LIBS
19620 fi
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19622 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19623 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19624   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19625 fi
19626
19627       if test $ac_cv_lib_nsl_gethostbyname = no; then
19628         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19629 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19630 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
19631   $as_echo_n "(cached) " >&6
19632 else
19633   ac_check_lib_save_LIBS=$LIBS
19634 LIBS="-lbsd  $LIBS"
19635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19636 /* end confdefs.h.  */
19637
19638 /* Override any GCC internal prototype to avoid an error.
19639    Use char because int might match the return type of a GCC
19640    builtin and then its argument prototype would still apply.  */
19641 #ifdef __cplusplus
19642 extern "C"
19643 #endif
19644 char gethostbyname ();
19645 int
19646 main ()
19647 {
19648 return gethostbyname ();
19649   ;
19650   return 0;
19651 }
19652 _ACEOF
19653 if ac_fn_c_try_link "$LINENO"; then :
19654   ac_cv_lib_bsd_gethostbyname=yes
19655 else
19656   ac_cv_lib_bsd_gethostbyname=no
19657 fi
19658 rm -f core conftest.err conftest.$ac_objext \
19659     conftest$ac_exeext conftest.$ac_ext
19660 LIBS=$ac_check_lib_save_LIBS
19661 fi
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19663 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19664 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
19665   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19666 fi
19667
19668       fi
19669     fi
19670
19671     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19672     # socket/setsockopt and other routines are undefined under SCO ODT
19673     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19674     # on later versions), says Simon Leinen: it contains gethostby*
19675     # variants that don't use the name server (or something).  -lsocket
19676     # must be given before -lnsl if both are needed.  We assume that
19677     # if connect needs -lnsl, so does gethostbyname.
19678     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19679 if test "x$ac_cv_func_connect" = xyes; then :
19680
19681 fi
19682
19683     if test $ac_cv_func_connect = no; then
19684       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19685 $as_echo_n "checking for connect in -lsocket... " >&6; }
19686 if ${ac_cv_lib_socket_connect+:} false; then :
19687   $as_echo_n "(cached) " >&6
19688 else
19689   ac_check_lib_save_LIBS=$LIBS
19690 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19692 /* end confdefs.h.  */
19693
19694 /* Override any GCC internal prototype to avoid an error.
19695    Use char because int might match the return type of a GCC
19696    builtin and then its argument prototype would still apply.  */
19697 #ifdef __cplusplus
19698 extern "C"
19699 #endif
19700 char connect ();
19701 int
19702 main ()
19703 {
19704 return connect ();
19705   ;
19706   return 0;
19707 }
19708 _ACEOF
19709 if ac_fn_c_try_link "$LINENO"; then :
19710   ac_cv_lib_socket_connect=yes
19711 else
19712   ac_cv_lib_socket_connect=no
19713 fi
19714 rm -f core conftest.err conftest.$ac_objext \
19715     conftest$ac_exeext conftest.$ac_ext
19716 LIBS=$ac_check_lib_save_LIBS
19717 fi
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19719 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19720 if test "x$ac_cv_lib_socket_connect" = xyes; then :
19721   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19722 fi
19723
19724     fi
19725
19726     # Guillermo Gomez says -lposix is necessary on A/UX.
19727     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19728 if test "x$ac_cv_func_remove" = xyes; then :
19729
19730 fi
19731
19732     if test $ac_cv_func_remove = no; then
19733       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19734 $as_echo_n "checking for remove in -lposix... " >&6; }
19735 if ${ac_cv_lib_posix_remove+:} false; then :
19736   $as_echo_n "(cached) " >&6
19737 else
19738   ac_check_lib_save_LIBS=$LIBS
19739 LIBS="-lposix  $LIBS"
19740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19741 /* end confdefs.h.  */
19742
19743 /* Override any GCC internal prototype to avoid an error.
19744    Use char because int might match the return type of a GCC
19745    builtin and then its argument prototype would still apply.  */
19746 #ifdef __cplusplus
19747 extern "C"
19748 #endif
19749 char remove ();
19750 int
19751 main ()
19752 {
19753 return remove ();
19754   ;
19755   return 0;
19756 }
19757 _ACEOF
19758 if ac_fn_c_try_link "$LINENO"; then :
19759   ac_cv_lib_posix_remove=yes
19760 else
19761   ac_cv_lib_posix_remove=no
19762 fi
19763 rm -f core conftest.err conftest.$ac_objext \
19764     conftest$ac_exeext conftest.$ac_ext
19765 LIBS=$ac_check_lib_save_LIBS
19766 fi
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19768 $as_echo "$ac_cv_lib_posix_remove" >&6; }
19769 if test "x$ac_cv_lib_posix_remove" = xyes; then :
19770   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19771 fi
19772
19773     fi
19774
19775     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19776     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19777 if test "x$ac_cv_func_shmat" = xyes; then :
19778
19779 fi
19780
19781     if test $ac_cv_func_shmat = no; then
19782       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19783 $as_echo_n "checking for shmat in -lipc... " >&6; }
19784 if ${ac_cv_lib_ipc_shmat+:} false; then :
19785   $as_echo_n "(cached) " >&6
19786 else
19787   ac_check_lib_save_LIBS=$LIBS
19788 LIBS="-lipc  $LIBS"
19789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h.  */
19791
19792 /* Override any GCC internal prototype to avoid an error.
19793    Use char because int might match the return type of a GCC
19794    builtin and then its argument prototype would still apply.  */
19795 #ifdef __cplusplus
19796 extern "C"
19797 #endif
19798 char shmat ();
19799 int
19800 main ()
19801 {
19802 return shmat ();
19803   ;
19804   return 0;
19805 }
19806 _ACEOF
19807 if ac_fn_c_try_link "$LINENO"; then :
19808   ac_cv_lib_ipc_shmat=yes
19809 else
19810   ac_cv_lib_ipc_shmat=no
19811 fi
19812 rm -f core conftest.err conftest.$ac_objext \
19813     conftest$ac_exeext conftest.$ac_ext
19814 LIBS=$ac_check_lib_save_LIBS
19815 fi
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19817 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19818 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
19819   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19820 fi
19821
19822     fi
19823   fi
19824
19825   # Check for libraries that X11R6 Xt/Xaw programs need.
19826   ac_save_LDFLAGS=$LDFLAGS
19827   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19828   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19829   # check for ICE first), but we must link in the order -lSM -lICE or
19830   # we get undefined symbols.  So assume we have SM if we have ICE.
19831   # These have to be linked with before -lX11, unlike the other
19832   # libraries we check for below, so use a different variable.
19833   # John Interrante, Karl Berry
19834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19835 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19836 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
19837   $as_echo_n "(cached) " >&6
19838 else
19839   ac_check_lib_save_LIBS=$LIBS
19840 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19842 /* end confdefs.h.  */
19843
19844 /* Override any GCC internal prototype to avoid an error.
19845    Use char because int might match the return type of a GCC
19846    builtin and then its argument prototype would still apply.  */
19847 #ifdef __cplusplus
19848 extern "C"
19849 #endif
19850 char IceConnectionNumber ();
19851 int
19852 main ()
19853 {
19854 return IceConnectionNumber ();
19855   ;
19856   return 0;
19857 }
19858 _ACEOF
19859 if ac_fn_c_try_link "$LINENO"; then :
19860   ac_cv_lib_ICE_IceConnectionNumber=yes
19861 else
19862   ac_cv_lib_ICE_IceConnectionNumber=no
19863 fi
19864 rm -f core conftest.err conftest.$ac_objext \
19865     conftest$ac_exeext conftest.$ac_ext
19866 LIBS=$ac_check_lib_save_LIBS
19867 fi
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19869 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19870 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
19871   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19872 fi
19873
19874   LDFLAGS=$ac_save_LDFLAGS
19875
19876 fi
19877
19878         if test x$have_x = xyes; then
19879             # Check whether --enable-x11-shared was given.
19880 if test "${enable_x11_shared+set}" = set; then :
19881   enableval=$enable_x11_shared;
19882 else
19883   enable_x11_shared=maybe
19884 fi
19885
19886
19887             case "$host" in
19888                 *-*-darwin*)
19889                     x11_lib='/usr/X11R6/lib/libX11.6.dylib'
19890                     x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
19891                     xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
19892                     xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
19893                     xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
19894                     xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
19895                     xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
19896                     xss_lib='/usr/X11R6/lib/libXss.1.dylib'
19897                     xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
19898                     ;;
19899                 *-*-openbsd*)
19900                     x11_lib='libX11.so'
19901                     x11ext_lib='libXext.so'
19902                     xcursor_lib='libXcursor.so'
19903                     xinerama_lib='libXinerama.so'
19904                     xinput_lib='libXi.so'
19905                     xrandr_lib='libXrandr.so'
19906                     xrender_lib='libXrender.so'
19907                     xss_lib='libXss.so'
19908                     xvidmode_lib='libXxf86vm.so'
19909                     ;;
19910                 *)
19911                     x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19912                     x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19913                     xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19914                     xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19915                     xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19916                     xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19917                     xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19918                     xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19919                     xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19920                     ;;
19921             esac
19922
19923             if test x$ac_cv_func_shmat != xyes; then
19924                 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
19925             fi
19926             CFLAGS="$CFLAGS $X_CFLAGS"
19927             LDFLAGS="$LDFLAGS $X_LIBS"
19928
19929             ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
19930                              #include <X11/Xproto.h>
19931
19932 "
19933 if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
19934   have_xext_h_hdr=yes
19935 else
19936   have_xext_h_hdr=no
19937 fi
19938
19939
19940             if test x$have_xext_h_hdr != xyes; then
19941                as_fn_error $? "
19942 *** Missing Xext.h, maybe you need to install the libxext-dev package?
19943                " "$LINENO" 5
19944             fi
19945
19946
19947 $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
19948
19949             SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
19950             EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
19951
19952             # Needed so SDL applications can include SDL_syswm.h
19953             SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
19954
19955             if test x$enable_x11_shared = xmaybe; then
19956                 enable_x11_shared=yes
19957             fi
19958             if test x$have_loadso != xyes && \
19959                test x$enable_x11_shared = xyes; then
19960                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
19961 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
19962                 enable_x11_shared=no
19963             fi
19964             if test x$have_loadso = xyes && \
19965                test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
19966                 echo "-- dynamic libX11 -> $x11_lib"
19967                 echo "-- dynamic libX11ext -> $x11ext_lib"
19968
19969 cat >>confdefs.h <<_ACEOF
19970 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
19971 _ACEOF
19972
19973
19974 cat >>confdefs.h <<_ACEOF
19975 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
19976 _ACEOF
19977
19978                 SUMMARY_video="${SUMMARY_video} x11(dynamic)"
19979             else
19980                 enable_x11_shared=no
19981                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
19982                 SUMMARY_video="${SUMMARY_video} x11"
19983             fi
19984             have_video=yes
19985
19986             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
19987 $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
19988             have_const_param_XextAddDisplay=no
19989             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19990 /* end confdefs.h.  */
19991
19992               #include <X11/Xlib.h>
19993               #include <X11/Xproto.h>
19994               #include <X11/extensions/Xext.h>
19995               #include <X11/extensions/extutil.h>
19996               extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
19997
19998 int
19999 main ()
20000 {
20001
20002
20003   ;
20004   return 0;
20005 }
20006 _ACEOF
20007 if ac_fn_c_try_compile "$LINENO"; then :
20008
20009             have_const_param_XextAddDisplay=yes
20010             $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
20011
20012
20013 fi
20014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20015             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
20016 $as_echo "$have_const_param_XextAddDisplay" >&6; }
20017
20018                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
20019 $as_echo_n "checking for XGenericEvent... " >&6; }
20020             have_XGenericEvent=no
20021             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022 /* end confdefs.h.  */
20023
20024                 #include <X11/Xlib.h>
20025
20026 int
20027 main ()
20028 {
20029
20030 Display *display;
20031 XEvent event;
20032 XGenericEventCookie *cookie = &event.xcookie;
20033 XNextEvent(display, &event);
20034 XGetEventData(display, cookie);
20035 XFreeEventData(display, cookie);
20036
20037   ;
20038   return 0;
20039 }
20040 _ACEOF
20041 if ac_fn_c_try_compile "$LINENO"; then :
20042
20043                 have_XGenericEvent=yes
20044                 $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
20045
20046
20047 fi
20048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20049             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
20050 $as_echo "$have_XGenericEvent" >&6; }
20051
20052             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
20053 $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
20054 if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
20055   $as_echo_n "(cached) " >&6
20056 else
20057   ac_check_lib_save_LIBS=$LIBS
20058 LIBS="-lX11  $LIBS"
20059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h.  */
20061
20062 /* Override any GCC internal prototype to avoid an error.
20063    Use char because int might match the return type of a GCC
20064    builtin and then its argument prototype would still apply.  */
20065 #ifdef __cplusplus
20066 extern "C"
20067 #endif
20068 char XkbKeycodeToKeysym ();
20069 int
20070 main ()
20071 {
20072 return XkbKeycodeToKeysym ();
20073   ;
20074   return 0;
20075 }
20076 _ACEOF
20077 if ac_fn_c_try_link "$LINENO"; then :
20078   ac_cv_lib_X11_XkbKeycodeToKeysym=yes
20079 else
20080   ac_cv_lib_X11_XkbKeycodeToKeysym=no
20081 fi
20082 rm -f core conftest.err conftest.$ac_objext \
20083     conftest$ac_exeext conftest.$ac_ext
20084 LIBS=$ac_check_lib_save_LIBS
20085 fi
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
20087 $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
20088 if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
20089
20090 $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
20091
20092 fi
20093
20094
20095             # Check whether --enable-video-x11-xcursor was given.
20096 if test "${enable_video_x11_xcursor+set}" = set; then :
20097   enableval=$enable_video_x11_xcursor;
20098 else
20099   enable_video_x11_xcursor=yes
20100 fi
20101
20102             if test x$enable_video_x11_xcursor = xyes; then
20103                 definitely_enable_video_x11_xcursor=no
20104                 ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
20105
20106 "
20107 if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
20108   have_xcursor_h_hdr=yes
20109 else
20110   have_xcursor_h_hdr=no
20111 fi
20112
20113
20114                 if test x$have_xcursor_h_hdr = xyes; then
20115                     if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
20116                         echo "-- dynamic libXcursor -> $xcursor_lib"
20117
20118 cat >>confdefs.h <<_ACEOF
20119 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
20120 _ACEOF
20121
20122                         definitely_enable_video_x11_xcursor=yes
20123                     else
20124                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
20125 $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
20126 if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
20127   $as_echo_n "(cached) " >&6
20128 else
20129   ac_check_lib_save_LIBS=$LIBS
20130 LIBS="-lXcursor  $LIBS"
20131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20132 /* end confdefs.h.  */
20133
20134 /* Override any GCC internal prototype to avoid an error.
20135    Use char because int might match the return type of a GCC
20136    builtin and then its argument prototype would still apply.  */
20137 #ifdef __cplusplus
20138 extern "C"
20139 #endif
20140 char XcursorImageCreate ();
20141 int
20142 main ()
20143 {
20144 return XcursorImageCreate ();
20145   ;
20146   return 0;
20147 }
20148 _ACEOF
20149 if ac_fn_c_try_link "$LINENO"; then :
20150   ac_cv_lib_Xcursor_XcursorImageCreate=yes
20151 else
20152   ac_cv_lib_Xcursor_XcursorImageCreate=no
20153 fi
20154 rm -f core conftest.err conftest.$ac_objext \
20155     conftest$ac_exeext conftest.$ac_ext
20156 LIBS=$ac_check_lib_save_LIBS
20157 fi
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
20159 $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
20160 if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
20161   have_xcursor_lib=yes
20162 fi
20163
20164                         if test x$have_xcursor_lib = xyes ; then
20165                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
20166                             definitely_enable_video_x11_xcursor=yes
20167                         fi
20168                     fi
20169                 fi
20170             fi
20171             if test x$definitely_enable_video_x11_xcursor = xyes; then
20172
20173 $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
20174
20175                 SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
20176             fi
20177             # Check whether --enable-video-x11-xdbe was given.
20178 if test "${enable_video_x11_xdbe+set}" = set; then :
20179   enableval=$enable_video_x11_xdbe;
20180 else
20181   enable_video_x11_xdbe=yes
20182 fi
20183
20184             if test x$enable_video_x11_xdbe = xyes; then
20185                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
20186
20187 "
20188 if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
20189   have_dbe_h_hdr=yes
20190 else
20191   have_dbe_h_hdr=no
20192 fi
20193
20194
20195                 if test x$have_dbe_h_hdr = xyes; then
20196
20197 $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
20198
20199                     SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
20200                 fi
20201             fi
20202             # Check whether --enable-video-x11-xinerama was given.
20203 if test "${enable_video_x11_xinerama+set}" = set; then :
20204   enableval=$enable_video_x11_xinerama;
20205 else
20206   enable_video_x11_xinerama=yes
20207 fi
20208
20209             if test x$enable_video_x11_xinerama = xyes; then
20210                 definitely_enable_video_x11_xinerama=no
20211                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
20212
20213 "
20214 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
20215   have_xinerama_h_hdr=yes
20216 else
20217   have_xinerama_h_hdr=no
20218 fi
20219
20220
20221                 if test x$have_xinerama_h_hdr = xyes; then
20222                     if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
20223                         echo "-- dynamic libXinerama -> $xinerama_lib"
20224
20225 cat >>confdefs.h <<_ACEOF
20226 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
20227 _ACEOF
20228
20229                         definitely_enable_video_x11_xinerama=yes
20230                     else
20231                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
20232 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
20233 if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
20234   $as_echo_n "(cached) " >&6
20235 else
20236   ac_check_lib_save_LIBS=$LIBS
20237 LIBS="-lXinerama  $LIBS"
20238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239 /* end confdefs.h.  */
20240
20241 /* Override any GCC internal prototype to avoid an error.
20242    Use char because int might match the return type of a GCC
20243    builtin and then its argument prototype would still apply.  */
20244 #ifdef __cplusplus
20245 extern "C"
20246 #endif
20247 char XineramaQueryExtension ();
20248 int
20249 main ()
20250 {
20251 return XineramaQueryExtension ();
20252   ;
20253   return 0;
20254 }
20255 _ACEOF
20256 if ac_fn_c_try_link "$LINENO"; then :
20257   ac_cv_lib_Xinerama_XineramaQueryExtension=yes
20258 else
20259   ac_cv_lib_Xinerama_XineramaQueryExtension=no
20260 fi
20261 rm -f core conftest.err conftest.$ac_objext \
20262     conftest$ac_exeext conftest.$ac_ext
20263 LIBS=$ac_check_lib_save_LIBS
20264 fi
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
20266 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
20267 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
20268   have_xinerama_lib=yes
20269 fi
20270
20271                         if test x$have_xinerama_lib = xyes ; then
20272                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
20273                             definitely_enable_video_x11_xinerama=yes
20274                         fi
20275                     fi
20276                 fi
20277             fi
20278             if test x$definitely_enable_video_x11_xinerama = xyes; then
20279
20280 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
20281
20282                 SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
20283             fi
20284             # Check whether --enable-video-x11-xinput was given.
20285 if test "${enable_video_x11_xinput+set}" = set; then :
20286   enableval=$enable_video_x11_xinput;
20287 else
20288   enable_video_x11_xinput=yes
20289 fi
20290
20291             if test x$enable_video_x11_xinput = xyes; then
20292                 definitely_enable_video_x11_xinput=no
20293                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
20294
20295 "
20296 if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
20297   have_xinput_h_hdr=yes
20298 else
20299   have_xinput_h_hdr=no
20300 fi
20301
20302
20303                 if test x$have_xinput_h_hdr = xyes; then
20304                     if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
20305                         echo "-- dynamic libXi -> $xinput_lib"
20306
20307 cat >>confdefs.h <<_ACEOF
20308 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
20309 _ACEOF
20310
20311                         definitely_enable_video_x11_xinput=yes
20312                     else
20313                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
20314 $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
20315 if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
20316   $as_echo_n "(cached) " >&6
20317 else
20318   ac_check_lib_save_LIBS=$LIBS
20319 LIBS="-lXi  $LIBS"
20320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20321 /* end confdefs.h.  */
20322
20323 /* Override any GCC internal prototype to avoid an error.
20324    Use char because int might match the return type of a GCC
20325    builtin and then its argument prototype would still apply.  */
20326 #ifdef __cplusplus
20327 extern "C"
20328 #endif
20329 char XOpenDevice ();
20330 int
20331 main ()
20332 {
20333 return XOpenDevice ();
20334   ;
20335   return 0;
20336 }
20337 _ACEOF
20338 if ac_fn_c_try_link "$LINENO"; then :
20339   ac_cv_lib_Xi_XOpenDevice=yes
20340 else
20341   ac_cv_lib_Xi_XOpenDevice=no
20342 fi
20343 rm -f core conftest.err conftest.$ac_objext \
20344     conftest$ac_exeext conftest.$ac_ext
20345 LIBS=$ac_check_lib_save_LIBS
20346 fi
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
20348 $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
20349 if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
20350   have_xinput_lib=yes
20351 fi
20352
20353                         if test x$have_xinput_lib = xyes ; then
20354                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
20355                             definitely_enable_video_x11_xinput=yes
20356                         fi
20357                     fi
20358                 fi
20359             fi
20360             if test x$definitely_enable_video_x11_xinput = xyes; then
20361                 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
20362
20363 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
20364
20365                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
20366 $as_echo_n "checking for xinput2 multitouch... " >&6; }
20367                 have_xinput2_multitouch=no
20368                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20369 /* end confdefs.h.  */
20370
20371                         #include <X11/Xlib.h>
20372                         #include <X11/Xproto.h>
20373                         #include <X11/extensions/XInput2.h>
20374
20375 int
20376 main ()
20377 {
20378
20379 int event_type = XI_TouchBegin;
20380 XITouchClassInfo *t;
20381
20382   ;
20383   return 0;
20384 }
20385 _ACEOF
20386 if ac_fn_c_try_compile "$LINENO"; then :
20387
20388                 have_xinput2_multitouch=yes
20389                 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
20390
20391                 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
20392
20393 fi
20394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20395                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
20396 $as_echo "$have_xinput2_multitouch" >&6; }
20397             fi
20398             # Check whether --enable-video-x11-xrandr was given.
20399 if test "${enable_video_x11_xrandr+set}" = set; then :
20400   enableval=$enable_video_x11_xrandr;
20401 else
20402   enable_video_x11_xrandr=yes
20403 fi
20404
20405             if test x$enable_video_x11_xrandr = xyes; then
20406                                 definitely_enable_video_x11_xrandr=no
20407                 have_xrandr_h_hdr=no
20408                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20409 /* end confdefs.h.  */
20410
20411                 #include <X11/Xlib.h>
20412                 #include <X11/extensions/Xrandr.h>
20413
20414 int
20415 main ()
20416 {
20417
20418                 XRRScreenResources *res = NULL;
20419
20420   ;
20421   return 0;
20422 }
20423 _ACEOF
20424 if ac_fn_c_try_compile "$LINENO"; then :
20425
20426                 have_xrandr_h_hdr=yes
20427
20428 fi
20429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20430                 if test x$have_xrandr_h_hdr = xyes; then
20431                     if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
20432                         echo "-- dynamic libXrandr -> $xrandr_lib"
20433
20434 cat >>confdefs.h <<_ACEOF
20435 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
20436 _ACEOF
20437
20438                         definitely_enable_video_x11_xrandr=yes
20439                     else
20440                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
20441 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
20442 if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
20443   $as_echo_n "(cached) " >&6
20444 else
20445   ac_check_lib_save_LIBS=$LIBS
20446 LIBS="-lXrandr  $LIBS"
20447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20448 /* end confdefs.h.  */
20449
20450 /* Override any GCC internal prototype to avoid an error.
20451    Use char because int might match the return type of a GCC
20452    builtin and then its argument prototype would still apply.  */
20453 #ifdef __cplusplus
20454 extern "C"
20455 #endif
20456 char XRRQueryExtension ();
20457 int
20458 main ()
20459 {
20460 return XRRQueryExtension ();
20461   ;
20462   return 0;
20463 }
20464 _ACEOF
20465 if ac_fn_c_try_link "$LINENO"; then :
20466   ac_cv_lib_Xrandr_XRRQueryExtension=yes
20467 else
20468   ac_cv_lib_Xrandr_XRRQueryExtension=no
20469 fi
20470 rm -f core conftest.err conftest.$ac_objext \
20471     conftest$ac_exeext conftest.$ac_ext
20472 LIBS=$ac_check_lib_save_LIBS
20473 fi
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
20475 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
20476 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
20477   have_xrandr_lib=yes
20478 fi
20479
20480                         if test x$have_xrandr_lib = xyes ; then
20481                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
20482                             definitely_enable_video_x11_xrandr=yes
20483                         fi
20484                     fi
20485                 fi
20486             fi
20487             if test x$definitely_enable_video_x11_xrandr = xyes; then
20488
20489 $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
20490
20491                 SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
20492             fi
20493             # Check whether --enable-video-x11-scrnsaver was given.
20494 if test "${enable_video_x11_scrnsaver+set}" = set; then :
20495   enableval=$enable_video_x11_scrnsaver;
20496 else
20497   enable_video_x11_scrnsaver=yes
20498 fi
20499
20500             if test x$enable_video_x11_scrnsaver = xyes; then
20501                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
20502
20503 "
20504 if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
20505   have_scrnsaver_h_hdr=yes
20506 else
20507   have_scrnsaver_h_hdr=no
20508 fi
20509
20510
20511                 if test x$have_scrnsaver_h_hdr = xyes; then
20512                     if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
20513                         echo "-- dynamic libXss -> $xss_lib"
20514
20515 cat >>confdefs.h <<_ACEOF
20516 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
20517 _ACEOF
20518
20519                         definitely_enable_video_x11_scrnsaver=yes
20520                     else
20521                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
20522 $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
20523 if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
20524   $as_echo_n "(cached) " >&6
20525 else
20526   ac_check_lib_save_LIBS=$LIBS
20527 LIBS="-lXss  $LIBS"
20528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20529 /* end confdefs.h.  */
20530
20531 /* Override any GCC internal prototype to avoid an error.
20532    Use char because int might match the return type of a GCC
20533    builtin and then its argument prototype would still apply.  */
20534 #ifdef __cplusplus
20535 extern "C"
20536 #endif
20537 char XScreenSaverSuspend ();
20538 int
20539 main ()
20540 {
20541 return XScreenSaverSuspend ();
20542   ;
20543   return 0;
20544 }
20545 _ACEOF
20546 if ac_fn_c_try_link "$LINENO"; then :
20547   ac_cv_lib_Xss_XScreenSaverSuspend=yes
20548 else
20549   ac_cv_lib_Xss_XScreenSaverSuspend=no
20550 fi
20551 rm -f core conftest.err conftest.$ac_objext \
20552     conftest$ac_exeext conftest.$ac_ext
20553 LIBS=$ac_check_lib_save_LIBS
20554 fi
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
20556 $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
20557 if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
20558   have_xss_lib=yes
20559 fi
20560
20561                         if test x$have_xss_lib = xyes ; then
20562                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
20563                             definitely_enable_video_x11_scrnsaver=yes
20564                         fi
20565                     fi
20566                 fi
20567             fi
20568             if test x$definitely_enable_video_x11_scrnsaver = xyes; then
20569
20570 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
20571
20572                 SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
20573             fi
20574             # Check whether --enable-video-x11-xshape was given.
20575 if test "${enable_video_x11_xshape+set}" = set; then :
20576   enableval=$enable_video_x11_xshape;
20577 else
20578   enable_video_x11_xshape=yes
20579 fi
20580
20581             if test x$enable_video_x11_xshape = xyes; then
20582                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
20583
20584 "
20585 if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
20586   have_shape_h_hdr=yes
20587 else
20588   have_shape_h_hdr=no
20589 fi
20590
20591
20592                 if test x$have_shape_h_hdr = xyes; then
20593
20594 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
20595
20596                     SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
20597                 fi
20598             fi
20599             # Check whether --enable-video-x11-vm was given.
20600 if test "${enable_video_x11_vm+set}" = set; then :
20601   enableval=$enable_video_x11_vm;
20602 else
20603   enable_video_x11_vm=yes
20604 fi
20605
20606             if test x$enable_video_x11_vm = xyes; then
20607                 definitely_enable_video_x11_vm=no
20608                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
20609
20610 "
20611 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
20612   have_vm_h_hdr=yes
20613 else
20614   have_vm_h_hdr=no
20615 fi
20616
20617
20618                 if test x$have_vm_h_hdr = xyes; then
20619                     if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
20620                         echo "-- dynamic libXxf86vm -> $xvidmode_lib"
20621
20622 cat >>confdefs.h <<_ACEOF
20623 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
20624 _ACEOF
20625
20626                         definitely_enable_video_x11_vm=yes
20627                     else
20628                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
20629 $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
20630 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
20631   $as_echo_n "(cached) " >&6
20632 else
20633   ac_check_lib_save_LIBS=$LIBS
20634 LIBS="-lXxf86vm  $LIBS"
20635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20636 /* end confdefs.h.  */
20637
20638 /* Override any GCC internal prototype to avoid an error.
20639    Use char because int might match the return type of a GCC
20640    builtin and then its argument prototype would still apply.  */
20641 #ifdef __cplusplus
20642 extern "C"
20643 #endif
20644 char XF86VidModeQueryVersion ();
20645 int
20646 main ()
20647 {
20648 return XF86VidModeQueryVersion ();
20649   ;
20650   return 0;
20651 }
20652 _ACEOF
20653 if ac_fn_c_try_link "$LINENO"; then :
20654   ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
20655 else
20656   ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
20657 fi
20658 rm -f core conftest.err conftest.$ac_objext \
20659     conftest$ac_exeext conftest.$ac_ext
20660 LIBS=$ac_check_lib_save_LIBS
20661 fi
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
20663 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
20664 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
20665   have_vm_lib=yes
20666 fi
20667
20668                         if test x$have_vm_lib = xyes ; then
20669                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
20670                             definitely_enable_video_x11_vm=yes
20671                         fi
20672                     fi
20673                 fi
20674             fi
20675             if test x$definitely_enable_video_x11_vm = xyes; then
20676
20677 $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
20678
20679                 SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
20680             fi
20681         fi
20682     fi
20683 }
20684
20685 CheckVivanteVideo()
20686 {
20687     # Check whether --enable-video-vivante was given.
20688 if test "${enable_video_vivante+set}" = set; then :
20689   enableval=$enable_video_vivante;
20690 else
20691   enable_video_vivante=yes
20692 fi
20693
20694     if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
20695         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
20696 $as_echo_n "checking for Vivante VDK API... " >&6; }
20697         have_vivante_vdk=no
20698         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20699 /* end confdefs.h.  */
20700
20701           #define LINUX
20702           #define EGL_API_FB
20703           #include <gc_vdk.h>
20704
20705 int
20706 main ()
20707 {
20708
20709
20710   ;
20711   return 0;
20712 }
20713 _ACEOF
20714 if ac_fn_c_try_compile "$LINENO"; then :
20715
20716         have_vivante_vdk=yes
20717
20718 fi
20719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20720         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
20721 $as_echo "$have_vivante_vdk" >&6; }
20722
20723         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
20724 $as_echo_n "checking for Vivante FB API... " >&6; }
20725         have_vivante_egl=no
20726         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20727 /* end confdefs.h.  */
20728
20729           #define LINUX
20730           #define EGL_API_FB
20731           #include <EGL/eglvivante.h>
20732
20733 int
20734 main ()
20735 {
20736
20737
20738   ;
20739   return 0;
20740 }
20741 _ACEOF
20742 if ac_fn_c_try_compile "$LINENO"; then :
20743
20744         have_vivante_egl=yes
20745
20746 fi
20747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20748         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
20749 $as_echo "$have_vivante_egl" >&6; }
20750
20751         if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
20752
20753 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
20754
20755             EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
20756             if test x$have_vivante_vdk = xyes; then
20757
20758 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
20759
20760                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
20761             fi
20762             SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
20763             SUMMARY_video="${SUMMARY_video} vivante"
20764             have_video=yes
20765         fi
20766     fi
20767 }
20768
20769 CheckHaikuVideo()
20770 {
20771     if test x$enable_video = xyes; then
20772
20773 $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
20774
20775         SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
20776         have_video=yes
20777         SUMMARY_video="${SUMMARY_video} haiku"
20778     fi
20779 }
20780
20781 CheckCOCOA()
20782 {
20783     # Check whether --enable-video-cocoa was given.
20784 if test "${enable_video_cocoa+set}" = set; then :
20785   enableval=$enable_video_cocoa;
20786 else
20787   enable_video_cocoa=yes
20788 fi
20789
20790     if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
20791         save_CFLAGS="$CFLAGS"
20792                 CFLAGS="$CFLAGS -x objective-c"
20793         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
20794 $as_echo_n "checking for Cocoa framework... " >&6; }
20795         have_cocoa=no
20796         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20797 /* end confdefs.h.  */
20798
20799           #import <Cocoa/Cocoa.h>
20800
20801 int
20802 main ()
20803 {
20804
20805
20806   ;
20807   return 0;
20808 }
20809 _ACEOF
20810 if ac_fn_c_try_compile "$LINENO"; then :
20811
20812         have_cocoa=yes
20813
20814 fi
20815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20816         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
20817 $as_echo "$have_cocoa" >&6; }
20818         CFLAGS="$save_CFLAGS"
20819         if test x$have_cocoa = xyes; then
20820
20821 $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
20822
20823             SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
20824             SUMMARY_video="${SUMMARY_video} cocoa"
20825             have_video=yes
20826         fi
20827     fi
20828 }
20829
20830 CheckDirectFB()
20831 {
20832     # Check whether --enable-video-directfb was given.
20833 if test "${enable_video_directfb+set}" = set; then :
20834   enableval=$enable_video_directfb;
20835 else
20836   enable_video_directfb=no
20837 fi
20838
20839     if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
20840         video_directfb=no
20841
20842         DIRECTFB_REQUIRED_VERSION=1.0.0
20843         for ac_prog in directfb-config
20844 do
20845   # Extract the first word of "$ac_prog", so it can be a program name with args.
20846 set dummy $ac_prog; ac_word=$2
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20848 $as_echo_n "checking for $ac_word... " >&6; }
20849 if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
20850   $as_echo_n "(cached) " >&6
20851 else
20852   case $DIRECTFBCONFIG in
20853   [\\/]* | ?:[\\/]*)
20854   ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
20855   ;;
20856   *)
20857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20858 as_dummy="$prefix/bin:$PATH"
20859 for as_dir in $as_dummy
20860 do
20861   IFS=$as_save_IFS
20862   test -z "$as_dir" && as_dir=.
20863     for ac_exec_ext in '' $ac_executable_extensions; do
20864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20865     ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
20866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20867     break 2
20868   fi
20869 done
20870   done
20871 IFS=$as_save_IFS
20872
20873   ;;
20874 esac
20875 fi
20876 DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
20877 if test -n "$DIRECTFBCONFIG"; then
20878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
20879 $as_echo "$DIRECTFBCONFIG" >&6; }
20880 else
20881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20882 $as_echo "no" >&6; }
20883 fi
20884
20885
20886   test -n "$DIRECTFBCONFIG" && break
20887 done
20888 test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
20889
20890         if test x$DIRECTFBCONFIG = xno; then
20891             # Extract the first word of "pkg-config", so it can be a program name with args.
20892 set dummy pkg-config; ac_word=$2
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20894 $as_echo_n "checking for $ac_word... " >&6; }
20895 if ${ac_cv_path_PKG_CONFIG+:} false; then :
20896   $as_echo_n "(cached) " >&6
20897 else
20898   case $PKG_CONFIG in
20899   [\\/]* | ?:[\\/]*)
20900   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20901   ;;
20902   *)
20903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20904 for as_dir in $PATH
20905 do
20906   IFS=$as_save_IFS
20907   test -z "$as_dir" && as_dir=.
20908     for ac_exec_ext in '' $ac_executable_extensions; do
20909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20910     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20912     break 2
20913   fi
20914 done
20915   done
20916 IFS=$as_save_IFS
20917
20918   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20919   ;;
20920 esac
20921 fi
20922 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20923 if test -n "$PKG_CONFIG"; then
20924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20925 $as_echo "$PKG_CONFIG" >&6; }
20926 else
20927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20928 $as_echo "no" >&6; }
20929 fi
20930
20931
20932             if test x$PKG_CONFIG != xno; then
20933                 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
20934                     DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
20935                     DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
20936                     DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
20937                     video_directfb=yes
20938                 fi
20939             fi
20940         else
20941             set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
20942             NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
20943             set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
20944             HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
20945             if test $HAVE_VERSION -ge $NEED_VERSION; then
20946                 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
20947                 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
20948                 DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
20949                 video_directfb=yes
20950             fi
20951         fi
20952         if test x$video_directfb = xyes; then
20953             # SuSE 11.1 installs directfb-config without directfb-devel
20954             save_CPPFLAGS="$CPPFLAGS"
20955             CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
20956             ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
20957 if test "x$ac_cv_header_directfb_h" = xyes; then :
20958   have_directfb_hdr=yes
20959 else
20960   have_directfb_hdr=no
20961 fi
20962
20963
20964             CPPFLAGS="$save_CPPFLAGS"
20965             video_directfb=$have_directfb_hdr
20966         fi
20967         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
20968 $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
20969         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
20970 $as_echo "$video_directfb" >&6; }
20971
20972         if test x$video_directfb = xyes; then
20973             # Check whether --enable-directfb-shared was given.
20974 if test "${enable_directfb_shared+set}" = set; then :
20975   enableval=$enable_directfb_shared;
20976 else
20977   enable_directfb_shared=yes
20978 fi
20979
20980
20981
20982 $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
20983
20984
20985 $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
20986
20987             SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
20988             EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
20989
20990             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
20991 $as_echo_n "checking for directfb dynamic loading support... " >&6; }
20992             directfb_shared=no
20993             directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
20994             # | sed 's/.*\/\(.*\)/\1/; q'`]
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
20996 $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
20997             if test x$have_loadso != xyes && \
20998                test x$enable_directfb_shared = xyes; then
20999                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
21000 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
21001             fi
21002             if test x$have_loadso = xyes && \
21003                test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
21004                 directfb_shared=yes
21005                 echo "-- $directfb_lib_spec -> $directfb_lib"
21006
21007 cat >>confdefs.h <<_ACEOF
21008 #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
21009 _ACEOF
21010
21011                 SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
21012             else
21013                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
21014                 SUMMARY_video="${SUMMARY_video} directfb"
21015             fi
21016             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
21017 $as_echo "$directfb_shared" >&6; }
21018             SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
21019             have_video=yes
21020         fi
21021     fi
21022 }
21023
21024 CheckFusionSound()
21025 {
21026     # Check whether --enable-fusionsound was given.
21027 if test "${enable_fusionsound+set}" = set; then :
21028   enableval=$enable_fusionsound;
21029 else
21030   enable_fusionsound=no
21031 fi
21032
21033     if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
21034         fusionsound=no
21035
21036         FUSIONSOUND_REQUIRED_VERSION=1.1.1
21037
21038         # Extract the first word of "pkg-config", so it can be a program name with args.
21039 set dummy pkg-config; ac_word=$2
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21041 $as_echo_n "checking for $ac_word... " >&6; }
21042 if ${ac_cv_path_PKG_CONFIG+:} false; then :
21043   $as_echo_n "(cached) " >&6
21044 else
21045   case $PKG_CONFIG in
21046   [\\/]* | ?:[\\/]*)
21047   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21048   ;;
21049   *)
21050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21051 for as_dir in $PATH
21052 do
21053   IFS=$as_save_IFS
21054   test -z "$as_dir" && as_dir=.
21055     for ac_exec_ext in '' $ac_executable_extensions; do
21056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21057     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21059     break 2
21060   fi
21061 done
21062   done
21063 IFS=$as_save_IFS
21064
21065   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21066   ;;
21067 esac
21068 fi
21069 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21070 if test -n "$PKG_CONFIG"; then
21071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21072 $as_echo "$PKG_CONFIG" >&6; }
21073 else
21074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21075 $as_echo "no" >&6; }
21076 fi
21077
21078
21079         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
21080 $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
21081         if test x$PKG_CONFIG != xno; then
21082             if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
21083                 FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
21084                 FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
21085                 fusionsound=yes
21086             fi
21087         fi
21088         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
21089 $as_echo "$fusionsound" >&6; }
21090
21091         if test x$fusionsound = xyes; then
21092
21093 $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
21094
21095             SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
21096             EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
21097
21098             # Check whether --enable-fusionsound-shared was given.
21099 if test "${enable_fusionsound_shared+set}" = set; then :
21100   enableval=$enable_fusionsound_shared;
21101 else
21102   enable_fusionsound_shared=yes
21103 fi
21104
21105             fusionsound_shared=no
21106             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
21107 $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
21108             if test x$have_loadso != xyes && \
21109                test x$enable_fusionsound_shared = xyes; then
21110                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
21111 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
21112             fi
21113             if test x$have_loadso = xyes && \
21114                test x$enable_fusionsound_shared = xyes; then
21115
21116 cat >>confdefs.h <<_ACEOF
21117 #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
21118 _ACEOF
21119
21120                 fusionsound_shared=yes
21121                 SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
21122             else
21123                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
21124                 SUMMARY_audio="${SUMMARY_audio} fusionsound"
21125             fi
21126             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
21127 $as_echo "$fusionsound_shared" >&6; }
21128
21129             have_audio=yes
21130         fi
21131     fi
21132 }
21133
21134 CheckDummyVideo()
21135 {
21136     # Check whether --enable-video-dummy was given.
21137 if test "${enable_video_dummy+set}" = set; then :
21138   enableval=$enable_video_dummy;
21139 else
21140   enable_video_dummy=yes
21141 fi
21142
21143     if test x$enable_video_dummy = xyes; then
21144
21145 $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
21146
21147         SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
21148         have_video=yes
21149         SUMMARY_video="${SUMMARY_video} dummy"
21150     fi
21151 }
21152
21153 # Check whether --enable-video-opengl was given.
21154 if test "${enable_video_opengl+set}" = set; then :
21155   enableval=$enable_video_opengl;
21156 else
21157   enable_video_opengl=yes
21158 fi
21159
21160
21161 CheckOpenGLX11()
21162 {
21163     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21164         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
21165 $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
21166         video_opengl=no
21167         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21168 /* end confdefs.h.  */
21169
21170          #include <GL/gl.h>
21171          #include <GL/glx.h>
21172
21173 int
21174 main ()
21175 {
21176
21177
21178   ;
21179   return 0;
21180 }
21181 _ACEOF
21182 if ac_fn_c_try_compile "$LINENO"; then :
21183
21184         video_opengl=yes
21185
21186 fi
21187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21188         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
21189 $as_echo "$video_opengl" >&6; }
21190         if test x$video_opengl = xyes; then
21191
21192 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21193
21194
21195 $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
21196
21197
21198 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21199
21200             SUMMARY_video="${SUMMARY_video} opengl"
21201         fi
21202     fi
21203 }
21204
21205 # Check whether --enable-video-opengles was given.
21206 if test "${enable_video_opengles+set}" = set; then :
21207   enableval=$enable_video_opengles;
21208 else
21209   enable_video_opengles=yes
21210 fi
21211
21212 # Check whether --enable-video-opengles1 was given.
21213 if test "${enable_video_opengles1+set}" = set; then :
21214   enableval=$enable_video_opengles1;
21215 else
21216   enable_video_opengles1=yes
21217 fi
21218
21219 # Check whether --enable-video-opengles2 was given.
21220 if test "${enable_video_opengles2+set}" = set; then :
21221   enableval=$enable_video_opengles2;
21222 else
21223   enable_video_opengles2=yes
21224 fi
21225
21226 # Check whether --enable-video-vulkan was given.
21227 if test "${enable_video_vulkan+set}" = set; then :
21228   enableval=$enable_video_vulkan;
21229 else
21230   enable_video_vulkan=yes
21231 fi
21232
21233
21234
21235 CheckOpenGLESX11()
21236 {
21237     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
21238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
21239 $as_echo_n "checking for EGL support... " >&6; }
21240         video_opengl_egl=no
21241         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21242 /* end confdefs.h.  */
21243
21244           #define LINUX
21245           #define EGL_API_FB
21246           #include <EGL/egl.h>
21247           #include <EGL/eglext.h>
21248
21249 int
21250 main ()
21251 {
21252
21253
21254   ;
21255   return 0;
21256 }
21257 _ACEOF
21258 if ac_fn_c_try_compile "$LINENO"; then :
21259
21260         video_opengl_egl=yes
21261
21262 fi
21263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21264         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
21265 $as_echo "$video_opengl_egl" >&6; }
21266         if test x$video_opengl_egl = xyes; then
21267
21268 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
21269
21270         fi
21271
21272         if test x$enable_video_opengles1 = xyes; then
21273             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
21274 $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
21275             video_opengles_v1=no
21276             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21277 /* end confdefs.h.  */
21278
21279              #include <GLES/gl.h>
21280              #include <GLES/glext.h>
21281
21282 int
21283 main ()
21284 {
21285
21286
21287   ;
21288   return 0;
21289 }
21290 _ACEOF
21291 if ac_fn_c_try_compile "$LINENO"; then :
21292
21293             video_opengles_v1=yes
21294
21295 fi
21296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21297             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
21298 $as_echo "$video_opengles_v1" >&6; }
21299             if test x$video_opengles_v1 = xyes; then
21300
21301 $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
21302
21303
21304 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
21305
21306                 SUMMARY_video="${SUMMARY_video} opengl_es1"
21307             fi
21308         fi
21309
21310         if test x$enable_video_opengles2 = xyes; then
21311             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
21312 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
21313             video_opengles_v2=no
21314             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21315 /* end confdefs.h.  */
21316
21317              #include <GLES2/gl2.h>
21318              #include <GLES2/gl2ext.h>
21319
21320 int
21321 main ()
21322 {
21323
21324
21325   ;
21326   return 0;
21327 }
21328 _ACEOF
21329 if ac_fn_c_try_compile "$LINENO"; then :
21330
21331             video_opengles_v2=yes
21332
21333 fi
21334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21335             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
21336 $as_echo "$video_opengles_v2" >&6; }
21337             if test x$video_opengles_v2 = xyes; then
21338
21339 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
21340
21341
21342 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
21343
21344                 SUMMARY_video="${SUMMARY_video} opengl_es2"
21345             fi
21346         fi
21347     fi
21348 }
21349
21350 CheckWINDOWSGL()
21351 {
21352     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21353
21354 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21355
21356
21357 $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
21358
21359
21360 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21361
21362         SUMMARY_video="${SUMMARY_video} opengl"
21363     fi
21364 }
21365
21366 CheckWINDOWSGLES()
21367 {
21368     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
21369
21370         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
21371 $as_echo_n "checking for EGL support... " >&6; }
21372         video_opengl_egl=no
21373         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21374 /* end confdefs.h.  */
21375
21376          #include <EGL/egl.h>
21377
21378 int
21379 main ()
21380 {
21381
21382
21383   ;
21384   return 0;
21385 }
21386 _ACEOF
21387 if ac_fn_c_try_compile "$LINENO"; then :
21388
21389         video_opengl_egl=yes
21390
21391 fi
21392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21393         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
21394 $as_echo "$video_opengl_egl" >&6; }
21395         if test x$video_opengl_egl = xyes; then
21396
21397 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21398
21399
21400 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
21401
21402             SUMMARY_video="${SUMMARY_video} opengl_es1"
21403         fi
21404
21405         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
21406 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
21407         video_opengles_v2=no
21408         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21409 /* end confdefs.h.  */
21410
21411          #include <GLES2/gl2.h>
21412          #include <GLES2/gl2ext.h>
21413
21414 int
21415 main ()
21416 {
21417
21418
21419   ;
21420   return 0;
21421 }
21422 _ACEOF
21423 if ac_fn_c_try_compile "$LINENO"; then :
21424
21425         video_opengles_v2=yes
21426
21427 fi
21428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21429         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
21430 $as_echo "$video_opengles_v2" >&6; }
21431         if test x$video_opengles_v2 = xyes; then
21432
21433 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21434
21435
21436 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
21437
21438
21439 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
21440
21441             SUMMARY_video="${SUMMARY_video} opengl_es2"
21442         fi
21443     fi
21444 }
21445
21446 CheckHaikuGL()
21447 {
21448     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21449
21450 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21451
21452
21453 $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
21454
21455
21456 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21457
21458         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
21459         SUMMARY_video="${SUMMARY_video} opengl"
21460     fi
21461 }
21462
21463 CheckMacGL()
21464 {
21465     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21466
21467 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21468
21469
21470 $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
21471
21472
21473 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21474
21475         SUMMARY_video="${SUMMARY_video} opengl"
21476     fi
21477 }
21478
21479 CheckEmscriptenGLES()
21480 {
21481     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
21482         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
21483 $as_echo_n "checking for EGL support... " >&6; }
21484         video_opengl_egl=no
21485         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21486 /* end confdefs.h.  */
21487
21488          #include <EGL/egl.h>
21489
21490 int
21491 main ()
21492 {
21493
21494
21495   ;
21496   return 0;
21497 }
21498 _ACEOF
21499 if ac_fn_c_try_compile "$LINENO"; then :
21500
21501         video_opengl_egl=yes
21502
21503 fi
21504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21505         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
21506 $as_echo "$video_opengl_egl" >&6; }
21507         if test x$video_opengl_egl = xyes; then
21508
21509 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
21510
21511         fi
21512
21513         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
21514 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
21515         video_opengles_v2=no
21516         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21517 /* end confdefs.h.  */
21518
21519          #include <GLES2/gl2.h>
21520          #include <GLES2/gl2ext.h>
21521
21522 int
21523 main ()
21524 {
21525
21526
21527   ;
21528   return 0;
21529 }
21530 _ACEOF
21531 if ac_fn_c_try_compile "$LINENO"; then :
21532
21533         video_opengles_v2=yes
21534
21535 fi
21536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21537         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
21538 $as_echo "$video_opengles_v2" >&6; }
21539         if test x$video_opengles_v2 = xyes; then
21540
21541 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
21542
21543
21544 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
21545
21546             SUMMARY_video="${SUMMARY_video} opengl_es2"
21547         fi
21548     fi
21549 }
21550
21551 CheckVulkanTizen()
21552 {
21553     if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
21554         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vulkan support" >&5
21555 $as_echo_n "checking for Vulkan support... " >&6; }
21556         video_vulkan=no
21557         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21558 /* end confdefs.h.  */
21559
21560          #include <vulkan/vulkan.h>
21561
21562 int
21563 main ()
21564 {
21565
21566           uint32_t instance_layer_count = 0;
21567           vkEnumerateInstanceLayerProperties(&instance_layer_count, NULL);
21568
21569   ;
21570   return 0;
21571 }
21572 _ACEOF
21573 if ac_fn_c_try_compile "$LINENO"; then :
21574
21575         video_vulkan=yes
21576
21577 fi
21578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21579         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_vulkan" >&5
21580 $as_echo "$video_vulkan" >&6; }
21581         if test x$video_vulkan = xyes; then
21582
21583 $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
21584
21585             SUMMARY_video="${SUMMARY_video} vulkan"
21586         fi
21587     fi
21588 }
21589
21590 CheckInputEvents()
21591 {
21592             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
21593 $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
21594         use_input_events=no
21595         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21596 /* end confdefs.h.  */
21597
21598           #include <linux/input.h>
21599
21600 int
21601 main ()
21602 {
21603
21604           #ifndef EVIOCGNAME
21605           #error EVIOCGNAME() ioctl not available
21606           #endif
21607
21608   ;
21609   return 0;
21610 }
21611 _ACEOF
21612 if ac_fn_c_try_compile "$LINENO"; then :
21613
21614         use_input_events=yes
21615
21616 fi
21617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21618         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
21619 $as_echo "$use_input_events" >&6; }
21620         if test x$use_input_events = xyes; then
21621
21622 $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
21623
21624             SUMMARY_input="${SUMMARY_input} linuxev"
21625         fi
21626 }
21627
21628 CheckInputKD()
21629 {
21630
21631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
21632 $as_echo_n "checking for Linux kd.h... " >&6; }
21633     use_input_kd=no
21634     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21635 /* end confdefs.h.  */
21636
21637       #include <linux/kd.h>
21638       #include <linux/keyboard.h>
21639
21640 int
21641 main ()
21642 {
21643
21644         struct kbentry kbe;
21645         kbe.kb_table = KG_CTRL;
21646         ioctl(0, KDGKBENT, &kbe);
21647
21648   ;
21649   return 0;
21650 }
21651 _ACEOF
21652 if ac_fn_c_try_compile "$LINENO"; then :
21653
21654     use_input_kd=yes
21655
21656 fi
21657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21658     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
21659 $as_echo "$use_input_kd" >&6; }
21660     if test x$use_input_kd = xyes; then
21661
21662 $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
21663
21664         SUMMARY_input="${SUMMARY_input} linuxkd"
21665     fi
21666 }
21667
21668 CheckLibUDev()
21669 {
21670     # Check whether --enable-libudev was given.
21671 if test "${enable_libudev+set}" = set; then :
21672   enableval=$enable_libudev;
21673 else
21674   enable_libudev=yes
21675 fi
21676
21677     if test x$enable_libudev = xyes; then
21678         ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
21679 if test "x$ac_cv_header_libudev_h" = xyes; then :
21680   have_libudev_h_hdr=yes
21681 else
21682   have_libudev_h_hdr=no
21683 fi
21684
21685
21686         if test x$have_libudev_h_hdr = xyes; then
21687
21688 $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
21689
21690         fi
21691     fi
21692 }
21693
21694 CheckDBus()
21695 {
21696     # Check whether --enable-dbus was given.
21697 if test "${enable_dbus+set}" = set; then :
21698   enableval=$enable_dbus;
21699 else
21700   enable_dbus=yes
21701 fi
21702
21703     if test x$enable_dbus = xyes; then
21704         # Extract the first word of "pkg-config", so it can be a program name with args.
21705 set dummy pkg-config; ac_word=$2
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21707 $as_echo_n "checking for $ac_word... " >&6; }
21708 if ${ac_cv_path_PKG_CONFIG+:} false; then :
21709   $as_echo_n "(cached) " >&6
21710 else
21711   case $PKG_CONFIG in
21712   [\\/]* | ?:[\\/]*)
21713   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21714   ;;
21715   *)
21716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21717 for as_dir in $PATH
21718 do
21719   IFS=$as_save_IFS
21720   test -z "$as_dir" && as_dir=.
21721     for ac_exec_ext in '' $ac_executable_extensions; do
21722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21723     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21725     break 2
21726   fi
21727 done
21728   done
21729 IFS=$as_save_IFS
21730
21731   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21732   ;;
21733 esac
21734 fi
21735 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21736 if test -n "$PKG_CONFIG"; then
21737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21738 $as_echo "$PKG_CONFIG" >&6; }
21739 else
21740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21741 $as_echo "no" >&6; }
21742 fi
21743
21744
21745         if test x$PKG_CONFIG != xno; then
21746             DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
21747             save_CFLAGS="$CFLAGS"
21748             CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
21749             ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
21750 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
21751   have_dbus_dbus_h_hdr=yes
21752 else
21753   have_dbus_dbus_h_hdr=no
21754 fi
21755
21756
21757             CFLAGS="$save_CFLAGS"
21758             if test x$have_dbus_dbus_h_hdr = xyes; then
21759
21760 $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
21761
21762                 EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
21763                 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
21764             fi
21765         fi
21766     fi
21767 }
21768
21769 CheckIBus()
21770 {
21771     # Check whether --enable-ibus was given.
21772 if test "${enable_ibus+set}" = set; then :
21773   enableval=$enable_ibus;
21774 else
21775   enable_ibus=yes
21776 fi
21777
21778     if test x$enable_ibus = xyes; then
21779         # Extract the first word of "pkg-config", so it can be a program name with args.
21780 set dummy pkg-config; ac_word=$2
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21782 $as_echo_n "checking for $ac_word... " >&6; }
21783 if ${ac_cv_path_PKG_CONFIG+:} false; then :
21784   $as_echo_n "(cached) " >&6
21785 else
21786   case $PKG_CONFIG in
21787   [\\/]* | ?:[\\/]*)
21788   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21789   ;;
21790   *)
21791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21792 for as_dir in $PATH
21793 do
21794   IFS=$as_save_IFS
21795   test -z "$as_dir" && as_dir=.
21796     for ac_exec_ext in '' $ac_executable_extensions; do
21797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21798     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21800     break 2
21801   fi
21802 done
21803   done
21804 IFS=$as_save_IFS
21805
21806   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21807   ;;
21808 esac
21809 fi
21810 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21811 if test -n "$PKG_CONFIG"; then
21812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21813 $as_echo "$PKG_CONFIG" >&6; }
21814 else
21815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21816 $as_echo "no" >&6; }
21817 fi
21818
21819
21820         if test x$PKG_CONFIG != xno; then
21821             IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
21822             save_CFLAGS="$CFLAGS"
21823             CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
21824             ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
21825 if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
21826   have_ibus_ibus_h_hdr=yes
21827 else
21828   have_ibus_ibus_h_hdr=no
21829 fi
21830
21831
21832             ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
21833 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
21834   have_inotify_inotify_h_hdr=yes
21835 else
21836   have_inotify_inotify_h_hdr=no
21837 fi
21838
21839
21840             CFLAGS="$save_CFLAGS"
21841             if test x$have_ibus_ibus_h_hdr = xyes; then
21842                 if test x$enable_dbus != xyes; then
21843                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
21844 $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
21845                     have_ibus_ibus_h_hdr=no
21846                 elif test x$have_inotify_inotify_h_hdr != xyes; then
21847                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
21848 $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
21849                     have_ibus_ibus_h_hdr=no
21850                 else
21851
21852 $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
21853
21854                     EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
21855                     SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
21856                fi
21857             fi
21858         fi
21859     fi
21860 }
21861
21862 CheckTslib()
21863 {
21864     # Check whether --enable-input-tslib was given.
21865 if test "${enable_input_tslib+set}" = set; then :
21866   enableval=$enable_input_tslib;
21867 else
21868   enable_input_tslib=yes
21869 fi
21870
21871     if test x$enable_input_tslib = xyes; then
21872         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
21873 $as_echo_n "checking for Touchscreen library support... " >&6; }
21874         enable_input_tslib=no
21875         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21876 /* end confdefs.h.  */
21877
21878           #include "tslib.h"
21879
21880 int
21881 main ()
21882 {
21883
21884
21885   ;
21886   return 0;
21887 }
21888 _ACEOF
21889 if ac_fn_c_try_compile "$LINENO"; then :
21890
21891         enable_input_tslib=yes
21892
21893 fi
21894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21895         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
21896 $as_echo "$enable_input_tslib" >&6; }
21897         if test x$enable_input_tslib = xyes; then
21898
21899 $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
21900
21901             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
21902             SUMMARY_input="${SUMMARY_input} ts"
21903         fi
21904     fi
21905 }
21906
21907 CheckPTHREAD()
21908 {
21909         # Check whether --enable-pthreads was given.
21910 if test "${enable_pthreads+set}" = set; then :
21911   enableval=$enable_pthreads;
21912 else
21913   enable_pthreads=yes
21914 fi
21915
21916         # Check whether --enable-pthread-sem was given.
21917 if test "${enable_pthread_sem+set}" = set; then :
21918   enableval=$enable_pthread_sem;
21919 else
21920   enable_pthread_sem=yes
21921 fi
21922
21923     case "$host" in
21924          *-*-androideabi*)
21925             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21926             pthread_lib=""
21927             ;;
21928         *-*-linux*|*-*-uclinux*)
21929             pthread_cflags="-D_REENTRANT"
21930             pthread_lib="-lpthread"
21931             ;;
21932         *-*-bsdi*)
21933             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21934             pthread_lib=""
21935             ;;
21936         *-*-darwin*)
21937             pthread_cflags="-D_THREAD_SAFE"
21938 # causes Carbon.p complaints?
21939 #            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21940             ;;
21941         *-*-freebsd*|*-*-dragonfly*)
21942             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21943             pthread_lib="-pthread"
21944             ;;
21945         *-*-netbsd*)
21946             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21947             pthread_lib="-lpthread"
21948             ;;
21949         *-*-openbsd*)
21950             pthread_cflags="-D_REENTRANT"
21951             pthread_lib="-pthread"
21952             ;;
21953         *-*-solaris2.9)
21954             # From Solaris 9+, posix4's preferred name is rt.
21955             pthread_cflags="-D_REENTRANT"
21956             pthread_lib="-lpthread -lrt"
21957             ;;
21958         *-*-solaris2.10)
21959             # Solaris 10+ merged pthread into libc.
21960             pthread_cflags="-D_REENTRANT"
21961             pthread_lib="-lrt"
21962             ;;
21963         *-*-solaris*)
21964             # Solaris 11+ merged rt into libc.
21965             pthread_cflags="-D_REENTRANT"
21966             pthread_lib=""
21967             ;;
21968         *-*-sysv5*)
21969             pthread_cflags="-D_REENTRANT -Kthread"
21970             pthread_lib=""
21971             ;;
21972         *-*-aix*)
21973             pthread_cflags="-D_REENTRANT -mthreads"
21974             pthread_lib="-lpthread"
21975             ;;
21976         *-*-hpux11*)
21977             pthread_cflags="-D_REENTRANT"
21978             pthread_lib="-L/usr/lib -lpthread"
21979             ;;
21980         *-*-haiku*)
21981             pthread_cflags="-D_REENTRANT"
21982             pthread_lib=""
21983             ;;
21984         *)
21985             pthread_cflags="-D_REENTRANT"
21986             pthread_lib="-lpthread"
21987             ;;
21988     esac
21989     if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
21990         # Save the original compiler flags and libraries
21991         ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
21992         # Add the pthread compiler flags and libraries
21993         CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
21994         # Check to see if we have pthread support on this system
21995         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
21996 $as_echo_n "checking for pthreads... " >&6; }
21997         use_pthreads=no
21998         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21999 /* end confdefs.h.  */
22000
22001          #include <pthread.h>
22002
22003 int
22004 main ()
22005 {
22006
22007          pthread_attr_t type;
22008          pthread_attr_init(&type);
22009
22010   ;
22011   return 0;
22012 }
22013 _ACEOF
22014 if ac_fn_c_try_link "$LINENO"; then :
22015
22016         use_pthreads=yes
22017
22018 fi
22019 rm -f core conftest.err conftest.$ac_objext \
22020     conftest$ac_exeext conftest.$ac_ext
22021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
22022 $as_echo "$use_pthreads" >&6; }
22023         # Restore the compiler flags and libraries
22024         CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
22025
22026         # Do futher testing if we have pthread support...
22027         if test x$use_pthreads = xyes; then
22028
22029 $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
22030
22031             EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
22032             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
22033             SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
22034
22035             # Save the original compiler flags and libraries
22036             ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
22037             # Add the pthread compiler flags and libraries
22038             CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
22039
22040             # Check to see if recursive mutexes are available
22041             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
22042 $as_echo_n "checking for recursive mutexes... " >&6; }
22043             has_recursive_mutexes=no
22044             if test x$has_recursive_mutexes = xno; then
22045                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22046 /* end confdefs.h.  */
22047
22048                   #define _GNU_SOURCE 1
22049                   #include <pthread.h>
22050
22051 int
22052 main ()
22053 {
22054
22055                   pthread_mutexattr_t attr;
22056                   pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
22057
22058   ;
22059   return 0;
22060 }
22061 _ACEOF
22062 if ac_fn_c_try_link "$LINENO"; then :
22063
22064                 has_recursive_mutexes=yes
22065
22066 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
22067
22068
22069 fi
22070 rm -f core conftest.err conftest.$ac_objext \
22071     conftest$ac_exeext conftest.$ac_ext
22072             fi
22073             if test x$has_recursive_mutexes = xno; then
22074                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22075 /* end confdefs.h.  */
22076
22077                   #define _GNU_SOURCE 1
22078                   #include <pthread.h>
22079
22080 int
22081 main ()
22082 {
22083
22084                   pthread_mutexattr_t attr;
22085                   pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
22086
22087   ;
22088   return 0;
22089 }
22090 _ACEOF
22091 if ac_fn_c_try_link "$LINENO"; then :
22092
22093                 has_recursive_mutexes=yes
22094
22095 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
22096
22097
22098 fi
22099 rm -f core conftest.err conftest.$ac_objext \
22100     conftest$ac_exeext conftest.$ac_ext
22101             fi
22102             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
22103 $as_echo "$has_recursive_mutexes" >&6; }
22104
22105             # Check to see if pthread semaphore support is missing
22106             if test x$enable_pthread_sem = xyes; then
22107                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
22108 $as_echo_n "checking for pthread semaphores... " >&6; }
22109                 have_pthread_sem=no
22110                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111 /* end confdefs.h.  */
22112
22113                   #include <pthread.h>
22114                   #include <semaphore.h>
22115
22116 int
22117 main ()
22118 {
22119
22120
22121   ;
22122   return 0;
22123 }
22124 _ACEOF
22125 if ac_fn_c_try_compile "$LINENO"; then :
22126
22127                 have_pthread_sem=yes
22128
22129 fi
22130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22131                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
22132 $as_echo "$have_pthread_sem" >&6; }
22133             fi
22134             if test x$have_pthread_sem = xyes; then
22135                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
22136 $as_echo_n "checking for sem_timedwait... " >&6; }
22137                 have_sem_timedwait=no
22138                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22139 /* end confdefs.h.  */
22140
22141                   #include <pthread.h>
22142                   #include <semaphore.h>
22143
22144 int
22145 main ()
22146 {
22147
22148                   sem_timedwait(NULL, NULL);
22149
22150   ;
22151   return 0;
22152 }
22153 _ACEOF
22154 if ac_fn_c_try_link "$LINENO"; then :
22155
22156                 have_sem_timedwait=yes
22157                 $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
22158
22159
22160 fi
22161 rm -f core conftest.err conftest.$ac_objext \
22162     conftest$ac_exeext conftest.$ac_ext
22163                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
22164 $as_echo "$have_sem_timedwait" >&6; }
22165             fi
22166
22167             ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
22168 "
22169 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
22170   have_pthread_np_h=yes
22171 else
22172   have_pthread_np_h=no
22173 fi
22174
22175
22176             if test x$have_pthread_np_h = xyes; then
22177
22178 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
22179
22180             fi
22181
22182             # Check to see if pthread naming is available
22183             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
22184 $as_echo_n "checking for pthread_setname_np... " >&6; }
22185             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22186 /* end confdefs.h.  */
22187
22188 /* Override any GCC internal prototype to avoid an error.
22189    Use char because int might match the return type of a GCC
22190    builtin and then its argument prototype would still apply.  */
22191 #ifdef __cplusplus
22192 extern "C"
22193 #endif
22194 char pthread_setname_np ();
22195 int
22196 main ()
22197 {
22198 return pthread_setname_np ();
22199   ;
22200   return 0;
22201 }
22202 _ACEOF
22203 if ac_fn_c_try_link "$LINENO"; then :
22204
22205               has_pthread_setname_np=yes
22206
22207 $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
22208
22209
22210 else
22211
22212               has_pthread_setname_np=no
22213
22214 fi
22215 rm -f core conftest.err conftest.$ac_objext \
22216     conftest$ac_exeext conftest.$ac_ext
22217             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
22218 $as_echo "$has_pthread_setname_np" >&6; }
22219
22220             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
22221 $as_echo_n "checking for pthread_set_name_np... " >&6; }
22222             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22223 /* end confdefs.h.  */
22224
22225 /* Override any GCC internal prototype to avoid an error.
22226    Use char because int might match the return type of a GCC
22227    builtin and then its argument prototype would still apply.  */
22228 #ifdef __cplusplus
22229 extern "C"
22230 #endif
22231 char pthread_set_name_np ();
22232 int
22233 main ()
22234 {
22235 return pthread_set_name_np ();
22236   ;
22237   return 0;
22238 }
22239 _ACEOF
22240 if ac_fn_c_try_link "$LINENO"; then :
22241
22242               has_pthread_set_name_np=yes
22243
22244 $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
22245
22246
22247 else
22248
22249               has_pthread_set_name_np=no
22250
22251 fi
22252 rm -f core conftest.err conftest.$ac_objext \
22253     conftest$ac_exeext conftest.$ac_ext
22254             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
22255 $as_echo "$has_pthread_set_name_np" >&6; }
22256
22257             # Restore the compiler flags and libraries
22258             CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
22259
22260             # Basic thread creation functions
22261             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
22262
22263             # Semaphores
22264             # We can fake these with mutexes and condition variables if necessary
22265             if test x$have_pthread_sem = xyes; then
22266                 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
22267             else
22268                 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
22269             fi
22270
22271             # Mutexes
22272             # We can fake these with semaphores if necessary
22273             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
22274
22275             # Condition variables
22276             # We can fake these with semaphores and mutexes if necessary
22277             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
22278
22279             # Thread local storage
22280             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
22281
22282             have_threads=yes
22283         fi
22284     fi
22285 }
22286
22287 CheckWINDOWS()
22288 {
22289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
22290 $as_echo_n "checking Windows compiler... " >&6; }
22291     have_win32_gcc=no
22292     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22293 /* end confdefs.h.  */
22294
22295      #include <windows.h>
22296
22297 int
22298 main ()
22299 {
22300
22301
22302   ;
22303   return 0;
22304 }
22305 _ACEOF
22306 if ac_fn_c_try_compile "$LINENO"; then :
22307
22308     have_win32_gcc=yes
22309
22310 fi
22311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
22313 $as_echo "$have_win32_gcc" >&6; }
22314     if test x$have_win32_gcc != xyes; then
22315        as_fn_error $? "
22316 *** Your compiler ($CC) does not produce Windows executables!
22317        " "$LINENO" 5
22318     fi
22319
22320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
22321 $as_echo_n "checking Windows CE... " >&6; }
22322     have_wince=no
22323     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22324 /* end confdefs.h.  */
22325
22326 #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
22327 #error This is not Windows CE
22328 #endif
22329
22330 int
22331 main ()
22332 {
22333
22334
22335   ;
22336   return 0;
22337 }
22338 _ACEOF
22339 if ac_fn_c_try_compile "$LINENO"; then :
22340
22341     have_wince=yes
22342        as_fn_error $? "
22343 *** Sorry, Windows CE is no longer supported.
22344        " "$LINENO" 5
22345
22346 fi
22347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22348     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
22349 $as_echo "$have_wince" >&6; }
22350
22351     # This fixes Windows stack alignment with newer GCC
22352     CheckStackBoundary
22353 }
22354
22355 CheckDIRECTX()
22356 {
22357     # Check whether --enable-directx was given.
22358 if test "${enable_directx+set}" = set; then :
22359   enableval=$enable_directx;
22360 else
22361   enable_directx=yes
22362 fi
22363
22364     if test x$enable_directx = xyes; then
22365         ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
22366 if test "x$ac_cv_header_d3d9_h" = xyes; then :
22367   have_d3d=yes
22368 fi
22369
22370
22371         ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
22372 if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
22373   have_d3d11=yes
22374 fi
22375
22376
22377         ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
22378 if test "x$ac_cv_header_ddraw_h" = xyes; then :
22379   have_ddraw=yes
22380 fi
22381
22382
22383         ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
22384 if test "x$ac_cv_header_dsound_h" = xyes; then :
22385   have_dsound=yes
22386 fi
22387
22388
22389         ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
22390 if test "x$ac_cv_header_dinput_h" = xyes; then :
22391   have_dinput=yes
22392 fi
22393
22394
22395         ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
22396 if test "x$ac_cv_header_dxgi_h" = xyes; then :
22397   have_dxgi=yes
22398 fi
22399
22400
22401         ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
22402 if test "x$ac_cv_header_xaudio2_h" = xyes; then :
22403   have_xaudio2=yes
22404 fi
22405
22406
22407         ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
22408 if test "x$ac_cv_header_xinput_h" = xyes; then :
22409   have_xinput=yes
22410 fi
22411
22412
22413
22414         if test x$have_ddraw = xyes; then
22415
22416 $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
22417
22418         fi
22419         if test x$have_dinput = xyes; then
22420
22421 $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
22422
22423         fi
22424         if test x$have_dsound = xyes; then
22425
22426 $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
22427
22428         fi
22429         if test x$have_dxgi = xyes; then
22430
22431 $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
22432
22433         fi
22434         if test x$have_xinput = xyes; then
22435
22436 $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
22437
22438         fi
22439
22440         SUMMARY_video="${SUMMARY_video} directx"
22441         SUMMARY_audio="${SUMMARY_audio} directx"
22442
22443         # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
22444         # FIXME:  ...so force it off for now.
22445         case "$host" in
22446             *-*-cygwin*)
22447             have_dinput=false
22448             ;;
22449         esac
22450     fi
22451 }
22452
22453 CheckDLOPEN()
22454 {
22455     # Check whether --enable-sdl-dlopen was given.
22456 if test "${enable_sdl_dlopen+set}" = set; then :
22457   enableval=$enable_sdl_dlopen;
22458 else
22459   enable_sdl_dlopen=yes
22460 fi
22461
22462     if test x$enable_sdl_dlopen = xyes; then
22463         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
22464 $as_echo_n "checking for dlopen... " >&6; }
22465         have_dlopen=no
22466         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22467 /* end confdefs.h.  */
22468
22469          #include <dlfcn.h>
22470
22471 int
22472 main ()
22473 {
22474
22475          void *handle = dlopen("", RTLD_NOW);
22476          const char *loaderror = (char *) dlerror();
22477
22478   ;
22479   return 0;
22480 }
22481 _ACEOF
22482 if ac_fn_c_try_compile "$LINENO"; then :
22483
22484         have_dlopen=yes
22485
22486 fi
22487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22488         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
22489 $as_echo "$have_dlopen" >&6; }
22490
22491         if test x$have_dlopen = xyes; then
22492             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
22493 $as_echo_n "checking for dlopen in -lc... " >&6; }
22494 if ${ac_cv_lib_c_dlopen+:} false; then :
22495   $as_echo_n "(cached) " >&6
22496 else
22497   ac_check_lib_save_LIBS=$LIBS
22498 LIBS="-lc  $LIBS"
22499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22500 /* end confdefs.h.  */
22501
22502 /* Override any GCC internal prototype to avoid an error.
22503    Use char because int might match the return type of a GCC
22504    builtin and then its argument prototype would still apply.  */
22505 #ifdef __cplusplus
22506 extern "C"
22507 #endif
22508 char dlopen ();
22509 int
22510 main ()
22511 {
22512 return dlopen ();
22513   ;
22514   return 0;
22515 }
22516 _ACEOF
22517 if ac_fn_c_try_link "$LINENO"; then :
22518   ac_cv_lib_c_dlopen=yes
22519 else
22520   ac_cv_lib_c_dlopen=no
22521 fi
22522 rm -f core conftest.err conftest.$ac_objext \
22523     conftest$ac_exeext conftest.$ac_ext
22524 LIBS=$ac_check_lib_save_LIBS
22525 fi
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
22527 $as_echo "$ac_cv_lib_c_dlopen" >&6; }
22528 if test "x$ac_cv_lib_c_dlopen" = xyes; then :
22529   EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
22530 else
22531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22532 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22533 if ${ac_cv_lib_dl_dlopen+:} false; then :
22534   $as_echo_n "(cached) " >&6
22535 else
22536   ac_check_lib_save_LIBS=$LIBS
22537 LIBS="-ldl  $LIBS"
22538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22539 /* end confdefs.h.  */
22540
22541 /* Override any GCC internal prototype to avoid an error.
22542    Use char because int might match the return type of a GCC
22543    builtin and then its argument prototype would still apply.  */
22544 #ifdef __cplusplus
22545 extern "C"
22546 #endif
22547 char dlopen ();
22548 int
22549 main ()
22550 {
22551 return dlopen ();
22552   ;
22553   return 0;
22554 }
22555 _ACEOF
22556 if ac_fn_c_try_link "$LINENO"; then :
22557   ac_cv_lib_dl_dlopen=yes
22558 else
22559   ac_cv_lib_dl_dlopen=no
22560 fi
22561 rm -f core conftest.err conftest.$ac_objext \
22562     conftest$ac_exeext conftest.$ac_ext
22563 LIBS=$ac_check_lib_save_LIBS
22564 fi
22565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22566 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22567 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22568   EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
22569 else
22570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
22571 $as_echo_n "checking for dlopen in -lltdl... " >&6; }
22572 if ${ac_cv_lib_ltdl_dlopen+:} false; then :
22573   $as_echo_n "(cached) " >&6
22574 else
22575   ac_check_lib_save_LIBS=$LIBS
22576 LIBS="-lltdl  $LIBS"
22577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22578 /* end confdefs.h.  */
22579
22580 /* Override any GCC internal prototype to avoid an error.
22581    Use char because int might match the return type of a GCC
22582    builtin and then its argument prototype would still apply.  */
22583 #ifdef __cplusplus
22584 extern "C"
22585 #endif
22586 char dlopen ();
22587 int
22588 main ()
22589 {
22590 return dlopen ();
22591   ;
22592   return 0;
22593 }
22594 _ACEOF
22595 if ac_fn_c_try_link "$LINENO"; then :
22596   ac_cv_lib_ltdl_dlopen=yes
22597 else
22598   ac_cv_lib_ltdl_dlopen=no
22599 fi
22600 rm -f core conftest.err conftest.$ac_objext \
22601     conftest$ac_exeext conftest.$ac_ext
22602 LIBS=$ac_check_lib_save_LIBS
22603 fi
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
22605 $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
22606 if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
22607   EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
22608 fi
22609
22610 fi
22611
22612 fi
22613
22614
22615 $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
22616
22617             SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
22618             have_loadso=yes
22619         fi
22620     fi
22621 }
22622
22623 CheckUSBHID()
22624 {
22625     case "$host" in
22626         *-*-*bsd*)
22627             if test x$enable_joystick = xyes; then
22628                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
22629 $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
22630 if ${ac_cv_lib_usbhid_hid_init+:} false; then :
22631   $as_echo_n "(cached) " >&6
22632 else
22633   ac_check_lib_save_LIBS=$LIBS
22634 LIBS="-lusbhid  $LIBS"
22635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22636 /* end confdefs.h.  */
22637
22638 /* Override any GCC internal prototype to avoid an error.
22639    Use char because int might match the return type of a GCC
22640    builtin and then its argument prototype would still apply.  */
22641 #ifdef __cplusplus
22642 extern "C"
22643 #endif
22644 char hid_init ();
22645 int
22646 main ()
22647 {
22648 return hid_init ();
22649   ;
22650   return 0;
22651 }
22652 _ACEOF
22653 if ac_fn_c_try_link "$LINENO"; then :
22654   ac_cv_lib_usbhid_hid_init=yes
22655 else
22656   ac_cv_lib_usbhid_hid_init=no
22657 fi
22658 rm -f core conftest.err conftest.$ac_objext \
22659     conftest$ac_exeext conftest.$ac_ext
22660 LIBS=$ac_check_lib_save_LIBS
22661 fi
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
22663 $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
22664 if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
22665   have_libusbhid=yes
22666 fi
22667
22668                 if test x$have_libusbhid = xyes; then
22669                     ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
22670 if test "x$ac_cv_header_usbhid_h" = xyes; then :
22671   USB_CFLAGS="-DHAVE_USBHID_H"
22672 fi
22673
22674
22675                     ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
22676 if test "x$ac_cv_header_libusbhid_h" = xyes; then :
22677   USB_CFLAGS="-DHAVE_LIBUSBHID_H"
22678 fi
22679
22680
22681                     USB_LIBS="$USB_LIBS -lusbhid"
22682                 else
22683                     ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
22684 if test "x$ac_cv_header_usb_h" = xyes; then :
22685   USB_CFLAGS="-DHAVE_USB_H"
22686 fi
22687
22688
22689                     ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
22690 if test "x$ac_cv_header_libusb_h" = xyes; then :
22691   USB_CFLAGS="-DHAVE_LIBUSB_H"
22692 fi
22693
22694
22695                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
22696 $as_echo_n "checking for hid_init in -lusb... " >&6; }
22697 if ${ac_cv_lib_usb_hid_init+:} false; then :
22698   $as_echo_n "(cached) " >&6
22699 else
22700   ac_check_lib_save_LIBS=$LIBS
22701 LIBS="-lusb  $LIBS"
22702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22703 /* end confdefs.h.  */
22704
22705 /* Override any GCC internal prototype to avoid an error.
22706    Use char because int might match the return type of a GCC
22707    builtin and then its argument prototype would still apply.  */
22708 #ifdef __cplusplus
22709 extern "C"
22710 #endif
22711 char hid_init ();
22712 int
22713 main ()
22714 {
22715 return hid_init ();
22716   ;
22717   return 0;
22718 }
22719 _ACEOF
22720 if ac_fn_c_try_link "$LINENO"; then :
22721   ac_cv_lib_usb_hid_init=yes
22722 else
22723   ac_cv_lib_usb_hid_init=no
22724 fi
22725 rm -f core conftest.err conftest.$ac_objext \
22726     conftest$ac_exeext conftest.$ac_ext
22727 LIBS=$ac_check_lib_save_LIBS
22728 fi
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
22730 $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
22731 if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
22732   USB_LIBS="$USB_LIBS -lusb"
22733 fi
22734
22735                 fi
22736
22737                 save_CFLAGS="$CFLAGS"
22738                 CFLAGS="$CFLAGS $USB_CFLAGS"
22739
22740                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
22741 $as_echo_n "checking for usbhid... " >&6; }
22742                 have_usbhid=no
22743                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22744 /* end confdefs.h.  */
22745
22746                   #include <sys/types.h>
22747                   #if defined(HAVE_USB_H)
22748                   #include <usb.h>
22749                   #endif
22750                   #ifdef __DragonFly__
22751                   # include <bus/usb/usb.h>
22752                   # include <bus/usb/usbhid.h>
22753                   #else
22754                   # include <dev/usb/usb.h>
22755                   # include <dev/usb/usbhid.h>
22756                   #endif
22757                   #if defined(HAVE_USBHID_H)
22758                   #include <usbhid.h>
22759                   #elif defined(HAVE_LIBUSB_H)
22760                   #include <libusb.h>
22761                   #elif defined(HAVE_LIBUSBHID_H)
22762                   #include <libusbhid.h>
22763                   #endif
22764
22765 int
22766 main ()
22767 {
22768
22769                   struct report_desc *repdesc;
22770                   struct usb_ctl_report *repbuf;
22771                   hid_kind_t hidkind;
22772
22773   ;
22774   return 0;
22775 }
22776 _ACEOF
22777 if ac_fn_c_try_compile "$LINENO"; then :
22778
22779                 have_usbhid=yes
22780
22781 fi
22782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22783                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
22784 $as_echo "$have_usbhid" >&6; }
22785
22786                 if test x$have_usbhid = xyes; then
22787                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
22788 $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
22789                     have_usbhid_ucr_data=no
22790                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22791 /* end confdefs.h.  */
22792
22793                       #include <sys/types.h>
22794                       #if defined(HAVE_USB_H)
22795                       #include <usb.h>
22796                       #endif
22797                       #ifdef __DragonFly__
22798                       # include <bus/usb/usb.h>
22799                       # include <bus/usb/usbhid.h>
22800                       #else
22801                       # include <dev/usb/usb.h>
22802                       # include <dev/usb/usbhid.h>
22803                       #endif
22804                       #if defined(HAVE_USBHID_H)
22805                       #include <usbhid.h>
22806                       #elif defined(HAVE_LIBUSB_H)
22807                       #include <libusb.h>
22808                       #elif defined(HAVE_LIBUSBHID_H)
22809                       #include <libusbhid.h>
22810                       #endif
22811
22812 int
22813 main ()
22814 {
22815
22816                       struct usb_ctl_report buf;
22817                       if (buf.ucr_data) { }
22818
22819   ;
22820   return 0;
22821 }
22822 _ACEOF
22823 if ac_fn_c_try_compile "$LINENO"; then :
22824
22825                     have_usbhid_ucr_data=yes
22826
22827 fi
22828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22829                     if test x$have_usbhid_ucr_data = xyes; then
22830                         USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
22831                     fi
22832                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
22833 $as_echo "$have_usbhid_ucr_data" >&6; }
22834
22835                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
22836 $as_echo_n "checking for new usbhid API... " >&6; }
22837                     have_usbhid_new=no
22838                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22839 /* end confdefs.h.  */
22840
22841                       #include <sys/types.h>
22842                       #if defined(HAVE_USB_H)
22843                       #include <usb.h>
22844                       #endif
22845                       #ifdef __DragonFly__
22846                       #include <bus/usb/usb.h>
22847                       #include <bus/usb/usbhid.h>
22848                       #else
22849                       #include <dev/usb/usb.h>
22850                       #include <dev/usb/usbhid.h>
22851                       #endif
22852                       #if defined(HAVE_USBHID_H)
22853                       #include <usbhid.h>
22854                       #elif defined(HAVE_LIBUSB_H)
22855                       #include <libusb.h>
22856                       #elif defined(HAVE_LIBUSBHID_H)
22857                       #include <libusbhid.h>
22858                       #endif
22859
22860 int
22861 main ()
22862 {
22863
22864                       report_desc_t d;
22865                       hid_start_parse(d, 1, 1);
22866
22867   ;
22868   return 0;
22869 }
22870 _ACEOF
22871 if ac_fn_c_try_compile "$LINENO"; then :
22872
22873                     have_usbhid_new=yes
22874
22875 fi
22876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22877                     if test x$have_usbhid_new = xyes; then
22878                         USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
22879                     fi
22880                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
22881 $as_echo "$have_usbhid_new" >&6; }
22882
22883                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
22884 $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
22885                     have_machine_joystick=no
22886                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22887 /* end confdefs.h.  */
22888
22889                       #include <machine/joystick.h>
22890
22891 int
22892 main ()
22893 {
22894
22895                       struct joystick t;
22896
22897   ;
22898   return 0;
22899 }
22900 _ACEOF
22901 if ac_fn_c_try_compile "$LINENO"; then :
22902
22903                     have_machine_joystick=yes
22904
22905 fi
22906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22907                     if test x$have_machine_joystick = xyes; then
22908
22909 $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
22910
22911                     fi
22912                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
22913 $as_echo "$have_machine_joystick" >&6; }
22914
22915
22916 $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
22917
22918                     SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
22919                     EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
22920                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
22921                     have_joystick=yes
22922                 fi
22923                 CFLAGS="$save_CFLAGS"
22924             fi
22925         ;;
22926     esac
22927 }
22928
22929 CheckClockGettime()
22930 {
22931     # Check whether --enable-clock_gettime was given.
22932 if test "${enable_clock_gettime+set}" = set; then :
22933   enableval=$enable_clock_gettime;
22934 else
22935   enable_clock_gettime=yes
22936 fi
22937
22938     if test x$enable_clock_gettime = xyes; then
22939         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22940 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22941 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
22942   $as_echo_n "(cached) " >&6
22943 else
22944   ac_check_lib_save_LIBS=$LIBS
22945 LIBS="-lrt  $LIBS"
22946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22947 /* end confdefs.h.  */
22948
22949 /* Override any GCC internal prototype to avoid an error.
22950    Use char because int might match the return type of a GCC
22951    builtin and then its argument prototype would still apply.  */
22952 #ifdef __cplusplus
22953 extern "C"
22954 #endif
22955 char clock_gettime ();
22956 int
22957 main ()
22958 {
22959 return clock_gettime ();
22960   ;
22961   return 0;
22962 }
22963 _ACEOF
22964 if ac_fn_c_try_link "$LINENO"; then :
22965   ac_cv_lib_rt_clock_gettime=yes
22966 else
22967   ac_cv_lib_rt_clock_gettime=no
22968 fi
22969 rm -f core conftest.err conftest.$ac_objext \
22970     conftest$ac_exeext conftest.$ac_ext
22971 LIBS=$ac_check_lib_save_LIBS
22972 fi
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22974 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22975 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
22976   have_clock_gettime=yes
22977 fi
22978
22979         if test x$have_clock_gettime = xyes; then
22980
22981 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22982
22983             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
22984         else
22985             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
22986 $as_echo_n "checking for clock_gettime in -lc... " >&6; }
22987 if ${ac_cv_lib_c_clock_gettime+:} false; then :
22988   $as_echo_n "(cached) " >&6
22989 else
22990   ac_check_lib_save_LIBS=$LIBS
22991 LIBS="-lc  $LIBS"
22992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22993 /* end confdefs.h.  */
22994
22995 /* Override any GCC internal prototype to avoid an error.
22996    Use char because int might match the return type of a GCC
22997    builtin and then its argument prototype would still apply.  */
22998 #ifdef __cplusplus
22999 extern "C"
23000 #endif
23001 char clock_gettime ();
23002 int
23003 main ()
23004 {
23005 return clock_gettime ();
23006   ;
23007   return 0;
23008 }
23009 _ACEOF
23010 if ac_fn_c_try_link "$LINENO"; then :
23011   ac_cv_lib_c_clock_gettime=yes
23012 else
23013   ac_cv_lib_c_clock_gettime=no
23014 fi
23015 rm -f core conftest.err conftest.$ac_objext \
23016     conftest$ac_exeext conftest.$ac_ext
23017 LIBS=$ac_check_lib_save_LIBS
23018 fi
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
23020 $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
23021 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
23022   have_clock_gettime=yes
23023 fi
23024
23025             if test x$have_clock_gettime = xyes; then
23026
23027 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23028
23029                EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
23030             fi
23031         fi
23032     fi
23033 }
23034
23035 CheckLinuxVersion()
23036 {
23037     ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
23038 if test "x$ac_cv_header_linux_version_h" = xyes; then :
23039   have_linux_version_h=yes
23040 fi
23041
23042
23043     if test x$have_linux_version_h = xyes; then
23044         EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
23045     fi
23046 }
23047
23048 CheckRPATH()
23049 {
23050     # Check whether --enable-rpath was given.
23051 if test "${enable_rpath+set}" = set; then :
23052   enableval=$enable_rpath;
23053 else
23054   enable_rpath=yes
23055 fi
23056
23057 }
23058
23059 case "$host" in
23060     *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
23061         case "$host" in
23062             *-raspberry-linux*)
23063                 # Raspberry Pi
23064                 ARCH=linux
23065                 RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
23066                 CFLAGS="$CFLAGS $RPI_CFLAGS"
23067                 SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
23068                 EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
23069                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
23070
23071                 if test x$enable_video = xyes; then
23072                     SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
23073                     # FIXME: confdefs? Not AC_DEFINE?
23074                     $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
23075                     SUMMARY_video="${SUMMARY_video} rpi"
23076                 fi
23077                 ;;
23078             *-*-androideabi*)
23079                 # Android
23080                 ARCH=android
23081                 ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
23082                 CFLAGS="$CFLAGS $ANDROID_CFLAGS"
23083                 SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
23084                 EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
23085                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
23086
23087                 if test x$enable_video = xyes; then
23088                     SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
23089                     # FIXME: confdefs? Not AC_DEFINE?
23090                     $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
23091                     SUMMARY_video="${SUMMARY_video} android"
23092                 fi
23093                 ;;
23094             *-*-linux*)         ARCH=linux ;;
23095             *-*-uclinux*)       ARCH=linux ;;
23096             *-*-kfreebsd*-gnu)  ARCH=kfreebsd-gnu ;;
23097             *-*-knetbsd*-gnu)   ARCH=knetbsd-gnu ;;
23098             *-*-kopenbsd*-gnu)  ARCH=kopenbsd-gnu ;;
23099             *-*-gnu*)           ARCH=gnu ;; # must be last of the gnu variants
23100             *-*-bsdi*)          ARCH=bsdi ;;
23101             *-*-freebsd*)       ARCH=freebsd ;;
23102             *-*-dragonfly*)     ARCH=freebsd ;;
23103             *-raspberry-netbsd*)
23104                 # Raspberry Pi
23105                 ARCH=netbsd
23106                 RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
23107                 CFLAGS="$CFLAGS $RPI_CFLAGS"
23108                 SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
23109                 EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
23110                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
23111
23112                 if test x$enable_video = xyes; then
23113                     SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
23114                     $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
23115                     SUMMARY_video="${SUMMARY_video} raspberry"
23116                 fi
23117                 ;;
23118             *-*-netbsd*)        ARCH=netbsd ;;
23119             *-*-openbsd*)       ARCH=openbsd ;;
23120             *-*-sysv5*)         ARCH=sysv5 ;;
23121             *-*-solaris*)       ARCH=solaris ;;
23122             *-*-hpux*)          ARCH=hpux ;;
23123             *-*-aix*)           ARCH=aix ;;
23124             *-*-minix*)         ARCH=minix ;;
23125         esac
23126         CheckVisibilityHidden
23127         CheckDummyVideo
23128         CheckDiskAudio
23129         CheckDummyAudio
23130         CheckDLOPEN
23131         CheckOSS
23132         CheckALSA
23133         CheckPulseAudio
23134         CheckARTSC
23135         CheckESD
23136         CheckNAS
23137         CheckSNDIO
23138         CheckX11
23139         CheckDirectFB
23140         CheckFusionSound
23141         CheckOpenGLX11
23142         CheckOpenGLESX11
23143         CheckVulkanTizen
23144         CheckMir
23145         CheckWayland
23146         CheckTizen
23147         CheckLibUDev
23148         CheckDBus
23149         CheckIBus
23150         case $ARCH in
23151           linux)
23152               CheckInputEvents
23153               CheckInputKD
23154           ;;
23155         esac
23156         CheckTslib
23157         CheckUSBHID
23158         CheckPTHREAD
23159         CheckClockGettime
23160         CheckLinuxVersion
23161         CheckRPATH
23162         CheckVivanteVideo
23163         # Set up files for the audio library
23164         if test x$enable_audio = xyes; then
23165           case $ARCH in
23166             sysv5|solaris|hpux)
23167
23168 $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
23169
23170                 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
23171                 have_audio=yes
23172             ;;
23173             netbsd)  # Don't use this on OpenBSD, it's busted.
23174
23175 $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
23176
23177                 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
23178                 have_audio=yes
23179             ;;
23180             aix)
23181
23182 $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
23183
23184                 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
23185                 have_audio=yes
23186             ;;
23187             android)
23188
23189 $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
23190
23191                 SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
23192                 SUMMARY_audio="${SUMMARY_audio} android"
23193                 have_audio=yes
23194             ;;
23195           esac
23196         fi
23197         # Set up files for the joystick library
23198         if test x$enable_joystick = xyes; then
23199           case $ARCH in
23200             linux)
23201
23202 $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
23203
23204                 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
23205                 have_joystick=yes
23206             ;;
23207             android)
23208
23209 $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
23210
23211                 SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
23212                 have_joystick=yes
23213             ;;
23214           esac
23215         fi
23216         # Set up files for the haptic library
23217         if test x$enable_haptic = xyes; then
23218            if test x$use_input_events = xyes; then
23219              case $ARCH in
23220                linux)
23221
23222 $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
23223
23224                    SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
23225                    have_haptic=yes
23226                ;;
23227              esac
23228            fi
23229         fi
23230         # Set up files for the power library
23231         if test x$enable_power = xyes; then
23232              case $ARCH in
23233                linux)
23234
23235 $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
23236
23237                    SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
23238                    have_power=yes
23239                ;;
23240                android)
23241
23242 $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
23243
23244                    SOURCES="$SOURCES $srcdir/src/power/android/*.c"
23245                    have_power=yes
23246                ;;
23247              esac
23248         fi
23249         # Set up files for the filesystem library
23250         if test x$enable_filesystem = xyes; then
23251              case $ARCH in
23252                android)
23253
23254 $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
23255
23256                    SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
23257                    have_filesystem=yes
23258                ;;
23259                *)
23260
23261 $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
23262
23263                    SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
23264                    have_filesystem=yes
23265                ;;
23266              esac
23267         fi
23268         # Set up files for the timer library
23269         if test x$enable_timers = xyes; then
23270
23271 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
23272
23273             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23274             have_timers=yes
23275         fi
23276         # Set up files for udev hotplugging support
23277         if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
23278             SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
23279         fi
23280         # Set up files for evdev input
23281         if test x$use_input_events = xyes; then
23282             SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
23283         fi
23284         ;;
23285     *-*-cygwin* | *-*-mingw32*)
23286         ARCH=win32
23287         if test "$build" != "$host"; then # cross-compiling
23288             # Default cross-compile location
23289             ac_default_prefix=/usr/local/cross-tools/$host
23290         else
23291             # Look for the location of the tools and install there
23292             if test "$BUILD_PREFIX" != ""; then
23293                 ac_default_prefix=$BUILD_PREFIX
23294             fi
23295         fi
23296         CheckDummyVideo
23297         CheckDiskAudio
23298         CheckDummyAudio
23299         CheckWINDOWS
23300         CheckWINDOWSGL
23301         CheckWINDOWSGLES
23302         CheckDIRECTX
23303
23304         # Set up the core platform files
23305         SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
23306
23307         # Set up files for the video library
23308         if test x$enable_video = xyes; then
23309
23310 $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
23311
23312             SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
23313             have_video=yes
23314             # Check whether --enable-render-d3d was given.
23315 if test "${enable_render_d3d+set}" = set; then :
23316   enableval=$enable_render_d3d;
23317 else
23318   enable_render_d3d=yes
23319 fi
23320
23321             if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
23322
23323 $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
23324
23325             fi
23326             if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
23327
23328 $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
23329
23330             fi
23331         fi
23332         # Set up files for the audio library
23333         if test x$enable_audio = xyes; then
23334
23335 $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
23336
23337             SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
23338             if test x$have_dsound = xyes; then
23339
23340 $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
23341
23342                 SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
23343             fi
23344             if test x$have_xaudio2 = xyes; then
23345
23346 $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
23347
23348                 SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
23349             fi
23350             have_audio=yes
23351         fi
23352         # Set up files for the joystick library
23353         if test x$enable_joystick = xyes; then
23354             if test x$have_dinput = xyes -o x$have_xinput = xyes; then
23355                 if test x$have_xinput = xyes; then
23356
23357 $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
23358
23359                 fi
23360                 if test x$have_dinput = xyes; then
23361
23362 $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
23363
23364                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
23365                 fi
23366             else
23367
23368 $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
23369
23370             fi
23371             SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
23372             have_joystick=yes
23373         fi
23374         if test x$enable_haptic = xyes; then
23375             if test x$have_dinput = xyes -o x$have_xinput = xyes; then
23376                 if test x$have_xinput = xyes; then
23377
23378 $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
23379
23380                 fi
23381                 if test x$have_dinput = xyes; then
23382
23383 $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
23384
23385                 fi
23386                 SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
23387                 have_haptic=yes
23388             fi
23389         fi
23390         if test x$enable_power = xyes; then
23391
23392 $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
23393
23394             SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
23395             have_power=yes
23396         fi
23397         if test x$enable_filesystem = xyes; then
23398
23399 $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
23400
23401             SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
23402             have_filesystem=yes
23403         fi
23404         # Set up files for the thread library
23405         if test x$enable_threads = xyes; then
23406
23407 $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
23408
23409             SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
23410             SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
23411             have_threads=yes
23412         fi
23413         # Set up files for the timer library
23414         if test x$enable_timers = xyes; then
23415
23416 $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
23417
23418             SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
23419             have_timers=yes
23420         fi
23421         # Set up files for the shared object loading library
23422         if test x$enable_loadso = xyes; then
23423
23424 $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
23425
23426             SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
23427             have_loadso=yes
23428         fi
23429         # Set up the system libraries we need
23430         if test -f /lib/w32api/libuuid.a; then
23431             LIBUUID=/lib/w32api/libuuid.a
23432         else
23433             LIBUUID=-luuid
23434         fi
23435         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
23436         # The Windows platform requires special setup
23437         VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
23438         SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
23439         SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
23440         SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
23441
23442         # Check to see if this is a mingw or cygwin build
23443         have_mingw32=
23444         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
23445 $as_echo_n "checking for main in -lmingw32... " >&6; }
23446 if ${ac_cv_lib_mingw32_main+:} false; then :
23447   $as_echo_n "(cached) " >&6
23448 else
23449   ac_check_lib_save_LIBS=$LIBS
23450 LIBS="-lmingw32  $LIBS"
23451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23452 /* end confdefs.h.  */
23453
23454
23455 int
23456 main ()
23457 {
23458 return main ();
23459   ;
23460   return 0;
23461 }
23462 _ACEOF
23463 if ac_fn_c_try_link "$LINENO"; then :
23464   ac_cv_lib_mingw32_main=yes
23465 else
23466   ac_cv_lib_mingw32_main=no
23467 fi
23468 rm -f core conftest.err conftest.$ac_objext \
23469     conftest$ac_exeext conftest.$ac_ext
23470 LIBS=$ac_check_lib_save_LIBS
23471 fi
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
23473 $as_echo "$ac_cv_lib_mingw32_main" >&6; }
23474 if test "x$ac_cv_lib_mingw32_main" = xyes; then :
23475   have_mingw32=yes
23476 fi
23477
23478         if test x$have_mingw32 = xyes; then
23479             SDL_LIBS="-lmingw32 $SDL_LIBS"
23480         else
23481             SDL_LIBS="-lcygwin $SDL_LIBS"
23482         fi
23483         ;;
23484
23485         *-*-beos*)
23486         as_fn_error $? "
23487 *** BeOS support has been removed as of SDL 2.0.2.
23488         " "$LINENO" 5
23489         ;;
23490
23491     *-*-haiku*)
23492         ARCH=haiku
23493         ac_default_prefix=/boot/system
23494         CheckDummyVideo
23495         CheckDiskAudio
23496         CheckDummyAudio
23497         CheckHaikuVideo
23498         CheckHaikuGL
23499         CheckPTHREAD
23500
23501         # Set up files for the audio library
23502         if test x$enable_audio = xyes; then
23503
23504 $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
23505
23506             SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
23507             have_audio=yes
23508         fi
23509         # Set up files for the joystick library
23510         if test x$enable_joystick = xyes; then
23511
23512 $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
23513
23514             SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
23515             have_joystick=yes
23516         fi
23517         # Set up files for the timer library
23518         if test x$enable_timers = xyes; then
23519
23520 $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
23521
23522             SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
23523             have_timers=yes
23524         fi
23525         # Set up files for the shared object loading library
23526         if test x$enable_loadso = xyes; then
23527
23528 $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
23529
23530             SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
23531             have_loadso=yes
23532         fi
23533         # Set up files for the system power library
23534         if test x$enable_power = xyes; then
23535
23536 $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
23537
23538             SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
23539             have_power=yes
23540         fi
23541         # Set up files for the system filesystem library
23542         if test x$enable_filesystem = xyes; then
23543
23544 $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
23545
23546             SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
23547             have_filesystem=yes
23548         fi
23549         # The Haiku platform requires special setup.
23550         SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
23551         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
23552         ;;
23553     arm*-apple-darwin*)
23554         # iOS - We are not writing anything to confdefs.h because you have to replace
23555         # SDL_config.h for SDL_config_iphoneos.h anyway
23556         ARCH=ios
23557
23558         CheckVisibilityHidden
23559         CheckDummyVideo
23560         CheckDiskAudio
23561         CheckDummyAudio
23562         CheckDLOPEN
23563         CheckCOCOA
23564         CheckPTHREAD
23565
23566
23567         # Set up files for the audio library
23568         if test x$enable_audio = xyes; then
23569             SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
23570             SUMMARY_audio="${SUMMARY_audio} coreaudio"
23571             have_audio=yes
23572         fi
23573         # Set up files for the joystick library
23574         if test x$enable_joystick = xyes; then
23575             SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
23576             have_joystick=yes
23577         fi
23578         # Set up files for the haptic library
23579         #if test x$enable_haptic = xyes; then
23580         #    SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
23581         #    have_haptic=yes
23582         #    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
23583         #fi
23584         # Set up files for the power library
23585         if test x$enable_power = xyes; then
23586             SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
23587             have_power=yes
23588         fi
23589         # Set up files for the filesystem library
23590         if test x$enable_filesystem = xyes; then
23591             SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
23592             have_filesystem=yes
23593         fi
23594         # Set up files for the timer library
23595         if test x$enable_timers = xyes; then
23596             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23597             have_timers=yes
23598         fi
23599         # Set up additional files for the file library
23600         if test x$enable_file = xyes; then
23601             SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
23602         fi
23603         # The iOS platform requires special setup.
23604         SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
23605         EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
23606         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
23607         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
23608         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
23609         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
23610         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
23611         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
23612         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
23613         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
23614         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
23615         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
23616         ;;
23617     *-*-darwin* )
23618         # This could be either full "Mac OS X", or plain "Darwin" which is
23619         # just the OS X kernel sans upper layers like Carbon and Cocoa.
23620         # Next line is broken, and a few files below require Mac OS X (full)
23621         ARCH=macosx
23622
23623         # Mac OS X builds with both the Carbon and OSX APIs at the moment
23624         EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
23625         EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
23626
23627         CheckVisibilityHidden
23628         CheckDummyVideo
23629         CheckDiskAudio
23630         CheckDummyAudio
23631         CheckDLOPEN
23632         CheckCOCOA
23633         CheckX11
23634         CheckMacGL
23635         CheckOpenGLX11
23636         CheckPTHREAD
23637
23638         # Set up files for the audio library
23639         if test x$enable_audio = xyes; then
23640
23641 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
23642
23643             SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
23644             SUMMARY_audio="${SUMMARY_audio} coreaudio"
23645             have_audio=yes
23646         fi
23647         # Set up files for the joystick library
23648         if test x$enable_joystick = xyes; then
23649
23650 $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
23651
23652             SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
23653             have_joystick=yes
23654         fi
23655         # Set up files for the haptic library
23656         if test x$enable_haptic = xyes; then
23657
23658 $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
23659
23660             SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
23661             have_haptic=yes
23662             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
23663         fi
23664         # Set up files for the power library
23665         if test x$enable_power = xyes; then
23666
23667 $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
23668
23669             SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
23670             have_power=yes
23671         fi
23672         # Set up files for the filesystem library
23673         if test x$enable_filesystem = xyes; then
23674
23675 $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
23676
23677             SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
23678             have_filesystem=yes
23679         fi
23680         # Set up files for the timer library
23681         if test x$enable_timers = xyes; then
23682
23683 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
23684
23685             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23686             have_timers=yes
23687         fi
23688         # Set up additional files for the file library
23689         if test x$enable_file = xyes; then
23690             SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
23691         fi
23692         # The Mac OS X platform requires special setup.
23693         EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
23694         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
23695         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
23696         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
23697         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
23698         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
23699         # If audio is used, add the AudioUnit framework
23700         if test x$enable_audio = xyes; then
23701             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
23702         fi
23703         ;;
23704     *-nacl|*-pnacl)
23705         ARCH=nacl
23706         CheckNativeClient
23707         CheckDummyAudio
23708         CheckDummyVideo
23709         CheckInputEvents
23710         CheckPTHREAD
23711
23712         # Set up files for the timer library
23713         if test x$enable_timers = xyes; then
23714             $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
23715
23716             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23717             have_timers=yes
23718         fi
23719
23720         if test x$enable_filesystem = xyes; then
23721
23722 $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
23723
23724             SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
23725             have_filesystem=yes
23726         fi
23727         ;;
23728     *-*-emscripten* )
23729         if test x$enable_video = xyes; then
23730
23731 $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
23732
23733             SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
23734             have_video=yes
23735             SUMMARY_video="${SUMMARY_video} emscripten"
23736         fi
23737
23738         if test x$enable_audio = xyes; then
23739
23740 $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
23741
23742             SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
23743             have_audio=yes
23744             SUMMARY_audio="${SUMMARY_audio} emscripten"
23745         fi
23746
23747         CheckVisibilityHidden
23748         CheckDummyVideo
23749         CheckDiskAudio
23750         CheckDummyAudio
23751         CheckDLOPEN
23752         CheckClockGettime
23753         CheckEmscriptenGLES
23754
23755          # Set up files for the power library
23756         if test x$enable_power = xyes; then
23757
23758 $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
23759
23760             SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
23761             have_power=yes
23762         fi
23763
23764         # Set up files for the power library
23765         if test x$enable_joystick = xyes; then
23766
23767 $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
23768
23769             SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
23770             have_joystick=yes
23771         fi
23772
23773         # Set up files for the filesystem library
23774         if test x$enable_filesystem = xyes; then
23775
23776 $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
23777
23778             SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
23779             have_filesystem=yes
23780         fi
23781         # Set up files for the timer library
23782         if test x$enable_timers = xyes; then
23783
23784 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
23785
23786             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23787             have_timers=yes
23788         fi
23789         ;;
23790     *)
23791         as_fn_error $? "
23792 *** Unsupported host:  Please add to configure.in
23793         " "$LINENO" 5
23794         ;;
23795 esac
23796
23797 CheckWarnAll
23798
23799 # Verify that we have all the platform specific files we need
23800
23801 if test x$have_joystick != xyes; then
23802     if test x$enable_joystick = xyes; then
23803
23804 $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
23805
23806     fi
23807     SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
23808 fi
23809 if test x$have_haptic != xyes; then
23810     if test x$enable_haptic = xyes; then
23811
23812 $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
23813
23814     fi
23815     SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
23816 fi
23817 if test x$have_threads != xyes; then
23818     if test x$enable_threads = xyes; then
23819
23820 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
23821
23822     fi
23823     SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
23824 fi
23825 if test x$have_timers != xyes; then
23826     if test x$enable_timers = xyes; then
23827
23828 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
23829
23830     fi
23831     SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
23832 fi
23833 if test x$have_filesystem != xyes; then
23834     if test x$enable_filesystem = xyes; then
23835
23836 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
23837
23838     fi
23839     SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
23840 fi
23841 if test x$have_loadso != xyes; then
23842     if test x$enable_loadso = xyes; then
23843
23844 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
23845
23846     fi
23847     SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
23848 fi
23849 if test x$SDLMAIN_SOURCES = x; then
23850     SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
23851 fi
23852 SDLTEST_SOURCES="$srcdir/src/test/*.c"
23853
23854 OBJECTS=`echo $SOURCES`
23855 DEPENDS=`echo $SOURCES | tr ' ' '\n'`
23856 for EXT in asm cc m c S; do
23857     OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
23858     DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
23859 \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
23860         \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
23861 done
23862
23863 VERSION_OBJECTS=`echo $VERSION_SOURCES`
23864 VERSION_DEPENDS=`echo $VERSION_SOURCES`
23865 VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
23866 VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
23867 \\$(objects)/\\2.o: \\1/\\2.rc\\\\
23868         \\$(WINDRES) \\$< \\$@,g"`
23869
23870 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
23871 SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
23872 SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
23873 SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
23874 \\$(objects)/\\2.o: \\1/\\2.c\\\\
23875         \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
23876
23877 SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
23878 SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
23879 SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
23880 SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
23881 \\$(objects)/\\2.o: \\1/\\2.c\\\\
23882         \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
23883
23884 # Set runtime shared library paths as needed
23885
23886 if test "x$enable_rpath" = "xyes"; then
23887   if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
23888     SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
23889   fi
23890   if test $ARCH = solaris; then
23891     SDL_RLD_FLAGS="-R\${libdir}"
23892   fi
23893 else
23894   SDL_RLD_FLAGS=""
23895 fi
23896
23897 SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
23898
23899
23900
23901
23902
23903 if test x$enable_shared = xyes; then
23904     ENABLE_SHARED_TRUE=
23905     ENABLE_SHARED_FALSE="#"
23906 else
23907     ENABLE_SHARED_TRUE="#"
23908     ENABLE_SHARED_FALSE=
23909 fi
23910 if test x$enable_static = xyes; then
23911     ENABLE_STATIC_TRUE=
23912     ENABLE_STATIC_FALSE="#"
23913 else
23914     ENABLE_STATIC_TRUE="#"
23915     ENABLE_STATIC_FALSE=
23916 fi
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934 cat >Makefile.rules <<__EOF__
23935
23936 # Build rules for objects
23937 -include \$(OBJECTS:.lo=.d)
23938
23939 # Special dependency for SDL.c, since it depends on SDL_revision.h
23940 $srcdir/src/SDL.c: update-revision
23941 $DEPENDS
23942 $VERSION_DEPENDS
23943 $SDLMAIN_DEPENDS
23944 $SDLTEST_DEPENDS
23945 __EOF__
23946
23947 ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
23948
23949 ac_config_commands="$ac_config_commands sdl2_config"
23950
23951
23952 SUMMARY="SDL2 Configure Summary:\n"
23953 if test x$enable_shared = xyes; then
23954     SUMMARY="${SUMMARY}Building Shared Libraries\n"
23955 fi
23956 if test x$enable_static = xyes; then
23957     SUMMARY="${SUMMARY}Building Static Libraries\n"
23958 fi
23959 SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
23960 SUMMARY="${SUMMARY}Assembly Math   :${SUMMARY_math}\n"
23961 SUMMARY="${SUMMARY}Audio drivers   :${SUMMARY_audio}\n"
23962 SUMMARY="${SUMMARY}Video drivers   :${SUMMARY_video}\n"
23963 if test x$have_x = xyes; then
23964     SUMMARY="${SUMMARY}X11 libraries   :${SUMMARY_video_x11}\n"
23965 fi
23966 SUMMARY="${SUMMARY}Input drivers   :${SUMMARY_input}\n"
23967 if test x$enable_libudev = xyes; then
23968     SUMMARY="${SUMMARY}Using libudev   : YES\n"
23969 else
23970     SUMMARY="${SUMMARY}Using libudev   : NO\n"
23971 fi
23972 if test x$have_dbus_dbus_h_hdr = xyes; then
23973     SUMMARY="${SUMMARY}Using dbus      : YES\n"
23974 else
23975     SUMMARY="${SUMMARY}Using dbus      : NO\n"
23976 fi
23977 if test x$have_ibus_ibus_h_hdr = xyes; then
23978     SUMMARY="${SUMMARY}Using ibus      : YES\n"
23979 else
23980     SUMMARY="${SUMMARY}Using ibus      : NO\n"
23981 fi
23982 ac_config_commands="$ac_config_commands summary"
23983
23984
23985 cat >confcache <<\_ACEOF
23986 # This file is a shell script that caches the results of configure
23987 # tests run on this system so they can be shared between configure
23988 # scripts and configure runs, see configure's option --config-cache.
23989 # It is not useful on other systems.  If it contains results you don't
23990 # want to keep, you may remove or edit it.
23991 #
23992 # config.status only pays attention to the cache file if you give it
23993 # the --recheck option to rerun configure.
23994 #
23995 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23996 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23997 # following values.
23998
23999 _ACEOF
24000
24001 # The following way of writing the cache mishandles newlines in values,
24002 # but we know of no workaround that is simple, portable, and efficient.
24003 # So, we kill variables containing newlines.
24004 # Ultrix sh set writes to stderr and can't be redirected directly,
24005 # and sets the high bit in the cache file unless we assign to the vars.
24006 (
24007   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24008     eval ac_val=\$$ac_var
24009     case $ac_val in #(
24010     *${as_nl}*)
24011       case $ac_var in #(
24012       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24013 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24014       esac
24015       case $ac_var in #(
24016       _ | IFS | as_nl) ;; #(
24017       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24018       *) { eval $ac_var=; unset $ac_var;} ;;
24019       esac ;;
24020     esac
24021   done
24022
24023   (set) 2>&1 |
24024     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24025     *${as_nl}ac_space=\ *)
24026       # `set' does not quote correctly, so add quotes: double-quote
24027       # substitution turns \\\\ into \\, and sed turns \\ into \.
24028       sed -n \
24029         "s/'/'\\\\''/g;
24030           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24031       ;; #(
24032     *)
24033       # `set' quotes correctly as required by POSIX, so do not add quotes.
24034       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24035       ;;
24036     esac |
24037     sort
24038 ) |
24039   sed '
24040      /^ac_cv_env_/b end
24041      t clear
24042      :clear
24043      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24044      t end
24045      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24046      :end' >>confcache
24047 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24048   if test -w "$cache_file"; then
24049     if test "x$cache_file" != "x/dev/null"; then
24050       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24051 $as_echo "$as_me: updating cache $cache_file" >&6;}
24052       if test ! -f "$cache_file" || test -h "$cache_file"; then
24053         cat confcache >"$cache_file"
24054       else
24055         case $cache_file in #(
24056         */* | ?:*)
24057           mv -f confcache "$cache_file"$$ &&
24058           mv -f "$cache_file"$$ "$cache_file" ;; #(
24059         *)
24060           mv -f confcache "$cache_file" ;;
24061         esac
24062       fi
24063     fi
24064   else
24065     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24066 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24067   fi
24068 fi
24069 rm -f confcache
24070
24071 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24072 # Let make expand exec_prefix.
24073 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24074
24075 DEFS=-DHAVE_CONFIG_H
24076
24077 ac_libobjs=
24078 ac_ltlibobjs=
24079 U=
24080 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24081   # 1. Remove the extension, and $U if already installed.
24082   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24083   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24084   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24085   #    will be set to the directory where LIBOBJS objects are built.
24086   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24087   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24088 done
24089 LIBOBJS=$ac_libobjs
24090
24091 LTLIBOBJS=$ac_ltlibobjs
24092
24093
24094
24095 : "${CONFIG_STATUS=./config.status}"
24096 ac_write_fail=0
24097 ac_clean_files_save=$ac_clean_files
24098 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24100 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24101 as_write_fail=0
24102 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24103 #! $SHELL
24104 # Generated by $as_me.
24105 # Run this file to recreate the current configuration.
24106 # Compiler output produced by configure, useful for debugging
24107 # configure, is in config.log if it exists.
24108
24109 debug=false
24110 ac_cs_recheck=false
24111 ac_cs_silent=false
24112
24113 SHELL=\${CONFIG_SHELL-$SHELL}
24114 export SHELL
24115 _ASEOF
24116 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24117 ## -------------------- ##
24118 ## M4sh Initialization. ##
24119 ## -------------------- ##
24120
24121 # Be more Bourne compatible
24122 DUALCASE=1; export DUALCASE # for MKS sh
24123 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24124   emulate sh
24125   NULLCMD=:
24126   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24127   # is contrary to our usage.  Disable this feature.
24128   alias -g '${1+"$@"}'='"$@"'
24129   setopt NO_GLOB_SUBST
24130 else
24131   case `(set -o) 2>/dev/null` in #(
24132   *posix*) :
24133     set -o posix ;; #(
24134   *) :
24135      ;;
24136 esac
24137 fi
24138
24139
24140 as_nl='
24141 '
24142 export as_nl
24143 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24144 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24145 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24146 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24147 # Prefer a ksh shell builtin over an external printf program on Solaris,
24148 # but without wasting forks for bash or zsh.
24149 if test -z "$BASH_VERSION$ZSH_VERSION" \
24150     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24151   as_echo='print -r --'
24152   as_echo_n='print -rn --'
24153 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24154   as_echo='printf %s\n'
24155   as_echo_n='printf %s'
24156 else
24157   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24158     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24159     as_echo_n='/usr/ucb/echo -n'
24160   else
24161     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24162     as_echo_n_body='eval
24163       arg=$1;
24164       case $arg in #(
24165       *"$as_nl"*)
24166         expr "X$arg" : "X\\(.*\\)$as_nl";
24167         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24168       esac;
24169       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24170     '
24171     export as_echo_n_body
24172     as_echo_n='sh -c $as_echo_n_body as_echo'
24173   fi
24174   export as_echo_body
24175   as_echo='sh -c $as_echo_body as_echo'
24176 fi
24177
24178 # The user is always right.
24179 if test "${PATH_SEPARATOR+set}" != set; then
24180   PATH_SEPARATOR=:
24181   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24182     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24183       PATH_SEPARATOR=';'
24184   }
24185 fi
24186
24187
24188 # IFS
24189 # We need space, tab and new line, in precisely that order.  Quoting is
24190 # there to prevent editors from complaining about space-tab.
24191 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24192 # splitting by setting IFS to empty value.)
24193 IFS=" ""        $as_nl"
24194
24195 # Find who we are.  Look in the path if we contain no directory separator.
24196 as_myself=
24197 case $0 in #((
24198   *[\\/]* ) as_myself=$0 ;;
24199   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24200 for as_dir in $PATH
24201 do
24202   IFS=$as_save_IFS
24203   test -z "$as_dir" && as_dir=.
24204     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24205   done
24206 IFS=$as_save_IFS
24207
24208      ;;
24209 esac
24210 # We did not find ourselves, most probably we were run as `sh COMMAND'
24211 # in which case we are not to be found in the path.
24212 if test "x$as_myself" = x; then
24213   as_myself=$0
24214 fi
24215 if test ! -f "$as_myself"; then
24216   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24217   exit 1
24218 fi
24219
24220 # Unset variables that we do not need and which cause bugs (e.g. in
24221 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
24222 # suppresses any "Segmentation fault" message there.  '((' could
24223 # trigger a bug in pdksh 5.2.14.
24224 for as_var in BASH_ENV ENV MAIL MAILPATH
24225 do eval test x\${$as_var+set} = xset \
24226   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24227 done
24228 PS1='$ '
24229 PS2='> '
24230 PS4='+ '
24231
24232 # NLS nuisances.
24233 LC_ALL=C
24234 export LC_ALL
24235 LANGUAGE=C
24236 export LANGUAGE
24237
24238 # CDPATH.
24239 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24240
24241
24242 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24243 # ----------------------------------------
24244 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24245 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24246 # script with STATUS, using 1 if that was 0.
24247 as_fn_error ()
24248 {
24249   as_status=$1; test $as_status -eq 0 && as_status=1
24250   if test "$4"; then
24251     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24252     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24253   fi
24254   $as_echo "$as_me: error: $2" >&2
24255   as_fn_exit $as_status
24256 } # as_fn_error
24257
24258
24259 # as_fn_set_status STATUS
24260 # -----------------------
24261 # Set $? to STATUS, without forking.
24262 as_fn_set_status ()
24263 {
24264   return $1
24265 } # as_fn_set_status
24266
24267 # as_fn_exit STATUS
24268 # -----------------
24269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24270 as_fn_exit ()
24271 {
24272   set +e
24273   as_fn_set_status $1
24274   exit $1
24275 } # as_fn_exit
24276
24277 # as_fn_unset VAR
24278 # ---------------
24279 # Portably unset VAR.
24280 as_fn_unset ()
24281 {
24282   { eval $1=; unset $1;}
24283 }
24284 as_unset=as_fn_unset
24285 # as_fn_append VAR VALUE
24286 # ----------------------
24287 # Append the text in VALUE to the end of the definition contained in VAR. Take
24288 # advantage of any shell optimizations that allow amortized linear growth over
24289 # repeated appends, instead of the typical quadratic growth present in naive
24290 # implementations.
24291 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24292   eval 'as_fn_append ()
24293   {
24294     eval $1+=\$2
24295   }'
24296 else
24297   as_fn_append ()
24298   {
24299     eval $1=\$$1\$2
24300   }
24301 fi # as_fn_append
24302
24303 # as_fn_arith ARG...
24304 # ------------------
24305 # Perform arithmetic evaluation on the ARGs, and store the result in the
24306 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24307 # must be portable across $(()) and expr.
24308 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24309   eval 'as_fn_arith ()
24310   {
24311     as_val=$(( $* ))
24312   }'
24313 else
24314   as_fn_arith ()
24315   {
24316     as_val=`expr "$@" || test $? -eq 1`
24317   }
24318 fi # as_fn_arith
24319
24320
24321 if expr a : '\(a\)' >/dev/null 2>&1 &&
24322    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24323   as_expr=expr
24324 else
24325   as_expr=false
24326 fi
24327
24328 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24329   as_basename=basename
24330 else
24331   as_basename=false
24332 fi
24333
24334 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24335   as_dirname=dirname
24336 else
24337   as_dirname=false
24338 fi
24339
24340 as_me=`$as_basename -- "$0" ||
24341 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24342          X"$0" : 'X\(//\)$' \| \
24343          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24344 $as_echo X/"$0" |
24345     sed '/^.*\/\([^/][^/]*\)\/*$/{
24346             s//\1/
24347             q
24348           }
24349           /^X\/\(\/\/\)$/{
24350             s//\1/
24351             q
24352           }
24353           /^X\/\(\/\).*/{
24354             s//\1/
24355             q
24356           }
24357           s/.*/./; q'`
24358
24359 # Avoid depending upon Character Ranges.
24360 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24361 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24362 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24363 as_cr_digits='0123456789'
24364 as_cr_alnum=$as_cr_Letters$as_cr_digits
24365
24366 ECHO_C= ECHO_N= ECHO_T=
24367 case `echo -n x` in #(((((
24368 -n*)
24369   case `echo 'xy\c'` in
24370   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24371   xy)  ECHO_C='\c';;
24372   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
24373        ECHO_T=' ';;
24374   esac;;
24375 *)
24376   ECHO_N='-n';;
24377 esac
24378
24379 rm -f conf$$ conf$$.exe conf$$.file
24380 if test -d conf$$.dir; then
24381   rm -f conf$$.dir/conf$$.file
24382 else
24383   rm -f conf$$.dir
24384   mkdir conf$$.dir 2>/dev/null
24385 fi
24386 if (echo >conf$$.file) 2>/dev/null; then
24387   if ln -s conf$$.file conf$$ 2>/dev/null; then
24388     as_ln_s='ln -s'
24389     # ... but there are two gotchas:
24390     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24391     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24392     # In both cases, we have to default to `cp -pR'.
24393     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24394       as_ln_s='cp -pR'
24395   elif ln conf$$.file conf$$ 2>/dev/null; then
24396     as_ln_s=ln
24397   else
24398     as_ln_s='cp -pR'
24399   fi
24400 else
24401   as_ln_s='cp -pR'
24402 fi
24403 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24404 rmdir conf$$.dir 2>/dev/null
24405
24406
24407 # as_fn_mkdir_p
24408 # -------------
24409 # Create "$as_dir" as a directory, including parents if necessary.
24410 as_fn_mkdir_p ()
24411 {
24412
24413   case $as_dir in #(
24414   -*) as_dir=./$as_dir;;
24415   esac
24416   test -d "$as_dir" || eval $as_mkdir_p || {
24417     as_dirs=
24418     while :; do
24419       case $as_dir in #(
24420       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24421       *) as_qdir=$as_dir;;
24422       esac
24423       as_dirs="'$as_qdir' $as_dirs"
24424       as_dir=`$as_dirname -- "$as_dir" ||
24425 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24426          X"$as_dir" : 'X\(//\)[^/]' \| \
24427          X"$as_dir" : 'X\(//\)$' \| \
24428          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24429 $as_echo X"$as_dir" |
24430     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24431             s//\1/
24432             q
24433           }
24434           /^X\(\/\/\)[^/].*/{
24435             s//\1/
24436             q
24437           }
24438           /^X\(\/\/\)$/{
24439             s//\1/
24440             q
24441           }
24442           /^X\(\/\).*/{
24443             s//\1/
24444             q
24445           }
24446           s/.*/./; q'`
24447       test -d "$as_dir" && break
24448     done
24449     test -z "$as_dirs" || eval "mkdir $as_dirs"
24450   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24451
24452
24453 } # as_fn_mkdir_p
24454 if mkdir -p . 2>/dev/null; then
24455   as_mkdir_p='mkdir -p "$as_dir"'
24456 else
24457   test -d ./-p && rmdir ./-p
24458   as_mkdir_p=false
24459 fi
24460
24461
24462 # as_fn_executable_p FILE
24463 # -----------------------
24464 # Test if FILE is an executable regular file.
24465 as_fn_executable_p ()
24466 {
24467   test -f "$1" && test -x "$1"
24468 } # as_fn_executable_p
24469 as_test_x='test -x'
24470 as_executable_p=as_fn_executable_p
24471
24472 # Sed expression to map a string onto a valid CPP name.
24473 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24474
24475 # Sed expression to map a string onto a valid variable name.
24476 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24477
24478
24479 exec 6>&1
24480 ## ----------------------------------- ##
24481 ## Main body of $CONFIG_STATUS script. ##
24482 ## ----------------------------------- ##
24483 _ASEOF
24484 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24485
24486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24487 # Save the log message, to keep $0 and so on meaningful, and to
24488 # report actual input values of CONFIG_FILES etc. instead of their
24489 # values after options handling.
24490 ac_log="
24491 This file was extended by $as_me, which was
24492 generated by GNU Autoconf 2.69.  Invocation command line was
24493
24494   CONFIG_FILES    = $CONFIG_FILES
24495   CONFIG_HEADERS  = $CONFIG_HEADERS
24496   CONFIG_LINKS    = $CONFIG_LINKS
24497   CONFIG_COMMANDS = $CONFIG_COMMANDS
24498   $ $0 $@
24499
24500 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24501 "
24502
24503 _ACEOF
24504
24505 case $ac_config_files in *"
24506 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24507 esac
24508
24509 case $ac_config_headers in *"
24510 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24511 esac
24512
24513
24514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24515 # Files that config.status was made for.
24516 config_files="$ac_config_files"
24517 config_headers="$ac_config_headers"
24518 config_commands="$ac_config_commands"
24519
24520 _ACEOF
24521
24522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24523 ac_cs_usage="\
24524 \`$as_me' instantiates files and other configuration actions
24525 from templates according to the current configuration.  Unless the files
24526 and actions are specified as TAGs, all are instantiated by default.
24527
24528 Usage: $0 [OPTION]... [TAG]...
24529
24530   -h, --help       print this help, then exit
24531   -V, --version    print version number and configuration settings, then exit
24532       --config     print configuration, then exit
24533   -q, --quiet, --silent
24534                    do not print progress messages
24535   -d, --debug      don't remove temporary files
24536       --recheck    update $as_me by reconfiguring in the same conditions
24537       --file=FILE[:TEMPLATE]
24538                    instantiate the configuration file FILE
24539       --header=FILE[:TEMPLATE]
24540                    instantiate the configuration header FILE
24541
24542 Configuration files:
24543 $config_files
24544
24545 Configuration headers:
24546 $config_headers
24547
24548 Configuration commands:
24549 $config_commands
24550
24551 Report bugs to the package provider."
24552
24553 _ACEOF
24554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24555 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24556 ac_cs_version="\\
24557 config.status
24558 configured by $0, generated by GNU Autoconf 2.69,
24559   with options \\"\$ac_cs_config\\"
24560
24561 Copyright (C) 2012 Free Software Foundation, Inc.
24562 This config.status script is free software; the Free Software Foundation
24563 gives unlimited permission to copy, distribute and modify it."
24564
24565 ac_pwd='$ac_pwd'
24566 srcdir='$srcdir'
24567 INSTALL='$INSTALL'
24568 AWK='$AWK'
24569 test -n "\$AWK" || AWK=awk
24570 _ACEOF
24571
24572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24573 # The default lists apply if the user does not specify any file.
24574 ac_need_defaults=:
24575 while test $# != 0
24576 do
24577   case $1 in
24578   --*=?*)
24579     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24580     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24581     ac_shift=:
24582     ;;
24583   --*=)
24584     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24585     ac_optarg=
24586     ac_shift=:
24587     ;;
24588   *)
24589     ac_option=$1
24590     ac_optarg=$2
24591     ac_shift=shift
24592     ;;
24593   esac
24594
24595   case $ac_option in
24596   # Handling of the options.
24597   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24598     ac_cs_recheck=: ;;
24599   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24600     $as_echo "$ac_cs_version"; exit ;;
24601   --config | --confi | --conf | --con | --co | --c )
24602     $as_echo "$ac_cs_config"; exit ;;
24603   --debug | --debu | --deb | --de | --d | -d )
24604     debug=: ;;
24605   --file | --fil | --fi | --f )
24606     $ac_shift
24607     case $ac_optarg in
24608     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24609     '') as_fn_error $? "missing file argument" ;;
24610     esac
24611     as_fn_append CONFIG_FILES " '$ac_optarg'"
24612     ac_need_defaults=false;;
24613   --header | --heade | --head | --hea )
24614     $ac_shift
24615     case $ac_optarg in
24616     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24617     esac
24618     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24619     ac_need_defaults=false;;
24620   --he | --h)
24621     # Conflict between --help and --header
24622     as_fn_error $? "ambiguous option: \`$1'
24623 Try \`$0 --help' for more information.";;
24624   --help | --hel | -h )
24625     $as_echo "$ac_cs_usage"; exit ;;
24626   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24627   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24628     ac_cs_silent=: ;;
24629
24630   # This is an error.
24631   -*) as_fn_error $? "unrecognized option: \`$1'
24632 Try \`$0 --help' for more information." ;;
24633
24634   *) as_fn_append ac_config_targets " $1"
24635      ac_need_defaults=false ;;
24636
24637   esac
24638   shift
24639 done
24640
24641 ac_configure_extra_args=
24642
24643 if $ac_cs_silent; then
24644   exec 6>/dev/null
24645   ac_configure_extra_args="$ac_configure_extra_args --silent"
24646 fi
24647
24648 _ACEOF
24649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24650 if \$ac_cs_recheck; then
24651   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24652   shift
24653   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24654   CONFIG_SHELL='$SHELL'
24655   export CONFIG_SHELL
24656   exec "\$@"
24657 fi
24658
24659 _ACEOF
24660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24661 exec 5>>config.log
24662 {
24663   echo
24664   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24665 ## Running $as_me. ##
24666 _ASBOX
24667   $as_echo "$ac_log"
24668 } >&5
24669
24670 _ACEOF
24671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24672 #
24673 # INIT-COMMANDS
24674 #
24675
24676
24677 # The HP-UX ksh and POSIX shell print the target directory to stdout
24678 # if CDPATH is set.
24679 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24680
24681 sed_quote_subst='$sed_quote_subst'
24682 double_quote_subst='$double_quote_subst'
24683 delay_variable_subst='$delay_variable_subst'
24684 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24685 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24686 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
24687 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24688 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24689 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24690 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24691 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24692 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24693 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24694 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24695 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24696 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24697 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24698 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24699 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24700 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24701 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24702 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24703 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24704 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24705 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24706 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24707 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24708 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24709 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24710 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24711 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24712 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24713 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24714 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24715 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24716 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24717 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24718 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24719 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24720 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24721 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24722 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24723 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24724 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24725 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24726 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24727 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24728 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24729 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24730 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24731 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24732 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24733 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24734 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24735 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24736 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24737 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24738 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24739 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24740 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24741 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"`'
24742 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24743 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24744 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24745 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24746 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24747 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24748 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24749 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24750 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24751 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24752 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24753 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24754 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24755 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24756 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24757 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24758 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24759 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24760 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24761 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24762 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24763 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24764 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24765 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24766 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24767 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24768 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24769 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24770 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24771 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24772 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24773 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24774 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24775 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24776 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24777 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24778 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24779 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24780 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24781 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24782 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24783 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24784 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24785 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24786 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24787 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24788 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24789 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24790 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24791 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24792 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24793 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24794 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24795 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24796 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24797 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24798 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24799 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24800 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24801 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24802 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24803 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24804 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24805 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24806 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24807 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24808 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
24809 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24810 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24811 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24812 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24813 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24814 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24815 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
24816 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
24817 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
24818 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
24819 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
24820 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
24821 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
24822 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
24823 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24824 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24825 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
24826 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
24827 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
24828 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
24829 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
24830 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
24831 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
24832 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
24833 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
24834 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24835 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24836 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
24837 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24838 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24839 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24840 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24841 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24842 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24843 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
24844 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24845 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24846 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24847 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
24848 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
24849 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
24850 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
24851 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
24852 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
24853 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
24854 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
24855 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
24856 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24857 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24858 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24859 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24860 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24861 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
24862 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
24863 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
24864 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24865 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24866 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
24867 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
24868 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
24869
24870 LTCC='$LTCC'
24871 LTCFLAGS='$LTCFLAGS'
24872 compiler='$compiler_DEFAULT'
24873
24874 # A function that is used when there is no print builtin or printf.
24875 func_fallback_echo ()
24876 {
24877   eval 'cat <<_LTECHO_EOF
24878 \$1
24879 _LTECHO_EOF'
24880 }
24881
24882 # Quote evaled strings.
24883 for var in AS \
24884 DLLTOOL \
24885 OBJDUMP \
24886 SHELL \
24887 ECHO \
24888 PATH_SEPARATOR \
24889 SED \
24890 GREP \
24891 EGREP \
24892 FGREP \
24893 LD \
24894 NM \
24895 LN_S \
24896 lt_SP2NL \
24897 lt_NL2SP \
24898 reload_flag \
24899 deplibs_check_method \
24900 file_magic_cmd \
24901 file_magic_glob \
24902 want_nocaseglob \
24903 sharedlib_from_linklib_cmd \
24904 AR \
24905 AR_FLAGS \
24906 archiver_list_spec \
24907 STRIP \
24908 RANLIB \
24909 CC \
24910 CFLAGS \
24911 compiler \
24912 lt_cv_sys_global_symbol_pipe \
24913 lt_cv_sys_global_symbol_to_cdecl \
24914 lt_cv_sys_global_symbol_to_c_name_address \
24915 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24916 nm_file_list_spec \
24917 lt_prog_compiler_no_builtin_flag \
24918 lt_prog_compiler_pic \
24919 lt_prog_compiler_wl \
24920 lt_prog_compiler_static \
24921 lt_cv_prog_compiler_c_o \
24922 need_locks \
24923 MANIFEST_TOOL \
24924 DSYMUTIL \
24925 NMEDIT \
24926 LIPO \
24927 OTOOL \
24928 OTOOL64 \
24929 shrext_cmds \
24930 export_dynamic_flag_spec \
24931 whole_archive_flag_spec \
24932 compiler_needs_object \
24933 with_gnu_ld \
24934 allow_undefined_flag \
24935 no_undefined_flag \
24936 hardcode_libdir_flag_spec \
24937 hardcode_libdir_separator \
24938 exclude_expsyms \
24939 include_expsyms \
24940 file_list_spec \
24941 variables_saved_for_relink \
24942 libname_spec \
24943 library_names_spec \
24944 soname_spec \
24945 install_override_mode \
24946 finish_eval \
24947 old_striplib \
24948 striplib \
24949 compiler_lib_search_dirs \
24950 predep_objects \
24951 postdep_objects \
24952 predeps \
24953 postdeps \
24954 compiler_lib_search_path \
24955 LD_CXX \
24956 reload_flag_CXX \
24957 compiler_CXX \
24958 lt_prog_compiler_no_builtin_flag_CXX \
24959 lt_prog_compiler_pic_CXX \
24960 lt_prog_compiler_wl_CXX \
24961 lt_prog_compiler_static_CXX \
24962 lt_cv_prog_compiler_c_o_CXX \
24963 export_dynamic_flag_spec_CXX \
24964 whole_archive_flag_spec_CXX \
24965 compiler_needs_object_CXX \
24966 with_gnu_ld_CXX \
24967 allow_undefined_flag_CXX \
24968 no_undefined_flag_CXX \
24969 hardcode_libdir_flag_spec_CXX \
24970 hardcode_libdir_separator_CXX \
24971 exclude_expsyms_CXX \
24972 include_expsyms_CXX \
24973 file_list_spec_CXX \
24974 compiler_lib_search_dirs_CXX \
24975 predep_objects_CXX \
24976 postdep_objects_CXX \
24977 predeps_CXX \
24978 postdeps_CXX \
24979 compiler_lib_search_path_CXX; do
24980     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24981     *[\\\\\\\`\\"\\\$]*)
24982       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24983       ;;
24984     *)
24985       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24986       ;;
24987     esac
24988 done
24989
24990 # Double-quote double-evaled strings.
24991 for var in reload_cmds \
24992 old_postinstall_cmds \
24993 old_postuninstall_cmds \
24994 old_archive_cmds \
24995 extract_expsyms_cmds \
24996 old_archive_from_new_cmds \
24997 old_archive_from_expsyms_cmds \
24998 archive_cmds \
24999 archive_expsym_cmds \
25000 module_cmds \
25001 module_expsym_cmds \
25002 export_symbols_cmds \
25003 prelink_cmds \
25004 postlink_cmds \
25005 postinstall_cmds \
25006 postuninstall_cmds \
25007 finish_cmds \
25008 sys_lib_search_path_spec \
25009 sys_lib_dlsearch_path_spec \
25010 reload_cmds_CXX \
25011 old_archive_cmds_CXX \
25012 old_archive_from_new_cmds_CXX \
25013 old_archive_from_expsyms_cmds_CXX \
25014 archive_cmds_CXX \
25015 archive_expsym_cmds_CXX \
25016 module_cmds_CXX \
25017 module_expsym_cmds_CXX \
25018 export_symbols_cmds_CXX \
25019 prelink_cmds_CXX \
25020 postlink_cmds_CXX; do
25021     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25022     *[\\\\\\\`\\"\\\$]*)
25023       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25024       ;;
25025     *)
25026       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25027       ;;
25028     esac
25029 done
25030
25031 ac_aux_dir='$ac_aux_dir'
25032 xsi_shell='$xsi_shell'
25033 lt_shell_append='$lt_shell_append'
25034
25035 # See if we are running on zsh, and set the options which allow our
25036 # commands through without removal of \ escapes INIT.
25037 if test -n "\${ZSH_VERSION+set}" ; then
25038    setopt NO_GLOB_SUBST
25039 fi
25040
25041
25042     PACKAGE='$PACKAGE'
25043     VERSION='$VERSION'
25044     TIMESTAMP='$TIMESTAMP'
25045     RM='$RM'
25046     ofile='$ofile'
25047
25048
25049
25050
25051
25052 SUMMARY="$SUMMARY"
25053
25054 _ACEOF
25055
25056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25057
25058 # Handling of arguments.
25059 for ac_config_target in $ac_config_targets
25060 do
25061   case $ac_config_target in
25062     "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
25063     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25064     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
25065     "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
25066     "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
25067     "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
25068     "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
25069     "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
25070     "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
25071
25072   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25073   esac
25074 done
25075
25076
25077 # If the user did not use the arguments to specify the items to instantiate,
25078 # then the envvar interface is used.  Set only those that are not.
25079 # We use the long form for the default assignment because of an extremely
25080 # bizarre bug on SunOS 4.1.3.
25081 if $ac_need_defaults; then
25082   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25083   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25084   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25085 fi
25086
25087 # Have a temporary directory for convenience.  Make it in the build tree
25088 # simply because there is no reason against having it here, and in addition,
25089 # creating and moving files from /tmp can sometimes cause problems.
25090 # Hook for its removal unless debugging.
25091 # Note that there is a small window in which the directory will not be cleaned:
25092 # after its creation but before its name has been assigned to `$tmp'.
25093 $debug ||
25094 {
25095   tmp= ac_tmp=
25096   trap 'exit_status=$?
25097   : "${ac_tmp:=$tmp}"
25098   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25099 ' 0
25100   trap 'as_fn_exit 1' 1 2 13 15
25101 }
25102 # Create a (secure) tmp directory for tmp files.
25103
25104 {
25105   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25106   test -d "$tmp"
25107 }  ||
25108 {
25109   tmp=./conf$$-$RANDOM
25110   (umask 077 && mkdir "$tmp")
25111 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25112 ac_tmp=$tmp
25113
25114 # Set up the scripts for CONFIG_FILES section.
25115 # No need to generate them if there are no CONFIG_FILES.
25116 # This happens for instance with `./config.status config.h'.
25117 if test -n "$CONFIG_FILES"; then
25118
25119
25120 ac_cr=`echo X | tr X '\015'`
25121 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25122 # But we know of no other shell where ac_cr would be empty at this
25123 # point, so we can use a bashism as a fallback.
25124 if test "x$ac_cr" = x; then
25125   eval ac_cr=\$\'\\r\'
25126 fi
25127 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25128 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25129   ac_cs_awk_cr='\\r'
25130 else
25131   ac_cs_awk_cr=$ac_cr
25132 fi
25133
25134 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25135 _ACEOF
25136
25137
25138 {
25139   echo "cat >conf$$subs.awk <<_ACEOF" &&
25140   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25141   echo "_ACEOF"
25142 } >conf$$subs.sh ||
25143   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25144 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25145 ac_delim='%!_!# '
25146 for ac_last_try in false false false false false :; do
25147   . ./conf$$subs.sh ||
25148     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25149
25150   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25151   if test $ac_delim_n = $ac_delim_num; then
25152     break
25153   elif $ac_last_try; then
25154     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25155   else
25156     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25157   fi
25158 done
25159 rm -f conf$$subs.sh
25160
25161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25162 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25163 _ACEOF
25164 sed -n '
25165 h
25166 s/^/S["/; s/!.*/"]=/
25167 p
25168 g
25169 s/^[^!]*!//
25170 :repl
25171 t repl
25172 s/'"$ac_delim"'$//
25173 t delim
25174 :nl
25175 h
25176 s/\(.\{148\}\)..*/\1/
25177 t more1
25178 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25179 p
25180 n
25181 b repl
25182 :more1
25183 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25184 p
25185 g
25186 s/.\{148\}//
25187 t nl
25188 :delim
25189 h
25190 s/\(.\{148\}\)..*/\1/
25191 t more2
25192 s/["\\]/\\&/g; s/^/"/; s/$/"/
25193 p
25194 b
25195 :more2
25196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25197 p
25198 g
25199 s/.\{148\}//
25200 t delim
25201 ' <conf$$subs.awk | sed '
25202 /^[^""]/{
25203   N
25204   s/\n//
25205 }
25206 ' >>$CONFIG_STATUS || ac_write_fail=1
25207 rm -f conf$$subs.awk
25208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25209 _ACAWK
25210 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25211   for (key in S) S_is_set[key] = 1
25212   FS = "\a"
25213
25214 }
25215 {
25216   line = $ 0
25217   nfields = split(line, field, "@")
25218   substed = 0
25219   len = length(field[1])
25220   for (i = 2; i < nfields; i++) {
25221     key = field[i]
25222     keylen = length(key)
25223     if (S_is_set[key]) {
25224       value = S[key]
25225       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25226       len += length(value) + length(field[++i])
25227       substed = 1
25228     } else
25229       len += 1 + keylen
25230   }
25231
25232   print line
25233 }
25234
25235 _ACAWK
25236 _ACEOF
25237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25238 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25239   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25240 else
25241   cat
25242 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25243   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25244 _ACEOF
25245
25246 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25247 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25248 # trailing colons and then remove the whole line if VPATH becomes empty
25249 # (actually we leave an empty line to preserve line numbers).
25250 if test "x$srcdir" = x.; then
25251   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
25252 h
25253 s///
25254 s/^/:/
25255 s/[      ]*$/:/
25256 s/:\$(srcdir):/:/g
25257 s/:\${srcdir}:/:/g
25258 s/:@srcdir@:/:/g
25259 s/^:*//
25260 s/:*$//
25261 x
25262 s/\(=[   ]*\).*/\1/
25263 G
25264 s/\n//
25265 s/^[^=]*=[       ]*$//
25266 }'
25267 fi
25268
25269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25270 fi # test -n "$CONFIG_FILES"
25271
25272 # Set up the scripts for CONFIG_HEADERS section.
25273 # No need to generate them if there are no CONFIG_HEADERS.
25274 # This happens for instance with `./config.status Makefile'.
25275 if test -n "$CONFIG_HEADERS"; then
25276 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25277 BEGIN {
25278 _ACEOF
25279
25280 # Transform confdefs.h into an awk script `defines.awk', embedded as
25281 # here-document in config.status, that substitutes the proper values into
25282 # config.h.in to produce config.h.
25283
25284 # Create a delimiter string that does not exist in confdefs.h, to ease
25285 # handling of long lines.
25286 ac_delim='%!_!# '
25287 for ac_last_try in false false :; do
25288   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25289   if test -z "$ac_tt"; then
25290     break
25291   elif $ac_last_try; then
25292     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25293   else
25294     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25295   fi
25296 done
25297
25298 # For the awk script, D is an array of macro values keyed by name,
25299 # likewise P contains macro parameters if any.  Preserve backslash
25300 # newline sequences.
25301
25302 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25303 sed -n '
25304 s/.\{148\}/&'"$ac_delim"'/g
25305 t rset
25306 :rset
25307 s/^[     ]*#[    ]*define[       ][      ]*/ /
25308 t def
25309 d
25310 :def
25311 s/\\$//
25312 t bsnl
25313 s/["\\]/\\&/g
25314 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
25315 D["\1"]=" \3"/p
25316 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
25317 d
25318 :bsnl
25319 s/["\\]/\\&/g
25320 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
25321 D["\1"]=" \3\\\\\\n"\\/p
25322 t cont
25323 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25324 t cont
25325 d
25326 :cont
25327 n
25328 s/.\{148\}/&'"$ac_delim"'/g
25329 t clear
25330 :clear
25331 s/\\$//
25332 t bsnlc
25333 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25334 d
25335 :bsnlc
25336 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25337 b cont
25338 ' <confdefs.h | sed '
25339 s/'"$ac_delim"'/"\\\
25340 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25341
25342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25343   for (key in D) D_is_set[key] = 1
25344   FS = "\a"
25345 }
25346 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25347   line = \$ 0
25348   split(line, arg, " ")
25349   if (arg[1] == "#") {
25350     defundef = arg[2]
25351     mac1 = arg[3]
25352   } else {
25353     defundef = substr(arg[1], 2)
25354     mac1 = arg[2]
25355   }
25356   split(mac1, mac2, "(") #)
25357   macro = mac2[1]
25358   prefix = substr(line, 1, index(line, defundef) - 1)
25359   if (D_is_set[macro]) {
25360     # Preserve the white space surrounding the "#".
25361     print prefix "define", macro P[macro] D[macro]
25362     next
25363   } else {
25364     # Replace #undef with comments.  This is necessary, for example,
25365     # in the case of _POSIX_SOURCE, which is predefined and required
25366     # on some systems where configure will not decide to define it.
25367     if (defundef == "undef") {
25368       print "/*", prefix defundef, macro, "*/"
25369       next
25370     }
25371   }
25372 }
25373 { print }
25374 _ACAWK
25375 _ACEOF
25376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25377   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25378 fi # test -n "$CONFIG_HEADERS"
25379
25380
25381 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
25382 shift
25383 for ac_tag
25384 do
25385   case $ac_tag in
25386   :[FHLC]) ac_mode=$ac_tag; continue;;
25387   esac
25388   case $ac_mode$ac_tag in
25389   :[FHL]*:*);;
25390   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25391   :[FH]-) ac_tag=-:-;;
25392   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25393   esac
25394   ac_save_IFS=$IFS
25395   IFS=:
25396   set x $ac_tag
25397   IFS=$ac_save_IFS
25398   shift
25399   ac_file=$1
25400   shift
25401
25402   case $ac_mode in
25403   :L) ac_source=$1;;
25404   :[FH])
25405     ac_file_inputs=
25406     for ac_f
25407     do
25408       case $ac_f in
25409       -) ac_f="$ac_tmp/stdin";;
25410       *) # Look for the file first in the build tree, then in the source tree
25411          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25412          # because $ac_f cannot contain `:'.
25413          test -f "$ac_f" ||
25414            case $ac_f in
25415            [\\/$]*) false;;
25416            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25417            esac ||
25418            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25419       esac
25420       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25421       as_fn_append ac_file_inputs " '$ac_f'"
25422     done
25423
25424     # Let's still pretend it is `configure' which instantiates (i.e., don't
25425     # use $as_me), people would be surprised to read:
25426     #    /* config.h.  Generated by config.status.  */
25427     configure_input='Generated from '`
25428           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25429         `' by configure.'
25430     if test x"$ac_file" != x-; then
25431       configure_input="$ac_file.  $configure_input"
25432       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25433 $as_echo "$as_me: creating $ac_file" >&6;}
25434     fi
25435     # Neutralize special characters interpreted by sed in replacement strings.
25436     case $configure_input in #(
25437     *\&* | *\|* | *\\* )
25438        ac_sed_conf_input=`$as_echo "$configure_input" |
25439        sed 's/[\\\\&|]/\\\\&/g'`;; #(
25440     *) ac_sed_conf_input=$configure_input;;
25441     esac
25442
25443     case $ac_tag in
25444     *:-:* | *:-) cat >"$ac_tmp/stdin" \
25445       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25446     esac
25447     ;;
25448   esac
25449
25450   ac_dir=`$as_dirname -- "$ac_file" ||
25451 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25452          X"$ac_file" : 'X\(//\)[^/]' \| \
25453          X"$ac_file" : 'X\(//\)$' \| \
25454          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25455 $as_echo X"$ac_file" |
25456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25457             s//\1/
25458             q
25459           }
25460           /^X\(\/\/\)[^/].*/{
25461             s//\1/
25462             q
25463           }
25464           /^X\(\/\/\)$/{
25465             s//\1/
25466             q
25467           }
25468           /^X\(\/\).*/{
25469             s//\1/
25470             q
25471           }
25472           s/.*/./; q'`
25473   as_dir="$ac_dir"; as_fn_mkdir_p
25474   ac_builddir=.
25475
25476 case "$ac_dir" in
25477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25478 *)
25479   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25480   # A ".." for each directory in $ac_dir_suffix.
25481   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25482   case $ac_top_builddir_sub in
25483   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25484   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25485   esac ;;
25486 esac
25487 ac_abs_top_builddir=$ac_pwd
25488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25489 # for backward compatibility:
25490 ac_top_builddir=$ac_top_build_prefix
25491
25492 case $srcdir in
25493   .)  # We are building in place.
25494     ac_srcdir=.
25495     ac_top_srcdir=$ac_top_builddir_sub
25496     ac_abs_top_srcdir=$ac_pwd ;;
25497   [\\/]* | ?:[\\/]* )  # Absolute name.
25498     ac_srcdir=$srcdir$ac_dir_suffix;
25499     ac_top_srcdir=$srcdir
25500     ac_abs_top_srcdir=$srcdir ;;
25501   *) # Relative name.
25502     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25503     ac_top_srcdir=$ac_top_build_prefix$srcdir
25504     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25505 esac
25506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25507
25508
25509   case $ac_mode in
25510   :F)
25511   #
25512   # CONFIG_FILE
25513   #
25514
25515   case $INSTALL in
25516   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25517   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25518   esac
25519 _ACEOF
25520
25521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25522 # If the template does not know about datarootdir, expand it.
25523 # FIXME: This hack should be removed a few years after 2.60.
25524 ac_datarootdir_hack=; ac_datarootdir_seen=
25525 ac_sed_dataroot='
25526 /datarootdir/ {
25527   p
25528   q
25529 }
25530 /@datadir@/p
25531 /@docdir@/p
25532 /@infodir@/p
25533 /@localedir@/p
25534 /@mandir@/p'
25535 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25536 *datarootdir*) ac_datarootdir_seen=yes;;
25537 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25538   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25539 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25540 _ACEOF
25541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25542   ac_datarootdir_hack='
25543   s&@datadir@&$datadir&g
25544   s&@docdir@&$docdir&g
25545   s&@infodir@&$infodir&g
25546   s&@localedir@&$localedir&g
25547   s&@mandir@&$mandir&g
25548   s&\\\${datarootdir}&$datarootdir&g' ;;
25549 esac
25550 _ACEOF
25551
25552 # Neutralize VPATH when `$srcdir' = `.'.
25553 # Shell code in configure.ac might set extrasub.
25554 # FIXME: do we really want to maintain this feature?
25555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25556 ac_sed_extra="$ac_vpsub
25557 $extrasub
25558 _ACEOF
25559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25560 :t
25561 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25562 s|@configure_input@|$ac_sed_conf_input|;t t
25563 s&@top_builddir@&$ac_top_builddir_sub&;t t
25564 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25565 s&@srcdir@&$ac_srcdir&;t t
25566 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25567 s&@top_srcdir@&$ac_top_srcdir&;t t
25568 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25569 s&@builddir@&$ac_builddir&;t t
25570 s&@abs_builddir@&$ac_abs_builddir&;t t
25571 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25572 s&@INSTALL@&$ac_INSTALL&;t t
25573 $ac_datarootdir_hack
25574 "
25575 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25576   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25577
25578 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25579   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25580   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
25581       "$ac_tmp/out"`; test -z "$ac_out"; } &&
25582   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25583 which seems to be undefined.  Please make sure it is defined" >&5
25584 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25585 which seems to be undefined.  Please make sure it is defined" >&2;}
25586
25587   rm -f "$ac_tmp/stdin"
25588   case $ac_file in
25589   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25590   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25591   esac \
25592   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25593  ;;
25594   :H)
25595   #
25596   # CONFIG_HEADER
25597   #
25598   if test x"$ac_file" != x-; then
25599     {
25600       $as_echo "/* $configure_input  */" \
25601       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25602     } >"$ac_tmp/config.h" \
25603       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25604     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25605       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25606 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25607     else
25608       rm -f "$ac_file"
25609       mv "$ac_tmp/config.h" "$ac_file" \
25610         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25611     fi
25612   else
25613     $as_echo "/* $configure_input  */" \
25614       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25615       || as_fn_error $? "could not create -" "$LINENO" 5
25616   fi
25617  ;;
25618
25619   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25620 $as_echo "$as_me: executing $ac_file commands" >&6;}
25621  ;;
25622   esac
25623
25624
25625   case $ac_file$ac_mode in
25626     "libtool":C)
25627
25628     # See if we are running on zsh, and set the options which allow our
25629     # commands through without removal of \ escapes.
25630     if test -n "${ZSH_VERSION+set}" ; then
25631       setopt NO_GLOB_SUBST
25632     fi
25633
25634     cfgfile="${ofile}T"
25635     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25636     $RM "$cfgfile"
25637
25638     cat <<_LT_EOF >> "$cfgfile"
25639 #! $SHELL
25640
25641 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25642 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25643 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25644 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25645 #
25646 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25647 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
25648 #                 Foundation, Inc.
25649 #   Written by Gordon Matzigkeit, 1996
25650 #
25651 #   This file is part of GNU Libtool.
25652 #
25653 # GNU Libtool is free software; you can redistribute it and/or
25654 # modify it under the terms of the GNU General Public License as
25655 # published by the Free Software Foundation; either version 2 of
25656 # the License, or (at your option) any later version.
25657 #
25658 # As a special exception to the GNU General Public License,
25659 # if you distribute this file as part of a program or library that
25660 # is built using GNU Libtool, you may include this file under the
25661 # same distribution terms that you use for the rest of that program.
25662 #
25663 # GNU Libtool is distributed in the hope that it will be useful,
25664 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25665 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25666 # GNU General Public License for more details.
25667 #
25668 # You should have received a copy of the GNU General Public License
25669 # along with GNU Libtool; see the file COPYING.  If not, a copy
25670 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25671 # obtained by writing to the Free Software Foundation, Inc.,
25672 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25673
25674
25675 # The names of the tagged configurations supported by this script.
25676 available_tags="CXX "
25677
25678 # ### BEGIN LIBTOOL CONFIG
25679
25680 # Which release of libtool.m4 was used?
25681 macro_version=$macro_version
25682 macro_revision=$macro_revision
25683
25684 # Assembler program.
25685 AS=$lt_AS
25686
25687 # DLL creation program.
25688 DLLTOOL=$lt_DLLTOOL
25689
25690 # Object dumper program.
25691 OBJDUMP=$lt_OBJDUMP
25692
25693 # Whether or not to build shared libraries.
25694 build_libtool_libs=$enable_shared
25695
25696 # Whether or not to build static libraries.
25697 build_old_libs=$enable_static
25698
25699 # What type of objects to build.
25700 pic_mode=$pic_mode
25701
25702 # Whether or not to optimize for fast installation.
25703 fast_install=$enable_fast_install
25704
25705 # Shell to use when invoking shell scripts.
25706 SHELL=$lt_SHELL
25707
25708 # An echo program that protects backslashes.
25709 ECHO=$lt_ECHO
25710
25711 # The PATH separator for the build system.
25712 PATH_SEPARATOR=$lt_PATH_SEPARATOR
25713
25714 # The host system.
25715 host_alias=$host_alias
25716 host=$host
25717 host_os=$host_os
25718
25719 # The build system.
25720 build_alias=$build_alias
25721 build=$build
25722 build_os=$build_os
25723
25724 # A sed program that does not truncate output.
25725 SED=$lt_SED
25726
25727 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25728 Xsed="\$SED -e 1s/^X//"
25729
25730 # A grep program that handles long lines.
25731 GREP=$lt_GREP
25732
25733 # An ERE matcher.
25734 EGREP=$lt_EGREP
25735
25736 # A literal string matcher.
25737 FGREP=$lt_FGREP
25738
25739 # A BSD- or MS-compatible name lister.
25740 NM=$lt_NM
25741
25742 # Whether we need soft or hard links.
25743 LN_S=$lt_LN_S
25744
25745 # What is the maximum length of a command?
25746 max_cmd_len=$max_cmd_len
25747
25748 # Object file suffix (normally "o").
25749 objext=$ac_objext
25750
25751 # Executable file suffix (normally "").
25752 exeext=$exeext
25753
25754 # whether the shell understands "unset".
25755 lt_unset=$lt_unset
25756
25757 # turn spaces into newlines.
25758 SP2NL=$lt_lt_SP2NL
25759
25760 # turn newlines into spaces.
25761 NL2SP=$lt_lt_NL2SP
25762
25763 # convert \$build file names to \$host format.
25764 to_host_file_cmd=$lt_cv_to_host_file_cmd
25765
25766 # convert \$build files to toolchain format.
25767 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25768
25769 # Method to check whether dependent libraries are shared objects.
25770 deplibs_check_method=$lt_deplibs_check_method
25771
25772 # Command to use when deplibs_check_method = "file_magic".
25773 file_magic_cmd=$lt_file_magic_cmd
25774
25775 # How to find potential files when deplibs_check_method = "file_magic".
25776 file_magic_glob=$lt_file_magic_glob
25777
25778 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25779 want_nocaseglob=$lt_want_nocaseglob
25780
25781 # Command to associate shared and link libraries.
25782 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25783
25784 # The archiver.
25785 AR=$lt_AR
25786
25787 # Flags to create an archive.
25788 AR_FLAGS=$lt_AR_FLAGS
25789
25790 # How to feed a file listing to the archiver.
25791 archiver_list_spec=$lt_archiver_list_spec
25792
25793 # A symbol stripping program.
25794 STRIP=$lt_STRIP
25795
25796 # Commands used to install an old-style archive.
25797 RANLIB=$lt_RANLIB
25798 old_postinstall_cmds=$lt_old_postinstall_cmds
25799 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25800
25801 # Whether to use a lock for old archive extraction.
25802 lock_old_archive_extraction=$lock_old_archive_extraction
25803
25804 # A C compiler.
25805 LTCC=$lt_CC
25806
25807 # LTCC compiler flags.
25808 LTCFLAGS=$lt_CFLAGS
25809
25810 # Take the output of nm and produce a listing of raw symbols and C names.
25811 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25812
25813 # Transform the output of nm in a proper C declaration.
25814 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25815
25816 # Transform the output of nm in a C name address pair.
25817 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25818
25819 # Transform the output of nm in a C name address pair when lib prefix is needed.
25820 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25821
25822 # Specify filename containing input files for \$NM.
25823 nm_file_list_spec=$lt_nm_file_list_spec
25824
25825 # The root where to search for dependent libraries,and in which our libraries should be installed.
25826 lt_sysroot=$lt_sysroot
25827
25828 # The name of the directory that contains temporary libtool files.
25829 objdir=$objdir
25830
25831 # Used to examine libraries when file_magic_cmd begins with "file".
25832 MAGIC_CMD=$MAGIC_CMD
25833
25834 # Must we lock files when doing compilation?
25835 need_locks=$lt_need_locks
25836
25837 # Manifest tool.
25838 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25839
25840 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25841 DSYMUTIL=$lt_DSYMUTIL
25842
25843 # Tool to change global to local symbols on Mac OS X.
25844 NMEDIT=$lt_NMEDIT
25845
25846 # Tool to manipulate fat objects and archives on Mac OS X.
25847 LIPO=$lt_LIPO
25848
25849 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25850 OTOOL=$lt_OTOOL
25851
25852 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25853 OTOOL64=$lt_OTOOL64
25854
25855 # Old archive suffix (normally "a").
25856 libext=$libext
25857
25858 # Shared library suffix (normally ".so").
25859 shrext_cmds=$lt_shrext_cmds
25860
25861 # The commands to extract the exported symbol list from a shared archive.
25862 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25863
25864 # Variables whose values should be saved in libtool wrapper scripts and
25865 # restored at link time.
25866 variables_saved_for_relink=$lt_variables_saved_for_relink
25867
25868 # Do we need the "lib" prefix for modules?
25869 need_lib_prefix=$need_lib_prefix
25870
25871 # Do we need a version for libraries?
25872 need_version=$need_version
25873
25874 # Library versioning type.
25875 version_type=$version_type
25876
25877 # Shared library runtime path variable.
25878 runpath_var=$runpath_var
25879
25880 # Shared library path variable.
25881 shlibpath_var=$shlibpath_var
25882
25883 # Is shlibpath searched before the hard-coded library search path?
25884 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25885
25886 # Format of library name prefix.
25887 libname_spec=$lt_libname_spec
25888
25889 # List of archive names.  First name is the real one, the rest are links.
25890 # The last name is the one that the linker finds with -lNAME
25891 library_names_spec=$lt_library_names_spec
25892
25893 # The coded name of the library, if different from the real name.
25894 soname_spec=$lt_soname_spec
25895
25896 # Permission mode override for installation of shared libraries.
25897 install_override_mode=$lt_install_override_mode
25898
25899 # Command to use after installation of a shared archive.
25900 postinstall_cmds=$lt_postinstall_cmds
25901
25902 # Command to use after uninstallation of a shared archive.
25903 postuninstall_cmds=$lt_postuninstall_cmds
25904
25905 # Commands used to finish a libtool library installation in a directory.
25906 finish_cmds=$lt_finish_cmds
25907
25908 # As "finish_cmds", except a single script fragment to be evaled but
25909 # not shown.
25910 finish_eval=$lt_finish_eval
25911
25912 # Whether we should hardcode library paths into libraries.
25913 hardcode_into_libs=$hardcode_into_libs
25914
25915 # Compile-time system search path for libraries.
25916 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25917
25918 # Run-time system search path for libraries.
25919 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25920
25921 # Whether dlopen is supported.
25922 dlopen_support=$enable_dlopen
25923
25924 # Whether dlopen of programs is supported.
25925 dlopen_self=$enable_dlopen_self
25926
25927 # Whether dlopen of statically linked programs is supported.
25928 dlopen_self_static=$enable_dlopen_self_static
25929
25930 # Commands to strip libraries.
25931 old_striplib=$lt_old_striplib
25932 striplib=$lt_striplib
25933
25934
25935 # The linker used to build libraries.
25936 LD=$lt_LD
25937
25938 # How to create reloadable object files.
25939 reload_flag=$lt_reload_flag
25940 reload_cmds=$lt_reload_cmds
25941
25942 # Commands used to build an old-style archive.
25943 old_archive_cmds=$lt_old_archive_cmds
25944
25945 # A language specific compiler.
25946 CC=$lt_compiler
25947
25948 # Is the compiler the GNU compiler?
25949 with_gcc=$GCC
25950
25951 # Compiler flag to turn off builtin functions.
25952 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25953
25954 # Additional compiler flags for building library objects.
25955 pic_flag=$lt_lt_prog_compiler_pic
25956
25957 # How to pass a linker flag through the compiler.
25958 wl=$lt_lt_prog_compiler_wl
25959
25960 # Compiler flag to prevent dynamic linking.
25961 link_static_flag=$lt_lt_prog_compiler_static
25962
25963 # Does compiler simultaneously support -c and -o options?
25964 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25965
25966 # Whether or not to add -lc for building shared libraries.
25967 build_libtool_need_lc=$archive_cmds_need_lc
25968
25969 # Whether or not to disallow shared libs when runtime libs are static.
25970 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25971
25972 # Compiler flag to allow reflexive dlopens.
25973 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25974
25975 # Compiler flag to generate shared objects directly from archives.
25976 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25977
25978 # Whether the compiler copes with passing no objects directly.
25979 compiler_needs_object=$lt_compiler_needs_object
25980
25981 # Create an old-style archive from a shared archive.
25982 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25983
25984 # Create a temporary old-style archive to link instead of a shared archive.
25985 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25986
25987 # Commands used to build a shared archive.
25988 archive_cmds=$lt_archive_cmds
25989 archive_expsym_cmds=$lt_archive_expsym_cmds
25990
25991 # Commands used to build a loadable module if different from building
25992 # a shared archive.
25993 module_cmds=$lt_module_cmds
25994 module_expsym_cmds=$lt_module_expsym_cmds
25995
25996 # Whether we are building with GNU ld or not.
25997 with_gnu_ld=$lt_with_gnu_ld
25998
25999 # Flag that allows shared libraries with undefined symbols to be built.
26000 allow_undefined_flag=$lt_allow_undefined_flag
26001
26002 # Flag that enforces no undefined symbols.
26003 no_undefined_flag=$lt_no_undefined_flag
26004
26005 # Flag to hardcode \$libdir into a binary during linking.
26006 # This must work even if \$libdir does not exist
26007 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26008
26009 # Whether we need a single "-rpath" flag with a separated argument.
26010 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26011
26012 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26013 # DIR into the resulting binary.
26014 hardcode_direct=$hardcode_direct
26015
26016 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26017 # DIR into the resulting binary and the resulting library dependency is
26018 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26019 # library is relocated.
26020 hardcode_direct_absolute=$hardcode_direct_absolute
26021
26022 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26023 # into the resulting binary.
26024 hardcode_minus_L=$hardcode_minus_L
26025
26026 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26027 # into the resulting binary.
26028 hardcode_shlibpath_var=$hardcode_shlibpath_var
26029
26030 # Set to "yes" if building a shared library automatically hardcodes DIR
26031 # into the library and all subsequent libraries and executables linked
26032 # against it.
26033 hardcode_automatic=$hardcode_automatic
26034
26035 # Set to yes if linker adds runtime paths of dependent libraries
26036 # to runtime path list.
26037 inherit_rpath=$inherit_rpath
26038
26039 # Whether libtool must link a program against all its dependency libraries.
26040 link_all_deplibs=$link_all_deplibs
26041
26042 # Set to "yes" if exported symbols are required.
26043 always_export_symbols=$always_export_symbols
26044
26045 # The commands to list exported symbols.
26046 export_symbols_cmds=$lt_export_symbols_cmds
26047
26048 # Symbols that should not be listed in the preloaded symbols.
26049 exclude_expsyms=$lt_exclude_expsyms
26050
26051 # Symbols that must always be exported.
26052 include_expsyms=$lt_include_expsyms
26053
26054 # Commands necessary for linking programs (against libraries) with templates.
26055 prelink_cmds=$lt_prelink_cmds
26056
26057 # Commands necessary for finishing linking programs.
26058 postlink_cmds=$lt_postlink_cmds
26059
26060 # Specify filename containing input files.
26061 file_list_spec=$lt_file_list_spec
26062
26063 # How to hardcode a shared library path into an executable.
26064 hardcode_action=$hardcode_action
26065
26066 # The directories searched by this compiler when creating a shared library.
26067 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26068
26069 # Dependencies to place before and after the objects being linked to
26070 # create a shared library.
26071 predep_objects=$lt_predep_objects
26072 postdep_objects=$lt_postdep_objects
26073 predeps=$lt_predeps
26074 postdeps=$lt_postdeps
26075
26076 # The library search path used internally by the compiler when linking
26077 # a shared library.
26078 compiler_lib_search_path=$lt_compiler_lib_search_path
26079
26080 # ### END LIBTOOL CONFIG
26081
26082 _LT_EOF
26083
26084   case $host_os in
26085   aix3*)
26086     cat <<\_LT_EOF >> "$cfgfile"
26087 # AIX sometimes has problems with the GCC collect2 program.  For some
26088 # reason, if we set the COLLECT_NAMES environment variable, the problems
26089 # vanish in a puff of smoke.
26090 if test "X${COLLECT_NAMES+set}" != Xset; then
26091   COLLECT_NAMES=
26092   export COLLECT_NAMES
26093 fi
26094 _LT_EOF
26095     ;;
26096   esac
26097
26098
26099 ltmain="$ac_aux_dir/ltmain.sh"
26100
26101
26102   # We use sed instead of cat because bash on DJGPP gets confused if
26103   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
26104   # text mode, it properly converts lines to CR/LF.  This bash problem
26105   # is reportedly fixed, but why not run on old versions too?
26106   sed '$q' "$ltmain" >> "$cfgfile" \
26107      || (rm -f "$cfgfile"; exit 1)
26108
26109   if test x"$xsi_shell" = xyes; then
26110   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
26111 func_dirname ()\
26112 {\
26113 \    case ${1} in\
26114 \      */*) func_dirname_result="${1%/*}${2}" ;;\
26115 \      *  ) func_dirname_result="${3}" ;;\
26116 \    esac\
26117 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
26118   && mv -f "$cfgfile.tmp" "$cfgfile" \
26119     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26120 test 0 -eq $? || _lt_function_replace_fail=:
26121
26122
26123   sed -e '/^func_basename ()$/,/^} # func_basename /c\
26124 func_basename ()\
26125 {\
26126 \    func_basename_result="${1##*/}"\
26127 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
26128   && mv -f "$cfgfile.tmp" "$cfgfile" \
26129     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26130 test 0 -eq $? || _lt_function_replace_fail=:
26131
26132
26133   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
26134 func_dirname_and_basename ()\
26135 {\
26136 \    case ${1} in\
26137 \      */*) func_dirname_result="${1%/*}${2}" ;;\
26138 \      *  ) func_dirname_result="${3}" ;;\
26139 \    esac\
26140 \    func_basename_result="${1##*/}"\
26141 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
26142   && mv -f "$cfgfile.tmp" "$cfgfile" \
26143     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26144 test 0 -eq $? || _lt_function_replace_fail=:
26145
26146
26147   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
26148 func_stripname ()\
26149 {\
26150 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
26151 \    # positional parameters, so assign one to ordinary parameter first.\
26152 \    func_stripname_result=${3}\
26153 \    func_stripname_result=${func_stripname_result#"${1}"}\
26154 \    func_stripname_result=${func_stripname_result%"${2}"}\
26155 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
26156   && mv -f "$cfgfile.tmp" "$cfgfile" \
26157     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26158 test 0 -eq $? || _lt_function_replace_fail=:
26159
26160
26161   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
26162 func_split_long_opt ()\
26163 {\
26164 \    func_split_long_opt_name=${1%%=*}\
26165 \    func_split_long_opt_arg=${1#*=}\
26166 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
26167   && mv -f "$cfgfile.tmp" "$cfgfile" \
26168     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26169 test 0 -eq $? || _lt_function_replace_fail=:
26170
26171
26172   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
26173 func_split_short_opt ()\
26174 {\
26175 \    func_split_short_opt_arg=${1#??}\
26176 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
26177 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
26178   && mv -f "$cfgfile.tmp" "$cfgfile" \
26179     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26180 test 0 -eq $? || _lt_function_replace_fail=:
26181
26182
26183   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
26184 func_lo2o ()\
26185 {\
26186 \    case ${1} in\
26187 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
26188 \      *)    func_lo2o_result=${1} ;;\
26189 \    esac\
26190 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
26191   && mv -f "$cfgfile.tmp" "$cfgfile" \
26192     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26193 test 0 -eq $? || _lt_function_replace_fail=:
26194
26195
26196   sed -e '/^func_xform ()$/,/^} # func_xform /c\
26197 func_xform ()\
26198 {\
26199     func_xform_result=${1%.*}.lo\
26200 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
26201   && mv -f "$cfgfile.tmp" "$cfgfile" \
26202     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26203 test 0 -eq $? || _lt_function_replace_fail=:
26204
26205
26206   sed -e '/^func_arith ()$/,/^} # func_arith /c\
26207 func_arith ()\
26208 {\
26209     func_arith_result=$(( $* ))\
26210 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
26211   && mv -f "$cfgfile.tmp" "$cfgfile" \
26212     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26213 test 0 -eq $? || _lt_function_replace_fail=:
26214
26215
26216   sed -e '/^func_len ()$/,/^} # func_len /c\
26217 func_len ()\
26218 {\
26219     func_len_result=${#1}\
26220 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
26221   && mv -f "$cfgfile.tmp" "$cfgfile" \
26222     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26223 test 0 -eq $? || _lt_function_replace_fail=:
26224
26225 fi
26226
26227 if test x"$lt_shell_append" = xyes; then
26228   sed -e '/^func_append ()$/,/^} # func_append /c\
26229 func_append ()\
26230 {\
26231     eval "${1}+=\\${2}"\
26232 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
26233   && mv -f "$cfgfile.tmp" "$cfgfile" \
26234     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26235 test 0 -eq $? || _lt_function_replace_fail=:
26236
26237
26238   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
26239 func_append_quoted ()\
26240 {\
26241 \    func_quote_for_eval "${2}"\
26242 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
26243 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
26244   && mv -f "$cfgfile.tmp" "$cfgfile" \
26245     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26246 test 0 -eq $? || _lt_function_replace_fail=:
26247
26248
26249   # Save a `func_append' function call where possible by direct use of '+='
26250   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
26251     && mv -f "$cfgfile.tmp" "$cfgfile" \
26252       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26253   test 0 -eq $? || _lt_function_replace_fail=:
26254 else
26255   # Save a `func_append' function call even when '+=' is not available
26256   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
26257     && mv -f "$cfgfile.tmp" "$cfgfile" \
26258       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26259   test 0 -eq $? || _lt_function_replace_fail=:
26260 fi
26261
26262 if test x"$_lt_function_replace_fail" = x":"; then
26263   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
26264 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
26265 fi
26266
26267
26268    mv -f "$cfgfile" "$ofile" ||
26269     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26270   chmod +x "$ofile"
26271
26272
26273     cat <<_LT_EOF >> "$ofile"
26274
26275 # ### BEGIN LIBTOOL TAG CONFIG: CXX
26276
26277 # The linker used to build libraries.
26278 LD=$lt_LD_CXX
26279
26280 # How to create reloadable object files.
26281 reload_flag=$lt_reload_flag_CXX
26282 reload_cmds=$lt_reload_cmds_CXX
26283
26284 # Commands used to build an old-style archive.
26285 old_archive_cmds=$lt_old_archive_cmds_CXX
26286
26287 # A language specific compiler.
26288 CC=$lt_compiler_CXX
26289
26290 # Is the compiler the GNU compiler?
26291 with_gcc=$GCC_CXX
26292
26293 # Compiler flag to turn off builtin functions.
26294 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
26295
26296 # Additional compiler flags for building library objects.
26297 pic_flag=$lt_lt_prog_compiler_pic_CXX
26298
26299 # How to pass a linker flag through the compiler.
26300 wl=$lt_lt_prog_compiler_wl_CXX
26301
26302 # Compiler flag to prevent dynamic linking.
26303 link_static_flag=$lt_lt_prog_compiler_static_CXX
26304
26305 # Does compiler simultaneously support -c and -o options?
26306 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
26307
26308 # Whether or not to add -lc for building shared libraries.
26309 build_libtool_need_lc=$archive_cmds_need_lc_CXX
26310
26311 # Whether or not to disallow shared libs when runtime libs are static.
26312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
26313
26314 # Compiler flag to allow reflexive dlopens.
26315 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
26316
26317 # Compiler flag to generate shared objects directly from archives.
26318 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
26319
26320 # Whether the compiler copes with passing no objects directly.
26321 compiler_needs_object=$lt_compiler_needs_object_CXX
26322
26323 # Create an old-style archive from a shared archive.
26324 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
26325
26326 # Create a temporary old-style archive to link instead of a shared archive.
26327 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
26328
26329 # Commands used to build a shared archive.
26330 archive_cmds=$lt_archive_cmds_CXX
26331 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
26332
26333 # Commands used to build a loadable module if different from building
26334 # a shared archive.
26335 module_cmds=$lt_module_cmds_CXX
26336 module_expsym_cmds=$lt_module_expsym_cmds_CXX
26337
26338 # Whether we are building with GNU ld or not.
26339 with_gnu_ld=$lt_with_gnu_ld_CXX
26340
26341 # Flag that allows shared libraries with undefined symbols to be built.
26342 allow_undefined_flag=$lt_allow_undefined_flag_CXX
26343
26344 # Flag that enforces no undefined symbols.
26345 no_undefined_flag=$lt_no_undefined_flag_CXX
26346
26347 # Flag to hardcode \$libdir into a binary during linking.
26348 # This must work even if \$libdir does not exist
26349 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
26350
26351 # Whether we need a single "-rpath" flag with a separated argument.
26352 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
26353
26354 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26355 # DIR into the resulting binary.
26356 hardcode_direct=$hardcode_direct_CXX
26357
26358 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26359 # DIR into the resulting binary and the resulting library dependency is
26360 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26361 # library is relocated.
26362 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
26363
26364 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26365 # into the resulting binary.
26366 hardcode_minus_L=$hardcode_minus_L_CXX
26367
26368 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26369 # into the resulting binary.
26370 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
26371
26372 # Set to "yes" if building a shared library automatically hardcodes DIR
26373 # into the library and all subsequent libraries and executables linked
26374 # against it.
26375 hardcode_automatic=$hardcode_automatic_CXX
26376
26377 # Set to yes if linker adds runtime paths of dependent libraries
26378 # to runtime path list.
26379 inherit_rpath=$inherit_rpath_CXX
26380
26381 # Whether libtool must link a program against all its dependency libraries.
26382 link_all_deplibs=$link_all_deplibs_CXX
26383
26384 # Set to "yes" if exported symbols are required.
26385 always_export_symbols=$always_export_symbols_CXX
26386
26387 # The commands to list exported symbols.
26388 export_symbols_cmds=$lt_export_symbols_cmds_CXX
26389
26390 # Symbols that should not be listed in the preloaded symbols.
26391 exclude_expsyms=$lt_exclude_expsyms_CXX
26392
26393 # Symbols that must always be exported.
26394 include_expsyms=$lt_include_expsyms_CXX
26395
26396 # Commands necessary for linking programs (against libraries) with templates.
26397 prelink_cmds=$lt_prelink_cmds_CXX
26398
26399 # Commands necessary for finishing linking programs.
26400 postlink_cmds=$lt_postlink_cmds_CXX
26401
26402 # Specify filename containing input files.
26403 file_list_spec=$lt_file_list_spec_CXX
26404
26405 # How to hardcode a shared library path into an executable.
26406 hardcode_action=$hardcode_action_CXX
26407
26408 # The directories searched by this compiler when creating a shared library.
26409 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
26410
26411 # Dependencies to place before and after the objects being linked to
26412 # create a shared library.
26413 predep_objects=$lt_predep_objects_CXX
26414 postdep_objects=$lt_postdep_objects_CXX
26415 predeps=$lt_predeps_CXX
26416 postdeps=$lt_postdeps_CXX
26417
26418 # The library search path used internally by the compiler when linking
26419 # a shared library.
26420 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26421
26422 # ### END LIBTOOL TAG CONFIG: CXX
26423 _LT_EOF
26424
26425  ;;
26426     "sdl2_config":C) chmod a+x sdl2-config ;;
26427     "summary":C) echo -en "$SUMMARY" ;;
26428
26429   esac
26430 done # for ac_tag
26431
26432
26433 as_fn_exit 0
26434 _ACEOF
26435 ac_clean_files=$ac_clean_files_save
26436
26437 test $ac_write_fail = 0 ||
26438   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26439
26440
26441 # configure is writing to config.log, and then calls config.status.
26442 # config.status does its own redirection, appending to config.log.
26443 # Unfortunately, on DOS this fails, as config.log is still kept open
26444 # by configure, so config.status won't be able to write to it; its
26445 # output is simply discarded.  So we exec the FD to /dev/null,
26446 # effectively closing config.log, so it can be properly (re)opened and
26447 # appended to by config.status.  When coming back to configure, we
26448 # need to make the FD available again.
26449 if test "$no_create" != yes; then
26450   ac_cs_success=:
26451   ac_config_status_args=
26452   test "$silent" = yes &&
26453     ac_config_status_args="$ac_config_status_args --quiet"
26454   exec 5>/dev/null
26455   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26456   exec 5>>config.log
26457   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26458   # would make configure fail if this is the last instruction.
26459   $ac_cs_success || as_fn_exit 1
26460 fi
26461 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26462   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26463 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26464 fi
26465