Rearranging to get into the format needed to build
[adaptation/panda/libdrm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libdrm 2.4.39.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=DRI>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     PATH=/empty FPATH=/empty; export PATH FPATH
184     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=DRI
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255   fi
256   exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274   { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283   return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291   set +e
292   as_fn_set_status $1
293   exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302   case $as_dir in #(
303   -*) as_dir=./$as_dir;;
304   esac
305   test -d "$as_dir" || eval $as_mkdir_p || {
306     as_dirs=
307     while :; do
308       case $as_dir in #(
309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310       *) as_qdir=$as_dir;;
311       esac
312       as_dirs="'$as_qdir' $as_dirs"
313       as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315          X"$as_dir" : 'X\(//\)[^/]' \| \
316          X"$as_dir" : 'X\(//\)$' \| \
317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)[^/].*/{
324             s//\1/
325             q
326           }
327           /^X\(\/\/\)$/{
328             s//\1/
329             q
330           }
331           /^X\(\/\).*/{
332             s//\1/
333             q
334           }
335           s/.*/./; q'`
336       test -d "$as_dir" && break
337     done
338     test -z "$as_dirs" || eval "mkdir $as_dirs"
339   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350   eval 'as_fn_append ()
351   {
352     eval $1+=\$2
353   }'
354 else
355   as_fn_append ()
356   {
357     eval $1=\$$1\$2
358   }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367   eval 'as_fn_arith ()
368   {
369     as_val=$(( $* ))
370   }'
371 else
372   as_fn_arith ()
373   {
374     as_val=`expr "$@" || test $? -eq 1`
375   }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386   as_status=$1; test $as_status -eq 0 && as_status=1
387   if test "$4"; then
388     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390   fi
391   $as_echo "$as_me: error: $2" >&2
392   as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396    test "X`expr 00001 : '.*\(...\)'`" = X001; then
397   as_expr=expr
398 else
399   as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403   as_basename=basename
404 else
405   as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409   as_dirname=dirname
410 else
411   as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416          X"$0" : 'X\(//\)$' \| \
417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419     sed '/^.*\/\([^/][^/]*\)\/*$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\/\)$/{
424             s//\1/
425             q
426           }
427           /^X\/\(\/\).*/{
428             s//\1/
429             q
430           }
431           s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441   as_lineno_1=$LINENO as_lineno_1a=$LINENO
442   as_lineno_2=$LINENO as_lineno_2a=$LINENO
443   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446   sed -n '
447     p
448     /[$]LINENO/=
449   ' <$as_myself |
450     sed '
451       s/[$]LINENO.*/&-/
452       t lineno
453       b
454       :lineno
455       N
456       :loop
457       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458       t loop
459       s/-\n.*//
460     ' >$as_me.lineno &&
461   chmod +x "$as_me.lineno" ||
462     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464   # Don't try to exec as it changes $[0], causing all sort of problems
465   # (the dirname of $[0] is not the place where we might find the
466   # original and so on.  Autoconf is especially sensitive to this).
467   . "./$as_me.lineno"
468   # Exit status is that of the last command.
469   exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475   case `echo 'xy\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   xy)  ECHO_C='\c';;
478   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479        ECHO_T=' ';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493   if ln -s conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s='ln -s'
495     # ... but there are two gotchas:
496     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498     # In both cases, we have to default to `cp -p'.
499     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500       as_ln_s='cp -p'
501   elif ln conf$$.file conf$$ 2>/dev/null; then
502     as_ln_s=ln
503   else
504     as_ln_s='cp -p'
505   fi
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p='mkdir -p "$as_dir"'
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520   as_test_x='test -x'
521 else
522   if ls -dL / >/dev/null 2>&1; then
523     as_ls_L_option=L
524   else
525     as_ls_L_option=
526   fi
527   as_test_x='
528     eval sh -c '\''
529       if test -d "$1"; then
530         test -d "$1/.";
531       else
532         case $1 in #(
533         -*)set "./$1";;
534         esac;
535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536         ???[sx]*):;;*)false;;esac;fi
537     '\'' sh
538   '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='libdrm'
573 PACKAGE_TARNAME='libdrm'
574 PACKAGE_VERSION='2.4.39'
575 PACKAGE_STRING='libdrm 2.4.39'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=DRI'
577 PACKAGE_URL=''
578
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 WARN_CFLAGS
621 kernel_source
622 HAVE_RADEON_FALSE
623 HAVE_RADEON_TRUE
624 HAVE_INTEL_FALSE
625 HAVE_INTEL_TRUE
626 VALGRIND_LIBS
627 VALGRIND_CFLAGS
628 PCIACCESS_LIBS
629 PCIACCESS_CFLAGS
630 HAVE_LIBUDEV_FALSE
631 HAVE_LIBUDEV_TRUE
632 LIBUDEV_LIBS
633 LIBUDEV_CFLAGS
634 HAVE_CAIRO_FALSE
635 HAVE_CAIRO_TRUE
636 CAIRO_LIBS
637 CAIRO_CFLAGS
638 HAVE_EXYNOS_FALSE
639 HAVE_EXYNOS_TRUE
640 HAVE_OMAP_FALSE
641 HAVE_OMAP_TRUE
642 HAVE_NOUVEAU_FALSE
643 HAVE_NOUVEAU_TRUE
644 HAVE_VMWGFX_FALSE
645 HAVE_VMWGFX_TRUE
646 HAVE_LIBKMS_FALSE
647 HAVE_LIBKMS_TRUE
648 CLOCK_LIB
649 pkgconfigdir
650 PTHREADSTUBS_LIBS
651 PTHREADSTUBS_CFLAGS
652 PKG_CONFIG_LIBDIR
653 PKG_CONFIG_PATH
654 PKG_CONFIG
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 MANIFEST_TOOL
661 RANLIB
662 ac_ct_AR
663 AR
664 DLLTOOL
665 OBJDUMP
666 LN_S
667 NM
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LD
671 FGREP
672 SED
673 host_os
674 host_vendor
675 host_cpu
676 host
677 build_os
678 build_vendor
679 build_cpu
680 build
681 LIBTOOL
682 ALLOCA
683 EGREP
684 GREP
685 CPP
686 am__fastdepCC_FALSE
687 am__fastdepCC_TRUE
688 CCDEPMODE
689 am__nodep
690 AMDEPBACKSLASH
691 AMDEP_FALSE
692 AMDEP_TRUE
693 am__quote
694 am__include
695 DEPDIR
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
702 CC
703 AM_BACKSLASH
704 AM_DEFAULT_VERBOSITY
705 AM_DEFAULT_V
706 AM_V
707 MAINT
708 MAINTAINER_MODE_FALSE
709 MAINTAINER_MODE_TRUE
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 target_alias
734 host_alias
735 build_alias
736 LIBS
737 ECHO_T
738 ECHO_N
739 ECHO_C
740 DEFS
741 mandir
742 localedir
743 libdir
744 psdir
745 pdfdir
746 dvidir
747 htmldir
748 infodir
749 docdir
750 oldincludedir
751 includedir
752 localstatedir
753 sharedstatedir
754 sysconfdir
755 datadir
756 datarootdir
757 libexecdir
758 sbindir
759 bindir
760 program_transform_name
761 prefix
762 exec_prefix
763 PACKAGE_URL
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 enable_maintainer_mode
775 enable_silent_rules
776 enable_dependency_tracking
777 enable_largefile
778 enable_static
779 enable_shared
780 with_pic
781 enable_fast_install
782 with_gnu_ld
783 with_sysroot
784 enable_libtool_lock
785 enable_udev
786 enable_libkms
787 enable_intel
788 enable_radeon
789 enable_nouveau
790 enable_vmwgfx_experimental_api
791 enable_omap_experimental_api
792 enable_exynos_experimental_api
793 with_kernel_source
794 '
795       ac_precious_vars='build_alias
796 host_alias
797 target_alias
798 CC
799 CFLAGS
800 LDFLAGS
801 LIBS
802 CPPFLAGS
803 CPP
804 PKG_CONFIG
805 PKG_CONFIG_PATH
806 PKG_CONFIG_LIBDIR
807 PTHREADSTUBS_CFLAGS
808 PTHREADSTUBS_LIBS
809 CAIRO_CFLAGS
810 CAIRO_LIBS
811 LIBUDEV_CFLAGS
812 LIBUDEV_LIBS
813 PCIACCESS_CFLAGS
814 PCIACCESS_LIBS
815 VALGRIND_CFLAGS
816 VALGRIND_LIBS'
817
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 ac_unrecognized_opts=
823 ac_unrecognized_sep=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871   # If the previous option needs an argument, assign it.
872   if test -n "$ac_prev"; then
873     eval $ac_prev=\$ac_option
874     ac_prev=
875     continue
876   fi
877
878   case $ac_option in
879   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880   *=)   ac_optarg= ;;
881   *)    ac_optarg=yes ;;
882   esac
883
884   # Accept the important Cygnus configure options, so we can diagnose typos.
885
886   case $ac_dashdash$ac_option in
887   --)
888     ac_dashdash=yes ;;
889
890   -bindir | --bindir | --bindi | --bind | --bin | --bi)
891     ac_prev=bindir ;;
892   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893     bindir=$ac_optarg ;;
894
895   -build | --build | --buil | --bui | --bu)
896     ac_prev=build_alias ;;
897   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898     build_alias=$ac_optarg ;;
899
900   -cache-file | --cache-file | --cache-fil | --cache-fi \
901   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902     ac_prev=cache_file ;;
903   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905     cache_file=$ac_optarg ;;
906
907   --config-cache | -C)
908     cache_file=config.cache ;;
909
910   -datadir | --datadir | --datadi | --datad)
911     ac_prev=datadir ;;
912   -datadir=* | --datadir=* | --datadi=* | --datad=*)
913     datadir=$ac_optarg ;;
914
915   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916   | --dataroo | --dataro | --datar)
917     ac_prev=datarootdir ;;
918   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920     datarootdir=$ac_optarg ;;
921
922   -disable-* | --disable-*)
923     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924     # Reject names that are not valid shell variable names.
925     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926       as_fn_error $? "invalid feature name: $ac_useropt"
927     ac_useropt_orig=$ac_useropt
928     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929     case $ac_user_opts in
930       *"
931 "enable_$ac_useropt"
932 "*) ;;
933       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934          ac_unrecognized_sep=', ';;
935     esac
936     eval enable_$ac_useropt=no ;;
937
938   -docdir | --docdir | --docdi | --doc | --do)
939     ac_prev=docdir ;;
940   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941     docdir=$ac_optarg ;;
942
943   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944     ac_prev=dvidir ;;
945   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946     dvidir=$ac_optarg ;;
947
948   -enable-* | --enable-*)
949     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950     # Reject names that are not valid shell variable names.
951     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952       as_fn_error $? "invalid feature name: $ac_useropt"
953     ac_useropt_orig=$ac_useropt
954     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955     case $ac_user_opts in
956       *"
957 "enable_$ac_useropt"
958 "*) ;;
959       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960          ac_unrecognized_sep=', ';;
961     esac
962     eval enable_$ac_useropt=\$ac_optarg ;;
963
964   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966   | --exec | --exe | --ex)
967     ac_prev=exec_prefix ;;
968   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970   | --exec=* | --exe=* | --ex=*)
971     exec_prefix=$ac_optarg ;;
972
973   -gas | --gas | --ga | --g)
974     # Obsolete; use --with-gas.
975     with_gas=yes ;;
976
977   -help | --help | --hel | --he | -h)
978     ac_init_help=long ;;
979   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980     ac_init_help=recursive ;;
981   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982     ac_init_help=short ;;
983
984   -host | --host | --hos | --ho)
985     ac_prev=host_alias ;;
986   -host=* | --host=* | --hos=* | --ho=*)
987     host_alias=$ac_optarg ;;
988
989   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990     ac_prev=htmldir ;;
991   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992   | --ht=*)
993     htmldir=$ac_optarg ;;
994
995   -includedir | --includedir | --includedi | --included | --include \
996   | --includ | --inclu | --incl | --inc)
997     ac_prev=includedir ;;
998   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999   | --includ=* | --inclu=* | --incl=* | --inc=*)
1000     includedir=$ac_optarg ;;
1001
1002   -infodir | --infodir | --infodi | --infod | --info | --inf)
1003     ac_prev=infodir ;;
1004   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005     infodir=$ac_optarg ;;
1006
1007   -libdir | --libdir | --libdi | --libd)
1008     ac_prev=libdir ;;
1009   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010     libdir=$ac_optarg ;;
1011
1012   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013   | --libexe | --libex | --libe)
1014     ac_prev=libexecdir ;;
1015   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016   | --libexe=* | --libex=* | --libe=*)
1017     libexecdir=$ac_optarg ;;
1018
1019   -localedir | --localedir | --localedi | --localed | --locale)
1020     ac_prev=localedir ;;
1021   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022     localedir=$ac_optarg ;;
1023
1024   -localstatedir | --localstatedir | --localstatedi | --localstated \
1025   | --localstate | --localstat | --localsta | --localst | --locals)
1026     ac_prev=localstatedir ;;
1027   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029     localstatedir=$ac_optarg ;;
1030
1031   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032     ac_prev=mandir ;;
1033   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034     mandir=$ac_optarg ;;
1035
1036   -nfp | --nfp | --nf)
1037     # Obsolete; use --without-fp.
1038     with_fp=no ;;
1039
1040   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041   | --no-cr | --no-c | -n)
1042     no_create=yes ;;
1043
1044   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046     no_recursion=yes ;;
1047
1048   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050   | --oldin | --oldi | --old | --ol | --o)
1051     ac_prev=oldincludedir ;;
1052   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055     oldincludedir=$ac_optarg ;;
1056
1057   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058     ac_prev=prefix ;;
1059   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060     prefix=$ac_optarg ;;
1061
1062   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063   | --program-pre | --program-pr | --program-p)
1064     ac_prev=program_prefix ;;
1065   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067     program_prefix=$ac_optarg ;;
1068
1069   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070   | --program-suf | --program-su | --program-s)
1071     ac_prev=program_suffix ;;
1072   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074     program_suffix=$ac_optarg ;;
1075
1076   -program-transform-name | --program-transform-name \
1077   | --program-transform-nam | --program-transform-na \
1078   | --program-transform-n | --program-transform- \
1079   | --program-transform | --program-transfor \
1080   | --program-transfo | --program-transf \
1081   | --program-trans | --program-tran \
1082   | --progr-tra | --program-tr | --program-t)
1083     ac_prev=program_transform_name ;;
1084   -program-transform-name=* | --program-transform-name=* \
1085   | --program-transform-nam=* | --program-transform-na=* \
1086   | --program-transform-n=* | --program-transform-=* \
1087   | --program-transform=* | --program-transfor=* \
1088   | --program-transfo=* | --program-transf=* \
1089   | --program-trans=* | --program-tran=* \
1090   | --progr-tra=* | --program-tr=* | --program-t=*)
1091     program_transform_name=$ac_optarg ;;
1092
1093   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094     ac_prev=pdfdir ;;
1095   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096     pdfdir=$ac_optarg ;;
1097
1098   -psdir | --psdir | --psdi | --psd | --ps)
1099     ac_prev=psdir ;;
1100   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101     psdir=$ac_optarg ;;
1102
1103   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104   | -silent | --silent | --silen | --sile | --sil)
1105     silent=yes ;;
1106
1107   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108     ac_prev=sbindir ;;
1109   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110   | --sbi=* | --sb=*)
1111     sbindir=$ac_optarg ;;
1112
1113   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115   | --sharedst | --shareds | --shared | --share | --shar \
1116   | --sha | --sh)
1117     ac_prev=sharedstatedir ;;
1118   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121   | --sha=* | --sh=*)
1122     sharedstatedir=$ac_optarg ;;
1123
1124   -site | --site | --sit)
1125     ac_prev=site ;;
1126   -site=* | --site=* | --sit=*)
1127     site=$ac_optarg ;;
1128
1129   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130     ac_prev=srcdir ;;
1131   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132     srcdir=$ac_optarg ;;
1133
1134   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135   | --syscon | --sysco | --sysc | --sys | --sy)
1136     ac_prev=sysconfdir ;;
1137   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139     sysconfdir=$ac_optarg ;;
1140
1141   -target | --target | --targe | --targ | --tar | --ta | --t)
1142     ac_prev=target_alias ;;
1143   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144     target_alias=$ac_optarg ;;
1145
1146   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147     verbose=yes ;;
1148
1149   -version | --version | --versio | --versi | --vers | -V)
1150     ac_init_version=: ;;
1151
1152   -with-* | --with-*)
1153     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156       as_fn_error $? "invalid package name: $ac_useropt"
1157     ac_useropt_orig=$ac_useropt
1158     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159     case $ac_user_opts in
1160       *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164          ac_unrecognized_sep=', ';;
1165     esac
1166     eval with_$ac_useropt=\$ac_optarg ;;
1167
1168   -without-* | --without-*)
1169     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170     # Reject names that are not valid shell variable names.
1171     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172       as_fn_error $? "invalid package name: $ac_useropt"
1173     ac_useropt_orig=$ac_useropt
1174     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175     case $ac_user_opts in
1176       *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180          ac_unrecognized_sep=', ';;
1181     esac
1182     eval with_$ac_useropt=no ;;
1183
1184   --x)
1185     # Obsolete; use --with-x.
1186     with_x=yes ;;
1187
1188   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189   | --x-incl | --x-inc | --x-in | --x-i)
1190     ac_prev=x_includes ;;
1191   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193     x_includes=$ac_optarg ;;
1194
1195   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197     ac_prev=x_libraries ;;
1198   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200     x_libraries=$ac_optarg ;;
1201
1202   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203 Try \`$0 --help' for more information"
1204     ;;
1205
1206   *=*)
1207     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208     # Reject names that are not valid shell variable names.
1209     case $ac_envvar in #(
1210       '' | [0-9]* | *[!_$as_cr_alnum]* )
1211       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212     esac
1213     eval $ac_envvar=\$ac_optarg
1214     export $ac_envvar ;;
1215
1216   *)
1217     # FIXME: should be removed in autoconf 3.0.
1218     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222     ;;
1223
1224   esac
1225 done
1226
1227 if test -n "$ac_prev"; then
1228   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229   as_fn_error $? "missing argument to $ac_option"
1230 fi
1231
1232 if test -n "$ac_unrecognized_opts"; then
1233   case $enable_option_checking in
1234     no) ;;
1235     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237   esac
1238 fi
1239
1240 # Check all directory arguments for consistency.
1241 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242                 datadir sysconfdir sharedstatedir localstatedir includedir \
1243                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244                 libdir localedir mandir
1245 do
1246   eval ac_val=\$$ac_var
1247   # Remove trailing slashes.
1248   case $ac_val in
1249     */ )
1250       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251       eval $ac_var=\$ac_val;;
1252   esac
1253   # Be sure to have absolute directory names.
1254   case $ac_val in
1255     [\\/$]* | ?:[\\/]* )  continue;;
1256     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257   esac
1258   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259 done
1260
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1267
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270   if test "x$build_alias" = x; then
1271     cross_compiling=maybe
1272     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1273     If a cross compiler is detected then cross compile mode will be used" >&2
1274   elif test "x$build_alias" != "x$host_alias"; then
1275     cross_compiling=yes
1276   fi
1277 fi
1278
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282 test "$silent" = yes && exec 6>/dev/null
1283
1284
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288   as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290   as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295   ac_srcdir_defaulted=yes
1296   # Try the directory containing this script, then the parent directory.
1297   ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299          X"$as_myself" : 'X\(//\)[^/]' \| \
1300          X"$as_myself" : 'X\(//\)$' \| \
1301          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304             s//\1/
1305             q
1306           }
1307           /^X\(\/\/\)[^/].*/{
1308             s//\1/
1309             q
1310           }
1311           /^X\(\/\/\)$/{
1312             s//\1/
1313             q
1314           }
1315           /^X\(\/\).*/{
1316             s//\1/
1317             q
1318           }
1319           s/.*/./; q'`
1320   srcdir=$ac_confdir
1321   if test ! -r "$srcdir/$ac_unique_file"; then
1322     srcdir=..
1323   fi
1324 else
1325   ac_srcdir_defaulted=no
1326 fi
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330 fi
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 ac_abs_confdir=`(
1333         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334         pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337   srcdir=.
1338 fi
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347   eval ac_env_${ac_var}_value=\$${ac_var}
1348   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1351
1352 #
1353 # Report the --help message.
1354 #
1355 if test "$ac_init_help" = "long"; then
1356   # Omit some internal or obsolete options to make the list less imposing.
1357   # This message is too long to be a string in the A/UX 3.1 sh.
1358   cat <<_ACEOF
1359 \`configure' configures libdrm 2.4.39 to adapt to many kinds of systems.
1360
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE.  See below for descriptions of some of the useful variables.
1365
1366 Defaults for the options are specified in brackets.
1367
1368 Configuration:
1369   -h, --help              display this help and exit
1370       --help=short        display options specific to this package
1371       --help=recursive    display the short help of all the included packages
1372   -V, --version           display version information and exit
1373   -q, --quiet, --silent   do not print \`checking ...' messages
1374       --cache-file=FILE   cache test results in FILE [disabled]
1375   -C, --config-cache      alias for \`--cache-file=config.cache'
1376   -n, --no-create         do not create output files
1377       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1378
1379 Installation directories:
1380   --prefix=PREFIX         install architecture-independent files in PREFIX
1381                           [$ac_default_prefix]
1382   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1383                           [PREFIX]
1384
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1389
1390 For better control, use the options below.
1391
1392 Fine tuning of the installation directories:
1393   --bindir=DIR            user executables [EPREFIX/bin]
1394   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1395   --libexecdir=DIR        program executables [EPREFIX/libexec]
1396   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1397   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1398   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1399   --libdir=DIR            object code libraries [EPREFIX/lib]
1400   --includedir=DIR        C header files [PREFIX/include]
1401   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1402   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1403   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1404   --infodir=DIR           info documentation [DATAROOTDIR/info]
1405   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1406   --mandir=DIR            man documentation [DATAROOTDIR/man]
1407   --docdir=DIR            documentation root [DATAROOTDIR/doc/libdrm]
1408   --htmldir=DIR           html documentation [DOCDIR]
1409   --dvidir=DIR            dvi documentation [DOCDIR]
1410   --pdfdir=DIR            pdf documentation [DOCDIR]
1411   --psdir=DIR             ps documentation [DOCDIR]
1412 _ACEOF
1413
1414   cat <<\_ACEOF
1415
1416 Program names:
1417   --program-prefix=PREFIX            prepend PREFIX to installed program names
1418   --program-suffix=SUFFIX            append SUFFIX to installed program names
1419   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1420
1421 System types:
1422   --build=BUILD     configure for building on BUILD [guessed]
1423   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1424 _ACEOF
1425 fi
1426
1427 if test -n "$ac_init_help"; then
1428   case $ac_init_help in
1429      short | recursive ) echo "Configuration of libdrm 2.4.39:";;
1430    esac
1431   cat <<\_ACEOF
1432
1433 Optional Features:
1434   --disable-option-checking  ignore unrecognized --enable/--with options
1435   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1436   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1437   --disable-maintainer-mode  disable make rules and dependencies not useful
1438                           (and sometimes confusing) to the casual installer
1439   --enable-silent-rules          less verbose build output (undo: `make V=1')
1440   --disable-silent-rules         verbose build output (undo: `make V=0')
1441   --disable-dependency-tracking  speeds up one-time build
1442   --enable-dependency-tracking   do not reject slow dependency extractors
1443   --disable-largefile     omit support for large files
1444   --enable-static[=PKGS]  build static libraries [default=no]
1445   --enable-shared[=PKGS]  build shared libraries [default=yes]
1446   --enable-fast-install[=PKGS]
1447                           optimize for fast installation [default=yes]
1448   --disable-libtool-lock  avoid locking (might break parallel builds)
1449   --enable-udev           Enable support for using udev instead of mknod
1450                           (default: disabled)
1451   --disable-libkms        Disable KMS mm abstraction library (default: auto)
1452   --disable-intel         Enable support for intel's KMS API (default: auto)
1453   --disable-radeon        Enable support for radeon's KMS API (default: auto)
1454   --disable-nouveau       Enable support for nouveau's KMS API (default: auto)
1455   --enable-vmwgfx-experimental-api
1456                           Install vmwgfx's experimental kernel API header
1457                           (default: disabled)
1458   --enable-omap-experimental-api
1459                           Enable support for OMAP's experimental API (default:
1460                           disabled)
1461   --enable-exynos-experimental-api
1462                           Enable support for EXYNOS's experimental API
1463                           (default: disabled)
1464
1465 Optional Packages:
1466   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1467   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1468   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1469                           both]
1470   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1471   --with-sysroot=DIR Search for dependent libraries within DIR
1472                         (or the compiler's sysroot if not specified).
1473   --with-kernel-source    specify path to linux kernel source
1474
1475 Some influential environment variables:
1476   CC          C compiler command
1477   CFLAGS      C compiler flags
1478   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1479               nonstandard directory <lib dir>
1480   LIBS        libraries to pass to the linker, e.g. -l<library>
1481   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1482               you have headers in a nonstandard directory <include dir>
1483   CPP         C preprocessor
1484   PKG_CONFIG  path to pkg-config utility
1485   PKG_CONFIG_PATH
1486               directories to add to pkg-config's search path
1487   PKG_CONFIG_LIBDIR
1488               path overriding pkg-config's built-in search path
1489   PTHREADSTUBS_CFLAGS
1490               C compiler flags for PTHREADSTUBS, overriding pkg-config
1491   PTHREADSTUBS_LIBS
1492               linker flags for PTHREADSTUBS, overriding pkg-config
1493   CAIRO_CFLAGS
1494               C compiler flags for CAIRO, overriding pkg-config
1495   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1496   LIBUDEV_CFLAGS
1497               C compiler flags for LIBUDEV, overriding pkg-config
1498   LIBUDEV_LIBS
1499               linker flags for LIBUDEV, overriding pkg-config
1500   PCIACCESS_CFLAGS
1501               C compiler flags for PCIACCESS, overriding pkg-config
1502   PCIACCESS_LIBS
1503               linker flags for PCIACCESS, overriding pkg-config
1504   VALGRIND_CFLAGS
1505               C compiler flags for VALGRIND, overriding pkg-config
1506   VALGRIND_LIBS
1507               linker flags for VALGRIND, overriding pkg-config
1508
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1511
1512 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=DRI>.
1513 _ACEOF
1514 ac_status=$?
1515 fi
1516
1517 if test "$ac_init_help" = "recursive"; then
1518   # If there are subdirs, report their specific --help.
1519   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520     test -d "$ac_dir" ||
1521       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522       continue
1523     ac_builddir=.
1524
1525 case "$ac_dir" in
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *)
1528   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529   # A ".." for each directory in $ac_dir_suffix.
1530   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531   case $ac_top_builddir_sub in
1532   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534   esac ;;
1535 esac
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1540
1541 case $srcdir in
1542   .)  # We are building in place.
1543     ac_srcdir=.
1544     ac_top_srcdir=$ac_top_builddir_sub
1545     ac_abs_top_srcdir=$ac_pwd ;;
1546   [\\/]* | ?:[\\/]* )  # Absolute name.
1547     ac_srcdir=$srcdir$ac_dir_suffix;
1548     ac_top_srcdir=$srcdir
1549     ac_abs_top_srcdir=$srcdir ;;
1550   *) # Relative name.
1551     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552     ac_top_srcdir=$ac_top_build_prefix$srcdir
1553     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 esac
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557     cd "$ac_dir" || { ac_status=$?; continue; }
1558     # Check for guested configure.
1559     if test -f "$ac_srcdir/configure.gnu"; then
1560       echo &&
1561       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562     elif test -f "$ac_srcdir/configure"; then
1563       echo &&
1564       $SHELL "$ac_srcdir/configure" --help=recursive
1565     else
1566       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567     fi || ac_status=$?
1568     cd "$ac_pwd" || { ac_status=$?; break; }
1569   done
1570 fi
1571
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1574   cat <<\_ACEOF
1575 libdrm configure 2.4.39
1576 generated by GNU Autoconf 2.68
1577
1578 Copyright (C) 2010 Free Software Foundation, Inc.
1579 This configure script is free software; the Free Software Foundation
1580 gives unlimited permission to copy, distribute and modify it.
1581 _ACEOF
1582   exit
1583 fi
1584
1585 ## ------------------------ ##
1586 ## Autoconf initialization. ##
1587 ## ------------------------ ##
1588
1589 # ac_fn_c_try_compile LINENO
1590 # --------------------------
1591 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_compile ()
1593 {
1594   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595   rm -f conftest.$ac_objext
1596   if { { ac_try="$ac_compile"
1597 case "(($ac_try" in
1598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599   *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603   (eval "$ac_compile") 2>conftest.err
1604   ac_status=$?
1605   if test -s conftest.err; then
1606     grep -v '^ *+' conftest.err >conftest.er1
1607     cat conftest.er1 >&5
1608     mv -f conftest.er1 conftest.err
1609   fi
1610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611   test $ac_status = 0; } && {
1612          test -z "$ac_c_werror_flag" ||
1613          test ! -s conftest.err
1614        } && test -s conftest.$ac_objext; then :
1615   ac_retval=0
1616 else
1617   $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1619
1620         ac_retval=1
1621 fi
1622   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623   as_fn_set_status $ac_retval
1624
1625 } # ac_fn_c_try_compile
1626
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_cpp ()
1631 {
1632   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633   if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 case "(($ac_try" in
1635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636   *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641   ac_status=$?
1642   if test -s conftest.err; then
1643     grep -v '^ *+' conftest.err >conftest.er1
1644     cat conftest.er1 >&5
1645     mv -f conftest.er1 conftest.err
1646   fi
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } > conftest.i && {
1649          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650          test ! -s conftest.err
1651        }; then :
1652   ac_retval=0
1653 else
1654   $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657     ac_retval=1
1658 fi
1659   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660   as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_cpp
1663
1664 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1667 # the include files in INCLUDES and setting the cache variable VAR
1668 # accordingly.
1669 ac_fn_c_check_header_mongrel ()
1670 {
1671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672   if eval \${$3+:} false; then :
1673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if eval \${$3+:} false; then :
1676   $as_echo_n "(cached) " >&6
1677 fi
1678 eval ac_res=\$$3
1679                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1681 else
1682   # Is the header compilable?
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1684 $as_echo_n "checking $2 usability... " >&6; }
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h.  */
1687 $4
1688 #include <$2>
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"; then :
1691   ac_header_compiler=yes
1692 else
1693   ac_header_compiler=no
1694 fi
1695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1697 $as_echo "$ac_header_compiler" >&6; }
1698
1699 # Is the header present?
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1701 $as_echo_n "checking $2 presence... " >&6; }
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h.  */
1704 #include <$2>
1705 _ACEOF
1706 if ac_fn_c_try_cpp "$LINENO"; then :
1707   ac_header_preproc=yes
1708 else
1709   ac_header_preproc=no
1710 fi
1711 rm -f conftest.err conftest.i conftest.$ac_ext
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1713 $as_echo "$ac_header_preproc" >&6; }
1714
1715 # So?  What about this header?
1716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1717   yes:no: )
1718     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1719 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1720     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722     ;;
1723   no:yes:* )
1724     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1725 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1726     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1727 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1728     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1729 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1731 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1732     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1733 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1734 ( $as_echo "## --------------------------------------------------------------------- ##
1735 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=DRI ##
1736 ## --------------------------------------------------------------------- ##"
1737      ) | sed "s/^/$as_me: WARNING:     /" >&2
1738     ;;
1739 esac
1740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743   $as_echo_n "(cached) " >&6
1744 else
1745   eval "$3=\$ac_header_compiler"
1746 fi
1747 eval ac_res=\$$3
1748                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1750 fi
1751   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752
1753 } # ac_fn_c_check_header_mongrel
1754
1755 # ac_fn_c_try_run LINENO
1756 # ----------------------
1757 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1758 # that executables *can* be run.
1759 ac_fn_c_try_run ()
1760 {
1761   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762   if { { ac_try="$ac_link"
1763 case "(($ac_try" in
1764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765   *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769   (eval "$ac_link") 2>&5
1770   ac_status=$?
1771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1773   { { case "(($ac_try" in
1774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775   *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779   (eval "$ac_try") 2>&5
1780   ac_status=$?
1781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782   test $ac_status = 0; }; }; then :
1783   ac_retval=0
1784 else
1785   $as_echo "$as_me: program exited with status $ac_status" >&5
1786        $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1788
1789        ac_retval=$ac_status
1790 fi
1791   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793   as_fn_set_status $ac_retval
1794
1795 } # ac_fn_c_try_run
1796
1797 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1798 # -------------------------------------------------------
1799 # Tests whether HEADER exists and can be compiled using the include files in
1800 # INCLUDES, setting the cache variable VAR accordingly.
1801 ac_fn_c_check_header_compile ()
1802 {
1803   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807   $as_echo_n "(cached) " >&6
1808 else
1809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h.  */
1811 $4
1812 #include <$2>
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815   eval "$3=yes"
1816 else
1817   eval "$3=no"
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 fi
1821 eval ac_res=\$$3
1822                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826 } # ac_fn_c_check_header_compile
1827
1828 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1829 # -------------------------------------------
1830 # Tests whether TYPE exists after having included INCLUDES, setting cache
1831 # variable VAR accordingly.
1832 ac_fn_c_check_type ()
1833 {
1834   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval \${$3+:} false; then :
1838   $as_echo_n "(cached) " >&6
1839 else
1840   eval "$3=no"
1841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h.  */
1843 $4
1844 int
1845 main ()
1846 {
1847 if (sizeof ($2))
1848          return 0;
1849   ;
1850   return 0;
1851 }
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h.  */
1856 $4
1857 int
1858 main ()
1859 {
1860 if (sizeof (($2)))
1861             return 0;
1862   ;
1863   return 0;
1864 }
1865 _ACEOF
1866 if ac_fn_c_try_compile "$LINENO"; then :
1867
1868 else
1869   eval "$3=yes"
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 fi
1875 eval ac_res=\$$3
1876                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880 } # ac_fn_c_check_type
1881
1882 # ac_fn_c_try_link LINENO
1883 # -----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded.
1885 ac_fn_c_try_link ()
1886 {
1887   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888   rm -f conftest.$ac_objext conftest$ac_exeext
1889   if { { ac_try="$ac_link"
1890 case "(($ac_try" in
1891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892   *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896   (eval "$ac_link") 2>conftest.err
1897   ac_status=$?
1898   if test -s conftest.err; then
1899     grep -v '^ *+' conftest.err >conftest.er1
1900     cat conftest.er1 >&5
1901     mv -f conftest.er1 conftest.err
1902   fi
1903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904   test $ac_status = 0; } && {
1905          test -z "$ac_c_werror_flag" ||
1906          test ! -s conftest.err
1907        } && test -s conftest$ac_exeext && {
1908          test "$cross_compiling" = yes ||
1909          $as_test_x conftest$ac_exeext
1910        }; then :
1911   ac_retval=0
1912 else
1913   $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1915
1916         ac_retval=1
1917 fi
1918   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1919   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1920   # interfere with the next link command; also delete a directory that is
1921   # left behind by Apple's compiler.  We do this before executing the actions.
1922   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924   as_fn_set_status $ac_retval
1925
1926 } # ac_fn_c_try_link
1927
1928 # ac_fn_c_check_func LINENO FUNC VAR
1929 # ----------------------------------
1930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1931 ac_fn_c_check_func ()
1932 {
1933   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937   $as_echo_n "(cached) " >&6
1938 else
1939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h.  */
1941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1943 #define $2 innocuous_$2
1944
1945 /* System header to define __stub macros and hopefully few prototypes,
1946     which can conflict with char $2 (); below.
1947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948     <limits.h> exists even on freestanding compilers.  */
1949
1950 #ifdef __STDC__
1951 # include <limits.h>
1952 #else
1953 # include <assert.h>
1954 #endif
1955
1956 #undef $2
1957
1958 /* Override any GCC internal prototype to avoid an error.
1959    Use char because int might match the return type of a GCC
1960    builtin and then its argument prototype would still apply.  */
1961 #ifdef __cplusplus
1962 extern "C"
1963 #endif
1964 char $2 ();
1965 /* The GNU C library defines this for functions which it implements
1966     to always fail with ENOSYS.  Some functions are actually named
1967     something starting with __ and the normal name is an alias.  */
1968 #if defined __stub_$2 || defined __stub___$2
1969 choke me
1970 #endif
1971
1972 int
1973 main ()
1974 {
1975 return $2 ();
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_link "$LINENO"; then :
1981   eval "$3=yes"
1982 else
1983   eval "$3=no"
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext \
1986     conftest$ac_exeext conftest.$ac_ext
1987 fi
1988 eval ac_res=\$$3
1989                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993 } # ac_fn_c_check_func
1994 cat >config.log <<_ACEOF
1995 This file contains any messages produced by compilers while
1996 running configure, to aid debugging if configure makes a mistake.
1997
1998 It was created by libdrm $as_me 2.4.39, which was
1999 generated by GNU Autoconf 2.68.  Invocation command line was
2000
2001   $ $0 $@
2002
2003 _ACEOF
2004 exec 5>>config.log
2005 {
2006 cat <<_ASUNAME
2007 ## --------- ##
2008 ## Platform. ##
2009 ## --------- ##
2010
2011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2016
2017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2018 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2019
2020 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2021 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2023 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2024 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2025 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2026 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2027
2028 _ASUNAME
2029
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2032 do
2033   IFS=$as_save_IFS
2034   test -z "$as_dir" && as_dir=.
2035     $as_echo "PATH: $as_dir"
2036   done
2037 IFS=$as_save_IFS
2038
2039 } >&5
2040
2041 cat >&5 <<_ACEOF
2042
2043
2044 ## ----------- ##
2045 ## Core tests. ##
2046 ## ----------- ##
2047
2048 _ACEOF
2049
2050
2051 # Keep a trace of the command line.
2052 # Strip out --no-create and --no-recursion so they do not pile up.
2053 # Strip out --silent because we don't want to record it for future runs.
2054 # Also quote any args containing shell meta-characters.
2055 # Make two passes to allow for proper duplicate-argument suppression.
2056 ac_configure_args=
2057 ac_configure_args0=
2058 ac_configure_args1=
2059 ac_must_keep_next=false
2060 for ac_pass in 1 2
2061 do
2062   for ac_arg
2063   do
2064     case $ac_arg in
2065     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2066     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2067     | -silent | --silent | --silen | --sile | --sil)
2068       continue ;;
2069     *\'*)
2070       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2071     esac
2072     case $ac_pass in
2073     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2074     2)
2075       as_fn_append ac_configure_args1 " '$ac_arg'"
2076       if test $ac_must_keep_next = true; then
2077         ac_must_keep_next=false # Got value, back to normal.
2078       else
2079         case $ac_arg in
2080           *=* | --config-cache | -C | -disable-* | --disable-* \
2081           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2082           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2083           | -with-* | --with-* | -without-* | --without-* | --x)
2084             case "$ac_configure_args0 " in
2085               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2086             esac
2087             ;;
2088           -* ) ac_must_keep_next=true ;;
2089         esac
2090       fi
2091       as_fn_append ac_configure_args " '$ac_arg'"
2092       ;;
2093     esac
2094   done
2095 done
2096 { ac_configure_args0=; unset ac_configure_args0;}
2097 { ac_configure_args1=; unset ac_configure_args1;}
2098
2099 # When interrupted or exit'd, cleanup temporary files, and complete
2100 # config.log.  We remove comments because anyway the quotes in there
2101 # would cause problems or look ugly.
2102 # WARNING: Use '\'' to represent an apostrophe within the trap.
2103 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2104 trap 'exit_status=$?
2105   # Save into config.log some information that might help in debugging.
2106   {
2107     echo
2108
2109     $as_echo "## ---------------- ##
2110 ## Cache variables. ##
2111 ## ---------------- ##"
2112     echo
2113     # The following way of writing the cache mishandles newlines in values,
2114 (
2115   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2116     eval ac_val=\$$ac_var
2117     case $ac_val in #(
2118     *${as_nl}*)
2119       case $ac_var in #(
2120       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2121 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2122       esac
2123       case $ac_var in #(
2124       _ | IFS | as_nl) ;; #(
2125       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2126       *) { eval $ac_var=; unset $ac_var;} ;;
2127       esac ;;
2128     esac
2129   done
2130   (set) 2>&1 |
2131     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2132     *${as_nl}ac_space=\ *)
2133       sed -n \
2134         "s/'\''/'\''\\\\'\'''\''/g;
2135           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2136       ;; #(
2137     *)
2138       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2139       ;;
2140     esac |
2141     sort
2142 )
2143     echo
2144
2145     $as_echo "## ----------------- ##
2146 ## Output variables. ##
2147 ## ----------------- ##"
2148     echo
2149     for ac_var in $ac_subst_vars
2150     do
2151       eval ac_val=\$$ac_var
2152       case $ac_val in
2153       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2154       esac
2155       $as_echo "$ac_var='\''$ac_val'\''"
2156     done | sort
2157     echo
2158
2159     if test -n "$ac_subst_files"; then
2160       $as_echo "## ------------------- ##
2161 ## File substitutions. ##
2162 ## ------------------- ##"
2163       echo
2164       for ac_var in $ac_subst_files
2165       do
2166         eval ac_val=\$$ac_var
2167         case $ac_val in
2168         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2169         esac
2170         $as_echo "$ac_var='\''$ac_val'\''"
2171       done | sort
2172       echo
2173     fi
2174
2175     if test -s confdefs.h; then
2176       $as_echo "## ----------- ##
2177 ## confdefs.h. ##
2178 ## ----------- ##"
2179       echo
2180       cat confdefs.h
2181       echo
2182     fi
2183     test "$ac_signal" != 0 &&
2184       $as_echo "$as_me: caught signal $ac_signal"
2185     $as_echo "$as_me: exit $exit_status"
2186   } >&5
2187   rm -f core *.core core.conftest.* &&
2188     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2189     exit $exit_status
2190 ' 0
2191 for ac_signal in 1 2 13 15; do
2192   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2193 done
2194 ac_signal=0
2195
2196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2197 rm -f -r conftest* confdefs.h
2198
2199 $as_echo "/* confdefs.h */" > confdefs.h
2200
2201 # Predefined preprocessor variables.
2202
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_NAME "$PACKAGE_NAME"
2205 _ACEOF
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2209 _ACEOF
2210
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2213 _ACEOF
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_STRING "$PACKAGE_STRING"
2217 _ACEOF
2218
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2221 _ACEOF
2222
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_URL "$PACKAGE_URL"
2225 _ACEOF
2226
2227
2228 # Let the site file select an alternate cache file if it wants to.
2229 # Prefer an explicitly selected file to automatically selected ones.
2230 ac_site_file1=NONE
2231 ac_site_file2=NONE
2232 if test -n "$CONFIG_SITE"; then
2233   # We do not want a PATH search for config.site.
2234   case $CONFIG_SITE in #((
2235     -*)  ac_site_file1=./$CONFIG_SITE;;
2236     */*) ac_site_file1=$CONFIG_SITE;;
2237     *)   ac_site_file1=./$CONFIG_SITE;;
2238   esac
2239 elif test "x$prefix" != xNONE; then
2240   ac_site_file1=$prefix/share/config.site
2241   ac_site_file2=$prefix/etc/config.site
2242 else
2243   ac_site_file1=$ac_default_prefix/share/config.site
2244   ac_site_file2=$ac_default_prefix/etc/config.site
2245 fi
2246 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2247 do
2248   test "x$ac_site_file" = xNONE && continue
2249   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2250     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2251 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2252     sed 's/^/| /' "$ac_site_file" >&5
2253     . "$ac_site_file" \
2254       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2256 as_fn_error $? "failed to load site script $ac_site_file
2257 See \`config.log' for more details" "$LINENO" 5; }
2258   fi
2259 done
2260
2261 if test -r "$cache_file"; then
2262   # Some versions of bash will fail to source /dev/null (special files
2263   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2264   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2265     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2266 $as_echo "$as_me: loading cache $cache_file" >&6;}
2267     case $cache_file in
2268       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2269       *)                      . "./$cache_file";;
2270     esac
2271   fi
2272 else
2273   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2274 $as_echo "$as_me: creating cache $cache_file" >&6;}
2275   >$cache_file
2276 fi
2277
2278 # Check that the precious variables saved in the cache have kept the same
2279 # value.
2280 ac_cache_corrupted=false
2281 for ac_var in $ac_precious_vars; do
2282   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2283   eval ac_new_set=\$ac_env_${ac_var}_set
2284   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2285   eval ac_new_val=\$ac_env_${ac_var}_value
2286   case $ac_old_set,$ac_new_set in
2287     set,)
2288       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2289 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2290       ac_cache_corrupted=: ;;
2291     ,set)
2292       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2293 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2294       ac_cache_corrupted=: ;;
2295     ,);;
2296     *)
2297       if test "x$ac_old_val" != "x$ac_new_val"; then
2298         # differences in whitespace do not lead to failure.
2299         ac_old_val_w=`echo x $ac_old_val`
2300         ac_new_val_w=`echo x $ac_new_val`
2301         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2302           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2303 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2304           ac_cache_corrupted=:
2305         else
2306           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2307 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2308           eval $ac_var=\$ac_old_val
2309         fi
2310         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2311 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2312         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2313 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2314       fi;;
2315   esac
2316   # Pass precious variables to config.status.
2317   if test "$ac_new_set" = set; then
2318     case $ac_new_val in
2319     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2320     *) ac_arg=$ac_var=$ac_new_val ;;
2321     esac
2322     case " $ac_configure_args " in
2323       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2324       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2325     esac
2326   fi
2327 done
2328 if $ac_cache_corrupted; then
2329   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2331   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2332 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2333   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2334 fi
2335 ## -------------------- ##
2336 ## Main body of script. ##
2337 ## -------------------- ##
2338
2339 ac_ext=c
2340 ac_cpp='$CPP $CPPFLAGS'
2341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2344
2345
2346
2347 ac_config_headers="$ac_config_headers config.h"
2348
2349
2350
2351 ac_aux_dir=
2352 for ac_dir in build-aux "$srcdir"/build-aux; do
2353   if test -f "$ac_dir/install-sh"; then
2354     ac_aux_dir=$ac_dir
2355     ac_install_sh="$ac_aux_dir/install-sh -c"
2356     break
2357   elif test -f "$ac_dir/install.sh"; then
2358     ac_aux_dir=$ac_dir
2359     ac_install_sh="$ac_aux_dir/install.sh -c"
2360     break
2361   elif test -f "$ac_dir/shtool"; then
2362     ac_aux_dir=$ac_dir
2363     ac_install_sh="$ac_aux_dir/shtool install -c"
2364     break
2365   fi
2366 done
2367 if test -z "$ac_aux_dir"; then
2368   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2369 fi
2370
2371 # These three variables are undocumented and unsupported,
2372 # and are intended to be withdrawn in a future Autoconf release.
2373 # They can cause serious problems if a builder's source tree is in a directory
2374 # whose full name contains unusual characters.
2375 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2376 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2377 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2378
2379
2380
2381 am__api_version='1.11'
2382
2383 # Find a good install program.  We prefer a C program (faster),
2384 # so one script is as good as another.  But avoid the broken or
2385 # incompatible versions:
2386 # SysV /etc/install, /usr/sbin/install
2387 # SunOS /usr/etc/install
2388 # IRIX /sbin/install
2389 # AIX /bin/install
2390 # AmigaOS /C/install, which installs bootblocks on floppy discs
2391 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2392 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2393 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2394 # OS/2's system install, which has a completely different semantic
2395 # ./install, which can be erroneously created by make from ./install.sh.
2396 # Reject install programs that cannot install multiple files.
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2398 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2399 if test -z "$INSTALL"; then
2400 if ${ac_cv_path_install+:} false; then :
2401   $as_echo_n "(cached) " >&6
2402 else
2403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406   IFS=$as_save_IFS
2407   test -z "$as_dir" && as_dir=.
2408     # Account for people who put trailing slashes in PATH elements.
2409 case $as_dir/ in #((
2410   ./ | .// | /[cC]/* | \
2411   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2412   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2413   /usr/ucb/* ) ;;
2414   *)
2415     # OSF1 and SCO ODT 3.0 have their own names for install.
2416     # Don't use installbsd from OSF since it installs stuff as root
2417     # by default.
2418     for ac_prog in ginstall scoinst install; do
2419       for ac_exec_ext in '' $ac_executable_extensions; do
2420         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2421           if test $ac_prog = install &&
2422             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2423             # AIX install.  It has an incompatible calling convention.
2424             :
2425           elif test $ac_prog = install &&
2426             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427             # program-specific install script used by HP pwplus--don't use.
2428             :
2429           else
2430             rm -rf conftest.one conftest.two conftest.dir
2431             echo one > conftest.one
2432             echo two > conftest.two
2433             mkdir conftest.dir
2434             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2435               test -s conftest.one && test -s conftest.two &&
2436               test -s conftest.dir/conftest.one &&
2437               test -s conftest.dir/conftest.two
2438             then
2439               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2440               break 3
2441             fi
2442           fi
2443         fi
2444       done
2445     done
2446     ;;
2447 esac
2448
2449   done
2450 IFS=$as_save_IFS
2451
2452 rm -rf conftest.one conftest.two conftest.dir
2453
2454 fi
2455   if test "${ac_cv_path_install+set}" = set; then
2456     INSTALL=$ac_cv_path_install
2457   else
2458     # As a last resort, use the slow shell script.  Don't cache a
2459     # value for INSTALL within a source directory, because that will
2460     # break other packages using the cache if that directory is
2461     # removed, or if the value is a relative name.
2462     INSTALL=$ac_install_sh
2463   fi
2464 fi
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2466 $as_echo "$INSTALL" >&6; }
2467
2468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2469 # It thinks the first close brace ends the variable substitution.
2470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2471
2472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2473
2474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2475
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2477 $as_echo_n "checking whether build environment is sane... " >&6; }
2478 # Just in case
2479 sleep 1
2480 echo timestamp > conftest.file
2481 # Reject unsafe characters in $srcdir or the absolute working directory
2482 # name.  Accept space and tab only in the latter.
2483 am_lf='
2484 '
2485 case `pwd` in
2486   *[\\\"\#\$\&\'\`$am_lf]*)
2487     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2488 esac
2489 case $srcdir in
2490   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2491     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2492 esac
2493
2494 # Do `set' in a subshell so we don't clobber the current shell's
2495 # arguments.  Must try -L first in case configure is actually a
2496 # symlink; some systems play weird games with the mod time of symlinks
2497 # (eg FreeBSD returns the mod time of the symlink's containing
2498 # directory).
2499 if (
2500    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2501    if test "$*" = "X"; then
2502       # -L didn't work.
2503       set X `ls -t "$srcdir/configure" conftest.file`
2504    fi
2505    rm -f conftest.file
2506    if test "$*" != "X $srcdir/configure conftest.file" \
2507       && test "$*" != "X conftest.file $srcdir/configure"; then
2508
2509       # If neither matched, then we have a broken ls.  This can happen
2510       # if, for instance, CONFIG_SHELL is bash and it inherits a
2511       # broken ls alias from the environment.  This has actually
2512       # happened.  Such a system could not be considered "sane".
2513       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2514 alias in your environment" "$LINENO" 5
2515    fi
2516
2517    test "$2" = conftest.file
2518    )
2519 then
2520    # Ok.
2521    :
2522 else
2523    as_fn_error $? "newly created file is older than distributed files!
2524 Check your system clock" "$LINENO" 5
2525 fi
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2527 $as_echo "yes" >&6; }
2528 test "$program_prefix" != NONE &&
2529   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2530 # Use a double $ so make ignores it.
2531 test "$program_suffix" != NONE &&
2532   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2533 # Double any \ or $.
2534 # By default was `s,x,x', remove it if useless.
2535 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2536 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2537
2538 # expand $ac_aux_dir to an absolute path
2539 am_aux_dir=`cd $ac_aux_dir && pwd`
2540
2541 if test x"${MISSING+set}" != xset; then
2542   case $am_aux_dir in
2543   *\ * | *\     *)
2544     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2545   *)
2546     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2547   esac
2548 fi
2549 # Use eval to expand $SHELL
2550 if eval "$MISSING --run true"; then
2551   am_missing_run="$MISSING --run "
2552 else
2553   am_missing_run=
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2555 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2556 fi
2557
2558 if test x"${install_sh}" != xset; then
2559   case $am_aux_dir in
2560   *\ * | *\     *)
2561     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2562   *)
2563     install_sh="\${SHELL} $am_aux_dir/install-sh"
2564   esac
2565 fi
2566
2567 # Installed binaries are usually stripped using `strip' when the user
2568 # run `make install-strip'.  However `strip' might not be the right
2569 # tool to use in cross-compilation environments, therefore Automake
2570 # will honor the `STRIP' environment variable to overrule this program.
2571 if test "$cross_compiling" != no; then
2572   if test -n "$ac_tool_prefix"; then
2573   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2574 set dummy ${ac_tool_prefix}strip; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_STRIP+:} false; then :
2578   $as_echo_n "(cached) " >&6
2579 else
2580   if test -n "$STRIP"; then
2581   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586   IFS=$as_save_IFS
2587   test -z "$as_dir" && as_dir=.
2588     for ac_exec_ext in '' $ac_executable_extensions; do
2589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592     break 2
2593   fi
2594 done
2595   done
2596 IFS=$as_save_IFS
2597
2598 fi
2599 fi
2600 STRIP=$ac_cv_prog_STRIP
2601 if test -n "$STRIP"; then
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2603 $as_echo "$STRIP" >&6; }
2604 else
2605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2607 fi
2608
2609
2610 fi
2611 if test -z "$ac_cv_prog_STRIP"; then
2612   ac_ct_STRIP=$STRIP
2613   # Extract the first word of "strip", so it can be a program name with args.
2614 set dummy strip; ac_word=$2
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2618   $as_echo_n "(cached) " >&6
2619 else
2620   if test -n "$ac_ct_STRIP"; then
2621   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626   IFS=$as_save_IFS
2627   test -z "$as_dir" && as_dir=.
2628     for ac_exec_ext in '' $ac_executable_extensions; do
2629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2630     ac_cv_prog_ac_ct_STRIP="strip"
2631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632     break 2
2633   fi
2634 done
2635   done
2636 IFS=$as_save_IFS
2637
2638 fi
2639 fi
2640 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2641 if test -n "$ac_ct_STRIP"; then
2642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2643 $as_echo "$ac_ct_STRIP" >&6; }
2644 else
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2647 fi
2648
2649   if test "x$ac_ct_STRIP" = x; then
2650     STRIP=":"
2651   else
2652     case $cross_compiling:$ac_tool_warned in
2653 yes:)
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2656 ac_tool_warned=yes ;;
2657 esac
2658     STRIP=$ac_ct_STRIP
2659   fi
2660 else
2661   STRIP="$ac_cv_prog_STRIP"
2662 fi
2663
2664 fi
2665 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2666
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2668 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2669 if test -z "$MKDIR_P"; then
2670   if ${ac_cv_path_mkdir+:} false; then :
2671   $as_echo_n "(cached) " >&6
2672 else
2673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2675 do
2676   IFS=$as_save_IFS
2677   test -z "$as_dir" && as_dir=.
2678     for ac_prog in mkdir gmkdir; do
2679          for ac_exec_ext in '' $ac_executable_extensions; do
2680            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2681            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2682              'mkdir (GNU coreutils) '* | \
2683              'mkdir (coreutils) '* | \
2684              'mkdir (fileutils) '4.1*)
2685                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2686                break 3;;
2687            esac
2688          done
2689        done
2690   done
2691 IFS=$as_save_IFS
2692
2693 fi
2694
2695   test -d ./--version && rmdir ./--version
2696   if test "${ac_cv_path_mkdir+set}" = set; then
2697     MKDIR_P="$ac_cv_path_mkdir -p"
2698   else
2699     # As a last resort, use the slow shell script.  Don't cache a
2700     # value for MKDIR_P within a source directory, because that will
2701     # break other packages using the cache if that directory is
2702     # removed, or if the value is a relative name.
2703     MKDIR_P="$ac_install_sh -d"
2704   fi
2705 fi
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2707 $as_echo "$MKDIR_P" >&6; }
2708
2709 mkdir_p="$MKDIR_P"
2710 case $mkdir_p in
2711   [\\/$]* | ?:[\\/]*) ;;
2712   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2713 esac
2714
2715 for ac_prog in gawk mawk nawk awk
2716 do
2717   # Extract the first word of "$ac_prog", so it can be a program name with args.
2718 set dummy $ac_prog; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_AWK+:} false; then :
2722   $as_echo_n "(cached) " >&6
2723 else
2724   if test -n "$AWK"; then
2725   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730   IFS=$as_save_IFS
2731   test -z "$as_dir" && as_dir=.
2732     for ac_exec_ext in '' $ac_executable_extensions; do
2733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734     ac_cv_prog_AWK="$ac_prog"
2735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736     break 2
2737   fi
2738 done
2739   done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 AWK=$ac_cv_prog_AWK
2745 if test -n "$AWK"; then
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2747 $as_echo "$AWK" >&6; }
2748 else
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753
2754   test -n "$AWK" && break
2755 done
2756
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2758 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2759 set x ${MAKE-make}
2760 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2761 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2762   $as_echo_n "(cached) " >&6
2763 else
2764   cat >conftest.make <<\_ACEOF
2765 SHELL = /bin/sh
2766 all:
2767         @echo '@@@%%%=$(MAKE)=@@@%%%'
2768 _ACEOF
2769 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2770 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2771   *@@@%%%=?*=@@@%%%*)
2772     eval ac_cv_prog_make_${ac_make}_set=yes;;
2773   *)
2774     eval ac_cv_prog_make_${ac_make}_set=no;;
2775 esac
2776 rm -f conftest.make
2777 fi
2778 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2780 $as_echo "yes" >&6; }
2781   SET_MAKE=
2782 else
2783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785   SET_MAKE="MAKE=${MAKE-make}"
2786 fi
2787
2788 rm -rf .tst 2>/dev/null
2789 mkdir .tst 2>/dev/null
2790 if test -d .tst; then
2791   am__leading_dot=.
2792 else
2793   am__leading_dot=_
2794 fi
2795 rmdir .tst 2>/dev/null
2796
2797 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2798   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2799   # is not polluted with repeated "-I."
2800   am__isrc=' -I$(srcdir)'
2801   # test to see if srcdir already configured
2802   if test -f $srcdir/config.status; then
2803     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2804   fi
2805 fi
2806
2807 # test whether we have cygpath
2808 if test -z "$CYGPATH_W"; then
2809   if (cygpath --version) >/dev/null 2>/dev/null; then
2810     CYGPATH_W='cygpath -w'
2811   else
2812     CYGPATH_W=echo
2813   fi
2814 fi
2815
2816
2817 # Define the identity of the package.
2818  PACKAGE='libdrm'
2819  VERSION='2.4.39'
2820
2821
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE "$PACKAGE"
2824 _ACEOF
2825
2826
2827 cat >>confdefs.h <<_ACEOF
2828 #define VERSION "$VERSION"
2829 _ACEOF
2830
2831 # Some tools Automake needs.
2832
2833 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2834
2835
2836 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2837
2838
2839 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2840
2841
2842 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2843
2844
2845 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2846
2847 # We need awk for the "check" target.  The system "awk" is bad on
2848 # some platforms.
2849 # Always define AMTAR for backward compatibility.  Yes, it's still used
2850 # in the wild :-(  We should find a proper way to deprecate it ...
2851 AMTAR='$${TAR-tar}'
2852
2853 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2854
2855
2856
2857
2858
2859
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2861 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2862     # Check whether --enable-maintainer-mode was given.
2863 if test "${enable_maintainer_mode+set}" = set; then :
2864   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2865 else
2866   USE_MAINTAINER_MODE=yes
2867 fi
2868
2869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2870 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2871    if test $USE_MAINTAINER_MODE = yes; then
2872   MAINTAINER_MODE_TRUE=
2873   MAINTAINER_MODE_FALSE='#'
2874 else
2875   MAINTAINER_MODE_TRUE='#'
2876   MAINTAINER_MODE_FALSE=
2877 fi
2878
2879   MAINT=$MAINTAINER_MODE_TRUE
2880
2881
2882
2883 # Enable quiet compiles on automake 1.11.
2884 # Check whether --enable-silent-rules was given.
2885 if test "${enable_silent_rules+set}" = set; then :
2886   enableval=$enable_silent_rules;
2887 fi
2888
2889 case $enable_silent_rules in
2890 yes) AM_DEFAULT_VERBOSITY=0;;
2891 no)  AM_DEFAULT_VERBOSITY=1;;
2892 *)   AM_DEFAULT_VERBOSITY=0;;
2893 esac
2894 am_make=${MAKE-make}
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2896 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2897 if ${am_cv_make_support_nested_variables+:} false; then :
2898   $as_echo_n "(cached) " >&6
2899 else
2900   if $as_echo 'TRUE=$(BAR$(V))
2901 BAR0=false
2902 BAR1=true
2903 V=1
2904 am__doit:
2905         @$(TRUE)
2906 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2907   am_cv_make_support_nested_variables=yes
2908 else
2909   am_cv_make_support_nested_variables=no
2910 fi
2911 fi
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2913 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2914 if test $am_cv_make_support_nested_variables = yes; then
2915     AM_V='$(V)'
2916   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2917 else
2918   AM_V=$AM_DEFAULT_VERBOSITY
2919   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2920 fi
2921 AM_BACKSLASH='\'
2922
2923
2924 # Check for programs
2925 ac_ext=c
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 if test -n "$ac_tool_prefix"; then
2931   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_CC+:} false; then :
2936   $as_echo_n "(cached) " >&6
2937 else
2938   if test -n "$CC"; then
2939   ac_cv_prog_CC="$CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944   IFS=$as_save_IFS
2945   test -z "$as_dir" && as_dir=.
2946     for ac_exec_ext in '' $ac_executable_extensions; do
2947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950     break 2
2951   fi
2952 done
2953   done
2954 IFS=$as_save_IFS
2955
2956 fi
2957 fi
2958 CC=$ac_cv_prog_CC
2959 if test -n "$CC"; then
2960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2962 else
2963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967
2968 fi
2969 if test -z "$ac_cv_prog_CC"; then
2970   ac_ct_CC=$CC
2971   # Extract the first word of "gcc", so it can be a program name with args.
2972 set dummy gcc; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2976   $as_echo_n "(cached) " >&6
2977 else
2978   if test -n "$ac_ct_CC"; then
2979   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2983 do
2984   IFS=$as_save_IFS
2985   test -z "$as_dir" && as_dir=.
2986     for ac_exec_ext in '' $ac_executable_extensions; do
2987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988     ac_cv_prog_ac_ct_CC="gcc"
2989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990     break 2
2991   fi
2992 done
2993   done
2994 IFS=$as_save_IFS
2995
2996 fi
2997 fi
2998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999 if test -n "$ac_ct_CC"; then
3000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3001 $as_echo "$ac_ct_CC" >&6; }
3002 else
3003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3005 fi
3006
3007   if test "x$ac_ct_CC" = x; then
3008     CC=""
3009   else
3010     case $cross_compiling:$ac_tool_warned in
3011 yes:)
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3015 esac
3016     CC=$ac_ct_CC
3017   fi
3018 else
3019   CC="$ac_cv_prog_CC"
3020 fi
3021
3022 if test -z "$CC"; then
3023           if test -n "$ac_tool_prefix"; then
3024     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3025 set dummy ${ac_tool_prefix}cc; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_CC+:} false; then :
3029   $as_echo_n "(cached) " >&6
3030 else
3031   if test -n "$CC"; then
3032   ac_cv_prog_CC="$CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037   IFS=$as_save_IFS
3038   test -z "$as_dir" && as_dir=.
3039     for ac_exec_ext in '' $ac_executable_extensions; do
3040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3041     ac_cv_prog_CC="${ac_tool_prefix}cc"
3042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043     break 2
3044   fi
3045 done
3046   done
3047 IFS=$as_save_IFS
3048
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 fi
3063 if test -z "$CC"; then
3064   # Extract the first word of "cc", so it can be a program name with args.
3065 set dummy cc; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if ${ac_cv_prog_CC+:} false; then :
3069   $as_echo_n "(cached) " >&6
3070 else
3071   if test -n "$CC"; then
3072   ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074   ac_prog_rejected=no
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080     for ac_exec_ext in '' $ac_executable_extensions; do
3081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3083        ac_prog_rejected=yes
3084        continue
3085      fi
3086     ac_cv_prog_CC="cc"
3087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088     break 2
3089   fi
3090 done
3091   done
3092 IFS=$as_save_IFS
3093
3094 if test $ac_prog_rejected = yes; then
3095   # We found a bogon in the path, so make sure we never use it.
3096   set dummy $ac_cv_prog_CC
3097   shift
3098   if test $# != 0; then
3099     # We chose a different compiler from the bogus one.
3100     # However, it has the same basename, so the bogon will be chosen
3101     # first if we set CC to just the basename; use the full file name.
3102     shift
3103     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3104   fi
3105 fi
3106 fi
3107 fi
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3112 else
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 fi
3119 if test -z "$CC"; then
3120   if test -n "$ac_tool_prefix"; then
3121   for ac_prog in cl.exe
3122   do
3123     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_CC+:} false; then :
3128   $as_echo_n "(cached) " >&6
3129 else
3130   if test -n "$CC"; then
3131   ac_cv_prog_CC="$CC" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136   IFS=$as_save_IFS
3137   test -z "$as_dir" && as_dir=.
3138     for ac_exec_ext in '' $ac_executable_extensions; do
3139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3140     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142     break 2
3143   fi
3144 done
3145   done
3146 IFS=$as_save_IFS
3147
3148 fi
3149 fi
3150 CC=$ac_cv_prog_CC
3151 if test -n "$CC"; then
3152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3153 $as_echo "$CC" >&6; }
3154 else
3155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 fi
3158
3159
3160     test -n "$CC" && break
3161   done
3162 fi
3163 if test -z "$CC"; then
3164   ac_ct_CC=$CC
3165   for ac_prog in cl.exe
3166 do
3167   # Extract the first word of "$ac_prog", so it can be a program name with args.
3168 set dummy $ac_prog; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3172   $as_echo_n "(cached) " >&6
3173 else
3174   if test -n "$ac_ct_CC"; then
3175   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3179 do
3180   IFS=$as_save_IFS
3181   test -z "$as_dir" && as_dir=.
3182     for ac_exec_ext in '' $ac_executable_extensions; do
3183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184     ac_cv_prog_ac_ct_CC="$ac_prog"
3185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186     break 2
3187   fi
3188 done
3189   done
3190 IFS=$as_save_IFS
3191
3192 fi
3193 fi
3194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3195 if test -n "$ac_ct_CC"; then
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3197 $as_echo "$ac_ct_CC" >&6; }
3198 else
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203
3204   test -n "$ac_ct_CC" && break
3205 done
3206
3207   if test "x$ac_ct_CC" = x; then
3208     CC=""
3209   else
3210     case $cross_compiling:$ac_tool_warned in
3211 yes:)
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214 ac_tool_warned=yes ;;
3215 esac
3216     CC=$ac_ct_CC
3217   fi
3218 fi
3219
3220 fi
3221
3222
3223 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 as_fn_error $? "no acceptable C compiler found in \$PATH
3226 See \`config.log' for more details" "$LINENO" 5; }
3227
3228 # Provide some information about the compiler.
3229 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3230 set X $ac_compile
3231 ac_compiler=$2
3232 for ac_option in --version -v -V -qversion; do
3233   { { ac_try="$ac_compiler $ac_option >&5"
3234 case "(($ac_try" in
3235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236   *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 $as_echo "$ac_try_echo"; } >&5
3240   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3241   ac_status=$?
3242   if test -s conftest.err; then
3243     sed '10a\
3244 ... rest of stderr output deleted ...
3245          10q' conftest.err >conftest.er1
3246     cat conftest.er1 >&5
3247   fi
3248   rm -f conftest.er1 conftest.err
3249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250   test $ac_status = 0; }
3251 done
3252
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h.  */
3255
3256 int
3257 main ()
3258 {
3259
3260   ;
3261   return 0;
3262 }
3263 _ACEOF
3264 ac_clean_files_save=$ac_clean_files
3265 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3266 # Try to create an executable without -o first, disregard a.out.
3267 # It will help us diagnose broken compilers, and finding out an intuition
3268 # of exeext.
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3270 $as_echo_n "checking whether the C compiler works... " >&6; }
3271 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3272
3273 # The possible output files:
3274 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3275
3276 ac_rmfiles=
3277 for ac_file in $ac_files
3278 do
3279   case $ac_file in
3280     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3281     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3282   esac
3283 done
3284 rm -f $ac_rmfiles
3285
3286 if { { ac_try="$ac_link_default"
3287 case "(($ac_try" in
3288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289   *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293   (eval "$ac_link_default") 2>&5
3294   ac_status=$?
3295   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296   test $ac_status = 0; }; then :
3297   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3298 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3299 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3300 # so that the user can short-circuit this test for compilers unknown to
3301 # Autoconf.
3302 for ac_file in $ac_files ''
3303 do
3304   test -f "$ac_file" || continue
3305   case $ac_file in
3306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3307         ;;
3308     [ab].out )
3309         # We found the default executable, but exeext='' is most
3310         # certainly right.
3311         break;;
3312     *.* )
3313         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3314         then :; else
3315            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3316         fi
3317         # We set ac_cv_exeext here because the later test for it is not
3318         # safe: cross compilers may not add the suffix if given an `-o'
3319         # argument, so we may need to know it at that point already.
3320         # Even if this section looks crufty: it has the advantage of
3321         # actually working.
3322         break;;
3323     * )
3324         break;;
3325   esac
3326 done
3327 test "$ac_cv_exeext" = no && ac_cv_exeext=
3328
3329 else
3330   ac_file=''
3331 fi
3332 if test -z "$ac_file"; then :
3333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 $as_echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error 77 "C compiler cannot create executables
3341 See \`config.log' for more details" "$LINENO" 5; }
3342 else
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3344 $as_echo "yes" >&6; }
3345 fi
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3347 $as_echo_n "checking for C compiler default output file name... " >&6; }
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3349 $as_echo "$ac_file" >&6; }
3350 ac_exeext=$ac_cv_exeext
3351
3352 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3353 ac_clean_files=$ac_clean_files_save
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3355 $as_echo_n "checking for suffix of executables... " >&6; }
3356 if { { ac_try="$ac_link"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363   (eval "$ac_link") 2>&5
3364   ac_status=$?
3365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366   test $ac_status = 0; }; then :
3367   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3368 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3369 # work properly (i.e., refer to `conftest.exe'), while it won't with
3370 # `rm'.
3371 for ac_file in conftest.exe conftest conftest.*; do
3372   test -f "$ac_file" || continue
3373   case $ac_file in
3374     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3375     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3376           break;;
3377     * ) break;;
3378   esac
3379 done
3380 else
3381   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3384 See \`config.log' for more details" "$LINENO" 5; }
3385 fi
3386 rm -f conftest conftest$ac_cv_exeext
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3388 $as_echo "$ac_cv_exeext" >&6; }
3389
3390 rm -f conftest.$ac_ext
3391 EXEEXT=$ac_cv_exeext
3392 ac_exeext=$EXEEXT
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h.  */
3395 #include <stdio.h>
3396 int
3397 main ()
3398 {
3399 FILE *f = fopen ("conftest.out", "w");
3400  return ferror (f) || fclose (f) != 0;
3401
3402   ;
3403   return 0;
3404 }
3405 _ACEOF
3406 ac_clean_files="$ac_clean_files conftest.out"
3407 # Check that the compiler produces executables we can run.  If not, either
3408 # the compiler is broken, or we cross compile.
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3410 $as_echo_n "checking whether we are cross compiling... " >&6; }
3411 if test "$cross_compiling" != yes; then
3412   { { ac_try="$ac_link"
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_link") 2>&5
3420   ac_status=$?
3421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422   test $ac_status = 0; }
3423   if { ac_try='./conftest$ac_cv_exeext'
3424   { { case "(($ac_try" in
3425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426   *) ac_try_echo=$ac_try;;
3427 esac
3428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429 $as_echo "$ac_try_echo"; } >&5
3430   (eval "$ac_try") 2>&5
3431   ac_status=$?
3432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433   test $ac_status = 0; }; }; then
3434     cross_compiling=no
3435   else
3436     if test "$cross_compiling" = maybe; then
3437         cross_compiling=yes
3438     else
3439         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441 as_fn_error $? "cannot run C compiled programs.
3442 If you meant to cross compile, use \`--host'.
3443 See \`config.log' for more details" "$LINENO" 5; }
3444     fi
3445   fi
3446 fi
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3448 $as_echo "$cross_compiling" >&6; }
3449
3450 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3451 ac_clean_files=$ac_clean_files_save
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3453 $as_echo_n "checking for suffix of object files... " >&6; }
3454 if ${ac_cv_objext+:} false; then :
3455   $as_echo_n "(cached) " >&6
3456 else
3457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h.  */
3459
3460 int
3461 main ()
3462 {
3463
3464   ;
3465   return 0;
3466 }
3467 _ACEOF
3468 rm -f conftest.o conftest.obj
3469 if { { ac_try="$ac_compile"
3470 case "(($ac_try" in
3471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472   *) ac_try_echo=$ac_try;;
3473 esac
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476   (eval "$ac_compile") 2>&5
3477   ac_status=$?
3478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479   test $ac_status = 0; }; then :
3480   for ac_file in conftest.o conftest.obj conftest.*; do
3481   test -f "$ac_file" || continue;
3482   case $ac_file in
3483     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3484     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3485        break;;
3486   esac
3487 done
3488 else
3489   $as_echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 as_fn_error $? "cannot compute suffix of object files: cannot compile
3495 See \`config.log' for more details" "$LINENO" 5; }
3496 fi
3497 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3498 fi
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3500 $as_echo "$ac_cv_objext" >&6; }
3501 OBJEXT=$ac_cv_objext
3502 ac_objext=$OBJEXT
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3504 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3505 if ${ac_cv_c_compiler_gnu+:} false; then :
3506   $as_echo_n "(cached) " >&6
3507 else
3508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h.  */
3510
3511 int
3512 main ()
3513 {
3514 #ifndef __GNUC__
3515        choke me
3516 #endif
3517
3518   ;
3519   return 0;
3520 }
3521 _ACEOF
3522 if ac_fn_c_try_compile "$LINENO"; then :
3523   ac_compiler_gnu=yes
3524 else
3525   ac_compiler_gnu=no
3526 fi
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3529
3530 fi
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3532 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3533 if test $ac_compiler_gnu = yes; then
3534   GCC=yes
3535 else
3536   GCC=
3537 fi
3538 ac_test_CFLAGS=${CFLAGS+set}
3539 ac_save_CFLAGS=$CFLAGS
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3541 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3542 if ${ac_cv_prog_cc_g+:} false; then :
3543   $as_echo_n "(cached) " >&6
3544 else
3545   ac_save_c_werror_flag=$ac_c_werror_flag
3546    ac_c_werror_flag=yes
3547    ac_cv_prog_cc_g=no
3548    CFLAGS="-g"
3549    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h.  */
3551
3552 int
3553 main ()
3554 {
3555
3556   ;
3557   return 0;
3558 }
3559 _ACEOF
3560 if ac_fn_c_try_compile "$LINENO"; then :
3561   ac_cv_prog_cc_g=yes
3562 else
3563   CFLAGS=""
3564       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h.  */
3566
3567 int
3568 main ()
3569 {
3570
3571   ;
3572   return 0;
3573 }
3574 _ACEOF
3575 if ac_fn_c_try_compile "$LINENO"; then :
3576
3577 else
3578   ac_c_werror_flag=$ac_save_c_werror_flag
3579          CFLAGS="-g"
3580          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h.  */
3582
3583 int
3584 main ()
3585 {
3586
3587   ;
3588   return 0;
3589 }
3590 _ACEOF
3591 if ac_fn_c_try_compile "$LINENO"; then :
3592   ac_cv_prog_cc_g=yes
3593 fi
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 fi
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599    ac_c_werror_flag=$ac_save_c_werror_flag
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3602 $as_echo "$ac_cv_prog_cc_g" >&6; }
3603 if test "$ac_test_CFLAGS" = set; then
3604   CFLAGS=$ac_save_CFLAGS
3605 elif test $ac_cv_prog_cc_g = yes; then
3606   if test "$GCC" = yes; then
3607     CFLAGS="-g -O2"
3608   else
3609     CFLAGS="-g"
3610   fi
3611 else
3612   if test "$GCC" = yes; then
3613     CFLAGS="-O2"
3614   else
3615     CFLAGS=
3616   fi
3617 fi
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3619 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3620 if ${ac_cv_prog_cc_c89+:} false; then :
3621   $as_echo_n "(cached) " >&6
3622 else
3623   ac_cv_prog_cc_c89=no
3624 ac_save_CC=$CC
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h.  */
3627 #include <stdarg.h>
3628 #include <stdio.h>
3629 #include <sys/types.h>
3630 #include <sys/stat.h>
3631 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3632 struct buf { int x; };
3633 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3634 static char *e (p, i)
3635      char **p;
3636      int i;
3637 {
3638   return p[i];
3639 }
3640 static char *f (char * (*g) (char **, int), char **p, ...)
3641 {
3642   char *s;
3643   va_list v;
3644   va_start (v,p);
3645   s = g (p, va_arg (v,int));
3646   va_end (v);
3647   return s;
3648 }
3649
3650 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3651    function prototypes and stuff, but not '\xHH' hex character constants.
3652    These don't provoke an error unfortunately, instead are silently treated
3653    as 'x'.  The following induces an error, until -std is added to get
3654    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3655    array size at least.  It's necessary to write '\x00'==0 to get something
3656    that's true only with -std.  */
3657 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3658
3659 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3660    inside strings and character constants.  */
3661 #define FOO(x) 'x'
3662 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3663
3664 int test (int i, double x);
3665 struct s1 {int (*f) (int a);};
3666 struct s2 {int (*f) (double a);};
3667 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3668 int argc;
3669 char **argv;
3670 int
3671 main ()
3672 {
3673 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3674   ;
3675   return 0;
3676 }
3677 _ACEOF
3678 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3679         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3680 do
3681   CC="$ac_save_CC $ac_arg"
3682   if ac_fn_c_try_compile "$LINENO"; then :
3683   ac_cv_prog_cc_c89=$ac_arg
3684 fi
3685 rm -f core conftest.err conftest.$ac_objext
3686   test "x$ac_cv_prog_cc_c89" != "xno" && break
3687 done
3688 rm -f conftest.$ac_ext
3689 CC=$ac_save_CC
3690
3691 fi
3692 # AC_CACHE_VAL
3693 case "x$ac_cv_prog_cc_c89" in
3694   x)
3695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3696 $as_echo "none needed" >&6; } ;;
3697   xno)
3698     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3699 $as_echo "unsupported" >&6; } ;;
3700   *)
3701     CC="$CC $ac_cv_prog_cc_c89"
3702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3703 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3704 esac
3705 if test "x$ac_cv_prog_cc_c89" != xno; then :
3706
3707 fi
3708
3709 ac_ext=c
3710 ac_cpp='$CPP $CPPFLAGS'
3711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 DEPDIR="${am__leading_dot}deps"
3715
3716 ac_config_commands="$ac_config_commands depfiles"
3717
3718
3719 am_make=${MAKE-make}
3720 cat > confinc << 'END'
3721 am__doit:
3722         @echo this is the am__doit target
3723 .PHONY: am__doit
3724 END
3725 # If we don't find an include directive, just comment out the code.
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3727 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3728 am__include="#"
3729 am__quote=
3730 _am_result=none
3731 # First try GNU make style include.
3732 echo "include confinc" > confmf
3733 # Ignore all kinds of additional output from `make'.
3734 case `$am_make -s -f confmf 2> /dev/null` in #(
3735 *the\ am__doit\ target*)
3736   am__include=include
3737   am__quote=
3738   _am_result=GNU
3739   ;;
3740 esac
3741 # Now try BSD make style include.
3742 if test "$am__include" = "#"; then
3743    echo '.include "confinc"' > confmf
3744    case `$am_make -s -f confmf 2> /dev/null` in #(
3745    *the\ am__doit\ target*)
3746      am__include=.include
3747      am__quote="\""
3748      _am_result=BSD
3749      ;;
3750    esac
3751 fi
3752
3753
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3755 $as_echo "$_am_result" >&6; }
3756 rm -f confinc confmf
3757
3758 # Check whether --enable-dependency-tracking was given.
3759 if test "${enable_dependency_tracking+set}" = set; then :
3760   enableval=$enable_dependency_tracking;
3761 fi
3762
3763 if test "x$enable_dependency_tracking" != xno; then
3764   am_depcomp="$ac_aux_dir/depcomp"
3765   AMDEPBACKSLASH='\'
3766   am__nodep='_no'
3767 fi
3768  if test "x$enable_dependency_tracking" != xno; then
3769   AMDEP_TRUE=
3770   AMDEP_FALSE='#'
3771 else
3772   AMDEP_TRUE='#'
3773   AMDEP_FALSE=
3774 fi
3775
3776
3777
3778 depcc="$CC"   am_compiler_list=
3779
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3781 $as_echo_n "checking dependency style of $depcc... " >&6; }
3782 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3786   # We make a subdir and do the tests there.  Otherwise we can end up
3787   # making bogus files that we don't know about and never remove.  For
3788   # instance it was reported that on HP-UX the gcc test will end up
3789   # making a dummy file named `D' -- because `-MD' means `put the output
3790   # in D'.
3791   rm -rf conftest.dir
3792   mkdir conftest.dir
3793   # Copy depcomp to subdir because otherwise we won't find it if we're
3794   # using a relative directory.
3795   cp "$am_depcomp" conftest.dir
3796   cd conftest.dir
3797   # We will build objects and dependencies in a subdirectory because
3798   # it helps to detect inapplicable dependency modes.  For instance
3799   # both Tru64's cc and ICC support -MD to output dependencies as a
3800   # side effect of compilation, but ICC will put the dependencies in
3801   # the current directory while Tru64 will put them in the object
3802   # directory.
3803   mkdir sub
3804
3805   am_cv_CC_dependencies_compiler_type=none
3806   if test "$am_compiler_list" = ""; then
3807      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3808   fi
3809   am__universal=false
3810   case " $depcc " in #(
3811      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3812      esac
3813
3814   for depmode in $am_compiler_list; do
3815     # Setup a source with many dependencies, because some compilers
3816     # like to wrap large dependency lists on column 80 (with \), and
3817     # we should not choose a depcomp mode which is confused by this.
3818     #
3819     # We need to recreate these files for each test, as the compiler may
3820     # overwrite some of them when testing with obscure command lines.
3821     # This happens at least with the AIX C compiler.
3822     : > sub/conftest.c
3823     for i in 1 2 3 4 5 6; do
3824       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3825       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3826       # Solaris 8's {/usr,}/bin/sh.
3827       touch sub/conftst$i.h
3828     done
3829     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3830
3831     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3832     # mode.  It turns out that the SunPro C++ compiler does not properly
3833     # handle `-M -o', and we need to detect this.  Also, some Intel
3834     # versions had trouble with output in subdirs
3835     am__obj=sub/conftest.${OBJEXT-o}
3836     am__minus_obj="-o $am__obj"
3837     case $depmode in
3838     gcc)
3839       # This depmode causes a compiler race in universal mode.
3840       test "$am__universal" = false || continue
3841       ;;
3842     nosideeffect)
3843       # after this tag, mechanisms are not by side-effect, so they'll
3844       # only be used when explicitly requested
3845       if test "x$enable_dependency_tracking" = xyes; then
3846         continue
3847       else
3848         break
3849       fi
3850       ;;
3851     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3852       # This compiler won't grok `-c -o', but also, the minuso test has
3853       # not run yet.  These depmodes are late enough in the game, and
3854       # so weak that their functioning should not be impacted.
3855       am__obj=conftest.${OBJEXT-o}
3856       am__minus_obj=
3857       ;;
3858     none) break ;;
3859     esac
3860     if depmode=$depmode \
3861        source=sub/conftest.c object=$am__obj \
3862        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3863        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3864          >/dev/null 2>conftest.err &&
3865        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3866        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3867        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3868        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3869       # icc doesn't choke on unknown options, it will just issue warnings
3870       # or remarks (even with -Werror).  So we grep stderr for any message
3871       # that says an option was ignored or not supported.
3872       # When given -MP, icc 7.0 and 7.1 complain thusly:
3873       #   icc: Command line warning: ignoring option '-M'; no argument required
3874       # The diagnosis changed in icc 8.0:
3875       #   icc: Command line remark: option '-MP' not supported
3876       if (grep 'ignoring option' conftest.err ||
3877           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3878         am_cv_CC_dependencies_compiler_type=$depmode
3879         break
3880       fi
3881     fi
3882   done
3883
3884   cd ..
3885   rm -rf conftest.dir
3886 else
3887   am_cv_CC_dependencies_compiler_type=none
3888 fi
3889
3890 fi
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3892 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3893 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3894
3895  if
3896   test "x$enable_dependency_tracking" != xno \
3897   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3898   am__fastdepCC_TRUE=
3899   am__fastdepCC_FALSE='#'
3900 else
3901   am__fastdepCC_TRUE='#'
3902   am__fastdepCC_FALSE=
3903 fi
3904
3905
3906
3907
3908 ac_ext=c
3909 ac_cpp='$CPP $CPPFLAGS'
3910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3914 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3915 # On Suns, sometimes $CPP names a directory.
3916 if test -n "$CPP" && test -d "$CPP"; then
3917   CPP=
3918 fi
3919 if test -z "$CPP"; then
3920   if ${ac_cv_prog_CPP+:} false; then :
3921   $as_echo_n "(cached) " >&6
3922 else
3923       # Double quotes because CPP needs to be expanded
3924     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3925     do
3926       ac_preproc_ok=false
3927 for ac_c_preproc_warn_flag in '' yes
3928 do
3929   # Use a header file that comes with gcc, so configuring glibc
3930   # with a fresh cross-compiler works.
3931   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3932   # <limits.h> exists even on freestanding compilers.
3933   # On the NeXT, cc -E runs the code through the compiler's parser,
3934   # not just through cpp. "Syntax error" is here to catch this case.
3935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h.  */
3937 #ifdef __STDC__
3938 # include <limits.h>
3939 #else
3940 # include <assert.h>
3941 #endif
3942                      Syntax error
3943 _ACEOF
3944 if ac_fn_c_try_cpp "$LINENO"; then :
3945
3946 else
3947   # Broken: fails on valid input.
3948 continue
3949 fi
3950 rm -f conftest.err conftest.i conftest.$ac_ext
3951
3952   # OK, works on sane cases.  Now check whether nonexistent headers
3953   # can be detected and how.
3954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h.  */
3956 #include <ac_nonexistent.h>
3957 _ACEOF
3958 if ac_fn_c_try_cpp "$LINENO"; then :
3959   # Broken: success on invalid input.
3960 continue
3961 else
3962   # Passes both tests.
3963 ac_preproc_ok=:
3964 break
3965 fi
3966 rm -f conftest.err conftest.i conftest.$ac_ext
3967
3968 done
3969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3970 rm -f conftest.i conftest.err conftest.$ac_ext
3971 if $ac_preproc_ok; then :
3972   break
3973 fi
3974
3975     done
3976     ac_cv_prog_CPP=$CPP
3977
3978 fi
3979   CPP=$ac_cv_prog_CPP
3980 else
3981   ac_cv_prog_CPP=$CPP
3982 fi
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3984 $as_echo "$CPP" >&6; }
3985 ac_preproc_ok=false
3986 for ac_c_preproc_warn_flag in '' yes
3987 do
3988   # Use a header file that comes with gcc, so configuring glibc
3989   # with a fresh cross-compiler works.
3990   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3991   # <limits.h> exists even on freestanding compilers.
3992   # On the NeXT, cc -E runs the code through the compiler's parser,
3993   # not just through cpp. "Syntax error" is here to catch this case.
3994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h.  */
3996 #ifdef __STDC__
3997 # include <limits.h>
3998 #else
3999 # include <assert.h>
4000 #endif
4001                      Syntax error
4002 _ACEOF
4003 if ac_fn_c_try_cpp "$LINENO"; then :
4004
4005 else
4006   # Broken: fails on valid input.
4007 continue
4008 fi
4009 rm -f conftest.err conftest.i conftest.$ac_ext
4010
4011   # OK, works on sane cases.  Now check whether nonexistent headers
4012   # can be detected and how.
4013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h.  */
4015 #include <ac_nonexistent.h>
4016 _ACEOF
4017 if ac_fn_c_try_cpp "$LINENO"; then :
4018   # Broken: success on invalid input.
4019 continue
4020 else
4021   # Passes both tests.
4022 ac_preproc_ok=:
4023 break
4024 fi
4025 rm -f conftest.err conftest.i conftest.$ac_ext
4026
4027 done
4028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4029 rm -f conftest.i conftest.err conftest.$ac_ext
4030 if $ac_preproc_ok; then :
4031
4032 else
4033   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4035 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4036 See \`config.log' for more details" "$LINENO" 5; }
4037 fi
4038
4039 ac_ext=c
4040 ac_cpp='$CPP $CPPFLAGS'
4041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044
4045
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4047 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4048 if ${ac_cv_path_GREP+:} false; then :
4049   $as_echo_n "(cached) " >&6
4050 else
4051   if test -z "$GREP"; then
4052   ac_path_GREP_found=false
4053   # Loop through the user's path and test for each of PROGNAME-LIST
4054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4056 do
4057   IFS=$as_save_IFS
4058   test -z "$as_dir" && as_dir=.
4059     for ac_prog in grep ggrep; do
4060     for ac_exec_ext in '' $ac_executable_extensions; do
4061       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4062       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4063 # Check for GNU ac_path_GREP and select it if it is found.
4064   # Check for GNU $ac_path_GREP
4065 case `"$ac_path_GREP" --version 2>&1` in
4066 *GNU*)
4067   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4068 *)
4069   ac_count=0
4070   $as_echo_n 0123456789 >"conftest.in"
4071   while :
4072   do
4073     cat "conftest.in" "conftest.in" >"conftest.tmp"
4074     mv "conftest.tmp" "conftest.in"
4075     cp "conftest.in" "conftest.nl"
4076     $as_echo 'GREP' >> "conftest.nl"
4077     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079     as_fn_arith $ac_count + 1 && ac_count=$as_val
4080     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4081       # Best one so far, save it but keep looking for a better one
4082       ac_cv_path_GREP="$ac_path_GREP"
4083       ac_path_GREP_max=$ac_count
4084     fi
4085     # 10*(2^10) chars as input seems more than enough
4086     test $ac_count -gt 10 && break
4087   done
4088   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4089 esac
4090
4091       $ac_path_GREP_found && break 3
4092     done
4093   done
4094   done
4095 IFS=$as_save_IFS
4096   if test -z "$ac_cv_path_GREP"; then
4097     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4098   fi
4099 else
4100   ac_cv_path_GREP=$GREP
4101 fi
4102
4103 fi
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4105 $as_echo "$ac_cv_path_GREP" >&6; }
4106  GREP="$ac_cv_path_GREP"
4107
4108
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4110 $as_echo_n "checking for egrep... " >&6; }
4111 if ${ac_cv_path_EGREP+:} false; then :
4112   $as_echo_n "(cached) " >&6
4113 else
4114   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4115    then ac_cv_path_EGREP="$GREP -E"
4116    else
4117      if test -z "$EGREP"; then
4118   ac_path_EGREP_found=false
4119   # Loop through the user's path and test for each of PROGNAME-LIST
4120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4122 do
4123   IFS=$as_save_IFS
4124   test -z "$as_dir" && as_dir=.
4125     for ac_prog in egrep; do
4126     for ac_exec_ext in '' $ac_executable_extensions; do
4127       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4128       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4129 # Check for GNU ac_path_EGREP and select it if it is found.
4130   # Check for GNU $ac_path_EGREP
4131 case `"$ac_path_EGREP" --version 2>&1` in
4132 *GNU*)
4133   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4134 *)
4135   ac_count=0
4136   $as_echo_n 0123456789 >"conftest.in"
4137   while :
4138   do
4139     cat "conftest.in" "conftest.in" >"conftest.tmp"
4140     mv "conftest.tmp" "conftest.in"
4141     cp "conftest.in" "conftest.nl"
4142     $as_echo 'EGREP' >> "conftest.nl"
4143     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4144     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4145     as_fn_arith $ac_count + 1 && ac_count=$as_val
4146     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4147       # Best one so far, save it but keep looking for a better one
4148       ac_cv_path_EGREP="$ac_path_EGREP"
4149       ac_path_EGREP_max=$ac_count
4150     fi
4151     # 10*(2^10) chars as input seems more than enough
4152     test $ac_count -gt 10 && break
4153   done
4154   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4155 esac
4156
4157       $ac_path_EGREP_found && break 3
4158     done
4159   done
4160   done
4161 IFS=$as_save_IFS
4162   if test -z "$ac_cv_path_EGREP"; then
4163     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4164   fi
4165 else
4166   ac_cv_path_EGREP=$EGREP
4167 fi
4168
4169    fi
4170 fi
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4172 $as_echo "$ac_cv_path_EGREP" >&6; }
4173  EGREP="$ac_cv_path_EGREP"
4174
4175
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4177 $as_echo_n "checking for ANSI C header files... " >&6; }
4178 if ${ac_cv_header_stdc+:} false; then :
4179   $as_echo_n "(cached) " >&6
4180 else
4181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h.  */
4183 #include <stdlib.h>
4184 #include <stdarg.h>
4185 #include <string.h>
4186 #include <float.h>
4187
4188 int
4189 main ()
4190 {
4191
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197   ac_cv_header_stdc=yes
4198 else
4199   ac_cv_header_stdc=no
4200 fi
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202
4203 if test $ac_cv_header_stdc = yes; then
4204   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h.  */
4207 #include <string.h>
4208
4209 _ACEOF
4210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4211   $EGREP "memchr" >/dev/null 2>&1; then :
4212
4213 else
4214   ac_cv_header_stdc=no
4215 fi
4216 rm -f conftest*
4217
4218 fi
4219
4220 if test $ac_cv_header_stdc = yes; then
4221   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h.  */
4224 #include <stdlib.h>
4225
4226 _ACEOF
4227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4228   $EGREP "free" >/dev/null 2>&1; then :
4229
4230 else
4231   ac_cv_header_stdc=no
4232 fi
4233 rm -f conftest*
4234
4235 fi
4236
4237 if test $ac_cv_header_stdc = yes; then
4238   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4239   if test "$cross_compiling" = yes; then :
4240   :
4241 else
4242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h.  */
4244 #include <ctype.h>
4245 #include <stdlib.h>
4246 #if ((' ' & 0x0FF) == 0x020)
4247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4249 #else
4250 # define ISLOWER(c) \
4251                    (('a' <= (c) && (c) <= 'i') \
4252                      || ('j' <= (c) && (c) <= 'r') \
4253                      || ('s' <= (c) && (c) <= 'z'))
4254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4255 #endif
4256
4257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4258 int
4259 main ()
4260 {
4261   int i;
4262   for (i = 0; i < 256; i++)
4263     if (XOR (islower (i), ISLOWER (i))
4264         || toupper (i) != TOUPPER (i))
4265       return 2;
4266   return 0;
4267 }
4268 _ACEOF
4269 if ac_fn_c_try_run "$LINENO"; then :
4270
4271 else
4272   ac_cv_header_stdc=no
4273 fi
4274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4275   conftest.$ac_objext conftest.beam conftest.$ac_ext
4276 fi
4277
4278 fi
4279 fi
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4281 $as_echo "$ac_cv_header_stdc" >&6; }
4282 if test $ac_cv_header_stdc = yes; then
4283
4284 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4285
4286 fi
4287
4288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4289 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4290                   inttypes.h stdint.h unistd.h
4291 do :
4292   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4293 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4294 "
4295 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4296   cat >>confdefs.h <<_ACEOF
4297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4298 _ACEOF
4299
4300 fi
4301
4302 done
4303
4304
4305
4306   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4307 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4308   MINIX=yes
4309 else
4310   MINIX=
4311 fi
4312
4313
4314   if test "$MINIX" = yes; then
4315
4316 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4317
4318
4319 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4320
4321
4322 $as_echo "#define _MINIX 1" >>confdefs.h
4323
4324   fi
4325
4326
4327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4328 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4329 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4330   $as_echo_n "(cached) " >&6
4331 else
4332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h.  */
4334
4335 #         define __EXTENSIONS__ 1
4336           $ac_includes_default
4337 int
4338 main ()
4339 {
4340
4341   ;
4342   return 0;
4343 }
4344 _ACEOF
4345 if ac_fn_c_try_compile "$LINENO"; then :
4346   ac_cv_safe_to_define___extensions__=yes
4347 else
4348   ac_cv_safe_to_define___extensions__=no
4349 fi
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4353 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4354   test $ac_cv_safe_to_define___extensions__ = yes &&
4355     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4356
4357   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4358
4359   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4360
4361   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4362
4363   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4364
4365
4366 # Check whether --enable-largefile was given.
4367 if test "${enable_largefile+set}" = set; then :
4368   enableval=$enable_largefile;
4369 fi
4370
4371 if test "$enable_largefile" != no; then
4372
4373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4374 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4375 if ${ac_cv_sys_largefile_CC+:} false; then :
4376   $as_echo_n "(cached) " >&6
4377 else
4378   ac_cv_sys_largefile_CC=no
4379      if test "$GCC" != yes; then
4380        ac_save_CC=$CC
4381        while :; do
4382          # IRIX 6.2 and later do not support large files by default,
4383          # so use the C compiler's -n32 option if that helps.
4384          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h.  */
4386 #include <sys/types.h>
4387  /* Check that off_t can represent 2**63 - 1 correctly.
4388     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4389     since some C++ compilers masquerading as C compilers
4390     incorrectly reject 9223372036854775807.  */
4391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4392   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4393                        && LARGE_OFF_T % 2147483647 == 1)
4394                       ? 1 : -1];
4395 int
4396 main ()
4397 {
4398
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
4403          if ac_fn_c_try_compile "$LINENO"; then :
4404   break
4405 fi
4406 rm -f core conftest.err conftest.$ac_objext
4407          CC="$CC -n32"
4408          if ac_fn_c_try_compile "$LINENO"; then :
4409   ac_cv_sys_largefile_CC=' -n32'; break
4410 fi
4411 rm -f core conftest.err conftest.$ac_objext
4412          break
4413        done
4414        CC=$ac_save_CC
4415        rm -f conftest.$ac_ext
4416     fi
4417 fi
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4419 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4420   if test "$ac_cv_sys_largefile_CC" != no; then
4421     CC=$CC$ac_cv_sys_largefile_CC
4422   fi
4423
4424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4425 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4426 if ${ac_cv_sys_file_offset_bits+:} false; then :
4427   $as_echo_n "(cached) " >&6
4428 else
4429   while :; do
4430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h.  */
4432 #include <sys/types.h>
4433  /* Check that off_t can represent 2**63 - 1 correctly.
4434     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4435     since some C++ compilers masquerading as C compilers
4436     incorrectly reject 9223372036854775807.  */
4437 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4438   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4439                        && LARGE_OFF_T % 2147483647 == 1)
4440                       ? 1 : -1];
4441 int
4442 main ()
4443 {
4444
4445   ;
4446   return 0;
4447 }
4448 _ACEOF
4449 if ac_fn_c_try_compile "$LINENO"; then :
4450   ac_cv_sys_file_offset_bits=no; break
4451 fi
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h.  */
4455 #define _FILE_OFFSET_BITS 64
4456 #include <sys/types.h>
4457  /* Check that off_t can represent 2**63 - 1 correctly.
4458     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4459     since some C++ compilers masquerading as C compilers
4460     incorrectly reject 9223372036854775807.  */
4461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4462   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4463                        && LARGE_OFF_T % 2147483647 == 1)
4464                       ? 1 : -1];
4465 int
4466 main ()
4467 {
4468
4469   ;
4470   return 0;
4471 }
4472 _ACEOF
4473 if ac_fn_c_try_compile "$LINENO"; then :
4474   ac_cv_sys_file_offset_bits=64; break
4475 fi
4476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477   ac_cv_sys_file_offset_bits=unknown
4478   break
4479 done
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4482 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4483 case $ac_cv_sys_file_offset_bits in #(
4484   no | unknown) ;;
4485   *)
4486 cat >>confdefs.h <<_ACEOF
4487 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4488 _ACEOF
4489 ;;
4490 esac
4491 rm -rf conftest*
4492   if test $ac_cv_sys_file_offset_bits = unknown; then
4493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4494 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4495 if ${ac_cv_sys_large_files+:} false; then :
4496   $as_echo_n "(cached) " >&6
4497 else
4498   while :; do
4499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h.  */
4501 #include <sys/types.h>
4502  /* Check that off_t can represent 2**63 - 1 correctly.
4503     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4504     since some C++ compilers masquerading as C compilers
4505     incorrectly reject 9223372036854775807.  */
4506 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4507   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4508                        && LARGE_OFF_T % 2147483647 == 1)
4509                       ? 1 : -1];
4510 int
4511 main ()
4512 {
4513
4514   ;
4515   return 0;
4516 }
4517 _ACEOF
4518 if ac_fn_c_try_compile "$LINENO"; then :
4519   ac_cv_sys_large_files=no; break
4520 fi
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h.  */
4524 #define _LARGE_FILES 1
4525 #include <sys/types.h>
4526  /* Check that off_t can represent 2**63 - 1 correctly.
4527     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4528     since some C++ compilers masquerading as C compilers
4529     incorrectly reject 9223372036854775807.  */
4530 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4531   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4532                        && LARGE_OFF_T % 2147483647 == 1)
4533                       ? 1 : -1];
4534 int
4535 main ()
4536 {
4537
4538   ;
4539   return 0;
4540 }
4541 _ACEOF
4542 if ac_fn_c_try_compile "$LINENO"; then :
4543   ac_cv_sys_large_files=1; break
4544 fi
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546   ac_cv_sys_large_files=unknown
4547   break
4548 done
4549 fi
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4551 $as_echo "$ac_cv_sys_large_files" >&6; }
4552 case $ac_cv_sys_large_files in #(
4553   no | unknown) ;;
4554   *)
4555 cat >>confdefs.h <<_ACEOF
4556 #define _LARGE_FILES $ac_cv_sys_large_files
4557 _ACEOF
4558 ;;
4559 esac
4560 rm -rf conftest*
4561   fi
4562 fi
4563
4564 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4565 if test "x$ac_cv_type_size_t" = xyes; then :
4566
4567 else
4568
4569 cat >>confdefs.h <<_ACEOF
4570 #define size_t unsigned int
4571 _ACEOF
4572
4573 fi
4574
4575 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4576 # for constant arguments.  Useless!
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4578 $as_echo_n "checking for working alloca.h... " >&6; }
4579 if ${ac_cv_working_alloca_h+:} false; then :
4580   $as_echo_n "(cached) " >&6
4581 else
4582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h.  */
4584 #include <alloca.h>
4585 int
4586 main ()
4587 {
4588 char *p = (char *) alloca (2 * sizeof (int));
4589                           if (p) return 0;
4590   ;
4591   return 0;
4592 }
4593 _ACEOF
4594 if ac_fn_c_try_link "$LINENO"; then :
4595   ac_cv_working_alloca_h=yes
4596 else
4597   ac_cv_working_alloca_h=no
4598 fi
4599 rm -f core conftest.err conftest.$ac_objext \
4600     conftest$ac_exeext conftest.$ac_ext
4601 fi
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4603 $as_echo "$ac_cv_working_alloca_h" >&6; }
4604 if test $ac_cv_working_alloca_h = yes; then
4605
4606 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4607
4608 fi
4609
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4611 $as_echo_n "checking for alloca... " >&6; }
4612 if ${ac_cv_func_alloca_works+:} false; then :
4613   $as_echo_n "(cached) " >&6
4614 else
4615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h.  */
4617 #ifdef __GNUC__
4618 # define alloca __builtin_alloca
4619 #else
4620 # ifdef _MSC_VER
4621 #  include <malloc.h>
4622 #  define alloca _alloca
4623 # else
4624 #  ifdef HAVE_ALLOCA_H
4625 #   include <alloca.h>
4626 #  else
4627 #   ifdef _AIX
4628  #pragma alloca
4629 #   else
4630 #    ifndef alloca /* predefined by HP cc +Olibcalls */
4631 void *alloca (size_t);
4632 #    endif
4633 #   endif
4634 #  endif
4635 # endif
4636 #endif
4637
4638 int
4639 main ()
4640 {
4641 char *p = (char *) alloca (1);
4642                                     if (p) return 0;
4643   ;
4644   return 0;
4645 }
4646 _ACEOF
4647 if ac_fn_c_try_link "$LINENO"; then :
4648   ac_cv_func_alloca_works=yes
4649 else
4650   ac_cv_func_alloca_works=no
4651 fi
4652 rm -f core conftest.err conftest.$ac_objext \
4653     conftest$ac_exeext conftest.$ac_ext
4654 fi
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4656 $as_echo "$ac_cv_func_alloca_works" >&6; }
4657
4658 if test $ac_cv_func_alloca_works = yes; then
4659
4660 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4661
4662 else
4663   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4664 # that cause trouble.  Some versions do not even contain alloca or
4665 # contain a buggy version.  If you still want to use their alloca,
4666 # use ar to extract alloca.o from them instead of compiling alloca.c.
4667
4668 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4669
4670 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4671
4672
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4674 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4675 if ${ac_cv_os_cray+:} false; then :
4676   $as_echo_n "(cached) " >&6
4677 else
4678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h.  */
4680 #if defined CRAY && ! defined CRAY2
4681 webecray
4682 #else
4683 wenotbecray
4684 #endif
4685
4686 _ACEOF
4687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4688   $EGREP "webecray" >/dev/null 2>&1; then :
4689   ac_cv_os_cray=yes
4690 else
4691   ac_cv_os_cray=no
4692 fi
4693 rm -f conftest*
4694
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4697 $as_echo "$ac_cv_os_cray" >&6; }
4698 if test $ac_cv_os_cray = yes; then
4699   for ac_func in _getb67 GETB67 getb67; do
4700     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4701 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4702 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4703
4704 cat >>confdefs.h <<_ACEOF
4705 #define CRAY_STACKSEG_END $ac_func
4706 _ACEOF
4707
4708     break
4709 fi
4710
4711   done
4712 fi
4713
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4715 $as_echo_n "checking stack direction for C alloca... " >&6; }
4716 if ${ac_cv_c_stack_direction+:} false; then :
4717   $as_echo_n "(cached) " >&6
4718 else
4719   if test "$cross_compiling" = yes; then :
4720   ac_cv_c_stack_direction=0
4721 else
4722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h.  */
4724 $ac_includes_default
4725 int
4726 find_stack_direction ()
4727 {
4728   static char *addr = 0;
4729   auto char dummy;
4730   if (addr == 0)
4731     {
4732       addr = &dummy;
4733       return find_stack_direction ();
4734     }
4735   else
4736     return (&dummy > addr) ? 1 : -1;
4737 }
4738
4739 int
4740 main ()
4741 {
4742   return find_stack_direction () < 0;
4743 }
4744 _ACEOF
4745 if ac_fn_c_try_run "$LINENO"; then :
4746   ac_cv_c_stack_direction=1
4747 else
4748   ac_cv_c_stack_direction=-1
4749 fi
4750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4751   conftest.$ac_objext conftest.beam conftest.$ac_ext
4752 fi
4753
4754 fi
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4756 $as_echo "$ac_cv_c_stack_direction" >&6; }
4757 cat >>confdefs.h <<_ACEOF
4758 #define STACK_DIRECTION $ac_cv_c_stack_direction
4759 _ACEOF
4760
4761
4762 fi
4763
4764
4765 # Initialize libtool
4766
4767 case `pwd` in
4768   *\ * | *\     *)
4769     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4770 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4771 esac
4772
4773
4774
4775 macro_version='2.4.2'
4776 macro_revision='1.3337'
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790 ltmain="$ac_aux_dir/ltmain.sh"
4791
4792 # Make sure we can run config.sub.
4793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4794   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4795
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4797 $as_echo_n "checking build system type... " >&6; }
4798 if ${ac_cv_build+:} false; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801   ac_build_alias=$build_alias
4802 test "x$ac_build_alias" = x &&
4803   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4804 test "x$ac_build_alias" = x &&
4805   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4807   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4808
4809 fi
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4811 $as_echo "$ac_cv_build" >&6; }
4812 case $ac_cv_build in
4813 *-*-*) ;;
4814 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4815 esac
4816 build=$ac_cv_build
4817 ac_save_IFS=$IFS; IFS='-'
4818 set x $ac_cv_build
4819 shift
4820 build_cpu=$1
4821 build_vendor=$2
4822 shift; shift
4823 # Remember, the first character of IFS is used to create $*,
4824 # except with old shells:
4825 build_os=$*
4826 IFS=$ac_save_IFS
4827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4828
4829
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4831 $as_echo_n "checking host system type... " >&6; }
4832 if ${ac_cv_host+:} false; then :
4833   $as_echo_n "(cached) " >&6
4834 else
4835   if test "x$host_alias" = x; then
4836   ac_cv_host=$ac_cv_build
4837 else
4838   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4839     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4840 fi
4841
4842 fi
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4844 $as_echo "$ac_cv_host" >&6; }
4845 case $ac_cv_host in
4846 *-*-*) ;;
4847 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4848 esac
4849 host=$ac_cv_host
4850 ac_save_IFS=$IFS; IFS='-'
4851 set x $ac_cv_host
4852 shift
4853 host_cpu=$1
4854 host_vendor=$2
4855 shift; shift
4856 # Remember, the first character of IFS is used to create $*,
4857 # except with old shells:
4858 host_os=$*
4859 IFS=$ac_save_IFS
4860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4861
4862
4863 # Backslashify metacharacters that are still active within
4864 # double-quoted strings.
4865 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4866
4867 # Same as above, but do not quote variable references.
4868 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4869
4870 # Sed substitution to delay expansion of an escaped shell variable in a
4871 # double_quote_subst'ed string.
4872 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4873
4874 # Sed substitution to delay expansion of an escaped single quote.
4875 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4876
4877 # Sed substitution to avoid accidental globbing in evaled expressions
4878 no_glob_subst='s/\*/\\\*/g'
4879
4880 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4881 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4882 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4883
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4885 $as_echo_n "checking how to print strings... " >&6; }
4886 # Test print first, because it will be a builtin if present.
4887 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4888    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4889   ECHO='print -r --'
4890 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4891   ECHO='printf %s\n'
4892 else
4893   # Use this function as a fallback that always works.
4894   func_fallback_echo ()
4895   {
4896     eval 'cat <<_LTECHO_EOF
4897 $1
4898 _LTECHO_EOF'
4899   }
4900   ECHO='func_fallback_echo'
4901 fi
4902
4903 # func_echo_all arg...
4904 # Invoke $ECHO with all args, space-separated.
4905 func_echo_all ()
4906 {
4907     $ECHO ""
4908 }
4909
4910 case "$ECHO" in
4911   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4912 $as_echo "printf" >&6; } ;;
4913   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4914 $as_echo "print -r" >&6; } ;;
4915   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4916 $as_echo "cat" >&6; } ;;
4917 esac
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4933 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4934 if ${ac_cv_path_SED+:} false; then :
4935   $as_echo_n "(cached) " >&6
4936 else
4937             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4938      for ac_i in 1 2 3 4 5 6 7; do
4939        ac_script="$ac_script$as_nl$ac_script"
4940      done
4941      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4942      { ac_script=; unset ac_script;}
4943      if test -z "$SED"; then
4944   ac_path_SED_found=false
4945   # Loop through the user's path and test for each of PROGNAME-LIST
4946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949   IFS=$as_save_IFS
4950   test -z "$as_dir" && as_dir=.
4951     for ac_prog in sed gsed; do
4952     for ac_exec_ext in '' $ac_executable_extensions; do
4953       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4954       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4955 # Check for GNU ac_path_SED and select it if it is found.
4956   # Check for GNU $ac_path_SED
4957 case `"$ac_path_SED" --version 2>&1` in
4958 *GNU*)
4959   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4960 *)
4961   ac_count=0
4962   $as_echo_n 0123456789 >"conftest.in"
4963   while :
4964   do
4965     cat "conftest.in" "conftest.in" >"conftest.tmp"
4966     mv "conftest.tmp" "conftest.in"
4967     cp "conftest.in" "conftest.nl"
4968     $as_echo '' >> "conftest.nl"
4969     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4970     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4971     as_fn_arith $ac_count + 1 && ac_count=$as_val
4972     if test $ac_count -gt ${ac_path_SED_max-0}; then
4973       # Best one so far, save it but keep looking for a better one
4974       ac_cv_path_SED="$ac_path_SED"
4975       ac_path_SED_max=$ac_count
4976     fi
4977     # 10*(2^10) chars as input seems more than enough
4978     test $ac_count -gt 10 && break
4979   done
4980   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4981 esac
4982
4983       $ac_path_SED_found && break 3
4984     done
4985   done
4986   done
4987 IFS=$as_save_IFS
4988   if test -z "$ac_cv_path_SED"; then
4989     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4990   fi
4991 else
4992   ac_cv_path_SED=$SED
4993 fi
4994
4995 fi
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4997 $as_echo "$ac_cv_path_SED" >&6; }
4998  SED="$ac_cv_path_SED"
4999   rm -f conftest.sed
5000
5001 test -z "$SED" && SED=sed
5002 Xsed="$SED -e 1s/^X//"
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5015 $as_echo_n "checking for fgrep... " >&6; }
5016 if ${ac_cv_path_FGREP+:} false; then :
5017   $as_echo_n "(cached) " >&6
5018 else
5019   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5020    then ac_cv_path_FGREP="$GREP -F"
5021    else
5022      if test -z "$FGREP"; then
5023   ac_path_FGREP_found=false
5024   # Loop through the user's path and test for each of PROGNAME-LIST
5025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5027 do
5028   IFS=$as_save_IFS
5029   test -z "$as_dir" && as_dir=.
5030     for ac_prog in fgrep; do
5031     for ac_exec_ext in '' $ac_executable_extensions; do
5032       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5033       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5034 # Check for GNU ac_path_FGREP and select it if it is found.
5035   # Check for GNU $ac_path_FGREP
5036 case `"$ac_path_FGREP" --version 2>&1` in
5037 *GNU*)
5038   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5039 *)
5040   ac_count=0
5041   $as_echo_n 0123456789 >"conftest.in"
5042   while :
5043   do
5044     cat "conftest.in" "conftest.in" >"conftest.tmp"
5045     mv "conftest.tmp" "conftest.in"
5046     cp "conftest.in" "conftest.nl"
5047     $as_echo 'FGREP' >> "conftest.nl"
5048     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5049     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5050     as_fn_arith $ac_count + 1 && ac_count=$as_val
5051     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5052       # Best one so far, save it but keep looking for a better one
5053       ac_cv_path_FGREP="$ac_path_FGREP"
5054       ac_path_FGREP_max=$ac_count
5055     fi
5056     # 10*(2^10) chars as input seems more than enough
5057     test $ac_count -gt 10 && break
5058   done
5059   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5060 esac
5061
5062       $ac_path_FGREP_found && break 3
5063     done
5064   done
5065   done
5066 IFS=$as_save_IFS
5067   if test -z "$ac_cv_path_FGREP"; then
5068     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5069   fi
5070 else
5071   ac_cv_path_FGREP=$FGREP
5072 fi
5073
5074    fi
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5077 $as_echo "$ac_cv_path_FGREP" >&6; }
5078  FGREP="$ac_cv_path_FGREP"
5079
5080
5081 test -z "$GREP" && GREP=grep
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101 # Check whether --with-gnu-ld was given.
5102 if test "${with_gnu_ld+set}" = set; then :
5103   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5104 else
5105   with_gnu_ld=no
5106 fi
5107
5108 ac_prog=ld
5109 if test "$GCC" = yes; then
5110   # Check if gcc -print-prog-name=ld gives a path.
5111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5112 $as_echo_n "checking for ld used by $CC... " >&6; }
5113   case $host in
5114   *-*-mingw*)
5115     # gcc leaves a trailing carriage return which upsets mingw
5116     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5117   *)
5118     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5119   esac
5120   case $ac_prog in
5121     # Accept absolute paths.
5122     [\\/]* | ?:[\\/]*)
5123       re_direlt='/[^/][^/]*/\.\./'
5124       # Canonicalize the pathname of ld
5125       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5126       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5127         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5128       done
5129       test -z "$LD" && LD="$ac_prog"
5130       ;;
5131   "")
5132     # If it fails, then pretend we aren't using GCC.
5133     ac_prog=ld
5134     ;;
5135   *)
5136     # If it is relative, then search for the first ld in PATH.
5137     with_gnu_ld=unknown
5138     ;;
5139   esac
5140 elif test "$with_gnu_ld" = yes; then
5141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5142 $as_echo_n "checking for GNU ld... " >&6; }
5143 else
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5145 $as_echo_n "checking for non-GNU ld... " >&6; }
5146 fi
5147 if ${lt_cv_path_LD+:} false; then :
5148   $as_echo_n "(cached) " >&6
5149 else
5150   if test -z "$LD"; then
5151   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5152   for ac_dir in $PATH; do
5153     IFS="$lt_save_ifs"
5154     test -z "$ac_dir" && ac_dir=.
5155     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5156       lt_cv_path_LD="$ac_dir/$ac_prog"
5157       # Check to see if the program is GNU ld.  I'd rather use --version,
5158       # but apparently some variants of GNU ld only accept -v.
5159       # Break only if it was the GNU/non-GNU ld that we prefer.
5160       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5161       *GNU* | *'with BFD'*)
5162         test "$with_gnu_ld" != no && break
5163         ;;
5164       *)
5165         test "$with_gnu_ld" != yes && break
5166         ;;
5167       esac
5168     fi
5169   done
5170   IFS="$lt_save_ifs"
5171 else
5172   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5173 fi
5174 fi
5175
5176 LD="$lt_cv_path_LD"
5177 if test -n "$LD"; then
5178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5179 $as_echo "$LD" >&6; }
5180 else
5181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5183 fi
5184 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5186 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5187 if ${lt_cv_prog_gnu_ld+:} false; then :
5188   $as_echo_n "(cached) " >&6
5189 else
5190   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5191 case `$LD -v 2>&1 </dev/null` in
5192 *GNU* | *'with BFD'*)
5193   lt_cv_prog_gnu_ld=yes
5194   ;;
5195 *)
5196   lt_cv_prog_gnu_ld=no
5197   ;;
5198 esac
5199 fi
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5201 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5202 with_gnu_ld=$lt_cv_prog_gnu_ld
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5213 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5214 if ${lt_cv_path_NM+:} false; then :
5215   $as_echo_n "(cached) " >&6
5216 else
5217   if test -n "$NM"; then
5218   # Let the user override the test.
5219   lt_cv_path_NM="$NM"
5220 else
5221   lt_nm_to_check="${ac_tool_prefix}nm"
5222   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5223     lt_nm_to_check="$lt_nm_to_check nm"
5224   fi
5225   for lt_tmp_nm in $lt_nm_to_check; do
5226     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5227     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5228       IFS="$lt_save_ifs"
5229       test -z "$ac_dir" && ac_dir=.
5230       tmp_nm="$ac_dir/$lt_tmp_nm"
5231       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5232         # Check to see if the nm accepts a BSD-compat flag.
5233         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5234         #   nm: unknown option "B" ignored
5235         # Tru64's nm complains that /dev/null is an invalid object file
5236         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5237         */dev/null* | *'Invalid file or object type'*)
5238           lt_cv_path_NM="$tmp_nm -B"
5239           break
5240           ;;
5241         *)
5242           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5243           */dev/null*)
5244             lt_cv_path_NM="$tmp_nm -p"
5245             break
5246             ;;
5247           *)
5248             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5249             continue # so that we can try to find one that supports BSD flags
5250             ;;
5251           esac
5252           ;;
5253         esac
5254       fi
5255     done
5256     IFS="$lt_save_ifs"
5257   done
5258   : ${lt_cv_path_NM=no}
5259 fi
5260 fi
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5262 $as_echo "$lt_cv_path_NM" >&6; }
5263 if test "$lt_cv_path_NM" != "no"; then
5264   NM="$lt_cv_path_NM"
5265 else
5266   # Didn't find any BSD compatible name lister, look for dumpbin.
5267   if test -n "$DUMPBIN"; then :
5268     # Let the user override the test.
5269   else
5270     if test -n "$ac_tool_prefix"; then
5271   for ac_prog in dumpbin "link -dump"
5272   do
5273     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_prog_DUMPBIN+:} false; then :
5278   $as_echo_n "(cached) " >&6
5279 else
5280   if test -n "$DUMPBIN"; then
5281   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286   IFS=$as_save_IFS
5287   test -z "$as_dir" && as_dir=.
5288     for ac_exec_ext in '' $ac_executable_extensions; do
5289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292     break 2
5293   fi
5294 done
5295   done
5296 IFS=$as_save_IFS
5297
5298 fi
5299 fi
5300 DUMPBIN=$ac_cv_prog_DUMPBIN
5301 if test -n "$DUMPBIN"; then
5302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5303 $as_echo "$DUMPBIN" >&6; }
5304 else
5305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5307 fi
5308
5309
5310     test -n "$DUMPBIN" && break
5311   done
5312 fi
5313 if test -z "$DUMPBIN"; then
5314   ac_ct_DUMPBIN=$DUMPBIN
5315   for ac_prog in dumpbin "link -dump"
5316 do
5317   # Extract the first word of "$ac_prog", so it can be a program name with args.
5318 set dummy $ac_prog; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5322   $as_echo_n "(cached) " >&6
5323 else
5324   if test -n "$ac_ct_DUMPBIN"; then
5325   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5329 do
5330   IFS=$as_save_IFS
5331   test -z "$as_dir" && as_dir=.
5332     for ac_exec_ext in '' $ac_executable_extensions; do
5333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336     break 2
5337   fi
5338 done
5339   done
5340 IFS=$as_save_IFS
5341
5342 fi
5343 fi
5344 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5345 if test -n "$ac_ct_DUMPBIN"; then
5346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5347 $as_echo "$ac_ct_DUMPBIN" >&6; }
5348 else
5349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5351 fi
5352
5353
5354   test -n "$ac_ct_DUMPBIN" && break
5355 done
5356
5357   if test "x$ac_ct_DUMPBIN" = x; then
5358     DUMPBIN=":"
5359   else
5360     case $cross_compiling:$ac_tool_warned in
5361 yes:)
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5364 ac_tool_warned=yes ;;
5365 esac
5366     DUMPBIN=$ac_ct_DUMPBIN
5367   fi
5368 fi
5369
5370     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5371     *COFF*)
5372       DUMPBIN="$DUMPBIN -symbols"
5373       ;;
5374     *)
5375       DUMPBIN=:
5376       ;;
5377     esac
5378   fi
5379
5380   if test "$DUMPBIN" != ":"; then
5381     NM="$DUMPBIN"
5382   fi
5383 fi
5384 test -z "$NM" && NM=nm
5385
5386
5387
5388
5389
5390
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5392 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5393 if ${lt_cv_nm_interface+:} false; then :
5394   $as_echo_n "(cached) " >&6
5395 else
5396   lt_cv_nm_interface="BSD nm"
5397   echo "int some_variable = 0;" > conftest.$ac_ext
5398   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5399   (eval "$ac_compile" 2>conftest.err)
5400   cat conftest.err >&5
5401   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5402   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5403   cat conftest.err >&5
5404   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5405   cat conftest.out >&5
5406   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5407     lt_cv_nm_interface="MS dumpbin"
5408   fi
5409   rm -f conftest*
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5412 $as_echo "$lt_cv_nm_interface" >&6; }
5413
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5415 $as_echo_n "checking whether ln -s works... " >&6; }
5416 LN_S=$as_ln_s
5417 if test "$LN_S" = "ln -s"; then
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5419 $as_echo "yes" >&6; }
5420 else
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5422 $as_echo "no, using $LN_S" >&6; }
5423 fi
5424
5425 # find the maximum length of command line arguments
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5427 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5428 if ${lt_cv_sys_max_cmd_len+:} false; then :
5429   $as_echo_n "(cached) " >&6
5430 else
5431     i=0
5432   teststring="ABCD"
5433
5434   case $build_os in
5435   msdosdjgpp*)
5436     # On DJGPP, this test can blow up pretty badly due to problems in libc
5437     # (any single argument exceeding 2000 bytes causes a buffer overrun
5438     # during glob expansion).  Even if it were fixed, the result of this
5439     # check would be larger than it should be.
5440     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5441     ;;
5442
5443   gnu*)
5444     # Under GNU Hurd, this test is not required because there is
5445     # no limit to the length of command line arguments.
5446     # Libtool will interpret -1 as no limit whatsoever
5447     lt_cv_sys_max_cmd_len=-1;
5448     ;;
5449
5450   cygwin* | mingw* | cegcc*)
5451     # On Win9x/ME, this test blows up -- it succeeds, but takes
5452     # about 5 minutes as the teststring grows exponentially.
5453     # Worse, since 9x/ME are not pre-emptively multitasking,
5454     # you end up with a "frozen" computer, even though with patience
5455     # the test eventually succeeds (with a max line length of 256k).
5456     # Instead, let's just punt: use the minimum linelength reported by
5457     # all of the supported platforms: 8192 (on NT/2K/XP).
5458     lt_cv_sys_max_cmd_len=8192;
5459     ;;
5460
5461   mint*)
5462     # On MiNT this can take a long time and run out of memory.
5463     lt_cv_sys_max_cmd_len=8192;
5464     ;;
5465
5466   amigaos*)
5467     # On AmigaOS with pdksh, this test takes hours, literally.
5468     # So we just punt and use a minimum line length of 8192.
5469     lt_cv_sys_max_cmd_len=8192;
5470     ;;
5471
5472   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5473     # This has been around since 386BSD, at least.  Likely further.
5474     if test -x /sbin/sysctl; then
5475       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5476     elif test -x /usr/sbin/sysctl; then
5477       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5478     else
5479       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5480     fi
5481     # And add a safety zone
5482     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5483     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5484     ;;
5485
5486   interix*)
5487     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5488     lt_cv_sys_max_cmd_len=196608
5489     ;;
5490
5491   os2*)
5492     # The test takes a long time on OS/2.
5493     lt_cv_sys_max_cmd_len=8192
5494     ;;
5495
5496   osf*)
5497     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5498     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5499     # nice to cause kernel panics so lets avoid the loop below.
5500     # First set a reasonable default.
5501     lt_cv_sys_max_cmd_len=16384
5502     #
5503     if test -x /sbin/sysconfig; then
5504       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5505         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5506       esac
5507     fi
5508     ;;
5509   sco3.2v5*)
5510     lt_cv_sys_max_cmd_len=102400
5511     ;;
5512   sysv5* | sco5v6* | sysv4.2uw2*)
5513     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5514     if test -n "$kargmax"; then
5515       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5516     else
5517       lt_cv_sys_max_cmd_len=32768
5518     fi
5519     ;;
5520   *)
5521     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5522     if test -n "$lt_cv_sys_max_cmd_len"; then
5523       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5524       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5525     else
5526       # Make teststring a little bigger before we do anything with it.
5527       # a 1K string should be a reasonable start.
5528       for i in 1 2 3 4 5 6 7 8 ; do
5529         teststring=$teststring$teststring
5530       done
5531       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5532       # If test is not a shell built-in, we'll probably end up computing a
5533       # maximum length that is only half of the actual maximum length, but
5534       # we can't tell.
5535       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5536                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5537               test $i != 17 # 1/2 MB should be enough
5538       do
5539         i=`expr $i + 1`
5540         teststring=$teststring$teststring
5541       done
5542       # Only check the string length outside the loop.
5543       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5544       teststring=
5545       # Add a significant safety factor because C++ compilers can tack on
5546       # massive amounts of additional arguments before passing them to the
5547       # linker.  It appears as though 1/2 is a usable value.
5548       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5549     fi
5550     ;;
5551   esac
5552
5553 fi
5554
5555 if test -n $lt_cv_sys_max_cmd_len ; then
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5557 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5558 else
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5560 $as_echo "none" >&6; }
5561 fi
5562 max_cmd_len=$lt_cv_sys_max_cmd_len
5563
5564
5565
5566
5567
5568
5569 : ${CP="cp -f"}
5570 : ${MV="mv -f"}
5571 : ${RM="rm -f"}
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5574 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5575 # Try some XSI features
5576 xsi_shell=no
5577 ( _lt_dummy="a/b/c"
5578   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5579       = c,a/b,b/c, \
5580     && eval 'test $(( 1 + 1 )) -eq 2 \
5581     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5582   && xsi_shell=yes
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5584 $as_echo "$xsi_shell" >&6; }
5585
5586
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5588 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5589 lt_shell_append=no
5590 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5591     >/dev/null 2>&1 \
5592   && lt_shell_append=yes
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5594 $as_echo "$lt_shell_append" >&6; }
5595
5596
5597 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5598   lt_unset=unset
5599 else
5600   lt_unset=false
5601 fi
5602
5603
5604
5605
5606
5607 # test EBCDIC or ASCII
5608 case `echo X|tr X '\101'` in
5609  A) # ASCII based system
5610     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5611   lt_SP2NL='tr \040 \012'
5612   lt_NL2SP='tr \015\012 \040\040'
5613   ;;
5614  *) # EBCDIC based system
5615   lt_SP2NL='tr \100 \n'
5616   lt_NL2SP='tr \r\n \100\100'
5617   ;;
5618 esac
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5629 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5630 if ${lt_cv_to_host_file_cmd+:} false; then :
5631   $as_echo_n "(cached) " >&6
5632 else
5633   case $host in
5634   *-*-mingw* )
5635     case $build in
5636       *-*-mingw* ) # actually msys
5637         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5638         ;;
5639       *-*-cygwin* )
5640         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5641         ;;
5642       * ) # otherwise, assume *nix
5643         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5644         ;;
5645     esac
5646     ;;
5647   *-*-cygwin* )
5648     case $build in
5649       *-*-mingw* ) # actually msys
5650         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5651         ;;
5652       *-*-cygwin* )
5653         lt_cv_to_host_file_cmd=func_convert_file_noop
5654         ;;
5655       * ) # otherwise, assume *nix
5656         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5657         ;;
5658     esac
5659     ;;
5660   * ) # unhandled hosts (and "normal" native builds)
5661     lt_cv_to_host_file_cmd=func_convert_file_noop
5662     ;;
5663 esac
5664
5665 fi
5666
5667 to_host_file_cmd=$lt_cv_to_host_file_cmd
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5669 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5670
5671
5672
5673
5674
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5676 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5677 if ${lt_cv_to_tool_file_cmd+:} false; then :
5678   $as_echo_n "(cached) " >&6
5679 else
5680   #assume ordinary cross tools, or native build.
5681 lt_cv_to_tool_file_cmd=func_convert_file_noop
5682 case $host in
5683   *-*-mingw* )
5684     case $build in
5685       *-*-mingw* ) # actually msys
5686         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5687         ;;
5688     esac
5689     ;;
5690 esac
5691
5692 fi
5693
5694 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5696 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5697
5698
5699
5700
5701
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5703 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5704 if ${lt_cv_ld_reload_flag+:} false; then :
5705   $as_echo_n "(cached) " >&6
5706 else
5707   lt_cv_ld_reload_flag='-r'
5708 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5710 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5711 reload_flag=$lt_cv_ld_reload_flag
5712 case $reload_flag in
5713 "" | " "*) ;;
5714 *) reload_flag=" $reload_flag" ;;
5715 esac
5716 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5717 case $host_os in
5718   cygwin* | mingw* | pw32* | cegcc*)
5719     if test "$GCC" != yes; then
5720       reload_cmds=false
5721     fi
5722     ;;
5723   darwin*)
5724     if test "$GCC" = yes; then
5725       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5726     else
5727       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5728     fi
5729     ;;
5730 esac
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740 if test -n "$ac_tool_prefix"; then
5741   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5742 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_OBJDUMP+:} false; then :
5746   $as_echo_n "(cached) " >&6
5747 else
5748   if test -n "$OBJDUMP"; then
5749   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754   IFS=$as_save_IFS
5755   test -z "$as_dir" && as_dir=.
5756     for ac_exec_ext in '' $ac_executable_extensions; do
5757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760     break 2
5761   fi
5762 done
5763   done
5764 IFS=$as_save_IFS
5765
5766 fi
5767 fi
5768 OBJDUMP=$ac_cv_prog_OBJDUMP
5769 if test -n "$OBJDUMP"; then
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5771 $as_echo "$OBJDUMP" >&6; }
5772 else
5773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5775 fi
5776
5777
5778 fi
5779 if test -z "$ac_cv_prog_OBJDUMP"; then
5780   ac_ct_OBJDUMP=$OBJDUMP
5781   # Extract the first word of "objdump", so it can be a program name with args.
5782 set dummy objdump; ac_word=$2
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784 $as_echo_n "checking for $ac_word... " >&6; }
5785 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5786   $as_echo_n "(cached) " >&6
5787 else
5788   if test -n "$ac_ct_OBJDUMP"; then
5789   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5790 else
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH
5793 do
5794   IFS=$as_save_IFS
5795   test -z "$as_dir" && as_dir=.
5796     for ac_exec_ext in '' $ac_executable_extensions; do
5797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5798     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5800     break 2
5801   fi
5802 done
5803   done
5804 IFS=$as_save_IFS
5805
5806 fi
5807 fi
5808 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5809 if test -n "$ac_ct_OBJDUMP"; then
5810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5811 $as_echo "$ac_ct_OBJDUMP" >&6; }
5812 else
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5815 fi
5816
5817   if test "x$ac_ct_OBJDUMP" = x; then
5818     OBJDUMP="false"
5819   else
5820     case $cross_compiling:$ac_tool_warned in
5821 yes:)
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5824 ac_tool_warned=yes ;;
5825 esac
5826     OBJDUMP=$ac_ct_OBJDUMP
5827   fi
5828 else
5829   OBJDUMP="$ac_cv_prog_OBJDUMP"
5830 fi
5831
5832 test -z "$OBJDUMP" && OBJDUMP=objdump
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5843 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5844 if ${lt_cv_deplibs_check_method+:} false; then :
5845   $as_echo_n "(cached) " >&6
5846 else
5847   lt_cv_file_magic_cmd='$MAGIC_CMD'
5848 lt_cv_file_magic_test_file=
5849 lt_cv_deplibs_check_method='unknown'
5850 # Need to set the preceding variable on all platforms that support
5851 # interlibrary dependencies.
5852 # 'none' -- dependencies not supported.
5853 # `unknown' -- same as none, but documents that we really don't know.
5854 # 'pass_all' -- all dependencies passed with no checks.
5855 # 'test_compile' -- check by making test program.
5856 # 'file_magic [[regex]]' -- check by looking for files in library path
5857 # which responds to the $file_magic_cmd with a given extended regex.
5858 # If you have `file' or equivalent on your system and you're not sure
5859 # whether `pass_all' will *always* work, you probably want this one.
5860
5861 case $host_os in
5862 aix[4-9]*)
5863   lt_cv_deplibs_check_method=pass_all
5864   ;;
5865
5866 beos*)
5867   lt_cv_deplibs_check_method=pass_all
5868   ;;
5869
5870 bsdi[45]*)
5871   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5872   lt_cv_file_magic_cmd='/usr/bin/file -L'
5873   lt_cv_file_magic_test_file=/shlib/libc.so
5874   ;;
5875
5876 cygwin*)
5877   # func_win32_libid is a shell function defined in ltmain.sh
5878   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5879   lt_cv_file_magic_cmd='func_win32_libid'
5880   ;;
5881
5882 mingw* | pw32*)
5883   # Base MSYS/MinGW do not provide the 'file' command needed by
5884   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5885   # unless we find 'file', for example because we are cross-compiling.
5886   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5887   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5888     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5889     lt_cv_file_magic_cmd='func_win32_libid'
5890   else
5891     # Keep this pattern in sync with the one in func_win32_libid.
5892     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5893     lt_cv_file_magic_cmd='$OBJDUMP -f'
5894   fi
5895   ;;
5896
5897 cegcc*)
5898   # use the weaker test based on 'objdump'. See mingw*.
5899   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5900   lt_cv_file_magic_cmd='$OBJDUMP -f'
5901   ;;
5902
5903 darwin* | rhapsody*)
5904   lt_cv_deplibs_check_method=pass_all
5905   ;;
5906
5907 freebsd* | dragonfly*)
5908   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5909     case $host_cpu in
5910     i*86 )
5911       # Not sure whether the presence of OpenBSD here was a mistake.
5912       # Let's accept both of them until this is cleared up.
5913       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5914       lt_cv_file_magic_cmd=/usr/bin/file
5915       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5916       ;;
5917     esac
5918   else
5919     lt_cv_deplibs_check_method=pass_all
5920   fi
5921   ;;
5922
5923 gnu*)
5924   lt_cv_deplibs_check_method=pass_all
5925   ;;
5926
5927 haiku*)
5928   lt_cv_deplibs_check_method=pass_all
5929   ;;
5930
5931 hpux10.20* | hpux11*)
5932   lt_cv_file_magic_cmd=/usr/bin/file
5933   case $host_cpu in
5934   ia64*)
5935     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5936     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5937     ;;
5938   hppa*64*)
5939     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]'
5940     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5941     ;;
5942   *)
5943     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5944     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5945     ;;
5946   esac
5947   ;;
5948
5949 interix[3-9]*)
5950   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5951   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5952   ;;
5953
5954 irix5* | irix6* | nonstopux*)
5955   case $LD in
5956   *-32|*"-32 ") libmagic=32-bit;;
5957   *-n32|*"-n32 ") libmagic=N32;;
5958   *-64|*"-64 ") libmagic=64-bit;;
5959   *) libmagic=never-match;;
5960   esac
5961   lt_cv_deplibs_check_method=pass_all
5962   ;;
5963
5964 # This must be glibc/ELF.
5965 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5966   lt_cv_deplibs_check_method=pass_all
5967   ;;
5968
5969 netbsd* | netbsdelf*-gnu)
5970   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5971     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5972   else
5973     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5974   fi
5975   ;;
5976
5977 newos6*)
5978   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5979   lt_cv_file_magic_cmd=/usr/bin/file
5980   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5981   ;;
5982
5983 *nto* | *qnx*)
5984   lt_cv_deplibs_check_method=pass_all
5985   ;;
5986
5987 openbsd*)
5988   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5989     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5990   else
5991     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5992   fi
5993   ;;
5994
5995 osf3* | osf4* | osf5*)
5996   lt_cv_deplibs_check_method=pass_all
5997   ;;
5998
5999 rdos*)
6000   lt_cv_deplibs_check_method=pass_all
6001   ;;
6002
6003 solaris*)
6004   lt_cv_deplibs_check_method=pass_all
6005   ;;
6006
6007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6008   lt_cv_deplibs_check_method=pass_all
6009   ;;
6010
6011 sysv4 | sysv4.3*)
6012   case $host_vendor in
6013   motorola)
6014     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]'
6015     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6016     ;;
6017   ncr)
6018     lt_cv_deplibs_check_method=pass_all
6019     ;;
6020   sequent)
6021     lt_cv_file_magic_cmd='/bin/file'
6022     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6023     ;;
6024   sni)
6025     lt_cv_file_magic_cmd='/bin/file'
6026     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6027     lt_cv_file_magic_test_file=/lib/libc.so
6028     ;;
6029   siemens)
6030     lt_cv_deplibs_check_method=pass_all
6031     ;;
6032   pc)
6033     lt_cv_deplibs_check_method=pass_all
6034     ;;
6035   esac
6036   ;;
6037
6038 tpf*)
6039   lt_cv_deplibs_check_method=pass_all
6040   ;;
6041 esac
6042
6043 fi
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6045 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6046
6047 file_magic_glob=
6048 want_nocaseglob=no
6049 if test "$build" = "$host"; then
6050   case $host_os in
6051   mingw* | pw32*)
6052     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6053       want_nocaseglob=yes
6054     else
6055       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6056     fi
6057     ;;
6058   esac
6059 fi
6060
6061 file_magic_cmd=$lt_cv_file_magic_cmd
6062 deplibs_check_method=$lt_cv_deplibs_check_method
6063 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086 if test -n "$ac_tool_prefix"; then
6087   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6088 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if ${ac_cv_prog_DLLTOOL+:} false; then :
6092   $as_echo_n "(cached) " >&6
6093 else
6094   if test -n "$DLLTOOL"; then
6095   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102     for ac_exec_ext in '' $ac_executable_extensions; do
6103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109   done
6110 IFS=$as_save_IFS
6111
6112 fi
6113 fi
6114 DLLTOOL=$ac_cv_prog_DLLTOOL
6115 if test -n "$DLLTOOL"; then
6116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6117 $as_echo "$DLLTOOL" >&6; }
6118 else
6119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6121 fi
6122
6123
6124 fi
6125 if test -z "$ac_cv_prog_DLLTOOL"; then
6126   ac_ct_DLLTOOL=$DLLTOOL
6127   # Extract the first word of "dlltool", so it can be a program name with args.
6128 set dummy dlltool; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6132   $as_echo_n "(cached) " >&6
6133 else
6134   if test -n "$ac_ct_DLLTOOL"; then
6135   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142     for ac_exec_ext in '' $ac_executable_extensions; do
6143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146     break 2
6147   fi
6148 done
6149   done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6155 if test -n "$ac_ct_DLLTOOL"; then
6156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6157 $as_echo "$ac_ct_DLLTOOL" >&6; }
6158 else
6159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6161 fi
6162
6163   if test "x$ac_ct_DLLTOOL" = x; then
6164     DLLTOOL="false"
6165   else
6166     case $cross_compiling:$ac_tool_warned in
6167 yes:)
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170 ac_tool_warned=yes ;;
6171 esac
6172     DLLTOOL=$ac_ct_DLLTOOL
6173   fi
6174 else
6175   DLLTOOL="$ac_cv_prog_DLLTOOL"
6176 fi
6177
6178 test -z "$DLLTOOL" && DLLTOOL=dlltool
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6190 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6191 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6192   $as_echo_n "(cached) " >&6
6193 else
6194   lt_cv_sharedlib_from_linklib_cmd='unknown'
6195
6196 case $host_os in
6197 cygwin* | mingw* | pw32* | cegcc*)
6198   # two different shell functions defined in ltmain.sh
6199   # decide which to use based on capabilities of $DLLTOOL
6200   case `$DLLTOOL --help 2>&1` in
6201   *--identify-strict*)
6202     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6203     ;;
6204   *)
6205     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6206     ;;
6207   esac
6208   ;;
6209 *)
6210   # fallback: assume linklib IS sharedlib
6211   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6212   ;;
6213 esac
6214
6215 fi
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6217 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6218 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6219 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6220
6221
6222
6223
6224
6225
6226
6227 if test -n "$ac_tool_prefix"; then
6228   for ac_prog in ar
6229   do
6230     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if ${ac_cv_prog_AR+:} false; then :
6235   $as_echo_n "(cached) " >&6
6236 else
6237   if test -n "$AR"; then
6238   ac_cv_prog_AR="$AR" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245     for ac_exec_ext in '' $ac_executable_extensions; do
6246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252   done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 AR=$ac_cv_prog_AR
6258 if test -n "$AR"; then
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6260 $as_echo "$AR" >&6; }
6261 else
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6264 fi
6265
6266
6267     test -n "$AR" && break
6268   done
6269 fi
6270 if test -z "$AR"; then
6271   ac_ct_AR=$AR
6272   for ac_prog in ar
6273 do
6274   # Extract the first word of "$ac_prog", so it can be a program name with args.
6275 set dummy $ac_prog; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6279   $as_echo_n "(cached) " >&6
6280 else
6281   if test -n "$ac_ct_AR"; then
6282   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287   IFS=$as_save_IFS
6288   test -z "$as_dir" && as_dir=.
6289     for ac_exec_ext in '' $ac_executable_extensions; do
6290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291     ac_cv_prog_ac_ct_AR="$ac_prog"
6292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293     break 2
6294   fi
6295 done
6296   done
6297 IFS=$as_save_IFS
6298
6299 fi
6300 fi
6301 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6302 if test -n "$ac_ct_AR"; then
6303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6304 $as_echo "$ac_ct_AR" >&6; }
6305 else
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6308 fi
6309
6310
6311   test -n "$ac_ct_AR" && break
6312 done
6313
6314   if test "x$ac_ct_AR" = x; then
6315     AR="false"
6316   else
6317     case $cross_compiling:$ac_tool_warned in
6318 yes:)
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6321 ac_tool_warned=yes ;;
6322 esac
6323     AR=$ac_ct_AR
6324   fi
6325 fi
6326
6327 : ${AR=ar}
6328 : ${AR_FLAGS=cru}
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6341 $as_echo_n "checking for archiver @FILE support... " >&6; }
6342 if ${lt_cv_ar_at_file+:} false; then :
6343   $as_echo_n "(cached) " >&6
6344 else
6345   lt_cv_ar_at_file=no
6346    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h.  */
6348
6349 int
6350 main ()
6351 {
6352
6353   ;
6354   return 0;
6355 }
6356 _ACEOF
6357 if ac_fn_c_try_compile "$LINENO"; then :
6358   echo conftest.$ac_objext > conftest.lst
6359       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6360       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6361   (eval $lt_ar_try) 2>&5
6362   ac_status=$?
6363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6364   test $ac_status = 0; }
6365       if test "$ac_status" -eq 0; then
6366         # Ensure the archiver fails upon bogus file names.
6367         rm -f conftest.$ac_objext libconftest.a
6368         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6369   (eval $lt_ar_try) 2>&5
6370   ac_status=$?
6371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6372   test $ac_status = 0; }
6373         if test "$ac_status" -ne 0; then
6374           lt_cv_ar_at_file=@
6375         fi
6376       fi
6377       rm -f conftest.* libconftest.a
6378
6379 fi
6380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381
6382 fi
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6384 $as_echo "$lt_cv_ar_at_file" >&6; }
6385
6386 if test "x$lt_cv_ar_at_file" = xno; then
6387   archiver_list_spec=
6388 else
6389   archiver_list_spec=$lt_cv_ar_at_file
6390 fi
6391
6392
6393
6394
6395
6396
6397
6398 if test -n "$ac_tool_prefix"; then
6399   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}strip; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_prog_STRIP+:} false; then :
6404   $as_echo_n "(cached) " >&6
6405 else
6406   if test -n "$STRIP"; then
6407   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412   IFS=$as_save_IFS
6413   test -z "$as_dir" && as_dir=.
6414     for ac_exec_ext in '' $ac_executable_extensions; do
6415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6416     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418     break 2
6419   fi
6420 done
6421   done
6422 IFS=$as_save_IFS
6423
6424 fi
6425 fi
6426 STRIP=$ac_cv_prog_STRIP
6427 if test -n "$STRIP"; then
6428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6429 $as_echo "$STRIP" >&6; }
6430 else
6431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6433 fi
6434
6435
6436 fi
6437 if test -z "$ac_cv_prog_STRIP"; then
6438   ac_ct_STRIP=$STRIP
6439   # Extract the first word of "strip", so it can be a program name with args.
6440 set dummy strip; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6444   $as_echo_n "(cached) " >&6
6445 else
6446   if test -n "$ac_ct_STRIP"; then
6447   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452   IFS=$as_save_IFS
6453   test -z "$as_dir" && as_dir=.
6454     for ac_exec_ext in '' $ac_executable_extensions; do
6455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456     ac_cv_prog_ac_ct_STRIP="strip"
6457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458     break 2
6459   fi
6460 done
6461   done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6467 if test -n "$ac_ct_STRIP"; then
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6469 $as_echo "$ac_ct_STRIP" >&6; }
6470 else
6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475   if test "x$ac_ct_STRIP" = x; then
6476     STRIP=":"
6477   else
6478     case $cross_compiling:$ac_tool_warned in
6479 yes:)
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6483 esac
6484     STRIP=$ac_ct_STRIP
6485   fi
6486 else
6487   STRIP="$ac_cv_prog_STRIP"
6488 fi
6489
6490 test -z "$STRIP" && STRIP=:
6491
6492
6493
6494
6495
6496
6497 if test -n "$ac_tool_prefix"; then
6498   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6499 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_prog_RANLIB+:} false; then :
6503   $as_echo_n "(cached) " >&6
6504 else
6505   if test -n "$RANLIB"; then
6506   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6510 do
6511   IFS=$as_save_IFS
6512   test -z "$as_dir" && as_dir=.
6513     for ac_exec_ext in '' $ac_executable_extensions; do
6514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517     break 2
6518   fi
6519 done
6520   done
6521 IFS=$as_save_IFS
6522
6523 fi
6524 fi
6525 RANLIB=$ac_cv_prog_RANLIB
6526 if test -n "$RANLIB"; then
6527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6528 $as_echo "$RANLIB" >&6; }
6529 else
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6532 fi
6533
6534
6535 fi
6536 if test -z "$ac_cv_prog_RANLIB"; then
6537   ac_ct_RANLIB=$RANLIB
6538   # Extract the first word of "ranlib", so it can be a program name with args.
6539 set dummy ranlib; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6543   $as_echo_n "(cached) " >&6
6544 else
6545   if test -n "$ac_ct_RANLIB"; then
6546   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6550 do
6551   IFS=$as_save_IFS
6552   test -z "$as_dir" && as_dir=.
6553     for ac_exec_ext in '' $ac_executable_extensions; do
6554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555     ac_cv_prog_ac_ct_RANLIB="ranlib"
6556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557     break 2
6558   fi
6559 done
6560   done
6561 IFS=$as_save_IFS
6562
6563 fi
6564 fi
6565 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6566 if test -n "$ac_ct_RANLIB"; then
6567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6568 $as_echo "$ac_ct_RANLIB" >&6; }
6569 else
6570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6572 fi
6573
6574   if test "x$ac_ct_RANLIB" = x; then
6575     RANLIB=":"
6576   else
6577     case $cross_compiling:$ac_tool_warned in
6578 yes:)
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581 ac_tool_warned=yes ;;
6582 esac
6583     RANLIB=$ac_ct_RANLIB
6584   fi
6585 else
6586   RANLIB="$ac_cv_prog_RANLIB"
6587 fi
6588
6589 test -z "$RANLIB" && RANLIB=:
6590
6591
6592
6593
6594
6595
6596 # Determine commands to create old-style static archives.
6597 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6598 old_postinstall_cmds='chmod 644 $oldlib'
6599 old_postuninstall_cmds=
6600
6601 if test -n "$RANLIB"; then
6602   case $host_os in
6603   openbsd*)
6604     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6605     ;;
6606   *)
6607     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6608     ;;
6609   esac
6610   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6611 fi
6612
6613 case $host_os in
6614   darwin*)
6615     lock_old_archive_extraction=yes ;;
6616   *)
6617     lock_old_archive_extraction=no ;;
6618 esac
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658 # If no C compiler was specified, use CC.
6659 LTCC=${LTCC-"$CC"}
6660
6661 # If no C compiler flags were specified, use CFLAGS.
6662 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6663
6664 # Allow CC to be a program name with arguments.
6665 compiler=$CC
6666
6667
6668 # Check for command to grab the raw symbol name followed by C symbol from nm.
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6670 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6671 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6672   $as_echo_n "(cached) " >&6
6673 else
6674
6675 # These are sane defaults that work on at least a few old systems.
6676 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6677
6678 # Character class describing NM global symbol codes.
6679 symcode='[BCDEGRST]'
6680
6681 # Regexp to match symbols that can be accessed directly from C.
6682 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6683
6684 # Define system-specific variables.
6685 case $host_os in
6686 aix*)
6687   symcode='[BCDT]'
6688   ;;
6689 cygwin* | mingw* | pw32* | cegcc*)
6690   symcode='[ABCDGISTW]'
6691   ;;
6692 hpux*)
6693   if test "$host_cpu" = ia64; then
6694     symcode='[ABCDEGRST]'
6695   fi
6696   ;;
6697 irix* | nonstopux*)
6698   symcode='[BCDEGRST]'
6699   ;;
6700 osf*)
6701   symcode='[BCDEGQRST]'
6702   ;;
6703 solaris*)
6704   symcode='[BDRT]'
6705   ;;
6706 sco3.2v5*)
6707   symcode='[DT]'
6708   ;;
6709 sysv4.2uw2*)
6710   symcode='[DT]'
6711   ;;
6712 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6713   symcode='[ABDT]'
6714   ;;
6715 sysv4)
6716   symcode='[DFNSTU]'
6717   ;;
6718 esac
6719
6720 # If we're using GNU nm, then use its standard symbol codes.
6721 case `$NM -V 2>&1` in
6722 *GNU* | *'with BFD'*)
6723   symcode='[ABCDGIRSTW]' ;;
6724 esac
6725
6726 # Transform an extracted symbol line into a proper C declaration.
6727 # Some systems (esp. on ia64) link data and code symbols differently,
6728 # so use this general approach.
6729 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6730
6731 # Transform an extracted symbol line into symbol name and symbol address
6732 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6733 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'"
6734
6735 # Handle CRLF in mingw tool chain
6736 opt_cr=
6737 case $build_os in
6738 mingw*)
6739   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6740   ;;
6741 esac
6742
6743 # Try without a prefix underscore, then with it.
6744 for ac_symprfx in "" "_"; do
6745
6746   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6747   symxfrm="\\1 $ac_symprfx\\2 \\2"
6748
6749   # Write the raw and C identifiers.
6750   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6751     # Fake it for dumpbin and say T for any non-static function
6752     # and D for any global variable.
6753     # Also find C++ and __fastcall symbols from MSVC++,
6754     # which start with @ or ?.
6755     lt_cv_sys_global_symbol_pipe="$AWK '"\
6756 "     {last_section=section; section=\$ 3};"\
6757 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6758 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6759 "     \$ 0!~/External *\|/{next};"\
6760 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6761 "     {if(hide[section]) next};"\
6762 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6763 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6764 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6765 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6766 "     ' prfx=^$ac_symprfx"
6767   else
6768     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6769   fi
6770   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6771
6772   # Check to see that the pipe works correctly.
6773   pipe_works=no
6774
6775   rm -f conftest*
6776   cat > conftest.$ac_ext <<_LT_EOF
6777 #ifdef __cplusplus
6778 extern "C" {
6779 #endif
6780 char nm_test_var;
6781 void nm_test_func(void);
6782 void nm_test_func(void){}
6783 #ifdef __cplusplus
6784 }
6785 #endif
6786 int main(){nm_test_var='a';nm_test_func();return(0);}
6787 _LT_EOF
6788
6789   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6790   (eval $ac_compile) 2>&5
6791   ac_status=$?
6792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793   test $ac_status = 0; }; then
6794     # Now try to grab the symbols.
6795     nlist=conftest.nm
6796     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6797   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6798   ac_status=$?
6799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6800   test $ac_status = 0; } && test -s "$nlist"; then
6801       # Try sorting and uniquifying the output.
6802       if sort "$nlist" | uniq > "$nlist"T; then
6803         mv -f "$nlist"T "$nlist"
6804       else
6805         rm -f "$nlist"T
6806       fi
6807
6808       # Make sure that we snagged all the symbols we need.
6809       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6810         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6811           cat <<_LT_EOF > conftest.$ac_ext
6812 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6813 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6814 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6815    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6816 # define LT_DLSYM_CONST
6817 #elif defined(__osf__)
6818 /* This system does not cope well with relocations in const data.  */
6819 # define LT_DLSYM_CONST
6820 #else
6821 # define LT_DLSYM_CONST const
6822 #endif
6823
6824 #ifdef __cplusplus
6825 extern "C" {
6826 #endif
6827
6828 _LT_EOF
6829           # Now generate the symbol file.
6830           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6831
6832           cat <<_LT_EOF >> conftest.$ac_ext
6833
6834 /* The mapping between symbol names and symbols.  */
6835 LT_DLSYM_CONST struct {
6836   const char *name;
6837   void       *address;
6838 }
6839 lt__PROGRAM__LTX_preloaded_symbols[] =
6840 {
6841   { "@PROGRAM@", (void *) 0 },
6842 _LT_EOF
6843           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6844           cat <<\_LT_EOF >> conftest.$ac_ext
6845   {0, (void *) 0}
6846 };
6847
6848 /* This works around a problem in FreeBSD linker */
6849 #ifdef FREEBSD_WORKAROUND
6850 static const void *lt_preloaded_setup() {
6851   return lt__PROGRAM__LTX_preloaded_symbols;
6852 }
6853 #endif
6854
6855 #ifdef __cplusplus
6856 }
6857 #endif
6858 _LT_EOF
6859           # Now try linking the two files.
6860           mv conftest.$ac_objext conftstm.$ac_objext
6861           lt_globsym_save_LIBS=$LIBS
6862           lt_globsym_save_CFLAGS=$CFLAGS
6863           LIBS="conftstm.$ac_objext"
6864           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6865           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6866   (eval $ac_link) 2>&5
6867   ac_status=$?
6868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6869   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6870             pipe_works=yes
6871           fi
6872           LIBS=$lt_globsym_save_LIBS
6873           CFLAGS=$lt_globsym_save_CFLAGS
6874         else
6875           echo "cannot find nm_test_func in $nlist" >&5
6876         fi
6877       else
6878         echo "cannot find nm_test_var in $nlist" >&5
6879       fi
6880     else
6881       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6882     fi
6883   else
6884     echo "$progname: failed program was:" >&5
6885     cat conftest.$ac_ext >&5
6886   fi
6887   rm -rf conftest* conftst*
6888
6889   # Do not use the global_symbol_pipe unless it works.
6890   if test "$pipe_works" = yes; then
6891     break
6892   else
6893     lt_cv_sys_global_symbol_pipe=
6894   fi
6895 done
6896
6897 fi
6898
6899 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6900   lt_cv_sys_global_symbol_to_cdecl=
6901 fi
6902 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6904 $as_echo "failed" >&6; }
6905 else
6906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6907 $as_echo "ok" >&6; }
6908 fi
6909
6910 # Response file support.
6911 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6912   nm_file_list_spec='@'
6913 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6914   nm_file_list_spec='@'
6915 fi
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6944 $as_echo_n "checking for sysroot... " >&6; }
6945
6946 # Check whether --with-sysroot was given.
6947 if test "${with_sysroot+set}" = set; then :
6948   withval=$with_sysroot;
6949 else
6950   with_sysroot=no
6951 fi
6952
6953
6954 lt_sysroot=
6955 case ${with_sysroot} in #(
6956  yes)
6957    if test "$GCC" = yes; then
6958      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6959    fi
6960    ;; #(
6961  /*)
6962    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6963    ;; #(
6964  no|'')
6965    ;; #(
6966  *)
6967    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6968 $as_echo "${with_sysroot}" >&6; }
6969    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6970    ;;
6971 esac
6972
6973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6974 $as_echo "${lt_sysroot:-no}" >&6; }
6975
6976
6977
6978
6979
6980 # Check whether --enable-libtool-lock was given.
6981 if test "${enable_libtool_lock+set}" = set; then :
6982   enableval=$enable_libtool_lock;
6983 fi
6984
6985 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6986
6987 # Some flags need to be propagated to the compiler or linker for good
6988 # libtool support.
6989 case $host in
6990 ia64-*-hpux*)
6991   # Find out which ABI we are using.
6992   echo 'int i;' > conftest.$ac_ext
6993   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6994   (eval $ac_compile) 2>&5
6995   ac_status=$?
6996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6997   test $ac_status = 0; }; then
6998     case `/usr/bin/file conftest.$ac_objext` in
6999       *ELF-32*)
7000         HPUX_IA64_MODE="32"
7001         ;;
7002       *ELF-64*)
7003         HPUX_IA64_MODE="64"
7004         ;;
7005     esac
7006   fi
7007   rm -rf conftest*
7008   ;;
7009 *-*-irix6*)
7010   # Find out which ABI we are using.
7011   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7012   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7013   (eval $ac_compile) 2>&5
7014   ac_status=$?
7015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7016   test $ac_status = 0; }; then
7017     if test "$lt_cv_prog_gnu_ld" = yes; then
7018       case `/usr/bin/file conftest.$ac_objext` in
7019         *32-bit*)
7020           LD="${LD-ld} -melf32bsmip"
7021           ;;
7022         *N32*)
7023           LD="${LD-ld} -melf32bmipn32"
7024           ;;
7025         *64-bit*)
7026           LD="${LD-ld} -melf64bmip"
7027         ;;
7028       esac
7029     else
7030       case `/usr/bin/file conftest.$ac_objext` in
7031         *32-bit*)
7032           LD="${LD-ld} -32"
7033           ;;
7034         *N32*)
7035           LD="${LD-ld} -n32"
7036           ;;
7037         *64-bit*)
7038           LD="${LD-ld} -64"
7039           ;;
7040       esac
7041     fi
7042   fi
7043   rm -rf conftest*
7044   ;;
7045
7046 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7047 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7048   # Find out which ABI we are using.
7049   echo 'int i;' > conftest.$ac_ext
7050   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7051   (eval $ac_compile) 2>&5
7052   ac_status=$?
7053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054   test $ac_status = 0; }; then
7055     case `/usr/bin/file conftest.o` in
7056       *32-bit*)
7057         case $host in
7058           x86_64-*kfreebsd*-gnu)
7059             LD="${LD-ld} -m elf_i386_fbsd"
7060             ;;
7061           x86_64-*linux*)
7062             LD="${LD-ld} -m elf_i386"
7063             ;;
7064           ppc64-*linux*|powerpc64-*linux*)
7065             LD="${LD-ld} -m elf32ppclinux"
7066             ;;
7067           s390x-*linux*)
7068             LD="${LD-ld} -m elf_s390"
7069             ;;
7070           sparc64-*linux*)
7071             LD="${LD-ld} -m elf32_sparc"
7072             ;;
7073         esac
7074         ;;
7075       *64-bit*)
7076         case $host in
7077           x86_64-*kfreebsd*-gnu)
7078             LD="${LD-ld} -m elf_x86_64_fbsd"
7079             ;;
7080           x86_64-*linux*)
7081             LD="${LD-ld} -m elf_x86_64"
7082             ;;
7083           ppc*-*linux*|powerpc*-*linux*)
7084             LD="${LD-ld} -m elf64ppc"
7085             ;;
7086           s390*-*linux*|s390*-*tpf*)
7087             LD="${LD-ld} -m elf64_s390"
7088             ;;
7089           sparc*-*linux*)
7090             LD="${LD-ld} -m elf64_sparc"
7091             ;;
7092         esac
7093         ;;
7094     esac
7095   fi
7096   rm -rf conftest*
7097   ;;
7098
7099 *-*-sco3.2v5*)
7100   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7101   SAVE_CFLAGS="$CFLAGS"
7102   CFLAGS="$CFLAGS -belf"
7103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7104 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7105 if ${lt_cv_cc_needs_belf+:} false; then :
7106   $as_echo_n "(cached) " >&6
7107 else
7108   ac_ext=c
7109 ac_cpp='$CPP $CPPFLAGS'
7110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7113
7114      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h.  */
7116
7117 int
7118 main ()
7119 {
7120
7121   ;
7122   return 0;
7123 }
7124 _ACEOF
7125 if ac_fn_c_try_link "$LINENO"; then :
7126   lt_cv_cc_needs_belf=yes
7127 else
7128   lt_cv_cc_needs_belf=no
7129 fi
7130 rm -f core conftest.err conftest.$ac_objext \
7131     conftest$ac_exeext conftest.$ac_ext
7132      ac_ext=c
7133 ac_cpp='$CPP $CPPFLAGS'
7134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7137
7138 fi
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7140 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7141   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7142     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7143     CFLAGS="$SAVE_CFLAGS"
7144   fi
7145   ;;
7146 *-*solaris*)
7147   # Find out which ABI we are using.
7148   echo 'int i;' > conftest.$ac_ext
7149   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7150   (eval $ac_compile) 2>&5
7151   ac_status=$?
7152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153   test $ac_status = 0; }; then
7154     case `/usr/bin/file conftest.o` in
7155     *64-bit*)
7156       case $lt_cv_prog_gnu_ld in
7157       yes*)
7158         case $host in
7159         i?86-*-solaris*)
7160           LD="${LD-ld} -m elf_x86_64"
7161           ;;
7162         sparc*-*-solaris*)
7163           LD="${LD-ld} -m elf64_sparc"
7164           ;;
7165         esac
7166         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7167         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7168           LD="${LD-ld}_sol2"
7169         fi
7170         ;;
7171       *)
7172         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7173           LD="${LD-ld} -64"
7174         fi
7175         ;;
7176       esac
7177       ;;
7178     esac
7179   fi
7180   rm -rf conftest*
7181   ;;
7182 esac
7183
7184 need_locks="$enable_libtool_lock"
7185
7186 if test -n "$ac_tool_prefix"; then
7187   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}mt; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   if test -n "$MANIFEST_TOOL"; then
7195   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7196 else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200   IFS=$as_save_IFS
7201   test -z "$as_dir" && as_dir=.
7202     for ac_exec_ext in '' $ac_executable_extensions; do
7203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7204     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206     break 2
7207   fi
7208 done
7209   done
7210 IFS=$as_save_IFS
7211
7212 fi
7213 fi
7214 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7215 if test -n "$MANIFEST_TOOL"; then
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7217 $as_echo "$MANIFEST_TOOL" >&6; }
7218 else
7219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7221 fi
7222
7223
7224 fi
7225 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7226   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7227   # Extract the first word of "mt", so it can be a program name with args.
7228 set dummy mt; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7232   $as_echo_n "(cached) " >&6
7233 else
7234   if test -n "$ac_ct_MANIFEST_TOOL"; then
7235   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242     for ac_exec_ext in '' $ac_executable_extensions; do
7243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7244     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249   done
7250 IFS=$as_save_IFS
7251
7252 fi
7253 fi
7254 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7255 if test -n "$ac_ct_MANIFEST_TOOL"; then
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7257 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7258 else
7259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7261 fi
7262
7263   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7264     MANIFEST_TOOL=":"
7265   else
7266     case $cross_compiling:$ac_tool_warned in
7267 yes:)
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7271 esac
7272     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7273   fi
7274 else
7275   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7276 fi
7277
7278 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7280 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7281 if ${lt_cv_path_mainfest_tool+:} false; then :
7282   $as_echo_n "(cached) " >&6
7283 else
7284   lt_cv_path_mainfest_tool=no
7285   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7286   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7287   cat conftest.err >&5
7288   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7289     lt_cv_path_mainfest_tool=yes
7290   fi
7291   rm -f conftest*
7292 fi
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7294 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7295 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7296   MANIFEST_TOOL=:
7297 fi
7298
7299
7300
7301
7302
7303
7304   case $host_os in
7305     rhapsody* | darwin*)
7306     if test -n "$ac_tool_prefix"; then
7307   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7308 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7312   $as_echo_n "(cached) " >&6
7313 else
7314   if test -n "$DSYMUTIL"; then
7315   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7319 do
7320   IFS=$as_save_IFS
7321   test -z "$as_dir" && as_dir=.
7322     for ac_exec_ext in '' $ac_executable_extensions; do
7323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7324     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326     break 2
7327   fi
7328 done
7329   done
7330 IFS=$as_save_IFS
7331
7332 fi
7333 fi
7334 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7335 if test -n "$DSYMUTIL"; then
7336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7337 $as_echo "$DSYMUTIL" >&6; }
7338 else
7339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7341 fi
7342
7343
7344 fi
7345 if test -z "$ac_cv_prog_DSYMUTIL"; then
7346   ac_ct_DSYMUTIL=$DSYMUTIL
7347   # Extract the first word of "dsymutil", so it can be a program name with args.
7348 set dummy dsymutil; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7352   $as_echo_n "(cached) " >&6
7353 else
7354   if test -n "$ac_ct_DSYMUTIL"; then
7355   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   test -z "$as_dir" && as_dir=.
7362     for ac_exec_ext in '' $ac_executable_extensions; do
7363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366     break 2
7367   fi
7368 done
7369   done
7370 IFS=$as_save_IFS
7371
7372 fi
7373 fi
7374 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7375 if test -n "$ac_ct_DSYMUTIL"; then
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7377 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7378 else
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7382
7383   if test "x$ac_ct_DSYMUTIL" = x; then
7384     DSYMUTIL=":"
7385   else
7386     case $cross_compiling:$ac_tool_warned in
7387 yes:)
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7390 ac_tool_warned=yes ;;
7391 esac
7392     DSYMUTIL=$ac_ct_DSYMUTIL
7393   fi
7394 else
7395   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7396 fi
7397
7398     if test -n "$ac_tool_prefix"; then
7399   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7400 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if ${ac_cv_prog_NMEDIT+:} false; then :
7404   $as_echo_n "(cached) " >&6
7405 else
7406   if test -n "$NMEDIT"; then
7407   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7408 else
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 for as_dir in $PATH
7411 do
7412   IFS=$as_save_IFS
7413   test -z "$as_dir" && as_dir=.
7414     for ac_exec_ext in '' $ac_executable_extensions; do
7415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7416     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418     break 2
7419   fi
7420 done
7421   done
7422 IFS=$as_save_IFS
7423
7424 fi
7425 fi
7426 NMEDIT=$ac_cv_prog_NMEDIT
7427 if test -n "$NMEDIT"; then
7428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7429 $as_echo "$NMEDIT" >&6; }
7430 else
7431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7433 fi
7434
7435
7436 fi
7437 if test -z "$ac_cv_prog_NMEDIT"; then
7438   ac_ct_NMEDIT=$NMEDIT
7439   # Extract the first word of "nmedit", so it can be a program name with args.
7440 set dummy nmedit; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   if test -n "$ac_ct_NMEDIT"; then
7447   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452   IFS=$as_save_IFS
7453   test -z "$as_dir" && as_dir=.
7454     for ac_exec_ext in '' $ac_executable_extensions; do
7455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458     break 2
7459   fi
7460 done
7461   done
7462 IFS=$as_save_IFS
7463
7464 fi
7465 fi
7466 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7467 if test -n "$ac_ct_NMEDIT"; then
7468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7469 $as_echo "$ac_ct_NMEDIT" >&6; }
7470 else
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7473 fi
7474
7475   if test "x$ac_ct_NMEDIT" = x; then
7476     NMEDIT=":"
7477   else
7478     case $cross_compiling:$ac_tool_warned in
7479 yes:)
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7482 ac_tool_warned=yes ;;
7483 esac
7484     NMEDIT=$ac_ct_NMEDIT
7485   fi
7486 else
7487   NMEDIT="$ac_cv_prog_NMEDIT"
7488 fi
7489
7490     if test -n "$ac_tool_prefix"; then
7491   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7492 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if ${ac_cv_prog_LIPO+:} false; then :
7496   $as_echo_n "(cached) " >&6
7497 else
7498   if test -n "$LIPO"; then
7499   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7500 else
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504   IFS=$as_save_IFS
7505   test -z "$as_dir" && as_dir=.
7506     for ac_exec_ext in '' $ac_executable_extensions; do
7507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7508     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510     break 2
7511   fi
7512 done
7513   done
7514 IFS=$as_save_IFS
7515
7516 fi
7517 fi
7518 LIPO=$ac_cv_prog_LIPO
7519 if test -n "$LIPO"; then
7520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7521 $as_echo "$LIPO" >&6; }
7522 else
7523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7525 fi
7526
7527
7528 fi
7529 if test -z "$ac_cv_prog_LIPO"; then
7530   ac_ct_LIPO=$LIPO
7531   # Extract the first word of "lipo", so it can be a program name with args.
7532 set dummy lipo; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7536   $as_echo_n "(cached) " >&6
7537 else
7538   if test -n "$ac_ct_LIPO"; then
7539   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7540 else
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7543 do
7544   IFS=$as_save_IFS
7545   test -z "$as_dir" && as_dir=.
7546     for ac_exec_ext in '' $ac_executable_extensions; do
7547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7548     ac_cv_prog_ac_ct_LIPO="lipo"
7549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550     break 2
7551   fi
7552 done
7553   done
7554 IFS=$as_save_IFS
7555
7556 fi
7557 fi
7558 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7559 if test -n "$ac_ct_LIPO"; then
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7561 $as_echo "$ac_ct_LIPO" >&6; }
7562 else
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7565 fi
7566
7567   if test "x$ac_ct_LIPO" = x; then
7568     LIPO=":"
7569   else
7570     case $cross_compiling:$ac_tool_warned in
7571 yes:)
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7574 ac_tool_warned=yes ;;
7575 esac
7576     LIPO=$ac_ct_LIPO
7577   fi
7578 else
7579   LIPO="$ac_cv_prog_LIPO"
7580 fi
7581
7582     if test -n "$ac_tool_prefix"; then
7583   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7584 set dummy ${ac_tool_prefix}otool; ac_word=$2
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586 $as_echo_n "checking for $ac_word... " >&6; }
7587 if ${ac_cv_prog_OTOOL+:} false; then :
7588   $as_echo_n "(cached) " >&6
7589 else
7590   if test -n "$OTOOL"; then
7591   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7592 else
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596   IFS=$as_save_IFS
7597   test -z "$as_dir" && as_dir=.
7598     for ac_exec_ext in '' $ac_executable_extensions; do
7599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7600     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602     break 2
7603   fi
7604 done
7605   done
7606 IFS=$as_save_IFS
7607
7608 fi
7609 fi
7610 OTOOL=$ac_cv_prog_OTOOL
7611 if test -n "$OTOOL"; then
7612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7613 $as_echo "$OTOOL" >&6; }
7614 else
7615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7617 fi
7618
7619
7620 fi
7621 if test -z "$ac_cv_prog_OTOOL"; then
7622   ac_ct_OTOOL=$OTOOL
7623   # Extract the first word of "otool", so it can be a program name with args.
7624 set dummy otool; ac_word=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7628   $as_echo_n "(cached) " >&6
7629 else
7630   if test -n "$ac_ct_OTOOL"; then
7631   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7632 else
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7635 do
7636   IFS=$as_save_IFS
7637   test -z "$as_dir" && as_dir=.
7638     for ac_exec_ext in '' $ac_executable_extensions; do
7639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7640     ac_cv_prog_ac_ct_OTOOL="otool"
7641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642     break 2
7643   fi
7644 done
7645   done
7646 IFS=$as_save_IFS
7647
7648 fi
7649 fi
7650 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7651 if test -n "$ac_ct_OTOOL"; then
7652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7653 $as_echo "$ac_ct_OTOOL" >&6; }
7654 else
7655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7657 fi
7658
7659   if test "x$ac_ct_OTOOL" = x; then
7660     OTOOL=":"
7661   else
7662     case $cross_compiling:$ac_tool_warned in
7663 yes:)
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7666 ac_tool_warned=yes ;;
7667 esac
7668     OTOOL=$ac_ct_OTOOL
7669   fi
7670 else
7671   OTOOL="$ac_cv_prog_OTOOL"
7672 fi
7673
7674     if test -n "$ac_tool_prefix"; then
7675   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7676 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678 $as_echo_n "checking for $ac_word... " >&6; }
7679 if ${ac_cv_prog_OTOOL64+:} false; then :
7680   $as_echo_n "(cached) " >&6
7681 else
7682   if test -n "$OTOOL64"; then
7683   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688   IFS=$as_save_IFS
7689   test -z "$as_dir" && as_dir=.
7690     for ac_exec_ext in '' $ac_executable_extensions; do
7691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7692     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694     break 2
7695   fi
7696 done
7697   done
7698 IFS=$as_save_IFS
7699
7700 fi
7701 fi
7702 OTOOL64=$ac_cv_prog_OTOOL64
7703 if test -n "$OTOOL64"; then
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7705 $as_echo "$OTOOL64" >&6; }
7706 else
7707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 fi
7710
7711
7712 fi
7713 if test -z "$ac_cv_prog_OTOOL64"; then
7714   ac_ct_OTOOL64=$OTOOL64
7715   # Extract the first word of "otool64", so it can be a program name with args.
7716 set dummy otool64; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722   if test -n "$ac_ct_OTOOL64"; then
7723   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728   IFS=$as_save_IFS
7729   test -z "$as_dir" && as_dir=.
7730     for ac_exec_ext in '' $ac_executable_extensions; do
7731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7732     ac_cv_prog_ac_ct_OTOOL64="otool64"
7733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734     break 2
7735   fi
7736 done
7737   done
7738 IFS=$as_save_IFS
7739
7740 fi
7741 fi
7742 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7743 if test -n "$ac_ct_OTOOL64"; then
7744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7745 $as_echo "$ac_ct_OTOOL64" >&6; }
7746 else
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7749 fi
7750
7751   if test "x$ac_ct_OTOOL64" = x; then
7752     OTOOL64=":"
7753   else
7754     case $cross_compiling:$ac_tool_warned in
7755 yes:)
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7758 ac_tool_warned=yes ;;
7759 esac
7760     OTOOL64=$ac_ct_OTOOL64
7761   fi
7762 else
7763   OTOOL64="$ac_cv_prog_OTOOL64"
7764 fi
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7793 $as_echo_n "checking for -single_module linker flag... " >&6; }
7794 if ${lt_cv_apple_cc_single_mod+:} false; then :
7795   $as_echo_n "(cached) " >&6
7796 else
7797   lt_cv_apple_cc_single_mod=no
7798       if test -z "${LT_MULTI_MODULE}"; then
7799         # By default we will add the -single_module flag. You can override
7800         # by either setting the environment variable LT_MULTI_MODULE
7801         # non-empty at configure time, or by adding -multi_module to the
7802         # link flags.
7803         rm -rf libconftest.dylib*
7804         echo "int foo(void){return 1;}" > conftest.c
7805         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7806 -dynamiclib -Wl,-single_module conftest.c" >&5
7807         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7808           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7809         _lt_result=$?
7810         # If there is a non-empty error log, and "single_module"
7811         # appears in it, assume the flag caused a linker warning
7812         if test -s conftest.err && $GREP single_module conftest.err; then
7813           cat conftest.err >&5
7814         # Otherwise, if the output was created with a 0 exit code from
7815         # the compiler, it worked.
7816         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7817           lt_cv_apple_cc_single_mod=yes
7818         else
7819           cat conftest.err >&5
7820         fi
7821         rm -rf libconftest.dylib*
7822         rm -f conftest.*
7823       fi
7824 fi
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7826 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7827
7828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7829 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7830 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7831   $as_echo_n "(cached) " >&6
7832 else
7833   lt_cv_ld_exported_symbols_list=no
7834       save_LDFLAGS=$LDFLAGS
7835       echo "_main" > conftest.sym
7836       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7837       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h.  */
7839
7840 int
7841 main ()
7842 {
7843
7844   ;
7845   return 0;
7846 }
7847 _ACEOF
7848 if ac_fn_c_try_link "$LINENO"; then :
7849   lt_cv_ld_exported_symbols_list=yes
7850 else
7851   lt_cv_ld_exported_symbols_list=no
7852 fi
7853 rm -f core conftest.err conftest.$ac_objext \
7854     conftest$ac_exeext conftest.$ac_ext
7855         LDFLAGS="$save_LDFLAGS"
7856
7857 fi
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7859 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7860
7861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7862 $as_echo_n "checking for -force_load linker flag... " >&6; }
7863 if ${lt_cv_ld_force_load+:} false; then :
7864   $as_echo_n "(cached) " >&6
7865 else
7866   lt_cv_ld_force_load=no
7867       cat > conftest.c << _LT_EOF
7868 int forced_loaded() { return 2;}
7869 _LT_EOF
7870       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7871       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7872       echo "$AR cru libconftest.a conftest.o" >&5
7873       $AR cru libconftest.a conftest.o 2>&5
7874       echo "$RANLIB libconftest.a" >&5
7875       $RANLIB libconftest.a 2>&5
7876       cat > conftest.c << _LT_EOF
7877 int main() { return 0;}
7878 _LT_EOF
7879       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7880       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7881       _lt_result=$?
7882       if test -s conftest.err && $GREP force_load conftest.err; then
7883         cat conftest.err >&5
7884       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7885         lt_cv_ld_force_load=yes
7886       else
7887         cat conftest.err >&5
7888       fi
7889         rm -f conftest.err libconftest.a conftest conftest.c
7890         rm -rf conftest.dSYM
7891
7892 fi
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7894 $as_echo "$lt_cv_ld_force_load" >&6; }
7895     case $host_os in
7896     rhapsody* | darwin1.[012])
7897       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7898     darwin1.*)
7899       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7900     darwin*) # darwin 5.x on
7901       # if running on 10.5 or later, the deployment target defaults
7902       # to the OS version, if on x86, and 10.4, the deployment
7903       # target defaults to 10.4. Don't you love it?
7904       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7905         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7906           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7907         10.[012]*)
7908           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7909         10.*)
7910           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7911       esac
7912     ;;
7913   esac
7914     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7915       _lt_dar_single_mod='$single_module'
7916     fi
7917     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7918       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7919     else
7920       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7921     fi
7922     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7923       _lt_dsymutil='~$DSYMUTIL $lib || :'
7924     else
7925       _lt_dsymutil=
7926     fi
7927     ;;
7928   esac
7929
7930 for ac_header in dlfcn.h
7931 do :
7932   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7933 "
7934 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7935   cat >>confdefs.h <<_ACEOF
7936 #define HAVE_DLFCN_H 1
7937 _ACEOF
7938
7939 fi
7940
7941 done
7942
7943
7944
7945
7946
7947 # Set options
7948 # Check whether --enable-static was given.
7949 if test "${enable_static+set}" = set; then :
7950   enableval=$enable_static; p=${PACKAGE-default}
7951     case $enableval in
7952     yes) enable_static=yes ;;
7953     no) enable_static=no ;;
7954     *)
7955      enable_static=no
7956       # Look at the argument we got.  We use all the common list separators.
7957       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7958       for pkg in $enableval; do
7959         IFS="$lt_save_ifs"
7960         if test "X$pkg" = "X$p"; then
7961           enable_static=yes
7962         fi
7963       done
7964       IFS="$lt_save_ifs"
7965       ;;
7966     esac
7967 else
7968   enable_static=no
7969 fi
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980         enable_dlopen=no
7981
7982
7983   enable_win32_dll=no
7984
7985
7986             # Check whether --enable-shared was given.
7987 if test "${enable_shared+set}" = set; then :
7988   enableval=$enable_shared; p=${PACKAGE-default}
7989     case $enableval in
7990     yes) enable_shared=yes ;;
7991     no) enable_shared=no ;;
7992     *)
7993       enable_shared=no
7994       # Look at the argument we got.  We use all the common list separators.
7995       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7996       for pkg in $enableval; do
7997         IFS="$lt_save_ifs"
7998         if test "X$pkg" = "X$p"; then
7999           enable_shared=yes
8000         fi
8001       done
8002       IFS="$lt_save_ifs"
8003       ;;
8004     esac
8005 else
8006   enable_shared=yes
8007 fi
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019 # Check whether --with-pic was given.
8020 if test "${with_pic+set}" = set; then :
8021   withval=$with_pic; lt_p=${PACKAGE-default}
8022     case $withval in
8023     yes|no) pic_mode=$withval ;;
8024     *)
8025       pic_mode=default
8026       # Look at the argument we got.  We use all the common list separators.
8027       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8028       for lt_pkg in $withval; do
8029         IFS="$lt_save_ifs"
8030         if test "X$lt_pkg" = "X$lt_p"; then
8031           pic_mode=yes
8032         fi
8033       done
8034       IFS="$lt_save_ifs"
8035       ;;
8036     esac
8037 else
8038   pic_mode=default
8039 fi
8040
8041
8042 test -z "$pic_mode" && pic_mode=default
8043
8044
8045
8046
8047
8048
8049
8050   # Check whether --enable-fast-install was given.
8051 if test "${enable_fast_install+set}" = set; then :
8052   enableval=$enable_fast_install; p=${PACKAGE-default}
8053     case $enableval in
8054     yes) enable_fast_install=yes ;;
8055     no) enable_fast_install=no ;;
8056     *)
8057       enable_fast_install=no
8058       # Look at the argument we got.  We use all the common list separators.
8059       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8060       for pkg in $enableval; do
8061         IFS="$lt_save_ifs"
8062         if test "X$pkg" = "X$p"; then
8063           enable_fast_install=yes
8064         fi
8065       done
8066       IFS="$lt_save_ifs"
8067       ;;
8068     esac
8069 else
8070   enable_fast_install=yes
8071 fi
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083 # This can be used to rebuild libtool when needed
8084 LIBTOOL_DEPS="$ltmain"
8085
8086 # Always use our own libtool.
8087 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118 test -z "$LN_S" && LN_S="ln -s"
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133 if test -n "${ZSH_VERSION+set}" ; then
8134    setopt NO_GLOB_SUBST
8135 fi
8136
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8138 $as_echo_n "checking for objdir... " >&6; }
8139 if ${lt_cv_objdir+:} false; then :
8140   $as_echo_n "(cached) " >&6
8141 else
8142   rm -f .libs 2>/dev/null
8143 mkdir .libs 2>/dev/null
8144 if test -d .libs; then
8145   lt_cv_objdir=.libs
8146 else
8147   # MS-DOS does not allow filenames that begin with a dot.
8148   lt_cv_objdir=_libs
8149 fi
8150 rmdir .libs 2>/dev/null
8151 fi
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8153 $as_echo "$lt_cv_objdir" >&6; }
8154 objdir=$lt_cv_objdir
8155
8156
8157
8158
8159
8160 cat >>confdefs.h <<_ACEOF
8161 #define LT_OBJDIR "$lt_cv_objdir/"
8162 _ACEOF
8163
8164
8165
8166
8167 case $host_os in
8168 aix3*)
8169   # AIX sometimes has problems with the GCC collect2 program.  For some
8170   # reason, if we set the COLLECT_NAMES environment variable, the problems
8171   # vanish in a puff of smoke.
8172   if test "X${COLLECT_NAMES+set}" != Xset; then
8173     COLLECT_NAMES=
8174     export COLLECT_NAMES
8175   fi
8176   ;;
8177 esac
8178
8179 # Global variables:
8180 ofile=libtool
8181 can_build_shared=yes
8182
8183 # All known linkers require a `.a' archive for static linking (except MSVC,
8184 # which needs '.lib').
8185 libext=a
8186
8187 with_gnu_ld="$lt_cv_prog_gnu_ld"
8188
8189 old_CC="$CC"
8190 old_CFLAGS="$CFLAGS"
8191
8192 # Set sane defaults for various variables
8193 test -z "$CC" && CC=cc
8194 test -z "$LTCC" && LTCC=$CC
8195 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8196 test -z "$LD" && LD=ld
8197 test -z "$ac_objext" && ac_objext=o
8198
8199 for cc_temp in $compiler""; do
8200   case $cc_temp in
8201     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8202     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8203     \-*) ;;
8204     *) break;;
8205   esac
8206 done
8207 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8208
8209
8210 # Only perform the check for file, if the check method requires it
8211 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8212 case $deplibs_check_method in
8213 file_magic*)
8214   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8215     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8216 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8217 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8218   $as_echo_n "(cached) " >&6
8219 else
8220   case $MAGIC_CMD in
8221 [\\/*] |  ?:[\\/]*)
8222   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8223   ;;
8224 *)
8225   lt_save_MAGIC_CMD="$MAGIC_CMD"
8226   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8227   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8228   for ac_dir in $ac_dummy; do
8229     IFS="$lt_save_ifs"
8230     test -z "$ac_dir" && ac_dir=.
8231     if test -f $ac_dir/${ac_tool_prefix}file; then
8232       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8233       if test -n "$file_magic_test_file"; then
8234         case $deplibs_check_method in
8235         "file_magic "*)
8236           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8237           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8238           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8239             $EGREP "$file_magic_regex" > /dev/null; then
8240             :
8241           else
8242             cat <<_LT_EOF 1>&2
8243
8244 *** Warning: the command libtool uses to detect shared libraries,
8245 *** $file_magic_cmd, produces output that libtool cannot recognize.
8246 *** The result is that libtool may fail to recognize shared libraries
8247 *** as such.  This will affect the creation of libtool libraries that
8248 *** depend on shared libraries, but programs linked with such libtool
8249 *** libraries will work regardless of this problem.  Nevertheless, you
8250 *** may want to report the problem to your system manager and/or to
8251 *** bug-libtool@gnu.org
8252
8253 _LT_EOF
8254           fi ;;
8255         esac
8256       fi
8257       break
8258     fi
8259   done
8260   IFS="$lt_save_ifs"
8261   MAGIC_CMD="$lt_save_MAGIC_CMD"
8262   ;;
8263 esac
8264 fi
8265
8266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8267 if test -n "$MAGIC_CMD"; then
8268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8269 $as_echo "$MAGIC_CMD" >&6; }
8270 else
8271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272 $as_echo "no" >&6; }
8273 fi
8274
8275
8276
8277
8278
8279 if test -z "$lt_cv_path_MAGIC_CMD"; then
8280   if test -n "$ac_tool_prefix"; then
8281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8282 $as_echo_n "checking for file... " >&6; }
8283 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8284   $as_echo_n "(cached) " >&6
8285 else
8286   case $MAGIC_CMD in
8287 [\\/*] |  ?:[\\/]*)
8288   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8289   ;;
8290 *)
8291   lt_save_MAGIC_CMD="$MAGIC_CMD"
8292   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8293   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8294   for ac_dir in $ac_dummy; do
8295     IFS="$lt_save_ifs"
8296     test -z "$ac_dir" && ac_dir=.
8297     if test -f $ac_dir/file; then
8298       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8299       if test -n "$file_magic_test_file"; then
8300         case $deplibs_check_method in
8301         "file_magic "*)
8302           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8303           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8304           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8305             $EGREP "$file_magic_regex" > /dev/null; then
8306             :
8307           else
8308             cat <<_LT_EOF 1>&2
8309
8310 *** Warning: the command libtool uses to detect shared libraries,
8311 *** $file_magic_cmd, produces output that libtool cannot recognize.
8312 *** The result is that libtool may fail to recognize shared libraries
8313 *** as such.  This will affect the creation of libtool libraries that
8314 *** depend on shared libraries, but programs linked with such libtool
8315 *** libraries will work regardless of this problem.  Nevertheless, you
8316 *** may want to report the problem to your system manager and/or to
8317 *** bug-libtool@gnu.org
8318
8319 _LT_EOF
8320           fi ;;
8321         esac
8322       fi
8323       break
8324     fi
8325   done
8326   IFS="$lt_save_ifs"
8327   MAGIC_CMD="$lt_save_MAGIC_CMD"
8328   ;;
8329 esac
8330 fi
8331
8332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8333 if test -n "$MAGIC_CMD"; then
8334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8335 $as_echo "$MAGIC_CMD" >&6; }
8336 else
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8339 fi
8340
8341
8342   else
8343     MAGIC_CMD=:
8344   fi
8345 fi
8346
8347   fi
8348   ;;
8349 esac
8350
8351 # Use C for the default configuration in the libtool script
8352
8353 lt_save_CC="$CC"
8354 ac_ext=c
8355 ac_cpp='$CPP $CPPFLAGS'
8356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8359
8360
8361 # Source file extension for C test sources.
8362 ac_ext=c
8363
8364 # Object file extension for compiled C test sources.
8365 objext=o
8366 objext=$objext
8367
8368 # Code to be used in simple compile tests
8369 lt_simple_compile_test_code="int some_variable = 0;"
8370
8371 # Code to be used in simple link tests
8372 lt_simple_link_test_code='int main(){return(0);}'
8373
8374
8375
8376
8377
8378
8379
8380 # If no C compiler was specified, use CC.
8381 LTCC=${LTCC-"$CC"}
8382
8383 # If no C compiler flags were specified, use CFLAGS.
8384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8385
8386 # Allow CC to be a program name with arguments.
8387 compiler=$CC
8388
8389 # Save the default compiler, since it gets overwritten when the other
8390 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8391 compiler_DEFAULT=$CC
8392
8393 # save warnings/boilerplate of simple test code
8394 ac_outfile=conftest.$ac_objext
8395 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8396 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8397 _lt_compiler_boilerplate=`cat conftest.err`
8398 $RM conftest*
8399
8400 ac_outfile=conftest.$ac_objext
8401 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8402 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8403 _lt_linker_boilerplate=`cat conftest.err`
8404 $RM -r conftest*
8405
8406
8407 ## CAVEAT EMPTOR:
8408 ## There is no encapsulation within the following macros, do not change
8409 ## the running order or otherwise move them around unless you know exactly
8410 ## what you are doing...
8411 if test -n "$compiler"; then
8412
8413 lt_prog_compiler_no_builtin_flag=
8414
8415 if test "$GCC" = yes; then
8416   case $cc_basename in
8417   nvcc*)
8418     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8419   *)
8420     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8421   esac
8422
8423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8424 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8425 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8426   $as_echo_n "(cached) " >&6
8427 else
8428   lt_cv_prog_compiler_rtti_exceptions=no
8429    ac_outfile=conftest.$ac_objext
8430    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8431    lt_compiler_flag="-fno-rtti -fno-exceptions"
8432    # Insert the option either (1) after the last *FLAGS variable, or
8433    # (2) before a word containing "conftest.", or (3) at the end.
8434    # Note that $ac_compile itself does not contain backslashes and begins
8435    # with a dollar sign (not a hyphen), so the echo should work correctly.
8436    # The option is referenced via a variable to avoid confusing sed.
8437    lt_compile=`echo "$ac_compile" | $SED \
8438    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8439    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8440    -e 's:$: $lt_compiler_flag:'`
8441    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8442    (eval "$lt_compile" 2>conftest.err)
8443    ac_status=$?
8444    cat conftest.err >&5
8445    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446    if (exit $ac_status) && test -s "$ac_outfile"; then
8447      # The compiler can only warn and ignore the option if not recognized
8448      # So say no if there are warnings other than the usual output.
8449      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8450      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8451      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8452        lt_cv_prog_compiler_rtti_exceptions=yes
8453      fi
8454    fi
8455    $RM conftest*
8456
8457 fi
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8459 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8460
8461 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8462     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8463 else
8464     :
8465 fi
8466
8467 fi
8468
8469
8470
8471
8472
8473
8474   lt_prog_compiler_wl=
8475 lt_prog_compiler_pic=
8476 lt_prog_compiler_static=
8477
8478
8479   if test "$GCC" = yes; then
8480     lt_prog_compiler_wl='-Wl,'
8481     lt_prog_compiler_static='-static'
8482
8483     case $host_os in
8484       aix*)
8485       # All AIX code is PIC.
8486       if test "$host_cpu" = ia64; then
8487         # AIX 5 now supports IA64 processor
8488         lt_prog_compiler_static='-Bstatic'
8489       fi
8490       ;;
8491
8492     amigaos*)
8493       case $host_cpu in
8494       powerpc)
8495             # see comment about AmigaOS4 .so support
8496             lt_prog_compiler_pic='-fPIC'
8497         ;;
8498       m68k)
8499             # FIXME: we need at least 68020 code to build shared libraries, but
8500             # adding the `-m68020' flag to GCC prevents building anything better,
8501             # like `-m68040'.
8502             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8503         ;;
8504       esac
8505       ;;
8506
8507     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8508       # PIC is the default for these OSes.
8509       ;;
8510
8511     mingw* | cygwin* | pw32* | os2* | cegcc*)
8512       # This hack is so that the source file can tell whether it is being
8513       # built for inclusion in a dll (and should export symbols for example).
8514       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8515       # (--disable-auto-import) libraries
8516       lt_prog_compiler_pic='-DDLL_EXPORT'
8517       ;;
8518
8519     darwin* | rhapsody*)
8520       # PIC is the default on this platform
8521       # Common symbols not allowed in MH_DYLIB files
8522       lt_prog_compiler_pic='-fno-common'
8523       ;;
8524
8525     haiku*)
8526       # PIC is the default for Haiku.
8527       # The "-static" flag exists, but is broken.
8528       lt_prog_compiler_static=
8529       ;;
8530
8531     hpux*)
8532       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8533       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8534       # sets the default TLS model and affects inlining.
8535       case $host_cpu in
8536       hppa*64*)
8537         # +Z the default
8538         ;;
8539       *)
8540         lt_prog_compiler_pic='-fPIC'
8541         ;;
8542       esac
8543       ;;
8544
8545     interix[3-9]*)
8546       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8547       # Instead, we relocate shared libraries at runtime.
8548       ;;
8549
8550     msdosdjgpp*)
8551       # Just because we use GCC doesn't mean we suddenly get shared libraries
8552       # on systems that don't support them.
8553       lt_prog_compiler_can_build_shared=no
8554       enable_shared=no
8555       ;;
8556
8557     *nto* | *qnx*)
8558       # QNX uses GNU C++, but need to define -shared option too, otherwise
8559       # it will coredump.
8560       lt_prog_compiler_pic='-fPIC -shared'
8561       ;;
8562
8563     sysv4*MP*)
8564       if test -d /usr/nec; then
8565         lt_prog_compiler_pic=-Kconform_pic
8566       fi
8567       ;;
8568
8569     *)
8570       lt_prog_compiler_pic='-fPIC'
8571       ;;
8572     esac
8573
8574     case $cc_basename in
8575     nvcc*) # Cuda Compiler Driver 2.2
8576       lt_prog_compiler_wl='-Xlinker '
8577       if test -n "$lt_prog_compiler_pic"; then
8578         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8579       fi
8580       ;;
8581     esac
8582   else
8583     # PORTME Check for flag to pass linker flags through the system compiler.
8584     case $host_os in
8585     aix*)
8586       lt_prog_compiler_wl='-Wl,'
8587       if test "$host_cpu" = ia64; then
8588         # AIX 5 now supports IA64 processor
8589         lt_prog_compiler_static='-Bstatic'
8590       else
8591         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8592       fi
8593       ;;
8594
8595     mingw* | cygwin* | pw32* | os2* | cegcc*)
8596       # This hack is so that the source file can tell whether it is being
8597       # built for inclusion in a dll (and should export symbols for example).
8598       lt_prog_compiler_pic='-DDLL_EXPORT'
8599       ;;
8600
8601     hpux9* | hpux10* | hpux11*)
8602       lt_prog_compiler_wl='-Wl,'
8603       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8604       # not for PA HP-UX.
8605       case $host_cpu in
8606       hppa*64*|ia64*)
8607         # +Z the default
8608         ;;
8609       *)
8610         lt_prog_compiler_pic='+Z'
8611         ;;
8612       esac
8613       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8614       lt_prog_compiler_static='${wl}-a ${wl}archive'
8615       ;;
8616
8617     irix5* | irix6* | nonstopux*)
8618       lt_prog_compiler_wl='-Wl,'
8619       # PIC (with -KPIC) is the default.
8620       lt_prog_compiler_static='-non_shared'
8621       ;;
8622
8623     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8624       case $cc_basename in
8625       # old Intel for x86_64 which still supported -KPIC.
8626       ecc*)
8627         lt_prog_compiler_wl='-Wl,'
8628         lt_prog_compiler_pic='-KPIC'
8629         lt_prog_compiler_static='-static'
8630         ;;
8631       # icc used to be incompatible with GCC.
8632       # ICC 10 doesn't accept -KPIC any more.
8633       icc* | ifort*)
8634         lt_prog_compiler_wl='-Wl,'
8635         lt_prog_compiler_pic='-fPIC'
8636         lt_prog_compiler_static='-static'
8637         ;;
8638       # Lahey Fortran 8.1.
8639       lf95*)
8640         lt_prog_compiler_wl='-Wl,'
8641         lt_prog_compiler_pic='--shared'
8642         lt_prog_compiler_static='--static'
8643         ;;
8644       nagfor*)
8645         # NAG Fortran compiler
8646         lt_prog_compiler_wl='-Wl,-Wl,,'
8647         lt_prog_compiler_pic='-PIC'
8648         lt_prog_compiler_static='-Bstatic'
8649         ;;
8650       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8651         # Portland Group compilers (*not* the Pentium gcc compiler,
8652         # which looks to be a dead project)
8653         lt_prog_compiler_wl='-Wl,'
8654         lt_prog_compiler_pic='-fpic'
8655         lt_prog_compiler_static='-Bstatic'
8656         ;;
8657       ccc*)
8658         lt_prog_compiler_wl='-Wl,'
8659         # All Alpha code is PIC.
8660         lt_prog_compiler_static='-non_shared'
8661         ;;
8662       xl* | bgxl* | bgf* | mpixl*)
8663         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8664         lt_prog_compiler_wl='-Wl,'
8665         lt_prog_compiler_pic='-qpic'
8666         lt_prog_compiler_static='-qstaticlink'
8667         ;;
8668       *)
8669         case `$CC -V 2>&1 | sed 5q` in
8670         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8671           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8672           lt_prog_compiler_pic='-KPIC'
8673           lt_prog_compiler_static='-Bstatic'
8674           lt_prog_compiler_wl=''
8675           ;;
8676         *Sun\ F* | *Sun*Fortran*)
8677           lt_prog_compiler_pic='-KPIC'
8678           lt_prog_compiler_static='-Bstatic'
8679           lt_prog_compiler_wl='-Qoption ld '
8680           ;;
8681         *Sun\ C*)
8682           # Sun C 5.9
8683           lt_prog_compiler_pic='-KPIC'
8684           lt_prog_compiler_static='-Bstatic'
8685           lt_prog_compiler_wl='-Wl,'
8686           ;;
8687         *Intel*\ [CF]*Compiler*)
8688           lt_prog_compiler_wl='-Wl,'
8689           lt_prog_compiler_pic='-fPIC'
8690           lt_prog_compiler_static='-static'
8691           ;;
8692         *Portland\ Group*)
8693           lt_prog_compiler_wl='-Wl,'
8694           lt_prog_compiler_pic='-fpic'
8695           lt_prog_compiler_static='-Bstatic'
8696           ;;
8697         esac
8698         ;;
8699       esac
8700       ;;
8701
8702     newsos6)
8703       lt_prog_compiler_pic='-KPIC'
8704       lt_prog_compiler_static='-Bstatic'
8705       ;;
8706
8707     *nto* | *qnx*)
8708       # QNX uses GNU C++, but need to define -shared option too, otherwise
8709       # it will coredump.
8710       lt_prog_compiler_pic='-fPIC -shared'
8711       ;;
8712
8713     osf3* | osf4* | osf5*)
8714       lt_prog_compiler_wl='-Wl,'
8715       # All OSF/1 code is PIC.
8716       lt_prog_compiler_static='-non_shared'
8717       ;;
8718
8719     rdos*)
8720       lt_prog_compiler_static='-non_shared'
8721       ;;
8722
8723     solaris*)
8724       lt_prog_compiler_pic='-KPIC'
8725       lt_prog_compiler_static='-Bstatic'
8726       case $cc_basename in
8727       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8728         lt_prog_compiler_wl='-Qoption ld ';;
8729       *)
8730         lt_prog_compiler_wl='-Wl,';;
8731       esac
8732       ;;
8733
8734     sunos4*)
8735       lt_prog_compiler_wl='-Qoption ld '
8736       lt_prog_compiler_pic='-PIC'
8737       lt_prog_compiler_static='-Bstatic'
8738       ;;
8739
8740     sysv4 | sysv4.2uw2* | sysv4.3*)
8741       lt_prog_compiler_wl='-Wl,'
8742       lt_prog_compiler_pic='-KPIC'
8743       lt_prog_compiler_static='-Bstatic'
8744       ;;
8745
8746     sysv4*MP*)
8747       if test -d /usr/nec ;then
8748         lt_prog_compiler_pic='-Kconform_pic'
8749         lt_prog_compiler_static='-Bstatic'
8750       fi
8751       ;;
8752
8753     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8754       lt_prog_compiler_wl='-Wl,'
8755       lt_prog_compiler_pic='-KPIC'
8756       lt_prog_compiler_static='-Bstatic'
8757       ;;
8758
8759     unicos*)
8760       lt_prog_compiler_wl='-Wl,'
8761       lt_prog_compiler_can_build_shared=no
8762       ;;
8763
8764     uts4*)
8765       lt_prog_compiler_pic='-pic'
8766       lt_prog_compiler_static='-Bstatic'
8767       ;;
8768
8769     *)
8770       lt_prog_compiler_can_build_shared=no
8771       ;;
8772     esac
8773   fi
8774
8775 case $host_os in
8776   # For platforms which do not support PIC, -DPIC is meaningless:
8777   *djgpp*)
8778     lt_prog_compiler_pic=
8779     ;;
8780   *)
8781     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8782     ;;
8783 esac
8784
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8786 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8787 if ${lt_cv_prog_compiler_pic+:} false; then :
8788   $as_echo_n "(cached) " >&6
8789 else
8790   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8791 fi
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8793 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8794 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8795
8796 #
8797 # Check to make sure the PIC flag actually works.
8798 #
8799 if test -n "$lt_prog_compiler_pic"; then
8800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8801 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8802 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8803   $as_echo_n "(cached) " >&6
8804 else
8805   lt_cv_prog_compiler_pic_works=no
8806    ac_outfile=conftest.$ac_objext
8807    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8808    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8809    # Insert the option either (1) after the last *FLAGS variable, or
8810    # (2) before a word containing "conftest.", or (3) at the end.
8811    # Note that $ac_compile itself does not contain backslashes and begins
8812    # with a dollar sign (not a hyphen), so the echo should work correctly.
8813    # The option is referenced via a variable to avoid confusing sed.
8814    lt_compile=`echo "$ac_compile" | $SED \
8815    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8816    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8817    -e 's:$: $lt_compiler_flag:'`
8818    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8819    (eval "$lt_compile" 2>conftest.err)
8820    ac_status=$?
8821    cat conftest.err >&5
8822    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823    if (exit $ac_status) && test -s "$ac_outfile"; then
8824      # The compiler can only warn and ignore the option if not recognized
8825      # So say no if there are warnings other than the usual output.
8826      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8827      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8828      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8829        lt_cv_prog_compiler_pic_works=yes
8830      fi
8831    fi
8832    $RM conftest*
8833
8834 fi
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8836 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8837
8838 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8839     case $lt_prog_compiler_pic in
8840      "" | " "*) ;;
8841      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8842      esac
8843 else
8844     lt_prog_compiler_pic=
8845      lt_prog_compiler_can_build_shared=no
8846 fi
8847
8848 fi
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860 #
8861 # Check to make sure the static flag actually works.
8862 #
8863 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8865 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8866 if ${lt_cv_prog_compiler_static_works+:} false; then :
8867   $as_echo_n "(cached) " >&6
8868 else
8869   lt_cv_prog_compiler_static_works=no
8870    save_LDFLAGS="$LDFLAGS"
8871    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8872    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8873    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8874      # The linker can only warn and ignore the option if not recognized
8875      # So say no if there are warnings
8876      if test -s conftest.err; then
8877        # Append any errors to the config.log.
8878        cat conftest.err 1>&5
8879        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8880        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8881        if diff conftest.exp conftest.er2 >/dev/null; then
8882          lt_cv_prog_compiler_static_works=yes
8883        fi
8884      else
8885        lt_cv_prog_compiler_static_works=yes
8886      fi
8887    fi
8888    $RM -r conftest*
8889    LDFLAGS="$save_LDFLAGS"
8890
8891 fi
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8893 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8894
8895 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8896     :
8897 else
8898     lt_prog_compiler_static=
8899 fi
8900
8901
8902
8903
8904
8905
8906
8907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8908 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8909 if ${lt_cv_prog_compiler_c_o+:} false; then :
8910   $as_echo_n "(cached) " >&6
8911 else
8912   lt_cv_prog_compiler_c_o=no
8913    $RM -r conftest 2>/dev/null
8914    mkdir conftest
8915    cd conftest
8916    mkdir out
8917    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8918
8919    lt_compiler_flag="-o out/conftest2.$ac_objext"
8920    # Insert the option either (1) after the last *FLAGS variable, or
8921    # (2) before a word containing "conftest.", or (3) at the end.
8922    # Note that $ac_compile itself does not contain backslashes and begins
8923    # with a dollar sign (not a hyphen), so the echo should work correctly.
8924    lt_compile=`echo "$ac_compile" | $SED \
8925    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8926    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8927    -e 's:$: $lt_compiler_flag:'`
8928    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8929    (eval "$lt_compile" 2>out/conftest.err)
8930    ac_status=$?
8931    cat out/conftest.err >&5
8932    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8934    then
8935      # The compiler can only warn and ignore the option if not recognized
8936      # So say no if there are warnings
8937      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8938      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8939      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8940        lt_cv_prog_compiler_c_o=yes
8941      fi
8942    fi
8943    chmod u+w . 2>&5
8944    $RM conftest*
8945    # SGI C++ compiler will create directory out/ii_files/ for
8946    # template instantiation
8947    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8948    $RM out/* && rmdir out
8949    cd ..
8950    $RM -r conftest
8951    $RM conftest*
8952
8953 fi
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8955 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8956
8957
8958
8959
8960
8961
8962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8963 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8964 if ${lt_cv_prog_compiler_c_o+:} false; then :
8965   $as_echo_n "(cached) " >&6
8966 else
8967   lt_cv_prog_compiler_c_o=no
8968    $RM -r conftest 2>/dev/null
8969    mkdir conftest
8970    cd conftest
8971    mkdir out
8972    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8973
8974    lt_compiler_flag="-o out/conftest2.$ac_objext"
8975    # Insert the option either (1) after the last *FLAGS variable, or
8976    # (2) before a word containing "conftest.", or (3) at the end.
8977    # Note that $ac_compile itself does not contain backslashes and begins
8978    # with a dollar sign (not a hyphen), so the echo should work correctly.
8979    lt_compile=`echo "$ac_compile" | $SED \
8980    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8981    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8982    -e 's:$: $lt_compiler_flag:'`
8983    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8984    (eval "$lt_compile" 2>out/conftest.err)
8985    ac_status=$?
8986    cat out/conftest.err >&5
8987    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8989    then
8990      # The compiler can only warn and ignore the option if not recognized
8991      # So say no if there are warnings
8992      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8993      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8994      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8995        lt_cv_prog_compiler_c_o=yes
8996      fi
8997    fi
8998    chmod u+w . 2>&5
8999    $RM conftest*
9000    # SGI C++ compiler will create directory out/ii_files/ for
9001    # template instantiation
9002    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9003    $RM out/* && rmdir out
9004    cd ..
9005    $RM -r conftest
9006    $RM conftest*
9007
9008 fi
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9010 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9011
9012
9013
9014
9015 hard_links="nottested"
9016 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9017   # do not overwrite the value of need_locks provided by the user
9018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9019 $as_echo_n "checking if we can lock with hard links... " >&6; }
9020   hard_links=yes
9021   $RM conftest*
9022   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9023   touch conftest.a
9024   ln conftest.a conftest.b 2>&5 || hard_links=no
9025   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9027 $as_echo "$hard_links" >&6; }
9028   if test "$hard_links" = no; then
9029     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9030 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9031     need_locks=warn
9032   fi
9033 else
9034   need_locks=no
9035 fi
9036
9037
9038
9039
9040
9041
9042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9043 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9044
9045   runpath_var=
9046   allow_undefined_flag=
9047   always_export_symbols=no
9048   archive_cmds=
9049   archive_expsym_cmds=
9050   compiler_needs_object=no
9051   enable_shared_with_static_runtimes=no
9052   export_dynamic_flag_spec=
9053   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9054   hardcode_automatic=no
9055   hardcode_direct=no
9056   hardcode_direct_absolute=no
9057   hardcode_libdir_flag_spec=
9058   hardcode_libdir_separator=
9059   hardcode_minus_L=no
9060   hardcode_shlibpath_var=unsupported
9061   inherit_rpath=no
9062   link_all_deplibs=unknown
9063   module_cmds=
9064   module_expsym_cmds=
9065   old_archive_from_new_cmds=
9066   old_archive_from_expsyms_cmds=
9067   thread_safe_flag_spec=
9068   whole_archive_flag_spec=
9069   # include_expsyms should be a list of space-separated symbols to be *always*
9070   # included in the symbol list
9071   include_expsyms=
9072   # exclude_expsyms can be an extended regexp of symbols to exclude
9073   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9074   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9075   # as well as any symbol that contains `d'.
9076   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9077   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9078   # platforms (ab)use it in PIC code, but their linkers get confused if
9079   # the symbol is explicitly referenced.  Since portable code cannot
9080   # rely on this symbol name, it's probably fine to never include it in
9081   # preloaded symbol tables.
9082   # Exclude shared library initialization/finalization symbols.
9083   extract_expsyms_cmds=
9084
9085   case $host_os in
9086   cygwin* | mingw* | pw32* | cegcc*)
9087     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9088     # When not using gcc, we currently assume that we are using
9089     # Microsoft Visual C++.
9090     if test "$GCC" != yes; then
9091       with_gnu_ld=no
9092     fi
9093     ;;
9094   interix*)
9095     # we just hope/assume this is gcc and not c89 (= MSVC++)
9096     with_gnu_ld=yes
9097     ;;
9098   openbsd*)
9099     with_gnu_ld=no
9100     ;;
9101   linux* | k*bsd*-gnu | gnu*)
9102     link_all_deplibs=no
9103     ;;
9104   esac
9105
9106   ld_shlibs=yes
9107
9108   # On some targets, GNU ld is compatible enough with the native linker
9109   # that we're better off using the native interface for both.
9110   lt_use_gnu_ld_interface=no
9111   if test "$with_gnu_ld" = yes; then
9112     case $host_os in
9113       aix*)
9114         # The AIX port of GNU ld has always aspired to compatibility
9115         # with the native linker.  However, as the warning in the GNU ld
9116         # block says, versions before 2.19.5* couldn't really create working
9117         # shared libraries, regardless of the interface used.
9118         case `$LD -v 2>&1` in
9119           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9120           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9121           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9122           *)
9123             lt_use_gnu_ld_interface=yes
9124             ;;
9125         esac
9126         ;;
9127       *)
9128         lt_use_gnu_ld_interface=yes
9129         ;;
9130     esac
9131   fi
9132
9133   if test "$lt_use_gnu_ld_interface" = yes; then
9134     # If archive_cmds runs LD, not CC, wlarc should be empty
9135     wlarc='${wl}'
9136
9137     # Set some defaults for GNU ld with shared library support. These
9138     # are reset later if shared libraries are not supported. Putting them
9139     # here allows them to be overridden if necessary.
9140     runpath_var=LD_RUN_PATH
9141     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9142     export_dynamic_flag_spec='${wl}--export-dynamic'
9143     # ancient GNU ld didn't support --whole-archive et. al.
9144     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9145       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9146     else
9147       whole_archive_flag_spec=
9148     fi
9149     supports_anon_versioning=no
9150     case `$LD -v 2>&1` in
9151       *GNU\ gold*) supports_anon_versioning=yes ;;
9152       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9153       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9154       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9155       *\ 2.11.*) ;; # other 2.11 versions
9156       *) supports_anon_versioning=yes ;;
9157     esac
9158
9159     # See if GNU ld supports shared libraries.
9160     case $host_os in
9161     aix[3-9]*)
9162       # On AIX/PPC, the GNU linker is very broken
9163       if test "$host_cpu" != ia64; then
9164         ld_shlibs=no
9165         cat <<_LT_EOF 1>&2
9166
9167 *** Warning: the GNU linker, at least up to release 2.19, is reported
9168 *** to be unable to reliably create shared libraries on AIX.
9169 *** Therefore, libtool is disabling shared libraries support.  If you
9170 *** really care for shared libraries, you may want to install binutils
9171 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9172 *** You will then need to restart the configuration process.
9173
9174 _LT_EOF
9175       fi
9176       ;;
9177
9178     amigaos*)
9179       case $host_cpu in
9180       powerpc)
9181             # see comment about AmigaOS4 .so support
9182             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9183             archive_expsym_cmds=''
9184         ;;
9185       m68k)
9186             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)'
9187             hardcode_libdir_flag_spec='-L$libdir'
9188             hardcode_minus_L=yes
9189         ;;
9190       esac
9191       ;;
9192
9193     beos*)
9194       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9195         allow_undefined_flag=unsupported
9196         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9197         # support --undefined.  This deserves some investigation.  FIXME
9198         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9199       else
9200         ld_shlibs=no
9201       fi
9202       ;;
9203
9204     cygwin* | mingw* | pw32* | cegcc*)
9205       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9206       # as there is no search path for DLLs.
9207       hardcode_libdir_flag_spec='-L$libdir'
9208       export_dynamic_flag_spec='${wl}--export-all-symbols'
9209       allow_undefined_flag=unsupported
9210       always_export_symbols=no
9211       enable_shared_with_static_runtimes=yes
9212       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'
9213       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9214
9215       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9216         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9217         # If the export-symbols file already is a .def file (1st line
9218         # is EXPORTS), use it as is; otherwise, prepend...
9219         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9220           cp $export_symbols $output_objdir/$soname.def;
9221         else
9222           echo EXPORTS > $output_objdir/$soname.def;
9223           cat $export_symbols >> $output_objdir/$soname.def;
9224         fi~
9225         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9226       else
9227         ld_shlibs=no
9228       fi
9229       ;;
9230
9231     haiku*)
9232       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9233       link_all_deplibs=yes
9234       ;;
9235
9236     interix[3-9]*)
9237       hardcode_direct=no
9238       hardcode_shlibpath_var=no
9239       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9240       export_dynamic_flag_spec='${wl}-E'
9241       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9242       # Instead, shared libraries are loaded at an image base (0x10000000 by
9243       # default) and relocated if they conflict, which is a slow very memory
9244       # consuming and fragmenting process.  To avoid this, we pick a random,
9245       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9246       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9247       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9248       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'
9249       ;;
9250
9251     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9252       tmp_diet=no
9253       if test "$host_os" = linux-dietlibc; then
9254         case $cc_basename in
9255           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9256         esac
9257       fi
9258       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9259          && test "$tmp_diet" = no
9260       then
9261         tmp_addflag=' $pic_flag'
9262         tmp_sharedflag='-shared'
9263         case $cc_basename,$host_cpu in
9264         pgcc*)                          # Portland Group C compiler
9265           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'
9266           tmp_addflag=' $pic_flag'
9267           ;;
9268         pgf77* | pgf90* | pgf95* | pgfortran*)
9269                                         # Portland Group f77 and f90 compilers
9270           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'
9271           tmp_addflag=' $pic_flag -Mnomain' ;;
9272         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9273           tmp_addflag=' -i_dynamic' ;;
9274         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9275           tmp_addflag=' -i_dynamic -nofor_main' ;;
9276         ifc* | ifort*)                  # Intel Fortran compiler
9277           tmp_addflag=' -nofor_main' ;;
9278         lf95*)                          # Lahey Fortran 8.1
9279           whole_archive_flag_spec=
9280           tmp_sharedflag='--shared' ;;
9281         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9282           tmp_sharedflag='-qmkshrobj'
9283           tmp_addflag= ;;
9284         nvcc*)  # Cuda Compiler Driver 2.2
9285           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'
9286           compiler_needs_object=yes
9287           ;;
9288         esac
9289         case `$CC -V 2>&1 | sed 5q` in
9290         *Sun\ C*)                       # Sun C 5.9
9291           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'
9292           compiler_needs_object=yes
9293           tmp_sharedflag='-G' ;;
9294         *Sun\ F*)                       # Sun Fortran 8.3
9295           tmp_sharedflag='-G' ;;
9296         esac
9297         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298
9299         if test "x$supports_anon_versioning" = xyes; then
9300           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9301             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9302             echo "local: *; };" >> $output_objdir/$libname.ver~
9303             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9304         fi
9305
9306         case $cc_basename in
9307         xlf* | bgf* | bgxlf* | mpixlf*)
9308           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9309           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9310           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9311           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9312           if test "x$supports_anon_versioning" = xyes; then
9313             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9314               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9315               echo "local: *; };" >> $output_objdir/$libname.ver~
9316               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9317           fi
9318           ;;
9319         esac
9320       else
9321         ld_shlibs=no
9322       fi
9323       ;;
9324
9325     netbsd* | netbsdelf*-gnu)
9326       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9327         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9328         wlarc=
9329       else
9330         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9331         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9332       fi
9333       ;;
9334
9335     solaris*)
9336       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9337         ld_shlibs=no
9338         cat <<_LT_EOF 1>&2
9339
9340 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9341 *** create shared libraries on Solaris systems.  Therefore, libtool
9342 *** is disabling shared libraries support.  We urge you to upgrade GNU
9343 *** binutils to release 2.9.1 or newer.  Another option is to modify
9344 *** your PATH or compiler configuration so that the native linker is
9345 *** used, and then restart.
9346
9347 _LT_EOF
9348       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9349         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9351       else
9352         ld_shlibs=no
9353       fi
9354       ;;
9355
9356     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9357       case `$LD -v 2>&1` in
9358         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9359         ld_shlibs=no
9360         cat <<_LT_EOF 1>&2
9361
9362 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9363 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9364 *** is disabling shared libraries support.  We urge you to upgrade GNU
9365 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9366 *** your PATH or compiler configuration so that the native linker is
9367 *** used, and then restart.
9368
9369 _LT_EOF
9370         ;;
9371         *)
9372           # For security reasons, it is highly recommended that you always
9373           # use absolute paths for naming shared libraries, and exclude the
9374           # DT_RUNPATH tag from executables and libraries.  But doing so
9375           # requires that you compile everything twice, which is a pain.
9376           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9377             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9379             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9380           else
9381             ld_shlibs=no
9382           fi
9383         ;;
9384       esac
9385       ;;
9386
9387     sunos4*)
9388       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9389       wlarc=
9390       hardcode_direct=yes
9391       hardcode_shlibpath_var=no
9392       ;;
9393
9394     *)
9395       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9396         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9397         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9398       else
9399         ld_shlibs=no
9400       fi
9401       ;;
9402     esac
9403
9404     if test "$ld_shlibs" = no; then
9405       runpath_var=
9406       hardcode_libdir_flag_spec=
9407       export_dynamic_flag_spec=
9408       whole_archive_flag_spec=
9409     fi
9410   else
9411     # PORTME fill in a description of your system's linker (not GNU ld)
9412     case $host_os in
9413     aix3*)
9414       allow_undefined_flag=unsupported
9415       always_export_symbols=yes
9416       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'
9417       # Note: this linker hardcodes the directories in LIBPATH if there
9418       # are no directories specified by -L.
9419       hardcode_minus_L=yes
9420       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9421         # Neither direct hardcoding nor static linking is supported with a
9422         # broken collect2.
9423         hardcode_direct=unsupported
9424       fi
9425       ;;
9426
9427     aix[4-9]*)
9428       if test "$host_cpu" = ia64; then
9429         # On IA64, the linker does run time linking by default, so we don't
9430         # have to do anything special.
9431         aix_use_runtimelinking=no
9432         exp_sym_flag='-Bexport'
9433         no_entry_flag=""
9434       else
9435         # If we're using GNU nm, then we don't want the "-C" option.
9436         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9437         # Also, AIX nm treats weak defined symbols like other global
9438         # defined symbols, whereas GNU nm marks them as "W".
9439         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9440           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'
9441         else
9442           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'
9443         fi
9444         aix_use_runtimelinking=no
9445
9446         # Test if we are trying to use run time linking or normal
9447         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9448         # need to do runtime linking.
9449         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9450           for ld_flag in $LDFLAGS; do
9451           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9452             aix_use_runtimelinking=yes
9453             break
9454           fi
9455           done
9456           ;;
9457         esac
9458
9459         exp_sym_flag='-bexport'
9460         no_entry_flag='-bnoentry'
9461       fi
9462
9463       # When large executables or shared objects are built, AIX ld can
9464       # have problems creating the table of contents.  If linking a library
9465       # or program results in "error TOC overflow" add -mminimal-toc to
9466       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9467       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9468
9469       archive_cmds=''
9470       hardcode_direct=yes
9471       hardcode_direct_absolute=yes
9472       hardcode_libdir_separator=':'
9473       link_all_deplibs=yes
9474       file_list_spec='${wl}-f,'
9475
9476       if test "$GCC" = yes; then
9477         case $host_os in aix4.[012]|aix4.[012].*)
9478         # We only want to do this on AIX 4.2 and lower, the check
9479         # below for broken collect2 doesn't work under 4.3+
9480           collect2name=`${CC} -print-prog-name=collect2`
9481           if test -f "$collect2name" &&
9482            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9483           then
9484           # We have reworked collect2
9485           :
9486           else
9487           # We have old collect2
9488           hardcode_direct=unsupported
9489           # It fails to find uninstalled libraries when the uninstalled
9490           # path is not listed in the libpath.  Setting hardcode_minus_L
9491           # to unsupported forces relinking
9492           hardcode_minus_L=yes
9493           hardcode_libdir_flag_spec='-L$libdir'
9494           hardcode_libdir_separator=
9495           fi
9496           ;;
9497         esac
9498         shared_flag='-shared'
9499         if test "$aix_use_runtimelinking" = yes; then
9500           shared_flag="$shared_flag "'${wl}-G'
9501         fi
9502         link_all_deplibs=no
9503       else
9504         # not using gcc
9505         if test "$host_cpu" = ia64; then
9506         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9507         # chokes on -Wl,-G. The following line is correct:
9508           shared_flag='-G'
9509         else
9510           if test "$aix_use_runtimelinking" = yes; then
9511             shared_flag='${wl}-G'
9512           else
9513             shared_flag='${wl}-bM:SRE'
9514           fi
9515         fi
9516       fi
9517
9518       export_dynamic_flag_spec='${wl}-bexpall'
9519       # It seems that -bexpall does not export symbols beginning with
9520       # underscore (_), so it is better to generate a list of symbols to export.
9521       always_export_symbols=yes
9522       if test "$aix_use_runtimelinking" = yes; then
9523         # Warning - without using the other runtime loading flags (-brtl),
9524         # -berok will link without error, but may produce a broken library.
9525         allow_undefined_flag='-berok'
9526         # Determine the default libpath from the value encoded in an
9527         # empty executable.
9528         if test "${lt_cv_aix_libpath+set}" = set; then
9529   aix_libpath=$lt_cv_aix_libpath
9530 else
9531   if ${lt_cv_aix_libpath_+:} false; then :
9532   $as_echo_n "(cached) " >&6
9533 else
9534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h.  */
9536
9537 int
9538 main ()
9539 {
9540
9541   ;
9542   return 0;
9543 }
9544 _ACEOF
9545 if ac_fn_c_try_link "$LINENO"; then :
9546
9547   lt_aix_libpath_sed='
9548       /Import File Strings/,/^$/ {
9549           /^0/ {
9550               s/^0  *\([^ ]*\) *$/\1/
9551               p
9552           }
9553       }'
9554   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9555   # Check for a 64-bit object if we didn't find anything.
9556   if test -z "$lt_cv_aix_libpath_"; then
9557     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9558   fi
9559 fi
9560 rm -f core conftest.err conftest.$ac_objext \
9561     conftest$ac_exeext conftest.$ac_ext
9562   if test -z "$lt_cv_aix_libpath_"; then
9563     lt_cv_aix_libpath_="/usr/lib:/lib"
9564   fi
9565
9566 fi
9567
9568   aix_libpath=$lt_cv_aix_libpath_
9569 fi
9570
9571         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9572         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"
9573       else
9574         if test "$host_cpu" = ia64; then
9575           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9576           allow_undefined_flag="-z nodefs"
9577           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"
9578         else
9579          # Determine the default libpath from the value encoded in an
9580          # empty executable.
9581          if test "${lt_cv_aix_libpath+set}" = set; then
9582   aix_libpath=$lt_cv_aix_libpath
9583 else
9584   if ${lt_cv_aix_libpath_+:} false; then :
9585   $as_echo_n "(cached) " >&6
9586 else
9587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h.  */
9589
9590 int
9591 main ()
9592 {
9593
9594   ;
9595   return 0;
9596 }
9597 _ACEOF
9598 if ac_fn_c_try_link "$LINENO"; then :
9599
9600   lt_aix_libpath_sed='
9601       /Import File Strings/,/^$/ {
9602           /^0/ {
9603               s/^0  *\([^ ]*\) *$/\1/
9604               p
9605           }
9606       }'
9607   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9608   # Check for a 64-bit object if we didn't find anything.
9609   if test -z "$lt_cv_aix_libpath_"; then
9610     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9611   fi
9612 fi
9613 rm -f core conftest.err conftest.$ac_objext \
9614     conftest$ac_exeext conftest.$ac_ext
9615   if test -z "$lt_cv_aix_libpath_"; then
9616     lt_cv_aix_libpath_="/usr/lib:/lib"
9617   fi
9618
9619 fi
9620
9621   aix_libpath=$lt_cv_aix_libpath_
9622 fi
9623
9624          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9625           # Warning - without using the other run time loading flags,
9626           # -berok will link without error, but may produce a broken library.
9627           no_undefined_flag=' ${wl}-bernotok'
9628           allow_undefined_flag=' ${wl}-berok'
9629           if test "$with_gnu_ld" = yes; then
9630             # We only use this code for GNU lds that support --whole-archive.
9631             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9632           else
9633             # Exported symbols can be pulled into shared objects from archives
9634             whole_archive_flag_spec='$convenience'
9635           fi
9636           archive_cmds_need_lc=yes
9637           # This is similar to how AIX traditionally builds its shared libraries.
9638           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'
9639         fi
9640       fi
9641       ;;
9642
9643     amigaos*)
9644       case $host_cpu in
9645       powerpc)
9646             # see comment about AmigaOS4 .so support
9647             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9648             archive_expsym_cmds=''
9649         ;;
9650       m68k)
9651             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)'
9652             hardcode_libdir_flag_spec='-L$libdir'
9653             hardcode_minus_L=yes
9654         ;;
9655       esac
9656       ;;
9657
9658     bsdi[45]*)
9659       export_dynamic_flag_spec=-rdynamic
9660       ;;
9661
9662     cygwin* | mingw* | pw32* | cegcc*)
9663       # When not using gcc, we currently assume that we are using
9664       # Microsoft Visual C++.
9665       # hardcode_libdir_flag_spec is actually meaningless, as there is
9666       # no search path for DLLs.
9667       case $cc_basename in
9668       cl*)
9669         # Native MSVC
9670         hardcode_libdir_flag_spec=' '
9671         allow_undefined_flag=unsupported
9672         always_export_symbols=yes
9673         file_list_spec='@'
9674         # Tell ltmain to make .lib files, not .a files.
9675         libext=lib
9676         # Tell ltmain to make .dll files, not .so files.
9677         shrext_cmds=".dll"
9678         # FIXME: Setting linknames here is a bad hack.
9679         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9680         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9681             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9682           else
9683             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9684           fi~
9685           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9686           linknames='
9687         # The linker will not automatically build a static lib if we build a DLL.
9688         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9689         enable_shared_with_static_runtimes=yes
9690         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9691         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9692         # Don't use ranlib
9693         old_postinstall_cmds='chmod 644 $oldlib'
9694         postlink_cmds='lt_outputfile="@OUTPUT@"~
9695           lt_tool_outputfile="@TOOL_OUTPUT@"~
9696           case $lt_outputfile in
9697             *.exe|*.EXE) ;;
9698             *)
9699               lt_outputfile="$lt_outputfile.exe"
9700               lt_tool_outputfile="$lt_tool_outputfile.exe"
9701               ;;
9702           esac~
9703           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9704             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9705             $RM "$lt_outputfile.manifest";
9706           fi'
9707         ;;
9708       *)
9709         # Assume MSVC wrapper
9710         hardcode_libdir_flag_spec=' '
9711         allow_undefined_flag=unsupported
9712         # Tell ltmain to make .lib files, not .a files.
9713         libext=lib
9714         # Tell ltmain to make .dll files, not .so files.
9715         shrext_cmds=".dll"
9716         # FIXME: Setting linknames here is a bad hack.
9717         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9718         # The linker will automatically build a .lib file if we build a DLL.
9719         old_archive_from_new_cmds='true'
9720         # FIXME: Should let the user specify the lib program.
9721         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9722         enable_shared_with_static_runtimes=yes
9723         ;;
9724       esac
9725       ;;
9726
9727     darwin* | rhapsody*)
9728
9729
9730   archive_cmds_need_lc=no
9731   hardcode_direct=no
9732   hardcode_automatic=yes
9733   hardcode_shlibpath_var=unsupported
9734   if test "$lt_cv_ld_force_load" = "yes"; then
9735     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\"`'
9736
9737   else
9738     whole_archive_flag_spec=''
9739   fi
9740   link_all_deplibs=yes
9741   allow_undefined_flag="$_lt_dar_allow_undefined"
9742   case $cc_basename in
9743      ifort*) _lt_dar_can_shared=yes ;;
9744      *) _lt_dar_can_shared=$GCC ;;
9745   esac
9746   if test "$_lt_dar_can_shared" = "yes"; then
9747     output_verbose_link_cmd=func_echo_all
9748     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9749     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9750     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}"
9751     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}"
9752
9753   else
9754   ld_shlibs=no
9755   fi
9756
9757       ;;
9758
9759     dgux*)
9760       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9761       hardcode_libdir_flag_spec='-L$libdir'
9762       hardcode_shlibpath_var=no
9763       ;;
9764
9765     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9766     # support.  Future versions do this automatically, but an explicit c++rt0.o
9767     # does not break anything, and helps significantly (at the cost of a little
9768     # extra space).
9769     freebsd2.2*)
9770       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9771       hardcode_libdir_flag_spec='-R$libdir'
9772       hardcode_direct=yes
9773       hardcode_shlibpath_var=no
9774       ;;
9775
9776     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9777     freebsd2.*)
9778       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9779       hardcode_direct=yes
9780       hardcode_minus_L=yes
9781       hardcode_shlibpath_var=no
9782       ;;
9783
9784     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9785     freebsd* | dragonfly*)
9786       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9787       hardcode_libdir_flag_spec='-R$libdir'
9788       hardcode_direct=yes
9789       hardcode_shlibpath_var=no
9790       ;;
9791
9792     hpux9*)
9793       if test "$GCC" = yes; then
9794         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'
9795       else
9796         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'
9797       fi
9798       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9799       hardcode_libdir_separator=:
9800       hardcode_direct=yes
9801
9802       # hardcode_minus_L: Not really in the search PATH,
9803       # but as the default location of the library.
9804       hardcode_minus_L=yes
9805       export_dynamic_flag_spec='${wl}-E'
9806       ;;
9807
9808     hpux10*)
9809       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9810         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9811       else
9812         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9813       fi
9814       if test "$with_gnu_ld" = no; then
9815         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9816         hardcode_libdir_separator=:
9817         hardcode_direct=yes
9818         hardcode_direct_absolute=yes
9819         export_dynamic_flag_spec='${wl}-E'
9820         # hardcode_minus_L: Not really in the search PATH,
9821         # but as the default location of the library.
9822         hardcode_minus_L=yes
9823       fi
9824       ;;
9825
9826     hpux11*)
9827       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9828         case $host_cpu in
9829         hppa*64*)
9830           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9831           ;;
9832         ia64*)
9833           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9834           ;;
9835         *)
9836           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9837           ;;
9838         esac
9839       else
9840         case $host_cpu in
9841         hppa*64*)
9842           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9843           ;;
9844         ia64*)
9845           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9846           ;;
9847         *)
9848
9849           # Older versions of the 11.00 compiler do not understand -b yet
9850           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9851           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9852 $as_echo_n "checking if $CC understands -b... " >&6; }
9853 if ${lt_cv_prog_compiler__b+:} false; then :
9854   $as_echo_n "(cached) " >&6
9855 else
9856   lt_cv_prog_compiler__b=no
9857    save_LDFLAGS="$LDFLAGS"
9858    LDFLAGS="$LDFLAGS -b"
9859    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9860    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9861      # The linker can only warn and ignore the option if not recognized
9862      # So say no if there are warnings
9863      if test -s conftest.err; then
9864        # Append any errors to the config.log.
9865        cat conftest.err 1>&5
9866        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9867        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9868        if diff conftest.exp conftest.er2 >/dev/null; then
9869          lt_cv_prog_compiler__b=yes
9870        fi
9871      else
9872        lt_cv_prog_compiler__b=yes
9873      fi
9874    fi
9875    $RM -r conftest*
9876    LDFLAGS="$save_LDFLAGS"
9877
9878 fi
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9880 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9881
9882 if test x"$lt_cv_prog_compiler__b" = xyes; then
9883     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9884 else
9885     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9886 fi
9887
9888           ;;
9889         esac
9890       fi
9891       if test "$with_gnu_ld" = no; then
9892         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9893         hardcode_libdir_separator=:
9894
9895         case $host_cpu in
9896         hppa*64*|ia64*)
9897           hardcode_direct=no
9898           hardcode_shlibpath_var=no
9899           ;;
9900         *)
9901           hardcode_direct=yes
9902           hardcode_direct_absolute=yes
9903           export_dynamic_flag_spec='${wl}-E'
9904
9905           # hardcode_minus_L: Not really in the search PATH,
9906           # but as the default location of the library.
9907           hardcode_minus_L=yes
9908           ;;
9909         esac
9910       fi
9911       ;;
9912
9913     irix5* | irix6* | nonstopux*)
9914       if test "$GCC" = yes; then
9915         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'
9916         # Try to use the -exported_symbol ld option, if it does not
9917         # work, assume that -exports_file does not work either and
9918         # implicitly export all symbols.
9919         # This should be the same for all languages, so no per-tag cache variable.
9920         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9921 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9922 if ${lt_cv_irix_exported_symbol+:} false; then :
9923   $as_echo_n "(cached) " >&6
9924 else
9925   save_LDFLAGS="$LDFLAGS"
9926            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9927            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h.  */
9929 int foo (void) { return 0; }
9930 _ACEOF
9931 if ac_fn_c_try_link "$LINENO"; then :
9932   lt_cv_irix_exported_symbol=yes
9933 else
9934   lt_cv_irix_exported_symbol=no
9935 fi
9936 rm -f core conftest.err conftest.$ac_objext \
9937     conftest$ac_exeext conftest.$ac_ext
9938            LDFLAGS="$save_LDFLAGS"
9939 fi
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9941 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9942         if test "$lt_cv_irix_exported_symbol" = yes; then
9943           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'
9944         fi
9945       else
9946         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'
9947         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'
9948       fi
9949       archive_cmds_need_lc='no'
9950       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9951       hardcode_libdir_separator=:
9952       inherit_rpath=yes
9953       link_all_deplibs=yes
9954       ;;
9955
9956     netbsd* | netbsdelf*-gnu)
9957       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9958         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9959       else
9960         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9961       fi
9962       hardcode_libdir_flag_spec='-R$libdir'
9963       hardcode_direct=yes
9964       hardcode_shlibpath_var=no
9965       ;;
9966
9967     newsos6)
9968       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9969       hardcode_direct=yes
9970       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9971       hardcode_libdir_separator=:
9972       hardcode_shlibpath_var=no
9973       ;;
9974
9975     *nto* | *qnx*)
9976       ;;
9977
9978     openbsd*)
9979       if test -f /usr/libexec/ld.so; then
9980         hardcode_direct=yes
9981         hardcode_shlibpath_var=no
9982         hardcode_direct_absolute=yes
9983         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9984           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9985           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9986           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9987           export_dynamic_flag_spec='${wl}-E'
9988         else
9989           case $host_os in
9990            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9991              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9992              hardcode_libdir_flag_spec='-R$libdir'
9993              ;;
9994            *)
9995              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9996              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9997              ;;
9998           esac
9999         fi
10000       else
10001         ld_shlibs=no
10002       fi
10003       ;;
10004
10005     os2*)
10006       hardcode_libdir_flag_spec='-L$libdir'
10007       hardcode_minus_L=yes
10008       allow_undefined_flag=unsupported
10009       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'
10010       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10011       ;;
10012
10013     osf3*)
10014       if test "$GCC" = yes; then
10015         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10016         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'
10017       else
10018         allow_undefined_flag=' -expect_unresolved \*'
10019         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'
10020       fi
10021       archive_cmds_need_lc='no'
10022       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10023       hardcode_libdir_separator=:
10024       ;;
10025
10026     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10027       if test "$GCC" = yes; then
10028         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10029         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'
10030         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10031       else
10032         allow_undefined_flag=' -expect_unresolved \*'
10033         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'
10034         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~
10035         $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'
10036
10037         # Both c and cxx compiler support -rpath directly
10038         hardcode_libdir_flag_spec='-rpath $libdir'
10039       fi
10040       archive_cmds_need_lc='no'
10041       hardcode_libdir_separator=:
10042       ;;
10043
10044     solaris*)
10045       no_undefined_flag=' -z defs'
10046       if test "$GCC" = yes; then
10047         wlarc='${wl}'
10048         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10049         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10050           $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'
10051       else
10052         case `$CC -V 2>&1` in
10053         *"Compilers 5.0"*)
10054           wlarc=''
10055           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10056           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10057           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10058           ;;
10059         *)
10060           wlarc='${wl}'
10061           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10062           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10063           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10064           ;;
10065         esac
10066       fi
10067       hardcode_libdir_flag_spec='-R$libdir'
10068       hardcode_shlibpath_var=no
10069       case $host_os in
10070       solaris2.[0-5] | solaris2.[0-5].*) ;;
10071       *)
10072         # The compiler driver will combine and reorder linker options,
10073         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10074         # but is careful enough not to reorder.
10075         # Supported since Solaris 2.6 (maybe 2.5.1?)
10076         if test "$GCC" = yes; then
10077           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10078         else
10079           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10080         fi
10081         ;;
10082       esac
10083       link_all_deplibs=yes
10084       ;;
10085
10086     sunos4*)
10087       if test "x$host_vendor" = xsequent; then
10088         # Use $CC to link under sequent, because it throws in some extra .o
10089         # files that make .init and .fini sections work.
10090         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10091       else
10092         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10093       fi
10094       hardcode_libdir_flag_spec='-L$libdir'
10095       hardcode_direct=yes
10096       hardcode_minus_L=yes
10097       hardcode_shlibpath_var=no
10098       ;;
10099
10100     sysv4)
10101       case $host_vendor in
10102         sni)
10103           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10104           hardcode_direct=yes # is this really true???
10105         ;;
10106         siemens)
10107           ## LD is ld it makes a PLAMLIB
10108           ## CC just makes a GrossModule.
10109           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10110           reload_cmds='$CC -r -o $output$reload_objs'
10111           hardcode_direct=no
10112         ;;
10113         motorola)
10114           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10116         ;;
10117       esac
10118       runpath_var='LD_RUN_PATH'
10119       hardcode_shlibpath_var=no
10120       ;;
10121
10122     sysv4.3*)
10123       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124       hardcode_shlibpath_var=no
10125       export_dynamic_flag_spec='-Bexport'
10126       ;;
10127
10128     sysv4*MP*)
10129       if test -d /usr/nec; then
10130         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131         hardcode_shlibpath_var=no
10132         runpath_var=LD_RUN_PATH
10133         hardcode_runpath_var=yes
10134         ld_shlibs=yes
10135       fi
10136       ;;
10137
10138     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10139       no_undefined_flag='${wl}-z,text'
10140       archive_cmds_need_lc=no
10141       hardcode_shlibpath_var=no
10142       runpath_var='LD_RUN_PATH'
10143
10144       if test "$GCC" = yes; then
10145         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10146         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10147       else
10148         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10150       fi
10151       ;;
10152
10153     sysv5* | sco3.2v5* | sco5v6*)
10154       # Note: We can NOT use -z defs as we might desire, because we do not
10155       # link with -lc, and that would cause any symbols used from libc to
10156       # always be unresolved, which means just about no library would
10157       # ever link correctly.  If we're not using GNU ld we use -z text
10158       # though, which does catch some bad symbols but isn't as heavy-handed
10159       # as -z defs.
10160       no_undefined_flag='${wl}-z,text'
10161       allow_undefined_flag='${wl}-z,nodefs'
10162       archive_cmds_need_lc=no
10163       hardcode_shlibpath_var=no
10164       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10165       hardcode_libdir_separator=':'
10166       link_all_deplibs=yes
10167       export_dynamic_flag_spec='${wl}-Bexport'
10168       runpath_var='LD_RUN_PATH'
10169
10170       if test "$GCC" = yes; then
10171         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10172         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10173       else
10174         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10175         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10176       fi
10177       ;;
10178
10179     uts4*)
10180       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10181       hardcode_libdir_flag_spec='-L$libdir'
10182       hardcode_shlibpath_var=no
10183       ;;
10184
10185     *)
10186       ld_shlibs=no
10187       ;;
10188     esac
10189
10190     if test x$host_vendor = xsni; then
10191       case $host in
10192       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10193         export_dynamic_flag_spec='${wl}-Blargedynsym'
10194         ;;
10195       esac
10196     fi
10197   fi
10198
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10200 $as_echo "$ld_shlibs" >&6; }
10201 test "$ld_shlibs" = no && can_build_shared=no
10202
10203 with_gnu_ld=$with_gnu_ld
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219 #
10220 # Do we need to explicitly link libc?
10221 #
10222 case "x$archive_cmds_need_lc" in
10223 x|xyes)
10224   # Assume -lc should be added
10225   archive_cmds_need_lc=yes
10226
10227   if test "$enable_shared" = yes && test "$GCC" = yes; then
10228     case $archive_cmds in
10229     *'~'*)
10230       # FIXME: we may have to deal with multi-command sequences.
10231       ;;
10232     '$CC '*)
10233       # Test whether the compiler implicitly links with -lc since on some
10234       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10235       # to ld, don't add -lc before -lgcc.
10236       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10237 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10238 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10239   $as_echo_n "(cached) " >&6
10240 else
10241   $RM conftest*
10242         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10243
10244         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10245   (eval $ac_compile) 2>&5
10246   ac_status=$?
10247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10248   test $ac_status = 0; } 2>conftest.err; then
10249           soname=conftest
10250           lib=conftest
10251           libobjs=conftest.$ac_objext
10252           deplibs=
10253           wl=$lt_prog_compiler_wl
10254           pic_flag=$lt_prog_compiler_pic
10255           compiler_flags=-v
10256           linker_flags=-v
10257           verstring=
10258           output_objdir=.
10259           libname=conftest
10260           lt_save_allow_undefined_flag=$allow_undefined_flag
10261           allow_undefined_flag=
10262           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10263   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10264   ac_status=$?
10265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10266   test $ac_status = 0; }
10267           then
10268             lt_cv_archive_cmds_need_lc=no
10269           else
10270             lt_cv_archive_cmds_need_lc=yes
10271           fi
10272           allow_undefined_flag=$lt_save_allow_undefined_flag
10273         else
10274           cat conftest.err 1>&5
10275         fi
10276         $RM conftest*
10277
10278 fi
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10280 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10281       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10282       ;;
10283     esac
10284   fi
10285   ;;
10286 esac
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10440 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10441
10442 if test "$GCC" = yes; then
10443   case $host_os in
10444     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10445     *) lt_awk_arg="/^libraries:/" ;;
10446   esac
10447   case $host_os in
10448     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10449     *) lt_sed_strip_eq="s,=/,/,g" ;;
10450   esac
10451   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10452   case $lt_search_path_spec in
10453   *\;*)
10454     # if the path contains ";" then we assume it to be the separator
10455     # otherwise default to the standard path separator (i.e. ":") - it is
10456     # assumed that no part of a normal pathname contains ";" but that should
10457     # okay in the real world where ";" in dirpaths is itself problematic.
10458     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10459     ;;
10460   *)
10461     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10462     ;;
10463   esac
10464   # Ok, now we have the path, separated by spaces, we can step through it
10465   # and add multilib dir if necessary.
10466   lt_tmp_lt_search_path_spec=
10467   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10468   for lt_sys_path in $lt_search_path_spec; do
10469     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10470       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10471     else
10472       test -d "$lt_sys_path" && \
10473         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10474     fi
10475   done
10476   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10477 BEGIN {RS=" "; FS="/|\n";} {
10478   lt_foo="";
10479   lt_count=0;
10480   for (lt_i = NF; lt_i > 0; lt_i--) {
10481     if ($lt_i != "" && $lt_i != ".") {
10482       if ($lt_i == "..") {
10483         lt_count++;
10484       } else {
10485         if (lt_count == 0) {
10486           lt_foo="/" $lt_i lt_foo;
10487         } else {
10488           lt_count--;
10489         }
10490       }
10491     }
10492   }
10493   if (lt_foo != "") { lt_freq[lt_foo]++; }
10494   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10495 }'`
10496   # AWK program above erroneously prepends '/' to C:/dos/paths
10497   # for these hosts.
10498   case $host_os in
10499     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10500       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10501   esac
10502   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10503 else
10504   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10505 fi
10506 library_names_spec=
10507 libname_spec='lib$name'
10508 soname_spec=
10509 shrext_cmds=".so"
10510 postinstall_cmds=
10511 postuninstall_cmds=
10512 finish_cmds=
10513 finish_eval=
10514 shlibpath_var=
10515 shlibpath_overrides_runpath=unknown
10516 version_type=none
10517 dynamic_linker="$host_os ld.so"
10518 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10519 need_lib_prefix=unknown
10520 hardcode_into_libs=no
10521
10522 # when you set need_version to no, make sure it does not cause -set_version
10523 # flags to be left without arguments
10524 need_version=unknown
10525
10526 case $host_os in
10527 aix3*)
10528   version_type=linux # correct to gnu/linux during the next big refactor
10529   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10530   shlibpath_var=LIBPATH
10531
10532   # AIX 3 has no versioning support, so we append a major version to the name.
10533   soname_spec='${libname}${release}${shared_ext}$major'
10534   ;;
10535
10536 aix[4-9]*)
10537   version_type=linux # correct to gnu/linux during the next big refactor
10538   need_lib_prefix=no
10539   need_version=no
10540   hardcode_into_libs=yes
10541   if test "$host_cpu" = ia64; then
10542     # AIX 5 supports IA64
10543     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10544     shlibpath_var=LD_LIBRARY_PATH
10545   else
10546     # With GCC up to 2.95.x, collect2 would create an import file
10547     # for dependence libraries.  The import file would start with
10548     # the line `#! .'.  This would cause the generated library to
10549     # depend on `.', always an invalid library.  This was fixed in
10550     # development snapshots of GCC prior to 3.0.
10551     case $host_os in
10552       aix4 | aix4.[01] | aix4.[01].*)
10553       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10554            echo ' yes '
10555            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10556         :
10557       else
10558         can_build_shared=no
10559       fi
10560       ;;
10561     esac
10562     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10563     # soname into executable. Probably we can add versioning support to
10564     # collect2, so additional links can be useful in future.
10565     if test "$aix_use_runtimelinking" = yes; then
10566       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10567       # instead of lib<name>.a to let people know that these are not
10568       # typical AIX shared libraries.
10569       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10570     else
10571       # We preserve .a as extension for shared libraries through AIX4.2
10572       # and later when we are not doing run time linking.
10573       library_names_spec='${libname}${release}.a $libname.a'
10574       soname_spec='${libname}${release}${shared_ext}$major'
10575     fi
10576     shlibpath_var=LIBPATH
10577   fi
10578   ;;
10579
10580 amigaos*)
10581   case $host_cpu in
10582   powerpc)
10583     # Since July 2007 AmigaOS4 officially supports .so libraries.
10584     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10585     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586     ;;
10587   m68k)
10588     library_names_spec='$libname.ixlibrary $libname.a'
10589     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10590     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'
10591     ;;
10592   esac
10593   ;;
10594
10595 beos*)
10596   library_names_spec='${libname}${shared_ext}'
10597   dynamic_linker="$host_os ld.so"
10598   shlibpath_var=LIBRARY_PATH
10599   ;;
10600
10601 bsdi[45]*)
10602   version_type=linux # correct to gnu/linux during the next big refactor
10603   need_version=no
10604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605   soname_spec='${libname}${release}${shared_ext}$major'
10606   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10607   shlibpath_var=LD_LIBRARY_PATH
10608   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10609   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10610   # the default ld.so.conf also contains /usr/contrib/lib and
10611   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10612   # libtool to hard-code these into programs
10613   ;;
10614
10615 cygwin* | mingw* | pw32* | cegcc*)
10616   version_type=windows
10617   shrext_cmds=".dll"
10618   need_version=no
10619   need_lib_prefix=no
10620
10621   case $GCC,$cc_basename in
10622   yes,*)
10623     # gcc
10624     library_names_spec='$libname.dll.a'
10625     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10626     postinstall_cmds='base_file=`basename \${file}`~
10627       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10628       dldir=$destdir/`dirname \$dlpath`~
10629       test -d \$dldir || mkdir -p \$dldir~
10630       $install_prog $dir/$dlname \$dldir/$dlname~
10631       chmod a+x \$dldir/$dlname~
10632       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10633         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10634       fi'
10635     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10636       dlpath=$dir/\$dldll~
10637        $RM \$dlpath'
10638     shlibpath_overrides_runpath=yes
10639
10640     case $host_os in
10641     cygwin*)
10642       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10643       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10644
10645       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10646       ;;
10647     mingw* | cegcc*)
10648       # MinGW DLLs use traditional 'lib' prefix
10649       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10650       ;;
10651     pw32*)
10652       # pw32 DLLs use 'pw' prefix rather than 'lib'
10653       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10654       ;;
10655     esac
10656     dynamic_linker='Win32 ld.exe'
10657     ;;
10658
10659   *,cl*)
10660     # Native MSVC
10661     libname_spec='$name'
10662     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10663     library_names_spec='${libname}.dll.lib'
10664
10665     case $build_os in
10666     mingw*)
10667       sys_lib_search_path_spec=
10668       lt_save_ifs=$IFS
10669       IFS=';'
10670       for lt_path in $LIB
10671       do
10672         IFS=$lt_save_ifs
10673         # Let DOS variable expansion print the short 8.3 style file name.
10674         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10675         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10676       done
10677       IFS=$lt_save_ifs
10678       # Convert to MSYS style.
10679       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10680       ;;
10681     cygwin*)
10682       # Convert to unix form, then to dos form, then back to unix form
10683       # but this time dos style (no spaces!) so that the unix form looks
10684       # like /cygdrive/c/PROGRA~1:/cygdr...
10685       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10686       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10687       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10688       ;;
10689     *)
10690       sys_lib_search_path_spec="$LIB"
10691       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10692         # It is most probably a Windows format PATH.
10693         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10694       else
10695         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10696       fi
10697       # FIXME: find the short name or the path components, as spaces are
10698       # common. (e.g. "Program Files" -> "PROGRA~1")
10699       ;;
10700     esac
10701
10702     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10703     postinstall_cmds='base_file=`basename \${file}`~
10704       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10705       dldir=$destdir/`dirname \$dlpath`~
10706       test -d \$dldir || mkdir -p \$dldir~
10707       $install_prog $dir/$dlname \$dldir/$dlname'
10708     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10709       dlpath=$dir/\$dldll~
10710        $RM \$dlpath'
10711     shlibpath_overrides_runpath=yes
10712     dynamic_linker='Win32 link.exe'
10713     ;;
10714
10715   *)
10716     # Assume MSVC wrapper
10717     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10718     dynamic_linker='Win32 ld.exe'
10719     ;;
10720   esac
10721   # FIXME: first we should search . and the directory the executable is in
10722   shlibpath_var=PATH
10723   ;;
10724
10725 darwin* | rhapsody*)
10726   dynamic_linker="$host_os dyld"
10727   version_type=darwin
10728   need_lib_prefix=no
10729   need_version=no
10730   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10731   soname_spec='${libname}${release}${major}$shared_ext'
10732   shlibpath_overrides_runpath=yes
10733   shlibpath_var=DYLD_LIBRARY_PATH
10734   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10735
10736   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10737   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10738   ;;
10739
10740 dgux*)
10741   version_type=linux # correct to gnu/linux during the next big refactor
10742   need_lib_prefix=no
10743   need_version=no
10744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10745   soname_spec='${libname}${release}${shared_ext}$major'
10746   shlibpath_var=LD_LIBRARY_PATH
10747   ;;
10748
10749 freebsd* | dragonfly*)
10750   # DragonFly does not have aout.  When/if they implement a new
10751   # versioning mechanism, adjust this.
10752   if test -x /usr/bin/objformat; then
10753     objformat=`/usr/bin/objformat`
10754   else
10755     case $host_os in
10756     freebsd[23].*) objformat=aout ;;
10757     *) objformat=elf ;;
10758     esac
10759   fi
10760   version_type=freebsd-$objformat
10761   case $version_type in
10762     freebsd-elf*)
10763       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10764       need_version=no
10765       need_lib_prefix=no
10766       ;;
10767     freebsd-*)
10768       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10769       need_version=yes
10770       ;;
10771   esac
10772   shlibpath_var=LD_LIBRARY_PATH
10773   case $host_os in
10774   freebsd2.*)
10775     shlibpath_overrides_runpath=yes
10776     ;;
10777   freebsd3.[01]* | freebsdelf3.[01]*)
10778     shlibpath_overrides_runpath=yes
10779     hardcode_into_libs=yes
10780     ;;
10781   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10782   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10783     shlibpath_overrides_runpath=no
10784     hardcode_into_libs=yes
10785     ;;
10786   *) # from 4.6 on, and DragonFly
10787     shlibpath_overrides_runpath=yes
10788     hardcode_into_libs=yes
10789     ;;
10790   esac
10791   ;;
10792
10793 gnu*)
10794   version_type=linux # correct to gnu/linux during the next big refactor
10795   need_lib_prefix=no
10796   need_version=no
10797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10798   soname_spec='${libname}${release}${shared_ext}$major'
10799   shlibpath_var=LD_LIBRARY_PATH
10800   shlibpath_overrides_runpath=no
10801   hardcode_into_libs=yes
10802   ;;
10803
10804 haiku*)
10805   version_type=linux # correct to gnu/linux during the next big refactor
10806   need_lib_prefix=no
10807   need_version=no
10808   dynamic_linker="$host_os runtime_loader"
10809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10810   soname_spec='${libname}${release}${shared_ext}$major'
10811   shlibpath_var=LIBRARY_PATH
10812   shlibpath_overrides_runpath=yes
10813   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10814   hardcode_into_libs=yes
10815   ;;
10816
10817 hpux9* | hpux10* | hpux11*)
10818   # Give a soname corresponding to the major version so that dld.sl refuses to
10819   # link against other versions.
10820   version_type=sunos
10821   need_lib_prefix=no
10822   need_version=no
10823   case $host_cpu in
10824   ia64*)
10825     shrext_cmds='.so'
10826     hardcode_into_libs=yes
10827     dynamic_linker="$host_os dld.so"
10828     shlibpath_var=LD_LIBRARY_PATH
10829     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10830     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831     soname_spec='${libname}${release}${shared_ext}$major'
10832     if test "X$HPUX_IA64_MODE" = X32; then
10833       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10834     else
10835       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10836     fi
10837     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10838     ;;
10839   hppa*64*)
10840     shrext_cmds='.sl'
10841     hardcode_into_libs=yes
10842     dynamic_linker="$host_os dld.sl"
10843     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10844     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10845     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10846     soname_spec='${libname}${release}${shared_ext}$major'
10847     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10848     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10849     ;;
10850   *)
10851     shrext_cmds='.sl'
10852     dynamic_linker="$host_os dld.sl"
10853     shlibpath_var=SHLIB_PATH
10854     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10855     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10856     soname_spec='${libname}${release}${shared_ext}$major'
10857     ;;
10858   esac
10859   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10860   postinstall_cmds='chmod 555 $lib'
10861   # or fails outright, so override atomically:
10862   install_override_mode=555
10863   ;;
10864
10865 interix[3-9]*)
10866   version_type=linux # correct to gnu/linux during the next big refactor
10867   need_lib_prefix=no
10868   need_version=no
10869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10870   soname_spec='${libname}${release}${shared_ext}$major'
10871   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10872   shlibpath_var=LD_LIBRARY_PATH
10873   shlibpath_overrides_runpath=no
10874   hardcode_into_libs=yes
10875   ;;
10876
10877 irix5* | irix6* | nonstopux*)
10878   case $host_os in
10879     nonstopux*) version_type=nonstopux ;;
10880     *)
10881         if test "$lt_cv_prog_gnu_ld" = yes; then
10882                 version_type=linux # correct to gnu/linux during the next big refactor
10883         else
10884                 version_type=irix
10885         fi ;;
10886   esac
10887   need_lib_prefix=no
10888   need_version=no
10889   soname_spec='${libname}${release}${shared_ext}$major'
10890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10891   case $host_os in
10892   irix5* | nonstopux*)
10893     libsuff= shlibsuff=
10894     ;;
10895   *)
10896     case $LD in # libtool.m4 will add one of these switches to LD
10897     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10898       libsuff= shlibsuff= libmagic=32-bit;;
10899     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10900       libsuff=32 shlibsuff=N32 libmagic=N32;;
10901     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10902       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10903     *) libsuff= shlibsuff= libmagic=never-match;;
10904     esac
10905     ;;
10906   esac
10907   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10908   shlibpath_overrides_runpath=no
10909   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10910   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10911   hardcode_into_libs=yes
10912   ;;
10913
10914 # No shared lib support for Linux oldld, aout, or coff.
10915 linux*oldld* | linux*aout* | linux*coff*)
10916   dynamic_linker=no
10917   ;;
10918
10919 # This must be glibc/ELF.
10920 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10921   version_type=linux # correct to gnu/linux during the next big refactor
10922   need_lib_prefix=no
10923   need_version=no
10924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10925   soname_spec='${libname}${release}${shared_ext}$major'
10926   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10927   shlibpath_var=LD_LIBRARY_PATH
10928   shlibpath_overrides_runpath=no
10929
10930   # Some binutils ld are patched to set DT_RUNPATH
10931   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10932   $as_echo_n "(cached) " >&6
10933 else
10934   lt_cv_shlibpath_overrides_runpath=no
10935     save_LDFLAGS=$LDFLAGS
10936     save_libdir=$libdir
10937     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10938          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10939     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h.  */
10941
10942 int
10943 main ()
10944 {
10945
10946   ;
10947   return 0;
10948 }
10949 _ACEOF
10950 if ac_fn_c_try_link "$LINENO"; then :
10951   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10952   lt_cv_shlibpath_overrides_runpath=yes
10953 fi
10954 fi
10955 rm -f core conftest.err conftest.$ac_objext \
10956     conftest$ac_exeext conftest.$ac_ext
10957     LDFLAGS=$save_LDFLAGS
10958     libdir=$save_libdir
10959
10960 fi
10961
10962   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10963
10964   # This implies no fast_install, which is unacceptable.
10965   # Some rework will be needed to allow for fast_install
10966   # before this can be enabled.
10967   hardcode_into_libs=yes
10968
10969   # Append ld.so.conf contents to the search path
10970   if test -f /etc/ld.so.conf; then
10971     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' ' '`
10972     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10973   fi
10974
10975   # We used to test for /lib/ld.so.1 and disable shared libraries on
10976   # powerpc, because MkLinux only supported shared libraries with the
10977   # GNU dynamic linker.  Since this was broken with cross compilers,
10978   # most powerpc-linux boxes support dynamic linking these days and
10979   # people can always --disable-shared, the test was removed, and we
10980   # assume the GNU/Linux dynamic linker is in use.
10981   dynamic_linker='GNU/Linux ld.so'
10982   ;;
10983
10984 netbsdelf*-gnu)
10985   version_type=linux
10986   need_lib_prefix=no
10987   need_version=no
10988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10989   soname_spec='${libname}${release}${shared_ext}$major'
10990   shlibpath_var=LD_LIBRARY_PATH
10991   shlibpath_overrides_runpath=no
10992   hardcode_into_libs=yes
10993   dynamic_linker='NetBSD ld.elf_so'
10994   ;;
10995
10996 netbsd*)
10997   version_type=sunos
10998   need_lib_prefix=no
10999   need_version=no
11000   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11002     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11003     dynamic_linker='NetBSD (a.out) ld.so'
11004   else
11005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11006     soname_spec='${libname}${release}${shared_ext}$major'
11007     dynamic_linker='NetBSD ld.elf_so'
11008   fi
11009   shlibpath_var=LD_LIBRARY_PATH
11010   shlibpath_overrides_runpath=yes
11011   hardcode_into_libs=yes
11012   ;;
11013
11014 newsos6)
11015   version_type=linux # correct to gnu/linux during the next big refactor
11016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017   shlibpath_var=LD_LIBRARY_PATH
11018   shlibpath_overrides_runpath=yes
11019   ;;
11020
11021 *nto* | *qnx*)
11022   version_type=qnx
11023   need_lib_prefix=no
11024   need_version=no
11025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11026   soname_spec='${libname}${release}${shared_ext}$major'
11027   shlibpath_var=LD_LIBRARY_PATH
11028   shlibpath_overrides_runpath=no
11029   hardcode_into_libs=yes
11030   dynamic_linker='ldqnx.so'
11031   ;;
11032
11033 openbsd*)
11034   version_type=sunos
11035   sys_lib_dlsearch_path_spec="/usr/lib"
11036   need_lib_prefix=no
11037   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11038   case $host_os in
11039     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11040     *)                          need_version=no  ;;
11041   esac
11042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11043   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11044   shlibpath_var=LD_LIBRARY_PATH
11045   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11046     case $host_os in
11047       openbsd2.[89] | openbsd2.[89].*)
11048         shlibpath_overrides_runpath=no
11049         ;;
11050       *)
11051         shlibpath_overrides_runpath=yes
11052         ;;
11053       esac
11054   else
11055     shlibpath_overrides_runpath=yes
11056   fi
11057   ;;
11058
11059 os2*)
11060   libname_spec='$name'
11061   shrext_cmds=".dll"
11062   need_lib_prefix=no
11063   library_names_spec='$libname${shared_ext} $libname.a'
11064   dynamic_linker='OS/2 ld.exe'
11065   shlibpath_var=LIBPATH
11066   ;;
11067
11068 osf3* | osf4* | osf5*)
11069   version_type=osf
11070   need_lib_prefix=no
11071   need_version=no
11072   soname_spec='${libname}${release}${shared_ext}$major'
11073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11074   shlibpath_var=LD_LIBRARY_PATH
11075   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11076   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11077   ;;
11078
11079 rdos*)
11080   dynamic_linker=no
11081   ;;
11082
11083 solaris*)
11084   version_type=linux # correct to gnu/linux during the next big refactor
11085   need_lib_prefix=no
11086   need_version=no
11087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088   soname_spec='${libname}${release}${shared_ext}$major'
11089   shlibpath_var=LD_LIBRARY_PATH
11090   shlibpath_overrides_runpath=yes
11091   hardcode_into_libs=yes
11092   # ldd complains unless libraries are executable
11093   postinstall_cmds='chmod +x $lib'
11094   ;;
11095
11096 sunos4*)
11097   version_type=sunos
11098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11099   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11100   shlibpath_var=LD_LIBRARY_PATH
11101   shlibpath_overrides_runpath=yes
11102   if test "$with_gnu_ld" = yes; then
11103     need_lib_prefix=no
11104   fi
11105   need_version=yes
11106   ;;
11107
11108 sysv4 | sysv4.3*)
11109   version_type=linux # correct to gnu/linux during the next big refactor
11110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111   soname_spec='${libname}${release}${shared_ext}$major'
11112   shlibpath_var=LD_LIBRARY_PATH
11113   case $host_vendor in
11114     sni)
11115       shlibpath_overrides_runpath=no
11116       need_lib_prefix=no
11117       runpath_var=LD_RUN_PATH
11118       ;;
11119     siemens)
11120       need_lib_prefix=no
11121       ;;
11122     motorola)
11123       need_lib_prefix=no
11124       need_version=no
11125       shlibpath_overrides_runpath=no
11126       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11127       ;;
11128   esac
11129   ;;
11130
11131 sysv4*MP*)
11132   if test -d /usr/nec ;then
11133     version_type=linux # correct to gnu/linux during the next big refactor
11134     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11135     soname_spec='$libname${shared_ext}.$major'
11136     shlibpath_var=LD_LIBRARY_PATH
11137   fi
11138   ;;
11139
11140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11141   version_type=freebsd-elf
11142   need_lib_prefix=no
11143   need_version=no
11144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11145   soname_spec='${libname}${release}${shared_ext}$major'
11146   shlibpath_var=LD_LIBRARY_PATH
11147   shlibpath_overrides_runpath=yes
11148   hardcode_into_libs=yes
11149   if test "$with_gnu_ld" = yes; then
11150     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11151   else
11152     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11153     case $host_os in
11154       sco3.2v5*)
11155         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11156         ;;
11157     esac
11158   fi
11159   sys_lib_dlsearch_path_spec='/usr/lib'
11160   ;;
11161
11162 tpf*)
11163   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11164   version_type=linux # correct to gnu/linux during the next big refactor
11165   need_lib_prefix=no
11166   need_version=no
11167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11168   shlibpath_var=LD_LIBRARY_PATH
11169   shlibpath_overrides_runpath=no
11170   hardcode_into_libs=yes
11171   ;;
11172
11173 uts4*)
11174   version_type=linux # correct to gnu/linux during the next big refactor
11175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176   soname_spec='${libname}${release}${shared_ext}$major'
11177   shlibpath_var=LD_LIBRARY_PATH
11178   ;;
11179
11180 *)
11181   dynamic_linker=no
11182   ;;
11183 esac
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11185 $as_echo "$dynamic_linker" >&6; }
11186 test "$dynamic_linker" = no && can_build_shared=no
11187
11188 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11189 if test "$GCC" = yes; then
11190   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11191 fi
11192
11193 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11194   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11195 fi
11196 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11197   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11198 fi
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11292 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11293 hardcode_action=
11294 if test -n "$hardcode_libdir_flag_spec" ||
11295    test -n "$runpath_var" ||
11296    test "X$hardcode_automatic" = "Xyes" ; then
11297
11298   # We can hardcode non-existent directories.
11299   if test "$hardcode_direct" != no &&
11300      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11301      # have to relink, otherwise we might link with an installed library
11302      # when we should be linking with a yet-to-be-installed one
11303      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11304      test "$hardcode_minus_L" != no; then
11305     # Linking always hardcodes the temporary library directory.
11306     hardcode_action=relink
11307   else
11308     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11309     hardcode_action=immediate
11310   fi
11311 else
11312   # We cannot hardcode anything, or else we can only hardcode existing
11313   # directories.
11314   hardcode_action=unsupported
11315 fi
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11317 $as_echo "$hardcode_action" >&6; }
11318
11319 if test "$hardcode_action" = relink ||
11320    test "$inherit_rpath" = yes; then
11321   # Fast installation is not supported
11322   enable_fast_install=no
11323 elif test "$shlibpath_overrides_runpath" = yes ||
11324      test "$enable_shared" = no; then
11325   # Fast installation is not necessary
11326   enable_fast_install=needless
11327 fi
11328
11329
11330
11331
11332
11333
11334   if test "x$enable_dlopen" != xyes; then
11335   enable_dlopen=unknown
11336   enable_dlopen_self=unknown
11337   enable_dlopen_self_static=unknown
11338 else
11339   lt_cv_dlopen=no
11340   lt_cv_dlopen_libs=
11341
11342   case $host_os in
11343   beos*)
11344     lt_cv_dlopen="load_add_on"
11345     lt_cv_dlopen_libs=
11346     lt_cv_dlopen_self=yes
11347     ;;
11348
11349   mingw* | pw32* | cegcc*)
11350     lt_cv_dlopen="LoadLibrary"
11351     lt_cv_dlopen_libs=
11352     ;;
11353
11354   cygwin*)
11355     lt_cv_dlopen="dlopen"
11356     lt_cv_dlopen_libs=
11357     ;;
11358
11359   darwin*)
11360   # if libdl is installed we need to link against it
11361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11362 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11363 if ${ac_cv_lib_dl_dlopen+:} false; then :
11364   $as_echo_n "(cached) " >&6
11365 else
11366   ac_check_lib_save_LIBS=$LIBS
11367 LIBS="-ldl  $LIBS"
11368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h.  */
11370
11371 /* Override any GCC internal prototype to avoid an error.
11372    Use char because int might match the return type of a GCC
11373    builtin and then its argument prototype would still apply.  */
11374 #ifdef __cplusplus
11375 extern "C"
11376 #endif
11377 char dlopen ();
11378 int
11379 main ()
11380 {
11381 return dlopen ();
11382   ;
11383   return 0;
11384 }
11385 _ACEOF
11386 if ac_fn_c_try_link "$LINENO"; then :
11387   ac_cv_lib_dl_dlopen=yes
11388 else
11389   ac_cv_lib_dl_dlopen=no
11390 fi
11391 rm -f core conftest.err conftest.$ac_objext \
11392     conftest$ac_exeext conftest.$ac_ext
11393 LIBS=$ac_check_lib_save_LIBS
11394 fi
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11396 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11397 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11398   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11399 else
11400
11401     lt_cv_dlopen="dyld"
11402     lt_cv_dlopen_libs=
11403     lt_cv_dlopen_self=yes
11404
11405 fi
11406
11407     ;;
11408
11409   *)
11410     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11411 if test "x$ac_cv_func_shl_load" = xyes; then :
11412   lt_cv_dlopen="shl_load"
11413 else
11414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11415 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11416 if ${ac_cv_lib_dld_shl_load+:} false; then :
11417   $as_echo_n "(cached) " >&6
11418 else
11419   ac_check_lib_save_LIBS=$LIBS
11420 LIBS="-ldld  $LIBS"
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h.  */
11423
11424 /* Override any GCC internal prototype to avoid an error.
11425    Use char because int might match the return type of a GCC
11426    builtin and then its argument prototype would still apply.  */
11427 #ifdef __cplusplus
11428 extern "C"
11429 #endif
11430 char shl_load ();
11431 int
11432 main ()
11433 {
11434 return shl_load ();
11435   ;
11436   return 0;
11437 }
11438 _ACEOF
11439 if ac_fn_c_try_link "$LINENO"; then :
11440   ac_cv_lib_dld_shl_load=yes
11441 else
11442   ac_cv_lib_dld_shl_load=no
11443 fi
11444 rm -f core conftest.err conftest.$ac_objext \
11445     conftest$ac_exeext conftest.$ac_ext
11446 LIBS=$ac_check_lib_save_LIBS
11447 fi
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11449 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11450 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11451   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11452 else
11453   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11454 if test "x$ac_cv_func_dlopen" = xyes; then :
11455   lt_cv_dlopen="dlopen"
11456 else
11457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11458 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11459 if ${ac_cv_lib_dl_dlopen+:} false; then :
11460   $as_echo_n "(cached) " >&6
11461 else
11462   ac_check_lib_save_LIBS=$LIBS
11463 LIBS="-ldl  $LIBS"
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h.  */
11466
11467 /* Override any GCC internal prototype to avoid an error.
11468    Use char because int might match the return type of a GCC
11469    builtin and then its argument prototype would still apply.  */
11470 #ifdef __cplusplus
11471 extern "C"
11472 #endif
11473 char dlopen ();
11474 int
11475 main ()
11476 {
11477 return dlopen ();
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 if ac_fn_c_try_link "$LINENO"; then :
11483   ac_cv_lib_dl_dlopen=yes
11484 else
11485   ac_cv_lib_dl_dlopen=no
11486 fi
11487 rm -f core conftest.err conftest.$ac_objext \
11488     conftest$ac_exeext conftest.$ac_ext
11489 LIBS=$ac_check_lib_save_LIBS
11490 fi
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11492 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11493 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11494   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11495 else
11496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11497 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11498 if ${ac_cv_lib_svld_dlopen+:} false; then :
11499   $as_echo_n "(cached) " >&6
11500 else
11501   ac_check_lib_save_LIBS=$LIBS
11502 LIBS="-lsvld  $LIBS"
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h.  */
11505
11506 /* Override any GCC internal prototype to avoid an error.
11507    Use char because int might match the return type of a GCC
11508    builtin and then its argument prototype would still apply.  */
11509 #ifdef __cplusplus
11510 extern "C"
11511 #endif
11512 char dlopen ();
11513 int
11514 main ()
11515 {
11516 return dlopen ();
11517   ;
11518   return 0;
11519 }
11520 _ACEOF
11521 if ac_fn_c_try_link "$LINENO"; then :
11522   ac_cv_lib_svld_dlopen=yes
11523 else
11524   ac_cv_lib_svld_dlopen=no
11525 fi
11526 rm -f core conftest.err conftest.$ac_objext \
11527     conftest$ac_exeext conftest.$ac_ext
11528 LIBS=$ac_check_lib_save_LIBS
11529 fi
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11531 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11532 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11533   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11534 else
11535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11536 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11537 if ${ac_cv_lib_dld_dld_link+:} false; then :
11538   $as_echo_n "(cached) " >&6
11539 else
11540   ac_check_lib_save_LIBS=$LIBS
11541 LIBS="-ldld  $LIBS"
11542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h.  */
11544
11545 /* Override any GCC internal prototype to avoid an error.
11546    Use char because int might match the return type of a GCC
11547    builtin and then its argument prototype would still apply.  */
11548 #ifdef __cplusplus
11549 extern "C"
11550 #endif
11551 char dld_link ();
11552 int
11553 main ()
11554 {
11555 return dld_link ();
11556   ;
11557   return 0;
11558 }
11559 _ACEOF
11560 if ac_fn_c_try_link "$LINENO"; then :
11561   ac_cv_lib_dld_dld_link=yes
11562 else
11563   ac_cv_lib_dld_dld_link=no
11564 fi
11565 rm -f core conftest.err conftest.$ac_objext \
11566     conftest$ac_exeext conftest.$ac_ext
11567 LIBS=$ac_check_lib_save_LIBS
11568 fi
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11570 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11571 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11572   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11573 fi
11574
11575
11576 fi
11577
11578
11579 fi
11580
11581
11582 fi
11583
11584
11585 fi
11586
11587
11588 fi
11589
11590     ;;
11591   esac
11592
11593   if test "x$lt_cv_dlopen" != xno; then
11594     enable_dlopen=yes
11595   else
11596     enable_dlopen=no
11597   fi
11598
11599   case $lt_cv_dlopen in
11600   dlopen)
11601     save_CPPFLAGS="$CPPFLAGS"
11602     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11603
11604     save_LDFLAGS="$LDFLAGS"
11605     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11606
11607     save_LIBS="$LIBS"
11608     LIBS="$lt_cv_dlopen_libs $LIBS"
11609
11610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11611 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11612 if ${lt_cv_dlopen_self+:} false; then :
11613   $as_echo_n "(cached) " >&6
11614 else
11615           if test "$cross_compiling" = yes; then :
11616   lt_cv_dlopen_self=cross
11617 else
11618   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11619   lt_status=$lt_dlunknown
11620   cat > conftest.$ac_ext <<_LT_EOF
11621 #line $LINENO "configure"
11622 #include "confdefs.h"
11623
11624 #if HAVE_DLFCN_H
11625 #include <dlfcn.h>
11626 #endif
11627
11628 #include <stdio.h>
11629
11630 #ifdef RTLD_GLOBAL
11631 #  define LT_DLGLOBAL           RTLD_GLOBAL
11632 #else
11633 #  ifdef DL_GLOBAL
11634 #    define LT_DLGLOBAL         DL_GLOBAL
11635 #  else
11636 #    define LT_DLGLOBAL         0
11637 #  endif
11638 #endif
11639
11640 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11641    find out it does not work in some platform. */
11642 #ifndef LT_DLLAZY_OR_NOW
11643 #  ifdef RTLD_LAZY
11644 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11645 #  else
11646 #    ifdef DL_LAZY
11647 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11648 #    else
11649 #      ifdef RTLD_NOW
11650 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11651 #      else
11652 #        ifdef DL_NOW
11653 #          define LT_DLLAZY_OR_NOW      DL_NOW
11654 #        else
11655 #          define LT_DLLAZY_OR_NOW      0
11656 #        endif
11657 #      endif
11658 #    endif
11659 #  endif
11660 #endif
11661
11662 /* When -fvisbility=hidden is used, assume the code has been annotated
11663    correspondingly for the symbols needed.  */
11664 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11665 int fnord () __attribute__((visibility("default")));
11666 #endif
11667
11668 int fnord () { return 42; }
11669 int main ()
11670 {
11671   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11672   int status = $lt_dlunknown;
11673
11674   if (self)
11675     {
11676       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11677       else
11678         {
11679           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11680           else puts (dlerror ());
11681         }
11682       /* dlclose (self); */
11683     }
11684   else
11685     puts (dlerror ());
11686
11687   return status;
11688 }
11689 _LT_EOF
11690   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11691   (eval $ac_link) 2>&5
11692   ac_status=$?
11693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11694   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11695     (./conftest; exit; ) >&5 2>/dev/null
11696     lt_status=$?
11697     case x$lt_status in
11698       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11699       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11700       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11701     esac
11702   else :
11703     # compilation failed
11704     lt_cv_dlopen_self=no
11705   fi
11706 fi
11707 rm -fr conftest*
11708
11709
11710 fi
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11712 $as_echo "$lt_cv_dlopen_self" >&6; }
11713
11714     if test "x$lt_cv_dlopen_self" = xyes; then
11715       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11716       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11717 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11718 if ${lt_cv_dlopen_self_static+:} false; then :
11719   $as_echo_n "(cached) " >&6
11720 else
11721           if test "$cross_compiling" = yes; then :
11722   lt_cv_dlopen_self_static=cross
11723 else
11724   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11725   lt_status=$lt_dlunknown
11726   cat > conftest.$ac_ext <<_LT_EOF
11727 #line $LINENO "configure"
11728 #include "confdefs.h"
11729
11730 #if HAVE_DLFCN_H
11731 #include <dlfcn.h>
11732 #endif
11733
11734 #include <stdio.h>
11735
11736 #ifdef RTLD_GLOBAL
11737 #  define LT_DLGLOBAL           RTLD_GLOBAL
11738 #else
11739 #  ifdef DL_GLOBAL
11740 #    define LT_DLGLOBAL         DL_GLOBAL
11741 #  else
11742 #    define LT_DLGLOBAL         0
11743 #  endif
11744 #endif
11745
11746 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11747    find out it does not work in some platform. */
11748 #ifndef LT_DLLAZY_OR_NOW
11749 #  ifdef RTLD_LAZY
11750 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11751 #  else
11752 #    ifdef DL_LAZY
11753 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11754 #    else
11755 #      ifdef RTLD_NOW
11756 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11757 #      else
11758 #        ifdef DL_NOW
11759 #          define LT_DLLAZY_OR_NOW      DL_NOW
11760 #        else
11761 #          define LT_DLLAZY_OR_NOW      0
11762 #        endif
11763 #      endif
11764 #    endif
11765 #  endif
11766 #endif
11767
11768 /* When -fvisbility=hidden is used, assume the code has been annotated
11769    correspondingly for the symbols needed.  */
11770 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11771 int fnord () __attribute__((visibility("default")));
11772 #endif
11773
11774 int fnord () { return 42; }
11775 int main ()
11776 {
11777   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11778   int status = $lt_dlunknown;
11779
11780   if (self)
11781     {
11782       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11783       else
11784         {
11785           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11786           else puts (dlerror ());
11787         }
11788       /* dlclose (self); */
11789     }
11790   else
11791     puts (dlerror ());
11792
11793   return status;
11794 }
11795 _LT_EOF
11796   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11797   (eval $ac_link) 2>&5
11798   ac_status=$?
11799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11800   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11801     (./conftest; exit; ) >&5 2>/dev/null
11802     lt_status=$?
11803     case x$lt_status in
11804       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11805       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11806       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11807     esac
11808   else :
11809     # compilation failed
11810     lt_cv_dlopen_self_static=no
11811   fi
11812 fi
11813 rm -fr conftest*
11814
11815
11816 fi
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11818 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11819     fi
11820
11821     CPPFLAGS="$save_CPPFLAGS"
11822     LDFLAGS="$save_LDFLAGS"
11823     LIBS="$save_LIBS"
11824     ;;
11825   esac
11826
11827   case $lt_cv_dlopen_self in
11828   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11829   *) enable_dlopen_self=unknown ;;
11830   esac
11831
11832   case $lt_cv_dlopen_self_static in
11833   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11834   *) enable_dlopen_self_static=unknown ;;
11835   esac
11836 fi
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854 striplib=
11855 old_striplib=
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11857 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11858 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11859   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11860   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11862 $as_echo "yes" >&6; }
11863 else
11864 # FIXME - insert some real tests, host_os isn't really good enough
11865   case $host_os in
11866   darwin*)
11867     if test -n "$STRIP" ; then
11868       striplib="$STRIP -x"
11869       old_striplib="$STRIP -S"
11870       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11871 $as_echo "yes" >&6; }
11872     else
11873       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 $as_echo "no" >&6; }
11875     fi
11876     ;;
11877   *)
11878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879 $as_echo "no" >&6; }
11880     ;;
11881   esac
11882 fi
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895   # Report which library types will actually be built
11896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11897 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11899 $as_echo "$can_build_shared" >&6; }
11900
11901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11902 $as_echo_n "checking whether to build shared libraries... " >&6; }
11903   test "$can_build_shared" = "no" && enable_shared=no
11904
11905   # On AIX, shared libraries and static libraries use the same namespace, and
11906   # are all built from PIC.
11907   case $host_os in
11908   aix3*)
11909     test "$enable_shared" = yes && enable_static=no
11910     if test -n "$RANLIB"; then
11911       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11912       postinstall_cmds='$RANLIB $lib'
11913     fi
11914     ;;
11915
11916   aix[4-9]*)
11917     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11918       test "$enable_shared" = yes && enable_static=no
11919     fi
11920     ;;
11921   esac
11922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11923 $as_echo "$enable_shared" >&6; }
11924
11925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11926 $as_echo_n "checking whether to build static libraries... " >&6; }
11927   # Make sure either enable_shared or enable_static is yes.
11928   test "$enable_shared" = yes || enable_static=yes
11929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11930 $as_echo "$enable_static" >&6; }
11931
11932
11933
11934
11935 fi
11936 ac_ext=c
11937 ac_cpp='$CPP $CPPFLAGS'
11938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11941
11942 CC="$lt_save_CC"
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958         ac_config_commands="$ac_config_commands libtool"
11959
11960
11961
11962
11963 # Only expand once:
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11976         if test -n "$ac_tool_prefix"; then
11977   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11978 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980 $as_echo_n "checking for $ac_word... " >&6; }
11981 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11982   $as_echo_n "(cached) " >&6
11983 else
11984   case $PKG_CONFIG in
11985   [\\/]* | ?:[\\/]*)
11986   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11987   ;;
11988   *)
11989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11991 do
11992   IFS=$as_save_IFS
11993   test -z "$as_dir" && as_dir=.
11994     for ac_exec_ext in '' $ac_executable_extensions; do
11995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11996     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11998     break 2
11999   fi
12000 done
12001   done
12002 IFS=$as_save_IFS
12003
12004   ;;
12005 esac
12006 fi
12007 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12008 if test -n "$PKG_CONFIG"; then
12009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12010 $as_echo "$PKG_CONFIG" >&6; }
12011 else
12012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12014 fi
12015
12016
12017 fi
12018 if test -z "$ac_cv_path_PKG_CONFIG"; then
12019   ac_pt_PKG_CONFIG=$PKG_CONFIG
12020   # Extract the first word of "pkg-config", so it can be a program name with args.
12021 set dummy pkg-config; ac_word=$2
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12023 $as_echo_n "checking for $ac_word... " >&6; }
12024 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12025   $as_echo_n "(cached) " >&6
12026 else
12027   case $ac_pt_PKG_CONFIG in
12028   [\\/]* | ?:[\\/]*)
12029   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12030   ;;
12031   *)
12032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033 for as_dir in $PATH
12034 do
12035   IFS=$as_save_IFS
12036   test -z "$as_dir" && as_dir=.
12037     for ac_exec_ext in '' $ac_executable_extensions; do
12038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12039     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12041     break 2
12042   fi
12043 done
12044   done
12045 IFS=$as_save_IFS
12046
12047   ;;
12048 esac
12049 fi
12050 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12051 if test -n "$ac_pt_PKG_CONFIG"; then
12052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12053 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12054 else
12055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056 $as_echo "no" >&6; }
12057 fi
12058
12059   if test "x$ac_pt_PKG_CONFIG" = x; then
12060     PKG_CONFIG=""
12061   else
12062     case $cross_compiling:$ac_tool_warned in
12063 yes:)
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12066 ac_tool_warned=yes ;;
12067 esac
12068     PKG_CONFIG=$ac_pt_PKG_CONFIG
12069   fi
12070 else
12071   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12072 fi
12073
12074 fi
12075 if test -n "$PKG_CONFIG"; then
12076         _pkg_min_version=0.9.0
12077         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12078 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12079         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12080                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12081 $as_echo "yes" >&6; }
12082         else
12083                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12085                 PKG_CONFIG=""
12086         fi
12087 fi
12088
12089 pkg_failed=no
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREADSTUBS" >&5
12091 $as_echo_n "checking for PTHREADSTUBS... " >&6; }
12092
12093 if test -n "$PTHREADSTUBS_CFLAGS"; then
12094     pkg_cv_PTHREADSTUBS_CFLAGS="$PTHREADSTUBS_CFLAGS"
12095  elif test -n "$PKG_CONFIG"; then
12096     if test -n "$PKG_CONFIG" && \
12097     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pthread-stubs\""; } >&5
12098   ($PKG_CONFIG --exists --print-errors "pthread-stubs") 2>&5
12099   ac_status=$?
12100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12101   test $ac_status = 0; }; then
12102   pkg_cv_PTHREADSTUBS_CFLAGS=`$PKG_CONFIG --cflags "pthread-stubs" 2>/dev/null`
12103                       test "x$?" != "x0" && pkg_failed=yes
12104 else
12105   pkg_failed=yes
12106 fi
12107  else
12108     pkg_failed=untried
12109 fi
12110 if test -n "$PTHREADSTUBS_LIBS"; then
12111     pkg_cv_PTHREADSTUBS_LIBS="$PTHREADSTUBS_LIBS"
12112  elif test -n "$PKG_CONFIG"; then
12113     if test -n "$PKG_CONFIG" && \
12114     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pthread-stubs\""; } >&5
12115   ($PKG_CONFIG --exists --print-errors "pthread-stubs") 2>&5
12116   ac_status=$?
12117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12118   test $ac_status = 0; }; then
12119   pkg_cv_PTHREADSTUBS_LIBS=`$PKG_CONFIG --libs "pthread-stubs" 2>/dev/null`
12120                       test "x$?" != "x0" && pkg_failed=yes
12121 else
12122   pkg_failed=yes
12123 fi
12124  else
12125     pkg_failed=untried
12126 fi
12127
12128
12129
12130 if test $pkg_failed = yes; then
12131         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132 $as_echo "no" >&6; }
12133
12134 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12135         _pkg_short_errors_supported=yes
12136 else
12137         _pkg_short_errors_supported=no
12138 fi
12139         if test $_pkg_short_errors_supported = yes; then
12140                 PTHREADSTUBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pthread-stubs" 2>&1`
12141         else
12142                 PTHREADSTUBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pthread-stubs" 2>&1`
12143         fi
12144         # Put the nasty error message in config.log where it belongs
12145         echo "$PTHREADSTUBS_PKG_ERRORS" >&5
12146
12147         as_fn_error $? "Package requirements (pthread-stubs) were not met:
12148
12149 $PTHREADSTUBS_PKG_ERRORS
12150
12151 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12152 installed software in a non-standard prefix.
12153
12154 Alternatively, you may set the environment variables PTHREADSTUBS_CFLAGS
12155 and PTHREADSTUBS_LIBS to avoid the need to call pkg-config.
12156 See the pkg-config man page for more details." "$LINENO" 5
12157 elif test $pkg_failed = untried; then
12158         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159 $as_echo "no" >&6; }
12160         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12162 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12163 is in your PATH or set the PKG_CONFIG environment variable to the full
12164 path to pkg-config.
12165
12166 Alternatively, you may set the environment variables PTHREADSTUBS_CFLAGS
12167 and PTHREADSTUBS_LIBS to avoid the need to call pkg-config.
12168 See the pkg-config man page for more details.
12169
12170 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12171 See \`config.log' for more details" "$LINENO" 5; }
12172 else
12173         PTHREADSTUBS_CFLAGS=$pkg_cv_PTHREADSTUBS_CFLAGS
12174         PTHREADSTUBS_LIBS=$pkg_cv_PTHREADSTUBS_LIBS
12175         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12176 $as_echo "yes" >&6; }
12177
12178 fi
12179
12180
12181
12182 pkgconfigdir=${libdir}/pkgconfig
12183
12184 # Check whether --enable-udev was given.
12185 if test "${enable_udev+set}" = set; then :
12186   enableval=$enable_udev; UDEV=$enableval
12187 else
12188   UDEV=no
12189 fi
12190
12191
12192 # Check whether --enable-libkms was given.
12193 if test "${enable_libkms+set}" = set; then :
12194   enableval=$enable_libkms; LIBKMS=$enableval
12195 else
12196   LIBKMS=auto
12197 fi
12198
12199
12200 # Check whether --enable-intel was given.
12201 if test "${enable_intel+set}" = set; then :
12202   enableval=$enable_intel; INTEL=$enableval
12203 else
12204   INTEL=auto
12205 fi
12206
12207
12208 # Check whether --enable-radeon was given.
12209 if test "${enable_radeon+set}" = set; then :
12210   enableval=$enable_radeon; RADEON=$enableval
12211 else
12212   RADEON=auto
12213 fi
12214
12215
12216 # Check whether --enable-nouveau was given.
12217 if test "${enable_nouveau+set}" = set; then :
12218   enableval=$enable_nouveau; NOUVEAU=$enableval
12219 else
12220   NOUVEAU=auto
12221 fi
12222
12223
12224 # Check whether --enable-vmwgfx-experimental-api was given.
12225 if test "${enable_vmwgfx_experimental_api+set}" = set; then :
12226   enableval=$enable_vmwgfx_experimental_api; VMWGFX=$enableval
12227 else
12228   VMWGFX=no
12229 fi
12230
12231
12232 # Check whether --enable-omap-experimental-api was given.
12233 if test "${enable_omap_experimental_api+set}" = set; then :
12234   enableval=$enable_omap_experimental_api; OMAP=$enableval
12235 else
12236   OMAP=no
12237 fi
12238
12239
12240 # Check whether --enable-exynos-experimental-api was given.
12241 if test "${enable_exynos_experimental_api+set}" = set; then :
12242   enableval=$enable_exynos_experimental_api; EXYNOS=$enableval
12243 else
12244   EXYNOS=no
12245 fi
12246
12247
12248
12249
12250
12251 for ac_func in clock_gettime
12252 do :
12253   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12254 if test "x$ac_cv_func_clock_gettime" = xyes; then :
12255   cat >>confdefs.h <<_ACEOF
12256 #define HAVE_CLOCK_GETTIME 1
12257 _ACEOF
12258  CLOCK_LIB=
12259 else
12260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12261 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12262 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12263   $as_echo_n "(cached) " >&6
12264 else
12265   ac_check_lib_save_LIBS=$LIBS
12266 LIBS="-lrt  $LIBS"
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h.  */
12269
12270 /* Override any GCC internal prototype to avoid an error.
12271    Use char because int might match the return type of a GCC
12272    builtin and then its argument prototype would still apply.  */
12273 #ifdef __cplusplus
12274 extern "C"
12275 #endif
12276 char clock_gettime ();
12277 int
12278 main ()
12279 {
12280 return clock_gettime ();
12281   ;
12282   return 0;
12283 }
12284 _ACEOF
12285 if ac_fn_c_try_link "$LINENO"; then :
12286   ac_cv_lib_rt_clock_gettime=yes
12287 else
12288   ac_cv_lib_rt_clock_gettime=no
12289 fi
12290 rm -f core conftest.err conftest.$ac_objext \
12291     conftest$ac_exeext conftest.$ac_ext
12292 LIBS=$ac_check_lib_save_LIBS
12293 fi
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12295 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12296 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12297   CLOCK_LIB=-lrt
12298 else
12299   as_fn_error $? "Couldn't find clock_gettime" "$LINENO" 5
12300 fi
12301
12302 fi
12303 done
12304
12305
12306
12307 for ac_func in open_memstream
12308 do :
12309   ac_fn_c_check_func "$LINENO" "open_memstream" "ac_cv_func_open_memstream"
12310 if test "x$ac_cv_func_open_memstream" = xyes; then :
12311   cat >>confdefs.h <<_ACEOF
12312 #define HAVE_OPEN_MEMSTREAM 1
12313 _ACEOF
12314  HAVE_OPEN_MEMSTREAM=yes
12315 fi
12316 done
12317
12318
12319
12320
12321 MAYBE_WARN="-Wall -Wextra \
12322 -Wsign-compare -Werror-implicit-function-declaration \
12323 -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
12324 -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
12325 -Wpacked -Wswitch-enum -Wmissing-format-attribute \
12326 -Wstrict-aliasing=2 -Winit-self \
12327 -Wdeclaration-after-statement -Wold-style-definition \
12328 -Wno-missing-field-initializers -Wno-unused-parameter \
12329 -Wno-attributes -Wno-long-long -Winline"
12330
12331 # invalidate cached value if MAYBE_WARN has changed
12332 if test "x$libdrm_cv_warn_maybe" != "x$MAYBE_WARN"; then
12333         unset libdrm_cv_warn_cflags
12334 fi
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported warning flags" >&5
12336 $as_echo_n "checking for supported warning flags... " >&6; }
12337 if ${libdrm_cv_warn_cflags+:} false; then :
12338   $as_echo_n "(cached) " >&6
12339 else
12340
12341         echo
12342         WARN_CFLAGS=""
12343
12344         # Some warning options are not supported by all versions of
12345         # gcc, so test all desired options against the current
12346         # compiler.
12347         #
12348         # Note that there are some order dependencies
12349         # here. Specifically, an option that disables a warning will
12350         # have no net effect if a later option then enables that
12351         # warnings, (perhaps implicitly). So we put some grouped
12352         # options (-Wall and -Wextra) up front and the -Wno options
12353         # last.
12354
12355         for W in $MAYBE_WARN; do
12356
12357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $W" >&5
12358 $as_echo_n "checking whether $CC supports $W... " >&6; }
12359
12360   libdrm_save_CFLAGS="$CFLAGS"
12361   CFLAGS="$CFLAGS $W"
12362
12363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h.  */
12365
12366 _ACEOF
12367 if ac_fn_c_try_compile "$LINENO"; then :
12368   libdrm_cc_flag=yes
12369 else
12370   libdrm_cc_flag=no
12371 fi
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373   CFLAGS="$libdrm_save_CFLAGS"
12374
12375   if test "x$libdrm_cc_flag" = "xyes"; then
12376     WARN_CFLAGS="$WARN_CFLAGS $W"
12377   else
12378     :
12379   fi
12380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_cc_flag" >&5
12381 $as_echo "$libdrm_cc_flag" >&6; }
12382
12383         done
12384
12385         libdrm_cv_warn_cflags=$WARN_CFLAGS
12386         libdrm_cv_warn_maybe=$MAYBE_WARN
12387
12388         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which warning flags were supported" >&5
12389 $as_echo_n "checking which warning flags were supported... " >&6; }
12390 fi
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_cv_warn_cflags" >&5
12392 $as_echo "$libdrm_cv_warn_cflags" >&6; }
12393 WARN_CFLAGS="$libdrm_cv_warn_cflags"
12394
12395 if test "x$UDEV" = xyes; then
12396
12397 $as_echo "#define UDEV 1" >>confdefs.h
12398
12399 fi
12400
12401
12402 if test "x$LIBKMS" = xauto ; then
12403         case $host_os in
12404                 linux*)         LIBKMS="yes" ;;
12405                 *)              LIBKMS="no" ;;
12406         esac
12407 fi
12408
12409  if test "x$LIBKMS" = xyes; then
12410   HAVE_LIBKMS_TRUE=
12411   HAVE_LIBKMS_FALSE='#'
12412 else
12413   HAVE_LIBKMS_TRUE='#'
12414   HAVE_LIBKMS_FALSE=
12415 fi
12416
12417
12418  if test "x$VMWGFX" = xyes; then
12419   HAVE_VMWGFX_TRUE=
12420   HAVE_VMWGFX_FALSE='#'
12421 else
12422   HAVE_VMWGFX_TRUE='#'
12423   HAVE_VMWGFX_FALSE=
12424 fi
12425
12426 if test "x$VMWGFX" = xyes; then
12427
12428 $as_echo "#define HAVE_VMWGFX 1" >>confdefs.h
12429
12430 fi
12431
12432  if test "x$NOUVEAU" = xyes; then
12433   HAVE_NOUVEAU_TRUE=
12434   HAVE_NOUVEAU_FALSE='#'
12435 else
12436   HAVE_NOUVEAU_TRUE='#'
12437   HAVE_NOUVEAU_FALSE=
12438 fi
12439
12440 if test "x$NOUVEAU" = xyes; then
12441
12442 $as_echo "#define HAVE_NOUVEAU 1" >>confdefs.h
12443
12444 fi
12445
12446  if test "x$OMAP" = xyes; then
12447   HAVE_OMAP_TRUE=
12448   HAVE_OMAP_FALSE='#'
12449 else
12450   HAVE_OMAP_TRUE='#'
12451   HAVE_OMAP_FALSE=
12452 fi
12453
12454 if test "x$OMAP" = xyes; then
12455
12456 $as_echo "#define HAVE_OMAP 1" >>confdefs.h
12457
12458 fi
12459
12460  if test "x$EXYNOS" = xyes; then
12461   HAVE_EXYNOS_TRUE=
12462   HAVE_EXYNOS_FALSE='#'
12463 else
12464   HAVE_EXYNOS_TRUE='#'
12465   HAVE_EXYNOS_FALSE=
12466 fi
12467
12468 if test "x$EXYNOS" = xyes; then
12469
12470 $as_echo "#define HAVE_EXYNOS 1" >>confdefs.h
12471
12472 fi
12473
12474
12475 pkg_failed=no
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
12477 $as_echo_n "checking for CAIRO... " >&6; }
12478
12479 if test -n "$CAIRO_CFLAGS"; then
12480     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
12481  elif test -n "$PKG_CONFIG"; then
12482     if test -n "$PKG_CONFIG" && \
12483     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
12484   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
12485   ac_status=$?
12486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12487   test $ac_status = 0; }; then
12488   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
12489                       test "x$?" != "x0" && pkg_failed=yes
12490 else
12491   pkg_failed=yes
12492 fi
12493  else
12494     pkg_failed=untried
12495 fi
12496 if test -n "$CAIRO_LIBS"; then
12497     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
12498  elif test -n "$PKG_CONFIG"; then
12499     if test -n "$PKG_CONFIG" && \
12500     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
12501   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
12502   ac_status=$?
12503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12504   test $ac_status = 0; }; then
12505   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
12506                       test "x$?" != "x0" && pkg_failed=yes
12507 else
12508   pkg_failed=yes
12509 fi
12510  else
12511     pkg_failed=untried
12512 fi
12513
12514
12515
12516 if test $pkg_failed = yes; then
12517         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12519
12520 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12521         _pkg_short_errors_supported=yes
12522 else
12523         _pkg_short_errors_supported=no
12524 fi
12525         if test $_pkg_short_errors_supported = yes; then
12526                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo" 2>&1`
12527         else
12528                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo" 2>&1`
12529         fi
12530         # Put the nasty error message in config.log where it belongs
12531         echo "$CAIRO_PKG_ERRORS" >&5
12532
12533         HAVE_CAIRO=no
12534 elif test $pkg_failed = untried; then
12535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12537         HAVE_CAIRO=no
12538 else
12539         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
12540         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
12541         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12542 $as_echo "yes" >&6; }
12543         HAVE_CAIRO=yes
12544 fi
12545 if test "x$HAVE_CAIRO" = xyes; then
12546
12547 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
12548
12549 fi
12550  if test "x$HAVE_CAIRO" = xyes; then
12551   HAVE_CAIRO_TRUE=
12552   HAVE_CAIRO_FALSE='#'
12553 else
12554   HAVE_CAIRO_TRUE='#'
12555   HAVE_CAIRO_FALSE=
12556 fi
12557
12558
12559 # For enumerating devices in test case
12560
12561 pkg_failed=no
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
12563 $as_echo_n "checking for LIBUDEV... " >&6; }
12564
12565 if test -n "$LIBUDEV_CFLAGS"; then
12566     pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
12567  elif test -n "$PKG_CONFIG"; then
12568     if test -n "$PKG_CONFIG" && \
12569     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
12570   ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
12571   ac_status=$?
12572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12573   test $ac_status = 0; }; then
12574   pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
12575                       test "x$?" != "x0" && pkg_failed=yes
12576 else
12577   pkg_failed=yes
12578 fi
12579  else
12580     pkg_failed=untried
12581 fi
12582 if test -n "$LIBUDEV_LIBS"; then
12583     pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
12584  elif test -n "$PKG_CONFIG"; then
12585     if test -n "$PKG_CONFIG" && \
12586     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
12587   ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
12588   ac_status=$?
12589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12590   test $ac_status = 0; }; then
12591   pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
12592                       test "x$?" != "x0" && pkg_failed=yes
12593 else
12594   pkg_failed=yes
12595 fi
12596  else
12597     pkg_failed=untried
12598 fi
12599
12600
12601
12602 if test $pkg_failed = yes; then
12603         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; }
12605
12606 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12607         _pkg_short_errors_supported=yes
12608 else
12609         _pkg_short_errors_supported=no
12610 fi
12611         if test $_pkg_short_errors_supported = yes; then
12612                 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
12613         else
12614                 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
12615         fi
12616         # Put the nasty error message in config.log where it belongs
12617         echo "$LIBUDEV_PKG_ERRORS" >&5
12618
12619         HAVE_LIBUDEV=no
12620 elif test $pkg_failed = untried; then
12621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12623         HAVE_LIBUDEV=no
12624 else
12625         LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
12626         LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
12627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12628 $as_echo "yes" >&6; }
12629         HAVE_LIBUDEV=yes
12630 fi
12631 if test "x$HAVE_LIBUDEV" = xyes; then
12632
12633 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
12634
12635 fi
12636  if test "x$HAVE_LIBUDEV" = xyes; then
12637   HAVE_LIBUDEV_TRUE=
12638   HAVE_LIBUDEV_FALSE='#'
12639 else
12640   HAVE_LIBUDEV_TRUE='#'
12641   HAVE_LIBUDEV_FALSE=
12642 fi
12643
12644
12645 if test "x$INTEL" != "xno" -o "x$RADEON" != "xno" -o "x$NOUVEAU" != "xno" -o "x$OMAP" != "xno"; then
12646     # Check for atomic intrinsics
12647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native atomic primitives" >&5
12648 $as_echo_n "checking for native atomic primitives... " >&6; }
12649 if ${drm_cv_atomic_primitives+:} false; then :
12650   $as_echo_n "(cached) " >&6
12651 else
12652
12653             drm_cv_atomic_primitives="none"
12654
12655             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656 /* end confdefs.h.  */
12657
12658     int atomic_add(int i) { return __sync_fetch_and_add (&i, 1); }
12659     int atomic_cmpxchg(int i, int j, int k) { return __sync_val_compare_and_swap (&i, j, k); }
12660
12661 int
12662 main ()
12663 {
12664
12665   ;
12666   return 0;
12667 }
12668 _ACEOF
12669 if ac_fn_c_try_link "$LINENO"; then :
12670   drm_cv_atomic_primitives="Intel"
12671 fi
12672 rm -f core conftest.err conftest.$ac_objext \
12673     conftest$ac_exeext conftest.$ac_ext
12674
12675             if test "x$drm_cv_atomic_primitives" = "xnone"; then
12676                     ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
12677 if test "x$ac_cv_header_atomic_ops_h" = xyes; then :
12678   drm_cv_atomic_primitives="libatomic-ops"
12679 fi
12680
12681
12682             fi
12683
12684             # atomic functions defined in <atomic.h> & libc on Solaris
12685             if test "x$drm_cv_atomic_primitives" = "xnone"; then
12686                     ac_fn_c_check_func "$LINENO" "atomic_cas_uint" "ac_cv_func_atomic_cas_uint"
12687 if test "x$ac_cv_func_atomic_cas_uint" = xyes; then :
12688   drm_cv_atomic_primitives="Solaris"
12689 fi
12690
12691             fi
12692
12693
12694 fi
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $drm_cv_atomic_primitives" >&5
12696 $as_echo "$drm_cv_atomic_primitives" >&6; }
12697     if test "x$drm_cv_atomic_primitives" = xIntel; then
12698
12699 $as_echo "#define HAVE_LIBDRM_ATOMIC_PRIMITIVES 1" >>confdefs.h
12700
12701     fi
12702     if test "x$drm_cv_atomic_primitives" = "xlibatomic-ops"; then
12703
12704 $as_echo "#define HAVE_LIB_ATOMIC_OPS 1" >>confdefs.h
12705
12706     fi
12707
12708     if test "x$drm_cv_atomic_primitives" = "xnone"; then
12709            if test "x$INTEL" != "xauto"; then
12710                    if test "x$INTEL" != "xno"; then
12711                         as_fn_error $? "libdrm_intel depends upon atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package, or, failing both of those, disable support for Intel GPUs by passing --disable-intel to ./configure" "$LINENO" 5
12712                    fi
12713            else
12714                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling libdrm_intel. It depends on atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." >&5
12715 $as_echo "$as_me: WARNING: Disabling libdrm_intel. It depends on atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." >&2;}
12716                    INTEL=no
12717            fi
12718            if test "x$RADEON" != "xauto"; then
12719                    if test "x$RADEON" != "xno"; then
12720                         as_fn_error $? "libdrm_radeon depends upon atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package, or, failing both of those, disable support for Radeon support by passing --disable-radeon to ./configure" "$LINENO" 5
12721                    fi
12722            else
12723                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling libdrm_radeon. It depends on atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." >&5
12724 $as_echo "$as_me: WARNING: Disabling libdrm_radeon. It depends on atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." >&2;}
12725                    RADEON=no
12726            fi
12727            if test "x$NOUVEAU" != "xauto"; then
12728                    if test "x$NOUVEAU" != "xno"; then
12729                         as_fn_error $? "libdrm_nouveau depends upon atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package, or, failing both of those, disable support for NVIDIA GPUs by passing --disable-nouveau to ./configure" "$LINENO" 5
12730                    fi
12731            else
12732                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling libdrm_nouveau. It depends on atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." >&5
12733 $as_echo "$as_me: WARNING: Disabling libdrm_nouveau. It depends on atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." >&2;}
12734                    NOUVEAU=no
12735            fi
12736     else
12737            if test "x$INTEL" != "xno"; then
12738                    case $host_cpu in
12739                            i?86|x86_64) INTEL=yes ;;
12740                            *) INTEL=no ;;
12741                    esac
12742            fi
12743            if test "x$RADEON" != "xno"; then
12744                    RADEON=yes
12745            fi
12746            if test "x$NOUVEAU" != "xno"; then
12747                    NOUVEAU=yes
12748            fi
12749     fi
12750 fi
12751
12752 if test "x$INTEL" != "xno"; then
12753
12754 pkg_failed=no
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
12756 $as_echo_n "checking for PCIACCESS... " >&6; }
12757
12758 if test -n "$PCIACCESS_CFLAGS"; then
12759     pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12760  elif test -n "$PKG_CONFIG"; then
12761     if test -n "$PKG_CONFIG" && \
12762     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
12763   ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
12764   ac_status=$?
12765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12766   test $ac_status = 0; }; then
12767   pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
12768                       test "x$?" != "x0" && pkg_failed=yes
12769 else
12770   pkg_failed=yes
12771 fi
12772  else
12773     pkg_failed=untried
12774 fi
12775 if test -n "$PCIACCESS_LIBS"; then
12776     pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12777  elif test -n "$PKG_CONFIG"; then
12778     if test -n "$PKG_CONFIG" && \
12779     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
12780   ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
12781   ac_status=$?
12782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12783   test $ac_status = 0; }; then
12784   pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
12785                       test "x$?" != "x0" && pkg_failed=yes
12786 else
12787   pkg_failed=yes
12788 fi
12789  else
12790     pkg_failed=untried
12791 fi
12792
12793
12794
12795 if test $pkg_failed = yes; then
12796         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797 $as_echo "no" >&6; }
12798
12799 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12800         _pkg_short_errors_supported=yes
12801 else
12802         _pkg_short_errors_supported=no
12803 fi
12804         if test $_pkg_short_errors_supported = yes; then
12805                 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
12806         else
12807                 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
12808         fi
12809         # Put the nasty error message in config.log where it belongs
12810         echo "$PCIACCESS_PKG_ERRORS" >&5
12811
12812         as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
12813
12814 $PCIACCESS_PKG_ERRORS
12815
12816 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12817 installed software in a non-standard prefix.
12818
12819 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12820 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12821 See the pkg-config man page for more details." "$LINENO" 5
12822 elif test $pkg_failed = untried; then
12823         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824 $as_echo "no" >&6; }
12825         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12827 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12828 is in your PATH or set the PKG_CONFIG environment variable to the full
12829 path to pkg-config.
12830
12831 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12832 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12833 See the pkg-config man page for more details.
12834
12835 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12836 See \`config.log' for more details" "$LINENO" 5; }
12837 else
12838         PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
12839         PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
12840         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12841 $as_echo "yes" >&6; }
12842
12843 fi
12844 fi
12845
12846
12847
12848
12849 pkg_failed=no
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
12851 $as_echo_n "checking for VALGRIND... " >&6; }
12852
12853 if test -n "$VALGRIND_CFLAGS"; then
12854     pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
12855  elif test -n "$PKG_CONFIG"; then
12856     if test -n "$PKG_CONFIG" && \
12857     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
12858   ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
12859   ac_status=$?
12860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12861   test $ac_status = 0; }; then
12862   pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
12863                       test "x$?" != "x0" && pkg_failed=yes
12864 else
12865   pkg_failed=yes
12866 fi
12867  else
12868     pkg_failed=untried
12869 fi
12870 if test -n "$VALGRIND_LIBS"; then
12871     pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
12872  elif test -n "$PKG_CONFIG"; then
12873     if test -n "$PKG_CONFIG" && \
12874     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
12875   ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
12876   ac_status=$?
12877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12878   test $ac_status = 0; }; then
12879   pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
12880                       test "x$?" != "x0" && pkg_failed=yes
12881 else
12882   pkg_failed=yes
12883 fi
12884  else
12885     pkg_failed=untried
12886 fi
12887
12888
12889
12890 if test $pkg_failed = yes; then
12891         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 $as_echo "no" >&6; }
12893
12894 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12895         _pkg_short_errors_supported=yes
12896 else
12897         _pkg_short_errors_supported=no
12898 fi
12899         if test $_pkg_short_errors_supported = yes; then
12900                 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
12901         else
12902                 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
12903         fi
12904         # Put the nasty error message in config.log where it belongs
12905         echo "$VALGRIND_PKG_ERRORS" >&5
12906
12907         have_valgrind=no
12908 elif test $pkg_failed = untried; then
12909         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910 $as_echo "no" >&6; }
12911         have_valgrind=no
12912 else
12913         VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
12914         VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
12915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12916 $as_echo "yes" >&6; }
12917         have_valgrind=yes
12918 fi
12919 if test "x$have_valgrind" = "xyes"; then
12920
12921 $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
12922
12923 fi
12924
12925  if test "x$INTEL" != "xno"; then
12926   HAVE_INTEL_TRUE=
12927   HAVE_INTEL_FALSE='#'
12928 else
12929   HAVE_INTEL_TRUE='#'
12930   HAVE_INTEL_FALSE=
12931 fi
12932
12933  if test "x$RADEON" != "xno"; then
12934   HAVE_RADEON_TRUE=
12935   HAVE_RADEON_FALSE='#'
12936 else
12937   HAVE_RADEON_TRUE='#'
12938   HAVE_RADEON_FALSE=
12939 fi
12940
12941  if test "x$NOUVEAU" != "xno"; then
12942   HAVE_NOUVEAU_TRUE=
12943   HAVE_NOUVEAU_FALSE='#'
12944 else
12945   HAVE_NOUVEAU_TRUE='#'
12946   HAVE_NOUVEAU_FALSE=
12947 fi
12948
12949 if test "x$RADEON" = xyes; then
12950
12951 $as_echo "#define HAVE_RADEON 1" >>confdefs.h
12952
12953 fi
12954
12955
12956 # Check whether --with-kernel-source was given.
12957 if test "${with_kernel_source+set}" = set; then :
12958   withval=$with_kernel_source; kernel_source="$with_kernel_source"
12959 fi
12960
12961
12962
12963
12964 ac_config_files="$ac_config_files Makefile libkms/Makefile libkms/libkms.pc intel/Makefile intel/libdrm_intel.pc radeon/Makefile radeon/libdrm_radeon.pc nouveau/Makefile nouveau/libdrm_nouveau.pc omap/Makefile omap/libdrm_omap.pc exynos/Makefile exynos/libdrm_exynos.pc tests/Makefile tests/modeprint/Makefile tests/modetest/Makefile tests/kmstest/Makefile tests/radeon/Makefile tests/vbltest/Makefile include/Makefile include/drm/Makefile libdrm.pc"
12965
12966 cat >confcache <<\_ACEOF
12967 # This file is a shell script that caches the results of configure
12968 # tests run on this system so they can be shared between configure
12969 # scripts and configure runs, see configure's option --config-cache.
12970 # It is not useful on other systems.  If it contains results you don't
12971 # want to keep, you may remove or edit it.
12972 #
12973 # config.status only pays attention to the cache file if you give it
12974 # the --recheck option to rerun configure.
12975 #
12976 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12977 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12978 # following values.
12979
12980 _ACEOF
12981
12982 # The following way of writing the cache mishandles newlines in values,
12983 # but we know of no workaround that is simple, portable, and efficient.
12984 # So, we kill variables containing newlines.
12985 # Ultrix sh set writes to stderr and can't be redirected directly,
12986 # and sets the high bit in the cache file unless we assign to the vars.
12987 (
12988   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12989     eval ac_val=\$$ac_var
12990     case $ac_val in #(
12991     *${as_nl}*)
12992       case $ac_var in #(
12993       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12995       esac
12996       case $ac_var in #(
12997       _ | IFS | as_nl) ;; #(
12998       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12999       *) { eval $ac_var=; unset $ac_var;} ;;
13000       esac ;;
13001     esac
13002   done
13003
13004   (set) 2>&1 |
13005     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13006     *${as_nl}ac_space=\ *)
13007       # `set' does not quote correctly, so add quotes: double-quote
13008       # substitution turns \\\\ into \\, and sed turns \\ into \.
13009       sed -n \
13010         "s/'/'\\\\''/g;
13011           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13012       ;; #(
13013     *)
13014       # `set' quotes correctly as required by POSIX, so do not add quotes.
13015       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13016       ;;
13017     esac |
13018     sort
13019 ) |
13020   sed '
13021      /^ac_cv_env_/b end
13022      t clear
13023      :clear
13024      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13025      t end
13026      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13027      :end' >>confcache
13028 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13029   if test -w "$cache_file"; then
13030     if test "x$cache_file" != "x/dev/null"; then
13031       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13032 $as_echo "$as_me: updating cache $cache_file" >&6;}
13033       if test ! -f "$cache_file" || test -h "$cache_file"; then
13034         cat confcache >"$cache_file"
13035       else
13036         case $cache_file in #(
13037         */* | ?:*)
13038           mv -f confcache "$cache_file"$$ &&
13039           mv -f "$cache_file"$$ "$cache_file" ;; #(
13040         *)
13041           mv -f confcache "$cache_file" ;;
13042         esac
13043       fi
13044     fi
13045   else
13046     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13047 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13048   fi
13049 fi
13050 rm -f confcache
13051
13052 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13053 # Let make expand exec_prefix.
13054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13055
13056 DEFS=-DHAVE_CONFIG_H
13057
13058 ac_libobjs=
13059 ac_ltlibobjs=
13060 U=
13061 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13062   # 1. Remove the extension, and $U if already installed.
13063   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13064   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13065   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13066   #    will be set to the directory where LIBOBJS objects are built.
13067   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13068   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13069 done
13070 LIBOBJS=$ac_libobjs
13071
13072 LTLIBOBJS=$ac_ltlibobjs
13073
13074
13075  if test -n "$EXEEXT"; then
13076   am__EXEEXT_TRUE=
13077   am__EXEEXT_FALSE='#'
13078 else
13079   am__EXEEXT_TRUE='#'
13080   am__EXEEXT_FALSE=
13081 fi
13082
13083 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13084   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13086 fi
13087 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13088   as_fn_error $? "conditional \"AMDEP\" was never defined.
13089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13090 fi
13091 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13092   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13094 fi
13095 if test -z "${HAVE_LIBKMS_TRUE}" && test -z "${HAVE_LIBKMS_FALSE}"; then
13096   as_fn_error $? "conditional \"HAVE_LIBKMS\" was never defined.
13097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13098 fi
13099 if test -z "${HAVE_VMWGFX_TRUE}" && test -z "${HAVE_VMWGFX_FALSE}"; then
13100   as_fn_error $? "conditional \"HAVE_VMWGFX\" was never defined.
13101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13102 fi
13103 if test -z "${HAVE_NOUVEAU_TRUE}" && test -z "${HAVE_NOUVEAU_FALSE}"; then
13104   as_fn_error $? "conditional \"HAVE_NOUVEAU\" was never defined.
13105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13106 fi
13107 if test -z "${HAVE_OMAP_TRUE}" && test -z "${HAVE_OMAP_FALSE}"; then
13108   as_fn_error $? "conditional \"HAVE_OMAP\" was never defined.
13109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13110 fi
13111 if test -z "${HAVE_EXYNOS_TRUE}" && test -z "${HAVE_EXYNOS_FALSE}"; then
13112   as_fn_error $? "conditional \"HAVE_EXYNOS\" was never defined.
13113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13114 fi
13115 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
13116   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
13117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13118 fi
13119 if test -z "${HAVE_LIBUDEV_TRUE}" && test -z "${HAVE_LIBUDEV_FALSE}"; then
13120   as_fn_error $? "conditional \"HAVE_LIBUDEV\" was never defined.
13121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13122 fi
13123 if test -z "${HAVE_INTEL_TRUE}" && test -z "${HAVE_INTEL_FALSE}"; then
13124   as_fn_error $? "conditional \"HAVE_INTEL\" was never defined.
13125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13126 fi
13127 if test -z "${HAVE_RADEON_TRUE}" && test -z "${HAVE_RADEON_FALSE}"; then
13128   as_fn_error $? "conditional \"HAVE_RADEON\" was never defined.
13129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13130 fi
13131 if test -z "${HAVE_NOUVEAU_TRUE}" && test -z "${HAVE_NOUVEAU_FALSE}"; then
13132   as_fn_error $? "conditional \"HAVE_NOUVEAU\" was never defined.
13133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13134 fi
13135
13136 : "${CONFIG_STATUS=./config.status}"
13137 ac_write_fail=0
13138 ac_clean_files_save=$ac_clean_files
13139 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13141 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13142 as_write_fail=0
13143 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13144 #! $SHELL
13145 # Generated by $as_me.
13146 # Run this file to recreate the current configuration.
13147 # Compiler output produced by configure, useful for debugging
13148 # configure, is in config.log if it exists.
13149
13150 debug=false
13151 ac_cs_recheck=false
13152 ac_cs_silent=false
13153
13154 SHELL=\${CONFIG_SHELL-$SHELL}
13155 export SHELL
13156 _ASEOF
13157 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13158 ## -------------------- ##
13159 ## M4sh Initialization. ##
13160 ## -------------------- ##
13161
13162 # Be more Bourne compatible
13163 DUALCASE=1; export DUALCASE # for MKS sh
13164 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13165   emulate sh
13166   NULLCMD=:
13167   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13168   # is contrary to our usage.  Disable this feature.
13169   alias -g '${1+"$@"}'='"$@"'
13170   setopt NO_GLOB_SUBST
13171 else
13172   case `(set -o) 2>/dev/null` in #(
13173   *posix*) :
13174     set -o posix ;; #(
13175   *) :
13176      ;;
13177 esac
13178 fi
13179
13180
13181 as_nl='
13182 '
13183 export as_nl
13184 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13185 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13186 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13187 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13188 # Prefer a ksh shell builtin over an external printf program on Solaris,
13189 # but without wasting forks for bash or zsh.
13190 if test -z "$BASH_VERSION$ZSH_VERSION" \
13191     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13192   as_echo='print -r --'
13193   as_echo_n='print -rn --'
13194 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13195   as_echo='printf %s\n'
13196   as_echo_n='printf %s'
13197 else
13198   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13199     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13200     as_echo_n='/usr/ucb/echo -n'
13201   else
13202     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13203     as_echo_n_body='eval
13204       arg=$1;
13205       case $arg in #(
13206       *"$as_nl"*)
13207         expr "X$arg" : "X\\(.*\\)$as_nl";
13208         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13209       esac;
13210       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13211     '
13212     export as_echo_n_body
13213     as_echo_n='sh -c $as_echo_n_body as_echo'
13214   fi
13215   export as_echo_body
13216   as_echo='sh -c $as_echo_body as_echo'
13217 fi
13218
13219 # The user is always right.
13220 if test "${PATH_SEPARATOR+set}" != set; then
13221   PATH_SEPARATOR=:
13222   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13223     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13224       PATH_SEPARATOR=';'
13225   }
13226 fi
13227
13228
13229 # IFS
13230 # We need space, tab and new line, in precisely that order.  Quoting is
13231 # there to prevent editors from complaining about space-tab.
13232 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13233 # splitting by setting IFS to empty value.)
13234 IFS=" ""        $as_nl"
13235
13236 # Find who we are.  Look in the path if we contain no directory separator.
13237 as_myself=
13238 case $0 in #((
13239   *[\\/]* ) as_myself=$0 ;;
13240   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241 for as_dir in $PATH
13242 do
13243   IFS=$as_save_IFS
13244   test -z "$as_dir" && as_dir=.
13245     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13246   done
13247 IFS=$as_save_IFS
13248
13249      ;;
13250 esac
13251 # We did not find ourselves, most probably we were run as `sh COMMAND'
13252 # in which case we are not to be found in the path.
13253 if test "x$as_myself" = x; then
13254   as_myself=$0
13255 fi
13256 if test ! -f "$as_myself"; then
13257   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13258   exit 1
13259 fi
13260
13261 # Unset variables that we do not need and which cause bugs (e.g. in
13262 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13263 # suppresses any "Segmentation fault" message there.  '((' could
13264 # trigger a bug in pdksh 5.2.14.
13265 for as_var in BASH_ENV ENV MAIL MAILPATH
13266 do eval test x\${$as_var+set} = xset \
13267   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13268 done
13269 PS1='$ '
13270 PS2='> '
13271 PS4='+ '
13272
13273 # NLS nuisances.
13274 LC_ALL=C
13275 export LC_ALL
13276 LANGUAGE=C
13277 export LANGUAGE
13278
13279 # CDPATH.
13280 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13281
13282
13283 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13284 # ----------------------------------------
13285 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13286 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13287 # script with STATUS, using 1 if that was 0.
13288 as_fn_error ()
13289 {
13290   as_status=$1; test $as_status -eq 0 && as_status=1
13291   if test "$4"; then
13292     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13293     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13294   fi
13295   $as_echo "$as_me: error: $2" >&2
13296   as_fn_exit $as_status
13297 } # as_fn_error
13298
13299
13300 # as_fn_set_status STATUS
13301 # -----------------------
13302 # Set $? to STATUS, without forking.
13303 as_fn_set_status ()
13304 {
13305   return $1
13306 } # as_fn_set_status
13307
13308 # as_fn_exit STATUS
13309 # -----------------
13310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13311 as_fn_exit ()
13312 {
13313   set +e
13314   as_fn_set_status $1
13315   exit $1
13316 } # as_fn_exit
13317
13318 # as_fn_unset VAR
13319 # ---------------
13320 # Portably unset VAR.
13321 as_fn_unset ()
13322 {
13323   { eval $1=; unset $1;}
13324 }
13325 as_unset=as_fn_unset
13326 # as_fn_append VAR VALUE
13327 # ----------------------
13328 # Append the text in VALUE to the end of the definition contained in VAR. Take
13329 # advantage of any shell optimizations that allow amortized linear growth over
13330 # repeated appends, instead of the typical quadratic growth present in naive
13331 # implementations.
13332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13333   eval 'as_fn_append ()
13334   {
13335     eval $1+=\$2
13336   }'
13337 else
13338   as_fn_append ()
13339   {
13340     eval $1=\$$1\$2
13341   }
13342 fi # as_fn_append
13343
13344 # as_fn_arith ARG...
13345 # ------------------
13346 # Perform arithmetic evaluation on the ARGs, and store the result in the
13347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13348 # must be portable across $(()) and expr.
13349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13350   eval 'as_fn_arith ()
13351   {
13352     as_val=$(( $* ))
13353   }'
13354 else
13355   as_fn_arith ()
13356   {
13357     as_val=`expr "$@" || test $? -eq 1`
13358   }
13359 fi # as_fn_arith
13360
13361
13362 if expr a : '\(a\)' >/dev/null 2>&1 &&
13363    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13364   as_expr=expr
13365 else
13366   as_expr=false
13367 fi
13368
13369 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13370   as_basename=basename
13371 else
13372   as_basename=false
13373 fi
13374
13375 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13376   as_dirname=dirname
13377 else
13378   as_dirname=false
13379 fi
13380
13381 as_me=`$as_basename -- "$0" ||
13382 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13383          X"$0" : 'X\(//\)$' \| \
13384          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13385 $as_echo X/"$0" |
13386     sed '/^.*\/\([^/][^/]*\)\/*$/{
13387             s//\1/
13388             q
13389           }
13390           /^X\/\(\/\/\)$/{
13391             s//\1/
13392             q
13393           }
13394           /^X\/\(\/\).*/{
13395             s//\1/
13396             q
13397           }
13398           s/.*/./; q'`
13399
13400 # Avoid depending upon Character Ranges.
13401 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13402 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13403 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13404 as_cr_digits='0123456789'
13405 as_cr_alnum=$as_cr_Letters$as_cr_digits
13406
13407 ECHO_C= ECHO_N= ECHO_T=
13408 case `echo -n x` in #(((((
13409 -n*)
13410   case `echo 'xy\c'` in
13411   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13412   xy)  ECHO_C='\c';;
13413   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13414        ECHO_T=' ';;
13415   esac;;
13416 *)
13417   ECHO_N='-n';;
13418 esac
13419
13420 rm -f conf$$ conf$$.exe conf$$.file
13421 if test -d conf$$.dir; then
13422   rm -f conf$$.dir/conf$$.file
13423 else
13424   rm -f conf$$.dir
13425   mkdir conf$$.dir 2>/dev/null
13426 fi
13427 if (echo >conf$$.file) 2>/dev/null; then
13428   if ln -s conf$$.file conf$$ 2>/dev/null; then
13429     as_ln_s='ln -s'
13430     # ... but there are two gotchas:
13431     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13432     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13433     # In both cases, we have to default to `cp -p'.
13434     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13435       as_ln_s='cp -p'
13436   elif ln conf$$.file conf$$ 2>/dev/null; then
13437     as_ln_s=ln
13438   else
13439     as_ln_s='cp -p'
13440   fi
13441 else
13442   as_ln_s='cp -p'
13443 fi
13444 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13445 rmdir conf$$.dir 2>/dev/null
13446
13447
13448 # as_fn_mkdir_p
13449 # -------------
13450 # Create "$as_dir" as a directory, including parents if necessary.
13451 as_fn_mkdir_p ()
13452 {
13453
13454   case $as_dir in #(
13455   -*) as_dir=./$as_dir;;
13456   esac
13457   test -d "$as_dir" || eval $as_mkdir_p || {
13458     as_dirs=
13459     while :; do
13460       case $as_dir in #(
13461       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13462       *) as_qdir=$as_dir;;
13463       esac
13464       as_dirs="'$as_qdir' $as_dirs"
13465       as_dir=`$as_dirname -- "$as_dir" ||
13466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13467          X"$as_dir" : 'X\(//\)[^/]' \| \
13468          X"$as_dir" : 'X\(//\)$' \| \
13469          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13470 $as_echo X"$as_dir" |
13471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13472             s//\1/
13473             q
13474           }
13475           /^X\(\/\/\)[^/].*/{
13476             s//\1/
13477             q
13478           }
13479           /^X\(\/\/\)$/{
13480             s//\1/
13481             q
13482           }
13483           /^X\(\/\).*/{
13484             s//\1/
13485             q
13486           }
13487           s/.*/./; q'`
13488       test -d "$as_dir" && break
13489     done
13490     test -z "$as_dirs" || eval "mkdir $as_dirs"
13491   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13492
13493
13494 } # as_fn_mkdir_p
13495 if mkdir -p . 2>/dev/null; then
13496   as_mkdir_p='mkdir -p "$as_dir"'
13497 else
13498   test -d ./-p && rmdir ./-p
13499   as_mkdir_p=false
13500 fi
13501
13502 if test -x / >/dev/null 2>&1; then
13503   as_test_x='test -x'
13504 else
13505   if ls -dL / >/dev/null 2>&1; then
13506     as_ls_L_option=L
13507   else
13508     as_ls_L_option=
13509   fi
13510   as_test_x='
13511     eval sh -c '\''
13512       if test -d "$1"; then
13513         test -d "$1/.";
13514       else
13515         case $1 in #(
13516         -*)set "./$1";;
13517         esac;
13518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13519         ???[sx]*):;;*)false;;esac;fi
13520     '\'' sh
13521   '
13522 fi
13523 as_executable_p=$as_test_x
13524
13525 # Sed expression to map a string onto a valid CPP name.
13526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13527
13528 # Sed expression to map a string onto a valid variable name.
13529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13530
13531
13532 exec 6>&1
13533 ## ----------------------------------- ##
13534 ## Main body of $CONFIG_STATUS script. ##
13535 ## ----------------------------------- ##
13536 _ASEOF
13537 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13538
13539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13540 # Save the log message, to keep $0 and so on meaningful, and to
13541 # report actual input values of CONFIG_FILES etc. instead of their
13542 # values after options handling.
13543 ac_log="
13544 This file was extended by libdrm $as_me 2.4.39, which was
13545 generated by GNU Autoconf 2.68.  Invocation command line was
13546
13547   CONFIG_FILES    = $CONFIG_FILES
13548   CONFIG_HEADERS  = $CONFIG_HEADERS
13549   CONFIG_LINKS    = $CONFIG_LINKS
13550   CONFIG_COMMANDS = $CONFIG_COMMANDS
13551   $ $0 $@
13552
13553 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13554 "
13555
13556 _ACEOF
13557
13558 case $ac_config_files in *"
13559 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13560 esac
13561
13562 case $ac_config_headers in *"
13563 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13564 esac
13565
13566
13567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13568 # Files that config.status was made for.
13569 config_files="$ac_config_files"
13570 config_headers="$ac_config_headers"
13571 config_commands="$ac_config_commands"
13572
13573 _ACEOF
13574
13575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13576 ac_cs_usage="\
13577 \`$as_me' instantiates files and other configuration actions
13578 from templates according to the current configuration.  Unless the files
13579 and actions are specified as TAGs, all are instantiated by default.
13580
13581 Usage: $0 [OPTION]... [TAG]...
13582
13583   -h, --help       print this help, then exit
13584   -V, --version    print version number and configuration settings, then exit
13585       --config     print configuration, then exit
13586   -q, --quiet, --silent
13587                    do not print progress messages
13588   -d, --debug      don't remove temporary files
13589       --recheck    update $as_me by reconfiguring in the same conditions
13590       --file=FILE[:TEMPLATE]
13591                    instantiate the configuration file FILE
13592       --header=FILE[:TEMPLATE]
13593                    instantiate the configuration header FILE
13594
13595 Configuration files:
13596 $config_files
13597
13598 Configuration headers:
13599 $config_headers
13600
13601 Configuration commands:
13602 $config_commands
13603
13604 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=DRI>."
13605
13606 _ACEOF
13607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13608 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13609 ac_cs_version="\\
13610 libdrm config.status 2.4.39
13611 configured by $0, generated by GNU Autoconf 2.68,
13612   with options \\"\$ac_cs_config\\"
13613
13614 Copyright (C) 2010 Free Software Foundation, Inc.
13615 This config.status script is free software; the Free Software Foundation
13616 gives unlimited permission to copy, distribute and modify it."
13617
13618 ac_pwd='$ac_pwd'
13619 srcdir='$srcdir'
13620 INSTALL='$INSTALL'
13621 MKDIR_P='$MKDIR_P'
13622 AWK='$AWK'
13623 test -n "\$AWK" || AWK=awk
13624 _ACEOF
13625
13626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13627 # The default lists apply if the user does not specify any file.
13628 ac_need_defaults=:
13629 while test $# != 0
13630 do
13631   case $1 in
13632   --*=?*)
13633     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13634     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13635     ac_shift=:
13636     ;;
13637   --*=)
13638     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13639     ac_optarg=
13640     ac_shift=:
13641     ;;
13642   *)
13643     ac_option=$1
13644     ac_optarg=$2
13645     ac_shift=shift
13646     ;;
13647   esac
13648
13649   case $ac_option in
13650   # Handling of the options.
13651   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13652     ac_cs_recheck=: ;;
13653   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13654     $as_echo "$ac_cs_version"; exit ;;
13655   --config | --confi | --conf | --con | --co | --c )
13656     $as_echo "$ac_cs_config"; exit ;;
13657   --debug | --debu | --deb | --de | --d | -d )
13658     debug=: ;;
13659   --file | --fil | --fi | --f )
13660     $ac_shift
13661     case $ac_optarg in
13662     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13663     '') as_fn_error $? "missing file argument" ;;
13664     esac
13665     as_fn_append CONFIG_FILES " '$ac_optarg'"
13666     ac_need_defaults=false;;
13667   --header | --heade | --head | --hea )
13668     $ac_shift
13669     case $ac_optarg in
13670     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13671     esac
13672     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13673     ac_need_defaults=false;;
13674   --he | --h)
13675     # Conflict between --help and --header
13676     as_fn_error $? "ambiguous option: \`$1'
13677 Try \`$0 --help' for more information.";;
13678   --help | --hel | -h )
13679     $as_echo "$ac_cs_usage"; exit ;;
13680   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13681   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13682     ac_cs_silent=: ;;
13683
13684   # This is an error.
13685   -*) as_fn_error $? "unrecognized option: \`$1'
13686 Try \`$0 --help' for more information." ;;
13687
13688   *) as_fn_append ac_config_targets " $1"
13689      ac_need_defaults=false ;;
13690
13691   esac
13692   shift
13693 done
13694
13695 ac_configure_extra_args=
13696
13697 if $ac_cs_silent; then
13698   exec 6>/dev/null
13699   ac_configure_extra_args="$ac_configure_extra_args --silent"
13700 fi
13701
13702 _ACEOF
13703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13704 if \$ac_cs_recheck; then
13705   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13706   shift
13707   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13708   CONFIG_SHELL='$SHELL'
13709   export CONFIG_SHELL
13710   exec "\$@"
13711 fi
13712
13713 _ACEOF
13714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13715 exec 5>>config.log
13716 {
13717   echo
13718   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13719 ## Running $as_me. ##
13720 _ASBOX
13721   $as_echo "$ac_log"
13722 } >&5
13723
13724 _ACEOF
13725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13726 #
13727 # INIT-COMMANDS
13728 #
13729 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13730
13731
13732 # The HP-UX ksh and POSIX shell print the target directory to stdout
13733 # if CDPATH is set.
13734 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13735
13736 sed_quote_subst='$sed_quote_subst'
13737 double_quote_subst='$double_quote_subst'
13738 delay_variable_subst='$delay_variable_subst'
13739 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13740 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13741 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13742 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13743 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13744 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13745 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13746 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13747 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13748 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13749 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13750 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13751 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13752 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13753 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13754 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13755 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13756 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13757 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13758 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13759 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13760 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13761 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13762 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13763 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13764 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13765 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13766 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13767 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13768 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13769 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13770 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13771 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13772 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13773 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13774 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13775 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13776 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13777 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13778 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13779 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13780 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13781 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13782 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13783 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13784 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13785 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13786 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13787 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13788 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13789 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13790 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13791 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13792 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13793 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13794 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13795 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"`'
13796 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13797 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13798 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13799 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13800 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13801 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13802 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13803 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13804 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13805 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13806 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13807 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13808 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13809 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13810 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13811 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13812 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13813 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13814 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13815 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13816 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13817 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13818 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13819 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13820 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13821 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13822 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13823 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13824 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13825 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13826 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13827 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13828 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13829 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13830 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13831 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13832 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13833 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13834 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13835 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13836 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13837 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13838 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13839 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13840 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13841 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13842 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13843 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13844 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13845 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13846 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13847 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13848 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13849 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13850 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13851 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13852 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13853 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13854 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13855 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13856 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13857 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13858 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13859 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13860 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13861 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13862 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13863 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13864 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13865 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13866 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13867 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13868 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13869
13870 LTCC='$LTCC'
13871 LTCFLAGS='$LTCFLAGS'
13872 compiler='$compiler_DEFAULT'
13873
13874 # A function that is used when there is no print builtin or printf.
13875 func_fallback_echo ()
13876 {
13877   eval 'cat <<_LTECHO_EOF
13878 \$1
13879 _LTECHO_EOF'
13880 }
13881
13882 # Quote evaled strings.
13883 for var in SHELL \
13884 ECHO \
13885 PATH_SEPARATOR \
13886 SED \
13887 GREP \
13888 EGREP \
13889 FGREP \
13890 LD \
13891 NM \
13892 LN_S \
13893 lt_SP2NL \
13894 lt_NL2SP \
13895 reload_flag \
13896 OBJDUMP \
13897 deplibs_check_method \
13898 file_magic_cmd \
13899 file_magic_glob \
13900 want_nocaseglob \
13901 DLLTOOL \
13902 sharedlib_from_linklib_cmd \
13903 AR \
13904 AR_FLAGS \
13905 archiver_list_spec \
13906 STRIP \
13907 RANLIB \
13908 CC \
13909 CFLAGS \
13910 compiler \
13911 lt_cv_sys_global_symbol_pipe \
13912 lt_cv_sys_global_symbol_to_cdecl \
13913 lt_cv_sys_global_symbol_to_c_name_address \
13914 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13915 nm_file_list_spec \
13916 lt_prog_compiler_no_builtin_flag \
13917 lt_prog_compiler_pic \
13918 lt_prog_compiler_wl \
13919 lt_prog_compiler_static \
13920 lt_cv_prog_compiler_c_o \
13921 need_locks \
13922 MANIFEST_TOOL \
13923 DSYMUTIL \
13924 NMEDIT \
13925 LIPO \
13926 OTOOL \
13927 OTOOL64 \
13928 shrext_cmds \
13929 export_dynamic_flag_spec \
13930 whole_archive_flag_spec \
13931 compiler_needs_object \
13932 with_gnu_ld \
13933 allow_undefined_flag \
13934 no_undefined_flag \
13935 hardcode_libdir_flag_spec \
13936 hardcode_libdir_separator \
13937 exclude_expsyms \
13938 include_expsyms \
13939 file_list_spec \
13940 variables_saved_for_relink \
13941 libname_spec \
13942 library_names_spec \
13943 soname_spec \
13944 install_override_mode \
13945 finish_eval \
13946 old_striplib \
13947 striplib; do
13948     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13949     *[\\\\\\\`\\"\\\$]*)
13950       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13951       ;;
13952     *)
13953       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13954       ;;
13955     esac
13956 done
13957
13958 # Double-quote double-evaled strings.
13959 for var in reload_cmds \
13960 old_postinstall_cmds \
13961 old_postuninstall_cmds \
13962 old_archive_cmds \
13963 extract_expsyms_cmds \
13964 old_archive_from_new_cmds \
13965 old_archive_from_expsyms_cmds \
13966 archive_cmds \
13967 archive_expsym_cmds \
13968 module_cmds \
13969 module_expsym_cmds \
13970 export_symbols_cmds \
13971 prelink_cmds \
13972 postlink_cmds \
13973 postinstall_cmds \
13974 postuninstall_cmds \
13975 finish_cmds \
13976 sys_lib_search_path_spec \
13977 sys_lib_dlsearch_path_spec; do
13978     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13979     *[\\\\\\\`\\"\\\$]*)
13980       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13981       ;;
13982     *)
13983       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13984       ;;
13985     esac
13986 done
13987
13988 ac_aux_dir='$ac_aux_dir'
13989 xsi_shell='$xsi_shell'
13990 lt_shell_append='$lt_shell_append'
13991
13992 # See if we are running on zsh, and set the options which allow our
13993 # commands through without removal of \ escapes INIT.
13994 if test -n "\${ZSH_VERSION+set}" ; then
13995    setopt NO_GLOB_SUBST
13996 fi
13997
13998
13999     PACKAGE='$PACKAGE'
14000     VERSION='$VERSION'
14001     TIMESTAMP='$TIMESTAMP'
14002     RM='$RM'
14003     ofile='$ofile'
14004
14005
14006
14007
14008 _ACEOF
14009
14010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14011
14012 # Handling of arguments.
14013 for ac_config_target in $ac_config_targets
14014 do
14015   case $ac_config_target in
14016     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14017     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14018     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14019     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14020     "libkms/Makefile") CONFIG_FILES="$CONFIG_FILES libkms/Makefile" ;;
14021     "libkms/libkms.pc") CONFIG_FILES="$CONFIG_FILES libkms/libkms.pc" ;;
14022     "intel/Makefile") CONFIG_FILES="$CONFIG_FILES intel/Makefile" ;;
14023     "intel/libdrm_intel.pc") CONFIG_FILES="$CONFIG_FILES intel/libdrm_intel.pc" ;;
14024     "radeon/Makefile") CONFIG_FILES="$CONFIG_FILES radeon/Makefile" ;;
14025     "radeon/libdrm_radeon.pc") CONFIG_FILES="$CONFIG_FILES radeon/libdrm_radeon.pc" ;;
14026     "nouveau/Makefile") CONFIG_FILES="$CONFIG_FILES nouveau/Makefile" ;;
14027     "nouveau/libdrm_nouveau.pc") CONFIG_FILES="$CONFIG_FILES nouveau/libdrm_nouveau.pc" ;;
14028     "omap/Makefile") CONFIG_FILES="$CONFIG_FILES omap/Makefile" ;;
14029     "omap/libdrm_omap.pc") CONFIG_FILES="$CONFIG_FILES omap/libdrm_omap.pc" ;;
14030     "exynos/Makefile") CONFIG_FILES="$CONFIG_FILES exynos/Makefile" ;;
14031     "exynos/libdrm_exynos.pc") CONFIG_FILES="$CONFIG_FILES exynos/libdrm_exynos.pc" ;;
14032     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14033     "tests/modeprint/Makefile") CONFIG_FILES="$CONFIG_FILES tests/modeprint/Makefile" ;;
14034     "tests/modetest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/modetest/Makefile" ;;
14035     "tests/kmstest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kmstest/Makefile" ;;
14036     "tests/radeon/Makefile") CONFIG_FILES="$CONFIG_FILES tests/radeon/Makefile" ;;
14037     "tests/vbltest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/vbltest/Makefile" ;;
14038     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14039     "include/drm/Makefile") CONFIG_FILES="$CONFIG_FILES include/drm/Makefile" ;;
14040     "libdrm.pc") CONFIG_FILES="$CONFIG_FILES libdrm.pc" ;;
14041
14042   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14043   esac
14044 done
14045
14046
14047 # If the user did not use the arguments to specify the items to instantiate,
14048 # then the envvar interface is used.  Set only those that are not.
14049 # We use the long form for the default assignment because of an extremely
14050 # bizarre bug on SunOS 4.1.3.
14051 if $ac_need_defaults; then
14052   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14053   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14054   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14055 fi
14056
14057 # Have a temporary directory for convenience.  Make it in the build tree
14058 # simply because there is no reason against having it here, and in addition,
14059 # creating and moving files from /tmp can sometimes cause problems.
14060 # Hook for its removal unless debugging.
14061 # Note that there is a small window in which the directory will not be cleaned:
14062 # after its creation but before its name has been assigned to `$tmp'.
14063 $debug ||
14064 {
14065   tmp= ac_tmp=
14066   trap 'exit_status=$?
14067   : "${ac_tmp:=$tmp}"
14068   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14069 ' 0
14070   trap 'as_fn_exit 1' 1 2 13 15
14071 }
14072 # Create a (secure) tmp directory for tmp files.
14073
14074 {
14075   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14076   test -d "$tmp"
14077 }  ||
14078 {
14079   tmp=./conf$$-$RANDOM
14080   (umask 077 && mkdir "$tmp")
14081 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14082 ac_tmp=$tmp
14083
14084 # Set up the scripts for CONFIG_FILES section.
14085 # No need to generate them if there are no CONFIG_FILES.
14086 # This happens for instance with `./config.status config.h'.
14087 if test -n "$CONFIG_FILES"; then
14088
14089
14090 ac_cr=`echo X | tr X '\015'`
14091 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14092 # But we know of no other shell where ac_cr would be empty at this
14093 # point, so we can use a bashism as a fallback.
14094 if test "x$ac_cr" = x; then
14095   eval ac_cr=\$\'\\r\'
14096 fi
14097 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14098 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14099   ac_cs_awk_cr='\\r'
14100 else
14101   ac_cs_awk_cr=$ac_cr
14102 fi
14103
14104 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14105 _ACEOF
14106
14107
14108 {
14109   echo "cat >conf$$subs.awk <<_ACEOF" &&
14110   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14111   echo "_ACEOF"
14112 } >conf$$subs.sh ||
14113   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14114 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14115 ac_delim='%!_!# '
14116 for ac_last_try in false false false false false :; do
14117   . ./conf$$subs.sh ||
14118     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14119
14120   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14121   if test $ac_delim_n = $ac_delim_num; then
14122     break
14123   elif $ac_last_try; then
14124     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14125   else
14126     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14127   fi
14128 done
14129 rm -f conf$$subs.sh
14130
14131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14132 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14133 _ACEOF
14134 sed -n '
14135 h
14136 s/^/S["/; s/!.*/"]=/
14137 p
14138 g
14139 s/^[^!]*!//
14140 :repl
14141 t repl
14142 s/'"$ac_delim"'$//
14143 t delim
14144 :nl
14145 h
14146 s/\(.\{148\}\)..*/\1/
14147 t more1
14148 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14149 p
14150 n
14151 b repl
14152 :more1
14153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14154 p
14155 g
14156 s/.\{148\}//
14157 t nl
14158 :delim
14159 h
14160 s/\(.\{148\}\)..*/\1/
14161 t more2
14162 s/["\\]/\\&/g; s/^/"/; s/$/"/
14163 p
14164 b
14165 :more2
14166 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14167 p
14168 g
14169 s/.\{148\}//
14170 t delim
14171 ' <conf$$subs.awk | sed '
14172 /^[^""]/{
14173   N
14174   s/\n//
14175 }
14176 ' >>$CONFIG_STATUS || ac_write_fail=1
14177 rm -f conf$$subs.awk
14178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14179 _ACAWK
14180 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14181   for (key in S) S_is_set[key] = 1
14182   FS = "\a"
14183
14184 }
14185 {
14186   line = $ 0
14187   nfields = split(line, field, "@")
14188   substed = 0
14189   len = length(field[1])
14190   for (i = 2; i < nfields; i++) {
14191     key = field[i]
14192     keylen = length(key)
14193     if (S_is_set[key]) {
14194       value = S[key]
14195       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14196       len += length(value) + length(field[++i])
14197       substed = 1
14198     } else
14199       len += 1 + keylen
14200   }
14201
14202   print line
14203 }
14204
14205 _ACAWK
14206 _ACEOF
14207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14208 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14209   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14210 else
14211   cat
14212 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14213   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14214 _ACEOF
14215
14216 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14217 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14218 # trailing colons and then remove the whole line if VPATH becomes empty
14219 # (actually we leave an empty line to preserve line numbers).
14220 if test "x$srcdir" = x.; then
14221   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14222 h
14223 s///
14224 s/^/:/
14225 s/[      ]*$/:/
14226 s/:\$(srcdir):/:/g
14227 s/:\${srcdir}:/:/g
14228 s/:@srcdir@:/:/g
14229 s/^:*//
14230 s/:*$//
14231 x
14232 s/\(=[   ]*\).*/\1/
14233 G
14234 s/\n//
14235 s/^[^=]*=[       ]*$//
14236 }'
14237 fi
14238
14239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14240 fi # test -n "$CONFIG_FILES"
14241
14242 # Set up the scripts for CONFIG_HEADERS section.
14243 # No need to generate them if there are no CONFIG_HEADERS.
14244 # This happens for instance with `./config.status Makefile'.
14245 if test -n "$CONFIG_HEADERS"; then
14246 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14247 BEGIN {
14248 _ACEOF
14249
14250 # Transform confdefs.h into an awk script `defines.awk', embedded as
14251 # here-document in config.status, that substitutes the proper values into
14252 # config.h.in to produce config.h.
14253
14254 # Create a delimiter string that does not exist in confdefs.h, to ease
14255 # handling of long lines.
14256 ac_delim='%!_!# '
14257 for ac_last_try in false false :; do
14258   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14259   if test -z "$ac_tt"; then
14260     break
14261   elif $ac_last_try; then
14262     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14263   else
14264     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14265   fi
14266 done
14267
14268 # For the awk script, D is an array of macro values keyed by name,
14269 # likewise P contains macro parameters if any.  Preserve backslash
14270 # newline sequences.
14271
14272 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14273 sed -n '
14274 s/.\{148\}/&'"$ac_delim"'/g
14275 t rset
14276 :rset
14277 s/^[     ]*#[    ]*define[       ][      ]*/ /
14278 t def
14279 d
14280 :def
14281 s/\\$//
14282 t bsnl
14283 s/["\\]/\\&/g
14284 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14285 D["\1"]=" \3"/p
14286 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14287 d
14288 :bsnl
14289 s/["\\]/\\&/g
14290 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14291 D["\1"]=" \3\\\\\\n"\\/p
14292 t cont
14293 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14294 t cont
14295 d
14296 :cont
14297 n
14298 s/.\{148\}/&'"$ac_delim"'/g
14299 t clear
14300 :clear
14301 s/\\$//
14302 t bsnlc
14303 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14304 d
14305 :bsnlc
14306 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14307 b cont
14308 ' <confdefs.h | sed '
14309 s/'"$ac_delim"'/"\\\
14310 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14311
14312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14313   for (key in D) D_is_set[key] = 1
14314   FS = "\a"
14315 }
14316 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14317   line = \$ 0
14318   split(line, arg, " ")
14319   if (arg[1] == "#") {
14320     defundef = arg[2]
14321     mac1 = arg[3]
14322   } else {
14323     defundef = substr(arg[1], 2)
14324     mac1 = arg[2]
14325   }
14326   split(mac1, mac2, "(") #)
14327   macro = mac2[1]
14328   prefix = substr(line, 1, index(line, defundef) - 1)
14329   if (D_is_set[macro]) {
14330     # Preserve the white space surrounding the "#".
14331     print prefix "define", macro P[macro] D[macro]
14332     next
14333   } else {
14334     # Replace #undef with comments.  This is necessary, for example,
14335     # in the case of _POSIX_SOURCE, which is predefined and required
14336     # on some systems where configure will not decide to define it.
14337     if (defundef == "undef") {
14338       print "/*", prefix defundef, macro, "*/"
14339       next
14340     }
14341   }
14342 }
14343 { print }
14344 _ACAWK
14345 _ACEOF
14346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14347   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14348 fi # test -n "$CONFIG_HEADERS"
14349
14350
14351 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14352 shift
14353 for ac_tag
14354 do
14355   case $ac_tag in
14356   :[FHLC]) ac_mode=$ac_tag; continue;;
14357   esac
14358   case $ac_mode$ac_tag in
14359   :[FHL]*:*);;
14360   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14361   :[FH]-) ac_tag=-:-;;
14362   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14363   esac
14364   ac_save_IFS=$IFS
14365   IFS=:
14366   set x $ac_tag
14367   IFS=$ac_save_IFS
14368   shift
14369   ac_file=$1
14370   shift
14371
14372   case $ac_mode in
14373   :L) ac_source=$1;;
14374   :[FH])
14375     ac_file_inputs=
14376     for ac_f
14377     do
14378       case $ac_f in
14379       -) ac_f="$ac_tmp/stdin";;
14380       *) # Look for the file first in the build tree, then in the source tree
14381          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14382          # because $ac_f cannot contain `:'.
14383          test -f "$ac_f" ||
14384            case $ac_f in
14385            [\\/$]*) false;;
14386            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14387            esac ||
14388            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14389       esac
14390       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14391       as_fn_append ac_file_inputs " '$ac_f'"
14392     done
14393
14394     # Let's still pretend it is `configure' which instantiates (i.e., don't
14395     # use $as_me), people would be surprised to read:
14396     #    /* config.h.  Generated by config.status.  */
14397     configure_input='Generated from '`
14398           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14399         `' by configure.'
14400     if test x"$ac_file" != x-; then
14401       configure_input="$ac_file.  $configure_input"
14402       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14403 $as_echo "$as_me: creating $ac_file" >&6;}
14404     fi
14405     # Neutralize special characters interpreted by sed in replacement strings.
14406     case $configure_input in #(
14407     *\&* | *\|* | *\\* )
14408        ac_sed_conf_input=`$as_echo "$configure_input" |
14409        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14410     *) ac_sed_conf_input=$configure_input;;
14411     esac
14412
14413     case $ac_tag in
14414     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14415       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14416     esac
14417     ;;
14418   esac
14419
14420   ac_dir=`$as_dirname -- "$ac_file" ||
14421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14422          X"$ac_file" : 'X\(//\)[^/]' \| \
14423          X"$ac_file" : 'X\(//\)$' \| \
14424          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14425 $as_echo X"$ac_file" |
14426     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14427             s//\1/
14428             q
14429           }
14430           /^X\(\/\/\)[^/].*/{
14431             s//\1/
14432             q
14433           }
14434           /^X\(\/\/\)$/{
14435             s//\1/
14436             q
14437           }
14438           /^X\(\/\).*/{
14439             s//\1/
14440             q
14441           }
14442           s/.*/./; q'`
14443   as_dir="$ac_dir"; as_fn_mkdir_p
14444   ac_builddir=.
14445
14446 case "$ac_dir" in
14447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14448 *)
14449   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14450   # A ".." for each directory in $ac_dir_suffix.
14451   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14452   case $ac_top_builddir_sub in
14453   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14454   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14455   esac ;;
14456 esac
14457 ac_abs_top_builddir=$ac_pwd
14458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14459 # for backward compatibility:
14460 ac_top_builddir=$ac_top_build_prefix
14461
14462 case $srcdir in
14463   .)  # We are building in place.
14464     ac_srcdir=.
14465     ac_top_srcdir=$ac_top_builddir_sub
14466     ac_abs_top_srcdir=$ac_pwd ;;
14467   [\\/]* | ?:[\\/]* )  # Absolute name.
14468     ac_srcdir=$srcdir$ac_dir_suffix;
14469     ac_top_srcdir=$srcdir
14470     ac_abs_top_srcdir=$srcdir ;;
14471   *) # Relative name.
14472     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14473     ac_top_srcdir=$ac_top_build_prefix$srcdir
14474     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14475 esac
14476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14477
14478
14479   case $ac_mode in
14480   :F)
14481   #
14482   # CONFIG_FILE
14483   #
14484
14485   case $INSTALL in
14486   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14487   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14488   esac
14489   ac_MKDIR_P=$MKDIR_P
14490   case $MKDIR_P in
14491   [\\/$]* | ?:[\\/]* ) ;;
14492   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14493   esac
14494 _ACEOF
14495
14496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14497 # If the template does not know about datarootdir, expand it.
14498 # FIXME: This hack should be removed a few years after 2.60.
14499 ac_datarootdir_hack=; ac_datarootdir_seen=
14500 ac_sed_dataroot='
14501 /datarootdir/ {
14502   p
14503   q
14504 }
14505 /@datadir@/p
14506 /@docdir@/p
14507 /@infodir@/p
14508 /@localedir@/p
14509 /@mandir@/p'
14510 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14511 *datarootdir*) ac_datarootdir_seen=yes;;
14512 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14513   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14514 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14515 _ACEOF
14516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14517   ac_datarootdir_hack='
14518   s&@datadir@&$datadir&g
14519   s&@docdir@&$docdir&g
14520   s&@infodir@&$infodir&g
14521   s&@localedir@&$localedir&g
14522   s&@mandir@&$mandir&g
14523   s&\\\${datarootdir}&$datarootdir&g' ;;
14524 esac
14525 _ACEOF
14526
14527 # Neutralize VPATH when `$srcdir' = `.'.
14528 # Shell code in configure.ac might set extrasub.
14529 # FIXME: do we really want to maintain this feature?
14530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14531 ac_sed_extra="$ac_vpsub
14532 $extrasub
14533 _ACEOF
14534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14535 :t
14536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14537 s|@configure_input@|$ac_sed_conf_input|;t t
14538 s&@top_builddir@&$ac_top_builddir_sub&;t t
14539 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14540 s&@srcdir@&$ac_srcdir&;t t
14541 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14542 s&@top_srcdir@&$ac_top_srcdir&;t t
14543 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14544 s&@builddir@&$ac_builddir&;t t
14545 s&@abs_builddir@&$ac_abs_builddir&;t t
14546 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14547 s&@INSTALL@&$ac_INSTALL&;t t
14548 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14549 $ac_datarootdir_hack
14550 "
14551 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14552   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14553
14554 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14555   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14556   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14557       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14558   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14559 which seems to be undefined.  Please make sure it is defined" >&5
14560 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14561 which seems to be undefined.  Please make sure it is defined" >&2;}
14562
14563   rm -f "$ac_tmp/stdin"
14564   case $ac_file in
14565   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14566   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14567   esac \
14568   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14569  ;;
14570   :H)
14571   #
14572   # CONFIG_HEADER
14573   #
14574   if test x"$ac_file" != x-; then
14575     {
14576       $as_echo "/* $configure_input  */" \
14577       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14578     } >"$ac_tmp/config.h" \
14579       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14580     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14581       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14582 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14583     else
14584       rm -f "$ac_file"
14585       mv "$ac_tmp/config.h" "$ac_file" \
14586         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14587     fi
14588   else
14589     $as_echo "/* $configure_input  */" \
14590       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14591       || as_fn_error $? "could not create -" "$LINENO" 5
14592   fi
14593 # Compute "$ac_file"'s index in $config_headers.
14594 _am_arg="$ac_file"
14595 _am_stamp_count=1
14596 for _am_header in $config_headers :; do
14597   case $_am_header in
14598     $_am_arg | $_am_arg:* )
14599       break ;;
14600     * )
14601       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14602   esac
14603 done
14604 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14605 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14606          X"$_am_arg" : 'X\(//\)[^/]' \| \
14607          X"$_am_arg" : 'X\(//\)$' \| \
14608          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14609 $as_echo X"$_am_arg" |
14610     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14611             s//\1/
14612             q
14613           }
14614           /^X\(\/\/\)[^/].*/{
14615             s//\1/
14616             q
14617           }
14618           /^X\(\/\/\)$/{
14619             s//\1/
14620             q
14621           }
14622           /^X\(\/\).*/{
14623             s//\1/
14624             q
14625           }
14626           s/.*/./; q'`/stamp-h$_am_stamp_count
14627  ;;
14628
14629   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14630 $as_echo "$as_me: executing $ac_file commands" >&6;}
14631  ;;
14632   esac
14633
14634
14635   case $ac_file$ac_mode in
14636     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14637   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14638   # are listed without --file.  Let's play safe and only enable the eval
14639   # if we detect the quoting.
14640   case $CONFIG_FILES in
14641   *\'*) eval set x "$CONFIG_FILES" ;;
14642   *)   set x $CONFIG_FILES ;;
14643   esac
14644   shift
14645   for mf
14646   do
14647     # Strip MF so we end up with the name of the file.
14648     mf=`echo "$mf" | sed -e 's/:.*$//'`
14649     # Check whether this is an Automake generated Makefile or not.
14650     # We used to match only the files named `Makefile.in', but
14651     # some people rename them; so instead we look at the file content.
14652     # Grep'ing the first line is not enough: some people post-process
14653     # each Makefile.in and add a new line on top of each file to say so.
14654     # Grep'ing the whole file is not good either: AIX grep has a line
14655     # limit of 2048, but all sed's we know have understand at least 4000.
14656     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14657       dirpart=`$as_dirname -- "$mf" ||
14658 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14659          X"$mf" : 'X\(//\)[^/]' \| \
14660          X"$mf" : 'X\(//\)$' \| \
14661          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14662 $as_echo X"$mf" |
14663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14664             s//\1/
14665             q
14666           }
14667           /^X\(\/\/\)[^/].*/{
14668             s//\1/
14669             q
14670           }
14671           /^X\(\/\/\)$/{
14672             s//\1/
14673             q
14674           }
14675           /^X\(\/\).*/{
14676             s//\1/
14677             q
14678           }
14679           s/.*/./; q'`
14680     else
14681       continue
14682     fi
14683     # Extract the definition of DEPDIR, am__include, and am__quote
14684     # from the Makefile without running `make'.
14685     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14686     test -z "$DEPDIR" && continue
14687     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14688     test -z "am__include" && continue
14689     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14690     # When using ansi2knr, U may be empty or an underscore; expand it
14691     U=`sed -n 's/^U = //p' < "$mf"`
14692     # Find all dependency output files, they are included files with
14693     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14694     # simplest approach to changing $(DEPDIR) to its actual value in the
14695     # expansion.
14696     for file in `sed -n "
14697       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14698          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14699       # Make sure the directory exists.
14700       test -f "$dirpart/$file" && continue
14701       fdir=`$as_dirname -- "$file" ||
14702 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14703          X"$file" : 'X\(//\)[^/]' \| \
14704          X"$file" : 'X\(//\)$' \| \
14705          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14706 $as_echo X"$file" |
14707     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14708             s//\1/
14709             q
14710           }
14711           /^X\(\/\/\)[^/].*/{
14712             s//\1/
14713             q
14714           }
14715           /^X\(\/\/\)$/{
14716             s//\1/
14717             q
14718           }
14719           /^X\(\/\).*/{
14720             s//\1/
14721             q
14722           }
14723           s/.*/./; q'`
14724       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14725       # echo "creating $dirpart/$file"
14726       echo '# dummy' > "$dirpart/$file"
14727     done
14728   done
14729 }
14730  ;;
14731     "libtool":C)
14732
14733     # See if we are running on zsh, and set the options which allow our
14734     # commands through without removal of \ escapes.
14735     if test -n "${ZSH_VERSION+set}" ; then
14736       setopt NO_GLOB_SUBST
14737     fi
14738
14739     cfgfile="${ofile}T"
14740     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14741     $RM "$cfgfile"
14742
14743     cat <<_LT_EOF >> "$cfgfile"
14744 #! $SHELL
14745
14746 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14747 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14748 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14749 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14750 #
14751 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14752 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14753 #                 Foundation, Inc.
14754 #   Written by Gordon Matzigkeit, 1996
14755 #
14756 #   This file is part of GNU Libtool.
14757 #
14758 # GNU Libtool is free software; you can redistribute it and/or
14759 # modify it under the terms of the GNU General Public License as
14760 # published by the Free Software Foundation; either version 2 of
14761 # the License, or (at your option) any later version.
14762 #
14763 # As a special exception to the GNU General Public License,
14764 # if you distribute this file as part of a program or library that
14765 # is built using GNU Libtool, you may include this file under the
14766 # same distribution terms that you use for the rest of that program.
14767 #
14768 # GNU Libtool is distributed in the hope that it will be useful,
14769 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14770 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14771 # GNU General Public License for more details.
14772 #
14773 # You should have received a copy of the GNU General Public License
14774 # along with GNU Libtool; see the file COPYING.  If not, a copy
14775 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14776 # obtained by writing to the Free Software Foundation, Inc.,
14777 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14778
14779
14780 # The names of the tagged configurations supported by this script.
14781 available_tags=""
14782
14783 # ### BEGIN LIBTOOL CONFIG
14784
14785 # Which release of libtool.m4 was used?
14786 macro_version=$macro_version
14787 macro_revision=$macro_revision
14788
14789 # Whether or not to build static libraries.
14790 build_old_libs=$enable_static
14791
14792 # Whether or not to build shared libraries.
14793 build_libtool_libs=$enable_shared
14794
14795 # What type of objects to build.
14796 pic_mode=$pic_mode
14797
14798 # Whether or not to optimize for fast installation.
14799 fast_install=$enable_fast_install
14800
14801 # Shell to use when invoking shell scripts.
14802 SHELL=$lt_SHELL
14803
14804 # An echo program that protects backslashes.
14805 ECHO=$lt_ECHO
14806
14807 # The PATH separator for the build system.
14808 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14809
14810 # The host system.
14811 host_alias=$host_alias
14812 host=$host
14813 host_os=$host_os
14814
14815 # The build system.
14816 build_alias=$build_alias
14817 build=$build
14818 build_os=$build_os
14819
14820 # A sed program that does not truncate output.
14821 SED=$lt_SED
14822
14823 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14824 Xsed="\$SED -e 1s/^X//"
14825
14826 # A grep program that handles long lines.
14827 GREP=$lt_GREP
14828
14829 # An ERE matcher.
14830 EGREP=$lt_EGREP
14831
14832 # A literal string matcher.
14833 FGREP=$lt_FGREP
14834
14835 # A BSD- or MS-compatible name lister.
14836 NM=$lt_NM
14837
14838 # Whether we need soft or hard links.
14839 LN_S=$lt_LN_S
14840
14841 # What is the maximum length of a command?
14842 max_cmd_len=$max_cmd_len
14843
14844 # Object file suffix (normally "o").
14845 objext=$ac_objext
14846
14847 # Executable file suffix (normally "").
14848 exeext=$exeext
14849
14850 # whether the shell understands "unset".
14851 lt_unset=$lt_unset
14852
14853 # turn spaces into newlines.
14854 SP2NL=$lt_lt_SP2NL
14855
14856 # turn newlines into spaces.
14857 NL2SP=$lt_lt_NL2SP
14858
14859 # convert \$build file names to \$host format.
14860 to_host_file_cmd=$lt_cv_to_host_file_cmd
14861
14862 # convert \$build files to toolchain format.
14863 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14864
14865 # An object symbol dumper.
14866 OBJDUMP=$lt_OBJDUMP
14867
14868 # Method to check whether dependent libraries are shared objects.
14869 deplibs_check_method=$lt_deplibs_check_method
14870
14871 # Command to use when deplibs_check_method = "file_magic".
14872 file_magic_cmd=$lt_file_magic_cmd
14873
14874 # How to find potential files when deplibs_check_method = "file_magic".
14875 file_magic_glob=$lt_file_magic_glob
14876
14877 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14878 want_nocaseglob=$lt_want_nocaseglob
14879
14880 # DLL creation program.
14881 DLLTOOL=$lt_DLLTOOL
14882
14883 # Command to associate shared and link libraries.
14884 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14885
14886 # The archiver.
14887 AR=$lt_AR
14888
14889 # Flags to create an archive.
14890 AR_FLAGS=$lt_AR_FLAGS
14891
14892 # How to feed a file listing to the archiver.
14893 archiver_list_spec=$lt_archiver_list_spec
14894
14895 # A symbol stripping program.
14896 STRIP=$lt_STRIP
14897
14898 # Commands used to install an old-style archive.
14899 RANLIB=$lt_RANLIB
14900 old_postinstall_cmds=$lt_old_postinstall_cmds
14901 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14902
14903 # Whether to use a lock for old archive extraction.
14904 lock_old_archive_extraction=$lock_old_archive_extraction
14905
14906 # A C compiler.
14907 LTCC=$lt_CC
14908
14909 # LTCC compiler flags.
14910 LTCFLAGS=$lt_CFLAGS
14911
14912 # Take the output of nm and produce a listing of raw symbols and C names.
14913 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14914
14915 # Transform the output of nm in a proper C declaration.
14916 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14917
14918 # Transform the output of nm in a C name address pair.
14919 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14920
14921 # Transform the output of nm in a C name address pair when lib prefix is needed.
14922 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14923
14924 # Specify filename containing input files for \$NM.
14925 nm_file_list_spec=$lt_nm_file_list_spec
14926
14927 # The root where to search for dependent libraries,and in which our libraries should be installed.
14928 lt_sysroot=$lt_sysroot
14929
14930 # The name of the directory that contains temporary libtool files.
14931 objdir=$objdir
14932
14933 # Used to examine libraries when file_magic_cmd begins with "file".
14934 MAGIC_CMD=$MAGIC_CMD
14935
14936 # Must we lock files when doing compilation?
14937 need_locks=$lt_need_locks
14938
14939 # Manifest tool.
14940 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14941
14942 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14943 DSYMUTIL=$lt_DSYMUTIL
14944
14945 # Tool to change global to local symbols on Mac OS X.
14946 NMEDIT=$lt_NMEDIT
14947
14948 # Tool to manipulate fat objects and archives on Mac OS X.
14949 LIPO=$lt_LIPO
14950
14951 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14952 OTOOL=$lt_OTOOL
14953
14954 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14955 OTOOL64=$lt_OTOOL64
14956
14957 # Old archive suffix (normally "a").
14958 libext=$libext
14959
14960 # Shared library suffix (normally ".so").
14961 shrext_cmds=$lt_shrext_cmds
14962
14963 # The commands to extract the exported symbol list from a shared archive.
14964 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14965
14966 # Variables whose values should be saved in libtool wrapper scripts and
14967 # restored at link time.
14968 variables_saved_for_relink=$lt_variables_saved_for_relink
14969
14970 # Do we need the "lib" prefix for modules?
14971 need_lib_prefix=$need_lib_prefix
14972
14973 # Do we need a version for libraries?
14974 need_version=$need_version
14975
14976 # Library versioning type.
14977 version_type=$version_type
14978
14979 # Shared library runtime path variable.
14980 runpath_var=$runpath_var
14981
14982 # Shared library path variable.
14983 shlibpath_var=$shlibpath_var
14984
14985 # Is shlibpath searched before the hard-coded library search path?
14986 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14987
14988 # Format of library name prefix.
14989 libname_spec=$lt_libname_spec
14990
14991 # List of archive names.  First name is the real one, the rest are links.
14992 # The last name is the one that the linker finds with -lNAME
14993 library_names_spec=$lt_library_names_spec
14994
14995 # The coded name of the library, if different from the real name.
14996 soname_spec=$lt_soname_spec
14997
14998 # Permission mode override for installation of shared libraries.
14999 install_override_mode=$lt_install_override_mode
15000
15001 # Command to use after installation of a shared archive.
15002 postinstall_cmds=$lt_postinstall_cmds
15003
15004 # Command to use after uninstallation of a shared archive.
15005 postuninstall_cmds=$lt_postuninstall_cmds
15006
15007 # Commands used to finish a libtool library installation in a directory.
15008 finish_cmds=$lt_finish_cmds
15009
15010 # As "finish_cmds", except a single script fragment to be evaled but
15011 # not shown.
15012 finish_eval=$lt_finish_eval
15013
15014 # Whether we should hardcode library paths into libraries.
15015 hardcode_into_libs=$hardcode_into_libs
15016
15017 # Compile-time system search path for libraries.
15018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15019
15020 # Run-time system search path for libraries.
15021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15022
15023 # Whether dlopen is supported.
15024 dlopen_support=$enable_dlopen
15025
15026 # Whether dlopen of programs is supported.
15027 dlopen_self=$enable_dlopen_self
15028
15029 # Whether dlopen of statically linked programs is supported.
15030 dlopen_self_static=$enable_dlopen_self_static
15031
15032 # Commands to strip libraries.
15033 old_striplib=$lt_old_striplib
15034 striplib=$lt_striplib
15035
15036
15037 # The linker used to build libraries.
15038 LD=$lt_LD
15039
15040 # How to create reloadable object files.
15041 reload_flag=$lt_reload_flag
15042 reload_cmds=$lt_reload_cmds
15043
15044 # Commands used to build an old-style archive.
15045 old_archive_cmds=$lt_old_archive_cmds
15046
15047 # A language specific compiler.
15048 CC=$lt_compiler
15049
15050 # Is the compiler the GNU compiler?
15051 with_gcc=$GCC
15052
15053 # Compiler flag to turn off builtin functions.
15054 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15055
15056 # Additional compiler flags for building library objects.
15057 pic_flag=$lt_lt_prog_compiler_pic
15058
15059 # How to pass a linker flag through the compiler.
15060 wl=$lt_lt_prog_compiler_wl
15061
15062 # Compiler flag to prevent dynamic linking.
15063 link_static_flag=$lt_lt_prog_compiler_static
15064
15065 # Does compiler simultaneously support -c and -o options?
15066 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15067
15068 # Whether or not to add -lc for building shared libraries.
15069 build_libtool_need_lc=$archive_cmds_need_lc
15070
15071 # Whether or not to disallow shared libs when runtime libs are static.
15072 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15073
15074 # Compiler flag to allow reflexive dlopens.
15075 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15076
15077 # Compiler flag to generate shared objects directly from archives.
15078 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15079
15080 # Whether the compiler copes with passing no objects directly.
15081 compiler_needs_object=$lt_compiler_needs_object
15082
15083 # Create an old-style archive from a shared archive.
15084 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15085
15086 # Create a temporary old-style archive to link instead of a shared archive.
15087 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15088
15089 # Commands used to build a shared archive.
15090 archive_cmds=$lt_archive_cmds
15091 archive_expsym_cmds=$lt_archive_expsym_cmds
15092
15093 # Commands used to build a loadable module if different from building
15094 # a shared archive.
15095 module_cmds=$lt_module_cmds
15096 module_expsym_cmds=$lt_module_expsym_cmds
15097
15098 # Whether we are building with GNU ld or not.
15099 with_gnu_ld=$lt_with_gnu_ld
15100
15101 # Flag that allows shared libraries with undefined symbols to be built.
15102 allow_undefined_flag=$lt_allow_undefined_flag
15103
15104 # Flag that enforces no undefined symbols.
15105 no_undefined_flag=$lt_no_undefined_flag
15106
15107 # Flag to hardcode \$libdir into a binary during linking.
15108 # This must work even if \$libdir does not exist
15109 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15110
15111 # Whether we need a single "-rpath" flag with a separated argument.
15112 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15113
15114 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15115 # DIR into the resulting binary.
15116 hardcode_direct=$hardcode_direct
15117
15118 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15119 # DIR into the resulting binary and the resulting library dependency is
15120 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15121 # library is relocated.
15122 hardcode_direct_absolute=$hardcode_direct_absolute
15123
15124 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15125 # into the resulting binary.
15126 hardcode_minus_L=$hardcode_minus_L
15127
15128 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15129 # into the resulting binary.
15130 hardcode_shlibpath_var=$hardcode_shlibpath_var
15131
15132 # Set to "yes" if building a shared library automatically hardcodes DIR
15133 # into the library and all subsequent libraries and executables linked
15134 # against it.
15135 hardcode_automatic=$hardcode_automatic
15136
15137 # Set to yes if linker adds runtime paths of dependent libraries
15138 # to runtime path list.
15139 inherit_rpath=$inherit_rpath
15140
15141 # Whether libtool must link a program against all its dependency libraries.
15142 link_all_deplibs=$link_all_deplibs
15143
15144 # Set to "yes" if exported symbols are required.
15145 always_export_symbols=$always_export_symbols
15146
15147 # The commands to list exported symbols.
15148 export_symbols_cmds=$lt_export_symbols_cmds
15149
15150 # Symbols that should not be listed in the preloaded symbols.
15151 exclude_expsyms=$lt_exclude_expsyms
15152
15153 # Symbols that must always be exported.
15154 include_expsyms=$lt_include_expsyms
15155
15156 # Commands necessary for linking programs (against libraries) with templates.
15157 prelink_cmds=$lt_prelink_cmds
15158
15159 # Commands necessary for finishing linking programs.
15160 postlink_cmds=$lt_postlink_cmds
15161
15162 # Specify filename containing input files.
15163 file_list_spec=$lt_file_list_spec
15164
15165 # How to hardcode a shared library path into an executable.
15166 hardcode_action=$hardcode_action
15167
15168 # ### END LIBTOOL CONFIG
15169
15170 _LT_EOF
15171
15172   case $host_os in
15173   aix3*)
15174     cat <<\_LT_EOF >> "$cfgfile"
15175 # AIX sometimes has problems with the GCC collect2 program.  For some
15176 # reason, if we set the COLLECT_NAMES environment variable, the problems
15177 # vanish in a puff of smoke.
15178 if test "X${COLLECT_NAMES+set}" != Xset; then
15179   COLLECT_NAMES=
15180   export COLLECT_NAMES
15181 fi
15182 _LT_EOF
15183     ;;
15184   esac
15185
15186
15187 ltmain="$ac_aux_dir/ltmain.sh"
15188
15189
15190   # We use sed instead of cat because bash on DJGPP gets confused if
15191   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15192   # text mode, it properly converts lines to CR/LF.  This bash problem
15193   # is reportedly fixed, but why not run on old versions too?
15194   sed '$q' "$ltmain" >> "$cfgfile" \
15195      || (rm -f "$cfgfile"; exit 1)
15196
15197   if test x"$xsi_shell" = xyes; then
15198   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15199 func_dirname ()\
15200 {\
15201 \    case ${1} in\
15202 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15203 \      *  ) func_dirname_result="${3}" ;;\
15204 \    esac\
15205 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15206   && mv -f "$cfgfile.tmp" "$cfgfile" \
15207     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15208 test 0 -eq $? || _lt_function_replace_fail=:
15209
15210
15211   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15212 func_basename ()\
15213 {\
15214 \    func_basename_result="${1##*/}"\
15215 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15216   && mv -f "$cfgfile.tmp" "$cfgfile" \
15217     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15218 test 0 -eq $? || _lt_function_replace_fail=:
15219
15220
15221   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15222 func_dirname_and_basename ()\
15223 {\
15224 \    case ${1} in\
15225 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15226 \      *  ) func_dirname_result="${3}" ;;\
15227 \    esac\
15228 \    func_basename_result="${1##*/}"\
15229 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15230   && mv -f "$cfgfile.tmp" "$cfgfile" \
15231     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15232 test 0 -eq $? || _lt_function_replace_fail=:
15233
15234
15235   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15236 func_stripname ()\
15237 {\
15238 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15239 \    # positional parameters, so assign one to ordinary parameter first.\
15240 \    func_stripname_result=${3}\
15241 \    func_stripname_result=${func_stripname_result#"${1}"}\
15242 \    func_stripname_result=${func_stripname_result%"${2}"}\
15243 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15244   && mv -f "$cfgfile.tmp" "$cfgfile" \
15245     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15246 test 0 -eq $? || _lt_function_replace_fail=:
15247
15248
15249   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15250 func_split_long_opt ()\
15251 {\
15252 \    func_split_long_opt_name=${1%%=*}\
15253 \    func_split_long_opt_arg=${1#*=}\
15254 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15255   && mv -f "$cfgfile.tmp" "$cfgfile" \
15256     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15257 test 0 -eq $? || _lt_function_replace_fail=:
15258
15259
15260   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15261 func_split_short_opt ()\
15262 {\
15263 \    func_split_short_opt_arg=${1#??}\
15264 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15265 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15266   && mv -f "$cfgfile.tmp" "$cfgfile" \
15267     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15268 test 0 -eq $? || _lt_function_replace_fail=:
15269
15270
15271   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15272 func_lo2o ()\
15273 {\
15274 \    case ${1} in\
15275 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15276 \      *)    func_lo2o_result=${1} ;;\
15277 \    esac\
15278 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15279   && mv -f "$cfgfile.tmp" "$cfgfile" \
15280     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15281 test 0 -eq $? || _lt_function_replace_fail=:
15282
15283
15284   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15285 func_xform ()\
15286 {\
15287     func_xform_result=${1%.*}.lo\
15288 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15289   && mv -f "$cfgfile.tmp" "$cfgfile" \
15290     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15291 test 0 -eq $? || _lt_function_replace_fail=:
15292
15293
15294   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15295 func_arith ()\
15296 {\
15297     func_arith_result=$(( $* ))\
15298 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15299   && mv -f "$cfgfile.tmp" "$cfgfile" \
15300     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15301 test 0 -eq $? || _lt_function_replace_fail=:
15302
15303
15304   sed -e '/^func_len ()$/,/^} # func_len /c\
15305 func_len ()\
15306 {\
15307     func_len_result=${#1}\
15308 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15309   && mv -f "$cfgfile.tmp" "$cfgfile" \
15310     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15311 test 0 -eq $? || _lt_function_replace_fail=:
15312
15313 fi
15314
15315 if test x"$lt_shell_append" = xyes; then
15316   sed -e '/^func_append ()$/,/^} # func_append /c\
15317 func_append ()\
15318 {\
15319     eval "${1}+=\\${2}"\
15320 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15321   && mv -f "$cfgfile.tmp" "$cfgfile" \
15322     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15323 test 0 -eq $? || _lt_function_replace_fail=:
15324
15325
15326   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15327 func_append_quoted ()\
15328 {\
15329 \    func_quote_for_eval "${2}"\
15330 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15331 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15332   && mv -f "$cfgfile.tmp" "$cfgfile" \
15333     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15334 test 0 -eq $? || _lt_function_replace_fail=:
15335
15336
15337   # Save a `func_append' function call where possible by direct use of '+='
15338   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15339     && mv -f "$cfgfile.tmp" "$cfgfile" \
15340       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15341   test 0 -eq $? || _lt_function_replace_fail=:
15342 else
15343   # Save a `func_append' function call even when '+=' is not available
15344   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15345     && mv -f "$cfgfile.tmp" "$cfgfile" \
15346       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15347   test 0 -eq $? || _lt_function_replace_fail=:
15348 fi
15349
15350 if test x"$_lt_function_replace_fail" = x":"; then
15351   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15352 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15353 fi
15354
15355
15356    mv -f "$cfgfile" "$ofile" ||
15357     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15358   chmod +x "$ofile"
15359
15360  ;;
15361
15362   esac
15363 done # for ac_tag
15364
15365
15366 as_fn_exit 0
15367 _ACEOF
15368 ac_clean_files=$ac_clean_files_save
15369
15370 test $ac_write_fail = 0 ||
15371   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15372
15373
15374 # configure is writing to config.log, and then calls config.status.
15375 # config.status does its own redirection, appending to config.log.
15376 # Unfortunately, on DOS this fails, as config.log is still kept open
15377 # by configure, so config.status won't be able to write to it; its
15378 # output is simply discarded.  So we exec the FD to /dev/null,
15379 # effectively closing config.log, so it can be properly (re)opened and
15380 # appended to by config.status.  When coming back to configure, we
15381 # need to make the FD available again.
15382 if test "$no_create" != yes; then
15383   ac_cs_success=:
15384   ac_config_status_args=
15385   test "$silent" = yes &&
15386     ac_config_status_args="$ac_config_status_args --quiet"
15387   exec 5>/dev/null
15388   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15389   exec 5>>config.log
15390   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15391   # would make configure fail if this is the last instruction.
15392   $ac_cs_success || as_fn_exit 1
15393 fi
15394 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15395   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15396 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15397 fi
15398
15399
15400 echo ""
15401 echo "$PACKAGE_STRING will be compiled with:"
15402 echo ""
15403 echo "  libkms         $LIBKMS"
15404 echo "  Intel API      $INTEL"
15405 echo "  vmwgfx API     $VMWGFX"
15406 echo "  Radeon API     $RADEON"
15407 echo "  Nouveau API    $NOUVEAU"
15408 echo "  OMAP API       $OMAP"
15409 echo "  EXYNOS API     $EXYNOS"
15410 echo ""